/*
 SUNSYS Matahari Admin — Executive Theme V5
 Pure presentation layer. No attendance, payroll or permission changes.
 */
body[data-admin-theme="light"]{
 --th-canvas:#f4f6f8;
 --th-surface:#ffffff;
 --th-surface-2:#fafbfc;
 --th-ink:#18293b;
 --th-muted:#64758a;
 --th-border:#e2e7ee;
 --th-primary:#255f99;
 --th-primary-hover:#1b4e80;
 --th-primary-soft:#e9f1f8;
 --th-input:#ffffff;
 --th-hover:#f1f5f9;
 --th-sidebar:#142338;
 --th-sidebar-end:#101b2a;
 --th-nav-text:#c7d4e2;
 --th-nav-muted:#8798ae;
 --th-nav-selected:#ffffff;
 --th-nav-selected-ink:#17324f;
 --th-gold:#d8ad66;
 --th-card-shadow:0 2px 12px rgba(24,41,59,.035);
 --th-header:rgba(244,246,248,.95);
 --th-control-hover:#f5f8fb;
 color-scheme:light;
}
body[data-admin-theme="dark"]{
 --th-canvas:#101924;
 --th-surface:#1a2939;
 --th-surface-2:#1c2d40;
 --th-ink:#e8eff7;
 --th-muted:#a7b7c8;
 --th-border:#34465a;
 --th-primary:#78aedd;
 --th-primary-hover:#92c5ed;
 --th-primary-soft:#203d58;
 --th-input:#172636;
 --th-hover:#24384e;
 --th-sidebar:#0c1420;
 --th-sidebar-end:#122034;
 --th-nav-text:#bacbde;
 --th-nav-muted:#8197b3;
 --th-nav-selected:#273d52;
 --th-nav-selected-ink:#f0f7ff;
 --th-gold:#dfbc80;
 --th-card-shadow:0 6px 22px rgba(0,0,0,.12);
 --th-header:rgba(16,25,36,.95);
 --th-control-hover:#23374b;
 color-scheme:dark;
}
body[data-admin-theme]{background:var(--th-canvas)!important;color:var(--th-ink);transition:background-color .18s ease}
body[data-admin-theme] #app{background:var(--th-canvas)!important;color:var(--th-ink)}
body[data-admin-theme] #app main{color:var(--th-ink)}
body[data-admin-theme] #app .enterprise-sidebar{
 background:linear-gradient(168deg,var(--th-sidebar),var(--th-sidebar-end) 88%)!important;
 box-shadow:4px 0 22px rgba(7,16,26,.09);
 border-right:1px solid rgba(185,210,235,.08);
}
body[data-admin-theme] #app .enterprise-brand{
 margin-bottom:13px;padding-top:7px;padding-bottom:17px;
 border-bottom:1px solid rgba(255,255,255,.10);
}
body[data-admin-theme] .enterprise-brand .brand-kicker{color:var(--th-gold);font-size:10px}
body[data-admin-theme] #app .enterprise-brand h2{color:#fff;font-size:23px;font-weight:760}
body[data-admin-theme] #app .enterprise-sidebar .nav-group summary{
 color:var(--th-nav-muted);font-size:10px;font-weight:740;letter-spacing:.13em;
}
body[data-admin-theme] #app .enterprise-sidebar button[data-page]{
 color:var(--th-nav-text);font-size:12.5px;font-weight:570;
 border-radius:9px;transition:background .15s,color .15s
}
body[data-admin-theme] #app .enterprise-sidebar button[data-page].active{
 color:var(--th-nav-selected-ink);
 background:var(--th-nav-selected);
 border-color:transparent;
 box-shadow:none;
 font-weight:760;
}
body[data-admin-theme] #app .enterprise-sidebar .nav-dashboard{font-weight:700}
body[data-admin-theme] #app .enterprise-sidebar .nav-search-wrap #navSearch{
 border-color:rgba(189,208,227,.14)!important;
 background:rgba(255,255,255,.055);
 border-radius:10px!important;
}
body[data-admin-theme] #app .enterprise-topbar{
 background:var(--th-header)!important;
 border-bottom:1px solid var(--th-border);
 backdrop-filter:blur(14px);
 padding-bottom:16px!important;
}
body[data-admin-theme] #app .enterprise-topbar h1{
 font-weight:760;font-size:25px;color:var(--th-ink);letter-spacing:-.035em
}
body[data-admin-theme] #app .enterprise-topbar .eyebrow{
 font-weight:720;letter-spacing:.13em;color:var(--th-muted)
}
body[data-admin-theme] #app .headerstatus{gap:9px}
body[data-admin-theme] #app .headerstatus .build{
 background:var(--th-primary-soft);color:var(--th-primary);border:1px solid var(--th-border);
 box-shadow:none;font-weight:720
}
body[data-admin-theme] #app .headerstatus #status{
 background:var(--th-surface);color:var(--th-muted);
 padding:6px 11px;border-radius:999px;border:1px solid var(--th-border);
 font-size:11px;font-weight:650
}
body[data-admin-theme] #app .headerstatus #status.ok{color:#16805d}
body[data-admin-theme="dark"] #app .headerstatus #status.ok{color:#7fd1ac}
body[data-admin-theme] #app .card,
body[data-admin-theme] #app .metric{
 border-color:var(--th-border)!important;
 background:var(--th-surface)!important;
 color:var(--th-ink);
 box-shadow:var(--th-card-shadow)!important;
 border-radius:13px!important;
}
body[data-admin-theme] #app .card:not(.owner-hero){
 background:var(--th-surface)!important
}
body[data-admin-theme] #app .metric{border-top-width:1px!important;position:relative;min-height:92px}
body[data-admin-theme] #app .metric.tone-good,
body[data-admin-theme] #app .metric.tone-warn,
body[data-admin-theme] #app .metric.tone-bad,
body[data-admin-theme] #app .metric.tone-info{border-top:1px solid var(--th-border)!important}
body[data-admin-theme] #app .metric.tone-good::before,
body[data-admin-theme] #app .metric.tone-warn::before,
body[data-admin-theme] #app .metric.tone-bad::before,
body[data-admin-theme] #app .metric.tone-info::before{
 content:"";position:absolute;top:14px;right:14px;height:6px;width:6px;border-radius:100%;
 background:#78a5c5
}
body[data-admin-theme] #app .metric.tone-good::before{background:#60aa93}
body[data-admin-theme] #app .metric.tone-warn::before{background:#d1ad68}
body[data-admin-theme] #app .metric.tone-bad::before{background:#cb8888}
body[data-admin-theme] #app .metric b{letter-spacing:-.035em;font-weight:730;color:var(--th-ink)}
body[data-admin-theme] #app .metric span,
body[data-admin-theme] #app .metric small,
body[data-admin-theme] #app .muted{color:var(--th-muted)}
body[data-admin-theme] #app h2,
body[data-admin-theme] #app h3,
body[data-admin-theme] #app .sectionhead h3{color:var(--th-ink);letter-spacing:-.02em}
body[data-admin-theme] #app .sectionhead h3{font-size:16px;font-weight:745}
body[data-admin-theme] #app .eyebrow{color:var(--th-muted);font-weight:760}
body[data-admin-theme] #app .tablewrap{
 border-color:var(--th-border);box-shadow:var(--th-card-shadow);
 border-radius:12px;background:var(--th-surface)
}
body[data-admin-theme] #app table{background:var(--th-surface);color:var(--th-ink)}
body[data-admin-theme] #app table th{
 background:var(--th-surface-2);color:var(--th-muted);
 border-color:var(--th-border);font-weight:730;font-size:11.5px;
}
body[data-admin-theme] #app table td{border-color:var(--th-border);color:var(--th-ink)}
body[data-admin-theme] #app table tr:hover{background:var(--th-hover)}
body[data-admin-theme] #app input,
body[data-admin-theme] #app select,
body[data-admin-theme] #app textarea{
 border:1px solid var(--th-border)!important;
 background:var(--th-input)!important;
 color:var(--th-ink)!important;
 border-radius:9px!important;
 box-shadow:0 1px 2px rgba(0,0,0,.016)
}
body[data-admin-theme] #app input::placeholder,
body[data-admin-theme] #app textarea::placeholder{color:var(--th-muted);opacity:.8}
body[data-admin-theme] #app label{color:var(--th-muted);font-weight:670}
body[data-admin-theme] #app button.primary,
body[data-admin-theme] #app #payLoad{
 background:var(--th-primary);border:1px solid transparent;
 color:#fff;border-radius:9px;font-weight:720;
 box-shadow:none;transition:background .16s ease,transform .16s ease
}
body[data-admin-theme="dark"] #app button.primary,
body[data-admin-theme="dark"] #app #payLoad{color:#102033}
body[data-admin-theme] #app button.primary:hover,
body[data-admin-theme] #app #payLoad:hover{background:var(--th-primary-hover);transform:translateY(-1px)}
body[data-admin-theme] #app button.secondary{
 background:var(--th-surface)!important;color:var(--th-ink)!important;
 border:1px solid var(--th-border)!important;border-radius:9px;box-shadow:none;
}
body[data-admin-theme] #app button.secondary:hover{background:var(--th-control-hover)!important}
body[data-admin-theme] #app .payroll-report-head{
 border:1px solid var(--th-border);
 background:var(--th-surface)!important;
 box-shadow:var(--th-card-shadow);
 border-radius:13px;padding:17px 20px;
}
body[data-admin-theme] #app .payroll-report-head h2{color:var(--th-ink);font-size:23px}
body[data-admin-theme] #app .payroll-report-head p{color:var(--th-muted)}
body[data-admin-theme] #app .payroll-report-chip{
 background:var(--th-primary-soft);border-color:var(--th-border);
 color:var(--th-primary);font-weight:740;font-size:10px
}
body[data-admin-theme] #app .payroll-policy{
 background:var(--th-surface);border-color:var(--th-border);color:var(--th-muted)
}
body[data-admin-theme] #app .payroll-policy span{background:var(--th-surface-2);border-color:var(--th-border)}
body[data-admin-theme] #app .payroll-detail-summary{border-color:var(--th-border);background:var(--th-border)}
body[data-admin-theme] #app .payroll-detail-summary>div{background:var(--th-surface-2)}
body[data-admin-theme] #app .payroll-detail-summary b{color:var(--th-ink)}
body[data-admin-theme] #app .payroll-detail-summary span,
body[data-admin-theme] #app .payroll-detail-summary small{color:var(--th-muted)}
body[data-admin-theme] #app .payroll-flag.good{background:rgba(38,156,110,.13);border-color:rgba(38,156,110,.20);color:#178358}
body[data-admin-theme] #app .payroll-flag.warn{background:rgba(209,155,63,.14);border-color:rgba(209,155,63,.23);color:#aa741a}
body[data-admin-theme] #app .payroll-flag.bad{background:rgba(207,90,90,.11);border-color:rgba(207,90,90,.20);color:#b33f43}
body[data-admin-theme="dark"] #app .payroll-flag.good{color:#82d8b1}
body[data-admin-theme="dark"] #app .payroll-flag.warn{color:#e6c27a}
body[data-admin-theme="dark"] #app .payroll-flag.bad{color:#ef9b9b}
body[data-admin-theme="dark"] #app .payroll-review-banner{background:#372f27;color:#e7ce9e;border-color:#5c4d36}
body[data-admin-theme="dark"] #app .payroll-review-banner strong{color:#eaca88}
body[data-admin-theme="dark"] #app .payroll-review-banner.ready{background:#1c3b34;color:#a0dec8;border-color:#31584d}
body[data-admin-theme="dark"] #app .payroll-review-banner.ready strong{color:#a0dec8}
body[data-admin-theme="dark"] #app .owner-hero{background:linear-gradient(135deg,#213c57,#17283c)!important}
body[data-admin-theme="dark"] #app .badge:not(.good):not(.warn):not(.bad){background:#31445a;color:#d8e8f7}
body[data-admin-theme="dark"] #app .badge.good{background:#20483a;color:#8ce0b2}
body[data-admin-theme="dark"] #app .badge.warn{background:#574329;color:#f0ca83}
body[data-admin-theme="dark"] #app .badge.bad{background:#512e35;color:#ffadb2}
body[data-admin-theme="dark"] #app .owner-note,
body[data-admin-theme="dark"] #app .healthy-card{color:var(--th-ink)}
body[data-admin-theme="dark"] #app .attention-row{background:var(--th-surface)}
body[data-admin-theme="dark"] #app .attention-detail{color:var(--th-muted)}
body[data-admin-theme="dark"] #app .schedule-preview{background:var(--th-surface-2);color:var(--th-ink)}
body[data-admin-theme="dark"] #app .payroll-source-note summary{color:var(--th-primary)}
body[data-admin-theme] #app .theme-switch{
 min-height:33px;height:33px;width:37px;padding:0;margin:0;
 display:inline-flex;align-items:center;justify-content:center;
 border:1px solid var(--th-border)!important;
 background:var(--th-surface)!important;color:var(--th-ink)!important;
 border-radius:10px;box-shadow:none;cursor:pointer;
}
body[data-admin-theme] #app .theme-switch:hover{background:var(--th-hover)!important}
body[data-admin-theme] #app .theme-switch svg{width:18px;height:18px;display:block}
body[data-admin-theme="dark"] #app .nav-menu-toggle{
 background:var(--th-surface);border-color:var(--th-border);color:var(--th-ink)
}
body[data-admin-theme="dark"] .modal{background:rgba(3,8,16,.76)}
body[data-admin-theme="dark"] .modalbox{background:var(--th-surface)!important}
@media(max-width:1000px){
 body[data-admin-theme] #app .enterprise-topbar{background:var(--th-header)!important}
 body[data-admin-theme] #app .enterprise-sidebar{box-shadow:none}
 body[data-admin-theme].nav-open #app .enterprise-sidebar{box-shadow:22px 0 60px rgba(0,0,0,.35)}
}
@media(max-width:700px){
 body[data-admin-theme] #app .enterprise-topbar h1{font-size:18px}
 body[data-admin-theme] #app .theme-switch{height:33px;width:33px;min-height:33px}
 body[data-admin-theme] #app .payroll-report-head{padding:12px}
 body[data-admin-theme] #app .payroll-kpis{gap:8px}
}
@media print{
 body[data-admin-theme],body[data-admin-theme] #app{background:#fff!important;color:#151d2b!important}
 body[data-admin-theme] #app .card,
 body[data-admin-theme] #app .metric,
 body[data-admin-theme] #app .payroll-report-head{box-shadow:none!important;border-color:#d9dee5!important;background:#fff!important;color:#151d2b!important}
 body[data-admin-theme] #app .theme-switch{display:none!important}
}
@media(prefers-reduced-motion:reduce){
 body[data-admin-theme],body[data-admin-theme] #app button{transition:none!important}
}

/* Executive finish: remove legacy bright KPI ribbons and keep small-screen header calm. */
body[data-admin-theme] #app .metric::after,
body[data-admin-theme] #app .metric.tone-good::after,
body[data-admin-theme] #app .metric.tone-warn::after,
body[data-admin-theme] #app .metric.tone-bad::after,
body[data-admin-theme] #app .metric.tone-info::after{display:none!important}
body[data-admin-theme] #app .payroll-policy span:first-child{
 background:transparent;color:var(--th-ink);border-color:transparent;font-weight:740
}
@media(max-width:700px){
 body[data-admin-theme] #app .enterprise-topbar .headerstatus{flex-wrap:nowrap;width:auto;gap:9px}
 body[data-admin-theme] #app .enterprise-topbar #status{
   display:inline-block!important;flex:0 0 9px;
   width:9px;min-width:9px;height:9px;min-height:9px;
   font-size:0!important;line-height:0!important;
   padding:0!important;border:0!important;
   background:#cc7564!important;box-shadow:0 0 0 3px rgba(204,117,100,.13)
 }
 body[data-admin-theme] #app .enterprise-topbar #status.ok{
   background:#3eab86!important;box-shadow:0 0 0 3px rgba(62,171,134,.13)
 }
}
