/* HELEN & SONS / PREMIUM NAVY + GOLD HRIS 2026
   Reference-based visual redesign across all authenticated roles.
   Presentation only: roles, queries, raw scanner events and approvals are unchanged.
   Loaded LAST, after legacy theme sheets. */
html[data-theme="light"]{
 --hs-canvas:#f7f8fc;--hs-card:#fff;--hs-ink:#152048;--hs-muted:#5c6782;
 --hs-soft:#f1f3f8;--hs-line:#dfe4ef;--hs-shadow:0 8px 22px rgba(16,30,78,.085);
 --hs-header:#101b53;--hs-sidebar:#152365;--hs-action:#edc978;--hs-action-ink:#111d49;
 --hs-active:#efc875;--hs-active-ink:#111b45;--hs-input:#fff;--hs-input-ink:#17214a;
 --pb-gold:#e9be64;--pb-navy:#14215b;
}
html[data-theme="dark"]{
 --hs-canvas:#111b43;--hs-card:#1c2857;--hs-ink:#fff;--hs-muted:#d3dbf1;
 --hs-soft:#273562;--hs-line:#4a5883;--hs-shadow:0 9px 27px rgba(0,0,0,.19);
 --hs-header:#111c54;--hs-sidebar:#131f61;--hs-action:#efc977;--hs-action-ink:#111b43;
 --hs-active:#efc875;--hs-active-ink:#111b45;--hs-input:#1f2b5b;--hs-input-ink:#fff;
 --pb-gold:#e9be64;--pb-navy:#14215b;
}
html[data-theme] body{font-family:Inter,"Segoe UI",Arial,sans-serif!important}
html[data-theme] .workspace,
html[data-theme] .page-wrap,
html[data-theme] .app-shell{background:var(--hs-canvas)!important}
/* The sidebar is a sticky flex child and already occupies its 270px column.
   A second workspace margin duplicated that width and created the large blank gap. */
