/* Helen & Sons HRIS — accessible two-tone brand theme, 21 November 2026.
   Light: white canvas and navy text. Dark: #182147 navy canvas and white text.
   Visual-only; does not change business logic, auth, scanner sync or records.
   Loaded after previous theme CSS; dynamic HR Operations UI is overridden by specificity.
*/
html[data-theme="light"]{
  color-scheme:light;
  --hs-ink:#182147;--hs-muted:#384265;--hs-canvas:#ffffff;--hs-card:#ffffff;
  --hs-soft:#f3f4f8;--hs-line:rgba(24,33,71,.23);
  --hs-header:#182147;--hs-sidebar:#182147;
  --hs-action:#182147;--hs-action-ink:#ffffff;
  --hs-active:#ffffff;--hs-active-ink:#182147;
  --hs-input:#ffffff;--hs-input-ink:#182147;
  --hs-shadow:0 5px 20px rgba(24,33,71,.08);
  --ink:#182147;--navy:#182147;--dark:#182147;--bg:#ffffff;--white:#ffffff;
  --line:rgba(24,33,71,.23);--border:rgba(24,33,71,.23);--muted:#384265;
  --studio-panel:#ffffff;--studio-inner:#f3f4f8;--studio-foreground:#182147;
  --studio-softtext:#384265;--studio-border:rgba(24,33,71,.23);
  --card-bg:#ffffff;--panel-bg:#ffffff;--surface:#ffffff;
  --pb-ink:#182147;--pb-muted:#384265;--pb-navy:#182147;--pb-blue:#182147;
  --pb-cyan:#182147;--pb-gold:#182147;
  --pb-card:#ffffff;--pb-shadow:var(--hs-shadow);
}
html[data-theme="dark"]{
  color-scheme:dark;
  --hs-ink:#ffffff;--hs-muted:#e2e2f0;--hs-canvas:#182147;--hs-card:#182147;
  --hs-soft:rgba(255,255,255,.09);--hs-line:rgba(255,255,255,.52);
  --hs-header:#182147;--hs-sidebar:#182147;
  --hs-action:#ffffff;--hs-action-ink:#182147;
  --hs-active:#ffffff;--hs-active-ink:#182147;
  --hs-input:#182147;--hs-input-ink:#ffffff;
  --hs-shadow:none;
  --ink:#ffffff;--navy:#182147;--dark:#182147;--bg:#182147;--white:#ffffff;
  --line:rgba(255,255,255,.52);--border:rgba(255,255,255,.52);--muted:#e2e2f0;
  --studio-panel:#182147;--studio-inner:rgba(255,255,255,.09);--studio-foreground:#ffffff;
  --studio-softtext:#e2e2f0;--studio-border:rgba(255,255,255,.52);
  --card-bg:#182147;--panel-bg:#182147;--surface:#182147;
  --pb-ink:#ffffff;--pb-muted:#e2e2f0;--pb-navy:#182147;--pb-blue:#ffffff;
  --pb-cyan:#ffffff;--pb-gold:#ffffff;
  --pb-card:#182147;--pb-shadow:none;
}
/* Canvas: remove bright blue/cyan gradients that previously overrode both modes. */
html[data-theme] , html[data-theme] body,
html[data-theme] .app-shell,html[data-theme] .workspace,
html[data-theme] .page-wrap{
  background:var(--hs-canvas)!important;background-image:none!important;
  color:var(--hs-ink)!important;
}
html[data-theme] .app-shell{--studio-panel:var(--hs-card);--studio-inner:var(--hs-soft);
  --studio-foreground:var(--hs-ink);--studio-softtext:var(--hs-muted);
  --studio-border:var(--hs-line);--studio-shadow:var(--hs-shadow);}
