/* Présentation du salon uniquement ; moteurs et shell commun inchangés. */
.grooming-screen .v2-module-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; }
.grooming-screen .v2-module-header h1 { font-size: 30px; margin: 4px 0; letter-spacing: -.035em; }
.grooming-screen .v2-module-header p { margin: 0; color: var(--muted); }
.grooming-main { width: min(1120px, calc(100% - 48px)); margin: 16px auto 48px; }
.grooming-screen.store-module-screen > .v2-module-header,
.grooming-screen.store-module-screen > .grooming-main { grid-column: 2; width: 100%; min-width: 0; margin: 0; }
#grooming-status { color: var(--muted); font-size: 13px; margin: 4px 0 12px; overflow-wrap: anywhere; }
#screen-grooming:has(#grooming-content:not([hidden])) #grooming-status:not([data-local-preview="true"]) { display: none; }
.grooming-management { display: flex; justify-content: flex-end; }
.grooming-management:has(button[hidden]) { display: none; }
.grooming-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 20px; }
.grooming-report-shortcut { display: none; }
.grooming-day-heading h2 { font-size: 20px; margin: 4px 0 0; }
.grooming-eyebrow { color: var(--muted); text-transform: uppercase; letter-spacing: .09em; font-size: 11px; font-weight: 700; margin: 0; }
.grooming-workspace { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr); align-items: start; gap: 20px; }
.grooming-entry { min-width: 0; }
.grooming-editor, .grooming-start, .grooming-day-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.grooming-editor h2, .grooming-start h2, .grooming-day-card h2, .grooming-list-heading h2 { font-size: 20px; margin: 0; }
.grooming-start p { color: var(--muted); line-height: 1.5; }
.grooming-day-card { position: sticky; top: 24px; background: #f0f5f1; border-color: #d5e2d8; }
.grooming-card-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; justify-content: space-between; }
#grooming-day-state { font-size: 11px; font-weight: 600; color: #275c47; background: #e1ece3; padding: 5px 8px; border-radius: 8px; }
#grooming-journal label, .grooming-report-controls label { display: grid; gap: 7px; min-width: 0; font-size: 13px; font-weight: 600; }
#grooming-journal input:not([type="checkbox"]), #grooming-journal select, #grooming-journal textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); font: inherit; }
#grooming-journal input:focus-visible, #grooming-journal select:focus-visible, #grooming-journal textarea:focus-visible, #grooming-journal button:focus-visible { outline: 3px solid #638d7c; outline-offset: 3px; }
#grooming-journal input[aria-invalid="true"] { border-color: #a5382a; }
#grooming-journal button { min-height: 44px; white-space: normal; }
#grooming-journal button:disabled { opacity: .55; cursor: not-allowed; }
.grooming-field-group { display: block; grid-column: auto; border: 0; border-radius: 0; background: transparent; padding: 0; margin: 24px 0 0; min-width: 0; }
.grooming-field-group + .grooming-field-group { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 22px; }
.grooming-field-group legend { font-size: 15px; font-weight: 700; padding: 0; margin-bottom: 14px; }
.grooming-entry-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grooming-professional-field, #grooming-service-date-label { grid-column: 1 / -1; }
#grooming-journal .grooming-amount-label { max-width: 260px; }
#grooming-journal #grooming-amount { font-size: 30px; font-weight: 700; min-height: 62px; letter-spacing: -.02em; }
.grooming-field-hint, #grooming-amount-hint { color: var(--muted); font-size: 12px; line-height: 1.5; }
#grooming-amount-hint { color: #923b2d; }
.grooming-field-label { font-size: 13px; font-weight: 600; margin: 16px 0 8px; }
.grooming-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.grooming-methods button { flex: 1 1 88px; padding: 10px 12px; border: 1px solid #becac2; border-radius: 10px; background: #fff; color: #174c3a; font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.grooming-methods button[aria-pressed="true"] { background: #00543e; color: #fff; border-color: #00543e; box-shadow: inset 0 0 0 2px #00543e; }
.grooming-methods button[aria-pressed="true"]::before { content: "✓ "; }
#grooming-journal .grooming-split-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 12px; cursor: pointer; }
.grooming-split-toggle input { width: 20px; height: 20px; accent-color: #00543e; }
.grooming-payment-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.grooming-payment-row { min-width: 0; }
.grooming-remainder, .grooming-text-button { border: 0; background: transparent; color: #00543e; padding: 8px 4px; text-align: left; font: inherit; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
#grooming-split-total { font-size: 13px; color: #80501e; }
#grooming-split-total[data-complete="true"] { color: #1b6244; }
.grooming-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.grooming-editor-actions .primary-button { flex: 1; }
.grooming-preview { white-space: pre-line; overflow-wrap: anywhere; padding: 16px; background: var(--surface-soft); border-radius: 12px; margin: 16px 0; line-height: 1.6; }
#grooming-editor-message { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.grooming-feedback { padding: 14px 18px; border-radius: 12px; background: #edf1f3; color: #234958; line-height: 1.5; overflow-wrap: anywhere; }
.grooming-feedback[data-kind="success"] { background: #e8f3e9; color: #174e37; }
.grooming-feedback[data-kind="error"] { background: #fff0e9; color: #8b3425; }
.grooming-feedback:empty, #grooming-editor-message:empty, #grooming-amount-hint:empty, #grooming-split-total:empty { display: none; }
.grooming-summary { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 16px; background: var(--surface-soft); border-radius: 12px; margin: 16px 0; }
.grooming-summary > strong { width: 100%; font-size: 22px; }
#grooming-summary { display: grid; gap: 8px; padding: 24px 0 20px; background: transparent; margin: 0; }
#grooming-summary > strong { font-size: 38px; line-height: 1.1; letter-spacing: -.04em; }
#grooming-summary > span { font-size: 12px; color: #456052; }
.grooming-summary-payments { display: grid; gap: 9px; border-top: 1px solid #d5e2d8; margin-top: 10px; padding-top: 16px; }
.grooming-summary-payments:empty { display: none; }
.grooming-summary-payments span { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }
#grooming-print { width: 100%; background: #fff; }
.grooming-help { border-top: 1px solid #d5e2d8; margin-top: 18px; font-size: 12px; line-height: 1.6; color: #456052; }
.grooming-help summary { cursor: pointer; padding: 12px 0; min-height: 44px; box-sizing: border-box; }
.grooming-journal-list { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.grooming-list-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 18px; }
.grooming-list-tools { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.grooming-list-tools label { max-width: 260px; }
.grooming-records { min-width: 0; overflow-wrap: anywhere; }
.grooming-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; background: var(--surface); }
.grooming-table caption { text-align: left; padding: 12px 0; font-weight: 600; }
.grooming-table th, .grooming-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.grooming-table th:first-child, .grooming-table td:first-child, .grooming-table th:nth-child(2), .grooming-table td:nth-child(2) { text-align: left; }
.grooming-table th:first-child { width: 18%; }
.grooming-table th:nth-child(2) { width: 14%; }
.grooming-table th:last-child { width: 13%; }
.grooming-table td:first-child > * { display: block; margin-bottom: 6px; }
.grooming-table td button { padding: 8px; font-size: 13px; width: 100%; margin-bottom: 8px; }
.grooming-cancelled { color: var(--muted); background: var(--surface-soft); }
#grooming-editor-message, #grooming-message { overflow-wrap: anywhere; line-height: 1.6; }
#grooming-more { margin: 20px 0; }
@media (max-width: 1000px) {
  .grooming-toolbar, .grooming-entry-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grooming-payment-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grooming-table, .grooming-table tbody, .grooming-table tr, .grooming-table td { display: block; width: auto; }
  .grooming-table thead { display: none; }
  .grooming-table caption { display: block; width: 100%; box-sizing: border-box; }
  .grooming-table { background: transparent; }
  .grooming-table tr { border: 1px solid var(--line); border-radius: 16px; padding: 12px; background: var(--surface); margin-bottom: 16px; }
  .grooming-table tr.grooming-cancelled { background: var(--surface-soft); }
  .grooming-table td, .grooming-table td:first-child, .grooming-table td:nth-child(2) { display: grid; grid-template-columns: minmax(90px, .8fr) minmax(0, 1.2fr); gap: 6px 12px; text-align: right; }
  .grooming-table td::before { content: attr(data-label); text-align: left; font-weight: 600; grid-column: 1; grid-row: 1; }
  .grooming-table td > * { grid-column: 2; }
  .grooming-table td:last-child { border-bottom: 0; }
}

#grooming-more { margin: 20px 0; }
.grooming-monthly { min-width: 0; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.grooming-report-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 16px; }
.grooming-report-controls input, .grooming-report-controls button { min-height: 44px; }
#grooming-report-days { min-width: 0; overflow-wrap: anywhere; }
.grooming-report-detail summary { min-height: 44px; padding: 12px; cursor: pointer; font-weight: 600; }
@media (max-width: 1180px) {
  .grooming-screen.store-module-screen > .v2-module-header, .grooming-screen.store-module-screen > .grooming-main { grid-column: auto; }
  #screen-grooming #store-shell-header { gap: 10px; padding: 12px 16px; }
  #screen-grooming #store-shell-header .portal-brand h1, #screen-grooming #store-shell-header .portal-brand p { display: none; }
  #screen-grooming #store-shell-header .header-logo { width: 54px; }
  #screen-grooming #store-shell-header .store-primary-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #screen-grooming .store-primary-nav button { min-height: 44px; }
}
@media (max-width: 780px) {
  .grooming-report-shortcut { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; }
  .grooming-workspace { grid-template-columns: minmax(0, 1fr); }
  .grooming-day-card { position: static; padding: 18px; }
  #grooming-summary { padding: 14px 0; }
  #grooming-summary > strong { font-size: 30px; }
  .grooming-summary-payments { display: flex; flex-wrap: wrap; gap: 10px 20px; }
  .grooming-summary-payments span { gap: 8px; }
}
@media (max-width: 600px) {
  #screen-grooming #store-shell-header .store-primary-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #screen-grooming #store-shell-header .portal-user { gap: 6px; }
  #screen-grooming #store-shell-header #portal-user-email { display: none; }
  #screen-grooming #store-shell-header .portal-brand { gap: 6px; }
  #screen-grooming #store-shell-header .header-logo { width: 42px; }
  #screen-grooming #store-shell-header #open-employee-guide { max-width: 105px; font-size: 10px; padding: 8px; }
  .grooming-screen .v2-module-header { align-items: center; padding: 8px 0; }
  .grooming-screen .v2-module-header h1 { font-size: 25px; }
  .grooming-screen .v2-module-header p { font-size: 12px; }
  .grooming-screen #back-from-grooming { font-size: 12px; padding: 10px; max-width: 125px; }
  .grooming-main { width: calc(100% - 32px); }
  .grooming-day-heading { align-items: flex-start; flex-direction: column; margin: 8px 0 16px; }
  .grooming-day-heading h2 { font-size: 17px; }
  .grooming-report-shortcut { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; }
  .grooming-editor { padding: 18px; }
  .grooming-entry-fields, .grooming-payment-fields { grid-template-columns: minmax(0, 1fr); }
  .grooming-editor-actions { align-items: stretch; flex-direction: column; }
  .grooming-list-tools, .grooming-list-tools label, .grooming-report-controls > * { width: 100%; max-width: none; min-width: 0; }
}

/* Rapport agrégé : aucun sélecteur d'impression ne touche les autres modules. */
#grooming-print-dialog { width: min(760px, calc(100% - 24px)); max-height: 94vh; padding: 24px; border: 1px solid #666; border-radius: 12px; color: #111; background: #fff; }
#grooming-print-dialog::backdrop { background: rgb(0 0 0 / .45); }
.grooming-print-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.grooming-print-actions button { min-height: 44px; padding: 10px 16px; border: 1px solid #555; border-radius: 8px; color: #111; background: #fff; font: inherit; font-weight: 600; }
#grooming-print-sheet { font: 11pt/1.45 Arial, sans-serif; color: #111; background: #fff; }
#grooming-print-sheet header { padding-bottom: 12px; border-bottom: 2px solid #222; }
#grooming-print-sheet header p { margin: 3px 0; }
#grooming-print-sheet h1 { font-size: 24pt; margin: 4px 0; }
#grooming-print-sheet h2 { font-size: 13pt; margin: 20px 0 10px; }
.grooming-print-date { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin: 16px 0; }
#grooming-print-sheet .grooming-print-date h2 { margin: 0; }
.grooming-print-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.grooming-print-kpis div { border-top: 1px solid #777; padding-top: 10px; }
.grooming-print-kpis dt { font-size: 10pt; }
.grooming-print-kpis dd { margin: 6px 0; font-size: 18pt; font-weight: bold; }
#grooming-print-sheet table { width: 100%; border-collapse: collapse; }
#grooming-print-sheet th, #grooming-print-sheet td { padding: 8px 4px; border-bottom: 1px solid #bbb; text-align: left; }
#grooming-print-sheet th:last-child, #grooming-print-sheet td:last-child { text-align: right; }
#grooming-print-sheet tfoot { font-weight: bold; border-top: 2px solid #222; }
#grooming-print-sheet footer { margin-top: 22px; border-top: 1px solid #777; font-size: 9pt; }
@media screen and (max-width: 600px) {
  #grooming-print-dialog { padding: 16px; }
  .grooming-print-actions button { width: 100%; }
  .grooming-print-kpis { grid-template-columns: 1fr; }
}
@page grooming-daily { size: A4 portrait; margin: 14mm; }
@media print {
  body.grooming-printing { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body.grooming-printing > :not(#grooming-print-dialog) { display: none !important; }
  body.grooming-printing #grooming-print-dialog { page: grooming-daily; display: block !important; position: static !important; width: auto !important; max-width: none !important; height: auto !important; max-height: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; overflow: visible !important; box-shadow: none !important; }
  body.grooming-printing .grooming-print-actions, body.grooming-printing #grooming-print-status, body.grooming-printing #grooming-print-draft { display: none !important; }
  body.grooming-printing #grooming-print-dialog { border-radius: 0 !important; }
  body.grooming-printing #grooming-print-dialog::backdrop { background: #fff !important; }
  #grooming-print-sheet { break-inside: avoid; }
  #grooming-print-sheet * { color: #000 !important; background: #fff !important; box-shadow: none !important; text-shadow: none !important; }
  #grooming-print-sheet .grooming-print-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

#grooming-history summary { min-height: 44px; padding: 12px; cursor: pointer; font-weight: 600; }
#grooming-history p, #grooming-history li { overflow-wrap: anywhere; line-height: 1.6; }

@media (max-width: 1000px) {
  #grooming-records .grooming-table td[data-payment-zero="true"] { display: none; }
}

.grooming-draft-notice { padding: 12px; border: 1px solid #be9d5b; border-radius: 8px; background: #fff7e5; font-size: 13px; line-height: 1.5; }
.grooming-draft-notice button { border: 0; background: transparent; padding: 8px 0; color: #624912; text-decoration: underline; cursor: pointer; font: inherit; min-height: 44px; }

.grooming-day-heading { flex-wrap: wrap; }
.grooming-date-nav { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; }
.grooming-date-nav > button { padding: 10px 12px; }
.grooming-reading-history .grooming-workspace { grid-template-columns: minmax(0, 1fr); }
.grooming-reading-history .grooming-day-card { position: static; }
.grooming-reading-history #grooming-print { width: auto; }
@media (max-width: 600px) {
  .grooming-date-nav { width: 100%; }
  .grooming-date-nav label { order: -1; flex-basis: 100%; }
}
.grooming-reading-history #grooming-summary { padding: 16px 0; }
.grooming-reading-history .grooming-summary-payments { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.grooming-reading-history .grooming-summary-payments span { gap: 12px; }
