/* V1 12 Okt: palet minimalis Abdi. Alias lama menjaga sambungan modul.
   TK1 7 Nov: satu-satunya blok token :root. Cakupan lain hanya bila nilainya memang beda: body.ui-shell (--blue abu),
   .schedule-page (--focus), HP <=760px (--ui-bar-h/--ui-sticky-top, ui-rangka.css), sidebar ciut (--ui-sidebar-width),
   .portal-workspace-frame (--ui-sticky-top), tema gelap (--vp-*, WD1). */
:root{
 --ui-bg:#F7F7F7;--ui-panel:#FFFFFF;--ui-text:#202020;--ui-muted:#777777;--ui-line:#E5E5E5;
 --ui-primary:#171717;--ui-primary-hover:#333333;--ui-hover:#F1F1F1;--ui-radius:10px;--ui-font:Inter,Helvetica,Arial,sans-serif;
 --ui-ok:#4B7657;--ui-ok-bg:#EEF3EF;--ui-ok-line:#CBDCCF;
 --ui-warn:#876930;--ui-warn-bg:#F6F1E6;--ui-warn-line:#E4D6B8;
 --ui-danger:#A4453E;--ui-danger-bg:#F6ECEB;--ui-danger-line:#E3C4C1;
 --ui-info:#4A6683;--ui-info-bg:#EDF1F5;--ui-info-line:#C9D5E1;
 --ui-pohon-rancang:#C2A465;--ui-pohon-belum:#D2D2D2;--ui-pohon-batal:#EEEEEE;--ui-scroll-thumb:#D2D2D2;--ui-scroll-thumb-hover:#BDBDBD;
 --ui-muted-text:#707070;--ui-input-line:#DDDDDD;--ui-button-line:#DEDEDE;--ui-nav-text:#737373;
 --ui-table-muted:#888888;--ui-table-head-text:#5F5F5F;--ui-table-head:#FBFBFB;--ui-table-line:#F0F0F0;--ui-table-hover:#FAFAFA;--ui-backdrop:rgba(23,23,23,.32);
 --portal-ink:var(--ui-text);--portal-blue:var(--ui-primary);--portal-muted:var(--ui-muted-text);--portal-line:var(--ui-line);
 --portal-surface:var(--ui-panel);--portal-canvas:var(--ui-bg);--portal-soft-blue:var(--ui-hover);--portal-blue-border:var(--ui-line);
 --portal-chart-blue:var(--ui-info);--portal-navy:var(--ui-primary);--portal-rail-label:var(--ui-muted-text);
 --blue:var(--ui-primary);--muted:var(--ui-muted-text);--line:var(--ui-line);--focus:var(--ui-muted);--surface:var(--ui-panel);--ui-sidebar-width:260px;
 --ui-bar-h:48px;--ui-sticky-top:48px;--ui-field-focus:var(--ui-muted);--ui-field-ring:0 0 0 3px rgba(0,0,0,.05);
 --vp-1:#3e5370;--vp-2:#6c84a3;--vp-3:#b89c6a;--vp-4:#d6c4a0;--vp-5:#8d99a8;--vp-6:#9c8a63;--vp-7:#b7bec8;--vp-office:#c4c2bd;--vp-none:#eceae5;--vp-none-line:#cfcbc2;
 font-family:var(--ui-font);font-size:15px;color:var(--ui-text);background:var(--ui-bg)
}
:root[data-theme=dark]{--vp-1:#6f86a8;--vp-2:#8fa4c2;--vp-3:#c2a675;--vp-4:#d9c8a6;--vp-5:#9aa6b5;--vp-6:#a8956c;--vp-7:#7e8794;--vp-office:#6c6c6a;--vp-none:#4a4844;--vp-none-line:#75716a}
@font-face{font-family:Inter;font-style:normal;font-weight:100 900;font-display:swap;src:url('/assets/inter-latin-wght-normal.woff2?v=v1-20261012') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
*{box-sizing:border-box}body{margin:0}header{height:74px;padding:0 4vw;display:flex;align-items:center;justify-content:space-between;background:var(--ui-panel);border-bottom:1px solid var(--line);gap:16px}.brand{font-size:21px;letter-spacing:.03em;text-decoration:none;color:var(--ui-text);font-weight:800}.brand span{font-weight:500;color:var(--ui-muted-text)}.environment{font-size:10px;letter-spacing:.12em;padding:7px 10px;background:var(--ui-warn-bg);color:var(--ui-warn);border:1px solid var(--ui-warn-line);border-radius:5px}main{max-width:1260px;margin:38px auto;padding:0 28px}h1{font-size:32px;letter-spacing:-.035em;margin:8px 0 12px}h2{font-size:20px;margin:0 0 14px}h3{font-size:16px}p{line-height:1.65;color:var(--ui-muted-text)}.eyebrow{font-size:11px;font-weight:700;letter-spacing:.13em;color:var(--blue);text-transform:uppercase}.auth-layout{display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:80px;max-width:1000px;margin:70px auto}.intro h1{font-size:48px;line-height:1.1;max-width:460px}.intro p{max-width:430px}.intro .line{width:50px;height:4px;background:var(--ui-primary);margin-bottom:24px}.card{background:var(--ui-panel);border:1px solid var(--line);border-radius:12px;padding:26px;box-shadow:none}.auth-card{max-width:460px;width:100%}label{display:block;font-size:13px;font-weight:600;margin:16px 0 7px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid var(--ui-line);border-radius:6px;background:var(--ui-panel);color:var(--ui-text);font:inherit}input:focus,select:focus,textarea:focus{outline:3px solid var(--ui-muted);outline-offset:1px}input[type=checkbox]{width:auto;accent-color:var(--blue)}button{border:0;border-radius:6px;padding:11px 15px;background:var(--blue);color:var(--ui-panel);cursor:pointer;font:600 13px inherit;min-height:42px}button:focus-visible,a:focus-visible{outline:3px solid var(--ui-muted);outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}.secondary{background:var(--ui-hover);border:1px solid var(--line);color:var(--ui-text)}.danger{background:var(--ui-danger)}.full{width:100%;margin-top:22px}a{color:var(--blue)}.small{font-size:12px;color:var(--ui-muted-text)}.form-links{display:flex;justify-content:space-between;gap:16px;margin-top:18px;font-size:13px}.page-title{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.page-title p{margin:0}.actions{display:flex;gap:8px;flex-wrap:wrap}.status-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:26px 0}.status-grid .card{padding:20px}.metric{font-size:23px;font-weight:700;margin-top:9px}.metric small{font-size:12px;font-weight:400}.good{color:var(--ui-ok)}.tabs{display:flex;gap:8px;border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:22px;overflow:auto}.tabs button{white-space:nowrap}.tabs button[aria-selected=true]{background:var(--ui-text);color:white}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:20px}.toolbar input{max-width:340px}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:7px}table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}th{text-align:left;background:var(--ui-table-head);color:var(--ui-table-muted);font-size:11px;text-transform:uppercase;letter-spacing:.04em;position:sticky;top:0;box-shadow:none}th,td{padding:14px 16px;border-bottom:1px solid var(--ui-table-line)}tbody tr:last-child td{border-bottom:0}td strong{display:block;font-size:13px}td small{color:var(--muted);display:block;margin-top:4px}.badge{font-size:11px;background:var(--ui-ok-bg);color:var(--ui-ok);border-radius:4px;padding:4px 7px}.badge.owner{background:var(--ui-info-bg);color:var(--ui-info)}.badge.off{background:var(--ui-danger-bg);color:var(--ui-danger)}.column-picker{display:flex;gap:16px;flex-wrap:wrap}.column-picker label{margin:6px 0 12px;font-weight:400;font-size:12px}.split{display:grid;grid-template-columns:1fr 1fr;gap:22px}.hint{background:var(--ui-hover);border-left:3px solid var(--ui-line);padding:13px 15px;font-size:12px;color:var(--ui-muted-text);line-height:1.65}.secret{white-space:pre-wrap;overflow-wrap:anywhere;border:1px dashed var(--ui-warn-line);background:var(--ui-warn-bg);padding:16px;font-family:var(--ui-font)}.grant{padding:12px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:10px}.grant label{margin:0;font-weight:400}.grant input{margin-top:5px}.grant button{justify-self:start}dialog{border:1px solid var(--line);border-radius:12px;padding:26px;width:min(650px,95vw);max-height:90vh;margin-right:30px}dialog::backdrop{background:var(--ui-backdrop)}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.dialog-head h2{margin:0}#notice{position:fixed;bottom:26px;left:50%;transform:translateX(-50%);background:var(--ui-primary);color:var(--ui-panel);padding:14px 20px;border-radius:7px;z-index:5;max-width:90vw;font-size:13px}#notice:empty{display:none}footer{padding:24px;text-align:center;color:var(--ui-muted-text);font-size:11px;margin-top:45px}.empty{padding:25px;color:var(--muted)}.row-actions{display:flex;gap:8px}.hidden{display:none!important}.row-link{background:none;color:var(--portal-blue);padding:0;font-weight:650;min-height:28px;text-align:left}
@media(max-width:760px){header{height:65px;padding:0 18px}.brand{font-size:18px}.environment{font-size:8px;padding:6px}.auth-layout{grid-template-columns:1fr;gap:26px;margin:32px 0}.intro h1{font-size:34px}.intro p{font-size:13px;margin-bottom:0}.intro .line{margin-bottom:15px}.auth-card{max-width:none}main{padding:0 16px;margin:25px auto}.card{padding:20px}.page-title{display:block}.page-title .actions{margin-top:18px}h1{font-size:27px}.status-grid{gap:8px;margin:22px 0}.status-grid .card{padding:13px 10px}.metric{font-size:17px}.status-grid .eyebrow{font-size:9px;letter-spacing:0}.split{grid-template-columns:1fr}.toolbar{align-items:stretch;flex-direction:column}.toolbar input{max-width:none}.tabs{gap:6px}.tabs button{padding:10px;font-size:12px}dialog{margin:auto;width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.grant{grid-template-columns:1fr}.table-wrap{max-width:100%}th,td{padding:12px}footer{margin-top:24px}}

.beta-card{margin-top:20px}.beta-facts{display:grid;grid-template-columns:minmax(100px,160px) 1fr;gap:10px 20px}.beta-facts dt{font-size:12px;color:var(--muted)}.beta-facts dd{margin:0;overflow-wrap:anywhere}.beta-panels{display:grid;gap:24px;margin-top:24px}.beta-panels section{min-width:0}.beta-bon{display:block;max-width:100%;max-height:650px;object-fit:contain;margin-top:16px}.beta-data{white-space:pre-wrap;overflow-wrap:anywhere;max-height:420px;overflow:auto;font-size:12px;line-height:1.65;background:var(--portal-soft-blue);padding:14px;border-radius:6px}.beta-card form{max-width:680px}.beta-card details{padding:12px 0;border-bottom:1px solid var(--line)}.beta-card summary{cursor:pointer;overflow-wrap:anywhere}.beta-card .eyebrow{overflow-wrap:anywhere}.beta-panels a{display:inline-block;margin:8px 18px 8px 0}@media(max-width:500px){.beta-facts{grid-template-columns:1fr;gap:5px}.beta-facts dd{margin-bottom:12px}.beta-card .actions>button{flex:1 1 130px}}

.portal-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;margin-top:28px}.portal-tile{display:flex;align-items:center;min-height:130px;padding:28px;border:1px solid var(--line);border-top:3px solid var(--ui-line);border-radius:12px;background:var(--portal-surface);text-decoration:none;font-size:23px;font-weight:650;color:var(--portal-ink)}.employee-hero{margin:24px 0 28px}.employee-hero h1{max-width:900px;font-size:clamp(28px,3vw,42px);margin:10px 0}.employee-window main{max-width:1280px}.button-link{display:inline-block;padding:12px 18px;border-radius:6px;color:var(--ui-panel);background:var(--ui-primary);text-decoration:none}.button-link[hidden]{display:none}.employee-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 24px}.employee-form-grid label{margin-top:14px}.employee-form-grid input{margin-bottom:8px}.employee-fields[hidden]{display:none}.employee-fields h2{margin-bottom:10px}.employee-save{display:flex;align-items:center;gap:20px;padding-top:24px;margin-top:24px;border-top:1px solid var(--line)}.employee-editor input[readonly]{background:var(--ui-bg);color:var(--ui-muted-text)}.employee-window .card{padding:28px}.employee-window input[type=checkbox]{justify-self:start;width:20px;height:20px}@media(max-width:800px){.employee-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.employee-form-grid{grid-template-columns:1fr}.employee-window .card{padding:18px}.employee-hero h1{font-size:29px}}

.salary-current{padding:20px;background:var(--portal-soft-blue);border-left:3px solid var(--ui-line);margin:16px 0}.salary-current strong{display:block;font-size:24px;margin-top:10px}.salary-editor{padding:8px 0 24px}.salary-allowance{display:grid;grid-template-columns:2fr 1.5fr 1.2fr auto;gap:15px;align-items:end;margin-bottom:16px}.salary-allowance button{margin-bottom:8px}.salary-history{border-top:1px solid var(--line);padding-top:22px}.salary-history details{padding:16px 0;border-bottom:1px solid var(--line)}.salary-history summary{cursor:pointer;font-weight:650;margin-bottom:10px}@media(max-width:700px){.salary-allowance{grid-template-columns:1fr 1fr}.salary-current strong{font-size:20px}}

.employee-save[hidden]{display:none}

