:root{
  --navy:#0e2342;--blue:#0b49c7;--blue-dark:#07399f;--blue-soft:#eaf1ff;
  --ink:#152238;--muted:#6f7e94;--line:#e4e9f0;--bg:#eef2f7;--surface:#fff;
  --green:#18a866;--orange:#f2a51a;--red:#ef5757;--cyan:#23a9e6;
  --radius:12px;--radius-sm:8px;--shadow:0 10px 28px rgba(17,42,78,.07);
}
*{box-sizing:border-box}html,body{min-height:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:"Trebuchet MS","Arial Rounded MT Bold","Segoe UI",system-ui,sans-serif;line-height:1.45}a{color:var(--blue)}svg{display:block}.ui-icon{width:20px;height:20px;display:inline-grid;place-items:center;flex:0 0 20px}.ui-icon svg{width:100%;height:100%;fill:currentColor}
.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:256px;background:#fff;border-right:1px solid var(--line);z-index:40;display:flex;flex-direction:column}.brand-block{height:82px;display:flex;align-items:center;gap:11px;padding:0 20px;border-bottom:1px solid #edf0f5}.brand-mark{width:38px;height:38px;border-radius:10px;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:900;font-size:14px;box-shadow:0 8px 16px rgba(11,73,199,.22)}.brand-block strong{display:block;font-size:16px;line-height:1.15}.brand-block span{display:block;font-size:11px;color:var(--muted);margin-top:4px}.sidebar-close{display:none;margin-left:auto;font-size:24px;cursor:pointer}.side-nav{padding:18px 10px 24px;overflow-y:auto;scrollbar-width:thin}.nav-group{margin-bottom:17px}.nav-label{display:block;padding:0 12px 7px;font-size:10px;font-weight:900;letter-spacing:.11em;text-transform:uppercase;color:#98a4b5}.nav-item{display:flex;align-items:center;gap:11px;padding:10px 12px;margin:2px 0;border-radius:8px;color:#425069;text-decoration:none;font-size:13px;font-weight:700;transition:.16s ease}.nav-item .ui-icon{color:#91a0b5}.nav-item:hover{background:#f3f6fb;color:var(--blue)}.nav-item.active{background:var(--blue-soft);color:var(--blue)}.nav-item.active .ui-icon{color:var(--blue)}.nav-help-group{border-top:1px solid var(--line);padding-top:14px;margin-top:4px}
.workspace{margin-left:256px;min-height:100vh}.workspace-bar{height:74px;position:sticky;top:0;z-index:30;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 28px;gap:18px}.menu-button{display:none;color:var(--ink);cursor:pointer}.top-search{height:44px;max-width:720px;flex:1;display:flex;align-items:center;gap:10px;background:#f3f6fa;border:1px solid transparent;border-radius:10px;padding:0 15px}.top-search:focus-within{background:#fff;border-color:#b9c8de;box-shadow:0 0 0 3px rgba(11,73,199,.08)}.top-search .ui-icon{color:#8795aa}.top-search input{border:0!important;outline:0!important;background:transparent!important;margin:0!important;padding:0!important;width:100%;box-shadow:none!important;font:inherit;color:var(--ink)}.top-actions{margin-left:auto;display:flex;align-items:center;gap:9px}.top-action{width:42px;height:42px;border:1px solid var(--line);background:#fff;border-radius:9px;color:#52627a;display:grid;place-items:center;text-decoration:none}.top-action:hover{background:var(--blue);border-color:var(--blue);color:#fff}.account-menu{position:relative}.account-menu summary{list-style:none;cursor:pointer}.account-menu summary::-webkit-details-marker{display:none}.user-chip{height:44px;display:flex;align-items:center;gap:9px;padding:5px 10px 5px 6px;border:1px solid var(--line);border-radius:10px;background:#fff}.avatar-sm{width:32px;height:32px;border-radius:9px;background:var(--blue);color:#fff;display:grid;place-items:center;overflow:hidden;font-weight:900}.avatar-sm img{width:100%;height:100%;object-fit:cover}.user-chip-name{font-size:12px;font-weight:800}.chevron{color:#8290a3}.account-dropdown{position:absolute;right:0;top:52px;width:225px;padding:7px;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 16px 34px rgba(16,36,70,.16);display:grid;z-index:60}.account-dropdown-head{padding:10px 11px;border-bottom:1px solid var(--line);margin-bottom:4px}.account-dropdown-head strong,.account-dropdown-head small{display:block}.account-dropdown-head small{color:var(--muted);font-size:11px;margin-top:2px}.account-dropdown a{padding:9px 11px;border-radius:7px;color:#394760;text-decoration:none;font-size:13px;font-weight:700}.account-dropdown a:hover{background:#f2f5fa;color:var(--blue)}.account-dropdown .signout-link{color:#c33e49}
.container{max-width:1460px;margin:0 auto;padding:30px 30px 48px}.dashboard-container{padding-top:0}.breadcrumbs{display:flex;gap:8px;align-items:center;margin:0 0 12px;color:#8290a4;font-size:12px}.breadcrumbs a{text-decoration:none;font-weight:800}.page-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.page-head h1{font-size:31px;line-height:1.15;letter-spacing:-.025em;margin:0}.page-head p{margin:6px 0 0;color:var(--muted);font-size:14px}
.dashboard-hero{margin:0 -30px 22px;padding:35px 30px 28px;background:linear-gradient(135deg,#0c49c4 0%,#063aa1 100%);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:24px;min-height:176px}.dashboard-hero h2{font-size:36px;line-height:1.1;margin:6px 0 8px}.dashboard-hero p{margin:0;color:rgba(255,255,255,.78);font-size:15px}.dashboard-hero .eyebrow{color:#bcd2ff}.dashboard-hero .quick-actions{display:flex;gap:10px;flex-wrap:wrap}.dashboard-hero .button{background:#fff;color:var(--blue);box-shadow:0 8px 18px rgba(0,0,0,.12)}.dashboard-hero .button.secondary{background:rgba(255,255,255,.13);color:#fff;border:1px solid rgba(255,255,255,.28)}
.panel,.cards article,.onboarding-panel,.mini-stat,.announcement-strip article{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.panel{padding:20px;margin-bottom:18px}.panel h2{margin:0 0 10px;font-size:20px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.cards article{padding:20px;position:relative;overflow:hidden}.cards article:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#dbe4f3}.cards article.kpi-primary:before{background:var(--blue)}.cards article:nth-child(2):before{background:var(--green)}.cards article:nth-child(3):before{background:var(--orange)}.cards article:nth-child(4):before{background:var(--cyan)}.cards span{display:block;color:var(--muted);font-size:12px;font-weight:700}.cards strong{display:block;margin-top:8px;font-size:27px;letter-spacing:-.02em}.cards small{display:block;color:#95a0b0;margin-top:7px;font-size:11px}.dashboard-mini-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:18px}.mini-stat{padding:15px 16px;text-decoration:none;color:var(--ink);box-shadow:none;transition:.15s ease}.mini-stat:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:#cbd7e7}.mini-stat span,.mini-stat small{display:block}.mini-stat span{color:var(--muted);font-size:11px;font-weight:700}.mini-stat strong{display:block;margin:5px 0;font-size:22px}.mini-stat small{color:#9aa5b4;font-size:10px}.mini-stat.warning strong{color:#b97509}.mini-stat.danger strong{color:#cc414c}.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(310px,.75fr);gap:18px}.dashboard-side-stack{display:grid;gap:18px}.dashboard-panel{margin-bottom:0}.risk-bars{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.risk-bars>div{padding:13px 10px;border-radius:9px;background:#f5f7fa;border:1px solid #edf0f5}.risk-bars>div:nth-child(1){border-top:3px solid var(--green)}.risk-bars>div:nth-child(2){border-top:3px solid var(--orange)}.risk-bars>div:nth-child(3){border-top:3px solid var(--red)}.risk-bars span,.risk-bars strong,.risk-bars small{display:block}.risk-bars span{font-size:11px;color:var(--muted)}.risk-bars strong{font-size:23px;margin:3px 0}.risk-bars small{font-size:10px;color:#9ba5b3}.activity-list{display:grid}.activity-list>div{display:flex;gap:10px;padding:11px 0;border-bottom:1px solid #edf0f5}.activity-list>div:last-child{border-bottom:0}.activity-dot{width:9px;height:9px;border-radius:50%;background:var(--blue);margin-top:5px}.activity-list strong,.activity-list small{display:block}.activity-list strong{font-size:12px}.activity-list small{font-size:10px;color:var(--muted);margin-top:2px}.announcement-strip{display:grid;gap:9px;margin-bottom:18px}.announcement-strip article{padding:13px 16px;border-left:4px solid var(--blue);box-shadow:none}.announcement-strip strong,.announcement-strip span{display:block}.announcement-strip span{color:var(--muted);font-size:12px;margin-top:3px}.onboarding-panel{display:grid;grid-template-columns:300px 1fr;gap:20px;padding:20px;margin-bottom:18px}.onboarding-copy h2{margin:5px 0 7px}.onboarding-copy p{color:var(--muted);font-size:13px}.onboarding-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.onboarding-steps a{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:9px;text-decoration:none;color:var(--ink)}.onboarding-steps a:hover{border-color:#adc0dc;background:#f7f9fc}.onboarding-steps a>span{width:29px;height:29px;border-radius:8px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-weight:900}.onboarding-steps div{flex:1}.onboarding-steps strong,.onboarding-steps small{display:block}.onboarding-steps strong{font-size:12px}.onboarding-steps small{font-size:10px;color:var(--muted);margin-top:2px}.onboarding-steps b{font-size:10px;color:var(--blue)}
.grid{display:grid;gap:18px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.split{display:grid;grid-template-columns:330px minmax(0,1fr);gap:18px}.toolbar,.actions,.search{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.toolbar{justify-content:space-between}.toolbar>div:first-child{min-width:0}.toolbar h2{margin:0}.muted{color:var(--muted);margin:4px 0 0;font-size:12px}.eyebrow{font-size:10px;letter-spacing:.12em;font-weight:900;color:var(--blue)}.text-link{font-size:12px;font-weight:800;text-decoration:none}
label{display:block;font-size:12px;font-weight:750;margin-bottom:13px;color:#344259}input,select,textarea{width:100%;margin-top:6px;padding:10px 12px;border:1px solid #cdd6e2;border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:13px}input:focus,select:focus,textarea:focus{outline:0;border-color:#7aa0e4;box-shadow:0 0 0 3px rgba(11,73,199,.09)}.button,button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:39px;padding:9px 15px;border:0;border-radius:8px;background:var(--blue);color:#fff;font-weight:800;font-size:12px;text-decoration:none;cursor:pointer;box-shadow:none}.button:hover,button:hover{background:var(--blue-dark)}.button.secondary,button.secondary{background:#edf2f8;color:#31435e}.button.secondary:hover,button.secondary:hover{background:#dfe7f1}.button.outline{background:#fff;color:var(--blue);border:1px solid #9cb8e9}.button.danger,button.danger{background:#cf4650}.button.small,button.small{min-height:31px;padding:6px 10px;font-size:11px}.tabs{display:flex;gap:7px;flex-wrap:wrap;margin:10px 0 15px}.tabs a{display:inline-flex;align-items:center;padding:7px 12px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#4c5b70;text-decoration:none;font-size:11px;font-weight:800}.tabs a:hover,.tabs a.active{background:var(--blue);border-color:var(--blue);color:#fff}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff}table{width:100%;border-collapse:collapse;background:#fff}th,td{text-align:left;padding:11px 12px;border-bottom:1px solid var(--line);font-size:12px;vertical-align:middle}th{background:#f3f6fa;color:#29374c;font-size:11px;font-weight:900;white-space:nowrap}tbody tr:hover{background:#fbfcfe}tr:last-child td{border-bottom:0}td small{display:block;color:var(--muted);margin-top:2px}.badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:6px;background:#e9eef4;color:#48576d;font-size:10px;font-weight:900;text-transform:capitalize}.badge.green{background:#e2f5eb;color:#167248}.badge.orange{background:#fff0d4;color:#9c6207}.badge.red{background:#fde4e6;color:#a63842}.alert{padding:11px 13px;border-radius:8px;margin:0 0 15px;font-size:12px;font-weight:700}.alert.success{background:#e7f6ee;color:#176645}.alert.danger{background:#fde8ea;color:#96343d}.alert.warning{background:#fff0d7;color:#8b5908}.empty-state{padding:28px 16px;text-align:center;color:var(--muted)}.empty-state strong,.empty-state span{display:block}.empty-state strong{color:var(--ink);margin-bottom:4px}.empty-state.compact{padding:15px 5px}footer{padding:18px 30px;text-align:center;color:#8d99aa;font-size:10px}
.nav-toggle,.nav-backdrop{display:none}
@media(max-width:1180px){.cards{grid-template-columns:repeat(2,1fr)}.dashboard-mini-grid{grid-template-columns:repeat(3,1fr)}.dashboard-main-grid{grid-template-columns:1fr}.onboarding-panel{grid-template-columns:1fr}.split{grid-template-columns:1fr}}
@media(max-width:850px){.sidebar{transform:translateX(-100%);transition:.2s ease}.workspace{margin-left:0}.nav-toggle:checked~.app-shell .sidebar{transform:translateX(0)}.nav-toggle:checked~.app-shell .nav-backdrop{display:block;position:fixed;inset:0;background:rgba(12,28,52,.46);z-index:35}.sidebar-close{display:block}.menu-button{display:grid;place-items:center;width:40px;height:40px}.workspace-bar{padding:0 15px}.container{padding:24px 16px 40px}.dashboard-hero{margin:0 -16px 18px;padding:28px 18px}.user-chip-name,.chevron{display:none}.top-search{max-width:none}.grid.two{grid-template-columns:1fr}}
@media(max-width:600px){.workspace-bar{height:66px}.top-search{height:40px}.top-action{width:39px;height:39px}.top-actions{gap:6px}.dashboard-hero{min-height:auto;display:block}.dashboard-hero h2{font-size:29px}.dashboard-hero .quick-actions{margin-top:18px}.cards{grid-template-columns:1fr}.dashboard-mini-grid{grid-template-columns:repeat(2,1fr)}.onboarding-steps{grid-template-columns:1fr}.page-head h1{font-size:27px}.panel{padding:15px}.actions .button{flex:1}.toolbar{align-items:flex-start}.account-dropdown{right:-4px}}
@media(max-width:430px){.top-search{display:none}.workspace-bar{justify-content:space-between}.dashboard-mini-grid{grid-template-columns:1fr 1fr}.dashboard-hero{padding-top:24px}.container{padding-top:20px}.page-head{margin-bottom:15px}}
@media print{.sidebar,.workspace-bar,.actions,.tabs,.button,button,.breadcrumbs{display:none!important}.workspace{margin:0}.container{max-width:none;padding:0}.dashboard-hero{margin:0;color:#000;background:#fff}.panel,.cards article{box-shadow:none;border:1px solid #bbb}}

/* Standalone installer, login, updater and public payment screens */
.auth-bg{
  min-height:100vh;
  display:flex;
  align-items:flex-start;
  justify-content:center;
  padding:48px 24px;
  background:
    radial-gradient(circle at 15% 10%,rgba(11,73,199,.10),transparent 28%),
    radial-gradient(circle at 90% 85%,rgba(24,168,102,.08),transparent 24%),
    #eef3f8;
}
.auth-card{
  width:min(460px,100%);
  margin:auto;
  padding:30px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  box-shadow:0 22px 60px rgba(15,35,66,.12);
}
.auth-card.wide{width:min(920px,100%)}
.auth-card h1{margin:0;font-size:29px;line-height:1.15;letter-spacing:-.025em;color:var(--navy)}
.auth-card>p{margin:7px 0 26px;color:var(--muted);font-size:14px}
.auth-card form{display:grid;gap:0}
.auth-card h3{
  margin:22px 0 14px;
  padding-bottom:9px;
  border-bottom:1px solid var(--line);
  color:var(--navy);
  font-size:16px;
}
.auth-card h3:first-of-type{margin-top:0}
.auth-card label{margin-bottom:14px}
.auth-card button{margin-top:8px;min-height:44px;padding-inline:22px;justify-self:start}
.auth-card .payment-link{display:block;margin-top:20px;font-size:12px;font-weight:800;text-decoration:none}
.auth-card .grid.two{gap:14px 18px}
.install-brand{display:flex;align-items:center;gap:13px;margin-bottom:26px}
.install-mark{width:46px;height:46px;border-radius:11px;background:var(--blue);color:#fff;display:grid;place-items:center;font-weight:900;font-size:16px;box-shadow:0 10px 22px rgba(11,73,199,.20)}
.install-brand h1{font-size:25px}.install-brand p{margin:4px 0 0;color:var(--muted);font-size:12px}
.install-section{padding:20px;border:1px solid var(--line);border-radius:11px;background:#f9fbfd;margin-bottom:17px}
.install-section h2{margin:0 0 15px;font-size:16px;color:var(--navy)}
.install-note{display:flex;gap:9px;align-items:flex-start;padding:11px 13px;background:#eaf1ff;color:#244d91;border-radius:8px;font-size:12px;margin-bottom:18px}
.install-actions{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:4px}
.install-actions small{color:var(--muted);max-width:520px}
@media(max-width:700px){
  .auth-bg{padding:18px 12px;align-items:flex-start}
  .auth-card,.auth-card.wide{padding:20px;border-radius:11px}
  .auth-card .grid.two{grid-template-columns:1fr}
  .install-section{padding:15px}
  .install-actions{align-items:stretch;flex-direction:column}
  .auth-card button{width:100%;justify-self:stretch}
}

/* Build 8.5 consistency, alignment, help and tooltip layer */
.filter-panel{padding:18px 20px}.filter-grid{display:grid;gap:12px 14px;align-items:end}.filter-grid label{margin:0}.filter-grid-audit{grid-template-columns:repeat(5,minmax(130px,1fr)) auto}.filter-grid-list{grid-template-columns:minmax(280px,1.7fr) minmax(160px,.55fr) auto}.filter-grid-people{grid-template-columns:minmax(300px,1.7fr) minmax(160px,.55fr) minmax(150px,.5fr) auto}.filter-grid-collections{grid-template-columns:repeat(5,minmax(130px,.65fr)) minmax(230px,1.3fr) auto}.report-filter-grid{grid-template-columns:repeat(4,minmax(155px,1fr));}.report-filter-grid .filter-actions{grid-column:1/-1}.grow-field{min-width:0}.filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0}.filter-actions .button,.filter-actions button{white-space:nowrap}.list-toolbar-panel{padding:18px 20px}.compact-button{min-height:32px!important;padding:6px 11px!important;font-size:11px!important}.section-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.section-toolbar h2{margin:0}.section-toolbar>form{margin-left:auto}.inline-filter-form,.inline-action-form,.lookup-row{display:flex;align-items:end;gap:10px}.inline-filter-form select{min-width:220px;margin:0}.inline-action-form select{min-width:115px;margin:0}.inline-action-form button{margin:0}.lookup-row .grow-field{flex:1;margin:0}.compact-form-panel{max-width:none}.payment-entry-panel .section-heading{margin-bottom:14px}.form-grid{display:grid;gap:14px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.form-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-top:8px}.stacked-form .form-actions{margin-top:4px}.recovery-top-grid{align-items:stretch}.recovery-top-grid>.panel{margin-bottom:18px}.info-panel{background:#f8fbff}.plain-check-list{padding-left:20px;color:var(--muted);font-size:13px}.plain-check-list li{margin:7px 0}.notification-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.notification-tile{display:grid;grid-template-columns:46px 1fr auto;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;box-shadow:var(--shadow)}.notification-icon{width:42px;height:42px;border-radius:10px;display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-weight:900}.notification-copy span,.notification-copy strong,.notification-copy small{display:block}.notification-copy span{font-weight:800}.notification-copy strong{font-size:25px;line-height:1;margin:4px 0}.notification-copy small{color:var(--muted);font-size:11px}.help-search-panel{display:flex;align-items:center;justify-content:space-between;gap:18px}.help-search-panel h2{margin:0}.help-search-panel input{max-width:360px;margin:0}.help-layout{display:grid;grid-template-columns:310px minmax(0,1fr);gap:18px}.help-menu{padding:10px;max-height:calc(100vh - 220px);overflow:auto}.help-menu a{display:block;padding:12px;border-radius:8px;text-decoration:none;color:var(--ink);border:1px solid transparent}.help-menu a:hover{background:#f4f7fb}.help-menu a.active{background:var(--blue-soft);border-color:#cddcff;color:var(--blue)}.help-menu strong,.help-menu small{display:block}.help-menu strong{font-size:13px}.help-menu small{font-size:10px;color:var(--muted);margin-top:3px;line-height:1.35}.help-article{padding:26px}.help-article-head{border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:18px}.help-article-head h2{font-size:28px;margin:5px 0 8px}.help-article-head p{margin:0;color:var(--muted)}.guide-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.guide-sections article{padding:16px;border:1px solid var(--line);border-radius:9px;background:#fbfcfe}.guide-sections h3{margin:0 0 7px;font-size:15px}.guide-sections p{margin:0;color:#56657a;font-size:13px;line-height:1.55}.tip-box{margin-top:18px;padding:15px 16px;border-radius:9px;background:#eef4ff;border:1px solid #d6e4ff}.tip-box p{margin:4px 0 0;color:#51688d;font-size:12px}.global-tooltip{position:fixed;z-index:9999;max-width:300px;padding:8px 10px;border-radius:7px;background:#13233c;color:#fff;font-size:11px;line-height:1.35;box-shadow:0 10px 26px rgba(0,0,0,.2);pointer-events:none;opacity:0;transform:translateY(-3px);transition:.12s ease}.global-tooltip.show{opacity:1;transform:translateY(0)}.report-results .table-wrap{max-height:640px}.amount-negative{color:#b53442;font-weight:800}.amount-positive{color:#137348;font-weight:800}.empty-state .button{margin-top:12px}.selection-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.selection-card{position:relative;margin:0!important;padding:14px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer}.selection-card:has(input:checked){border-color:var(--blue);box-shadow:0 0 0 3px rgba(11,73,199,.08)}.selection-card input{width:auto;margin:0 7px 0 0}.selection-card strong,.selection-card span{display:block;margin-left:24px}.selection-card strong{font-size:14px}.selection-card span{font-size:11px;color:var(--muted);margin-top:3px}.section-heading h2{margin:0}.dashboard-container>.dashboard-hero+*{position:relative}.dashboard-kpis,.dashboard-mini-grid,.dashboard-main-grid{visibility:visible!important;opacity:1!important}.dashboard-main-grid{margin-bottom:18px}
@media(max-width:1250px){.filter-grid-audit{grid-template-columns:repeat(3,minmax(140px,1fr))}.filter-grid-audit .filter-actions{grid-column:1/-1}.filter-grid-collections{grid-template-columns:repeat(3,minmax(150px,1fr))}.filter-grid-collections .filter-actions{grid-column:1/-1}.report-filter-grid{grid-template-columns:repeat(3,minmax(150px,1fr))}.selection-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.filter-grid-list,.filter-grid-people{grid-template-columns:1fr 1fr}.filter-grid-list .grow-field,.filter-grid-people .grow-field,.filter-grid-list .filter-actions,.filter-grid-people .filter-actions{grid-column:1/-1}.help-layout{grid-template-columns:1fr}.help-menu{max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.notification-grid{grid-template-columns:1fr}.guide-sections{grid-template-columns:1fr}.report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid.two{grid-template-columns:1fr}}
@media(max-width:620px){.filter-grid,.filter-grid-audit,.filter-grid-list,.filter-grid-people,.filter-grid-collections,.report-filter-grid{grid-template-columns:1fr}.filter-grid>*{grid-column:auto!important}.filter-actions{align-items:stretch}.filter-actions .button,.filter-actions button{flex:1}.section-toolbar{align-items:flex-start;flex-direction:column}.section-toolbar>form{margin-left:0;width:100%}.inline-filter-form{width:100%;align-items:stretch}.inline-filter-form select{min-width:0}.notification-tile{grid-template-columns:42px 1fr}.notification-tile .button{grid-column:1/-1}.help-search-panel{align-items:stretch;flex-direction:column}.help-search-panel input{max-width:none}.help-menu{grid-template-columns:1fr}.selection-list{grid-template-columns:1fr}.lookup-row{align-items:stretch;flex-direction:column}}


/* Build 8.6 final responsive authentication and access-aware usability */
.login-screen{padding:28px;background:linear-gradient(135deg,#edf3ff 0%,#f6f8fb 48%,#eef7f3 100%);align-items:center}.login-card{width:min(980px,100%);min-height:590px;display:grid;grid-template-columns:1.05fr .95fr;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 28px 80px rgba(14,35,66,.16)}.login-brand-panel{padding:58px;background:linear-gradient(145deg,#0b49c7 0%,#07369a 100%);color:#fff;display:flex;flex-direction:column;justify-content:center}.login-logo{width:54px;height:54px;border-radius:14px;display:grid;place-items:center;background:#fff;color:var(--blue);font-weight:900;margin-bottom:28px;box-shadow:0 12px 30px rgba(0,0,0,.15)}.login-brand-panel .eyebrow{color:#c9dcff;font-size:11px;font-weight:900;letter-spacing:.15em}.login-brand-panel h1{font-size:38px;line-height:1.12;margin:10px 0 16px;letter-spacing:-.03em}.login-brand-panel p{color:rgba(255,255,255,.8);font-size:15px;max-width:480px}.login-brand-panel ul{margin:24px 0 0;padding-left:20px;color:#e4edff;font-size:13px}.login-brand-panel li{margin:9px 0}.login-form-panel{padding:58px 52px;display:flex;flex-direction:column;justify-content:center}.login-form-head h2{font-size:30px;margin:0}.login-form-head p{margin:7px 0 28px;color:var(--muted)}.login-form{display:grid;gap:16px}.login-form label{margin:0}.login-form input{min-height:48px}.password-field{position:relative}.password-field input{padding-right:70px}.password-toggle{position:absolute;right:8px;top:7px;min-height:34px!important;padding:6px 10px!important;background:#edf2fa!important;color:#31425e!important;border:0!important}.remember-line{font-size:12px;color:var(--muted)}.login-submit{width:100%;justify-content:center;min-height:48px}.public-payment-button{display:flex;justify-content:center;align-items:center;min-height:46px;margin-top:12px;border:1px solid #cbd8ea;border-radius:9px;text-decoration:none;font-weight:800;color:var(--blue);background:#f8fbff}.public-payment-button:hover{background:var(--blue-soft)}.login-security-note{text-align:center;color:var(--muted);font-size:11px;margin:18px 0 0}.notification-empty{grid-column:1/-1;text-align:center}.notification-tile .button{text-decoration:none!important}.notification-copy{min-width:0}.notification-copy small{line-height:1.45}
@media(max-width:760px){.login-screen{padding:14px;align-items:flex-start}.login-card{display:block;min-height:0;border-radius:14px}.login-brand-panel{padding:28px 24px}.login-brand-panel h1{font-size:27px}.login-brand-panel p,.login-brand-panel ul{display:none}.login-logo{width:44px;height:44px;border-radius:11px;margin-bottom:16px}.login-form-panel{padding:28px 22px}.login-form-head h2{font-size:25px}.login-form-head p{margin-bottom:22px}.notification-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}.notification-tile{grid-template-columns:42px minmax(0,1fr)!important;padding:15px!important;gap:11px!important}.notification-tile .button{grid-column:1/-1;width:100%;justify-content:center}.workspace-bar .top-search{display:none}.workspace-bar{padding-inline:12px}.top-actions{gap:6px}.user-chip-name{display:none}.user-chip{padding-right:6px}.container{padding-inline:15px}.panel{padding:16px}.grid.two,.split{grid-template-columns:1fr!important}.table-wrap{overflow-x:auto}.help-layout{display:block}.help-menu{margin-bottom:14px}.help-article{padding:18px}.guide-sections{grid-template-columns:1fr!important}}
@media(max-width:420px){.login-screen{padding:0;background:#fff}.login-card{border:0;border-radius:0;box-shadow:none;min-height:100vh}.login-brand-panel{padding:24px 20px}.login-form-panel{padding:24px 18px}.login-form-head h2{font-size:23px}.public-payment-button,.login-submit{min-height:46px}}


/* Build 8.7 validation, responsive controls and quick overview */
.remember-line{display:flex!important;align-items:center!important;gap:9px!important}.remember-line input,.compact-check input,.choice-option input{width:16px!important;height:16px!important;min-height:16px!important;margin:0!important;flex:0 0 16px}.password-toggle{width:38px!important;height:38px!important;min-height:38px!important;padding:0!important;display:grid!important;place-items:center!important;top:50%!important;right:5px!important;transform:translateY(-50%)!important;margin:0!important;line-height:1!important}.password-toggle svg{width:20px;height:20px;fill:#52627a}.password-toggle.is-visible{background:#dfe9fb!important}.public-payment-button{font-size:14px}.phone-input{display:flex;align-items:center;border:1px solid #cbd6e4;border-radius:8px;background:#fff;overflow:hidden}.phone-input:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(11,73,199,.08)}.phone-input span{padding:0 12px;background:#f1f5fa;border-right:1px solid #d9e2ed;align-self:stretch;display:flex;align-items:center;font-weight:800;color:#40506a}.phone-input input{border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important}.choice-group{border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin:16px 0;display:flex;gap:18px;align-items:center;flex-wrap:wrap}.choice-group legend{font-weight:800;padding:0 6px}.choice-option{display:inline-flex!important;align-items:center!important;gap:8px!important;margin:0!important;cursor:pointer}.compact-check{display:flex!important;align-items:flex-start!important;gap:9px!important;margin:14px 0!important}.compact-check span{line-height:1.45}.responsive-admin-grid{grid-template-columns:minmax(300px,420px) minmax(0,1fr)!important}.compact-card{align-self:start}.profile-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.profile-summary-card{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;text-align:left;gap:11px;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:12px;box-shadow:none}.profile-summary-card:hover{border-color:#a9bddd;background:#f9fbff}.profile-summary-card strong,.profile-summary-card small{display:block}.profile-summary-card small{color:var(--muted);margin-top:3px}.profile-card-avatar{width:38px;height:38px;border-radius:9px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;font-weight:900}.clickable-row{cursor:pointer}.clickable-row:hover td{background:#f8fbff}.sticky-form-actions{position:sticky;bottom:0;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);padding:14px 0 2px;display:flex;gap:10px;z-index:2}.permission-table td:not(:first-child),.subpanel table td:not(:first-child){text-align:center}.subpanel input[type=radio]{width:16px!important;height:16px!important;min-height:16px!important;margin:auto!important;display:block}.form-actions,.filter-actions{align-items:center!important}.inline-filter-form,.lookup-row{align-items:end!important}.account-menu .chevron{width:16px;height:16px;display:grid;place-items:center;margin-left:2px}.account-menu .chevron svg{width:13px;height:13px}.overview-modal[hidden]{display:none}.overview-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px}.overview-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(12,25,46,.48);width:100%;height:100%;border-radius:0}.overview-modal-card{position:relative;width:min(520px,100%);max-height:85vh;overflow:auto;background:#fff;border-radius:14px;padding:26px;box-shadow:0 28px 80px rgba(0,0,0,.25)}.overview-modal-close{position:absolute;right:14px;top:12px;width:34px;height:34px;min-height:34px;padding:0;border-radius:50%;background:#eef2f7;color:#24344d}.overview-modal-card h2{margin:6px 40px 4px 0}.overview-modal-card dl{margin:20px 0 0}.overview-modal-card dl div{display:grid;grid-template-columns:140px 1fr;gap:12px;padding:10px 0;border-top:1px solid var(--line)}.overview-modal-card dt{color:var(--muted);font-size:12px}.overview-modal-card dd{margin:0;font-weight:700}.modal-open{overflow:hidden}
@media(max-width:1050px){.responsive-admin-grid{grid-template-columns:1fr!important}.profile-card-grid{grid-template-columns:1fr}.filter-grid-collections{grid-template-columns:repeat(2,minmax(0,1fr))!important}.filter-grid-collections .filter-actions{grid-column:1/-1!important}}
@media(max-width:760px){.login-card{width:min(440px,100%);margin:auto}.login-brand-panel{padding:24px}.login-form-panel{padding:26px 22px}.choice-group{display:grid;grid-template-columns:1fr;gap:12px}.profile-card-grid{grid-template-columns:1fr}.overview-modal{padding:12px}.overview-modal-card{padding:22px 18px}.overview-modal-card dl div{grid-template-columns:1fr;gap:3px}.filter-grid-collections{grid-template-columns:1fr!important}.filter-grid-collections .filter-actions{grid-column:auto!important}.sticky-form-actions{position:static}.subpanel table{min-width:620px}.responsive-admin-grid .panel{min-width:0}.auth-card{width:calc(100% - 24px)!important;max-width:440px!important;margin:12px auto!important}.staff-card-grid{width:100%}}

.hp-field{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;opacity:0!important}.month-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.month-toolbar label{width:min(200px,100%);margin:0}.month-toolbar button{margin:0}.filter-grid-collections{grid-template-columns:repeat(4,minmax(140px,1fr))!important}.filter-grid-collections .collection-search{grid-column:span 2}.filter-grid-collections .collection-filter-actions{grid-column:span 2;justify-content:flex-end;align-self:end;white-space:nowrap}.filter-grid-collections .collection-filter-actions .button,.filter-grid-collections .collection-filter-actions button{min-width:110px}.permission-table th:not(:first-child){text-align:center}.permission-table th:first-child{width:42%}.permission-table td{vertical-align:middle}.permission-table input[type=radio]{display:block!important;margin:0 auto!important}.profile-form .form-actions{margin-top:18px}.auth-card.wide{max-width:720px}.payment-link{display:inline-flex;margin-top:16px}.user-chip .chevron{align-self:center}.staff-card-grid .profile-summary-card{min-width:0}.responsive-admin-grid>*{min-width:0}
@media(max-width:1180px){.filter-grid-collections{grid-template-columns:repeat(3,minmax(145px,1fr))!important}.filter-grid-collections .collection-search{grid-column:span 2}.filter-grid-collections .collection-filter-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:760px){.month-toolbar{display:grid;grid-template-columns:1fr}.month-toolbar label{width:100%}.month-toolbar button{width:100%}.filter-grid-collections{grid-template-columns:1fr!important}.filter-grid-collections .collection-search,.filter-grid-collections .collection-filter-actions{grid-column:auto!important}.filter-grid-collections .collection-filter-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%}.permission-table{min-width:560px}.responsive-admin-grid{width:100%;overflow:hidden}.responsive-admin-grid>.panel{width:100%;max-width:100%}.profile-summary-card{grid-template-columns:38px minmax(0,1fr);}.profile-summary-card .badge{grid-column:2}.login-card{max-width:430px!important}.auth-card.wide{max-width:calc(100% - 24px)!important}}

/* Build 8.8 application workflow, phone inputs and icon polish */
.ui-icon{border-radius:8px;transition:transform .18s ease,background .18s ease,color .18s ease}.nav-item:hover .ui-icon,.nav-item.active .ui-icon{transform:translateY(-1px)}
.ui-icon-dashboard,.ui-icon-search{background:#e8f0ff;color:#1859c9}.ui-icon-bell,.ui-icon-announcement{background:#fff2cc;color:#a86600}.ui-icon-collections,.ui-icon-payments{background:#e7f8ef;color:#16844b}.ui-icon-followup,.ui-icon-recoveries{background:#fff0e7;color:#c55a17}.ui-icon-people,.ui-icon-staff{background:#f1eaff;color:#7542c4}.ui-icon-loans,.ui-icon-reports{background:#e5f5ff;color:#0576a9}.ui-icon-roles,.ui-icon-audit{background:#f3edf9;color:#7b3ea4}.ui-icon-import,.ui-icon-capture{background:#e8f8f6;color:#087d70}.ui-icon-settings,.ui-icon-health{background:#edf1f6;color:#45566e}.ui-icon-help{background:#fff3e8;color:#b55b10}
.application-step{border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:18px;background:#fff}.step-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:16px}.step-heading h2{margin:0 0 3px}.step-heading p{margin:0;color:var(--muted)}.step-icon,.security-choice-icon{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;font-weight:900;flex:0 0 auto}.icon-blue{background:#e8f0ff!important;color:#1556c6!important}.icon-green{background:#e6f7ee!important;color:#13824a!important}.icon-orange{background:#fff0e3!important;color:#c45c13!important}.icon-purple{background:#f0e8ff!important;color:#7240bd!important}.icon-teal{background:#e4f7f5!important;color:#087b71!important}.icon-red{background:#ffe8e8!important;color:#bd3131!important}
.customer-search-row{display:flex;align-items:end;gap:10px}.customer-search-row .grow-field{flex:1}.customer-search-results{display:grid;gap:9px;margin-top:12px}.customer-result-card,.selected-customer-card{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:11px;text-align:left;border:1px solid var(--line);border-radius:10px;padding:12px;background:#fff;color:var(--ink)}.customer-result-card:hover{border-color:#8eaddc;background:#f8fbff}.selected-customer-card{margin-top:12px;background:#f4f8ff;border-color:#b9cdef}.customer-result-card strong,.selected-customer-card strong,.customer-result-card small,.selected-customer-card small{display:block}.customer-result-card small,.selected-customer-card small{color:var(--muted);margin-top:3px}.inline-empty-action{display:flex;align-items:center;gap:10px;justify-content:flex-end;margin-top:14px;color:var(--muted)}
.security-choice-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.security-choice-grid label{position:relative;display:flex!important;align-items:center;gap:9px;border:1px solid var(--line);border-radius:10px;padding:12px;cursor:pointer;margin:0!important}.security-choice-grid input{width:16px!important;height:16px!important;min-height:16px!important;margin:0!important}.security-choice-grid label:has(input:checked){border-color:#4d83d6;background:#f3f7ff;box-shadow:0 0 0 2px rgba(31,92,184,.08)}.security-panel{margin-top:12px}.customer-register-card{width:min(720px,100%)}
.login-type-picker{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;border:0;padding:0;margin:0}.login-type-picker legend{font-size:12px;font-weight:800;margin-bottom:7px}.login-type-picker label{margin:0!important}.login-type-picker label span{display:flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #ccd7e6;border-radius:8px;font-weight:700;cursor:pointer}.login-type-picker input{position:absolute;opacity:0;pointer-events:none}.login-type-picker label:has(input:checked) span{background:#eaf1ff;border-color:#5d88d2;color:#164fae}.phone-country{white-space:nowrap;font-size:13px}.auto-phone input{min-width:0}
fieldset:disabled{opacity:.62}.empty-state.compact{padding:18px}
@media(max-width:760px){.customer-search-row{display:grid;grid-template-columns:1fr}.customer-search-row .button{width:100%;justify-content:center}.security-choice-grid{grid-template-columns:1fr 1fr}.inline-empty-action{align-items:stretch;flex-direction:column}.inline-empty-action .button{width:100%;justify-content:center}.customer-result-card,.selected-customer-card{grid-template-columns:38px minmax(0,1fr)}.customer-result-card .badge,.selected-customer-card .badge{grid-column:2}.login-type-picker{grid-template-columns:1fr}.application-step{padding:16px}}


/* Build 8.8.1 - compact login method selector */
.login-type-picker{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:4px;
  padding:4px;
  border:1px solid #d7e0ed;
  border-radius:10px;
  background:#f3f6fa;
}
.login-type-picker legend{
  width:100%;
  padding:0 0 5px;
  margin:0;
  background:#fff;
  color:#55657d;
}
.login-type-picker label span{
  gap:6px;
  min-height:36px;
  padding:6px 8px;
  border:0;
  border-radius:7px;
  background:transparent;
  font-size:12px;
  line-height:1;
}
.login-type-picker label span b{
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  border-radius:5px;
  background:#e3e9f3;
  color:#40516b;
  font-size:10px;
  font-weight:900;
}
.login-type-picker label:has(input:checked) span{
  background:#fff;
  border-color:transparent;
  color:#164fae;
  box-shadow:0 2px 8px rgba(22,79,174,.12);
}
.login-type-picker label:has(input:checked) span b{
  background:#dfeaff;
  color:#164fae;
}
@media(max-width:760px){
  .login-type-picker{grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px}
  .login-type-picker legend{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .login-type-picker label span{min-height:34px;padding:5px 4px;font-size:11px;gap:4px}
  .login-type-picker label span b{width:16px;height:16px;border-radius:4px;font-size:9px}
  .login-form{gap:13px}
}
@media(max-width:360px){
  .login-type-picker label span b{display:none}
  .login-type-picker label span{font-size:10px;padding-inline:2px}
}

/* Build 8.9.1 - refined outline icon system and separate sidebar control */
.ui-icon{background:transparent!important;border:0;color:currentColor;border-radius:0;transform:none!important}
.ui-icon svg{width:100%;height:100%;fill:none!important;stroke:currentColor}
.nav-item .ui-icon{width:31px;height:31px;flex:0 0 31px;border:1px solid #d9e0ea;border-radius:9px;padding:5px;color:#67768c;background:#fff!important;transition:border-color .16s ease,color .16s ease,transform .16s ease,box-shadow .16s ease}
.nav-item .ui-icon svg{width:19px;height:19px;margin:auto}
.nav-item:hover .ui-icon{border-color:#a9bde3;color:var(--blue);transform:translateY(-1px)!important;box-shadow:0 4px 10px rgba(25,67,130,.08)}
.nav-item.active .ui-icon{border-color:#8caee9;color:var(--blue);background:#fff!important;box-shadow:0 0 0 2px rgba(11,73,199,.05)}
.top-action .ui-icon,.top-search .ui-icon,.menu-button .ui-icon,.desktop-collapse .ui-icon,.user-chip .ui-icon{border:0;padding:0;background:transparent!important;width:20px;height:20px}
.desktop-collapse{width:40px;height:40px;flex:0 0 40px;border:1px solid var(--line);border-radius:9px;background:#fff;color:#5d6c82;display:grid;place-items:center;cursor:pointer;transition:.16s ease}
.desktop-collapse:hover{border-color:#afbfda;color:var(--blue);background:#f7f9fd}
.desktop-collapse .ui-icon{transition:transform .2s ease!important}
body.sidebar-is-collapsed .sidebar{width:82px}
body.sidebar-is-collapsed .workspace{margin-left:82px}
body.sidebar-is-collapsed .brand-block{justify-content:center;padding:0 10px}
body.sidebar-is-collapsed .brand-copy,body.sidebar-is-collapsed .nav-label,body.sidebar-is-collapsed .nav-item>span:not(.ui-icon){display:none}
body.sidebar-is-collapsed .side-nav{padding-left:9px;padding-right:9px}
body.sidebar-is-collapsed .nav-item{justify-content:center;padding:9px 0;gap:0}
body.sidebar-is-collapsed .nav-group{margin-bottom:13px}
body.sidebar-is-collapsed .nav-help-group{padding-top:12px}
body.sidebar-is-collapsed .desktop-collapse .ui-icon{transform:rotate(180deg)!important}
.sidebar,.workspace{transition:width .2s ease,margin-left .2s ease,transform .2s ease}
@media(max-width:850px){.desktop-collapse{display:none}.menu-button{align-self:center;justify-self:center}.nav-item .ui-icon{width:30px;height:30px;flex-basis:30px;padding:5px}.nav-item .ui-icon svg{width:18px;height:18px}body.sidebar-is-collapsed .sidebar{width:256px}body.sidebar-is-collapsed .workspace{margin-left:0}body.sidebar-is-collapsed .brand-copy,body.sidebar-is-collapsed .nav-label,body.sidebar-is-collapsed .nav-item>span{display:initial}body.sidebar-is-collapsed .nav-item{justify-content:flex-start;padding:10px 12px;gap:11px}}

/* Build 8.9.2 login alignment and collapsed icon rail hotfix */
.password-field{position:relative;display:flex;align-items:center}
.password-field>input{width:100%;margin:0}
.password-field .password-toggle{position:absolute!important;top:50%!important;right:6px!important;bottom:auto!important;transform:translateY(-50%)!important;display:grid!important;place-items:center!important;margin:0!important}
.password-field .password-toggle svg{display:block;width:20px;height:20px;margin:auto;stroke:currentColor;fill:none}
body.sidebar-is-collapsed .nav-item>span:not(.ui-icon){display:none!important}
body.sidebar-is-collapsed .nav-item .ui-icon{display:grid!important;visibility:visible!important;opacity:1!important;width:36px!important;height:36px!important;min-width:36px!important;flex:0 0 36px!important;margin:0 auto!important;place-items:center!important}
body.sidebar-is-collapsed .nav-item .ui-icon svg{display:block!important;width:21px!important;height:21px!important;margin:auto!important}
body.sidebar-is-collapsed .nav-item{overflow:visible!important}
body.sidebar-is-collapsed .side-nav{overflow-x:visible!important}
@media(max-width:850px){.password-field .password-toggle{right:5px!important}.password-field .password-toggle svg{width:19px!important;height:19px!important}}


/* Build 8.9.3 - collection filter action alignment */
.filter-grid-collections .collection-filter-actions{
  grid-column:1/-1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  padding-top:14px!important;
  margin-top:2px!important;
  border-top:1px solid var(--line)!important;
}
.filter-grid-collections .collection-filter-actions .button,
.filter-grid-collections .collection-filter-actions button{
  min-width:116px!important;
  margin:0!important;
  justify-content:center!important;
}
@media(max-width:760px){
  .filter-grid-collections .collection-filter-actions{
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    width:100%!important;
    padding-top:12px!important;
  }
  .filter-grid-collections .collection-filter-actions .button,
  .filter-grid-collections .collection-filter-actions button{
    width:100%!important;
    min-width:0!important;
  }
}
@media(max-width:420px){
  .filter-grid-collections .collection-filter-actions{
    grid-template-columns:1fr!important;
  }
}

/* Build 8.9.4 white-label and mobile navigation correction */
@media(max-width:850px){
  .workspace-bar{position:sticky;min-height:64px;justify-content:flex-end;padding:0 14px}
  .top-search{display:none!important}
  .menu-button{display:grid!important;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:42px;height:42px;border:1px solid #cbd6e5;border-radius:11px;background:#fff;color:#34445d;place-items:center;z-index:3;box-shadow:0 3px 10px rgba(16,36,70,.06)}
  .menu-button:hover,.menu-button:focus-visible{border-color:var(--blue);color:var(--blue);background:#f8fbff}
  .menu-button .ui-icon{width:24px!important;height:24px!important;border:0!important;padding:0!important;display:grid!important;place-items:center!important}
  .menu-button .ui-icon svg{width:20px!important;height:20px!important}
  .top-actions{margin-left:auto}
}

/* Build 8.9.4.1 - detailed permission-aware operating manual */
.detailed-guide{display:grid;gap:16px}
.guide-card{border:1px solid var(--line);border-radius:12px;padding:18px;background:#fff;box-shadow:0 5px 18px rgba(20,43,78,.04)}
.guide-card-heading{display:flex;align-items:center;gap:11px;margin-bottom:12px}
.guide-card-heading>span{display:grid;place-items:center;width:30px;height:30px;border:1px solid #b9cbed;border-radius:9px;color:var(--blue);font-weight:800;background:#f7faff;flex:0 0 30px}
.guide-card-heading h3{margin:0;font-size:17px}
.guide-card ol{margin:0;padding-left:24px;display:grid;gap:9px;color:#33445d}
.guide-card li{padding-left:3px;line-height:1.55}
.guide-result,.guide-note,.guide-warning{display:grid;grid-template-columns:auto 1fr;gap:10px;margin-top:14px;padding:11px 13px;border-radius:9px;font-size:13px;line-height:1.45}
.guide-result{background:#edf9f2;border:1px solid #bde4cb;color:#225b37}
.guide-note{background:#f2f6fc;border:1px solid #d5e0ef;color:#3d506b}
.guide-warning{background:#fff6e8;border:1px solid #efd3a5;color:#734b12}
.help-article{min-width:0}.help-menu{align-self:start;position:sticky;top:84px;max-height:calc(100vh - 110px);overflow:auto}
.help-menu a{display:block;padding:12px;border-radius:9px;border:1px solid transparent;text-decoration:none;color:var(--ink)}
.help-menu a+ a{margin-top:5px}.help-menu a.active{background:#eef4ff;border-color:#c8d8f2;color:var(--blue)}
.help-menu small{display:block;margin-top:3px;color:var(--muted);line-height:1.35}
@media(max-width:900px){.help-layout{grid-template-columns:1fr!important}.help-menu{position:static;max-height:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.help-menu a+ a{margin-top:0}}
@media(max-width:600px){.help-menu{grid-template-columns:1fr}.guide-card{padding:14px}.guide-result,.guide-note,.guide-warning{grid-template-columns:1fr;gap:4px}.help-search-panel{display:grid!important;grid-template-columns:1fr!important}.help-search-panel input{width:100%!important}}

/* Build 8.9.5: clearly separate staff authentication from customer payment access. */
.login-audience-label{display:inline-flex;align-items:center;width:max-content;padding:5px 9px;border:1px solid #ccd8e8;border-radius:999px;color:#52627a;background:#f8faff;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px}
.login-method-fieldset{border:0;padding:0;margin:0;min-width:0}.login-method-fieldset legend{font-weight:800;font-size:12px;margin:0 0 7px;color:var(--ink)}
.login-method-selector{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:5px;border:1px solid #cbd7e7;border-radius:11px;background:#f3f6fa}
.login-method-option{position:relative;min-width:0;display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;margin:0!important;padding:9px 8px!important;border:1px solid transparent;border-radius:8px;cursor:pointer;color:#40506a;font-size:12px;font-weight:800;transition:.16s ease;white-space:nowrap}
.login-method-option input{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important;min-height:1px!important}
.login-method-option:has(input:checked){background:#fff;border-color:#bfd0eb;color:var(--blue);box-shadow:0 3px 10px rgba(11,73,199,.08)}
.login-method-icon{width:25px;height:25px;border:1px solid #c7d3e3;border-radius:8px;display:grid;place-items:center;flex:0 0 25px;background:#fff}
.login-method-icon svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}
.login-customer-section{margin-top:18px;padding-top:2px}.login-customer-divider{display:flex;align-items:center;gap:12px;margin:0 0 9px;color:#718097;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.login-customer-divider::before,.login-customer-divider::after{content:"";height:1px;background:#dbe3ee;flex:1}.login-customer-section>p{margin:0 0 10px;text-align:center;color:var(--muted);font-size:11px;line-height:1.45}.public-payment-button{gap:9px}.public-payment-button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:760px){.login-method-selector{gap:4px;padding:4px}.login-method-option{padding:8px 5px!important;gap:5px!important;font-size:11px}.login-method-icon{width:23px;height:23px;flex-basis:23px;border-radius:7px}.login-method-icon svg{width:15px;height:15px}.login-customer-section{margin-top:14px}.login-security-note{margin-top:13px}}
@media(max-width:370px){.login-method-option{font-size:10px}.login-method-icon{display:none}}

/* Build 8.9.8 - exact mobile navigation placement and identical login selector */
@media (max-width:850px){
  .workspace-bar{
    position:sticky!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:10px!important;
    padding:0 12px!important;
  }
  .menu-button{
    position:static!important;
    left:auto!important;
    right:auto!important;
    top:auto!important;
    transform:none!important;
    order:0!important;
    display:grid!important;
    place-items:center!important;
    flex:0 0 40px!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    margin:0!important;
    padding:0!important;
    border:1px solid var(--line)!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#52627a!important;
    line-height:1!important;
    box-shadow:0 3px 10px rgba(16,36,70,.06)!important;
  }
  .menu-button .ui-icon{
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    display:grid!important;
    place-items:center!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  .menu-button .ui-icon svg{
    width:20px!important;
    height:20px!important;
    display:block!important;
    margin:auto!important;
    fill:none!important;
    stroke:currentColor!important;
  }
  .top-search{order:1!important;}
  .top-actions{order:2!important;margin-left:auto!important;}
}
@media (max-width:430px){
  .menu-button{margin:0!important;}
  .top-actions{margin-left:auto!important;}
}

/* Keep the mobile sign-in method selector visually identical to desktop. */
@media (max-width:760px){
  .login-method-selector{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
    gap:6px!important;
    padding:5px!important;
  }
  .login-method-option{
    min-height:42px!important;
    padding:9px 8px!important;
    gap:7px!important;
    font-size:12px!important;
  }
  .login-method-icon{
    display:grid!important;
    width:25px!important;
    height:25px!important;
    flex:0 0 25px!important;
    border-radius:8px!important;
  }
  .login-method-icon svg{width:16px!important;height:16px!important;}
}
@media (max-width:370px){
  .login-method-icon{display:grid!important;}
  .login-method-option{font-size:10.5px!important;padding-inline:4px!important;gap:4px!important;}
  .login-method-selector{gap:3px!important;padding:4px!important;}
}

/* Build 8.9.9: visually hide scrollbars while preserving scrolling */
html, body, .sidebar, .sidebar-nav, .workspace, .content, .table-wrap, .modal-body, .help-content, .notification-list {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar,
.workspace::-webkit-scrollbar,
.content::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.help-content::-webkit-scrollbar,
.notification-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Build 8.9.10: Announcement guidance typography */
.announcement-guidance p{margin:0;color:var(--ink);font-size:13px;line-height:1.55;font-weight:400}
@media(max-width:760px){.announcement-guidance p{font-size:13px;line-height:1.55}}
[hidden]{display:none!important}.security-panel[hidden]{display:none!important}.security-panel:not([hidden]){display:block}.info-card{border:1px solid #d5dfeb;border-radius:10px;padding:12px;background:#f7f9fc;display:flex;flex-direction:column;gap:3px}.identity-document-grid{align-items:stretch}.identity-document-card{display:flex;flex-direction:column;justify-content:space-between;min-height:240px}.identity-document-card.compact-doc{min-height:240px}.document-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.document-archive-card{display:flex;flex-direction:column;gap:12px;align-items:stretch}.document-preview-shell{height:180px;border:1px solid #d7e0eb;border-radius:10px;overflow:hidden;background:#f6f8fb}.document-preview-shell iframe{width:100%;height:100%;border:0}.settings-workspace{display:grid;gap:18px}.settings-category{margin:0}.sticky-settings-actions{position:sticky;bottom:0;background:#eef3f8;padding:12px 0;z-index:3}@media(max-width:700px){.identity-document-card,.identity-document-card.compact-doc{min-height:auto}.document-preview-shell{height:150px}}


/* Build 10.1 additions restored after full design system */
/* Build 8.9.13 - Record payment workflow */
.payment-customer-search{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:12px;align-items:end}.customer-payment-summary{display:flex;align-items:center;justify-content:space-between;gap:18px}.payment-loan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.payment-loan-card{position:relative;display:flex;gap:12px;align-items:flex-start;padding:16px;border:1px solid var(--border,#d9e2ef);border-radius:12px;cursor:pointer;background:#fff}.payment-loan-card:has(input:checked){border-color:var(--primary,#1455d9);box-shadow:0 0 0 2px rgba(20,85,217,.10)}.payment-loan-card>input{position:absolute;opacity:0}.payment-loan-check{width:20px;height:20px;border:1.5px solid #9baac0;border-radius:50%;flex:0 0 20px;margin-top:2px;display:grid;place-items:center}.payment-loan-card:has(input:checked) .payment-loan-check{border:6px solid var(--primary,#1455d9)}.payment-loan-copy{display:flex;flex-direction:column;gap:4px}.payment-loan-copy strong{font-size:1rem}.payment-loan-copy small{color:var(--muted,#64748b)}.payment-loan-balance{font-size:1.2rem;font-weight:800;margin-top:6px}.payment-section-gap{margin-top:24px}.payment-method-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:18px}.payment-method-picker label{cursor:pointer}.payment-method-picker input{position:absolute;opacity:0}.payment-method-picker span{display:flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--border,#d9e2ef);border-radius:10px;font-weight:700;background:#fff}.payment-method-picker input:checked+span{background:var(--primary,#1455d9);border-color:var(--primary,#1455d9);color:#fff}.full-span{grid-column:1/-1}.payment-cash-recipient{min-height:100%;display:flex;flex-direction:column;justify-content:center}.payment-review-card{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;background:var(--border,#d9e2ef);border:1px solid var(--border,#d9e2ef);border-radius:12px;overflow:hidden;margin:20px 0}.payment-review-card>div{background:#fff;padding:14px;display:flex;flex-direction:column;gap:5px}.payment-review-card span{font-size:.82rem;color:var(--muted,#64748b)}.payment-review-card strong{font-size:1.05rem}.payment-form-actions{justify-content:flex-end}.required-mark{color:#dc2626}
@media(max-width:760px){.payment-customer-search{grid-template-columns:1fr}.payment-customer-search .button,.payment-customer-search button{width:100%}.customer-payment-summary{align-items:flex-start;flex-direction:column}.payment-loan-grid{grid-template-columns:1fr}.payment-method-picker{grid-template-columns:repeat(3,1fr)}.payment-review-card{grid-template-columns:1fr 1fr}.payment-form-actions{display:grid;grid-template-columns:1fr}.payment-form-actions .button,.payment-form-actions button{width:100%}}

/* Build 10 workflow and module refinements */
.profile-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 18px}.profile-tabs a{padding:8px 12px;border:1px solid #d7dfeb;border-radius:9px;background:#fff;color:#344054;text-decoration:none;font-weight:700}.application-metrics article{min-height:92px}.application-tabs{position:sticky;top:64px;z-index:5;background:#f4f7fb;padding:8px;border-radius:12px}.application-actions{display:flex;gap:14px;flex-wrap:wrap;margin-top:18px}.application-actions form{min-width:220px}.document-gallery{align-items:stretch}.document-archive-card{display:grid;grid-template-rows:minmax(160px,220px) auto auto}.document-preview-shell iframe{width:100%;height:100%;min-height:180px;border:0}.public-payment-card label small{display:block;margin-top:6px;color:#667085}.selection-card{cursor:pointer}.selection-card:has(input:checked){border-color:#175cd3;box-shadow:0 0 0 2px #175cd31a}.filter-actions{align-self:end}
@media(max-width:720px){.application-tabs{position:static;overflow-x:auto;flex-wrap:nowrap}.application-tabs a{white-space:nowrap}.application-actions{display:grid}.application-actions form{min-width:0}.profile-tabs{overflow-x:auto;flex-wrap:nowrap}.profile-tabs a{white-space:nowrap}}
/* Build 10.1 corrective layout */
.settings-shell{display:grid;grid-template-columns:220px minmax(0,1fr);gap:20px;align-items:start}.settings-menu{position:sticky;top:88px;padding:14px;display:flex;flex-direction:column;gap:6px}.settings-menu strong{padding:8px 10px}.settings-menu a{padding:10px 12px;border:1px solid transparent;border-radius:10px;text-decoration:none;color:var(--ink,#15233b)}.settings-menu a:hover{border-color:#cbd8ee;background:#f6f9ff}.settings-category{scroll-margin-top:100px}.settings-methods{margin-top:18px;border:1px solid #d8e1ef;border-radius:12px;padding:16px}.choice-row{display:flex;flex-wrap:wrap;gap:10px}.choice-pill{display:inline-flex!important;align-items:center;gap:8px;border:1px solid #cbd8ee;border-radius:10px;padding:10px 14px}.choice-pill input{width:16px!important;height:16px!important;margin:0}.staff-filter-grid{grid-template-columns:minmax(260px,1fr) 190px 160px auto}.payment-filter-grid{grid-template-columns:repeat(4,minmax(150px,1fr))}.payment-filter-grid .grow-field{grid-column:span 2}.filter-actions{display:flex;align-items:end;justify-content:flex-end;gap:10px;flex-wrap:wrap}.filter-actions>*{min-height:42px}.row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.staff-create-card,.staff-edit-form{max-width:none}.month-toolbar{display:flex;align-items:end;justify-content:space-between;gap:16px}.month-toolbar label{max-width:260px}.staff-payment-grid>.panel{height:100%}.profile-hero{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:20px;align-items:center}.profile-hero-copy h2{margin:4px 0}.profile-hero-actions{display:flex;gap:10px;flex-wrap:wrap}.eyebrow{font-size:.72rem;letter-spacing:.12em;color:#5b6c88}.loan-wizard .wizard-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center;flex-wrap:wrap;border-top:1px solid #e1e7f0;padding-top:18px}.customer-search-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.tabs{display:flex!important;gap:8px!important;flex-wrap:wrap;margin:16px 0}.tabs a{display:inline-flex!important;align-items:center;padding:9px 14px;border:1px solid #ccd7e8;border-radius:10px;text-decoration:none}.tabs a.active{background:#0f4dcc;color:#fff;border-color:#0f4dcc}
@media(max-width:900px){.settings-shell{grid-template-columns:1fr}.settings-menu{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.staff-filter-grid,.payment-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-filter-grid .grow-field{grid-column:1/-1}.profile-hero{grid-template-columns:auto 1fr}.profile-hero-actions{grid-column:1/-1}.filter-actions{grid-column:1/-1;justify-content:stretch}.filter-actions>*{flex:1}.customer-search-row{grid-template-columns:1fr}.customer-search-row .button{width:100%}}
@media(max-width:560px){.settings-menu{grid-template-columns:1fr 1fr}.staff-filter-grid,.payment-filter-grid{grid-template-columns:1fr}.payment-filter-grid .grow-field{grid-column:auto}.filter-actions{flex-direction:column}.filter-actions>*{width:100%}.profile-hero{grid-template-columns:1fr;text-align:center}.profile-hero .avatar-xl{margin:auto}.profile-hero-actions{justify-content:center}.month-toolbar{align-items:stretch;flex-direction:column}.month-toolbar label{max-width:none}.loan-wizard .wizard-actions>*{flex:1 1 calc(50% - 8px)}.loan-wizard .wizard-actions #wizard-submit{flex-basis:100%}}

/* Build 10.1.2 workflow and UI corrections */
.back-to-top{position:fixed;right:22px;bottom:22px;width:42px;height:42px;border:1px solid #b9c7d9;border-radius:12px;background:#fff;color:#154fc8;display:grid;place-items:center;font-size:21px;font-weight:800;box-shadow:0 8px 24px #102a4326;z-index:80;opacity:0;pointer-events:none;transform:translateY(10px);transition:.18s}.back-to-top.show{opacity:1;pointer-events:auto;transform:none}.people-filter-layout{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:end}.people-filter-fields{display:grid;grid-template-columns:minmax(280px,1fr) minmax(190px,.34fr);gap:14px;align-items:end}.people-filter-actions{display:flex;gap:9px;align-items:center;justify-content:flex-end}.people-filter-actions .button,.people-filter-actions button{white-space:nowrap}.role-choice-fieldset{border:1px solid #d9e2ee;border-radius:12px;padding:16px;margin:18px 0}.role-choice-fieldset legend{font-weight:800;padding:0 7px}.role-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.role-choice{display:flex;align-items:flex-start;gap:11px;border:1px solid #dfe6ef;border-radius:10px;padding:14px;margin:0!important}.role-choice input{width:18px;height:18px;margin:2px 0 0;flex:none}.role-choice span,.role-choice strong,.role-choice small{display:block}.role-choice small{color:#667085;margin-top:4px}.customer-history-timeline{position:relative;display:grid;gap:0;padding-left:24px}.customer-history-timeline:before{content:"";position:absolute;left:7px;top:8px;bottom:8px;width:2px;background:#dce5f0}.timeline-entry{position:relative;display:grid;grid-template-columns:125px 1fr;gap:16px;padding:0 0 22px}.timeline-dot{position:absolute;left:-22px;top:5px;width:12px;height:12px;border-radius:50%;background:#1554d7;border:3px solid #eaf1ff}.timeline-entry time{font-size:11px;color:#667085}.timeline-entry strong{display:block}.timeline-entry p{margin:4px 0;color:#5f6e82;font-size:12px}.timeline-entry a{font-size:12px;font-weight:700}.app-modal{width:min(720px,calc(100vw - 30px));border:0;border-radius:16px;padding:0;box-shadow:0 24px 80px #10243b55}.app-modal::backdrop{background:#0f1f35aa}.modal-close-row{display:flex;justify-content:flex-end;padding:8px 10px 0}.modal-close-row button{width:34px;height:34px;border:1px solid #dbe3ee;border-radius:10px;background:#fff;color:#27364b;font-size:22px}.modal-payment-form{padding:0 24px 24px}.payment-modal .payment-method-picker{margin-bottom:16px}.identity-document-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.identity-document-card{min-height:330px!important}.identity-document-preview{height:235px!important}.profile-tabs a{display:inline-flex!important;align-items:center;justify-content:center;gap:5px}.receipt-link{}
@media(max-width:900px){.people-filter-layout{grid-template-columns:1fr}.people-filter-actions{justify-content:flex-start}.people-filter-fields{grid-template-columns:1fr 1fr}.identity-document-grid{grid-template-columns:1fr!important}}
@media(max-width:620px){.people-filter-fields{grid-template-columns:1fr}.people-filter-actions{display:grid;grid-template-columns:1fr 1fr}.people-filter-actions .button:last-child{grid-column:1/-1}.role-choice-grid{grid-template-columns:1fr}.timeline-entry{grid-template-columns:1fr;gap:5px}.back-to-top{right:14px;bottom:14px}.modal-payment-form{padding:0 16px 18px}}
/* Build 10.1.3 staff directory */
.staff-directory-toolbar{display:flex;align-items:end;gap:16px}.filter-grow{flex:1}.staff-directory-table .identity-cell,.identity-cell{display:flex;align-items:center;gap:12px}.profile-card-avatar.small{width:36px;height:36px;min-width:36px;font-size:14px}.row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.row-actions form{margin:0}.actions-col{text-align:right;white-space:nowrap}.btn.danger-outline{background:#fff;color:#b42318;border:1px solid #f0b8b3}.btn.success-outline{background:#fff;color:#067647;border:1px solid #a6e0c5}.form-grid.two-col{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.span-2{grid-column:1/-1}.staff-edit-header{display:flex;align-items:center;justify-content:space-between}.staff-edit-header h2{margin:0}.small-text{font-size:12px}@media(max-width:760px){.staff-directory-toolbar{align-items:stretch;flex-direction:column}.filter-actions,.filter-actions .btn{width:100%}.form-grid.two-col{grid-template-columns:1fr}.span-2{grid-column:auto}.staff-directory-table thead{display:none}.staff-directory-table,.staff-directory-table tbody,.staff-directory-table tr,.staff-directory-table td{display:block;width:100%}.staff-directory-table tr{border:1px solid var(--border,#dbe3ef);border-radius:12px;padding:12px;margin-bottom:12px}.staff-directory-table td{border:0;padding:7px 0}.staff-directory-table td:before{content:attr(data-label);font-weight:700}.row-actions{justify-content:flex-start}.staff-edit-header{align-items:flex-start;gap:12px}}

/* Build 10.1.4 - Customer and guarantor filter toolbar */
.people-toolbar{
  padding:20px 22px;
}
.people-filter-layout{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
  align-items:end;
}
.people-filter-fields{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(210px,280px);
  gap:16px;
  align-items:end;
}
.people-filter-fields label{
  min-width:0;
  margin:0;
}
.people-filter-fields input,
.people-filter-fields select{
  width:100%;
  margin:6px 0 0;
}
.people-filter-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding-top:14px;
  border-top:1px solid var(--line,#e1e7f0);
}
.people-filter-actions .button,
.people-filter-actions button{
  min-width:112px;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin:0;
  white-space:nowrap;
}
.people-filter-actions .people-add{
  min-width:150px;
}
@media(max-width:900px){
  .people-filter-fields{
    grid-template-columns:minmax(0,1fr) minmax(180px,240px);
  }
  .people-filter-actions{
    justify-content:stretch;
  }
  .people-filter-actions .button,
  .people-filter-actions button{
    flex:1;
  }
}
@media(max-width:620px){
  .people-toolbar{
    padding:16px;
  }
  .people-filter-layout{
    gap:14px;
  }
  .people-filter-fields{
    grid-template-columns:1fr;
    gap:12px;
  }
  .people-filter-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
    padding-top:14px;
  }
  .people-filter-actions .button,
  .people-filter-actions button{
    width:100%;
    min-width:0;
  }
  .people-filter-actions .people-add{
    grid-column:1/-1;
    min-width:0;
  }
}

/* Build 10.1.5 - Payments filter toolbar */
.payments-toolbar{padding:20px 22px}
.payments-filter-layout{display:grid;grid-template-columns:1fr;gap:16px;align-items:end}
.payments-filter-fields{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:16px;align-items:end}
.payments-filter-fields label{min-width:0;margin:0}
.payments-filter-fields input,.payments-filter-fields select{width:100%;margin:6px 0 0}
.payments-search-field{grid-column:1/-1}
.payments-filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:14px;border-top:1px solid var(--line,#e1e7f0)}
.payments-filter-actions .button,.payments-filter-actions button{min-width:112px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;margin:0;white-space:nowrap}
.payments-filter-actions .payments-record{min-width:148px}
@media(max-width:1000px){.payments-filter-fields{grid-template-columns:repeat(2,minmax(0,1fr))}.payments-filter-actions{justify-content:stretch}.payments-filter-actions .button,.payments-filter-actions button{flex:1}}
@media(max-width:620px){.payments-toolbar{padding:16px}.payments-filter-fields{grid-template-columns:1fr;gap:12px}.payments-search-field{grid-column:auto}.payments-filter-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding-top:14px}.payments-filter-actions .button,.payments-filter-actions button{width:100%;min-width:0}.payments-filter-actions .payments-record{grid-column:1/-1;min-width:0}}

/* Build 10.1.6 - Record Payment responsive workflow */
.payment-record-search-panel,.payment-record-panel{padding:20px 22px}
.payment-record-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:end}
.payment-record-search-fields{min-width:0}
.payment-record-search-fields label{margin:0;display:block}
.payment-record-search-fields input{width:100%;margin:6px 0 0}
.payment-record-search-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}
.payment-record-search-actions .button,.payment-record-search-actions button{min-width:132px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;margin:0}
.payment-record-customer-card{display:flex;align-items:center;justify-content:space-between;gap:18px}
.payment-record-panel{display:grid;gap:20px}
.payment-record-step{border:1px solid var(--line,#e1e7f0);border-radius:12px;padding:18px;background:#fff}
.payment-record-step .section-heading{margin-bottom:14px}
.payment-record-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:end}
.payment-record-fields label{margin:0;min-width:0}
.payment-record-fields input{width:100%;margin:6px 0 0}
.payment-record-fields .payment-cash-recipient{grid-column:1/-1;margin:0}
.payment-record-approve{margin:0}
.payment-record-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding-top:16px;border-top:1px solid var(--line,#e1e7f0)}
.payment-record-actions .button,.payment-record-actions button{min-width:150px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;margin:0}
@media(max-width:900px){
  .payment-record-search-form{grid-template-columns:1fr}
  .payment-record-search-actions{justify-content:stretch}
  .payment-record-search-actions .button,.payment-record-search-actions button{flex:1}
  .payment-record-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  .payment-record-search-panel,.payment-record-panel{padding:16px}
  .payment-record-search-actions{display:grid;grid-template-columns:1fr 1fr}
  .payment-record-search-actions .button,.payment-record-search-actions button{width:100%;min-width:0}
  .payment-record-search-actions button:only-child{grid-column:1/-1}
  .payment-record-customer-card{align-items:flex-start;flex-direction:column}
  .payment-record-customer-card .button{width:100%}
  .payment-record-fields{grid-template-columns:1fr;gap:12px}
  .payment-record-step{padding:15px}
  .payment-record-actions{display:grid;grid-template-columns:1fr 1fr}
  .payment-record-actions .button,.payment-record-actions button{width:100%;min-width:0}
}

/* Build 10.1.7: action buttons and loan wizard alignment */
.staff-directory-table .row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  flex-wrap: wrap;
}
.staff-directory-table .row-actions form { margin: 0; }
.staff-directory-table .row-actions .btn,
.staff-edit-actions .btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
.staff-edit-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #dfe6ef);
}
.loan-wizard .customer-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: .75rem;
}
.loan-wizard .customer-search-row .button {
  min-width: 112px;
  min-height: 42px;
}
.loan-wizard .inline-empty-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  margin-top: 1rem;
}
.loan-wizard .wizard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #dfe6ef);
}
.loan-wizard .wizard-actions-left,
.loan-wizard .wizard-actions-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.loan-wizard .wizard-actions .button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}
.loan-wizard .wizard-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .35rem;
  margin-bottom: 0;
}
.loan-wizard .wizard-dot {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}
@media (max-width: 720px) {
  .staff-directory-table .row-actions {
    justify-content: flex-start;
  }
  .staff-edit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .staff-edit-actions .btn { width: 100%; }
  .loan-wizard .customer-search-row {
    grid-template-columns: 1fr;
  }
  .loan-wizard .customer-search-row .button { width: 100%; }
  .loan-wizard .inline-empty-action {
    align-items: stretch;
    flex-direction: column;
  }
  .loan-wizard .inline-empty-action .button { width: 100%; }
  .loan-wizard .wizard-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .loan-wizard .wizard-actions-left,
  .loan-wizard .wizard-actions-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .loan-wizard .wizard-actions .button { width: 100%; }
  .loan-wizard .wizard-progress {
    grid-template-columns: repeat(4, minmax(64px, 1fr));
    overflow-x: auto;
    padding-bottom: .25rem;
  }
}
@media (max-width: 420px) {
  .staff-edit-actions,
  .loan-wizard .wizard-actions-left,
  .loan-wizard .wizard-actions-right {
    grid-template-columns: 1fr;
  }
}

/* Build 10.1.8: consistent action buttons and section spacing */
.staff-directory-toolbar .filter-actions .btn,
.staff-directory-toolbar .filter-actions button.btn {
  min-height: 42px;
  padding-inline: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.staff-payment-workspace {
  gap: 2rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  align-items: stretch;
}
.staff-payment-workspace > .panel {
  margin: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.staff-payment-workspace > .panel h2 {
  margin: 0 0 .25rem;
}
.staff-payment-workspace > .panel label {
  margin: 0;
}
.staff-payment-workspace .staff-card-actions {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border, #dfe6ef);
}
.staff-payment-workspace .staff-card-actions .btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.recent-adjustments-panel {
  margin-top: 0;
  clear: both;
}
.recent-adjustments-panel > h2 {
  margin-bottom: 1rem;
}

/* Shared major-section rhythm for adjacent panels */
.page-content > .panel + .panel,
.page-content > .grid + .panel,
.page-content > .panel + .grid {
  margin-top: 2rem;
}

@media (max-width: 900px) {
  .staff-payment-workspace {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 720px) {
  .staff-directory-toolbar .filter-actions,
  .staff-directory-toolbar .filter-actions .btn,
  .staff-directory-toolbar .filter-actions button.btn {
    width: 100%;
  }
  .staff-payment-workspace {
    gap: 1.25rem;
    margin-block: 1.25rem;
  }
  .staff-payment-workspace > .panel {
    padding: 1rem;
  }
  .staff-payment-workspace .staff-card-actions .btn {
    width: 100%;
  }
}

/* Build 10.1.9 notification centre */
.notification-menu{position:relative}
.notification-menu>summary{list-style:none;cursor:pointer;position:relative}
.notification-menu>summary::-webkit-details-marker{display:none}
.notification-trigger{display:inline-flex!important;align-items:center;justify-content:center}
.notification-badge{position:absolute;right:-5px;top:-6px;min-width:19px;height:19px;padding:0 5px;border-radius:999px;background:#d92d20;color:#fff;border:2px solid #fff;font-size:10px;font-weight:800;line-height:15px;text-align:center;box-sizing:border-box}
.notification-dropdown{position:absolute;right:0;top:calc(100% + 12px);width:min(400px,calc(100vw - 24px));background:#fff;border:1px solid #dce5f2;border-radius:14px;box-shadow:0 18px 48px rgba(15,31,56,.18);z-index:120;overflow:hidden}
.notification-dropdown-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px 16px;border-bottom:1px solid #e7edf5}
.notification-dropdown-head>div{display:flex;flex-direction:column;gap:2px}.notification-dropdown-head strong{font-size:15px}.notification-dropdown-head small{font-size:12px;color:#64748b}.notification-dropdown-head a{font-size:12px;font-weight:700;color:#0b49c7;text-decoration:none}
.notification-dropdown-list{max-height:390px;overflow:auto;scrollbar-width:none}.notification-dropdown-list::-webkit-scrollbar{display:none}
.notification-dropdown-item{display:grid;grid-template-columns:38px minmax(0,1fr) 8px;align-items:start;gap:11px;padding:13px 15px;border-bottom:1px solid #edf1f7;text-decoration:none;color:#172033;background:#fff}
.notification-dropdown-item:hover{background:#f7faff}.notification-dropdown-item.unread{background:#f1f6ff}.notification-dropdown-item.unread:hover{background:#eaf2ff}
.notification-dropdown-icon{width:36px;height:36px;border:1px solid #cdd9eb;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#0b49c7}.notification-dropdown-icon .ui-icon{width:21px;height:21px;border:0;padding:0}
.notification-dropdown-item>span:nth-child(2){min-width:0;display:flex;flex-direction:column;gap:3px}.notification-dropdown-item strong{font-size:13px;line-height:1.3}.notification-dropdown-item small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:11px;line-height:1.4;color:#64748b}
.notification-dropdown-item i{width:7px;height:7px;border-radius:50%;background:#0b49c7;margin-top:7px}
.notification-dropdown-empty{padding:28px 16px;text-align:center;color:#64748b;font-size:13px}.notification-dropdown-footer{display:block;padding:12px 16px;text-align:center;text-decoration:none;font-size:12px;font-weight:800;color:#0b49c7;background:#f8fafc;border-top:1px solid #e7edf5}
.notification-page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;margin-bottom:20px}.notification-page-toolbar form{margin:0}.notification-tabs{display:flex;gap:8px;flex-wrap:wrap}.notification-tab{display:inline-flex;align-items:center;gap:7px;padding:9px 13px;border:1px solid #d8e2ef;border-radius:9px;text-decoration:none;color:#40506a;font-weight:700;font-size:13px;background:#fff}.notification-tab span{min-width:21px;height:21px;padding:0 6px;border-radius:999px;background:#eef2f7;display:inline-flex;align-items:center;justify-content:center;font-size:10px}.notification-tab.active{background:#0b49c7;border-color:#0b49c7;color:#fff}.notification-tab.active span{background:rgba(255,255,255,.2)}
.notification-list-page{display:flex;flex-direction:column;gap:10px}.notification-row{display:grid;grid-template-columns:48px minmax(0,1fr) 10px 18px;align-items:center;gap:14px;padding:15px 17px;background:#fff;border:1px solid #dfe7f1;border-radius:13px;text-decoration:none;color:#172033;transition:.15s ease}.notification-row:hover{transform:translateY(-1px);box-shadow:0 10px 28px rgba(15,31,56,.08);border-color:#b9ccec}.notification-row.unread{border-left:4px solid #0b49c7;background:#fbfdff}.notification-row.read{opacity:.84}.notification-row-icon{width:46px;height:46px;border:1px solid #cbd8ea;border-radius:12px;display:flex;align-items:center;justify-content:center;color:#0b49c7}.notification-row-icon .ui-icon{width:24px;height:24px;border:0;padding:0}.notification-row-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.notification-row-copy strong{font-size:14px}.notification-row-copy span{font-size:13px;color:#53637b}.notification-row-copy small{font-size:11px;color:#8793a5}.notification-unread-dot{width:8px;height:8px;border-radius:50%;background:#0b49c7}.notification-row-arrow{font-size:24px;color:#8b98aa}.notification-empty{margin-top:0}
@media(max-width:760px){.notification-dropdown{position:fixed;left:12px;right:12px;top:68px;width:auto}.notification-dropdown-list{max-height:calc(100vh - 180px)}.notification-page-toolbar{align-items:stretch;flex-direction:column}.notification-page-toolbar .button{width:100%}.notification-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.notification-tab{justify-content:center;padding:9px 6px}.notification-row{grid-template-columns:42px minmax(0,1fr) 8px;padding:13px 12px;gap:10px}.notification-row-arrow{display:none}.notification-row-icon{width:40px;height:40px}.notification-row-copy span{font-size:12px}}


/* Build 10.1.10: loan wizard and repayment schedule polish */
.loan-wizard fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.loan-wizard .wizard-panel {
  padding: 24px;
}
.loan-wizard .customer-search-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 14px;
  align-items: end;
}
.loan-wizard .customer-search-row label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.loan-wizard .customer-search-row input,
.loan-wizard .customer-search-row .button {
  min-height: 44px;
}
.loan-wizard .customer-search-row .button {
  width: 100%;
  justify-content: center;
}
.loan-wizard .inline-empty-action {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}
.loan-wizard .wizard-actions {
  margin-top: 20px;
  padding-top: 18px;
}
.loan-wizard .wizard-progress {
  gap: 8px;
}
.loan-wizard .wizard-dot {
  min-height: 44px;
  border-radius: 10px;
}
.repayment-schedule-scroll {
  max-height: 476px;
  overflow: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
}
.repayment-schedule-scroll table {
  min-width: 760px;
  margin: 0;
}
.repayment-schedule-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f4f7fb;
  box-shadow: 0 1px 0 #dbe3ef;
}
.repayment-schedule-scroll tbody tr {
  height: 42px;
}
.repayment-schedule-scroll:focus-visible {
  outline: 2px solid #0f4dcc;
  outline-offset: 2px;
}
@media (max-width: 720px) {
  .loan-wizard .wizard-panel { padding: 18px; }
  .loan-wizard .customer-search-row {
    grid-template-columns: 1fr;
  }
  .loan-wizard .wizard-progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .loan-wizard .wizard-dot {
    padding: 10px 6px;
    gap: 4px;
  }
  .loan-wizard .wizard-dot b { font-size: .78rem; }
  .repayment-schedule-scroll {
    max-height: 438px;
  }
}

/* Build 11 - Capital & Funding */
.capital-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin-bottom:28px}.capital-entry-card{margin-bottom:28px}.capital-entry-card .section-head,.card>.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.eyebrow{display:block;color:#0b49c7;font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;font-weight:800;margin-bottom:6px}.section-head h2{margin:0 0 6px}.section-head p{margin:0;color:var(--muted,#667892)}.capital-entry-form .form-grid{display:grid;gap:18px}.form-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.span-3{grid-column:1/-1}.capital-entry-form label,.capital-filter-toolbar label{display:flex;flex-direction:column;gap:7px;font-weight:700;font-size:.86rem}.capital-entry-form input,.capital-entry-form select,.capital-entry-form textarea,.capital-filter-toolbar input,.capital-filter-toolbar select{width:100%;box-sizing:border-box}.form-actions-end{display:flex;justify-content:flex-end;margin-top:20px}.capital-filter-toolbar{border:1px solid #e1e8f2;background:#f9fbfe;border-radius:14px;padding:18px;margin-bottom:20px}.capital-filter-toolbar .filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.capital-filter-toolbar .filter-search-wide{grid-column:1/-1}.capital-filter-toolbar .filter-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:16px}.capital-table-wrap{max-height:620px;overflow:auto;border:1px solid #e1e8f2;border-radius:13px}.capital-table{margin:0;min-width:1180px}.capital-table thead th{position:sticky;top:0;z-index:2;background:#f3f6fb}.capital-table td small{display:block;color:#6b7b91;margin-top:4px;max-width:280px}.capital-table .number{text-align:right;white-space:nowrap}.amount-positive{color:#147a42;font-weight:800}.amount-negative{color:#b3261e;font-weight:800}.status-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;font-size:.74rem;font-weight:800}.status-pending{background:#fff2cc;color:#7a5600}.status-approved{background:#dff5e8;color:#176b3a}.status-rejected{background:#fde4e4;color:#9b1c1c}.capital-row-actions{display:flex;align-items:flex-start;gap:8px}.capital-row-actions form{margin:0}.reject-menu{position:relative}.reject-menu summary{list-style:none;cursor:pointer}.reject-menu summary::-webkit-details-marker{display:none}.reject-menu[open] form{position:absolute;right:0;top:calc(100% + 8px);z-index:15;width:260px;background:#fff;border:1px solid #dbe4f0;border-radius:12px;padding:14px;box-shadow:0 16px 36px rgba(23,42,78,.16)}.reject-menu textarea{width:100%;box-sizing:border-box;margin:7px 0 10px}.danger-outline{background:#fff;color:#b42318;border:1px solid #efb3ad}.danger{background:#b42318;color:#fff}.empty-state{padding:38px 18px;text-align:center}.empty-state strong,.empty-state span{display:block}.empty-state span{color:#6b7b91;margin-top:6px}
@media(max-width:1100px){.capital-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}.capital-entry-form .span-3{grid-column:1/-1}.capital-filter-toolbar .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.capital-summary-grid{grid-template-columns:1fr;gap:14px}.form-grid-3,.capital-filter-toolbar .filter-grid{grid-template-columns:1fr}.capital-entry-form .span-3,.capital-filter-toolbar .filter-search-wide{grid-column:auto}.capital-filter-toolbar .filter-actions,.form-actions-end{display:grid;grid-template-columns:1fr 1fr}.form-actions-end{grid-template-columns:1fr}.capital-filter-toolbar .filter-actions .btn,.form-actions-end .btn{width:100%;justify-content:center}.capital-entry-card,.card{scroll-margin-top:80px}.capital-row-actions{flex-direction:column}.reject-menu[open] form{position:fixed;left:16px;right:16px;top:25%;width:auto}}

/* Build 12 performance centre */
.perf-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.metric-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:20px;display:flex;flex-direction:column;gap:6px}.metric-card span{color:var(--muted);font-size:.84rem}.metric-card strong{font-size:1.6rem}.metric-card small{color:var(--muted)}.perf-actions{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:24px}.perf-action-grid{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end}.perf-action-grid form{margin:0}.perf-columns{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;margin-bottom:24px}.detail-list>div{display:flex;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--border)}.detail-list dt{color:var(--muted)}.detail-list dd{font-weight:700}.table-scroll{overflow:auto;max-width:100%}.empty-cell{text-align:center;color:var(--muted);padding:28px!important}
@media(max-width:900px){.perf-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.perf-columns{grid-template-columns:1fr}.perf-actions{align-items:flex-start;flex-direction:column}.perf-action-grid{justify-content:flex-start}}
@media(max-width:520px){.perf-summary{grid-template-columns:1fr}.perf-action-grid,.perf-action-grid form,.perf-action-grid .button{width:100%}}

/* Build 12.1 - Settings, Performance and Capital Funding polish */
.settings-hero{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.settings-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.settings-card{display:grid;grid-template-columns:48px 1fr auto;gap:16px;align-items:center;min-height:132px;padding:22px;background:#fff;border:1px solid var(--border,#d9e2ef);border-radius:16px;text-decoration:none;color:inherit;box-shadow:0 10px 28px rgba(15,35,75,.05);transition:.18s ease}.settings-card:hover{transform:translateY(-2px);border-color:#9cb8f2;box-shadow:0 16px 34px rgba(15,35,75,.09)}.settings-card>.ui-icon{width:48px;height:48px;border-radius:14px}.settings-card-copy{display:flex;flex-direction:column;gap:7px}.settings-card-copy strong{font-size:17px;color:#10213d}.settings-card-copy small{font-size:13px;line-height:1.5;color:#64748b}.settings-card-arrow{font-size:28px;color:#8aa0c1}.settings-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px;align-items:start}.settings-subnav{position:sticky;top:92px;padding:14px}.settings-back{display:block;padding:10px 12px;margin-bottom:8px;text-decoration:none;color:#31517e;font-weight:700}.settings-subnav-link{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;text-decoration:none;color:#42526c;font-weight:650}.settings-subnav-link:hover,.settings-subnav-link.active{background:#eaf1ff;color:#0b49c7}.settings-subnav-link .ui-icon{width:30px;height:30px;border-radius:9px}.settings-editor{min-width:0}.settings-fields textarea{width:100%;resize:vertical}.settings-asset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.asset-upload-card{padding:18px;border:1px dashed #b8c7dc;border-radius:14px;background:#f8fbff}.asset-upload-card span{display:block;font-weight:750;margin-bottom:10px}.asset-upload-card small{display:block;margin-top:8px}.status-ok,.status-good{color:#087647}.status-bad{color:#b42318}.settings-editor-actions{justify-content:flex-end;margin-top:24px}
.performance-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}.performance-state{display:inline-flex;align-items:center;padding:9px 13px;border-radius:999px;font-weight:750;font-size:12px}.performance-state.healthy{background:#dcf8e8;color:#087647}.performance-state.attention{background:#fff2d8;color:#9a5b00}.performance-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.performance-metric{padding:20px;background:#fff;border:1px solid #dce5f1;border-radius:15px;box-shadow:0 8px 24px rgba(15,35,75,.05)}.performance-metric span,.performance-metric small{display:block;color:#64748b}.performance-metric strong{display:block;margin:8px 0 4px;font-size:25px;color:#10213d}.maintenance-workspace{margin-bottom:24px}.maintenance-action-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.maintenance-action-card{display:flex;flex-direction:column;gap:12px;padding:16px;border:1px solid #dce5f1;border-radius:14px;background:#f9fbfe}.maintenance-action-card>.ui-icon{width:38px;height:38px}.maintenance-action-card span{display:flex;flex-direction:column;gap:5px}.maintenance-action-card small{color:#64748b;line-height:1.4}.maintenance-action-card .btn{margin-top:auto;width:100%}.performance-two-column{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);gap:24px;margin-bottom:24px}.performance-detail-list{display:grid;gap:0}.performance-detail-list div{display:flex;justify-content:space-between;gap:16px;padding:14px 0;border-bottom:1px solid #e5ebf3}.performance-detail-list dt{color:#64748b}.performance-detail-list dd{font-weight:750}.compact-table{max-height:420px}
.capital-summary-grid{margin-bottom:24px}.capital-entry-card{margin-bottom:24px}.capital-entry-card .section-head{padding-bottom:18px;border-bottom:1px solid #e5ebf3;margin-bottom:20px}.capital-filter-toolbar{padding:18px;background:#f8fbff;border:1px solid #e1e8f2;border-radius:14px;margin-bottom:20px}.capital-row-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.capital-table td small{display:block;margin-top:4px;color:#73829a}.amount-positive{color:#087647;font-weight:800}.amount-negative{color:#b42318;font-weight:800}
@media(max-width:1100px){.settings-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.maintenance-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.settings-card-grid,.settings-asset-grid,.performance-metric-grid,.performance-two-column{grid-template-columns:1fr}.settings-layout{grid-template-columns:1fr}.settings-subnav{position:static;display:flex;overflow-x:auto;gap:6px}.settings-back{white-space:nowrap}.settings-subnav-link{flex:0 0 auto}.maintenance-action-grid{grid-template-columns:1fr}.performance-hero{align-items:flex-start;flex-direction:column}.settings-editor-actions{display:grid;grid-template-columns:1fr}.settings-editor-actions .btn{width:100%}}
.capital-hero{display:flex;align-items:center;gap:16px;margin-bottom:20px}.capital-hero-icon .ui-icon{width:52px;height:52px;border-radius:15px}.capital-hero h2{margin:3px 0 5px}.capital-hero p{margin:0;color:#64748b}

/* Build 12.2 administration, capital and performance refinement */
.settings-command{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.55fr);gap:28px;align-items:end;margin-bottom:28px}.settings-command h2{margin:4px 0 8px}.settings-command p{margin:0;color:var(--muted,#64748b);max-width:720px}.settings-search input{height:48px;background:#f8fbff}.settings-groups{display:grid;gap:30px}.settings-group-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.settings-group-heading h2{font-size:18px;margin:0}.settings-group-heading span{font-size:12px;color:#718096}.settings-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.settings-card{grid-template-columns:52px 1fr;grid-template-rows:auto auto;min-height:150px;padding:20px;border-radius:15px;background:#fff}.settings-card-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid #cfd9e8;border-radius:13px;background:#fff;color:#34557f}.settings-card-icon .ui-icon{width:34px;height:34px;border:0;background:transparent}.settings-card-copy{align-self:center}.settings-card-action{grid-column:2;display:inline-flex;gap:6px;align-items:center;color:#0b49c7;font-size:12px;font-weight:800}.settings-card:hover .settings-card-icon{border-color:#0b49c7;color:#0b49c7}.settings-editor-shell{display:grid;gap:18px}.settings-editor-head{display:grid;gap:14px}.settings-editor-head>.btn{justify-self:start}.settings-category-switch{display:flex;gap:10px;overflow-x:auto;padding:2px 0 8px}.settings-switch-link{display:flex;align-items:center;gap:8px;flex:0 0 auto;padding:9px 12px;border:1px solid #d5deeb;border-radius:11px;background:#fff;text-decoration:none;color:#42526c;font-weight:700;font-size:13px}.settings-switch-link.active,.settings-switch-link:hover{border-color:#0b49c7;color:#0b49c7;background:#f4f8ff}.settings-switch-icon{display:grid;place-items:center;width:30px;height:30px;border:1px solid currentColor;border-radius:9px}.settings-switch-icon .ui-icon{width:22px;height:22px;border:0;background:transparent}.settings-editor{max-width:none}.asset-upload-card{display:grid;grid-template-columns:42px 1fr;align-items:center;column-gap:12px}.asset-upload-card input,.asset-upload-card small{grid-column:2}.asset-upload-icon{grid-row:1/4;display:grid;place-items:center;width:40px;height:40px;border:1px solid #cfd9e8;border-radius:11px}.asset-upload-icon .ui-icon{width:28px;height:28px;border:0;background:transparent}
.performance-metric{display:flex;align-items:center;gap:14px}.performance-metric-icon,.maintenance-icon{display:grid;place-items:center;flex:0 0 auto;width:44px;height:44px;border:1px solid #cfd9e8;border-radius:12px;color:#31517e;background:#fff}.performance-metric-icon .ui-icon,.maintenance-icon .ui-icon{width:30px;height:30px;border:0;background:transparent}.maintenance-action-card{display:grid;grid-template-columns:44px 1fr;align-items:start;min-height:190px;background:#fff}.maintenance-copy{min-width:0}.maintenance-action-card .btn{grid-column:1/-1}.performance-log-card{margin-top:24px}.performance-table-scroll{max-height:430px;overflow:auto;border:1px solid #e1e8f2;border-radius:13px}.performance-table-scroll table{margin:0;min-width:820px}.performance-table-scroll thead th{position:sticky;top:0;background:#f3f6fb;z-index:2}.performance-table-scroll code{font-size:12px;white-space:normal;word-break:break-word}
.capital-entry-card,.capital-register-card{background:#fff}.capital-type-fieldset{border:0;padding:0;margin:0 0 24px}.capital-type-fieldset legend{font-weight:800;margin-bottom:10px}.capital-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.capital-type-option{position:relative;display:grid;grid-template-columns:42px 1fr;align-items:center;gap:12px;padding:15px;border:1px solid #d7e0ed;border-radius:13px;background:#fff;cursor:pointer}.capital-type-option input{position:absolute;opacity:0}.capital-type-option:has(input:checked){border-color:#0b49c7;background:#f2f7ff;box-shadow:0 0 0 2px rgba(11,73,199,.08)}.capital-type-icon{display:grid;place-items:center;width:40px;height:40px;border:1px solid #cfd9e8;border-radius:11px;color:#31517e}.capital-type-icon .ui-icon{width:28px;height:28px;border:0;background:transparent}.capital-type-option strong,.capital-type-option small{display:block}.capital-type-option small{margin-top:3px;color:#6b7b91;line-height:1.35}.capital-form-section{padding-top:20px;border-top:1px solid #e4eaf2}.capital-form-section h3{margin:0 0 16px}.capital-filter-toolbar .filter-actions{border-top:1px solid #e5ebf3;padding-top:16px}.capital-register-card{margin-top:26px}
/* Action links must look like actions, not inline text */
a.btn,a.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.form-actions>a,.filter-actions>a,.people-filter-actions>a,.payments-filter-actions>a,.staff-actions>a{white-space:nowrap}
@media(max-width:1100px){.settings-command{grid-template-columns:1fr}.settings-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.capital-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.settings-card-grid,.capital-type-grid{grid-template-columns:1fr}.settings-command{padding:18px}.settings-search{width:100%}.settings-editor-actions{grid-template-columns:1fr 1fr}.settings-editor-actions .btn{width:100%}.performance-table-scroll{max-height:360px}.capital-type-option{min-height:74px}}

/* Build 12.4 visual alignment, settings workspace and compact capital controls */
.performance-metric-icon,.maintenance-icon,.settings-card-icon,.settings-rail-icon,.settings-editor-icon,.capital-type-icon{
  display:inline-grid!important;place-items:center!important;text-align:center;line-height:0!important;
}
.performance-metric-icon>.ui-icon,.maintenance-icon>.ui-icon,.settings-card-icon>.ui-icon,.settings-rail-icon>.ui-icon,.settings-editor-icon>.ui-icon,.capital-type-icon>.ui-icon{
  display:grid!important;place-items:center!important;margin:0!important;line-height:0!important;
}
.performance-metric-icon svg,.maintenance-icon svg,.settings-card-icon svg,.settings-rail-icon svg,.settings-editor-icon svg,.capital-type-icon svg{
  display:block!important;margin:auto!important;width:72%!important;height:72%!important;
}
.performance-metric{min-height:132px;align-items:center}.performance-metric>div{min-width:0}.performance-metric>div>span{font-size:14px}.performance-metric strong{line-height:1.1}
.maintenance-action-card{grid-template-columns:48px minmax(0,1fr);column-gap:14px;align-items:start}.maintenance-icon{align-self:start}.maintenance-copy{padding-top:2px}.maintenance-action-card .btn{min-height:40px}

.settings-card{background:linear-gradient(145deg,#fff 0%,#f7faff 100%);border-color:#d8e2ef;box-shadow:0 8px 22px rgba(15,35,75,.045)}
.settings-card-icon{align-self:start}
.settings-workspace{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px;align-items:start}
.settings-category-rail{position:sticky;top:92px;padding:14px;max-height:calc(100vh - 120px);overflow:auto}
.settings-home-button{width:100%;justify-content:center;margin-bottom:12px}
.settings-rail-list{display:grid;gap:7px}
.settings-rail-link{display:grid;grid-template-columns:40px minmax(0,1fr);gap:11px;align-items:center;padding:10px;border:1px solid transparent;border-radius:12px;text-decoration:none;color:#42526c;background:#fff}
.settings-rail-link:hover,.settings-rail-link.active{border-color:#9eb8ed;background:#eef4ff;color:#0b49c7}
.settings-rail-icon,.settings-editor-icon{width:38px;height:38px;border:1px solid #cbd7e8;border-radius:11px;color:#31517e;background:#fff}
.settings-rail-link.active .settings-rail-icon{border-color:#0b49c7;color:#0b49c7}
.settings-rail-link strong,.settings-rail-link small{display:block}.settings-rail-link strong{font-size:13px}.settings-rail-link small{font-size:11px;color:#7a879b;margin-top:2px}
.settings-editor-card{padding:0;overflow:hidden}.settings-editor-banner{display:grid;grid-template-columns:48px minmax(0,1fr);gap:14px;align-items:center;padding:22px 24px;border-bottom:1px solid #e4eaf2;background:linear-gradient(135deg,#f7faff,#fff)}
.settings-editor-banner h2{margin:3px 0 5px}.settings-editor-banner p{margin:0;color:#64748b}.settings-category-form{padding:24px}.settings-fields{gap:20px}.settings-editor-actions{padding-top:20px;border-top:1px solid #e5ebf3}

.capital-entry-card{overflow:hidden}.capital-entry-card .section-head{padding:22px 24px;margin:0;background:linear-gradient(135deg,#f7faff,#fff)}.capital-entry-form{padding:22px 24px}
.capital-type-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.capital-type-option{grid-template-columns:1fr;justify-items:center;text-align:center;gap:8px;min-height:126px;padding:14px 10px}
.capital-type-option>span:last-child{min-width:0}.capital-type-option small{font-size:11px}.capital-type-icon{width:40px;height:40px}
.capital-form-section{margin-top:4px}.capital-register-card>.section-head{padding-bottom:16px}.capital-filter-toolbar{background:#fff}.capital-filter-toolbar .filter-actions{justify-content:flex-end}

@media(max-width:1100px){.capital-type-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.settings-workspace{grid-template-columns:230px minmax(0,1fr)}}
@media(max-width:800px){.settings-workspace{grid-template-columns:1fr}.settings-category-rail{position:static;max-height:none;overflow:visible}.settings-rail-list{display:flex;overflow-x:auto;padding-bottom:5px}.settings-rail-link{flex:0 0 190px}.settings-category-form{padding:18px}.capital-type-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.capital-entry-form{padding:18px}}
@media(max-width:520px){.capital-type-grid{grid-template-columns:1fr}.capital-type-option{grid-template-columns:40px 1fr;justify-items:start;text-align:left;min-height:76px}.settings-editor-banner{padding:18px}.settings-editor-actions{display:grid;grid-template-columns:1fr}.settings-editor-actions .btn{width:100%}}
/* Build 12.5 consolidated UI */
.mini-stat.penalty-summary{background:#fff;color:inherit;border-color:#dfe6f1}.mini-stat.penalty-summary strong{color:#b42318}.mini-stat.penalty-summary small{color:#6d7c96}
.settings-page-card,.settings-workspace{background:#fff;border:1px solid #dfe6f1;border-radius:18px;padding:24px;box-shadow:0 10px 30px rgba(20,43,82,.05)}
.settings-page-card .settings-group,.settings-workspace .settings-category-rail,.settings-workspace .settings-editor{background:#fff}
.settings-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:24px}.settings-workspace>.card{box-shadow:none;border-radius:14px}
.capital-entry-card,.capital-register-card,.capital-type-card,.capital-summary-card{border-radius:16px!important;overflow:hidden}.capital-type-grid>*{border-radius:16px!important}
.loan-products-header{border-radius:18px}.loan-product-editor .config-section{background:#f8fafc;border:1px solid #e1e8f2;border-radius:16px;padding:20px;margin-bottom:20px}.loan-product-editor .config-section h3{margin-top:0}.choice-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:14px}.choice-card{display:flex!important;align-items:center;gap:10px;border:1px solid #d8e1ee;border-radius:14px;background:#fff;padding:14px;min-height:52px}.choice-card input{width:18px;height:18px}.impersonation-banner{position:sticky;top:0;z-index:10000;background:#fff4cc;border-bottom:1px solid #f0cf63;padding:8px 18px;display:flex;align-items:center;justify-content:center;gap:12px;color:#6a4b00}.inline-form{display:inline-flex}
@media(max-width:900px){.settings-workspace{grid-template-columns:1fr}.settings-category-rail{overflow-x:auto}.settings-rail-list{display:flex;min-width:max-content}.settings-rail-link{min-width:190px}.settings-page-card{padding:16px}}

/* Build 12.6.1 - site-wide layout and action alignment hotfix */
.impersonation-banner{position:sticky;top:0;z-index:10050;min-height:52px;padding:8px 18px;background:#fff6d8;border-bottom:1px solid #e9c85c;display:flex!important;align-items:center;justify-content:center;gap:18px;color:#604600;box-shadow:0 3px 12px rgba(52,39,0,.08)}
.impersonation-copy{display:flex;align-items:center;gap:8px;min-width:0}.impersonation-copy strong{font-size:13px}.impersonation-copy span{font-size:12px;color:#765d15}.impersonation-return{background:#fff!important;color:#0b49c7!important;border:1px solid #9eb7eb!important;border-radius:10px!important;padding:8px 13px!important;font-weight:800!important;text-decoration:none!important}
.impersonation-return:hover{background:#edf4ff!important}

.back-to-top{width:46px!important;height:46px!important;border:0!important;border-radius:50%!important;background:var(--blue,#0b49c7)!important;color:#fff!important;box-shadow:0 10px 28px rgba(11,73,199,.32)!important;padding:0!important}
.back-to-top svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}.back-to-top:hover{transform:translateY(-2px)!important;filter:brightness(1.05)}.back-to-top.show{transform:none}.back-to-top.show:hover{transform:translateY(-2px)!important}

/* Reports: contain the library, restore vertical navigation and align filters */
.report-shell{grid-template-columns:minmax(230px,270px) minmax(0,1fr)!important;gap:22px!important;width:100%;min-width:0}.report-menu{display:block!important;min-width:0!important;overflow-x:hidden!important;padding:14px!important}.report-menu details{display:block!important;width:100%!important;overflow:hidden}.report-menu summary{display:block!important;list-style:none;padding:12px 10px!important}.report-menu summary::-webkit-details-marker{display:none}.report-menu-links{display:grid!important;grid-template-columns:1fr!important;gap:4px!important;min-width:0!important}.report-menu-links a{display:block!important;width:100%!important;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.35!important}.report-workspace,.report-header,.report-filter-panel,.report-results{min-width:0!important}.report-header{padding:20px 22px!important}.report-filter-panel{padding:20px 22px!important}.report-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}.report-filter-grid label{min-width:0;margin:0!important}.report-filter-grid input,.report-filter-grid select{width:100%;margin-top:6px}.report-filter-actions{display:flex!important;justify-content:flex-end!important;align-items:center!important;gap:10px!important;padding-top:8px!important}.report-filter-actions .button,.report-filter-actions button{min-width:120px;min-height:42px;margin:0!important}

/* Payments: give the primary action its own breathing room */
.payments-filter-actions{padding-top:18px!important;gap:12px!important}.payments-filter-actions .payments-record{margin-left:8px!important;min-width:164px!important}.payments-filter-actions .payments-record:before{content:"+";font-size:18px;font-weight:800;margin-right:7px;line-height:1}

/* Capital funding: restore spacing around register and content */
.capital-hero,.capital-entry-card,.capital-register-card{padding:24px!important}.capital-summary-grid{gap:16px!important;margin:18px 0 24px!important}.capital-register-card{margin-top:28px!important}.capital-register-card>.section-head{margin-bottom:18px!important;padding-bottom:16px!important;border-bottom:1px solid #e7edf5}.capital-filter-toolbar{padding:4px 0 20px!important;margin-bottom:4px!important}.capital-table-wrap{margin-top:8px!important}.capital-table th,.capital-table td{padding:13px 14px!important;vertical-align:top}.capital-table td strong,.capital-table td small{display:block}.capital-table td small{margin-top:4px;color:#667085;line-height:1.35}

/* Settings and performance: prevent compressed cards and broken grids */
.settings-page-card{padding:24px!important}.settings-command{gap:20px!important;padding:4px 0 24px!important}.settings-groups{display:grid;gap:28px}.settings-group{min-width:0}.settings-card-grid{gap:16px!important}.settings-card{min-width:0!important;padding:18px!important;align-items:center!important}.settings-card-copy{min-width:0}.settings-card-copy small{line-height:1.45}.settings-workspace{gap:22px!important}.settings-editor-card{padding:24px!important}.performance-hero,.maintenance-workspace,.performance-log-card,.performance-two-column>*{padding:22px!important}.performance-metric-grid{gap:16px!important}.performance-metric{min-width:0!important}.maintenance-action-grid{gap:16px!important}.performance-table-scroll{width:100%;max-width:100%}

/* Announcements */
.announcement-admin-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(280px,.65fr);gap:20px;margin-bottom:22px}.announcement-compose-card,.announcement-guidance,.published-announcements{padding:22px!important}.announcement-form{display:grid;gap:14px}.announcement-guidance ul{margin:14px 0 18px;padding-left:20px;display:grid;gap:9px}.announcement-guidance p,.announcement-guidance li{line-height:1.55;color:#53637a}.announcement-list{display:grid;gap:12px;margin-top:16px}.announcement-record{display:grid;grid-template-columns:12px minmax(0,1fr) auto;gap:14px;align-items:start;padding:16px;border:1px solid #dfe7f1;border-radius:14px;background:#fff}.announcement-status-dot{width:10px;height:10px;border-radius:50%;margin-top:5px;background:#9aa8ba}.announcement-record.is-active .announcement-status-dot{background:#16a05d}.announcement-record-copy{min-width:0}.announcement-record-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.announcement-record-copy p{margin:8px 0;color:#40516a;line-height:1.55;white-space:normal}.announcement-record-copy small{display:block;color:#728096}.announcement-record form{margin:0}

/* General button/link consistency in action areas */
.form-actions,.filter-actions,.section-toolbar,.staff-actions{gap:10px}.form-actions>a,.filter-actions>a,.staff-actions>a{min-height:40px}.btn,.button,button{vertical-align:middle}

@media(max-width:1000px){.report-shell{grid-template-columns:1fr!important}.report-menu{position:static!important;max-height:none!important}.report-menu details{border:1px solid #e1e8f2!important;border-radius:10px!important;margin-bottom:8px!important}.report-menu-links{padding:0 8px 10px!important}.announcement-admin-grid{grid-template-columns:1fr}.payments-filter-actions .payments-record{margin-left:0!important}}
@media(max-width:700px){.impersonation-banner{justify-content:space-between;padding:8px 12px}.impersonation-copy{display:grid;gap:1px}.impersonation-copy span{max-width:48vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.report-filter-grid{grid-template-columns:1fr!important}.report-filter-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.report-filter-actions>*{width:100%!important;min-width:0!important}.payments-filter-actions{gap:10px!important}.payments-filter-actions .payments-record{grid-column:1/-1!important}.capital-hero,.capital-entry-card,.capital-register-card,.settings-page-card,.settings-editor-card{padding:17px!important}.announcement-record{grid-template-columns:10px minmax(0,1fr)}.announcement-record form{grid-column:2}.announcement-record form .btn{width:100%}.announcement-record-head{align-items:flex-start;flex-direction:column}.back-to-top{right:16px!important;bottom:16px!important;width:44px!important;height:44px!important}}


/* Build 12.6.2 - restored report library, capital spacing and capture-fee forms */
.report-shell{display:grid;grid-template-columns:260px minmax(0,1fr);gap:22px;align-items:start;width:100%;min-width:0}.report-menu{position:sticky;top:84px;max-height:calc(100vh - 100px);overflow:auto;padding:14px;background:#fff;border:1px solid #dfe6f1;border-radius:16px}.report-menu-title{display:flex;justify-content:space-between;align-items:center;padding:8px 8px 14px;border-bottom:1px solid #e5e7eb;margin-bottom:8px}.report-menu-title span{font-size:.75rem;color:#64748b}.report-menu details{border-bottom:1px solid #e5e7eb}.report-menu summary{cursor:pointer;font-weight:800;padding:12px 8px;color:#24364f}.report-menu-links{display:grid;gap:4px;padding:0 0 10px}.report-menu-links a{display:block;padding:9px 10px;border-radius:9px;color:#334155;text-decoration:none;font-size:.88rem;line-height:1.35}.report-menu-links a:hover,.report-menu-links a.active{background:#eaf2ff;color:#0b49c7}.report-workspace{min-width:0;display:grid;gap:16px}.report-header{display:flex;justify-content:space-between;gap:16px;align-items:center;background:#fff;border:1px solid #dfe6f1;border-radius:16px}.report-header h1{margin:.15rem 0}.report-header-actions{display:flex;gap:8px;flex-wrap:wrap}.report-filter-panel,.report-results{background:#fff;border:1px solid #dfe6f1;border-radius:16px}.report-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:14px;align-items:end}.report-filter-grid label{display:grid;gap:6px;font-weight:700;font-size:.84rem}.report-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;padding-top:6px}.report-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.report-summary-card{background:#fff;border:1px solid #dfe6f1;border-radius:14px;padding:16px}.report-summary-card span{display:block;color:#64748b;font-size:.8rem}.report-summary-card strong{display:block;font-size:1.45rem;margin-top:4px}.report-bars{display:grid;gap:8px;padding:8px 0 18px}.report-bar-row{display:grid;grid-template-columns:150px 1fr 100px;gap:10px;align-items:center;font-size:.85rem}.report-bar-row>div{height:10px;background:#eef2f7;border-radius:999px;overflow:hidden}.report-bar-row i{display:block;height:100%;background:#0b49c7;border-radius:999px}.report-bar-row strong{text-align:right}
.capital-register-card{padding:26px!important}.capital-register-card>.section-head{margin:0 0 20px!important;padding:0 0 18px!important}.capital-filter-toolbar{padding:18px!important;background:#f8fbff!important;border:1px solid #dfe7f1!important;border-radius:14px!important}.capital-filter-toolbar .filter-grid{gap:14px!important}.capital-filter-toolbar .filter-actions{margin-top:16px!important;padding-top:16px!important}.capital-table-wrap{margin-top:18px!important}.capital-register-card .table-scroll{border-radius:14px!important}.capital-register-card .empty-state{min-height:130px;display:grid;place-content:center}.capture-waiver-box{margin:18px 0;padding:16px;border:1px solid #f0cc70;background:#fff9e8;border-radius:14px}.capture-waiver-box textarea{margin-top:8px}.people-create-form small{display:block;color:#667085;line-height:1.4;margin-top:5px}
@media(max-width:900px){.report-shell{grid-template-columns:1fr}.report-menu{position:static;max-height:none}.report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.report-header{align-items:flex-start;flex-direction:column}.report-header-actions{width:100%}.report-header-actions .button{flex:1}.report-filter-grid{grid-template-columns:1fr}.report-filter-actions{display:grid;grid-template-columns:1fr 1fr}.report-summary-grid{grid-template-columns:1fr}.report-bar-row{grid-template-columns:90px 1fr 72px}.capital-register-card{padding:16px!important}.capital-filter-toolbar{padding:14px!important}}
@media print{.report-menu,.report-filter-panel,.report-header-actions,.app-sidebar,.topbar{display:none!important}.report-shell{display:block}.report-results{border:none;box-shadow:none}}

/* Build 12.6.4 - prevent desktop horizontal overflow in Record Payment and shared workspace */
html,body{max-width:100%;overflow-x:hidden}
.app-shell{width:100%;max-width:100%;overflow-x:hidden}
.workspace{
  width:calc(100% - 256px);
  max-width:calc(100% - 256px);
  min-width:0;
  overflow-x:hidden;
}
.workspace-bar,.container,main,.panel{
  max-width:100%;
  min-width:0;
}
.workspace-bar{width:100%}
.container{width:100%}
body.sidebar-is-collapsed .workspace{
  width:calc(100% - 82px);
  max-width:calc(100% - 82px);
}
.payment-record-search-panel,
.payment-record-customer-card,
.payment-record-panel,
.payment-record-step,
.payment-record-search-form,
.payment-record-search-fields,
.payment-loan-grid,
.payment-record-fields,
.payment-review-card{
  width:100%;
  max-width:100%;
  min-width:0;
}
.payment-record-search-form>*{min-width:0}
.payment-record-search-fields input{min-width:0;max-width:100%}
.payment-record-customer-card>div{min-width:0}
.payment-record-customer-card h2,
.payment-record-customer-card p{overflow-wrap:anywhere}
.payment-loan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.payment-loan-card,.payment-loan-copy{min-width:0}
.payment-loan-copy strong,
.payment-loan-copy small,
.payment-loan-balance{overflow-wrap:anywhere}
.payment-record-actions,.payment-record-search-actions{max-width:100%;flex-wrap:wrap}
@media(max-width:1100px){
  .payment-loan-grid{grid-template-columns:1fr}
  .payment-record-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:850px){
  .workspace,
  body.sidebar-is-collapsed .workspace{
    width:100%;
    max-width:100%;
    margin-left:0;
  }
}
@media(max-width:620px){
  .payment-record-fields{grid-template-columns:1fr}
}

/* Build 13.0.1 settings navigation and dashboard penalty card */
.settings-rail-heading{display:grid;grid-template-columns:40px minmax(0,1fr);gap:11px;align-items:center;padding:8px 8px 14px;margin-bottom:8px;border-bottom:1px solid #e5ebf3}
.settings-rail-heading>.ui-icon{width:38px;height:38px;border:1px solid #cbd7e8;border-radius:11px;color:#31517e;background:#fff}
.settings-rail-heading strong,.settings-rail-heading small{display:block}.settings-rail-heading strong{font-size:15px}.settings-rail-heading small{font-size:11px;color:#7a879b;margin-top:2px}
.settings-category{scroll-margin-top:96px}
.settings-category-rail.panel{padding:14px;margin-bottom:0}
.settings-editor>.settings-editor-card{margin-bottom:20px}
.settings-editor>.settings-editor-actions{position:sticky;bottom:14px;z-index:6;background:rgba(255,255,255,.96);backdrop-filter:blur(8px);padding:12px 14px;border:1px solid #dfe6f1;border-radius:14px;box-shadow:0 10px 28px rgba(20,43,82,.12)}
.mini-stat.penalty-summary{background:#fff!important;background-image:none!important;color:var(--ink)!important;border-color:var(--line)!important}
.mini-stat.penalty-summary span{color:var(--muted)!important}.mini-stat.penalty-summary strong{color:#b42318!important}.mini-stat.penalty-summary small{color:#6d7c96!important}
@media(max-width:800px){.settings-editor>.settings-editor-actions{bottom:8px}.settings-rail-heading{display:none}}

/* Build 13.0.2: true dynamic Settings hub */
.settings-hub{display:grid;gap:20px;max-width:1280px;margin:0 auto}.settings-hub-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,380px);gap:28px;align-items:end;padding:24px}.settings-hub-intro h2{margin:4px 0 8px;font-size:1.45rem}.settings-hub-intro p{margin:0;color:var(--muted,#64748b);max-width:720px;line-height:1.55}.settings-hub-search{margin:0}.settings-hub-search span{display:block;margin-bottom:7px;font-weight:700;font-size:.82rem}.settings-hub-search input{width:100%;height:46px}.settings-dynamic-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.settings-dynamic-card{display:grid;grid-template-columns:52px minmax(0,1fr) 24px;gap:14px;align-items:center;min-height:132px;padding:19px;text-decoration:none;color:var(--ink,#17233b);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}.settings-dynamic-card:hover{transform:translateY(-2px);border-color:#9eb8ed;box-shadow:0 12px 30px rgba(15,73,199,.09)}.settings-dynamic-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid #cbd7e8;border-radius:13px;background:#fff;color:#31517e;flex:0 0 48px}.settings-dynamic-icon .ui-icon{width:32px;height:32px;border:0;background:transparent}.settings-dynamic-copy{display:grid;gap:6px;min-width:0}.settings-dynamic-copy strong{font-size:.98rem}.settings-dynamic-copy small{color:#6b7890;line-height:1.45}.settings-dynamic-arrow{font-size:1.65rem;line-height:1;color:#8a99ae;text-align:center}.settings-category-page{display:grid;gap:18px;max-width:1120px;margin:0 auto}.settings-category-topbar{display:grid;gap:16px}.settings-back-button{justify-self:start}.settings-category-heading{display:flex;gap:15px;align-items:center;padding:4px 2px}.settings-category-heading h2{margin:3px 0 5px}.settings-category-heading p{margin:0;color:#64748b}.settings-single-editor{padding:24px}.settings-single-fields{gap:20px}.settings-single-fields label{margin:0}.settings-single-fields label>span{display:block;margin-bottom:7px;font-weight:700}.settings-single-fields .field-span-two{grid-column:1/-1}.settings-single-fields textarea{width:100%;resize:vertical}.settings-assets-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.settings-asset-tile{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:center;padding:17px;border:1px solid #d8e2ef;border-radius:13px;background:#f9fbfe}.settings-asset-icon{display:grid;place-items:center;width:42px;height:42px;border:1px solid #cbd7e8;border-radius:11px;background:#fff}.settings-asset-icon .ui-icon{width:28px;height:28px;border:0;background:transparent}.settings-asset-copy{display:grid;gap:3px}.settings-asset-copy small{color:#6f7e94}.settings-asset-tile input{grid-column:1/-1;width:100%}.settings-single-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;padding-top:20px;border-top:1px solid #e4eaf2}
@media(max-width:1050px){.settings-dynamic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.settings-hub-intro{grid-template-columns:1fr;padding:18px}.settings-dynamic-grid{grid-template-columns:1fr}.settings-dynamic-card{min-height:110px}.settings-single-editor{padding:18px}.settings-assets-grid{grid-template-columns:1fr}.settings-single-fields .field-span-two{grid-column:auto}.settings-single-actions{display:grid;grid-template-columns:1fr}.settings-single-actions .btn{width:100%}}

/* Build 13.0.3: loan-product management and unique settings iconography */
.loan-products-manager{padding:24px}.loan-products-manager-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}.loan-products-manager-head h2,.loan-products-manager-head h3{margin:0 0 6px}.loan-products-manager-head p{margin:0;color:#64748b;line-height:1.5}.loan-products-manager-head .btn .ui-icon{width:22px;height:22px;border:0;background:transparent}.loan-products-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.loan-product-summary-card{display:flex;flex-direction:column;gap:16px;border:1px solid #dbe4ef;border-radius:16px;background:#fff;padding:20px;min-width:0}.loan-product-summary-top{display:grid;grid-template-columns:46px minmax(0,1fr) auto;gap:12px;align-items:center}.loan-product-summary-icon{display:grid;place-items:center;width:44px;height:44px;border:1px solid #cbd7e8;border-radius:12px;color:#174fae;background:#f8fbff}.loan-product-summary-icon .ui-icon{width:29px;height:29px;border:0;background:transparent}.loan-product-summary-top h4{margin:0 0 3px;font-size:1.05rem}.loan-product-description{margin:0;color:#64748b;line-height:1.45;min-height:42px}.loan-product-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.loan-product-facts div{padding:11px 12px;border-radius:11px;background:#f6f8fc;border:1px solid #e6ebf2;min-width:0}.loan-product-facts dt{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:#718096;margin-bottom:4px}.loan-product-facts dd{margin:0;font-weight:750;overflow-wrap:anywhere}.loan-product-tags{display:flex;flex-wrap:wrap;gap:7px}.loan-product-tags span{font-size:.72rem;padding:5px 8px;border:1px solid #d8e2ef;border-radius:999px;background:#f9fbfe;color:#4b607c}.loan-product-summary-actions{display:flex;justify-content:flex-end;margin-top:auto;padding-top:4px}.loan-products-table td:first-child{display:grid;gap:3px}.loan-products-table td:first-child small{color:#64748b}.compact-actions{display:flex;gap:10px;margin:0}.btn-small{min-height:36px;padding:8px 13px}.loan-product-editor{max-width:1180px;margin:0 auto}.loan-product-editor .section-toolbar{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:18px}.loan-product-editor .form-stack{display:grid;gap:0}.loan-product-editor input,.loan-product-editor select,.loan-product-editor textarea{width:100%}.loan-product-editor label{margin:0}.settings-dynamic-icon.ui-unique-building{color:#2f6d4f}.empty-state.compact{min-height:180px;display:grid;place-content:center;text-align:center;border:1px dashed #cbd7e8;border-radius:14px;background:#f9fbfe;padding:24px}.empty-state.compact p{margin:5px 0 0;color:#64748b}
@media(max-width:980px){.loan-products-card-grid{grid-template-columns:1fr}.loan-products-manager-head{align-items:stretch}.compact-actions{flex-wrap:wrap}}
@media(max-width:720px){.loan-products-manager{padding:17px}.loan-products-manager-head{display:grid}.loan-products-manager-head .btn{width:100%}.compact-actions{display:grid}.loan-product-facts{grid-template-columns:1fr}.loan-product-summary-top{grid-template-columns:42px minmax(0,1fr)}.loan-product-summary-top .badge{grid-column:2;justify-self:start}.loan-product-summary-actions .btn{width:100%}.loan-products-table-wrap{overflow-x:auto}.loan-products-table{min-width:760px}.loan-product-editor .section-toolbar{display:grid}.loan-product-editor .section-toolbar .btn{width:100%}}

/* Build 13.1.0 loan approval workflow */
.application-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:start;margin-top:22px}
.application-actions .approval-action-card{min-width:0;margin:0;padding:20px;border:1px solid #d8e2ef;border-radius:14px;background:#fff;display:grid;gap:14px}
.application-actions .approval-action-card h3{margin:0 0 5px;color:#102a4c}
.application-actions .approval-action-card p{margin:0;color:#667085}
.application-actions .approval-action-card label{display:grid;gap:7px;font-weight:700}
.application-actions .approval-action-card textarea{width:100%;min-height:92px;box-sizing:border-box;resize:vertical}
.application-actions .approval-action-card button{justify-self:start;margin-top:2px}
.application-actions .approval-card{border-left:4px solid #175cd3}
.application-actions .rejection-card{border-left:4px solid #d92d20}
.approval-complete-card{grid-column:1/-1;padding:18px;border:1px solid #a6e3bf;border-radius:14px;background:#f4fbf7}
.approval-complete-card p{margin:8px 0 0;color:#3b5b49}
button[disabled]{cursor:not-allowed;opacity:.68}
@media(max-width:800px){.application-actions{grid-template-columns:1fr}.application-actions .approval-action-card button{width:100%;justify-content:center}}

/* Build 13.1.1 automatic upfront fees and disbursement lock */
.upfront-breakdown-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.upfront-breakdown-grid>div{border:1px solid var(--border,#dbe3ef);border-radius:12px;padding:14px;background:#fff;display:grid;gap:4px}.upfront-breakdown-grid span,.upfront-breakdown-grid small{color:var(--muted,#64748b)}.upfront-lock-card{border-left:4px solid var(--warning,#d97706);background:#fff}.upfront-mini-breakdown{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.upfront-mini-breakdown em{font-style:normal;font-size:.76rem;border:1px solid var(--border,#dbe3ef);border-radius:999px;padding:4px 8px;background:#fff;color:var(--muted,#475569)}
@media(max-width:900px){.upfront-breakdown-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.upfront-breakdown-grid{grid-template-columns:1fr}}

/* Build 13.1.2 */
.application-payments-panel,.application-agreement-panel{display:grid;gap:20px}.application-payments-heading{margin-bottom:0}.upfront-payment-experience,.ready-disbursement-card{border:1px solid #d9e3f2;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 10px 30px rgba(15,45,90,.06)}.upfront-status-header,.ready-disbursement-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:start;padding:22px 24px;background:#f8fbff;border-bottom:1px solid #e3ebf6}.upfront-lock-icon,.ready-check{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#eaf1ff;color:#1451cc;font-size:20px}.ready-check{background:#e4f7ec;color:#15803d;font-weight:800}.upfront-status-header h3,.ready-disbursement-header h3{margin:3px 0 5px}.upfront-status-header p,.ready-disbursement-header p{margin:0;color:#60708b}.upfront-progress{height:10px;background:#e8eef8;margin:22px 24px 8px;border-radius:999px;overflow:hidden}.upfront-progress span{display:block;height:100%;background:linear-gradient(90deg,#1451cc,#2d7cf5);border-radius:inherit}.upfront-component-list{padding:8px 24px}.upfront-component-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 0;border-bottom:1px solid #e8eef6}.upfront-component-row:last-child{border-bottom:0}.upfront-component-row>div:first-child{display:grid;gap:4px}.upfront-component-row small{color:#687995}.upfront-component-values{display:flex;align-items:center;gap:14px}.upfront-component-values>span:first-child{font-weight:700}.upfront-total-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:18px 24px;background:#f8fafc;border-block:1px solid #e8eef6}.upfront-total-grid>div{display:grid;gap:6px;padding:14px;border-radius:12px;background:#fff;border:1px solid #e0e8f3}.upfront-total-grid span{font-size:12px;color:#66758e}.upfront-total-grid strong{font-size:20px}.upfront-balance-total{border-color:#f5c1c1!important;background:#fffafa!important}.upfront-balance-total strong{color:#b42318}.upfront-allocation-note{display:grid;gap:4px;margin:18px 24px;padding:14px 16px;border-radius:12px;background:#eef5ff;color:#334b6d}.upfront-primary-action{display:flex!important;justify-content:center;align-items:center;margin:0 24px 24px;width:calc(100% - 48px);min-height:46px}.ready-checklist{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:22px 24px}.ready-checklist span{padding:12px;border-radius:12px;background:#effaf3;color:#166534;font-weight:700;text-align:center}.disbursement-form-card{margin:0 24px 24px;padding:20px;border:1px solid #dce7f4;border-radius:14px;background:#fbfdff}.public-payment-instructions{padding:13px 15px;margin:0 0 14px;border-radius:12px;background:#eef5ff;color:#334b6d}@media(max-width:760px){.upfront-status-header,.ready-disbursement-header{grid-template-columns:auto 1fr}.upfront-status-header>.badge,.ready-disbursement-header>.badge{grid-column:2;justify-self:start}.upfront-component-row{align-items:flex-start;flex-direction:column}.upfront-component-values{width:100%;justify-content:space-between}.upfront-total-grid,.ready-checklist{grid-template-columns:1fr}}


/* Build 13.1.3 - Announcements workspace */
.announcement-library-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid #e7edf5}.announcement-library-head h2{margin:4px 0 5px}.announcement-library-head p{margin:0}.announcement-count{display:flex;align-items:baseline;gap:5px;flex:0 0 auto;padding:9px 12px;border:1px solid #dfe7f1;border-radius:12px;background:#f7f9fc;color:#41516a}.announcement-count strong{font-size:18px;color:#10213b}.announcement-count span{font-size:12px;font-weight:700}.announcement-filter-panel{margin-top:20px;padding:18px;border:1px solid #dfe7f1;border-radius:14px;background:#f8fbff}.announcement-filter-grid{display:grid;grid-template-columns:minmax(280px,2fr) repeat(4,minmax(150px,1fr));gap:14px;align-items:end}.announcement-filter-grid label{display:grid;gap:7px;min-width:0;font-size:12px;font-weight:800;color:#263750}.announcement-filter-grid input,.announcement-filter-grid select{width:100%;min-width:0;min-height:43px;margin:0}.announcement-search-control{position:relative}.announcement-search-control svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:18px;height:18px;fill:none;stroke:#6d7e96;stroke-width:1.8;stroke-linecap:round}.announcement-search-control input{padding-left:42px}.announcement-filter-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid #e2e9f2}.announcement-filter-actions .btn{min-width:118px;justify-content:center}.announcement-list{margin-top:20px}.announcement-record{grid-template-columns:minmax(0,1fr) auto;gap:20px;align-items:center;padding:18px 20px}.announcement-record-main{min-width:0}.announcement-record-title-row{display:flex;align-items:flex-start;gap:12px}.announcement-record-title{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.announcement-record-title strong{font-size:15px}.announcement-record-main>p{margin:10px 0 12px;color:#40516a;line-height:1.55}.announcement-meta{display:flex;flex-wrap:wrap;gap:7px 14px;color:#728096;font-size:12px}.announcement-meta span{position:relative}.announcement-meta span+span:before{content:"";position:absolute;left:-8px;top:50%;width:3px;height:3px;border-radius:50%;background:#aab5c4}.announcement-actions{display:grid;grid-template-columns:repeat(3,auto);gap:8px;align-items:center}.announcement-actions form{margin:0}.announcement-actions .btn{min-width:88px;justify-content:center}.announcement-empty-state{min-height:190px;display:grid;place-items:center;align-content:center;text-align:center;gap:7px;padding:30px;border:1px dashed #ccd8e7;border-radius:14px;background:#fbfcfe;color:#667085}.announcement-empty-state strong{color:#253750}.announcement-empty-icon{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;background:#edf3ff;color:#1553c6;margin-bottom:4px}.announcement-empty-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1120px){.announcement-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.announcement-filter-search{grid-column:1/-1}.announcement-record{align-items:start}.announcement-actions{grid-template-columns:1fr}}
@media(max-width:700px){.published-announcements{padding:17px!important}.announcement-library-head{align-items:flex-start}.announcement-count{padding:7px 9px}.announcement-count strong{font-size:15px}.announcement-filter-panel{padding:14px}.announcement-filter-grid{grid-template-columns:1fr}.announcement-filter-search{grid-column:auto}.announcement-filter-actions{display:grid;grid-template-columns:1fr 1fr}.announcement-filter-actions .btn{width:100%;min-width:0}.announcement-record{grid-template-columns:1fr;padding:16px}.announcement-actions{grid-template-columns:1fr 1fr}.announcement-actions form:last-child{grid-column:1/-1}.announcement-actions .btn,.announcement-actions form .btn{width:100%}.announcement-meta{display:grid;gap:5px}.announcement-meta span+span:before{display:none}}

/* Build 13.1.4 - Collapsible filters, date placeholders and dashboard ranges */
.filter-collapsible{border:1px solid #dce5f0;border-radius:14px;background:#fff;overflow:hidden;margin:0 0 18px;box-shadow:0 5px 16px rgba(16,42,76,.035)}
.filter-collapsible-toggle{width:100%;display:flex;align-items:center;gap:12px;padding:15px 17px;border:0;background:#fff;color:#163252;text-align:left;cursor:pointer;font:inherit}
.filter-collapsible-toggle:hover{background:#f8fbff}.filter-collapsible-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#edf4ff;color:#1553c6;flex:0 0 34px}
.filter-collapsible-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.filter-collapsible-copy{display:grid;gap:2px;min-width:0}.filter-collapsible-copy strong{font-size:.9rem}.filter-collapsible-copy small{font-size:.74rem;color:#718096;font-weight:500}
.filter-collapsible-chevron{margin-left:auto;width:22px;height:22px;transition:transform .18s ease}.filter-collapsible-chevron svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.filter-collapsible.is-open .filter-collapsible-chevron{transform:rotate(180deg)}
.filter-collapsible-body{display:none;padding:18px;border-top:1px solid #e5ebf3;background:#fbfdff}.filter-collapsible.is-open .filter-collapsible-body{display:block}
.filter-collapsible-body>form,.filter-collapsible-body>.filter-toolbar{margin:0!important}.filter-collapsible .panel{box-shadow:none!important;border:0!important;padding:0!important;margin:0!important;background:transparent!important}
.date-placeholder-wrap{position:relative;display:block}.date-placeholder-wrap input[type=date]{position:relative;z-index:1;background:transparent}.date-placeholder-wrap .date-placeholder-text{position:absolute;left:13px;top:50%;transform:translateY(-50%);z-index:0;color:#7d899a;pointer-events:none;font-size:.86rem}.date-placeholder-wrap.has-value .date-placeholder-text,.date-placeholder-wrap:focus-within .date-placeholder-text{display:none}
.dashboard-date-filter{position:relative;display:flex;justify-content:flex-end;margin:-2px 0 18px;z-index:45}
.dashboard-date-picker{position:relative}
.dashboard-date-picker>summary{list-style:none;display:flex;align-items:center;gap:9px;min-height:40px;padding:8px 12px;border:1px solid #c7d2e2;border-radius:10px;background:#fff;color:#102a49;font-weight:750;cursor:pointer;box-shadow:0 1px 2px rgba(15,35,65,.04)}
.dashboard-date-picker>summary::-webkit-details-marker{display:none}
.dashboard-date-picker>summary svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;flex:0 0 auto}
.dashboard-date-picker>summary .dashboard-date-chevron{width:15px;height:15px;margin-left:2px;transition:transform .18s ease}
.dashboard-date-picker[open]>summary{border-color:#0f50c8;box-shadow:0 0 0 2px rgba(15,80,200,.12)}
.dashboard-date-picker[open]>summary .dashboard-date-chevron{transform:rotate(180deg)}
.dashboard-date-current{white-space:nowrap;font-size:.85rem;letter-spacing:.01em}
.dashboard-date-popover{position:absolute;right:0;top:calc(100% + 7px);display:grid;grid-template-columns:190px;z-index:80;min-width:190px;border:1px solid #d7e0eb;border-radius:10px;background:#fff;box-shadow:0 18px 44px rgba(15,35,65,.18);overflow:hidden}
.dashboard-date-popover:has(.dashboard-custom-range.is-visible){grid-template-columns:190px minmax(330px,430px);min-width:540px}
.dashboard-date-presets{padding:7px;background:#fff;border-right:0}
.dashboard-date-popover:has(.dashboard-custom-range.is-visible) .dashboard-date-presets{border-right:1px solid #e2e8f0}
.dashboard-date-presets a,.dashboard-custom-toggle{display:block;width:100%;padding:9px 11px;border:0;border-radius:6px;background:transparent;color:#172b46;text-align:left;text-decoration:none;font:inherit;font-size:.82rem;cursor:pointer}
.dashboard-date-presets a:hover,.dashboard-custom-toggle:hover{background:#f1f6fc}
.dashboard-date-presets a.active,.dashboard-custom-toggle.active{background:#0796cf;color:#fff}
.dashboard-custom-range{display:flex;flex-direction:column;justify-content:space-between;gap:18px;padding:20px;background:#fbfdff}
.dashboard-custom-range:not(.is-visible){display:none}
.dashboard-custom-heading{display:flex;flex-direction:column;gap:4px}
.dashboard-custom-heading strong{font-size:1rem;color:#122b49}
.dashboard-custom-heading small{color:#6b7c93}
.dashboard-custom-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.dashboard-custom-fields label{display:grid;gap:6px;color:#38506e;font-size:.78rem;font-weight:700}
.dashboard-custom-fields input{width:100%;height:42px;border:1px solid #cdd8e6;border-radius:8px;background:#fff;padding:0 10px;color:#122b49}
.dashboard-custom-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:14px;border-top:1px solid #e3e9f1}
.dashboard-custom-actions .button{min-width:82px;justify-content:center}
@media(max-width:700px){.filter-collapsible-toggle{padding:13px}.filter-collapsible-body{padding:14px}.filter-collapsible-copy small{white-space:normal}.dashboard-date-filter{justify-content:stretch}.dashboard-date-picker,.dashboard-date-picker>summary{width:100%}.dashboard-date-popover,.dashboard-date-popover:has(.dashboard-custom-range.is-visible){position:fixed;left:12px;right:12px;top:94px;min-width:0;grid-template-columns:1fr;max-height:calc(100vh - 115px);overflow:auto}.dashboard-date-presets{border-right:0;border-bottom:1px solid #e2e8f0}.dashboard-custom-fields{grid-template-columns:1fr}}


/* Build 13.2.0 - responsive details, administration, announcements and evidence */
.roles-workspace{display:grid;grid-template-columns:minmax(300px,.8fr) minmax(0,1.6fr);gap:20px;align-items:start}.role-create-card,.roles-list-card{min-width:0}.role-create-card label{display:grid;gap:8px;margin-top:16px}.role-create-card .form-actions{margin-top:18px}.table-action-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.table-action-group form{margin:0}.audit-evidence-card{width:min(900px,calc(100vw - 30px))}.audit-evidence-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.audit-evidence-grid>div{min-width:0}.audit-evidence-grid pre{min-height:170px;max-height:420px;overflow:auto;padding:14px;border:1px solid #dce5f0;border-radius:12px;background:#f7f9fc;white-space:pre-wrap;word-break:break-word}.rich-editor-toolbar{display:flex;gap:6px;flex-wrap:wrap;padding:9px;border:1px solid #d7e1ed;border-bottom:0;border-radius:12px 12px 0 0;background:#f6f9fd}.rich-editor-toolbar button{min-height:34px;padding:6px 10px;background:#fff;color:#17314f;border:1px solid #d7e1ed;border-radius:8px}.rich-editor{min-height:180px;padding:15px;border:1px solid #d7e1ed;border-radius:0 0 12px 12px;background:#fff;line-height:1.6;outline:none}.rich-editor:empty:before{content:attr(data-placeholder);color:#8a96a8}.announcement-rich-content{line-height:1.6;color:#40516a}.announcement-rich-content p{margin:8px 0}.announcement-rich-content img{display:block;max-width:100%;height:auto;border-radius:12px;margin:12px 0}.announcement-rich-content ul,.announcement-rich-content ol{padding-left:22px}.dashboard-announcements{margin:0 0 22px;padding:20px;border:1px solid #dce5f0;border-radius:16px;background:#fff}.dashboard-announcements-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}.dashboard-announcements-head h2{margin:4px 0 0}.dashboard-announcement-list{display:grid;gap:12px}.dashboard-announcement-card{display:grid;grid-template-columns:auto minmax(0,1fr);gap:13px;padding:15px;border:1px solid #e1e8f1;border-radius:13px;background:#fbfdff}.dashboard-announcement-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#edf4ff;color:#1553c6}.dashboard-announcement-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.dashboard-announcement-card small{display:block;margin-top:8px;color:#718096}.mobile-row-more{display:none}.mobile-table-modal-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.date-placeholder-wrap input[type=date]{color:transparent}.date-placeholder-wrap.has-value input[type=date],.date-placeholder-wrap:focus-within input[type=date]{color:inherit}.date-placeholder-wrap input[type=date]::-webkit-datetime-edit{color:transparent}.date-placeholder-wrap.has-value input[type=date]::-webkit-datetime-edit,.date-placeholder-wrap:focus-within input[type=date]::-webkit-datetime-edit{color:inherit}
@media(max-width:900px){.roles-workspace{grid-template-columns:1fr}.audit-evidence-grid{grid-template-columns:1fr}}
@media(max-width:760px){.mobile-detail-table{overflow:visible!important}.mobile-detail-table table{display:block;width:100%}.mobile-detail-table thead{display:none}.mobile-detail-table tbody{display:grid;gap:10px}.mobile-detail-table tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;padding:14px;border:1px solid #dce5f0;border-radius:13px;background:#fff}.mobile-detail-table td{display:none!important;border:0!important;padding:0!important}.mobile-detail-table td:nth-child(1),.mobile-detail-table td:nth-child(2){display:block!important;min-width:0}.mobile-detail-table td:nth-child(1){font-weight:750}.mobile-detail-table td:nth-child(2){color:#64748b}.mobile-detail-table td:last-child{display:flex!important;grid-column:2;grid-row:1/3;align-items:center}.mobile-detail-table td:last-child>a,.mobile-detail-table td:last-child>form,.mobile-detail-table td:last-child>.table-action-group{display:none!important}.mobile-row-more{display:grid!important;width:38px;height:38px;border-radius:50%;place-items:center;padding:0;background:#1553c6;color:#fff;border:0;font-size:22px}.dashboard-announcements{padding:15px}.announcement-admin-grid{grid-template-columns:1fr!important}.announcement-filter-grid{grid-template-columns:1fr!important}}

/* Build 13.2.2 - executive income, universal date ranges and compact mobile expansion */
.dashboard-kpi-link{text-decoration:none;color:inherit}.kpi-income{border-left-color:#7c3aed!important}.kpi-income:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(40,35,90,.10)}
.universal-date-source{display:none!important}.universal-date-filter{display:grid;gap:6px;min-width:210px}.universal-date-filter>label{font-size:.78rem;font-weight:700;color:#38506e}.universal-date-filter details{position:relative}.universal-date-filter summary{list-style:none;display:flex;align-items:center;gap:8px;height:42px;padding:0 11px;border:1px solid #cdd8e6;border-radius:9px;background:#fff;color:#122b49;font-size:.84rem;font-weight:700;cursor:pointer}.universal-date-filter summary::-webkit-details-marker{display:none}.universal-date-filter summary svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.universal-date-filter summary span{flex:1;white-space:nowrap}.universal-date-filter summary .chev{width:14px}.universal-date-filter details[open] summary{border-color:#1553c6;box-shadow:0 0 0 2px rgba(21,83,198,.1)}.universal-date-popover{position:absolute;left:0;top:calc(100% + 6px);z-index:90;display:grid;grid-template-columns:190px;border:1px solid #d7e0eb;border-radius:10px;background:#fff;box-shadow:0 18px 44px rgba(15,35,65,.18);overflow:hidden}.universal-date-presets{padding:7px}.universal-date-presets button{display:block;width:100%;padding:8px 10px;border:0;border-radius:6px;background:transparent;text-align:left;font:inherit;font-size:.82rem;color:#172b46}.universal-date-presets button:hover{background:#f1f6fc}.universal-date-custom{display:none;width:310px;padding:14px;border-left:1px solid #e2e8f0;background:#fbfdff;grid-template-columns:1fr 1fr;gap:10px}.universal-date-custom.is-visible{display:grid}.universal-date-custom label{display:grid;gap:5px;font-size:.76rem;font-weight:700}.universal-date-custom>div{grid-column:1/-1;display:flex;justify-content:flex-end;gap:8px}.universal-date-popover:has(.universal-date-custom.is-visible){grid-template-columns:190px 310px}
.mobile-row-details{display:none}.mobile-row-more svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .18s}.mobile-row-expanded .mobile-row-more svg{transform:rotate(180deg)}
@media(max-width:760px){.mobile-detail-table tr{grid-template-columns:minmax(0,1fr) 30px!important;padding:12px!important;gap:3px 9px!important}.mobile-detail-table td:nth-child(1){font-size:.92rem}.mobile-detail-table td:nth-child(2){font-size:.78rem}.mobile-row-more{width:28px!important;height:28px!important;border-radius:8px!important;font-size:0!important}.mobile-row-details{grid-column:1/-1;display:none;padding-top:11px;margin-top:8px;border-top:1px solid #e5ebf3}.mobile-row-expanded .mobile-row-details{display:block}.mobile-row-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}.mobile-row-detail-grid>div{min-width:0;padding:9px;border-radius:9px;background:#f7f9fc}.mobile-row-detail-grid dt{font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;color:#718096}.mobile-row-detail-grid dd{margin:4px 0 0;font-size:.82rem;color:#17314f;overflow-wrap:anywhere}.mobile-row-actions{display:flex;gap:8px;flex-wrap:wrap;padding-top:12px}.mobile-row-actions>a,.mobile-row-actions>button,.mobile-row-actions>form{flex:1 1 120px}.mobile-row-actions .button,.mobile-row-actions button{width:100%;justify-content:center}.universal-date-filter{min-width:100%}.universal-date-popover,.universal-date-popover:has(.universal-date-custom.is-visible){position:fixed;left:12px;right:12px;top:90px;grid-template-columns:1fr;max-height:calc(100vh - 110px);overflow:auto}.universal-date-custom{width:auto;border-left:0;border-top:1px solid #e2e8f0;grid-template-columns:1fr}.universal-date-custom>div{grid-column:1}.universal-date-filter summary span{font-size:.8rem}}

/* Build 13.2.3: consistent list actions and filter controls */
.list-page-actions{display:flex;justify-content:flex-end;gap:10px;margin:0 0 14px;flex-wrap:wrap}
.filter-actions,.people-filter-actions,.payments-filter-actions,.announcement-filter-actions,.report-filter-actions,.collection-filter-actions{display:flex!important;justify-content:flex-end;align-items:center;gap:10px;grid-column:1/-1;width:100%;margin-top:8px}
.filter-actions .button,.filter-actions button,.people-filter-actions .button,.people-filter-actions button,.payments-filter-actions .button,.payments-filter-actions button,.announcement-filter-actions .btn,.announcement-filter-actions button,.report-filter-actions .button,.report-filter-actions button{min-width:112px}
@media(max-width:700px){.list-page-actions{justify-content:stretch}.list-page-actions .button{width:100%;text-align:center}.filter-actions,.people-filter-actions,.payments-filter-actions,.announcement-filter-actions,.report-filter-actions,.collection-filter-actions{display:grid!important;grid-template-columns:1fr 1fr}.filter-actions>* ,.people-filter-actions>* ,.payments-filter-actions>* ,.announcement-filter-actions>* ,.report-filter-actions>* ,.collection-filter-actions>*{width:100%;min-width:0}}


/* Build 13.2.4 - dashboard card, filters, mobile records and help routing */
.cards .kpi,.cards a.kpi{display:block;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:20px;position:relative;overflow:hidden}
.cards a.kpi:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#7c3aed}
.kpi-income{background:#fff!important}
.filter-collapsible.is-open{position:relative;z-index:120;overflow:visible}
.filter-collapsible.is-open .filter-collapsible-body{overflow:visible}
.universal-date-filter details[open]{z-index:150}
select{appearance:none;-webkit-appearance:none;padding-right:38px!important;background-image:linear-gradient(45deg,transparent 50%,#52627a 50%),linear-gradient(135deg,#52627a 50%,transparent 50%);background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.people-filter-actions .people-add{display:none!important}
@media(max-width:760px){
 .mobile-detail-table td{display:none!important}
 .mobile-detail-table td.mobile-primary-cell{display:block!important;min-width:0}
 .mobile-detail-table td.mobile-primary-cell:first-of-type{font-weight:800;color:#10213b}
 .mobile-detail-table td:last-child{display:flex!important;grid-column:2;grid-row:1/3;align-items:center;justify-content:center}
 .mobile-row-more{display:grid!important;width:32px!important;height:32px!important;min-height:32px!important;border-radius:9px!important;padding:0!important;font-size:20px!important;line-height:1!important;font-weight:500!important;background:#1553c6!important;color:#fff!important}
 .mobile-row-detail-grid{grid-template-columns:1fr!important}
 .mobile-row-detail-grid>div{display:grid;grid-template-columns:minmax(105px,.7fr) minmax(0,1fr);align-items:start;gap:10px}
 .mobile-row-detail-grid dt{margin:0}.mobile-row-detail-grid dd{margin:0!important;text-align:right}
 .mobile-row-actions{border-top:1px solid #e5ebf3;margin-top:12px;padding-top:12px}
 .user-chip-name{display:none}.user-chip{padding-right:6px}.avatar-sm{width:36px;height:36px;border-radius:10px}
}

/* Build 13.2.5: mobile records expand in place instead of opening overview modals. */
@media(max-width:760px){
 .mobile-detail-table tr{position:relative;grid-template-columns:minmax(0,1fr) 38px!important}
 .mobile-detail-table td.mobile-row-toggle-cell{display:flex!important;grid-column:2!important;grid-row:1/3!important;align-items:center!important;justify-content:center!important}
 .mobile-detail-table td:last-child:not(.mobile-row-toggle-cell){display:none!important}
 .mobile-detail-table td.mobile-primary-cell{display:block!important}
 .mobile-detail-table .mobile-row-more{width:34px!important;height:34px!important;min-height:34px!important;border-radius:10px!important;font-size:20px!important}
 .mobile-detail-table .mobile-row-details{grid-column:1/-1!important}
}

/* Build 13.2.6 - consistent typography and date filter parity */
:root{--body-text-size:14px;--support-text-size:12px}
body{font-size:var(--body-text-size)}
p,li,td,dd,.panel-copy,.muted,.kpi small,.card small,.section-toolbar p,.report-header p,.announcement-record-main>p{font-size:var(--body-text-size);line-height:1.5}
label,input,select,textarea,button,.button,.btn,table,summary{font-size:var(--body-text-size)}
small,.eyebrow,.nav-label,.badge,.meta,.helper-text,.form-help,.announcement-meta,.filter-collapsible-copy small{font-size:var(--support-text-size)}
input::placeholder,textarea::placeholder{font-size:var(--body-text-size)}
.universal-date-filter>label,.universal-date-custom label{font-size:var(--support-text-size)}
.universal-date-filter summary,.universal-date-presets button,.dashboard-date-presets a,.dashboard-custom-toggle{font-size:var(--body-text-size)}
.universal-date-filter{min-width:220px;max-width:100%}
.universal-date-filter summary span{min-width:0;overflow:hidden;text-overflow:ellipsis}
.payments-filter-fields>.universal-date-filter,.report-filter-grid>.universal-date-filter,.filter-grid>.universal-date-filter,.announcement-filter-grid>.universal-date-filter{align-self:end}
@media(max-width:760px){p,li,td,dd,label,input,select,textarea,button,.button,.btn,table,summary{font-size:14px}.muted,.kpi small,.card small,.section-toolbar p,.report-header p{font-size:13px}.universal-date-filter{width:100%;min-width:0}}

/* Build 13.2.7 - sticky workspace header and app-style mobile bottom navigation */
.workspace-bar{
  position:sticky;
  top:0;
  z-index:70;
  width:100%;
  backdrop-filter:saturate(150%) blur(10px);
  -webkit-backdrop-filter:saturate(150%) blur(10px);
  background:rgba(255,255,255,.96);
}
.mobile-bottom-nav{display:none}
@media(max-width:850px){
  body{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  .workspace-bar{position:sticky!important;top:0!important;z-index:70!important}
  .container{padding-bottom:calc(46px + env(safe-area-inset-bottom,0px))}
  .mobile-bottom-nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:90;
    min-height:64px;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));
    display:flex;
    align-items:stretch;
    justify-content:space-around;
    gap:3px;
    background:rgba(255,255,255,.98);
    border-top:1px solid #dce5f0;
    box-shadow:0 -8px 24px rgba(20,43,82,.10);
    backdrop-filter:saturate(160%) blur(14px);
    -webkit-backdrop-filter:saturate(160%) blur(14px);
  }
  .mobile-bottom-nav-item{
    min-width:0;
    flex:1 1 0;
    min-height:52px;
    padding:5px 3px 4px;
    border:0;
    border-radius:11px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    color:#6b7890;
    background:transparent;
    text-decoration:none;
    cursor:pointer;
    user-select:none;
    -webkit-tap-highlight-color:transparent;
  }
  .mobile-bottom-nav-item .ui-icon{
    width:27px;
    height:27px;
    flex:0 0 27px;
    padding:4px;
    border-radius:9px;
  }
  .mobile-bottom-nav-item .ui-icon svg{width:19px;height:19px}
  .mobile-bottom-nav-item span:not(.ui-icon){
    max-width:100%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:10px;
    line-height:1.1;
    font-weight:750;
  }
  .mobile-bottom-nav-item.active{color:var(--blue)}
  .mobile-bottom-nav-item.active .ui-icon{background:var(--blue-soft);color:var(--blue)}
  .mobile-bottom-nav-item:active{background:#f0f4fa;transform:translateY(1px)}
  .menu-button{display:none!important}
  .nav-toggle:checked~.app-shell .mobile-bottom-nav{visibility:hidden}
  .sidebar{z-index:100}
  .nav-toggle:checked~.app-shell .nav-backdrop{z-index:95}
}
@media(max-width:390px){
  .mobile-bottom-nav{padding-inline:4px;gap:0}
  .mobile-bottom-nav-item span:not(.ui-icon){font-size:9px}
}
@media print{.mobile-bottom-nav{display:none!important}body{padding-bottom:0!important}}

/* Build 13.2.8 - mobile global search, elevated quick actions and rounded app menu */
.mobile-quick-actions{display:none}
@media(max-width:850px){
  .workspace-bar{gap:8px;padding:0 10px!important}
  .workspace-bar .top-search{
    display:flex!important;
    min-width:0;
    width:auto;
    flex:1 1 auto;
    height:42px;
    padding:0 12px;
    border-radius:14px;
  }
  .workspace-bar .top-search input{font-size:14px!important}
  .workspace-bar .top-search input::placeholder{font-size:13px}
  .desktop-collapse,.menu-button,.desktop-new-action,.workspace-bar .top-actions>a.top-action{display:none!important}
  .top-actions{flex:0 0 auto;margin-left:0;gap:5px}
  .notification-trigger,.user-chip{width:40px;height:40px;border-radius:12px;padding:4px;justify-content:center}
  .workspace-bar .notification-menu{display:none}
  .account-menu{display:block}
  .avatar-sm{width:32px;height:32px;border-radius:10px}

  .mobile-bottom-nav{
    min-height:72px;
    padding:7px 10px calc(7px + env(safe-area-inset-bottom,0px));
    gap:6px;
    overflow:visible;
  }
  .mobile-bottom-nav-item{
    min-height:54px;
    border-radius:16px;
  }
  .mobile-bottom-nav-item .ui-icon{
    border-radius:50%;
    width:31px;
    height:31px;
    flex-basis:31px;
    padding:6px;
  }
  .mobile-bottom-nav-item.active .ui-icon{box-shadow:0 4px 12px rgba(11,73,199,.16)}

  .mobile-quick-actions{
    position:relative;
    display:block;
    flex:0 0 66px;
    width:66px;
    height:58px;
    align-self:flex-start;
  }
  .mobile-quick-actions>summary{
    list-style:none;
    position:absolute;
    left:50%;
    top:-24px;
    transform:translateX(-50%);
    width:62px;
    height:62px;
    display:grid;
    place-items:center;
    border:6px solid #fff;
    border-radius:50%;
    background:var(--blue);
    color:#fff;
    box-shadow:0 10px 24px rgba(11,73,199,.34);
    cursor:pointer;
    z-index:93;
  }
  .mobile-quick-actions>summary::-webkit-details-marker{display:none}
  .mobile-quick-actions>summary .ui-icon{width:28px;height:28px;border:0;background:transparent;padding:0}
  .mobile-quick-actions>summary .ui-icon svg{width:25px;height:25px;stroke-width:2}
  .mobile-quick-actions[open]>summary{transform:translateX(-50%) rotate(45deg);background:#17325e}
  .mobile-quick-actions-menu{
    position:fixed;
    left:12px;
    right:12px;
    bottom:calc(82px + env(safe-area-inset-bottom,0px));
    z-index:92;
    padding:16px;
    border:1px solid #dbe4ef;
    border-radius:24px;
    background:#fff;
    box-shadow:0 22px 55px rgba(15,34,66,.24);
  }
  .mobile-quick-actions-head{display:grid;gap:3px;margin-bottom:13px;padding:0 2px}
  .mobile-quick-actions-head strong{font-size:17px}
  .mobile-quick-actions-head small{color:var(--muted);font-size:12px}
  .mobile-quick-actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
  .mobile-quick-actions-grid a{
    min-width:0;
    display:grid;
    grid-template-columns:42px minmax(0,1fr);
    align-items:center;
    gap:10px;
    padding:12px;
    border:1px solid #e0e7f1;
    border-radius:17px;
    background:#f8fafe;
    color:var(--ink);
    text-decoration:none;
  }
  .mobile-quick-actions-grid a .ui-icon{width:42px;height:42px;border-radius:50%;background:#e8f0ff;color:var(--blue);padding:10px}
  .mobile-quick-actions-grid a span{display:grid;gap:2px;min-width:0}
  .mobile-quick-actions-grid a strong{font-size:13px;line-height:1.2}
  .mobile-quick-actions-grid a small{font-size:10px;line-height:1.3;color:var(--muted)}

  .sidebar{
    width:calc(100vw - 18px)!important;
    max-width:430px;
    border-radius:0 24px 24px 0;
    overflow:hidden;
    box-shadow:18px 0 48px rgba(10,31,65,.24);
  }
  .brand-block{border-radius:0 24px 0 0}
  .side-nav{padding:16px 12px calc(28px + env(safe-area-inset-bottom,0px))}
  .nav-item{min-height:48px;border-radius:15px;padding:10px 13px}
  .sidebar-close{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#f0f4fa;font-size:22px}
}
@media(max-width:390px){
  .workspace-bar .top-search input::placeholder{font-size:0}
  .workspace-bar .top-search input::placeholder{color:transparent}
  .mobile-quick-actions-grid{grid-template-columns:1fr}
  .mobile-bottom-nav{padding-inline:6px;gap:2px}
}

/* Build 13.2.9 - mobile app polish, report picker and payment defaults */
.report-mobile-menu{display:none}
@media(max-width:850px){
  body{background:#f4f7fb}
  .workspace{min-width:0}
  .container{padding:14px 12px calc(96px + env(safe-area-inset-bottom,0px))!important}
  .breadcrumbs{margin:0 2px 10px;overflow:auto;white-space:nowrap;scrollbar-width:none}
  .breadcrumbs::-webkit-scrollbar{display:none}
  .page-head{margin:0 2px 14px;gap:10px}
  .page-head h1{font-size:1.45rem;line-height:1.15}
  .page-head p{margin-top:5px;line-height:1.45}
  .panel,.card,.welcome-card,.report-summary-card{border-radius:18px!important}
  .panel{padding:16px!important}
  .section-toolbar{align-items:flex-start;gap:12px;flex-wrap:wrap}
  .section-toolbar .button,.section-toolbar button{min-height:42px}
  input,select,textarea,.button,button{min-height:44px}
  form label{line-height:1.35}
  .filter-actions,.report-filter-actions,.payments-filter-actions{gap:9px!important}
  .filter-actions .button,.filter-actions button,.report-filter-actions .button,.report-filter-actions button,.payments-filter-actions .button,.payments-filter-actions button{flex:1 1 130px;min-width:0!important}
  .workspace-bar{min-height:58px;border-bottom:1px solid #e1e8f2;box-shadow:0 5px 18px rgba(28,48,82,.06)}
  .workspace-bar .top-search{background:#f1f5fa;border-color:#dbe4ef}
  .workspace-bar .top-search:focus-within{background:#fff;box-shadow:0 0 0 3px rgba(11,73,199,.10)}
  .mobile-bottom-nav{border:1px solid #dfe7f1;border-bottom:0;border-radius:22px 22px 0 0;box-shadow:0 -10px 30px rgba(20,43,82,.13)}
  .mobile-bottom-nav-item{gap:4px}
  .mobile-bottom-nav-item .ui-icon{background:#f2f5fa}
  .mobile-bottom-nav-item.active{background:#f7faff}
  .mobile-bottom-nav-more{margin-left:auto}
  .mobile-quick-actions-menu{max-height:min(68vh,560px);overflow:auto;overscroll-behavior:contain}
  .sidebar{left:9px!important;top:9px!important;bottom:9px!important;height:auto!important;width:calc(100vw - 18px)!important;border-radius:24px!important}
  .brand-block{border-radius:24px 24px 0 0!important}
  .side-nav{display:grid;grid-template-columns:1fr 1fr;align-content:start;gap:12px;padding:14px 12px calc(24px + env(safe-area-inset-bottom,0px))!important}
  .side-nav .nav-group{min-width:0;margin:0;padding:10px;border:1px solid #e1e8f2;border-radius:18px;background:#fff}
  .side-nav .nav-help-group{grid-column:1/-1}
  .nav-label{padding:4px 7px 8px}
  .nav-item{min-height:44px!important;padding:9px 10px!important;border-radius:13px!important;gap:9px}
  .nav-item .ui-icon{width:30px;height:30px;flex:0 0 30px;border-radius:10px;background:#f1f5fa;padding:6px}
  .nav-item span:last-child{font-size:12px;line-height:1.2}

  .report-menu-desktop{display:none!important}
  .report-mobile-menu{display:block!important;padding:0!important;overflow:visible!important;border-radius:20px!important;position:relative;z-index:4}
  .report-mobile-menu>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px;cursor:pointer}
  .report-mobile-menu>summary::-webkit-details-marker{display:none}
  .report-mobile-menu>summary>span:first-child{display:flex;align-items:center;gap:11px;min-width:0}
  .report-mobile-menu>summary .ui-icon{width:40px;height:40px;flex:0 0 40px;padding:9px;border-radius:13px;background:#eaf2ff;color:var(--blue)}
  .report-mobile-menu>summary span span{display:grid;gap:2px;min-width:0}
  .report-mobile-menu>summary strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .report-mobile-menu>summary small{font-size:11px;color:var(--muted)}
  .report-mobile-chevron{font-size:22px;color:var(--muted);transition:transform .2s ease}
  .report-mobile-menu[open] .report-mobile-chevron{transform:rotate(180deg)}
  .report-mobile-menu-body{padding:0 13px 15px;display:grid;gap:14px;max-height:62vh;overflow:auto;overscroll-behavior:contain}
  .report-mobile-group{display:grid;gap:8px}
  .report-mobile-group h3{margin:0;padding:0 3px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#68758b}
  .report-mobile-links{display:grid;grid-template-columns:1fr 1fr;gap:8px}
  .report-mobile-links a{display:flex;align-items:center;gap:8px;min-width:0;padding:10px;border:1px solid #e1e8f2;border-radius:14px;background:#f8fafe;color:var(--ink);text-decoration:none;font-size:12px;font-weight:700;line-height:1.25}
  .report-mobile-links a .ui-icon{width:30px;height:30px;flex:0 0 30px;padding:7px;border-radius:10px;background:#fff;color:#55708f}
  .report-mobile-links a span{min-width:0;overflow:hidden;text-overflow:ellipsis}
  .report-mobile-links a.active{border-color:#b8cdf8;background:#eaf2ff;color:var(--blue)}
  .report-shell{gap:13px!important}
  .report-workspace{gap:13px}
  .report-header{display:grid!important;padding:17px!important}
  .report-header-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%}
  .report-header-actions>*{width:100%;text-align:center}
  .report-filter-grid{grid-template-columns:1fr!important}
  .report-summary-grid{grid-template-columns:1fr 1fr!important;gap:9px}
  .report-summary-card{padding:14px!important}
  .report-summary-card strong{font-size:1.12rem!important;overflow-wrap:anywhere}
}
@media(max-width:420px){
  .side-nav{grid-template-columns:1fr}
  .side-nav .nav-help-group{grid-column:auto}
  .report-mobile-links{grid-template-columns:1fr}
  .report-summary-grid{grid-template-columns:1fr!important}
  .report-header-actions{grid-template-columns:1fr}
}

/* Build 13.2.11 - reliable fixed top bar, circular avatars and balanced mobile task navigation */
.workspace-bar{
  position:fixed!important;
  top:0;
  left:256px;
  right:0;
  width:auto!important;
  z-index:120!important;
}
.workspace{padding-top:74px}
.avatar-sm,.avatar-sm img,.profile-card-avatar,.profile-card-avatar img,.avatar-xl,.avatar-xl img{
  border-radius:50%!important;
}
.avatar-sm{
  flex:0 0 32px;
  aspect-ratio:1/1;
  line-height:1;
  font-family:Arial,"Segoe UI",sans-serif;
}
.avatar-sm img{display:block}
@media(max-width:850px){
  .workspace-bar{
    left:0!important;
    right:0!important;
    top:0!important;
    height:58px!important;
    min-height:58px!important;
  }
  .workspace{padding-top:58px!important}
  .mobile-bottom-nav{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr));
    align-items:end!important;
    justify-content:stretch!important;
    column-gap:2px!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }
  .mobile-bottom-nav-item{
    width:100%;
    min-width:0!important;
    margin:0!important;
    justify-self:stretch;
  }
  .mobile-bottom-nav-more{margin:0!important}
  .mobile-quick-actions{
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    flex:none!important;
    justify-self:stretch;
  }
  .mobile-quick-actions>summary{top:-25px}
  .avatar-sm{
    width:34px!important;
    height:34px!important;
    flex-basis:34px!important;
    border-radius:50%!important;
  }
  .user-chip{border-radius:999px!important}
}
@media(max-width:390px){
  .mobile-bottom-nav{padding-left:4px!important;padding-right:4px!important;column-gap:0!important}
  .mobile-bottom-nav-item span:not(.ui-icon){font-size:8.5px!important}
}
body.sidebar-is-collapsed .workspace-bar{left:82px}
@media(max-width:850px){body.sidebar-is-collapsed .workspace-bar{left:0!important}}


/* Build 14.0.0 - mobile-first application UI refresh */
:root{
  --app-space-1:4px;
  --app-space-2:8px;
  --app-space-3:12px;
  --app-space-4:16px;
  --app-space-5:20px;
  --app-space-6:24px;
  --app-radius-sm:12px;
  --app-radius-md:16px;
  --app-radius-lg:22px;
  --app-surface:#ffffff;
  --app-surface-soft:#f6f8fb;
  --app-divider:#e7ebf1;
  --app-nav-height:76px;
}
/* Desktop navigation remains fixed and visible throughout long workflows. */
.workspace-bar{
  position:fixed!important;
  top:0!important;
  left:256px;
  right:0;
  z-index:300!important;
  min-height:74px;
  background:rgba(255,255,255,.98)!important;
  border-bottom:1px solid var(--app-divider);
  box-shadow:0 4px 18px rgba(15,35,65,.06);
}
.workspace{padding-top:74px!important}
body.sidebar-is-collapsed .workspace-bar{left:82px}

@media(max-width:850px){
  html,body{max-width:100%;overflow-x:hidden}
  body{
    background:#fff!important;
    padding-bottom:calc(var(--app-nav-height) + env(safe-area-inset-bottom,0px))!important;
  }
  .app-shell,.workspace{min-width:0;width:100%}
  .workspace{padding-top:64px!important}
  .workspace-bar{
    left:0!important;
    right:0!important;
    height:64px!important;
    min-height:64px!important;
    padding:9px 12px!important;
    gap:9px!important;
    background:#fff!important;
    box-shadow:0 1px 0 var(--app-divider)!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .desktop-collapse,.workspace-bar .menu-button{display:none!important}
  .workspace-bar .top-search{
    order:1;
    flex:1 1 auto;
    width:auto!important;
    min-width:0;
    height:46px!important;
    margin:0!important;
    padding:0 13px!important;
    border:0!important;
    border-radius:999px!important;
    background:#f1f3f5!important;
    box-shadow:none!important;
  }
  .workspace-bar .top-search .ui-icon{width:22px;height:22px;color:#4b5563}
  .workspace-bar .top-search input{
    min-width:0;
    height:44px!important;
    padding:0 4px!important;
    font-size:14px!important;
    background:transparent!important;
  }
  .workspace-bar .top-search input::placeholder{font-size:14px!important;color:#77808d!important}
  .top-actions{order:2;gap:6px!important;flex:0 0 auto}
  .desktop-new-action,.top-actions>a.top-action[title^="Help"]{display:none!important}
  .notification-trigger{width:42px!important;height:42px!important;border:0!important;background:transparent!important}
  .notification-trigger .ui-icon{width:25px!important;height:25px!important;background:transparent!important;padding:0!important}
  .user-chip{
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  .user-chip-name,.user-chip .chevron{display:none!important}
  .avatar-sm{width:38px!important;height:38px!important;flex:0 0 38px!important;border:2px solid #dce5f4!important;background:#eaf1ff!important}
  .account-dropdown,.notification-dropdown{position:fixed!important;left:12px!important;right:12px!important;top:66px!important;width:auto!important;max-height:calc(100vh - 92px)!important;border-radius:20px!important}

  .container{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:16px 14px calc(100px + env(safe-area-inset-bottom,0px))!important;
  }
  .breadcrumbs{display:none!important}
  .page-head{margin:0 2px 18px!important;padding:0!important}
  .page-head h1{font-size:25px!important;letter-spacing:-.02em}
  .page-head p{font-size:14px!important;color:#697386!important}
  .panel,.card,.welcome-card,.report-summary-card,.filter-collapsible{
    border:1px solid var(--app-divider)!important;
    border-radius:var(--app-radius-lg)!important;
    background:#fff!important;
    box-shadow:none!important;
  }
  .panel{padding:16px!important}
  .cards,.dashboard-mini-grid,.summary-grid{gap:12px!important}
  .button,.btn,button,input,select,textarea{min-height:46px}
  .button,.btn{border-radius:13px!important;padding-inline:16px!important}
  input,select,textarea{border-radius:13px!important}
  .section-toolbar,.list-page-actions{gap:10px!important;margin-bottom:14px!important}
  .list-page-actions>.button,.list-page-actions>.btn{width:100%;justify-content:center;text-align:center}

  /* Native-app style bottom navigation inspired by familiar mobile patterns. */
  .mobile-bottom-nav{
    display:grid!important;
    grid-template-columns:repeat(5,minmax(0,1fr))!important;
    align-items:center!important;
    position:fixed!important;
    left:0!important;
    right:0!important;
    bottom:0!important;
    z-index:350!important;
    height:calc(var(--app-nav-height) + env(safe-area-inset-bottom,0px))!important;
    min-height:var(--app-nav-height)!important;
    padding:7px 4px calc(7px + env(safe-area-inset-bottom,0px))!important;
    border:0!important;
    border-top:1px solid var(--app-divider)!important;
    border-radius:0!important;
    background:rgba(255,255,255,.99)!important;
    box-shadow:0 -5px 18px rgba(22,35,56,.06)!important;
  }
  .mobile-bottom-nav-item{
    width:100%!important;
    min-width:0!important;
    min-height:58px!important;
    margin:0!important;
    padding:4px 2px!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:3px!important;
    border-radius:14px!important;
    color:#353b45!important;
    font-weight:600!important;
    text-decoration:none!important;
    background:transparent!important;
  }
  .mobile-bottom-nav-item .ui-icon{
    width:34px!important;
    height:30px!important;
    padding:4px!important;
    border-radius:14px!important;
    background:transparent!important;
    color:#303640!important;
  }
  .mobile-bottom-nav-item .ui-icon svg{width:24px!important;height:24px!important;stroke-width:1.85!important}
  .mobile-bottom-nav-item span:not(.ui-icon){font-size:10.5px!important;line-height:1.1!important;white-space:nowrap}
  .mobile-bottom-nav-item.active{color:var(--blue)!important;background:transparent!important}
  .mobile-bottom-nav-item.active .ui-icon{background:#e7f0ff!important;color:var(--blue)!important}
  .mobile-bottom-nav-more{margin:0!important}

  .mobile-quick-actions{display:block!important;position:relative!important;width:100%!important;height:100%!important;margin:0!important}
  .mobile-quick-actions>summary{
    position:absolute!important;
    left:50%!important;
    top:4px!important;
    width:48px!important;
    height:48px!important;
    min-height:48px!important;
    transform:translateX(-50%)!important;
    border:3px solid #fff!important;
    border-radius:50%!important;
    background:var(--blue)!important;
    color:#fff!important;
    box-shadow:0 7px 18px rgba(11,73,199,.28)!important;
  }
  .mobile-quick-actions>summary .ui-icon{width:22px!important;height:22px!important;padding:0!important;background:transparent!important}
  .mobile-quick-actions>summary .ui-icon svg{width:22px!important;height:22px!important;stroke-width:2!important}
  .mobile-quick-actions[open]>summary{transform:translateX(-50%) rotate(45deg)!important;background:#17325e!important}
  .mobile-quick-actions:after{content:"Add";position:absolute;left:0;right:0;top:53px;text-align:center;font-size:10.5px;font-weight:600;color:#353b45;pointer-events:none}
  .mobile-quick-actions-menu{
    left:10px!important;
    right:10px!important;
    bottom:calc(var(--app-nav-height) + 8px + env(safe-area-inset-bottom,0px))!important;
    max-height:70vh!important;
    padding:20px 16px 16px!important;
    border:1px solid var(--app-divider)!important;
    border-radius:26px!important;
    box-shadow:0 24px 60px rgba(13,31,61,.24)!important;
  }
  .mobile-quick-actions-grid{grid-template-columns:1fr!important;gap:8px!important}
  .mobile-quick-actions-grid a{min-height:62px;border:0!important;border-radius:17px!important;background:#f6f8fb!important}

  /* Full-screen application menu, shaped like a native settings screen. */
  .sidebar{
    position:fixed!important;
    inset:0!important;
    width:100vw!important;
    max-width:none!important;
    height:100dvh!important;
    border:0!important;
    border-radius:0!important;
    background:#fff!important;
    box-shadow:none!important;
    overflow:hidden!important;
  }
  .brand-block{
    position:sticky!important;
    top:0!important;
    z-index:4!important;
    min-height:72px!important;
    padding:12px 16px!important;
    border-radius:0!important;
    border-bottom:1px solid var(--app-divider)!important;
    background:#fff!important;
  }
  .brand-mark{width:44px!important;height:44px!important;border-radius:50%!important}
  .brand-copy strong{font-size:17px!important}
  .brand-copy span{font-size:11px!important}
  .sidebar-close{width:42px!important;height:42px!important;border-radius:50%!important;background:#f1f3f5!important;color:#1f2937!important}
  .side-nav{
    display:block!important;
    height:calc(100dvh - 72px)!important;
    padding:10px 16px calc(26px + env(safe-area-inset-bottom,0px))!important;
    overflow-y:auto!important;
    background:#fff!important;
  }
  .side-nav .nav-group{
    display:block!important;
    margin:0!important;
    padding:8px 0!important;
    border:0!important;
    border-bottom:1px solid var(--app-divider)!important;
    border-radius:0!important;
    background:transparent!important;
  }
  .side-nav .nav-group:last-child{border-bottom:0!important}
  .nav-label{padding:8px 6px 6px!important;font-size:10px!important;color:#8a94a3!important}
  .nav-item{
    min-height:62px!important;
    margin:0!important;
    padding:9px 6px!important;
    border-radius:14px!important;
    gap:15px!important;
    background:transparent!important;
  }
  .nav-item .ui-icon{
    width:44px!important;
    height:44px!important;
    flex:0 0 44px!important;
    padding:10px!important;
    border-radius:50%!important;
    background:#f1f3f5!important;
    color:#5d6672!important;
  }
  .nav-item span:last-child{font-size:16px!important;font-weight:500!important;color:#18202a!important}
  .nav-item.active{background:#eef4ff!important}
  .nav-item.active .ui-icon{background:#dfeaff!important;color:var(--blue)!important}

  /* Lists and tables should read as app records, not compressed desktop grids. */
  .table-wrap,.responsive-table-wrap{border-radius:18px!important;overflow:hidden!important}
  table.mobile-table-cards tbody tr{border-radius:16px!important;margin-bottom:10px!important;background:#fff!important}
  .mobile-row-more{width:38px!important;height:38px!important;border-radius:50%!important;font-size:20px!important}
  .mobile-row-details{padding:12px 2px 2px!important}
  .mobile-row-detail-grid{gap:10px!important}
  .mobile-row-actions{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-top:14px!important}
  .mobile-row-actions .button,.mobile-row-actions .btn,.mobile-row-actions a,.mobile-row-actions button{width:100%!important;justify-content:center!important}

  .filter-collapsible-toggle{min-height:62px!important;padding:12px 14px!important;border-radius:18px!important}
  .filter-collapsible-body{padding:14px!important}
  .universal-date-filter summary{min-height:46px!important}
}
@media(max-width:390px){
  .container{padding-left:12px!important;padding-right:12px!important}
  .workspace-bar{padding-left:9px!important;padding-right:9px!important}
  .notification-trigger{width:38px!important;height:38px!important}
  .user-chip{width:38px!important;min-width:38px!important;height:38px!important}
  .avatar-sm{width:36px!important;height:36px!important;flex-basis:36px!important}
  .mobile-bottom-nav-item span:not(.ui-icon){font-size:9.5px!important}
}
@media print{
  .mobile-bottom-nav{display:none!important}
  .workspace{padding-top:0!important}
  .workspace-bar{position:static!important}
}

/* Build 14.0.1 - mobile visual corrections */
@media(max-width:850px){
  /* Keep the dashboard welcome area blue; generic mobile card rules must not override it. */
  .dashboard-hero.welcome-card{
    background:linear-gradient(135deg,#0c49c4 0%,#063aa1 100%)!important;
    color:#fff!important;
    border:0!important;
    box-shadow:none!important;
  }
  .dashboard-hero.welcome-card .eyebrow{color:#c8d9ff!important}
  .dashboard-hero.welcome-card h2{color:#fff!important}
  .dashboard-hero.welcome-card p{color:rgba(255,255,255,.82)!important}
  .dashboard-hero.welcome-card .button{background:#fff!important;color:var(--blue)!important;border-color:#fff!important}
  .dashboard-hero.welcome-card .button.secondary{background:rgba(255,255,255,.15)!important;color:#fff!important;border-color:rgba(255,255,255,.34)!important}

  /* The full-screen menu must sit above the sticky workspace bar. */
  .nav-toggle:checked~.app-shell .sidebar{z-index:1000!important}
  .nav-toggle:checked~.app-shell .nav-backdrop{z-index:990!important}
  .brand-block{
    min-height:62px!important;
    height:62px!important;
    padding:8px 14px!important;
    gap:10px!important;
  }
  .brand-mark{width:40px!important;height:40px!important;flex:0 0 40px!important}
  .brand-copy{min-width:0!important}
  .brand-copy strong{font-size:15px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .brand-copy span{margin-top:2px!important}
  .sidebar-close{width:38px!important;height:38px!important;min-height:38px!important;flex:0 0 38px!important;font-size:24px!important;line-height:1!important}
  .side-nav{height:calc(100dvh - 62px)!important;padding-top:7px!important}

  /* Remove the doubled/touching outlines from generated mobile table cards. */
  .table-wrap,.responsive-table-wrap,.mobile-detail-table{
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
    background:transparent!important;
    overflow:visible!important;
  }
  table.mobile-table-cards,
  .mobile-detail-table table{
    border:0!important;
    outline:0!important;
    box-shadow:none!important;
    background:transparent!important;
    border-collapse:separate!important;
    border-spacing:0 10px!important;
  }
  table.mobile-table-cards tbody,
  .mobile-detail-table tbody{gap:10px!important}
  table.mobile-table-cards tbody tr,
  .mobile-detail-table tr{
    margin:0!important;
    border:1px solid #dce5f0!important;
    outline:0!important;
    box-shadow:none!important;
    border-radius:16px!important;
    overflow:hidden!important;
  }
  table.mobile-table-cards td,
  .mobile-detail-table td{border:0!important;box-shadow:none!important}
  .mobile-row-details{border-top:1px solid #e7edf5!important}
  .mobile-row-detail-grid>div{border:0!important;box-shadow:none!important}

  /* Mobile report library: show the complete permission-visible catalogue. */
  .report-mobile-menu{overflow:hidden!important;z-index:120!important}
  .report-mobile-menu>summary{min-height:70px!important;padding:13px 15px!important}
  .report-mobile-chevron{
    width:42px!important;
    height:42px!important;
    flex:0 0 42px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:50%!important;
    background:#eef3f9!important;
    color:#34445c!important;
    transition:transform .2s ease!important;
  }
  .report-mobile-chevron svg{width:27px!important;height:27px!important;fill:none!important;stroke:currentColor!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important}
  .report-mobile-menu[open] .report-mobile-chevron{transform:rotate(180deg)!important;background:#e4edff!important;color:var(--blue)!important}
  .report-mobile-menu-body{
    display:block!important;
    max-height:calc(100dvh - 176px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    padding:2px 13px 18px!important;
    overscroll-behavior:contain!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .report-mobile-group{display:block!important;margin:13px 0 18px!important}
  .report-mobile-group h3{margin:0 0 8px!important}
  .report-mobile-links{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  .report-mobile-links a{min-height:54px!important;padding:10px 12px!important;border-radius:15px!important}
}

/* Build 14.0.2 - mobile search, circular quick action and contextual top actions */
@media(max-width:850px){
  /* Notifications and contextual Help are essential mobile actions. */
  .workspace-bar .notification-menu{display:block!important;position:relative!important}
  .workspace-bar .top-actions>a.top-action[title^="Help"]{
    display:grid!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    padding:0!important;
    border:0!important;
    border-radius:50%!important;
    background:#f1f4f8!important;
    color:#34445c!important;
  }
  .workspace-bar .top-actions>a.top-action[title^="Help"] .ui-icon{
    width:22px!important;height:22px!important;padding:0!important;border:0!important;background:transparent!important
  }
  .notification-trigger{
    width:38px!important;height:38px!important;min-width:38px!important;border-radius:50%!important;background:#f1f4f8!important
  }
  .notification-trigger .ui-icon{width:22px!important;height:22px!important}
  .top-actions{gap:4px!important}
  .workspace-bar .top-search{min-width:0!important}
  .workspace-bar .top-search input{font-size:13px!important}
  .workspace-bar .top-search input::placeholder{font-size:12px!important}
  .user-chip{width:38px!important;min-width:38px!important;height:38px!important}
  .avatar-sm{width:36px!important;height:36px!important;flex-basis:36px!important}
  .notification-dropdown{top:64px!important}

  /* True circular centre quick-action control. */
  .mobile-quick-actions>summary{
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    min-height:52px!important;
    aspect-ratio:1/1!important;
    border-radius:50%!important;
    overflow:hidden!important;
    padding:0!important;
  }
  .mobile-quick-actions>summary .ui-icon{
    width:52px!important;
    height:52px!important;
    min-width:52px!important;
    min-height:52px!important;
    padding:13px!important;
    border-radius:50%!important;
  }

  /* Search page: compact native-app form rather than oversized stacked buttons. */
  .search-workspace{display:grid!important;gap:16px!important}
  .global-search-form{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:10px!important;
    padding:14px!important;
    border-radius:20px!important;
  }
  .global-search-control{grid-column:1/-1!important;display:flex!important;align-items:center!important;position:relative!important}
  .global-search-control input{
    width:100%!important;
    min-height:50px!important;
    padding:0 44px 0 42px!important;
    border-radius:16px!important;
    font-size:16px!important;
  }
  .global-search-icon{position:absolute!important;left:14px!important;z-index:2!important;font-size:20px!important;color:#52627a!important}
  .global-search-clear{
    position:absolute!important;right:12px!important;top:50%!important;transform:translateY(-50%)!important;
    width:30px!important;height:30px!important;border-radius:50%!important;display:grid!important;place-items:center!important;
    text-decoration:none!important;background:#eef2f7!important;color:#42526a!important;font-size:20px!important;line-height:1!important
  }
  .global-search-submit{
    grid-column:1/-1!important;
    width:100%!important;
    min-height:46px!important;
    border-radius:14px!important;
    justify-content:center!important;
  }
  .global-search-hints{
    grid-column:1/-1!important;
    display:flex!important;
    align-items:center!important;
    gap:7px!important;
    flex-wrap:wrap!important;
    margin:0!important;
    padding:2px 0 0!important;
  }
  .global-search-hints>span{width:100%!important;font-size:12px!important;color:#6b7890!important;font-weight:700!important}
  .global-search-hints button{
    width:auto!important;
    min-height:34px!important;
    height:34px!important;
    margin:0!important;
    padding:0 12px!important;
    border:1px solid #d8e1ee!important;
    border-radius:999px!important;
    background:#f7f9fc!important;
    color:#35445b!important;
    box-shadow:none!important;
    font-size:12px!important;
    font-weight:700!important;
    line-height:1!important;
  }
  .global-search-hints button:active{background:#eaf1ff!important;color:var(--blue)!important;border-color:#bdd0f5!important}
  .search-summary-row{display:grid!important;gap:5px!important;padding:0 2px!important}
  .search-summary-badges{display:flex!important;gap:6px!important;flex-wrap:wrap!important}
  .search-result-section{padding:15px!important}
}
@media(max-width:430px){
  .workspace-bar{gap:6px!important;padding-inline:8px!important}
  .workspace-bar .top-search{height:42px!important;padding-inline:10px!important}
  .workspace-bar .top-search .ui-icon{width:19px!important;height:19px!important}
  .workspace-bar .top-search input::placeholder{font-size:0!important}
  .workspace-bar .top-search input::placeholder{color:transparent!important}
  .workspace-bar .top-actions>a.top-action[title^="Help"],
  .notification-trigger,.user-chip{width:36px!important;min-width:36px!important;height:36px!important}
  .avatar-sm{width:34px!important;height:34px!important;flex-basis:34px!important}
}

/* Build 14.0.3: enterprise visual polish and mobile geometry corrections. */
:root{--ui-border:#cbd6e5;--ui-border-strong:#b8c6d9;--ui-surface:#ffffff;--ui-surface-soft:#f4f7fb;--ui-shadow:0 10px 28px rgba(18,45,82,.08)}
.panel,.card,.filter-collapsible,.report-summary-card{border-color:var(--ui-border)!important;box-shadow:var(--ui-shadow)}
.workspace-bar{background:#fff!important;border-bottom:1px solid #cfd9e7!important;box-shadow:0 3px 14px rgba(20,43,82,.08)!important}
.workspace-bar .top-search,.workspace-bar .top-action,.workspace-bar .user-chip{background:#eef3f8!important;border-color:#d8e1ec!important}

/* Every compact expand/add icon is a true circle. */
.mobile-row-more,.mobile-row-toggle,.mobile-row-toggle-button,.mobile-record-toggle,.table-expand-button,[data-mobile-row-toggle],.expand-record-button{
 width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;aspect-ratio:1/1!important;border-radius:50%!important;padding:0!important;display:grid!important;place-items:center!important;line-height:1!important
}
.mobile-row-more svg,.mobile-row-toggle svg,.mobile-record-toggle svg{margin:auto!important}

/* Centre the bottom FAB optically and geometrically. */
.mobile-quick-actions{display:grid!important;place-items:center!important;align-self:start!important}
.mobile-quick-actions>summary{display:grid!important;place-items:center!important;line-height:0!important}
.mobile-quick-actions>summary .ui-icon{display:grid!important;place-items:center!important;padding:0!important}
.mobile-quick-actions>summary .ui-icon svg{display:block!important;margin:auto!important;width:24px!important;height:24px!important}

/* Desktop enterprise surfaces: visible borders, disciplined corners. */
@media(min-width:851px){
 .panel,.card,.filter-collapsible,.report-summary-card{border-radius:12px!important}
 .dashboard-hero.welcome-card{border-radius:12px!important}
}

@media(max-width:850px){
 body{background:#edf2f7!important}
 .container{background:#fff}
 .workspace-bar{background:#fff!important}
 .workspace-bar .top-search{background:#eef2f6!important;border:1px solid #d8e1ec!important}
 .workspace-bar .top-action,.notification-trigger,.user-chip{background:#eef2f6!important;border:1px solid #d8e1ec!important}

 /* Welcome is an edge-to-edge app hero, not a floating rounded card. */
 .dashboard-container{padding-left:0!important;padding-right:0!important}
 .dashboard-container>.dashboard-hero.welcome-card{margin-left:0!important;margin-right:0!important;border-left:0!important;border-right:0!important;border-radius:0!important;box-shadow:none!important}
 .dashboard-container>.dashboard-date-filter,.dashboard-container>.dashboard-grid,.dashboard-container>.dashboard-section,.dashboard-container>.panel{margin-left:16px;margin-right:16px}

 /* Compact dashboard date control aligned to the right; popover can still expand. */
 .dashboard-date-filter{justify-content:flex-end!important;margin-top:14px!important}
 .dashboard-date-picker{width:auto!important;max-width:100%!important}
 .dashboard-date-picker>summary{width:auto!important;min-width:164px!important;max-width:min(82vw,260px)!important;padding:10px 13px!important;border-color:var(--ui-border-strong)!important}
 .dashboard-date-current{overflow:hidden;text-overflow:ellipsis}
 .dashboard-date-popover,.dashboard-date-popover:has(.dashboard-custom-range.is-visible){left:16px!important;right:16px!important;top:82px!important}

 /* Stronger, cleaner mobile cards and rows. */
 .panel,.card,.filter-collapsible,.report-summary-card{border-color:var(--ui-border)!important;box-shadow:0 5px 18px rgba(18,45,82,.06)!important}
 .mobile-detail-table tbody,.mobile-detail-table tr,.responsive-table tbody,.responsive-table tr{border-color:transparent!important}
 .mobile-detail-table tr,.responsive-table tr{border:1px solid var(--ui-border)!important;box-shadow:0 3px 10px rgba(18,45,82,.04)!important}
 .mobile-detail-table tr+tr,.responsive-table tr+tr{margin-top:10px!important}
 .mobile-detail-table td,.responsive-table td{border:0!important}

 /* Full-screen menu header is compact, aligned, and closes after navigation. */
 .mobile-menu-header,.sidebar-brand-mobile{min-height:72px!important;padding:12px 16px!important;border-bottom:1px solid #d7e0eb!important}
 .mobile-menu-close,.nav-close{width:42px!important;height:42px!important;min-width:42px!important;border-radius:50%!important;display:grid!important;place-items:center!important;line-height:0!important;padding:0!important}
 .mobile-menu-close svg,.nav-close svg{display:block!important;margin:auto!important}
}
@media(max-width:850px){
 .sidebar-close{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border-radius:50%!important;display:grid!important;place-items:center!important;padding:0!important;line-height:1!important;font-size:27px!important;text-align:center!important}
 .universal-date-filter{min-width:0!important;width:auto!important;max-width:100%!important;justify-self:end!important}
 .universal-date-filter>label{display:none!important}
 .universal-date-filter details{width:auto!important}
 .universal-date-filter summary{width:auto!important;min-width:164px!important;max-width:min(82vw,260px)!important;border-color:var(--ui-border-strong)!important}
}

/* Build 14.0.4: keep mobile custom-range actions visible above the app navigation. */
@media (max-width:760px){
  .universal-date-popover,
  .universal-date-popover:has(.universal-date-custom.is-visible){
    top:76px!important;
    bottom:calc(82px + env(safe-area-inset-bottom, 0px))!important;
    max-height:none!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
    padding-bottom:0;
  }
  .universal-date-custom.is-visible{
    display:grid;
    min-height:min-content;
    padding-bottom:0;
  }
  .universal-date-custom>div{
    position:sticky;
    bottom:0;
    z-index:3;
    margin:8px -14px -14px;
    padding:12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background:#fff;
    border-top:1px solid #cbd5e1;
    box-shadow:0 -10px 22px rgba(15,35,65,.08);
  }
  .universal-date-custom>div .button{
    min-height:44px;
    flex:1 1 0;
    justify-content:center;
  }
}
@media (max-width:700px){
  .dashboard-date-popover,
  .dashboard-date-popover:has(.dashboard-custom-range.is-visible){
    top:76px!important;
    bottom:calc(82px + env(safe-area-inset-bottom, 0px))!important;
    max-height:none!important;
    overflow-y:auto!important;
    overscroll-behavior:contain;
  }
  .dashboard-custom-range.is-visible{padding-bottom:0}
  .dashboard-custom-actions{
    position:sticky;
    bottom:0;
    z-index:3;
    margin:8px -20px -20px;
    padding:12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
    background:#fff;
    box-shadow:0 -10px 22px rgba(15,35,65,.08);
  }
  .dashboard-custom-actions .button{min-height:44px;flex:1 1 0}
}

/* Build 14.0.5: desktop tables use their native action column; mobile expansion is outlined. */
@media (min-width:761px){
  .mobile-row-toggle-cell,.mobile-row-details{display:none!important}
  .mobile-row-more{display:none!important}
}
@media (max-width:760px){
  .mobile-row-more,.mobile-row-toggle,.mobile-row-toggle-button,.mobile-record-toggle,.table-expand-button,[data-mobile-row-toggle],.expand-record-button{
    background:#fff!important;
    color:#1553c6!important;
    border:1.5px solid #1553c6!important;
    box-shadow:none!important;
  }
  .mobile-row-expanded .mobile-row-more{background:#eef4ff!important}
}
.button.danger-outline,.danger-outline{
  background:#fff!important;
  color:#b42318!important;
  border:1px solid #e3a6a1!important;
}
.button.danger-outline:hover,.danger-outline:hover{background:#fff1f0!important;border-color:#c94b43!important}
.button.success-outline,.success-outline{
  background:#fff!important;
  color:#157347!important;
  border:1px solid #9ed5b7!important;
}
.audit-evidence-grid pre{color:#2f425c;line-height:1.55}

/* Build 14.0.6: staff action de-duplication, centred FAB, applicant profile and reliable avatars. */
.profile-card-avatar img,.avatar-sm img,.avatar-xl img,.applicant-avatar img{
  width:100%;height:100%;display:block;object-fit:cover;border-radius:50%
}
.profile-card-avatar,.profile-card-avatar.small,.avatar-sm,.avatar-xl,.applicant-avatar{
  overflow:hidden;border-radius:50%!important;aspect-ratio:1/1
}

.application-profile-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:20px;align-items:stretch}
.applicant-profile-card,.application-summary-card{border:1px solid var(--ui-border,#cbd6e5);background:#fff;border-radius:14px;padding:22px;min-width:0}
.applicant-profile-head{display:grid;grid-template-columns:88px minmax(0,1fr);gap:18px;align-items:center}
.applicant-avatar{width:88px;height:88px;display:grid;place-items:center;background:#eaf1ff;color:#1553c6;font-size:26px;font-weight:900;border:1px solid #c8d7ee}
.applicant-identity h2{margin:4px 0 5px;font-size:25px;line-height:1.15}
.applicant-identity p{margin:0;color:var(--muted)}
.applicant-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.applicant-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:20px 0 0}
.applicant-contact-grid>div{background:#f5f8fc;border:1px solid #dce5f0;border-radius:10px;padding:12px;min-width:0}
.applicant-contact-grid dt{font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:#718096}
.applicant-contact-grid dd{margin:5px 0 0;font-weight:700;color:#17314f;overflow-wrap:anywhere}
.applicant-profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.application-summary-card .section-heading{margin-bottom:14px}
.application-summary-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}
.application-summary-kpis>div{padding:13px;border:1px solid #dce5f0;background:#f7f9fc;border-radius:10px}
.application-summary-kpis span{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:#718096;font-weight:800}
.application-summary-kpis strong{display:block;margin-top:5px;color:#10233f;font-size:16px}
.application-charge-table{margin:0}

@media(max-width:760px){
  /* Only cloned actions appear in the expanded footer. */
  .mobile-detail-table td.actions-col,.mobile-detail-table td:has(.row-actions){display:none!important}
  .mobile-row-actions .row-actions{display:contents}
  .mobile-row-actions form,.mobile-row-actions>a,.mobile-row-actions>button{margin:0!important}

  .application-profile-grid{grid-template-columns:1fr;gap:14px}
  .application-overview-panel{padding:14px!important}
  .applicant-profile-card,.application-summary-card{padding:16px;border-radius:12px}
  .applicant-profile-head{grid-template-columns:68px minmax(0,1fr);gap:13px}
  .applicant-avatar{width:68px;height:68px;font-size:20px}
  .applicant-identity h2{font-size:21px}
  .applicant-contact-grid{grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
  .applicant-contact-grid>div{padding:10px}
  .applicant-profile-actions{display:grid;grid-template-columns:1fr;margin-top:14px}
  .application-summary-kpis{grid-template-columns:1fr 1fr;gap:8px}

  /* Geometrically centre the bottom navigation quick action. */
  .mobile-quick-actions{display:grid!important;place-items:start center!important;position:relative!important;inset:auto!important}
  .mobile-quick-actions>summary{
    position:relative!important;left:auto!important;top:-15px!important;transform:none!important;
    width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;
    padding:0!important;margin:0 auto!important;display:grid!important;place-items:center!important;
    border-radius:50%!important;line-height:0!important
  }
  .mobile-quick-actions[open]>summary{transform:rotate(45deg)!important}
  .mobile-quick-actions>summary .ui-icon{
    width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;
    padding:0!important;margin:0!important;display:grid!important;place-items:center!important
  }
  .mobile-quick-actions>summary .ui-icon svg{width:24px!important;height:24px!important;display:block!important;margin:0!important}
  .mobile-quick-actions:after{top:43px!important}
}
@media(max-width:480px){
  .applicant-contact-grid,.application-summary-kpis{grid-template-columns:1fr}
}

/* Build 14.0.7 - application repayment schedule mobile cards */
.repayment-schedule-mobile{display:none}
@media(max-width:760px){
  .repayment-schedule-panel{padding:18px 16px!important;overflow:hidden}
  .repayment-schedule-panel .section-heading{margin-bottom:14px}
  .repayment-schedule-panel .section-heading h2{font-size:1.42rem;line-height:1.2}
  .repayment-schedule-panel .section-heading p{font-size:.88rem;line-height:1.5;margin-top:7px}
  .repayment-schedule-desktop{display:none!important}
  .repayment-schedule-mobile{display:grid;gap:12px}
  .repayment-instalment-card{border:1px solid #cfd9e6;background:#fff;padding:15px;border-radius:14px;box-shadow:0 4px 14px rgba(24,45,78,.05)}
  .repayment-instalment-card header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid #e4eaf2}
  .repayment-instalment-card header>div span,.repayment-instalment-date span{display:block;color:#6a788c;font-size:.72rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
  .repayment-instalment-card header>div strong{display:block;margin-top:3px;color:#14233b;font-size:1.15rem}
  .repayment-instalment-date{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 0}
  .repayment-instalment-date strong{color:#17263e;font-size:.95rem;text-align:right}
  .repayment-instalment-card dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0}
  .repayment-instalment-card dl>div{min-width:0;padding:11px 12px;border:1px solid #e0e7f0;border-radius:11px;background:#f8fafc}
  .repayment-instalment-card dt{color:#718096;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
  .repayment-instalment-card dd{margin:5px 0 0;color:#1b2b44;font-size:.9rem;font-weight:800;white-space:nowrap}
  .repayment-instalment-card .repayment-balance{grid-column:1/-1;background:#eef4ff;border-color:#cddcff}
  .repayment-instalment-card .repayment-balance dd{color:#0b49c7;font-size:1rem}
}

/* Build 14.0.7 - keep contextual Help visible in the mobile sticky top bar. */
@media(max-width:850px){
  .workspace-bar .top-actions>a.top-action[title^="Help"]{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    flex:0 0 38px!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    place-items:center!important;
    border:1px solid #d8e1ec!important;
    border-radius:50%!important;
    background:#eef3f8!important;
    color:#34445c!important;
  }
  .workspace-bar .top-actions>a.top-action[title^="Help"] .ui-icon{
    width:21px!important;
    height:21px!important;
    margin:0!important;
  }
}
@media(max-width:430px){
  .workspace-bar .top-actions>a.top-action[title^="Help"]{
    flex-basis:36px!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    min-height:36px!important;
  }
}

/* Build 14.0.8: reliable staff photographs in the top navigation and staff profiles. */
.avatar-sm,.avatar-xl,.profile-card-avatar{position:relative;isolation:isolate}
.avatar-sm .avatar-fallback,.avatar-xl .avatar-fallback,.profile-card-avatar .avatar-fallback{position:relative;z-index:0;display:grid;place-items:center;width:100%;height:100%;border-radius:inherit}
.avatar-sm img,.avatar-xl img,.profile-card-avatar img{position:absolute;inset:0;z-index:1;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:inherit!important;background:#eaf1ff}

/* Build 14.0.9 - unified circular identity photography */
.avatar-sm,.avatar-xl,.profile-card-avatar,.applicant-avatar,.customer-profile-avatar,.person-avatar,.profile-result-avatar,.identity-avatar{
  position:relative;display:inline-grid;place-items:center;aspect-ratio:1/1;border-radius:50%!important;overflow:hidden!important;flex:0 0 auto;background:#edf3ff;color:#1451cc;border:1px solid #c8d7ef;
}
.avatar-sm img,.avatar-xl img,.profile-card-avatar img,.applicant-avatar img,.customer-profile-avatar img,.person-avatar img,.profile-result-avatar img,.identity-avatar img{
  position:absolute;inset:0;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center center!important;border-radius:50%!important;display:block;
}
.avatar-sm .avatar-fallback,.avatar-xl .avatar-fallback,.profile-card-avatar .avatar-fallback{position:relative;z-index:0}
.avatar-sm img,.avatar-xl img,.profile-card-avatar img{z-index:1}
.applicant-avatar{width:96px;height:96px}
.profile-card-avatar{width:52px;height:52px}
.profile-card-avatar.small{width:42px;height:42px}
.avatar-sm{width:42px;height:42px;min-width:42px}
.avatar-xl{width:112px;height:112px}
@media(max-width:760px){.applicant-avatar{width:76px;height:76px}.avatar-sm{width:44px;height:44px;min-width:44px}}

/* Build 14.0.11: loan document ordering, mobile table containment and dashboard gutters. */
.agreement-document-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.agreement-document-actions .button{margin:0;white-space:nowrap}

@media(max-width:760px){
  /* Keep every responsive table and generated record inside the phone viewport. */
  .table-wrap,.responsive-table-wrap,.mobile-detail-table{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow:visible!important;
    padding:0!important;
  }
  .mobile-detail-table table,.responsive-table{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    table-layout:fixed!important;
  }
  .mobile-detail-table tbody,.responsive-table tbody{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .mobile-detail-table tr,.responsive-table tr{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    margin-left:0!important;
    margin-right:0!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
  }
  .mobile-detail-table td,.responsive-table td,
  .mobile-row-details,.mobile-row-detail-grid,.mobile-row-detail-grid>div{
    min-width:0!important;
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }
  .mobile-row-detail-grid{grid-template-columns:1fr!important}
  .mobile-row-actions{width:100%!important;display:grid!important;grid-template-columns:1fr!important}
  .mobile-row-actions>a,.mobile-row-actions>button,.mobile-row-actions>form{width:100%!important;min-width:0!important}
  .system-health-panel,.system-health-panel .table-wrap{overflow:hidden!important}

  /* Dashboard content keeps deliberate side gutters while the hero stays edge-to-edge. */
  .dashboard-container{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  .dashboard-container>.cards,
  .dashboard-container>.dashboard-kpis,
  .dashboard-container>.dashboard-mini-grid,
  .dashboard-container>.dashboard-main-grid,
  .dashboard-container>.dashboard-announcements,
  .dashboard-container>.onboarding-panel,
  .dashboard-container>.dashboard-panel,
  .dashboard-container>.dashboard-date-filter{
    width:auto!important;
    max-width:none!important;
    margin-left:16px!important;
    margin-right:16px!important;
    box-sizing:border-box!important;
  }
  .dashboard-container>.dashboard-hero.welcome-card{
    width:auto!important;
    max-width:none!important;
    margin-left:0!important;
    margin-right:0!important;
  }
  .dashboard-container .cards article,
  .dashboard-container .mini-stat,
  .dashboard-container .panel{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
  .dashboard-date-filter{padding-left:0!important;padding-right:0!important}

  .agreement-document-actions{display:grid;grid-template-columns:1fr;width:100%;margin-top:12px}
  .agreement-document-actions .button{width:100%;justify-content:center}
}

/* Build 14.0.12 - mobile contextual help and live global search */
@media(max-width:850px){
  .workspace-bar .top-actions>a.top-action[title="Help for this page"]{display:grid!important;visibility:visible!important;opacity:1!important;flex:0 0 38px!important;width:38px!important;height:38px!important;min-width:38px!important;border-radius:50%!important}
}
@media(max-width:430px){
  .workspace-bar .top-actions>a.top-action[title="Help for this page"]{flex-basis:36px!important;width:36px!important;height:36px!important;min-width:36px!important}
}

/* Build 14.1.0 - enterprise printable document suite */
@media print{
  .report-shell{display:block!important}
  .report-menu,.report-mobile-menu,.report-filter-panel,.report-header-actions,.workspace-bar,.sidebar,.mobile-bottom-nav{display:none!important}
  .report-workspace{width:100%!important;max-width:none!important}
  .report-header{border:0!important;border-top:8px solid #164fc9!important;border-bottom:2px solid #164fc9!important;border-radius:0!important;box-shadow:none!important;padding:18px 0!important;margin:0 0 18px!important}
  .report-header:before{content:"OFFICIAL MANAGEMENT REPORT";display:block;color:#164fc9;font-size:9pt;font-weight:800;letter-spacing:.15em;margin-bottom:8px}
  .report-results,.report-summary-card{box-shadow:none!important;border-color:#cbd5e1!important}
  .report-results table{font-size:8pt!important}
}

/* Build 14.1.1 - clear, touch-friendly loan document actions. */
.agreement-document-actions{align-items:stretch}
.agreement-document-actions .button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;text-align:center}
@media(max-width:760px){
  .application-agreement-panel .section-heading{display:block}
  .application-agreement-panel .agreement-document-actions{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
    width:100%!important;
    margin-top:14px!important;
  }
  .application-agreement-panel .agreement-document-actions .button{
    width:100%!important;
    min-width:0!important;
    min-height:48px!important;
    margin:0!important;
    padding:10px 8px!important;
    white-space:normal!important;
    line-height:1.2!important;
    border-radius:10px!important;
    text-align:center!important;
  }
  .application-agreement-panel .agreement-document-actions .button:last-child{
    grid-column:1 / -1!important;
    min-height:52px!important;
  }
}
@media(max-width:380px){
  .application-agreement-panel .agreement-document-actions{grid-template-columns:1fr!important}
  .application-agreement-panel .agreement-document-actions .button:last-child{grid-column:auto!important}
}

/* Build 14.1.2: compact mobile loan-document actions */
@media (max-width:700px){
  .application-agreement-panel .agreement-document-actions{
    display:flex!important;
    justify-content:flex-end;
    align-items:center;
    gap:7px!important;
    width:100%;
    overflow-x:auto;
    padding:2px 0 5px;
    margin-top:10px;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;
  }
  .application-agreement-panel .agreement-document-actions::-webkit-scrollbar{display:none}
  .application-agreement-panel .agreement-document-actions .button{
    width:auto!important;
    min-width:0!important;
    min-height:40px!important;
    flex:0 0 auto;
    padding:8px 11px!important;
    border-radius:999px!important;
    font-size:12px!important;
    line-height:1.15!important;
    white-space:nowrap!important;
    grid-column:auto!important;
  }
}
@media (max-width:380px){
  .application-agreement-panel .agreement-document-actions{justify-content:flex-start}
  .application-agreement-panel .agreement-document-actions .button{padding:8px 10px!important;font-size:11px!important}
}


/* Build 14.1.4 - collapsible repayment schedule and compact mobile document buttons */
.repayment-schedule-panel{padding:0!important;overflow:hidden}
.repayment-schedule-disclosure>summary{list-style:none;display:grid;grid-template-columns:minmax(0,1fr) auto 34px;align-items:center;gap:18px;padding:20px 22px;cursor:pointer;background:#fff}
.repayment-schedule-disclosure>summary::-webkit-details-marker{display:none}
.repayment-schedule-disclosure>summary h2{margin:0 0 4px}
.repayment-schedule-disclosure>summary p{margin:0;color:var(--muted,#667085)}
.repayment-schedule-summary-meta{text-align:right;display:grid;gap:2px}
.repayment-schedule-summary-meta span{font-size:12px;color:var(--muted,#667085)}
.repayment-schedule-chevron{width:12px;height:12px;border-right:2px solid #183153;border-bottom:2px solid #183153;transform:rotate(45deg);transition:transform .2s ease;justify-self:center;margin-top:-5px}
.repayment-schedule-disclosure[open] .repayment-schedule-chevron{transform:rotate(225deg);margin-top:5px}
.repayment-schedule-disclosure[open]>summary{border-bottom:1px solid #d5deeb;background:#f8fbff}
.repayment-schedule-content{padding:18px 20px 22px}
.application-agreement-panel .agreement-document-actions{width:min(100%,460px);display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin-left:auto}
.application-agreement-panel .agreement-document-actions .button{width:100%!important;min-width:0!important;min-height:40px!important;padding:8px 9px!important;border-radius:9px!important;white-space:normal!important;font-size:12px!important;line-height:1.15!important;text-align:center!important}
@media(max-width:700px){
  .repayment-schedule-disclosure>summary{grid-template-columns:minmax(0,1fr) 30px;gap:10px;padding:16px}
  .repayment-schedule-summary-meta{grid-column:1/-1;grid-row:2;text-align:left;display:flex;gap:8px;flex-wrap:wrap}
  .repayment-schedule-summary-meta strong,.repayment-schedule-summary-meta span{font-size:12px}
  .repayment-schedule-chevron{grid-column:2;grid-row:1}
  .repayment-schedule-content{padding:12px}
  .application-agreement-panel .section-heading{display:block}
  .application-agreement-panel .agreement-document-actions{width:min(100%,390px)!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important;margin:12px 0 0!important;overflow:visible!important;padding:0!important}
  .application-agreement-panel .agreement-document-actions .button{min-height:42px!important;padding:8px 6px!important;font-size:11.5px!important;border-radius:8px!important;white-space:normal!important}
  .application-agreement-panel .agreement-document-actions .button:last-child{grid-column:1/-1!important}
}
@media(max-width:360px){
  .application-agreement-panel .agreement-document-actions{grid-template-columns:1fr!important}
  .application-agreement-panel .agreement-document-actions .button:last-child{grid-column:auto!important}
}

/* Build 14.1.5: compact mobile document choices and enterprise repayment schedule. */
.application-agreement-panel .section-heading{align-items:flex-start}
.application-agreement-panel .agreement-document-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;width:min(100%,540px)!important;gap:10px!important;margin-left:auto!important}
.application-agreement-panel .agreement-document-actions .button{min-width:0!important;width:100%!important;min-height:48px!important;padding:10px 12px!important;border-radius:10px!important;font-size:13px!important;line-height:1.2!important;white-space:normal!important;text-align:center!important}
@media(max-width:700px){
  .application-agreement-panel .section-heading{display:block!important}
  .application-agreement-panel .agreement-document-actions{width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:14px 0 0!important}
  .application-agreement-panel .agreement-document-actions .button{min-height:44px!important;padding:8px 7px!important;border-radius:10px!important;font-size:12px!important}
  .application-agreement-panel .agreement-document-actions .button:last-child{grid-column:1/-1!important;width:calc(50% - 4px)!important;justify-self:start!important}
}
@media(max-width:390px){
  .application-agreement-panel .agreement-document-actions{grid-template-columns:1fr!important}
  .application-agreement-panel .agreement-document-actions .button:last-child{grid-column:auto!important;width:100%!important}
}

.repayment-schedule-panel{overflow:hidden;padding:0!important}
.repayment-schedule-disclosure>summary{padding:20px 22px!important;border:0!important;background:linear-gradient(180deg,#fff,#f8fbff)!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto 28px!important;gap:18px!important;align-items:center!important}
.repayment-schedule-title{display:flex;align-items:center;gap:13px;min-width:0}
.repayment-schedule-icon{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;color:#0f51c8;font-size:20px;font-weight:800;flex:0 0 auto}
.repayment-schedule-title h2{margin:0 0 3px;font-size:20px}
.repayment-schedule-title p{margin:0;color:#64748b}
.repayment-schedule-summary-meta{display:flex!important;flex-direction:column;align-items:flex-end;gap:3px;white-space:nowrap}
.repayment-schedule-summary-meta strong{font-size:14px;color:#172033}
.repayment-schedule-summary-meta span{font-size:13px;color:#64748b}
.repayment-schedule-content{border-top:1px solid #d7e0ec;padding:18px 20px 22px;background:#fff}
.repayment-schedule-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) minmax(220px,1.25fr);gap:10px;margin-bottom:16px}
.repayment-schedule-overview>div{border:1px solid #d7e0ec;border-radius:10px;background:#f8fafc;padding:12px 14px;min-width:0}
.repayment-schedule-overview span{display:block;color:#64748b;font-size:12px;margin-bottom:5px}
.repayment-schedule-overview strong{font-size:15px;color:#14213a;overflow-wrap:anywhere}
.repayment-progress-card{background:#f2f7ff!important;border-color:#b8cff2!important}
.repayment-progress-card strong{float:right;margin-top:-22px;color:#0f51c8}
.repayment-progress-track{height:7px;border-radius:999px;background:#dbe7f8;margin-top:9px;overflow:hidden}
.repayment-progress-track i{display:block;height:100%;border-radius:inherit;background:#1556d8}
.repayment-schedule-table{border-collapse:separate!important;border-spacing:0!important;border:1px solid #d7e0ec;border-radius:10px;overflow:hidden}
.repayment-schedule-table thead th{background:#edf3fb!important;color:#314158;font-size:12px;text-transform:uppercase;letter-spacing:.035em;padding:11px 12px!important;border-width:0 0 1px 0!important}
.repayment-schedule-table tbody td{padding:11px 12px!important;border-width:0 0 1px 0!important}
.repayment-schedule-table tbody tr:last-child td{border-bottom:0!important}
.repayment-schedule-table tbody tr:hover{background:#f8fbff}
@media(max-width:700px){
  .repayment-schedule-disclosure>summary{padding:16px!important;grid-template-columns:minmax(0,1fr) 24px!important;gap:10px!important}
  .repayment-schedule-summary-meta{grid-column:1/-1;align-items:flex-start!important;flex-direction:row!important;gap:8px!important;white-space:normal}
  .repayment-schedule-summary-meta span:before{content:"• ";color:#94a3b8}
  .repayment-schedule-title h2{font-size:18px}
  .repayment-schedule-icon{width:34px;height:34px;font-size:17px}
  .repayment-schedule-content{padding:14px}
  .repayment-schedule-overview{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .repayment-schedule-overview>div{padding:10px}
  .repayment-progress-card{grid-column:1/-1}
}


/* Build 14.1.5 - guarantee contextual Help remains visible on mobile. */
@media(max-width:850px){
  .workspace-bar .top-actions{
    display:flex!important;
    align-items:center!important;
    flex:0 0 auto!important;
    gap:5px!important;
    overflow:visible!important;
  }
  .workspace-bar .contextual-help-action{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    flex:0 0 38px!important;
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    padding:0!important;
    place-items:center!important;
    border:1px solid #d7e1ed!important;
    border-radius:50%!important;
    background:#eef3f8!important;
    color:#34445c!important;
  }
  .workspace-bar .contextual-help-action .ui-icon{
    width:21px!important;
    height:21px!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  .workspace-bar .notification-menu,
  .workspace-bar .account-menu{display:block!important;flex:0 0 auto!important}
  .workspace-bar .top-search{min-width:0!important;flex:1 1 auto!important}
}
@media(max-width:430px){
  .workspace-bar{gap:6px!important;padding-inline:8px!important}
  .workspace-bar .top-actions{gap:3px!important}
  .workspace-bar .contextual-help-action,
  .workspace-bar .notification-trigger,
  .workspace-bar .user-chip{
    flex-basis:36px!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    min-height:36px!important;
  }
}


/* Build 14.1.6: audit trail batching, pagination and action spacing */
.audit-results-panel{padding-top:22px}.audit-heading-row{margin-bottom:14px}.audit-results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0 16px;border-top:1px solid var(--line);margin-top:4px}.audit-result-count{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.audit-result-count strong{font-size:13px;color:var(--ink)}.audit-result-count span{font-size:11px;color:var(--muted)}.audit-page-size-form{margin-left:auto}.audit-page-size-form label{display:flex;align-items:center;gap:8px;margin:0;font-size:11px;color:var(--muted);white-space:nowrap}.audit-page-size-form select{width:76px;min-height:34px;margin:0;padding:6px 28px 6px 10px}.audit-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.audit-row-actions .button{margin:0}.pagination{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;padding-top:18px;margin-top:16px;border-top:1px solid var(--line)}.pagination-link{min-width:36px;height:36px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:800;font-size:12px}.pagination-link:hover{border-color:var(--blue);color:var(--blue);background:var(--blue-soft)}.pagination-link.active{background:var(--blue);border-color:var(--blue);color:#fff}.pagination-link.disabled{pointer-events:none;opacity:.4}.pagination-ellipsis{color:var(--muted);padding:0 2px}.pagination-summary{margin-left:8px;color:var(--muted);font-size:11px}
@media(max-width:760px){.audit-results-toolbar{align-items:flex-end}.audit-result-count{display:grid;gap:2px}.audit-row-actions{flex-direction:column;align-items:stretch;gap:8px}.audit-row-actions .button{width:100%;justify-content:center}.audit-page-size-form label{display:grid;gap:4px}.audit-page-size-form select{width:82px}.audit-pagination{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;padding-bottom:4px}.pagination-summary{white-space:nowrap}}


/* Build 14.1.7: visible audit pagination and read-only audit records */
.audit-pagination{display:flex!important;visibility:visible!important;opacity:1!important;min-height:54px}.audit-pagination .pagination-link{display:inline-flex!important}.audit-record-view{max-width:1120px;margin-inline:auto}.audit-record-header{align-items:flex-start;margin-bottom:22px}.audit-record-meta{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.audit-record-meta>div{border:1px solid var(--line-strong,var(--line));background:var(--surface-soft,#f7f9fc);padding:14px;border-radius:12px;display:grid;gap:6px;min-width:0}.audit-record-meta .wide{grid-column:span 2}.audit-record-meta span{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}.audit-record-meta strong{font-size:13px;overflow-wrap:anywhere}.audit-record-evidence>section{min-width:0}.audit-evidence-title{display:grid;gap:2px;margin-bottom:8px}.audit-evidence-title span{font-weight:900;color:var(--ink)}.audit-evidence-title small{color:var(--muted)}.audit-record-evidence pre{min-height:260px;max-height:560px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:760px){.audit-record-header{display:grid;gap:14px}.audit-record-header .button{width:100%;justify-content:center}.audit-record-meta{grid-template-columns:1fr 1fr}.audit-record-meta .wide{grid-column:1/-1}.audit-record-evidence{grid-template-columns:1fr}.audit-record-evidence pre{min-height:180px}.audit-pagination{justify-content:center;overflow:visible;flex-wrap:wrap}.pagination-summary{width:100%;text-align:center;margin:4px 0 0}}

/* Build 14.1.7: audit mobile cards and stronger pagination */
@media(max-width:760px){
  .audit-results-panel{padding:16px!important;border-radius:14px!important}
  .audit-heading-row{margin-bottom:10px!important}
  .audit-heading-row h2{font-size:1.15rem!important}
  .audit-results-toolbar{display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:end!important;gap:12px!important;padding:12px 0 14px!important}
  .audit-result-count strong{font-size:.92rem!important}
  .audit-result-count span{font-size:.76rem!important}
  .audit-page-size-form{margin:0!important}
  .audit-page-size-form label{font-size:.72rem!important}
  .audit-page-size-form select{width:74px!important;min-height:38px!important;border-radius:10px!important}
  .audit-results-panel .table-wrap{padding:0!important;border:0!important;background:transparent!important}
  .audit-results-panel .mobile-detail-table tbody{gap:12px!important}
  .audit-results-panel .mobile-detail-table tr{padding:14px!important;border:1px solid #cbd8e8!important;border-radius:14px!important;background:#fff!important;box-shadow:0 5px 16px rgba(17,47,84,.06)!important}
  .audit-results-panel .mobile-detail-table td.mobile-primary-cell:first-of-type{font-size:.94rem!important;color:#10213b!important}
  .audit-results-panel .mobile-detail-table td.mobile-primary-cell:nth-of-type(2){font-size:.8rem!important;color:#607089!important;font-weight:700!important}
  .audit-results-panel .mobile-row-more{width:36px!important;height:36px!important;min-height:36px!important;border-radius:50%!important;border:2px solid #1553c6!important;background:#fff!important;color:#1553c6!important;box-shadow:none!important}
  .audit-results-panel .mobile-row-details{padding-top:13px!important;margin-top:10px!important}
  .audit-results-panel .mobile-row-detail-grid{gap:8px!important}
  .audit-results-panel .mobile-row-detail-grid>div{padding:10px 11px!important;border:1px solid #e3eaf3!important;border-radius:10px!important;background:#f8fafd!important}
  .audit-results-panel .mobile-row-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:9px!important;margin-top:12px!important}
  .audit-results-panel .mobile-row-actions .button{min-height:42px!important;border-radius:11px!important}
  .audit-pagination{display:grid!important;grid-template-columns:repeat(5,minmax(38px,auto));justify-content:center!important;gap:7px!important;overflow:visible!important;padding:16px 0 2px!important}
  .audit-pagination .pagination-link{min-width:40px!important;height:40px!important;border-radius:50%!important;padding:0!important;font-size:.85rem!important;box-shadow:0 2px 7px rgba(20,52,91,.05)!important}
  .audit-pagination .pagination-link.active{box-shadow:0 4px 12px rgba(21,83,198,.24)!important}
  .audit-pagination .pagination-ellipsis{align-self:center;text-align:center!important}
  .audit-pagination .pagination-summary{grid-column:1/-1;width:100%!important;margin:5px 0 0!important;text-align:center!important;font-size:.76rem!important}
}
@media(max-width:390px){
  .audit-results-toolbar{grid-template-columns:1fr!important;align-items:stretch!important}
  .audit-page-size-form label{display:flex!important;justify-content:space-between!important;align-items:center!important}
  .audit-results-panel .mobile-row-actions{grid-template-columns:1fr!important}
}

/* Build 14.1.8 - guaranteed mobile contextual help and enterprise search results */
@media (max-width:850px){
  .workspace-bar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:8px!important;
    padding:9px 10px!important;
    min-height:64px!important;
    background:#f7faff!important;
    border-bottom:1px solid #cbd8e8!important;
    box-shadow:0 5px 16px rgba(25,45,78,.08)!important;
    position:fixed!important;
    top:0!important;
    z-index:1200!important;
  }
  .workspace-bar .desktop-collapse,.workspace-bar .menu-button{display:none!important}
  .workspace-bar .top-search{
    grid-column:1!important;
    width:100%!important;
    min-width:0!important;
    margin:0!important;
    height:44px!important;
    border:1px solid #cbd8e8!important;
    background:#eef3f8!important;
    border-radius:22px!important;
  }
  .workspace-bar .top-search input{font-size:15px!important;min-width:0!important;padding-right:8px!important}
  .workspace-bar .top-actions{
    grid-column:2!important;
    display:grid!important;
    grid-template-columns:40px 40px 40px!important;
    align-items:center!important;
    gap:5px!important;
    width:auto!important;
    overflow:visible!important;
  }
  .workspace-bar .desktop-new-action{display:none!important}
  .workspace-bar .notification-menu,.workspace-bar .account-menu{width:40px!important;height:40px!important;margin:0!important}
  .workspace-bar .notification-trigger,
  .workspace-bar .contextual-help-action,
  .workspace-bar .user-chip{
    display:grid!important;
    place-items:center!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    padding:0!important;
    margin:0!important;
    border:1px solid #c5d3e4!important;
    border-radius:50%!important;
    background:#edf3fa!important;
    color:#253956!important;
    box-sizing:border-box!important;
    visibility:visible!important;
    opacity:1!important;
  }
  .workspace-bar .contextual-help-action{order:2!important;z-index:2!important}
  .workspace-bar .notification-menu{order:1!important}
  .workspace-bar .account-menu{order:3!important}
  .workspace-bar .contextual-help-action .ui-icon{width:21px!important;height:21px!important;display:block!important}
  .workspace-bar .user-chip-name,.workspace-bar .user-chip .chevron{display:none!important}
  .workspace-bar .avatar-sm{width:34px!important;height:34px!important;min-width:34px!important}
  .workspace{padding-top:64px!important}
}
@media (max-width:390px){
  .workspace-bar{gap:6px!important;padding-inline:7px!important}
  .workspace-bar .top-actions{grid-template-columns:36px 36px 36px!important;gap:3px!important}
  .workspace-bar .notification-menu,.workspace-bar .account-menu,
  .workspace-bar .notification-trigger,.workspace-bar .contextual-help-action,.workspace-bar .user-chip{
    width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important
  }
  .workspace-bar .avatar-sm{width:30px!important;height:30px!important;min-width:30px!important}
}

.search-enterprise-workspace{display:grid;gap:18px}
.search-page-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:4px 2px}
.search-page-eyebrow{display:block;color:var(--blue);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.11em;margin-bottom:6px}
.search-page-hero h1{margin:0;font-size:clamp(1.65rem,3vw,2.25rem);letter-spacing:-.035em;color:var(--ink)}
.search-page-hero p{margin:7px 0 0;color:var(--muted);font-size:14px}
.enterprise-search-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:18px!important;border-color:#c6d4e5!important;box-shadow:0 8px 24px rgba(25,45,78,.06)!important}
.enterprise-search-form .global-search-control{position:relative;min-width:0}
.enterprise-search-form .global-search-control input{height:50px!important;padding-left:48px!important;padding-right:46px!important;border-color:#b9c9dd!important;border-radius:12px!important;font-size:15px!important;background:#fff!important}
.enterprise-search-form .global-search-icon{left:15px!important;top:50%!important;transform:translateY(-50%)!important;width:21px!important;height:21px!important;display:grid!important;place-items:center!important}
.enterprise-search-form .global-search-icon .ui-icon{width:21px;height:21px}
.enterprise-search-form .global-search-clear{right:10px!important;top:50%!important;transform:translateY(-50%)!important;width:30px!important;height:30px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#edf2f8!important;color:#40516a!important;text-decoration:none!important;font-size:20px!important}
.enterprise-search-form .global-search-submit{height:50px!important;min-width:126px!important;border-radius:12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important}
.enterprise-search-form .global-search-submit .ui-icon{width:18px;height:18px}
.enterprise-search-form .global-search-hints{grid-column:1/-1!important;display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;margin-top:2px!important}
.enterprise-search-form .global-search-hints>span{width:auto!important;margin-right:2px!important}
.enterprise-search-form .global-search-hints button{border:1px solid #d0dbea!important;background:#f5f8fc!important;color:#42526a!important;border-radius:999px!important;padding:7px 11px!important;font-size:11px!important;font-weight:800!important}
.enterprise-search-summary{border:1px solid #cbd8e8;background:#f8fbff;border-radius:12px;padding:13px 15px!important;align-items:center!important}
.enterprise-search-summary>div:first-child{font-size:14px;color:#44536b}
.enterprise-search-summary>div:first-child strong{font-size:20px;color:var(--ink);margin-right:4px}
.search-summary-badges{display:flex;gap:7px;flex-wrap:wrap}
.search-summary-badges span{background:#eaf2ff!important;color:#144daf!important;border:1px solid #c4d7f6!important;border-radius:999px!important;padding:6px 10px!important;font-size:11px!important;font-weight:850!important}
.enterprise-result-sections{display:grid;gap:16px}
.search-result-section{border-color:#c7d5e5!important;box-shadow:0 7px 20px rgba(22,42,74,.05)!important;padding:0!important;overflow:hidden}
.search-section-heading{padding:16px 18px!important;background:#f7faff!important;border-bottom:1px solid #d4dfec!important;margin:0!important}
.search-section-heading>div:first-child{display:flex;align-items:center;gap:12px}
.search-section-icon{display:grid!important;place-items:center!important;width:38px!important;height:38px!important;border-radius:50%!important;background:#e6efff!important;color:#1252c3!important;font-size:18px!important}
.search-section-heading h2{font-size:17px!important;margin:0 0 2px!important}
.search-section-heading p{font-size:12px!important;margin:0!important;color:var(--muted)!important}
.count-pill{min-width:30px;height:30px;border-radius:15px!important;display:grid!important;place-items:center!important;background:#0f52cf!important;color:#fff!important;font-weight:900!important}
.profile-result-grid{padding:14px!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
.profile-result-card{border:1px solid #cbd8e8!important;border-radius:13px!important;padding:15px!important;background:#fff!important;box-shadow:none!important}
.profile-result-avatar{border-radius:50%!important;width:46px!important;height:46px!important;display:grid!important;place-items:center!important;background:#e7effc!important;color:#154ea9!important;font-weight:900!important}
.profile-result-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;margin-top:13px!important;padding-top:12px!important;border-top:1px solid #e0e7f0!important}
.profile-result-actions .btn{min-height:36px!important;padding:8px 12px!important;border-radius:9px!important}
.compact-result-list{padding:8px 14px 14px!important;display:grid!important;gap:8px!important}
.compact-result-row{border:1px solid #d2dce8!important;border-radius:11px!important;padding:12px 14px!important;background:#fff!important;text-decoration:none!important;transition:.15s ease!important}
.compact-result-row:hover{border-color:#8eb0e8!important;background:#f7faff!important;transform:translateY(-1px)}
.compact-result-row>div:first-child{display:grid;gap:3px}.compact-result-row>div:first-child strong{font-size:14px}.compact-result-row>div:first-child span{font-size:12px;color:var(--muted)}
.compact-result-meta{display:flex!important;align-items:flex-end!important;gap:5px!important}
.search-empty-state{text-align:center!important;padding:42px 22px!important;border-color:#cbd8e8!important}
.search-empty-icon{margin:auto!important;width:56px!important;height:56px!important;border-radius:50%!important;display:grid!important;place-items:center!important;background:#eaf2ff!important;color:#1452bd!important;font-size:27px!important}
@media(max-width:760px){
  .search-enterprise-workspace{gap:14px}
  .search-page-hero{padding:6px 2px 0;align-items:flex-start}
  .search-page-hero h1{font-size:1.55rem}
  .search-page-hero p{font-size:13px;line-height:1.45}
  .search-reset-action{display:none!important}
  .enterprise-search-form{grid-template-columns:1fr!important;padding:13px!important;gap:9px!important;border-radius:14px!important}
  .enterprise-search-form .global-search-submit{width:100%!important;min-width:0!important;height:46px!important}
  .enterprise-search-form .global-search-hints{gap:6px!important}
  .enterprise-search-form .global-search-hints button{padding:6px 9px!important;font-size:10px!important}
  .enterprise-search-summary{display:grid!important;gap:9px!important;padding:12px!important}
  .search-summary-badges{gap:5px}
  .search-section-heading{padding:13px 14px!important}
  .profile-result-grid{grid-template-columns:1fr!important;padding:10px!important}
  .profile-result-card{padding:13px!important}
  .profile-result-facts{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .profile-result-actions{display:grid!important;grid-template-columns:1fr 1fr!important}
  .profile-result-actions .btn:first-child:last-child{grid-column:1/-1}
  .compact-result-list{padding:8px 10px 10px!important}
  .compact-result-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;padding:12px!important}
  .compact-result-meta{align-items:flex-end!important;text-align:right!important;min-width:92px!important}
}

/* Build 14.1.9 - reliable contextual help and compact global search UI */
header.workspace-bar .top-actions > a.top-action.contextual-help-action{
  display:grid!important;
  visibility:visible!important;
  opacity:1!important;
  place-items:center!important;
}
@media(max-width:850px){
  header.workspace-bar .top-actions{
    display:grid!important;
    grid-template-columns:40px 40px 40px!important;
    gap:5px!important;
    flex:0 0 auto!important;
  }
  header.workspace-bar .top-actions > a.top-action.contextual-help-action{
    grid-column:auto!important;
    order:2!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    border:1px solid #c5d3e4!important;
    border-radius:50%!important;
    background:#edf3fa!important;
    color:#253956!important;
    z-index:4!important;
  }
  header.workspace-bar .notification-menu{order:1!important}
  header.workspace-bar .account-menu{order:3!important}
}
@media(max-width:390px){
  header.workspace-bar .top-actions{grid-template-columns:36px 36px 36px!important;gap:3px!important}
  header.workspace-bar .top-actions > a.top-action.contextual-help-action{
    width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important
  }
}

.search-form-heading{grid-column:1/-1;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding-bottom:4px}
.search-form-heading h2{margin:3px 0 4px;font-size:1.22rem;letter-spacing:-.02em;color:var(--ink)}
.search-form-heading p{margin:0;color:var(--muted);font-size:12px;line-height:1.45}
.search-form-heading .search-reset-action{flex:0 0 auto;min-height:36px;padding:8px 12px}
.enterprise-search-form{grid-template-columns:minmax(0,1fr) 118px!important;gap:10px!important;padding:16px!important}
.enterprise-search-form .global-search-control input{height:46px!important}
.enterprise-search-form .global-search-submit{height:46px!important;min-width:118px!important}
.enterprise-search-form .global-search-hints{margin-top:0!important}
.enterprise-search-summary{padding:11px 14px!important}
.search-result-section{border-radius:14px!important}
.profile-result-card{display:grid;gap:12px}
.profile-result-main{min-width:0}
.profile-result-identity h3{overflow-wrap:anywhere}
.compact-result-row{align-items:center!important}
@media(max-width:760px){
  .search-enterprise-workspace{gap:12px!important}
  .enterprise-search-form{grid-template-columns:1fr!important;padding:12px!important;gap:8px!important;border-radius:14px!important}
  .search-form-heading{padding:0 1px 2px;align-items:flex-start}
  .search-form-heading h2{font-size:1rem;margin-top:2px}
  .search-form-heading p{font-size:11px;line-height:1.4;max-width:30ch}
  .search-form-heading .search-reset-action{min-height:32px;padding:6px 10px;font-size:11px}
  .enterprise-search-form .global-search-control input{height:44px!important;font-size:14px!important}
  .enterprise-search-form .global-search-submit{height:42px!important;border-radius:11px!important}
  .enterprise-search-form .global-search-hints{display:flex!important;gap:5px!important;overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:2px!important;scrollbar-width:none}
  .enterprise-search-form .global-search-hints::-webkit-scrollbar{display:none}
  .enterprise-search-form .global-search-hints>span{flex:0 0 auto!important;align-self:center}
  .enterprise-search-form .global-search-hints button{flex:0 0 auto!important;white-space:nowrap!important;padding:6px 9px!important}
  .enterprise-search-summary{padding:10px 11px!important;border-radius:11px!important}
  .enterprise-search-summary>div:first-child{font-size:12px!important}
  .enterprise-search-summary>div:first-child strong{font-size:18px!important}
  .search-summary-badges span{padding:5px 8px!important;font-size:10px!important}
  .search-section-heading{padding:12px!important}
  .search-section-icon{width:34px!important;height:34px!important}
  .search-section-heading h2{font-size:15px!important}
  .profile-result-grid{padding:8px!important;gap:9px!important}
  .profile-result-card{padding:12px!important;border-radius:12px!important}
  .profile-result-main{grid-template-columns:42px minmax(0,1fr)!important}
  .profile-result-avatar{width:42px!important;height:42px!important}
  .profile-result-title-row{display:grid!important;gap:5px!important}
  .profile-result-facts{grid-template-columns:1fr!important}
  .profile-result-facts>div{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:8px 0!important;border-bottom:1px solid #edf1f6!important;background:transparent!important}
  .profile-result-facts>div:last-child{border-bottom:0!important}
  .profile-result-actions{grid-template-columns:1fr!important;gap:7px!important}
  .compact-result-list{padding:7px 8px 9px!important;gap:7px!important}
  .compact-result-row{grid-template-columns:1fr!important;gap:8px!important;border-radius:10px!important}
  .compact-result-meta{align-items:flex-start!important;text-align:left!important;min-width:0!important;flex-wrap:wrap!important}
}

/* Build 14.1.10 - fixed contextual help, desktop quick actions and compact search results */
.desktop-quick-actions{position:relative}
.desktop-quick-actions>summary{list-style:none;cursor:pointer}
.desktop-quick-actions>summary::-webkit-details-marker{display:none}
.desktop-quick-actions[open]>summary{background:var(--blue);border-color:var(--blue);color:#fff}
.desktop-quick-actions-menu{position:absolute;right:0;top:50px;width:350px;padding:14px;background:#fff;border:1px solid #c7d4e4;border-radius:14px;box-shadow:0 18px 44px rgba(15,35,70,.18);z-index:90}
.desktop-quick-actions-head{display:grid;gap:2px;padding:0 2px 11px;border-bottom:1px solid #e1e8f1;margin-bottom:10px}
.desktop-quick-actions-head strong{font-size:15px;color:var(--ink)}
.desktop-quick-actions-head small{font-size:11px;color:var(--muted)}
.desktop-quick-actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.desktop-quick-actions-grid a{display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;gap:9px;padding:10px;border:1px solid #d5dfeb;border-radius:11px;background:#f8fafd;color:var(--ink);text-decoration:none;min-width:0}
.desktop-quick-actions-grid a:hover{border-color:#91afe0;background:#f0f5ff}
.desktop-quick-actions-grid a .ui-icon{width:38px;height:38px;border-radius:50%;background:#e6efff;color:#1452bd;padding:9px}
.desktop-quick-actions-grid a span{display:grid;gap:2px;min-width:0}
.desktop-quick-actions-grid a strong{font-size:12px;line-height:1.2}
.desktop-quick-actions-grid a small{font-size:9.5px;line-height:1.25;color:var(--muted)}

@media(max-width:850px){
  header.workspace-bar{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:8px!important;padding:0 10px!important;overflow:visible!important}
  header.workspace-bar .menu-button,header.workspace-bar .desktop-collapse{display:none!important}
  header.workspace-bar .top-search{display:flex!important;min-width:0!important;width:100%!important;max-width:none!important;margin:0!important}
  header.workspace-bar .top-actions{display:grid!important;grid-template-columns:38px 38px 38px!important;gap:4px!important;align-items:center!important;justify-content:end!important;margin:0!important;width:122px!important;min-width:122px!important;overflow:visible!important}
  header.workspace-bar .desktop-quick-actions{display:none!important}
  header.workspace-bar .notification-menu{grid-column:1!important;order:1!important;display:block!important}
  header.workspace-bar .contextual-help-action{grid-column:2!important;order:2!important;display:grid!important;visibility:visible!important;opacity:1!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:50%!important;place-items:center!important;background:#edf3fa!important;border:1px solid #c4d2e3!important;color:#263a58!important;position:relative!important;inset:auto!important}
  header.workspace-bar .account-menu{grid-column:3!important;order:3!important;display:block!important}
  header.workspace-bar .notification-trigger,header.workspace-bar .user-chip{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;border-radius:50%!important;padding:0!important;display:grid!important;place-items:center!important}
  header.workspace-bar .avatar-sm{width:34px!important;height:34px!important;border-radius:50%!important}
  header.workspace-bar .chevron{display:none!important}
}
@media(max-width:390px){
  header.workspace-bar{grid-template-columns:minmax(0,1fr) 110px!important;gap:5px!important;padding-inline:8px!important}
  header.workspace-bar .top-actions{grid-template-columns:34px 34px 34px!important;gap:3px!important;width:108px!important;min-width:108px!important}
  header.workspace-bar .contextual-help-action,header.workspace-bar .notification-trigger,header.workspace-bar .user-chip{width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important}
  header.workspace-bar .avatar-sm{width:30px!important;height:30px!important}
}

/* Global search result density and alignment */
.search-section-heading{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}
.search-section-heading>.count-pill,.count-pill{width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;line-height:1!important}
.profile-result-main{display:grid!important;grid-template-columns:46px minmax(0,1fr)!important;gap:11px!important;align-items:center!important}
.profile-result-title-row{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:8px!important}
.profile-result-identity h3{margin:0!important;font-size:16px!important;line-height:1.25!important}
.profile-result-identity p{margin:3px 0 0!important;font-size:12px!important;color:var(--muted)!important}
.profile-result-facts{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}
.profile-result-facts>div{display:grid!important;gap:3px!important;padding:9px 10px!important;border:1px solid #e0e7f0!important;border-radius:9px!important;background:#f8fafc!important;min-width:0!important}
.profile-result-facts>div>span{font-size:9px!important;text-transform:uppercase!important;letter-spacing:.06em!important;color:#74839a!important;font-weight:800!important}
.profile-result-facts>div>strong{font-size:12px!important;overflow-wrap:anywhere!important}
.compact-result-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:14px!important}
.compact-result-row>div:first-child{min-width:0!important}
.compact-result-row>div:first-child strong{display:block!important;overflow-wrap:anywhere!important;line-height:1.3!important}
.compact-result-row>div:first-child span{display:block!important;overflow-wrap:anywhere!important;line-height:1.35!important}
.compact-result-meta{display:grid!important;grid-template-columns:auto auto!important;align-items:center!important;justify-content:end!important;gap:5px 8px!important;min-width:0!important;text-align:right!important}
.compact-result-meta small{grid-column:1/-1!important;color:var(--muted)!important}

@media(max-width:760px){
  .search-result-section{border-radius:16px!important;margin:0!important;overflow:hidden!important}
  .search-section-heading{padding:13px 14px!important;background:#f8faff!important}
  .search-section-heading>div:first-child{min-width:0!important}
  .search-section-heading h2{font-size:16px!important;line-height:1.2!important}
  .search-section-heading p{font-size:11px!important}
  .search-section-heading>.count-pill,.count-pill{width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;font-size:12px!important}
  .profile-result-grid{padding:10px!important}
  .profile-result-card{padding:13px!important;gap:11px!important}
  .profile-result-main{grid-template-columns:42px minmax(0,1fr)!important;gap:10px!important}
  .profile-result-title-row{display:grid!important;justify-content:stretch!important;gap:5px!important}
  .role-badges{display:flex!important;gap:5px!important;flex-wrap:wrap!important}
  .profile-result-facts{grid-template-columns:1fr 1fr!important;gap:7px!important}
  .profile-result-facts>div{display:grid!important;justify-content:stretch!important;align-items:start!important;padding:8px 9px!important;border:1px solid #e2e8f0!important;background:#f8fafc!important}
  .profile-result-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:0!important;padding-top:10px!important}
  .profile-result-actions .btn{width:100%!important;min-width:0!important;justify-content:center!important;text-align:center!important;white-space:normal!important}
  .profile-result-actions .btn:nth-child(3){grid-column:1/-1!important}
  .compact-result-list{padding:10px!important;gap:9px!important}
  .compact-result-row{grid-template-columns:1fr!important;gap:10px!important;padding:13px!important;border-radius:12px!important}
  .compact-result-row>div:first-child strong{font-size:14px!important;color:#104bb1!important}
  .compact-result-row>div:first-child span{font-size:11px!important;margin-top:3px!important}
  .compact-result-meta{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:6px 8px!important;flex-wrap:wrap!important;text-align:left!important;padding-top:8px!important;border-top:1px solid #e6ebf2!important}
  .compact-result-meta strong{font-size:13px!important;color:#124aa6!important}
  .compact-result-meta small{grid-column:auto!important;font-size:10px!important;margin-left:auto!important}
}

/* Build 14.2.0: Report Center */
.report-center{display:grid;grid-template-columns:300px minmax(0,1fr);gap:22px;align-items:start;min-width:0}
.report-library-desktop{position:sticky;top:84px;max-height:calc(100vh - 102px);overflow:hidden;padding:0;border:1px solid #cbd7e7;box-shadow:0 12px 30px rgba(15,35,75,.06)}
.report-library-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:20px;border-bottom:1px solid #dde5ef;background:linear-gradient(145deg,#f8fbff,#fff)}
.report-library-heading h2{margin:3px 0 2px;font-size:1.15rem}.report-library-heading p{margin:0;color:#64748b;font-size:.78rem}
.report-library-count{display:grid;place-items:center;min-width:42px;height:42px;padding:0 10px;border-radius:14px;background:#eaf2ff;color:#0b49c7;font-weight:800}
.report-library-search{display:flex;align-items:center;gap:10px;margin:14px;padding:0 13px;height:44px;border:1px solid #cbd7e7;border-radius:13px;background:#f8fafc}
.report-library-search .ui-icon{width:20px;height:20px;color:#55708f;flex:0 0 20px}.report-library-search input{border:0!important;box-shadow:none!important;background:transparent!important;padding:0!important;min-width:0;width:100%;height:auto!important}
.report-category-list{padding:0 12px 14px;overflow:auto;max-height:calc(100vh - 245px);overscroll-behavior:contain}
.report-category{border:1px solid transparent;border-radius:14px;margin:5px 0;overflow:hidden;background:#fff}
.report-category[open]{border-color:#c7d7ef;background:#fbfdff}
.report-category>summary{display:grid;grid-template-columns:40px minmax(0,1fr) auto 24px;gap:10px;align-items:center;padding:11px;cursor:pointer;list-style:none}
.report-category>summary::-webkit-details-marker{display:none}.report-category-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#edf3ff;color:#0b49c7}.report-category-icon .ui-icon{width:19px;height:19px}
.report-category-copy{min-width:0}.report-category-copy strong,.report-category-copy small{display:block}.report-category-copy strong{font-size:.87rem;color:#17243a}.report-category-copy small{font-size:.68rem;line-height:1.35;color:#718096;margin-top:2px}
.report-category-total{display:grid;place-items:center;min-width:28px;height:28px;border-radius:999px;background:#eef2f7;color:#526177;font-size:.72rem;font-weight:800}.report-category-chevron{display:grid;place-items:center;color:#607088;transition:transform .18s ease}.report-category-chevron svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round}.report-category[open] .report-category-chevron,.mobile-report-group[open] .report-category-chevron{transform:rotate(180deg)}
.report-category-links{display:grid;gap:3px;padding:0 10px 10px 60px}.report-category-links a{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 9px;border-radius:9px;color:#3b4b63;text-decoration:none;font-size:.8rem;line-height:1.3}.report-category-links a svg,.mobile-report-links a svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 17px}.report-category-links a:hover,.report-category-links a.active{background:#eaf2ff;color:#0b49c7;font-weight:700}
.report-workspace{min-width:0;display:grid;gap:16px}.report-center-header{display:flex;justify-content:space-between;gap:18px;align-items:center}.report-heading-copy{min-width:0}.report-change-button{display:none!important;align-items:center;gap:8px}.report-change-button .ui-icon{width:18px;height:18px}
.mobile-report-center{position:fixed;inset:0;z-index:10050}.mobile-report-backdrop{position:absolute;inset:0;border:0;background:rgba(9,19,36,.48);backdrop-filter:blur(3px)}.mobile-report-sheet{position:absolute;inset:0;background:#f5f8fc;display:flex;flex-direction:column;overflow:hidden}.mobile-report-header{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:18px 18px 14px;border-bottom:1px solid #d7e0ec;background:#fff}.mobile-report-header h2{margin:2px 0 3px;font-size:1.35rem}.mobile-report-header p{margin:0;color:#64748b;font-size:.78rem}.mobile-report-close{display:grid;place-items:center;width:42px;height:42px;min-width:42px;padding:0;border:1px solid #cbd7e7;border-radius:50%;background:#f1f5f9;color:#17243a;font-size:24px;line-height:1}.mobile-report-search{margin:14px 16px 10px;background:#fff}.mobile-report-groups{padding:0 14px calc(94px + env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain}.mobile-report-group{margin:9px 0;border:1px solid #cbd7e7;border-radius:17px;background:#fff;overflow:hidden;box-shadow:0 6px 18px rgba(15,35,75,.035)}.mobile-report-group>summary{display:grid;grid-template-columns:44px minmax(0,1fr) auto 24px;gap:11px;align-items:center;padding:13px;list-style:none;cursor:pointer}.mobile-report-group>summary::-webkit-details-marker{display:none}.mobile-report-group>summary>span:nth-child(2){min-width:0}.mobile-report-group strong,.mobile-report-group small{display:block}.mobile-report-group strong{font-size:.92rem}.mobile-report-group small{font-size:.72rem;color:#718096;line-height:1.35;margin-top:2px}.mobile-report-group b{display:grid;place-items:center;min-width:30px;height:30px;border-radius:999px;background:#eef2f7;color:#526177;font-size:.75rem}.mobile-report-links{display:grid;gap:7px;padding:0 12px 12px 67px}.mobile-report-links a{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;padding:10px 12px;border:1px solid #e0e7f0;border-radius:12px;background:#f8fafc;color:#304158;text-decoration:none;font-size:.82rem;font-weight:700}.mobile-report-links a.active{border-color:#9fbaf0;background:#eaf2ff;color:#0b49c7}.report-center-open{overflow:hidden!important}
@media(max-width:1000px){.report-center{grid-template-columns:1fr}.report-library-desktop{display:none!important}.report-change-button{display:inline-flex!important}.report-center-header{align-items:flex-start}.report-header-actions{justify-content:flex-end}.report-center .report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:700px){.report-center{display:block}.report-workspace{gap:13px}.report-center-header{display:grid;gap:13px;padding:16px!important}.report-center-header .report-header-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;width:100%}.report-center-header .report-header-actions>*{width:100%;min-width:0!important;justify-content:center;font-size:12px;padding-inline:10px}.report-change-button{grid-column:1/-1}.report-center .report-filter-grid{grid-template-columns:1fr!important}.report-center .report-summary-grid{grid-template-columns:1fr 1fr}.report-results{padding:14px!important}.report-results .section-toolbar{align-items:flex-start}.report-results .badge{white-space:nowrap}}
@media print{.report-library-desktop,.mobile-report-center,.report-change-button{display:none!important}.report-center{display:block!important}}

/* Build 14.2.1 - Contextual Help Center */
.contextual-help-action{display:inline-flex!important;visibility:visible!important;opacity:1!important;align-items:center;justify-content:center;flex:0 0 42px;width:42px;height:42px;padding:0;border:1px solid var(--border,#d8e0ec);border-radius:50%;background:#fff;color:#174a9f;cursor:pointer}
.contextual-help-action:hover{background:#edf4ff;border-color:#9eb8e7}
.context-help-backdrop{position:fixed;inset:0;background:rgba(13,31,58,.44);backdrop-filter:blur(2px);z-index:1190}
.context-help-center{position:fixed;top:0;right:0;bottom:0;width:min(430px,100vw);background:#fff;z-index:1200;box-shadow:-16px 0 40px rgba(15,35,70,.2);transform:translateX(105%);transition:transform .24s ease;display:flex;flex-direction:column;border-left:1px solid #d8e1ee}
.context-help-center.is-open{transform:translateX(0)}
.context-help-handle{display:none}
.context-help-header{display:flex;gap:18px;justify-content:space-between;padding:24px 24px 18px;border-bottom:1px solid #e1e7f0;background:linear-gradient(180deg,#f7faff,#fff)}
.context-help-eyebrow{display:block;color:#2861b5;font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em;margin-bottom:5px}
.context-help-header h2{font-size:1.35rem;margin:0 0 7px;color:#12284b}.context-help-header p{margin:0;color:#66738a;line-height:1.45;font-size:.92rem}
.context-help-close{flex:0 0 40px;width:40px;height:40px;border-radius:50%;border:1px solid #d4deeb;background:#fff;color:#3d4c64;font-size:1.55rem;line-height:1;display:grid;place-items:center;cursor:pointer;padding:0}
.context-help-search{margin:16px 24px 8px;display:flex;align-items:center;gap:10px;border:1px solid #cdd8e7;border-radius:14px;padding:0 14px;background:#fff;box-shadow:0 4px 14px rgba(23,61,120,.06)}
.context-help-search .ui-icon{width:20px;height:20px;color:#45658e}.context-help-search input{border:0!important;box-shadow:none!important;outline:0;width:100%;height:46px;padding:0;background:transparent;font-size:.95rem}
.context-help-body{overflow:auto;padding:8px 24px 24px;overscroll-behavior:contain;flex:1}
.context-help-section{padding:15px 0}.context-help-section+.context-help-section{border-top:1px solid #e6ebf2}.context-help-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:11px}.context-help-section-head strong,.context-help-section-title{color:#243b5e;font-size:.9rem}.context-help-section-head a{font-size:.78rem;font-weight:700;color:#1f62bc;text-decoration:none}
.context-help-links{display:grid;gap:9px}.context-help-links>a{display:grid;grid-template-columns:42px 1fr 20px;align-items:center;gap:11px;border:1px solid #dbe3ee;border-radius:14px;padding:11px 12px;text-decoration:none;background:#fff;color:#1c3153;transition:.16s ease}.context-help-links>a:hover{border-color:#9ab6e1;background:#f7faff;transform:translateY(-1px)}
.context-help-link-icon{width:40px;height:40px;border-radius:50%;background:#edf4ff;color:#225eb3;display:grid;place-items:center}.context-help-link-icon .ui-icon{width:20px;height:20px}.context-help-links strong{display:block;font-size:.91rem}.context-help-links small{display:block;color:#78859a;margin-top:3px;font-size:.76rem}.context-help-arrow{font-size:1.5rem;color:#7890b2}
.context-help-quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:11px}.context-help-quick-grid>a{border:1px solid #dce4ef;border-radius:14px;padding:13px;text-decoration:none;color:#203858;background:#f9fbfe}.context-help-quick-grid>a>span{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;color:#1d5cb2;margin-bottom:10px}.context-help-quick-grid .ui-icon{width:19px;height:19px}.context-help-quick-grid strong,.context-help-quick-grid small{display:block}.context-help-quick-grid strong{font-size:.87rem}.context-help-quick-grid small{font-size:.73rem;color:#77869a;margin-top:3px}
.context-help-empty{padding:18px;border-radius:14px;background:#f5f7fa;color:#66758b;text-align:center;font-size:.88rem}
.context-help-footer{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:15px 24px calc(15px + env(safe-area-inset-bottom));border-top:1px solid #e0e7f0;background:#fff}.context-help-footer .button{margin:0;min-height:44px;display:flex;align-items:center;justify-content:center;text-align:center}
body.context-help-open{overflow:hidden}
@media(max-width:760px){
 .workspace-bar{grid-template-columns:minmax(0,1fr) auto!important}.top-actions{display:grid!important;grid-template-columns:42px 42px 42px!important;gap:7px!important;align-items:center;flex:0 0 auto}.top-actions>.desktop-quick-actions{display:none!important}.top-actions>.notification-menu,.top-actions>.account-menu{min-width:0}.top-actions .notification-trigger,.top-actions .contextual-help-action,.top-actions .user-chip{width:42px!important;height:42px!important;min-width:42px!important;max-width:42px!important;border-radius:50%!important;padding:0!important;display:grid!important;place-items:center!important}.top-actions .user-chip-name,.top-actions .chevron{display:none!important}.top-actions .avatar-sm{width:38px!important;height:38px!important;min-width:38px!important;border-radius:50%!important}.top-search{min-width:0!important}.top-search input{font-size:.86rem!important}
 .context-help-center{top:auto;left:0;right:0;bottom:0;width:100%;height:min(86vh,760px);border-left:0;border-top:1px solid #d5dfeb;border-radius:24px 24px 0 0;transform:translateY(105%);box-shadow:0 -18px 44px rgba(11,31,65,.24)}.context-help-center.is-open{transform:translateY(0)}.context-help-handle{display:block;width:44px;height:5px;border-radius:10px;background:#c5cfdd;margin:9px auto 0}.context-help-header{padding:14px 18px 14px}.context-help-header h2{font-size:1.18rem}.context-help-header p{font-size:.84rem}.context-help-close{width:38px;height:38px;flex-basis:38px}.context-help-search{position:sticky;top:0;z-index:2;margin:10px 16px 5px;background:#fff}.context-help-body{padding:5px 16px 18px}.context-help-footer{padding:12px 16px calc(12px + env(safe-area-inset-bottom));grid-template-columns:1fr}.context-help-quick-grid{grid-template-columns:1fr 1fr}.context-help-links>a{grid-template-columns:40px 1fr 18px;padding:10px}.context-help-link-icon{width:38px;height:38px}
}
@media(max-width:390px){.workspace-bar{gap:6px!important}.top-actions{grid-template-columns:38px 38px 38px!important;gap:5px!important}.top-actions .notification-trigger,.top-actions .contextual-help-action,.top-actions .user-chip{width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important}.top-actions .avatar-sm{width:34px!important;height:34px!important;min-width:34px!important}.context-help-quick-grid{grid-template-columns:1fr}}

/* Build 14.3.0 - productivity and unified enterprise design */
:root{
 --ui-space-1:8px;--ui-space-2:16px;--ui-space-3:24px;--ui-space-4:32px;
 --ui-radius-card:16px;--ui-radius-control:12px;--ui-radius-pill:999px;
 --ui-shadow-card:0 8px 24px rgba(15,35,70,.06);--ui-shadow-float:0 18px 50px rgba(15,35,70,.22);
}
.panel,.card,.section-card{border-color:#ccd7e6;box-shadow:var(--ui-shadow-card)}
.table-wrap thead th,.data-table thead th{position:sticky;top:0;z-index:2;background:#f2f6fb;box-shadow:0 1px 0 #cbd6e5}
.button,.btn,button,input,select,textarea{border-radius:var(--ui-radius-control)}

/* Command palette */
.command-palette-layer{position:fixed;inset:0;z-index:1600;background:rgba(10,25,50,.52);backdrop-filter:blur(4px);display:grid;place-items:start center;padding-top:min(12vh,110px)}
.command-palette-layer[hidden]{display:none!important}.command-palette{width:min(680px,calc(100vw - 28px));background:#fff;border:1px solid #c9d5e5;border-radius:20px;box-shadow:var(--ui-shadow-float);overflow:hidden}
.command-palette-search{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:14px 16px;border-bottom:1px solid #dce4ef}.command-palette-search>span{font-size:1.45rem;color:#285ca8}.command-palette-search input{height:46px;border:0!important;box-shadow:none!important;font-size:1rem;padding:0}.command-palette-search kbd{border:1px solid #d4ddea;background:#f5f7fa;border-radius:7px;padding:4px 7px;color:#69778a;font-size:.7rem}
.command-palette-results{max-height:min(56vh,480px);overflow:auto;padding:8px}.command-result{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) 24px;gap:12px;align-items:center;text-align:left;border:0;background:#fff;padding:11px 12px;color:#1e3455;cursor:pointer;border-radius:13px}.command-result:hover,.command-result.active{background:#edf4ff}.command-result-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#e8f0ff;color:#1f5eb8;font-weight:900;font-size:1.15rem}.command-result strong,.command-result small{display:block}.command-result strong{font-size:.93rem}.command-result small{font-size:.75rem;color:#758299;margin-top:2px}.command-enter{color:#8a98aa}.command-palette-footer{display:flex;gap:18px;justify-content:flex-end;padding:10px 16px;border-top:1px solid #e1e7ef;background:#f8fafc;color:#728096;font-size:.7rem}.command-empty{padding:24px;text-align:center;color:#6f7d91}
body.command-open{overflow:hidden}

/* Search command style */
.search-enterprise-workspace{max-width:1180px;margin-inline:auto}.enterprise-search-form{border:1px solid #c8d5e6;background:linear-gradient(180deg,#fbfdff,#f6f9fd)}.global-search-hints{display:flex;gap:7px;align-items:center;overflow:auto;padding-bottom:2px}.global-search-hints button{flex:0 0 auto;border:1px solid #c9d6e7;background:#fff;color:#31557f;border-radius:999px;padding:7px 11px;font-size:.76rem}.global-search-hints button:hover{background:#eaf2ff;border-color:#9eb8df}
.compact-result-row{border:1px solid #d6e0ec!important;border-radius:13px!important;margin-bottom:8px;background:#fff!important}.compact-result-row:hover{border-color:#9bb8e2!important;box-shadow:0 7px 18px rgba(30,75,140,.08)}

/* Notifications grouped */
.notification-date-group{display:grid;gap:9px;margin:0 0 20px}.notification-date-heading{display:flex;align-items:center;justify-content:space-between;padding:0 4px}.notification-date-heading h2{font-size:.82rem;text-transform:uppercase;letter-spacing:.07em;color:#64748b;margin:0}.notification-date-heading span{display:grid;place-items:center;min-width:28px;height:28px;border-radius:999px;background:#eaf1fb;color:#285ca8;font-size:.72rem;font-weight:800}
.notification-date-group .notification-card,.notification-date-group .notification-item{border-color:#d1dbe8;box-shadow:0 5px 15px rgba(16,42,80,.04)}

/* Unified customer journey */
.customer-unified-timeline{margin-top:18px}.journey-timeline{position:relative;display:grid;gap:8px}.journey-event{display:grid;grid-template-columns:44px minmax(0,1fr) 22px;gap:12px;align-items:center;padding:11px 12px;border:1px solid #d7e0ec;border-radius:14px;text-decoration:none;color:#213858;background:#fff}.journey-event:hover{border-color:#9bb7df;background:#f8fbff}.journey-marker{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#eaf2ff;color:#245ea9}.journey-event.payment .journey-marker{background:#e8f8ef;color:#1d7a4b}.journey-marker .ui-icon{width:20px;height:20px}.journey-copy time,.journey-copy strong,.journey-copy small{display:block}.journey-copy time{font-size:.69rem;color:#748299;margin-bottom:2px}.journey-copy strong{font-size:.88rem}.journey-copy small{font-size:.76rem;color:#66758b;margin-top:3px}.journey-arrow{font-size:1.45rem;color:#8293ab}

/* Report personalization */
.report-personal-toolbar{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.report-personal-tab{border:1px solid #ccd8e8;background:#fff;color:#3b5578;border-radius:999px;padding:7px 12px;font-size:.76rem;font-weight:800}.report-personal-tab.active{background:#174f9f;border-color:#174f9f;color:#fff}.report-favorite-toggle{margin-left:auto;width:30px;height:30px;min-width:30px;padding:0;border:0;border-radius:50%;background:transparent;color:#aab4c2;font-size:1rem;display:grid;place-items:center}.report-favorite-toggle.active{color:#e6a700;background:#fff7d6}.report-favorite-toggle:hover{background:#eef3fa}.report-hidden{display:none!important}

/* Better density without crowding */
@media(min-width:901px){.dashboard-grid,.kpi-grid{gap:18px}.customer-profile-grid{gap:18px}.section-toolbar{margin-bottom:14px}.table-wrap{border-radius:14px;overflow:auto;border:1px solid #cdd8e7}.table-wrap table{border:0!important}}
@media(max-width:760px){
 .command-palette-layer{padding-top:70px;align-items:start}.command-palette{border-radius:18px}.command-palette-footer{display:none}.command-palette-results{max-height:65vh}.command-result{grid-template-columns:40px minmax(0,1fr) 18px;padding:10px}.command-palette-search{grid-template-columns:24px minmax(0,1fr);padding:10px 12px}.command-palette-search kbd{display:none}
 .global-search-hints{margin-inline:-2px}.enterprise-search-form{padding:14px!important}.search-form-heading h2{font-size:1.15rem}.profile-result-card{border-color:#cbd7e6!important}
 .journey-event{grid-template-columns:40px minmax(0,1fr) 16px;padding:10px}.journey-marker{width:38px;height:38px}
 .report-personal-toolbar{overflow:auto;flex-wrap:nowrap;padding-bottom:3px}.report-personal-tab{flex:0 0 auto}
 .table-wrap{border:0!important;box-shadow:none!important}.table-wrap table{border:0!important}
}

/* Build 14.3.1 - unified workspace, role dashboards, overlay report navigator and data tables */
:root{--ui-space-1:4px;--ui-space-2:8px;--ui-space-3:12px;--ui-space-4:16px;--ui-space-5:24px;--ui-space-6:32px;--ui-radius-control:10px;--ui-radius-card:14px;--ui-radius-pill:999px;--ui-border:#cfd8e6;--ui-surface:#fff;--ui-surface-soft:#f5f8fc;--ui-shadow-card:0 8px 24px rgba(26,48,83,.07);--ui-shadow-float:0 18px 50px rgba(15,34,67,.2)}
.panel,.kpi,.mini-stat,.role-command-card,.profile-result-card,.compact-result-row{border-color:var(--ui-border);box-shadow:var(--ui-shadow-card)}
.button,.btn,button,input,select,textarea{border-radius:var(--ui-radius-control)}
.badge,.count-pill,.page-number{border-radius:var(--ui-radius-pill)}
.role-command-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:16px 0 20px}
.role-command-card{display:grid;gap:6px;padding:18px;border:1px solid var(--ui-border);border-radius:var(--ui-radius-card);background:#fff;color:inherit;text-decoration:none}
.role-command-card span{font-size:12px;font-weight:800;color:#60708a;text-transform:uppercase;letter-spacing:.04em}.role-command-card strong{font-size:25px;color:#17345f}.role-command-card small{color:#6b7890;line-height:1.35}
.dashboard-pinned-reports{margin:18px 0}.pinned-report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.pinned-report-card{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--ui-border);border-radius:12px;text-decoration:none;color:#18345f;background:#f8fbff}.pinned-report-card:hover{border-color:#7da0d8;background:#fff}.pinned-report-card span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e5efff;color:#1857b7;font-weight:900}.pinned-report-card strong{font-size:14px}
.report-center{display:block}.report-workspace{width:100%;min-width:0}.report-library-desktop.report-navigator-drawer{display:block!important;position:fixed;z-index:1320;top:0;right:0;bottom:0;width:min(430px,94vw);margin:0;border-radius:18px 0 0 18px;overflow:auto;transform:translateX(105%);transition:transform .2s ease;box-shadow:var(--ui-shadow-float);padding-top:18px}.report-library-desktop.report-navigator-drawer.is-open{transform:translateX(0)}.report-navigator-backdrop{position:fixed;inset:0;z-index:1310;border:0;border-radius:0;background:rgba(10,26,52,.42);opacity:0;transition:opacity .18s ease}.report-navigator-backdrop.is-open{opacity:1}.report-library-heading{position:relative;padding-right:45px}.report-drawer-close{position:absolute;right:0;top:0;width:38px;height:38px;border-radius:50%;border:1px solid var(--ui-border);background:#fff;display:grid;place-items:center;font-size:25px;line-height:1;color:#53647d}.report-pin-current.active{color:#8a6100;border-color:#e3bd55;background:#fff9e5}.report-header-actions{align-items:center;flex-wrap:wrap}.report-results .table-wrap{max-width:100%}.report-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding-top:16px;border-top:1px solid var(--ui-border)}.report-pagination>div{display:flex;align-items:center;gap:6px}.page-number{display:grid;place-items:center;min-width:36px;height:36px;padding:0 9px;border:1px solid var(--ui-border);text-decoration:none;color:#35506f}.page-number.active{background:#1558bd;border-color:#1558bd;color:#fff}
.data-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0}.data-table-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.table-tool{min-height:36px;padding:7px 11px;border:1px solid var(--ui-border);background:#fff;color:#344c6d;font-weight:700;font-size:12px}.table-tool.active{background:#eaf2ff;color:#1454ae;border-color:#98b7e6}.table-column-menu{position:absolute;z-index:80;right:0;top:calc(100% + 6px);display:grid;gap:7px;min-width:220px;padding:12px;border:1px solid var(--ui-border);border-radius:12px;background:#fff;box-shadow:var(--ui-shadow-float)}.table-tool-wrap{position:relative}.table-column-menu label{display:flex;align-items:center;gap:8px;font-size:13px}.table-column-menu input{min-height:auto}.data-table-enhanced thead th:first-child,.data-table-enhanced tbody td:first-child{position:sticky;left:0;z-index:2;background:inherit}.data-table-enhanced thead th:first-child{z-index:4;background:#f2f6fb}.data-table-enhanced tbody tr:nth-child(even) td:first-child{background:#fbfcfe}.data-table-enhanced.compact td,.data-table-enhanced.compact th{padding-top:7px!important;padding-bottom:7px!important}.table-row-select{width:16px;height:16px;min-height:16px}.table-selection-cell{width:38px!important;min-width:38px!important}.deferred-panel{content-visibility:auto;contain-intrinsic-size:400px}.search-result-section{content-visibility:auto;contain-intrinsic-size:360px}
@media(max-width:900px){.role-command-grid,.pinned-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-library-desktop.report-navigator-drawer{display:none!important}}
@media(max-width:600px){.role-command-grid{grid-template-columns:1fr 1fr;gap:10px}.role-command-card{padding:14px}.role-command-card strong{font-size:21px}.pinned-report-grid{grid-template-columns:1fr}.data-table-toolbar{align-items:flex-start;flex-direction:column}.data-table-tools{width:100%}.table-tool{flex:1}.report-pagination{align-items:flex-start;flex-direction:column}.report-pagination>div{width:100%;overflow-x:auto;padding-bottom:3px}.report-header-actions{display:grid!important;grid-template-columns:1fr 1fr;width:100%}.report-header-actions>*{width:100%!important;min-width:0!important;justify-content:center}.report-change-button{grid-column:1/-1}.report-pin-current{grid-column:auto}.search-result-section{border-radius:12px}}


/* Build 14.3.2: permission-aware enterprise table and filter alignment */
.data-table-toolbar{min-height:48px;padding:10px 2px 12px;border-bottom:1px solid var(--ui-border,#d5dfeb);margin-bottom:0}
.table-selection-summary{display:flex;align-items:baseline;gap:5px;color:#617089;font-size:12px}.table-selection-summary strong{font-size:15px;color:#17365f}.data-table-toolbar:not(.has-selection) .table-selection-summary{opacity:.72}
.data-table-tools{justify-content:flex-end}.table-tool{border-radius:9px;white-space:nowrap}.table-tool-wrap{display:inline-flex;align-items:center}
.table-selection-cell{width:46px!important;min-width:46px!important;max-width:46px!important;text-align:center!important;padding-left:12px!important;padding-right:12px!important;vertical-align:middle!important}
.table-selection-cell .table-row-select{display:block;margin:0 auto;width:17px;height:17px;min-height:17px;accent-color:#1559b7}
.data-table-enhanced thead th:nth-child(2),.data-table-enhanced tbody td:nth-child(2){position:sticky;left:46px;z-index:2;background:inherit}
.data-table-enhanced thead th:nth-child(2){z-index:4;background:#f2f6fb}.data-table-enhanced tbody tr:nth-child(even) td:nth-child(2){background:#fbfcfe}
.data-table-enhanced thead th:first-child,.data-table-enhanced tbody td:first-child{left:0;z-index:5;background:#fff}.data-table-enhanced thead th:first-child{background:#f2f6fb}
.table-column-menu{max-height:min(60vh,420px);overflow:auto;min-width:260px}.table-column-option{display:grid!important;grid-template-columns:22px minmax(0,1fr);align-items:center!important;gap:10px!important;padding:7px 8px;border-radius:8px;margin:0!important}.table-column-option:hover{background:#f1f6fd}.table-column-option input{width:17px!important;height:17px!important;min-height:17px!important;margin:0!important}.table-column-option span{line-height:1.25;overflow-wrap:anywhere}
.data-table-enhanced th{position:relative}.table-resize-grip{position:absolute;right:-3px;top:0;width:8px;height:100%;cursor:col-resize;z-index:7}.table-resize-grip:after{content:"";position:absolute;right:3px;top:25%;height:50%;width:1px;background:transparent}.table-resize-grip:hover:after{background:#6f94c9}
.filter-grid,.report-filter-grid,.audit-filter-grid,.filters-grid,[data-filter-grid]{align-items:end!important}.filter-grid>label,.report-filter-grid>label,.audit-filter-grid>label,.filters-grid>label,[data-filter-grid]>label{align-self:end;margin:0}.filter-grid input,.filter-grid select,.report-filter-grid input,.report-filter-grid select,.audit-filter-grid input,.audit-filter-grid select,.filters-grid input,.filters-grid select{width:100%;min-width:0}
.filter-actions,.report-filter-actions,.audit-filter-actions,[class*="filter-actions"]{align-self:end!important;display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:9px!important;margin:0!important;min-height:44px}.filter-actions .button,.filter-actions button,.report-filter-actions .button,.report-filter-actions button,.audit-filter-actions .button,.audit-filter-actions button{margin:0!important;min-height:42px;justify-content:center}
.top-search-disabled{display:flex;align-items:center;color:#66758a;font-weight:700;padding-inline:14px}
@media(max-width:900px){.data-table-toolbar{display:none!important}.filter-grid,.report-filter-grid,.audit-filter-grid,.filters-grid,[data-filter-grid]{align-items:stretch!important}.filter-actions,.report-filter-actions,.audit-filter-actions,[class*="filter-actions"]{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%;justify-content:stretch!important}.filter-actions>*:only-child,.report-filter-actions>*:only-child,.audit-filter-actions>*:only-child{grid-column:1/-1}.top-search-disabled{min-height:42px}}


/* Build 14.3.3: report rendering repair and payment detail workspace */
.report-workspace .panel,.report-filter-panel,.report-summary-grid,.report-results{content-visibility:visible!important;contain:none!important}
.payment-view-page{display:grid;gap:18px}.payment-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px}.payment-hero-copy h1{margin:4px 0 5px;font-size:30px}.payment-hero-copy p{margin:0;color:var(--muted)}.payment-hero-amount{text-align:right}.payment-hero-amount span,.payment-hero-amount strong{display:block}.payment-hero-amount>span:first-child{font-size:12px;color:var(--muted)}.payment-hero-amount strong{font-size:31px;margin:5px 0 9px}.status-badge{display:inline-flex!important;align-items:center;justify-content:center;padding:6px 10px;border-radius:999px;font-size:11px;font-weight:800}.status-badge.success,.verification-state.success{background:#e7f7ee;color:#126b42}.status-badge.warning,.verification-state.warning{background:#fff4d8;color:#8a5a00}.status-badge.danger,.verification-state.danger{background:#fdebec;color:#a52a34}.payment-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.payment-kpi{padding:18px 20px;border:1px solid var(--ui-border,#d7e0ec);border-radius:14px;background:#fff;box-shadow:var(--ui-shadow-card,0 8px 22px rgba(31,50,81,.06))}.payment-kpi span,.payment-kpi strong{display:block}.payment-kpi span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.payment-kpi strong{font-size:17px;margin-top:6px;overflow-wrap:anywhere}.payment-layout-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:18px;align-items:start}.payment-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}.payment-detail-grid>div{padding:15px 16px;border:1px solid var(--ui-border,#d7e0ec);border-radius:12px;background:#f8fbff}.payment-detail-grid dt{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.payment-detail-grid dd{margin:6px 0 0;font-weight:800;overflow-wrap:anywhere}.payment-proof{margin-top:18px;padding-top:16px;border-top:1px solid var(--ui-border,#d7e0ec)}.payment-proof img{display:block;width:100%;max-height:420px;object-fit:contain;border-radius:12px;border:1px solid var(--ui-border,#d7e0ec);background:#f8fafc}.payment-verification-card h2{margin:4px 0 16px}.verification-state{display:flex;gap:14px;align-items:flex-start;padding:18px;border-radius:14px}.verification-state-icon{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:grid;place-items:center;background:#fff;font-weight:900}.verification-state strong{font-size:17px}.verification-state p{margin:5px 0 0;color:inherit}.payment-reject-box{margin-top:16px;padding:16px;border:1px solid #efc4c8;border-radius:14px;background:#fff7f7}.payment-allocation-card .table-wrap{margin-top:4px}
@media(max-width:900px){.payment-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.payment-layout-grid{grid-template-columns:1fr}}
@media(max-width:700px){.payment-view-page{gap:14px}.payment-hero{align-items:flex-start;padding:18px;display:grid}.payment-hero-copy h1{font-size:23px}.payment-hero-amount{text-align:left}.payment-hero-amount strong{font-size:26px}.payment-kpi-grid{gap:10px}.payment-kpi{padding:14px}.payment-kpi strong{font-size:14px}.payment-detail-grid{grid-template-columns:1fr}.payment-detail-card,.payment-verification-card,.payment-allocation-card{padding:16px!important}.payment-detail-card .section-toolbar{align-items:flex-start}.payment-detail-card .section-toolbar .button{width:auto!important}.verification-state{padding:15px}.payment-allocation-card .section-toolbar{align-items:flex-start}}

/* Build 14.3.4: report rendering repair */
.report-workspace>.report-force-visible,.report-workspace>.report-filter-panel,.report-workspace>.report-summary-grid,.report-workspace>.report-results{display:block!important;visibility:visible!important;opacity:1!important;content-visibility:visible!important;contain:none!important;transform:none!important;max-height:none!important;overflow:visible}
.report-workspace>.report-summary-grid{display:grid!important}
.report-filter-panel[data-report-filter-panel]{padding:20px 22px!important}
.report-change-button{display:inline-flex!important}
.report-error-card{display:flex!important;align-items:center;justify-content:space-between;gap:18px;border-color:#efb4b4!important;background:#fff7f7!important}.report-error-card strong{color:#9f1d2d}.report-error-card p{margin:5px 0 0;color:#6f3340}
@media(max-width:700px){.report-error-card{align-items:flex-start;flex-direction:column}.report-error-card .button{width:100%}.report-workspace>.report-summary-grid{grid-template-columns:1fr 1fr!important}.report-filter-panel[data-report-filter-panel]{padding:15px!important}}

/* Build 14.4.0 - Collections Workbench */
.followup-command{display:flex;align-items:center;justify-content:space-between;gap:18px}.followup-command h2{margin:.2rem 0}.followup-queue-tabs{display:flex;gap:8px;overflow:auto;padding:2px 1px 8px;scrollbar-width:thin}.followup-queue-tab{display:flex;align-items:center;gap:9px;flex:0 0 auto;padding:10px 14px;border:1px solid var(--ui-border,#cfd9e8);border-radius:999px;background:#fff;color:#32445e;text-decoration:none;font-weight:800}.followup-queue-tab b{display:grid;place-items:center;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#eef3fa;color:#416080;font-size:.74rem}.followup-queue-tab.active{background:#1156c9;color:#fff;border-color:#1156c9}.followup-queue-tab.active b{background:rgba(255,255,255,.18);color:#fff}.followup-filter-panel{padding:18px 20px}.followup-filter-grid{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(150px,1fr));gap:12px;align-items:end}.followup-filter-grid label{display:grid;gap:6px;margin:0;font-weight:800;font-size:.82rem}.followup-filter-actions{display:flex;gap:9px;justify-content:flex-end;grid-column:1/-1}.followup-result-toolbar{gap:16px}.followup-bulk-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.followup-bulk-controls select{width:auto;min-width:150px}.followup-card-list{display:grid;gap:13px}.followup-work-card{border:1px solid #cbd7e7;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 5px 18px rgba(25,55,95,.045)}.followup-work-card.urgent{border-left:4px solid #d23b4b}.followup-card-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:13px;padding:15px 16px;border-bottom:1px solid #e2e8f1}.followup-select{display:grid;place-items:center;margin:0}.followup-select input{width:18px;height:18px}.followup-customer{display:flex;align-items:center;gap:12px;min-width:0}.followup-customer h3{margin:0 0 2px;font-size:1rem}.followup-customer p{margin:0;color:#687b95;font-size:.82rem;overflow-wrap:anywhere}.avatar-circle{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:50%;background:#e9f1ff;border:1px solid #c9d9f2;color:#1457c7;font-weight:900}.followup-card-badges{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.followup-expand{width:38px;height:38px;min-width:38px;padding:0;border-radius:50%;border:2px solid #1458ca;background:#fff;color:#1458ca;display:grid;place-items:center;font-size:22px;line-height:1}.followup-card-summary{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0}.followup-card-summary>div{padding:14px 16px;border-right:1px solid #e7ebf2}.followup-card-summary>div:last-child{border-right:0}.followup-card-summary span{display:block;color:#718096;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;font-weight:800;margin-bottom:5px}.followup-card-summary strong{display:block;font-size:.9rem;overflow-wrap:anywhere}.followup-card-detail{padding:16px;background:#f8fafc;border-top:1px solid #e2e8f1}.followup-inline-form,.followup-reassign-row{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr)) auto;gap:12px;align-items:end}.followup-inline-form label,.followup-reassign-row label,.followup-action-form label{display:grid;gap:6px;margin:0;font-size:.8rem;font-weight:800}.followup-action-form{display:grid;grid-template-columns:repeat(4,minmax(145px,1fr));gap:12px;margin-top:15px;padding-top:15px;border-top:1px solid #dfe6f0}.followup-promise-fields{display:none;grid-column:1/-1;grid-template-columns:repeat(2,minmax(160px,1fr));gap:12px}.followup-promise-fields.is-active{display:grid}.followup-notes{grid-column:1/-1}.followup-action-buttons{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}.followup-pagination{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid #dde5ef}.followup-pagination>div{display:flex;align-items:center;gap:6px}.followup-empty{padding:50px 18px}.status-badge.urgent{background:#fde6e9;color:#b51f34}.status-badge.high{background:#fff1d8;color:#9a5d00}.status-badge.normal{background:#e8f2ff;color:#175cba}
@media(max-width:900px){.followup-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.followup-card-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.followup-card-summary>div:nth-child(3n){border-right:0}.followup-action-form{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.followup-command{align-items:flex-start;flex-direction:column;padding:16px!important}.followup-view-actions{width:100%}.followup-view-actions .button{width:100%}.followup-queue-tabs{margin-inline:-2px;padding-bottom:10px}.followup-queue-tab{padding:9px 12px}.followup-filter-panel{padding:14px!important}.followup-filter-grid{grid-template-columns:1fr}.followup-filter-actions{display:grid;grid-template-columns:1fr 1fr}.followup-filter-actions>*{width:100%}.followup-result-toolbar{align-items:flex-start;flex-direction:column}.followup-bulk-controls{display:grid;grid-template-columns:1fr 1fr;width:100%}.followup-bulk-controls select{width:100%;min-width:0}.followup-bulk-controls button{grid-column:1/-1;width:100%}.followup-card-header{grid-template-columns:auto minmax(0,1fr) auto;padding:13px}.followup-select{grid-row:1/3}.followup-card-badges{grid-column:2;justify-content:flex-start}.followup-expand{grid-column:3;grid-row:1/3}.followup-card-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.followup-card-summary>div{padding:12px;border-right:1px solid #e7ebf2;border-bottom:1px solid #e7ebf2}.followup-card-summary>div:nth-child(2n){border-right:0}.followup-card-summary>div:nth-last-child(-n+2){border-bottom:0}.followup-card-detail{padding:13px}.followup-inline-form,.followup-reassign-row,.followup-action-form,.followup-promise-fields{grid-template-columns:1fr}.followup-inline-form button,.followup-reassign-row button{width:100%}.followup-action-buttons{display:grid;grid-template-columns:1fr 1fr}.followup-action-buttons button{grid-column:1/-1}.followup-pagination{align-items:flex-start;flex-direction:column}.followup-pagination>div{width:100%;overflow:auto;padding-bottom:5px}}

/* Report rendering repair: class is fully qualified in PHP and content always occupies the workspace. */
.report-workspace>.report-filter-panel,.report-workspace>.report-results{display:block!important}.report-workspace>.report-summary-grid{display:grid!important}


/* Build 14.4.1: centered desktop Report Center and detailed follow-up history */
.desktop-report-modal[hidden]{display:none!important}.desktop-report-modal{position:fixed;inset:0;z-index:1420;display:grid;place-items:center;padding:32px}.desktop-report-modal .report-navigator-backdrop{position:absolute;inset:0;border:0;border-radius:0;background:rgba(8,24,50,.56);backdrop-filter:blur(3px)}.report-library-desktop.report-navigator-modal{position:relative;z-index:1;width:min(980px,calc(100vw - 64px));max-height:min(820px,calc(100vh - 64px));overflow:auto;border-radius:20px;padding:24px;box-shadow:0 28px 80px rgba(4,20,48,.28);transform:translateY(18px) scale(.985);opacity:0;transition:transform .18s ease,opacity .18s ease}.desktop-report-modal.is-open .report-navigator-modal{transform:none;opacity:1}.desktop-report-modal .report-category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.desktop-report-modal .report-category{margin:0;align-self:start}.desktop-report-modal .report-library-search{position:sticky;top:-24px;z-index:3;background:#fff;padding:12px 0 16px}.desktop-report-modal .report-library-heading{position:sticky;top:-24px;z-index:4;background:#fff;padding-bottom:14px}.desktop-report-modal .report-drawer-close{right:0;top:0}.followup-history{margin-top:22px;padding-top:20px;border-top:1px solid var(--ui-border)}.followup-history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.followup-history-heading h4{margin:4px 0 0}.followup-timeline{list-style:none;margin:0;padding:0 0 0 18px;position:relative}.followup-timeline:before{content:"";position:absolute;left:6px;top:8px;bottom:8px;width:2px;background:#d8e3f1}.followup-timeline li{position:relative;padding:0 0 16px 22px}.followup-timeline-marker{position:absolute;left:-17px;top:8px;width:12px;height:12px;border-radius:50%;background:#1558bd;border:3px solid #fff;box-shadow:0 0 0 2px #b8cdeb}.followup-timeline-card{border:1px solid var(--ui-border);border-radius:14px;padding:14px;background:#fbfdff}.followup-timeline-card header,.followup-timeline-card footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.followup-timeline-card header span,.followup-timeline-card footer{color:var(--muted);font-size:.82rem}.followup-timeline-card p{margin:8px 0;line-height:1.45}.followup-timeline-card footer{justify-content:flex-start}.followup-inline-form,.followup-reassign-row{align-items:end}.followup-inline-form select,.followup-reassign-row select{min-width:180px}
@media(max-width:900px){.desktop-report-modal{display:none!important}.followup-history-heading{align-items:flex-start}.followup-timeline-card header{align-items:flex-start}.followup-timeline-card footer{display:grid;grid-template-columns:1fr}.followup-timeline{padding-left:14px}.followup-timeline li{padding-left:18px}.followup-timeline-marker{left:-13px}.followup-inline-form,.followup-reassign-row{display:grid;grid-template-columns:1fr}.followup-inline-form button,.followup-reassign-row button{width:100%}}
/* Build 14.4.2: reliable report navigator, assignment identity, and profile photos */
.report-center{position:relative}
.desktop-report-picker{position:absolute;right:18px;top:18px;z-index:1450}
.desktop-report-picker>summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px}
.desktop-report-picker>summary::-webkit-details-marker{display:none}
.desktop-report-picker[open]{position:fixed;inset:0;display:grid;place-items:center;padding:28px;z-index:1450}
.desktop-report-picker[open]>summary{display:none}
.desktop-report-picker-backdrop{position:absolute;inset:0;background:rgba(8,24,50,.58);backdrop-filter:blur(3px)}
.report-picker-panel{position:relative;z-index:1;width:min(1040px,calc(100vw - 56px));max-height:calc(100vh - 56px);overflow:hidden;display:grid;grid-template-rows:auto auto minmax(0,1fr);padding:22px;border-radius:18px;box-shadow:0 28px 80px rgba(4,20,48,.32)}
.report-picker-panel .report-library-heading{position:relative;padding:0 48px 12px 0}
.report-picker-panel .report-library-search{margin:0 0 14px}
.report-picker-panel .report-category-list{overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:2px 4px 16px 0;scrollbar-gutter:stable}
.report-picker-panel .report-category{align-self:start;margin:0}
.report-picker-panel .report-drawer-close{right:0;top:0}
.report-center-header{padding-right:180px!important}
.report-center-header .report-change-button{display:none!important}
body:has(.desktop-report-picker[open]){overflow:hidden}
.avatar-circle{position:relative;overflow:hidden;border-radius:50%;isolation:isolate}
.avatar-circle span{display:grid;place-items:center;width:100%;height:100%}
.avatar-circle img{position:absolute;inset:0;z-index:2;width:100%;height:100%;object-fit:cover;object-position:center;border-radius:50%;background:#eaf1ff}
.person-table-avatar{margin:auto}
.applicant-avatar{position:relative;overflow:hidden;isolation:isolate}
.applicant-avatar>span{display:grid;place-items:center;width:100%;height:100%}
.applicant-avatar img{position:absolute!important;inset:0;z-index:2;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important;background:#eaf1ff}
@media(max-width:1000px){
  .desktop-report-picker{display:none!important}
  .report-center-header{padding-right:16px!important}
  .report-center-header .report-change-button{display:inline-flex!important}
}
@media(max-width:700px){
  .person-table-avatar{margin:0}
}
/* Build 14.5.0: reliable desktop Report Explorer */
.report-explorer-layout{display:grid!important;grid-template-columns:0 minmax(0,1fr);gap:0;align-items:start;transition:grid-template-columns .2s ease}.report-explorer-layout.report-explorer-open{grid-template-columns:340px minmax(0,1fr);gap:18px}.report-explorer{position:sticky;top:86px;height:calc(100vh - 108px);min-height:520px;overflow:hidden;padding:0!important;opacity:0;pointer-events:none;transform:translateX(-16px);transition:opacity .18s ease,transform .18s ease}.report-explorer-open .report-explorer{opacity:1;pointer-events:auto;transform:none}.report-explorer-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px;border-bottom:1px solid var(--ui-border)}.report-explorer-head h2{margin:3px 0}.report-explorer-head p{margin:0;color:var(--muted);font-size:.82rem}.report-explorer-close{width:36px;height:36px;min-width:36px;border-radius:50%;border:1px solid var(--ui-border);background:#fff;color:#53647d;font-size:24px;line-height:1;display:grid;place-items:center}.report-explorer-search{margin:14px 14px 8px}.report-explorer-shortcuts{display:flex;gap:7px;padding:0 14px 12px;overflow:auto}.report-explorer-chip{border:1px solid var(--ui-border);background:#fff;color:#40536d;border-radius:999px;padding:7px 11px;font-size:.76rem;font-weight:750;white-space:nowrap}.report-explorer-chip.active{background:#eaf2ff;border-color:#9cbaf0;color:#0b49c7}.report-explorer-groups{height:calc(100% - 166px);overflow:auto;padding:0 10px 16px;scrollbar-gutter:stable}.report-explorer-group{border-bottom:1px solid #e6ecf4}.report-explorer-group-toggle{width:100%;display:grid;grid-template-columns:38px minmax(0,1fr) auto 18px;align-items:center;gap:10px;border:0;background:transparent;padding:11px 7px;text-align:left;color:var(--text)}.report-explorer-group-toggle>span:nth-child(2){min-width:0}.report-explorer-group-toggle strong,.report-explorer-group-toggle small{display:block}.report-explorer-group-toggle small{font-size:.7rem;color:var(--muted);line-height:1.3;margin-top:2px}.report-explorer-group-toggle b{min-width:28px;height:28px;border-radius:999px;background:#edf2f8;display:grid;place-items:center;font-size:.72rem;color:#526177}.report-explorer-group-toggle>svg{width:17px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .18s}.report-explorer-group-toggle[aria-expanded=true]>svg{transform:rotate(180deg)}.report-explorer-links{display:grid;gap:4px;padding:0 7px 10px 55px}.report-explorer-links a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 10px;border-radius:9px;color:#32445e;text-decoration:none;font-size:.79rem;font-weight:700}.report-explorer-links a:hover{background:#f2f6fb}.report-explorer-links a.active{background:#eaf2ff;color:#0b49c7}.report-explorer-links svg{width:15px;fill:none;stroke:currentColor;stroke-width:2}.report-workspace{min-width:0}.report-center-header .report-change-button{display:inline-flex!important}.desktop-report-picker,.desktop-report-modal{display:none!important}
@media(max-width:900px){.report-explorer-layout,.report-explorer-layout.report-explorer-open{display:block!important}.report-explorer{display:none!important}.report-center-header .report-change-button{display:inline-flex!important}}
@media print{.report-explorer{display:none!important}.report-explorer-layout,.report-explorer-layout.report-explorer-open{display:block!important}}
/* Follow-up bulk controls */
.followup-bulk-controls{display:grid;grid-template-columns:minmax(150px,1fr) minmax(170px,1.15fr) auto;gap:8px;align-items:center}.followup-bulk-controls select,.followup-bulk-controls button{min-height:42px}.followup-bulk-controls [data-bulk-assignee][hidden]{display:none!important}@media(max-width:700px){.followup-bulk-controls{grid-template-columns:1fr 1fr}.followup-bulk-controls button{grid-column:1/-1;width:100%}}
/* Binary permissions do not show meaningless Own/Team choices */
.permission-table .scope-not-applicable{color:#a3afbf;text-align:center;font-weight:700}

/* Build 14.5.1 final UI and workflow repairs */
.report-filter-collapsible{padding:0!important;overflow:visible}.report-filter-toggle{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:17px 20px;border:0;background:transparent;color:var(--ui-text,#14233c);text-align:left}.report-filter-toggle>span:nth-child(2){display:grid;gap:3px}.report-filter-toggle small{color:#718096;font-weight:500}.report-filter-toggle>svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .2s}.report-filter-collapsible.open .report-filter-toggle>svg{transform:rotate(180deg)}.report-filter-body{padding:0 20px 20px;border-top:1px solid #e2e8f0}.report-filter-body[hidden]{display:none!important}
.announcement-filter-grid>.universal-date-filter{grid-column:auto;min-width:0;width:100%;justify-self:stretch!important}.announcement-filter-grid>.universal-date-filter summary{width:100%!important;max-width:none!important;min-width:0!important}.announcement-filter-grid>.universal-date-filter>label{display:grid!important}
@media(min-width:1121px){.announcement-filter-grid>.universal-date-filter{grid-column:5/6;grid-row:2}.announcement-filter-actions{grid-column:1/-1}}
@media(max-width:1120px){.announcement-filter-grid>.universal-date-filter{grid-column:1/-1;max-width:360px;justify-self:end!important}}
@media(max-width:700px){.announcement-filter-grid>.universal-date-filter{max-width:none;justify-self:stretch!important}.announcement-filter-grid>.universal-date-filter>label{display:none!important}}
.followup-bulk-controls{margin:0}.followup-bulk-controls [data-bulk-assignee]:not([hidden]){display:block!important}

/* Build 14.5.2: report filter stabilization */
.report-filter-collapsible{
  padding:0!important;
  overflow:hidden!important;
  background:#fff!important;
  border:1px solid var(--ui-border,#d7e0ec)!important;
  border-radius:16px!important;
  box-shadow:var(--ui-shadow,0 8px 24px rgba(15,35,70,.06));
}
.report-filter-collapsible>summary{
  list-style:none!important;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}
.report-filter-collapsible>summary::-webkit-details-marker{display:none!important}
.report-filter-collapsible .report-filter-toggle{
  width:100%!important;
  display:grid!important;
  grid-template-columns:40px minmax(0,1fr) 20px!important;
  align-items:center!important;
  gap:12px!important;
  padding:16px 20px!important;
  margin:0!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--ui-text,#14233c)!important;
  box-shadow:none!important;
  text-align:left!important;
  min-height:72px;
}
.report-filter-collapsible .report-filter-toggle:hover{background:#f8fbff!important}
.report-filter-toggle-icon{
  width:40px;height:40px;border-radius:12px;background:#edf4ff;color:#0b55d4;
  display:grid;place-items:center;
}
.report-filter-toggle-icon svg{width:20px;height:20px}
.report-filter-toggle>span:nth-child(2){display:grid;gap:2px;min-width:0}
.report-filter-toggle strong{font-size:1rem;line-height:1.2}
.report-filter-toggle small{font-size:.8rem;color:#6c7d95!important;font-weight:500;line-height:1.35}
.report-filter-toggle>svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;transition:transform .18s ease}
.report-filter-collapsible[open] .report-filter-toggle>svg{transform:rotate(180deg)}
.report-filter-collapsible:not([open]) .report-filter-body{display:none!important}
.report-filter-body{padding:18px 20px 20px!important;border-top:1px solid #e5ebf3!important;background:#fff!important}
.report-filter-grid{align-items:end!important}
.report-filter-actions{margin-top:2px!important}
.report-filter-reset{background:#f2f5f9!important;color:#33445d!important;border-color:#e2e8f0!important}
.report-filter-reset:hover{background:#e8edf4!important}
.report-filter-panel .report-favorite-toggle{display:none!important}
@media(max-width:700px){
  .report-filter-collapsible .report-filter-toggle{grid-template-columns:38px minmax(0,1fr) 18px!important;padding:14px 15px!important;min-height:66px}
  .report-filter-toggle-icon{width:38px;height:38px}
  .report-filter-body{padding:14px 15px 16px!important}
}

/* Build 14.5.3 report explorer stabilization */
.report-explorer-group.active{background:#f7faff;border:1px solid #d5e2f5;border-radius:12px;margin:4px 0;overflow:hidden}
.report-explorer-group.active .report-explorer-group-toggle{background:#eef5ff;color:#17375f}
.report-explorer-group.active .report-explorer-group-toggle strong{color:#17375f}
.report-explorer-group.active .report-explorer-group-toggle small{color:#60738f}
.report-explorer-group.active .report-explorer-group-toggle b{background:#fff;color:#0b49c7;border:1px solid #c9d9f4}
.report-explorer-group-toggle:hover{background:#f6f9fd;border-radius:10px}
.report-explorer-group-toggle:focus-visible{outline:3px solid rgba(11,73,199,.18);outline-offset:2px}
.report-explorer-links{padding-left:48px}
.report-explorer-links a{min-height:38px;line-height:1.25}
.report-explorer-links a span{min-width:0;overflow-wrap:anywhere}
.report-explorer-groups{overscroll-behavior:contain}
.report-explorer [data-no-tooltip]{cursor:pointer}
@media (min-width:901px){.report-explorer-layout.report-explorer-open{grid-template-columns:minmax(320px,360px) minmax(0,1fr)}.report-explorer{min-width:0}}

/* Build 14.5.3 report explorer viewport and scrolling repair */
@media (min-width:901px){
  .report-explorer{
    display:flex;
    flex-direction:column;
    height:min(680px,calc(100dvh - 190px));
    min-height:360px;
    max-height:calc(100dvh - 190px);
    overflow:hidden;
  }
  .report-explorer-head,.report-explorer-search,.report-explorer-shortcuts{flex:0 0 auto}
  .report-explorer-groups{
    flex:1 1 auto;
    min-height:0;
    height:auto;
    overflow-y:auto;
    overflow-x:hidden;
    padding-bottom:28px;
    scrollbar-gutter:stable both-edges;
  }
  .report-explorer-group:last-child{margin-bottom:12px}
  .report-explorer-links{max-width:100%}
}


/* Build 14.5.4: mobile UI stabilization across directories, permissions, performance and follow-up */
.people-mobile-meta{display:none}
@media(max-width:760px){
  /* Customer and guarantor cards: avatar + identity + one circular expander. */
  .people-directory-table tbody{gap:12px!important}
  .people-directory-table tr{display:grid!important;grid-template-columns:52px minmax(0,1fr) 42px!important;column-gap:12px!important;row-gap:2px!important;padding:15px!important;align-items:center!important;border:1px solid #c9d6e6!important;border-radius:18px!important;box-shadow:0 5px 16px rgba(21,55,94,.055)!important}
  .people-directory-table td{min-width:0!important}
  .people-directory-table td.mobile-primary-cell:nth-child(1){display:grid!important;grid-column:1!important;grid-row:1/3!important;align-self:start!important}
  .people-directory-table td.mobile-primary-cell.people-name-cell{display:block!important;grid-column:2!important;grid-row:1/3!important;align-self:center!important;white-space:normal!important;overflow-wrap:normal!important;word-break:normal!important}
  .people-directory-table .person-table-avatar{width:48px!important;height:48px!important;min-width:48px!important;border-radius:50%!important;margin:0!important;overflow:hidden!important}
  .people-directory-table .person-table-avatar img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;border-radius:50%!important}
  .people-directory-table .people-name-cell strong{display:block!important;font-size:1rem!important;line-height:1.25!important;color:#14243c!important;white-space:normal!important;word-break:normal!important}
  .people-directory-table .people-mobile-meta{display:block!important;margin-top:5px!important;color:#697a92!important;font-size:.78rem!important;line-height:1.35!important;overflow-wrap:anywhere!important}
  .people-directory-table td.mobile-row-toggle-cell{grid-column:3!important;grid-row:1/3!important;align-self:center!important}
  .people-directory-table .mobile-row-more{width:38px!important;height:38px!important;min-width:38px!important;border-radius:50%!important;border:2px solid #1557c8!important;background:#fff!important;color:#1557c8!important;box-shadow:none!important}
  .people-directory-table .mobile-row-details{grid-column:1/-1!important;margin-top:12px!important;padding-top:12px!important}

  /* Permissions become clear mobile cards with labelled scope choices. */
  form.panel>.subpanel{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  form.panel>.subpanel>h2{margin:22px 0 10px!important;font-size:1.45rem!important}
  .permission-table{min-width:0!important;width:100%!important;display:block!important}
  .permission-table thead{display:none!important}
  .permission-table tbody{display:grid!important;gap:12px!important}
  .permission-table tr.permission-row{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;padding:15px!important;border:1px solid #cbd7e7!important;border-radius:18px!important;background:#fff!important;box-shadow:0 4px 14px rgba(20,49,85,.05)!important}
  .permission-table tr.permission-row>td{display:grid!important;place-items:center!important;padding:0!important;border:0!important;min-width:0!important}
  .permission-table tr.permission-row>td:first-child{grid-column:1/-1!important;display:block!important;padding:0 0 12px!important;border-bottom:1px solid #e3e9f1!important;text-align:left!important}
  .permission-table tr.permission-row>td:first-child strong{display:block!important;font-size:1rem!important;line-height:1.25!important}
  .permission-table tr.permission-row>td:first-child small{display:block!important;margin-top:4px!important;color:#718096!important;overflow-wrap:anywhere!important}
  .permission-table tr.permission-row>td:not(:first-child){position:relative!important;min-height:62px!important;padding-top:23px!important;border:1px solid #e1e7ef!important;border-radius:12px!important;background:#f8fafc!important}
  .permission-table tr.permission-row>td:nth-child(2)::before{content:'None'}
  .permission-table tr.permission-row>td:nth-child(3)::before{content:'Own'}
  .permission-table tr.permission-row>td:nth-child(4)::before{content:'Team'}
  .permission-table tr.permission-row>td:nth-child(5)::before{content:'All'}
  .permission-table tr.permission-row>td:not(:first-child)::before{position:absolute!important;top:8px!important;left:0!important;right:0!important;text-align:center!important;font-size:.68rem!important;text-transform:uppercase!important;letter-spacing:.05em!important;color:#718096!important;font-weight:800!important}
  .permission-table input[type=radio]{width:20px!important;height:20px!important;min-height:20px!important;margin:0!important}
  .permission-table .scope-not-applicable{display:none!important}
  .permission-table tr.permission-binary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .permission-table tr.permission-binary>td:nth-child(3),.permission-table tr.permission-binary>td:nth-child(4){display:none!important}
  .permission-table tr.permission-binary>td:nth-child(2){grid-column:1!important}
  .permission-table tr.permission-binary>td:nth-child(5){grid-column:2!important}

  /* Performance tables and key/value lists must never overflow the viewport. */
  .performance-two-column{grid-template-columns:1fr!important}
  .performance-largest-table,.performance-slow-table,.performance-maintenance-table{overflow:visible!important}
  .performance-largest-table table,.performance-slow-table table,.performance-maintenance-table table{display:block!important;width:100%!important;min-width:0!important}
  .performance-largest-table thead,.performance-slow-table thead,.performance-maintenance-table thead{display:none!important}
  .performance-largest-table tbody,.performance-slow-table tbody,.performance-maintenance-table tbody{display:grid!important;gap:10px!important}
  .performance-largest-table tr,.performance-slow-table tr,.performance-maintenance-table tr{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;padding:14px!important;border:1px solid #d3ddea!important;border-radius:14px!important;background:#fff!important}
  .performance-largest-table td,.performance-slow-table td,.performance-maintenance-table td{display:block!important;padding:0!important;border:0!important;min-width:0!important;overflow-wrap:anywhere!important}
  .performance-largest-table td:first-child,.performance-slow-table td:first-child,.performance-maintenance-table td:first-child{grid-column:1/-1!important;font-size:.95rem!important}
  .performance-largest-table td:nth-child(2)::before{content:'Rows';display:block;color:#718096;font-size:.68rem;text-transform:uppercase;font-weight:800;margin-bottom:4px}
  .performance-largest-table td:nth-child(3)::before{content:'Data';display:block;color:#718096;font-size:.68rem;text-transform:uppercase;font-weight:800;margin-bottom:4px}
  .performance-largest-table td:nth-child(4)::before{content:'Indexes';display:block;color:#718096;font-size:.68rem;text-transform:uppercase;font-weight:800;margin-bottom:4px}
  .performance-slow-table td:nth-child(2)::before{content:'Method';display:block;color:#718096;font-size:.68rem;text-transform:uppercase;font-weight:800;margin-bottom:4px}
  .performance-slow-table td:nth-child(3)::before{content:'Duration';display:block;color:#718096;font-size:.68rem;text-transform:uppercase;font-weight:800;margin-bottom:4px}
  .performance-slow-table td:nth-child(4)::before{content:'Peak memory';display:block;color:#718096;font-size:.68rem;text-transform:uppercase;font-weight:800;margin-bottom:4px}
  .performance-slow-table td:nth-child(5)::before{content:'Time';display:block;color:#718096;font-size:.68rem;text-transform:uppercase;font-weight:800;margin-bottom:4px}
  .performance-maintenance-table td:nth-child(2)::before{content:'Status';display:block;color:#718096;font-size:.68rem;text-transform:uppercase;font-weight:800;margin-bottom:4px}
  .performance-maintenance-table td:nth-child(3)::before{content:'Details';display:block;color:#718096;font-size:.68rem;text-transform:uppercase;font-weight:800;margin-bottom:4px}
  .performance-maintenance-table td:nth-child(4)::before{content:'Started';display:block;color:#718096;font-size:.68rem;text-transform:uppercase;font-weight:800;margin-bottom:4px}
  .performance-maintenance-table td:nth-child(5)::before{content:'Finished';display:block;color:#718096;font-size:.68rem;text-transform:uppercase;font-weight:800;margin-bottom:4px}
  .performance-detail-list>div{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important;align-items:start!important}
  .performance-detail-list dt,.performance-detail-list dd{min-width:0!important;overflow-wrap:anywhere!important;word-break:break-word!important}
  .performance-detail-list dd{text-align:right!important;margin:0!important}

  /* Follow-up: compact bulk controls and exactly one circular expander. */
  .mobile-followup-workbench .followup-result-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  .mobile-followup-workbench .followup-bulk-controls{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;width:100%!important}
  .mobile-followup-workbench .followup-bulk-controls select{min-width:0!important;width:100%!important}
  .mobile-followup-workbench .followup-bulk-controls [data-bulk-assignee]:not([hidden]){grid-column:1/-1!important}
  .mobile-followup-workbench .followup-bulk-controls button{grid-column:2!important;grid-row:1!important;width:auto!important;min-width:92px!important;padding-inline:16px!important}
  .mobile-followup-workbench .followup-card-header{grid-template-columns:auto 48px minmax(0,1fr) 40px!important;grid-template-rows:auto auto!important;gap:8px 10px!important;align-items:center!important}
  .mobile-followup-workbench .followup-select{grid-column:1!important;grid-row:1/3!important}
  .mobile-followup-workbench .followup-customer{grid-column:2/4!important;grid-row:1!important;min-width:0!important}
  .mobile-followup-workbench .followup-customer .avatar-circle{width:44px!important;height:44px!important;flex-basis:44px!important}
  .mobile-followup-workbench .followup-customer h3{font-size:1rem!important;white-space:normal!important;word-break:normal!important}
  .mobile-followup-workbench .followup-card-badges{grid-column:2/4!important;grid-row:2!important;justify-content:flex-start!important}
  .mobile-followup-workbench .followup-expand{grid-column:4!important;grid-row:1/3!important;width:38px!important;height:38px!important;min-width:38px!important;border-radius:50%!important;border:2px solid #1557c8!important;background:#fff!important;color:#1557c8!important;box-shadow:none!important}
  .mobile-followup-workbench .followup-card-header button:not([data-followup-expand]){display:none!important}
  .mobile-followup-workbench .followup-card-summary{grid-template-columns:1fr 1fr!important}
  .mobile-followup-workbench .followup-card-summary>div{min-width:0!important;overflow-wrap:anywhere!important}
  .mobile-followup-workbench .followup-card-summary strong{font-size:.86rem!important}
  .mobile-followup-workbench .followup-action-buttons{grid-template-columns:1fr!important}
  .mobile-followup-workbench .followup-action-buttons>*{width:100%!important}

  /* Mobile navigation menu should retain bottom safe space and never clip the last module. */
  .mobile-menu,.sidebar.mobile-open,.mobile-sidebar{padding-bottom:calc(110px + env(safe-area-inset-bottom))!important;overscroll-behavior:contain!important}
}


/* Build 14.5.5: report explorer, mobile menu identity, and immediate loan amount validation */
@media (min-width:901px){
  .report-explorer-layout.report-explorer-open{grid-template-columns:minmax(440px,480px) minmax(0,1fr)!important;gap:20px!important}
  .report-explorer{top:82px!important;height:calc(100vh - 96px)!important;min-height:0!important;border-radius:16px!important;box-shadow:0 16px 38px rgba(26,49,82,.14)!important}
  .report-explorer-head{padding:16px 18px!important;align-items:center!important}
  .report-explorer-head h2{font-size:1.18rem!important;margin:2px 0!important}
  .report-explorer-close{width:38px!important;height:38px!important;min-width:38px!important;border-radius:50%!important;background:#fff!important;color:#40536d!important;border:1px solid #cbd7e7!important;box-shadow:none!important;font-size:22px!important;line-height:1!important}
  .report-explorer-search{margin:12px 16px 8px!important}
  .report-explorer-shortcuts{display:grid!important;grid-template-columns:1fr 1fr!important;gap:0!important;margin:0 16px 12px!important;padding:3px!important;border:1px solid #ccd8e8!important;border-radius:12px!important;background:#f4f7fb!important;overflow:visible!important}
  .report-explorer-chip{border:0!important;border-radius:9px!important;background:transparent!important;padding:8px 10px!important;text-align:center!important}
  .report-explorer-chip.active{background:#fff!important;color:#0b49c7!important;box-shadow:0 2px 8px rgba(26,49,82,.1)!important}
  .report-explorer-groups{height:calc(100% - 160px)!important;padding:0 16px 18px 14px!important;scrollbar-gutter:stable both-edges!important;overscroll-behavior:contain!important}
  .report-explorer-group{border:1px solid transparent!important;border-bottom-color:#e1e8f2!important;margin:0!important;border-radius:12px!important}
  .report-explorer-group.active{background:#f7faff!important;border-color:#cfdcf0!important;margin:5px 0!important}
  .report-explorer-group-toggle{grid-template-columns:40px minmax(0,1fr) 30px 18px!important;gap:10px!important;padding:12px 10px!important}
  .report-explorer-group-toggle strong{font-size:.88rem!important;line-height:1.2!important}
  .report-explorer-group-toggle small{font-size:.72rem!important;line-height:1.35!important}
  .report-explorer-group-toggle b{min-width:28px!important;width:28px!important;height:28px!important}
  .report-explorer-links{padding:0 10px 10px 60px!important;gap:3px!important}
  .report-explorer-links a{min-height:40px!important;padding:9px 11px!important;border-radius:9px!important;line-height:1.25!important;overflow-wrap:anywhere!important}
  .report-explorer-links a .report-favourite,.report-explorer-links a [data-report-favourite]{opacity:0!important}
  .report-explorer-links a:hover .report-favourite,.report-explorer-links a:hover [data-report-favourite]{opacity:1!important}
}

.loan-amount-field .field-error{display:block;margin-top:6px;color:#b42318;font-size:.78rem;font-weight:700;line-height:1.35}
.loan-amount-field input.invalid{border-color:#d92d20!important;box-shadow:0 0 0 3px rgba(217,45,32,.12)!important;background:#fff8f7!important}
.loan-amount-field input.valid{border-color:#12a36d!important;box-shadow:0 0 0 3px rgba(18,163,109,.1)!important}

@media(max-width:850px){
  .sidebar .mobile-menu-brand{display:flex!important;position:sticky!important;top:0!important;z-index:4!important;min-height:82px!important;height:auto!important;padding:14px 18px!important;background:#fff!important;border-bottom:1px solid #dce5f1!important;border-radius:0!important}
  .sidebar .mobile-menu-logo{display:grid!important;width:48px!important;height:48px!important;min-width:48px!important;border-radius:50%!important;overflow:hidden!important;padding:0!important}
  .sidebar .mobile-menu-logo{position:relative!important}.sidebar .mobile-menu-logo-fallback{position:absolute!important;inset:0!important;display:grid!important;place-items:center!important;color:#fff!important;font-weight:900!important}.sidebar .mobile-menu-logo img{position:relative!important;z-index:1!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;display:block!important;background:#fff!important}
  .sidebar .brand-copy{display:block!important;min-width:0!important}
  .sidebar .brand-copy strong{font-size:1rem!important;white-space:normal!important;line-height:1.15!important}
  .sidebar .brand-copy span{display:block!important;font-size:.72rem!important}
  .sidebar .mobile-menu-close{display:grid!important;place-items:center!important;margin-left:auto!important;width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border-radius:50%!important;background:#f0f4f9!important;color:#1c2940!important;border:1px solid #d7e1ed!important;font-size:25px!important;line-height:1!important;cursor:pointer!important}
}

/* Build 14.5.6 - sidebar brand fallback and mobile menu placement */
.brand-block.has-business-logo .brand-name-text{display:none}
.brand-block.has-business-logo.logo-failed .brand-name-text{display:block}
.brand-block.has-business-logo.logo-failed .mobile-menu-logo{display:none!important}
.brand-block .brand-copy{min-width:0}
.brand-block .brand-copy span{white-space:nowrap}

@media(max-width:850px){
  /* Keep the mobile application menu below the sticky workspace navigation. */
  .nav-toggle:checked~.app-shell .sidebar,
  .sidebar{
    top:74px!important;
    bottom:0!important;
    height:calc(100dvh - 74px)!important;
    min-height:0!important;
    inset-inline:0!important;
    width:100vw!important;
    max-width:none!important;
  }
  .nav-toggle:checked~.app-shell .nav-backdrop{
    top:74px!important;
    bottom:0!important;
    height:calc(100dvh - 74px)!important;
  }
  .sidebar .mobile-menu-brand{
    position:sticky!important;
    top:0!important;
    z-index:1002!important;
    min-height:78px!important;
    padding:12px 16px!important;
    background:#fff!important;
  }
  .sidebar .mobile-menu-close{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    flex:0 0 42px!important;
    margin-left:auto!important;
    position:relative!important;
    z-index:2!important;
  }
  .sidebar .brand-copy{display:grid!important;align-content:center!important;gap:2px!important;flex:1 1 auto!important}
  .sidebar .brand-copy .brand-name-text{font-size:1rem!important;line-height:1.15!important}
  .sidebar .brand-copy span{font-size:.7rem!important;line-height:1.2!important;margin:0!important}
  .sidebar .side-nav{
    height:calc(100dvh - 152px)!important;
    min-height:0!important;
    overflow-y:auto!important;
    padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))!important;
  }
}

/* Build 14.5.7 - stable business identity on desktop and mobile navigation */
.sidebar .mobile-menu-brand{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  height:82px!important;
  min-height:82px!important;
  padding:10px 16px!important;
  overflow:hidden!important;
  background:#fff!important;
}
.sidebar .mobile-menu-logo{
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  flex:0 0 42px!important;
  padding:3px!important;
  border-radius:10px!important;
  background:#fff!important;
  border:1px solid #dce5f1!important;
  box-shadow:none!important;
  overflow:hidden!important;
}
.sidebar .mobile-menu-logo img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:7px!important;
}
.sidebar .brand-copy{
  display:grid!important;
  align-content:center!important;
  gap:3px!important;
  min-width:0!important;
  flex:1 1 auto!important;
}
.sidebar .brand-copy .brand-name-text{
  display:block!important;
  margin:0!important;
  color:#17233a!important;
  font-size:15px!important;
  line-height:1.15!important;
  font-weight:800!important;
  white-space:normal!important;
  overflow-wrap:anywhere!important;
}
.sidebar .brand-copy span{
  display:block!important;
  margin:0!important;
  color:#738198!important;
  font-size:10.5px!important;
  line-height:1.2!important;
  white-space:nowrap!important;
}
/* Never render the old initials tile as a logo substitute. */
.sidebar .mobile-menu-logo-fallback{display:none!important}
/* Keep the close affordance mobile-only and fully visible below the sticky top bar. */
@media(min-width:851px){
  .sidebar .mobile-menu-close{display:none!important}
}
@media(max-width:850px){
  .sidebar .mobile-menu-brand{
    position:sticky!important;
    top:0!important;
    z-index:1004!important;
    height:auto!important;
    min-height:76px!important;
    padding:10px 14px!important;
    border-bottom:1px solid #dce5f1!important;
  }
  .sidebar .mobile-menu-logo{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    flex-basis:44px!important;
    border-radius:11px!important;
  }
  .sidebar .brand-copy .brand-name-text{font-size:15px!important}
  .sidebar .brand-copy span{font-size:10.5px!important}
  .sidebar .mobile-menu-close{
    display:grid!important;
    place-items:center!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    flex:0 0 42px!important;
    margin-left:auto!important;
    border:1px solid #ccd8e8!important;
    border-radius:50%!important;
    background:#f2f5f9!important;
    color:#17233a!important;
    font-size:25px!important;
    line-height:1!important;
    visibility:visible!important;
    opacity:1!important;
  }
}

/* Build 14.6.0 profile restrictions and staff PWA */
.profile-access-status-panel{margin-top:20px}.profile-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.profile-status-card{border:1px solid var(--border,#cbd6e5);border-radius:16px;padding:18px;background:#fff;display:grid;gap:16px}.profile-status-card h3{margin:10px 0 4px}.status-action-form{display:grid;grid-template-columns:minmax(0,160px) minmax(220px,1fr) auto;gap:12px;align-items:end}.pwa-install-button{width:100%;border:0;background:transparent;text-align:left}.pwa-ios-note{display:none;padding:0 14px 12px;color:var(--muted,#64748b)}@supports(-webkit-touch-callout:none){.pwa-ios-note{display:block}}
@media(max-width:760px){.profile-status-grid{grid-template-columns:1fr}.status-action-form{grid-template-columns:1fr}.profile-status-card{padding:16px}.people-directory-table .badge{white-space:nowrap}}


/* Build 14.6.1 authenticated dashboard PWA install prompt */
.dashboard-pwa-prompt{margin:18px 0 8px;padding:18px 20px;border:1px solid #b8cbed;background:linear-gradient(135deg,#f5f9ff 0%,#e8f1ff 100%);display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:16px;align-items:center;box-shadow:0 8px 24px rgba(15,55,105,.08)}
.dashboard-pwa-prompt[hidden]{display:none!important}.dashboard-pwa-icon{width:58px;height:58px;border-radius:15px;overflow:hidden;background:#fff;border:1px solid #c8d7eb;box-shadow:0 4px 12px rgba(25,70,130,.12);display:grid;place-items:center}.dashboard-pwa-icon img{width:100%;height:100%;object-fit:cover}.dashboard-pwa-copy{min-width:0}.dashboard-pwa-copy h2{font-size:1.06rem;margin:2px 0 5px}.dashboard-pwa-copy p{margin:0;color:var(--muted,#5f6f83);line-height:1.45}.dashboard-pwa-ios-instructions{margin-top:8px!important;color:#27384f!important}.dashboard-pwa-actions{display:flex;gap:9px;align-items:center;justify-content:flex-end}.dashboard-pwa-actions .button{white-space:nowrap}.dashboard-pwa-prompt[data-pwa-mode="ios"] .dashboard-pwa-actions{align-self:start}
@media(max-width:760px){.dashboard-pwa-prompt{margin:14px 16px 8px;padding:16px;grid-template-columns:48px minmax(0,1fr);gap:12px;border-left:0;border-right:0;box-shadow:none}.dashboard-pwa-icon{width:48px;height:48px;border-radius:13px}.dashboard-pwa-copy h2{font-size:1rem}.dashboard-pwa-actions{grid-column:1/-1;width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto}.dashboard-pwa-actions .button{min-height:44px}.dashboard-pwa-prompt[data-pwa-mode="ios"] .dashboard-pwa-actions{grid-template-columns:1fr}.dashboard-pwa-prompt[data-pwa-mode="ios"] [data-pwa-dismiss]{justify-self:end;width:auto}}

/* Build 14.6.3: dashboard PWA and expandable dashboard panels */
.pwa-version-badge{display:inline-flex;vertical-align:middle;margin-left:7px;padding:3px 7px;border-radius:999px;background:#dbe9ff;color:#0b49c7;font-size:.68rem;font-weight:800;letter-spacing:.02em}.dashboard-pwa-benefits{display:flex;gap:8px 18px;flex-wrap:wrap;margin:10px 0 0;padding:0;list-style:none;color:#40536e;font-size:.75rem}.dashboard-pwa-benefits li:before{content:'✓';margin-right:5px;color:#16835b;font-weight:900}.pwa-update-notice{position:fixed;right:20px;bottom:20px;z-index:10050;display:flex;align-items:center;gap:18px;max-width:440px;padding:14px 16px;border:1px solid #b9cae3;border-radius:12px;background:#fff;box-shadow:0 18px 48px rgba(16,38,73,.2)}.pwa-update-notice div{min-width:0}.pwa-update-notice strong,.pwa-update-notice span{display:block}.pwa-update-notice span{margin-top:2px;color:var(--muted);font-size:.78rem}.dashboard-expandable{padding:0;overflow:hidden}.dashboard-expandable-summary{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:18px 20px;cursor:pointer;list-style:none}.dashboard-expandable-summary::-webkit-details-marker{display:none}.dashboard-expandable-summary h2{margin:0 0 4px}.dashboard-expandable-summary p{margin:0}.dashboard-expandable-meta{white-space:nowrap;padding:5px 9px;border-radius:999px;background:#edf3fc;color:#40536e;font-size:.7rem;font-weight:800}.dashboard-expandable-chevron{font-size:1.25rem;line-height:1;transition:transform .18s ease}.dashboard-expandable[open] .dashboard-expandable-chevron{transform:rotate(180deg)}.dashboard-expandable-body{border-top:1px solid var(--line);padding:16px 20px 20px}.dashboard-expandable-actions{margin-bottom:10px}.dashboard-expandable-actions:has(span:empty){justify-content:flex-end}.dashboard-activity-panel .activity-list{max-height:390px;overflow:auto;padding-right:4px}
@media(max-width:760px){.dashboard-pwa-benefits{display:grid;gap:5px}.pwa-update-notice{left:12px;right:12px;bottom:92px;max-width:none}.dashboard-expandable-summary{padding:16px;grid-template-columns:minmax(0,1fr) auto auto}.dashboard-expandable-body{padding:12px 16px 16px}.dashboard-expandable-meta{font-size:.65rem}.dashboard-activity-panel .activity-list{max-height:none}}

/* Build 14.6.4 dashboard expandable stabilization */
.dashboard-main-grid{align-items:start}
.dashboard-expandable{align-self:start;min-height:0}
.dashboard-expandable:not([open]){height:auto}
.dashboard-expandable:not([open]) .dashboard-expandable-body{display:none}
.dashboard-expandable-summary{min-height:76px}
.dashboard-expandable-summary:hover{background:#f8fbff}
.dashboard-expandable-chevron{display:inline-grid;place-items:center;width:32px;height:32px;border:1px solid #c9d7ea;border-radius:50%;background:#f7faff;color:#173252;font-size:1rem;font-weight:900;transition:transform .18s ease,background .18s ease}
.dashboard-expandable[open] .dashboard-expandable-chevron{transform:rotate(180deg);background:#eaf2ff}
.dashboard-expandable-meta{align-self:center}
.dashboard-activity-panel{align-self:start}
@media(max-width:760px){.dashboard-expandable-summary{min-height:68px}.dashboard-expandable-chevron{width:30px;height:30px}.dashboard-expandable:not([open]){margin-bottom:0}}


/* Build 14.6.5 - polished dashboard disclosure controls */
.dashboard-expandable-summary{grid-template-columns:minmax(0,1fr) auto!important;gap:16px!important}
.dashboard-expandable-controls{display:inline-flex;align-items:center;gap:10px;justify-self:end}
.dashboard-expandable-chevron{position:relative;display:inline-grid!important;place-items:center;width:34px!important;height:34px!important;min-width:34px;border:1px solid #bfd0e7!important;border-radius:50%!important;background:#f8fbff!important;color:#15365f!important;box-shadow:0 1px 2px rgba(20,48,86,.06);transform:none!important}
.dashboard-expandable-chevron:before{content:"";width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .18s ease}
.dashboard-expandable[open] .dashboard-expandable-chevron{background:#eaf2ff!important;border-color:#abc3e4!important;transform:none!important}
.dashboard-expandable[open] .dashboard-expandable-chevron:before{transform:translateY(2px) rotate(225deg)}
.dashboard-expandable-summary:hover .dashboard-expandable-chevron{border-color:#8eacd4!important;background:#eef5ff!important}
.dashboard-expandable-summary:focus-visible{outline:3px solid rgba(20,82,204,.2);outline-offset:-3px}
@media(max-width:760px){.dashboard-expandable-summary{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important}.dashboard-expandable-controls{gap:7px}.dashboard-expandable-chevron{width:32px!important;height:32px!important;min-width:32px}}

.dashboard-push-prompt{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:16px 0;padding:20px 24px;border:1px solid #bfdbfe;background:#eff6ff}.dashboard-push-prompt h2{margin:4px 0 6px}.dashboard-push-prompt p{margin:0;max-width:720px}.dashboard-push-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.dashboard-push-actions span{font-size:.85rem;color:#475569}@media(max-width:760px){.dashboard-push-prompt{margin:14px 16px;align-items:stretch;flex-direction:column}.dashboard-push-actions .button{flex:1}}

/* Build 14.7.2: settled application and installed-PWA notification states */
.completed-followup-notice{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;align-items:start;padding:16px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:16px}.completed-followup-notice p{margin:4px 0 0;color:#64748b}.completed-followup-notice .followup-action-buttons{grid-column:1/-1;display:flex;gap:10px;flex-wrap:wrap}.application-journey-panel{scroll-margin-top:90px}.application-journey{list-style:none;margin:0;padding:0;display:grid;gap:0}.application-journey li{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);gap:14px;padding:0 0 22px}.application-journey li:not(:last-child)::after{content:'';position:absolute;left:10px;top:18px;bottom:0;width:2px;background:#dbe5f2}.application-journey-marker{position:relative;z-index:1;width:22px;height:22px;border-radius:50%;background:#0b57d0;border:5px solid #e8f0fe}.application-journey-card{border:1px solid #d7e1ef;border-radius:14px;padding:14px 16px;background:#fff}.application-journey-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.application-journey-card header span,.application-journey-card footer{color:#64748b;font-size:.82rem}.application-journey-card p{margin:7px 0;color:#334155}.dashboard-push-prompt[hidden]{display:none!important}
@media(max-width:760px){.completed-followup-notice{grid-template-columns:1fr}.completed-followup-notice .followup-action-buttons{grid-column:auto;display:grid}.application-journey-card header{display:grid;gap:3px}}

/* Build 14.7.4: lifecycle timeline spacing and notification re-registration */
.application-journey-card header{gap:16px;flex-wrap:wrap}.application-journey-card header strong{margin-right:auto}.application-journey-card header span{white-space:nowrap}.dashboard-push-actions [data-push-status]{max-width:420px;line-height:1.4}

/* Build 14.7.6 - application lifecycle */
.application-journey-heading{align-items:flex-start}.journey-heading-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}.journey-event-count{font-size:.78rem;color:#64748b;font-weight:700}.journey-stage-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;padding:14px;border:1px solid #d9e3f0;border-radius:16px;background:#f8fbff;margin:16px 0 20px}.journey-stage{position:relative;display:flex;align-items:center;gap:9px;min-width:0;color:#7a8799;font-size:.78rem;font-weight:700}.journey-stage:not(:last-child)::after{content:'';position:absolute;left:calc(100% - 2px);right:-8px;top:50%;height:2px;background:#d8e2ef}.journey-stage-number{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;border:1px solid #c9d6e7;background:#fff;color:#718096}.journey-stage.is-done{color:#17365f}.journey-stage.is-done .journey-stage-number{border-color:#0b57d0;background:#0b57d0;color:#fff}.journey-stage.is-done:not(:last-child)::after{background:#84aef0}.application-journey-timeline{position:relative;list-style:none;margin:0;padding:0;display:grid;gap:10px}.application-journey-timeline::before{content:'';position:absolute;left:21px;top:22px;bottom:22px;width:2px;background:#dbe5f2}.application-journey-timeline .journey-event{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);gap:14px;align-items:start;padding:0;border:0;border-radius:0;background:transparent}.application-journey-timeline .journey-marker{position:relative;z-index:1;display:grid;place-items:center;width:44px;height:44px;border:6px solid #f4f7fb;border-radius:50%;background:#e8f0fe;color:#0b57d0}.application-journey-timeline .journey-marker .ui-icon{width:17px;height:17px}.application-journey-timeline .journey-event.payment .journey-marker,.application-journey-timeline .journey-event.settled .journey-marker{background:#e4f7ed;color:#16834d}.journey-event-card{min-width:0;padding:13px 15px;border:1px solid #d8e2ef;border-radius:14px;background:#fff}.journey-event-card header{display:flex;align-items:baseline;justify-content:space-between;gap:18px}.journey-event-card header strong{font-size:.9rem;color:#193252}.journey-event-card time{flex:0 0 auto;font-size:.76rem;color:#6c7b91;white-space:nowrap}.journey-event-card p{margin:7px 0 9px;color:#31445f;line-height:1.45}.journey-event-card footer{display:flex;align-items:center;gap:10px}.journey-actor{display:inline-flex;align-items:center;gap:5px;color:#67768b;font-size:.75rem}.journey-actor .ui-icon{width:14px;height:14px}.journey-event-card:hover{border-color:#aac2e6;box-shadow:0 4px 14px rgba(32,67,112,.06)}
@media(max-width:760px){.application-journey-heading{gap:12px}.journey-heading-meta{justify-content:flex-start}.journey-stage-strip{grid-template-columns:1fr;gap:0;padding:10px 14px}.journey-stage{padding:8px 0}.journey-stage:not(:last-child)::after{left:13px;right:auto;top:35px;bottom:-8px;width:2px;height:auto}.application-journey-timeline::before{left:17px}.application-journey-timeline .journey-event{grid-template-columns:36px minmax(0,1fr);gap:10px}.application-journey-timeline .journey-marker{width:36px;height:36px;border-width:5px}.journey-event-card{padding:12px}.journey-event-card header{display:grid;gap:3px}.journey-event-card time{white-space:normal}.journey-event-card p{font-size:.86rem}}

/* Build 14.7.7: true logo-only collapsed desktop sidebar */
@media (min-width:851px){
 body.sidebar-is-collapsed .sidebar{width:82px!important;overflow:hidden!important}
 body.sidebar-is-collapsed .sidebar .brand-copy,
 body.sidebar-is-collapsed .sidebar .side-nav,
 body.sidebar-is-collapsed .sidebar .nav-help-group,
 body.sidebar-is-collapsed .sidebar .sidebar-footer{display:none!important}
 body.sidebar-is-collapsed .sidebar .brand-block{height:76px!important;min-height:76px!important;padding:10px!important;display:flex!important;justify-content:center!important;align-items:center!important}
 body.sidebar-is-collapsed .sidebar .business-logo,
 body.sidebar-is-collapsed .sidebar .brand-logo{display:block!important;margin:auto!important;max-width:46px!important;max-height:46px!important}
}
.payment-correction-box{margin-top:16px;padding:16px;border:1px solid #d7e1ef;border-radius:14px;background:#f8fbff}
.payment-correction-box summary{cursor:pointer;font-weight:700}
.payment-correction-history{display:grid;gap:10px;margin-top:16px}
.payment-correction-item{padding:12px;border:1px solid #dbe4f0;border-radius:12px;background:#fff}
/* Build 14.8.0 payment integrity */
.integrity-control-note{display:grid;gap:4px;padding:14px 16px;border:1px solid #cddbf0;border-radius:14px;background:#f4f8ff;color:#334b6d;margin:12px 0 16px}.integrity-control-note strong{color:#17243b}.integrity-choice{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0;padding:0;margin:0}.integrity-choice legend{font-weight:800;margin-bottom:8px}.integrity-choice label{display:flex;align-items:flex-start;gap:10px;padding:14px;border:1px solid #d8e2ef;border-radius:14px;background:#fff;cursor:pointer}.integrity-choice label:has(input:checked){border-color:#1451cc;box-shadow:0 0 0 3px rgba(20,81,204,.09);background:#f7faff}.integrity-choice span{display:grid;gap:4px}.integrity-choice small{color:var(--muted)}.integrity-declaration{display:flex!important;align-items:flex-start!important;gap:10px;padding:14px;border-radius:12px;background:#fff8e6;border:1px solid #f3d38a}.integrity-declaration input{width:auto;margin-top:3px}.integrity-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0}.integrity-comparison>div{display:grid;gap:4px;padding:12px;border:1px solid #dbe4ef;border-radius:12px;background:#f8fafc}.integrity-comparison span,.integrity-comparison small{color:var(--muted)}.override-flag{margin-top:12px;padding:9px 12px;border-radius:10px;background:#fff1db;color:#8a4c00;font-weight:800}.payment-correction-history{display:grid;gap:14px;margin-top:18px}.payment-correction-item{padding:18px;border:1px solid #dbe4ef;border-radius:14px;background:#fff}.payment-correction-item .section-toolbar>div{display:grid;gap:3px}@media(max-width:700px){.integrity-choice,.integrity-comparison,.correction-values{grid-template-columns:1fr!important}.integrity-review-form .form-actions{display:grid;grid-template-columns:1fr}.integrity-review-form .form-actions button{width:100%}}


/* Build 14.8.1 payment integrity UI stabilization */
.integrity-shell{overflow:hidden;padding:0}.integrity-header{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 26px 18px;border-bottom:1px solid #e2e8f0}.integrity-header h2{margin:4px 0 8px}.integrity-header p{max-width:820px;margin:0;color:var(--muted);line-height:1.55}.integrity-lock-badge{flex:0 0 auto;padding:8px 12px;border:1px solid #cdd8e7;border-radius:999px;background:#f6f8fb;color:#42526b;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.integrity-shell>.integrity-control-note,.integrity-shell>.payment-correction-box,.integrity-shell>.integrity-pending-banner,.integrity-shell>.payment-correction-history{margin-left:26px;margin-right:26px}.integrity-control-note{display:flex;align-items:flex-start;gap:12px;margin-top:18px!important}.integrity-note-icon{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:#e9f7ef;color:#087443;font-weight:900}.integrity-control-note>div:last-child{display:grid;gap:3px}.payment-correction-box{padding:0!important;background:#fff!important;border-color:#d8e2ef!important;overflow:hidden}.payment-correction-box summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 18px;background:#f8fbff}.payment-correction-box summary::-webkit-details-marker{display:none}.payment-correction-box summary>span{font-size:15px;font-weight:800;color:#17243b}.payment-correction-box summary>small{color:var(--muted);font-weight:600;text-align:right}.payment-correction-box summary:after{content:'+';display:grid;place-items:center;width:30px;height:30px;border:1px solid #b9cae2;border-radius:10px;color:#1451cc;font-size:20px;line-height:1}.payment-correction-box[open] summary:after{content:'−'}.integrity-request-form{padding:20px}.integrity-choice{gap:14px!important}.integrity-choice legend{font-size:14px;color:#334155}.integrity-option{position:relative;min-height:88px;align-items:center!important;padding:16px!important}.integrity-option input{width:18px;height:18px;flex:0 0 auto}.integrity-option strong{font-size:15px}.integrity-option small{line-height:1.45}.integrity-option-danger:has(input:checked){border-color:#cf3f4f!important;background:#fff8f8!important;box-shadow:0 0 0 3px rgba(207,63,79,.08)!important}.correction-original-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;border:1px solid #dbe4ef;border-radius:13px;overflow:hidden;background:#dbe4ef}.correction-original-strip>div{display:grid;gap:4px;padding:13px 15px;background:#f8fafc}.correction-original-strip span{font-size:12px;color:var(--muted)}.correction-original-strip strong{overflow-wrap:anywhere}.correction-values label,.integrity-request-form>label,.integrity-review-form label{display:grid;gap:7px}.correction-values label>span,.integrity-request-form>label>span,.integrity-review-form label>span{font-weight:800;color:#334155}.field-help{font-size:12px;color:var(--muted)}.integrity-declaration{display:flex!important;align-items:flex-start!important}.integrity-declaration span{font-weight:650!important;line-height:1.45}.integrity-override-warning{display:flex;gap:8px;align-items:center}.integrity-override-warning span{font-weight:500}.integrity-submit-row{display:flex;justify-content:flex-end}.integrity-submit-row button{min-width:220px}.integrity-pending-banner{display:grid;gap:4px;padding:15px 17px;border:1px solid #efd391;border-radius:13px;background:#fff8e7;color:#704400}.payment-correction-history{padding-bottom:26px}.integrity-history-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 12px}.integrity-history-heading h3{margin:3px 0 0}.payment-correction-item{padding:0!important;overflow:hidden}.integrity-case-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 18px;border-bottom:1px solid #e4eaf2;background:#fbfcfe}.integrity-case-header>div{display:flex;align-items:center;gap:12px;min-width:0}.integrity-case-header h4{margin:0}.integrity-case-number{font-size:12px;font-weight:900;letter-spacing:.05em;color:#1451cc}.integrity-comparison{grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr)!important;align-items:stretch;padding:18px;margin:0!important}.integrity-value-card{padding:15px!important;background:#f8fafc!important}.integrity-value-card strong{font-size:20px;overflow-wrap:anywhere}.integrity-value-requested{background:#f3f8ff!important;border-color:#cbdcf5!important}.integrity-arrow{display:grid;place-items:center;color:#7890af;font-size:22px}.integrity-case-reason{padding:0 18px 14px}.integrity-case-reason>span{display:block;margin-bottom:5px;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}.integrity-case-reason p{margin:0;line-height:1.5}.integrity-case-meta{display:flex;justify-content:space-between;gap:16px;padding:12px 18px;border-top:1px solid #e6ebf2;background:#fbfcfe;color:var(--muted);font-size:12px}.override-flag,.integrity-legacy-note{margin:12px 18px 0}.integrity-legacy-note{padding:10px 12px;border:1px solid #f0d49a;border-radius:10px;background:#fff8e8;color:#754b00}.integrity-review-form{margin:14px 18px 18px!important;padding:16px;border:1px solid #d7e2f0;border-radius:12px;background:#f8fbff}.integrity-review-form .form-actions{justify-content:flex-end}.integrity-review-form .form-actions button{min-width:190px}
@media(max-width:700px){.integrity-header{display:grid;padding:20px}.integrity-lock-badge{justify-self:start}.integrity-shell>.integrity-control-note,.integrity-shell>.payment-correction-box,.integrity-shell>.integrity-pending-banner,.integrity-shell>.payment-correction-history{margin-left:14px;margin-right:14px}.payment-correction-box summary{align-items:flex-start;display:grid;grid-template-columns:1fr auto}.payment-correction-box summary>small{grid-column:1;text-align:left}.payment-correction-box summary:after{grid-column:2;grid-row:1/3}.integrity-request-form{padding:15px}.correction-original-strip{grid-template-columns:1fr}.integrity-comparison{grid-template-columns:1fr!important}.integrity-arrow{transform:rotate(90deg);height:26px}.integrity-case-header,.integrity-case-header>div,.integrity-case-meta{align-items:flex-start}.integrity-case-header{display:grid}.integrity-case-header>div{display:grid;gap:4px}.integrity-case-meta{display:grid;gap:4px}.integrity-submit-row button{width:100%;min-width:0}.integrity-review-form .form-actions{display:grid;grid-template-columns:1fr}.integrity-review-form .form-actions button{width:100%;min-width:0}}

.payment-linkage-banner{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.payment-linkage-banner span{flex:1;min-width:240px}.payment-linkage-banner .button{margin-left:auto}@media(max-width:700px){.payment-linkage-banner{display:grid}.payment-linkage-banner .button{width:100%;margin-left:0;text-align:center}}

/* Build 14.8.5 - payment integrity spacing and form clarity */
.integrity-shell{margin-top:24px}
.integrity-header{padding:28px 30px 22px;gap:32px}
.integrity-header h2{font-size:24px;line-height:1.25;margin:6px 0 10px}
.integrity-header p{font-size:14px;max-width:860px}
.integrity-shell>.integrity-control-note,.integrity-shell>.payment-correction-box,.integrity-shell>.integrity-pending-banner,.integrity-shell>.payment-correction-history{margin-left:30px;margin-right:30px}
.integrity-control-note{padding:16px 18px;border:1px solid #d7e8dd;border-radius:14px;background:#f6fcf8;margin-top:22px!important;margin-bottom:18px!important}
.integrity-control-note>div:last-child{gap:6px}.integrity-control-note span{line-height:1.5;color:#4b5f78}
.payment-correction-box{margin-top:18px!important;margin-bottom:24px!important;border-radius:15px!important}
.payment-correction-box summary{padding:20px 22px;min-height:76px}
.payment-correction-box summary>span{font-size:16px}.payment-correction-box summary>small{max-width:460px;line-height:1.45}
.integrity-request-form{display:grid;gap:22px;padding:24px 24px 26px}
.integrity-choice{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px!important;margin:0;padding:0;border:0}
.integrity-choice legend{grid-column:1/-1;margin:0 0 2px;padding:0;font-weight:800}
.integrity-option{display:grid!important;grid-template-columns:22px 1fr;gap:13px;min-height:104px;padding:18px!important;border:1px solid #d8e2ef!important;border-radius:14px!important;background:#fff;cursor:pointer}
.integrity-option:hover{border-color:#9db8df!important;background:#f8fbff!important}
.integrity-option:has(input:checked){border-color:#2b67d1!important;background:#f3f7ff!important;box-shadow:0 0 0 3px rgba(43,103,209,.09)!important}
.integrity-option span{display:grid;gap:7px;align-content:center}.integrity-option strong{font-size:16px}.integrity-option small{font-size:13px;color:#64748b;line-height:1.5}
.integrity-option input{margin-top:3px}
.correction-original-strip{gap:12px;border:0;background:transparent;overflow:visible}
.correction-original-strip>div{padding:16px 18px;border:1px solid #dbe4ef;border-radius:13px;background:#f8fafc}
.correction-original-strip span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.correction-original-strip strong{font-size:18px;margin-top:3px}
.correction-values{gap:16px!important;margin:0!important}
.correction-values label,.integrity-request-form>label{gap:9px}
.correction-values input,.integrity-request-form textarea{width:100%}
.integrity-request-form textarea{min-height:118px;resize:vertical;padding:14px 15px;line-height:1.5}
.integrity-declaration{gap:11px!important;padding:14px 16px;border:1px solid #dbe4ef;border-radius:12px;background:#fbfcfe}
.integrity-declaration input{margin-top:3px;flex:0 0 auto}
.integrity-override-warning{margin:0!important;padding:14px 16px!important;border-radius:12px!important;align-items:flex-start}
.integrity-submit-row{padding-top:2px}
.integrity-submit-row button{min-width:240px;min-height:44px}
.payment-correction-history{padding-bottom:30px}
.integrity-history-heading{margin:28px 0 14px}
.payment-correction-item{margin-bottom:16px;border-radius:15px!important}
.integrity-case-header{padding:18px 20px}.integrity-comparison{padding:20px;gap:14px!important}
.integrity-value-card{display:grid;gap:5px;padding:17px!important;border-radius:12px!important}
.integrity-case-reason{padding:2px 20px 17px}.integrity-case-meta{padding:13px 20px}
@media(max-width:900px){.integrity-choice{grid-template-columns:1fr}.integrity-choice legend{grid-column:1}.integrity-header{padding:22px}.integrity-shell>.integrity-control-note,.integrity-shell>.payment-correction-box,.integrity-shell>.integrity-pending-banner,.integrity-shell>.payment-correction-history{margin-left:18px;margin-right:18px}}
@media(max-width:700px){.integrity-shell{margin-top:16px}.integrity-header{gap:14px;padding:20px}.integrity-header h2{font-size:21px}.integrity-shell>.integrity-control-note,.integrity-shell>.payment-correction-box,.integrity-shell>.integrity-pending-banner,.integrity-shell>.payment-correction-history{margin-left:12px;margin-right:12px}.integrity-control-note{padding:14px;margin-top:14px!important}.payment-correction-box summary{padding:17px}.integrity-request-form{gap:18px;padding:16px}.integrity-option{min-height:0;padding:15px!important}.correction-original-strip{gap:10px}.correction-original-strip>div{padding:14px}.correction-values{grid-template-columns:1fr!important}.integrity-declaration{padding:13px}.integrity-submit-row button{width:100%;min-width:0}.integrity-comparison{padding:15px}}
.field-disabled{opacity:.55}.field-disabled input{background:#eef2f7!important;cursor:not-allowed}

/* Build 14.8.6 - administrator payment integrity flow */
.integrity-admin-note{border-color:#c8daf8;background:#f3f7ff}.integrity-admin-note .integrity-note-icon{background:#1451cc;color:#fff}.integrity-admin-pending{border-color:#efb457;background:#fff7e8}.integrity-resume-form{border-color:#efb457!important;background:#fffaf0!important}.integrity-resume-form .form-actions button{min-width:250px}.integrity-control-note strong,.integrity-control-note span{display:block}.integrity-control-note span{margin-top:3px}.payment-correction-box{margin-bottom:22px!important}.integrity-history-heading{margin-top:28px}.override-flag{margin-bottom:16px}.integrity-case-meta+.override-flag{margin-top:14px}
@media(max-width:700px){.integrity-resume-form .form-actions button{min-width:0;width:100%}.integrity-control-note{gap:10px}.integrity-history-heading{margin-top:22px}}

/* Build 15.0.2 - desktop collapsed sidebar icon rail */
@media (min-width:851px){
  body.sidebar-is-collapsed .sidebar{width:82px!important;overflow:hidden!important}
  body.sidebar-is-collapsed .sidebar .brand-copy,
  body.sidebar-is-collapsed .sidebar .nav-label,
  body.sidebar-is-collapsed .sidebar .nav-item>span:not(.ui-icon),
  body.sidebar-is-collapsed .sidebar .sidebar-footer{display:none!important}
  body.sidebar-is-collapsed .sidebar .side-nav{
    display:flex!important;
    flex:1 1 auto!important;
    flex-direction:column!important;
    padding:12px 9px 18px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:none!important;
  }
  body.sidebar-is-collapsed .sidebar .side-nav::-webkit-scrollbar{display:none!important}
  body.sidebar-is-collapsed .sidebar .nav-group{
    display:block!important;
    margin:0 0 8px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
  }
  body.sidebar-is-collapsed .sidebar .nav-help-group{
    display:block!important;
    margin-top:auto!important;
    padding-top:10px!important;
    border-top:1px solid #e7edf5!important;
  }
  body.sidebar-is-collapsed .sidebar .nav-item{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:54px!important;
    min-height:48px!important;
    margin:3px auto!important;
    padding:6px!important;
    gap:0!important;
    border-radius:12px!important;
    overflow:visible!important;
  }
  body.sidebar-is-collapsed .sidebar .nav-item .ui-icon{
    display:grid!important;
    visibility:visible!important;
    opacity:1!important;
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    flex:0 0 36px!important;
    margin:0!important;
    place-items:center!important;
  }
  body.sidebar-is-collapsed .sidebar .nav-item .ui-icon svg{
    display:block!important;
    width:21px!important;
    height:21px!important;
    margin:auto!important;
  }
  body.sidebar-is-collapsed .sidebar .nav-item.active{
    background:#eaf1ff!important;
  }
  body.sidebar-is-collapsed .sidebar .brand-block{
    height:76px!important;
    min-height:76px!important;
    padding:10px!important;
    justify-content:center!important;
    align-items:center!important;
  }
}

/* Build 15.0.3 - system-wide numeric input safety */
input[type="number"]{
  -moz-appearance:textfield;
  appearance:textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

/* Build 15.1.0 - staff self-service, GPS evidence and signed acknowledgements */
.staff-ss-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px}.staff-ss-hero h2{margin:5px 0 6px;font-size:28px}.staff-ss-hero p{margin:0;color:#687994}.staff-ss-live{display:flex;align-items:center;gap:11px;padding:12px 14px;border:1px solid #d9e3f0;border-radius:13px;background:#f8fbff;min-width:175px}.staff-ss-live .status-dot{width:10px;height:10px;border-radius:50%;background:#16a36a;box-shadow:0 0 0 5px rgba(22,163,106,.1)}.staff-ss-live div{display:grid;gap:2px}.staff-ss-live small{color:#7a8aa0}.staff-ss-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin:20px 0}.staff-ss-grid>.panel{margin:0}.attendance-card,.notice-card{min-height:100%}.location-readiness{display:grid;gap:4px;padding:14px 15px;margin:16px 0;border:1px solid #d9e3ef;border-radius:12px;background:#f8fbff}.location-readiness strong{color:#22324b}.location-readiness span{font-size:13px;color:#6e7e94}.staff-clock-button{width:100%;min-height:48px;justify-content:center}.enterprise-disclosure{border:1px solid #d9e3ef;border-radius:14px;background:#fff;overflow:hidden}.enterprise-disclosure>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 17px;font-weight:750;color:#24364f;background:#fbfdff}.enterprise-disclosure>summary::-webkit-details-marker{display:none}.enterprise-disclosure>summary span{width:28px;height:28px;border:1px solid #cfdbea;border-radius:9px;display:grid;place-items:center;color:#1553c6}.enterprise-disclosure[open]>summary{border-bottom:1px solid #e1e8f1}.enterprise-disclosure>form{padding:18px}.enterprise-disclosure.compact{margin-top:14px}.signature-field{display:grid;gap:8px}.signature-pad{width:100%;height:140px;border:1px solid #bdcbe0;border-radius:12px;background:#fff;touch-action:none;box-shadow:inset 0 1px 2px rgba(18,40,74,.04)}.signature-actions{display:flex;justify-content:flex-end}.staff-payment-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.staff-payment-card{border:1px solid #dbe5f0;border-radius:15px;background:#fff;padding:18px;min-width:0}.staff-payment-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.staff-payment-card-head>div{display:grid;gap:4px}.staff-payment-card-head>div>span{font-size:12px;color:#718096;text-transform:uppercase;letter-spacing:.05em}.staff-payment-card-head strong{font-size:23px;color:#17243a}.staff-payment-card-head small{color:#63748d}.staff-payment-meta{display:flex;flex-wrap:wrap;gap:7px 14px;padding-top:13px;margin-top:13px;border-top:1px solid #e5ebf3;color:#6c7b91;font-size:12px}.pay-dispute-form{margin-top:14px;padding-top:14px;border-top:1px solid #e6ecf3}.pay-dispute-form textarea{min-height:80px}.ack-time{display:block;margin-top:12px;color:#66778e}.location-links{display:flex;flex-wrap:wrap;gap:6px 12px}.notice-history,.notice-review-list{display:grid;gap:12px}.notice-history-card,.notice-review-card{border:1px solid #dbe5f0;border-radius:14px;background:#fff;padding:16px 18px}.notice-history-card>div:first-child,.notice-review-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.notice-history-card p{margin:7px 0;color:#43546b}.notice-history-card small{color:#718096}.notice-history-card form{margin-top:12px}.notice-review-head>div{display:grid;gap:3px}.notice-review-card>p{padding:13px 0;margin:10px 0;border-top:1px solid #e8edf4;border-bottom:1px solid #e8edf4;color:#425269}.review-inline-form{display:grid;grid-template-columns:minmax(180px,.6fr) minmax(300px,1.4fr) auto;gap:12px;align-items:end}.review-inline-form textarea{min-height:74px}.notice-ack-summary{display:grid;gap:8px;padding:12px 14px;border-radius:11px;background:#f6f9fd;color:#53647a}.asset-gps-field{display:grid;gap:7px;align-content:start}.location-capture-control{display:flex;gap:8px;flex-wrap:wrap}.asset-location-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.asset-location-summary>div{display:grid;gap:5px;padding:14px;border:1px solid #dfe7f1;border-radius:12px;background:#fbfdff}.asset-location-summary span{font-size:12px;color:#718096}.asset-location-summary strong{font-size:14px;color:#21324a;word-break:break-word}.staff-payroll-confirmations td small{display:block;margin-top:4px;color:#718096}.announcement-form input[type="datetime-local"]{font-variant-numeric:tabular-nums}.announcement-form .field-help{display:block;margin-top:6px;line-height:1.4}.management-review{border-top:3px solid #1553c6}
@media(max-width:900px){.staff-ss-grid,.staff-payment-cards{grid-template-columns:1fr}.asset-location-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.review-inline-form{grid-template-columns:1fr}.review-inline-form .button{width:100%}}
@media(max-width:700px){.staff-ss-hero{align-items:flex-start;flex-direction:column;padding:18px}.staff-ss-live{width:100%}.staff-ss-grid{gap:14px;margin:14px 0}.staff-payment-card{padding:15px}.staff-payment-card-head{gap:10px}.staff-payment-card-head strong{font-size:20px}.enterprise-disclosure>summary{padding:14px}.enterprise-disclosure>form{padding:14px}.signature-pad{height:125px}.asset-location-summary{grid-template-columns:1fr}.location-capture-control{display:grid;grid-template-columns:1fr}.location-capture-control .button{width:100%}.notice-history-card,.notice-review-card{padding:14px}.staff-ss-grid .section-heading,.management-review .section-heading{gap:10px}.review-inline-form{gap:10px}.staff-ss-grid .form-actions,.signature-actions{justify-content:stretch}.signature-actions .button{width:100%}}

/* Build 15.3.1 - enterprise staff self-service workspace */
.ss-enterprise-hero{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:14px;padding:30px 32px;border:1px solid #dce6f2;border-radius:20px;background:linear-gradient(135deg,#f8fbff 0%,#fff 62%);box-shadow:0 10px 30px rgba(28,55,92,.06)}
.ss-enterprise-hero:after{content:"";position:absolute;right:-55px;top:-85px;width:230px;height:230px;border-radius:50%;background:rgba(30,91,211,.055);pointer-events:none}.ss-hero-copy{position:relative;z-index:1;max-width:720px}.ss-enterprise-hero h2{margin:6px 0 8px;font-size:30px;line-height:1.15;letter-spacing:-.025em;color:#15243a}.ss-enterprise-hero p{margin:0;color:#65758b;font-size:15px}.ss-section-nav{position:sticky;top:72px;z-index:20;display:flex;gap:6px;overflow-x:auto;margin:0 0 18px;padding:8px;border:1px solid #dce5f0;border-radius:15px;background:rgba(255,255,255,.96);box-shadow:0 6px 20px rgba(24,48,80,.05);scrollbar-width:none}.ss-section-nav::-webkit-scrollbar{display:none}.ss-section-nav a{flex:0 0 auto;padding:9px 13px;border-radius:10px;color:#53657c;font-size:13px;font-weight:750;text-decoration:none;white-space:nowrap}.ss-section-nav a:hover,.ss-section-nav a:focus{background:#edf4ff;color:#174fae}.ss-section{scroll-margin-top:140px;border:1px solid #e0e7f0!important;border-radius:18px!important;box-shadow:0 7px 22px rgba(24,48,80,.045)!important}.ss-section .section-heading{margin-bottom:18px}.ss-section .section-heading h2{font-size:20px;letter-spacing:-.015em}.ss-section .summary-grid{gap:12px}.ss-section .summary-card{min-height:104px;padding:18px;border:1px solid #e3e9f1;border-radius:14px;background:#fbfdff}.ss-section .summary-card span{font-size:12px;font-weight:700;color:#738198}.ss-section .summary-card strong{margin-top:6px;font-size:23px;color:#17263d}.attendance-card{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}.attendance-card .badge{margin-left:auto}.attendance-card .location-readiness{margin:12px 0;background:#f7faff}.staff-clock-button{min-height:50px;border-radius:12px;font-size:14px;font-weight:800}.ss-payroll-section .staff-payment-card{box-shadow:none;transition:border-color .15s ease,box-shadow .15s ease}.ss-payroll-section .staff-payment-card:hover{border-color:#bfd0e7;box-shadow:0 8px 20px rgba(25,52,88,.06)}.staff-ss-grid{align-items:stretch}.staff-ss-grid>.ss-section{height:100%}.ss-section .table-wrap{border:1px solid #e4eaf2;border-radius:13px;overflow:auto}.ss-section table{margin:0}.ss-section table thead th{background:#f7f9fc}.ss-section .empty-cell{padding:28px!important;text-align:center;color:#748298}.privacy-note{padding:11px 13px;border-radius:11px;background:#f8fafc;color:#64748b;font-size:12px}.privacy-note strong{display:block;margin-bottom:2px;color:#475569}.ss-payroll-section{margin-top:20px}
@media(max-width:900px){.ss-enterprise-hero{padding:24px}.ss-enterprise-hero h2{font-size:26px}.ss-section-nav{top:64px}.staff-ss-grid{grid-template-columns:1fr}}
@media(max-width:700px){.ss-enterprise-hero{align-items:flex-start;flex-direction:column;padding:20px;border-radius:16px}.ss-enterprise-hero h2{font-size:24px}.staff-ss-live{min-width:0;width:100%;padding:10px 12px}.ss-section-nav{top:58px;margin-left:-2px;margin-right:-2px;border-radius:12px;padding:6px}.ss-section-nav a{padding:9px 11px}.ss-section{border-radius:15px!important}.ss-section .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ss-section .summary-card{min-height:90px;padding:14px}.ss-section .summary-card strong{font-size:19px}.ss-section .section-heading h2{font-size:19px}.staff-payment-cards{gap:10px}.staff-payment-card-head{align-items:flex-start}.staff-payment-meta{display:grid;gap:5px}.staff-clock-button{width:100%}}
/* 15.3.3 Staff Self-Service quick actions */
.ss-quick-actions{margin:18px 0 20px;padding:22px 24px}.ss-quick-actions .section-heading{margin-bottom:16px}.ss-quick-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ss-quick-action{appearance:none;border:1px solid var(--border,#d8e2ef);background:#fff;border-radius:14px;padding:16px 18px;display:flex;align-items:center;gap:14px;text-align:left;min-height:78px;cursor:pointer;color:inherit;box-shadow:0 5px 16px rgba(31,53,82,.04)}.ss-quick-action:hover:not(:disabled){border-color:#9db9ee;box-shadow:0 8px 22px rgba(31,53,82,.08);transform:translateY(-1px)}.ss-quick-action:disabled,.ss-quick-action.is-disabled{opacity:.52;cursor:not-allowed}.ss-quick-icon{width:38px;height:38px;border-radius:11px;background:#edf4ff;color:#0b55d9;display:grid;place-items:center;font-size:20px;font-weight:700;flex:0 0 auto}.ss-quick-action strong,.ss-quick-action small{display:block}.ss-quick-action strong{font-size:15px;margin-bottom:3px}.ss-quick-action small{font-size:12px;color:#6b7c93}.ss-empty-workspace{margin-top:18px}.ss-section-nav:empty{display:none}@media(max-width:700px){.ss-quick-actions{padding:18px}.ss-quick-action-grid{grid-template-columns:1fr}.ss-quick-action{min-height:70px}}

/* Build 15.4.0 go-live controls */
.production-reset-hero{padding:28px}.production-reset-hero h2{margin:6px 0 8px}.production-reset-grid{align-items:stretch}.production-reset-grid .panel{height:100%}.clean-list{margin:14px 0 0;padding-left:20px;display:grid;gap:9px}.danger-zone{border-color:#efb8b8}.danger-zone h3{margin:6px 0 8px}.production-reset-card{display:grid;gap:14px}.production-reset-card .button{justify-self:start}@media(max-width:760px){.production-reset-grid{grid-template-columns:1fr}.danger-zone .form-actions{flex-direction:column-reverse}.danger-zone .form-actions .button{width:100%}.production-reset-card .button{width:100%;justify-content:center}}

/* Build 15.4.2 - enterprise operational dashboards */
.dashboard-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 20px}.dashboard-kpi{position:relative;min-width:0;min-height:126px;padding:20px 21px;border:1px solid #dce5f0;border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(24,48,80,.045);overflow:hidden}.dashboard-kpi:before{content:"";position:absolute;left:0;top:18px;bottom:18px;width:3px;border-radius:0 4px 4px 0;background:#2d6cdf}.dashboard-kpi span,.dashboard-kpi small{display:block;color:#6d7d93}.dashboard-kpi span{font-size:12px;font-weight:750}.dashboard-kpi strong{display:block;margin:9px 0 5px;color:#17263d;font-size:26px;line-height:1.1;letter-spacing:-.025em}.dashboard-kpi small{font-size:12px;line-height:1.35}.dashboard-kpi.attention:before{background:#e6a019}.dashboard-kpi.critical:before{background:#df4a4a}.dashboard-kpi.healthy:before{background:#18a86b}.dashboard-command-panel{margin-bottom:20px!important}.dashboard-command-panel .section-heading{margin-bottom:16px}.dashboard-command-panel .table-wrap{border:1px solid #e2e9f2;border-radius:14px;overflow:auto}.dashboard-command-panel table{margin:0}.dashboard-command-panel table thead th{background:#f7f9fc}.dashboard-empty{padding:34px 20px!important}.asset-dashboard-map{height:min(62vh,620px);min-height:420px;border:1px solid #dce5f0;border-radius:16px;overflow:hidden;background:#f7f9fc}.asset-dashboard-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.asset-dashboard-summary>div{padding:14px 16px;border:1px solid #e0e7f0;border-radius:13px;background:#fbfdff}.asset-dashboard-summary span{display:block;font-size:12px;color:#718096}.asset-dashboard-summary strong{display:block;margin-top:4px;font-size:20px;color:#17263d}.page-heading{scroll-margin-top:90px}
@media(max-width:1100px){.dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.asset-dashboard-summary{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.dashboard-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.dashboard-kpi{min-height:108px;padding:15px 16px}.dashboard-kpi strong{font-size:21px}.dashboard-kpi small{font-size:11px}.asset-dashboard-summary{grid-template-columns:1fr}.asset-dashboard-map{height:58vh;min-height:360px}.dashboard-command-panel .btn{white-space:nowrap}}
@media(max-width:390px){.dashboard-kpi-grid{grid-template-columns:1fr}.dashboard-kpi{min-height:96px}}

/* Build 15.4.4 - My Workspace and attendance-first UX */
.ss-attendance-required{margin:0 0 16px}.ss-quick-actions{margin:0 0 18px}.ss-quick-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ss-quick-action{display:flex;align-items:center;gap:12px;min-height:74px;padding:14px 16px;border:1px solid #cbd8e8;border-radius:14px;background:#fff;color:#1c2c44;text-align:left;cursor:pointer}.ss-quick-action:not(.is-disabled):hover{border-color:#1455d9;box-shadow:0 8px 20px rgba(20,85,217,.08)}.ss-quick-action.is-disabled{opacity:.55;cursor:not-allowed}.ss-quick-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#edf4ff;color:#1455d9;font-weight:900}.ss-quick-action strong,.ss-quick-action small{display:block}.ss-quick-action small{margin-top:3px;color:#6d7c91}@media(max-width:640px){.ss-quick-action-grid{grid-template-columns:1fr}.ss-quick-action{min-height:68px}}

/* Build 15.4.5 - resilient My Workspace rendering */
.workspace-role-note{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:10px 13px;border:1px solid #dce5f0;border-radius:12px;background:#f8fbff;color:#607089;font-size:12px}.workspace-role-note strong{color:#20314a}.ss-empty-workspace{display:block!important}.ss-section-nav:not(:empty){display:flex!important}

/* Build 15.4.8 - My Workspace visual redesign */
.ss-v2-hero{min-height:176px;padding:28px 30px!important;background:linear-gradient(135deg,#f7faff 0%,#ffffff 58%,#f2f7ff 100%)!important;border-color:#d8e3f1!important;box-shadow:0 8px 26px rgba(25,48,80,.055)!important}
.ss-v2-hero:before{content:"";position:absolute;right:128px;bottom:-105px;width:210px;height:210px;border:1px solid rgba(31,88,196,.08);border-radius:50%}
.ss-v2-hero .ss-hero-copy{max-width:700px}
.ss-v2-hero .ss-hero-copy h2{font-size:31px;margin:4px 0 8px}
.ss-v2-hero .ss-hero-copy>p{max-width:640px;line-height:1.5}
.ss-hero-meta{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap;margin-top:17px;color:#60728b;font-size:12px;font-weight:700}
.ss-hero-meta>span{display:inline-flex;align-items:center;gap:7px}
.ss-hero-meta .ui-icon{width:18px;height:18px;border:0;background:transparent;color:#2d62bd}
.ss-hero-meta .ui-icon svg{width:17px;height:17px}
.ss-hero-status{position:relative;z-index:1;display:grid;grid-template-columns:44px minmax(0,1fr);align-items:center;gap:12px;min-width:205px;padding:14px 16px;border:1px solid #d7e2f0;border-radius:15px;background:rgba(255,255,255,.88);box-shadow:0 6px 18px rgba(24,48,80,.045)}
.ss-status-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#edf4ff;color:#1554c7}
.ss-status-icon .ui-icon{border:0;background:transparent;width:25px;height:25px}
.ss-hero-status>div:last-child{display:grid;gap:2px}
.ss-hero-status small{font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#7a899e}
.ss-hero-status strong{font-size:16px;color:#1c2b42}
.ss-hero-status span{font-size:11px;color:#78889d}
.ss-v2-section-nav{padding:5px 6px!important;border-radius:13px!important;box-shadow:0 4px 14px rgba(24,48,80,.035)!important}
.ss-v2-section-nav a{padding:8px 12px!important;font-size:12px!important}
.ss-v2-section-nav a:first-child{background:#edf4ff;color:#174fae}
.ss-v2-overview{padding:22px 24px!important}
.ss-v2-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:17px}
.ss-v2-section-head h2{margin:2px 0 5px;font-size:20px;letter-spacing:-.015em;color:#18273e}
.ss-v2-section-head p{margin:0;color:#687991;font-size:13px}
.ss-v2-date{display:grid;grid-template-columns:auto auto;grid-template-rows:auto auto;align-items:center;column-gap:7px;min-width:78px;padding:8px 10px;border:1px solid #dce5f0;border-radius:12px;background:#f8fbff;color:#6d7d92;font-size:10px;font-weight:800;text-transform:uppercase}
.ss-v2-date strong{grid-row:1/3;grid-column:2;font-size:25px;line-height:1;color:#173057}
.ss-v2-date small{font-size:10px;color:#728199}
.ss-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ss-overview-card{position:relative;display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:12px;min-height:94px;padding:15px 16px;border:1px solid #dde6f1;border-radius:14px;background:#fff;overflow:hidden}
.ss-overview-card:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#2d6cdf}
.ss-overview-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:11px;background:#f0f5ff;color:#1f5dca}
.ss-overview-icon .ui-icon{width:24px;height:24px;border:0;background:transparent}
.ss-overview-card>div{min-width:0;display:grid;gap:2px}
.ss-overview-card small{font-size:11px;font-weight:750;color:#708097}
.ss-overview-card strong{font-size:23px;line-height:1.05;color:#17263d;letter-spacing:-.02em;overflow-wrap:anywhere}
.ss-overview-card>div>span{font-size:11px;color:#8490a2}
.ss-overview-card>a{align-self:center;padding:7px 9px;border-radius:9px;background:#f4f7fb;color:#1d57b6;text-decoration:none;font-size:11px;font-weight:800}
.ss-overview-card>a:hover{background:#eaf2ff}
.ss-v2-work{padding:22px 24px!important}
.ss-v2-work .section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:15px}
.ss-count-badge{flex:0 0 auto;padding:6px 9px;border-radius:999px;background:#edf4ff;color:#1553c6;font-size:11px;font-weight:800}
.ss-table-status{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f3f6fa;color:#53647a;font-size:11px;font-weight:750}
.ss-inline-empty{display:flex;align-items:center;justify-content:center;gap:10px;color:#6f7f94}
.ss-inline-empty .ui-icon{width:28px;height:28px;border:0;background:transparent;color:#8ca0bb}
.ss-inline-empty span{display:grid;gap:2px;text-align:left}
.ss-inline-empty strong{color:#43536a}
.ss-inline-empty small{font-size:11px}
.ss-v2-performance{padding:22px 24px!important}
.ss-performance-percent{flex:0 0 auto;display:grid;place-items:center;min-width:64px;height:38px;padding:0 12px;border-radius:12px;background:#edf4ff;color:#1553c6;font-size:16px;font-weight:850}
.ss-performance-progress{height:8px;margin:2px 0 16px;border-radius:999px;background:#edf1f6;overflow:hidden}
.ss-performance-progress>span{display:block;height:100%;border-radius:inherit;background:#2463cf}
.ss-performance-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid #e0e7f0;border-radius:14px;background:#fbfdff;overflow:hidden}
.ss-performance-grid>div{min-width:0;padding:15px 17px;border-right:1px solid #e4eaf2}
.ss-performance-grid>div:last-child{border-right:0}
.ss-performance-grid small,.ss-performance-grid span{display:block}
.ss-performance-grid small{font-size:11px;font-weight:750;color:#738198}
.ss-performance-grid strong{display:block;margin:5px 0 2px;font-size:20px;line-height:1.15;color:#17263d;overflow-wrap:anywhere}
.ss-performance-grid strong em{font-style:normal;font-size:13px;color:#8693a5;font-weight:750}
.ss-performance-grid span{font-size:10px;color:#8a96a7}
.ss-v2-quick-actions{padding:17px 20px!important}
.ss-quick-actions-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:12px}
.ss-quick-actions-head .eyebrow{margin:0 0 2px}
.ss-quick-actions-head>div>strong{font-size:14px;color:#22324a}
.ss-v2-quick-actions .ss-quick-action{min-height:66px;padding:11px 14px;box-shadow:none}
.ss-v2-quick-actions .ss-quick-icon{width:36px;height:36px}
.ss-v2-quick-actions .ss-quick-icon .ui-icon{width:21px;height:21px;border:0;background:transparent}
.staff-ss-grid>.ss-section{padding:22px 24px!important}
.staff-ss-grid>.ss-section .section-heading h2{margin-top:2px}

@media(max-width:1050px){
 .ss-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .ss-overview-card:last-child{grid-column:1/-1}
 .ss-performance-grid{grid-template-columns:1fr 1fr}
 .ss-performance-grid>div:nth-child(2){border-right:0}
 .ss-performance-grid>div:last-child{grid-column:1/-1;border-top:1px solid #e4eaf2}
}
@media(max-width:760px){
 .ss-v2-hero{min-height:0;padding:20px!important}
 .ss-v2-hero:before{display:none}
 .ss-v2-hero .ss-hero-copy h2{font-size:24px}
 .ss-hero-meta{display:grid;gap:7px;margin-top:14px}
 .ss-hero-status{width:100%;min-width:0}
 .ss-v2-overview,.ss-v2-work,.ss-v2-performance,.staff-ss-grid>.ss-section{padding:17px!important}
 .ss-v2-section-head{margin-bottom:14px}
 .ss-overview-grid{grid-template-columns:1fr;gap:9px}
 .ss-overview-card:last-child{grid-column:auto}
 .ss-overview-card{min-height:78px;padding:12px 13px}
 .ss-overview-card strong{font-size:20px}
 .ss-performance-grid{grid-template-columns:1fr}
 .ss-performance-grid>div,.ss-performance-grid>div:nth-child(2),.ss-performance-grid>div:last-child{grid-column:auto;border-right:0;border-top:1px solid #e4eaf2}
 .ss-performance-grid>div:first-child{border-top:0}
 .ss-performance-grid>div{padding:12px 14px}
 .ss-v2-work .section-heading{display:grid;gap:10px}
 .ss-count-badge{justify-self:start}
 .ss-v2-quick-actions{padding:15px!important}
 .ss-quick-actions-head{align-items:flex-start}
}
@media(max-width:430px){
 .ss-v2-date{display:none}
 .ss-v2-section-head h2{font-size:18px}
 .ss-overview-card{grid-template-columns:38px minmax(0,1fr) auto}
 .ss-overview-icon{width:36px;height:36px}
 .ss-overview-card>a{padding:6px 8px}
 .ss-performance-percent{min-width:56px;height:34px;font-size:14px}
}

/* Build 15.4.9 - My Workspace date/time cleanup */
#workspace-portal-clock{font-variant-numeric:tabular-nums;font-weight:800;letter-spacing:.025em;color:#53647a}
.ss-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1050px){.ss-overview-card:last-child{grid-column:auto}}
@media(max-width:760px){.ss-overview-grid{grid-template-columns:1fr}}

/* Build 15.4.10 - My Workspace portfolio repayment metrics */
.ss-performance-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#e4eaf2}
.ss-performance-grid>div{border:0!important;background:#fbfdff}
.ss-metric-positive strong{color:#157347}
.ss-metric-alert strong{color:#b54708}
@media(max-width:1050px){.ss-performance-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ss-performance-grid>div:last-child{grid-column:auto}}
@media(max-width:760px){.ss-performance-grid{grid-template-columns:1fr}}



/* Build 15.4.11 - Staff Accounts paginated directory and expandable Add Staff */
.staff-directory-panel{padding:0;overflow:hidden}.staff-directory-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:24px 24px 18px}.staff-directory-title h2{margin:.25rem 0 .35rem}.staff-directory-title p{margin:0;max-width:720px}.staff-directory-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:12px}.staff-directory-head-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}.staff-directory-head-actions .btn{min-height:42px}.staff-directory-head-actions .btn.is-open{background:#0d47a1}.staff-add-drawer[hidden]{display:none!important}.staff-add-drawer{margin:0 24px 18px;padding:20px;border:1px solid #c9d7ea;border-radius:14px;background:linear-gradient(180deg,#f8fbff 0%,#fff 100%);box-shadow:0 8px 24px rgba(27,62,105,.06)}.staff-add-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:16px;margin-bottom:18px;border-bottom:1px solid #dce5f0}.staff-add-drawer-head h3{margin:.25rem 0 .25rem;font-size:1.08rem}.staff-add-drawer-head p{margin:0}.staff-add-actions{display:flex!important;justify-content:flex-end!important;gap:10px!important;padding-top:16px;border-top:1px solid #e1e7f0}.staff-search-bar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;padding:16px 24px;border-top:1px solid #e1e7f0;border-bottom:1px solid #e1e7f0;background:#fbfcfe}.staff-search-field{display:grid;gap:6px;margin:0;font-size:.78rem;font-weight:800;color:#4a5d76}.staff-search-input{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 12px;border:1px solid #cbd7e7;border-radius:10px;background:#fff}.staff-search-input:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px rgba(11,73,199,.08)}.staff-search-input>span{font-size:20px;line-height:1;color:#71839d}.staff-search-input input{border:0!important;box-shadow:none!important;margin:0!important;padding:8px 0!important;min-height:40px!important;width:100%;background:transparent}.staff-search-actions{display:flex;align-items:center;gap:8px}.staff-search-actions .btn{min-height:42px}.staff-results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 24px;color:#64758d;font-size:.78rem}.staff-results-toolbar>div{display:flex;align-items:center;gap:5px;min-width:0}.staff-results-toolbar strong{color:#24364f}.staff-directory-table-wrap{margin:0 24px;border:1px solid #d8e1ed;border-radius:13px;overflow-x:auto}.staff-directory-table{margin:0}.staff-directory-table th{background:#f5f8fc}.staff-directory-table td{vertical-align:middle}.staff-directory-table .identity-cell strong,.staff-directory-table .identity-cell small{display:block}.staff-directory-table .identity-cell small{margin-top:3px;color:#718096}.staff-pagination{margin:16px 24px 22px;padding-top:16px}.staff-pagination .pagination-summary{white-space:nowrap}
@media(max-width:900px){.staff-directory-head{padding:20px}.staff-add-drawer{margin-inline:20px}.staff-search-bar{padding-inline:20px}.staff-results-toolbar{padding-inline:20px}.staff-directory-table-wrap{margin-inline:20px}.staff-pagination{margin-inline:20px}.staff-directory-table .row-actions{gap:6px}.staff-directory-table .row-actions .btn{padding-inline:.7rem}}
@media(max-width:760px){.staff-directory-head{display:grid;grid-template-columns:1fr;padding:17px 16px}.staff-directory-head-actions,.staff-directory-head-actions .btn{width:100%}.staff-directory-head-actions .btn{justify-content:center}.staff-add-drawer{margin:0 16px 16px;padding:16px}.staff-add-drawer-head{align-items:flex-start}.staff-add-drawer-head .btn{flex:0 0 auto}.staff-add-actions{display:grid!important;grid-template-columns:1fr 1fr}.staff-add-actions .btn{width:100%}.staff-search-bar{grid-template-columns:1fr;padding:14px 16px}.staff-search-actions{display:grid;grid-template-columns:1fr 1fr}.staff-search-actions .btn{width:100%;justify-content:center}.staff-search-actions .btn:only-child{grid-column:1/-1}.staff-results-toolbar{align-items:flex-start;flex-direction:column;padding:12px 16px}.staff-directory-table-wrap{margin:0 16px;border:0;overflow:visible}.staff-directory-table tr{margin-bottom:10px;background:#fff;box-shadow:0 4px 14px rgba(31,59,96,.04)}.staff-directory-table td{display:grid!important;grid-template-columns:92px minmax(0,1fr);align-items:center;gap:10px}.staff-directory-table td:before{content:attr(data-label);color:#718096;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em}.staff-directory-table td:first-child{grid-template-columns:1fr}.staff-directory-table td:first-child:before{display:none}.staff-directory-table .actions-col{display:block!important;text-align:left}.staff-directory-table .actions-col:before{display:block;margin-bottom:8px}.staff-directory-table .row-actions{justify-content:flex-start}.staff-pagination{margin:14px 16px 18px;justify-content:center}.staff-pagination .pagination-summary{width:100%;margin:4px 0 0;text-align:center}}
@media(max-width:480px){.staff-add-actions{grid-template-columns:1fr}.staff-directory-table td{grid-template-columns:78px minmax(0,1fr)}.staff-directory-table .row-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.staff-directory-table .row-actions form{width:100%}.staff-directory-table .row-actions .btn{width:100%;min-width:0}.staff-directory-table .row-actions .muted{align-self:center}.staff-pagination{gap:5px}.staff-pagination .pagination-link{min-width:34px;height:34px;padding:0 8px}}

/* Build 15.4.12 - Shared bulk-selection toolbar and Staff Accounts alignment */
.table-bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:58px;padding:10px 14px;border:1px solid #d8e2ef;border-radius:12px;background:#f8fbff}.table-bulk-status{display:flex;align-items:center;gap:10px;min-width:0}.table-bulk-page-check{display:grid;place-items:center;width:34px;height:34px;margin:0;border:1px solid #cbd8e8;border-radius:9px;background:#fff;cursor:pointer;flex:0 0 auto}.table-bulk-page-check input,.bulk-select-col input{width:16px;height:16px;margin:0;accent-color:#185fd1;cursor:pointer}.table-bulk-page-check span{display:none}.table-bulk-status-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eaf2ff;color:#1557bd;font-size:13px;font-weight:950;flex:0 0 auto}.table-bulk-status-copy{display:block;min-width:0}.table-bulk-status-copy strong,.table-bulk-status-copy small{display:block}.table-bulk-status-copy strong{font-size:12px;color:#24364f;line-height:1.25}.table-bulk-status-copy small{margin-top:2px;color:#718096;font-size:10px;line-height:1.35}.table-bulk-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.table-bulk-actions[hidden]{display:none!important}.table-bulk-actions select{width:auto;min-width:180px;min-height:34px;margin:0;padding:6px 32px 6px 10px;font-size:11px}.table-bulk-actions .button,.table-bulk-actions .btn{margin:0;white-space:nowrap}.bulk-select-col{width:46px!important;min-width:46px!important;max-width:46px!important;padding-left:12px!important;padding-right:8px!important;text-align:center!important}.bulk-select-col input{display:inline-block}.is-bulk-selected>td{background:#f3f7ff!important}.is-bulk-selected{box-shadow:inset 3px 0 0 #2d6cdf}.table-bulk-utility{margin:0 0 10px}.table-bulk-utility+.table-wrap,.table-bulk-utility+.table-scroll{margin-top:0}.staff-bulk-toolbar{margin:0 24px 12px}.staff-directory-table thead .bulk-select-col{background:#f5f8fc}.staff-directory-table .bulk-select-col:before{display:none!important}.followup-bulk-toolbar{margin:0 0 14px}.followup-work-card.is-bulk-selected{border-color:#9ebcf0;box-shadow:0 0 0 3px rgba(25,93,209,.08)}
@media(max-width:900px){.staff-bulk-toolbar{margin-inline:20px}.table-bulk-toolbar{align-items:flex-start}.table-bulk-actions{max-width:58%}}
@media(max-width:760px){.table-bulk-toolbar{display:grid;grid-template-columns:1fr;padding:11px 12px}.table-bulk-actions{max-width:none;width:100%;justify-content:flex-start}.table-bulk-actions select{flex:1 1 170px;min-width:0}.table-bulk-actions .button,.table-bulk-actions .btn{flex:0 0 auto}.staff-bulk-toolbar{margin:0 16px 12px}.staff-directory-table tr{position:relative;padding-top:42px!important}.staff-directory-table td.bulk-select-col{display:flex!important;position:absolute;top:11px;right:12px;width:34px!important;min-width:34px!important;max-width:34px!important;height:30px;align-items:center;justify-content:center;padding:0!important;border:1px solid #d6e0ed!important;border-radius:8px;background:#fff!important;z-index:2}.staff-directory-table td:nth-child(2){grid-template-columns:1fr!important}.staff-directory-table td:nth-child(2):before{display:none!important}.mobile-detail-table tr[data-bulk-selectable]{position:relative;padding-top:45px!important}.mobile-detail-table tr[data-bulk-selectable] td.bulk-select-col{display:flex!important;position:absolute;top:10px;right:50px;width:32px!important;min-width:32px!important;max-width:32px!important;height:28px;align-items:center;justify-content:center;padding:0!important;border:1px solid #d6e0ed!important;border-radius:8px;background:#fff!important;z-index:3}.mobile-detail-table tr[data-bulk-selectable] td.bulk-select-col input{width:15px;height:15px}.table-bulk-status-icon{display:none}}
@media(max-width:480px){.table-bulk-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.table-bulk-actions select{grid-column:1/-1;width:100%}.table-bulk-actions .button,.table-bulk-actions .btn{width:100%}.table-bulk-actions .button:last-child,.table-bulk-actions .btn:last-child:nth-child(3){grid-column:1/-1}}


/* Build 15.4.13 - navigation build badge, clock/readability follow-up, and Staff Accounts toolbar de-duplication */
.side-nav{flex:1 1 auto;min-height:0;padding-bottom:12px}
.sidebar-build-version{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 12px 12px;padding:10px 12px;border:1px solid #e1e7f0;border-radius:10px;background:#f7f9fc;color:#6b7c94;font-size:10px;line-height:1}
.sidebar-build-version span{font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.sidebar-build-version strong{color:#334864;font-size:11px;letter-spacing:.02em}
body.sidebar-is-collapsed .sidebar-build-version{justify-content:center;margin-inline:9px;padding:10px 4px}
body.sidebar-is-collapsed .sidebar-build-version span{display:none}
body.sidebar-is-collapsed .sidebar-build-version strong{font-size:9px;letter-spacing:-.02em}
.staff-bulk-toolbar{min-height:52px;padding:8px 12px;align-items:center}
.staff-bulk-toolbar .table-bulk-status-icon{display:none}
.staff-bulk-toolbar .table-bulk-status-copy strong{font-size:12px}
.staff-bulk-toolbar .table-bulk-status-copy small{font-size:10px}
.staff-directory-table-wrap{margin-top:0}
.table-selection-summary{display:grid;gap:1px;align-items:center}
.table-selection-summary .table-selection-title{font-size:12px;color:#24364f}
.table-selection-summary .table-selection-note{font-size:10px;color:#718096}
.data-table-toolbar:not(.has-selection) .table-selection-summary{opacity:1}
.data-table-toolbar .table-tool[hidden]{display:none!important}
@media(max-width:850px){
  .sidebar-build-version{margin:8px 16px 16px;padding:11px 12px;background:#f8fafc}
  body.sidebar-is-collapsed .sidebar-build-version{justify-content:space-between;margin:8px 16px 16px;padding:11px 12px}
  body.sidebar-is-collapsed .sidebar-build-version span{display:inline}
  body.sidebar-is-collapsed .sidebar-build-version strong{font-size:11px;letter-spacing:.02em}
}
@media(max-width:760px){
  .staff-bulk-toolbar{margin-top:0;min-height:48px}
  .staff-bulk-toolbar .table-bulk-status-copy small{display:none}
}
/* Build 15.4.14 - administrator/owner target-exempt policy; no new visual primitives required */

/* Build 15.4.15 - application ownership, team visibility and reporting relationships */
.application-owner-auto{align-self:stretch;display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:78px;padding:14px 16px;border:1px solid var(--line,#d9e2ef);border-radius:14px;background:var(--surface-soft,#f7f9fc)}
.application-owner-auto strong{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#64748b)}
.application-owner-auto span{font-weight:700;color:var(--text,#17243b)}
.application-owner-auto small{color:var(--muted,#64748b)}
.application-filter-grid{grid-template-columns:minmax(260px,1.5fr) repeat(3,minmax(170px,1fr));align-items:end}
.application-filter-grid .filter-actions{align-self:end}
.application-directory-panel .section-heading{margin-bottom:14px}
.application-responsibility-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 14px}
.application-responsibility-strip>div{padding:13px 16px;border:1px solid var(--line,#d9e2ef);border-radius:14px;background:var(--panel,#fff);display:flex;flex-direction:column;gap:3px}
.application-responsibility-strip span{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#64748b)}
.application-responsibility-strip strong{font-size:15px;color:var(--text,#17243b)}
.application-responsibility-strip small{font-size:11px;color:var(--muted,#64748b)}
.staff-search-with-manager{grid-template-columns:minmax(300px,1fr) minmax(190px,240px) auto;align-items:end}
.staff-manager-filter{display:flex;flex-direction:column;gap:6px;min-width:0}
.staff-manager-filter>span{font-size:12px;font-weight:600;color:var(--muted,#64748b)}
.staff-manager-filter select{width:100%}
.staff-directory-table th:nth-child(5),.staff-directory-table td:nth-child(5){min-width:150px}
@media(max-width:1100px){.application-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.application-filter-grid .grow-field{grid-column:1/-1}.staff-search-with-manager{grid-template-columns:1fr 220px}.staff-search-actions{grid-column:1/-1}}
@media(max-width:720px){.application-filter-grid{grid-template-columns:1fr}.application-filter-grid .grow-field{grid-column:auto}.application-responsibility-strip{grid-template-columns:1fr}.staff-search-with-manager{grid-template-columns:1fr}.staff-search-actions{grid-column:auto}.staff-manager-filter{width:100%}}


/* Build 15.5.0: calmer loan application wizard and communications workspace */
.loan-wizard{max-width:1180px;margin-inline:auto}.loan-wizard .wizard-progress{background:#fff;border:1px solid var(--line);border-radius:16px;padding:10px;gap:8px;box-shadow:0 8px 24px rgba(26,45,79,.05)}
.loan-wizard .wizard-progress button,.loan-wizard .wizard-progress .wizard-step{min-height:46px;border-radius:11px;background:#f5f7fb;color:#66758f;border:1px solid transparent;font-weight:800}.loan-wizard .wizard-progress .active{background:#eaf1ff;color:#0f4dcc;border-color:#c9dafb}.loan-wizard .wizard-panel{border-radius:16px;padding:26px 24px;box-shadow:none}.loan-wizard .step-heading{margin-bottom:22px}.loan-wizard .step-icon{background:#edf3ff;color:#1655c8}.loan-wizard .customer-search-row{grid-template-columns:minmax(0,1fr) 124px;max-width:100%}.loan-wizard .customer-search-row .button{height:46px}.loan-wizard .inline-empty-action{border-top:1px solid #e5eaf2;padding-top:16px;margin-top:18px}.loan-wizard .wizard-actions{margin-top:20px;padding:18px 0 0}.loan-wizard .wizard-actions .secondary{margin-right:auto}
.communications-shell{display:grid;grid-template-columns:minmax(0,1fr);gap:18px}.communication-compose .grid{margin-top:16px}.communication-sendbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:18px;padding:14px 16px;border:1px solid #d5e0f2;border-radius:12px;background:#f7f9fd}.communication-sendbar small{display:block;color:var(--muted);margin-top:3px}.recipient-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end;margin:14px 0}.recipient-table .select-col{width:46px}.recipient-table tbody tr:has(input:checked){background:#f2f7ff}.pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.pagination>div{display:flex;gap:8px}.tabs.compact{margin:0}.tabs.compact a{padding:7px 11px}.empty-cell{text-align:center;color:var(--muted);padding:28px!important}
@media(max-width:760px){.loan-wizard .wizard-progress{overflow:auto;flex-wrap:nowrap}.loan-wizard .wizard-progress>*{min-width:130px}.loan-wizard .wizard-panel{padding:18px 16px}.recipient-search{grid-template-columns:1fr}.communication-sendbar,.pagination{align-items:stretch;flex-direction:column}.communication-sendbar .button{width:100%;justify-content:center}}

/* Build 15.6.0: Secure Login + feature-rich Communications */
.communications-v2{display:grid;gap:18px}.comm-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;padding:24px 26px;background:linear-gradient(135deg,#fff 0%,#f5f8ff 100%)}.comm-hero h2{margin:5px 0 7px}.comm-hero p{margin:0;max-width:760px}.comm-hero-stats{display:grid;grid-template-columns:repeat(3,minmax(90px,1fr));gap:8px}.comm-hero-stats>div{min-width:94px;padding:12px 14px;border:1px solid var(--border,#dbe4f0);border-radius:12px;background:#fff;text-align:center}.comm-hero-stats strong{display:block;font-size:20px}.comm-hero-stats span{font-size:12px;color:var(--muted)}
.comm-heading{align-items:center}.comm-segments{display:flex;gap:8px;overflow:auto;padding:2px 0 12px;scrollbar-width:thin}.comm-segments a{white-space:nowrap;padding:8px 12px;border:1px solid var(--border,#dbe4f0);border-radius:999px;text-decoration:none;color:var(--text,#1d2b43);font-size:13px;font-weight:650;background:#fff}.comm-segments a.active{background:#eaf1ff;border-color:#b7ccf7;color:#0c55d6}.comm-search{margin:4px 0 12px}.comm-selectionbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;margin-bottom:12px;border:1px solid #d7e1ef;border-radius:12px;background:#f8fafd}.comm-selectionbar small{display:block;margin-top:2px;color:var(--muted)}.comm-selection-actions{display:flex;gap:8px;flex-wrap:wrap}.recipient-table tbody tr:has([data-recipient-check]:checked){background:#f1f6ff}.comm-compose{scroll-margin-top:90px}.comm-compose-top{display:grid;grid-template-columns:1fr 1fr;gap:14px}.comm-channel-picker{display:flex;gap:10px;border:0;padding:0;margin:18px 0}.comm-channel-picker legend{font-weight:750;margin-bottom:8px}.comm-channel-picker label{display:flex;align-items:center;gap:8px;border:1px solid #d7e1ef;border-radius:12px;padding:10px 14px;background:#fff;cursor:pointer}.comm-channel-picker label:has(input:checked){border-color:#9bbaf5;background:#eef4ff;color:#0f53c8}.comm-channel-card{border:1px solid #dbe4f0;border-radius:14px;padding:18px;margin:12px 0;background:#fbfcfe}.comm-channel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.comm-channel-title strong{display:block;font-size:16px}.comm-channel-title span:not(.badge){display:block;font-size:12px;color:var(--muted);margin-top:2px}.comm-upload{display:block;margin-top:12px;padding:12px;border:1px dashed #cbd8eb;border-radius:10px;background:#fff}.comm-upload input{margin-top:8px}.comm-template-library details>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer}.comm-template-library details>summary::-webkit-details-marker{display:none}.comm-template-library summary div strong,.comm-template-library summary div span{display:block}.comm-template-library summary div span{color:var(--muted);font-size:13px;margin-top:3px}.comm-template-body{padding-top:20px}.comm-template-form{padding:16px;border:1px solid #dbe4f0;border-radius:12px;background:#f9fbfe}.template-mini-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.template-mini-grid>div{border:1px solid #e0e7f1;border-radius:12px;padding:12px}.template-mini-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 0;border-top:1px solid #edf1f6}.template-mini-row:first-of-type{border-top:0}.template-mini-row small{display:block;color:var(--muted)}.comm-activity-grid{display:grid;gap:8px}.comm-activity-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:10px 0;border-top:1px solid #edf1f6}.comm-activity-row:first-child{border-top:0}.comm-activity-row small{display:block;color:var(--muted);margin-top:2px}
.comm-settings-v2{padding:0;overflow:hidden}.comm-settings-header{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding:24px 26px;border-bottom:1px solid #e0e7f1}.comm-settings-header h3{margin:4px 0 6px}.comm-settings-header p{margin:0}.comm-settings-status{display:flex;gap:8px;flex-wrap:wrap}.comm-settings-tabs{display:flex;gap:4px;overflow:auto;padding:10px 14px;border-bottom:1px solid #e0e7f1;background:#f8fafd}.comm-settings-tabs button{border:0;background:transparent;padding:9px 13px;border-radius:9px;font:inherit;font-weight:700;color:#52627a;cursor:pointer;white-space:nowrap}.comm-settings-tabs button.active{background:#fff;color:#0d53cf;box-shadow:0 1px 3px rgba(20,43,80,.12)}.communication-settings-form{padding:0 26px}.comm-settings-pane{padding:22px 0;min-height:260px}.comm-pane-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}.comm-pane-head h4{margin:0 0 4px}.comm-pane-head p{margin:0;color:var(--muted)}.comm-inline-manager{margin-top:22px;padding-top:18px;border-top:1px solid #e5ebf3}.sender-chip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:14px}.sender-chip{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dfe7f2;border-radius:10px;padding:10px}.sender-chip span:not(.badge){display:block;color:var(--muted);font-size:12px;margin-top:2px}.comm-details{margin-top:18px;border:1px solid #dfe7f2;border-radius:10px;padding:12px}.comm-details summary{font-weight:700;cursor:pointer}.comm-settings-save{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 0 22px;border-top:1px solid #e0e7f1}.comm-settings-save span{font-size:12px;color:var(--muted)}.comm-test-strip{display:grid;grid-template-columns:auto repeat(3,1fr);gap:10px;align-items:end;padding:16px 26px;background:#f8fafd;border-top:1px solid #e0e7f1}.comm-test-strip form{display:flex;gap:6px}.comm-test-strip input{min-width:0}.comm-log-table{max-height:410px;overflow:auto}
.secure-login-card{width:min(620px,calc(100% - 32px));margin:7vh auto;background:#fff;border:1px solid #dbe4f0;border-radius:20px;padding:28px;box-shadow:0 20px 70px rgba(25,46,80,.12)}.secure-login-head h1{margin:5px 0 8px}.secure-login-head p{color:var(--muted)}.secure-methods{display:grid;gap:10px;margin-top:18px}.secure-method-form{margin:0}.secure-method{width:100%;display:flex;align-items:center;gap:14px;text-align:left;border:1px solid #dbe4f0;border-radius:14px;padding:14px 16px;background:#fff;color:var(--text);cursor:pointer}.secure-method.primary{border-color:#aac3f6;background:#eff5ff}.secure-method>span{width:38px;height:38px;border-radius:11px;background:#edf3ff;display:grid;place-items:center}.secure-method strong,.secure-method small{display:block}.secure-method small{color:var(--muted);margin-top:3px}.secure-code-form{margin-top:18px;padding-top:18px;border-top:1px solid #e3e9f2}.secure-login-foot{text-align:center;margin-top:20px}.secure-manage-shell{display:grid;gap:18px}.secure-manage-hero{display:flex;justify-content:space-between;gap:24px;align-items:center}.secure-manage-hero h2{margin:4px 0 6px}.secure-manage-hero p{margin:0;max-width:760px}.secure-status-card{min-width:160px;border:1px solid #dbe4f0;border-radius:14px;padding:14px;background:#f9fbfe}.secure-status-card strong,.secure-status-card small{display:block}.secure-status-card strong{margin-top:8px}.secure-status-card small{color:var(--muted)}.secure-method-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.secure-setup-card{position:relative}.secure-card-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:12px;background:#edf4ff;margin-bottom:12px}.secure-setup-card h3{margin:0 0 7px}.secure-setup-card p{color:var(--muted)}.secure-device-list{display:grid;gap:8px;margin:12px 0}.secure-device-list>div{padding:9px 10px;border:1px solid #e0e7f1;border-radius:9px}.secure-device-list small{display:block;color:var(--muted);margin-top:2px}.recovery-code-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.recovery-code-grid code{padding:10px;border:1px solid #dbe4f0;border-radius:8px;background:#f8fafd;text-align:center}.secure-danger{display:flex;align-items:center;justify-content:space-between;gap:18px}
@media(max-width:900px){.comm-hero,.secure-manage-hero,.comm-settings-header{flex-direction:column;align-items:stretch}.comm-hero-stats{grid-template-columns:repeat(3,1fr)}.template-mini-grid,.sender-chip-grid{grid-template-columns:1fr}.comm-settings-status{justify-content:flex-start}.comm-test-strip{grid-template-columns:1fr}.comm-test-strip form{display:grid;grid-template-columns:1fr auto}.secure-method-grid{grid-template-columns:1fr}.recovery-code-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:640px){.comm-selectionbar,.comm-settings-save,.secure-danger{flex-direction:column;align-items:stretch}.comm-selection-actions{display:grid;grid-template-columns:1fr 1fr}.comm-selection-actions .button:last-child{grid-column:1/-1}.comm-compose-top{grid-template-columns:1fr}.comm-channel-picker{display:grid;grid-template-columns:1fr}.comm-channel-title{align-items:flex-start}.comm-hero-stats{grid-template-columns:1fr}.communication-settings-form{padding:0 18px}.comm-settings-header,.comm-test-strip{padding-left:18px;padding-right:18px}.recovery-code-grid{grid-template-columns:1fr}.comm-test-strip form{grid-template-columns:1fr}.comm-test-strip .button{width:100%}}


/* Build 15.6.1: UI density, icon audit, standardized typography and appearance modes */
:root{--font-ui:Inter,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;--weight-medium:500;--weight-semibold:600;--surface-soft:#f7f9fc;--border:#e1e7ef;--text:#152238}
body{font-family:var(--font-ui);font-weight:400}.nav-item{font-weight:550}.nav-label,.eyebrow{font-weight:650}.brand-mark{font-weight:650}.brand-block strong,.user-chip-name,.account-dropdown a{font-weight:600}.page-head h1{font-size:28px;font-weight:600;letter-spacing:-.018em}.panel h2{font-size:18px;font-weight:600}.panel h3,.panel h4,h2,h3,h4{font-weight:600}strong,b{font-weight:600}.button,button,.btn{font-weight:600}.cards span,.mini-stat span,.breadcrumbs a{font-weight:550}.cards strong,.mini-stat strong{font-weight:600}.dashboard-hero h2{font-size:32px;font-weight:600}.dashboard-hero p{font-size:14px}.section-heading h2,.section-heading h3{font-weight:600}.badge{font-weight:550}.comm-segments a{font-weight:550}.comm-channel-picker legend{font-weight:600}.comm-settings-tabs button{font-weight:550}.comm-details summary,.comm-config-details summary{font-weight:600}

.appearance-menu{position:relative}.appearance-menu>summary{list-style:none;cursor:pointer}.appearance-menu>summary::-webkit-details-marker{display:none}.appearance-dropdown{position:absolute;right:0;top:50px;width:230px;padding:7px;background:var(--surface);border:1px solid var(--line);border-radius:11px;box-shadow:0 16px 34px rgba(16,36,70,.16);z-index:65;display:grid;gap:3px}.appearance-dropdown button{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:9px;text-align:left;border:0;background:transparent;color:var(--ink);padding:9px 10px;border-radius:8px;cursor:pointer}.appearance-dropdown button:hover,.appearance-dropdown button.active{background:var(--blue-soft);color:var(--blue)}.appearance-dropdown strong,.appearance-dropdown small{display:block}.appearance-dropdown strong{font-size:12px}.appearance-dropdown small{font-size:10px;color:var(--muted);margin-top:1px}.appearance-dropdown .ui-icon{width:18px;height:18px}

.comm-settings-v3{padding:0;overflow:hidden}.comm-settings-header.compact{padding:18px 22px}.comm-settings-header.compact h3{font-size:19px}.comm-settings-header.compact p{font-size:12px;max-width:700px}.compact-form{padding:0 22px}.comm-settings-pane{min-height:0}.comm-settings-pane .comm-pane-head.compact{margin-bottom:12px}.comm-pane-head.compact h4{font-size:15px}.comm-pane-head.compact p{font-size:12px}.comm-config-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.comm-config-card{border:1px solid var(--border);border-radius:11px;background:var(--surface-soft);padding:14px}.comm-wide-card{margin-top:12px}.comm-card-head{display:flex;align-items:center;gap:9px}.comm-card-head>.ui-icon{color:var(--blue)}.comm-card-head strong,.comm-card-head small{display:block}.comm-card-head strong{font-size:13px}.comm-card-head small{font-size:10px;color:var(--muted);margin-top:1px}.compact-grid{gap:10px!important;margin-top:12px}.compact-grid label{font-size:11px}.compact-grid input,.compact-grid select,.compact-grid textarea{min-height:38px;padding-top:8px;padding-bottom:8px}.comm-config-details{padding:0}.comm-config-details>summary,.comm-test-drawer>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;padding:14px}.comm-config-details>summary::-webkit-details-marker,.comm-test-drawer>summary::-webkit-details-marker{display:none}.comm-config-body{padding:0 14px 14px}.detail-toggle{font-size:10px;font-weight:550;color:var(--blue);white-space:nowrap}.comm-lifecycle-switches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.comm-lifecycle-switches label{font-size:11px}.compact-events{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.compact-events .checkline{padding:9px 10px;min-height:42px}.comm-policy-card p{font-size:12px;color:var(--muted);margin:12px 0 0}.compact-save{padding:12px 0 16px}.comm-test-drawer{border-top:1px solid var(--border);background:var(--surface-soft)}.comm-test-drawer>summary{padding:13px 22px}.comm-test-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;padding:0 22px 16px}.comm-test-grid form{display:grid;grid-template-columns:1fr auto;gap:8px;border:1px solid var(--border);background:var(--surface);border-radius:10px;padding:11px}.comm-test-grid form>div{grid-column:1/-1}.comm-test-grid strong,.comm-test-grid small{display:block}.comm-test-grid strong{font-size:12px}.comm-test-grid small{font-size:10px;color:var(--muted)}.comm-test-grid input{min-width:0;min-height:36px}.sender-chip-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.sender-chip-grid.compact .sender-chip{padding:8px 9px}

/* Appearance: variable-driven dark mode plus compatibility overrides for legacy hard-coded surfaces. */
html[data-theme="dark"]{color-scheme:dark;--navy:#d7e3f6;--blue:#78a7ff;--blue-dark:#9cbcff;--blue-soft:#172b4d;--ink:#e7edf7;--text:#e7edf7;--muted:#9eabc0;--line:#2a3444;--border:#2a3444;--bg:#10151d;--surface:#171d27;--surface-soft:#1c2430;--green:#43c887;--orange:#f3b64b;--red:#ff7a83;--cyan:#53bce9;--shadow:0 10px 28px rgba(0,0,0,.18)}
html[data-theme="dark"] body,html[data-theme="dark"] .workspace,html[data-theme="dark"] .mobile-report-sheet{background:var(--bg);color:var(--ink)}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] .workspace-bar,html[data-theme="dark"] .panel,html[data-theme="dark"] .cards article,html[data-theme="dark"] .mini-stat,html[data-theme="dark"] .onboarding-panel,html[data-theme="dark"] .announcement-strip article,html[data-theme="dark"] .top-action,html[data-theme="dark"] .user-chip,html[data-theme="dark"] .account-dropdown,html[data-theme="dark"] .notification-dropdown,html[data-theme="dark"] .desktop-quick-actions-menu,html[data-theme="dark"] .appearance-dropdown,html[data-theme="dark"] .comm-hero-stats>div,html[data-theme="dark"] .comm-channel-picker label,html[data-theme="dark"] .comm-channel-card,html[data-theme="dark"] .comm-upload,html[data-theme="dark"] .sender-chip,html[data-theme="dark"] .secure-login-card,html[data-theme="dark"] .secure-method,html[data-theme="dark"] .comm-test-grid form{background:var(--surface);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .comm-config-card,html[data-theme="dark"] .comm-settings-tabs,html[data-theme="dark"] .comm-test-drawer,html[data-theme="dark"] .comm-selectionbar,html[data-theme="dark"] .top-search,html[data-theme="dark"] .risk-bars>div{background:var(--surface-soft);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#111821!important;border-color:#344154!important;color:var(--ink)!important}html[data-theme="dark"] select{background-image:linear-gradient(45deg,transparent 50%,#9eabc0 50%),linear-gradient(135deg,#9eabc0 50%,transparent 50%)}
html[data-theme="dark"] table{color:var(--ink)}html[data-theme="dark"] thead th{background:#1c2430;color:#b8c4d7;border-color:var(--line)}html[data-theme="dark"] tbody td{border-color:var(--line)}html[data-theme="dark"] tbody tr:hover,html[data-theme="dark"] .recipient-table tbody tr:has([data-recipient-check]:checked){background:#1b2b44}
html[data-theme="dark"] .comm-hero{background:linear-gradient(135deg,#171d27 0%,#1a2638 100%)}html[data-theme="dark"] .nav-item{color:#b4c0d3}html[data-theme="dark"] .nav-item:hover{background:#1b2635;color:#8fb2ff}html[data-theme="dark"] .nav-item.active{background:#182c4f;color:#8fb2ff}html[data-theme="dark"] .comm-segments a,html[data-theme="dark"] .tabs a,html[data-theme="dark"] .table-tool{background:var(--surface);border-color:var(--line);color:#c4cfdf}html[data-theme="dark"] .comm-segments a.active{background:#1b3157;color:#9bbaff;border-color:#315286}html[data-theme="dark"] .button.secondary,html[data-theme="dark"] .btn-secondary{background:#1d2734;color:#d9e2ef;border-color:#344154}html[data-theme="dark"] .badge{background:#222c39;color:#c7d2e2;border-color:#364356}html[data-theme="dark"] footer{color:#8390a4}

@media(max-width:920px){.comm-config-grid,.comm-test-grid{grid-template-columns:1fr}.sender-chip-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-events{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.page-head h1{font-size:24px}.dashboard-hero h2{font-size:27px}.comm-lifecycle-switches{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-events,.sender-chip-grid.compact{grid-template-columns:1fr}.comm-settings-header.compact,.comm-test-drawer>summary{padding-left:16px;padding-right:16px}.compact-form{padding:0 16px}.comm-test-grid{padding:0 16px 14px}.appearance-dropdown{position:fixed;right:12px;top:64px}}

/* Build 15.6.1 communications workspace density refinements */
.communications-v2{gap:12px}.communications-v2>.panel{margin-bottom:0}.comm-hero{padding:16px 20px;gap:18px}.comm-hero h2{font-size:19px;margin:3px 0 4px}.comm-hero p{font-size:12px;line-height:1.4}.comm-hero-stats>div{min-width:82px;padding:8px 10px}.comm-hero-stats strong{font-size:17px}.comm-audience-panel{padding:16px}.comm-audience-panel .section-heading{margin-bottom:10px}.comm-segments{padding-bottom:8px}.comm-segments a{padding:6px 10px;font-size:12px}.comm-selectionbar{padding:9px 11px;margin-bottom:8px}.comm-compose{padding:16px}.comm-compose-top{gap:10px}.comm-channel-picker{margin:12px 0;gap:8px}.comm-channel-picker label{padding:8px 11px;border-radius:10px}.comm-channel-picker .ui-icon{width:16px;height:16px}.comm-channel-card{padding:13px 14px;margin:8px 0;border-radius:11px}.comm-channel-title{margin-bottom:10px}.comm-channel-name{display:flex!important;align-items:center;gap:9px}.comm-channel-name>.ui-icon{color:var(--blue);width:18px;height:18px}.comm-channel-name>span{display:block}.comm-upload{margin-top:8px;padding:9px}.communication-sendbar{padding-top:10px}.comm-template-library,.communications-v2 .panel{box-shadow:0 5px 18px rgba(17,42,78,.04)}
@media(max-width:850px){header.workspace-bar .top-actions{grid-template-columns:34px 34px 34px 34px!important;width:145px!important;min-width:145px!important}header.workspace-bar .appearance-menu{display:block!important;min-width:34px!important;width:34px!important;height:34px!important}header.workspace-bar .appearance-trigger{width:34px!important;height:34px!important;min-width:34px!important;border-radius:50%!important;padding:0!important}}


/* Build 15.6.2: monochrome dark mode + dense communications/settings UI */
.communications-v4{display:grid;gap:10px}.communications-v4>.panel{margin:0}.comm-overview{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 18px}.comm-overview h2{font-size:18px;font-weight:600;margin:2px 0}.comm-overview p{font-size:12px;margin:0;color:var(--muted)}.comm-overview-stats{display:flex;gap:8px;flex-wrap:wrap}.comm-overview-stats span{display:flex;align-items:baseline;gap:5px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-soft);font-size:10px;color:var(--muted)}.comm-overview-stats strong{font-size:15px;font-weight:600;color:var(--ink)}
.comm-recipient-workbench{padding:12px 14px}.comm-workbench-toolbar{display:grid;grid-template-columns:auto minmax(280px,480px);justify-content:space-between;gap:12px;align-items:center}.comm-audience-switch{display:flex;gap:5px}.comm-audience-switch a{display:flex;align-items:center;gap:6px;padding:7px 10px;border-radius:8px;border:1px solid var(--line);text-decoration:none;font-size:11px;font-weight:550;color:var(--muted);background:var(--surface)}.comm-audience-switch a.active{background:var(--blue-soft);color:var(--blue);border-color:#bcd0f5}.comm-audience-switch .ui-icon{width:15px;height:15px}.comm-inline-search{display:grid;grid-template-columns:1fr auto;gap:6px}.comm-inline-search input{margin:0;min-height:34px}.comm-inline-search button{min-height:34px}.comm-group-strip{display:flex;gap:5px;overflow:auto;padding:9px 0 7px;scrollbar-width:thin}.comm-group-strip a{flex:0 0 auto;display:flex;align-items:center;gap:7px;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);text-decoration:none;font-size:10px;font-weight:550}.comm-group-strip a b{font-size:9px;font-weight:550;padding:2px 5px;border-radius:999px;background:var(--surface-soft);color:var(--muted)}.comm-group-strip a.active{border-color:#a9c2ef;background:var(--blue-soft);color:var(--blue)}.comm-list-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 0}.comm-list-meta>div:first-child strong,.comm-list-meta>div:first-child span{display:block}.comm-list-meta>div:first-child strong{font-size:12px;font-weight:600}.comm-list-meta>div:first-child span{font-size:10px;color:var(--muted);margin-top:1px}.comm-selection-actions{display:flex;align-items:center;gap:6px}.comm-selection-actions>strong{font-size:10px;font-weight:550;color:var(--muted);margin-right:2px}.comm-selection-actions>strong.attention{color:var(--red)}.comm-recipient-table{max-height:390px}.comm-recipient-table th,.comm-recipient-table td{padding:8px 10px}.comm-recipient-table td strong{font-weight:550}.comm-recipient-table .empty-cell{padding:24px;text-align:center}.comm-recipient-table .empty-cell strong,.comm-recipient-table .empty-cell span{display:block}.comm-recipient-table .empty-cell span{font-size:11px;color:var(--muted);margin-top:3px}.compact-pagination{margin-top:7px}
.comm-compose{padding:14px}.comm-compose-controls{display:grid;grid-template-columns:minmax(180px,240px) minmax(190px,250px) 1fr;gap:9px;align-items:end}.comm-compose-controls>label{margin:0}.comm-compose-controls .comm-channel-picker{margin:0}.comm-channel-picker{padding:0;border:0;display:flex;align-items:center;gap:6px}.comm-channel-picker legend{float:left;margin:0 8px 0 0;font-size:10px}.comm-channel-picker label{margin:0;min-height:36px;padding:6px 9px}.comm-tag-picker{display:grid;grid-template-columns:auto 1fr;gap:8px;align-items:start;margin:10px 0;padding:8px;border:1px dashed var(--line);border-radius:9px;background:var(--surface-soft)}.comm-tag-picker>span,.comm-template-tags>span{font-size:10px;font-weight:600;color:var(--muted);padding-top:4px}.comm-tag-picker>div,.comm-template-tags{display:flex;gap:4px;flex-wrap:wrap}.comm-tag{border:1px solid var(--line);background:var(--surface);color:var(--muted);padding:3px 6px;min-height:24px;border-radius:6px;font:500 9px/1.2 var(--font,Inter,system-ui);cursor:pointer}.comm-tag:hover{border-color:#aebcd0;color:var(--ink);background:var(--surface-soft)}.comm-channel-card{padding:11px 12px}.comm-channel-card textarea{resize:vertical}.comm-template-library details>summary{padding:10px 12px}.comm-template-body{padding:0 12px 12px}.comm-template-tags{margin:8px 0}.comm-activity{padding:12px 14px}.comm-activity .section-heading{margin-bottom:8px}.comm-activity-grid{gap:5px}.comm-activity-row{padding:7px 8px}
.comm-settings-v3{max-width:none}.comm-settings-header.compact{padding:12px 16px}.comm-settings-header.compact h3{font-size:16px;margin-bottom:2px}.comm-settings-header.compact p{font-size:11px;margin:0}.comm-settings-tabs{padding:6px 16px;gap:3px;overflow:auto;white-space:nowrap}.comm-settings-tabs button{padding:6px 9px;font-size:10px;min-height:30px}.compact-form{padding:0 16px}.comm-settings-pane{padding-top:10px}.comm-settings-pane .comm-pane-head.compact{margin-bottom:8px}.comm-pane-head.compact h4{font-size:13px}.comm-pane-head.compact p{font-size:10px;margin-top:2px}.comm-config-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.comm-config-card{padding:10px;border-radius:9px}.comm-card-head{gap:7px}.comm-card-head>.ui-icon{width:16px;height:16px}.comm-card-head strong{font-size:11px;font-weight:600}.comm-card-head small{font-size:9px}.compact-grid{gap:6px!important;margin-top:8px}.compact-grid label{font-size:9px;margin-bottom:6px}.compact-grid input,.compact-grid select,.compact-grid textarea{min-height:34px;padding:6px 9px;font-size:11px}.comm-wide-card{margin-top:8px}.comm-config-details>summary,.comm-test-drawer>summary{padding:10px}.comm-config-body{padding:0 10px 10px}.comm-settings-save.compact-save{padding:8px 0 10px}.comm-test-drawer>summary{padding:9px 16px}.comm-test-grid{gap:6px;padding:0 16px 10px}.comm-test-grid form{padding:8px;border-radius:8px}.comm-test-grid input{min-height:32px}.sms-topup-card{grid-column:span 1}.sms-topup-inline{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(140px,1fr) auto;gap:6px;align-items:end;margin-top:8px}.sms-topup-inline label{font-size:9px;margin:0}.sms-topup-inline input{min-height:34px}.comm-card-note{display:block;font-size:9px;color:var(--muted);margin-top:6px}.sender-chip-grid.compact{grid-template-columns:repeat(5,minmax(0,1fr))}
/* Dark mode is intentionally monochrome. Colour accents remain a light-mode feature. */
html[data-theme="dark"]{--navy:#e2e5e9;--blue:#2a2d32;--blue-dark:#34383e;--blue-soft:#1b1d21;--ink:#e8eaed;--text:#e8eaed;--muted:#a0a4aa;--line:#30343a;--border:#30343a;--bg:#08090b;--surface:#101215;--surface-soft:#17191d;--green:#b5b9bf;--orange:#b5b9bf;--red:#c3c6cb;--cyan:#b5b9bf;--shadow:0 12px 28px rgba(0,0,0,.35)}
html[data-theme="dark"] .sidebar,html[data-theme="dark"] .workspace-bar{background:#0b0c0e!important}html[data-theme="dark"] .panel,html[data-theme="dark"] .comm-config-card,html[data-theme="dark"] .comm-settings-tabs,html[data-theme="dark"] .comm-selectionbar,html[data-theme="dark"] .comm-overview-stats span,html[data-theme="dark"] .comm-group-strip a,html[data-theme="dark"] .comm-audience-switch a,html[data-theme="dark"] .comm-tag-picker{background:#101215!important;border-color:#30343a!important}html[data-theme="dark"] .comm-hero,html[data-theme="dark"] .settings-category-card.active,html[data-theme="dark"] .settings-rail-card.active,html[data-theme="dark"] .settings-category-tile.active{background:#101215!important;background-image:none!important;border-color:#3a3d43!important;color:var(--ink)!important}html[data-theme="dark"] .comm-audience-switch a.active,html[data-theme="dark"] .comm-group-strip a.active,html[data-theme="dark"] .comm-segments a.active,html[data-theme="dark"] .tabs a.active,html[data-theme="dark"] .nav-item.active,html[data-theme="dark"] .comm-settings-tabs button.active,html[data-theme="dark"] .appearance-dropdown button.active{background:#202328!important;color:#f0f1f3!important;border-color:#464a51!important}html[data-theme="dark"] .nav-item:hover,html[data-theme="dark"] .comm-tag:hover{background:#191b1f!important;color:#f0f1f3!important}html[data-theme="dark"] .button,html[data-theme="dark"] button{background:#292c31;color:#f5f5f5}html[data-theme="dark"] .button:hover,html[data-theme="dark"] button:hover{background:#35393f}html[data-theme="dark"] .button.secondary,html[data-theme="dark"] button.secondary,html[data-theme="dark"] .btn-secondary{background:#191b1f!important;color:#d9dce0!important;border:1px solid #34383e!important}html[data-theme="dark"] .comm-card-head>.ui-icon,html[data-theme="dark"] .comm-channel-name>.ui-icon,html[data-theme="dark"] a,html[data-theme="dark"] .detail-toggle{color:#c9ccd1}html[data-theme="dark"] .badge,html[data-theme="dark"] .badge.green,html[data-theme="dark"] .badge.orange,html[data-theme="dark"] .badge.red{background:#202328!important;color:#c9ccd1!important;border-color:#383c42!important}html[data-theme="dark"] tbody tr:hover,html[data-theme="dark"] .recipient-table tbody tr:has([data-recipient-check]:checked),html[data-theme="dark"] .recipient-table tbody tr.is-selected{background:#181a1e!important}html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{border-color:#5a5f67!important;box-shadow:0 0 0 3px rgba(255,255,255,.05)!important}
@media(max-width:1100px){.comm-config-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sender-chip-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.comm-compose-controls{grid-template-columns:1fr 1fr}.comm-compose-controls .comm-channel-picker{grid-column:1/-1}.comm-workbench-toolbar{grid-template-columns:1fr}.comm-inline-search{max-width:none}}
@media(max-width:700px){.comm-overview{align-items:flex-start;flex-direction:column}.comm-config-grid{grid-template-columns:1fr}.sender-chip-grid.compact{grid-template-columns:1fr}.comm-compose-controls{grid-template-columns:1fr}.sms-topup-inline{grid-template-columns:1fr}.comm-list-meta{align-items:flex-start;flex-direction:column}.comm-selection-actions{width:100%;flex-wrap:wrap}.comm-tag-picker{grid-template-columns:1fr}.comm-recipient-table{max-height:none}}

/* Build 15.6.2 global density/typography follow-through */
label{font-weight:600}.button,button,.btn{font-weight:600}th{font-weight:600}.nav-item,.settings-rail-link,.settings-switch-link{font-weight:550}.page-head h1{font-weight:600}.page-head p,.section-heading p{font-weight:400}.eyebrow{font-weight:550}.settings-workspace{grid-template-columns:210px minmax(0,1fr);gap:14px;padding:14px}.settings-category-rail{padding:8px;max-height:calc(100vh - 110px)}.settings-home-button{margin-bottom:7px;min-height:34px}.settings-rail-list{gap:4px}.settings-rail-link{grid-template-columns:32px minmax(0,1fr);gap:8px;padding:7px 8px;border-radius:9px}.settings-rail-icon{width:30px;height:30px;border-radius:8px}.settings-rail-link strong{font-size:11px;font-weight:600}.settings-rail-link small{font-size:9px;margin-top:1px}.settings-editor-banner{padding:14px 16px}.settings-editor-banner h2{font-size:17px;font-weight:600}.settings-editor-banner p{font-size:11px}.settings-category-form{padding:16px}.settings-page-card{padding:14px}.settings-editor-card{border-radius:12px}
html[data-theme="dark"] .settings-workspace,html[data-theme="dark"] .settings-page-card,html[data-theme="dark"] .settings-category-rail,html[data-theme="dark"] .settings-workspace .settings-category-rail,html[data-theme="dark"] .settings-workspace .settings-editor,html[data-theme="dark"] .settings-editor-card,html[data-theme="dark"] .settings-editor-banner,html[data-theme="dark"] .settings-rail-link{background:#101215!important;border-color:#30343a!important;color:var(--ink)!important}html[data-theme="dark"] .settings-rail-link.active,html[data-theme="dark"] .settings-rail-link:hover{background:#202328!important;border-color:#464a51!important;color:#f0f1f3!important}html[data-theme="dark"] .settings-rail-link.active .settings-rail-icon,html[data-theme="dark"] .settings-rail-icon{background:#17191d!important;border-color:#363a40!important;color:#c9ccd1!important}html[data-theme="dark"] .settings-editor-banner{background-image:none!important}html[data-theme="dark"] .settings-home-button{background:#191b1f!important;color:#d9dce0!important}
@media(max-width:900px){.settings-workspace{grid-template-columns:1fr;padding:10px}.settings-category-rail{max-height:none}.settings-rail-link{min-width:165px}}

/* Build 15.6.3: mobile density and responsive communications/settings polish */
@media(max-width:700px){
  body{padding-bottom:82px}
  .workspace-bar{height:58px!important;padding:7px 12px!important;gap:8px!important}
  .top-search{height:42px!important;min-width:0!important;flex:1 1 auto!important}
  .top-search input{font-size:13px!important;padding-inline:12px!important}
  .top-actions{gap:4px!important;flex:0 0 auto!important}
  .top-action,.appearance-trigger,.account-trigger{width:38px!important;height:38px!important;min-width:38px!important}
  .user-chip{padding:0!important;min-width:38px!important;width:38px!important;border:0!important;background:transparent!important}
  .user-avatar{width:36px!important;height:36px!important}
  .container{padding:14px 12px 28px!important}
  .dashboard-container{padding-top:0!important}
  .dashboard-container>.dashboard-hero.welcome-card{margin:0 -12px 12px!important;padding:20px 18px 18px!important;min-height:0!important;border-radius:0!important}
  .dashboard-hero.welcome-card .eyebrow{font-size:9px!important;letter-spacing:.13em!important}
  .dashboard-hero.welcome-card h2{font-size:25px!important;line-height:1.12!important;margin:5px 0 6px!important}
  .dashboard-hero.welcome-card p{font-size:12px!important;line-height:1.45!important;max-width:430px!important}
  .dashboard-hero.welcome-card .quick-actions{margin-top:14px!important;gap:7px!important}
  .dashboard-hero.welcome-card .button{min-height:38px!important;padding:8px 12px!important;font-size:11px!important;flex:0 1 auto!important}
  .dashboard-date-toolbar,.dashboard-range-toolbar{margin:8px 0 10px!important}
  .onboarding-panel,.dashboard-command-panel{padding:14px!important}
  .onboarding-panel h2,.dashboard-command-panel h2{font-size:18px!important}
  .onboarding-panel p,.dashboard-command-panel p{font-size:11px!important;line-height:1.45!important}

  .comm-settings-v3{border-radius:12px!important;overflow:hidden!important}
  .comm-settings-header.compact{padding:14px 14px 10px!important;gap:8px!important;display:block!important}
  .comm-settings-header.compact .eyebrow{font-size:9px!important;letter-spacing:.12em!important}
  .comm-settings-header.compact h3{font-size:18px!important;margin:3px 0 4px!important}
  .comm-settings-header.compact p{font-size:10.5px!important;line-height:1.4!important;max-width:none!important}
  .comm-settings-status{gap:5px!important;margin-top:9px!important}
  .comm-settings-status .badge{font-size:9px!important;padding:4px 7px!important}
  .comm-settings-tabs{padding:5px 8px!important;gap:3px!important;position:sticky;top:58px;z-index:8;background:var(--surface)!important;scroll-snap-type:x proximity}
  .comm-settings-tabs button{padding:6px 9px!important;font-size:10px!important;min-height:30px!important;scroll-snap-align:start}
  .compact-form{padding:0 12px!important}
  .comm-settings-pane{padding:10px 0 4px!important;min-height:0!important}
  .comm-pane-head.compact{margin-bottom:7px!important}
  .comm-pane-head.compact h4{font-size:14px!important}
  .comm-pane-head.compact p{font-size:9.5px!important;line-height:1.35!important}
  .comm-config-grid{gap:7px!important}
  .comm-config-card{padding:9px!important;border-radius:9px!important}
  .comm-card-head{margin-bottom:6px!important}
  .compact-grid{grid-template-columns:1fr!important;gap:5px!important;margin-top:6px!important}
  .compact-grid label{font-size:9px!important;margin-bottom:3px!important}
  .compact-grid input,.compact-grid select,.compact-grid textarea{min-height:38px!important;font-size:12px!important;padding:7px 9px!important}
  .comm-config-details>summary,.comm-test-drawer>summary{padding:8px 10px!important;font-size:10px!important}
  .comm-config-body{padding:0 8px 8px!important}
  .comm-settings-save.compact-save{position:sticky;bottom:76px;z-index:7;background:var(--surface);padding:7px 0!important;border-top:1px solid var(--line)}
  .comm-settings-save.compact-save .button{width:100%!important}
  .comm-test-drawer{margin-top:6px!important}
  .comm-test-grid{grid-template-columns:1fr!important;padding:0 10px 10px!important}

  .communications-v4{gap:8px!important}
  .comm-overview{padding:11px 12px!important;gap:8px!important}
  .comm-overview h2{font-size:16px!important}.comm-overview p{font-size:10px!important}
  .comm-overview-stats{width:100%;gap:5px!important}.comm-overview-stats span{padding:5px 7px!important}
  .comm-recipient-workbench{padding:10px!important}
  .comm-workbench-toolbar{gap:7px!important}
  .comm-audience-switch{width:100%;display:grid!important;grid-template-columns:1fr 1fr!important}
  .comm-audience-switch a{justify-content:center!important;padding:7px!important}
  .comm-inline-search{grid-template-columns:1fr auto!important}
  .comm-group-strip{margin-inline:-2px;padding:7px 0 5px!important}
  .comm-list-meta{gap:7px!important;padding:5px 0!important}
  .comm-selection-actions{gap:4px!important}
  .comm-recipient-table{overflow:auto!important;border-radius:9px!important}
  .comm-recipient-table table{min-width:620px!important}
  .comm-recipient-table th,.comm-recipient-table td{padding:7px 8px!important;font-size:10px!important}
  .comm-compose{padding:10px!important}
  .comm-channel-picker{display:grid!important;grid-template-columns:repeat(3,1fr)!important;width:100%!important}
  .comm-channel-picker legend{grid-column:1/-1!important}
  .comm-channel-picker label{justify-content:center!important;padding:7px 5px!important;font-size:10px!important}
  .comm-tag-picker{margin:7px 0!important;padding:7px!important}
  .comm-channel-card{padding:9px!important;margin:6px 0!important}
  .communication-sendbar{padding:9px!important;margin-top:8px!important}
  .comm-template-library details>summary{padding:11px 12px!important;align-items:flex-start!important}
  .comm-template-library summary div span{font-size:10px!important;line-height:1.35!important}
  .comm-template-library summary .button{padding:6px 9px!important;min-height:30px!important}
  .comm-template-body{padding:0 10px 10px!important}
  .comm-template-form{padding:9px!important}
  .comm-template-form .grid.three{grid-template-columns:1fr!important;gap:6px!important}
  .template-mini-grid{grid-template-columns:1fr!important;gap:6px!important}
  .comm-activity{padding:10px!important}
  .comm-activity .section-heading{align-items:center!important;gap:8px!important}
  .comm-activity .section-heading h2{font-size:16px!important}
  .comm-activity .section-heading p{font-size:10px!important}
  .comm-activity .button{padding:6px 9px!important;min-height:30px!important}
  .comm-activity-row{grid-template-columns:auto minmax(0,1fr) auto!important;gap:7px!important;font-size:10px!important}
  .mobile-bottom-nav{height:72px!important;padding-bottom:max(5px,env(safe-area-inset-bottom))!important}
  .mobile-bottom-nav-item{min-height:58px!important}
}
@media(max-width:430px){
  .top-search{display:flex!important}
  .workspace-bar .menu-button{display:none!important}
  .workspace-bar{grid-template-columns:minmax(0,1fr) auto!important}
  .top-actions .top-action:nth-of-type(1){display:none!important}
  .comm-inline-search button{padding-inline:10px!important}
}

/* Build 15.6.5: rebuilt mobile app bar, current PWA build badge and complete monochrome dark mode */
@media(max-width:700px){
  .workspace-bar{height:52px!important;min-height:52px!important;padding:5px 10px!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:7px!important;background:#fff!important;border-bottom:1px solid #dde4ec!important;box-shadow:0 2px 8px rgba(15,23,42,.04)!important}
  .workspace-bar .desktop-collapse,.workspace-bar .menu-button,.workspace-bar .desktop-quick-actions,.workspace-bar .contextual-help-action{display:none!important}
  .workspace-bar .top-search{display:flex!important;width:100%!important;height:36px!important;min-height:36px!important;max-width:none!important;margin:0!important;padding:0 10px!important;border:1px solid #d7e0ea!important;border-radius:10px!important;background:#f5f7fa!important;box-shadow:none!important;gap:7px!important}
  .workspace-bar .top-search .ui-icon{width:17px!important;height:17px!important;flex:0 0 17px!important}
  .workspace-bar .top-search input{font-size:12px!important;line-height:1!important;padding:0!important;min-height:0!important;height:34px!important}
  .workspace-bar .top-search input::placeholder{font-size:11px!important;color:#7a8798!important}
  .workspace-bar .top-actions{display:flex!important;align-items:center!important;gap:4px!important;margin:0!important;width:auto!important;min-width:0!important}
  .workspace-bar .appearance-menu,.workspace-bar .notification-menu,.workspace-bar .account-menu{display:block!important;position:relative!important}
  .workspace-bar .top-action,.workspace-bar .appearance-trigger,.workspace-bar .user-chip{width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;border-radius:9px!important;padding:0!important;display:grid!important;place-items:center!important;border:1px solid #d7e0ea!important;background:#fff!important;color:#344155!important;box-shadow:none!important}
  .workspace-bar .top-action .ui-icon,.workspace-bar .appearance-trigger .ui-icon{width:18px!important;height:18px!important}
  .workspace-bar .avatar-sm{width:30px!important;height:30px!important;border-radius:8px!important}
  .workspace-bar .notification-badge{min-width:15px!important;height:15px!important;font-size:8px!important;line-height:15px!important;top:-5px!important;right:-5px!important}
  .workspace-bar .user-chip-name,.workspace-bar .chevron{display:none!important}
  .appearance-dropdown,.notification-dropdown,.account-dropdown{top:40px!important;right:0!important;max-width:calc(100vw - 20px)!important}
  .dashboard-container>.dashboard-hero.welcome-card{margin-top:0!important}
}
@media(max-width:390px){
  .workspace-bar{padding-inline:8px!important;gap:5px!important}
  .workspace-bar .top-actions{gap:3px!important}
  .workspace-bar .top-action,.workspace-bar .appearance-trigger,.workspace-bar .user-chip{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important}
  .workspace-bar .avatar-sm{width:28px!important;height:28px!important}
  .workspace-bar .top-search{height:34px!important;min-height:34px!important;padding-inline:9px!important}
  .workspace-bar .top-search input{height:32px!important}
}

/* Dark means dark: neutral surfaces, neutral controls, neutral states. */
html[data-theme="dark"]{color-scheme:dark;--navy:#f1f1f1;--blue:#d8d8d8;--blue-dark:#ececec;--blue-soft:#1b1b1b;--ink:#eeeeee;--text:#eeeeee;--muted:#a3a3a3;--line:#2a2a2a;--border:#2a2a2a;--bg:#080808;--surface:#111111;--surface-soft:#171717;--green:#c8c8c8;--orange:#c8c8c8;--red:#d0d0d0;--cyan:#c8c8c8;--shadow:0 10px 28px rgba(0,0,0,.45)!important}
html[data-theme="dark"] body,html[data-theme="dark"] .workspace,html[data-theme="dark"] main,html[data-theme="dark"] .container{background:#080808!important;color:#eeeeee!important}
html[data-theme="dark"] .workspace-bar,html[data-theme="dark"] .sidebar,html[data-theme="dark"] .mobile-bottom-nav{background:#0b0b0b!important;border-color:#282828!important;box-shadow:none!important}
html[data-theme="dark"] .welcome-card,html[data-theme="dark"] .dashboard-hero,html[data-theme="dark"] .comm-hero,html[data-theme="dark"] .settings-editor-banner{background:#111!important;background-image:none!important;color:#f2f2f2!important;border-color:#2d2d2d!important}
html[data-theme="dark"] .panel,html[data-theme="dark"] .card,html[data-theme="dark"] .cards article,html[data-theme="dark"] .mini-stat,html[data-theme="dark"] .onboarding-panel,html[data-theme="dark"] .dashboard-panel,html[data-theme="dark"] .dashboard-pwa-prompt,html[data-theme="dark"] .comm-config-card,html[data-theme="dark"] .comm-settings-tabs,html[data-theme="dark"] .comm-selectionbar,html[data-theme="dark"] .comm-channel-card,html[data-theme="dark"] .comm-tag-picker,html[data-theme="dark"] .settings-workspace,html[data-theme="dark"] .settings-page-card,html[data-theme="dark"] .settings-category-rail,html[data-theme="dark"] .settings-editor,html[data-theme="dark"] .settings-editor-card,html[data-theme="dark"] .settings-rail-link,html[data-theme="dark"] .secure-login-card,html[data-theme="dark"] .secure-method,html[data-theme="dark"] .auth-card{background:#111!important;background-image:none!important;border-color:#2b2b2b!important;color:#ededed!important;box-shadow:none!important}
html[data-theme="dark"] .top-search,html[data-theme="dark"] .workspace-bar .top-search,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#161616!important;color:#ededed!important;border-color:#303030!important;box-shadow:none!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder,html[data-theme="dark"] .muted,html[data-theme="dark"] small,html[data-theme="dark"] .page-head p{color:#969696!important}
html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus,html[data-theme="dark"] .top-search:focus-within{background:#181818!important;border-color:#626262!important;box-shadow:0 0 0 2px rgba(255,255,255,.06)!important}
html[data-theme="dark"] .button,html[data-theme="dark"] button,html[data-theme="dark"] .btn,html[data-theme="dark"] .top-action,html[data-theme="dark"] .appearance-trigger,html[data-theme="dark"] .user-chip{background:#242424!important;background-image:none!important;color:#f3f3f3!important;border-color:#3a3a3a!important;box-shadow:none!important}
html[data-theme="dark"] .button:hover,html[data-theme="dark"] button:hover,html[data-theme="dark"] .btn:hover,html[data-theme="dark"] .top-action:hover{background:#303030!important;color:#fff!important;border-color:#4a4a4a!important}
html[data-theme="dark"] .button.secondary,html[data-theme="dark"] .btn-secondary{background:#171717!important;color:#d9d9d9!important;border-color:#343434!important}
html[data-theme="dark"] a,html[data-theme="dark"] .detail-toggle,html[data-theme="dark"] .eyebrow{color:#d0d0d0!important}
html[data-theme="dark"] .nav-item,html[data-theme="dark"] .mobile-bottom-nav-item{color:#bdbdbd!important}
html[data-theme="dark"] .nav-item.active,html[data-theme="dark"] .nav-item:hover,html[data-theme="dark"] .mobile-bottom-nav-item.active,html[data-theme="dark"] .mobile-bottom-nav-item:hover,html[data-theme="dark"] .comm-audience-switch a.active,html[data-theme="dark"] .comm-group-strip a.active,html[data-theme="dark"] .comm-segments a.active,html[data-theme="dark"] .tabs a.active,html[data-theme="dark"] .comm-settings-tabs button.active,html[data-theme="dark"] .settings-rail-link.active,html[data-theme="dark"] .settings-rail-link:hover{background:#202020!important;background-image:none!important;color:#f2f2f2!important;border-color:#3d3d3d!important}
html[data-theme="dark"] .mobile-bottom-nav-item .ui-icon,html[data-theme="dark"] .mobile-bottom-nav-item.active .ui-icon,html[data-theme="dark"] .ss-quick-icon,html[data-theme="dark"] .settings-rail-icon,html[data-theme="dark"] .pwa-version-badge{background:#1c1c1c!important;color:#d7d7d7!important;border-color:#333!important;box-shadow:none!important}
html[data-theme="dark"] .mobile-bottom-nav-add .ui-icon,html[data-theme="dark"] .mobile-bottom-nav-add,html[data-theme="dark"] .floating-add,html[data-theme="dark"] .fab{background:#262626!important;color:#f4f4f4!important;border-color:#454545!important;box-shadow:0 8px 18px rgba(0,0,0,.45)!important}
html[data-theme="dark"] .badge,html[data-theme="dark"] .badge.green,html[data-theme="dark"] .badge.orange,html[data-theme="dark"] .badge.red,html[data-theme="dark"] .status-badge,html[data-theme="dark"] .risk-bars>div{background:#1d1d1d!important;color:#cfcfcf!important;border-color:#343434!important}
html[data-theme="dark"] table{color:#e6e6e6!important}html[data-theme="dark"] thead th{background:#171717!important;color:#bcbcbc!important;border-color:#2d2d2d!important}html[data-theme="dark"] tbody td{border-color:#282828!important}html[data-theme="dark"] tbody tr:hover,html[data-theme="dark"] tbody tr.is-selected,html[data-theme="dark"] .recipient-table tbody tr:has([data-recipient-check]:checked){background:#181818!important}
html[data-theme="dark"] .account-dropdown,html[data-theme="dark"] .notification-dropdown,html[data-theme="dark"] .appearance-dropdown,html[data-theme="dark"] .desktop-quick-actions-menu{background:#121212!important;border-color:#303030!important;color:#eee!important;box-shadow:0 14px 30px rgba(0,0,0,.55)!important}
html[data-theme="dark"] .account-dropdown a:hover,html[data-theme="dark"] .notification-dropdown-item:hover,html[data-theme="dark"] .appearance-dropdown button:hover{background:#202020!important;color:#fff!important}
html[data-theme="dark"] .dashboard-pwa-benefits,html[data-theme="dark"] .dashboard-pwa-copy p{color:#aaa!important}html[data-theme="dark"] .dashboard-pwa-benefits li:before{color:#ccc!important}
html[data-theme="dark"] .dashboard-date-picker summary,html[data-theme="dark"] .dashboard-date-toolbar,html[data-theme="dark"] .dashboard-range-toolbar{background:#111!important;color:#ddd!important;border-color:#303030!important}
html[data-theme="dark"] .mobile-quick-actions summary{background:#262626!important;color:#f4f4f4!important;border-color:#454545!important;box-shadow:0 8px 18px rgba(0,0,0,.45)!important}
html[data-theme="dark"] .mobile-quick-actions-menu,html[data-theme="dark"] .mobile-quick-actions-menu a{background:#121212!important;color:#ededed!important;border-color:#303030!important}html[data-theme="dark"] .mobile-quick-actions-menu a:hover{background:#202020!important}


/* Build 15.6.5: mobile top-nav correction + strict monochrome dark surfaces/icons */
@media(max-width:700px){
  .workspace-bar{height:48px!important;min-height:48px!important;padding:5px 10px!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;overflow:visible!important}
  .workspace-bar .top-search{height:34px!important;min-height:34px!important;border-radius:9px!important;padding:0 9px!important}
  .workspace-bar .top-search input{height:32px!important;font-size:11.5px!important}
  .workspace-bar .top-actions{gap:3px!important}
  .workspace-bar .top-action,.workspace-bar .appearance-trigger,.workspace-bar .user-chip{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;border-radius:8px!important}
  .workspace-bar .avatar-sm{width:28px!important;height:28px!important;border-radius:7px!important}
  .workspace-bar .top-action .ui-icon,.workspace-bar .appearance-trigger .ui-icon{width:17px!important;height:17px!important}
  .workspace-bar .notification-badge{top:-4px!important;right:-4px!important}
}
@media(max-width:430px){
  .workspace-bar{padding-inline:8px!important;gap:5px!important}
  .workspace-bar .top-search input::placeholder{font-size:0!important}
  .workspace-bar .top-search input::placeholder{color:transparent!important}
  .workspace-bar .top-search{padding-inline:10px!important}
}
/* Dark mode contract: every light surface becomes black/charcoal and all functional icons/text are white or neutral grey. */
html[data-theme="dark"] body,html[data-theme="dark"] .workspace,html[data-theme="dark"] main,html[data-theme="dark"] .container,html[data-theme="dark"] .content,html[data-theme="dark"] .page-content{background:#080808!important;color:#fff!important}
html[data-theme="dark"] .workspace-bar,html[data-theme="dark"] .sidebar,html[data-theme="dark"] .mobile-bottom-nav,html[data-theme="dark"] .panel,html[data-theme="dark"] .card,html[data-theme="dark"] .dashboard-pwa-prompt,html[data-theme="dark"] .onboarding-panel,html[data-theme="dark"] .dashboard-panel,html[data-theme="dark"] .settings-workspace,html[data-theme="dark"] .settings-page-card,html[data-theme="dark"] .settings-category-rail,html[data-theme="dark"] .settings-editor,html[data-theme="dark"] .settings-editor-card,html[data-theme="dark"] .settings-editor-banner,html[data-theme="dark"] .comm-config-card,html[data-theme="dark"] .comm-settings-tabs,html[data-theme="dark"] .comm-selectionbar,html[data-theme="dark"] .comm-channel-card,html[data-theme="dark"] .comm-tag-picker,html[data-theme="dark"] .auth-card,html[data-theme="dark"] .secure-login-card{background:#0d0d0d!important;background-image:none!important;color:#fff!important;border-color:#2b2b2b!important;box-shadow:none!important}
html[data-theme="dark"] .welcome-card,html[data-theme="dark"] .dashboard-hero,html[data-theme="dark"] .comm-hero{background:#0a0a0a!important;background-image:none!important;color:#fff!important;border-color:#292929!important}
html[data-theme="dark"] .workspace-bar .top-search,html[data-theme="dark"] .top-search,html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#151515!important;color:#fff!important;border-color:#343434!important}
html[data-theme="dark"] .workspace-bar .top-action,html[data-theme="dark"] .workspace-bar .appearance-trigger,html[data-theme="dark"] .workspace-bar .user-chip,html[data-theme="dark"] .button,html[data-theme="dark"] button,html[data-theme="dark"] .btn{background:#171717!important;background-image:none!important;color:#fff!important;border-color:#353535!important}
html[data-theme="dark"] .ui-icon,html[data-theme="dark"] .ui-icon svg,html[data-theme="dark"] .workspace-bar .ui-icon,html[data-theme="dark"] .nav-item .ui-icon,html[data-theme="dark"] .mobile-bottom-nav .ui-icon,html[data-theme="dark"] .settings-rail-icon,html[data-theme="dark"] .comm-card-head>.ui-icon,html[data-theme="dark"] .comm-channel-name>.ui-icon{color:#fff!important;stroke:currentColor!important}
html[data-theme="dark"] .nav-item,html[data-theme="dark"] .mobile-bottom-nav-item,html[data-theme="dark"] .settings-rail-link{color:#ededed!important}
html[data-theme="dark"] .nav-item.active,html[data-theme="dark"] .nav-item:hover,html[data-theme="dark"] .mobile-bottom-nav-item.active,html[data-theme="dark"] .settings-rail-link.active,html[data-theme="dark"] .settings-rail-link:hover{background:#1d1d1d!important;color:#fff!important;border-color:#3a3a3a!important}
html[data-theme="dark"] .nav-item.active .ui-icon,html[data-theme="dark"] .mobile-bottom-nav-item.active .ui-icon{color:#fff!important;background:#242424!important;border-color:#3c3c3c!important}
html[data-theme="dark"] .mobile-bottom-nav-add,html[data-theme="dark"] .mobile-bottom-nav-add .ui-icon,html[data-theme="dark"] .floating-add,html[data-theme="dark"] .fab{background:#181818!important;color:#fff!important;border-color:#3b3b3b!important}
html[data-theme="dark"] .appearance-dropdown,html[data-theme="dark"] .notification-dropdown,html[data-theme="dark"] .account-dropdown,html[data-theme="dark"] .desktop-quick-actions-menu{background:#0d0d0d!important;color:#fff!important;border-color:#303030!important}
html[data-theme="dark"] .appearance-dropdown button,html[data-theme="dark"] .account-dropdown a,html[data-theme="dark"] .notification-dropdown-item{color:#fff!important}
html[data-theme="dark"] .appearance-dropdown button.active,html[data-theme="dark"] .appearance-dropdown button:hover,html[data-theme="dark"] .account-dropdown a:hover,html[data-theme="dark"] .notification-dropdown-item:hover{background:#1d1d1d!important;color:#fff!important}

/* Build 15.6.6: reliable compact mobile top bar and dark-mode surface/icon cleanup */
@media (max-width:700px){
  header.workspace-bar{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;column-gap:6px!important;height:50px!important;min-height:50px!important;padding:6px 8px!important;align-items:center!important;overflow:visible!important}
  header.workspace-bar .top-search{display:flex!important;min-width:0!important;width:100%!important;max-width:none!important;height:34px!important;min-height:34px!important;padding:0 9px!important;border-radius:9px!important;overflow:hidden!important}
  header.workspace-bar .top-search input{min-width:0!important;width:100%!important;height:32px!important;font-size:11px!important;text-overflow:ellipsis!important;white-space:nowrap!important;overflow:hidden!important}
  header.workspace-bar .top-actions{display:flex!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;max-width:none!important;gap:3px!important;align-items:center!important;justify-content:flex-end!important;overflow:visible!important}
  header.workspace-bar .top-actions>.desktop-quick-actions,header.workspace-bar .contextual-help-action{display:none!important}
  header.workspace-bar .top-actions>.appearance-menu,header.workspace-bar .top-actions>.notification-menu,header.workspace-bar .top-actions>.account-menu{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;margin:0!important}
  header.workspace-bar .appearance-trigger,header.workspace-bar .notification-trigger,header.workspace-bar .user-chip{display:grid!important;place-items:center!important;width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important;padding:0!important;margin:0!important;border-radius:8px!important}
  header.workspace-bar .avatar-sm{width:27px!important;height:27px!important;min-width:27px!important;border-radius:7px!important}
  header.workspace-bar .appearance-trigger .ui-icon,header.workspace-bar .notification-trigger .ui-icon{width:17px!important;height:17px!important}
  header.workspace-bar .notification-badge{min-width:14px!important;height:14px!important;line-height:14px!important;font-size:8px!important;top:-4px!important;right:-4px!important}
}
@media (max-width:390px){
  header.workspace-bar{column-gap:5px!important;padding-inline:7px!important}
  header.workspace-bar .top-search{padding-inline:8px!important}
  header.workspace-bar .top-search input{font-size:10.5px!important}
  header.workspace-bar .top-actions{gap:2px!important}
  header.workspace-bar .top-actions>.appearance-menu,header.workspace-bar .top-actions>.notification-menu,header.workspace-bar .top-actions>.account-menu{flex-basis:30px!important;width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important}
  header.workspace-bar .appearance-trigger,header.workspace-bar .notification-trigger,header.workspace-bar .user-chip{width:30px!important;min-width:30px!important;max-width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important}
  header.workspace-bar .avatar-sm{width:25px!important;height:25px!important;min-width:25px!important}
}
/* Dark-mode cleanup: no white control tiles; all functional icons are white on dark surfaces. */
html[data-theme="dark"] .nav-item .ui-icon,html[data-theme="dark"] .sidebar .ui-icon,html[data-theme="dark"] .settings-rail-icon,html[data-theme="dark"] .top-action .ui-icon,html[data-theme="dark"] .appearance-trigger .ui-icon,html[data-theme="dark"] .notification-trigger .ui-icon,html[data-theme="dark"] .mobile-bottom-nav-item .ui-icon,html[data-theme="dark"] .comm-card-head>.ui-icon,html[data-theme="dark"] .comm-channel-name>.ui-icon{background:#171717!important;background-image:none!important;color:#fff!important;border-color:#333!important;box-shadow:none!important}
html[data-theme="dark"] .nav-item .ui-icon svg,html[data-theme="dark"] .sidebar .ui-icon svg,html[data-theme="dark"] .settings-rail-icon svg,html[data-theme="dark"] .top-action .ui-icon svg,html[data-theme="dark"] .appearance-trigger .ui-icon svg,html[data-theme="dark"] .notification-trigger .ui-icon svg,html[data-theme="dark"] .mobile-bottom-nav-item .ui-icon svg{color:#fff!important;stroke:currentColor!important}
html[data-theme="dark"] .sidebar-build-version,html[data-theme="dark"] .dashboard-date-picker summary,html[data-theme="dark"] .dashboard-date-toolbar,html[data-theme="dark"] .dashboard-range-toolbar,html[data-theme="dark"] .profile-summary-card,html[data-theme="dark"] .comm-upload,html[data-theme="dark"] .sender-chip,html[data-theme="dark"] .tip-box,html[data-theme="dark"] .subpanel,html[data-theme="dark"] .table-wrap,html[data-theme="dark"] table,html[data-theme="dark"] thead,html[data-theme="dark"] tbody,html[data-theme="dark"] tr,html[data-theme="dark"] td,html[data-theme="dark"] th{background:#101010!important;background-image:none!important;color:#ededed!important;border-color:#2d2d2d!important}

/* Build 15.6.7 - polished navy-charcoal dark theme and complete mobile top navigation */
:root{
  --dark-bg:#0f172a;
  --dark-bg-deep:#0b1220;
  --dark-sidebar:#111827;
  --dark-surface:#172033;
  --dark-surface-2:#1d2940;
  --dark-surface-3:#243249;
  --dark-border:#334155;
  --dark-border-soft:#28364b;
  --dark-text:#f8fafc;
  --dark-text-2:#cbd5e1;
  --dark-text-3:#94a3b8;
  --dark-accent:#6366f1;
  --dark-accent-2:#818cf8;
  --dark-success:#22c55e;
  --dark-warning:#f59e0b;
  --dark-danger:#ef4444;
  --dark-info:#3b82f6;
}

/* The approved dark system is navy/charcoal, not pure black. */
html[data-theme="dark"] body,
html[data-theme="dark"] .workspace,
html[data-theme="dark"] main,
html[data-theme="dark"] .container,
html[data-theme="dark"] .content,
html[data-theme="dark"] .page-content{background:var(--dark-bg-deep)!important;color:var(--dark-text)!important}
html[data-theme="dark"] .workspace-bar{background:#101827!important;border-color:var(--dark-border-soft)!important;box-shadow:0 1px 0 rgba(255,255,255,.025)!important}
html[data-theme="dark"] .sidebar{background:linear-gradient(180deg,#111827 0%,#0e1728 100%)!important;border-color:var(--dark-border-soft)!important}
html[data-theme="dark"] .brand-block{background:#111827!important;border-color:var(--dark-border-soft)!important}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .dashboard-panel,
html[data-theme="dark"] .onboarding-panel,
html[data-theme="dark"] .dashboard-pwa-prompt,
html[data-theme="dark"] .settings-workspace,
html[data-theme="dark"] .settings-page-card,
html[data-theme="dark"] .settings-category-rail,
html[data-theme="dark"] .settings-editor,
html[data-theme="dark"] .settings-editor-card,
html[data-theme="dark"] .settings-editor-banner,
html[data-theme="dark"] .comm-config-card,
html[data-theme="dark"] .comm-settings-tabs,
html[data-theme="dark"] .comm-selectionbar,
html[data-theme="dark"] .comm-channel-card,
html[data-theme="dark"] .comm-tag-picker,
html[data-theme="dark"] .auth-card,
html[data-theme="dark"] .secure-login-card,
html[data-theme="dark"] .subpanel,
html[data-theme="dark"] .profile-summary-card{
  background:var(--dark-surface)!important;background-image:none!important;color:var(--dark-text)!important;
  border-color:var(--dark-border)!important;box-shadow:0 10px 30px rgba(0,0,0,.12)!important
}
html[data-theme="dark"] .dashboard-hero,
html[data-theme="dark"] .welcome-card,
html[data-theme="dark"] .comm-hero{
  background:linear-gradient(135deg,#172033 0%,#101827 100%)!important;
  color:var(--dark-text)!important;border:1px solid var(--dark-border)!important;box-shadow:none!important
}
html[data-theme="dark"] .dashboard-hero:before,
html[data-theme="dark"] .welcome-card:before{opacity:.22!important}
html[data-theme="dark"] h1,html[data-theme="dark"] h2,html[data-theme="dark"] h3,html[data-theme="dark"] h4,
html[data-theme="dark"] strong,html[data-theme="dark"] label{color:var(--dark-text)!important}
html[data-theme="dark"] p,html[data-theme="dark"] small,html[data-theme="dark"] .muted,
html[data-theme="dark"] .page-subtitle,html[data-theme="dark"] .card-subtitle{color:var(--dark-text-2)!important}
html[data-theme="dark"] .eyebrow{color:#93c5fd!important}

/* Navigation keeps a restrained indigo accent for orientation. */
html[data-theme="dark"] .nav-item{color:var(--dark-text-2)!important;border-color:transparent!important}
html[data-theme="dark"] .nav-item:hover{background:#1a2639!important;color:var(--dark-text)!important}
html[data-theme="dark"] .nav-item.active{background:#263451!important;color:#fff!important;box-shadow:inset 3px 0 0 var(--dark-accent)!important}
html[data-theme="dark"] .nav-item .ui-icon,
html[data-theme="dark"] .sidebar .ui-icon{
  background:#1c293d!important;color:#dbeafe!important;border:1px solid #34445f!important;box-shadow:none!important
}
html[data-theme="dark"] .nav-item.active .ui-icon{background:#4338ca!important;color:#fff!important;border-color:#6366f1!important}
html[data-theme="dark"] .nav-group-title{color:#94a3b8!important}
html[data-theme="dark"] .sidebar-build-version{background:#1a2639!important;color:var(--dark-text-2)!important;border-color:#34445f!important}
html[data-theme="dark"] .sidebar-build-version strong{color:#93c5fd!important}

/* Settings category icon blocks must never render white in dark mode. */
html[data-theme="dark"] .settings-category-card,
html[data-theme="dark"] .settings-category-link,
html[data-theme="dark"] .settings-grid>a,
html[data-theme="dark"] .settings-grid .card{background:var(--dark-surface)!important;border-color:var(--dark-border)!important;color:var(--dark-text)!important}
html[data-theme="dark"] .settings-category-card .ui-icon,
html[data-theme="dark"] .settings-category-link .ui-icon,
html[data-theme="dark"] .settings-grid>a>.ui-icon,
html[data-theme="dark"] .settings-grid .settings-icon,
html[data-theme="dark"] .settings-category-icon,
html[data-theme="dark"] .settings-rail-icon{
  background:#202d43!important;color:#dbeafe!important;border-color:#3b4b65!important;box-shadow:none!important
}
html[data-theme="dark"] .settings-category-card:hover,
html[data-theme="dark"] .settings-category-link:hover,
html[data-theme="dark"] .settings-grid>a:hover{background:#1d2940!important;border-color:#465a78!important}

/* Inputs and tables: enough tonal separation to stay readable without harsh white surfaces. */
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .top-search,
html[data-theme="dark"] .staff-search-input{
  background:#111c2e!important;color:var(--dark-text)!important;border-color:#384860!important;box-shadow:none!important
}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8090a8!important}
html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{border-color:var(--dark-accent-2)!important;box-shadow:0 0 0 3px rgba(99,102,241,.16)!important}
html[data-theme="dark"] .table-wrap,html[data-theme="dark"] table{background:var(--dark-surface)!important;border-color:var(--dark-border)!important}
html[data-theme="dark"] thead,html[data-theme="dark"] th{background:#1b273a!important;color:#dce6f4!important;border-color:#34445c!important}
html[data-theme="dark"] tbody,html[data-theme="dark"] tr,html[data-theme="dark"] td{background:#172033!important;color:var(--dark-text-2)!important;border-color:#2d3c52!important}
html[data-theme="dark"] tbody tr:hover td{background:#1b2940!important}

/* Buttons preserve meaning and hierarchy in dark mode. */
html[data-theme="dark"] .button,html[data-theme="dark"] button,html[data-theme="dark"] .btn{background:#202d43!important;color:#f8fafc!important;border-color:#3a4b66!important}
html[data-theme="dark"] .button:hover,html[data-theme="dark"] button:hover,html[data-theme="dark"] .btn:hover{background:#293951!important;border-color:#526885!important}
html[data-theme="dark"] .button.primary,html[data-theme="dark"] .btn-primary,html[data-theme="dark"] button.primary{background:linear-gradient(135deg,#4f46e5,#6366f1)!important;color:#fff!important;border-color:#6366f1!important}
html[data-theme="dark"] .button.primary:hover,html[data-theme="dark"] .btn-primary:hover{background:linear-gradient(135deg,#5b55e8,#7476f3)!important}
html[data-theme="dark"] .button.secondary{background:#1a2639!important;color:#e2e8f0!important;border-color:#40516b!important}

/* Semantic colours are intentional in dark mode and match the approved design. */
html[data-theme="dark"] .badge.green,html[data-theme="dark"] .badge.success{background:#123d2a!important;color:#86efac!important;border-color:#1f6a45!important}
html[data-theme="dark"] .badge.orange,html[data-theme="dark"] .badge.warning{background:#452d08!important;color:#fcd34d!important;border-color:#76500d!important}
html[data-theme="dark"] .badge.red,html[data-theme="dark"] .badge.danger{background:#4a181d!important;color:#fca5a5!important;border-color:#7f252e!important}
html[data-theme="dark"] .badge.blue,html[data-theme="dark"] .badge.info{background:#173c69!important;color:#93c5fd!important;border-color:#285e9e!important}

/* Top controls and dropdowns. */
html[data-theme="dark"] .workspace-bar .top-action,
html[data-theme="dark"] .workspace-bar .appearance-trigger,
html[data-theme="dark"] .workspace-bar .user-chip{background:#172033!important;color:#f8fafc!important;border-color:#334155!important}
html[data-theme="dark"] .workspace-bar .top-action:hover,
html[data-theme="dark"] .workspace-bar .appearance-trigger:hover,
html[data-theme="dark"] .workspace-bar .user-chip:hover{background:#202d43!important}
html[data-theme="dark"] .workspace-bar .ui-icon,html[data-theme="dark"] .top-action .ui-icon{background:transparent!important;color:#f8fafc!important;border:0!important}
html[data-theme="dark"] .appearance-dropdown,
html[data-theme="dark"] .notification-dropdown,
html[data-theme="dark"] .account-dropdown,
html[data-theme="dark"] .desktop-quick-actions-menu{background:#172033!important;color:var(--dark-text)!important;border-color:#3b4b63!important;box-shadow:0 18px 46px rgba(0,0,0,.38)!important}
html[data-theme="dark"] .appearance-dropdown button.active{background:#293657!important;color:#fff!important}

/* Mobile bar: Search + Appearance + Notifications + Guide + Account always fit on one row. */
@media(max-width:700px){
  header.workspace-bar{
    display:grid!important;
    grid-template-columns:minmax(92px,1fr) 32px 32px 32px 32px!important;
    gap:5px!important;height:52px!important;min-height:52px!important;padding:7px 8px!important;align-items:center!important;overflow:visible!important
  }
  header.workspace-bar>.desktop-collapse,header.workspace-bar>.menu-button{display:none!important}
  header.workspace-bar .top-search{grid-column:1!important;min-width:0!important;width:100%!important;height:36px!important;min-height:36px!important;padding:0 8px!important;border-radius:10px!important}
  header.workspace-bar .top-search>.ui-icon{width:18px!important;height:18px!important;flex:0 0 18px!important}
  header.workspace-bar .top-search input{min-width:0!important;width:100%!important;height:34px!important;font-size:11px!important;padding-inline:6px!important}
  header.workspace-bar .top-actions{display:contents!important}
  header.workspace-bar .desktop-quick-actions{display:none!important}
  header.workspace-bar .appearance-menu{grid-column:2!important}
  header.workspace-bar .notification-menu{grid-column:3!important}
  header.workspace-bar .contextual-help-action{grid-column:4!important}
  header.workspace-bar .account-menu{grid-column:5!important}
  header.workspace-bar .appearance-menu,
  header.workspace-bar .notification-menu,
  header.workspace-bar .account-menu,
  header.workspace-bar .contextual-help-action{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;margin:0!important}
  header.workspace-bar .appearance-trigger,
  header.workspace-bar .notification-trigger,
  header.workspace-bar .contextual-help-action,
  header.workspace-bar .user-chip{display:grid!important;place-items:center!important;width:32px!important;height:32px!important;min-width:32px!important;max-width:32px!important;min-height:32px!important;max-height:32px!important;padding:0!important;border-radius:9px!important}
  header.workspace-bar .avatar-sm{width:27px!important;height:27px!important;min-width:27px!important;flex-basis:27px!important;border-radius:7px!important}
  header.workspace-bar .user-chip-name,header.workspace-bar .user-chip .chevron{display:none!important}
  header.workspace-bar .appearance-trigger .ui-icon,
  header.workspace-bar .notification-trigger .ui-icon,
  header.workspace-bar .contextual-help-action .ui-icon{width:17px!important;height:17px!important}
  header.workspace-bar .notification-badge{min-width:14px!important;height:14px!important;line-height:14px!important;font-size:8px!important;top:-4px!important;right:-4px!important}
  header.workspace-bar .appearance-dropdown,header.workspace-bar .notification-dropdown,header.workspace-bar .account-dropdown{position:fixed!important;top:56px!important;right:8px!important;left:auto!important;max-width:calc(100vw - 16px)!important}
}
@media(max-width:390px){
  header.workspace-bar{grid-template-columns:minmax(78px,1fr) 30px 30px 30px 30px!important;gap:4px!important;padding-inline:6px!important}
  header.workspace-bar .appearance-menu,header.workspace-bar .notification-menu,header.workspace-bar .account-menu,header.workspace-bar .contextual-help-action,
  header.workspace-bar .appearance-trigger,header.workspace-bar .notification-trigger,header.workspace-bar .contextual-help-action,header.workspace-bar .user-chip{width:30px!important;height:30px!important;min-width:30px!important;max-width:30px!important;min-height:30px!important;max-height:30px!important}
  header.workspace-bar .avatar-sm{width:25px!important;height:25px!important;min-width:25px!important;flex-basis:25px!important}
  header.workspace-bar .top-search input::placeholder{font-size:0!important;color:transparent!important}
}

/* Mobile bottom navigation mirrors the approved dark mockup. */
html[data-theme="dark"] .mobile-bottom-nav{background:#111827!important;border-color:#2c3a50!important;box-shadow:0 -10px 30px rgba(0,0,0,.22)!important}
html[data-theme="dark"] .mobile-bottom-nav-item{color:#cbd5e1!important}
html[data-theme="dark"] .mobile-bottom-nav-item .ui-icon{background:transparent!important;color:#cbd5e1!important;border:0!important}
html[data-theme="dark"] .mobile-bottom-nav-item.active{color:#a5b4fc!important}
html[data-theme="dark"] .mobile-bottom-nav-item.active .ui-icon{background:#312e81!important;color:#c7d2fe!important;border-color:#4f46e5!important}
html[data-theme="dark"] .mobile-bottom-nav-add,html[data-theme="dark"] .mobile-bottom-nav-add .ui-icon{background:linear-gradient(135deg,#4f46e5,#6366f1)!important;color:#fff!important;border-color:#818cf8!important}


/* Build 15.6.8 - definitive mobile utility bar + system dark-theme component correction */
.mobile-top-actions{display:none}

/* Use the exact settings icon class emitted by the settings view. */
html[data-theme="dark"] .settings-dynamic-icon,
html[data-theme="dark"] .settings-asset-icon,
html[data-theme="dark"] .settings-dynamic-card .settings-dynamic-icon,
html[data-theme="dark"] .settings-category-header .settings-dynamic-icon{
  background:#243149!important;color:#e8eef8!important;border:1px solid #3a4a64!important;box-shadow:none!important
}
html[data-theme="dark"] .settings-dynamic-icon .ui-icon,
html[data-theme="dark"] .settings-asset-icon .ui-icon{background:transparent!important;color:#e8eef8!important;border:0!important}

/* Mobile drawer must consume dark tokens instead of old light-mode rules. */
@media(max-width:850px){
  html[data-theme="dark"] .sidebar{background:#111b2d!important;color:#f8fafc!important;border-right:1px solid #31415b!important}
  html[data-theme="dark"] .sidebar .mobile-menu-brand{background:#152238!important;border-bottom-color:#31415b!important;color:#f8fafc!important}
  html[data-theme="dark"] .sidebar .brand-name-text{color:#f8fafc!important}
  html[data-theme="dark"] .sidebar .brand-copy span{color:#aebbd0!important}
  html[data-theme="dark"] .sidebar .mobile-menu-close{background:#223149!important;color:#f8fafc!important;border-color:#41536e!important}
  html[data-theme="dark"] .sidebar .side-nav{background:#111b2d!important}
  html[data-theme="dark"] .sidebar .nav-label{color:#8fa0ba!important}
  html[data-theme="dark"] .sidebar .nav-item{background:transparent!important;color:#e5e7eb!important}
  html[data-theme="dark"] .sidebar .nav-item:hover{background:#1b2940!important}
  html[data-theme="dark"] .sidebar .nav-item.active{background:#2b3b5a!important;color:#fff!important}
  html[data-theme="dark"] .sidebar-build-version{background:#18263b!important;border-color:#344762!important;color:#cbd5e1!important}
}

/* Login method selector is a shared control, not a light-mode island. */
html[data-theme="dark"] .login-method-selector{background:#152238!important;border-color:#3b4c66!important}
html[data-theme="dark"] .login-method-option{color:#cbd5e1!important}
html[data-theme="dark"] .login-method-option:has(input:checked){background:#243454!important;border-color:#6366f1!important;color:#fff!important;box-shadow:none!important}
html[data-theme="dark"] .login-method-icon{background:#1c2a42!important;border-color:#43536d!important;color:#f8fafc!important}

/* Keep PWA/install and generic empty/header surfaces inside the dark palette. */
html[data-theme="dark"] .dashboard-pwa-prompt,
html[data-theme="dark"] .dashboard-pwa-prompt .pwa-card,
html[data-theme="dark"] .dashboard-pwa-prompt .pwa-prompt-card,
html[data-theme="dark"] .dashboard-panel-header,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .toast,
html[data-theme="dark"] .update-toast,
html[data-theme="dark"] .app-update-toast{background:#18243a!important;color:#f8fafc!important;border-color:#344762!important}
html[data-theme="dark"] .dashboard-pwa-prompt p,
html[data-theme="dark"] .dashboard-pwa-prompt li,
html[data-theme="dark"] .empty-state p,
html[data-theme="dark"] .toast p{color:#b6c2d3!important}

/* Robust mobile header: dedicated utility group avoids collisions with legacy desktop rules. */
@media(max-width:850px){
  header.workspace-bar{
    display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:6px!important;
    height:54px!important;min-height:54px!important;padding:7px 8px!important;align-items:center!important;overflow:visible!important
  }
  header.workspace-bar>.desktop-collapse,header.workspace-bar>.menu-button{display:none!important}
  header.workspace-bar>.top-actions{display:none!important}
  header.workspace-bar>.mobile-top-actions{
    display:grid!important;grid-auto-flow:column!important;grid-auto-columns:34px!important;gap:4px!important;
    align-items:center!important;justify-content:end!important;min-width:0!important;overflow:visible!important
  }
  header.workspace-bar .top-search{display:flex!important;min-width:0!important;width:100%!important;max-width:none!important;height:38px!important;min-height:38px!important;padding:0 8px!important;border-radius:10px!important}
  header.workspace-bar .top-search input{min-width:0!important;width:100%!important;height:36px!important;font-size:12px!important;padding:0 4px!important}
  header.workspace-bar .top-search>.ui-icon{width:18px!important;height:18px!important;flex:0 0 18px!important}
  header.workspace-bar .mobile-top-actions>.appearance-menu,
  header.workspace-bar .mobile-top-actions>.notification-menu,
  header.workspace-bar .mobile-top-actions>.account-menu,
  header.workspace-bar .mobile-top-actions>.contextual-help-action{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;margin:0!important}
  header.workspace-bar .mobile-top-actions .appearance-trigger,
  header.workspace-bar .mobile-top-actions .notification-trigger,
  header.workspace-bar .mobile-top-actions .contextual-help-action,
  header.workspace-bar .mobile-top-actions .user-chip{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;min-height:34px!important;max-height:34px!important;padding:0!important;border-radius:9px!important}
  header.workspace-bar .mobile-top-actions .avatar-sm{width:29px!important;height:29px!important;min-width:29px!important;border-radius:7px!important}
  header.workspace-bar .mobile-top-actions .ui-icon{width:18px!important;height:18px!important}
  header.workspace-bar .mobile-top-actions .notification-badge{min-width:14px!important;height:14px!important;line-height:14px!important;font-size:8px!important;top:-4px!important;right:-4px!important}
  header.workspace-bar .mobile-top-actions .appearance-dropdown,
  header.workspace-bar .mobile-top-actions .notification-dropdown,
  header.workspace-bar .mobile-top-actions .account-dropdown{position:fixed!important;top:58px!important;right:8px!important;left:auto!important;max-width:calc(100vw - 16px)!important;z-index:120!important}
}
@media(max-width:430px){
  header.workspace-bar{grid-template-columns:minmax(74px,1fr) auto!important;gap:4px!important;padding-inline:6px!important}
  header.workspace-bar>.mobile-top-actions{grid-auto-columns:31px!important;gap:3px!important}
  header.workspace-bar .mobile-top-actions>.appearance-menu,
  header.workspace-bar .mobile-top-actions>.notification-menu,
  header.workspace-bar .mobile-top-actions>.account-menu,
  header.workspace-bar .mobile-top-actions>.contextual-help-action,
  header.workspace-bar .mobile-top-actions .appearance-trigger,
  header.workspace-bar .mobile-top-actions .notification-trigger,
  header.workspace-bar .mobile-top-actions .contextual-help-action,
  header.workspace-bar .mobile-top-actions .user-chip{width:31px!important;height:31px!important;min-width:31px!important;max-width:31px!important;min-height:31px!important;max-height:31px!important}
  header.workspace-bar .mobile-top-actions .avatar-sm{width:27px!important;height:27px!important;min-width:27px!important}
  header.workspace-bar .top-search input{font-size:11px!important}
}
@media(max-width:380px){header.workspace-bar .top-search input::placeholder{font-size:0!important;color:transparent!important}}

/* Dark mobile header uses the same layered navy palette as desktop. */
@media(max-width:850px){
 html[data-theme="dark"] header.workspace-bar{background:#111b2d!important;border-bottom-color:#31415b!important}
 html[data-theme="dark"] header.workspace-bar .top-search{background:#18263b!important;border-color:#374a66!important}
 html[data-theme="dark"] header.workspace-bar .mobile-top-actions .appearance-trigger,
 html[data-theme="dark"] header.workspace-bar .mobile-top-actions .notification-trigger,
 html[data-theme="dark"] header.workspace-bar .mobile-top-actions .contextual-help-action,
 html[data-theme="dark"] header.workspace-bar .mobile-top-actions .user-chip{background:#1d2b42!important;color:#f8fafc!important;border-color:#3b4d68!important}
}


/* Build 15.6.9 - mobile utility visibility, hover cleanup, and dark component consistency */
@media(max-width:850px){
  header.workspace-bar{display:flex!important;align-items:center!important;gap:6px!important;height:54px!important;min-height:54px!important;padding:7px 8px!important;overflow:visible!important}
  header.workspace-bar>.desktop-collapse,header.workspace-bar>.menu-button,header.workspace-bar>.top-actions{display:none!important}
  header.workspace-bar>.top-search{display:flex!important;flex:1 1 auto!important;min-width:0!important;width:auto!important;max-width:none!important;height:38px!important;min-height:38px!important;margin:0!important;padding:0 9px!important;border-radius:10px!important}
  header.workspace-bar>.top-search input{min-width:0!important;width:100%!important;height:36px!important;font-size:12px!important;padding:0 4px!important}
  header.workspace-bar>.mobile-top-actions{display:flex!important;flex:0 0 auto!important;width:auto!important;min-width:0!important;gap:4px!important;align-items:center!important;justify-content:flex-end!important;overflow:visible!important}
  header.workspace-bar>.mobile-top-actions>.appearance-menu,header.workspace-bar>.mobile-top-actions>.notification-menu,header.workspace-bar>.mobile-top-actions>.account-menu,header.workspace-bar>.mobile-top-actions>.contextual-help-action{display:block!important;visibility:visible!important;opacity:1!important;position:relative!important;flex:0 0 34px!important;width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;margin:0!important}
  header.workspace-bar>.mobile-top-actions .appearance-trigger,header.workspace-bar>.mobile-top-actions .notification-trigger,header.workspace-bar>.mobile-top-actions .contextual-help-action,header.workspace-bar>.mobile-top-actions .user-chip{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-width:34px!important;max-width:34px!important;min-height:34px!important;max-height:34px!important;padding:0!important;border-radius:9px!important}
  header.workspace-bar>.mobile-top-actions .avatar-sm{width:29px!important;height:29px!important;min-width:29px!important;border-radius:7px!important}
  header.workspace-bar>.mobile-top-actions .ui-icon{width:18px!important;height:18px!important}
  .global-tooltip{display:none!important}
}
@media(max-width:430px){
  header.workspace-bar{gap:4px!important;padding-inline:6px!important}
  header.workspace-bar>.mobile-top-actions{gap:3px!important}
  header.workspace-bar>.mobile-top-actions>.appearance-menu,header.workspace-bar>.mobile-top-actions>.notification-menu,header.workspace-bar>.mobile-top-actions>.account-menu,header.workspace-bar>.mobile-top-actions>.contextual-help-action,header.workspace-bar>.mobile-top-actions .appearance-trigger,header.workspace-bar>.mobile-top-actions .notification-trigger,header.workspace-bar>.mobile-top-actions .contextual-help-action,header.workspace-bar>.mobile-top-actions .user-chip{flex-basis:31px!important;width:31px!important;height:31px!important;min-width:31px!important;max-width:31px!important;min-height:31px!important;max-height:31px!important}
  header.workspace-bar>.top-search input::placeholder{font-size:0!important;color:transparent!important}
}
html[data-theme="dark"] .cards .kpi,html[data-theme="dark"] .cards a.kpi,html[data-theme="dark"] .kpi-income{background:#172033!important;color:#f8fafc!important;border-color:#34445f!important;box-shadow:none!important}
html[data-theme="dark"] .cards .kpi:hover,html[data-theme="dark"] .cards a.kpi:hover{background:#1d2940!important;border-color:#4b5f7e!important;transform:translateY(-1px)!important}
html[data-theme="dark"] .settings-dynamic-icon,html[data-theme="dark"] .settings-category-card .settings-dynamic-icon,html[data-theme="dark"] .settings-category-card .settings-asset-icon{background:#243149!important;color:#f8fafc!important;border-color:#43546f!important}
html[data-theme="dark"] .settings-dynamic-card:hover,html[data-theme="dark"] .settings-category-card:hover{background:#1d2940!important;border-color:#4b5f7e!important;box-shadow:0 10px 26px rgba(0,0,0,.18)!important}
html[data-theme="dark"] .settings-dynamic-card:hover .settings-dynamic-icon,html[data-theme="dark"] .settings-category-card:hover .settings-dynamic-icon{background:#2a3953!important;border-color:#5d7191!important}
html[data-theme="dark"] .mobile-bottom-nav-add:not([disabled]),html[data-theme="dark"] .mobile-bottom-nav-add:not([disabled]) .ui-icon{background:linear-gradient(135deg,#4f46e5,#6366f1)!important;color:#fff!important;border-color:#818cf8!important}
html[data-theme="dark"] .mobile-bottom-nav-add[disabled],html[data-theme="dark"] .mobile-bottom-nav-add.is-disabled{background:#273247!important;color:#7f8ba0!important;border-color:#3d4c64!important;opacity:.7!important}

/* Build 15.7.0 - dark interaction audit, brand contrast, login identity, and mobile navigation */
html[data-theme="dark"] .brand-block .brand-name-text,
html[data-theme="dark"] .sidebar .brand-copy strong,
html[data-theme="dark"] .mobile-menu-brand .brand-name-text{color:#f8fafc!important;text-shadow:none!important;opacity:1!important}
html[data-theme="dark"] .brand-block .brand-copy span,
html[data-theme="dark"] .sidebar .brand-copy span{color:#aebbd0!important;opacity:1!important}

/* Interactive dashboard surfaces must never fall back to light-mode hover fills. */
html[data-theme="dark"] .dashboard-expandable-summary:hover,
html[data-theme="dark"] .dashboard-expandable-summary:focus-visible,
html[data-theme="dark"] .dashboard-activity-panel .dashboard-expandable-summary:hover,
html[data-theme="dark"] .onboarding-steps a:hover,
html[data-theme="dark"] .onboarding-steps a:focus-visible,
html[data-theme="dark"] .mini-stat:hover,
html[data-theme="dark"] .dashboard-panel a:hover{
  background:#1d2940!important;color:#f8fafc!important;border-color:#465a78!important;box-shadow:none!important
}
html[data-theme="dark"] .dashboard-expandable-summary:hover h2,
html[data-theme="dark"] .dashboard-expandable-summary:hover p,
html[data-theme="dark"] .dashboard-expandable-summary:hover .dashboard-expandable-meta{color:#f8fafc!important}
html[data-theme="dark"] .dashboard-expandable-summary:hover .dashboard-expandable-meta{background:#263754!important;border-color:#526885!important}
html[data-theme="dark"] .dashboard-expandable-summary:hover .dashboard-expandable-chevron{background:#243650!important;color:#f8fafc!important;border-color:#60789b!important}
html[data-theme="dark"] .onboarding-steps a:hover small{color:#cbd5e1!important}
html[data-theme="dark"] .onboarding-steps a:hover>span{background:#3730a3!important;color:#eef2ff!important}

/* Login identity mark follows dark appearance instead of leaving a white SC tile. */
html[data-theme="dark"] .login-screen{background:#0b1220!important}
html[data-theme="dark"] .login-card{background:#111b2d!important;border-color:#31415b!important;box-shadow:0 24px 70px rgba(0,0,0,.32)!important}
html[data-theme="dark"] .login-brand-panel{background:linear-gradient(145deg,#17233a 0%,#111b2d 100%)!important;border-color:#31415b!important}
html[data-theme="dark"] .login-logo{background:#202f49!important;color:#c7d2fe!important;border:1px solid #526580!important;box-shadow:0 10px 24px rgba(0,0,0,.24)!important}
html[data-theme="dark"] .login-form-panel{background:#0f1929!important;color:#f8fafc!important}
html[data-theme="dark"] .login-audience-label{background:#1d2a41!important;color:#cbd5e1!important;border-color:#42536e!important}
html[data-theme="dark"] .login-method-selector{background:#152238!important;border-color:#3b4c66!important}
html[data-theme="dark"] .login-method-option:hover{background:#1c2b43!important;color:#f8fafc!important}
html[data-theme="dark"] .login-method-option:has(input:checked){background:#283754!important;color:#fff!important;border-color:#6366f1!important}
html[data-theme="dark"] .login-logo,
html[data-theme="dark"] .login-method-icon{color:#eef2ff!important}

/* Mobile bottom navigation: layered navy bar, readable labels, deliberate indigo active state and FAB. */
@media(max-width:850px){
  html[data-theme="dark"] .mobile-bottom-nav{
    background:#101a2b!important;border-color:#2d3d56!important;box-shadow:0 -10px 30px rgba(0,0,0,.28)!important
  }
  html[data-theme="dark"] .mobile-bottom-nav-item{
    background:transparent!important;color:#c9d4e4!important;border:0!important;box-shadow:none!important
  }
  html[data-theme="dark"] .mobile-bottom-nav-item:hover,
  html[data-theme="dark"] .mobile-bottom-nav-item:focus-visible{
    background:#18263b!important;color:#f8fafc!important
  }
  html[data-theme="dark"] .mobile-bottom-nav-item .ui-icon{
    background:transparent!important;color:#d9e2ef!important;border:0!important;box-shadow:none!important
  }
  html[data-theme="dark"] .mobile-bottom-nav-item.active{
    background:transparent!important;color:#b8c1ff!important
  }
  html[data-theme="dark"] .mobile-bottom-nav-item.active .ui-icon{
    background:#3730a3!important;color:#eef2ff!important;border:1px solid #6366f1!important;box-shadow:0 6px 18px rgba(79,70,229,.24)!important
  }
  html[data-theme="dark"] .mobile-quick-actions>summary{
    background:linear-gradient(135deg,#4f46e5,#6366f1)!important;color:#fff!important;border:2px solid #818cf8!important;box-shadow:0 8px 22px rgba(79,70,229,.35)!important
  }
  html[data-theme="dark"] .mobile-quick-actions>summary:hover,
  html[data-theme="dark"] .mobile-quick-actions>summary:focus-visible{background:linear-gradient(135deg,#5b55e8,#7476f3)!important;border-color:#a5b4fc!important}
  html[data-theme="dark"] .mobile-quick-actions[open]>summary{background:#4338ca!important;color:#fff!important;border-color:#818cf8!important}
  html[data-theme="dark"] .mobile-quick-actions:after{color:#cbd5e1!important}
  html[data-theme="dark"] .mobile-quick-actions-menu{background:#172033!important;color:#f8fafc!important;border-color:#3b4c66!important;box-shadow:0 18px 46px rgba(0,0,0,.42)!important}
  html[data-theme="dark"] .mobile-quick-actions-grid a{background:#1d2940!important;color:#f8fafc!important;border-color:#3b4c66!important}
  html[data-theme="dark"] .mobile-quick-actions-grid a:hover{background:#24344f!important;border-color:#566b8c!important}
  html[data-theme="dark"] .mobile-quick-actions-grid a .ui-icon{background:#29395a!important;color:#c7d2fe!important;border:1px solid #4d5f7d!important}
}

/* Preserve readable dark hover/focus states on shared cards system-wide. */
html[data-theme="dark"] .panel:hover,
html[data-theme="dark"] .card:hover{border-color:#3f516d!important}
html[data-theme="dark"] a:focus-visible,
html[data-theme="dark"] button:focus-visible,
html[data-theme="dark"] summary:focus-visible{outline:2px solid #818cf8!important;outline-offset:2px!important}

/* Build 15.7.1 - mobile header order and dark navigation drawer refinement */
@media(max-width:850px){
  /* Search always owns the left side. Utility actions remain on the right. */
  header.workspace-bar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    column-gap:6px!important;
    height:54px!important;
    min-height:54px!important;
    padding:7px 8px!important;
  }
  header.workspace-bar>.top-search{
    grid-column:1!important;
    grid-row:1!important;
    order:1!important;
    width:100%!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    height:38px!important;
  }
  header.workspace-bar>.mobile-top-actions{
    grid-column:2!important;
    grid-row:1!important;
    order:2!important;
    display:flex!important;
    width:auto!important;
    min-width:0!important;
    flex:0 0 auto!important;
    justify-content:flex-end!important;
    align-items:center!important;
    gap:4px!important;
  }

  /* The drawer starts immediately below the 54px utility bar. */
  .nav-toggle:checked~.app-shell .sidebar,
  .sidebar{
    top:54px!important;
    bottom:0!important;
    left:0!important;
    right:auto!important;
    width:100vw!important;
    max-width:none!important;
    height:calc(100dvh - 54px)!important;
    min-height:0!important;
    border-radius:0!important;
    display:flex!important;
    flex-direction:column!important;
    overflow:hidden!important;
  }
  .nav-toggle:checked~.app-shell .nav-backdrop{
    top:54px!important;
    bottom:0!important;
    height:calc(100dvh - 54px)!important;
  }
  .sidebar .mobile-menu-brand{
    position:relative!important;
    top:auto!important;
    flex:0 0 70px!important;
    height:70px!important;
    min-height:70px!important;
    padding:9px 14px!important;
    gap:11px!important;
  }
  .sidebar .mobile-menu-logo{
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    flex-basis:42px!important;
  }
  .sidebar .mobile-menu-close{
    width:38px!important;
    height:38px!important;
    min-width:38px!important;
    min-height:38px!important;
    flex-basis:38px!important;
    font-size:23px!important;
  }
  .sidebar .side-nav{
    flex:1 1 auto!important;
    height:auto!important;
    min-height:0!important;
    overflow-y:auto!important;
    padding:10px 14px 18px!important;
  }
  .sidebar-build-version{
    flex:0 0 auto!important;
    margin:0 14px calc(12px + env(safe-area-inset-bottom,0px))!important;
  }

  /* Mobile drawer navigation uses compact readable rows rather than oversized circles. */
  .sidebar .side-nav .nav-group{
    margin:0!important;
    padding:8px 0!important;
    border-bottom:1px solid rgba(148,163,184,.16)!important;
  }
  .sidebar .side-nav .nav-group:last-child{border-bottom:0!important}
  .sidebar .nav-label{
    padding:7px 10px 5px!important;
    font-size:10px!important;
    font-weight:650!important;
    letter-spacing:.1em!important;
  }
  .sidebar .nav-item{
    min-height:50px!important;
    margin:2px 0!important;
    padding:7px 10px!important;
    gap:11px!important;
    border-radius:12px!important;
  }
  .sidebar .nav-item .ui-icon{
    width:34px!important;
    height:34px!important;
    min-width:34px!important;
    flex:0 0 34px!important;
    padding:7px!important;
    border-radius:10px!important;
  }
  .sidebar .nav-item>span:last-child{
    font-size:14px!important;
    font-weight:550!important;
    line-height:1.2!important;
    color:inherit!important;
  }
}

@media(max-width:430px){
  header.workspace-bar{grid-template-columns:minmax(88px,1fr) auto!important;column-gap:4px!important;padding-inline:6px!important}
  header.workspace-bar>.mobile-top-actions{gap:3px!important}
  header.workspace-bar>.top-search input::placeholder{font-size:0!important;color:transparent!important}
}

@media(max-width:850px){
  html[data-theme="dark"] .sidebar{
    background:#101a2b!important;
    border-color:#2d3d56!important;
  }
  html[data-theme="dark"] .sidebar .mobile-menu-brand{
    background:#152238!important;
    border-bottom:1px solid #30415c!important;
  }
  html[data-theme="dark"] .sidebar .brand-name-text{color:#f8fafc!important}
  html[data-theme="dark"] .sidebar .brand-copy span{color:#9fb0c7!important}
  html[data-theme="dark"] .sidebar .mobile-menu-close{
    background:#1d2b42!important;
    color:#f8fafc!important;
    border-color:#3c4f6d!important;
  }
  html[data-theme="dark"] .sidebar .side-nav{background:#101a2b!important}
  html[data-theme="dark"] .sidebar .side-nav .nav-group{border-bottom-color:#26364e!important}
  html[data-theme="dark"] .sidebar .nav-label{color:#8394ad!important}
  html[data-theme="dark"] .sidebar .nav-item{
    background:transparent!important;
    color:#d9e2ef!important;
    border:1px solid transparent!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] .sidebar .nav-item>span:last-child{color:inherit!important}
  html[data-theme="dark"] .sidebar .nav-item .ui-icon{
    background:#18263b!important;
    color:#e7edf7!important;
    border:1px solid #334762!important;
    box-shadow:none!important;
  }
  html[data-theme="dark"] .sidebar .nav-item:hover,
  html[data-theme="dark"] .sidebar .nav-item:focus-visible{
    background:#192842!important;
    color:#fff!important;
    border-color:#334a69!important;
  }
  html[data-theme="dark"] .sidebar .nav-item.active{
    background:#223250!important;
    color:#fff!important;
    border-color:#40567a!important;
    box-shadow:inset 3px 0 0 #6366f1!important;
  }
  html[data-theme="dark"] .sidebar .nav-item.active .ui-icon{
    background:#3730a3!important;
    color:#eef2ff!important;
    border-color:#6366f1!important;
    box-shadow:0 4px 12px rgba(79,70,229,.22)!important;
  }
  html[data-theme="dark"] .sidebar-build-version{
    background:#17263b!important;
    color:#cbd5e1!important;
    border-color:#334762!important;
  }
}

/* Build 15.7.3 - system-wide dark interaction integrity audit (desktop + mobile) */
html[data-theme="dark"]{
  --dark-bg:#0b1423;
  --dark-surface:#111d31;
  --dark-surface-2:#17243a;
  --dark-surface-3:#1d2c45;
  --dark-border:#30425e;
  --dark-border-strong:#405575;
  --dark-text:#f4f7fb;
  --dark-text-2:#d5deea;
  --dark-muted:#96a6bc;
}

/* Dropdowns, overlays, popovers and menus: no light-mode footer/header leaks. */
html[data-theme="dark"] .notification-dropdown,
html[data-theme="dark"] .account-dropdown,
html[data-theme="dark"] .appearance-dropdown,
html[data-theme="dark"] .desktop-quick-actions-menu,
html[data-theme="dark"] .command-palette,
html[data-theme="dark"] .context-help-center,
html[data-theme="dark"] .report-drawer,
html[data-theme="dark"] .mobile-report-sheet,
html[data-theme="dark"] .universal-date-popover,
html[data-theme="dark"] .dashboard-date-popover{
  background:var(--dark-surface-2)!important;
  color:var(--dark-text)!important;
  border-color:var(--dark-border)!important;
  box-shadow:0 20px 50px rgba(0,0,0,.38)!important;
}
html[data-theme="dark"] .notification-dropdown-head,
html[data-theme="dark"] .notification-dropdown-list,
html[data-theme="dark"] .notification-dropdown-empty,
html[data-theme="dark"] .notification-dropdown-footer,
html[data-theme="dark"] .account-dropdown-head,
html[data-theme="dark"] .context-help-footer,
html[data-theme="dark"] .mobile-report-header,
html[data-theme="dark"] .mobile-report-search{
  background:var(--dark-surface-2)!important;
  color:var(--dark-text-2)!important;
  border-color:var(--dark-border)!important;
}
html[data-theme="dark"] .notification-dropdown-head strong,
html[data-theme="dark"] .notification-dropdown-head a,
html[data-theme="dark"] .notification-dropdown-footer,
html[data-theme="dark"] .notification-dropdown-item strong{color:var(--dark-text)!important}
html[data-theme="dark"] .notification-dropdown-head small,
html[data-theme="dark"] .notification-dropdown-item small,
html[data-theme="dark"] .notification-dropdown-empty{color:var(--dark-muted)!important}
html[data-theme="dark"] .notification-dropdown-item{background:transparent!important;color:var(--dark-text-2)!important;border-color:var(--dark-border)!important}
html[data-theme="dark"] .notification-dropdown-item:hover,
html[data-theme="dark"] .notification-dropdown-item:focus-visible,
html[data-theme="dark"] .notification-dropdown-footer:hover,
html[data-theme="dark"] .notification-dropdown-footer:focus-visible{background:var(--dark-surface-3)!important;color:#fff!important}

/* Pills, tabs and segmented controls. This fixes Follow-up queue filters and similar controls. */
html[data-theme="dark"] .tabs a,
html[data-theme="dark"] .profile-tabs a,
html[data-theme="dark"] .notification-tab,
html[data-theme="dark"] .followup-queue-tab,
html[data-theme="dark"] .comm-segments a,
html[data-theme="dark"] .report-personal-tab,
html[data-theme="dark"] .report-explorer-chip,
html[data-theme="dark"] .settings-tabs a,
html[data-theme="dark"] .settings-tabs button,
html[data-theme="dark"] .payment-method-picker span,
html[data-theme="dark"] .login-method-option{
  background:var(--dark-surface-2)!important;
  color:var(--dark-text-2)!important;
  border-color:var(--dark-border)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .followup-queue-tab b,
html[data-theme="dark"] .notification-tab span,
html[data-theme="dark"] .tabs a span{
  background:#22324c!important;color:#cbd5e1!important;border-color:#3b506e!important
}
html[data-theme="dark"] .tabs a:hover,
html[data-theme="dark"] .profile-tabs a:hover,
html[data-theme="dark"] .notification-tab:hover,
html[data-theme="dark"] .followup-queue-tab:hover,
html[data-theme="dark"] .comm-segments a:hover,
html[data-theme="dark"] .report-personal-tab:hover,
html[data-theme="dark"] .report-explorer-chip:hover,
html[data-theme="dark"] .settings-tabs a:hover,
html[data-theme="dark"] .settings-tabs button:hover,
html[data-theme="dark"] .payment-method-picker span:hover,
html[data-theme="dark"] .login-method-option:hover{
  background:#21314c!important;color:#fff!important;border-color:#4d6282!important
}
html[data-theme="dark"] .tabs a.active,
html[data-theme="dark"] .profile-tabs a.active,
html[data-theme="dark"] .notification-tab.active,
html[data-theme="dark"] .followup-queue-tab.active,
html[data-theme="dark"] .comm-segments a.active,
html[data-theme="dark"] .report-personal-tab.active,
html[data-theme="dark"] .report-explorer-chip.active,
html[data-theme="dark"] .settings-tabs a.active,
html[data-theme="dark"] .settings-tabs button.active{
  background:#313b83!important;color:#fff!important;border-color:#6366f1!important;box-shadow:0 0 0 1px rgba(129,140,248,.16)!important
}
html[data-theme="dark"] .followup-queue-tab.active b,
html[data-theme="dark"] .notification-tab.active span{background:#4f46e5!important;color:#fff!important}

/* Shared card/list surfaces and their hover states. */
html[data-theme="dark"] .notification-tile,
html[data-theme="dark"] .selection-card,
html[data-theme="dark"] .profile-summary-card,
html[data-theme="dark"] .guide-card,
html[data-theme="dark"] .guide-sections article,
html[data-theme="dark"] .tip-box,
html[data-theme="dark"] .followup-work-card,
html[data-theme="dark"] .followup-card-detail,
html[data-theme="dark"] .payment-loan-card,
html[data-theme="dark"] .payment-review-card>div,
html[data-theme="dark"] .maintenance-action-card,
html[data-theme="dark"] .capital-entry-card,
html[data-theme="dark"] .capital-register-card,
html[data-theme="dark"] .choice-card,
html[data-theme="dark"] .announcement-record,
html[data-theme="dark"] .journey-event,
html[data-theme="dark"] .journey-event-card,
html[data-theme="dark"] .staff-payment-card,
html[data-theme="dark"] .notice-history-card,
html[data-theme="dark"] .notice-review-card,
html[data-theme="dark"] .ss-quick-action,
html[data-theme="dark"] .ss-overview-card,
html[data-theme="dark"] .profile-status-card,
html[data-theme="dark"] .application-journey-card,
html[data-theme="dark"] .payment-correction-item,
html[data-theme="dark"] .integrity-declaration,
html[data-theme="dark"] .integrity-option,
html[data-theme="dark"] .integrity-admin-pending,
html[data-theme="dark"] .integrity-resume-form{
  background:var(--dark-surface-2)!important;color:var(--dark-text-2)!important;border-color:var(--dark-border)!important;box-shadow:none!important
}
html[data-theme="dark"] .selection-card:hover,
html[data-theme="dark"] .profile-summary-card:hover,
html[data-theme="dark"] .guide-card:hover,
html[data-theme="dark"] .followup-work-card:hover,
html[data-theme="dark"] .maintenance-action-card:hover,
html[data-theme="dark"] .capital-entry-card:hover,
html[data-theme="dark"] .choice-card:hover,
html[data-theme="dark"] .announcement-record:hover,
html[data-theme="dark"] .journey-event:hover,
html[data-theme="dark"] .ss-quick-action:hover{
  background:var(--dark-surface-3)!important;color:var(--dark-text)!important;border-color:var(--dark-border-strong)!important
}

/* Expand/collapse, table tools and small utility controls. */
html[data-theme="dark"] .followup-expand,
html[data-theme="dark"] .table-tool,
html[data-theme="dark"] .table-column-menu,
html[data-theme="dark"] .mobile-row-more,
html[data-theme="dark"] .mobile-row-toggle,
html[data-theme="dark"] .mobile-row-toggle-button,
html[data-theme="dark"] .mobile-record-toggle,
html[data-theme="dark"] .table-expand-button,
html[data-theme="dark"] [data-mobile-row-toggle],
html[data-theme="dark"] .expand-record-button,
html[data-theme="dark"] .pagination-link,
html[data-theme="dark"] .context-help-close,
html[data-theme="dark"] .report-drawer-close,
html[data-theme="dark"] .report-explorer-close{
  background:#1b2940!important;color:#e7edf7!important;border-color:#3b506e!important
}
html[data-theme="dark"] .followup-expand:hover,
html[data-theme="dark"] .table-tool:hover,
html[data-theme="dark"] .mobile-row-more:hover,
html[data-theme="dark"] .pagination-link:hover,
html[data-theme="dark"] .context-help-close:hover,
html[data-theme="dark"] .report-drawer-close:hover,
html[data-theme="dark"] .report-explorer-close:hover{background:#263956!important;color:#fff!important;border-color:#607696!important}

/* Mobile detail cards and report explorer surfaces. */
html[data-theme="dark"] .mobile-row-details,
html[data-theme="dark"] .mobile-row-detail-grid>div,
html[data-theme="dark"] table.mobile-table-cards tbody tr,
html[data-theme="dark"] .mobile-detail-table tr,
html[data-theme="dark"] .mobile-report-group,
html[data-theme="dark"] .mobile-report-links a,
html[data-theme="dark"] .report-category,
html[data-theme="dark"] .report-menu,
html[data-theme="dark"] .report-filter-panel,
html[data-theme="dark"] .report-results,
html[data-theme="dark"] .report-summary-card{
  background:var(--dark-surface-2)!important;color:var(--dark-text-2)!important;border-color:var(--dark-border)!important
}
html[data-theme="dark"] .mobile-row-detail-grid dt,
html[data-theme="dark"] .mobile-report-group small{color:var(--dark-muted)!important}
html[data-theme="dark"] .mobile-row-detail-grid dd,
html[data-theme="dark"] .mobile-report-group strong,
html[data-theme="dark"] .mobile-report-links a{color:var(--dark-text-2)!important}
html[data-theme="dark"] .mobile-report-links a:hover{background:var(--dark-surface-3)!important;color:#fff!important;border-color:var(--dark-border-strong)!important}

/* Authentication and identity pieces. */
html[data-theme="dark"] .login-logo,
html[data-theme="dark"] .login-method-icon,
html[data-theme="dark"] .login-type-picker label span,
html[data-theme="dark"] .dashboard-pwa-icon{
  background:#1f2e46!important;color:#f8fafc!important;border-color:#405574!important;box-shadow:none!important
}
html[data-theme="dark"] .login-logo img,
html[data-theme="dark"] .dashboard-pwa-icon img{background:transparent!important}
html[data-theme="dark"] .login-type-picker,
html[data-theme="dark"] .login-type-picker label,
html[data-theme="dark"] .login-type-picker label:has(input:checked) span{
  background:var(--dark-surface-2)!important;color:var(--dark-text)!important;border-color:var(--dark-border)!important
}

/* Disabled states must look disabled, not like bright light-mode buttons. */
html[data-theme="dark"] button:disabled,
html[data-theme="dark"] .button.disabled,
html[data-theme="dark"] .button[aria-disabled="true"],
html[data-theme="dark"] .btn:disabled,
html[data-theme="dark"] input:disabled,
html[data-theme="dark"] select:disabled,
html[data-theme="dark"] textarea:disabled{
  background:#1a2538!important;color:#718096!important;border-color:#2d3c52!important;opacity:.72!important;box-shadow:none!important
}

/* Keep text readable inside active/hovered navigation and cards, including nested elements. */
html[data-theme="dark"] .nav-item:hover *,
html[data-theme="dark"] .nav-item.active *,
html[data-theme="dark"] .mobile-bottom-nav-item.active *,
html[data-theme="dark"] .followup-queue-tab.active *,
html[data-theme="dark"] .notification-tab.active *{color:inherit!important}

/* Mobile dropdowns stay inside the viewport and use a coherent dark surface. */
@media(max-width:850px){
  html[data-theme="dark"] .notification-dropdown,
  html[data-theme="dark"] .appearance-dropdown,
  html[data-theme="dark"] .account-dropdown{background:#17243a!important;border-color:#3a4d69!important;color:#f4f7fb!important}
  .notification-dropdown{max-width:min(360px,calc(100vw - 16px))!important;width:min(360px,calc(100vw - 16px))!important}
  html[data-theme="dark"] .followup-queue-tabs{scrollbar-color:#435776 transparent!important}
  html[data-theme="dark"] .followup-queue-tab{min-height:42px!important}
}

/* Build 15.7.3 audit extension - legacy white-surface coverage */
html[data-theme="dark"] .applicant-profile-card,
html[data-theme="dark"] .application-summary-card,
html[data-theme="dark"] .approval-action-card,
html[data-theme="dark"] .customer-result-card,
html[data-theme="dark"] .selected-customer-card,
html[data-theme="dark"] .loan-product-summary-card,
html[data-theme="dark"] .metric-card,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .settings-group,
html[data-theme="dark"] .settings-editor,
html[data-theme="dark"] .performance-metric,
html[data-theme="dark"] .payment-kpi,
html[data-theme="dark"] .ready-disbursement-card,
html[data-theme="dark"] .upfront-payment-experience,
html[data-theme="dark"] .upfront-lock-card,
html[data-theme="dark"] .enterprise-disclosure,
html[data-theme="dark"] .signature-pad,
html[data-theme="dark"] .repayment-instalment-card,
html[data-theme="dark"] .repayment-schedule-content,
html[data-theme="dark"] .repayment-schedule-disclosure>summary,
html[data-theme="dark"] .pwa-update-notice,
html[data-theme="dark"] .report-header,
html[data-theme="dark"] .report-filter-collapsible,
html[data-theme="dark"] .report-filter-collapsible .report-filter-toggle,
html[data-theme="dark"] .report-filter-body,
html[data-theme="dark"] .desktop-report-modal .report-library-search,
html[data-theme="dark"] .desktop-report-modal .report-library-heading,
html[data-theme="dark"] .context-help-search,
html[data-theme="dark"] .context-help-links>a,
html[data-theme="dark"] .command-result,
html[data-theme="dark"] .compact-result-row,
html[data-theme="dark"] .profile-result-card,
html[data-theme="dark"] .dashboard-announcements,
html[data-theme="dark"] .filter-collapsible,
html[data-theme="dark"] .filter-collapsible-toggle,
html[data-theme="dark"] .universal-date-filter summary,
html[data-theme="dark"] .universal-date-custom,
html[data-theme="dark"] .universal-date-custom>div,
html[data-theme="dark"] .dashboard-date-presets,
html[data-theme="dark"] .rich-editor,
html[data-theme="dark"] .rich-editor-toolbar,
html[data-theme="dark"] .rich-editor-toolbar button,
html[data-theme="dark"] .phone-input,
html[data-theme="dark"] .overview-modal-card,
html[data-theme="dark"] .capital-filter-toolbar,
html[data-theme="dark"] .capital-type-option,
html[data-theme="dark"] .role-command-card,
html[data-theme="dark"] .payment-record-step,
html[data-theme="dark"] .payment-correction-box{
  background:var(--dark-surface-2)!important;color:var(--dark-text-2)!important;border-color:var(--dark-border)!important;box-shadow:none!important
}

html[data-theme="dark"] .application-step,
html[data-theme="dark"] .journey-stage-number,
html[data-theme="dark"] .settings-card-icon,
html[data-theme="dark"] .settings-editor-icon,
html[data-theme="dark"] .settings-rail-heading>.ui-icon,
html[data-theme="dark"] .performance-metric-icon,
html[data-theme="dark"] .maintenance-icon,
html[data-theme="dark"] .verification-state-icon,
html[data-theme="dark"] .report-mobile-links a .ui-icon{
  background:#21314a!important;color:#e7edf7!important;border-color:#405575!important;box-shadow:none!important
}

html[data-theme="dark"] .dashboard-custom-fields input,
html[data-theme="dark"] .enterprise-search-form .global-search-control input,
html[data-theme="dark"] .report-library-search input,
html[data-theme="dark"] .context-help-search input{
  background:#111c2e!important;color:var(--dark-text)!important;border-color:#3a4d68!important
}

html[data-theme="dark"] .notification-row,
html[data-theme="dark"] .permission-table tr.permission-row,
html[data-theme="dark"] .performance-largest-table tr,
html[data-theme="dark"] .performance-slow-table tr,
html[data-theme="dark"] .performance-maintenance-table tr,
html[data-theme="dark"] .staff-directory-table tr,
html[data-theme="dark"] .people-directory-table tr,
html[data-theme="dark"] .audit-results-panel .mobile-detail-table tr{
  background:var(--dark-surface-2)!important;color:var(--dark-text-2)!important;border-color:var(--dark-border)!important
}
html[data-theme="dark"] .notification-row:hover,
html[data-theme="dark"] .permission-table tr.permission-row:hover,
html[data-theme="dark"] .staff-directory-table tr:hover,
html[data-theme="dark"] .people-directory-table tr:hover{background:var(--dark-surface-3)!important;color:var(--dark-text)!important}

html[data-theme="dark"] .table-bulk-page-check,
html[data-theme="dark"] .staff-directory-table td.bulk-select-col,
html[data-theme="dark"] .mobile-detail-table tr[data-bulk-selectable] td.bulk-select-col{background:#18263b!important;color:var(--dark-text-2)!important;border-color:var(--dark-border)!important}

html[data-theme="dark"] .desktop-collapse,
html[data-theme="dark"] .menu-button,
html[data-theme="dark"] .back-to-top,
html[data-theme="dark"] .modal-close-row button,
html[data-theme="dark"] .dashboard-custom-actions button,
html[data-theme="dark"] .global-search-hints button{
  background:#1b2940!important;color:#f8fafc!important;border-color:#3b506e!important
}
html[data-theme="dark"] .desktop-collapse:hover,
html[data-theme="dark"] .menu-button:hover,
html[data-theme="dark"] .back-to-top:hover,
html[data-theme="dark"] .modal-close-row button:hover,
html[data-theme="dark"] .dashboard-custom-actions button:hover,
html[data-theme="dark"] .global-search-hints button:hover{background:#263956!important;border-color:#607696!important}

html[data-theme="dark"] .button.outline,
html[data-theme="dark"] .danger-outline,
html[data-theme="dark"] .success-outline,
html[data-theme="dark"] .btn.danger-outline,
html[data-theme="dark"] .btn.success-outline{background:transparent!important}
html[data-theme="dark"] .danger-outline,html[data-theme="dark"] .btn.danger-outline{color:#fca5a5!important;border-color:#7f3540!important}
html[data-theme="dark"] .success-outline,html[data-theme="dark"] .btn.success-outline{color:#86efac!important;border-color:#2b6b4b!important}
html[data-theme="dark"] .button.outline{color:#dbe4ef!important;border-color:#4b607f!important}

html[data-theme="dark"] .upfront-breakdown-grid>div,
html[data-theme="dark"] .upfront-total-grid>div,
html[data-theme="dark"] .upfront-mini-breakdown em{background:#18263b!important;color:var(--dark-text-2)!important;border-color:#344760!important}

html[data-theme="dark"] .pinned-report-card:hover,
html[data-theme="dark"] .context-help-links>a:hover,
html[data-theme="dark"] .command-result:hover,
html[data-theme="dark"] .compact-result-row:hover,
html[data-theme="dark"] .report-explorer-group:hover{background:var(--dark-surface-3)!important;color:#fff!important;border-color:var(--dark-border-strong)!important}

/* Build 15.7.3 audit completion - remaining legacy light selectors */
html[data-theme="dark"] .dashboard-kpi,
html[data-theme="dark"] .penalty-summary,
html[data-theme="dark"] .settings-switch-link,
html[data-theme="dark"] .report-explorer-group-toggle,
html[data-theme="dark"] .impersonation-return,
html[data-theme="dark"] .reject-menu[open] form,
html[data-theme="dark"] .integrity-choice label,
html[data-theme="dark"] .loan-wizard .wizard-progress,
html[data-theme="dark"] .wizard-progress{
  background:var(--dark-surface-2)!important;color:var(--dark-text-2)!important;border-color:var(--dark-border)!important;box-shadow:none!important
}
html[data-theme="dark"] .settings-switch-link:hover,
html[data-theme="dark"] .report-explorer-group-toggle:hover,
html[data-theme="dark"] .impersonation-return:hover{background:var(--dark-surface-3)!important;color:#fff!important;border-color:var(--dark-border-strong)!important}
html[data-theme="dark"] .mobile-menu-logo{background:#1f2e46!important;border-color:#405574!important}
html[data-theme="dark"] .mobile-menu-logo img{background:transparent!important}
html[data-theme="dark"] .data-table-enhanced thead th:first-child,
html[data-theme="dark"] .data-table-enhanced tbody td:first-child{background:inherit!important;color:inherit!important}
html[data-theme="dark"] .application-actions,
html[data-theme="dark"] .mobile-followup-workbench{background:transparent!important;color:inherit!important}

/* Build 15.7.3 - minute-only date/time controls */
.datetime-minute-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(118px,.55fr);gap:8px;width:100%}.datetime-minute-wrap>input{min-width:0;width:100%}@media(max-width:520px){.datetime-minute-wrap{grid-template-columns:1fr 128px}}


/* Build 15.7.4 - communications desktop balance, top-up and settings layout polish */
.comm-overview-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.sms-credit-shell{min-width:235px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft);padding:8px 10px}.sms-credit-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.sms-credit-summary small,.sms-credit-summary strong{display:block}.sms-credit-summary small{font-size:10px;color:var(--muted);margin-bottom:1px}.sms-credit-summary strong{font-size:16px;font-weight:600;color:var(--ink)}.sms-credit-summary .button{display:inline-flex;align-items:center;gap:5px}.sms-credit-summary .ui-icon{width:14px;height:14px}.sms-credit-topup{display:grid;grid-template-columns:minmax(90px,.7fr) minmax(155px,1fr) auto;gap:7px;align-items:end;padding-top:9px;margin-top:8px;border-top:1px solid var(--line)}.sms-credit-topup label{font-size:10px;margin:0}.sms-credit-topup input{min-height:34px;font-size:11px}.sms-credit-topup .button{min-height:34px;white-space:nowrap}
@media(min-width:901px){.comm-settings-v3 .comm-config-grid{grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:12px}.comm-settings-v3 .comm-config-card{padding:14px}.comm-settings-v3 .comm-card-head strong{font-size:13px}.comm-settings-v3 .comm-card-head small{font-size:10px}.comm-settings-v3 .compact-grid{gap:9px!important;margin-top:11px}.comm-settings-v3 .compact-grid label{font-size:10.5px;margin-bottom:7px}.comm-settings-v3 .compact-grid input,.comm-settings-v3 .compact-grid select,.comm-settings-v3 .compact-grid textarea{min-height:38px;font-size:12px;padding:7px 10px}.comm-settings-v3 .comm-settings-tabs button{font-size:11px;min-height:34px;padding:7px 11px}.comm-settings-v3 .comm-settings-save.compact-save{position:sticky;bottom:0;z-index:4;background:linear-gradient(to top,var(--surface) 72%,transparent);padding:12px 0 14px}}
@media(max-width:900px){.comm-overview-actions{width:100%;justify-content:stretch}.sms-credit-shell{width:100%}.sms-credit-topup{grid-template-columns:1fr 1fr auto}}
@media(max-width:700px){.sms-credit-topup{grid-template-columns:1fr}.sms-credit-topup .button{width:100%}}
html[data-theme="dark"] .sms-credit-shell{background:var(--surface-soft)!important;border-color:var(--border)!important}html[data-theme="dark"] .sms-credit-topup{border-color:var(--border)!important}

/* Build 15.7.5 - mobile help sheet and loan wizard responsive dark-mode polish */
html[data-theme="dark"] .context-help-header{
  background:linear-gradient(180deg,#1b2940 0%,#17243a 100%)!important;
  color:var(--dark-text)!important;
  border-color:var(--dark-border)!important;
}
html[data-theme="dark"] .context-help-header h2,
html[data-theme="dark"] .context-help-section-head strong,
html[data-theme="dark"] .context-help-section-title,
html[data-theme="dark"] .context-help-quick-grid strong{
  color:var(--dark-text)!important;
}
html[data-theme="dark"] .context-help-header p,
html[data-theme="dark"] .context-help-links small,
html[data-theme="dark"] .context-help-quick-grid small{
  color:var(--dark-muted)!important;
}
html[data-theme="dark"] .context-help-eyebrow,
html[data-theme="dark"] .context-help-section-head a{
  color:#8ab4ff!important;
}
html[data-theme="dark"] .context-help-search{
  background:#111c2e!important;
  border-color:var(--dark-border)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .context-help-search .ui-icon{color:#dbe7f7!important}
html[data-theme="dark"] .context-help-links>a,
html[data-theme="dark"] .context-help-quick-grid>a{
  background:#1a2941!important;
  color:var(--dark-text-2)!important;
  border-color:var(--dark-border)!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .context-help-links>a:hover,
html[data-theme="dark"] .context-help-links>a:focus-visible,
html[data-theme="dark"] .context-help-quick-grid>a:hover,
html[data-theme="dark"] .context-help-quick-grid>a:focus-visible{
  background:#233552!important;
  color:#fff!important;
  border-color:var(--dark-border-strong)!important;
  transform:none!important;
}
html[data-theme="dark"] .context-help-link-icon,
html[data-theme="dark"] .context-help-quick-grid>a>span{
  background:#243652!important;
  color:#eaf1ff!important;
  border:1px solid #405575!important;
}
html[data-theme="dark"] .context-help-arrow{color:#9db0c9!important}
html[data-theme="dark"] .context-help-empty{background:#1a2941!important;color:var(--dark-muted)!important}
html[data-theme="dark"] .context-help-footer .button.secondary{
  background:#17243a!important;color:#f4f7fb!important;border-color:#405575!important
}
html[data-theme="dark"] .context-help-footer .button.secondary:hover{background:#233552!important}

@media(max-width:760px){
  .context-help-center{height:min(88vh,780px)!important}
  .context-help-header{padding:14px 16px 13px!important}
  .context-help-header>div{min-width:0}
  .context-help-header h2{font-size:1.08rem!important;line-height:1.25}
  .context-help-header p{font-size:.82rem!important;line-height:1.4}
  .context-help-search{margin:10px 16px 6px!important}
  .context-help-body{padding:4px 16px 16px!important}
  .context-help-quick-grid{grid-template-columns:1fr!important}
  .context-help-quick-grid>a{display:grid;grid-template-columns:42px minmax(0,1fr);column-gap:12px;align-items:center;padding:12px!important}
  .context-help-quick-grid>a>span{grid-row:1/3;margin:0!important;width:40px!important;height:40px!important}
  .context-help-quick-grid>a strong,.context-help-quick-grid>a small{grid-column:2}

  .loan-wizard{width:100%;max-width:100%;overflow:hidden}
  .loan-wizard .wizard-progress{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:5px!important;
    padding:6px!important;
    overflow:visible!important;
    width:100%!important;
    box-sizing:border-box;
  }
  .loan-wizard .wizard-progress>*{
    min-width:0!important;
    width:100%!important;
    padding:8px 3px!important;
    min-height:44px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:4px!important;
    overflow:hidden;
  }
  .loan-wizard .wizard-dot span{
    flex:0 0 22px!important;
    width:22px!important;
    height:22px!important;
    min-width:22px!important;
    display:grid!important;
    place-items:center!important;
    border-radius:7px!important;
    font-size:.72rem!important;
  }
  .loan-wizard .wizard-dot b{
    min-width:0!important;
    font-size:.72rem!important;
    line-height:1.1!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .loan-wizard .wizard-panel{padding:16px!important}
  .loan-wizard .step-heading{display:grid!important;grid-template-columns:44px minmax(0,1fr)!important;gap:12px!important;align-items:start!important;margin-bottom:18px!important}
  .loan-wizard .step-heading h2{font-size:1.12rem!important;line-height:1.25!important;margin:2px 0 4px!important}
  .loan-wizard .step-heading p{font-size:.88rem!important;line-height:1.45!important;margin:0!important}
  .loan-wizard .customer-search-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    gap:10px!important;
    width:100%!important;
    max-width:100%!important;
  }
  .loan-wizard .customer-search-row label,
  .loan-wizard .customer-search-row input,
  .loan-wizard .customer-search-row .button{width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
  .loan-wizard .customer-search-row .button{height:44px!important}
  .loan-wizard .inline-empty-action{align-items:stretch!important;flex-direction:column!important;gap:10px!important}
  .loan-wizard .inline-empty-action .button{width:100%!important;justify-content:center!important}
}

@media(max-width:390px){
  .loan-wizard .wizard-progress{gap:3px!important;padding:5px!important}
  .loan-wizard .wizard-progress>*{padding:7px 2px!important;gap:3px!important}
  .loan-wizard .wizard-dot span{display:none!important}
  .loan-wizard .wizard-dot b{font-size:.69rem!important;text-overflow:clip!important}
  .loan-wizard .wizard-panel{padding:14px!important}
}

/* Build 15.7.6 - system-wide dark-mode consolidation and alignment pass */
html[data-theme="dark"]{
  --dark-muted:var(--dark-text-3);
  --surface:var(--dark-surface);
  --surface-soft:var(--dark-surface-2);
  --border:var(--dark-border);
}

/* Eliminate remaining light-theme container leaks. */
html[data-theme="dark"] .filter-collapsible-body,
html[data-theme="dark"] .report-filter-body,
html[data-theme="dark"] .filter-panel form,
html[data-theme="dark"] .filter-grid,
html[data-theme="dark"] .report-filter-grid,
html[data-theme="dark"] .staff-directory-search,
html[data-theme="dark"] .staff-directory-toolbar,
html[data-theme="dark"] .staff-directory-results,
html[data-theme="dark"] .loan-products-manager,
html[data-theme="dark"] .loan-product-facts,
html[data-theme="dark"] .loan-product-facts>div,
html[data-theme="dark"] .help-menu,
html[data-theme="dark"] .guide-sections article,
html[data-theme="dark"] .report-explorer,
html[data-theme="dark"] .report-explorer-search,
html[data-theme="dark"] .report-explorer-shortcuts,
html[data-theme="dark"] .report-explorer-groups,
html[data-theme="dark"] .report-explorer-links,
html[data-theme="dark"] .report-explorer-links a,
html[data-theme="dark"] .announcement-record,
html[data-theme="dark"] .announcement-filter-panel,
html[data-theme="dark"] .announcement-filter-panel form,
html[data-theme="dark"] .announcement-empty,
html[data-theme="dark"] .capital-entry-card .section-head,
html[data-theme="dark"] .capital-entry-form,
html[data-theme="dark"] .capital-filter-toolbar,
html[data-theme="dark"] .recovery-filter-panel,
html[data-theme="dark"] .payment-filter-panel,
html[data-theme="dark"] .audit-filter-panel,
html[data-theme="dark"] .ss-performance-grid,
html[data-theme="dark"] .ss-performance-grid>div,
html[data-theme="dark"] .asset-dashboard-summary>div,
html[data-theme="dark"] .staff-ss-live,
html[data-theme="dark"] .ss-hero-status,
html[data-theme="dark"] .workspace-role-note,
html[data-theme="dark"] .ss-section-nav,
html[data-theme="dark"] .ss-overview-card,
html[data-theme="dark"] .ss-v2-date,
html[data-theme="dark"] .location-readiness,
html[data-theme="dark"] .enterprise-disclosure,
html[data-theme="dark"] .enterprise-disclosure>summary,
html[data-theme="dark"] .staff-payment-card,
html[data-theme="dark"] .notice-history-card,
html[data-theme="dark"] .notice-review-card,
html[data-theme="dark"] .notice-ack-summary,
html[data-theme="dark"] .asset-location-summary>div,
html[data-theme="dark"] .selection-card,
html[data-theme="dark"] .info-panel,
html[data-theme="dark"] .notification-tile,
html[data-theme="dark"] .payment-correction-box,
html[data-theme="dark"] .payment-record-step,
html[data-theme="dark"] .maintenance-card,
html[data-theme="dark"] .performance-card,
html[data-theme="dark"] .performance-metric,
html[data-theme="dark"] .runtime-card,
html[data-theme="dark"] .system-health-card{
  background:var(--dark-surface)!important;
  background-image:none!important;
  color:var(--dark-text)!important;
  border-color:var(--dark-border)!important;
  box-shadow:none!important;
}

/* Filter and bulk-action surfaces must remain layered dark, never white. */
html[data-theme="dark"] .filter-collapsible-body,
html[data-theme="dark"] .report-filter-body,
html[data-theme="dark"] .table-bulk-toolbar,
html[data-theme="dark"] .table-bulk-utility,
html[data-theme="dark"] .staff-bulk-toolbar{
  background:var(--dark-surface-2)!important;
  color:var(--dark-text-2)!important;
  border-color:var(--dark-border)!important;
}
html[data-theme="dark"] .table-bulk-status-copy strong{color:var(--dark-text)!important}
html[data-theme="dark"] .table-bulk-status-copy small{color:var(--dark-text-3)!important}
html[data-theme="dark"] .table-bulk-page-check,
html[data-theme="dark"] .table-bulk-status-icon{
  background:#21314a!important;color:#dbe7f7!important;border-color:#405575!important
}
html[data-theme="dark"] .is-bulk-selected>td{background:#20304a!important}

/* Workspace: all hero, navigation and performance components share the dark system. */
html[data-theme="dark"] .ss-enterprise-hero,
html[data-theme="dark"] .ss-v2-hero{
  background:linear-gradient(135deg,#17243a 0%,#1a2941 58%,#17243a 100%)!important;
  border-color:var(--dark-border)!important;
  color:var(--dark-text)!important;
}
html[data-theme="dark"] .ss-enterprise-hero h2,
html[data-theme="dark"] .ss-v2-hero h2,
html[data-theme="dark"] .ss-hero-status strong,
html[data-theme="dark"] .ss-overview-card strong,
html[data-theme="dark"] .ss-v2-section-head h2,
html[data-theme="dark"] .ss-quick-actions-head>div>strong,
html[data-theme="dark"] .ss-inline-empty strong{color:var(--dark-text)!important}
html[data-theme="dark"] .ss-enterprise-hero p,
html[data-theme="dark"] .ss-hero-meta,
html[data-theme="dark"] .ss-hero-status span,
html[data-theme="dark"] .ss-hero-status small,
html[data-theme="dark"] .ss-v2-section-head p,
html[data-theme="dark"] .ss-overview-card small,
html[data-theme="dark"] .ss-overview-card>div>span,
html[data-theme="dark"] .ss-performance-grid small,
html[data-theme="dark"] .ss-performance-grid span{color:var(--dark-text-3)!important}
html[data-theme="dark"] .ss-section-nav a{color:var(--dark-text-2)!important}
html[data-theme="dark"] .ss-section-nav a:hover,
html[data-theme="dark"] .ss-section-nav a:focus,
html[data-theme="dark"] .ss-section-nav a:first-child{
  background:#243652!important;color:#fff!important
}
html[data-theme="dark"] .ss-performance-grid{gap:1px!important;background:var(--dark-border)!important}
html[data-theme="dark"] .ss-performance-grid>div{background:#1a2941!important;border-color:var(--dark-border)!important}
html[data-theme="dark"] .ss-performance-grid strong{color:#fff!important}

/* Dashboard and asset KPI cards. */
html[data-theme="dark"] .dashboard-kpi,
html[data-theme="dark"] .asset-dashboard-summary>div{
  background:#17243a!important;border-color:#344760!important;color:var(--dark-text)!important
}
html[data-theme="dark"] .dashboard-kpi span,
html[data-theme="dark"] .dashboard-kpi small,
html[data-theme="dark"] .asset-dashboard-summary span{color:var(--dark-text-3)!important}
html[data-theme="dark"] .dashboard-kpi strong,
html[data-theme="dark"] .asset-dashboard-summary strong{color:#fff!important}

/* Loan-product settings: facts and tags must not resemble light cards. */
html[data-theme="dark"] .loan-product-summary-card{background:#17243a!important;border-color:#344760!important}
html[data-theme="dark"] .loan-product-summary-icon{background:#243652!important;color:#e7edf7!important;border-color:#405575!important}
html[data-theme="dark"] .loan-product-facts{background:transparent!important}
html[data-theme="dark"] .loan-product-facts>div{
  background:#1d2b43!important;border:1px solid #344760!important;border-radius:10px!important
}
html[data-theme="dark"] .loan-product-facts dt{color:#9fb0c7!important}
html[data-theme="dark"] .loan-product-facts dd{color:#f8fafc!important}
html[data-theme="dark"] .loan-product-tags span{background:#1d2b43!important;color:#cbd5e1!important;border-color:#405575!important}

/* Help/manual readability. */
html[data-theme="dark"] .help-menu a{color:var(--dark-text-2)!important}
html[data-theme="dark"] .help-menu a:hover{background:#21314a!important;color:#fff!important}
html[data-theme="dark"] .help-menu a.active{background:#263956!important;color:#fff!important;border-color:#607696!important}
html[data-theme="dark"] .help-menu a.active small,
html[data-theme="dark"] .help-menu small{color:#aebbd0!important}
html[data-theme="dark"] .guide-sections article{background:#1a2941!important}
html[data-theme="dark"] .guide-sections h3{color:#fff!important}
html[data-theme="dark"] .guide-sections p{color:#c3cfdf!important}
html[data-theme="dark"] .tip-box{background:#18304a!important;border-color:#36587b!important;color:#dbeafe!important}
html[data-theme="dark"] .tip-box p{color:#b9c9dc!important}

/* Reports explorer: remove white list/search/active surfaces. */
html[data-theme="dark"] .report-explorer-search{background:#17243a!important;border-color:#344760!important}
html[data-theme="dark"] .report-explorer-shortcuts{background:#17243a!important;border-color:#344760!important}
html[data-theme="dark"] .report-explorer-chip{background:transparent!important;color:#cbd5e1!important}
html[data-theme="dark"] .report-explorer-chip.active{background:#2a3c59!important;color:#fff!important;box-shadow:none!important}
html[data-theme="dark"] .report-explorer-group{background:transparent!important;border-color:#2f4058!important}
html[data-theme="dark"] .report-explorer-group.active{background:#1a2941!important;border-color:#405575!important}
html[data-theme="dark"] .report-explorer-group.active .report-explorer-group-toggle,
html[data-theme="dark"] .report-explorer-group-toggle:hover{background:#21314a!important;color:#fff!important}
html[data-theme="dark"] .report-explorer-links a{background:transparent!important;color:#cbd5e1!important}
html[data-theme="dark"] .report-explorer-links a:hover,
html[data-theme="dark"] .report-explorer-links a.active{background:#263956!important;color:#fff!important}

/* Alerts and notices: preserve semantic meaning without light-mode panels. */
html[data-theme="dark"] .alert.warning,
html[data-theme="dark"] .warning-banner,
html[data-theme="dark"] .legacy-client-notice{
  background:#3a2b14!important;color:#f8d78a!important;border-color:#6e5124!important
}
html[data-theme="dark"] .alert.success{background:#153426!important;color:#a7f3d0!important;border-color:#2d6a4f!important}
html[data-theme="dark"] .alert.danger{background:#3c1f27!important;color:#fecdd3!important;border-color:#7f3540!important}

/* M-PESA/test/footer and miscellaneous utility strips. */
html[data-theme="dark"] .settings-test-panel,
html[data-theme="dark"] .connection-test-panel,
html[data-theme="dark"] .mpesa-test-panel,
html[data-theme="dark"] .comm-test-drawer,
html[data-theme="dark"] .settings-editor-footer{
  background:#17243a!important;color:var(--dark-text-2)!important;border-color:var(--dark-border)!important
}

/* Ensure hover/focus never flips dark components back to white. */
html[data-theme="dark"] .panel a:hover,
html[data-theme="dark"] .card a:hover,
html[data-theme="dark"] .loan-product-summary-card a:hover,
html[data-theme="dark"] .table-bulk-toolbar button:hover,
html[data-theme="dark"] .filter-collapsible-body button:hover{
  box-shadow:none!important
}
html[data-theme="dark"] .button.secondary:hover,
html[data-theme="dark"] button.secondary:hover,
html[data-theme="dark"] .btn-secondary:hover{
  background:#2a3b56!important;color:#fff!important;border-color:#536b8d!important
}

/* Desktop spacing/alignment cleanup revealed after dark surfaces were corrected. */
@media(min-width:901px){
  .filter-collapsible-body{padding:16px 18px 18px!important}
  .filter-grid,.report-filter-grid{align-items:end!important}
  .filter-actions,.collection-filter-actions,.followup-filter-actions{justify-content:flex-end!important;align-items:center!important}
  .table-bulk-toolbar{min-height:54px!important;padding:9px 12px!important}
  .loan-products-card-grid{gap:16px!important}
  .loan-product-summary-card{padding:20px!important}
  .help-layout{gap:18px!important}
}


/* Build 15.7.7 - staff security, exit archive, settings icon and communication typography */
.comm-settings-v3 .comm-settings-header.compact p,
.comm-settings-v3 .comm-pane-head.compact p,
.comm-settings-v3 .comm-card-head small,
.comm-settings-v3 .comm-card-note,
.comm-settings-v3 .comm-test-grid small,
.comm-settings-v3 .comm-settings-save span{font-size:13px!important;line-height:1.45!important}
.comm-settings-v3 .comm-card-head strong{font-size:14px!important}
.comm-settings-v3 .compact-grid label,
.comm-settings-v3 .comm-lifecycle-switches label{font-size:13px!important;line-height:1.35!important}
.comm-settings-v3 .compact-grid input,
.comm-settings-v3 .compact-grid select,
.comm-settings-v3 .compact-grid textarea{font-size:14px!important;min-height:40px!important}
.comm-settings-v3 .comm-settings-tabs button{font-size:13px!important;min-height:36px!important}
.comm-settings-v3 .detail-toggle{font-size:12px!important}
.staff-password-reset-card{margin-top:18px}.staff-reset-form{align-items:end}.staff-password-reset-card .section-heading p{max-width:760px}
html[data-theme="dark"] .settings-asset-tile,
html[data-theme="dark"] .staff-add-drawer,
html[data-theme="dark"] .staff-search-bar{background:#18243a!important;background-image:none!important;border-color:#34445f!important;color:#edf3fb!important}
html[data-theme="dark"] .settings-asset-tile .settings-asset-copy strong,
html[data-theme="dark"] .settings-asset-tile .settings-asset-copy small,
html[data-theme="dark"] .staff-add-drawer label,
html[data-theme="dark"] .staff-add-drawer small{color:#d7e1ef!important}
html[data-theme="dark"] .settings-asset-tile input[type="file"],
html[data-theme="dark"] .staff-add-drawer input,
html[data-theme="dark"] .staff-add-drawer select{background:#111d31!important;color:#eef4fc!important;border-color:#40516c!important}
@media(max-width:700px){.comm-settings-v3 .comm-settings-header.compact p,.comm-settings-v3 .comm-pane-head.compact p,.comm-settings-v3 .comm-card-head small,.comm-settings-v3 .comm-card-note,.comm-settings-v3 .comm-test-grid small{font-size:12px!important}.comm-settings-v3 .compact-grid label,.comm-settings-v3 .comm-lifecycle-switches label{font-size:12px!important}.comm-settings-v3 .compact-grid input,.comm-settings-v3 .compact-grid select,.comm-settings-v3 .compact-grid textarea{font-size:14px!important}.comm-settings-v3 .comm-settings-tabs button{font-size:12px!important}}


/* Build 15.7.8 - final dark-mode, expandable controls, badges, pagination and password visibility audit */
:root{--control-radius:10px}
.password-field{position:relative;width:100%}.password-field>input{padding-right:48px!important}.password-toggle{position:absolute!important;right:5px!important;top:50%!important;transform:translateY(-50%)!important;width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;padding:0!important;border-radius:9px!important;display:grid!important;place-items:center!important}.password-toggle svg{width:19px!important;height:19px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}
.notification-badge{width:19px!important;min-width:19px!important;height:19px!important;min-height:19px!important;padding:0!important;border-radius:50%!important;display:grid!important;place-items:center!important;line-height:1!important}
@media(max-width:900px){header.workspace-bar .notification-badge,header.workspace-bar .mobile-top-actions .notification-badge{width:16px!important;min-width:16px!important;height:16px!important;min-height:16px!important;padding:0!important;border-radius:50%!important;line-height:1!important}}
.report-favorite-toggle,.report-explorer-group-toggle b,.report-explorer-count,.report-count-badge{aspect-ratio:1/1!important;flex:0 0 auto!important;border-radius:50%!important;display:grid!important;place-items:center!important;padding:0!important;line-height:1!important}
.report-favorite-toggle{width:30px!important;height:30px!important;min-width:30px!important}.report-explorer-group-toggle b{width:28px!important;height:28px!important;min-width:28px!important}
.auto-table-pagination{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:10px 0 18px}.auto-table-pagination .pagination-link{width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border-radius:9px}.auto-table-pagination .pagination-link:disabled{opacity:.45;cursor:not-allowed}.auto-table-pagination .pagination-summary{font-size:12px;color:var(--muted)}

/* Expand/collapse controls use one compact system treatment. */
.filter-collapsible-toggle,.enterprise-disclosure>summary,.comm-config-details>summary,.comm-test-drawer>summary,.settings-disclosure>summary,details.panel>summary{min-height:48px!important;align-items:center!important;gap:10px!important}
.filter-collapsible-toggle:hover,.enterprise-disclosure>summary:hover,.comm-config-details>summary:hover,.comm-test-drawer>summary:hover,.settings-disclosure>summary:hover{transform:none!important;box-shadow:none!important}

/* Dark mode is token-driven: no nested light panels inside authenticated screens. */
html[data-theme="dark"]{--surface:#0d1728;--surface-soft:#121f33;--ink:#f3f6fb;--muted:#a8b5c8;--line:#344760;--ui-border:#344760;--text:#f3f6fb}
html[data-theme="dark"] body,html[data-theme="dark"] .workspace,html[data-theme="dark"] .page-shell{background:#0b1423!important;color:#eef3fa!important}
html[data-theme="dark"] .panel,
html[data-theme="dark"] .card,
html[data-theme="dark"] .subpanel,
html[data-theme="dark"] .filter-collapsible,
html[data-theme="dark"] .filter-collapsible-body,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .announcement-filter-panel,
html[data-theme="dark"] .announcement-empty-state,
html[data-theme="dark"] .staff-search-bar,
html[data-theme="dark"] .staff-add-drawer,
html[data-theme="dark"] .table-bulk-toolbar,
html[data-theme="dark"] .data-table-toolbar,
html[data-theme="dark"] .table-selection-summary,
html[data-theme="dark"] .settings-asset-tile,
html[data-theme="dark"] .settings-test-panel,
html[data-theme="dark"] .connection-test-panel,
html[data-theme="dark"] .mpesa-test-panel,
html[data-theme="dark"] .comm-test-drawer,
html[data-theme="dark"] .report-explorer,
html[data-theme="dark"] .report-explorer-search,
html[data-theme="dark"] .report-explorer-shortcuts,
html[data-theme="dark"] .report-explorer-groups,
html[data-theme="dark"] .report-explorer-links,
html[data-theme="dark"] .report-filter-panel,
html[data-theme="dark"] .report-filter-body,
html[data-theme="dark"] .ss-performance-grid,
html[data-theme="dark"] .ss-overview-card,
html[data-theme="dark"] .profile-summary-card,
html[data-theme="dark"] .onboarding-panel,
html[data-theme="dark"] .announcement-strip article,
html[data-theme="dark"] .cards article,
html[data-theme="dark"] .mini-stat,
html[data-theme="dark"] .risk-bars>div{
  background:#142238!important;background-image:none!important;color:#eaf0f8!important;border-color:#344760!important;box-shadow:none!important
}
html[data-theme="dark"] .filter-collapsible-body>form,
html[data-theme="dark"] .announcement-filter-panel form,
html[data-theme="dark"] form.filter-grid,
html[data-theme="dark"] form.report-filter-grid{background:transparent!important}
html[data-theme="dark"] .table-wrap,html[data-theme="dark"] .table-scroll,html[data-theme="dark"] table{background:#142238!important;color:#eaf0f8!important;border-color:#344760!important}
html[data-theme="dark"] thead,html[data-theme="dark"] thead tr,html[data-theme="dark"] th{background:#111b2c!important;color:#dce5f2!important;border-color:#344760!important}
html[data-theme="dark"] tbody tr,html[data-theme="dark"] td{background:#17263d!important;color:#dbe4f1!important;border-color:#2f4058!important}
html[data-theme="dark"] tbody tr:nth-child(even) td{background:#192a43!important}
html[data-theme="dark"] tbody tr:hover td,html[data-theme="dark"] .clickable-row:hover td{background:#223552!important;color:#fff!important}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{background:#101c2f!important;color:#eef4fc!important;border-color:#405575!important;box-shadow:none!important}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#8494aa!important;opacity:1!important}
html[data-theme="dark"] input:focus,html[data-theme="dark"] select:focus,html[data-theme="dark"] textarea:focus{background:#132139!important;border-color:#7088ff!important;box-shadow:0 0 0 3px rgba(112,136,255,.16)!important}
html[data-theme="dark"] label,html[data-theme="dark"] .form-label,html[data-theme="dark"] legend{color:#dce5f2!important}
html[data-theme="dark"] small,html[data-theme="dark"] .muted{color:#9fb0c7!important}
html[data-theme="dark"] .table-bulk-status-copy strong,html[data-theme="dark"] .table-selection-title{color:#eef4fc!important}
html[data-theme="dark"] .table-bulk-status-copy small,html[data-theme="dark"] .table-selection-note{color:#9fb0c7!important}
html[data-theme="dark"] .table-bulk-page-check,html[data-theme="dark"] .table-selection-cell input{background:#1c2d47!important;border-color:#4b607e!important}
html[data-theme="dark"] .tabs a,html[data-theme="dark"] .report-personal-tab,html[data-theme="dark"] .loan-product-tags span{background:#1a2941!important;color:#d6dfec!important;border-color:#405575!important}
html[data-theme="dark"] .tabs a:hover,html[data-theme="dark"] .tabs a.active,html[data-theme="dark"] .report-personal-tab:hover,html[data-theme="dark"] .report-personal-tab.active{background:#2b3f61!important;color:#fff!important;border-color:#607696!important}
html[data-theme="dark"] .report-favorite-toggle{background:#1c2b43!important;color:#b9c6d8!important;border:1px solid #405575!important}
html[data-theme="dark"] .report-favorite-toggle:hover{background:#263956!important;color:#fff!important}
html[data-theme="dark"] .report-favorite-toggle.active{background:#3b3216!important;color:#f5c84b!important;border-color:#6f5a20!important}
html[data-theme="dark"] .filter-collapsible-toggle,html[data-theme="dark"] .enterprise-disclosure>summary,html[data-theme="dark"] .comm-config-details>summary,html[data-theme="dark"] .comm-test-drawer>summary,html[data-theme="dark"] .settings-disclosure>summary{background:#1a2941!important;color:#eef4fc!important;border-color:#405575!important}
html[data-theme="dark"] .filter-collapsible-toggle:hover,html[data-theme="dark"] .enterprise-disclosure>summary:hover,html[data-theme="dark"] .comm-config-details>summary:hover,html[data-theme="dark"] .comm-test-drawer>summary:hover,html[data-theme="dark"] .settings-disclosure>summary:hover{background:#233552!important;color:#fff!important}
html[data-theme="dark"] .password-toggle{background:#1d2d47!important;color:#dce6f4!important;border:1px solid #405575!important}
html[data-theme="dark"] .password-toggle:hover,html[data-theme="dark"] .password-toggle.is-visible{background:#2a3f61!important;color:#fff!important}
html[data-theme="dark"] .announcement-empty-state,html[data-theme="dark"] .empty-state,html[data-theme="dark"] .empty-cell{background:#17263d!important;color:#dbe4f1!important}
html[data-theme="dark"] .settings-asset-tile,html[data-theme="dark"] .loan-product-facts>div,html[data-theme="dark"] .asset-dashboard-summary>div,html[data-theme="dark"] .dashboard-kpi{background:#1a2941!important;color:#eef4fc!important;border-color:#405575!important}
html[data-theme="dark"] .settings-asset-tile strong,html[data-theme="dark"] .loan-product-facts dd,html[data-theme="dark"] .asset-dashboard-summary strong,html[data-theme="dark"] .dashboard-kpi strong{color:#fff!important}
html[data-theme="dark"] .settings-asset-tile small,html[data-theme="dark"] .loan-product-facts dt,html[data-theme="dark"] .asset-dashboard-summary span,html[data-theme="dark"] .dashboard-kpi span{color:#a9b7ca!important}
html[data-theme="dark"] .auto-table-pagination .pagination-link{background:#1a2941!important;color:#eaf0f8!important;border:1px solid #405575!important}
html[data-theme="dark"] .auto-table-pagination .pagination-link:hover:not(:disabled){background:#263956!important}
html[data-theme="dark"] .auto-table-pagination .pagination-summary{color:#9fb0c7!important}

/* Remove late desktop overrides that made nested filter and report surfaces white. */
@media(min-width:901px){
 html[data-theme="dark"] .filter-collapsible-body,html[data-theme="dark"] .announcement-filter-panel,html[data-theme="dark"] .report-explorer-search,html[data-theme="dark"] .report-explorer-shortcuts,html[data-theme="dark"] .report-explorer-group.active,html[data-theme="dark"] .report-explorer-chip.active{background:#17263d!important;color:#eaf0f8!important;border-color:#405575!important}
 html[data-theme="dark"] .report-explorer-links a.active{background:#263956!important;color:#fff!important}
}

/* Build 15.7.9 - In-App Manual dark-mode readability and help layout correction */
html[data-theme="dark"] .help-search-panel,
html[data-theme="dark"] .help-menu,
html[data-theme="dark"] .help-article{
  background:#142238!important;
  color:#eaf0f8!important;
  border-color:#344760!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .help-search-panel h1,
html[data-theme="dark"] .help-search-panel h2,
html[data-theme="dark"] .help-article-head h1,
html[data-theme="dark"] .help-article-head h2,
html[data-theme="dark"] .help-article-head h3{
  color:#f8fafc!important;
}
html[data-theme="dark"] .help-article-head{
  border-color:#344760!important;
}
html[data-theme="dark"] .help-article-head p,
html[data-theme="dark"] .help-search-panel p{
  color:#b8c5d6!important;
  opacity:1!important;
}
html[data-theme="dark"] .help-menu a{
  background:transparent!important;
  color:#dce5f2!important;
  border-color:transparent!important;
  opacity:1!important;
}
html[data-theme="dark"] .help-menu a strong{
  color:#eef4fc!important;
  opacity:1!important;
}
html[data-theme="dark"] .help-menu a small{
  color:#aebbd0!important;
  opacity:1!important;
}
html[data-theme="dark"] .help-menu a:hover,
html[data-theme="dark"] .help-menu a:focus-visible{
  background:#1d2f4a!important;
  color:#fff!important;
  border-color:#405575!important;
}
html[data-theme="dark"] .help-menu a.active{
  background:#263956!important;
  color:#fff!important;
  border-color:#607696!important;
  box-shadow:inset 3px 0 0 #818cf8!important;
}
html[data-theme="dark"] .help-menu a.active strong{color:#fff!important}
html[data-theme="dark"] .help-menu a.active small{color:#c2cede!important}
html[data-theme="dark"] .guide-card,
html[data-theme="dark"] .guide-sections article{
  background:#1a2941!important;
  color:#dce5f2!important;
  border-color:#405575!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .guide-card:hover,
html[data-theme="dark"] .guide-sections article:hover{
  background:#1d2d47!important;
  color:#eef4fc!important;
  border-color:#4f6483!important;
}
html[data-theme="dark"] .guide-card-heading h3,
html[data-theme="dark"] .guide-card h3,
html[data-theme="dark"] .guide-card strong{
  color:#f8fafc!important;
  opacity:1!important;
}
html[data-theme="dark"] .guide-card-heading>span{
  background:#243652!important;
  color:#c7d2fe!important;
  border-color:#52698b!important;
}
html[data-theme="dark"] .guide-card p,
html[data-theme="dark"] .guide-card ol,
html[data-theme="dark"] .guide-card ul,
html[data-theme="dark"] .guide-card li,
html[data-theme="dark"] .detailed-guide p,
html[data-theme="dark"] .detailed-guide ol,
html[data-theme="dark"] .detailed-guide ul,
html[data-theme="dark"] .detailed-guide li{
  color:#cbd5e1!important;
  opacity:1!important;
}
html[data-theme="dark"] .guide-card li::marker{
  color:#8ea0b8!important;
}
html[data-theme="dark"] .guide-result{
  background:#143326!important;
  color:#b7f7cf!important;
  border-color:#2f6a4b!important;
}
html[data-theme="dark"] .guide-result strong,
html[data-theme="dark"] .guide-result span{color:#c9f8d9!important;opacity:1!important}
html[data-theme="dark"] .guide-note{
  background:#172b45!important;
  color:#c9ddf7!important;
  border-color:#365b83!important;
}
html[data-theme="dark"] .guide-note strong,
html[data-theme="dark"] .guide-note span{color:#d8e8fb!important;opacity:1!important}
html[data-theme="dark"] .guide-warning{
  background:#342817!important;
  color:#f8dca3!important;
  border-color:#70572a!important;
}
html[data-theme="dark"] .guide-warning strong,
html[data-theme="dark"] .guide-warning span{color:#fde7ba!important;opacity:1!important}
html[data-theme="dark"] .tip-box{
  background:#172b45!important;
  color:#dcecff!important;
  border-color:#365b83!important;
}
html[data-theme="dark"] .tip-box strong{color:#f5f9ff!important}
html[data-theme="dark"] .tip-box p{color:#bfd0e4!important;opacity:1!important}
html[data-theme="dark"] .help-menu::-webkit-scrollbar,
html[data-theme="dark"] .help-article::-webkit-scrollbar{width:10px;height:10px}
html[data-theme="dark"] .help-menu::-webkit-scrollbar-track,
html[data-theme="dark"] .help-article::-webkit-scrollbar-track{background:#101b2d}
html[data-theme="dark"] .help-menu::-webkit-scrollbar-thumb,
html[data-theme="dark"] .help-article::-webkit-scrollbar-thumb{background:#53657d;border-radius:999px;border:2px solid #101b2d}
@media(max-width:900px){
  .help-layout{gap:14px!important}
  .help-menu{position:static!important;max-height:none!important}
}

/* Build 15.8.0 - mobile dashboard spacing, hero actions and bottom-navigation dark-mode finalisation */
@media(max-width:700px){
  /* Keep the dashboard attached to the compact workspace bar. The previous cascade left a large dead band above the hero. */
  main.container.dashboard-container{padding-top:0!important;margin-top:0!important}
  .dashboard-container>.dashboard-hero.welcome-card{margin-top:0!important;padding-top:20px!important}
  .dashboard-hero.welcome-card .quick-actions{display:flex!important;align-items:center!important;gap:8px!important}
  .dashboard-hero.welcome-card .quick-actions .button{min-height:40px!important;padding:9px 14px!important;border-radius:10px!important;font-size:12px!important;line-height:1.2!important}
  .mobile-bottom-nav{background:#fff!important;border-top:1px solid #d9e2ee!important;box-shadow:0 -8px 24px rgba(15,23,42,.10)!important}
  .mobile-bottom-nav-item{background:transparent!important;border:0!important;border-radius:12px!important;color:#53627a!important}
  .mobile-bottom-nav-item .ui-icon{background:transparent!important;border:0!important;box-shadow:none!important;color:inherit!important}
  .mobile-bottom-nav-item.active{background:transparent!important;color:#4f46e5!important}
  .mobile-bottom-nav-item.active .ui-icon{background:#e9e7ff!important;color:#4f46e5!important;border:1px solid #7770f4!important;box-shadow:none!important}
  .mobile-quick-actions>summary{border-radius:50%!important}
  html[data-theme="dark"] .mobile-bottom-nav{background:#111b2d!important;border-top-color:#31415b!important;box-shadow:0 -8px 24px rgba(0,0,0,.28)!important}
  html[data-theme="dark"] .mobile-bottom-nav-item{background:transparent!important;color:#c5d0df!important;border-color:transparent!important}
  html[data-theme="dark"] .mobile-bottom-nav-item:hover{background:#18263b!important;color:#f8fafc!important}
  html[data-theme="dark"] .mobile-bottom-nav-item .ui-icon{background:transparent!important;color:#d9e2ef!important;border-color:transparent!important;box-shadow:none!important}
  html[data-theme="dark"] .mobile-bottom-nav-item.active{background:transparent!important;color:#b8b5ff!important;border-color:transparent!important}
  html[data-theme="dark"] .mobile-bottom-nav-item.active .ui-icon{background:#4f46e5!important;color:#fff!important;border:1px solid #7770f4!important;box-shadow:0 5px 14px rgba(79,70,229,.28)!important}
  html[data-theme="dark"] .mobile-quick-actions>summary{background:linear-gradient(135deg,#5b55e8,#6965f0)!important;color:#fff!important;border:2px solid #8d8aff!important;box-shadow:0 7px 18px rgba(79,70,229,.38)!important}
  html[data-theme="dark"] .dashboard-hero.welcome-card .button{background:#4f46e5!important;color:#fff!important;border:1px solid #7770f4!important;box-shadow:none!important}
  html[data-theme="dark"] .dashboard-hero.welcome-card .button:hover{background:#5b55e8!important;border-color:#8d8aff!important}
  html[data-theme="dark"] .dashboard-hero.welcome-card .button.secondary{background:#1d2b42!important;color:#f8fafc!important;border:1px solid #50617a!important}
  html[data-theme="dark"] .dashboard-hero.welcome-card .button.secondary:hover{background:#263750!important;border-color:#667a99!important}
}


/* Build 15.8.1 - precision UI pass: true circles, search shells, appearance, account chip, filters and table tooling */
*{box-sizing:border-box}

/* All badge controls that visually represent a single count/action must remain mathematically circular. */
.notification-badge,
.report-favorite-toggle,
.report-explorer-group-toggle>b,
.report-explorer-count,
.report-count-badge{
  box-sizing:border-box!important;
  padding:0!important;
  margin:0!important;
  aspect-ratio:1/1!important;
  border-radius:50%!important;
  display:inline-grid!important;
  place-items:center!important;
  line-height:1!important;
  flex:0 0 auto!important;
}
.report-favorite-toggle{width:32px!important;min-width:32px!important;max-width:32px!important;height:32px!important;min-height:32px!important;max-height:32px!important}
.report-explorer-group-toggle>b,.report-explorer-count,.report-count-badge{width:28px!important;min-width:28px!important;max-width:28px!important;height:28px!important;min-height:28px!important;max-height:28px!important}
.notification-badge{width:19px!important;min-width:19px!important;max-width:19px!important;height:19px!important;min-height:19px!important;max-height:19px!important}

/* Appearance control: one centered glyph, with Auto represented by a combined sun/moon symbol. */
.appearance-trigger,.appearance-trigger>[data-appearance-current],.appearance-trigger [data-appearance-current]>.ui-icon{
  display:grid!important;place-items:center!important;
}
.appearance-trigger>[data-appearance-current]{width:100%!important;height:100%!important;line-height:0!important}
.appearance-trigger [data-appearance-current]>.ui-icon{width:20px!important;height:20px!important;margin:0!important;padding:0!important;transform:none!important}
.appearance-trigger [data-appearance-current] svg{width:20px!important;height:20px!important;margin:0!important;display:block!important}

/* One border belongs to the search shell, never a second border around the input inside it. */
.top-search,
.report-explorer-search,
.report-library-search,
.mobile-report-search,
.context-help-search,
.staff-search-input,
.command-palette-search,
.auto-table-search{
  border:1px solid var(--ui-border,#cbd7e7)!important;
  box-shadow:none!important;
}
.top-search input,
.report-explorer-search input,
.report-library-search input,
.mobile-report-search input,
.context-help-search input,
.staff-search-input input,
.command-palette-search input,
.auto-table-search input{
  border:0!important;
  outline:0!important;
  box-shadow:none!important;
  background:transparent!important;
  margin:0!important;
}
.top-search:focus-within,
.report-explorer-search:focus-within,
.report-library-search:focus-within,
.mobile-report-search:focus-within,
.context-help-search:focus-within,
.staff-search-input:focus-within,
.command-palette-search:focus-within,
.auto-table-search:focus-within{
  border-color:#6f7df3!important;
  box-shadow:0 0 0 3px rgba(99,102,241,.14)!important;
}
html[data-theme="dark"] .top-search,
html[data-theme="dark"] .report-explorer-search,
html[data-theme="dark"] .report-library-search,
html[data-theme="dark"] .mobile-report-search,
html[data-theme="dark"] .context-help-search,
html[data-theme="dark"] .staff-search-input,
html[data-theme="dark"] .command-palette-search,
html[data-theme="dark"] .auto-table-search{background:#122038!important;border-color:#3d506d!important}
html[data-theme="dark"] .top-search input,
html[data-theme="dark"] .report-explorer-search input,
html[data-theme="dark"] .report-library-search input,
html[data-theme="dark"] .mobile-report-search input,
html[data-theme="dark"] .context-help-search input,
html[data-theme="dark"] .staff-search-input input,
html[data-theme="dark"] .command-palette-search input,
html[data-theme="dark"] .auto-table-search input{background:transparent!important;border:0!important;box-shadow:none!important}

/* Make the company mark visually occupy its tile; do not leave an unexplained inner frame. */
.brand-mark,.mobile-menu-logo{overflow:hidden!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
.brand-mark img,.mobile-menu-logo img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;display:block!important;transform:scale(1.14);transform-origin:center}

/* Desktop account control should read as an account identity, not an avatar inside another bordered input. */
@media(min-width:851px){
  header.workspace-bar .top-actions .user-chip{border:0!important;background:transparent!important;box-shadow:none!important;padding:4px 6px!important;border-radius:10px!important}
  header.workspace-bar .top-actions .user-chip:hover,header.workspace-bar .top-actions .user-chip:focus-visible{background:rgba(99,102,241,.08)!important}
  header.workspace-bar .top-actions .avatar-sm{border:0!important;box-shadow:none!important;border-radius:50%!important}
  html[data-theme="dark"] header.workspace-bar .top-actions .user-chip{border:0!important;background:transparent!important}
  html[data-theme="dark"] header.workspace-bar .top-actions .user-chip:hover{background:#1b2a42!important}
}

/* Filter icons follow the same dark control language as the rest of the shell. */
html[data-theme="dark"] .filter-collapsible-icon,
html[data-theme="dark"] .report-filter-toggle-icon{
  background:#243652!important;
  color:#c7d2fe!important;
  border:1px solid #405575!important;
  box-shadow:none!important;
}
html[data-theme="dark"] .filter-collapsible-icon svg,
html[data-theme="dark"] .report-filter-toggle-icon svg{color:inherit!important;stroke:currentColor!important}

/* Generic list-table tools for tables without purpose-built server filters. */
.auto-table-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:0 0 10px;min-width:0}
.auto-table-search{display:flex;align-items:center;gap:8px;min-width:220px;max-width:420px;flex:1 1 300px;min-height:40px;padding:0 11px;border-radius:10px;background:#fff}
.auto-table-search-icon{display:grid;place-items:center;color:#71839d;flex:0 0 18px}
.auto-table-search-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.auto-table-search input{width:100%;min-width:0;min-height:38px;padding:0!important;color:var(--ink)}
.auto-table-column{width:auto!important;min-width:150px!important;max-width:220px!important;min-height:40px!important;margin:0!important}
.auto-table-pagination{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important}
.auto-table-pagination .pagination-buttons{display:flex;align-items:center;gap:8px}.auto-table-pagination .pagination-page-label{font-size:.78rem;color:var(--muted)}
.auto-table-empty{display:grid;gap:3px;padding:18px;text-align:center;border:1px dashed #cbd7e7;border-radius:10px;background:#f8fafc;color:#33445d}.auto-table-empty[hidden]{display:none!important}.auto-table-empty span{font-size:.8rem;color:var(--muted)}
html[data-theme="dark"] .auto-table-empty{background:#142238;color:#eef4fc;border-color:#405575}html[data-theme="dark"] .auto-table-empty span{color:#9fb0c7}
html[data-theme="dark"] .auto-table-tools{color:#dce5f2!important}
html[data-theme="dark"] .auto-table-column{background:#122038!important;color:#eef4fc!important;border-color:#3d506d!important}
@media(max-width:700px){.auto-table-tools{display:grid;grid-template-columns:1fr;align-items:stretch}.auto-table-search{max-width:none;min-width:0;width:100%}.auto-table-column{max-width:none!important;width:100%!important}.auto-table-pagination{align-items:flex-start!important}.auto-table-pagination .pagination-buttons{width:100%;justify-content:flex-end}}
\n\n/* Build 15.8.2 - deterministic minute-only time controls and reliable Select Date placeholder */
.minute-time-control{display:grid;grid-template-columns:minmax(56px,1fr) auto minmax(56px,1fr);align-items:center;gap:5px;width:100%;min-width:0;color:var(--text,#17243a)}
.minute-time-control select{width:100%;min-width:0;min-height:44px;text-align:center;text-align-last:center;font-variant-numeric:tabular-nums}
.datetime-minute-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(132px,.62fr);gap:8px;width:100%;align-items:start}
.date-placeholder-wrap{position:relative;display:block;min-width:0}
.date-placeholder-wrap .date-placeholder-text{z-index:3;left:14px;font-size:.9rem;font-weight:500;color:var(--muted,#7d899a);background:transparent;max-width:calc(100% - 48px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.date-placeholder-wrap input[type=date]{z-index:1;width:100%;background:transparent}
.date-placeholder-wrap:not(.has-value):not(:focus-within) input[type=date]::-webkit-datetime-edit{color:transparent!important}
.date-placeholder-wrap:not(.has-value):not(:focus-within) input[type=date]{color:transparent!important}
@media(max-width:520px){.datetime-minute-wrap{grid-template-columns:minmax(0,1fr) minmax(132px,.72fr)}.minute-time-control select{min-height:46px}}


/* Build 15.8.3 - polished 12-hour quarter-time controls */
.minute-time-control{display:grid!important;grid-template-columns:minmax(64px,.8fr) minmax(64px,.8fr) minmax(82px,1fr)!important;align-items:center!important;gap:7px!important;width:100%!important;min-width:0!important}
.minute-time-control select{min-height:44px!important;width:100%!important;border-radius:10px!important;padding:0 28px 0 10px!important;text-align:center!important;text-align-last:center!important;font-variant-numeric:tabular-nums!important;font-weight:600!important}
.datetime-minute-wrap{display:grid!important;grid-template-columns:minmax(120px,.9fr) minmax(220px,1.35fr)!important;gap:10px!important;width:100%!important;align-items:start!important}
html[data-theme=dark] .minute-time-control select{background:#132139!important;color:#f4f7fb!important;border-color:#3d506d!important}
html[data-theme=dark] .minute-time-control select:hover{background:#172740!important;border-color:#526887!important}
html[data-theme=dark] .minute-time-control select:focus{border-color:#7c6cf6!important;box-shadow:0 0 0 3px rgba(124,108,246,.16)!important}
@media(max-width:700px){.datetime-minute-wrap{grid-template-columns:1fr!important;gap:8px!important}.minute-time-control{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* Keep schedule fields readable inside three-column forms such as Announcements. */
.form-grid-3 .datetime-minute-wrap{grid-template-columns:1fr!important}