html[data-theme] .page:not(.hidden){color:var(--hs-ink)!important}
/* Side navigation and top header: navy and white for both modes. */
html[data-theme] .sidebar, html[data-theme] .topbar{
  background:var(--hs-sidebar)!important;background-image:none!important;
  color:#ffffff!important;border-color:var(--hs-line)!important;box-shadow:none!important;
}
html[data-theme] .topbar{background:var(--hs-header)!important;border-bottom:1px solid rgba(255,255,255,.25)!important}
html[data-theme] .sidebar .brand-wordmark,
html[data-theme] .sidebar .brand-wordmark small,
html[data-theme] .sidebar .side-group-label,
html[data-theme] .sidebar .logout-btn,
html[data-theme] .sidebar .nav-item:not(.active),
html[data-theme] .topbar .top-user :is(strong,small),
html[data-theme] .topbar .server-state,
html[data-theme] .topbar .theme-option,
html[data-theme] .topbar .notification-bell{color:#ffffff!important}
html[data-theme] .sidebar .nav-item:hover:not(.active){background:rgba(255,255,255,.15)!important;border-color:rgba(255,255,255,.35)!important}
html[data-theme] .sidebar .nav-item.active{
  background:var(--hs-active)!important;background-image:none!important;
  color:var(--hs-active-ink)!important;border:1px solid #ffffff!important;
  box-shadow:none!important;
}
html[data-theme] .sidebar .nav-count{
  background:#ffffff!important;color:var(--hs-sidebar)!important;
  border:1px solid #ffffff!important;
}
html[data-theme] .sidebar .side-hint,
html[data-theme] .topbar .server-state,
html[data-theme] .topbar .notification-bell,
html[data-theme] .topbar .theme-switch{
  background:rgba(255,255,255,.09)!important;border-color:rgba(255,255,255,.45)!important;
}
html[data-theme] .topbar .theme-option.is-selected{
  background:#ffffff!important;color:var(--hs-header)!important;box-shadow:none!important;
}
html[data-theme] .topbar .account-circle{
  background:#ffffff!important;background-image:none!important;color:var(--hs-header)!important;
}
html[data-theme] .topbar .state-dot{background:#ffffff!important}
html[data-theme] .topbar .separator{background:rgba(255,255,255,.4)!important}
html[data-theme] .premium-search-wrap .premium-search-shell{
  background:transparent!important;background-image:none!important;
  border-color:rgba(255,255,255,.62)!important;box-shadow:none!important;
}
html[data-theme] .premium-search-shell input{color:#ffffff!important;background:transparent!important}
html[data-theme] .premium-search-shell input::placeholder{color:rgba(255,255,255,.84)!important}
html[data-theme] .premium-search-shell svg{stroke:#ffffff!important}
html[data-theme] .premium-key{color:#ffffff!important;border-color:rgba(255,255,255,.5)!important}
html[data-theme] .premium-search-results{
  color:var(--hs-ink)!important;background:var(--hs-card)!important;
  border:1px solid var(--hs-line)!important;
}
html[data-theme] .premium-search-results :is(button,p){color:var(--hs-ink)!important}
html[data-theme] .premium-search-results button:hover{background:var(--hs-soft)!important}
/* Readable page headings: the screenshot previously showed navy lettering on blue. */
html[data-theme] .page-heading h1,
html[data-theme] #page-overview .page-heading h1,
html[data-theme] #page-hr-core .page-heading h1,
html[data-theme] #page-breaks .break-heading h1,
html[data-theme] .page-heading .eyebrow,
html[data-theme] #page-overview .page-heading .eyebrow,
html[data-theme] .page-heading p,
html[data-theme] #page-overview .page-heading p{
  color:var(--hs-ink)!important;text-shadow:none!important;
}
html[data-theme] .page-heading .eyebrow,
html[data-theme] #page-overview .page-heading .eyebrow{opacity:.87}
/* Main cards and summary tiles always own an explicit foreground/background pair. */
html[data-theme] .page .panel,
html[data-theme] .page .h7-main-panel,
html[data-theme] .page .h7-stat,
html[data-theme] .page .asset-stat,
html[data-theme] .page .premium-analytics-card,
html[data-theme] #page-overview .metric-grid .metric-card,
html[data-theme] #page-overview .metric-grid .metric-card:nth-child(2),
html[data-theme] #page-overview .overview-shortcut,
html[data-theme] #page-overview .premium-activity-item{
  background:var(--hs-card)!important;background-image:none!important;
  color:var(--hs-ink)!important;border:1px solid var(--hs-line)!important;
  box-shadow:var(--hs-shadow)!important;
}
html[data-theme] .page .panel :is(h2,h3,h4,strong),
html[data-theme] #page-overview .metric-grid .metric-card :is(.metric-title,strong,small),
html[data-theme] #page-overview .metric-grid .metric-card:nth-child(2) :is(.metric-title,strong,small),
html[data-theme] #page-overview .overview-shortcut :is(strong,small,.shortcut-arrow),
html[data-theme] .page .h7-stat strong,
html[data-theme] .page .h7-stat small,
html[data-theme] .page .premium-analytics-card :is(h2,h3,strong,span),
html[data-theme] .premium-activity-item :is(strong,small),
html[data-theme] .premium-activity-meta,
html[data-theme] .asset-stat :is(strong,span){
  color:var(--hs-ink)!important;
}
html[data-theme] .page .panel p,
html[data-theme] .page .panel .section-helper,
html[data-theme] .page .panel small,
html[data-theme] .page .h7-panel-header p,
html[data-theme] .page .h7-footer,
html[data-theme] .premium-analytics-card :is(p,small),
html[data-theme] .premium-data-note,
html[data-theme] .premium-activity-notice,
html[data-theme] .asset-muted,
html[data-theme] .asset-table-small,
html[data-theme] .td-note,
html[data-theme] .page .form-hint{
  color:var(--hs-muted)!important;opacity:1!important;
}
html[data-theme] .page .panel-kicker,
html[data-theme] .page .eyebrow,
html[data-theme] .page .panel-eyebrow{color:var(--hs-ink)!important}
/* HR Operations: fix blank white metrics and unreadable labels in screenshot. */
html[data-theme] #page-hr-core .hrc-stat,
html[data-theme] #page-hr-core .hrc-panel{
  background:var(--hs-card)!important;color:var(--hs-ink)!important;
  border:1px solid var(--hs-line)!important;box-shadow:var(--hs-shadow)!important;
}
html[data-theme] #page-hr-core .hrc-stat :is(small,strong),
html[data-theme] #page-hr-core .hrc-panel :is(h3,p,label,small,strong,span),
html[data-theme] #page-hr-core .hrc-table-label,
html[data-theme] #page-hr-core .hrc-note{
  color:var(--hs-ink)!important;opacity:1!important;
}
html[data-theme] #page-hr-core .hrc-stat small,
html[data-theme] #page-hr-core .hrc-note{color:var(--hs-muted)!important}
html[data-theme] #page-hr-core .hrc-alert{
  background:var(--hs-soft)!important;color:var(--hs-ink)!important;
  border-left:4px solid var(--hs-ink)!important;
}
html[data-theme] #page-hr-core .hrc-tbl,
html[data-theme] #page-hr-core .hrc-tbl td,
html[data-theme] #page-hr-core .hrc-tbl th{
  color:var(--hs-ink)!important;border-color:var(--hs-line)!important;
}
html[data-theme] #page-hr-core .hrc-tbl th{background:var(--hs-soft)!important}
/* Data tables, badges and form elements */
html[data-theme] .page :is(.table-scroll,.h7-table-viewport){border-color:var(--hs-line)!important}
html[data-theme] .page table{background:var(--hs-card)!important}
html[data-theme] .page thead,
html[data-theme] .page .h7-table-viewport thead,
html[data-theme] .page th{
  background:var(--hs-soft)!important;color:var(--hs-ink)!important;
}
html[data-theme] .page td,
html[data-theme] .page .h7-table-viewport td,
html[data-theme] .page .h7-table-viewport th,
html[data-theme] .page .h7-table-viewport small{
  color:var(--hs-ink)!important;border-color:var(--hs-line)!important;
}
html[data-theme] .page tbody tr:hover{background:var(--hs-soft)!important}
html[data-theme] .page :is(.subtle-badge,.h7-status,.h7-review,.asset-status-pill,.break-tag){
  background:var(--hs-soft)!important;color:var(--hs-ink)!important;
  border:1px solid var(--hs-line)!important;
}
html[data-theme] .page :is(input:not([type="checkbox"]),select,textarea),
html[data-theme] #page-hr-core .hrc-fields :is(input,select),
html[data-theme] #live-modal :is(input,select,textarea),
html[data-theme] .auth-form-panel input{
  background:var(--hs-input)!important;background-image:none!important;
  color:var(--hs-input-ink)!important;border:1px solid var(--hs-line)!important;
}
html[data-theme] :is(input,textarea)::placeholder{color:var(--hs-muted)!important;opacity:1!important}
html[data-theme] .page :is(label,.filters label,.asset-filter span),
html[data-theme] .stack-form label{color:var(--hs-ink)!important}
html[data-theme] :is(input,select,textarea,button,a):focus-visible{
  outline:2px solid var(--hs-ink)!important;outline-offset:2px!important;
}
/* Buttons: foreground always contrasts with the actual background. */
html[data-theme] :is(.btn-primary,.btn-success,.btn-approve),
html[data-theme] #page-breaks .break-main-button,
html[data-theme] #page-breaks .break-tab.current{
  background:var(--hs-action)!important;background-image:none!important;
  color:var(--hs-action-ink)!important;border:1px solid var(--hs-line)!important;
  box-shadow:none!important;
}
html[data-theme] :is(.btn-outline,.btn-dark,.btn-danger-outline,.table-action),
html[data-theme] #page-breaks .break-tab,
html[data-theme] #page-hr-core #hrc-reload,
html[data-theme] #page-hr-core #hrc-export{
  background:var(--hs-card)!important;background-image:none!important;
  color:var(--hs-ink)!important;border:1px solid var(--hs-line)!important;
  box-shadow:none!important;
}
html[data-theme] .page :is(.workflow-counts>div,.leave-summary-grid>div,.leave-balance-grid>div,.correction-totals>div,.punch-grid,.info-panel,.leave-help,.form-hint,.terminal-entry,.scanner-link-panel),
html[data-theme] .page .studio-utility-stack>button{
  background:var(--hs-soft)!important;background-image:none!important;
  color:var(--hs-ink)!important;border-color:var(--hs-line)!important;
}
html[data-theme] .page :is(.workflow-counts strong,.studio-utility-stack strong,.studio-utility-stack small,.scanner-link-panel strong,.scanner-link-panel span,.scanner-link-panel p,.info-panel p){
  color:var(--hs-ink)!important;
}
html[data-theme] .page .asset-type-icon,
html[data-theme] #page-overview .metric-card .card-symbol,
html[data-theme] #page-overview .overview-shortcut .shortcut-icon,
html[data-theme] .premium-activity-icon{
  background:var(--hs-soft)!important;background-image:none!important;color:var(--hs-ink)!important;
}
/* Charts/visual accents have a single theme-colored mark, never cyan/gold gradients. */
html[data-theme] .premium-bar,
html[data-theme] .premium-bar-col:last-child .premium-bar{
  background:var(--hs-ink)!important;background-image:none!important;
}
html[data-theme] .premium-bar-number,
html[data-theme] .premium-chart-heading h2,
html[data-theme] .premium-chart-heading p,
html[data-theme] .premium-legend-row,
html[data-theme] .premium-legend-row strong,
html[data-theme] .premium-coverage-legend,
html[data-theme] .premium-period,
html[data-theme] .premium-chart-days>span,
html[data-theme] .premium-donut-core :is(strong,small){
  color:var(--hs-ink)!important;
}
html[data-theme] .premium-donut{background:conic-gradient(var(--hs-ink) 0 var(--coverage),var(--hs-soft) var(--coverage) 100%)!important}
html[data-theme] .premium-donut-core,
html[data-theme] .premium-period{
  background:var(--hs-card)!important;border-color:var(--hs-line)!important;
}
html[data-theme] .premium-legend-dot,
html[data-theme] .premium-legend-row.missing .premium-legend-dot{
  background:var(--hs-ink)!important;
}
html[data-theme] .premium-legend-row.missing .premium-legend-dot{opacity:.25}
/* QR/NFC Break Management and HR change review */
html[data-theme] #page-breaks :is(.break-stat,.break-progress-shell,.break-scan-panel,.break-history,.break-admin-tools),
html[data-theme] #page-breaks :is(.break-confirm,.break-pill){
  background:var(--hs-card)!important;background-image:none!important;
  color:var(--hs-ink)!important;border:1px solid var(--hs-line)!important;
}
html[data-theme] #page-breaks :is(h2,h3,strong,small,p,.break-live-timer,.break-stat span,.break-section-head p,.break-emp-button){
  color:var(--hs-ink)!important;
}
html[data-theme] #page-breaks .break-track{background:var(--hs-soft)!important}
html[data-theme] #page-breaks .break-track span{background:var(--hs-ink)!important}
html[data-theme] #page-breaks .break-tab.current{
  background:var(--hs-action)!important;color:var(--hs-action-ink)!important;
}
/* Modal and auth: preserve contrast for light and dark, including legacy recovery screens. */
html[data-theme] #live-modal .modal,
html[data-theme] .auth-form-panel{
  background:var(--hs-card)!important;background-image:none!important;
  color:var(--hs-ink)!important;border-color:var(--hs-line)!important;
}
html[data-theme] #live-modal .modal :is(h2,h3,strong,label,p),
html[data-theme] .auth-form-panel :is(h1,h2,h3,label,p,.subheading,.auth-footer){
  color:var(--hs-ink)!important;
}
html[data-theme] .auth-layout{background:var(--hs-canvas)!important;background-image:none!important}
html[data-theme] .auth-brand{
  background:var(--hs-sidebar)!important;background-image:none!important;color:#ffffff!important;
}
html[data-theme] .auth-brand :is(h1,h2,p,span,.brand-message h1 em){color:#ffffff!important}
html[data-theme] .workspace-footer{
  background:var(--hs-header)!important;color:#ffffff!important;border-color:rgba(255,255,255,.3)!important;
}
html[data-theme] .workspace-footer :is(span,small,a){color:#ffffff!important}
html[data-theme] .toast.show{
  background:var(--hs-card)!important;color:var(--hs-ink)!important;border:1px solid var(--hs-line)!important;
}
/* Never hide content merely to satisfy a color preference. */
@media(max-width:600px){
 html[data-theme] #page-hr-core .hrc-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
 html[data-theme] .page-heading{flex-wrap:wrap}
}

/* Overview Refresh: do not let the old "white text" override disappear on white. */
html[data-theme="light"] #page-overview .page-heading button.reload-btn{
  background:#182147!important;background-image:none!important;
  color:#ffffff!important;border:1px solid #182147!important;
  font-weight:800!important;text-shadow:none!important;
  min-width:130px!important;min-height:43px!important;
}
html[data-theme="dark"] #page-overview .page-heading button.reload-btn{
  background:#ffffff!important;background-image:none!important;
  color:#182147!important;border:1px solid #ffffff!important;
  font-weight:800!important;text-shadow:none!important;
  min-width:130px!important;min-height:43px!important;
}
html[data-theme] #page-overview .page-heading button.reload-btn :is(span,svg){
  color:inherit!important;stroke:currentColor!important;
}
html[data-theme] #page-overview .page-heading button.reload-btn:hover{
  opacity:.88!important;filter:none!important;
}
html[data-theme] #page-overview .page-heading button.reload-btn:focus-visible{
  outline:3px solid var(--hs-ink)!important;outline-offset:4px!important;
}