.employee-filter{margin:18px 0;padding:16px;border:1px solid var(--portal-line);border-radius:10px}.employee-filter summary{cursor:pointer;font-weight:700}.employee-filter-row{display:grid;grid-template-columns:1.1fr 1fr 1.2fr auto;gap:12px;align-items:end;padding:12px 0;border-bottom:1px solid var(--ui-line)}.ui-shell .employee-filter-row label{margin:0 0 6px}.employee-filter-row input,.employee-filter-row select{width:100%;min-width:0}.ui-shell .employee-filter-row input,.ui-shell .employee-filter-row select,.ui-shell .employee-filter-row .pss>.pss-input,.ui-shell .employee-filter-row button{margin:0}.employee-filter-saved{margin-top:20px}.employee-filter-saved button{margin:8px 8px 8px 0}@media(max-width:700px){.employee-filter-row{grid-template-columns:1fr}.employee-filter-row button{width:100%}}

/* Portal landing: compact rail, warm grid and permission-based workspaces. */
body.portal-home{background-color:var(--portal-canvas);background-image:none;background-size:28px 28px}
.portal-home>header,.portal-home>footer{display:none}.portal-home main{max-width:none;margin:0;padding:0}.home-rail{position:fixed;inset:0 auto 0 0;width:82px;z-index:3;background:var(--portal-surface);border-right:1px solid var(--portal-line);display:flex;align-items:center;flex-direction:column;padding:22px 7px 16px;gap:32px}.home-monogram{width:44px;height:44px;display:grid;place-items:center;text-decoration:none}.home-monogram img{display:block;width:44px;height:44px;object-fit:contain}.home-rail nav{display:grid;gap:9px;width:100%}.home-rail .home-rail-bottom{margin-top:auto}.home-nav{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:66px;border-radius:8px;text-decoration:none;color:var(--portal-muted);font-size:10px;font-weight:600;padding:8px 2px;text-align:center}.home-nav:hover{background:var(--portal-soft-blue);color:var(--portal-blue)}.home-nav.active{background:var(--ui-primary);color:var(--portal-surface);box-shadow:none}.home-nav-icon{font-size:17px;line-height:1.1;font-weight:650}.home-content{margin-left:82px;min-height:100dvh;padding:0 clamp(26px,5vw,84px) 30px}.home-topbar{height:94px;border-bottom:1px solid var(--portal-line);display:flex;align-items:center;justify-content:space-between;gap:20px}.home-wordmark{display:flex;align-items:center;text-decoration:none}.home-identity{display:flex;align-items:center;gap:13px;font-size:13px;color:var(--portal-muted)}.home-avatar{height:36px;width:36px;display:grid;place-items:center;background:var(--portal-soft-blue);color:var(--portal-blue);border:1px solid var(--portal-line);border-radius:50%;font-weight:650;font-size:12px}.home-welcome{display:flex;align-items:center;justify-content:space-between;gap:35px;padding:66px 0 54px}.home-eyebrow{font-size:10px;letter-spacing:.18em;font-weight:700;color:var(--ui-muted-text);display:flex;align-items:center;gap:10px}.home-eyebrow:before{content:'';display:block;width:24px;height:2px;background:var(--ui-primary)}.home-welcome h1{font-size:clamp(28px,3.1vw,43px);line-height:1.2;color:var(--portal-ink);font-weight:650;letter-spacing:-.045em;margin:17px 0 13px;max-width:740px}.home-welcome p{font-size:15px;margin:0;color:var(--portal-muted)}.home-date{flex-shrink:0;text-align:right;font-size:12px;color:var(--portal-muted);line-height:1.8;border-left:1px solid var(--portal-line);padding-left:26px}.home-date strong{display:block;font-weight:600;color:var(--portal-ink);font-size:14px}.home-section-heading{display:flex;align-items:baseline;gap:20px;justify-content:space-between;margin:0 0 21px}.home-section-heading h2{font-size:18px;font-weight:650;margin:0;letter-spacing:-.02em}.home-section-heading>span{font-size:12px;color:var(--portal-muted)}.home-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}.home-module{display:flex;flex-direction:column;min-height:270px;padding:27px 27px 0;background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:13px;text-decoration:none;color:var(--portal-ink);box-shadow:none;transition:transform .18s,box-shadow .18s,border-color .18s}.home-module:hover{transform:translateY(-3px);box-shadow:none;border-color:var(--portal-blue-border)}.home-module-meta{display:flex;justify-content:space-between;align-items:center;gap:14px}.home-module-meta>span:last-child{font-size:9px;letter-spacing:.12em;font-weight:650;color:var(--portal-muted)}.home-module-icon{width:45px;height:45px;border-radius:11px;display:grid;place-items:center;background:var(--portal-soft-blue);color:var(--portal-blue);font-size:17px;font-weight:600}.home-module.orange .home-module-icon{background:var(--ui-hover);color:var(--ui-muted-text)}.home-module.blue .home-module-icon{background:var(--ui-info-bg);color:var(--ui-info)}.home-module.neutral .home-module-icon{background:var(--portal-canvas);color:var(--portal-muted)}.home-module h3{font-size:23px;letter-spacing:-.035em;margin:23px 0 9px;font-weight:650}.home-module p{font-size:13px;line-height:1.75;color:var(--portal-muted);margin:0 0 24px;max-width:290px}.home-module-action{margin-top:auto;display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--portal-line);padding:17px 0;color:var(--portal-blue);font-size:12px;font-weight:600;gap:12px}.home-module-action span:last-child{font-size:19px;font-weight:400}.home-footnote{display:flex;justify-content:space-between;gap:20px;border-top:1px solid var(--portal-line);margin-top:48px;padding-top:19px;color:var(--portal-muted);font-size:10px;letter-spacing:.025em}.home-footnote span:first-child{font-size:9px;letter-spacing:.12em}
@media(min-width:1600px){.home-content{max-width:1600px}.home-modules{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1080px){.home-modules{grid-template-columns:repeat(2,minmax(0,1fr))}.home-date{display:none}.home-welcome{padding:44px 0 38px}.home-content{padding-inline:28px}.home-module{padding-inline:23px}}
@media(max-width:600px){.home-rail{width:62px;padding:16px 4px;gap:25px}.home-monogram img{width:32px;height:32px}.home-nav{font-size:8px;min-height:57px;gap:6px}.home-nav-icon{font-size:15px}.home-content{margin-left:62px;padding:0 17px 22px}.home-topbar{height:73px;gap:8px}.home-identity>span:first-child{display:none}.home-avatar{width:28px;height:28px;font-size:10px}.home-welcome{padding:34px 0}.home-eyebrow{font-size:8px;letter-spacing:.1em;gap:7px}.home-eyebrow:before{width:14px}.home-welcome h1{font-size:28px;line-height:1.18;margin:16px 0 12px}.home-welcome p{font-size:12px;line-height:1.7}.home-section-heading{display:block;margin-bottom:17px}.home-section-heading h2{font-size:16px;margin-bottom:6px}.home-section-heading>span{font-size:11px}.home-modules{grid-template-columns:1fr;gap:14px}.home-module{min-height:233px;padding:20px 20px 0;border-radius:10px}.home-module h3{font-size:22px;margin-top:18px}.home-module-icon{height:37px;width:37px;font-size:15px}.home-module-meta>span:last-child{font-size:8px}.home-module p{font-size:12px}.home-module-action{font-size:11px;padding:15px 0}.home-footnote{flex-direction:column;gap:9px;margin-top:30px;line-height:1.7}}
@media(prefers-reduced-motion:reduce){.home-module{transition:none}.home-module:hover{transform:none}}

.portal-icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.dashboard-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:18px;margin-bottom:24px}.dashboard-metric{background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:12px;padding:22px;display:flex;flex-direction:column;gap:10px}.dashboard-metric>span{font-size:12px;color:var(--portal-muted)}.dashboard-metric strong{font-size:34px;font-weight:650;letter-spacing:-.04em;color:var(--portal-blue)}.dashboard-metric small{font-size:10px;color:var(--portal-muted)}.dashboard-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.dashboard-panels>.dashboard-chart:first-child{grid-column:1/-1}.dashboard-chart{background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:12px;padding:24px;min-width:0}.dashboard-chart h3{margin:0;font-size:17px}.dashboard-chart>p{margin:7px 0 20px}.dashboard-bar{margin:13px 0}.dashboard-bar>div{display:flex;justify-content:space-between;gap:16px;font-size:12px}.dashboard-bar span{overflow-wrap:anywhere}.dashboard-bar strong{color:var(--portal-blue);font-size:12px}.dashboard-bar progress{width:100%;height:7px;display:block;margin-top:8px;appearance:none;border:0;border-radius:9px;overflow:hidden;background:var(--portal-soft-blue)}.dashboard-bar progress::-webkit-progress-bar{background:var(--portal-soft-blue);border-radius:9px}.dashboard-bar progress::-webkit-progress-value{background:var(--portal-chart-blue);border-radius:9px}.dashboard-bar progress::-moz-progress-bar{background:var(--portal-chart-blue);border-radius:9px}.dashboard-chart:last-child progress::-webkit-progress-value{background:var(--ui-primary)}.dashboard-source{font-size:11px;color:var(--portal-muted);margin-top:20px}.table-sort{padding:0;background:transparent;color:inherit;text-transform:inherit;font:inherit;letter-spacing:inherit;min-height:30px;white-space:nowrap}.employee-data-table tbody tr{cursor:pointer;touch-action:manipulation}.employee-data-table tbody tr:focus-visible{outline:2px solid var(--ui-muted);outline-offset:-2px}.employee-data-table tbody tr:hover{background:var(--portal-soft-blue)}
@media(max-width:700px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.dashboard-metric{padding:16px;min-width:0}.dashboard-metric strong{font-size:28px}.dashboard-panels{grid-template-columns:1fr;gap:15px}.dashboard-chart{padding:18px}.home-welcome{padding-bottom:30px}}@media(max-width:380px){.dashboard-metrics{grid-template-columns:1fr}}

/* Employee profile: private portrait, stable identity and grouped forms. */
.employee-profile{display:flex;align-items:center;gap:24px;padding:28px;background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:14px;border-top:3px solid var(--ui-line);flex-wrap:wrap}.employee-profile-title{flex:1;min-width:180px}.employee-profile-title h1{font-size:clamp(25px,3vw,36px);overflow-wrap:anywhere}.employee-profile-title p{margin:6px 0}.employee-alias{font-size:17px;color:var(--ui-muted-text)}.employee-avatar{display:inline-flex;position:relative;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;overflow:hidden;background:var(--portal-soft-blue);color:var(--portal-blue);font-size:12px;font-weight:700;border:1px solid var(--portal-line)}.employee-avatar.large{width:96px;height:96px;flex-basis:96px;font-size:28px}.employee-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.employee-identity{display:flex;align-items:center;gap:12px}.employee-identity small{color:var(--ui-muted-text)}.employee-photo-controls{flex-basis:100%;border-top:1px solid var(--portal-line);padding-top:8px;display:flex;align-items:end;gap:12px;flex-wrap:wrap}.employee-photo-controls>div{flex:1;min-width:180px}.employee-photo-controls p{flex-basis:100%;margin:0}.employee-editor .employee-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.employee-editor .profile-groups{display:block}.profile-group{margin:8px 0 28px;padding-bottom:22px;border-bottom:1px solid var(--portal-line)}.profile-group h3{color:var(--portal-blue);font-size:13px;letter-spacing:.06em;text-transform:uppercase;margin:18px 0 4px}.employee-editor input[type=file]{max-width:100%}@media(max-width:600px){.employee-editor .employee-form-grid{grid-template-columns:1fr}.employee-profile{padding:20px;gap:16px}.employee-avatar.large{width:72px;height:72px;flex-basis:72px}.employee-photo-controls button{width:100%}}

.employee-profile-title .badge{display:inline-block}

