/* Module-specific surfaces share the clinic's light palette. Chart series,
   data and disclosure behaviour remain unchanged. */
.crm-client-shortcut{display:flex;align-items:center;gap:9px;min-height:36px;min-width:185px;margin:0 auto;padding:7px 11px;border:1px solid var(--app-border);border-radius:11px;background:var(--app-surface-alt);color:var(--app-muted);font:inherit;font-size:12px;transition:background .16s,border-color .16s}
.crm-client-shortcut:hover{border-color:var(--app-accent);background:var(--app-accent-soft);color:var(--app-text)}
.crm-client-shortcut kbd{margin-left:auto;padding:2px 4px;border:1px solid var(--app-border);border-radius:4px;font:inherit;font-size:9px;color:var(--app-muted)}
.crm-profile-link{margin-top:9px}
.workflow-controls[hidden]{display:none}
@media(max-width:1100px){.crm-client-shortcut{min-width:0;margin-left:auto}.crm-client-shortcut kbd{display:none}}
@media(max-width:600px){.crm-client-shortcut{width:36px;min-width:36px;justify-content:center;padding:7px;margin-left:auto;margin-right:0}.crm-client-shortcut span,.crm-client-shortcut kbd{display:none}.crm-header .account{margin-left:0}}

/* Charts keep their individual series colours on the same neutral workspace. */
.ch-layout{gap:16px}
.ch-notes{margin-bottom:12px;padding:11px 14px;border-color:var(--app-border);border-radius:12px;background:var(--app-surface-alt);color:var(--app-muted);font-size:12px}
.ch-card{padding:18px;border-radius:16px;box-shadow:0 4px 18px #21332905;background:var(--app-surface)}
.ch-heading{margin-bottom:12px}
.ch-heading h2{font-size:18px;letter-spacing:-.4px}
.ch-heading p{font-size:12px;line-height:1.6;margin-top:5px}
.ch-axis{fill:var(--app-muted);font-family:inherit;font-size:12px}
.ch-grid{stroke:var(--app-border)}
.ch-point,.ch-slice{stroke:var(--app-surface)}
.ch-cursor{stroke:var(--app-muted)}
.ch-hit:focus-visible{fill:transparent;stroke:var(--app-accent)}
.ch-track{fill:var(--app-surface-alt)}
.ch-ring{stroke:var(--app-border)}
.ch-total{fill:var(--app-text);font-family:inherit}
.ch-total-label,.ch-empty{fill:var(--app-muted);font-family:inherit}
.ch-empty-state{color:var(--app-muted)}
.ch-legend{gap:7px 12px;margin-bottom:11px;color:var(--app-muted);font-size:12px}
.ch-legend .ch-legend-button{padding:7px 9px;border-radius:10px;color:var(--app-text)}
.ch-legend-button:hover,.ch-legend-button[aria-pressed=true]{background:var(--app-accent-soft);border-color:var(--app-border)}
.ch-legend-button[aria-pressed=true]{border-color:var(--app-accent)}
.ch-legend-button .ch-label{font-size:12px}
.ch-legend-button .ch-percent{color:var(--app-muted);font-size:11px}
.ch-tooltip{min-height:44px;margin-top:12px;padding:10px 12px;border-color:var(--app-border);border-radius:12px;background:var(--app-surface-alt);color:var(--app-text);font-size:12px;line-height:1.6}
.ch-tooltip-title{font-size:12px;margin-bottom:5px;font-variant-numeric:tabular-nums}
.ch-details{margin-top:12px;padding-top:9px}
.ch-details summary{color:var(--app-accent-strong);min-height:32px;display:flex;align-items:center;gap:7px;font-size:12px;font-weight:550}
.ch-details summary::before{content:"›";font-size:16px;line-height:1;transform:rotate(0deg)}
.ch-details[open] summary::before{transform:rotate(90deg)}
.ch-details summary::-webkit-details-marker{display:none}
.ch-table{margin-top:7px;font-size:12px}
.ch-table th,.ch-table td{border-color:var(--app-border)}
.ch-table th{color:var(--app-muted)}
.ch-ranked-row{background:transparent;border-radius:10px;margin-bottom:4px;padding:8px 9px}
.ch-ranked-row:hover,.ch-ranked-row:focus-visible{background:var(--app-surface-alt);border-color:var(--app-border)}
.ch-slice:focus-visible{stroke:var(--app-accent-strong)}

/* Provider-specific controls that previously overrode the shared controls. */
.av-source .report-source-heading h2{font-size:17px}
.av-source p{font-size:12px}
.av-definitions>span:first-child{color:var(--app-accent-strong)}
.av-table-search{margin-bottom:11px}
.av-table-search .field input,.report-section-title .field input{min-height:40px;padding:8px 12px;font-size:13px}
.report-status.unavailable{background:var(--app-surface-alt);color:var(--app-muted)}
.report-refresh-note{margin-bottom:12px}

/* The date picker stays in the browser's top layer, with its keyboard grid and
   month/year selectors unchanged. No native/date input sizing is substituted. */
.dp-trigger{min-height:40px;padding:9px 12px;border-color:var(--app-border);border-radius:11px;background:var(--app-surface);color:var(--app-text);font-size:14px}
.filters .dp-trigger,.report-filters .dp-trigger{min-height:40px;padding:8px 12px;font-size:14px}
.dp-trigger:not(.is-empty) .dp-value{font-weight:550;color:var(--app-text)}
.dp-trigger:hover{border-color:var(--app-accent);background:var(--app-surface-alt)}
.dp-trigger[aria-expanded=true]{border-color:var(--app-accent)}
.dp-trigger.is-empty .dp-value,.dp-icon{color:var(--app-muted)}
.dp-dialog{padding:18px;border-color:var(--app-border);border-radius:18px;background:var(--app-surface);box-shadow:0 18px 55px #2133291a}
.dp-dialog::backdrop{background:#21332940;backdrop-filter:blur(2px)}
.dp-header{margin-bottom:12px}
.dp-header select,.dp-field .dp-header select{min-height:38px;border-radius:10px;background-color:var(--app-surface-alt);color:var(--app-text);font-size:14px}
.dp-prev,.dp-next{min-height:38px;height:38px;border-radius:10px;background:var(--app-surface);color:var(--app-accent-strong)}
.dp-prev:hover,.dp-next:hover{background:var(--app-surface-alt);border-color:var(--app-border)}
.dp-weekdays{color:var(--app-muted);font-size:12px}
.dp-day{border-radius:10px;background:var(--app-surface);color:var(--app-text);font-size:15px}
.dp-day.is-selected{background:var(--app-accent-strong);border-color:var(--app-accent-strong);color:#fff}
.dp-day:hover:not(:disabled):not(.is-selected){background:var(--app-accent-soft)}
.dp-day.is-outside:not(.is-selected){color:var(--app-muted)}
.dp-day.is-today{border-color:var(--app-accent)}
.dp-day:disabled{color:#a9b0ab}
.dp-day:focus-visible{outline-color:var(--app-accent)}
.dp-actions{gap:7px;margin-top:12px;padding-top:12px}
.dp-actions button{min-height:38px;padding:8px 11px;border-radius:10px;background:var(--app-surface);color:var(--app-accent-strong);font-size:13px}
.dp-actions button:hover{background:var(--app-surface-alt);border-color:var(--app-accent)}
.dp-actions .dp-cancel{color:var(--app-muted)}
.dp-error{color:var(--app-danger)}

/* Access and account forms use the same density without hiding any controls. */
.dialog{max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
.password-control input{padding-inline-end:46px}
.password-control button{right:4px;top:50%;width:34px;height:34px;transform:translateY(-50%);display:grid;place-items:center}
.checkbox-field input{accent-color:var(--app-accent)}
.session-controls{margin-top:18px;padding-top:16px}
.session-controls p{font-size:13px;margin:6px 0 12px}
.account-removal h3{color:var(--app-danger)}
.auth-step{max-width:500px;margin:18px auto 32px;padding:20px}
.auth-step h1{font-size:25px;letter-spacing:-.7px}
.auth-step .muted{font-size:13px;margin-top:8px;margin-bottom:18px}
.secret{padding:12px 14px;border-radius:11px;background:var(--app-surface-alt);font-size:14px;letter-spacing:1px}
.recovery-codes{margin:16px 0;font-size:14px}
.recovery-codes code{background:var(--app-surface-alt);border-radius:9px}
.user-table{min-width:520px}
.user-table strong{font-size:14px;overflow-wrap:anywhere}
.placeholder{display:grid;grid-template-columns:36px minmax(0,1fr);gap:7px 14px;max-width:720px;margin:0 0 24px;padding:18px;text-align:left}
.placeholder-icon{grid-row:1/4;width:36px;height:36px;margin:0;border-radius:11px;background:var(--app-surface-alt);color:var(--app-accent)}
.placeholder-icon svg{width:21px;height:21px}
.placeholder h2{font-size:20px}
.placeholder p{font-size:13px;margin:0;max-width:none}
.placeholder>.button{grid-column:2;justify-self:start;margin-top:5px}

@media(max-width:760px){
 .report-section-title .field input,.av-table-search .field input{min-height:44px;font-size:16px}
 .ch-legend .ch-legend-button{min-height:44px}
 .ch-details summary{min-height:44px}
}
@media(max-width:600px){
 .ch-card{padding:15px;border-radius:14px}
 .ch-heading h2{font-size:18px}
 .ch-layout{gap:12px}
 .ch-notes{font-size:12px}
 .dp-trigger,.filters .dp-trigger,.report-filters .dp-trigger{min-height:44px;padding:10px 11px;font-size:16px}
 .dp-dialog{padding:14px 12px max(14px,env(safe-area-inset-bottom));border-radius:16px}
 .dp-header{grid-template-columns:38px minmax(0,1.5fr) minmax(70px,.9fr) 38px;gap:5px}
 .dp-header select,.dp-field .dp-header select{min-height:44px;font-size:16px}
 .dp-prev,.dp-next{width:38px;height:44px;min-height:44px}
 .dp-day{min-height:44px}
 .dp-actions button{min-height:44px}
 .dialog .checkbox-field{min-height:44px}
 .auth-step{margin:12px auto 24px;padding:14px}
 .placeholder{padding:14px;gap:7px 11px;margin:0 0 20px}
 .placeholder h2{font-size:19px}
 .placeholder>.button{min-height:44px;white-space:normal}
 .user-table .button{min-height:44px}
}
@media(prefers-reduced-motion:no-preference){
 .ch-legend-button,.ch-ranked-row,.dp-trigger,.dp-day,.dp-prev,.dp-next,.dp-actions button{transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}
 .ch-details summary::before{transition:transform .16s ease}
}