html[data-theme] #app-screen .workspace{margin-left:0!important;flex:1 1 0;min-width:0}
html[data-theme] #main-sidebar{
 width:270px!important;min-width:270px!important;max-width:270px!important;
 padding:17px 17px 20px!important;
 background:linear-gradient(170deg,#1b2b76 0%,#162363 35%,#101b4e 100%)!important;
 border-right:1px solid rgba(242,209,136,.3)!important;
 box-shadow:5px 0 24px rgba(14,26,72,.12)!important;
 color:#fff!important;gap:0!important;
}
html[data-theme] #main-sidebar .brand-logo.side{
 margin:2px 0 27px!important;min-height:86px!important;
 padding:13px 10px!important;display:flex;gap:9px;align-items:center;
 border:1px solid rgba(237,201,119,.45)!important;
 border-bottom:2px solid #e7bb61!important;
 border-radius:10px!important;
 background:rgba(6,17,64,.47)!important;
 box-shadow:0 6px 15px rgba(0,0,0,.11)!important;
}
html[data-theme] #main-sidebar .brand-logo.side img{
 width:52px!important;height:52px!important;object-fit:contain!important;border-radius:50%;
}
html[data-theme] #main-sidebar .brand-wordmark{
 font-size:14px!important;line-height:1.18!important;font-weight:860!important;letter-spacing:-.03em!important;
 color:#fff!important;
}
html[data-theme] #main-sidebar .brand-wordmark small{
 font-size:8px!important;letter-spacing:.11em!important;line-height:1.45!important;
 margin-top:6px!important;color:#e9c77f!important;
}
html[data-theme] #main-sidebar .side-group-label{
 padding-left:13px!important;margin:0 0 10px!important;
 font-size:9.5px!important;letter-spacing:.16em!important;color:#c9d4f4!important;
}
html[data-theme] #sidebar-nav{gap:3px!important}
html[data-theme] #sidebar-nav .nav-item{
 display:flex!important;gap:13px!important;align-items:center!important;
 width:100%!important;min-height:46px!important;
 margin:1px 0!important;padding:10px 13px!important;
 border:1px solid transparent!important;border-radius:11px!important;
 background:transparent!important;background-image:none!important;
 color:#f4f6ff!important;font:680 13px/1.3 Inter,"Segoe UI",Arial,sans-serif!important;
 box-shadow:none!important;cursor:pointer;transition:background-color .15s,transform .15s;
}
html[data-theme] #sidebar-nav .nav-item:not(.active):hover,
html[data-theme] #sidebar-nav .nav-item:not(.active):focus-visible{
 background:rgba(255,255,255,.12)!important;border-color:rgba(255,255,255,.2)!important;
 color:#fff!important;
}
html[data-theme] #sidebar-nav .nav-item.active{
 background:linear-gradient(110deg,#e5b956 0%,#f9de9e 100%)!important;
 border-color:#f1d385!important;box-shadow:0 5px 15px rgba(4,11,52,.17)!important;
 color:#14204d!important;font-weight:820!important;
}
html[data-theme] #sidebar-nav .nav-item .nav-icon{
 display:grid!important;place-items:center!important;
 width:26px!important;height:26px!important;flex:0 0 26px!important;
 color:inherit!important;font-size:20px!important;line-height:1!important;
}
html[data-theme] #sidebar-nav .nav-item .nav-icon svg{
 display:block;width:22px!important;height:22px!important;stroke:currentColor!important;
 fill:none!important;stroke-width:1.85;stroke-linejoin:round;stroke-linecap:round;
}
html[data-theme] #sidebar-nav .nav-item .nav-label{
 flex:1!important;min-width:0!important;white-space:normal!important;
}
html[data-theme] #sidebar-nav .nav-item .nav-count{
 margin-left:auto!important;padding:4px 7px!important;border-radius:40px!important;
 color:#18204c!important;background:#f9df9d!important;border:0!important;
 font-size:10px!important;font-weight:850!important;
}
html[data-theme] #main-sidebar .sidebar-bottom{padding-top:12px!important}
html[data-theme] #main-sidebar .side-hint{
 border:1px solid rgba(230,194,116,.3)!important;border-radius:13px!important;
 background:rgba(255,255,255,.09)!important;padding:13px!important;
}
html[data-theme] #main-sidebar .side-hint :is(strong,small){color:#fff!important}
html[data-theme] #main-sidebar .hint-icon{color:#efc977!important}
html[data-theme] #main-sidebar .logout-btn{
 color:#fff!important;border:1px solid rgba(255,255,255,.12)!important;
 border-radius:9px!important;min-height:44px!important;
}
html[data-theme] #main-sidebar .logout-btn:hover{background:rgba(255,255,255,.12)!important}
html[data-theme] #app-screen .topbar{
 position:sticky!important;top:0!important;z-index:110!important;
 height:91px!important;min-height:91px!important;flex:0 0 91px!important;
 padding:0 29px!important;gap:16px!important;
 border-bottom:2px solid #e8bc61!important;
 border-radius:0 0 16px 16px!important;
 background:linear-gradient(110deg,#1d2c77 0%,#17225e 60%,#111a4e 100%)!important;
 color:#fff!important;
 box-shadow:0 4px 13px rgba(17,26,78,.15)!important;
}
html[data-theme] .premium-top-title{
 display:flex;flex-direction:column;justify-content:center;
 min-width:0;flex:1 1 auto;gap:2px;
}
html[data-theme] .premium-top-title strong{
 font-size:clamp(18px,2vw,27px)!important;line-height:1.15!important;
 font-weight:840!important;letter-spacing:-.04em!important;
 color:#f2ce83!important;
}
html[data-theme] .premium-top-title small{
 color:#fff!important;font-size:12px!important;font-weight:520!important;
 letter-spacing:.01em!important;
}
html[data-theme] #app-screen .topbar .breadcrumb{display:none!important}
html[data-theme] #app-screen .topbar-actions{flex:0 0 auto;gap:11px!important;min-width:0}
html[data-theme] #app-screen .topbar .premium-search-wrap{
 width:45px!important;min-width:45px!important;flex:0 0 45px!important;
 transition:width .18s ease,flex-basis .18s ease;
 z-index:15!important;
}
html[data-theme] #app-screen .topbar .premium-search-wrap:focus-within{
 width:min(280px,36vw)!important;flex-basis:min(280px,36vw)!important;
}
html[data-theme] #app-screen .topbar .premium-search-shell{
 position:relative!important;width:100%!important;min-height:44px!important;height:44px!important;
 border-radius:13px!important;border:1px solid rgba(246,224,178,.52)!important;
 background:rgba(13,22,68,.42)!important;box-shadow:none!important;
 padding:0 11px!important;cursor:text;
}
html[data-theme] #app-screen .topbar .premium-search-shell svg{
 width:21px!important;height:21px!important;flex:0 0 21px!important;stroke:#f8e5b4!important;
}
html[data-theme] #app-screen .topbar #premium-module-search{
 position:absolute!important;inset:0!important;width:100%!important;height:100%!important;
 opacity:0!important;padding:0 10px 0 42px!important;cursor:pointer;
 color:#fff!important;background:transparent!important;border:0!important;
 font-size:11px!important;transition:opacity .13s;
}
html[data-theme] #app-screen .topbar .premium-search-wrap:focus-within #premium-module-search{
 opacity:1!important;cursor:text;
}
html[data-theme] #app-screen .topbar .premium-search-shell .premium-key{display:none!important}
html[data-theme] #app-screen .topbar .server-state{
 color:#d7e4ff!important;background:transparent!important;border:0!important;
 font-size:10px!important;max-width:180px;
}
html[data-theme] #app-screen .topbar .state-dot{
 background:#62cf9a!important;box-shadow:0 0 0 3px rgba(98,207,154,.15)!important;
}
html[data-theme] #app-screen .topbar .notification-bell{
 display:grid;place-items:center;
 width:43px!important;height:43px!important;min-width:43px!important;
 border:1px solid rgba(239,201,119,.42)!important;border-radius:13px!important;
 background:rgba(12,22,70,.34)!important;color:#f6deb0!important;
 font-size:20px!important;
}
html[data-theme] #app-screen .topbar .notification-bell.hidden{display:none!important}
html[data-theme] #app-screen .topbar .bell-count{
 background:#edc36d!important;color:#17204c!important;border:0!important;
 font-weight:900!important;
}
html[data-theme] #app-screen .topbar .account-circle{
 color:#192254!important;background:#edc978!important;
 width:41px!important;height:41px!important;border:2px solid #f8df9e!important;
}
html[data-theme] #app-screen .topbar .top-user :is(strong,small){color:#fff!important}
html[data-theme] #app-screen .topbar .top-user strong{font-weight:770!important;max-width:170px;overflow:hidden;text-overflow:ellipsis}
html[data-theme] #app-screen .topbar .theme-switch{
 border-color:rgba(239,201,119,.45)!important;background:rgba(14,24,77,.35)!important;
}
html[data-theme] #app-screen .topbar .theme-option.is-selected{
 color:#1a2456!important;background:#f2d18b!important;
}
html[data-theme] #app-screen .page-wrap{
 width:100%!important;max-width:none!important;min-width:0!important;
 padding:27px 32px 48px!important;
}
html[data-theme] #app-screen .page-heading{
 margin:0 0 23px!important;min-width:0;gap:12px!important;
}
html[data-theme] #app-screen .page-heading h1,
html[data-theme] #app-screen #page-overview .page-heading h1{
 font-family:Inter,"Segoe UI",Arial,sans-serif!important;
 font-size:clamp(23px,2.3vw,33px)!important;font-weight:850!important;
 letter-spacing:-.042em!important;line-height:1.18!important;
 margin:4px 0 7px!important;color:var(--hs-ink)!important;
 overflow-wrap:anywhere!important;text-shadow:none!important;
}
html[data-theme] #app-screen .page-heading p,
html[data-theme] #app-screen #page-overview .page-heading p{
 color:var(--hs-muted)!important;font-size:12.5px!important;line-height:1.5!important;
}
html[data-theme] #app-screen .page-heading .eyebrow{
 color:var(--hs-muted)!important;font-size:10px!important;letter-spacing:.12em!important;
 font-weight:770!important;
}
html[data-theme] #app-screen .premium-dashboard-heading .premium-dashboard-tools{
 display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end;
}
html[data-theme] #app-screen .premium-date-pill{
 display:flex;align-items:center;gap:9px;min-height:42px;min-width:0;
 background:var(--hs-card)!important;
 border:1px solid var(--hs-line)!important;border-radius:12px!important;
 padding:3px 11px!important;color:var(--hs-ink)!important;
 box-shadow:var(--hs-shadow)!important;
}
html[data-theme] #app-screen .premium-date-pill svg{width:19px;height:19px;stroke:var(--hs-ink)!important;flex:none}
html[data-theme] #app-screen .premium-date-pill input[type=date]{
 margin:0!important;width:143px;min-width:0!important;padding:6px 0!important;
 border:none!important;outline:none!important;background:transparent!important;
 box-shadow:none!important;font-size:12px!important;font-weight:730!important;
 color:var(--hs-ink)!important;
}
html[data-theme] #app-screen .premium-dashboard-heading button.reload-btn{
 background:linear-gradient(110deg,#e3b352,#f7dc97)!important;
 color:#17224f!important;border:1px solid #d6a747!important;
 border-radius:12px!important;min-height:43px!important;padding:10px 18px!important;
 box-shadow:0 4px 11px rgba(167,121,38,.13)!important;
 font-weight:830!important;font-size:12px!important;
}
html[data-theme] #app-screen .page .panel,
html[data-theme] #app-screen .page .h7-main-panel,
html[data-theme] #app-screen #page-breaks :is(.break-stat,.break-scan-panel,.break-history,.break-admin-tools),
html[data-theme] #app-screen #page-hr-core :is(.hrc-stat,.hrc-panel){
 border:1px solid var(--hs-line)!important;border-radius:17px!important;
 background:var(--hs-card)!important;color:var(--hs-ink)!important;
 box-shadow:var(--hs-shadow)!important;background-image:none!important;
}
html[data-theme] #app-screen .page :is(.panel-title-row h2,.panel h2,.premium-fingerprint-title h2),
html[data-theme] #app-screen #page-hr-core .hrc-panel h3{
 font-family:Inter,"Segoe UI",Arial,sans-serif!important;
 font-size:clamp(15px,1.3vw,20px)!important;font-weight:820!important;
 letter-spacing:-.028em!important;color:var(--hs-ink)!important;
}
html[data-theme] #app-screen .page .panel :is(p,small),
html[data-theme] #app-screen #page-hr-core :is(.hrc-note,.hrc-panel p){
 color:var(--hs-muted)!important;
}
html[data-theme] #page-overview > .premium-analytics{
 order:2!important;display:grid!important;
 grid-template-columns:minmax(0,1.6fr) minmax(300px,.94fr)!important;
 gap:14px!important;align-items:stretch;margin:2px 0 17px!important;
}
html[data-theme] #page-overview .premium-analytics .premium-analytics-card{
 overflow:hidden!important;border:1px solid var(--hs-line)!important;
 border-radius:18px!important;background:var(--hs-card)!important;
 min-height:310px!important;padding:0!important;
 box-shadow:var(--hs-shadow)!important;color:var(--hs-ink)!important;
}
html[data-theme] #page-overview .premium-analytics .premium-analytics-card::before{display:none!important}
html[data-theme] #page-overview .premium-analytics .premium-chart-heading{
 min-height:91px!important;margin:0!important;padding:17px 19px!important;
 border-bottom:3px solid #dfb35e!important;
 border-radius:17px 17px 0 0!important;
 background:linear-gradient(110deg,#1d2d78 0%,#17215c 72%,#121b4f 100%)!important;
 align-items:center!important;gap:10px!important;
}
html[data-theme] #page-overview .premium-analytics .premium-chart-heading h2{
 color:#fff!important;font-weight:850!important;font-size:clamp(16px,1.45vw,21px)!important;
 text-shadow:none!important;margin:0 0 5px!important;
}
html[data-theme] #page-overview .premium-analytics .premium-chart-heading p{
 color:#e0e8ff!important;font-size:10.5px!important;line-height:1.4!important;
 margin:0!important;
}
html[data-theme] #page-overview .premium-analytics .premium-heading-icon{
 display:grid;place-items:center!important;flex:none;
 width:47px!important;height:45px!important;border:1px solid #f7dea2!important;
 border-radius:12px!important;
 background:linear-gradient(130deg,#f8e0a2,#e9b959)!important;
 color:#19265e!important;font-size:23px!important;font-weight:820!important;
}
html[data-theme] #page-overview .premium-analytics .premium-period{
 flex:none!important;border:1px solid #e9bb5e!important;border-radius:24px!important;
 padding:8px 10px!important;background:#17235e!important;color:#fff!important;
 font-size:10px!important;font-weight:800!important;
}
html[data-theme] #page-overview .premium-analytics .premium-bars{
 margin:0 19px!important;width:calc(100% - 38px)!important;
 height:168px!important;padding:21px 0 0!important;
 border-bottom:1px solid #c5cde0!important;
 background:repeating-linear-gradient(to top,rgba(24,36,83,.045) 0 1px,transparent 1px 40px)!important;
 gap:clamp(6px,1.2vw,17px)!important;
}
html[data-theme] #page-overview .premium-analytics .premium-bar,
html[data-theme] #page-overview .premium-analytics .premium-bar-col:last-child .premium-bar{
 background:linear-gradient(180deg,#202f85,#111d56)!important;
 border:1px solid #1c2a70!important;border-radius:10px 10px 3px 3px!important;
 box-shadow:inset 0 1px rgba(255,255,255,.15)!important;
 width:min(68%,74px)!important;min-width:10px!important;
}
html[data-theme] #page-overview .premium-analytics .premium-bar-number,
html[data-theme] #page-overview .premium-analytics .premium-chart-days>span{
 color:var(--hs-ink)!important;
 font-size:11px!important;font-weight:850!important;
}
html[data-theme] #page-overview .premium-analytics .premium-chart-days{
 margin:9px 19px 0!important;padding:0!important;gap:clamp(6px,1.2vw,17px)!important;
}
html[data-theme] #page-overview .premium-analytics .premium-data-note{
 color:var(--hs-muted)!important;font-size:10px!important;
 margin:9px 19px 14px!important;line-height:1.43!important;
}
html[data-theme] #page-overview .premium-analytics .premium-coverage-body{
 margin:0!important;padding:23px 19px 10px!important;
 display:flex!important;align-items:center!important;justify-content:space-around!important;gap:14px!important;
}
html[data-theme] #page-overview .premium-analytics .premium-donut{
 width:164px!important;height:164px!important;flex:0 0 164px!important;
 background:conic-gradient(#182768 0 var(--coverage),#dbe0ea var(--coverage) 100%)!important;
 background-image:conic-gradient(#182768 0 var(--coverage),#dbe0ea var(--coverage) 100%)!important;
 border:0!important;
}
html[data-theme] #page-overview .premium-analytics .premium-donut-core{
 width:125px!important;height:125px!important;display:flex;justify-content:center;align-items:center;
 background:var(--hs-card)!important;border:1px solid var(--hs-line)!important;
}
html[data-theme] #page-overview .premium-analytics .premium-donut-core strong{
 font-size:30px!important;color:var(--hs-ink)!important;font-weight:860!important;
}
html[data-theme] #page-overview .premium-analytics .premium-donut-core small{
 color:var(--hs-muted)!important;font-size:10px!important;
}
html[data-theme] #page-overview .premium-analytics .premium-legend-row :is(span,strong){
 color:var(--hs-ink)!important;font-size:11px!important;
}
html[data-theme] #page-overview .premium-analytics .premium-legend-dot{
 background:#1c296f!important;
}
html[data-theme] #page-overview .premium-analytics .premium-legend-row.missing .premium-legend-dot{
 background:#cbd0da!important;opacity:1!important;
}
/* Four compact HR actions immediately follow chart panels, as requested. */
html[data-theme] #page-overview>.dashboard-metrics{
 order:3!important;padding:0!important;background:transparent!important;
 border:0!important;box-shadow:none!important;margin:0 0 15px!important;
}
html[data-theme] #page-overview .dashboard-metrics .metrics-section-heading{
 display:none!important;
}
html[data-theme] #page-overview .dashboard-metrics .metric-grid{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;
 gap:12px!important;margin:0!important;
}
html[data-theme] #page-overview .dashboard-metrics .metric-card{
 position:relative!important;display:flex!important;flex-direction:column!important;
 align-items:stretch!important;justify-content:center!important;
 min-height:134px!important;padding:17px 16px 15px 77px!important;
 text-align:left!important;border:1px solid var(--hs-line)!important;
 border-radius:16px!important;background:var(--hs-card)!important;
 color:var(--hs-ink)!important;box-shadow:var(--hs-shadow)!important;
 transition:transform .15s,box-shadow .15s!important;
}
html[data-theme] #page-overview .dashboard-metrics .metric-card:hover{
 transform:translateY(-2px)!important;
 box-shadow:0 12px 23px rgba(17,31,87,.13)!important;
}
html[data-theme] #page-overview .dashboard-metrics .metric-card .card-symbol{
 position:absolute!important;left:16px!important;top:21px!important;
 display:grid!important;place-items:center!important;
 width:48px!important;height:48px!important;
 border-radius:13px!important;background:linear-gradient(150deg,#223581,#141f5c)!important;
 border:1px solid #e9c373!important;color:#f3d180!important;
 font-size:24px!important;font-weight:800!important;
}
html[data-theme] #page-overview .dashboard-metrics .metric-card .card-symbol svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.8;fill:none}
html[data-theme] #page-overview .dashboard-metrics .metric-card .metric-title{
 display:block!important;font-size:12px!important;font-weight:780!important;
 color:var(--hs-ink)!important;line-height:1.3!important;margin:0 0 6px!important;
}
html[data-theme] #page-overview .dashboard-metrics .metric-card>strong{
 font-size:27px!important;font-weight:850!important;line-height:1.1!important;margin:0 0 7px!important;
 color:var(--hs-ink)!important;letter-spacing:-.03em!important;
}
html[data-theme] #page-overview .dashboard-metrics .metric-card>small{
 font-size:10px!important;line-height:1.35!important;color:var(--hs-muted)!important;
 margin:0!important;
}
html #page-overview .dashboard-metrics .metric-hidden-sources{display:none!important}
html[data-theme] #page-overview>.premium-live-attendance{
 order:4!important;padding:21px 20px 18px!important;margin:0 0 18px!important;
 border-radius:18px!important;border:1px solid var(--hs-line)!important;
 background:var(--hs-card)!important;box-shadow:var(--hs-shadow)!important;
}
html[data-theme] #page-overview .premium-live-heading{
 display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;
 margin:0 0 19px!important;
}
html[data-theme] #page-overview .premium-live-title{display:flex;gap:13px;align-items:center;min-width:0}
html[data-theme] #page-overview .premium-live-icon{
 width:45px;height:45px;display:grid;place-items:center;flex:none;
 border-radius:13px;background:#f7e3b6;color:#162355;font-size:26px;
}
html[data-theme] #page-overview .premium-live-heading h2{
 color:var(--hs-ink)!important;font-size:21px!important;margin:0 0 4px!important;
 font-weight:850!important;
}
html[data-theme] #page-overview .premium-live-heading p{
 color:var(--hs-muted)!important;font-size:11px!important;margin:0!important;
}
html[data-theme] #page-overview .premium-live-filters{display:flex;flex-wrap:wrap;gap:9px;align-items:center}
html[data-theme] #page-overview .premium-live-filters :is(input,select){
 background:var(--hs-input)!important;color:var(--hs-input-ink)!important;
 border:1px solid var(--hs-line)!important;border-radius:11px!important;
 padding:10px 12px!important;min-height:40px!important;
 font-size:11px!important;max-width:100%;
}
html[data-theme] #page-overview #premium-live-search{width:240px!important}
html[data-theme] #page-overview .premium-live-attendance .table-scroll{border:1px solid var(--hs-line)!important;border-radius:13px!important}
html[data-theme] #page-overview .premium-live-attendance table{
 width:100%!important;min-width:690px!important;border-collapse:collapse!important;
}
html[data-theme] #page-overview .premium-live-attendance th{
 padding:12px 13px!important;background:var(--hs-soft)!important;
 color:var(--hs-ink)!important;font-size:10px!important;font-weight:820!important;
}
html[data-theme] #page-overview .premium-live-attendance td{
 padding:12px 13px!important;line-height:1.4!important;font-size:11.5px!important;
 border-bottom:1px solid var(--hs-line)!important;color:var(--hs-ink)!important;
}
html[data-theme] #page-overview .premium-live-attendance td strong{font-size:12px!important;color:var(--hs-ink)!important}
html[data-theme] #page-overview .premium-live-employee{display:flex;align-items:center;gap:10px}
html[data-theme] #page-overview .premium-live-avatar{
 width:35px;height:35px;flex:0 0 35px;border-radius:50%;
 display:grid;place-items:center;background:#f6d99a;color:#1a254e;
 font-weight:850;font-size:11px;
}
html[data-theme] #page-overview .premium-live-employee small{
 display:block;font-size:10px!important;color:var(--hs-muted)!important;margin-top:2px!important;
}
html[data-theme] #page-overview .premium-scan-status{
 display:inline-flex;align-items:center;gap:6px;border-radius:24px;
 padding:6px 9px;font-size:10px;font-weight:750;white-space:normal;
 background:#fff0cb;color:#735315;border:1px solid #f0d599;
}
html[data-theme] #page-overview .premium-scan-status.is-approved{
 background:#dcf4e6;color:#1d734f;border-color:#aedfc5;
}
html[data-theme] #page-overview .premium-scan-status.is-missing{
 background:var(--hs-soft);color:var(--hs-ink);border-color:var(--hs-line);
}
html[data-theme] #page-overview .premium-live-review{
 min-height:33px;padding:6px 12px;border:1px solid #d7a749!important;
 border-radius:10px;background:var(--hs-card)!important;color:var(--hs-ink)!important;
 font-size:11px;font-weight:770;cursor:pointer;
}
html[data-theme] #page-overview .premium-live-review:hover{
 background:#f6e3b6!important;color:#172352!important;
}
html[data-theme] #page-overview>.premium-lower-overview{order:5!important;margin-bottom:17px!important}
html[data-theme] #page-overview>.overview-middle{order:6!important}
html[data-theme] #page-overview>.overview-grid{order:7!important}
html[data-theme] #page-overview>.overview-action-strip{order:8!important}
html[data-theme] #page-overview>.h7-main-panel{order:9!important}
html[data-theme] #page-overview>.recent-attendance{order:10!important}
/* Match the reference's clean white panels, consistent tables and page-level hierarchy everywhere. */
html[data-theme] #app-screen .page .panel{padding:clamp(14px,1.5vw,22px)!important}
html[data-theme] #app-screen .page .panel :is(.panel-kicker,.eyebrow){
 font-weight:830!important;letter-spacing:.1em!important;
}
html[data-theme] #app-screen .page :is(.btn,.table-action){
 border-radius:11px!important;font-weight:760!important;transition:filter .15s,transform .15s!important;
}
html[data-theme] #app-screen .page :is(.btn-primary,.btn-success,.btn-approve),
html[data-theme] #app-screen #page-breaks .break-main-button{
 background:linear-gradient(110deg,#e8b858,#f8dfa1)!important;color:#15214c!important;
 border:1px solid #dcae53!important;box-shadow:0 3px 8px rgba(167,118,40,.11)!important;
}
html[data-theme] #app-screen .page :is(.btn-outline,.table-action,.btn-dark){
 border-color:var(--hs-line)!important;background:var(--hs-card)!important;
 color:var(--hs-ink)!important;
}
html[data-theme] #app-screen .page :is(.btn,.table-action):hover{filter:brightness(.98);transform:translateY(-1px)}
html[data-theme] #app-screen .page :is(input,select,textarea),
html[data-theme] #live-modal :is(input,select,textarea){
 border:1px solid var(--hs-line)!important;border-radius:11px!important;
 background:var(--hs-input)!important;color:var(--hs-input-ink)!important;
 padding:10px 12px!important;
}
html[data-theme] #app-screen .page .table-scroll,
html[data-theme] #app-screen .page .h7-table-viewport{
 border-radius:12px!important;overflow:auto!important;
}
html[data-theme] #app-screen .page table thead,
html[data-theme] #app-screen .page table th{
 background:var(--hs-soft)!important;color:var(--hs-ink)!important;
 font-size:10px!important;font-weight:830!important;letter-spacing:.025em!important;
}
html[data-theme] #app-screen .page table td{
 font-size:11.5px!important;padding:12px 13px!important;color:var(--hs-ink)!important;
 border-color:var(--hs-line)!important;
}
html[data-theme] #app-screen .page table tr:hover td{background:var(--hs-soft)!important}
html[data-theme] #app-screen .page :is(.subtle-badge,.role-pill,.data-pill,.asset-status-pill){
 border:1px solid var(--hs-line)!important;border-radius:22px!important;
 background:var(--hs-soft)!important;color:var(--hs-ink)!important;
 font-size:10px!important;font-weight:760!important;
}
html[data-theme] #app-screen .page .subtle-badge.pb-status-active{
 background:#dcf4e6!important;color:#1a6d4b!important;border-color:#b6dfc8!important;
}
html[data-theme] #app-screen .page .subtle-badge.pb-status-inactive{
 background:#f9e2e5!important;color:#973747!important;border-color:#eabac5!important;
}
html[data-theme] #app-screen .page :is(.scanner-link-panel,.info-panel,.workflow-counts>div,.leave-summary-grid>div,.terminal-entry){
 border:1px solid var(--hs-line)!important;border-radius:13px!important;
 background:var(--hs-soft)!important;color:var(--hs-ink)!important;
}
html[data-theme] #app-screen .page .table-action{padding:7px 10px!important;min-height:32px!important}
html[data-theme] #app-screen #live-modal .modal{
 border:1px solid var(--hs-line)!important;border-top:4px solid #e5bd68!important;
 border-radius:18px!important;background:var(--hs-card)!important;box-shadow:0 22px 65px rgba(4,14,55,.26)!important;
}
html[data-theme] .auth-brand{
 background:linear-gradient(160deg,#1b2c78 0%,#10194e 100%)!important;
 border-right:2px solid #dbb25e!important;
}
html[data-theme] .auth-brand .brand-message em{color:#efcb81!important}
html[data-theme] .auth-form-panel{border-top:4px solid #e1b862!important}
html[data-theme] .auth-form-panel #login-form .btn-primary,
html[data-theme] .auth-form-panel #forgot-form .btn-primary{
 background:linear-gradient(110deg,#e4b45b,#f9dda1)!important;
 color:#14204a!important;border:1px solid #dbaa46!important;border-radius:12px!important;
 font-weight:830!important;
}
html[data-theme] #app-screen .workspace-footer{background:#131f5b!important;border-top:2px solid #d8ae5f!important}
html[data-theme] :is(button,a,input,select,textarea):focus-visible{
 outline:3px solid #e0b456!important;outline-offset:3px!important;
}
@media(max-width:1480px){
 html[data-theme] #app-screen .topbar .server-state{display:none!important}
 html[data-theme] #app-screen .premium-analytics .premium-coverage-body{gap:8px!important}
}
@media(max-width:1200px){
 html[data-theme] #app-screen .workspace{margin-left:0!important}
 html[data-theme] #main-sidebar{width:236px!important;min-width:236px!important;max-width:236px!important;padding:15px 12px!important}
 html[data-theme] #page-overview>.premium-analytics{grid-template-columns:1fr!important}
 html[data-theme] #page-overview>.dashboard-metrics .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 html[data-theme] #app-screen .topbar .top-user{display:none!important}
}
@media(max-width:900px){
 html[data-theme] #app-screen .workspace{margin-left:0!important;width:100%!important}
 html[data-theme] #main-sidebar{
  position:fixed!important;width:min(300px,calc(100vw - 38px))!important;min-width:0!important;
  max-width:min(300px,calc(100vw - 38px))!important;
  height:100dvh!important;overflow-y:auto!important;overscroll-behavior:contain!important;
  z-index:601!important;
 }
 html[data-theme] #app-screen .topbar{
  min-height:70px!important;height:70px!important;flex-basis:70px!important;
  border-radius:0 0 13px 13px!important;padding:0 13px!important;gap:9px!important;
 }
 html[data-theme] #app-screen .premium-top-title strong{font-size:18px!important}
 html[data-theme] #app-screen .premium-top-title small{font-size:9px!important}
 html[data-theme] #app-screen .topbar .premium-search-wrap{
  flex-basis:37px!important;width:37px!important;min-width:37px!important;
 }
 html[data-theme] #app-screen .topbar .premium-search-wrap:focus-within{
  position:absolute!important;right:11px;left:46px;width:auto!important;min-width:0!important;
  flex-basis:auto!important;background:#17215e!important;
 }
 html[data-theme] #app-screen .topbar .notification-bell{width:35px!important;height:35px!important;min-width:35px!important}
 html[data-theme] #app-screen .page-wrap{padding:19px 14px 35px!important}
 html[data-theme] #app-screen .premium-dashboard-heading{flex-wrap:wrap!important}
 html[data-theme] #app-screen .premium-dashboard-heading .premium-dashboard-tools{width:100%;justify-content:space-between}
 html[data-theme] #app-screen .premium-dashboard-heading .premium-date-pill{flex:1 1 170px}
 html[data-theme] #app-screen .premium-dashboard-heading .premium-date-pill input{width:100%}
 html[data-theme] #page-overview>.premium-analytics{grid-template-columns:1fr!important}
 html[data-theme] #page-overview .premium-live-filters{width:100%}
 html[data-theme] #page-overview #premium-live-search{flex:1 1 170px;width:auto!important}
}
@media(max-width:600px){
 html[data-theme] #app-screen .topbar .topbar-actions{gap:6px!important}
 html[data-theme] #app-screen .topbar .account-circle{width:34px!important;height:34px!important}
 html[data-theme] #app-screen .topbar .premium-top-title strong{font-size:16px!important}
 html[data-theme] #app-screen .page-wrap{padding:14px 11px 28px!important}
 html[data-theme] #page-overview>.premium-analytics{gap:12px!important}
 html[data-theme] #page-overview .premium-analytics .premium-chart-heading{
  min-height:81px!important;padding:13px 13px!important;
 }
 html[data-theme] #page-overview .premium-analytics .premium-heading-icon{
  width:37px!important;height:37px!important;font-size:18px!important;
 }
 html[data-theme] #page-overview .premium-analytics .premium-chart-heading h2{font-size:16px!important}
 html[data-theme] #page-overview .premium-analytics .premium-chart-heading p{font-size:9px!important}
 html[data-theme] #page-overview .premium-analytics .premium-period{font-size:8px!important;padding:6px 8px!important}
 html[data-theme] #page-overview .premium-analytics .premium-bars{height:145px!important;margin:0 11px!important;width:calc(100% - 22px)!important}
 html[data-theme] #page-overview .premium-analytics .premium-chart-days{margin:8px 11px 0!important}
 html[data-theme] #page-overview .premium-analytics .premium-coverage-body{flex-wrap:wrap!important;padding:15px 11px!important}
 html[data-theme] #page-overview .premium-analytics .premium-donut{height:135px!important;width:135px!important;flex-basis:135px!important}
 html[data-theme] #page-overview .premium-analytics .premium-donut-core{height:102px!important;width:102px!important}
 html[data-theme] #page-overview>.dashboard-metrics .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}
 html[data-theme] #page-overview .dashboard-metrics .metric-card{min-height:125px!important;padding:64px 11px 11px!important}
 html[data-theme] #page-overview .dashboard-metrics .metric-card .card-symbol{top:12px!important;left:12px!important;width:40px!important;height:40px!important}
 html[data-theme] #page-overview .dashboard-metrics .metric-card .metric-title{font-size:11px!important}
 html[data-theme] #page-overview .dashboard-metrics .metric-card>strong{font-size:25px!important}
 html[data-theme] #page-overview .premium-live-attendance{padding:14px 10px!important}
 html[data-theme] #page-overview .premium-live-heading h2{font-size:17px!important}
 html[data-theme] #page-overview .premium-live-filters :is(input,select){flex:1 1 140px;min-width:0}
 html[data-theme] #app-screen .page .panel{padding:14px!important}
}
@media(prefers-reduced-motion:reduce){
 html[data-theme] #app-screen *{transition:none!important;animation-duration:.001ms!important}
}