.worker-rates-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:24px 0}.worker-rate-card{padding:22px;border:1px solid var(--portal-line);border-radius:12px;background:var(--portal-surface);min-width:0}.worker-rate-card h3{font-size:19px;margin:10px 0}.worker-rate-amount{font-size:27px;color:var(--portal-blue);display:block;margin:16px 0 6px}.worker-rate-empty{color:var(--portal-muted);padding:12px 0}.worker-rate-card .eyebrow{font-size:10px}.worker-rate-pending{margin-top:16px;padding:16px;background:var(--ui-warn-bg);border-radius:8px}.worker-rate-pending h4{margin:0 0 10px}.worker-rate-pending button{margin:6px 6px 0 0}.worker-rate-history{margin-top:20px;border-top:1px solid var(--portal-line);padding-top:14px}.worker-rate-history summary{cursor:pointer;color:var(--portal-blue);font-size:12px}.worker-rate-history section{border-bottom:1px solid var(--portal-line);padding:10px 0}.worker-rate-history h4{font-size:12px}.worker-rate-editor{margin-top:24px;border:1px solid var(--ui-line)}.worker-rate-editor[open]{width:min(720px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:auto;margin:auto;padding:24px;border-radius:12px;background:var(--portal-surface)}.worker-rate-editor::backdrop{background:var(--ui-backdrop)}.worker-rate-editor .actions{margin-top:18px}.rate-unit{align-self:end;color:var(--portal-muted)} @media(max-width:650px){.worker-rates-grid{grid-template-columns:1fr}.worker-rate-card{padding:18px}.worker-rate-editor .employee-form-grid{grid-template-columns:1fr}}

/* R1: sidebar tetap dan ritme jarak yang konsisten. */
body.ui-shell{padding-left:82px;background-color:var(--portal-canvas);color:var(--portal-ink)}
.ui-shell>header{padding:14px 24px;min-height:60px;margin:0;border-bottom:1px solid var(--portal-line)}
.ui-shell main,.ui-shell.employee-window main{width:100%;max-width:1440px;margin:20px auto;padding:0 24px}
.ui-shell.portal-home main{margin:0;padding:0;max-width:none}
.ui-shell .home-content{margin-left:0;padding:0 24px 20px;min-height:100dvh;max-width:1440px}
.ui-shell h1{font-size:30px;line-height:1.25;margin:0 0 12px;letter-spacing:-.03em}
.ui-shell h2{font-size:20px;line-height:1.3;margin:0 0 12px}.ui-shell h3{font-size:16px;line-height:1.35;margin:0 0 10px}.ui-shell p{line-height:1.5;margin:8px 0 12px}
.ui-shell .card,.ui-shell.employee-window .card{padding:20px;border-radius:10px}
.ui-shell .page-title{margin:0 0 20px;gap:16px}.ui-shell .employee-hero{margin:0 0 18px}.ui-shell .employee-hero h1{margin:6px 0 10px;font-size:30px}.ui-shell .employee-hero>.eyebrow{display:none}
.ui-shell .toolbar{margin:0 0 14px;gap:12px;flex-wrap:wrap;align-items:center}.ui-shell .toolbar h2{margin:0;margin-right:auto}.ui-shell .toolbar input{flex:1;min-width:170px;margin:0}.ui-shell .actions{gap:8px}.ui-shell .tabs{margin:16px 0;gap:8px;flex-wrap:wrap}
.ui-shell button,.ui-shell .button-link{padding:9px 13px;min-height:38px;line-height:1.35}.ui-shell input,.ui-shell select{padding:9px 11px;min-height:38px;margin-bottom:10px}.ui-shell input[type=checkbox]{min-height:0}.ui-shell label{margin-top:10px}
.ui-shell th,.ui-shell td{padding:11px 14px;line-height:1.4}.ui-shell .table-sort{padding:2px 0;min-height:28px;text-align:left;white-space:nowrap}
.ui-shell .table-wrap{margin-top:12px}.ui-shell .ui-pagination{display:flex;align-items:center;margin-top:14px;gap:12px;flex-wrap:wrap}.ui-shell .ui-count{margin-right:auto;color:var(--portal-muted);font-size:13px}
.ui-shell .status-grid{margin:18px 0;gap:14px}.ui-shell .status-grid .card{padding:16px}.ui-shell .metric{font-size:22px}
.ui-shell .home-topbar{height:64px}.ui-shell .home-welcome{padding:24px 0;gap:20px}.ui-shell .home-welcome h1{margin:10px 0 0;font-size:32px}.ui-shell .home-section-heading{margin-bottom:14px}
.ui-shell .dashboard-metrics{gap:14px;margin:0 0 18px}.ui-shell .dashboard-metric{padding:18px;min-height:112px}.ui-shell .dashboard-metric strong{font-size:32px;margin:8px 0}.ui-shell .dashboard-panels{gap:16px}.ui-shell .dashboard-chart{padding:20px}.ui-shell .dashboard-bar{margin-top:12px}.ui-shell .home-footnote{margin-top:22px;padding-top:14px}
.ui-shell .home-rail{gap:20px;padding:18px 6px 12px;overflow-y:auto}.ui-shell .home-rail nav{gap:6px}.ui-shell .home-nav{min-height:60px;gap:5px}.ui-shell .home-nav.active{background:var(--ui-primary);color:var(--portal-surface)}.ui-shell .home-nav:focus-visible{outline:3px solid var(--ui-muted);outline-offset:2px}
.ui-shell .employee-form-grid{gap:0 18px}.ui-shell .employee-form-grid label{margin-top:10px}.ui-shell .employee-save{padding-top:16px;margin-top:16px}.ui-shell .profile-group{padding:16px}.ui-shell .employee-profile{gap:16px;padding:16px}
.ui-shell .salary-current{padding:16px;margin:12px 0}.ui-shell .salary-editor{padding:8px 0 16px}.ui-shell .salary-history{padding-top:16px}.ui-shell .salary-history details{padding:12px 0}.ui-shell .beta-panels{gap:18px;margin-top:18px}.ui-shell .beta-card{margin-top:14px}.ui-shell .beta-facts{gap:8px 16px}.ui-shell .grant{padding:12px;gap:12px}.ui-shell .split{gap:24px}
#ui-filter-dialog{width:min(800px,calc(100vw - 32px));max-height:85dvh;padding:22px;border:1px solid var(--portal-line);border-radius:12px;overflow:auto;color:var(--portal-ink);background:var(--portal-surface)}#ui-filter-dialog::backdrop{background:var(--ui-backdrop)}#ui-filter-dialog .dialog-head{margin-bottom:18px}#ui-filter-dialog .dialog-head h2{margin:0}#ui-filter-dialog .employee-filter{border:0;padding:0;margin:0;background:none}#ui-filter-dialog .employee-filter-row{padding:12px 0;gap:12px}#ui-filter-dialog .employee-filter-saved{margin-top:20px;padding-top:16px;border-top:1px solid var(--portal-line)}#ui-filter-dialog .ui-filter-done{margin-top:18px}#ui-filter-dialog select{width:100%}
@media(max-width:800px){.ui-shell .employee-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ui-shell .dashboard-panels{grid-template-columns:1fr}.ui-shell .home-identity>span:first-child{display:none}}
@media(max-width:600px){body.ui-shell{padding-left:62px}.ui-shell>header{padding:12px 14px}.ui-shell main,.ui-shell.employee-window main{padding:0 14px;margin:16px auto}.ui-shell .home-content{padding:0 14px 18px;margin-left:0}.ui-shell .card,.ui-shell.employee-window .card{padding:14px}.ui-shell h1,.ui-shell .employee-hero h1,.ui-shell .home-welcome h1{font-size:25px}.ui-shell h2{font-size:18px}.ui-shell .home-topbar{height:58px}.ui-shell .home-welcome{padding:20px 0}.ui-shell .home-rail{width:62px;padding:14px 4px;gap:18px}.ui-shell .home-nav{min-height:56px;font-size:8px}.ui-shell .toolbar{flex-direction:row;align-items:center;gap:8px}.ui-shell .toolbar h2{flex-basis:100%}.ui-shell .toolbar input{min-width:0;flex-basis:100%}.ui-shell .employee-form-grid{grid-template-columns:1fr}.ui-shell .dashboard-metrics{gap:10px}.ui-shell .dashboard-metric{padding:12px;min-height:100px}.ui-shell .dashboard-metric strong{font-size:26px}.ui-shell .dashboard-chart{padding:14px}.ui-shell th,.ui-shell td{padding:10px 12px}.ui-shell .tabs button{padding:8px 10px}.ui-shell .ui-pagination{gap:8px}.ui-shell .ui-count{flex-basis:100%}#ui-filter-dialog{height:auto;max-height:90dvh;padding:16px;margin:auto}.ui-shell .auth-layout{gap:20px}.ui-shell .intro h1{font-size:27px}}

/* R2: rail penuh, action row seimbang, dan pager ringkas. */
.ui-shell #ui-sidebar{padding-inline:0;overflow-x:hidden;align-items:center}
/* Chromium memakai pseudo-element agar tombol panah bawaan tidak muncul. */
.ui-shell #ui-sidebar::-webkit-scrollbar{width:6px}
.ui-shell #ui-sidebar::-webkit-scrollbar-track{background:var(--portal-navy)}
.ui-shell #ui-sidebar::-webkit-scrollbar-thumb{background:var(--ui-primary);border-radius:6px}
.ui-shell #ui-sidebar::-webkit-scrollbar-thumb:hover{background:var(--ui-primary)}
.ui-shell #ui-sidebar::-webkit-scrollbar-button{display:none;width:0;height:0}
.ui-shell #ui-sidebar::-webkit-scrollbar-corner{background:var(--portal-navy)}
@supports not selector(::-webkit-scrollbar){
 .ui-shell #ui-sidebar{scrollbar-width:thin;scrollbar-color:var(--ui-text) var(--portal-navy)}
}

.ui-shell #ui-sidebar nav{width:100%;min-width:0;grid-template-columns:minmax(0,1fr)}
.ui-shell #ui-sidebar .home-monogram{flex-shrink:0;margin-inline:auto}
.ui-shell #ui-sidebar .home-nav{width:100%;min-width:0;margin-inline:0;padding-inline:4px;border-radius:0;box-shadow:none}
.ui-shell #ui-sidebar .home-nav>span{max-width:100%;overflow-wrap:anywhere;text-align:center}
.ui-shell #ui-sidebar .home-nav.active{border-radius:0;box-shadow:none}
/* UI1: baris filter rata tengah â label dan kontrol sebaris, tinggi seragam 40px (dialog Filter/Kolom bersama). */
.ui-filter-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 12px}
.ui-filter-row label{margin:0;display:inline-flex;align-items:center;flex-wrap:wrap;min-height:40px;font-weight:600;column-gap:8px;row-gap:6px}
.ui-filter-row label>select,.ui-filter-row label>input:not([type=checkbox]),.ui-filter-row label>.pss{flex:1 1 160px;min-width:0}
.ui-filter-row>select,.ui-filter-row>input:not([type=checkbox]),.ui-filter-row>.pss,.ui-filter-row>button{min-height:40px;margin:0}
.ui-filter-row .pss>.pss-input{min-height:40px}
.ui-filter-row input[type=checkbox]{min-height:0;width:auto;margin:0 6px 0 0;flex:0 0 auto}
.ui-filter-item{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px;flex:0 1 auto;min-width:0}
.ui-filter-item>select,.ui-filter-item>input:not([type=checkbox]),.ui-filter-item>.pss{flex:1 1 160px;min-width:0;min-height:40px;margin:0}
@media(max-width:700px){.ui-filter-item{flex-basis:100%}.ui-filter-item>select,.ui-filter-item>input:not([type=checkbox]),.ui-filter-item>.pss{flex-basis:100%}.ui-filter-row label:has(select,.pss,input:not([type=checkbox])){flex:1 1 100%}.ui-filter-row label>select,.ui-filter-row label>input:not([type=checkbox]),.ui-filter-row label>.pss{flex-basis:100%}}
.ui-shell .ui-list-controls{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin:0 0 16px;min-width:0}
.ui-shell .ui-list-controls>.button-link,.ui-shell .ui-list-controls>button{flex:0 0 auto;margin:0;white-space:nowrap}
.ui-shell .ui-search-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-left:auto;width:min(100%,360px);min-width:0}
.ui-shell .ui-search-actions input{width:270px;min-width:0;flex:1 1 270px;margin:0}
.ui-shell .ui-search-actions .ui-filter-button{flex:0 0 auto;margin:0}
.ui-shell .ui-pagination{display:flex;justify-content:flex-end;align-items:center;gap:8px;flex-wrap:nowrap;margin-top:18px;padding:2px 0 0;width:100%}
.ui-shell .ui-pagination button{min-width:34px;min-height:34px;padding:6px 10px;font-size:16px;line-height:20px}
.ui-shell .ui-page-number{min-width:38px;text-align:center;font-size:13px;line-height:34px;font-variant-numeric:tabular-nums}
@media(max-width:600px){.ui-shell .ui-list-controls{gap:12px;margin-bottom:14px}.ui-shell .ui-search-actions{width:min(100%,360px)}.ui-shell .ui-pagination{margin-top:16px}.ui-shell #ui-sidebar{padding-inline:0}}

/* R3: entry verification and compact refresh action. */
#ui-salary-entry{width:min(440px,calc(100vw - 32px));height:auto;max-height:90dvh;margin:auto;padding:22px;border:1px solid var(--portal-line);border-radius:12px;color:var(--portal-ink);background:var(--portal-surface);overflow:auto}
#ui-salary-entry:not([open]){display:none}#ui-salary-entry::backdrop{background:var(--ui-backdrop)}
#ui-salary-entry .dialog-head{gap:16px;margin-bottom:14px}#ui-salary-entry .dialog-head h2{margin:0}#ui-salary-entry .ui-dialog-close{padding:4px 10px;min-width:34px;font-size:22px;line-height:1}
#ui-salary-entry input{width:100%}#ui-salary-entry .actions{justify-content:flex-end;margin-top:18px}#ui-salary-entry .ui-demo-credentials{font-size:12px;color:var(--portal-muted)}#ui-salary-entry .ui-form-error{color:var(--ui-danger);font-size:13px}
.ui-shell .ui-refresh-button{display:inline-flex;align-items:center;justify-content:center;width:38px;min-width:38px;padding:8px}
.ui-shell .ui-refresh-button svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ui-shell .ui-list-controls>.actions{display:flex;align-items:center;gap:8px;margin:0}

/* Sticky column headers inside every independently scrolling data table. */
.ui-shell .table-wrap{max-height:min(60dvh,620px);overflow:auto;overscroll-behavior:contain;position:relative;isolation:isolate}
.ui-shell .table-wrap table{border-collapse:separate;border-spacing:0;width:100%}
.ui-shell .table-wrap thead th{position:sticky;top:0;z-index:2;background:var(--portal-soft-blue);box-shadow:none}
.ui-shell .table-wrap:focus-visible{outline:2px solid var(--ui-muted);outline-offset:3px}

/* R4: tighter identity/actions gap and distinct icon actions. */
.ui-shell .ui-claim-heading{margin-bottom:12px;gap:12px;align-items:flex-start}
.ui-shell .ui-claim-heading h1{margin-bottom:8px}.ui-shell .ui-claim-heading p{margin:6px 0 0}
.ui-shell .ui-icon-button{display:inline-flex;align-items:center;justify-content:center;width:38px;min-width:38px;height:38px;min-height:38px;padding:8px;border-radius:7px;border:1px solid transparent;box-shadow:none}
.ui-shell .ui-icon-button svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ui-shell .ui-icon-neutral{color:var(--portal-muted);background:var(--portal-canvas);border-color:var(--portal-line)}.ui-shell .ui-icon-blue{color:var(--ui-info);background:var(--ui-info-bg);border-color:var(--ui-info-line)}.ui-shell .ui-icon-green{color:var(--ui-ok);background:var(--ui-ok-bg);border-color:var(--ui-ok-line)}.ui-shell .ui-icon-amber{color:var(--ui-warn);background:var(--ui-warn-bg);border-color:var(--ui-warn-line)}.ui-shell .ui-icon-red{color:var(--ui-danger);background:var(--ui-danger-bg);border-color:var(--ui-danger-line)}
.ui-shell .ui-icon-button:hover{filter:brightness(.95)}.ui-shell .ui-icon-button:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.ui-shell .ui-section-heading{display:flex;align-items:center;justify-content:flex-start;gap:8px;margin-bottom:12px}.ui-shell .ui-section-heading h3{margin:0}
.ui-shell .ui-claim-history>h3{margin-bottom:8px}.ui-shell .ui-history-toggle{margin-bottom:10px}.ui-shell .ui-history-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
.ui-shell .ui-claim-history>[hidden]{display:none}.ui-shell .ui-open-row{cursor:pointer}.ui-shell .ui-open-row:hover td{background:var(--portal-canvas)}.ui-shell .ui-open-row:focus-visible{outline:2px solid var(--ui-muted);outline-offset:-2px}

/* R5: state colors, content-sized entry form and fuller table viewport. */
.ui-shell .ui-status-draft{background:var(--ui-bg);color:var(--ui-muted-text);border:1px solid var(--ui-line)}
.ui-shell .ui-status-submitted{background:var(--ui-info-bg);color:var(--ui-info);border:1px solid var(--ui-info-line)}
.ui-shell .ui-status-beta_reviewed{background:var(--ui-warn-bg);color:var(--ui-warn);border:1px solid var(--ui-warn-line)}
.ui-shell .ui-status-beta_approved{background:var(--ui-ok-bg);color:var(--ui-ok);border:1px solid var(--ui-ok-line)}
.ui-shell .ui-status-cancelled{background:var(--ui-warn-bg);color:var(--ui-warn);border:1px solid var(--ui-warn-line)}
.ui-shell .ui-status-trashed{background:var(--ui-danger-bg);color:var(--ui-danger);border:1px solid var(--ui-danger-line)}
.ui-shell .ui-icon-purple{background:var(--ui-info-bg);color:var(--ui-info);border-color:var(--ui-info-line)}
.ui-shell .ui-claim-status-line{display:flex;align-items:center;gap:10px}
body.ui-shell>footer{display:none}.ui-shell main,.ui-shell.employee-window main{margin-bottom:14px}.ui-shell .home-content{padding-bottom:14px}.ui-shell .home-footnote{margin-top:16px;padding-top:12px}
.ui-shell .table-wrap{max-height:min(60dvh,620px)}
body.ui-shell #ui-salary-entry{box-sizing:border-box;width:min(380px,calc(100vw - 32px));height:fit-content!important;block-size:fit-content!important;min-height:0!important;min-block-size:0!important;max-height:calc(100dvh - 32px);inset:0;margin:auto;padding:18px 20px;align-self:center}
#ui-salary-entry form{display:block;height:auto;min-height:0;margin:0;padding:0}
#ui-salary-entry .dialog-head{margin-bottom:12px}#ui-salary-entry .dialog-head h2{font-size:20px;line-height:1.3}#ui-salary-entry .ui-dialog-close{height:32px;min-height:32px;width:32px;padding:4px}
#ui-salary-entry label{margin:10px 0 6px;font-size:13px;line-height:1.35}#ui-salary-entry input{height:38px;min-height:38px;margin:0 0 10px;padding:8px 10px}
#ui-salary-entry .actions{margin:12px 0 0;gap:8px}#ui-salary-entry .actions button{min-height:36px;padding:8px 12px}#ui-salary-entry .ui-form-error{margin:6px 0}

/* R6: earlier table sizing; trim only the lower spacing. */
.ui-shell .ui-section-heading h3{flex:0 1 auto}
.ui-shell .ui-section-heading .ui-icon-button{flex:0 0 38px;margin-left:0}
.ui-shell .card,.ui-shell.employee-window .card{padding-bottom:14px}
.ui-shell .ui-pagination{margin-top:12px;padding-top:0}


/* Official Adhigana wordmark and separated authentication actions. */
header > .brand{display:inline-flex;align-items:center;gap:10px;white-space:nowrap}
.brand-logo{display:block;width:auto;height:32px;object-fit:contain;flex:none}
.auth-card > form + button.secondary{margin-top:12px}
@media(max-width:760px){header > .brand{gap:8px}.brand-logo{height:24px}}

/* One global exit action, aligned to the right on every authenticated screen. */
.ui-logout{flex:0 0 auto;white-space:nowrap;font-size:13px;font-weight:600;min-height:38px;padding:8px 14px}
header > .ui-logout{margin-left:auto}
.home-identity > .ui-logout{margin-left:3px}
.ui-logout:hover{border-color:var(--ui-line);color:var(--ui-text);background:var(--ui-bg)}
@media(max-width:480px){.ui-shell > header{gap:8px}.ui-shell > header > .brand{font-size:15px;gap:6px}.ui-shell > header .brand-logo{height:22px}.ui-shell .ui-logout{font-size:12px;padding:8px 10px;min-height:36px}.home-identity{gap:8px}}

/* D1: bounded two-day Schedule widget; rows reuse the shared Calendar popup. */
.dashboard-widget[data-widget-id=schedule]{min-height:210px}
.dw-editing .dashboard-widget[data-widget-id=schedule]{min-height:330px}
.dw-body.dw-schedule{height:280px;flex-basis:auto;overflow:hidden;display:flex;flex-direction:column;gap:8px}
.dw-schedule-day{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;gap:4px}
.dw-schedule-day h4{margin:0;font-size:12px;line-height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--portal-muted)}
.dw-schedule-list{flex:1;min-height:0;overflow:hidden}
.dw-schedule-list .dw-schedule-event{display:flex;align-items:center;gap:10px;width:100%;height:32px;min-height:32px;padding:4px 0;border:0;border-radius:0;background:transparent;color:var(--portal-blue);font-size:13px;text-align:left}
.dw-schedule-time{flex-shrink:0;font-size:12px}
.dw-schedule-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dw-schedule-event:hover{background:var(--portal-soft-blue)}
.dw-schedule-more{display:flex;align-items:center;height:32px;font-size:12px;color:var(--portal-blue)}
.dw-schedule-list p{margin:4px 0}
/* AI3: widget Perlu dicek: jurnal. */
.dw-jurnal{list-style:none;margin:0;padding:0;display:grid;gap:8px}.dw-jurnal-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid var(--portal-line)}.dw-jurnal-row:last-child{border-bottom:0}.dw-jurnal-row>div{display:grid;gap:2px;min-width:0}.dw-jurnal-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;color:var(--portal-blue)}.dw-jurnal-row small{font-size:11px;color:var(--portal-muted)}.dw-jurnal-row a{flex-shrink:0;font-size:13px}

