/* Shared AMV interface. Scoped to the authenticated portal and customer workspace. */
.amv-professional-ui {
  --ui-ink:#172c24; --ui-muted:#52685f; --ui-border:#dce6e0; --ui-green:#08794a;
  --ui-nav:#102f25; --ui-surface:#fff; --ui-background:#f4f7f5;
  --ui-shadow:0 2px 8px #133a2610;
  font-family:system-ui,"Segoe UI",Tahoma,Arial,sans-serif;
  font-size:16px; color:var(--ui-ink); background:var(--ui-background);
}
.amv-professional-ui :where(button,input,select,textarea) {font:inherit;}
.amv-professional-ui :where(button,a,input,select,textarea,summary):focus-visible {outline:3px solid #08794a;outline-offset:3px;}
.amv-professional-ui :where(button,a,summary) {scroll-margin-block:150px 100px;}
.amv-professional-ui :where(input,select,textarea) {scroll-margin-block:190px 120px;}
.amv-professional-ui .side {background:var(--ui-nav);box-shadow:none;border-inline-end:1px solid #315246;}
.amv-professional-ui .side .nav-section {color:#bfd1c7;font-size:11px;letter-spacing:.06em;}
.amv-professional-ui .side .nav-icon {width:22px;height:22px;min-width:22px;background:none!important;border:0!important;border-radius:0;box-shadow:none!important;}
.amv-professional-ui .side .nav-icon::before,.amv-professional-ui .side .nav-icon::after {display:none!important;}
.amv-professional-ui .side .nav-icon svg {width:22px;height:22px;display:block;}
.amv-professional-ui .side .nav-label {font-size:14px;font-weight:550;line-height:1.4;}
.amv-professional-ui .side .nav-link {color:#e5efe9;}
.amv-professional-ui .side .nav-link.active {color:white;}
.amv-professional-ui .side .side-brand,.amv-professional-ui .side .account-box {background:#173c2d;border-color:#365a49;box-shadow:none;}
.amv-professional-ui .sidebar :where(.nav-link,.sidebar-user,.sidebar-session) {font-family:inherit;}
.amv-professional-ui .nav-link {min-height:42px;font-size:14px;font-weight:550;border-radius:8px;box-shadow:none;}
.amv-professional-ui .nav-link.active {background:#214b39;color:#fff;border-color:#70a28a;box-shadow:inset 3px 0 #e8dd50;}
.amv-professional-ui .sidebar .nav-group-label {color:#b4cbbc;letter-spacing:.06em;font-size:11px;}
.amv-professional-ui .nav-link .module-icon {width:24px;height:24px;min-width:24px;box-shadow:none;background-color:transparent;border:0;}
.amv-professional-ui .topbar {padding:18px 22px;gap:12px;background:var(--ui-surface);border-bottom:1px solid var(--ui-border);box-shadow:none;}
.amv-professional-ui #pageTitle {font-size:26px;line-height:1.25;margin:0;color:var(--ui-ink);}
.amv-professional-ui #pageSubtitle {font-size:14px;line-height:1.5;color:var(--ui-muted);margin-top:5px;}
.amv-professional-ui #pageKicker {color:var(--ui-muted);font-size:11px;letter-spacing:.07em;}
.amv-professional-ui .view {padding-block:20px;}
.amv-professional-ui :where(.view,.workspace-content) :where(h2,h3) {font-family:inherit;color:var(--ui-ink);line-height:1.35;}
.amv-professional-ui :where(.view,.workspace-content) h2 {font-size:21px;}
.amv-professional-ui :where(.view,.workspace-content) h3 {font-size:17px;}
.amv-professional-ui :where(.view,.workspace-content) :where(p,label,small) {line-height:1.55;}
.amv-professional-ui :where(.view,.workspace-content) :where(.kicker,.section-kicker) {color:var(--ui-green);font-size:12px;letter-spacing:.04em;}
.amv-professional-ui :where(.view,.workspace-content) :where(.panel,.table-card,.metric,.file-action-card) {border:1px solid var(--ui-border);border-radius:12px;box-shadow:var(--ui-shadow);background:var(--ui-surface);}
.amv-professional-ui :where(.primary-button,.secondary-button,.text-button,.icon-button) {font-family:inherit;font-size:14px;line-height:1.35;min-height:40px;border-radius:8px;box-shadow:none;transition:background-color .12s,color .12s;}
.amv-professional-ui .primary-button {background:#e9df52;color:#15291e;border:1px solid #c9be32;font-weight:650;}
.amv-professional-ui .primary-button:hover:not(:disabled) {background:#f0e66e;}
.amv-professional-ui .secondary-button {background:#fff;color:#185137;border:1px solid #bfd2c6;font-weight:600;}
.amv-professional-ui .text-button {color:#185137;}
.amv-professional-ui .icon-button {min-width:40px;}
.amv-professional-ui .quiet-context-action {font-size:13px;background:transparent;border-color:transparent;}
.amv-professional-ui :where(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea) {min-height:42px;border-radius:8px;font-size:15px;box-shadow:none;}
.amv-professional-ui :where(.view,.workspace-content) :where(th,td) {font-size:14px;line-height:1.45;padding:12px;}
.amv-professional-ui :where(.view,.workspace-content) th {font-size:12px;letter-spacing:.03em;color:var(--ui-muted);background:#f2f6f3;}
.amv-professional-ui .table-card {overflow-x:auto;max-width:100%;}
.amv-professional-ui .customer-name-action {font:650 16px/1.4 system-ui,"Segoe UI",Tahoma,sans-serif;}
.amv-professional-ui .customer-filter-summary {font-size:13px;}
.amv-professional-ui .customer-register-filters {padding:14px;gap:12px;border:1px solid var(--ui-border);background:#fff;box-shadow:none;}
.amv-professional-ui .module-details {border:1px solid var(--ui-border);border-radius:10px;background:#fff;margin:0 0 16px;overflow:clip;}
.amv-professional-ui .module-details>summary {cursor:pointer;padding:13px 16px;font-size:14px;font-weight:600;color:#244b38;}
.amv-professional-ui .module-details>summary:hover {background:#f1f6f3;}
.amv-professional-ui .module-details>div,.amv-professional-ui .module-details>section {margin:0;padding:16px;border:0;box-shadow:none;}
.amv-professional-ui .orders-scope-panel {margin-bottom:0;}
.amv-professional-ui :where(.customer-application-workflow,.signature-workflow,.customer-workflow-strip) {box-shadow:none;}
.amv-professional-ui .is-system-tap-loading::after {display:none!important;}
.amv-professional-ui .is-system-pressed {transform:none!important;}
.amv-professional-ui .skip-content {position:fixed;inset-block-start:-100px;inset-inline-start:16px;z-index:100000;padding:12px 18px;background:#fff;color:#164b32;border:2px solid #08794a;}
.amv-professional-ui .skip-content:focus {inset-block-start:10px;}
.amv-professional-ui #customerWorkspace {width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:none;max-width:none;padding:0;border:1px solid #c6dbcd;border-radius:12px;color:var(--ui-ink);background:#f7faf8;overflow:hidden;box-shadow:0 16px 64px #102f2540;}
#customerWorkspace[open] {display:flex;flex-direction:column;}
#customerWorkspace::backdrop {background:#0b211c88;}
.workspace-head {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 20px 10px;background:#fff;border-bottom:1px solid var(--ui-border);flex-shrink:0;}
.workspace-eyebrow {font-size:10px;letter-spacing:.1em;font-weight:650;color:#52685f;}
#workspaceTitle {font-size:20px;line-height:1.25;margin:2px 0 3px;}
#workspaceFund {font-size:12px;margin:0;color:#52685f;}
.workspace-head-actions {display:flex;align-items:center;gap:16px;}
#workspaceSaveState {font-size:12px;color:#52685f;max-width:220px;}
#workspaceSaveState[data-state=saved] {color:#08794a;}
#workspaceSaveState[data-state=dirty] {color:#805613;}
.workspace-navigation {background:#fff;padding:8px 20px;flex-shrink:0;border-bottom:1px solid var(--ui-border);}
.workspace-navigation ol {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));list-style:none;gap:8px;padding:0;margin:0;}
.workspace-navigation button {display:flex;align-items:center;gap:9px;width:100%;min-height:54px;padding:8px 10px;text-align:start;border:1px solid #dce6e0;border-radius:10px;background:#f8faf9;color:#52685f;cursor:pointer;}
.workspace-navigation strong {display:block;font-size:13px;line-height:1.3;}
.workspace-navigation small {display:block;font-size:10px;line-height:1.3;margin-top:2px;}
.workspace-step-number {display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;border:1px solid #c6d7ce;font-size:13px;font-weight:650;}
.workspace-navigation .is-current button {background:#fffbe7;border-color:#cdbf4c;color:#554408;}
.workspace-navigation .is-complete button {background:#eef8f1;border-color:#a9d2b9;color:#176338;}
.workspace-navigation .is-complete .workspace-step-number {color:#fff;background:#08794a;border-color:#08794a;}
.workspace-navigation button[aria-disabled=true] {color:#6b7d73;cursor:help;}
.workspace-notice {margin:0;padding:10px 24px;background:#fff8df;color:#684614;font-size:14px;flex-shrink:0;}
.workspace-content {overflow:auto;overscroll-behavior:contain;flex:1;min-height:0;scrollbar-gutter:stable;padding:12px 16px;}
#customerWorkspace .workspace-panel[open] {display:block!important;position:static!important;inset:auto!important;transform:none!important;width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;overflow:visible!important;background:transparent!important;}
#customerWorkspace .workspace-panel:not([open]) {display:none!important;}
#customerWorkspace :is(#customerIntakeWorkflow,#customerFilesWorkflowOverview,#customerFilesMeta) {display:none!important;}
#customerWorkspace #customerDialog>.dialog-head,#customerWorkspace #customerForm>.dialog-head,#customerWorkspace #signatureDialog>.dialog-head {display:none;}
#customerWorkspace #customerFilesDialog .customer-folder-dialog-head h2,#customerWorkspace #customerFilesDialogSubtitle,#customerWorkspace #closeCustomerFilesDialog {display:none;}
#customerWorkspace #customerFilesDialog>.dialog-head {position:static;background:transparent;border:0;justify-content:flex-end;padding:0 0 12px;}
#customerWorkspace :is(.files-dialog-body,.signature-body,.customer-form-pages) {padding:0;max-height:none;overflow:visible;}
#customerWorkspace .customer-form-pages {display:block;}
#customerWorkspace #customerForm>menu {position:sticky;bottom:-12px;z-index:3;background:#fff;border-top:1px solid var(--ui-border);padding:10px 0;margin:12px 0 -12px;gap:10px;}
#customerWorkspace .customer-step-actions {display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px;}
#customerWorkspace .customer-form-page {box-shadow:none;background:white;border-color:var(--ui-border);padding:14px;}
#customerWorkspace .customer-family-page-preview {box-shadow:none;}
#customerWorkspace .family-page-preview {padding:10px;box-shadow:none;margin-bottom:10px;}
#customerWorkspace .family-people-panel {margin-top:8px;}
#customerWorkspace .family-roster-toolbar {padding:2px 0 6px;margin:0;}
#customerWorkspace .family-roster-copy small {display:none;}
#customerWorkspace .family-step-grid {display:grid!important;gap:8px;margin:0;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));align-items:start;}
#customerWorkspace .family-step-item {min-height:0;max-width:none;padding:6px;border-radius:8px;box-shadow:none;}
#customerWorkspace .family-step-tab {min-height:48px;padding:6px;box-shadow:none;}
#customerWorkspace .family-step-tab strong {font-size:13px;line-height:1.25;}
#customerWorkspace .family-step-tab small {font-size:11px;line-height:1.3;}
#customerWorkspace .family-step-controls {padding:3px 7px 5px;margin:0;font-size:12px;}
/* Role controls need their own full-width row, also when validation adds a note. */
#customerWorkspace .family-step-item {min-width:0;}
#customerWorkspace .family-step-role {display:flex;flex-direction:column;align-items:stretch;gap:4px;min-width:0;margin:6px 3px;padding:6px;}
#customerWorkspace .family-step-role>span {white-space:normal;text-transform:none;font-size:11px;}
#customerWorkspace .family-step-role select {position:static;display:block;min-height:38px;width:100%;max-width:100%;min-width:0;font-size:13px;font-weight:500;}
#customerWorkspace .family-step-role :is(small,.family-field-feedback) {min-width:0;overflow-wrap:anywhere;}
.family-role-status {margin:8px 4px;color:#315b4e;font-size:13px;}
#customerWorkspace .family-person-avatar {height:28px;width:28px;min-width:28px;}
#customerWorkspace .customer-section-tabs {gap:6px;}
#customerWorkspace .customer-section-tabs button {min-height:40px;padding:8px 10px;font-size:13px;}
#customerWorkspace .customer-page-dots {display:none;}
#customerWorkspace .signature-workflow {display:none;}
#customerWorkspace[data-stage="2"] #signedContractSendCard {display:none!important;}
#customerWorkspace[data-stage="4"] .signature-body>:not(#signedContractSendCard):not(#signatureSendStatus):not(#workspaceDeliverySummary) {display:none!important;}
#workspaceDeliverySummary {padding:18px;background:#fff;border:1px solid var(--ui-border);border-radius:12px;margin-bottom:16px;}
#workspaceDeliverySummary h3 {margin-top:0;}
#workspaceDeliverySummary ul {padding-inline-start:22px;font-size:14px;}
.workspace-next-action {display:flex;justify-content:flex-end;margin-top:16px;}
.amv-professional-ui [hidden] {display:none!important;}
@media(max-width:900px) {
  .amv-professional-ui .topbar {padding:14px;flex-wrap:wrap;}
  .amv-professional-ui #pageTitle {font-size:23px;}
  .workspace-navigation small {display:none;}
  .workspace-navigation button {padding:10px 6px;min-height:56px;gap:6px;}
  .workspace-navigation strong {font-size:12px;}
}
@media(max-width:600px) {
  .amv-professional-ui #customerWorkspace {width:100vw;height:100dvh;border:0;border-radius:0;}
  .workspace-head {padding:12px;gap:8px;align-items:flex-start;}
  .workspace-head-actions {flex-direction:column-reverse;gap:4px;align-items:flex-end;}
  #workspaceTitle {font-size:18px;}
  #workspaceSaveState {font-size:11px;}
  .workspace-navigation {padding:8px;}
  .workspace-navigation ol {gap:4px;}
  .workspace-navigation button {flex-direction:column;justify-content:center;min-height:70px;padding:6px 2px;}
  .workspace-navigation strong {font-size:10px;overflow-wrap:anywhere;}
  .workspace-content {padding:12px;}
  #customerWorkspace #customerForm>menu {bottom:-12px;margin-bottom:-12px;}
  #customerWorkspace .customer-step-actions {justify-content:flex-start;}
  #customerWorkspace .customer-save-status {flex-basis:100%;}
  #customerWorkspace :where(.customer-form-page,.form-grid,.customer-folder-upload,.customer-file-groups) {grid-template-columns:minmax(0,1fr);}
  #customerWorkspace .family-step-grid {grid-template-columns:minmax(0,1fr);}
  #customerWorkspace .customer-section-tabs {grid-template-columns:repeat(2,minmax(0,1fr));}
  .amv-professional-ui :where(.primary-button,.secondary-button,.text-button,.icon-button) {min-height:44px;}
  .amv-professional-ui .topbar :where(input,button) {max-width:100%;}
  .amv-professional-ui .view {min-width:0;}
}

.amv-professional-ui #moduleLoadStatus {display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 22px 0;padding:12px 16px;border:1px solid #e9afad;border-radius:10px;background:#fff1f1;color:#842820;font-size:14px;}

/* Override legacy branded icon and gradient rules at their existing specificity. */
.amv-professional-ui .side {background:var(--ui-nav)!important;background-image:none!important;}
.amv-professional-ui .side .nav-icon {color:inherit!important;width:22px!important;height:22px!important;min-width:22px!important;}
.amv-professional-ui .customer-details-toggle {background:#fff!important;color:#185137!important;border:1px solid #bfd2c6!important;font-size:14px!important;box-shadow:none!important;}
.amv-professional-ui #addCustomerButton {background:#e9df52!important;color:#15291e!important;border-color:#c9be32!important;}
@media(max-width:600px){.amv-professional-ui #moduleLoadStatus {margin:12px;flex-wrap:wrap;}}

.amv-professional-ui .main {min-width:0;}
.amv-professional-ui .topbar {flex-wrap:wrap;align-items:center;}
.amv-professional-ui .topbar>div:first-child {flex:1 1 220px;min-width:200px;}
.amv-professional-ui .topbar .top-actions {display:flex;flex:2 1 560px;flex-wrap:wrap;gap:10px;justify-content:flex-end;min-width:0;}
.amv-professional-ui .topbar .search {flex:1 1 220px;max-width:340px;min-width:150px;}
.amv-professional-ui .side .account-actions .text-button {color:#e5efe9!important;}
.amv-professional-ui .mini-action {font:600 13px/1.4 system-ui,Segoe UI,Tahoma,sans-serif;min-height:36px;}
@media(max-width:600px){.amv-professional-ui .topbar .top-actions{flex-basis:100%;justify-content:flex-start;}.amv-professional-ui .topbar .search{max-width:none;flex-basis:100%;}}

.amv-professional-ui .overview-command-center h2 {color:#fff;}
/* Compact phone workspace: one scroll area and a reachable, small action bar. */
@media(max-width:600px) {
  #customerWorkspace .workspace-head>div:first-child {min-width:0;flex:1;}
  #customerWorkspace .workspace-head-actions {flex:0 0 116px;min-width:0;}
  #customerWorkspace #workspaceFund {overflow-wrap:anywhere;}
  #customerWorkspace #workspaceSaveState {max-width:116px;text-align:end;white-space:normal;}
  #customerWorkspace #customerForm {padding:0;gap:12px;}
  #customerWorkspace #customerForm>menu {display:grid;grid-template-columns:1fr;gap:4px;padding:8px 0;}
  #customerWorkspace #customerForm>menu>.text-button {grid-row:2;justify-self:center;min-height:32px;padding:4px 10px;}
  #customerWorkspace .customer-step-actions {width:100%;gap:6px;}
  #customerWorkspace .customer-step-actions>button {padding:8px;font-size:13px;flex:1 1 auto;min-width:0;}
  #customerWorkspace .customer-save-status:empty {display:none;}
  #customerWorkspace .workspace-content {scroll-padding-block:12px 132px;}
}
@media(max-width:760px) {
  .amv-professional-ui .side {position:relative!important;inset:auto!important;width:100%!important;min-width:0!important;height:auto!important;max-height:none!important;padding:10px!important;}
  .amv-professional-ui .side-brand {padding:8px;min-height:0;}
  .amv-professional-ui .side-brand .brand-logo {width:36px;height:36px;}
  .amv-professional-ui .side .backend-status {margin:4px 0;padding:7px 10px;}
  .amv-professional-ui .side-nav {width:100%;min-width:0;max-height:none;overflow-x:auto;}
  .amv-professional-ui #customersView .customer-identity-cell {display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;gap:10px!important;padding:12px!important;min-width:0!important;}
  .amv-professional-ui #customersView .customer-identity-cell>.avatar {grid-column:1;grid-row:1;}
  .amv-professional-ui #customersView .customer-identity-cell>.customer-one-line-summary {grid-column:2;grid-row:1;display:flex!important;flex-direction:column!important;gap:6px!important;width:auto!important;min-width:0!important;overflow:visible!important;}
  .amv-professional-ui #customersView .customer-one-line-person {width:100%!important;min-width:0!important;max-width:100%!important;overflow:visible!important;}
  .amv-professional-ui #customersView .customer-one-line-name-row {width:100%;min-width:0;flex-wrap:wrap;}
  .amv-professional-ui #customersView .customer-name-action {max-width:100%;min-height:36px;white-space:normal!important;text-align:start;}
  .amv-professional-ui #customersView .customer-one-line-name {white-space:normal!important;overflow-wrap:anywhere;}
  .amv-professional-ui #customersView .customer-payment-status {grid-column:1 / -1;grid-row:2;justify-self:start;position:static!important;}
  .amv-professional-ui #customersView .customer-details-toggle {grid-column:2;grid-row:2;justify-self:end;position:static!important;min-height:40px;}
}
@media(max-width:600px){.amv-professional-ui #customerWorkspace {width:100%;max-width:100%;}}
.workspace-navigation button[aria-current="step"] {outline:2px solid #54765f;outline-offset:2px;}

/* Customer identity and transfer occupy the first line; metadata has its own
   wrapping line. Payment and the open action never cover clipped status text. */
.amv-professional-ui #customersView .customer-identity-cell{grid-template-columns:42px minmax(0,1fr) auto auto;gap:12px;align-items:center;}
.amv-professional-ui #customersView .customer-identity-cell>.customer-one-line-summary{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(0,2fr);gap:7px 16px;overflow:visible;white-space:normal;}
.amv-professional-ui #customersView .customer-one-line-person{grid-column:1;grid-row:1 / 3;width:auto;min-width:0;max-width:none;}
.amv-professional-ui #customersView .customer-one-line-name-row{flex-wrap:wrap;gap:4px 8px;}
.amv-professional-ui #customersView .customer-summary-meta{grid-column:2;display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0;}
.amv-professional-ui #customersView .customer-summary-meta>*{max-width:100%;white-space:normal;overflow-wrap:anywhere;}
.amv-professional-ui #customersView .customer-fund-transition--inline{grid-column:2;min-width:0;width:100%;max-width:100%;}
.amv-professional-ui #customersView .customer-fund-transition--inline .customer-fund-side{min-width:0;}
.amv-professional-ui #customersView .customer-payment-status{position:static;min-width:94px;white-space:normal;}
.amv-professional-ui #customersView .customer-details-toggle{position:static;min-height:40px;white-space:nowrap;}
@media(max-width:1150px){
 .amv-professional-ui #customersView .customer-identity-cell>.customer-one-line-summary{grid-template-columns:minmax(0,1fr);}
 .amv-professional-ui #customersView .customer-one-line-person{grid-column:1;grid-row:auto;}
 .amv-professional-ui #customersView .customer-summary-meta,.amv-professional-ui #customersView .customer-fund-transition--inline{grid-column:1;}
}
@media(max-width:760px){
 .amv-professional-ui #customersView .customer-one-line-summary>*{flex:none!important;}
 .amv-professional-ui #customersView .customer-summary-meta{width:100%;}
 .amv-professional-ui #customersView .customer-fund-transition--inline{grid-template-columns:minmax(0,1fr);gap:8px;padding:10px;}
 .amv-professional-ui #customersView .customer-fund-transfer-mid{justify-content:center;}
}

/* Local design preview, September 2026. Presentation only; all existing controls retained. */
.amv-professional-ui {--ui-ink:#10294b;--ui-muted:#62748d;--ui-border:#dde7f1;--ui-green:#087e90;--ui-nav:#102a46;--ui-background:#f4f8fc;--ui-shadow:0 2px 10px #18365206;}
.amv-professional-ui .side {background:linear-gradient(165deg,#071528 0%,#091e36 55%,#062d40 100%);border-color:#213d59;}
.amv-professional-ui .side .side-brand,.amv-professional-ui .side .account-box {background:transparent;border-color:#2c435e;}
.amv-professional-ui .side .nav-section {color:#a6c1dc;font-size:10px;letter-spacing:.055em;}
.amv-professional-ui .side .nav-label {font-size:13px;font-weight:450;}
.amv-professional-ui .side .nav-link {min-height:34px;padding-block:7px;color:#e7f0f9;border-radius:6px;}
.amv-professional-ui .side .nav-link.active {background:#087a8f;border-color:transparent;box-shadow:inset 3px 0 #32c5d5;}
.amv-professional-ui .side .nav-link:hover {background:#1c4965;}
.amv-professional-ui .side .nav-group {gap:2px;margin-block:8px;}
.amv-professional-ui .side .nav-icon,.amv-professional-ui .side .nav-icon svg {width:20px;height:20px;min-width:20px;}
.amv-professional-ui .main {background:#f4f8fc;}
.amv-professional-ui .primary-button {background:#087f90;color:white;border-color:#087f90;}
.amv-professional-ui .primary-button:hover:not(:disabled) {background:#056577;}
.amv-professional-ui .secondary-button {color:#086c80;border-color:#bdd2df;}
.amv-professional-ui .text-button {color:#086c80;}
.amv-professional-ui :where(button,a,input,select,textarea,summary):focus-visible {outline-color:#008ba1;}
.amv-professional-ui .workspace-navigation .is-current button {background:#e9f8fb;border-color:#0993a6;color:#075c70;}
.amv-professional-ui .workspace-navigation button[aria-current="step"] {outline-color:#0993a6;}
.amv-professional-ui .customer-ki-disclosure {background:#edf8fb;border-color:#b4dce5;}
.amv-professional-ui .customer-ki-disclosure>summary {color:#075f76;}
.amv-professional-ui .main {background:#f4f8fc;}
.amv-professional-ui:has(#overviewView.active) .topbar {background:white;border:1px solid var(--ui-border);border-radius:8px;padding:12px 18px;margin-bottom:20px;}
.amv-professional-ui:has(#overviewView.active) #pageTitle {font-size:19px;margin-bottom:6px;}
.amv-professional-ui:has(#overviewView.active) .top-actions {flex-basis:580px;}
.amv-professional-ui:has(#overviewView.active) .search {background:#f4f7fc;border-color:#d1deec;}
.amv-professional-ui #overviewView {display:none;}
.amv-professional-ui #overviewView.active {display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);gap:18px;padding-top:0;}
.amv-professional-ui #overviewView .overview-command-center {grid-column:1/-1;background:none;border:0;border-radius:0;padding:4px 0 12px;margin:0;box-shadow:none;}
.amv-professional-ui #overviewView .overview-command-copy h2 {font-size:30px;color:#10294b;font-weight:750;letter-spacing:-.025em;}
.amv-professional-ui #overviewView .overview-command-copy p {font-size:15px;color:#526987;margin-top:8px;}
.amv-professional-ui #overviewView #overviewAddCustomerButton {background:#087f90;color:#fff;border-color:#087f90;}
.amv-professional-ui #overviewView .overview-command-actions .secondary-button {border-color:#bdd2df;color:#086c80;background:white;}
.amv-professional-ui #overviewView .overview-workspace-grid {display:contents;}
.amv-professional-ui #overviewView .overview-priority-panel {grid-column:1/-1;background:none;padding:0;border:0;}
.amv-professional-ui #overviewView .overview-priority-panel>.overview-panel-heading {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
.amv-professional-ui #overviewView .overview-priority-list {grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:14px;}
.amv-professional-ui #overviewView .overview-priority-item {grid-template-columns:42px minmax(0,1fr);gap:10px;padding:16px 12px;border:1px solid #cce5ed;border-radius:8px;background:#effbfe;min-height:104px;align-content:center;}
.amv-professional-ui #overviewView .overview-priority-item:nth-child(2n) {background:#fffaf0;border-color:#eee0c2;}
.amv-professional-ui #overviewView .overview-priority-item:nth-child(4) {background:#fff3f5;border-color:#f0dce2;}
.amv-professional-ui #overviewView .overview-priority-number {font-size:28px;min-width:42px;background:none;color:#122f50;}
.amv-professional-ui #overviewView .overview-priority-copy strong {color:#18334f;font-size:13px;}
.amv-professional-ui #overviewView .overview-priority-copy small {font-size:11px;color:#65748a;}
.amv-professional-ui #overviewView .overview-action-label {grid-column:2;color:#08788e;font-size:11px;}
.amv-professional-ui #overviewView .panel {border-color:var(--ui-border);border-radius:8px;}
.amv-professional-ui #overviewView .overview-panel-heading h2 {color:#10294b;font-size:18px;}
.amv-professional-ui #overviewView .overview-quick-actions strong {color:#1c3553;}
.amv-professional-ui #overviewView .overview-quick-actions small {color:#63758c;}
.amv-professional-ui #overviewView .overview-line-icon {color:#087e90;}
.overview-preview-note {font-size:11px;color:#667994;margin:-5px 0 12px;}
.overview-table-scroll {overflow:auto;}
.overview-table-scroll table {width:100%;border-collapse:collapse;}
.amv-professional-ui #overviewView .overview-table-scroll :is(th,td) {padding:12px 9px;font-size:12px;border-bottom:1px solid #e4ebf3;text-align:start;}
.amv-professional-ui #overviewView .overview-table-scroll th {background:#f4f7fc;color:#62758f;font-weight:550;}
.overview-table-scroll small {display:block;font-size:10px;color:#72819a;margin-top:4px;}
.overview-case-status {display:inline-block;padding:6px 8px;background:#edf6fa;border-radius:6px;color:#08657b;font-size:11px;}
.amv-professional-ui #overviewView .overview-table-scroll button {font-size:11px;min-height:34px;padding:7px 10px;white-space:nowrap;}
.overview-activity-list {list-style:none;padding:0;margin:0;}
.overview-activity-list li {display:grid;grid-template-columns:110px 1fr;gap:16px;padding:13px 0;border-bottom:1px solid #edf1f7;font-size:12px;}
.overview-activity-list time {color:#6b7f98;font-size:11px;}
.overview-activity-list div {border-inline-start:2px solid #26a4b1;padding-inline-start:14px;}
.overview-activity-list small {display:block;margin-top:5px;color:#62748d;}
.amv-professional-ui #overviewView #kassenweckerPanel {margin:0;}
.amv-professional-ui #overviewView .kassenwecker-item {grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
.amv-professional-ui #overviewView .kassenwecker-item>:last-child {grid-column:1/-1;}
.amv-professional-ui #overviewView :is(.overview-team-flow,.planning-archive) {grid-column:1/-1;margin:0;}
@media(max-width:1100px) {
 .amv-professional-ui #overviewView.active {grid-template-columns:minmax(0,1fr);}
 .amv-professional-ui #overviewView .overview-command-copy h2 {font-size:25px;}
}
@media(max-width:600px) {
 .amv-professional-ui #overviewView .overview-priority-list {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 .amv-professional-ui #overviewView .overview-priority-item {grid-template-columns:1fr;padding:12px;}
 .amv-professional-ui #overviewView .overview-action-label {grid-column:1;}
 .amv-professional-ui #overviewView .overview-command-actions {flex-wrap:wrap;}
 .overview-activity-list li {grid-template-columns:85px 1fr;gap:8px;}
}

.amv-professional-ui .side .side-nav {gap:4px;scrollbar-color:#497187 transparent;}
.amv-professional-ui .side .nav-group {padding-top:4px;margin-block:3px;}
.amv-professional-ui .side .nav-section {margin-block:4px;}
.amv-professional-ui .side .nav-link {min-height:32px;}
.amv-professional-ui .side {gap:8px;padding:12px;}
.amv-professional-ui .side .account-box {padding:10px;}

/* Shared authenticated navigation. Only overview content/toolbar depend on its active view. */
@media(min-width:901px){
 body.amv-professional-ui:not(.locked) .portal-shell {display:grid!important;grid-template-columns:236px minmax(0,1fr)!important;direction:ltr!important;}
 body.amv-professional-ui:not(.locked) .side {position:sticky!important;top:0;grid-column:1!important;grid-row:1!important;transform:none!important;width:236px!important;height:100dvh;padding:12px 10px!important;gap:6px;direction:ltr!important;background:#102b47!important;box-shadow:none!important;border:0!important;}
 body.amv-professional-ui:not(.locked) .main {grid-column:2!important;grid-row:1!important;min-width:0;margin:0!important;padding:0 22px 24px!important;direction:ltr!important;}
 body.amv-professional-ui:not(.locked) .side-nav {display:flex!important;flex-direction:column;gap:9px!important;overflow:auto;flex:1;min-height:0;padding:0!important;}
 body.amv-professional-ui:not(.locked) .nav-group:not([hidden]) {display:block!important;flex-shrink:0;margin:0!important;padding:0!important;border:0!important;}
 body.amv-professional-ui:not(.locked) .nav-section {display:block;padding:8px 10px 4px;margin:0!important;color:#b8d2ed;font-size:10px!important;line-height:14px;}
 body.amv-professional-ui:not(.locked) .side .nav-link {width:100%;height:32px!important;min-height:32px!important;padding:5px 12px!important;gap:12px;direction:ltr!important;text-align:left!important;background:transparent;box-shadow:none!important;border:0!important;border-radius:5px;}
 body.amv-professional-ui:not(.locked) .side .nav-link.active {background:#08788d!important;color:white;box-shadow:inset 3px 0 #00bed1!important;}
 body.amv-professional-ui:not(.locked) .side .nav-link::after {display:none;}
 body.amv-professional-ui:not(.locked) .side .nav-label {font-size:12px!important;line-height:18px!important;font-weight:400;}
 body.amv-professional-ui:not(.locked) .side-brand {height:60px!important;min-height:60px;padding:5px 10px!important;border:0!important;background:transparent!important;border-radius:0;box-shadow:none!important;}
 body.amv-professional-ui:not(.locked) .side-brand .brand-logo {display:none;}
 body.amv-professional-ui:not(.locked) .side-brand strong {font-size:21px!important;white-space:nowrap;letter-spacing:-.5px;}
 body.amv-professional-ui:not(.locked) .side-brand span {font-size:10px;color:#b8cfe5;}
 body.amv-professional-ui:not(.locked) #backendStatusBadge {display:none!important;}
 body.amv-professional-ui:not(.locked) .account-box {flex-shrink:0;margin:0;padding:6px!important;border:0!important;font-size:10px;}
 body.amv-professional-ui:not(.locked) .account-box>span,body.amv-professional-ui:not(.locked) .account-box>strong,body.amv-professional-ui:not(.locked) .account-box>small {display:none;}
 body.amv-professional-ui:not(.locked) .account-actions {margin:0;}
}
body.amv-professional-ui:not(.locked):has(#overviewView.active) .topbar {min-height:58px;margin:0 -22px 20px!important;width:calc(100% + 44px)!important;max-width:none!important;padding:8px 22px!important;background:white;border:0;border-bottom:1px solid #dfE7f1;border-radius:0;display:flex;direction:ltr;}
body.amv-professional-ui:not(.locked):has(#overviewView.active) .topbar>div:first-child {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);}
body.amv-professional-ui:not(.locked):has(#overviewView.active) .top-actions {width:100%!important;flex:1!important;display:flex;gap:16px;}
body.amv-professional-ui:not(.locked):has(#overviewView.active) .top-actions .search {order:0;max-width:800px!important;flex:1!important;border:1px solid #d1ddeb;background:#f6f8fc;border-radius:9px;min-height:36px;box-shadow:none;}
body.amv-professional-ui:not(.locked):has(#overviewView.active) .search input {min-height:34px;font-size:12px;background:transparent;}
body.amv-professional-ui:not(.locked):has(#overviewView.active) #refreshPortalButton {order:1;min-height:32px;font-size:11px;padding:5px 8px;}
.reference-account {display:none;}
body:not(.locked):has(#overviewView.active) .reference-account {display:flex;order:2;align-items:center;gap:10px;margin-left:auto;color:#10294b;}
.reference-account button {border:0;background:transparent;color:inherit;padding:4px;font-size:12px;cursor:pointer;}
#referenceProfile {display:flex;align-items:center;gap:9px;border-inline-start:1px solid #e1e8f1;padding-inline-start:18px;}
.reference-avatar {display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#e9f3ff;color:#1564a9;font-weight:650;flex-shrink:0;}
#referenceProfile .reference-avatar {background:#08798d;color:white;}
body.amv-professional-ui #overviewView.active {grid-template-columns:repeat(6,minmax(0,1fr));gap:18px;max-width:1600px;margin:auto;direction:ltr;}
body.amv-professional-ui #overviewView .overview-command-center {order:0;grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;min-height:72px;padding:0!important;}
body.amv-professional-ui #overviewView .overview-command-copy h2 {font-size:32px;line-height:1.2;font-weight:750;color:#102443;}
body.amv-professional-ui #overviewView .overview-command-copy p {font-size:17px;margin-top:7px;color:#244261;}
body.amv-professional-ui #overviewView .overview-command-actions>[data-shortcut=customers] {display:none;}
body.amv-professional-ui #overviewView #overviewAddCustomerButton {padding:10px 18px;font-size:14px;border-radius:7px;min-height:42px;}
.reference-metrics {order:1;grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;}
.reference-metric {display:flex;align-items:center;text-align:left;gap:16px;min-height:88px;padding:14px 12px;border-radius:7px;border:1px solid #d0eaf0;background:#f0fcff;color:#102b49;cursor:pointer;}
.reference-metric>span:nth-child(2) {display:grid;gap:2px;font-size:13px;}
.reference-metric strong {font-size:30px;line-height:1.2;}
.reference-metric b {margin-left:auto;font-size:25px;font-weight:400;}
.reference-metric-icon {width:50px;height:50px;border-radius:50%;background:#d6f4f6;color:#046e80;display:grid;place-items:center;flex-shrink:0;}
.reference-metric-icon svg {width:28px;height:28px;}
.reference-metric.metric-1,.reference-metric.metric-2 {border-color:#f0e3c7;background:#fffbf2;}
.metric-1 .reference-metric-icon,.metric-2 .reference-metric-icon {background:#fff0c9;color:#976214;}
.reference-metric.metric-3 {background:#fff4f5;border-color:#f2dce0;}
.metric-3 .reference-metric-icon {background:#ffdfe5;color:#a11231;}
.reference-scope-note {order:2;grid-column:1/-1;font-size:10px;color:#71839b;margin:-12px 0 -8px;}
body.amv-professional-ui #overviewView .overview-cases-panel {order:3;grid-column:span 4;min-height:365px;}
body.amv-professional-ui #overviewView .reference-handoffs {order:4;grid-column:span 2;min-height:365px;}
body.amv-professional-ui #overviewView #kassenweckerPanel {order:5;grid-column:span 3;min-height:260px;}
body.amv-professional-ui #overviewView .overview-activity-panel {order:6;grid-column:span 3;min-height:260px;}
body.amv-professional-ui #overviewView .reference-tools {order:7;grid-column:1/-1;}
body.amv-professional-ui #overviewView .overview-team-flow {order:8;grid-column:1/-1;}
body.amv-professional-ui #overviewView .planning-archive {order:9;grid-column:1/-1;}
body.amv-professional-ui #overviewView .panel {padding:14px;background:white;border:1px solid #dfe8f3;border-radius:7px;box-shadow:none;}
body.amv-professional-ui #overviewView .overview-panel-heading {margin-bottom:12px;}
body.amv-professional-ui #overviewView .overview-panel-heading h2 {font-size:17px;letter-spacing:-.02em;}
body.amv-professional-ui #overviewView .overview-panel-heading button {font-size:11px;min-height:24px;padding:2px;color:#066cba;}
.reference-fund {display:flex;align-items:center;gap:7px;min-width:105px;}
.reference-fund .fund-logo-wrap {width:28px!important;height:28px!important;min-width:28px!important;background:transparent;box-shadow:none;border:0;}
body.amv-professional-ui #overviewView .overview-table-scroll :is(th,td) {font-size:11px;padding:10px 6px;}
body.amv-professional-ui #overviewView .overview-table-scroll button {font-size:10px;min-height:30px;border-radius:5px;}
body.amv-professional-ui #overviewView .overview-table-scroll button.pending {background:#087f90;color:white;border-color:#087f90;}
.overview-case-status.pending {background:#dff8fa;color:#04687a;}
.overview-case-status.review {background:#fff0cc;color:#956009;}
.overview-case-status.error {background:#ffe1e7;color:#aa1237;}
.reference-handoff {display:flex;gap:12px;align-items:center;padding:18px 0;border-bottom:1px solid #e8eef5;font-size:12px;}
.reference-handoff>div {flex:1;}
.reference-handoff small {display:block;font-size:10px;color:#6e829b;margin-top:8px;}
.reference-empty {display:grid;justify-items:center;align-content:center;text-align:center;min-height:260px;color:#72839a;font-size:12px;}
.reference-empty>span {display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e9f6f4;color:#168774;font-size:22px;margin-bottom:16px;}
.reference-empty strong {color:#334e6d;font-size:14px;}
.reference-tools {border:1px solid #dfe8f3;border-radius:7px;background:white;}
.reference-tools>summary {cursor:pointer;padding:12px 16px;font-size:12px;color:#54718b;}
.amv-professional-ui #overviewView.active {width:100%!important;max-width:none!important;}
body.amv-professional-ui #overviewView #kassenweckerPanel {border-radius:7px!important;padding:14px!important;background:white!important;box-shadow:none!important;border:1px solid #dfe8f3!important;}
body.amv-professional-ui #overviewView #kassenweckerSummary {font-size:10px;max-width:60%;}
.reference-reminder-details {margin-top:16px;font-size:11px;color:#617a94;}
.reference-reminder-details>summary {cursor:pointer;padding:8px 0;}
.reference-bell {display:grid;place-items:center;min-width:30px;}
.amv-professional-ui #overviewView .overview-table-scroll table {min-width:0!important;width:100%;}
.amv-professional-ui #overviewView #referenceContactRows td {white-space:normal;}
body.amv-professional-ui:not(.locked) .side-brand strong {font-size:0!important;}
body.amv-professional-ui:not(.locked) .side-brand strong::after {content:'AMV / GKV NETZ';font-size:21px;font-weight:750;letter-spacing:-.5px;}
body.amv-professional-ui:not(.locked) .side-brand span {font-size:0!important;}
body.amv-professional-ui:not(.locked) .side-brand span::after {content:'Gemeinsam. Gesünder. Stark.';font-size:10px;font-weight:400;}
.overview-case-status.sent {background:#e4f5ed;color:#176644;}
body.amv-professional-ui:not(.locked) .side-nav {overflow-x:hidden!important;}
.reference-tools-content {display:grid;grid-template-columns:1.5fr 1fr;gap:16px;padding:12px;}
/* Richer sidebar color, retaining navigation layout and behavior. */
body.amv-professional-ui:not(.locked) .side {
 background:linear-gradient(165deg,#071528 0%,#091e36 55%,#062d40 100%)!important;
 border-right:1px solid #183d57!important;
}
body.amv-professional-ui:not(.locked) .side .nav-link {color:#f1f6ff!important;}
body.amv-professional-ui:not(.locked) .side .nav-section {color:#9cbcd9!important;}
body.amv-professional-ui:not(.locked) .side .nav-icon {color:#c8def4;}
body.amv-professional-ui:not(.locked) .side .nav-link:hover {background:#15334e!important;}
body.amv-professional-ui:not(.locked) .side .nav-link.active {
 background:linear-gradient(100deg,#007c91,#006074)!important;
 box-shadow:inset 3px 0 #35e0e7,0 3px 12px #0004!important;
 color:#fff!important;
}
body.amv-professional-ui:not(.locked) .side .nav-link.active .nav-icon {color:#fff;}
/* Cost notice remains visible at the point of use, before either KI start action. */
.amv-professional-ui .ki-price-always-visible {
 display:block;grid-column:1/-1;width:100%;box-sizing:border-box;
 margin:8px 0;padding:16px!important;border:1px solid #eed39e!important;
 border-inline-start:4px solid #daa138!important;border-radius:9px!important;
 background:#fffbf1!important;box-shadow:none!important;color:#624b24;
}
.ki-visible-price-heading {display:flex;align-items:center;gap:10px;margin-bottom:10px;}
.ki-visible-price-heading>span {display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#faeac4;color:#916015;font-size:18px;font-weight:650;}
.ki-visible-price-heading small {display:block;font-size:10px;color:#8c681d;margin-bottom:3px;}
.ki-visible-price-heading strong {display:block;font-size:15px;color:#523c18;}
.amv-professional-ui .ki-price-always-visible .ki-pricing-disclosure-body {padding:0;}
.amv-professional-ui .ki-price-always-visible p {font-size:13px;line-height:1.7;margin:0 0 8px;color:#624b24;}
.amv-professional-ui .ki-price-always-visible .ki-partner-price-scale {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 0;}
.amv-professional-ui .ki-price-always-visible .ki-partner-price-scale article {background:#fff;border:1px solid #ecdfc4;border-radius:6px;box-shadow:none;padding:9px;}
.amv-professional-ui .ki-price-always-visible .ki-partner-price-scale strong {color:#744e0f;font-size:17px;}
@media(max-width:600px){.amv-professional-ui .ki-price-always-visible .ki-partner-price-scale {grid-template-columns:repeat(2,minmax(0,1fr));}}
/* Compact navigation mode control; existing pressed state and click handler retained. */
.amv-professional-ui .side #sidebarAutoHideToggle {
 display:inline-flex;align-items:center;justify-content:center;gap:6px;
 min-height:28px;height:28px;min-width:0;padding:4px 8px;
 border:1px solid #7899b533;border-radius:7px;background:#ffffff05;
 color:#c3d6e9;font-size:10px;font-weight:500;line-height:1;box-shadow:none;
 cursor:pointer;transition:background .15s,border-color .15s,color .15s;
}
.amv-professional-ui .side #sidebarAutoHideToggle::before {
 content:'';display:block;width:14px;height:14px;flex:0 0 14px;background:currentColor;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M9 4v16m7-11-3 3 3 3'/%3E%3C/svg%3E") center/contain no-repeat;
}
.amv-professional-ui .side #sidebarAutoHideToggle:hover {background:#ffffff10;border-color:#91b6d566;color:white;}
.amv-professional-ui .side #sidebarAutoHideToggle[aria-pressed=true] {background:#13a9b217;border-color:#39bcca55;color:#8ae4e8;}
.amv-professional-ui .side #sidebarAutoHideToggle[aria-pressed=true]::before {
 mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m16 3 5 5-4 1-4 4v4l-3-3-6 6 6-6-3-3h4l4-4z'/%3E%3C/svg%3E");
}
@media(min-width:901px){
 body.amv-professional-ui.sidebar-auto-hide-enabled:not(.locked) .portal-shell {grid-template-columns:12px minmax(0,1fr)!important;}
 body.amv-professional-ui.sidebar-auto-hide-enabled:not(.locked) .side {transform:translateX(-224px)!important;z-index:30;}
 body.amv-professional-ui.sidebar-auto-hide-enabled:not(.locked) .side:is(:hover,:focus-within) {transform:translateX(0)!important;box-shadow:12px 0 30px #06162833!important;}
 .amv-professional-ui.sidebar-auto-hide-enabled .side:not(:hover):not(:focus-within) #sidebarAutoHideToggle {opacity:0;pointer-events:none;}
}
body.amv-professional-ui #overviewView .reference-tools .overview-priority-panel {grid-column:auto;}
body.amv-professional-ui #overviewView .reference-tools .overview-priority-list {grid-template-columns:1fr 1fr;}
@media(max-width:1100px){.reference-metric {gap:8px;padding:10px;}.reference-metric-icon {width:35px;height:35px;}.reference-metric>span:nth-child(2) {font-size:11px;}body.amv-professional-ui #overviewView .overview-command-copy h2 {font-size:26px;}#referenceAccountName {display:none;}}
@media(max-width:900px){body.amv-professional-ui #overviewView.active {grid-template-columns:1fr 1fr;}body.amv-professional-ui #overviewView :is(.overview-cases-panel,.reference-handoffs,#kassenweckerPanel,.overview-activity-panel){grid-column:1/-1;} .reference-metrics {grid-template-columns:repeat(2,1fr);}body.amv-professional-ui #overviewView .overview-command-center {flex-wrap:wrap;gap:16px;}.reference-tools-content{grid-template-columns:1fr;}body.amv-professional-ui:not(.locked):has(#overviewView.active) .topbar{margin:0 0 16px!important;width:100%!important;}.reference-account{gap:3px!important;}}

/* Authenticated presentation: preserve hidden permission controls and left navigation in both languages. */
body.locked .portal-shell {display:none!important;}
body.amv-professional-ui [hidden] {display:none!important;}
html[dir="rtl"] body.amv-professional-ui:not(.locked) :is(.main,.topbar,#overviewView.active) {direction:rtl!important;}
html[dir="rtl"] body.amv-professional-ui:not(.locked) .side :is(.side-nav,.nav-link) {direction:rtl!important;text-align:right!important;}
html[dir="rtl"] .reference-metric {text-align:right;}
.reference-metric b {margin-left:0;margin-inline-start:auto;}
html[dir="rtl"] .reference-account {margin-left:0;margin-inline-start:auto;}
.amv-professional-ui #overviewView .reference-handoffs[hidden] + * {min-width:0;}
.amv-professional-ui #overviewView:has(.reference-handoffs[hidden]) .overview-cases-panel {grid-column:1/-1;}
.amv-professional-ui #overviewView .reference-handoff {flex-wrap:wrap;}
.amv-professional-ui #overviewView .reference-handoff button {white-space:normal;}
@media(max-width:600px){
 body.amv-professional-ui:not(.locked):has(#overviewView.active) .top-actions {flex-wrap:wrap;gap:8px;min-width:0;}
 body.amv-professional-ui:not(.locked):has(#overviewView.active) .top-actions .search {min-width:0;flex-basis:100%!important;}
 body.amv-professional-ui:not(.locked) .main {min-width:0;}
 body.amv-professional-ui #overviewView .reference-metric {min-width:0;gap:6px;padding:10px 7px;}
 body.amv-professional-ui #overviewView .reference-metric-icon {width:28px;height:28px;}
 body.amv-professional-ui #overviewView .reference-metric strong {font-size:24px;}
 body.amv-professional-ui #overviewView .overview-table-scroll {max-width:100%;min-width:0;}
 body.amv-professional-ui #overviewView .reference-tools .overview-priority-list {grid-template-columns:1fr;}
 body.amv-professional-ui #overviewView :is(.overview-cases-panel,.reference-handoffs,#kassenweckerPanel,.overview-activity-panel) {min-height:0;}
 body.amv-professional-ui #overviewView .reference-empty {min-height:160px;}
}

/* Customer list/cards share the current query and server page. */
.amv-professional-ui .customer-view-mode {display:inline-flex;gap:3px;align-items:center;padding:3px;border:1px solid #c8d8de;border-radius:9px;background:#edf3f5;flex-shrink:0;}
.amv-professional-ui .customer-view-mode button {display:inline-flex;gap:7px;align-items:center;justify-content:center;min-height:36px;padding:7px 11px;border:0;border-radius:6px;background:transparent;color:#425966;font-size:13px;cursor:pointer;box-shadow:none;}
.amv-professional-ui .customer-view-mode button[aria-pressed=true] {background:#fff;color:#006f7c;box-shadow:0 1px 3px #0c32481a;font-weight:700;}
.amv-professional-ui .customer-view-mode svg {width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;}
.amv-professional-ui .customer-view-mode button:focus-visible {outline:2px solid #007e90;outline-offset:2px;}
.amv-professional-ui .customer-cards-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;}
.amv-professional-ui .customer-cards-grid>.empty-state {grid-column:1/-1;}
.amv-professional-ui .customer-card {background:#fff;border:1px solid #d4e2e7;border-radius:12px;padding:20px;min-width:0;box-shadow:0 2px 6px #183c4c05;font-size:14px;overflow-wrap:anywhere;}
.amv-professional-ui .customer-card-header {display:flex;align-items:center;gap:11px;margin-bottom:18px;flex-wrap:wrap;}
.amv-professional-ui .customer-card-header>div {flex:1;min-width:100px;}
.amv-professional-ui .customer-card-header .customer-name-action {text-align:start;white-space:normal;font-size:17px;color:#153747;line-height:1.4;padding:0;}
.amv-professional-ui .customer-card-header small {display:block;margin-top:3px;color:#617784;font-size:12px;}
.amv-professional-ui .customer-card-avatar {display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:10px;background:#e5f4f3;color:#007b79;font-weight:700;font-size:18px;}
.amv-professional-ui .customer-card dl {margin:0;display:grid;gap:10px;}
.amv-professional-ui .customer-card dt,.amv-professional-ui .customer-card-owner>span,.amv-professional-ui .customer-card-state>span {font-size:12px;color:#617784;}
.amv-professional-ui .customer-card dd {margin:3px 0 0;color:#1e3c4a;font-weight:600;}
.amv-professional-ui .customer-card-funds {grid-template-columns:1fr 1fr;padding:12px;background:#f5f9fa;border-radius:8px;}
.amv-professional-ui .customer-card-state,.amv-professional-ui .customer-card-owner {display:flex;gap:12px;justify-content:space-between;align-items:baseline;margin-top:13px;}
.amv-professional-ui .customer-card-state strong,.amv-professional-ui .customer-card-owner strong {text-align:end;font-size:13px;font-weight:500;}
.amv-professional-ui .customer-card-action {margin:18px 0 14px;}
.amv-professional-ui .customer-card-action button {width:100%;justify-content:center;color:#006f7c;border-color:#aad6dc;background:#f3fbfc;white-space:normal;}
.amv-professional-ui .customer-card-details {border-top:1px solid #e2eaed;padding-top:12px;}
.amv-professional-ui .customer-card-details summary {color:#49616e;cursor:pointer;font-size:13px;}
.amv-professional-ui .customer-card-details dl {margin-top:14px;grid-template-columns:1fr 1fr;}
.amv-professional-ui .customer-card-details button {margin-top:15px;white-space:normal;}
.amv-professional-ui #customerCardsFooter .customer-load-more-actions {padding:20px 0;flex-wrap:wrap;}
@media(max-width:1450px){.amv-professional-ui .customer-cards-grid {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:750px){.amv-professional-ui .customer-cards-grid {grid-template-columns:minmax(0,1fr);}.amv-professional-ui .customer-card {padding:16px;}}

/* Customer palette: presentation only; existing statuses and actions are preserved. */
.amv-professional-ui #addCustomerButton {background:linear-gradient(135deg,#007e8b,#006574)!important;color:#fff!important;border-color:#006574!important;box-shadow:0 4px 12px #00657426;}
.amv-professional-ui #addCustomerButton .customer-add-symbol {background:#ffffff24!important;color:#fff!important;border-radius:7px;}
.amv-professional-ui #addCustomerButton:hover {background:#005b68!important;}
.amv-professional-ui .customer-view-mode {background:#e8eff5;border-color:#d5e0e9;}
.amv-professional-ui .customer-view-mode button[aria-pressed=true] {background:#173952;color:#fff;box-shadow:0 2px 5px #15354d24;}
.amv-professional-ui #customerFilterToolbar {background:#fff;border:1px solid #dce5ed;border-radius:14px;box-shadow:0 4px 16px #16344c05;}
.amv-professional-ui #customerFilterPanel {background:transparent;border:0;box-shadow:none;}
.amv-professional-ui #customerFilterPanel label>span {color:#526579;letter-spacing:.045em;}
.amv-professional-ui #customerFilterPanel select {background-color:#f8fafc;border-color:#d6e1e9;color:#19364b;border-radius:9px;min-height:40px;box-shadow:none;}
.amv-professional-ui #customerFilterPanel select:disabled {color:#6b7786;background-color:#eef2f6;opacity:1;}
.amv-professional-ui #customersView .customer-card {--card-accent:#007f8b;border:1px solid #d8e3ec;border-top:3px solid var(--card-accent);border-radius:15px;padding:21px;background:linear-gradient(160deg,#fff 65%,#f7fafc);box-shadow:0 5px 20px #12364f08;}
.amv-professional-ui #customersView .customer-card:hover {border-inline-color:#a6bccb;box-shadow:0 8px 24px #12364f12;}
.amv-professional-ui #customersView .customer-card:has(.customer-real-status-badge.ready) {--card-accent:#3266b2;}
.amv-professional-ui #customersView .customer-card:has(.customer-real-status-badge.done) {--card-accent:#168267;}
.amv-professional-ui #customersView .customer-card:has(.customer-real-status-badge.waiting) {--card-accent:#b97817;}
.amv-professional-ui #customersView .customer-card:has(.customer-real-status-badge.danger) {--card-accent:#bf4654;}
.amv-professional-ui #customersView .customer-card:has(.customer-real-status-badge.open) {--card-accent:#708397;}
.amv-professional-ui #customersView .customer-card-header {gap:12px;margin-bottom:20px;}
.amv-professional-ui #customersView .customer-card-avatar {flex-basis:44px;height:44px;border-radius:12px;background:linear-gradient(145deg,#193b56,#007e89);color:#fff;box-shadow:0 3px 8px #073e551a;}
.amv-professional-ui #customersView .customer-card-header .customer-name-action {color:#132f48;font-size:16px;}
.amv-professional-ui #customersView .customer-card-header small {color:#61748a;font-variant-numeric:tabular-nums;letter-spacing:.025em;}
.amv-professional-ui #customersView .customer-card .customer-real-status-badge {font-size:11px;line-height:1.3;font-weight:700;padding:5px 9px;border-radius:7px;}
.amv-professional-ui #customersView .customer-card .customer-real-status-badge.ready {color:#254f96;background:#eaf1ff;border-color:#cbdafa;}
.amv-professional-ui #customersView .customer-card .customer-real-status-badge.done {color:#08684e;background:#e7f6ef;border-color:#bee5d4;}
.amv-professional-ui #customersView .customer-card .customer-real-status-badge.waiting {color:#86520b;background:#fff4dd;border-color:#f1d7a0;}
.amv-professional-ui #customersView .customer-card .customer-real-status-badge.danger {color:#a12e3f;background:#fff0f2;border-color:#efc9d0;}
.amv-professional-ui #customersView .customer-card-funds {gap:0;padding:0;background:#f1f5f9;border:1px solid #e2eaf0;border-radius:10px;overflow:hidden;}
.amv-professional-ui #customersView .customer-card-funds>div {min-width:0;padding:13px;}
.amv-professional-ui #customersView .customer-card-funds>div:last-child {background:#eaf6f5;border-inline-start:1px solid #d6e9e7;}
.amv-professional-ui #customersView .customer-card-funds>div:last-child dd {color:#00666c;}
.amv-professional-ui #customersView .customer-card dt,.amv-professional-ui #customersView .customer-card-state>span,.amv-professional-ui #customersView .customer-card-owner>span {color:#53677c;}
.amv-professional-ui #customersView .customer-card dd {color:#203d55;line-height:1.5;}
.amv-professional-ui #customersView .customer-card-state strong {color:#19384f;font-weight:600;}
.amv-professional-ui #customersView .customer-card-owner strong {color:#53677c;}
.amv-professional-ui #customersView .customer-card-action button {min-height:42px;border-radius:9px;background:#007886;border:1px solid #007886;color:#fff;font-weight:600;box-shadow:0 3px 8px #00788615;gap:8px;}
.amv-professional-ui #customersView .customer-card-action button:hover {background:#005f6d;border-color:#005f6d;color:#fff;}
.amv-professional-ui #customersView .customer-card-details {border-color:#e1e8ef;}
.amv-professional-ui #customersView .customer-card-details summary {color:#486279;font-weight:600;min-height:24px;}
.amv-professional-ui #customersView .customer-card-details[open] summary {color:#006a77;}
.amv-professional-ui #customersView .customer-card :is(button,summary):focus-visible,.amv-professional-ui #customerFilterPanel select:focus-visible {outline:3px solid #2a859d;outline-offset:3px;}
@media(max-width:750px){.amv-professional-ui #customersView .customer-card {padding:16px;}}

/* Fund administration: switch presentation without replacing actions or data. */
.amv-professional-ui #krankenkassenAdminView .panel-head {gap:16px;flex-wrap:wrap;}
.amv-professional-ui #krankenkassenAdminView .admin-toolbar {gap:14px;flex-wrap:wrap;}
.amv-professional-ui #fundAdminPresentation {border-color:#dce5ed;border-radius:12px;}
.amv-professional-ui #adminHealthFundsTable .health-fund-edit-button {background:#007886;color:white;border-color:#007886;border-radius:8px;}
.amv-professional-ui #adminHealthFundsTable .health-fund-details-toggle {border-color:#bcd7dd;background:#eff8fa;color:#006675;border-radius:8px;}
.amv-professional-ui #adminHealthFundsTable .fund-email-list a {color:#006e80;overflow-wrap:anywhere;}
.amv-professional-ui #fundAdminPresentation.is-cards {border:0;background:transparent;overflow:visible;box-shadow:none;}
.amv-professional-ui #fundAdminPresentation.is-cards table {display:block;min-width:0;width:100%;}
.amv-professional-ui #fundAdminPresentation.is-cards thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;}
.amv-professional-ui #fundAdminPresentation.is-cards tbody {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row {display:grid;grid-template-columns:1fr 1fr;gap:14px;padding:20px;border:1px solid #d8e3ec;border-top:3px solid #007886;border-radius:14px;background:#fff;box-shadow:0 5px 18px #12364f08;min-width:0;align-content:start;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row>td {display:block;padding:0;border:0;min-width:0;white-space:normal;overflow-wrap:anywhere;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row>td:nth-child(1) {grid-column:1/-1;order:0;}
.amv-professional-ui #fundAdminPresentation.is-cards .fund-cell {align-items:center;gap:12px;}
.amv-professional-ui #fundAdminPresentation.is-cards .fund-cell strong {font-size:17px;color:#19384f;line-height:1.4;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row>td:nth-child(2) {grid-column:1/-1;order:4;border-top:1px solid #e6ecf2;padding-top:12px;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row>td:nth-child(3),
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row>td:nth-child(4) {order:1;background:#f1f6fa;padding:12px;border-radius:9px;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row>td:nth-child(4) {background:#eaf6f5;color:#00666c;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row>td:nth-child(5) {order:2;color:#19384f;font-weight:700;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row>td:nth-child(5)::before {content:'Provision';display:block;font-size:12px;font-weight:400;color:#53677c;margin-bottom:5px;}
html[lang=ar] .amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row>td:nth-child(5)::before {content:'العمولة';}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row>td:nth-child(7) {order:2;text-align:end;align-self:center;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row>td:nth-child(6) {grid-column:1/-1;order:5;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-details-toggle {width:100%;display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:10px 12px;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row>td:nth-child(8) {grid-column:1/-1;order:6;border-top:1px solid #e6ecf2;padding-top:12px;}
.amv-professional-ui #fundAdminPresentation.is-cards .row-actions {display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.amv-professional-ui #fundAdminPresentation.is-cards .row-actions .health-fund-edit-button {flex:1;min-height:40px;justify-content:center;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-monitoring-button {flex:1;min-width:120px;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-details-row:not([hidden]),
.amv-professional-ui #fundAdminPresentation.is-cards .table-load-more-row {display:block;grid-column:1/-1;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-details-row>td,
.amv-professional-ui #fundAdminPresentation.is-cards .table-load-more-row>td {display:block;width:100%;padding:0;}
.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row.is-open {border-color:#007886;background:#f8fcfc;}
.amv-professional-ui #fundAdminPresentation.is-cards tbody>tr:has(.empty-state):not(.health-fund-details-row) {grid-column:1/-1;}
@media(max-width:1450px){.amv-professional-ui #fundAdminPresentation.is-cards tbody {grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:850px){.amv-professional-ui #fundAdminPresentation.is-cards tbody {grid-template-columns:minmax(0,1fr);}.amv-professional-ui #fundAdminPresentation.is-cards .health-fund-summary-row {padding:16px;}.amv-professional-ui #krankenkassenAdminView .tabs {flex-wrap:wrap;}}

/* Status symbols supplement the existing state text; they never change workflow. */
.amv-professional-ui #customersView .customer-card-state,
.amv-professional-ui #customersView .customer-card .customer-real-status-badge {
  --status-ink:#946000;--status-fill:#fff6dc;--status-border:#ecd49b;
  --status-symbol:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/g%3E%3C/svg%3E");
}
.amv-professional-ui #customersView .customer-card-state[data-status-tone=done],
.amv-professional-ui #customersView .customer-card .customer-real-status-badge.done {
  --status-ink:#08714f;--status-fill:#e8f7ef;--status-border:#bce4d0;
  --status-symbol:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m7.5 12 3 3 6-6'/%3E%3C/g%3E%3C/svg%3E");
}
.amv-professional-ui #customersView .customer-card-state[data-status-tone=danger],
.amv-professional-ui #customersView .customer-card .customer-real-status-badge.danger {
  --status-ink:#b12e42;--status-fill:#fff0f2;--status-border:#efc3ca;
  --status-symbol:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v6m0 4h.01'/%3E%3C/g%3E%3C/svg%3E");
}
.amv-professional-ui #customersView .customer-card-state strong,
.amv-professional-ui #customersView .customer-card .customer-real-status-badge {display:inline-flex;align-items:center;gap:7px;color:var(--status-ink);background:var(--status-fill);border:1px solid var(--status-border);border-radius:8px;padding:5px 9px;line-height:1.4;font-weight:600;}
.amv-professional-ui #customersView .customer-card-state strong {font-size:12px;}
.amv-professional-ui #customersView .customer-card-state strong::before,
.amv-professional-ui #customersView .customer-card .customer-real-status-badge::before {content:'';display:block;width:18px;height:18px;flex:0 0 18px;background:currentColor;mask:var(--status-symbol) center/contain no-repeat;-webkit-mask:var(--status-symbol) center/contain no-repeat;}
.amv-professional-ui #customersView .customer-card .customer-real-status-badge::before {width:15px;height:15px;flex-basis:15px;}
.amv-professional-ui #customersView .customer-card .customer-real-status-badge:is(.ready,.waiting,.open,.done,.danger) {color:var(--status-ink);background:var(--status-fill);border-color:var(--status-border);}

/* KI review: values and evidence stay readable in both writing directions. */
#familyIdentityReview {background:#f8fbf9;border-color:#dce6df;}
.family-autofill-heading {display:flex;align-items:baseline;justify-content:space-between;gap:8px 20px;flex-wrap:wrap;}
.family-autofill-heading [data-family-review-status] {font-size:.82rem;color:#52685f;}
.family-autofill-metrics {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0;}
.family-autofill-metrics>div {min-width:0;border-inline-start:2px solid #d4e3db;padding-inline-start:12px;}
.family-autofill-metrics dt {font-size:.78rem;line-height:1.5;color:#52685f;overflow-wrap:anywhere;}
.family-autofill-metrics dd {font-size:1.25rem;font-weight:650;margin:4px 0 0;}
.family-main-choice {padding:12px 0;display:grid;gap:6px;max-width:520px;}
.family-main-choice label {display:grid;gap:7px;}
.family-main-choice small {color:#52685f;line-height:1.5;}
.family-field-feedback {min-width:0;max-width:100%;margin-block:-2px 8px;font-size:.85rem;color:#405a4e;}
.family-field-feedback>p {margin:0;line-height:1.5;}
.family-field-feedback .family-identity-issue {display:grid;gap:9px;margin:0;padding:12px;border:1px solid #dce6df;border-inline-start:2px solid #749d89;border-radius:8px;background:#f8fbf9;}
.family-field-feedback .family-identity-issue-title {display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;}
.family-field-feedback .family-identity-issue-title small {color:#52685f;}
.family-field-feedback .family-identity-values {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
.family-field-feedback .family-identity-values>div {padding:8px;background:#fff;border-radius:6px;min-width:0;}
.family-field-feedback .family-identity-values span,.family-field-feedback .family-identity-values b {display:block;min-width:0;overflow-wrap:anywhere;}
.family-field-feedback .family-identity-values span {font-size:.75rem;color:#52685f;}
.family-field-feedback .family-identity-evidence {margin:0;padding:8px;border:1px solid #dce6df;border-radius:7px;background:#fff;}
.family-field-feedback .family-identity-evidence summary {cursor:pointer;font-weight:600;}
.family-field-feedback .family-identity-evidence blockquote {margin:8px 0 0;padding:8px;border-inline-start:2px solid #adc9bc;white-space:pre-wrap;overflow-wrap:anywhere;}
.family-field-feedback :is(.family-identity-decisions,.family-identity-source-actions) {display:flex;flex-wrap:wrap;gap:6px;}
.family-field-feedback button {white-space:normal;text-align:start;overflow-wrap:anywhere;max-width:100%;min-height:38px;}
.family-field-feedback :is(button,summary):focus-visible {outline:3px solid #087c69;outline-offset:3px;}
#familyIdentityReview .family-unassigned-entry {display:grid;gap:10px;margin-block:12px;padding-block:12px;border-block-start:1px solid #dce6df;}
#familyIdentityReview .family-unassigned-entry label {display:grid;gap:6px;}
#familyIdentityReview .family-identity-field-issue {background:#f8fbf9;border-inline-start-color:#749d89;}
#familyIdentityReview {min-width:0;max-width:100%;}
#familyIdentityReview .family-identity-heading {align-items:center;}
#familyIdentityReview .family-identity-status {display:inline-block;font-size:.8rem;font-weight:600;line-height:1.5;padding:3px 9px;border:1px solid #d4e3dc;border-radius:20px;min-width:0;}
#familyIdentityReview .family-identity-status.is-open {color:#74520c;background:#fff6dd;border-color:#e8d6a0;}
#familyIdentityReview .family-identity-status.is-clear {color:#205d48;background:#eef8f2;border-color:#c7e2d2;}
#familyIdentityReview .family-identity-person>summary {line-height:1.6;overflow-wrap:anywhere;}
#familyIdentityReview .family-identity-person-name {font-weight:650;}
#familyIdentityReview .family-identity-person-stats {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-block-start:5px;font-size:.8rem;font-weight:400;color:#50665c;}
#familyIdentityReview .family-identity-field-issue {display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:10px;border-left:0;border-inline-start:2px solid #749d89;border-radius:6px;background:#f8fbf9;}
#familyIdentityReview .family-identity-issue-title {display:flex;justify-content:space-between;gap:6px 14px;align-items:baseline;flex-wrap:wrap;}
#familyIdentityReview .family-identity-issue-title small {font-size:.8rem;line-height:1.5;color:#52685f;}
#familyIdentityReview .family-identity-values {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
#familyIdentityReview .family-identity-values>div {min-width:0;padding:10px 12px;background:#fff;border:1px solid #e4e4d5;border-radius:8px;}
#familyIdentityReview .family-identity-values span {display:block;min-width:0;font-size:.76rem;color:#596960;}
#familyIdentityReview .family-identity-values b {display:block;margin-block-start:4px;font-size:.94rem;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere;}
#familyIdentityReview .family-identity-evidence {min-width:0;margin-block-start:8px;padding:9px 11px;background:#fff;border:1px solid #dce6df;}
#familyIdentityReview .family-identity-evidence summary {font-size:.8rem;line-height:1.5;}
#familyIdentityReview .family-identity-evidence blockquote {margin:10px 0 0;padding:8px 12px;border-inline-start:2px solid #adc9bc;background:#f7faf8;font-size:.85rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;}
#familyIdentityReview .family-identity-source-actions,#familyIdentityReview .family-identity-decisions {display:flex;align-items:start;flex-wrap:wrap;gap:6px;min-width:0;}
#familyIdentityReview .family-identity-source-actions button,#familyIdentityReview .family-identity-decisions button {margin:0;max-width:100%;min-height:36px;white-space:normal;text-align:start;overflow-wrap:anywhere;}
#familyIdentityReview .family-identity-source-actions {margin-block-start:8px;}
#familyIdentityReview .family-identity-fallback {display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin-block:12px;}
#familyIdentityReview .family-identity-fallback label {flex:1 1 220px;min-width:0;margin:0;}
#familyIdentityReview .family-identity-fallback :is(input,select) {width:100%;min-width:0;}
#familyIdentityReview .family-identity-fallback small {flex-basis:100%;}
#familyIdentityReview .family-identity-fallback input:focus-visible {outline:3px solid #087c69;outline-offset:3px;}
#familyIdentityReview :is(button,select,summary,[data-family-review-status]):focus-visible {outline:3px solid #087c69;outline-offset:3px;}
#familyIdentityReview #intakeMissingSummary {margin-block-end:0;}
@media(max-width:600px) {
  .family-autofill-metrics {grid-template-columns:repeat(2,minmax(0,1fr));}
  .family-field-feedback .family-identity-values {grid-template-columns:minmax(0,1fr);}
  .family-field-feedback .family-identity-decisions {flex-direction:column;}
  .family-field-feedback button {min-height:42px;}
  #familyIdentityReview {padding:12px;}
  #familyIdentityReview .family-identity-values {grid-template-columns:minmax(0,1fr);}
  #familyIdentityReview .family-identity-decisions {flex-direction:column;align-items:stretch;}
  #familyIdentityReview .family-identity-decisions button {width:100%;min-height:42px;}
  #familyIdentityReview .family-identity-source-actions button {min-height:42px;}
}
.family-step-copy .family-person-age {display:block;font-weight:650;color:#25584e;margin-block-start:4px;}
.dak-online-members {border:1px solid #b9ded5;border-radius:14px;background:#f5fbf8;padding:18px;margin-block:16px;min-width:0;}
.dak-online-members h3 {margin-block:0 8px;}
.dak-member-list {display:grid;gap:12px;min-width:0;}
.dak-member-row {display:flex;justify-content:space-between;align-items:center;gap:16px;background:#fff;border:1px solid #d4e6df;border-radius:10px;padding:14px;min-width:0;}
.dak-member-row strong,.dak-member-row small,.dak-member-picker strong,.dak-member-picker small {display:block;overflow-wrap:anywhere;}
.dak-member-row small {margin-block-start:5px;color:#725820;}
.dak-member-row small.complete {color:#0b7149;}
.dak-member-actions {display:flex;flex-wrap:wrap;gap:8px;}
.dak-member-picker {max-width:min(580px,calc(100vw - 32px));max-height:85vh;overflow:auto;}
.dak-member-picker .dak-member-list {margin-block:18px;}
.dak-member-picker button {min-height:44px;white-space:normal;}
@media(max-width:600px) {.dak-member-row {align-items:stretch;flex-direction:column;}.dak-member-actions {flex-direction:column;}.dak-member-actions button {width:100%;white-space:normal;}}

/* Prior coverage is descriptive text, not a fictitious health-fund link. */
#customersView .customer-fund-transition--inline .customer-fund-side--status {
  grid-template-columns: minmax(0, 1fr);
}
#customersView .customer-fund-transition--inline .customer-fund-side--status .customer-fund-name {
  grid-column: 1;
  white-space: normal;
  overflow: visible;
  line-height: 1.3;
}
/* Explicit email attachments, before any delivery request is created. */
.application-mail-selection { width:min(640px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; box-sizing:border-box; padding:24px; border:1px solid #bbd9d1; border-radius:18px; color:#123749; background:#fff; }
.application-mail-selection::backdrop { background:rgba(8,28,39,.58); }
.application-mail-selection fieldset { min-width:0; border:1px solid #d7e7e2; border-radius:12px; padding:12px; }
.application-mail-selection label { display:grid; grid-template-columns:24px minmax(0,1fr); align-items:start; gap:12px; padding:12px 0; cursor:pointer; border-bottom:1px solid #e6eeeb; }
.application-mail-selection label:last-child { border-bottom:0; }
.application-mail-selection input[type=checkbox] { width:20px; height:20px; margin:4px 0; accent-color:#008696; }
.signature-delivery-notice {display:flex;align-items:center;gap:8px;margin:0 0 10px;padding:9px 12px;border:1px solid #edce73;border-radius:8px;background:#fff7d6;color:#755000;font-size:13px;line-height:1.5;font-weight:600;}
.signature-delivery-notice::before {content:'✉';font-size:19px;flex:none;}
.followup-attention-count {margin-inline-start:auto;border-radius:999px;padding:2px 7px;background:#e1edf3;color:#204050;font-weight:800;flex:none;}
.nav-link.has-followup-attention {box-shadow:inset 3px 0 #a3c5d6;}
.nav-link.has-high-followup:not(.has-urgent-followup) {box-shadow:inset 3px 0 #ebbf4c;}
.has-high-followup:not(.has-urgent-followup) .followup-attention-count {background:#fff0bc;color:#624200;}
.nav-link.has-urgent-followup {box-shadow:inset 3px 0 #ed4b4b;}
.has-urgent-followup .followup-attention-count {background:#ffdddd;color:#a21212;}
#followupResolveWrap[hidden],.followup-attention-count[hidden] {display:none!important;}
#ticketsView .ticket-card {
  --ticket-accent: #7892a0;
  --ticket-ink: #315366;
  --ticket-pill: #e6eff3;
  --ticket-border: #d5e1e7;
  --ticket-surface: #f8fafb;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--ticket-border);
  border-inline-start: 4px solid var(--ticket-accent);
  background: var(--ticket-surface);
}
#ticketsView .ticket-card.followup-priority-urgent {
  --ticket-accent: #b72c37;
  --ticket-ink: #87232b;
  --ticket-pill: #ffdde0;
  --ticket-border: #edb9bd;
  --ticket-surface: #fff1f2;
}
#ticketsView .ticket-card.followup-priority-high {
  --ticket-accent: #a97100;
  --ticket-ink: #674800;
  --ticket-pill: #ffedb3;
  --ticket-border: #e4cc86;
  --ticket-surface: #fff8df;
}
#ticketsView .ticket-card-content {min-width:0;overflow-wrap:anywhere;}
#ticketsView .ticket-card-content p {margin:5px 0 0;}
#ticketsView .ticket-card-meta {display:flex;align-items:center;gap:6px 10px;flex-wrap:wrap;margin-top:4px;}
#ticketsView .ticket-priority-label,
#ticketsView .ticket-status {
  display:inline-flex;
  border-radius:999px;
  padding:3px 9px;
  background:var(--ticket-pill);
  color:var(--ticket-ink);
  font-size:.75rem;
  font-weight:700;
}
#ticketsView .ticket-attribution {display:flex;align-items:center;flex-wrap:wrap;gap:7px 10px;margin:10px 0 0;font-size:.78rem;}
#ticketsView .ticket-attribution-item {display:inline-flex;align-items:center;gap:5px;padding:4px 8px;border:1px solid color-mix(in srgb,var(--ticket-border) 78%,#fff);border-radius:999px;background:rgba(255,255,255,.68);}
#ticketsView .ticket-attribution dt {color:#43596a;font-weight:560;}
#ticketsView .ticket-attribution dd {margin:0;font-weight:750;color:#16394a;}
#ticketsView .ticket-attribution-item.is-fallback {border-style:dashed;}
#ticketsView .ticket-attribution-item.is-missing dd {color:#7b5c26;}
#ticketsView .ticket-attribution-note {display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;border-radius:999px;font-size:.72rem;font-weight:720;}
#ticketsView .ticket-attribution-note.recovered {background:#e5f4ed;color:#185d45;}
#ticketsView .ticket-attribution-note.unresolved {background:#fff0cf;color:#785300;}
#ticketsView .ticket-open-action {display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;}
#ticketsView .ticket-open-icon {position:relative;width:14px;height:10px;border:1.5px solid currentColor;border-radius:3px;flex:none;}
#ticketsView .ticket-open-icon::after {content:"";position:absolute;inset-inline-start:2px;bottom:-4px;width:4px;height:4px;border-inline-start:1.5px solid currentColor;transform:skewY(-35deg);}
#ticketsView .ticket-card button:focus-visible {outline:2px solid #0a5667;outline-offset:3px;}
@media (max-width: 700px) {
  #ticketsView .ticket-card {align-items:flex-start;flex-direction:column;gap:10px;}
  #ticketsView .ticket-card-actions {width:100%;justify-content:flex-start;}
  #ticketsView .ticket-attribution {align-items:stretch;display:grid;grid-template-columns:1fr;}
  #ticketsView .ticket-attribution-item {justify-content:space-between;border-radius:10px;}
  #ticketsView .ticket-attribution-note {justify-content:center;}
}
#followupRequestForm .followup-upload-body {display:grid;grid-template-columns:1fr 1fr;gap:12px;}
#followupRequestForm label {display:flex;flex-direction:column;gap:5px;min-width:0;}
#followupRequestForm label:has(textarea),#followupRequestForm .followup-upload-body>p {grid-column:1/-1;}
#followupRequestForm input,#followupRequestForm select,#followupRequestForm textarea {width:100%;box-sizing:border-box;}
#followupRequestDialog,#followupConversationDialog {width:min(720px,calc(100vw - 32px));max-height:90vh;overflow:auto;border:1px solid #d0e2de;border-radius:16px;padding:0;font-size:14px;line-height:1.5;}
#followupRequestDialog .dialog-head,#followupConversationDialog .dialog-head {padding:18px 22px;border-bottom:1px solid #dce9e5;}
#followupRequestDialog h2,#followupConversationDialog h2 {font-size:19px;margin:3px 0;}
#followupRequestDialog .followup-upload-body,#followupConversationDialog .followup-upload-body {padding:16px 22px;}
#followupRequestForm .followup-upload-body>label:first-child {grid-column:1/-1;}
#followupRequestForm :is(input,select,textarea),#followupReplyForm :is(input,textarea) {min-height:40px;padding:9px 11px;border:1px solid #c9dcd6;border-radius:8px;background:#fff;color:#173f3a;font-family:inherit;font-size:14px;font-weight:400;line-height:1.4;}
#followupRequestForm textarea,#followupReplyForm textarea {font-family:inherit;resize:vertical;}
#followupReplyForm label {display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:13px;font-weight:600;}
#followupReplyForm input[type="checkbox"] {min-height:0;width:auto;}
.followup-insurer-reply-action {display:flex;flex-direction:column;align-items:flex-start;gap:7px;margin-top:14px;padding:14px;border:1px solid #b7dcd5;border-radius:12px;background:#f2fbf8;}
.followup-insurer-reply-action small {color:#365f59;font-weight:500;}
#followupResolveWrap {display:flex!important;flex-direction:row!important;align-items:center;gap:8px;}
#followupResolveWrap[hidden] {display:none!important;}
#followupRequestDialog menu,#followupConversationDialog menu {margin:0;padding:15px 22px;border-top:1px solid #dce9e5;display:flex;justify-content:flex-end;gap:10px;}
.followup-reply {border-left:3px solid #8cc8b2;padding:8px 12px;background:#f5faf8;margin:10px 0;}
.followup-reply p {white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0;}
@media(max-width:540px){#followupRequestForm .followup-upload-body {grid-template-columns:1fr;}#followupRequestForm .followup-upload-body>label {grid-column:1/-1;}}
@media(min-width:821px){
 #customerFilesDialog .customer-file-group,#customerFilesDialog .customer-file-card,#customerFilesDialog .customer-followup-panel {padding:12px;}
 #customerFilesDialog .file-card {padding:12px;gap:10px;}
 #customerFilesDialog .file-card strong {font-size:15px;line-height:1.35;}
 #customerFilesDialog .file-card small {font-size:12px;line-height:1.45;margin-top:4px;}
 #customerFilesDialog h3 {font-size:17px;margin:0 0 7px;}
 #customerFilesDialog h4 {font-size:15px;margin:0 0 6px;}
 #customerFilesDialog p,#customerFilesDialog li {font-size:13px;line-height:1.45;}
 #customerFilesDialog .customer-file-grid {gap:10px;}
 #customerFilesDialog .customer-file-group-grid {gap:10px;}
 #customerFilesDialog #customerFileScanProgress {padding:12px;min-height:0;}
 #customerFilesDialog #customerFileScanProgress .scan-manager-head h3 {font-size:16px;}
 #customerFilesDialog button {min-height:34px;padding:7px 10px;font-size:13px;}
 #customerFilesDialog #customerFileScanProgress {margin:10px 0;}
 #customerFilesDialog .scan-manager-head {margin-bottom:7px;}
 #customerFilesDialog #customerFileScanProgress p {margin:6px 0;}
}
.application-mail-selection label span { display:grid; gap:5px; overflow-wrap:anywhere; }
.application-mail-selection small { color:#5b706b; }
.application-mail-selection .application-mail-selection-error { color:#b12828; }
.application-mail-selection .customer-file-delete-actions { display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; }
.application-mail-selection button { min-height:44px; padding:10px 16px; border-radius:10px; }
.application-mail-selection button:focus-visible,.application-mail-selection input:focus-visible { outline:3px solid #008696; outline-offset:3px; }
@media(max-width:480px) { .application-mail-selection { padding:18px; } .application-mail-selection .customer-file-delete-actions button { flex:1; } }
/* Compact customer heading: one action row, permanently available filters. */
body.amv-professional-ui.customer-compact-header .topbar {padding:12px 18px!important;gap:8px!important;margin-bottom:12px!important;}
body.customer-compact-header .topbar .customer-toolbar {display:none!important;}
body.customer-compact-header .topbar #pageKicker {display:none;}
body.customer-compact-header .topbar #pageSubtitle {margin:4px 0;font-size:12px;}
body.customer-compact-header .topbar #pageTitle {margin:0;font-size:22px;}
body.customer-compact-header .topbar .customer-primary-actions {display:flex;align-items:center;flex-wrap:wrap;gap:8px;}
body.customer-compact-header .topbar .top-actions {align-self:center;border:0!important;padding:0!important;margin:0!important;}
body.amv-professional-ui.customer-compact-header #customersView .customer-register-filters {padding:12px!important;gap:10px!important;}
body.customer-compact-header #customersView .customer-register-filters label {gap:4px;}
body.customer-compact-header #customersView .customer-register-filters :is(input,select,button) {min-height:38px;font-size:13px;}