/* FINAL READABILITY FIXES FOR ICONS AND DARK CHARTS */
html[data-theme] #page-overview .premium-analytics .premium-heading-icon svg,
html[data-theme] #page-overview .premium-live-icon svg{
 width:25px!important;height:25px!important;min-width:25px!important;
 display:block!important;stroke:currentColor!important;stroke-width:1.9!important;
 fill:none!important;overflow:visible!important;
}
html[data-theme] #page-overview .premium-live-icon svg{width:24px!important;height:24px!important}
html[data-theme="dark"] #page-overview .premium-analytics .premium-bar,
html[data-theme="dark"] #page-overview .premium-analytics .premium-bar-col:last-child .premium-bar{
 background:linear-gradient(180deg,#f7dc9d,#ddb15f)!important;
 border-color:#f0cd87!important;
}
html[data-theme="dark"] #page-overview .premium-analytics .premium-donut{
 background:conic-gradient(#f0cc7b 0 var(--coverage),#45547e var(--coverage) 100%)!important;
 background-image:conic-gradient(#f0cc7b 0 var(--coverage),#45547e var(--coverage) 100%)!important;
}
html[data-theme="dark"] #page-overview .premium-analytics .premium-legend-dot{
 background:#f0cc7b!important;
}
html[data-theme="dark"] #page-overview .premium-analytics .premium-legend-row.missing .premium-legend-dot{
 background:#7180aa!important;
}
html[data-theme="dark"] #page-overview .premium-analytics .premium-bars{
 background:repeating-linear-gradient(to top,rgba(234,244,255,.09) 0 1px,transparent 1px 40px)!important;
}
html[data-theme="dark"] #page-overview .premium-scan-status{
 background:#5c4a35!important;color:#ffebb9!important;border-color:#94754e!important;
}
html[data-theme="dark"] #page-overview .premium-scan-status.is-approved{
 background:#1a5945!important;color:#d0ffe9!important;border-color:#41836b!important;
}
html[data-theme="dark"] #page-overview .premium-live-avatar{
 background:#efcc82!important;color:#192450!important;
}