/* Personal Dashboard widgets. Fixed sizes bound content, never stretch the page. */
.dw-topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px;flex-wrap:wrap}.dw-topbar h2{margin:0 0 4px;font-size:20px}.dw-caption{font-size:12px;color:var(--portal-muted)}.dw-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dw-actions button{min-height:38px;padding:8px 13px}.dashboard-widget-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px;align-items:start}.dashboard-widget{display:flex;flex-direction:column;gap:12px;min-width:0;background:var(--portal-surface);border:1px solid var(--portal-line);border-radius:12px;padding:20px;overflow:hidden}.dw-width-4{grid-column:span 4}.dw-width-6{grid-column:span 6}.dw-width-12{grid-column:span 12}.dw-rows-0{height:auto}.dw-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;flex-shrink:0}.dw-heading h3{margin:0;font-size:16px;line-height:1.4;color:var(--portal-blue)}.dw-body{min-height:0;overflow:auto;overscroll-behavior:contain;flex:1}.dw-body .dashboard-bar:first-child{margin-top:2px}.dw-body .dashboard-bar:last-child{margin-bottom:2px}.dw-metric{display:flex;flex-direction:column;gap:12px}.dw-metric>strong{font-size:34px;font-weight:650;letter-spacing:-.04em;color:var(--portal-blue)}.dw-metric>small{font-size:11px;color:var(--portal-muted)}.dw-missing progress::-webkit-progress-value{background:var(--ui-primary)}.dw-missing progress::-moz-progress-bar{background:var(--ui-primary)}.dw-editing .dashboard-widget{border:1px dashed var(--portal-blue-border);min-height:245px}.dw-order{display:flex;gap:4px;margin-left:auto}.dw-order button,.dw-resize{display:grid;place-items:center;min-height:32px;min-width:32px;padding:3px;font-size:18px;line-height:1}.dw-handle,.dw-resize{touch-action:none;user-select:none}.dw-handle{cursor:grab}.dw-handle:active{cursor:grabbing}.dw-resize{cursor:nwse-resize;align-self:end;margin-left:auto}.dw-sizing{display:flex;align-items:end;gap:8px;padding-top:10px;border-top:1px solid var(--portal-line);flex-shrink:0;flex-wrap:wrap}.dw-size-label{margin:0;display:grid;gap:4px;font-size:10px;font-weight:500;min-width:0}.dw-size-label select{font-size:12px;padding:5px 8px;width:100%;min-height:32px}.dw-manipulating{outline:2px solid var(--ui-muted);outline-offset:2px;opacity:.88}.dw-drop-target{outline:3px dashed var(--ui-muted);outline-offset:3px;background:var(--ui-bg)}.dw-picker{display:flex;gap:10px 24px;flex-wrap:wrap;border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-surface);padding:14px 18px;margin-bottom:18px}.dw-picker[hidden],.dw-error[hidden]{display:none}.dw-picker label{display:flex;align-items:center;gap:8px;margin:0;font-size:13px;font-weight:500;min-height:32px;cursor:pointer}.dw-picker input{width:18px;height:18px}.dw-empty{grid-column:1/-1;margin:0;padding:24px;background:var(--portal-surface);border:1px dashed var(--portal-line);border-radius:10px}.dw-error{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding:12px 16px;background:var(--ui-danger-bg);border:1px solid var(--ui-danger-line);border-radius:8px;margin-bottom:16px;font-size:13px}.dw-error button{min-height:34px;padding:6px 10px}.dw-body:focus-visible{outline:2px solid var(--ui-muted);outline-offset:-2px}
@media(max-width:1000px){.dashboard-widget-grid{gap:14px}.dashboard-widget{padding:16px}.dw-width-4{grid-column:span 6}.dw-heading h3{font-size:15px}}
@media(max-width:650px){.dw-width-4,.dw-width-6,.dw-width-12{grid-column:1/-1}.dw-actions{gap:6px}.dw-actions button{font-size:12px;padding:8px 10px}.dw-topbar{gap:10px}.dw-picker{gap:8px;padding:12px}.dw-picker label{flex-basis:100%}.dw-caption{font-size:11px}}
.dw-rows-4{height:160px}
.dw-rows-5{height:200px}
.dw-rows-6{height:240px}
.dw-rows-7{height:280px}
.dw-rows-8{height:320px}
.dw-rows-9{height:360px}
.dw-rows-10{height:400px}
.dw-rows-11{height:440px}
.dw-rows-12{height:480px}
.dw-rows-13{height:520px}
.dw-rows-14{height:560px}
.dw-rows-15{height:600px}
.dw-rows-16{height:640px}

/* Employee list: explicit population and permission-scoped column choices. */
.ui-shell .employee-list-controls .employee-inactive-toggle{display:flex;align-items:center;gap:8px;margin:0;font-weight:500;white-space:nowrap;min-height:38px}
.ui-shell .employee-list-controls .employee-inactive-toggle input{margin:0;flex:0 0 auto;width:auto}
.ui-shell .employee-list-controls .ui-search-actions{width:min(100%,470px)}
.employee-column-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 20px}
.employee-column-options>p{grid-column:1/-1;margin-top:0}
.employee-column-options>label{display:flex;align-items:center;gap:9px;margin:0;min-height:40px;overflow-wrap:anywhere}
.employee-column-options input{margin:0;flex:0 0 auto;width:auto}
.employee-list-count{margin:0 0 9px}
@media(max-width:600px){.employee-column-options{grid-template-columns:1fr}.ui-shell .employee-list-controls .ui-search-actions{flex-wrap:wrap}.ui-shell .employee-list-controls .ui-search-actions>input{flex-basis:100%;width:100%}}