/* Mobile/desktop parity and strict two-tone overview, 23 Nov 2026.
   The legacy premium-card ::before radial overlay caused distracting grey gradients
   on phones despite the card's two-tone background. */
html[data-theme] #page-overview .premium-analytics .premium-analytics-card::before{
  display:none!important;content:none!important;background:none!important;
}
html[data-theme] #page-overview .premium-analytics .premium-analytics-card,
html[data-theme] #page-overview .premium-activity-item{
  background:var(--hs-card)!important;background-image:none!important;
  box-shadow:var(--hs-shadow)!important;
  color:var(--hs-ink)!important;
}
html[data-theme] #page-overview .premium-chart-heading :is(h2,p),
html[data-theme] #page-overview .premium-chart-days span,
html[data-theme] #page-overview .premium-data-note,
html[data-theme] #page-overview .premium-coverage-legend :is(span,strong),
html[data-theme] #page-overview .premium-donut-core :is(strong,small),
html[data-theme] #page-overview .premium-bar-number,
html[data-theme] #page-overview .premium-period{
  color:var(--hs-ink)!important;
}
html[data-theme] #page-overview .premium-heading-icon{
  background:var(--hs-soft)!important;background-image:none!important;
  color:var(--hs-ink)!important;border:1px solid var(--hs-line)!important;
}
html[data-theme] #page-overview .premium-donut{
  background:conic-gradient(var(--hs-ink) 0 var(--coverage),
    var(--hs-soft) var(--coverage) 100%)!important;
  background-image:conic-gradient(var(--hs-ink) 0 var(--coverage),
    var(--hs-soft) var(--coverage) 100%)!important;
  box-shadow:none!important;border:1px solid var(--hs-line)!important;
}
html[data-theme] #page-overview .premium-donut-core{
  background:var(--hs-card)!important;background-image:none!important;
  border:1px solid var(--hs-line)!important;box-shadow:none!important;
}
html[data-theme] #page-overview .premium-bar{
  background:var(--hs-ink)!important;background-image:none!important;
  border:1px solid var(--hs-line)!important;
}
html[data-theme] #page-overview .premium-bar-unavailable{opacity:.28!important}
html[data-theme] #page-overview .premium-chart-heading .premium-period,
html[data-theme] #page-overview .premium-period{
  background:var(--hs-card)!important;border:1px solid var(--hs-line)!important;
}
html[data-theme] #page-overview .premium-legend-dot{
  background:var(--hs-ink)!important;
}
html[data-theme] #page-overview .premium-legend-row.missing .premium-legend-dot{
  background:var(--hs-ink)!important;opacity:.35!important;
}
html[data-theme] #page-overview .page-heading h1{
  overflow-wrap:anywhere!important;word-break:normal!important;
}
/* Theme preference is available within the same phone drawer as desktop
   navigation. It is not a separate feature set. */