/* HR MANUAL OVERTIME TABLE — display-only; derived from audited manual punches. */
html[data-theme] #hr-manual-attendance-panel .table-scroll{
  overflow-x:auto!important;
}
html[data-theme] #hr-manual-attendance-panel .table-scroll table{
  min-width:1010px;
}
html[data-theme] #hr-manual-attendance-panel .hrm-ot-policy{
  padding:12px 14px!important;border-radius:11px!important;
  background:var(--hs-soft)!important;
  border:1px solid var(--hs-line)!important;
  color:var(--hs-ink)!important;line-height:1.7!important;
}
html[data-theme] #hr-manual-attendance-panel .hrm-duration{
  font-variant-numeric:tabular-nums;white-space:nowrap!important;
  color:var(--hs-ink)!important;font-weight:680!important;
}
html[data-theme] #hr-manual-attendance-panel .hrm-ot-value{
  display:inline-block;min-width:70px;text-align:center;
  border-radius:999px;padding:7px 10px;
  background:var(--hs-soft);border:1px solid var(--hs-line);
  color:var(--hs-muted);font-weight:850;font-size:12px;
}
html[data-theme] #hr-manual-attendance-panel .hrm-ot-value.is-positive{
  background:#f7e6b6!important;border-color:#e3bb63!important;
  color:#182654!important;
}
html[data-theme] #hr-manual-attendance-panel .hrm-ot-pending{
  color:var(--hs-muted)!important;font-size:10px;white-space:normal;
}