/* Salary category views share the existing per-component tariff workflow. */
.worker-rate-group{margin-top:28px;padding-top:22px;border-top:1px solid var(--line)}.worker-rate-group>h3{margin:0 0 12px;font-size:21px}.worker-rate-required{background:var(--portal-canvas);border:1px solid var(--portal-line);border-radius:12px;padding:22px}.worker-rate-completeness{padding:12px 14px;background:var(--ui-warn-bg);border-radius:8px;line-height:1.5}.worker-rate-completeness[data-complete=true]{background:var(--ui-ok-bg);color:var(--ui-ok)}.worker-rates-main{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:0}.worker-rates-main .worker-rate-card{padding:18px}.worker-rate-projects{border-top:1px solid var(--line);padding-top:20px}.worker-rate-projects>h4{font-size:18px;margin:0 0 8px}.salary-legacy-history{margin-top:28px;border-top:1px solid var(--line);padding:18px 0}.salary-legacy-history>summary{font-weight:650;cursor:pointer}.salary-legacy-history details{padding:14px 0;border-bottom:1px solid var(--line)}.salary-category-notice{padding:16px;background:var(--ui-warn-bg);border-radius:8px}.worker-rate-required .eyebrow{line-height:1.7;letter-spacing:.08em}@media(max-width:1000px){.worker-rates-main{grid-template-columns:1fr}}@media(max-width:650px){.worker-rate-required{padding:14px}.worker-rate-group>h3{font-size:19px}.worker-rate-required .worker-rate-card{padding:16px}}

/* Two salary menus share navigation while keeping their verification separate. */
.salary-menu-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:24px}.salary-menu-card{display:block;border:1px solid var(--portal-line);border-radius:12px;padding:24px;color:var(--portal-ink);text-decoration:none;background:var(--portal-surface)}.salary-menu-card:hover{border-color:var(--portal-blue-border);background:var(--portal-canvas)}.salary-menu-card h2{margin-bottom:12px}.salary-menu-card .small{display:block;padding-top:14px;border-top:1px solid var(--line);color:var(--ui-text)}.ui-shell #ui-sidebar button.home-nav{border:0;background:transparent;box-shadow:none;color:var(--portal-muted);font-family:var(--ui-font)}.ui-shell #ui-sidebar button.home-nav.active{background:var(--ui-primary);color:var(--portal-surface)}.ui-salary-submenu{position:fixed;inset:0 auto auto 82px;margin:0;width:min(300px,calc(100vw - 96px));max-height:calc(100dvh - 16px);overflow-y:auto;border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-surface);box-shadow:0 8px 24px #00000012;padding:8px;color:var(--portal-ink)}.ui-salary-submenu a{display:block;padding:14px 12px;min-height:44px;border-radius:6px;color:inherit;text-decoration:none;line-height:1.45;font-size:14px;font-weight:600}.ui-salary-submenu a:hover,.ui-salary-submenu a.active{background:var(--portal-soft-blue)}.ui-salary-submenu a:focus-visible,.salary-menu-card:focus-visible{outline:3px solid var(--ui-muted);outline-offset:1px}.salary-legacy-area{margin-top:24px;padding-top:18px;border-top:1px solid var(--line)}@media(max-width:650px){.salary-menu-cards{grid-template-columns:1fr;gap:14px}.salary-menu-card{padding:18px}}@media(max-width:600px){.ui-salary-submenu{left:62px;width:calc(100vw - 76px)}}