html .mobile-theme-picker{display:none!important}
@media(max-width:900px){
  html .sidebar .mobile-theme-picker{
    display:block!important;margin:4px 0 13px!important;padding:13px!important;
    border:1px solid rgba(255,255,255,.48)!important;
    background:transparent!important;border-radius:14px!important;
  }
  html .mobile-theme-picker>span{
    display:block!important;color:#ffffff!important;font-size:11px!important;
    font-weight:800!important;letter-spacing:.1em!important;margin-bottom:10px!important;
  }
  html .mobile-theme-options{display:grid!important;grid-template-columns:1fr!important;gap:8px!important}
  html .mobile-theme-options button{
    display:block!important;text-align:left!important;min-height:46px!important;
    width:100%!important;padding:11px 12px!important;border-radius:10px!important;
    border:1px solid rgba(255,255,255,.68)!important;
    background:transparent!important;color:#ffffff!important;
    font-family:inherit!important;font-size:12px!important;
    font-weight:700!important;line-height:1.35!important;
  }
  html .mobile-theme-options button.is-selected,
  html .mobile-theme-options button[aria-pressed="true"]{
    background:#ffffff!important;color:var(--hs-header)!important;border-color:#ffffff!important;
  }
  html #main-sidebar{
    overflow-y:auto!important;overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;overscroll-behavior:contain!important;
    max-height:100dvh!important;
  }
  html #sidebar-nav{flex:0 0 auto!important;overflow:visible!important}
  html #main-sidebar .nav-item:not(.hidden){min-height:46px!important;white-space:normal!important}
  html #main-sidebar .sidebar-bottom{flex:0 0 auto!important}
  html .page-wrap,html .page:not(.hidden),html .panel{min-width:0!important;max-width:100%!important}
  html #page-overview .premium-analytics{grid-template-columns:minmax(0,1fr)!important}
  html #page-overview .premium-chart-heading{gap:10px!important}
  html #page-overview .premium-chart-heading .premium-period{max-width:100%!important}
  html .page :is(.table-scroll,.h7-table-viewport,.hrc-tbl,.bulk-table-wrap){
    max-width:100%!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;
    -webkit-overflow-scrolling:touch!important;
  }
  html .page :is(button,.btn,input,select,textarea){max-width:100%!important}
  html #page-hr-core .hrc-fields{grid-template-columns:minmax(0,1fr)!important}
  html #page-hr-core .hrc-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html .page .panel-title-row{flex-wrap:wrap!important}
}
@media(max-width:570px){
  html #page-overview .page-heading h1{
    font-size:clamp(23px,6.3vw,32px)!important;line-height:1.17!important;
    overflow-wrap:anywhere!important;
  }
  html #page-overview .premium-analytics-card{padding:17px 15px!important}
  html #page-overview .premium-chart-heading h2{font-size:18px!important}
  html #page-overview .premium-coverage-body{flex-wrap:wrap!important;gap:15px!important}
  html #page-overview .premium-coverage-legend{flex:1 1 160px!important;min-width:0!important}
  html #page-overview .premium-bars,
  html #page-overview .premium-chart-days{width:100%!important;min-width:0!important}
  html #page-overview .premium-chart-days>span{
    font-size:10px!important;white-space:normal!important;
  }
  html #page-overview .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  html #page-overview .metric-card{min-width:0!important}
  html #page-overview .metric-card>strong{font-size:clamp(27px,7vw,40px)!important}
  html #page-hr-core .hrc-grid{grid-template-columns:minmax(0,1fr)!important}
}


