/* Shared AyusLab visual language: blue actions, slate surfaces, compact cards.
   Loaded after the existing layout rules; workflows and responsive grids stay intact. */
body.ayus-workspace {
  --ink: #1e293b;
  --muted: #64748b;
  --teal: #1e75c1;
  --line: #e2e8f0;
  --canvas: #f1f5f9;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ayus-workspace .topbar { background: #fff; border-color: var(--line); font-size: 13px; }
.ayus-workspace .menu-toggle { border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #475569; }
.ayus-workspace .menu-toggle:hover, .ayus-workspace .nav-item:hover { background: #eff6ff; color: #1e75c1; }
.ayus-workspace .nav-item.selected { background: #eff6ff; color: #1e75c1; }
.ayus-workspace .nav-label { color: #94a3b8; }
.ayus-workspace main.focus-workspace { color: var(--ink); }
.ayus-workspace h1 { font-weight: 700; letter-spacing: -.7px; }
.ayus-workspace h2, .ayus-workspace h3 { color: var(--ink); }
.ayus-workspace .card, .ayus-workspace .stat, .ayus-workspace .focus-metric,
.ayus-workspace .lead-record-layout { border-color: var(--line); border-radius: 12px; box-shadow: 0 2px 8px rgb(15 23 42 / 3%); }
.ayus-workspace .button { background: #1e75c1; color: #fff; border-radius: 8px; font-weight: 600; box-shadow: 0 1px 2px rgb(15 23 42 / 5%); }
.ayus-workspace .button:hover { background: #1a66ab; }
.ayus-workspace .button.secondary { background: #fff; border: 1px solid #cbd5e1; color: #475569; }
.ayus-workspace .button.secondary:hover { background: #f8fafc; border-color: #94a3b8; }
.ayus-workspace input:not([type=submit]):not([type=checkbox]),
.ayus-workspace select, .ayus-workspace textarea { border-color: #cbd5e1; border-radius: 8px; color: var(--ink); }
.ayus-workspace input:focus, .ayus-workspace select:focus, .ayus-workspace textarea:focus { outline: 2px solid #bfdbfe; outline-offset: 1px; border-color: #1e75c1; }
.ayus-workspace input[type=checkbox] { accent-color: #1e75c1; }
.ayus-workspace label { color: #475569; }
.ayus-workspace th, .ayus-workspace .focus-workspace th { background: #f8fafc; color: #64748b; border-color: var(--line); }
.ayus-workspace td, .ayus-workspace .focus-workspace td { border-color: #eef2f6; }
.ayus-workspace tbody tr:hover, .ayus-workspace .focus-workspace tbody tr:hover { background: #f8fafc; }
.ayus-workspace td small, .ayus-workspace .focus-workspace td small,
.ayus-workspace .focus-metric span, .ayus-workspace .focus-lead-details,
.ayus-workspace .focus-strip h2, .ayus-workspace .focus-workspace .eyebrow { color: var(--muted); }
.ayus-workspace .focus-metric strong { font-weight: 700; }
.ayus-workspace .focus-metric:hover { border-color: #93c5fd; box-shadow: 0 3px 12px rgb(30 117 193 / 7%); }
.ayus-workspace .focus-stages { background: #fff; border-color: var(--line); border-radius: 10px; }
.ayus-workspace .focus-stage { border-color: var(--line); color: #1e75c1; }
.ayus-workspace .focus-stage > span { color: #94a3b8; }
.ayus-workspace .focus-stage:hover, .ayus-workspace .focus-stage.is-active { background: #eff6ff; }
.ayus-workspace .focus-avatar, .ayus-workspace .focus-count { background: #eff6ff; color: #1e75c1; }
.ayus-workspace .focus-next { color: #1e75c1; }
.ayus-workspace .focus-health > a, .ayus-workspace .focus-bar-row { color: #475569; border-color: var(--line); }
.ayus-workspace .focus-views { border-color: var(--line); }
.ayus-workspace .focus-views a { color: var(--muted); }
.ayus-workspace .focus-views a.is-active { color: #1e75c1; }

/* Lab identity and contact details form one clear, read-only summary. */
.ayus-workspace .lead-record .lead-workspace-header { padding: 22px 24px; border-color: var(--line); border-radius: 12px; box-shadow: 0 2px 8px rgb(15 23 42 / 3%); }
.ayus-workspace .lead-record .lead-header-contact h1 { font-size: 26px; margin-bottom: 20px; line-height: 1.2; }
.ayus-workspace .lead-record dl.lead-header-details { gap: 16px 24px; }
.ayus-workspace .lead-record .lead-header-details > div { border-color: var(--line); padding-right: 24px; }
.ayus-workspace .lead-record .lead-header-details > div:last-child { padding-right: 0; }
.ayus-workspace .lead-record .lead-header-details dt { font-size: 11px; font-weight: 600; color: var(--muted); }
.ayus-workspace .lead-header-details dt svg { color: #94a3b8; }
.ayus-workspace .lead-record .lead-header-details dd { font-size: 14px; color: #334155; }
.ayus-workspace .lead-record .lead-workspace-header .lead-record-status .button { background: #fff; border-color: #cbd5e1; border-radius: 8px; color: #475569; }
.ayus-workspace .lead-record .lead-workspace-header .lead-record-status .button:hover { background: #f8fafc; }
.ayus-workspace .lead-record-content { background: #f8fafc; border-radius: 0 12px 12px 0; }
.ayus-workspace .lead-record-tabs { border-radius: 0 12px 0 0; }
.ayus-workspace .lead-record-tabs a.active { color: #1e75c1; border-bottom-color: #1e75c1; }
.ayus-workspace .contact-status-controls .simple-next-focus { background: #eff6ff; color: #1e75c1; border: 1px solid #dbeafe; border-radius: 8px; }
.ayus-workspace .contact-status-controls .simple-next-focus span { color: #64748b; }
.ayus-workspace .history-note-row { background: #f8fafc; }
.ayus-workspace .mis-context { background: #eff6ff; border-color: #dbeafe; color: #526781; }
.ayus-workspace .mis-status-tile { border-color: var(--line); color: var(--ink); }
.ayus-workspace .mis-status-tile:hover { background: #f8fafc; }
.ayus-workspace .mis-bar-track { background: #eff3f8; }
.ayus-workspace .mis-bar-track > span { background: #609cd2; }
.ayus-workspace .mis-activity-grid > div { background: #f8fafc; }
.ayus-workspace .mis-funnel > div { background: #eff6ff; }
.ayus-workspace .mis-activity-grid span, .ayus-workspace .mis-funnel span,
.ayus-workspace .mis-funnel small, .ayus-workspace .mis-footnote { color: var(--muted); }
@media (max-width: 800px) {
  .ayus-workspace .lead-record-content { border-radius: 0 0 12px 12px; }
  .ayus-workspace .lead-record-tabs { border-radius: 0; }
}
@media (max-width: 650px) {
  .ayus-workspace .lead-record .lead-workspace-header { padding: 18px; }
  .ayus-workspace .lead-record .lead-header-contact h1 { font-size: 23px; margin-bottom: 16px; }
  .ayus-workspace .lead-record .lead-header-details > div { padding-right: 0; }
}

/* Lead rows use names without initial avatars. */
.ayus-workspace .focus-lead-table .focus-lead-details { margin-left: 0; }
.ayus-workspace .focus-workspace .board-section-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--muted); margin: 0 0 12px; }
.ayus-workspace .board-section-label .focus-count { letter-spacing: 0; vertical-align: middle; }

/* One full-width workspace, with status decisions above the activity tabs. */
.ayus-workspace .lead-record-layout { display: block; }
.ayus-workspace .lead-record-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 22px; }
.ayus-workspace .contact-status-controls form { display: grid; grid-template-columns: minmax(200px, 320px) minmax(180px, 1fr) auto; gap: 14px 24px; align-items: center; }
.ayus-workspace .contact-status-controls .status-current-field { grid-column: 1; grid-row: 1; }
.ayus-workspace .contact-status-controls .status-current-field label { margin-bottom: 6px; }
.ayus-workspace .contact-status-controls .simple-next-focus { grid-column: 2; grid-row: 1; margin: 0; padding: 10px 16px; background: #f8fafc; border-color: var(--line); }
.ayus-workspace .contact-status-controls .simple-next-focus strong { font-size: 16px; margin-top: 4px; }
.ayus-workspace .contact-status-controls input[type=submit].button { grid-column: 3; grid-row: 1; width: auto; min-width: 120px; }
.ayus-workspace .contact-status-controls [data-status-extra],
.ayus-workspace .contact-status-controls .status-reschedule,
.ayus-workspace .contact-status-controls [data-status-help] { grid-column: 1 / -1; margin: 0; }
.ayus-workspace .lead-record-content { border-radius: 0 0 12px 12px; }
.ayus-workspace .lead-record-tabs { border-radius: 0; padding: 0 22px; }
.ayus-workspace .lead-record-panel { padding: 14px; }
.ayus-workspace .lead-note-composer > textarea { height: 48px; min-height: 48px; resize: vertical; transition: min-height .15s ease; }
.ayus-workspace .lead-note-composer > textarea:focus,
.ayus-workspace .lead-note-composer > textarea:not(:placeholder-shown) { min-height: 88px; }
.ayus-workspace .interaction-history .work-item.history-note-row { grid-template-columns: minmax(0, 1fr) 30px; padding: 10px 12px; gap: 8px 12px; background: #f8fafc; }
.ayus-workspace .history-note-editor { grid-column: 1 / -1; }
.ayus-workspace .follow-up-filters button.active { background: #eaf3ff; color: #1e75c1; }
.ayus-workspace .follow-up-type-icon { background: #eff6ff; }
.ayus-workspace .interaction-history .history-note-row.pinned-note { background: #fffbeb; }
@media (min-width: 701px) {
  .ayus-workspace .lead-note-composer .note-composer-options { grid-column: 1; grid-row: 3; }
  .ayus-workspace .lead-note-composer .note-composer-buttons { grid-column: 2; grid-row: 3; }
}
@media (max-width: 700px) {
  .ayus-workspace .lead-record-sidebar { padding: 16px; }
  .ayus-workspace .contact-status-controls form { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
  .ayus-workspace .contact-status-controls .status-current-field { grid-column: 1 / -1; }
  .ayus-workspace .contact-status-controls .simple-next-focus { grid-column: 1; grid-row: 2; }
  .ayus-workspace .contact-status-controls input[type=submit].button { grid-column: 2; grid-row: 2; min-width: 0; }
  .ayus-workspace .lead-record-panel { padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .ayus-workspace .lead-note-composer > textarea { transition: none; }
}

.team-heading-label { display: flex; align-items: center; gap: 14px; }
#add-employee-form[hidden] { display: none; }
@media(max-width:500px) { .team-heading-label { flex-direction: column; align-items: flex-start; gap: 5px; } }

/* Shared workspace navigation, matching the AyusLab application header. */
.ayus-workspace .crm-topbar { display: flex; gap: 24px; height: 72px; padding: 12px 28px; font-size: 13px; }
.ayus-workspace .crm-topbar .menu-toggle { width: auto; height: 38px; gap: 8px; padding: 0 12px; font-weight: 600; box-shadow: 0 1px 2px rgb(15 23 42 / 4%); }
.topbar-brand { color: var(--ink); font-size: 18px; font-weight: 700; white-space: nowrap; letter-spacing: -.4px; }
.topbar-brand:hover { text-decoration: none; }
.ayus-workspace .topbar-search { position: relative; flex: 1; max-width: 540px; min-width: 140px; margin: 0 auto; }
.topbar-search > svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.ayus-workspace .topbar-search input { min-height: 40px; padding: 10px 12px 10px 38px; border-color: var(--line); font-size: 13px; }
.topbar-account { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.topbar-date { white-space: nowrap; color: var(--muted); font-size: 12px; }
.topbar-user-menu { position: relative; }
.topbar-user-menu > summary { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; list-style: none; background: #fff; }
.topbar-user-menu > summary::-webkit-details-marker { display: none; }
.topbar-user-avatar { display: grid; place-items: center; height: 30px; width: 30px; border-radius: 50%; background: #eff6ff; color: var(--teal); font-weight: 700; flex-shrink: 0; }
.topbar-user-name { max-width: 155px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.topbar-user-panel { position: absolute; right: 0; top: calc(100% + 10px); width: 260px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgb(15 23 42 / 12%); overflow-wrap: anywhere; }
.topbar-user-panel > strong, .topbar-user-panel > span, .topbar-user-panel > small { display: block; margin-bottom: 8px; }
.topbar-user-panel > span, .topbar-user-panel > small { color: var(--muted); font-size: 12px; }
.topbar-signout { width: 100%; text-align: left; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: #b42318; cursor: pointer; font-size: 13px; }
.topbar-user-menu > summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
@media(max-width:1100px) { .topbar-date { display: none; } .ayus-workspace .crm-topbar { gap: 18px; padding-inline: 20px; } }
@media(max-width:750px) {
 .ayus-workspace .crm-topbar { height: auto; min-height: 64px; flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
 .ayus-workspace .topbar-search { order: 3; flex-basis: 100%; max-width: none; }
 .topbar-user-name { display: none; }
 .topbar-brand { font-size: 16px; }
 .crm-topbar .topbar-navigation { gap: 12px; }
 .topbar-account { gap: 0; }
}
@media(max-width:380px) { .crm-topbar .menu-toggle span { display: none; } }

.topbar-notifications { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; color: #475569; box-shadow: 0 1px 2px rgb(15 23 42 / 4%); }
.topbar-notifications:hover { background: #eff6ff; color: var(--teal); text-decoration: none; }
.topbar-notification-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 12px; background: #e11d48; color: #fff; font-size: 10px; font-weight: 600; display: grid; place-items: center; border: 2px solid #fff; }
@media(max-width:750px) { .topbar-account { gap: 10px; } }
.notification-menu { position: relative; }
.notification-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 410px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 36px rgb(15 23 42 / 14%); overflow: hidden; }
.notification-panel[hidden] { display: none; }
.notification-panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.notification-panel-heading h2 { margin: 0; font-size: 15px; }
.notification-panel-heading button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 24px; width: 30px; height: 30px; }
.notification-panel-list { max-height: min(540px, 70vh); overflow-y: auto; overscroll-behavior: contain; }
.notification-entry { display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #eef2f6; color: var(--ink); }
.notification-entry:hover { background: #f8fafc; text-decoration: none; }
.notification-entry.is-unread { background: #f6faff; }
.notification-entry-icon { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e8f1fc; color: var(--teal); }
.notification-entry-copy { min-width: 0; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.notification-entry-copy time { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.notification-unread-dot { flex-shrink: 0; margin: 8px 0 0 auto; height: 6px; width: 6px; border-radius: 50%; background: var(--teal); }
.notification-empty { padding: 26px 18px; color: var(--muted); margin: 0; text-align: center; font-size: 13px; }
.notification-load-more { display: block; width: 100%; padding: 14px; border: 0; background: #fff; color: var(--teal); cursor: pointer; font-size: 12px; }
@media(max-width:750px) { .notification-panel { position: fixed; top: 64px; left: 12px; right: 12px; width: auto; } }

/* Notifications stay docked to the right edge of the workspace. */
.notification-panel { position: fixed; inset: 0 0 0 auto; width: min(420px, 100vw); height: 100vh; height: 100dvh; display: flex; flex-direction: column; border: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: -8px 0 28px rgb(15 23 42 / 10%); z-index: 110; }
.notification-panel[hidden] { display: none; }
.notification-panel-heading { flex-shrink: 0; padding: 20px; }
.notification-panel-heading h2 { font-size: 17px; }
.notification-panel-heading button { width: auto; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--ink); background: #fff; }
.notification-panel-heading button:hover { background: #f8fafc; }
.notification-panel-list { flex: 1; min-height: 0; max-height: none; overflow-y: auto; padding-bottom: 16px; }

.notification-entry-form { margin: 0; }
button.notification-entry { width: 100%; text-align: left; font: inherit; background: #fff; border: 0; border-bottom: 1px solid #eef2f6; cursor: pointer; }
button.notification-entry.is-unread { background: #f6faff; }
button.notification-entry:hover { background: #edf4fc; }

/* Compact notification drawer. */
.notification-panel { width: min(370px, 100vw); }
.notification-panel-heading { padding: 14px 16px; }
.notification-panel-heading h2 { font-size: 15px; }
.notification-entry { padding: 12px 14px; gap: 10px; }
.notification-entry-icon { width: 30px; height: 30px; }
.notification-entry-icon svg { width: 17px; height: 17px; }
.notification-entry-copy { font-size: 12px; line-height: 1.45; }
.notification-entry-copy time { margin-top: 3px; font-size: 10px; }

.notification-panel-heading [data-notification-close] { width: 30px; height: 30px; padding: 0; font-size: 24px; line-height: 1; font-weight: 400; display: grid; place-items: center; }
.notification-panel-heading [data-notification-close] { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.notification-panel-heading [data-notification-close]:focus { outline: none; }
.notification-panel-heading [data-notification-close]:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* Group global search with the date and account controls. */
.ayus-workspace .crm-topbar .topbar-search { margin-left: auto; margin-right: 0; }
.ayus-workspace .crm-topbar .topbar-account { margin-left: 0; }
@media(max-width:750px) {
 .ayus-workspace .crm-topbar .topbar-account { margin-left: auto; }
 .ayus-workspace .crm-topbar .topbar-search { margin: 0; }
}
.ayus-workspace .focus-workspace .board-section-label { display: flex; align-items: center; gap: 8px; line-height: 1; }
.ayus-workspace .board-section-label .focus-count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; margin: 0; padding: 0 7px; border-radius: 6px; font-size: 12px; font-weight: 600; line-height: 1; letter-spacing: 0; }

/* Center directory shares the Overview's metric and table presentation. */
.centers-table td { vertical-align: top; }
.centers-table .center-name { min-width: 180px; max-width: 260px; white-space: normal; overflow-wrap: anywhere; }
.centers-table .center-name > strong { display: block; font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.centers-table .center-contacts { min-width: 190px; max-width: 280px; white-space: normal; overflow-wrap: anywhere; }
.center-contact + .center-contact { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.center-contact > strong { font-weight: 600; }
.centers-table .center-opportunity { min-width: 170px; max-width: 250px; white-space: normal; overflow-wrap: anywhere; line-height: 1.5; }
.centers-table .center-owner { min-width: 120px; max-width: 180px; white-space: normal; }
.centers-table .center-first-row:not(:first-child) td { border-top: 1px solid var(--line); }
.state-picker { position: relative; }
.ayus-workspace .state-picker input { padding-right: 40px; }
.state-clear { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border: 0; background: transparent; color: var(--muted); font-size: 22px; cursor: pointer; }
.state-clear[hidden], .state-options[hidden] { display: none; }
.state-options { position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 20; max-height: 240px; overflow-y: auto; list-style: none; margin: 0; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px rgb(15 23 42 / 10%); }
.state-options li { padding: 9px 10px; font-size: 13px; cursor: pointer; border-radius: 4px; }
.state-options li:hover, .state-options li[aria-selected=true] { background: #eff6ff; color: var(--teal); }
.lead-location-row.lead-location-row-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media(max-width:1000px) { .lead-location-row.lead-location-row-four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width:650px) { .lead-location-row.lead-location-row-four { grid-template-columns: 1fr; } }
.mis-daily, .mis-losses, .mis-waiting { margin-bottom: 24px; }
.mis-sales-table th, .mis-sales-table td { vertical-align: top; }
.mis-sales-table tfoot { background: #f0f6fc; }
.mis-evidence { padding-left: 16px; min-width: 200px; max-width: 300px; max-height: 260px; overflow: auto; }
.mis-evidence li { margin: 10px 0; }
.mis-daily small, .mis-losses td small, .mis-waiting td small { display: block; color: #64748b; margin-top: 4px; }
.mis-definitions { margin-top: 20px; color: #64748b; }
.mis-loss-summary { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin-bottom: 20px; }
.mis-loss-summary strong { margin-left: 12px; }
.mis-current-heading { margin-top: 32px; }
@media(max-width:650px) { .mis-loss-summary { grid-template-columns: 1fr; } }
/* MIS: consistent card rhythm, compact filters and readable report tables. */
.ayus-workspace .mis-workspace .focus-panel { margin-bottom: 24px; border-radius: 14px; }
.ayus-workspace .mis-workspace .section-heading { padding: 22px 24px; gap: 16px; border-bottom: 1px solid var(--line); }
.ayus-workspace .mis-workspace .section-heading h2 { font-size: 17px; line-height: 1.4; }
.ayus-workspace .mis-workspace .section-heading p { margin-top: 6px; font-size: 12px; }
.mis-filter-form { padding: 20px 24px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.ayus-workspace .mis-filter-form .form-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.mis-filter-form .form-grid > div { min-width: 0; }
.mis-filter-form label { font-size: 12px; margin-bottom: 7px; }
.mis-filter-form input, .mis-filter-form select { width: 100%; min-height: 42px; box-sizing: border-box; }
.mis-filter-form .form-actions { justify-content: flex-end; margin: 16px 0 0; gap: 10px; }
.ayus-workspace .mis-workspace table { white-space: normal; font-size: 13px; }
.ayus-workspace .mis-workspace th, .ayus-workspace .mis-workspace td { padding: 16px 20px; line-height: 1.5; vertical-align: top; border-bottom: 1px solid var(--line); }
.ayus-workspace .mis-workspace thead th { background: #f8fafc; font-size: 11px; color: #64748b; font-weight: 600; }
.ayus-workspace .mis-sales-table { min-width: 820px; table-layout: fixed; }
.ayus-workspace .mis-sales-table th:first-child { width: 180px; text-align: left; }
.ayus-workspace .mis-sales-table tbody th { color: var(--ink); text-transform: none; font-size: 13px; letter-spacing: 0; font-weight: 600; }
.ayus-workspace .mis-sales-table td, .ayus-workspace .mis-sales-table th:not(:first-child) { text-align: center; font-variant-numeric: tabular-nums; }
.mis-sales-table summary { cursor: pointer; color: #1e75c1; font-weight: 600; }
.mis-sales-table .mis-evidence { min-width: 0; width: 100%; max-width: none; text-align: left; padding: 0; list-style: none; overflow-wrap: anywhere; }
.mis-sales-table details[open] { min-width: 0; }
.mis-definitions { margin: 0; padding: 16px 24px; border-top: 1px solid #e2e8f0; font-size: 12px; }
.mis-definitions summary { cursor: pointer; font-weight: 500; }
.mis-definitions dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 24px; margin: 16px 0 0; }
.mis-definitions dt { font-weight: 600; color: #334155; }
.mis-definitions dd { margin: 4px 0 0; }
.mis-count-badge { flex-shrink: 0; padding: 5px 10px; background: #eff6ff; color: #1e75c1; border-radius: 20px; font-size: 12px; font-weight: 600; }
.mis-loss-summary { padding: 20px 24px; margin: 0; gap: 16px; }
.mis-loss-summary > div { border: 1px solid #e2e8f0; border-radius: 10px; padding: 16px; background: #f8fafc; }
.mis-loss-summary h3 { margin: 0 0 12px; font-size: 13px; }
.mis-loss-summary p { display: flex; justify-content: space-between; margin: 8px 0; font-size: 13px; }
.mis-losses > p, .mis-waiting > p { padding: 24px; margin: 0; }
.mis-losses table { min-width: 800px; }
.mis-waiting table { min-width: 900px; }
.mis-waiting .table-scroll + .table-scroll { border-top: 8px solid #f1f5f9; }
.mis-waiting td:last-child { min-width: 180px; max-width: 320px; overflow-wrap: anywhere; }
.mis-current-heading { font-size: 17px; margin: 32px 0 18px; }
.mis-workspace .mis-detailed { padding: 20px 24px; border: 1px solid #e2e8f0; border-radius: 14px; background: white; }
.mis-detailed > summary { cursor: pointer; font-weight: 600; }
.mis-detailed > .card:first-of-type { margin-top: 20px; }
@media(max-width:1100px) { .ayus-workspace .mis-filter-form .form-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:650px) {
  .ayus-workspace .mis-workspace .section-heading { padding: 18px; flex-wrap: wrap; }
  .mis-filter-form, .mis-definitions, .mis-loss-summary { padding: 18px; }
  .ayus-workspace .mis-filter-form .form-grid { grid-template-columns: 1fr; }
  .mis-definitions dl { grid-template-columns: 1fr; }
  .mis-filter-form .form-actions > * { flex: 1; text-align: center; }
}
/* Keep report filter actions compact and aligned to the right. */
.ayus-workspace .mis-filter-form .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.ayus-workspace .mis-filter-form .form-actions > * {
  flex: 0 0 auto;
  width: auto;
  min-width: 88px;
  text-align: center;
}
/* Loss analysis stays compact until there is data to compare. */
.ayus-workspace .mis-losses.is-empty .section-heading { border-bottom: 0; padding-bottom: 8px; }
.ayus-workspace .mis-losses > .mis-loss-empty { padding: 0 24px 22px; font-size: 13px; color: var(--muted); }
.mis-losses.is-empty .mis-count-badge { background: #f1f5f9; color: #64748b; }
.mis-losses:not(.is-empty) .mis-count-badge { background: #fff1ed; color: #b65b3c; }
.mis-loss-bar-row + .mis-loss-bar-row { margin-top: 16px; }
.mis-loss-bar-label { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 13px; margin-bottom: 7px; }
.mis-loss-bar-label strong { margin: 0; font-variant-numeric: tabular-nums; }
.mis-loss-bar-track { height: 7px; overflow: hidden; border-radius: 8px; background: #e8edf3; }
.mis-loss-bar-track > span { display: block; height: 100%; background: #609cd2; border-radius: inherit; }
.mis-loss-summary > div:last-child .mis-loss-bar-track > span { background: #cb8a6c; }
@media(max-width:650px) { .ayus-workspace .mis-losses > .mis-loss-empty { padding: 0 18px 18px; } }
/* At-a-glance dashboard: period KPIs, three comparison panels, then evidence. */
.mis-heading-date { color: var(--muted); margin: 8px 0 0; font-size: 13px; }
.mis-dashboard-filter { margin-bottom: 20px; overflow: hidden; }
.mis-dashboard-filter .mis-filter-form { background: white; border: 0; padding: 18px 22px; }
.mis-kpi-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 14px; margin-bottom: 22px; }
.ayus-workspace .mis-kpi { --metric-color: #6052d9; --metric-tint: #efedff; display: flex; flex-direction: column; align-items: flex-start; padding: 20px; text-decoration: none; border-radius: 14px; min-width: 0; transition: border-color .15s, transform .15s; }
.ayus-workspace .mis-kpi:hover { border-color: var(--metric-color); transform: translateY(-2px); }
.mis-kpi-icon { display: grid; place-items: center; width: 40px; height: 40px; background: var(--metric-tint); color: var(--metric-color); border-radius: 50%; margin-bottom: 18px; }
.mis-kpi-icon svg { width: 22px; height: 22px; }
.mis-kpi-label { font-size: 12px; font-weight: 600; color: #64748b; min-height: 34px; line-height: 1.4; }
.mis-kpi strong { font-size: 30px; line-height: 1.2; color: var(--metric-color); font-variant-numeric: tabular-nums; }
.ayus-workspace .mis-tone-connected { --metric-color: #0891b2; --metric-tint: #cffafe; }
.ayus-workspace .mis-tone-new_connected { --metric-color: #2563eb; --metric-tint: #dbeafe; }
.ayus-workspace .mis-tone-interested { --metric-color: #9333ea; --metric-tint: #f3e8ff; }
.ayus-workspace .mis-tone-demos { --metric-color: #0d9488; --metric-tint: #ccfbf1; }
.ayus-workspace .mis-tone-conversions { --metric-color: #16a34a; --metric-tint: #dcfce7; }
.ayus-workspace .mis-tone-losses { --metric-color: #e14c68; --metric-tint: #ffe4e6; }
.mis-dashboard-charts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; margin-bottom: 20px; }
.mis-chart { display: flex; flex-direction: column; padding: 22px; min-width: 0; }
.mis-chart-heading h2 { font-size: 16px; margin: 0 0 7px; }
.mis-chart-heading > span { color: #64748b; font-size: 11px; }
.mis-chart-bars { flex: 1; margin: 24px 0; max-height: 245px; overflow: auto; padding-right: 4px; }
.mis-chart-row + .mis-chart-row { margin-top: 17px; }
.mis-chart-row > div:first-child { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; margin-bottom: 7px; }
.mis-chart-row strong { font-variant-numeric: tabular-nums; }
.mis-chart-track { height: 9px; background: #f1f5f9; border-radius: 6px; overflow: hidden; }
.mis-chart-track > span { display: block; height: 100%; background: linear-gradient(90deg,#8b86f5,#6052d9); border-radius: inherit; }
.mis-progress-bars .mis-chart-track > span { background: linear-gradient(90deg,#38c7d8,#0891b2); }
.mis-reason-bars .mis-chart-track > span { background: linear-gradient(90deg,#fb91a3,#e14c68); }
.mis-chart-link { margin-top: auto; padding-top: 14px; border-top: 1px solid #e2e8f0; font-size: 12px; font-weight: 600; }
.mis-chart-note { color: #64748b; font-weight: 400; }
.mis-chart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 230px; gap: 14px; color: #64748b; }
.mis-chart-empty p { font-size: 12px; margin: 0; }
.mis-empty-ring { display: grid; place-items: center; width: 90px; height: 90px; border: 10px solid #f1f5f9; border-radius: 50%; font-size: 28px; font-weight: 650; color: #334155; }
.mis-attention-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 16px 20px; background: #eaf1fa; border-radius: 10px; margin-bottom: 26px; }
.mis-attention-strip a { font-size: 12px; color: #475569; }
.mis-attention-strip strong { font-size: 18px; color: #1e293b; margin-right: 6px; }
.mis-attention-strip > span { margin-left: auto; color: #64748b; font-size: 11px; }
.mis-detail-nav { display: flex; gap: 24px; border-bottom: 1px solid #dce5ef; margin-bottom: 20px; padding: 0 4px 12px; }
.mis-detail-nav a { font-size: 13px; font-weight: 600; }
.mis-workspace [id] { scroll-margin-top: 100px; }
.mis-pipeline-details { margin: 24px 0; }
.mis-pipeline-details > summary { padding: 18px 22px; background: white; border: 1px solid #e2e8f0; border-radius: 12px; cursor: pointer; font-weight: 600; }
.mis-pipeline-details[open] > summary { margin-bottom: 20px; }
@media(min-width:1400px) {
  .mis-dashboard-filter .mis-filter-form { display: flex; align-items: flex-end; gap: 20px; }
  .mis-dashboard-filter .form-grid { flex: 1; }
  .mis-dashboard-filter .form-actions { margin: 0; }
}
@media(max-width:1150px) { .mis-kpi-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } .mis-dashboard-charts { grid-template-columns: repeat(2,minmax(0,1fr)); } .mis-dashboard-charts > :last-child { grid-column: 1/-1; } }
@media(max-width:650px) { .mis-kpi-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .ayus-workspace .mis-kpi { padding: 16px; } .mis-dashboard-charts { grid-template-columns: 1fr; } .mis-detail-nav { gap: 16px; overflow-x: auto; white-space: nowrap; } .mis-attention-strip { display: grid; grid-template-columns: 1fr 1fr; } .mis-attention-strip > span { margin: 0; grid-column: 1/-1; } }
/* Lead form: shared control sizing and aligned responsive rows. */
.ayus-workspace .lead-entry .form-grid,
.ayus-workspace .lead-entry .lead-location-row { gap: 18px; align-items: start; }
.ayus-workspace .lead-entry .lead-location-fields { gap: 18px; margin-top: 18px; }
.ayus-workspace .lead-entry input:not([type=submit]):not([type=checkbox]):not([type=hidden]),
.ayus-workspace .lead-entry select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  border-radius: 8px;
}
.ayus-workspace .lead-entry textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 88px;
  min-height: 88px;
  margin: 0;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  line-height: 22px;
  border-radius: 8px;
  resize: vertical;
}
.ayus-workspace .lead-entry .state-picker input { padding-right: 40px !important; }
.ayus-workspace .lead-entry label:not(.checkbox) { display: block; margin: 0 0 8px; line-height: 20px; }
.ayus-workspace .lead-entry .lead-enquiry-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ayus-workspace .lead-entry .lead-assignment-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
@media(max-width:1200px) {
  .ayus-workspace .lead-entry .lead-location-row-four { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:850px) {
  .ayus-workspace .lead-entry .lead-enquiry-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:650px) {
  .ayus-workspace .lead-entry .form-grid,
  .ayus-workspace .lead-entry .lead-location-row-four { grid-template-columns: 1fr; gap: 16px; }
}
/* Contact details use a compact, consistent grid like the customer form. */
.ayus-workspace .lead-entry .lead-contact-section { padding: 24px; }
.ayus-workspace .lead-entry .lead-contact-section h2 { font-size: 19px; padding-bottom: 20px; margin-bottom: 24px; }
.ayus-workspace .lead-entry .lead-contact-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px 24px; }
.ayus-workspace .lead-contact-grid label:not(.checkbox) { font-size: 14px; font-weight: 600; color: #334155; margin-bottom: 9px; }
.ayus-workspace .lead-entry .lead-contact-grid input:not([type=hidden]),
.ayus-workspace .lead-entry .lead-contact-grid textarea { height: 46px; min-height: 46px; border-radius: 9px; background: white; }
.ayus-workspace .lead-entry .lead-contact-grid textarea { resize: vertical; }
.ayus-workspace .lead-entry .lead-contact-section .checkbox { margin-top: 22px; }
@media(max-width:1000px) { .ayus-workspace .lead-entry .lead-contact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) {
  .ayus-workspace .lead-entry .lead-contact-section { padding: 20px 18px; }
  .ayus-workspace .lead-entry .lead-contact-grid { grid-template-columns: 1fr; gap: 18px; }
}
.lead-detail-navigation { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.lead-detail-navigation .back { margin: 0; }
.lead-detail-navigation nav { display: flex; gap: 8px; }
.ayus-workspace .lead-arrow { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid #dbe4ef; border-radius: 8px; background: white; color: #475569; }
.ayus-workspace .lead-arrow:hover:not(:disabled) { color: #1e75c1; border-color: #1e75c1; background: #eff6ff; }
.ayus-workspace .lead-arrow:disabled { opacity: .35; cursor: default; }
/* Plain lead navigation arrows; retain their click area and keyboard focus. */
.ayus-workspace .lead-arrow,
.ayus-workspace .lead-arrow:hover:not(:disabled) {
  border: 0;
  background: transparent;
  box-shadow: none;
}
/* Shared dashboard sizing: use the viewport rather than a centered 1500px cap. */
.ayus-workspace main.focus-workspace {
  width: 100%;
  max-width: none;
  min-width: 0;
  margin: 0;
  padding: 28px clamp(16px, 2.25vw, 40px) 36px;
}
.ayus-workspace .focus-workspace .focus-metric span { font-size: 14px; }
.ayus-workspace .focus-workspace .focus-lead-table td { font-size: 14px; line-height: 1.5; }
.ayus-workspace .focus-workspace .focus-lead-table th { font-size: 12px; }
.ayus-workspace .focus-workspace .focus-lead-table .badge { font-size: 12px; }
.ayus-workspace .focus-workspace .focus-lead-table small { font-size: 12px; }
.ayus-workspace .focus-workspace .focus-lead-table td { overflow-wrap: anywhere; }
@media(max-width:700px) {
  .ayus-workspace main.focus-workspace { padding: 20px 16px 28px; }
}
.ayus-workspace .attribution-card { padding: 24px; }
.ayus-workspace .attribution-card h2 { font-size: 18px; margin: 0 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.attribution-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.attribution-fields > div { min-width: 0; }
.attribution-fields label { display: block; margin-bottom: 8px; font-size: 13px; }
.attribution-fields select { height: 44px; padding: 10px 12px; margin: 0; width: 100%; }
.attribution-reason { grid-column: 1/-1; }
.attribution-fields textarea { display: block; width: 100%; min-height: 88px; padding: 12px; margin: 0; resize: vertical; }
.attribution-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.attribution-actions input[type=submit] { width: auto; }
@media(max-width:650px) { .attribution-fields { grid-template-columns: 1fr; gap: 16px; } .ayus-workspace .attribution-card { padding: 18px; } }
/* Attribution fields share one row on desktop. */
.ayus-workspace .attribution-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.ayus-workspace .attribution-reason { grid-column: auto; }
.ayus-workspace .attribution-fields textarea { height: 44px; min-height: 44px; padding: 10px 12px; }
@media(max-width:650px) { .ayus-workspace .attribution-fields { grid-template-columns: 1fr; } }
.contact-board .board-filter-toolbar { display: flex; align-items: center; gap: 12px; padding-right: 20px; border-bottom: 1px solid #e2e8f0; }
.contact-board .board-filter-toolbar .focus-views { flex: 1; min-width: 0; margin: 0; border-bottom: 0; overflow-x: auto; }
.ayus-workspace .board-filter-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex-shrink: 0; width: 40px; height: 40px; padding: 10px; border: 0; border-radius: 8px; background: transparent; box-shadow: none; color: #475569; font-size: 13px; cursor: pointer; }
.ayus-workspace .board-filter-toggle:hover, .ayus-workspace .board-filter-toggle[aria-expanded=true] { color: #1e75c1; background: #eff6ff; }
#board-search-area[hidden] { display: none !important; }
@media(max-width:650px) { .contact-board .board-filter-toolbar { padding-right: 12px; gap: 6px; } }
/* Keep the count aligned above its label without a step number. */
.ayus-workspace .focus-stage > strong { display: block; float: none; text-align: right; }

/* A single date range control with quick presets and two calendars. */
.mis-dashboard-filter { overflow: visible; }
.ayus-workspace .mis-filter-form .form-grid { grid-template-columns: minmax(280px,1.6fr) repeat(3,minmax(120px,1fr)); }
.mis-date-range { position: relative; }
.ayus-workspace .range-trigger { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:10px 12px; background:white; color:#334155; border:1px solid #cbd5e1; border-radius:8px; font-size:14px; font-weight:400; box-shadow:none; text-align:left; }
.range-trigger svg { flex-shrink:0; }
.range-trigger > span:last-child { margin-left:auto; }
.range-popup { position:absolute; left:0; top:calc(100% + 8px); width:760px; max-width:calc(100vw - 80px); z-index:50; background:white; border:1px solid #dbe4ef; border-radius:12px; box-shadow:0 12px 35px #0f172a26; overflow:hidden; }
.range-popup[hidden] { display:none!important; }
.range-body { display:flex; }
.range-presets { width:155px; flex-shrink:0; padding:12px 0; border-right:1px solid #e2e8f0; }
.ayus-workspace .range-popup button { box-shadow:none; cursor:pointer; }
.ayus-workspace .range-presets button { display:block; width:100%; border:0; border-radius:0; padding:12px 16px; text-align:left; background:white; color:#475569; font-size:13px; font-weight:400; }
.ayus-workspace .range-presets button:hover, .ayus-workspace .range-presets button.is-active { background:#eaf4ff; color:#1e75c1; }
.range-calendar-area { flex:1; min-width:0; position:relative; padding:16px; }
.range-month-nav { position:absolute; top:12px; left:16px; right:16px; display:flex; justify-content:space-between; pointer-events:none; }
.ayus-workspace .range-month-nav button { pointer-events:auto; border:0; background:#eff6ff; color:#1e75c1; width:30px; height:30px; padding:0; font-size:24px; border-radius:6px; }
.range-calendars { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.range-calendars h3 { margin:2px 30px 18px; text-align:center; font-size:14px; color:#1e293b; }
.range-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:2px; text-align:center; }
.range-days > span { font-size:12px; padding:7px 0; color:#64748b; }
.ayus-workspace .range-days button { padding:0; height:32px; width:100%; border:0; border-radius:5px; background:white; color:#334155; font-size:13px; font-weight:400; }
.ayus-workspace .range-days button:hover, .ayus-workspace .range-days button.in-range { background:#eaf4ff; color:#1e75c1; }
.ayus-workspace .range-days button.is-selected { background:#1e75c1; color:white; }
.range-footer { display:flex; align-items:center; justify-content:flex-end; gap:10px; padding:14px 16px; border-top:1px solid #e2e8f0; }
.range-footer > span { margin-right:auto; font-size:12px; color:#64748b; }
.ayus-workspace .range-footer button { width:auto; min-height:36px; padding:8px 14px; font-size:13px; }
@media(max-width:1100px) { .ayus-workspace .mis-filter-form .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:700px) {
 .ayus-workspace .mis-filter-form .form-grid { grid-template-columns:1fr; }
 .range-popup { position:fixed; left:12px; right:12px; top:15vh; width:auto; max-width:none; max-height:80vh; overflow:auto; }
 .range-body { flex-direction:column; }
 .range-presets { display:flex; flex-wrap:wrap; width:auto; padding:8px; border-right:0; border-bottom:1px solid #e2e8f0; }
 .ayus-workspace .range-presets button { width:auto; padding:8px; }
 .range-calendars { gap:10px; }
 .range-calendar-area { padding:12px 8px; }
 .range-calendars h3 { font-size:12px; margin-left:24px; margin-right:24px; }
 .range-footer { flex-wrap:wrap; }
 .range-footer > span { width:100%; }
}

/* Expand the calendars only for a custom date range. */
.range-calendar-area[hidden] { display: none !important; }
.range-popup:not(.is-custom-range) { width: 340px; }
.range-popup:not(.is-custom-range) .range-presets { width: 100%; border-right: 0; }
.range-popup:not(.is-custom-range) .range-footer { flex-wrap: wrap; }
.range-popup:not(.is-custom-range) .range-footer > span { width: 100%; }
@media(max-width:700px) { .range-popup:not(.is-custom-range) { width: auto; } }

.ayus-workspace .employee-icon { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; padding:8px; }
.ayus-workspace .employee-icon:not(.button) { border:0; background:transparent; color:#1e75c1; box-shadow:none; cursor:pointer; }
.employee-edit-row[hidden] { display:none!important; }
.employee-edit-row > td { background:#f8fafc; padding:24px; white-space:normal; }

.ayus-workspace .employee-create-dialog { width:min(760px,calc(100vw - 32px)); max-height:calc(100dvh - 48px); box-sizing:border-box; margin:auto; padding:28px; border:1px solid #dbe4ef; border-radius:16px; background:white; color:#334155; box-shadow:0 24px 70px #0f172a33; overflow:auto; }
.employee-create-dialog::backdrop { background:rgb(15 23 42 / 40%); }
.employee-dialog-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; padding-bottom:16px; border-bottom:1px solid #e2e8f0; }
.employee-dialog-heading h2 { margin:0; font-size:20px; }
.ayus-workspace .employee-dialog-close { width:32px; height:32px; padding:0; border:0; background:transparent; color:#64748b; font-size:26px; cursor:pointer; box-shadow:none; }
.ayus-workspace .employee-create-dialog .operations-fields-four { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:600px) { .ayus-workspace .employee-create-dialog { padding:20px; } .ayus-workspace .employee-create-dialog .operations-fields-four { grid-template-columns:1fr; } }

.employee-dialog-row > td { padding:0!important; border:0!important; height:0; }

.notification-clearable { position:relative; }
.notification-clearable .notification-entry { padding-right:48px; }
.ayus-workspace .notification-clear { position:absolute; right:12px; top:18px; width:28px; height:28px; padding:0; display:grid; place-items:center; border:0; background:transparent; box-shadow:none; color:#a8b5c5; font-size:17px; font-weight:400; cursor:pointer; }
.ayus-workspace .notification-clear:hover { color:#1e75c1; background:#eaf4ff; }

/* Administration uses the same spacing and blue selection as the sales workspace. */
.ayus-workspace main.customer-admin { width:100%; max-width:none; padding:28px clamp(16px,2.25vw,40px) 40px; }
.customer-admin .page-heading { margin-bottom:24px; }
.customer-admin .page-heading h1 { margin:0; font-size:30px; }
.customer-admin .customer-admin-layout { display:grid; grid-template-columns:230px minmax(0,1fr); gap:24px; align-items:start; }
.customer-admin .customer-admin-nav { padding:10px; border-radius:12px; gap:4px; box-shadow:0 2px 8px #0f172a04; }
.customer-admin .customer-admin-nav a { display:flex; align-items:center; min-height:42px; padding:10px 14px; font-size:13px; line-height:1.5; border-radius:7px; color:#475569; }
.customer-admin .customer-admin-nav a:hover { background:#f5f8fc; }
.customer-admin .customer-admin-nav a.active { background:#eaf4ff; color:#1e75c1; font-weight:600; }
.customer-admin .customer-admin-content { display:flex; flex-direction:column; gap:20px; }
.customer-admin .customer-admin-content > .card { padding:24px; margin:0; border-radius:12px; }
.customer-admin .customer-admin-content h2 { margin:0 0 18px; font-size:19px; line-height:1.4; }
.customer-admin-content .operations-card-heading h2 { margin:0; }
.customer-admin-content .operations-fields { gap:20px; }
.customer-admin-content label { font-size:13px; color:#52617a; }
.customer-admin-content input:not([type=checkbox]):not([type=hidden]):not([type=submit]), .customer-admin-content select { min-height:44px; font-size:14px; }
.admin-section-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:18px; border-bottom:1px solid #e2e8f0; margin-bottom:18px; }
.customer-admin-content .admin-section-heading h2 { margin:0; }
.admin-count { padding:5px 10px; border-radius:20px; color:#64748b; background:#f1f5f9; font-size:12px; white-space:nowrap; }
.admin-audit-list { display:grid; gap:14px; }
.admin-audit-entry { padding:18px; border:1px solid #e2e8f0; border-radius:10px; }
.admin-audit-heading { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.admin-audit-heading h3 { margin:0 0 5px; font-size:15px; color:#243247; }
.admin-audit-heading p, .admin-audit-heading time { margin:0; color:#64748b; font-size:12px; line-height:1.6; }
.admin-audit-reason { margin:14px 0 8px; font-size:14px; color:#334155; }
.admin-audit-reference { color:#7b8aa0; font-size:12px; }
.admin-audit-changes { margin-top:16px; border-top:1px solid #edf1f7; padding-top:12px; }
.admin-audit-changes summary { width:fit-content; padding:4px 0; font-size:13px; color:#1e75c1; cursor:pointer; }
.admin-audit-changes summary:focus { outline:none; }
.admin-audit-changes summary:focus-visible { outline:2px solid #93c5fd; outline-offset:3px; border-radius:3px; }
.admin-empty { padding:20px 0; color:#64748b; font-size:14px; }
@media(max-width:1000px) { .customer-admin .customer-admin-layout { grid-template-columns:190px minmax(0,1fr); gap:16px; } }
@media(max-width:760px) {
 .customer-admin .customer-admin-layout { grid-template-columns:1fr; }
 .customer-admin .customer-admin-nav { display:flex; overflow-x:auto; }
 .customer-admin .customer-admin-nav a { flex-shrink:0; white-space:nowrap; }
 .customer-admin .customer-admin-content > .card { padding:18px; }
 .admin-audit-heading { flex-direction:column; gap:6px; }
}

.admin-changes-table { margin-top:12px; width:100%; }
.admin-changes-table th, .admin-changes-table td { padding:12px 14px; text-align:left; font-size:13px; white-space:normal; overflow-wrap:anywhere; }
.admin-changes-table tbody th { color:#475569; font-weight:600; }