/* Worker tariff tables and read-only assumptions; contained overflow preserves mobile navigation. */
.worker-rate-table-scroll{width:100%;max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:8px;margin:14px 0;overscroll-behavior-x:contain}.worker-rate-table-scroll:focus-visible{outline:3px solid var(--ui-muted);outline-offset:2px}.worker-rate-table,.worker-simulation-table{table-layout:fixed;white-space:normal;min-width:650px}.worker-rate-table caption,.worker-simulation-table caption{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.worker-rate-table th,.worker-rate-table td,.worker-simulation-table th,.worker-simulation-table td{padding:12px 14px;vertical-align:middle;position:static}.worker-rate-table th:first-child{width:31%}.worker-rate-table th:nth-child(2){width:20%}.worker-rate-table th:nth-child(3){width:24%}.worker-rate-table th:nth-child(4){width:25%}.worker-rate-unit{display:block;font-size:11px;font-weight:400;color:var(--muted);line-height:1.5;margin-top:5px}.worker-rate-table-amount{font-weight:700;color:var(--portal-blue);font-variant-numeric:tabular-nums;white-space:nowrap}.worker-rate-pending-badge{display:block;width:fit-content;margin-top:6px;font-size:11px;padding:4px 7px;border-radius:5px;background:var(--ui-warn-bg);color:var(--ui-warn)}.worker-rate-row-actions{display:flex;gap:6px;flex-wrap:wrap}.worker-rate-row-actions button{padding:7px 10px;min-height:36px;font-size:12px}.worker-rate-detail{margin:24px 0;padding:20px;border:1px solid var(--ui-line);border-radius:10px}.worker-rate-detail>.secondary{margin-top:18px}.worker-rate-detail .worker-rate-amount{font-size:24px}.worker-rate-simulation{margin-top:28px;padding-top:22px;border-top:2px solid var(--ui-line)}.worker-rate-simulation>h3{font-size:21px;margin:8px 0}.worker-simulation-controls{display:grid;grid-template-columns:minmax(220px,2fr) minmax(170px,1.2fr) minmax(120px,1fr);align-items:end;gap:16px}.worker-simulation-controls>div{min-width:0}.worker-simulation-check{display:flex;align-items:center;gap:10px;margin:0;min-height:45px;padding-bottom:4px}.worker-simulation-check input{flex:0 0 auto}.worker-simulation-table{min-width:790px;font-variant-numeric:tabular-nums}.worker-simulation-table th:first-child{width:32%}.worker-simulation-table thead th:not(:first-child){width:17%}.worker-simulation-table tbody th{background:transparent;color:var(--portal-ink);text-transform:none;letter-spacing:0;font-size:12px;font-weight:600}.worker-simulation-table td{text-align:right;white-space:nowrap;font-size:12px}.worker-simulation-table td[data-value=total]{background:var(--portal-soft-blue);color:var(--portal-blue);font-weight:750}.worker-simulation-note{font-size:12px;padding:10px 12px;background:var(--portal-soft-blue);border-radius:6px}.worker-simulation-excluded{padding-left:20px;color:var(--muted);font-size:12px;line-height:1.7}.worker-rate-required .worker-rate-table-scroll{background:var(--portal-surface)}.worker-rate-projects .worker-rate-table-scroll{margin-bottom:14px}@media(max-width:800px){.worker-simulation-controls{grid-template-columns:1fr 1fr}.worker-simulation-controls>div:first-child{grid-column:1/-1}}@media(max-width:520px){.worker-simulation-controls{grid-template-columns:1fr}.worker-simulation-controls>div:first-child{grid-column:auto}.worker-simulation-check{padding-top:8px}.worker-rate-detail{padding:14px}.worker-rate-table-scroll{border-radius:6px}.worker-rate-row-actions button{min-height:44px}.worker-rate-simulation>h3{font-size:19px}}

/* Keep scenario/component identity and the main amount visible together on phones. */
@media(max-width:520px){.worker-rate-table{width:650px;min-width:650px}.worker-rate-table th:first-child{width:110px}.worker-rate-table th:nth-child(2){width:108px}.worker-rate-table th:nth-child(3){width:162px}.worker-rate-table th:nth-child(4){width:270px}.worker-rate-table tbody td:first-child,.worker-rate-table thead th:first-child,.worker-simulation-table tbody th,.worker-simulation-table thead th:first-child{position:sticky;left:0;z-index:1;background:var(--portal-surface);box-shadow:none;overflow-wrap:anywhere}.worker-rate-table thead th:first-child,.worker-simulation-table thead th:first-child{z-index:2;background:var(--portal-soft-blue)}.worker-rate-table th,.worker-rate-table td,.worker-simulation-table th,.worker-simulation-table td{padding:10px 8px}.worker-rate-table td strong{font-size:12px}.worker-rate-table-amount{font-size:12px}.worker-simulation-table{width:700px;min-width:700px}.worker-simulation-table th:first-child{width:110px}.worker-simulation-table thead th:nth-child(2){width:108px}.worker-simulation-table thead th:nth-child(3){width:172px}.worker-simulation-table thead th:nth-child(4),.worker-simulation-table thead th:nth-child(5){width:155px}}

/* Masuk & password (tahap 1 UX 24 Sep 2026). */.ui-pw{position:relative;display:block}.ui-pw>input{width:100%;padding-right:128px}.ui-pw>.ui-pw-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);margin:0;min-height:0;height:34px;padding:0 12px;font-size:13px;width:auto}.ui-pw-rules{list-style:none;margin:6px 0 14px;padding:0;font-size:13px;color:var(--ui-muted-text);display:flex;flex-wrap:wrap;gap:4px 16px}.ui-pw-rules li::before{content:"\25CB\00A0"}.ui-pw-rules li.ok{color:var(--ui-ok);font-weight:600}.ui-pw-rules li.ok::before{content:"\2713\00A0"}.ui-login-mode{display:flex;margin:8px 0 14px;border:1px solid var(--portal-line);border-radius:10px;padding:3px;background:var(--portal-canvas)}.ui-login-mode button{flex:1;margin:0;border:0;background:transparent;color:var(--portal-ink);min-height:38px;box-shadow:none}.ui-login-mode button[aria-pressed=true]{background:var(--ui-panel);color:var(--portal-ink);font-weight:700;box-shadow:none}/* Tombol & tata letak (tahap 2 UX 24 Sep 2026). */.table-sort::after{content:"\2195";margin-left:5px;opacity:0;transition:opacity .15s}.table-sort:hover::after,.table-sort:focus-visible::after{opacity:.45}.table-sort[data-sort=asc]::after{content:"\2191";opacity:1}.table-sort[data-sort=desc]::after{content:"\2193";opacity:1}.employee-area-tabs:has(>a:only-child){display:none}.employee-filter .employee-inactive-toggle{display:flex;align-items:center;gap:8px;margin:0 0 12px}@media(max-width:640px){.table-wrap{max-height:none;overflow:visible;border:0;background:transparent}.table-wrap table{display:block;min-width:0!important;width:100%}.table-wrap thead{display:block}.table-wrap thead tr{display:flex;flex-wrap:wrap;gap:6px;padding:0 0 8px}.table-wrap thead th{display:block;position:static;left:auto;border:0;padding:0;background:transparent;box-shadow:none}.table-wrap thead th .table-sort{padding:6px 11px;border:1px solid var(--portal-line);border-radius:999px;background:var(--ui-panel);font-size:12px;min-height:0}.table-wrap thead th[aria-label=Aksi]{display:none}.table-wrap tbody{display:block}.table-wrap tbody tr{display:block;border:1px solid var(--portal-line);border-radius:12px;background:var(--portal-surface);padding:10px 14px;margin:0 0 10px}.table-wrap tbody td{display:flex;justify-content:space-between;align-items:center;gap:12px;border:0;padding:5px 0;text-align:right;white-space:normal;overflow-wrap:anywhere;min-width:0}.table-wrap tbody td::before{content:attr(data-label);color:var(--ui-muted-text);font-size:12px;text-align:left;flex:0 0 auto}.table-wrap tbody td[data-label=Aksi]::before{content:none}.table-wrap tbody td:first-child{font-weight:600}.ui-shell .table-wrap:not(:has(.ui-identity-table)){max-height:none;overflow:visible}.ui-shell .table-wrap:not(:has(.ui-identity-table)) thead th{position:static;background:transparent;box-shadow:none}}/* Salary approval queue: one scoped workspace with a nearby, disposable detail dialog. */
.salary-approvals{margin-top:20px}.salary-approvals>h3{font-size:22px;margin-bottom:10px}.salary-approvals>div:has(>input[type=search]){max-width:560px}.salary-approval-status{font-size:13px}.salary-approval-table-scroll{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:8px}.salary-approval-table{min-width:850px;table-layout:fixed;white-space:normal}.salary-approval-table th,.salary-approval-table td{position:static;vertical-align:top;overflow-wrap:anywhere}.salary-approval-table th:first-child{width:23%}.salary-approval-table th:nth-child(2){width:24%}.salary-approval-table th:nth-child(3){width:21%}.salary-approval-table th:nth-child(4){width:18%}.salary-approval-table th:nth-child(5){width:14%}.salary-approval-table td strong{font-size:13px}.salary-approval-table .salary-approval-blocked{color:var(--ui-warn);font-weight:700}.salary-approval-pages{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:16px}.salary-approval-pages span{font-size:12px;color:var(--muted)}.salary-approval-empty{padding:25px 0}.salary-approval-dialog{width:min(880px,94vw);margin:auto}.salary-approval-dialog[open]{display:block}.salary-approval-dialog>.dialog-head{position:sticky;top:-26px;background:var(--portal-surface);padding-top:5px;padding-bottom:12px;z-index:2}.salary-approval-dialog>h3{font-size:20px;margin-bottom:6px}.salary-approval-values{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.salary-approval-values>section{padding:16px;background:var(--portal-soft-blue);border:1px solid var(--line);border-radius:8px;min-width:0;overflow-wrap:anywhere}.salary-approval-values h4{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 14px}.salary-approval-values>section:last-child{background:var(--portal-soft-blue)}.salary-approval-values strong{font-size:20px}.salary-approval-dialog>.actions{margin-top:20px}.salary-approval-dialog p{overflow-wrap:anywhere}.salary-approvals-tab{font-variant-numeric:tabular-nums}@media(max-width:520px){.salary-approval-table{width:810px;min-width:810px}.salary-approval-table th:first-child{width:130px}.salary-approval-table th:nth-child(2){width:190px}.salary-approval-table th:nth-child(3){width:180px}.salary-approval-table th:nth-child(4){width:170px}.salary-approval-table th:nth-child(5){width:140px}.salary-approval-table th,.salary-approval-table td{padding:11px 9px}.salary-approval-table tbody td:first-child,.salary-approval-table thead th:first-child{position:sticky;left:0;background:var(--portal-surface);z-index:1;box-shadow:none}.salary-approval-table thead th:first-child{background:var(--portal-soft-blue);z-index:2}.salary-approval-dialog{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border-radius:0;padding:18px}.salary-approval-dialog>.dialog-head{top:-18px}.salary-approval-values{grid-template-columns:1fr;gap:12px}.salary-approval-values strong{font-size:19px}.salary-approval-dialog>.actions>button{flex:1;min-height:44px}}

.salary-approval-table{min-width:960px}.salary-approval-table th:first-child{width:20%}.salary-approval-table th:nth-child(2){width:8%}.salary-approval-table th:nth-child(3){width:23%}.salary-approval-table th:nth-child(4){width:20%}.salary-approval-table th:nth-child(5){width:17%}.salary-approval-table th:nth-child(6){width:12%}@media(max-width:520px){.salary-approval-table{width:900px;min-width:900px}.salary-approval-table th:first-child{width:130px}.salary-approval-table th:nth-child(2){width:90px}.salary-approval-table th:nth-child(3){width:190px}.salary-approval-table th:nth-child(4){width:180px}.salary-approval-table th:nth-child(5){width:170px}.salary-approval-table th:nth-child(6){width:140px}}

/* Portal workspace: ARUS structure, warm Portal identity, restrained section markers. */
body.ui-shell{--blue:var(--ui-muted-text);background:var(--portal-canvas);color:var(--portal-ink)}
.ui-shell>header,.ui-shell .home-topbar{background:var(--surface);min-height:72px;height:auto;padding-block:14px;border-bottom:1px solid var(--line)}
.ui-shell .home-topbar{margin-inline:-24px;padding-inline:24px}
.ui-shell main,.ui-shell.employee-window main{margin-top:24px;margin-bottom:24px}
.ui-shell .home-welcome{padding:28px 0 24px}
.ui-shell .home-welcome h1{font-size:30px;max-width:800px}
.ui-shell .card,.ui-shell.employee-window .card{padding:24px;border-radius:14px;border-color:var(--line);box-shadow:none}
.ui-shell h1{font-size:28px;font-weight:700;letter-spacing:-.025em}
.ui-shell h2{font-size:22px;font-weight:700;letter-spacing:-.015em}
.ui-shell .card>h1,.ui-shell .card>h2{padding-bottom:18px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.ui-shell .eyebrow,.ui-shell .home-eyebrow{color:var(--ui-text);letter-spacing:.12em;font-size:10px}
.ui-shell .worker-rate-group>h3,.ui-shell .worker-rate-simulation>h3{display:flex;align-items:center;gap:10px}
.ui-shell .worker-rate-group>h3:before,.ui-shell .worker-rate-simulation>h3:before{content:'';width:4px;height:18px;flex:0 0 4px;border-radius:2px;background:var(--ui-primary)}
.ui-shell .worker-rate-required{background:var(--portal-soft-blue);border-color:var(--portal-line);border-radius:10px}
.ui-shell .worker-employee-picker{grid-template-columns:minmax(0,560px);padding:4px 0 18px;border-bottom:1px solid var(--line);margin-bottom:4px}
.ui-shell .worker-employee-picker label{margin-top:8px}
.ui-shell .tabs{gap:4px;padding-bottom:0;border-bottom:1px solid var(--line);margin:20px 0}
.ui-shell .tabs>button{border-radius:7px 7px 0 0;border-color:transparent;background:transparent;color:var(--portal-muted);padding:12px 16px;min-height:44px}
.ui-shell .tabs>button[aria-selected=true]{background:var(--portal-soft-blue);border-bottom:3px solid var(--portal-blue);color:var(--portal-blue)}
.ui-shell .tabs>button:hover{background:var(--portal-soft-blue)}
.ui-shell button,.ui-shell .button-link{min-height:44px}
.ui-shell input:not([type=checkbox]):not([type=radio]),.ui-shell select{min-height:44px}
/* UI2: baris cari ringkas 40px — hanya kotak cari + tombol Filter/Kolom di .ui-search-actions, menimpa minimum 44px di atas. */
.ui-shell .ui-search-actions>input:not([type=checkbox]):not([type=radio]),.ui-shell .ui-search-actions>.ui-filter-button{min-height:40px}
.ui-shell .ui-icon-button,.ui-shell .ui-refresh-button{width:44px;min-width:44px;height:44px;min-height:44px}
.ui-shell .ui-pagination button{min-width:44px;min-height:44px}
.ui-shell .ui-list-controls{gap:12px;margin-bottom:18px}
.ui-shell .ui-list-controls .ui-search-actions{width:min(100%,500px)}
.ui-shell .employee-inactive-toggle{min-height:44px!important}
.ui-shell .table-wrap,.ui-shell .worker-rate-table-scroll{border-radius:9px;border-color:var(--line)}
.ui-shell th,.ui-shell .table-wrap thead th{background:var(--portal-soft-blue);color:var(--portal-muted);letter-spacing:.05em}
.ui-shell .table-sort{min-width:44px;min-height:44px;padding-block:8px}
.ui-shell tbody tr:hover td{background:var(--portal-soft-blue)}
.ui-shell .ui-identity-table td{vertical-align:middle}
.ui-shell .ui-identity-table td:first-child{font-variant-numeric:tabular-nums}
.ui-shell :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.ui-shell .pss>.pss-input{padding-right:48px;margin-bottom:0}
.ui-shell .pss>.pss-toggle{width:44px;min-width:44px;max-height:none;min-height:44px;height:100%;top:0;right:0;padding:0}
.ui-shell .pss-option{min-height:44px;padding:12px}
.ui-shell .ui-command-trigger{margin-left:auto;white-space:nowrap;color:var(--portal-blue);background:var(--portal-soft-blue);border-color:var(--portal-line)}
.ui-shell>header>.ui-logout{margin-left:0}
.ui-command-dialog{width:min(520px,calc(100vw - 32px));height:fit-content;max-height:85dvh;margin:8dvh auto auto;padding:22px;border:1px solid var(--portal-line);border-radius:14px;background:var(--portal-surface);color:var(--portal-ink)}
.ui-command-dialog .dialog-head{gap:12px;margin-bottom:16px}.ui-command-dialog h2{margin:0}
.ui-command-dialog nav{display:grid;gap:6px;max-height:48dvh;overflow:auto;margin-top:12px}
.ui-command-dialog nav a{display:flex;align-items:center;min-height:48px;padding:12px 14px;border:1px solid var(--portal-line);border-radius:8px;color:var(--portal-blue);background:var(--portal-canvas);text-decoration:none;font-weight:600}
.ui-command-dialog nav a:hover{background:var(--portal-soft-blue);border-color:var(--portal-blue-border)}
.ui-command-dialog .small{margin-bottom:0;color:var(--portal-muted)}
@media(max-width:600px){
 .ui-shell>header{padding:12px 14px;gap:8px;flex-wrap:wrap}
 .ui-shell>header>.brand{flex:1 1 100%;min-height:30px}.ui-shell>header>.environment{display:none}
 .ui-shell>header>.ui-command-trigger{margin-left:0;margin-right:auto}
 .ui-shell .home-topbar{margin-inline:-14px;padding-inline:14px;flex-wrap:wrap;gap:8px}
 .ui-shell .home-identity{flex:1 1 100%;justify-content:flex-end}.ui-shell .home-identity>.ui-command-trigger{margin-right:auto}
 .ui-shell main,.ui-shell.employee-window main{margin-top:16px;padding-inline:14px}
 .ui-shell.portal-home main{margin:0;padding:0}.ui-shell .home-content{padding-inline:14px}
 .ui-shell .card,.ui-shell.employee-window .card{padding:16px;border-radius:10px}
 .ui-shell h1,.ui-shell .home-welcome h1{font-size:25px}.ui-shell h2{font-size:20px}
 .ui-shell .tabs>button{padding-inline:10px}
 .ui-shell .worker-employee-picker{grid-template-columns:minmax(0,1fr)}
 .ui-shell .ui-list-controls .ui-search-actions{width:100%;flex-wrap:wrap;justify-content:flex-end}
 .ui-shell .ui-list-controls .ui-search-actions>input{flex-basis:100%;width:100%}
 .ui-shell .table-wrap:has(.ui-identity-table){border:0;background:transparent;max-height:65dvh}
 .ui-shell .ui-identity-table{display:block;min-width:0;white-space:normal}
 .ui-shell .ui-identity-table thead{display:block;position:sticky;top:0;z-index:2;background:var(--portal-soft-blue);border-radius:8px;margin-bottom:10px}
 .ui-shell .ui-identity-table thead tr{display:flex;flex-wrap:wrap;gap:0 10px;padding:4px 10px}
 .ui-shell .ui-identity-table thead th{display:block;position:static;padding:0;border:0;box-shadow:none;background:transparent}
 .ui-shell .ui-identity-table .table-sort{white-space:normal;font-size:10px}
 .ui-shell .ui-identity-table tbody{display:grid;gap:10px}
 .ui-shell .ui-identity-table tbody tr{display:grid;border:1px solid var(--portal-line);border-radius:9px;background:var(--portal-surface);padding:12px;gap:9px;min-width:0}
 .ui-shell .ui-identity-table tbody td{display:grid;grid-template-columns:minmax(70px,.8fr) minmax(0,1.5fr);gap:10px;border:0;padding:0;min-width:0;overflow-wrap:anywhere;white-space:normal;background:transparent}
 .ui-shell .ui-identity-table tbody td:before{content:attr(data-label);font-size:10px;color:var(--portal-muted);padding-top:3px}
 .ui-shell .ui-identity-table tbody td>*{min-width:0}.ui-shell .ui-identity-table .employee-name-cell{min-width:0}
 .ui-command-dialog{padding:18px;max-width:calc(100vw - 24px);width:calc(100vw - 24px)}
}
@media(prefers-reduced-motion:reduce){.ui-shell *,.ui-shell *:before,.ui-shell *:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

@media(max-width:600px){.ui-shell .status-grid{grid-template-columns:minmax(0,1fr);gap:10px}.ui-shell .status-grid .card{min-width:0;padding:14px 16px}.ui-shell .status-grid .metric{font-size:20px}}

@media(prefers-reduced-motion:reduce){.ui-shell #ui-sidebar{transition:none}}
/* Chrome-style workspaces keep inactive documents mounted and their drafts intact. */
body.ui-workspace{padding-top:46px}
.ui-workspace-tabs{position:fixed;top:0;right:0;left:82px;z-index:22;display:flex;align-items:flex-end;gap:3px;height:46px;padding:6px 10px 0;overflow-x:auto;overflow-y:hidden;border-bottom:1px solid var(--portal-line);background:var(--portal-soft-blue);scrollbar-width:thin}
.ui-workspace-tab{display:flex;align-items:center;flex:0 0 auto;max-width:220px;height:39px;border:1px solid var(--portal-line);border-bottom:0;border-radius:10px 10px 0 0;background:var(--portal-soft-blue);color:var(--portal-muted)}
.ui-workspace-tab.active{background:var(--portal-surface);color:var(--portal-ink)}
.ui-workspace-select,.ui-workspace-close,.ui-workspace-add{min-height:0;box-shadow:none;background:transparent;color:inherit}
.ui-workspace-select{overflow:hidden;min-width:88px;max-width:178px;height:36px;padding:8px 12px;text-overflow:ellipsis;white-space:nowrap;text-align:left;font-size:12px}
.ui-workspace-close{width:30px;height:30px;padding:0 5px;margin-right:4px;border-radius:6px;font-size:19px;line-height:1}
.ui-workspace-close:hover,.ui-workspace-add:hover{background:var(--portal-soft-blue)}
.ui-workspace-add{flex:0 0 36px;width:36px;height:36px;margin-bottom:2px;padding:0;border-radius:7px;font-size:22px}
.ui-workspace-frame{position:fixed;top:46px;right:0;bottom:0;left:82px;z-index:4;width:calc(100vw - 82px);height:calc(100dvh - 46px);border:0;background:var(--portal-canvas)}
.ui-workspace-frame[hidden]{display:none}
body.ui-workspace-child{overflow:hidden}
body.ui-workspace-child #app,body.ui-workspace-child>header,body.ui-workspace-child>footer,body.ui-workspace-child>dialog{display:none!important}

.portal-workspace-frame body.ui-shell{padding-left:0;padding-bottom:0}
.portal-workspace-frame body.ui-shell>.home-rail,.portal-workspace-frame body.ui-shell>#ui-sidebar,.portal-workspace-frame body.ui-shell>#ui-mobile-nav,.portal-workspace-frame body.ui-shell>#ui-adaptive-nav,.portal-workspace-frame body.ui-shell>.ui-menu-toggle,.portal-workspace-frame body.ui-shell>#ui-sidebar-backdrop,.portal-workspace-frame body.ui-shell>header,.portal-workspace-frame body.ui-shell>footer{display:none!important}
.portal-workspace-frame .ui-shell main,.portal-workspace-frame .ui-shell.employee-window main{margin:18px auto;padding:0 22px}
.portal-workspace-frame .ui-shell.portal-home main{margin:0;padding:0}
@media(max-width:600px){
 body.ui-workspace{padding-top:46px}
 .ui-workspace-tabs{left:0;padding-left:8px;padding-right:8px}
 .ui-workspace-frame{left:0;bottom:76px;width:100vw;height:calc(100dvh - 122px)}
 .ui-workspace-select{min-width:84px;max-width:136px}
 .portal-workspace-frame .ui-shell main,.portal-workspace-frame .ui-shell.employee-window main{margin:14px auto;padding:0 14px}
}
/* Portal home A and compact phone navigation C. */
.ui-shell .home-content{padding-bottom:32px}
.ui-shell .home-topbar{margin-bottom:24px}

.ui-shell .home-wordmark img{display:block;width:auto;height:32px;object-fit:contain}
.ui-shell .home-welcome{align-items:flex-end;margin:0 0 24px;padding:30px 34px;border-radius:16px;background:var(--portal-navy);color:var(--portal-surface)}
.ui-shell .home-welcome h1{color:var(--portal-surface);font-size:clamp(26px,3vw,36px);margin:8px 0}
.ui-shell .home-welcome p{color:var(--portal-rail-label);margin:0}
.ui-shell .home-welcome .home-eyebrow{color:var(--ui-muted-text)}
.ui-shell .home-welcome .home-eyebrow:before{background:var(--ui-hover)}
.ui-shell .home-welcome .home-date,.ui-shell .home-welcome .home-date strong{color:var(--portal-rail-label)}
.ui-shell .home-access{margin-bottom:26px}
.ui-shell .home-section-heading{margin-bottom:12px}
.ui-shell .home-quick-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ui-shell .home-quick-link{display:flex;align-items:center;gap:14px;min-width:0;min-height:72px;padding:14px 16px;border:1px solid var(--portal-line);border-radius:11px;background:var(--portal-surface);color:var(--portal-blue);text-decoration:none}
.ui-shell .home-quick-link:hover{background:var(--portal-soft-blue);border-color:var(--portal-blue-border)}
.ui-shell .home-quick-link>.portal-icon{flex:0 0 22px;width:22px;height:22px}
.ui-shell .home-quick-link>span:nth-child(2){min-width:0;flex:1}
.ui-shell .home-quick-link strong,.ui-shell .home-quick-link small{display:block}
.ui-shell .home-quick-link strong{font-size:14px}
.ui-shell .home-quick-link small{font-size:12px;color:var(--portal-muted);line-height:1.4;margin-top:3px}
.ui-shell .home-quick-arrow{color:var(--ui-muted-text);font-size:20px}

.ui-shell #ui-sidebar .home-nav.active{background:var(--portal-soft-blue);color:var(--portal-navy)}
.ui-mobile-nav{display:none}
.ui-mobile-menu{width:min(480px,calc(100vw - 24px));max-height:min(78dvh,680px);margin:auto auto 0;padding:20px 18px calc(20px + env(safe-area-inset-bottom));border:1px solid var(--portal-line);border-radius:18px 18px 0 0;background:var(--portal-surface);color:var(--portal-ink)}
.ui-mobile-menu::backdrop{background:var(--ui-backdrop)}
.ui-mobile-menu .dialog-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}
.ui-mobile-menu .dialog-head h2{margin:0}
.ui-mobile-menu nav{display:grid;gap:7px;overflow:auto;max-height:calc(78dvh - 100px)}
.ui-mobile-menu-link{display:flex;align-items:center;gap:14px;min-height:52px;padding:12px 14px;border:1px solid var(--portal-line);border-radius:9px;color:var(--portal-blue);text-decoration:none;font-weight:600}
.ui-mobile-menu-link .portal-icon{width:20px;height:20px;flex:0 0 20px}
.ui-mobile-menu-link:hover{background:var(--portal-soft-blue)}
@media(max-width:600px){
 .brand-logo{height:22px}
 body.ui-shell{padding-left:0;padding-bottom:calc(76px + env(safe-area-inset-bottom))}
 body.ui-shell,.ui-shell .ui-topbar,.ui-workspace-tabs,.ui-workspace-frame{transition:none}
 .ui-shell #ui-sidebar{display:none}
 .ui-shell>header{padding-left:14px}
 .ui-shell .home-content{padding:0 16px 18px}
 .ui-shell .home-topbar{margin:0 -16px 16px;padding:12px 16px;min-height:62px}
 .ui-shell .home-wordmark img{height:22px}
 .ui-shell .home-identity{flex:0 0 auto;justify-content:flex-end}
 .ui-shell .home-identity>span:first-child{display:none}
 .ui-shell .home-identity .home-avatar{display:none}
 .ui-shell .home-identity .ui-command-trigger{display:none}
 .ui-shell .home-welcome{display:block;margin-bottom:20px;padding:22px 20px;border-radius:12px}
 .ui-shell .home-welcome h1{font-size:25px}
 .ui-shell .home-welcome p{font-size:13px}
 .ui-shell .home-quick-links{grid-template-columns:1fr;gap:8px}
 .ui-shell .home-quick-link{min-height:62px;padding:11px 14px}
 .ui-shell .home-section-heading>span{display:none}
 .ui-shell .dashboard-widget-grid{gap:10px}
 .ui-shell .dashboard-widget[data-widget-id=employees],.ui-shell .dashboard-widget[data-widget-id=projects]{grid-column:span 6;height:auto;min-height:130px;padding:13px}
 .ui-shell .dashboard-widget[data-widget-id=employees] .dw-heading h3,.ui-shell .dashboard-widget[data-widget-id=projects] .dw-heading h3{font-size:13px}
 .ui-shell .dashboard-widget[data-widget-id=employees] .dw-metric>strong,.ui-shell .dashboard-widget[data-widget-id=projects] .dw-metric>strong{font-size:28px}
}
/* MP5b 27 Okt (Abdi, HP lipat): menu bawah tampil sampai 760px (lihat blok 760px), jadi tata letaknya juga sampai 760px. */
@media(max-width:760px){
 .ui-mobile-nav{position:fixed;inset:auto 0 0;z-index:20;display:flex;align-items:stretch;justify-content:space-around;gap:2px;min-height:65px;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid var(--portal-line);background:var(--portal-surface);box-shadow:none}
 .ui-mobile-nav .ui-mobile-nav-item{display:flex;flex:1 1 0;min-width:0;min-height:52px;align-items:center;justify-content:center;flex-direction:column;gap:4px;padding:4px 2px;border:0;border-radius:9px;background:transparent;box-shadow:none;color:var(--portal-muted);font-size:11px;font-weight:600;text-align:center;text-decoration:none;line-height:1.2}
 .ui-mobile-nav .ui-mobile-nav-item .portal-icon{width:20px;height:20px;flex:0 0 20px}
 .ui-mobile-nav .ui-mobile-nav-item.active{background:var(--portal-soft-blue);color:var(--portal-navy)}
 .ui-mobile-nav .ui-mobile-nav-item:focus-visible{outline:3px solid var(--ui-muted);outline-offset:-3px}
}

/* Keep the mobile monogram artwork 32px, with an actual 44px square link. */
@media(max-width:600px){.ui-shell .home-monogram{width:44px;min-width:44px;height:44px;min-height:44px}}

/* Scoped Master Merek layout; dormant unless its route is authorized. */
.brand-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.brand-toolbar>.actions{margin-right:auto}.brand-toolbar>.brand-tools{display:flex;flex-wrap:wrap;gap:8px}.brand-toolbar>.brand-tools>button{min-height:40px}.brand-toolbar>input{max-width:340px}.brand-toolbar>.pss{max-width:190px}.brand-toolbar.ui-filter-row>input:not([type=checkbox]):not([type=radio]),.brand-toolbar.ui-filter-row>select{min-height:40px}.brand-toolbar.ui-filter-row>.pss{min-height:40px}.brand-toolbar.ui-filter-row>.pss>.pss-input{min-height:40px}.brand-table tbody tr{cursor:pointer}.brand-dialog{width:min(720px,94vw);max-height:90dvh;overflow:auto}.brand-dialog form,.brand-dialog label{display:grid;gap:8px}.brand-dialog form{gap:16px}.brand-dialog textarea{min-height:100px}.brand-dialog p{overflow-wrap:anywhere;white-space:pre-wrap}.brand-dialog summary{cursor:pointer;min-height:44px;padding:10px}.brand-page button,.brand-dialog button{min-width:44px;min-height:44px}@media(max-width:600px){.brand-toolbar{display:grid}.brand-toolbar>input,.brand-toolbar>.pss{max-width:none}.brand-table,.brand-table tbody{display:block;min-width:0}.brand-table thead{display:block;position:sticky;top:0;background:var(--portal-soft-blue)}.brand-table thead tr{display:flex;flex-wrap:wrap}.brand-table th{display:block;position:static}.brand-table tbody tr{display:grid;padding:12px;border:1px solid var(--ui-line);border-radius:8px;margin-block:10px}.brand-table td{display:grid;grid-template-columns:90px minmax(0,1fr);white-space:normal;overflow-wrap:anywhere}.brand-table td:before{content:attr(data-label);font-size:11px;color:var(--portal-muted)}.brand-page .table-wrap{border:0}.brand-dialog{width:94vw;padding:18px}}

/* Keep mobile list sorting easy to tap, including inside the sticky identity header. */
@media(max-width:640px){
 .ui-shell .table-wrap thead th .table-sort{display:inline-flex;align-items:center;min-width:44px;min-height:44px;padding:8px 10px}
 .ui-shell .ui-identity-table thead tr{gap:4px 6px}
}
/* Place the two numeric widgets side by side on phones with room for each label. */
@media(min-width:380px) and (max-width:650px){
 .ui-shell .dashboard-widget-grid{gap:10px}
 .ui-shell .dashboard-widget-grid>.dashboard-widget:has(.dw-metric){grid-column:span 6;padding:12px;min-height:138px}
 .ui-shell .dashboard-widget-grid>.dashboard-widget:has(.dw-metric) .dw-heading h3{font-size:13px}
 .ui-shell .dashboard-widget-grid>.dashboard-widget:has(.dw-metric) .dw-metric>strong{font-size:29px}
}
/* Perlu dicek (P3, 25 Sep 2026): satu kartu per pasangan, kiri-kanan berdampingan (bertumpuk di HP). Beda ditandai coret/garis bawah dan tanda ≠, bukan warna saja. */
.review-dialog{width:min(1040px,96vw);max-height:92dvh;overflow:auto}
.review-dialog[open]{display:block}
.review-dialog>.dialog-head{position:sticky;top:-26px;background:var(--portal-surface);padding-top:5px;padding-bottom:10px;z-index:2}
.review-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 0 10px;font-size:13px;color:var(--muted)}
.review-class{display:inline-block;padding:3px 10px;border-radius:999px;border:1px solid var(--line);background:var(--portal-soft-blue);color:var(--portal-ink);font-weight:700;font-size:12px}
.review-class-exact{background:var(--ui-danger-bg);border-color:var(--ui-danger-line);color:var(--ui-danger)}
.review-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin:12px 0}
.review-side{padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--portal-soft-blue);min-width:0;overflow-wrap:anywhere}
.review-side-right{background:var(--portal-soft-blue)}
.review-side-title{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:0 0 8px}
.review-side-name{font-size:20px;font-weight:700;line-height:1.35;margin:0 0 12px}
.review-fields{display:grid;grid-template-columns:minmax(96px,max-content) minmax(0,1fr);gap:6px 12px;margin:0;font-size:14px}
.review-fields dt{color:var(--muted)}
.review-fields dd{margin:0}
.review-fields .review-field-diff{font-weight:700;color:var(--ui-warn)}
.review-diff-mark{font-weight:700}
.review-diff-del{background:var(--ui-danger-bg);color:var(--ui-danger);text-decoration:line-through;text-decoration-thickness:2px;padding:0 2px;border-radius:3px}
.review-diff-add{background:var(--ui-ok-bg);color:var(--ui-ok);text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:3px;padding:0 2px;border-radius:3px}
.review-legend{margin:4px 0 0;font-size:12px;color:var(--muted)}
.review-card h3{font-size:15px;margin:16px 0 6px}
.review-reasons{margin:0;padding-left:20px;font-size:13px}
.review-ai{padding:12px 14px;border:1px dashed var(--line);border-radius:8px;margin:12px 0}
.review-impact p{margin:4px 0}
.review-form{display:grid;gap:10px;margin-top:8px}
.review-form label{display:grid;gap:4px}
.review-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.review-check{border-top:1px solid var(--line);margin-top:14px;padding-top:12px}
.review-check-item{margin:10px 0 16px}
.review-gate{margin-top:10px}
@media(max-width:700px){.review-pair{grid-template-columns:minmax(0,1fr);gap:10px}.review-dialog{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border-radius:0;padding:16px}.review-dialog>.dialog-head{top:-16px}.review-actions>button{flex:1 1 100%;min-height:44px}.review-side-name{font-size:18px}}
/* Master Material dan Pekerjaan (P6, 25 Sep 2026): daftar memakai table() bersama; Draf ditandai teks + garis putus, bukan warna saja; formulir nonaktif saat tulis tertutup. */
.catalog-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 12px}
.catalog-tabs[hidden]{display:none}
.catalog-tab{min-height:44px}
.catalog-tab[aria-selected=true]{background:var(--portal-blue);color:var(--ui-panel);border-color:var(--portal-blue)}
.catalog-status{display:inline-block;padding:2px 9px;border-radius:999px;border:1px solid var(--line);font-size:12px;font-weight:700;background:var(--ui-ok-bg);color:var(--ui-ok)}
.catalog-status-draft{border-style:dashed;border-color:var(--ui-warn-line);background:var(--ui-warn-bg);color:var(--ui-warn)}
.catalog-status-inactive{background:var(--ui-hover);color:var(--ui-text)}
.catalog-readonly{margin:6px 0 10px}
.catalog-dialog{width:min(820px,96vw);max-height:92dvh;overflow:auto}
.catalog-dialog[open]{display:block}
.catalog-dialog>.dialog-head{position:sticky;top:-26px;background:var(--portal-surface);padding-top:5px;padding-bottom:10px;z-index:2}
.catalog-dialog h3{font-size:15px;margin:16px 0 6px}
.catalog-meta{display:flex;align-items:center;gap:8px;margin:0 0 8px;color:var(--muted)}
.catalog-fields{display:grid;grid-template-columns:minmax(120px,max-content) minmax(0,1fr);gap:6px 14px;margin:8px 0;font-size:14px}
.catalog-fields dt{color:var(--muted)}
.catalog-fields dd{margin:0;overflow-wrap:anywhere}
.catalog-issues,.catalog-aliases{margin:0;padding-left:20px}
.catalog-aliases li{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:4px 0}
.catalog-small{min-height:36px;padding:4px 12px}
.catalog-form,.catalog-form fieldset,.catalog-form label{display:grid;gap:8px}
.catalog-form{gap:14px}
.catalog-form fieldset{border:0;padding:0;margin:0;min-width:0;gap:14px}
.catalog-form fieldset:disabled{opacity:.62}
.catalog-form fieldset:disabled input,.catalog-form fieldset:disabled select,.catalog-form fieldset:disabled textarea{cursor:not-allowed;background:var(--ui-hover)}
.catalog-form button[type=submit]:disabled{cursor:not-allowed;opacity:.55}
.catalog-form label.catalog-check{display:flex;align-items:center;gap:8px}
.catalog-picker select{min-height:40px}
.catalog-recipe-line{border:1px solid var(--line)!important;border-radius:8px;padding:12px!important}
.catalog-recipe-line legend{font-weight:700;font-size:13px;padding:0 4px}
.catalog-actions{margin-top:16px}
.catalog-page button,.catalog-dialog button{min-width:44px;min-height:44px}
@media(max-width:700px){.catalog-dialog{width:100vw;height:100dvh;max-width:100vw;max-height:100dvh;border-radius:0;padding:16px}.catalog-dialog>.dialog-head{top:-16px}.catalog-fields{grid-template-columns:minmax(0,1fr);gap:2px}.catalog-fields dd{margin-bottom:8px}.catalog-actions>button{flex:1 1 100%}.catalog-tab{flex:1 1 0}}
/* MM5 8 Nov: kartu HP katalog (ui-rangka.css kolom 1 = kode kecil) — kolom 1 katalog adalah nama, kolom 2 konteks. */
@media(max-width:640px){.catalog-page.ui-page-wide .table-wrap .ui-kartu-hp tbody td:first-child{font-size:14px;font-weight:600;color:var(--ui-text)}.catalog-page.ui-page-wide .table-wrap .ui-kartu-hp tbody td:nth-child(2){font-size:12.5px;font-weight:400;color:var(--ui-muted-text)}}