/* 2026-11-25: Requested chart-first HRIS overview.
   The two *live* scanner coverage reports occupy the top summary row;
   separate HR metric cards have been moved below People & Access.
   Both light/dark themes keep their original white/navy contrast. */
html #page-overview > .page-heading{order:1!important}
html #page-overview > .premium-analytics{order:2!important}
html #page-overview > .premium-lower-overview{order:3!important}
html #page-overview > .dashboard-metrics{order:4!important}
html #page-overview > .overview-middle{order:5!important}
html #page-overview > .overview-action-strip{order:6!important}
html #page-overview > .overview-grid{order:7!important}
html #page-overview > .h7-main-panel{order:8!important}
html #page-overview > .recent-attendance{order:9!important}
html #page-overview > .premium-analytics{
  display:grid!important;
  grid-template-columns:minmax(0,1.66fr) minmax(300px,.94fr)!important;
  gap:16px!important;
  margin:2px 0 20px!important;
  align-items:stretch!important;
}
html[data-theme] #page-overview > .premium-analytics .premium-analytics-card{
  min-height:302px!important;
  border-radius:21px!important;
  padding:22px 23px 19px!important;
  border:1px solid var(--hs-line)!important;
  border-top:4px solid #d5ad55!important;
  background:var(--hs-card)!important;
  box-shadow:var(--hs-shadow)!important;
}
html[data-theme] #page-overview .premium-analytics .premium-heading-icon{
  background:#f1d690!important;
  background-image:none!important;
  color:#182147!important;
  border:1px solid #d4ad55!important;
  font-weight:850!important;
}
html[data-theme] #page-overview .premium-analytics .premium-chart-heading h2{
  font-size:clamp(17px,1.38vw,21px)!important;
  line-height:1.3!important;
}
html[data-theme] #page-overview .premium-analytics .premium-bars{
  height:176px;
  margin-top:14px!important;
}
html #page-overview .dashboard-metrics{
  margin:18px 0 18px!important;
  padding:18px!important;
  border-radius:21px!important;
  border:1px solid var(--hs-line)!important;
  background:var(--hs-card)!important;
  box-shadow:var(--hs-shadow)!important;
}
html[data-theme] #page-overview .metrics-section-heading{
  display:flex;align-items:flex-end;justify-content:space-between;
  margin:0 2px 16px!important;
}
html[data-theme] #page-overview .metrics-section-heading .eyebrow{
  font-size:10px!important;letter-spacing:.14em;font-weight:850!important;
  color:var(--hs-muted)!important;
}
html[data-theme] #page-overview .metrics-section-heading h2{
  margin:3px 0 4px!important;font-size:clamp(18px,1.8vw,23px)!important;
  font-weight:850!important;color:var(--hs-ink)!important;
}
html[data-theme] #page-overview .metrics-section-heading p{
  margin:0!important;font-size:11px!important;line-height:1.5!important;
  color:var(--hs-muted)!important;
}
html #page-overview .dashboard-metrics .metric-grid{
  margin-bottom:0!important;
}
@media(max-width:1120px){
  html #page-overview > .premium-analytics{grid-template-columns:minmax(0,1fr)!important}
  html[data-theme] #page-overview > .premium-analytics .premium-analytics-card{
    min-height:245px!important;
  }
}
@media(max-width:600px){
  html #page-overview > .premium-analytics{gap:12px!important;margin-bottom:14px!important}
  html[data-theme] #page-overview > .premium-analytics .premium-analytics-card{
    padding:18px 15px!important;border-radius:16px!important;min-height:235px!important;
  }
  html[data-theme] #page-overview .premium-analytics .premium-bars{height:148px}
  html #page-overview .dashboard-metrics{padding:13px!important;margin:12px 0 15px!important}
  html[data-theme] #page-overview .metrics-section-heading{margin-bottom:12px!important}
}