/* UI1: shared rail colors; labels remain below each icon. */
.home-rail,.ui-shell #ui-sidebar{background:var(--portal-navy);border-color:var(--portal-navy)}
.home-nav,.ui-shell #ui-sidebar button.home-nav{color:var(--portal-rail-label)}
.home-nav:hover,.ui-shell #ui-sidebar .home-nav:hover{background:var(--ui-hover);color:var(--ui-panel)}
.home-nav.active,.ui-shell .home-nav.active,.ui-shell #ui-sidebar .home-nav.active,.ui-shell #ui-sidebar button.home-nav.active{background:var(--ui-hover);color:var(--ui-panel)}

.ui-mobile-nav{background:var(--portal-navy);border-color:var(--portal-navy)}
.ui-mobile-nav .ui-mobile-nav-item{color:var(--portal-rail-label)}
.ui-mobile-nav .ui-mobile-nav-item.active{background:var(--ui-hover);color:var(--ui-panel)}

/* C1 Calendar: month grid, date kanban and shared event/day dialogs. */
.schedule-page{min-width:0}
.schedule-page,.schedule-dialog{--focus:var(--portal-blue)}
.schedule-page button:not(.secondary),.schedule-dialog button:not(.secondary){background:var(--portal-blue);color:var(--portal-surface)}
.schedule-board{display:grid;grid-template-columns:repeat(7,minmax(155px,1fr));gap:12px;overflow:auto;max-width:100%;padding:4px 4px 14px;align-items:start}
.schedule-day{min-width:0;min-height:220px;padding:12px;border:1px solid var(--portal-line);border-radius:10px;background:var(--portal-canvas)}
.schedule-day h2{font-size:15px;margin:0 0 12px;line-height:1.5}
.schedule-today{border:2px solid var(--portal-blue);background:var(--portal-soft-blue)}
.schedule-today-label{font-size:12px;color:var(--portal-blue);font-weight:700;margin:0 0 12px}
.schedule-event{display:flex;flex-direction:column;gap:7px;text-align:left;width:100%;margin-bottom:10px;padding:12px;min-height:44px;border:1px solid var(--portal-blue-border);border-radius:8px;background:var(--portal-surface);color:var(--portal-ink);white-space:normal;overflow-wrap:anywhere}
.schedule-event:hover{background:var(--portal-soft-blue)}
.schedule-time,.schedule-location{font-size:12px;font-weight:400}
.schedule-source{align-self:start;border:1px solid var(--portal-blue-border);border-radius:20px;padding:2px 8px;font-size:11px;color:var(--portal-blue);background:var(--portal-soft-blue)}
.schedule-dialog{width:min(680px,96vw);height:fit-content;max-height:90dvh;overflow:auto;margin:auto;color:var(--portal-ink)}
.schedule-dialog dd{white-space:pre-wrap}
.schedule-form{display:grid;gap:8px}
.schedule-form>input,.schedule-form>textarea{min-width:0;max-width:100%}
.schedule-check{display:flex;align-items:center;gap:10px}
.schedule-check input{width:auto;margin:0}
/* JW3 · Jadwal › Pesan WA: saklar kirim, teks pesan, pratinjau pola. */
.wa-jadwal-saklar{display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin:0 0 14px}
.wa-jadwal-saklar strong{white-space:nowrap}
.wa-jadwal-saklar .small{flex:1 1 220px;margin:0}
.wa-jadwal-teks{white-space:pre-wrap;overflow-wrap:anywhere}
.wa-jadwal-teks-baris{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.wa-jadwal-pratinjau{overflow-wrap:anywhere}
.schedule-navigation{margin:0;flex-wrap:wrap}
.schedule-page button,.schedule-dialog button{min-height:44px}
.schedule-board:focus-visible,.schedule-event:focus-visible,#ui-schedule-menu a:focus-visible{outline:3px solid var(--portal-blue);outline-offset:2px}
.schedule-date:focus-visible,.schedule-more:focus-visible,.schedule-day-count:focus-visible,.schedule-links a:focus-visible{outline:3px solid var(--portal-blue);outline-offset:2px}
@media(max-width:600px){.schedule-board{grid-template-columns:repeat(7,minmax(250px,82vw))}.schedule-page{padding:16px}.schedule-navigation{gap:6px}.schedule-navigation button{padding:8px 10px}.schedule-dialog{padding:16px;width:96vw}.schedule-dialog .catalog-fields{grid-template-columns:minmax(0,1fr)}}

.schedule-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:20px 0}
.schedule-period{font-size:22px;margin:0;flex:1;min-width:180px}
.schedule-views{display:flex;gap:2px;border:1px solid var(--portal-blue-border);border-radius:8px;padding:3px}
.schedule-views button[aria-pressed=true]{background:var(--portal-blue);color:var(--portal-surface)}
.schedule-views button{padding:8px 12px}
.schedule-month{grid-template-columns:repeat(7,minmax(0,1fr));gap:0;align-items:stretch;padding:0;border:1px solid var(--portal-line);border-radius:12px;overflow:hidden}
.schedule-weekday{text-align:center;padding:10px 2px;font-size:12px;font-weight:650;color:var(--portal-muted);background:var(--portal-canvas)}
.schedule-month .schedule-day{min-height:164px;padding:6px;overflow:hidden;border:0;border-top:1px solid var(--portal-line);border-right:1px solid var(--portal-line);border-radius:0;background:var(--portal-surface)}
.schedule-month .schedule-day:nth-child(7n){border-right:0}
.schedule-month .schedule-today{background:var(--portal-soft-blue)}
.schedule-month .schedule-outside{background:var(--portal-canvas)}
.schedule-outside .schedule-date{color:var(--portal-muted)}
.schedule-outside .schedule-month-events{opacity:.65}
.schedule-page .schedule-date{display:block;width:32px;min-height:32px;height:32px;padding:0;margin:0 auto 6px;border-radius:50%;background:transparent;color:var(--portal-ink);font-size:13px}
.schedule-page .schedule-date[aria-current=date]{background:var(--portal-blue);color:var(--portal-surface);font-weight:700}
.schedule-month .schedule-event{display:flex;flex-direction:row;align-items:center;gap:5px;min-height:26px;height:26px;padding:3px 6px;margin-bottom:3px;border:0;border-radius:4px;white-space:nowrap;overflow:hidden;font-size:12px;line-height:20px}
.schedule-month .schedule-event strong{font-weight:550;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.schedule-month .schedule-event .schedule-time{flex-shrink:0;font-size:11px}
.schedule-source-portal{--schedule-color:var(--portal-blue);--schedule-fill:var(--portal-soft-blue)}
.schedule-source-google{--schedule-color:var(--portal-navy);--schedule-fill:var(--portal-blue-border)}
.schedule-event{border-left:3px solid var(--schedule-color)}
.schedule-month .schedule-block{background:var(--schedule-fill);color:var(--schedule-color)}
.schedule-month .schedule-timed{background:transparent;color:var(--portal-ink)}
.schedule-timed::before{content:'';width:7px;height:7px;flex-shrink:0;border-radius:50%;background:var(--schedule-color)}
.schedule-page .schedule-more{display:block;background:transparent;color:var(--portal-blue);font-size:12px;text-align:left;padding:3px 6px;min-height:26px;width:100%;border-radius:4px}
.schedule-more:hover,.schedule-date:hover{background:var(--portal-soft-blue)}
.schedule-day-count{display:none}
.schedule-single{grid-template-columns:minmax(0,1fr)}
.schedule-day-popup{width:min(460px,96vw)}
.schedule-popup-date{font-size:36px;line-height:1;margin:8px 0 20px;color:var(--portal-blue)}
.schedule-links a{overflow-wrap:anywhere;color:var(--portal-blue)}
.schedule-links .schedule-meet{display:inline-flex;align-items:center;min-height:44px;background:var(--portal-blue);color:var(--portal-surface);padding:10px 16px;border-radius:6px;text-decoration:none;font-weight:650}
.schedule-dialog dd{overflow-wrap:anywhere;min-width:0}
.schedule-dialog a{color:var(--portal-blue)}
@media(max-width:600px){
 .schedule-toolbar{gap:8px;margin:12px 0}.schedule-period{order:-1;flex-basis:100%;font-size:20px}.schedule-views{flex:1}.schedule-views button{flex:1;padding:6px}.schedule-toolbar>button{width:100%}
 .schedule-month{grid-template-columns:repeat(7,minmax(0,1fr))}.schedule-month .schedule-day{min-height:76px;padding:4px 1px}.schedule-weekday{font-size:0;padding:8px 0}.schedule-weekday::after{content:attr(data-short);font-size:10px}
 .schedule-month-events{display:none}.schedule-page .schedule-date{min-height:36px;width:36px;height:36px;margin-bottom:2px}.schedule-page .schedule-day-count{display:inline-flex;gap:2px;min-height:28px;width:100%;padding:2px 0;background:transparent;color:var(--portal-blue);font-size:11px;white-space:nowrap;border:0}
 .schedule-count-dot{display:block;flex-shrink:0;width:4px;height:4px;background:var(--portal-blue);border-radius:50%}.schedule-single{grid-template-columns:minmax(0,1fr)}
}

/* SC3b uses the shared table and semantic status badges. */
.ui-shell .followup-page .table-wrap{max-width:100%;max-height:min(60dvh,620px);overflow:auto}
.followup-page td{white-space:normal;overflow-wrap:anywhere;min-width:110px;max-width:320px}
.followup-event{display:flex;flex-direction:column;align-items:start;gap:6px;overflow-wrap:anywhere}
.followup-title{text-align:left;white-space:normal;overflow-wrap:anywhere}
.followup-note{white-space:pre-wrap}
.schedule-followups{border-top:1px solid var(--portal-line);margin-top:20px;padding-top:8px}
.followup-existing{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-bottom:8px;text-align:left;overflow-wrap:anywhere}
.followup-page button.table-sort:not(.secondary){background:transparent;color:var(--portal-ink)}
.followup-page .ui-open-row:focus-visible,.followup-title:focus-visible,.followup-existing:focus-visible{outline:3px solid var(--portal-blue);outline-offset:2px}
@media(max-width:600px){.followup-page .ui-search-actions{min-width:0;width:100%;flex-wrap:wrap}.followup-page .ui-search-actions input{min-width:0;width:100%}.followup-page td{max-width:none}.followup-page .table-wrap{max-height:60dvh}.followup-existing{flex-wrap:wrap}}

/* U1: fixed thin loading indicator; does not move page geometry. */
