:root{--navy:#103452;--navy-dark:#0b2540;--blue:#1769bc;--emerald:#119c83;--ink:#182b44;--muted:#76869a;--border:#e3eaf2;--canvas:#f3f6fa;--radius:14px;--shadow:0 3px 14px #183d6610;--sidebar:258px}*{box-sizing:border-box}body{margin:0;color:var(--ink);font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:16px;line-height:1.5;background:var(--canvas)}a{color:var(--blue);text-decoration:none}button,input,select{font:inherit}button,a,input,select,summary{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}button:focus-visible,a:focus-visible,summary:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #53acff;outline-offset:3px}button,.button{border:0;border-radius:8px;background:var(--blue);color:white;min-height:40px;padding:10px 17px;font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center;transition:background .16s,box-shadow .16s}button:hover,.button:hover{background:#105899}button .icon,.button .icon{width:18px;height:18px;flex-shrink:0}.icon{flex-shrink:0;vertical-align:middle}input,select{border:1px solid #d7e0eb;border-radius:8px;padding:11px 12px;min-height:43px;background:white;color:var(--ink);max-width:100%}input::placeholder{color:#97a3b3}input:focus,select:focus{border-color:#3b88ce}label{font-size:15px;font-weight:600}h1,h2,h3,p{margin-top:0}h1{font-size:28px;line-height:1.25;letter-spacing:-.8px;margin-bottom:8px;font-weight:750}h2{font-size:17px;font-weight:700;margin-bottom:0;letter-spacing:-.2px}h3{font-size:19px}small{font-size:14px}.muted{color:var(--muted)}.text-emerald{color:#138b73!important}.skip-link{position:fixed;left:10px;top:-90px;z-index:200;background:white;padding:15px}.skip-link:focus{top:10px}.sidebar{width:var(--sidebar);position:fixed;inset:0 auto 0 0;z-index:40;color:#fff;background:linear-gradient(160deg,#133e61 0%,#0d2c4b 42%,#0a243e 100%);display:flex;flex-direction:column;overflow-y:auto;box-shadow:3px 0 18px #0b2b4810}.agency-brand{padding:27px 21px 21px;display:flex;align-items:center;gap:11px;color:white;border-bottom:1px solid #ffffff14}.agency-brand img{width:51px;height:55px;object-fit:contain}.agency-brand>span{font-size:12px;font-weight:750;line-height:1.5;letter-spacing:.2px}.agency-brand small{display:block;color:#b3c9dc;font-size:11px;margin-top:3px;font-weight:400}.product-brand{padding:24px 24px 18px}.product-brand strong{font-size:24px;letter-spacing:-.8px;white-space:nowrap}.product-brand strong span{font-weight:400}.product-brand p{font-size:13px;line-height:1.6;color:#bbcfdf;margin:7px 0 0}.sidebar-nav{padding:0 12px;flex:1}.nav-caption{display:block;font-size:11px;letter-spacing:1.5px;color:#86a6c0;padding:22px 14px 9px;font-weight:650}.nav-item{width:100%;min-height:46px;padding:12px 13px;gap:11px;display:flex;align-items:center;text-align:left;color:#c7d9e8;background:none;border-radius:8px;font-size:14px;font-weight:500;border:1px solid transparent;margin:3px 0}.nav-item .icon{width:18px;height:18px;color:#98bcd8}.nav-item:hover{background:#ffffff0d;color:white}.nav-item.active{background:linear-gradient(95deg,#1a6fbc,#155aa1);color:white;border-color:#428bd275;box-shadow:0 4px 9px #001a3229}.nav-item.active .icon{color:white}.nav-soon{font-size:10px;padding:2px 4px;border:1px solid #7997b14d;border-radius:4px;color:#b5ccdf;margin-left:auto}.sidebar-bottom{padding:26px 24px 20px;margin-top:25px;border-top:1px solid #ffffff0b}.system-indicator{display:flex;align-items:center;gap:7px;font-size:11px;color:#c6d9e6}.system-indicator span,.status-dot{width:6px;height:6px;border-radius:50%;background:#20bb91;display:inline-block;flex-shrink:0}.sidebar-bottom p{font-size:11px;line-height:1.8;color:#7e9bb4;margin:9px 0 0}.app-shell{margin-left:var(--sidebar);min-height:100vh;display:flex;flex-direction:column}.topbar{height:109px;position:relative;display:flex;align-items:center;justify-content:space-between;padding:18px 30px;gap:20px;background:linear-gradient(105deg,#155f9f 0%,#237dbc 53%,#5b9cce 100%);color:white;isolation:isolate}.topbar:before{content:"";position:absolute;z-index:-1;inset:0;opacity:.14;background-image:radial-gradient(ellipse at 64% 100%,#fff 0,transparent 60%),repeating-linear-gradient(125deg,transparent 0,transparent 38px,#ffffff24 39px,transparent 40px)}.topbar-greeting{display:flex;align-items:center;gap:12px}.topbar-greeting>div{display:flex;flex-direction:column}.topbar-greeting span{font-size:14px;color:#deeffd}.topbar-greeting strong{font-size:23px;line-height:1.25;letter-spacing:-.3px}.topbar-greeting small{font-size:12px;color:#e5f1fb;margin-top:5px}.topbar-account{display:flex;align-items:center;gap:22px}.secure-label{display:flex;align-items:center;gap:7px;color:#deedfa;font-size:12px}.secure-label .icon{width:16px;height:16px}.account-menu{position:relative;z-index:50}.account-menu summary{display:flex;align-items:center;gap:10px;list-style:none;background:#ffffffee;color:var(--ink);padding:6px 12px 6px 6px;border:1px solid #ffffffd1;border-radius:40px;cursor:pointer;box-shadow:0 3px 12px #0c375a14}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary>.icon{width:15px;height:15px;transform:rotate(90deg);margin-left:5px;color:#4b6a8c}.avatar{width:39px;height:39px;display:grid;place-items:center;background:#dcebf5;border:3px solid white;color:var(--navy);font-weight:750;border-radius:50%;font-size:19px}.account-name{display:flex;flex-direction:column;max-width:175px}.account-name strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-name small{font-size:12px;color:#6d7e92}.account-dropdown{position:absolute;right:0;top:calc(100% + 10px);padding:7px;background:white;border:1px solid var(--border);border-radius:10px;box-shadow:0 12px 25px #102a4326;width:235px}.account-dropdown a,.account-dropdown button{display:flex;gap:9px;padding:12px;color:var(--ink);font-size:14px;background:none;border-radius:6px;justify-content:flex-start;width:100%;font-weight:500}.account-dropdown a:hover,.account-dropdown button:hover{background:#eff5fa}.account-dropdown .icon{width:16px;height:16px}.main-content{padding:0 27px 30px;width:100%;max-width:1900px;margin:0 auto;flex:1}.breadcrumb{height:52px;display:flex;align-items:center;gap:9px;font-size:12px;color:#8191a4}.breadcrumb>a{color:#73869c}.breadcrumb>.icon{width:11px;height:11px}.breadcrumb>span:not(.today){color:#43617f}.today{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:12px}.today .icon{width:13px;height:13px}.page-heading{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:7px 0 23px}.eyebrow{font-size:11px;font-weight:700;color:#7b8fa4;letter-spacing:1.6px;display:block;margin-bottom:7px}h1 span{font-weight:400;color:#516984}.page-heading p{font-size:13px;color:#7b8b9d;margin:0}.dashboard-filter{display:flex;align-items:center;gap:9px}.dashboard-filter label{font-size:13px;color:#5f7289}.dashboard-filter select{max-width:220px;font-size:13px;min-height:37px;padding:8px 27px 8px 10px}.icon-button{border:1px solid var(--border);border-radius:8px;min-width:36px;min-height:36px;background:white;color:#526a84;padding:8px;display:inline-flex;align-items:center;justify-content:center}.icon-button .icon{width:18px;height:18px}.icon-button:hover{background:#e8f0f8}.filter-button{background:var(--blue);color:white;border-color:var(--blue)}.filter-button:hover{background:#12599d}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:22px}.metric-card{background:white;border-radius:var(--radius);border:1px solid var(--border);box-shadow:var(--shadow);padding:22px 18px;display:flex;align-items:center;gap:15px;position:relative;overflow:hidden}.metric-card:after{content:"";height:2px;position:absolute;bottom:0;left:20px;right:20px;background:linear-gradient(90deg,#1c76c518,#1c76c500)}.metric-icon{width:53px;height:53px;display:grid;place-items:center;border-radius:14px;flex-shrink:0}.metric-icon .icon{width:27px;height:27px}.blue{background:#eaf2fe;color:#2367bb}.cyan{background:#e7f5fb;color:#1685b0}.emerald{background:#e5f6f0;color:#149879}.violet{background:#f0ecfc;color:#7a62c9}.metric-label{display:block;font-size:13px;color:#6c7f94;font-weight:600}.metric-value{font-size:31px;letter-spacing:-1px;line-height:1.35;display:block;font-weight:750}.metric-card small{display:flex;gap:5px;align-items:center;color:#8390a0;font-size:11px;margin-top:3px}.metric-dot{width:5px;height:5px;border-radius:50%;background:currentColor}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 287px;gap:20px}.dashboard-primary,.dashboard-secondary{display:flex;flex-direction:column;gap:20px;min-width:0}.analytics-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:18px}.panel{border-radius:var(--radius);background:white;border:1px solid var(--border);box-shadow:var(--shadow);overflow:hidden}.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:20px 20px 0}.panel-heading h2{display:flex;align-items:center;gap:8px;line-height:1.4;font-size:15px}.section-icon{display:inline-flex;width:25px;height:25px;border-radius:6px;justify-content:center;align-items:center;color:#226ab1;background:#ecf3fc;flex-shrink:0}.section-icon .icon{width:16px;height:16px}.section-icon.emerald{color:#129879;background:#e4f6ef}.pill{display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:600;padding:4px 8px;border-radius:5px;white-space:nowrap;line-height:1.4}.pill.neutral{background:#f0f4f8;color:#718297;border:1px solid #e7edf3}.pill.green{background:#e8f8ef;color:#168654}.pill>span{width:5px;height:5px;background:currentColor;border-radius:50%}.panel-description{font-size:12px;color:#8795a6;margin:8px 20px 0}.bar-chart{padding:23px 21px;min-height:188px;display:flex;flex-direction:column;justify-content:center;gap:17px}.chart-row-title{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;margin-bottom:8px}.chart-row-title>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#52647b}.chart-row-title strong{white-space:nowrap;color:#244665;font-weight:700}.chart-row-title small{font-size:11px;font-weight:400;color:#8b99a9}.chart-track{height:9px;overflow:hidden;background:#f0f4f8;border-radius:10px}.chart-track>span{height:100%;background:linear-gradient(90deg,#2788ca,#1b65b2);border-radius:10px;display:block;min-width:0;max-width:100%}.chart-legend{padding:12px 20px;border-top:1px solid #edf1f6;font-size:11px;color:#7e8b9c;display:flex;gap:6px;align-items:center}.legend-dot{width:7px;height:7px;display:inline-block;border-radius:50%;flex-shrink:0}.legend-dot.blue{background:#267bbd}.legend-dot.emerald{background:#16a37e}.legend-dot.grey{background:#dce4ec}.chart-total{margin-left:auto;font-size:10px}.composition-body{display:flex;align-items:center;justify-content:center;gap:23px;min-height:185px;padding:22px 18px}.donut-chart{width:137px;height:137px;border-radius:50%;background:conic-gradient(#13a37d calc(var(--percentage)*1%),#e5ecf2 0);padding:14px;transform:rotate(-90deg);flex-shrink:0}.donut-chart.empty{background:#e7edf3}.donut-center{background:#fff;width:100%;height:100%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(90deg)}.donut-center strong{font-size:31px;line-height:1.2;letter-spacing:-1px}.donut-center span{font-size:11px;color:#8a98a8;margin-top:4px}.donut-key{display:flex;flex-direction:column;gap:16px;font-size:12px;min-width:80px}.donut-key>div{display:flex;align-items:center;gap:6px}.donut-key strong{margin-left:auto;padding-left:8px}.composition-summary{padding:12px 16px;display:flex;justify-content:center;align-items:center;gap:7px;background:#f5fbf8;border-top:1px solid #e9f3ed;font-size:11px;color:#5e8876}.text-link{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:600;white-space:nowrap}.text-link .icon{width:14px;height:14px}.staff-panel .panel-heading{padding-bottom:20px}.table-scroll{width:100%;overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-weight:650;color:#6b7e94;font-size:12px;letter-spacing:.1px;background:#f6f8fb;padding:13px 20px;border-top:1px solid #eef2f6;border-bottom:1px solid #e9eef5}td{padding:15px 20px;border-bottom:1px solid #edf1f6;font-size:12px;color:#53677e}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fbfdff}.staff-identity{display:flex;align-items:center;gap:10px;color:#2b4059}.table-avatar{width:32px;height:32px;border-radius:9px;background:#edf4fb;color:#2467a5;display:grid;place-items:center;font-size:14px;font-weight:650;flex-shrink:0}.staff-identity>span:last-child{display:flex;flex-direction:column;gap:2px}.staff-identity strong{font-size:12px;font-weight:650}.staff-identity small{color:#8c9aab;font-size:10px}.panel-footnote{font-size:11px;color:#8998aa;padding:13px 20px;border-top:1px solid #edf1f6}.quick-panel .panel-heading{padding-bottom:17px}.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0 16px 18px}.quick-item{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border:1px solid #e4ecf5;border-radius:10px;padding:17px 8px;color:#335779;background:linear-gradient(140deg,#fff,#f8fbff);transition:transform .15s,border-color .15s}.quick-item:hover{border-color:#8ebce4;transform:translateY(-2px);box-shadow:0 4px 10px #174c7b0c}.quick-item .icon{width:25px;height:25px;color:#1d69ae}.quick-item span{font-size:11px;font-weight:600;text-align:center}.account-panel .panel-heading{padding-bottom:7px}.access-row{display:flex;gap:10px;align-items:center;padding:14px 19px}.access-icon{width:29px;height:29px;background:#f1f5fa;border-radius:7px;color:#7190ae;display:grid;place-items:center;flex-shrink:0}.access-icon .icon{width:15px;height:15px}.access-row>div{display:flex;flex-direction:column;gap:3px}.access-row small{font-size:11px;color:#8a99a9}.access-row strong{font-size:12px;color:#48607c;font-weight:600}.access-note{background:#f8fafc;border-top:1px solid #eaf0f5;padding:12px 17px;font-size:11px;color:#8b99a9;display:flex;align-items:center;gap:8px}.access-note .icon{width:14px;height:14px}.help-card{padding:23px;border-radius:14px;background:linear-gradient(125deg,#133b5b,#104b68);position:relative;overflow:hidden;color:white}.help-card:after{content:"";position:absolute;width:160px;height:160px;border:1px solid #ffffff0c;border-radius:50%;right:-80px;top:50px;box-shadow:0 0 0 28px #ffffff04,0 0 0 57px #ffffff03}.help-card .eyebrow{font-size:10px;color:#83b7cc;margin-top:4px}.help-card h2{font-size:24px;line-height:1.35;letter-spacing:-.6px;color:white;margin:10px 0}.help-card p{font-size:12px;color:#b3cedd;line-height:1.8;margin-bottom:16px;max-width:180px}.help-emblem{float:right;margin-top:-4px;opacity:.85}.help-emblem img{object-fit:contain}.help-card-line{height:1px;background:#ffffff1a;margin-bottom:14px;width:70%}.help-card>small{font-size:10px;color:#8eb0c2}.workspace-section>.panel-heading{padding:0 0 13px}.workspace-section>.panel-heading h2{font-size:14px}.workspace-section>.panel-heading>.muted{font-size:11px}.module-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.module-card{background:white;color:var(--ink);border:1px solid var(--border);border-radius:12px;display:flex;text-align:left;padding:19px 16px;gap:12px;justify-content:flex-start;box-shadow:var(--shadow);font-weight:400}.module-card:hover{background:#fafdff;border-color:#afcce4}.module-card>.icon{margin-left:auto;color:#9cabb9;width:16px;height:16px}.module-icon{height:39px;width:39px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}.module-icon .icon{height:22px;width:22px}.module-copy{display:flex;flex-direction:column;gap:5px;align-items:flex-start}.module-copy .pill{font-size:9px;padding:2px 5px}.module-copy strong{font-size:13px}.module-copy small{font-size:10px;color:#8c99a7;line-height:1.5}.app-footer{font-size:10px;color:#91a0af;padding:17px 28px;border-top:1px solid #e6edf4;display:flex;justify-content:space-between;gap:20px;margin-top:8px}.footer-divider{color:#c5d0da;margin:0 7px}.mobile-menu{display:none}.sidebar-backdrop{display:none}.alert{display:flex;align-items:center;gap:10px;padding:13px 17px;margin:15px 0;border-radius:9px;font-size:14px}.alert .icon{width:18px;height:18px}.success{color:#147a51;background:#e6f8ee;border:1px solid #c9ebd8}.errors{color:#a3333b;background:#fff0f1;border:1px solid #f4cfd3}.errors ul{margin:0;padding-left:17px}.card{background:white;border:1px solid var(--border);border-radius:var(--radius);padding:24px;margin:20px 0;box-shadow:var(--shadow);overflow:auto}.card form:not(.row){max-width:760px}.card label{display:block;margin:17px 0 7px;color:#4c627b}.card input,.card select{display:block;width:100%;margin-top:7px}.card input[type=password]{font-family:inherit}.card button{margin-top:12px}.card .muted{font-size:14px;line-height:1.7}.card>table{margin:-5px 0}.card th,.card td{padding:15px 16px;font-size:14px}.row{display:flex;gap:13px;align-items:center;flex-wrap:wrap}.row h1{margin:10px auto 10px 0}.row input{min-width:180px;flex:1}.row button{min-height:43px}.row a:not(.button){font-size:14px}.danger{background:#ac3545}.danger:hover{background:#912939}nav[role=navigation]{padding:15px 0;font-size:14px}nav[role=navigation] svg{width:18px;height:18px}.empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;justify-content:center;padding:45px 20px;gap:10px;color:#8b9aae}.empty-state>.icon{height:29px;width:29px;color:#abc0d4}.empty-state strong{font-size:15px;color:#5b728c}.empty-state span{font-size:13px;max-width:340px}.empty-state.compact{padding:22px 10px;gap:8px}.empty-state.compact strong{font-size:13px}.empty-state.compact span{font-size:12px}.preview-dialog{border:1px solid var(--border);border-radius:18px;padding:0;max-width:920px;width:calc(100% - 40px);max-height:90vh;overflow:auto;box-shadow:0 30px 100px #08274655;color:var(--ink)}.preview-dialog::backdrop{background:#08223eb3;backdrop-filter:blur(4px)}.preview-dialog-header{display:flex;justify-content:space-between;align-items:center;padding:23px 27px;border-bottom:1px solid var(--border)}.preview-dialog-header h2{font-size:24px}.preview-dialog-header .eyebrow{font-size:10px}.preview-notice{margin:20px 26px;padding:11px 14px;font-size:13px;background:#eff6fd;border:1px solid #dcecfb;border-radius:8px;color:#4c769b;display:flex;align-items:center;gap:9px}.preview-notice .icon{width:17px;height:17px}.preview-toolbar{padding:12px 27px 23px;display:flex;justify-content:space-between;align-items:center;gap:20px}.preview-toolbar h3{font-size:18px;margin-bottom:5px}.preview-toolbar p{font-size:13px;color:var(--muted);margin:0}.preview-toolbar button{font-size:14px;white-space:nowrap}.preview-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;padding:0 27px 24px}.preview-stats>div{display:flex;flex-direction:column;background:#f7faff;border:1px solid var(--border);padding:16px;border-radius:10px;gap:7px}.preview-stats span{font-size:13px;color:#7a8ca0}.preview-stats strong{font-size:27px}.preview-tabs{display:flex;gap:22px;margin:0 27px;border-bottom:1px solid var(--border);font-size:13px;color:#8a9aab;overflow:auto;white-space:nowrap}.preview-tabs span{padding:9px 0 12px}.preview-tabs .selected{color:var(--blue);border-bottom:2px solid var(--blue)}.empty-icon{width:56px;height:56px;border-radius:15px;background:#edf5fd;display:grid;place-items:center;color:#4887bd;margin-bottom:8px}.empty-icon .icon{height:28px;width:28px}.terminal-preview-header{display:flex;justify-content:space-between;align-items:center;padding:0 27px;font-size:12px;color:#8a9aab}.terminal-preview-header>.pill{font-size:11px}.terminal-preview-header .icon{width:13px;height:13px}.terminal-preview{text-align:center;padding:30px 20px}.scan-frame{width:178px;height:178px;margin:0 auto 25px;background:linear-gradient(145deg,#f2faff,#e9f5f2);border:2px solid #8fcbc2;border-radius:20px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;box-shadow:inset 0 0 0 8px white}.scan-frame .icon{width:78px;height:78px;color:#489d98;stroke-width:1}.scan-frame span{font-size:11px;color:#80a5a2}.terminal-preview h3{font-size:23px;margin-bottom:8px}.terminal-preview p{color:#8194a7;font-size:14px}.terminal-mode{display:flex;align-items:center;justify-content:center;gap:12px;margin:24px 0;font-size:12px;color:#8699ab}.terminal-preview button{font-size:14px}.auth-body{background:radial-gradient(ellipse at 12% 10%,#dceaf5,transparent 45%),radial-gradient(ellipse at 90% 90%,#e3f1ed,transparent 45%),#f1f5f9;min-height:100vh}.auth-main{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:45px 24px}.auth-main>.alert{width:100%;max-width:950px}.login-shell{display:grid;grid-template-columns:1fr 1fr;max-width:950px;width:100%;border-radius:20px;overflow:hidden;box-shadow:0 20px 65px #1539581c;border:1px solid #dce5ed;background:white;min-height:578px}.login-brand-panel{padding:37px 40px;color:white;background:linear-gradient(145deg,#103653,#0c2b46 70%,#114c64);position:relative;overflow:hidden;display:flex;flex-direction:column}.login-brand-panel:after{content:"";position:absolute;width:340px;height:340px;right:-230px;top:200px;border:1px solid #ffffff0b;border-radius:50%;box-shadow:0 0 0 35px #ffffff03,0 0 0 70px #ffffff03;pointer-events:none}.login-agency{display:flex;align-items:center;gap:15px;color:white}.login-agency img{height:62px;width:66px;object-fit:contain}.login-agency>span{font-size:12px;font-weight:650;letter-spacing:.5px;line-height:1.6}.login-brand-copy{margin:auto 0;padding:35px 0}.login-brand-copy .eyebrow{font-size:10px;color:#8aacbf;letter-spacing:1.6px;margin-bottom:17px}.login-brand-copy h1{font-size:46px;letter-spacing:-1.5px;font-weight:750;line-height:1.15;margin:0 0 15px}.login-brand-copy h1 span{color:#fff;font-weight:300;font-size:45px}.login-brand-copy>p{color:#b5cddd;font-size:16px;line-height:1.7;margin:0}.login-brand-divider{height:1px;background:#ffffff1a;width:70px;margin:26px 0 20px}.login-feature{display:flex;align-items:center;gap:11px;color:#adc6d9;font-size:12px;margin-top:15px}.login-feature .icon{width:16px;height:16px;color:#57b6bd}.login-brand-panel>small{color:#6f96af;font-size:10px}.login-form-panel{padding:49px 43px;display:flex;flex-direction:column;justify-content:center}.login-form-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.login-lock{width:42px;height:42px;background:#eef5fc;color:#2975b8;display:grid;place-items:center;border-radius:12px}.login-lock .icon{width:22px;height:22px}.login-form-panel h2{font-size:29px;letter-spacing:-.8px;margin-bottom:8px}.login-form-panel>.muted{font-size:14px;line-height:1.7;margin-bottom:28px}.login-form{display:flex;flex-direction:column}.login-form>label{font-size:13px;color:#52667e;margin-bottom:9px}.input-icon{position:relative;margin-bottom:20px;display:flex;align-items:center}.input-icon>.icon{position:absolute;left:14px;width:17px;height:17px;color:#9aaaba;pointer-events:none}.input-icon input{width:100%;padding:13px 40px;font-size:13px;height:47px;background:#fcfdff}.password-toggle{position:absolute;right:5px;padding:8px;min-height:32px;background:none;color:#8b9bad}.password-toggle:hover{background:#f0f5fa}.password-toggle .icon{width:17px;height:17px}.login-submit{display:flex;justify-content:space-between;height:46px;padding:12px 17px;margin-top:7px;font-size:14px;background:linear-gradient(100deg,#1b70b8,#145e9d);box-shadow:0 5px 12px #1b70b823}.login-security{border-top:1px solid #edf1f5;padding-top:21px;margin-top:29px;color:#8e9dad;display:flex;gap:9px;font-size:11px;line-height:1.8}.login-security .icon{width:15px;height:15px;margin-top:2px;color:#6ca99c}.login-bottom{font-size:11px;color:#93a2b2;text-align:center;margin:26px 0 0}.login-bottom span{margin:0 9px;color:#b6c3ce}[hidden]{display:none!important}@media(min-width:1700px){.main-content{padding-left:36px;padding-right:36px}.metric-card{padding:27px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 330px}.panel-heading h2{font-size:17px}.bar-chart{min-height:225px}.composition-body{min-height:225px}.donut-chart{width:160px;height:160px}.metric-label{font-size:14px}.metric-card small{font-size:12px}.chart-row-title{font-size:14px}.quick-item{padding:23px 10px}.quick-item span{font-size:13px}.staff-identity strong,td{font-size:14px}.module-card{padding:23px}.module-copy strong{font-size:15px}}
@media(max-width:1250px){:root{--sidebar:230px}.agency-brand{padding-left:16px;padding-right:16px;gap:8px}.agency-brand>span{font-size:11px}.product-brand{padding-left:21px}.product-brand strong{font-size:22px}.nav-item{font-size:13px;gap:8px;padding-left:10px;padding-right:10px}.nav-soon{font-size:9px}.main-content{padding-left:20px;padding-right:20px}.metrics-grid{gap:11px}.metric-card{padding:18px 13px;gap:10px}.metric-icon{width:42px;height:42px;border-radius:11px}.metric-icon .icon{width:23px;height:23px}.metric-value{font-size:28px}.metric-label{font-size:12px}.metric-card small{font-size:10px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 250px;gap:16px}.analytics-grid{grid-template-columns:1fr}.bar-chart{min-height:145px}.composition-body{min-height:160px}.chart-legend{flex-wrap:wrap}.chart-total{font-size:10px}.topbar{padding-left:24px;padding-right:24px}.topbar-greeting strong{font-size:20px}.secure-label{display:none}.module-grid{grid-template-columns:1fr}.panel-heading{padding-left:17px;padding-right:17px}.dashboard-filter select{max-width:190px}.page-heading h1{font-size:25px}.page-heading p{max-width:280px}.app-footer>span:last-child{display:none}}
@media(max-width:980px){.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.metric-card{padding:20px}.dashboard-grid{grid-template-columns:1fr}.analytics-grid{grid-template-columns:1.2fr 1fr}.dashboard-secondary{display:grid;grid-template-columns:1fr 1fr}.help-card{display:none}.dashboard-filter label{display:none}.dashboard-filter select{max-width:165px}.account-name{max-width:130px}.account-name strong{font-size:12px}.quick-grid{grid-template-columns:repeat(2,1fr)}.composition-body{gap:13px}.donut-chart{height:110px;width:110px;padding:11px}.donut-center strong{font-size:26px}.donut-key{font-size:11px}.panel-heading h2{font-size:14px}.panel-heading .pill{display:none}.chart-legend{font-size:10px}.module-grid{grid-template-columns:1fr 1fr}.module-card{gap:9px;padding:15px}.module-card>.icon{display:none}}
@media(max-width:760px){:root{--sidebar:258px}.sidebar{transform:translateX(-100%);transition:transform .2s}.app-shell{margin-left:0}.sidebar-open .sidebar{transform:translateX(0)}.sidebar-open .sidebar-backdrop{display:block;position:fixed;inset:0;z-index:35;background:#08243e88;backdrop-filter:blur(2px)}.sidebar-open{overflow:hidden}.mobile-menu{display:inline-flex;background:#ffffff14;color:white;border-color:#ffffff24}.topbar{height:94px;padding:14px 17px;gap:10px}.topbar-greeting strong{font-size:18px;max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.topbar-greeting span{font-size:12px}.topbar-greeting small{font-size:10px}.topbar-greeting{gap:9px}.account-name{display:none}.account-menu summary{padding:3px;background:none;border-color:#ffffff2c}.account-menu summary>.icon{display:none}.avatar{width:34px;height:34px;font-size:17px}.main-content{padding:0 17px 24px}.breadcrumb{height:44px;font-size:11px}.today{font-size:10px}.page-heading{align-items:flex-start;flex-direction:column;gap:17px;margin-bottom:20px}.page-heading h1{font-size:26px}.page-heading p{max-width:none;font-size:13px}.dashboard-filter{width:100%}.dashboard-filter label{display:block}.dashboard-filter select{max-width:none;flex:1;min-width:0}.dashboard-filter .filter-button{min-width:38px}.metrics-grid{gap:10px;margin-bottom:17px}.metric-card{padding:17px 12px;gap:10px;border-radius:11px}.metric-icon{width:39px;height:39px}.metric-value{font-size:28px}.metric-label{font-size:11px}.metric-card small{font-size:10px;line-height:1.5}.metrics-grid .metric-dot{display:none}.dashboard-primary,.dashboard-secondary{gap:16px}.analytics-grid{grid-template-columns:1fr;gap:16px}.distribution-panel .panel-heading .pill{display:inline-flex}.bar-chart{min-height:132px;padding:23px 20px}.composition-body{gap:35px;min-height:190px}.donut-chart{height:142px;width:142px;padding:14px}.donut-center strong{font-size:33px}.donut-key{min-width:110px;font-size:13px}.panel-heading h2{font-size:15px}.chart-legend{font-size:11px}.chart-total{font-size:10px}.dashboard-secondary{grid-template-columns:1fr}.quick-grid{grid-template-columns:repeat(4,1fr);gap:7px;padding:0 12px 16px}.quick-item{padding:15px 6px;gap:10px}.quick-item span{font-size:10px;line-height:1.5}.quick-item .icon{height:23px;width:23px}.module-grid{grid-template-columns:1fr}.module-card>.icon{display:block}.workspace-section>.panel-heading>.muted{display:none}.workspace-section>.panel-heading{padding-left:1px}.module-copy strong{font-size:14px}.module-copy small{font-size:12px}.module-copy .pill{font-size:10px}.module-card{padding:18px;gap:14px}.app-footer{font-size:10px;padding:16px 17px}.app-footer>span{max-width:320px}.footer-divider{margin:0 3px}.card{padding:18px}.card th,.card td{font-size:13px;padding:12px}.row h1{font-size:25px}.row .button{font-size:13px;padding:10px 12px}.row input{font-size:14px}.auth-main{padding:25px 18px}.login-shell{grid-template-columns:1fr;max-width:460px;min-height:0}.login-brand-panel{padding:24px 29px}.login-agency{gap:12px}.login-agency img{width:45px;height:45px}.login-agency>span{font-size:11px}.login-brand-copy{padding:24px 0 3px}.login-brand-copy .eyebrow{font-size:9px;margin-bottom:9px}.login-brand-copy h1{font-size:27px;line-height:1.2;margin-bottom:8px}.login-brand-copy h1 br{display:none}.login-brand-copy h1 span{font-size:27px}.login-brand-copy>p{font-size:12px;line-height:1.6}.login-brand-copy>p br{display:none}.login-brand-divider,.login-feature,.login-brand-panel>small{display:none}.login-form-panel{padding:29px}.login-form-heading{margin-bottom:20px}.login-form-panel h2{font-size:26px}.login-form-panel>.muted{font-size:13px;margin-bottom:25px}.login-form>label{font-size:13px}.input-icon input{font-size:14px}.login-submit{font-size:14px}.login-security{font-size:11px;margin-top:24px}.login-bottom{font-size:10px;max-width:300px;line-height:1.8;margin-top:20px}.preview-dialog{width:calc(100% - 24px);max-height:93vh}.preview-dialog-header{padding:19px}.preview-dialog-header h2{font-size:21px}.preview-notice{margin:16px;font-size:12px}.preview-toolbar{padding:10px 17px 20px;align-items:flex-start;flex-direction:column;gap:13px}.preview-toolbar h3{font-size:18px}.preview-stats{padding:0 16px 20px;gap:8px}.preview-stats>div{padding:11px}.preview-stats span{font-size:11px}.preview-tabs{margin:0 17px;gap:19px;font-size:12px}.preview-tabs span{padding:9px 0}.preview-stats strong{font-size:23px}.empty-state{padding:35px 20px}.terminal-preview p{font-size:13px}.terminal-preview-header{padding:0 17px;font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Preserve the official image while framing its transparent canvas. */
.agency-brand img{width:78px;height:78px;margin:-13px -9px;flex-shrink:0}.login-agency img{width:90px;height:90px;margin:-12px;flex-shrink:0}
@media(max-width:760px){.login-agency img{width:66px;height:66px;margin:-10px}}

@media(max-width:760px){.sidebar{visibility:hidden}.sidebar-open .sidebar{visibility:visible}}
.alert.info{background:#eaf4ff;color:#426c98;border:1px solid #d2e5fa}.settings-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:22px;align-items:start}.settings-grid .card{margin-top:0}.division-item{border:1px solid var(--border);border-radius:10px;padding:14px;margin-top:12px}.division-item summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none}.division-item summary>span:first-child{min-width:0;display:flex;flex-direction:column;gap:4px}.division-item summary strong{font-size:14px}.division-item summary small{font-size:12px;color:var(--muted);white-space:normal}.division-item[open]{background:#fbfdff}.division-item form{padding-top:8px}.form-columns{display:grid;grid-template-columns:1fr 1fr;gap:20px}textarea{font:inherit;width:100%;border:1px solid #d7e0eb;border-radius:8px;padding:12px;color:var(--ink);margin-top:7px;resize:vertical}.detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:25px 0}.detail-grid dt{font-size:13px;color:var(--muted);margin-bottom:6px}.detail-grid dd{margin:0;font-size:15px;font-weight:600}.source-batch-link{display:flex;align-items:center;gap:15px;padding:18px 0;border-bottom:1px solid var(--border)}.source-batch-link>span{display:flex;flex-direction:column;gap:5px}.source-batch-link small{color:var(--muted);font-size:13px}.source-batch-link>.icon:last-child{margin-left:auto}.source-batch-link:last-child{border-bottom:0}.program-list{margin-top:20px}.block{display:block}.wrap-cell{white-space:normal;min-width:180px;max-width:350px}.row select{max-width:300px}.row input[type=hidden]{display:none}@media(max-width:900px){.settings-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr 1fr}}@media(max-width:760px){.form-columns{grid-template-columns:1fr}.detail-grid{gap:17px}.row select{max-width:100%;width:100%}.source-batch-link{font-size:14px}.source-batch-link span{min-width:0;overflow-wrap:anywhere}.source-batch-link small{font-size:12px}}
.donut-chart{background:conic-gradient(#13a37d calc(var(--percentage)*1%),#e5ecf2 0 calc(var(--inactive-end,100)*1%),#edb44d 0)}.donut-chart.empty{background:#e7edf3}.legend-dot.amber{background:#edb44d}.recent-program-list{padding:0 20px 7px}.recent-program-list .source-batch-link{font-size:14px}.recent-program-list .source-batch-link>.pill{margin-left:auto}.recent-program-list .table-avatar .icon{height:17px;width:17px}.recent-program-list small{font-size:12px}.module-card{font-weight:400}
.directory-card{padding:0;overflow:hidden}.directory-card nav[role=navigation]{padding:16px 20px}.record-actions-cell{position:sticky;right:0;background:#fff;border-left:1px solid var(--border);z-index:1}.directory-card th.record-actions-cell{background:#f6f8fb}.record-actions{display:flex;align-items:center;gap:7px;white-space:nowrap}.record-actions .action-link{font-size:13px;padding:6px 8px;border-radius:5px;background:#eef5fc}.record-actions .action-delete{font-size:13px;color:#ae3445;background:#fff0f2;min-height:29px;padding:6px 8px;margin:0;font-weight:500}.record-actions .action-delete:hover{background:#ffe0e6}.record-actions form{margin:0}
.sidebar .nav-caption{padding-top:18px;padding-bottom:6px;font-size:10px;letter-spacing:1.2px}.sidebar .nav-item{min-height:40px;padding-top:10px;padding-bottom:10px;margin:2px 0;font-size:13px}.sidebar .nav-item.unavailable{color:#8facc1;cursor:default;opacity:.72}.sidebar .nav-item.unavailable:hover{background:transparent;color:#8facc1}.sidebar .nav-soon{font-size:9px;padding:2px 4px}.sidebar-nav{padding-bottom:12px}.sidebar{scrollbar-width:thin;scrollbar-color:#547590 #0d2c4b}.organization-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.organization-tabs a{border:1px solid var(--border);background:#fff;color:#657e96;padding:9px 16px;border-radius:7px;font-size:14px}.organization-tabs a.selected{background:var(--blue);border-color:var(--blue);color:white}.row input[type=hidden]{display:none}
.sidebar .agency-brand{padding-top:22px;padding-bottom:22px}.sidebar .agency-brand small{font-size:13px;font-weight:400;letter-spacing:0;margin-top:4px}.sidebar .nav-caption{padding-top:14px;padding-bottom:4px}.sidebar .nav-item{min-height:36px;padding-top:8px;padding-bottom:8px}.sidebar-bottom{margin-top:12px;padding-top:17px;padding-bottom:17px}
.record-actions .action-link,.record-actions .action-delete{display:inline-flex;align-items:center;justify-content:center;font:500 11px/1.3 "Segoe UI",Arial,sans-serif;min-height:32px;min-width:55px;padding:7px 10px;border:1px solid transparent;border-radius:6px;margin:0;white-space:nowrap}.record-actions .action-link{background:#eef5fc;color:#1769bc}.record-actions .action-link:hover{background:#dfeefc}.record-actions .action-delete{color:#ae3445;background:#fff0f2}.record-actions form{display:inline-flex;padding:0;margin:0}.number-column{width:58px;min-width:58px;text-align:center!important;white-space:nowrap}th.record-actions-cell{background:#f6f8fb}.program-list>nav[role=navigation]{padding:15px 20px}.program-list .record-actions-cell{vertical-align:middle}
.staff-profile-summary{display:flex;align-items:center;gap:26px}.staff-profile-photo{width:118px;height:146px;border-radius:12px;overflow:hidden;flex-shrink:0;border:1px solid #dce6ef;background:#edf3f9}.staff-profile-photo>img{width:100%;height:100%;object-fit:cover}.profile-placeholder,.portrait-placeholder{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#8da7be;background:linear-gradient(145deg,#eff5fa,#e0ebf3)}.profile-placeholder .icon{width:51px;height:51px;stroke-width:1.2}.profile-placeholder span{font-size:11px;margin-top:9px}.staff-profile-summary h2{font-size:24px;margin:8px 0 6px}.staff-profile-summary>div:last-child>strong{color:#2377b5;font-size:16px}.staff-profile-summary p{font-size:14px;margin:8px 0}.photo-upload-panel h2{margin-bottom:8px}.photo-upload-panel .muted{font-size:14px;margin-bottom:20px}.photo-upload-panel .photo-upload-form{max-width:620px}.photo-upload-form input[type=file]{font-size:14px;padding:10px}.photo-upload-form .photo-remove-option{display:flex;gap:9px;align-items:center;font-size:14px;font-weight:400}.photo-upload-form .photo-remove-option input{width:16px;min-height:16px;height:16px;margin:0}.photo-file-preview{width:96px;height:120px;object-fit:cover;border:1px solid var(--border);border-radius:8px;margin-top:15px}.staff-card-preview-panel>.panel-heading{padding:0 0 12px}.staff-card-preview-panel>p{font-size:14px}.staff-card-pair{display:flex;justify-content:center;gap:40px;align-items:flex-start;flex-wrap:wrap;padding:20px 0 28px}.staff-card-side-label{text-align:center;color:#6b8299;font-size:13px;font-weight:600;margin-bottom:13px}.staff-id-card{--card-unit:1px;position:relative;isolation:isolate;display:flex;flex-direction:column;align-items:center;width:calc(270 * var(--card-unit));height:calc(428 * var(--card-unit));background:linear-gradient(155deg,#f9fcff,#edf4fb);color:#132a43;border:calc(1 * var(--card-unit)) solid #d6e0eb;border-radius:calc(13 * var(--card-unit));overflow:hidden;box-shadow:0 8px 25px #163e6720;text-align:center;line-height:1.4;print-color-adjust:exact;-webkit-print-color-adjust:exact}.staff-id-card:before{content:"";position:absolute;z-index:-1;inset:0;background:linear-gradient(152deg,#143c70 0%,#1c4f94 5%,#e5b857 5.3%,#f2ce76 6.7%,transparent 7%),linear-gradient(159deg,transparent 84%,#e9b646 84.3%,#f7d88e 85.5%,#1e6b9e 85.8%,#12396d 96%);pointer-events:none}.id-card-ribbon{height:calc(31 * var(--card-unit));width:100%;padding:0 calc(14 * var(--card-unit));display:flex;align-items:center;justify-content:space-between;background:linear-gradient(100deg,#123665,#215797);color:white;font-size:calc(8 * var(--card-unit));letter-spacing:calc(.3 * var(--card-unit));font-weight:600;flex-shrink:0}.id-card-agency{display:flex;align-items:center;flex-direction:column;margin-top:calc(10 * var(--card-unit));height:calc(97 * var(--card-unit));flex-shrink:0}.id-card-agency img{height:calc(70 * var(--card-unit));width:calc(76 * var(--card-unit));object-fit:contain;margin:calc(-9 * var(--card-unit)) 0 calc(-5 * var(--card-unit))}.id-card-agency strong{font-size:calc(9.5 * var(--card-unit));line-height:1.35;letter-spacing:calc(.1 * var(--card-unit));font-weight:750}.id-card-portrait{height:calc(115 * var(--card-unit));width:calc(91 * var(--card-unit));flex-shrink:0;overflow:hidden;border:calc(3 * var(--card-unit)) solid white;box-shadow:0 calc(2 * var(--card-unit)) calc(7 * var(--card-unit)) #163e671a;border-radius:calc(9 * var(--card-unit));background:#e7eff6;margin-top:calc(-4 * var(--card-unit))}.id-card-portrait img{width:100%;height:100%;object-fit:cover}.portrait-placeholder .icon{width:calc(42 * var(--card-unit));height:calc(42 * var(--card-unit));stroke-width:1.2}.portrait-placeholder span{font-size:calc(7 * var(--card-unit));margin-top:calc(8 * var(--card-unit))}.id-card-person{padding:calc(12 * var(--card-unit)) calc(16 * var(--card-unit)) 0;width:100%;display:flex;flex-direction:column;align-items:center;gap:calc(4 * var(--card-unit));min-height:calc(86 * var(--card-unit))}.id-card-person>strong{font-size:calc(11.5 * var(--card-unit));line-height:1.35;text-transform:uppercase;font-weight:750;overflow-wrap:anywhere;max-width:100%}.id-card-person>span{font-size:calc(8.5 * var(--card-unit));max-width:100%;line-height:1.4}.id-card-person .id-card-position{color:#617890;font-size:calc(8 * var(--card-unit))}.id-card-employee{display:flex;flex-direction:column;gap:calc(3 * var(--card-unit));padding:calc(4 * var(--card-unit)) calc(12 * var(--card-unit));margin-top:auto;margin-bottom:calc(40 * var(--card-unit))}.id-card-employee span{font-size:calc(6.5 * var(--card-unit));letter-spacing:calc(1.3 * var(--card-unit));color:#7891a7}.id-card-employee strong{font-size:calc(13 * var(--card-unit));letter-spacing:calc(.7 * var(--card-unit))}.id-card-footer{position:absolute;bottom:0;left:0;width:100%;height:calc(29 * var(--card-unit));padding:0 calc(13 * var(--card-unit));display:flex;align-items:center;justify-content:space-between;color:white;gap:calc(8 * var(--card-unit));background:#11386b}.id-card-footer span{font-size:calc(6 * var(--card-unit));letter-spacing:calc(.2 * var(--card-unit))}.id-card-footer strong{font-size:calc(11 * var(--card-unit));letter-spacing:calc(1 * var(--card-unit))}.id-card-scan-title{font-size:calc(8.5 * var(--card-unit));font-weight:700;letter-spacing:calc(.8 * var(--card-unit));margin-top:calc(21 * var(--card-unit));margin-bottom:calc(10 * var(--card-unit))}.id-card-qr{width:calc(172 * var(--card-unit));height:calc(172 * var(--card-unit));background:white;border:calc(1 * var(--card-unit)) solid #e3e8ef;border-radius:calc(5 * var(--card-unit));flex-shrink:0;overflow:hidden}.id-card-qr svg{display:block;width:100%;height:100%}.id-card-back-number{margin-top:calc(9 * var(--card-unit));font-size:calc(12 * var(--card-unit));letter-spacing:calc(.5 * var(--card-unit))}.id-card-qr-caption{margin-top:calc(4 * var(--card-unit));font-size:calc(7 * var(--card-unit));color:#75899e;letter-spacing:calc(.3 * var(--card-unit))}.id-card-terms{margin:calc(16 * var(--card-unit)) calc(19 * var(--card-unit)) 0;padding-left:calc(14 * var(--card-unit));text-align:left;font-size:calc(7.5 * var(--card-unit));line-height:1.5}.id-card-terms li{padding-left:calc(2 * var(--card-unit));margin-bottom:calc(6 * var(--card-unit))}.staff-card-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;margin:15px 0}.staff-card-actions form{margin:0}.staff-card-actions button,.staff-card-actions .button{font-size:14px;margin:0;min-height:40px}.button.secondary{background:#eaf2fa;color:#256aa4;border:1px solid #ccdfef}.button.secondary:hover{background:#dcecf9}.card-eligibility-note{flex-basis:100%;max-width:620px;text-align:center;font-size:13px;line-height:1.8;margin:0 auto}.card-print-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:17px 20px;border:1px solid var(--border);border-radius:10px;background:white}.card-print-toolbar label{font-size:14px}.card-print-toolbar select{font-size:14px;min-height:40px}.card-print-toolbar button{margin-left:auto;font-size:14px}.print-help{font-size:13px;line-height:1.8;color:#788ba0;margin:14px 0}.staff-print-area{background:white;border:1px solid var(--border);border-radius:14px;margin:20px 0;padding:25px}.card-back{background:linear-gradient(145deg,#fff,#f0f6fb)}@media(max-width:760px){.staff-profile-summary{gap:16px;align-items:flex-start}.staff-profile-photo{width:84px;height:110px}.staff-profile-summary h2{font-size:19px}.staff-profile-summary>div:last-child>strong{font-size:14px}.staff-profile-summary p{font-size:13px}.staff-profile-summary small{font-size:12px}.staff-card-pair{gap:25px}.staff-print-area{padding:15px 10px}.staff-card-actions{flex-direction:column;align-items:stretch}.staff-card-actions .button,.staff-card-actions button{width:100%;font-size:13px}.card-print-toolbar button{margin-left:0;width:100%}.card-print-toolbar select{flex:1}.staff-card-preview-panel .panel-heading{flex-wrap:wrap}.photo-upload-panel .muted{font-size:13px}}
@media print{
 html,body{margin:0!important;padding:0!important;background:#fff!important;width:auto!important;min-height:0!important}
 .sidebar,.sidebar-backdrop,.topbar,.breadcrumb,.app-footer,.skip-link,.no-print,.alert,#design-preview{display:none!important}
 .app-shell{margin:0!important;padding:0!important;min-height:0!important;display:block!important}
 .main-content{padding:0!important;margin:0!important;max-width:none!important;width:100%!important}
 .staff-print-area{border:0!important;border-radius:0!important;margin:0!important;padding:0!important;background:white!important}
 .staff-card-pair.printable-pair{display:block!important;padding:0!important;margin:0!important}
 .staff-card-sheet{width:55mm!important;height:89mm!important;padding:0!important;margin:0!important;display:flex!important;flex-direction:column;align-items:center;break-inside:avoid;break-after:page}
 .staff-card-sheet:last-child{break-after:auto}
 .staff-card-side-label{display:none!important}
 .staff-id-card{--card-unit:calc(55mm / 270);width:55mm!important;height:89mm!important;border:0!important;border-radius:0!important;box-shadow:none!important;flex-shrink:0}
 body[data-print-side=front] .staff-card-sheet[data-card-side=back],body[data-print-side=back] .staff-card-sheet[data-card-side=front]{display:none!important}
 body[data-print-side=front] .staff-card-sheet,body[data-print-side=back] .staff-card-sheet{break-after:auto}
}
.staff-photo{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0;border:1px solid #dce5ee;border-radius:8px;background:#edf3f9;vertical-align:middle}.staff-photo img{display:block;width:100%;height:100%;object-fit:cover}.staff-photo-thumbnail{width:38px;height:46px}.staff-photo-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#9bb0c3;background:linear-gradient(145deg,#f2f7fb,#e4edf5)}.staff-photo-empty .icon{width:23px;height:23px;stroke-width:1.4}.photo-column{width:90px;min-width:90px;text-align:center!important}.directory-card td.photo-column{padding-top:8px;padding-bottom:8px}.staff-photo-profile{width:86px;height:108px;border-radius:10px}.staff-photo-profile .icon{width:41px;height:41px}.staff-workspace-heading{margin-bottom:18px}.staff-page-actions{display:flex;gap:9px;align-items:center}.staff-page-actions .button{font-size:13px;min-height:37px;padding:9px 13px}.staff-workspace{display:grid;grid-template-columns:minmax(330px,.95fr) minmax(480px,1.25fr);gap:20px;align-items:start}.staff-workspace>.card{margin:0;padding:21px;overflow:visible}.staff-identity-header{display:flex;align-items:center;gap:17px;min-width:0;padding-bottom:18px;border-bottom:1px solid var(--border)}.staff-identity-header>div{min-width:0}.staff-identity-header .eyebrow{font-size:10px;margin-bottom:5px;letter-spacing:1px}.staff-identity-header h2{font-size:18px;line-height:1.4;margin-bottom:5px;overflow-wrap:anywhere}.staff-identity-header strong{font-size:14px;color:#1f78b6}.staff-identity-header p{font-size:12px;color:#7b8ea3;margin:7px 0 0;line-height:1.6}.staff-photo-editor{margin:13px 0;border:1px solid var(--border);border-radius:8px;background:#f8fbfe}.staff-photo-editor>summary{display:flex;align-items:center;gap:8px;padding:11px 12px;font-size:13px;font-weight:600;color:#527a9d;cursor:pointer;list-style:none}.staff-photo-editor>summary::-webkit-details-marker{display:none}.staff-photo-editor>summary>.icon{width:15px;height:15px}.staff-photo-editor>summary>.icon:last-child{margin-left:auto;width:12px;height:12px;transition:transform .15s}.staff-photo-editor[open]>summary>.icon:last-child{transform:rotate(90deg)}.staff-photo-editor>summary small{font-size:11px;color:#8a9caf;font-weight:400}.photo-editor-compact{padding:0 12px 13px}.photo-editor-compact>.muted{font-size:12px;margin:0 0 8px}.staff-workspace .photo-editor-compact label{font-size:12px;margin:8px 0}.staff-workspace .photo-editor-compact input[type=file]{font-size:12px;min-height:34px;padding:7px}.staff-workspace .photo-editor-compact button{font-size:12px;min-height:33px;padding:8px 12px;margin-top:5px}.staff-workspace .photo-editor-compact .photo-remove-option{font-size:12px;display:flex;align-items:center;gap:7px}.staff-workspace .photo-editor-compact .photo-remove-option input{width:14px;min-height:14px;height:14px;margin:0}.staff-info-section-heading{display:flex;align-items:center;justify-content:space-between;margin:18px 0 14px}.staff-info-section-heading h2{font-size:14px}.staff-field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px 17px}.staff-field-wide{grid-column:1 / -1}.staff-readonly-fields{margin:0}.staff-readonly-fields>div{padding:10px 0;border-bottom:1px solid #edf2f7;min-height:49px;overflow-wrap:anywhere}.staff-readonly-fields dt{font-size:12px;color:#8495a8;margin-bottom:5px}.staff-readonly-fields dd{font-size:14px;font-weight:550;margin:0;line-height:1.6;min-height:18px}.staff-details-form{max-width:none!important}.staff-workspace .staff-details-form label{font-size:12px;margin:0;color:#698097}.staff-workspace .staff-details-form input,.staff-workspace .staff-details-form select{font-size:13px;min-height:37px;height:37px;padding:8px 10px;margin-top:6px}.staff-field-error{display:block;color:#af3446;font-size:11px;margin-top:5px}.staff-inline-note{display:flex;align-items:center;gap:6px;font-size:12px;color:#9d8243;background:#fffbef;border:1px solid #f5ebca;padding:9px 10px;border-radius:7px;margin:14px 0 0}.staff-inline-note .icon{width:14px;height:14px}.staff-form-footer{display:flex;align-items:center;gap:15px;border-top:1px solid var(--border);padding-top:15px;margin-top:18px}.staff-workspace .staff-form-footer button{font-size:13px;min-height:36px;padding:8px 14px;margin:0}.staff-form-footer>a{font-size:13px}.staff-workspace-card .panel-heading h2{font-size:15px}.staff-workspace-card>p.muted{font-size:12px;margin:0}.staff-workspace-card .staff-card-pair{gap:16px;padding:18px 0 15px;flex-wrap:nowrap}.staff-workspace-card .staff-id-card{--card-unit:.80px}.staff-workspace-card .staff-card-side-label{font-size:12px;margin-bottom:9px}.staff-workspace-card .staff-card-actions{gap:8px;margin:9px 0 0}.staff-workspace-card .staff-card-actions .button,.staff-workspace-card .staff-card-actions button{font-size:12px;min-height:35px;padding:9px 11px}.staff-workspace-card .staff-card-actions .icon{width:14px;height:14px}.staff-workspace-card .card-eligibility-note{font-size:12px;max-width:440px;line-height:1.6}.staff-card-size-note{text-align:center;font-size:11px;color:#9aabba;margin:13px 0 0}@media(min-width:1700px){.staff-workspace{grid-template-columns:minmax(400px,.95fr) minmax(600px,1.25fr)}.staff-workspace-card .staff-id-card{--card-unit:.95px}.staff-identity-header h2{font-size:21px}.staff-workspace .staff-details-form label,.staff-readonly-fields dt{font-size:13px}.staff-readonly-fields dd{font-size:15px}.staff-workspace .staff-details-form input,.staff-workspace .staff-details-form select{height:40px;font-size:14px}}@media(max-width:1200px){.staff-workspace{grid-template-columns:1fr}.staff-workspace-card .staff-id-card{--card-unit:1px}.staff-workspace-card .staff-card-pair{gap:30px}.staff-field-wide{grid-column:auto}.staff-identity-header{gap:20px}}@media(max-width:760px){.staff-workspace-heading{gap:14px}.staff-page-actions{width:100%;flex-wrap:wrap}.staff-page-actions .button{font-size:12px}.staff-workspace>.card{padding:17px}.staff-field-grid{gap:12px 14px}.staff-field-wide{grid-column:1 / -1}.staff-workspace-card .staff-card-pair{flex-wrap:wrap;gap:22px}.staff-workspace-card .staff-id-card{--card-unit:.95px}.staff-workspace-card .staff-card-actions{flex-direction:column}.staff-workspace-card .staff-card-actions .button,.staff-workspace-card .staff-card-actions button{font-size:13px;min-height:39px}.staff-identity-header h2{font-size:18px}.staff-photo-profile{width:77px;height:98px}.staff-workspace .staff-details-form input,.staff-workspace .staff-details-form select{font-size:14px;height:40px}.staff-photo-editor>summary small{font-size:10px}.staff-identity-header p{font-size:12px}}@media print{.staff-workspace .staff-id-card{--card-unit:.2mm}}
@media(min-width:1201px){.staff-workspace>.card{padding:18px}.staff-workspace .staff-photo-profile{width:76px;height:96px}.staff-identity-header{padding-bottom:14px}.staff-photo-editor{margin:10px 0}.staff-photo-editor>summary{padding:9px 11px}.staff-info-section-heading{margin:12px 0}.staff-field-grid{gap:10px 15px}.staff-workspace .staff-details-form input,.staff-workspace .staff-details-form select{height:34px;min-height:34px;margin-top:4px;padding:7px 9px}.staff-form-footer{margin-top:14px;padding-top:12px}.staff-inline-note{margin-top:10px;padding:7px 9px;font-size:11px}}
.program-page-heading{align-items:flex-start}.program-page-heading h1{font-size:26px;max-width:820px;line-height:1.35}.program-page-heading p{max-width:800px;margin-top:7px;line-height:1.7}.program-workspace{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.85fr);gap:20px;align-items:start}.program-workspace .card{margin:0;padding:22px}.program-details-panel>.panel-heading{padding:0 0 18px;border-bottom:1px solid var(--border);margin-bottom:19px}.program-fields{display:grid;grid-template-columns:1fr 1fr;gap:16px 22px}.program-field-wide{grid-column:1/-1}.program-field{min-width:0}.program-field>label{display:block;margin:0 0 6px;font-size:13px;color:#66809b}.program-field>dt{font-size:12px;color:#8a9baf;margin-bottom:7px}.program-field>dd{margin:0;padding-bottom:12px;border-bottom:1px solid #edf2f7;min-height:32px;line-height:1.7;font-size:14px;font-weight:550;white-space:pre-wrap;overflow-wrap:anywhere}.program-workspace .program-field>input,.program-workspace .program-field>select{width:100%;margin:0;height:39px;min-height:39px;font-size:14px;padding:9px 11px}.program-workspace textarea{margin:0;font-size:14px;min-height:78px}.program-readonly-value{height:39px;display:flex;align-items:center;background:#f6f8fc;border:1px solid var(--border);border-radius:8px;padding:9px 11px;font-size:13px;color:#7188a1}.required-mark{color:#c66b69}.field-help{display:block;font-size:11px;color:#8da0b4;line-height:1.7;margin-top:6px}.program-sidebar{display:flex;flex-direction:column;gap:18px;min-width:0}.program-sidebar h2{font-size:15px;margin-bottom:15px}.program-sidebar .muted{font-size:12px}.program-cover{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;border-radius:10px;border:1px solid var(--border)}.program-cover-placeholder{width:100%;min-height:195px;position:relative;overflow:hidden;background:linear-gradient(135deg,#143c5d,#1b6ba3);border-radius:10px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;color:white;padding:25px;text-align:center;isolation:isolate}.program-cover-placeholder:after{content:"";position:absolute;width:230px;height:230px;border-radius:50%;right:-130px;bottom:-120px;border:1px solid #ffffff15;box-shadow:0 0 0 35px #ffffff05,0 0 0 70px #ffffff03;z-index:-1}.program-cover-placeholder>img{position:absolute;right:11px;top:8px;width:57px;height:57px;object-fit:contain;opacity:.8}.program-cover-placeholder>.icon{width:30px;height:30px;color:#91bfd7;stroke-width:1.4}.program-cover-placeholder>strong{font-size:17px;line-height:1.55;max-width:310px}.program-cover-placeholder>span{font-size:11px;color:#9dc0d7}.program-workspace .program-upload-label{font-size:12px;display:block;margin-top:14px}.program-upload-label input[type=file]{width:100%;font-size:12px;min-height:36px;padding:8px;margin-top:6px}.program-checkbox{display:flex!important;gap:7px;align-items:center;font-size:12px!important;font-weight:400;margin-top:10px}.program-checkbox input{width:14px;min-height:14px;height:14px;padding:0;margin:0;flex-shrink:0}.program-documents-panel h2{display:flex;gap:7px;align-items:center}.program-documents-panel h2>.icon{width:17px;height:17px;color:#4285ba}.program-documents-empty{display:flex;justify-content:center;align-items:center;flex-direction:column;gap:9px;padding:20px;background:#f7fafd;border:1px dashed #dbe6f0;border-radius:9px;color:#97aabc;font-size:13px}.program-documents-empty .icon{width:28px;height:28px;stroke-width:1.3}.program-document{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid var(--border)}.program-document>div{min-width:0;flex:1}.program-document a{font-size:13px;overflow-wrap:anywhere;display:block}.program-document small{font-size:11px;color:#8c9fb2;display:block;margin-top:3px}.program-document .program-checkbox{font-size:11px!important;margin:0}.program-summary-strip{border:1px solid #dfe9f2;border-radius:11px;background:#eaf2fa;padding:17px;display:flex;align-items:center;gap:12px;color:#7b9ab6}.program-summary-strip>.icon{width:18px;height:18px}.program-summary-strip>span{display:flex;flex-direction:column;font-size:11px;flex:1;gap:5px}.program-summary-strip strong{font-size:13px;color:#4f7497}.program-attendance-options{margin-top:20px;border-top:1px solid var(--border);padding-top:12px}.program-attendance-options>summary{display:flex;align-items:center;gap:7px;cursor:pointer;font-size:13px;color:#7792ac;list-style:none}.program-attendance-options>summary>.icon{width:15px;height:15px}.program-attendance-options>summary>.icon:last-child{margin-left:auto;width:12px;height:12px}.program-attendance-options>.form-columns{padding:15px 0 0;font-size:13px}.program-attendance-options label{margin:0;font-size:12px}.program-attendance-options select{width:100%;font-size:13px}.program-attendance-options .form-columns>div{display:flex;flex-direction:column;gap:5px}.program-attendance-options small{font-size:11px;color:#90a0b1}.program-save-actions{display:flex;gap:15px;align-items:center;border-top:1px solid var(--border);padding-top:17px;margin-top:20px}.program-save-actions button{font-size:14px}.program-save-actions>a{font-size:13px}.program-save-actions>small{margin-left:auto;font-size:11px;color:#94a4b5}.pill.live{background:#e8f3ff;color:#1c74b9}.program-source-details{margin-top:20px}.program-source-details>summary{cursor:pointer;font-weight:650;color:#486c8d;padding:0 0 9px}.program-source-details>p{margin-top:10px}.program-list td:nth-child(2){white-space:normal;min-width:220px;max-width:370px}.program-list .record-actions-cell{min-width:205px}@media(max-width:1050px){.program-workspace{grid-template-columns:1fr}.program-sidebar{display:grid;grid-template-columns:1fr 1fr;align-items:start}.program-summary-strip{grid-column:1/-1}.program-page-heading{flex-direction:column}}@media(max-width:760px){.program-workspace .card{padding:18px}.program-fields{gap:14px}.program-sidebar{display:flex}.program-page-heading h1{font-size:24px}.program-field>label{font-size:12px}.program-workspace .program-field>input,.program-workspace .program-field>select{font-size:14px;min-height:41px;height:41px}.program-save-actions{flex-wrap:wrap}.program-save-actions>small{margin:0;flex-basis:100%}.program-cover-placeholder{min-height:180px}.program-field>dd{font-size:13px}.program-attendance-options>.form-columns{grid-template-columns:1fr 1fr}}
.program-field>dd{white-space:normal}.program-description{white-space:pre-line}@media(min-width:1200px){.program-fields{gap:13px 20px}.program-workspace .program-field>input,.program-workspace .program-field>select,.program-readonly-value{height:36px;min-height:36px;padding:8px 10px}.program-field>dd{min-height:36px;padding:6px 0 10px}.program-workspace textarea{min-height:69px}.program-save-actions{padding-top:14px;margin-top:17px}}
@media(max-width:760px){.program-sidebar{align-items:stretch;width:100%}.program-sidebar>.card,.program-sidebar>.program-summary-strip{width:100%}}

.attendance-terminal{display:grid;grid-template-columns:minmax(300px,1fr) minmax(300px,1fr);gap:22px}.attendance-modes{display:flex;gap:12px;margin:20px 0}.attendance-modes button{flex:1}.attendance-scanner input{width:100%}.attendance-camera{margin-top:25px;border-top:1px solid #e1eaf4;padding-top:20px}.attendance-camera video{width:100%;max-height:320px;border-radius:12px}.attendance-result{text-align:center;min-height:360px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:2px solid transparent}.attendance-result.scan-success{border-color:#17a278}.attendance-result img{width:110px;height:138px;object-fit:cover;border-radius:12px;margin-bottom:15px}.attendance-result h2{font-size:24px}.attendance-result>div>svg{width:50px;height:50px;color:#7d9cb9}.attendance-time-grid{display:flex;gap:30px;background:#f1f6fc;border-radius:12px;padding:18px 30px;margin-top:18px}.attendance-time-grid small,.attendance-time-grid strong{display:block}.attendance-time-grid strong{font-size:23px;margin-top:8px}.attendance-result [hidden],.attendance-scanner [hidden]{display:none!important}@media(max-width:800px){.attendance-terminal{grid-template-columns:1fr}.attendance-result{min-height:300px}}

.attendance-modes button[aria-pressed="false"],.attendance-scanner button.secondary{background:#edf4fc;color:#1a66ad;border:1px solid #c9def3}.attendance-modes button[aria-pressed="true"]{background:#156ac0;color:#fff;border:1px solid #156ac0;box-shadow:0 0 0 3px #156ac01a}.attendance-modes button:disabled{opacity:.7;cursor:default}.attendance-result{scroll-margin-top:18px}

/* Readable controls for the enlarged interface typography. */
.staff-workspace .staff-details-form input,.staff-workspace .staff-details-form select,.program-workspace .program-field>input,.program-workspace .program-field>select,.program-readonly-value{min-height:40px;height:auto}.nav-item>span:not(.nav-soon){min-width:0}.staff-page-actions{flex-wrap:wrap}

.nav-soon{white-space:nowrap;flex-shrink:0}

/* Staffed attendance terminal: distinct USB and phone-camera workflows. */
.terminal-page-heading{align-items:flex-start}.terminal-page-heading h1{max-width:950px;font-size:27px;line-height:1.35}.terminal-readiness{align-items:flex-start;margin-bottom:20px}.terminal-readiness p{margin:5px 0 7px}.terminal-activation{max-width:800px}.terminal-activation h2{font-size:21px;margin:14px 0}.attendance-terminal{align-items:start;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);gap:22px}.attendance-terminal>.card{margin:0;padding:24px;min-width:0}.terminal-session-bar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;color:#70859a;font-size:12px;padding-bottom:17px;border-bottom:1px solid var(--border)}.terminal-section-title{font-size:19px;margin:20px 0 14px}.terminal-methods{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:22px}.terminal-methods button{justify-content:flex-start;padding:14px;background:#f6f9fd;border:1px solid #dae5f0;color:#56728e;min-height:76px;box-shadow:none;text-align:left}.terminal-methods button[aria-selected=true]{background:#edf5ff;border:2px solid #1769bc;color:#155c9f;padding:13px}.terminal-methods button>.icon{width:26px;height:26px}.terminal-methods button span{display:flex;flex-direction:column;gap:3px;font-size:15px}.terminal-methods button small{font-size:12px;font-weight:400}.terminal-action-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;font-size:13px}.terminal-action-heading>span{font-size:12px;color:#7289a0}.attendance-terminal .attendance-modes{margin:10px 0 20px}.attendance-modes button{min-height:45px}.terminal-help{font-size:13px;color:#70869d;line-height:1.65;margin:9px 0 15px}.terminal-usb-actions{display:flex;gap:10px;flex-wrap:wrap}.terminal-device-status{font-size:13px;color:#537e74;margin:15px 0 0}.terminal-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--border);padding-top:18px;margin-top:22px}.terminal-footer>span{font-size:12px;color:#8395a7;max-width:260px}.terminal-footer button{font-size:13px;white-space:nowrap}.terminal-camera-viewport{background:#eef4f9;position:relative;display:grid;place-items:center;min-height:250px;border-radius:12px;overflow:hidden;border:1px solid #dae6ef}.terminal-camera-viewport video{display:block;width:100%;height:300px;object-fit:cover}.terminal-camera-viewport [data-camera-placeholder]{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:25px;color:#7892a9}.terminal-camera-viewport [data-camera-placeholder] .icon{width:62px;height:62px;stroke-width:1.2;color:#39998e}.terminal-camera-viewport [data-camera-placeholder] span{font-size:13px}.terminal-camera-frame{position:absolute;width:185px;height:185px;border:3px solid #63d4ba;border-radius:15px;pointer-events:none;box-shadow:0 0 0 200px #001e3630}.terminal-camera-controls{display:flex;gap:10px;margin-top:14px}.attendance-terminal .attendance-result{display:flex;flex-direction:column;justify-content:flex-start;min-height:515px;border:2px solid transparent;text-align:center}.attendance-terminal .attendance-result.scan-success{border-color:#17a278}.attendance-terminal .attendance-result.scan-error{border-color:#e4b16c}.terminal-result-heading{display:flex;align-items:center;justify-content:space-between;width:100%;gap:10px;border-bottom:1px solid var(--border);padding-bottom:17px}.terminal-result-heading .eyebrow{margin:0;font-size:11px}.terminal-result-content{padding:30px 5px 20px;margin:auto 0;width:100%;overflow-wrap:anywhere}.terminal-result-content h2{font-size:24px;line-height:1.35;margin:14px 0 9px}.terminal-result-content p{font-size:14px;line-height:1.7;margin:8px 0}.terminal-result-content [data-result-detail]{color:#71869a;max-width:450px;margin:10px auto}.terminal-result-content [data-result-time]{font-size:13px;color:#58758f}.terminal-waiting-icon{display:inline-flex;background:#edf6fc;border-radius:20px;padding:22px;color:#5492b1}.terminal-waiting-icon .icon{width:45px;height:45px}.attendance-terminal .attendance-time-grid{margin-top:0;justify-content:space-around;width:100%;gap:12px;padding:20px 14px}.attendance-time-grid small{font-size:13px;color:#69819a}.attendance-time-grid strong{font-size:25px}.attendance-result [data-result-help]{font-size:13px;margin-top:12px}.attendance-terminal [hidden]{display:none!important}@media(max-width:1100px){.terminal-page-heading{flex-direction:column}.terminal-page-heading .staff-page-actions{justify-content:flex-start}.terminal-methods button{padding:10px}.terminal-methods button[aria-selected=true]{padding:9px}.terminal-methods button span{font-size:14px}}@media(max-width:800px){.attendance-terminal{grid-template-columns:1fr}.attendance-terminal>.card{padding:18px}.terminal-page-heading h1{font-size:24px}.terminal-footer{flex-wrap:wrap}.terminal-result-content{padding:20px 0}.attendance-terminal .attendance-result{min-height:350px}.terminal-camera-viewport video{height:280px}}@media(max-width:390px){.terminal-methods button>.icon{width:22px;height:22px}.terminal-methods button span{font-size:13px}.terminal-methods button small{font-size:11px}}

/* Live attendance workspace and compact mobile scanner. */
.terminal-live-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}.terminal-live-metric{display:flex;align-items:center;gap:13px;background:#fff;border:1px solid var(--border);border-radius:13px;padding:16px 18px;box-shadow:var(--shadow)}.terminal-metric-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:12px;background:#edf3fa;color:#43698e;flex-shrink:0}.terminal-metric-icon .icon{width:22px;height:22px}.terminal-live-metric>div{min-width:0}.terminal-live-metric>div>span{display:block;font-size:12px;color:#72859b}.terminal-live-metric strong{display:block;font-size:29px;line-height:1.2;margin-top:4px;letter-spacing:-.6px}.metric-scanned .terminal-metric-icon{background:#e7f1ff;color:#1e6fbe}.metric-present .terminal-metric-icon{background:#e3f6ef;color:#108f6e}.metric-checked_out .terminal-metric-icon{background:#f0eafd;color:#8162bd}.terminal-live-list.card{margin-top:20px;padding:23px}.terminal-live-list-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border);padding-bottom:16px}.terminal-live-list-heading h2{font-size:21px;margin:0}.terminal-live-list-heading .eyebrow{font-size:10px;margin-bottom:5px}.terminal-live-list-heading p{font-size:12px;color:#8193a6;margin:6px 0 0}.terminal-live-indicator{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:#649182;max-width:280px;line-height:1.5}.terminal-live-indicator i{width:7px;height:7px;background:#19b68b;border-radius:50%;flex-shrink:0}.terminal-live-indicator.is-offline{color:#a47b43}.terminal-live-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0;font-size:13px;color:#7b8fa1}.terminal-live-list-toolbar strong{color:#24649b}.terminal-live-list-toolbar button{font-size:12px;min-height:33px;padding:7px 10px;background:#f0f5fb;color:#3e719d;border:1px solid #dbe6f0}.terminal-feed-rows{margin:0;padding:0;list-style:none}.terminal-feed-row{display:grid;grid-template-columns:24px 43px minmax(140px,1fr) 185px 105px;gap:12px;align-items:center;padding:14px 3px;border-top:1px solid #edf2f7}.terminal-feed-number{font-size:12px;color:#8b9aab;text-align:center}.terminal-feed-portrait{height:43px;width:43px;position:relative;display:grid;place-items:center;background:#eaf2fa;border-radius:11px;color:#6686a2;font-size:12px;overflow:hidden;font-weight:650}.terminal-feed-portrait img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.terminal-feed-identity{min-width:0;overflow-wrap:anywhere}.terminal-feed-identity strong{display:block;font-size:14px;color:#27435e;line-height:1.5}.terminal-feed-identity small{display:block;font-size:11px;color:#8b9bad;margin-top:3px;line-height:1.5}.terminal-feed-times{display:grid;grid-template-columns:1fr 1fr;gap:12px}.terminal-feed-times span{display:flex;flex-direction:column;gap:4px}.terminal-feed-times small{font-size:10px;color:#91a0b0}.terminal-feed-times strong{font-size:13px;color:#52728e;font-variant-numeric:tabular-nums}.terminal-feed-badge{font-size:10px;padding:5px 7px;border-radius:6px;text-align:center;white-space:nowrap}.terminal-feed-badge.is-in{background:#e6f7ef;color:#168b65}.terminal-feed-badge.is-out{background:#eef0f9;color:#77799a}.terminal-feed-empty{padding:30px 10px;text-align:center;font-size:14px;color:#8195a9;background:#f8fafd;border-radius:10px}.terminal-feed-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid var(--border);padding-top:14px;margin-top:6px}.terminal-feed-pagination small{font-size:12px;color:#8294a5}.terminal-feed-pagination>div{display:flex;gap:7px}.terminal-feed-pagination button{font-size:12px;min-height:32px;padding:6px 10px;background:#f0f5fb;border:1px solid #d9e5ef;color:#4b7497}.terminal-feed-note{font-size:11px;line-height:1.7;color:#8a9bae;margin:14px 0 0}.terminal-camera-guide{font-size:12px;color:#8395a7;margin-top:10px}.terminal-camera-guide summary{cursor:pointer}.terminal-scan-feedback{font-size:13px;line-height:1.6;padding:10px 12px;border-radius:9px;background:#fff3e5;color:#997440;margin-top:12px;overflow-wrap:anywhere}.terminal-scan-feedback.is-success{background:#e6f7ef;color:#187e60}.terminal-live-workspace [hidden]{display:none!important}@media(max-width:1100px){.terminal-feed-row{grid-template-columns:22px 40px minmax(120px,1fr) 155px 95px;gap:9px}}@media(max-width:800px){.terminal-page-heading{gap:10px;margin-bottom:14px}.terminal-page-heading h1{font-size:23px;margin-bottom:5px}.terminal-page-heading .eyebrow{font-size:10px;margin-bottom:4px}.terminal-page-heading p{font-size:12px}.terminal-page-heading .staff-page-actions{gap:7px}.terminal-page-heading .staff-page-actions .button{min-height:33px;padding:7px 9px;font-size:11px}.terminal-live-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-bottom:13px}.terminal-live-metric{padding:12px;gap:10px;border-radius:11px}.terminal-metric-icon{width:34px;height:34px;border-radius:9px}.terminal-metric-icon .icon{width:19px;height:19px}.terminal-live-metric>div>span{font-size:11px}.terminal-live-metric strong{font-size:25px;margin-top:2px}.attendance-terminal{gap:13px}.attendance-terminal>.card{padding:15px;border-radius:12px}.terminal-session-bar{padding-bottom:11px;gap:7px;font-size:11px}.terminal-section-title{font-size:15px;margin:13px 0 10px}.terminal-methods{gap:8px;margin-bottom:14px}.terminal-methods button,.terminal-methods button[aria-selected=true]{min-height:54px;padding:9px;gap:8px}.terminal-methods button span{font-size:13px}.terminal-methods button small{display:none}.terminal-methods button>.icon{width:22px;height:22px}.terminal-action-heading{font-size:12px}.terminal-action-heading>span{font-size:11px}.attendance-terminal .attendance-modes{gap:8px;margin:8px 0 12px}.attendance-modes button{min-height:41px;font-size:14px;padding:9px}.terminal-camera-viewport{min-height:190px}.terminal-camera-viewport video{height:210px}.terminal-camera-frame{height:150px;width:150px;border-width:2px}.terminal-camera-viewport [data-camera-placeholder]{padding:18px;gap:10px}.terminal-camera-viewport [data-camera-placeholder] .icon{width:43px;height:43px}.terminal-camera-viewport [data-camera-placeholder] strong{font-size:14px}.terminal-camera-viewport [data-camera-placeholder] span{font-size:12px}.terminal-camera-controls{margin-top:10px}.terminal-camera-controls button{width:100%;font-size:13px;min-height:41px}.terminal-help{font-size:12px;line-height:1.6;margin:7px 0 9px}.terminal-camera-guide{font-size:11px;margin-top:5px}.terminal-footer{padding-top:10px;margin-top:12px;justify-content:flex-end}.terminal-footer>span{display:none}.terminal-footer button{font-size:11px;min-height:31px;padding:6px 9px}.attendance-terminal .attendance-result{min-height:0}.terminal-result-heading{padding-bottom:10px}.terminal-result-heading .eyebrow{font-size:10px}.terminal-result-content{padding:13px 0 12px}.terminal-result-content h2{font-size:18px;margin:8px 0 5px}.terminal-result-content p{font-size:12px;line-height:1.5;margin:4px 0}.terminal-result-content [data-result-detail]{font-size:12px;margin:5px auto}.terminal-result-content [data-result-time]{font-size:11px;margin:7px 0}.attendance-result img{width:55px;height:68px;margin-bottom:7px;border-radius:9px}.terminal-result-content .eyebrow{font-size:10px;margin-bottom:3px}.terminal-waiting-icon{padding:12px;border-radius:13px}.terminal-waiting-icon .icon{width:28px;height:28px}.attendance-terminal .attendance-time-grid{padding:12px;gap:10px}.attendance-time-grid small{font-size:11px}.attendance-time-grid strong{font-size:22px;margin-top:3px}.terminal-live-list.card{padding:15px;margin-top:13px}.terminal-live-list-heading{align-items:flex-start;gap:10px;padding-bottom:12px}.terminal-live-list-heading h2{font-size:18px}.terminal-live-list-heading p{font-size:11px;line-height:1.6}.terminal-live-indicator{font-size:10px;max-width:100px;gap:5px}.terminal-live-list-toolbar{font-size:12px;margin:12px 0}.terminal-live-list-toolbar button{font-size:10px;min-height:31px;padding:6px 8px}.terminal-live-list-toolbar button .icon{width:14px;height:14px}.terminal-feed-row{grid-template-columns:18px 35px minmax(0,1fr) 82px;gap:8px;padding:12px 0}.terminal-feed-number{font-size:10px}.terminal-feed-portrait{width:35px;height:40px;border-radius:8px;font-size:10px}.terminal-feed-identity strong{font-size:12px;line-height:1.5}.terminal-feed-identity small{font-size:10px;line-height:1.5}.terminal-feed-times{grid-column:3;grid-row:auto;gap:12px;padding-top:0}.terminal-feed-times span{flex-direction:row;align-items:center;gap:5px}.terminal-feed-times small{font-size:9px}.terminal-feed-times strong{font-size:10px}.terminal-feed-badge{grid-column:4;grid-row:1 / span 2;font-size:9px;padding:4px 5px}.terminal-feed-identity{grid-column:3}.terminal-feed-number,.terminal-feed-portrait{grid-row:1 / span 2}.terminal-feed-pagination{gap:8px}.terminal-feed-pagination small{font-size:10px}.terminal-feed-pagination button{font-size:10px;padding:5px 7px;min-height:29px}.terminal-feed-note{font-size:10px;line-height:1.7}.terminal-scan-feedback{font-size:12px;padding:8px 10px;margin-top:9px}}

@media(max-width:800px){.terminal-feed-times{display:flex;flex-wrap:wrap;gap:6px 10px}}

@media(max-width:800px){.terminal-page .topbar{height:72px;min-height:72px;padding-top:10px;padding-bottom:10px}.terminal-page .topbar-greeting small{display:none}.terminal-page .breadcrumb{height:36px}.terminal-page-heading>.eyebrow,.terminal-page-heading>div>.eyebrow{display:none}.terminal-page-heading{margin-top:3px}.terminal-live-metric{padding:10px 12px}.terminal-page .terminal-section-title{display:none}.terminal-page .terminal-methods{margin-top:12px}.terminal-page .terminal-result-content [data-result-detail]{margin-bottom:4px}}

/* Sidebar agency identity: crest above the two-line department name. */
.sidebar .agency-brand{flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:0;padding:17px 12px 20px}.sidebar .agency-brand img{width:125px;height:110px;margin:-8px 0 -15px;object-fit:contain}.sidebar .agency-brand>span{font-size:13px;line-height:1.5;font-weight:700;letter-spacing:0}.sidebar .agency-brand small{font-size:12px;margin-top:5px;font-weight:400}

/* Compact terminal controls; icon-only helpers retain accessible labels. */
.terminal-page .terminal-icon-button{width:38px;min-width:38px;height:38px;min-height:38px;padding:9px;flex-shrink:0}.terminal-icon-button .icon{width:18px;height:18px}.terminal-page .terminal-close{margin-left:auto}.terminal-page .terminal-close button{background:#fff1f2;color:#b76570;border:1px solid #f0dce0}.terminal-visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.terminal-compact-controls{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:16px 0}.terminal-page .terminal-methods{display:flex;gap:6px;margin:0}.terminal-page .terminal-methods button,.terminal-page .terminal-methods button[aria-selected=true]{min-height:38px;padding:8px 11px;border-width:1px;border-radius:7px;gap:7px}.terminal-page .terminal-methods button span{font-size:13px;display:block}.terminal-page .terminal-methods button>.icon{width:18px;height:18px}.terminal-page .attendance-modes{display:flex;gap:6px;margin:0}.terminal-page .attendance-modes button{min-height:38px;padding:8px 11px;font-size:13px;flex:none;box-shadow:none}.terminal-page .attendance-modes button .icon{width:16px;height:16px}.terminal-usb-entry{display:flex;gap:7px;align-items:center;margin-top:7px}.terminal-usb-entry input{flex:1;min-width:0;margin:0;font-size:14px}.terminal-page .terminal-device-status{font-size:12px;margin-top:10px}.terminal-page .attendance-terminal>.card{padding:19px}.terminal-page .attendance-result{min-height:340px}.terminal-page .terminal-result-content{padding:20px 0}.terminal-page .terminal-result-content h2{font-size:21px}.terminal-page .terminal-waiting-icon{padding:15px}.terminal-page .terminal-waiting-icon .icon{width:33px;height:33px}.terminal-page .terminal-result-content p{font-size:13px}.terminal-page .terminal-live-metric{padding:12px 16px}.terminal-page .terminal-live-metric strong{font-size:26px}.terminal-page .terminal-camera-controls button{min-height:38px;font-size:13px;padding:8px 11px}.terminal-page .terminal-camera-controls .terminal-icon-button{width:38px}.terminal-page .terminal-live-list-toolbar .terminal-icon-button{width:34px;min-width:34px;height:34px;min-height:34px;padding:7px}.terminal-page .terminal-feed-pagination .terminal-icon-button{width:34px;min-width:34px;height:34px;min-height:34px;padding:5px;font-size:22px}@media(max-width:1100px){.terminal-compact-controls{flex-wrap:wrap;gap:9px}.terminal-page .attendance-result{min-height:310px}}@media(max-width:800px){.terminal-page .attendance-terminal>.card{padding:14px}.terminal-compact-controls{margin:12px 0;gap:8px;flex-wrap:nowrap}.terminal-page .terminal-methods button,.terminal-page .terminal-methods button[aria-selected=true],.terminal-page .attendance-modes button{font-size:11px;min-height:40px;padding:8px;gap:5px}.terminal-page .terminal-methods button span{font-size:11px}.terminal-page .terminal-methods button>.icon,.terminal-page .attendance-modes button .icon{width:15px;height:15px}.terminal-page .terminal-session-bar{font-size:10px;gap:6px}.terminal-page .terminal-close .terminal-icon-button{width:32px;min-width:32px;height:32px;min-height:32px;padding:7px}.terminal-page .terminal-live-metric{padding:10px 12px}.terminal-page .attendance-result{min-height:0}.terminal-page .terminal-result-content{padding:12px 0}.terminal-page .terminal-result-content h2{font-size:18px}.terminal-page .terminal-result-content p{font-size:12px}.terminal-page .terminal-camera-controls button{width:auto}.terminal-page .terminal-camera-controls button[data-camera-start]{flex:1}.terminal-page .terminal-camera-controls .terminal-icon-button{flex:none}.terminal-usb-entry{gap:5px}.terminal-usb-entry input{font-size:13px}.terminal-page .terminal-usb-entry .terminal-icon-button{width:36px;min-width:36px}}@media(max-width:370px){.terminal-compact-controls{flex-wrap:wrap}.terminal-page .terminal-session-bar>span:nth-child(2){font-size:9px}}

/* Consistent icon-only action buttons across all application screens. */
body button.compact-action,body a.compact-action{width:38px!important;min-width:38px!important;max-width:38px!important;height:38px!important;min-height:38px!important;padding:9px!important;gap:0!important;flex:0 0 38px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;font-size:0!important;vertical-align:middle;white-space:nowrap}.compact-action>.action-button-caption{display:none!important}.compact-action>.icon{width:19px!important;height:19px!important;flex-shrink:0;display:block!important}.record-actions-cell,.program-list .record-actions-cell{min-width:140px}.staff-page-actions{gap:8px}.program-save-actions{gap:10px}.compact-action[aria-pressed=true],.compact-action[aria-selected=true]{box-shadow:0 0 0 2px #1b72bf24}.terminal-page .terminal-compact-controls{justify-content:space-between}.terminal-page .terminal-methods,.terminal-page .attendance-modes{gap:7px}.terminal-page .terminal-camera-controls .compact-action[data-camera-start]{flex:0 0 38px!important}.login-form .login-submit.compact-action{align-self:flex-end}.card-print-toolbar .compact-action{margin-left:auto}@media(pointer:coarse){body button.compact-action,body a.compact-action{width:42px!important;min-width:42px!important;max-width:42px!important;height:42px!important;min-height:42px!important;flex-basis:42px!important}.record-actions-cell,.program-list .record-actions-cell{min-width:150px}}
.compact-action[hidden]{display:none!important}

/* One-column scan station: scanner, compact result, then the live name list. */
.terminal-page .attendance-terminal{grid-template-columns:minmax(0,1fr);gap:12px}.terminal-page .attendance-scanner{width:100%;max-width:none}.terminal-page .terminal-activation{max-width:none;display:flex;align-items:center;gap:16px;padding:20px}.terminal-page .terminal-activation h2{margin:0 0 5px;font-size:18px}.terminal-page .terminal-activation p{font-size:13px;margin:0;color:#7c91a6}.terminal-page .terminal-activation form{margin-left:auto}.terminal-page .terminal-session-bar{padding-bottom:10px}.terminal-page .terminal-compact-controls{justify-content:flex-start;gap:25px;margin:12px 0}.terminal-page .attendance-modes{margin-left:auto}.terminal-page [data-method-panel=usb] form{max-width:850px}.terminal-page .terminal-camera-viewport{min-height:160px;max-width:640px;margin:0 auto}.terminal-page .terminal-camera-viewport video{height:230px}.terminal-page .terminal-camera-controls{justify-content:center;margin-top:9px}.terminal-page .terminal-camera-guide{margin-top:5px}.terminal-page .attendance-result{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 230px;align-items:center;gap:12px;padding:15px 19px}.terminal-page .terminal-result-heading{grid-column:1/-1;padding-bottom:8px}.terminal-page .terminal-result-content{margin:0;padding:0;text-align:left}.terminal-page .terminal-result-content h2{font-size:18px;margin:6px 0}.terminal-page .terminal-result-content p{font-size:12px;margin:4px 0}.terminal-page .terminal-result-content [data-result-detail]{max-width:none;margin:4px 0}.terminal-page .terminal-result-content [data-result-time]{font-size:11px}.terminal-page .terminal-waiting-icon{display:none}.terminal-page .terminal-result-content [data-result-person]{position:relative;min-height:0}.terminal-page .terminal-result-content [data-result-person] img{float:left;width:54px;height:67px;margin:0 13px 7px 0;border-radius:9px}.terminal-page .attendance-time-grid{margin:0;padding:13px 10px;align-self:center}.terminal-page .attendance-time-grid strong{font-size:23px}.terminal-page .terminal-live-metrics{gap:9px;margin-bottom:12px}.terminal-page .terminal-live-metric{padding:10px 14px;box-shadow:none}.terminal-page .terminal-live-metric strong{font-size:24px}.terminal-page .terminal-metric-icon{width:34px;height:34px}.terminal-page .terminal-live-list.card{margin-top:12px}.terminal-page .terminal-scan-feedback{margin-top:9px;padding:8px 10px;font-size:12px}.terminal-page .terminal-page-heading{margin-bottom:15px}@media(max-width:800px){.terminal-page .terminal-compact-controls{gap:10px}.terminal-page .attendance-terminal>.card{padding:13px}.terminal-page .attendance-result{grid-template-columns:1fr;gap:8px}.terminal-page .terminal-result-content h2{font-size:16px}.terminal-page .terminal-result-content p,.terminal-page .terminal-result-content [data-result-detail]{font-size:11px}.terminal-page .terminal-result-content [data-result-placeholder]>p{display:none}.terminal-page .terminal-result-heading{padding-bottom:6px}.terminal-page .attendance-time-grid{padding:8px 10px;display:flex}.terminal-page .attendance-time-grid>div{display:flex;align-items:center;gap:9px}.terminal-page .attendance-time-grid strong{font-size:18px;margin:0}.terminal-page .terminal-live-metric{padding:9px 11px}.terminal-page .terminal-live-metric strong{font-size:23px}.terminal-page .terminal-camera-viewport{min-height:155px}.terminal-page .terminal-camera-viewport video{height:195px}.terminal-page .terminal-camera-frame{width:135px;height:135px}.terminal-page .terminal-activation{padding:15px;gap:10px}.terminal-page .terminal-activation h2{font-size:16px}.terminal-page .terminal-activation p{font-size:12px}.terminal-page .terminal-activation>.section-icon{display:none}}

.terminal-page .topbar{height:72px;min-height:72px;padding-top:10px;padding-bottom:10px}.terminal-page .topbar-greeting>div>span{display:none}.terminal-page .breadcrumb{height:34px}.terminal-page .terminal-page-heading .eyebrow{display:none}.terminal-page .terminal-page-heading h1{font-size:24px;line-height:1.35}.terminal-page .terminal-page-heading p{font-size:12px}.terminal-page .terminal-page-heading{gap:12px;margin-top:2px;margin-bottom:13px}@media(max-width:800px){.terminal-page .terminal-page-heading h1{font-size:21px}.terminal-page .terminal-result-content [data-result-placeholder] h2{font-size:15px}.terminal-page .terminal-result-content [data-result-placeholder] p{display:none}}

.staff-create-note{font-size:12px;line-height:1.7;color:#8396a8;margin:12px 0 0}.staff-create-qr-note{display:flex;align-items:center;justify-content:center;gap:8px;color:#66839c;font-size:12px;line-height:1.7;text-align:center;background:#f0f6fc;padding:11px;border-radius:9px;margin-top:14px}.staff-create-qr-note .icon{width:19px;height:19px;flex-shrink:0}

/* Program directory: combined information columns without horizontal scrolling. */
.program-list.program-list-compact{width:100%;min-width:0}.program-list-compact .table-scroll{overflow:visible;min-width:0}.program-list-compact table{width:100%;table-layout:fixed;white-space:normal}.program-list-compact .program-col-number{width:44px}.program-list-compact .program-col-details{width:auto}.program-list-compact .program-col-organizer{width:32%}.program-list-compact .program-col-status{width:120px}.program-list-compact .program-col-actions{width:148px}.program-list-compact th,.program-list-compact td{padding:16px 15px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}.program-list.program-list-compact td:nth-child(2){min-width:0;max-width:none}.program-list-compact .number-column{padding-left:10px;padding-right:5px;text-align:center;color:#8a9caf;font-size:12px}.program-list.program-list-compact .record-actions-cell{position:static;min-width:0;padding-left:12px;padding-right:12px}.program-list-compact .record-actions{gap:6px}.program-list-name{display:block;font-size:14px;font-weight:650;line-height:1.6;color:#2166a4}.program-list-code{display:block;color:#8a9aab;font-size:11px;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}.program-list-date{display:flex;gap:6px;align-items:flex-start;color:#6f879d;font-size:12px;line-height:1.6;margin-top:8px}.program-list-date .icon{width:14px;height:14px;flex-shrink:0;margin-top:2px}.program-list-place>div{display:flex;flex-direction:column;gap:2px}.program-list-place>div+div{margin-top:8px}.program-list-place small{font-size:10px;color:#94a4b4}.program-list-place strong{font-size:12px;font-weight:550;line-height:1.6;color:#4e6c86}.program-list-place span{font-size:12px;line-height:1.6;color:#7c8fa1}.program-list-status .pill{max-width:100%;white-space:normal;overflow:visible;font-size:10px;line-height:1.5;text-align:center}.program-list-status>small{font-size:10px;line-height:1.6;margin-top:5px}@media(max-width:1100px){.program-list.program-list-compact{background:transparent;border:0;box-shadow:none;overflow:visible}.program-list-compact table,.program-list-compact tbody{display:block;width:100%}.program-list-compact colgroup{display:none}.program-list-compact thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.program-list-compact tbody>tr{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:0 10px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:14px 16px;margin-bottom:12px;box-shadow:var(--shadow)}.program-list-compact tbody>tr>td{padding:0;border:0;min-width:0;max-width:none}.program-list-compact tbody>tr>.number-column{grid-column:1;grid-row:1;align-self:center;text-align:left;font-size:11px}.program-list-compact .program-list-status{grid-column:2/-1;grid-row:1;justify-self:end;display:flex;align-items:center;gap:8px}.program-list-status>small{margin:0}.program-list-compact .program-list-details{grid-column:1/-1;grid-row:2;margin-top:10px}.program-list-compact .program-list-place{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:12px;padding-top:11px;border-top:1px solid #edf2f7}.program-list-place>div+div{margin-top:0}.program-list.program-list-compact tbody>tr>.record-actions-cell{grid-column:1/-1;grid-row:4;margin-top:12px;padding:11px 0 0;border:0;border-top:1px solid #edf2f7;background:transparent}.program-list-compact .record-actions{justify-content:flex-end}.program-list-compact td[colspan]{grid-column:1/-1}.program-list-name{font-size:14px}.program-list-code{font-size:11px}.program-list-compact>nav[role=navigation]{padding:10px 0}}@media(max-width:430px){.program-list-compact .program-list-place{grid-template-columns:1fr;gap:9px}.program-list-compact tbody>tr{padding:13px 14px}.program-list-name{font-size:13px}.program-list-date{font-size:11px}}

/* Shared pagination: one summary, page-size control and compact page links. */
.record-pagination{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:17px 20px;border-top:1px solid var(--border);background:#fff;flex-wrap:wrap}.record-pagination-settings{display:flex;align-items:center;flex-wrap:wrap;gap:18px}.record-pagination-settings form{margin:0}.record-pagination-settings label{display:flex;align-items:center;gap:8px;font-size:12px;color:#7d90a3;font-weight:400;margin:0}.record-pagination-settings select{width:83px;min-height:34px;height:34px;padding:6px 9px;font-size:12px;margin:0;border-color:#dbe5ef}.record-pagination-summary{font-size:12px;color:#8193a5;line-height:1.7}.record-pagination-summary strong{font-weight:600;color:#57758e}.record-pagination-pages{display:flex;align-items:center;gap:5px}.pagination-page,.pagination-arrow{width:32px;height:32px;display:grid;place-items:center;border:1px solid #e1eaf3;border-radius:7px;color:#597f9f;background:#fff;font-size:12px;line-height:1}.pagination-page:hover,.pagination-arrow:hover{background:#edf5fe;border-color:#bed9f2}.pagination-page.is-current{background:#1769bc;border-color:#1769bc;color:#fff;font-weight:650}.pagination-arrow .icon{width:15px;height:15px}.pagination-arrow[rel=prev] .icon,.pagination-arrow[aria-label="Halaman sebelum"] .icon{transform:rotate(180deg)}.pagination-arrow.is-disabled{color:#bdcbd8;background:#f7f9fc}.pagination-gap{font-size:12px;color:#93a4b5;padding:0 3px}.directory-card .record-pagination,.program-list-compact .record-pagination{border-radius:0 0 13px 13px}@media(max-width:700px){.record-pagination{padding:14px;gap:13px;align-items:center;flex-direction:column}.record-pagination-settings{width:100%;justify-content:space-between;gap:8px}.record-pagination-settings label,.record-pagination-summary{font-size:11px}.record-pagination-settings select{width:75px;font-size:12px}.record-pagination-pages{justify-content:center;max-width:100%;gap:4px}.pagination-page,.pagination-arrow{width:30px;height:32px;font-size:11px}.pagination-gap{padding:0 1px}}@media(max-width:360px){.record-pagination-settings{justify-content:center}.record-pagination-summary{width:100%;text-align:center}}

/* Focused scan flow: last identity above the centered scanner, actions below. */
.terminal-scan-overview{display:flex;align-items:center;justify-content:center;gap:13px;margin:0 0 11px;color:#64829b}.terminal-scan-overview>span{display:flex;align-items:center;gap:7px;font-size:13px}.terminal-scan-overview .icon{width:19px;height:19px;color:#307eb8}.terminal-scan-overview>strong{font-size:25px;color:#1b659e;line-height:1;padding:7px 13px;border:1px solid #dceaf7;border-radius:9px;background:#edf5fd}.terminal-page .attendance-result{width:100%;max-width:720px;justify-self:center;text-align:center;grid-template-columns:minmax(0,1fr);gap:7px;padding:13px 18px}.terminal-page .terminal-result-heading{padding-bottom:7px}.terminal-page .terminal-result-content{text-align:center;padding:1px 0}.terminal-page .terminal-result-content h2{font-size:19px;margin:5px 0}.terminal-page .terminal-result-content p{font-size:12px;margin:3px 0}.terminal-page .terminal-result-content [data-result-detail]{text-align:center;margin:3px auto}.terminal-page .terminal-result-content [data-result-person] img{float:none;display:block;width:60px;height:74px;margin:0 auto 7px}.terminal-page .terminal-result-content [data-result-placeholder] p{display:none}.terminal-page .attendance-time-grid{justify-self:center;width:auto;gap:25px;padding:8px 16px;display:flex;justify-content:center}.terminal-page .attendance-time-grid>div{display:flex;align-items:center;gap:8px}.terminal-page .attendance-time-grid small{font-size:11px}.terminal-page .attendance-time-grid strong{font-size:18px;margin:0}.terminal-page .attendance-scanner{width:100%;max-width:850px;justify-self:center;text-align:center}.terminal-page .terminal-compact-controls{justify-content:center;margin:12px 0}.terminal-page .terminal-methods{justify-content:center}.terminal-page .terminal-usb-entry{max-width:630px;margin:8px auto 0}.terminal-page [data-method-panel=usb] form{max-width:none}.terminal-page .terminal-camera-viewport{max-width:500px;min-height:160px}.terminal-page .terminal-camera-viewport video{height:220px}.terminal-page .terminal-device-status{margin:8px 0}.terminal-action-below{display:flex;justify-content:center;border-top:1px solid #edf2f7;margin-top:13px;padding-top:12px}.terminal-page .terminal-action-below .attendance-modes{margin:0;justify-content:center;gap:14px}.terminal-page .terminal-camera-controls{margin-top:8px}.terminal-page .terminal-help{font-size:12px;margin:7px 0}.terminal-page .terminal-session-bar{text-align:left}.terminal-list-heading-meta{display:flex;flex-direction:column;align-items:flex-end;gap:8px}.terminal-active-staff{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#7f93a7}.terminal-active-staff .icon{width:16px;height:16px}.terminal-active-staff strong{color:#4b7191;font-size:14px}.terminal-feed-row{grid-template-columns:24px 43px minmax(140px,1fr) 185px}.terminal-page .terminal-scan-feedback{display:none!important}@media(max-width:800px){.terminal-scan-overview{margin-bottom:9px;gap:10px}.terminal-scan-overview>span{font-size:12px}.terminal-scan-overview>strong{font-size:23px}.terminal-page .attendance-result{padding:11px 13px}.terminal-page .terminal-result-content h2{font-size:17px}.terminal-page .terminal-result-content [data-result-person] img{width:50px;height:62px}.terminal-page .terminal-result-content [data-result-detail]{font-size:11px}.terminal-page .attendance-time-grid{gap:15px;padding:7px 10px;max-width:100%;width:100%}.terminal-page .attendance-time-grid strong{font-size:16px}.terminal-page .terminal-camera-viewport video{height:195px}.terminal-page .terminal-camera-viewport{min-height:155px}.terminal-list-heading-meta{max-width:118px;gap:6px}.terminal-active-staff{font-size:10px}.terminal-active-staff strong{font-size:12px}.terminal-feed-row{grid-template-columns:18px 35px minmax(0,1fr)}.terminal-feed-times{grid-column:3}.terminal-page .terminal-camera-controls{justify-content:center}.terminal-page .terminal-camera-controls .compact-action[data-camera-start]{flex:0 0 38px!important}}

/* Group related staff details into a readable directory. */
.staff-directory-compact .table-scroll{overflow:visible}.staff-directory-compact table{width:100%;table-layout:fixed;white-space:normal}.staff-directory-compact th,.staff-directory-compact td{white-space:normal;overflow-wrap:anywhere;padding:15px 14px;vertical-align:middle}.staff-directory-compact th:nth-child(1){width:48px}.staff-directory-compact th:nth-child(2){width:76px}.staff-directory-compact th:nth-child(3){width:28%}.staff-directory-compact th:nth-child(4){width:28%}.staff-directory-compact th:last-child{width:150px}.staff-directory-compact .record-actions-cell{position:static;min-width:0}.staff-directory-compact .photo-column{min-width:0}.staff-list-name,.staff-list-primary{display:block;font-size:14px;line-height:1.6;font-weight:600}.staff-list-secondary{display:block;font-size:12px;line-height:1.6;color:#7c8fa3;margin-top:4px}.staff-directory-compact .record-actions{gap:6px}
@media(max-width:1100px){.staff-directory-compact thead{display:none}.staff-directory-compact table,.staff-directory-compact tbody{display:block}.staff-directory-compact tbody tr{display:grid;grid-template-columns:40px 56px minmax(0,1fr);gap:10px 8px;padding:16px;border-bottom:1px solid var(--border)}.staff-directory-compact tbody td{display:block;border:0;padding:0;min-width:0;width:auto;max-width:none}.staff-directory-compact td.number-column{align-self:center}.staff-directory-compact td.photo-column{grid-column:2;grid-row:1}.staff-directory-compact td[data-label="Kakitangan"]{grid-column:3;grid-row:1}.staff-directory-compact td[data-label="Bahagian / Jawatan"],.staff-directory-compact td[data-label="Maklumat Hubungan"]{grid-column:2 / -1}.staff-directory-compact td[data-label]:not([data-label="Kakitangan"]):before{content:attr(data-label);display:block;font-size:11px;color:#91a1b1;margin-bottom:3px}.staff-directory-compact .record-actions-cell{grid-column:2 / -1;background:transparent}.staff-directory-compact .number-column{min-width:0}.staff-directory-compact tbody tr:last-child{border-bottom:0}}

/* Unified scanning station, matching the compact IN / OUT reference. */
.terminal-page .terminal-unified{display:block;max-width:1100px;margin:0 auto 20px}.terminal-page .terminal-unified .attendance-scanner{max-width:none;width:100%;padding:22px;background:#f8fafc}.terminal-unified .terminal-session-bar{flex-wrap:wrap;gap:12px;padding-bottom:18px}.terminal-unified .terminal-scan-overview{margin:0 0 0 auto;padding:0;gap:8px;display:flex}.terminal-unified .terminal-scan-overview strong{font-size:23px;background:none;border:0;padding:0;min-width:0}.terminal-unified .terminal-scan-overview span{font-size:14px}.terminal-unified .terminal-scan-overview .icon{display:none}.terminal-unified .terminal-close{margin-left:4px}.terminal-page .terminal-unified .terminal-compact-controls{justify-content:center;padding:15px 0 0;margin:0}.terminal-scan-intro{text-align:center;padding:12px 0 20px}.terminal-scan-intro>.icon{color:var(--blue);width:29px;height:29px}.terminal-scan-intro h2{font-size:23px;margin:7px 0}.terminal-scan-intro p{color:var(--muted);font-size:14px;margin:0}.terminal-scan-stage{display:grid;grid-template-columns:65px minmax(0,1fr) 65px;align-items:start;gap:12px}.terminal-scan-stage>[data-method-panel]{grid-column:2;grid-row:1;min-width:0}.terminal-page .terminal-unified .terminal-action-below,.terminal-unified .attendance-modes{display:contents}.terminal-unified [data-scan-action]{display:flex;flex-direction:column;gap:8px;min-height:86px;padding:15px 6px;background:white;border:1px solid var(--border);color:#607487;border-radius:16px;font-weight:500;font-size:14px;grid-row:1}.terminal-unified [data-scan-action=checkin]{grid-column:1}.terminal-unified [data-scan-action=checkout]{grid-column:3}.terminal-unified [data-scan-action][aria-pressed=true]{background:#e0f2e9;color:#009c58;border-color:#b9e4ce;box-shadow:0 0 0 1px #b9e4ce}.terminal-unified [data-scan-action] .icon{width:23px;height:23px}.terminal-unified .terminal-usb-entry{position:relative;max-width:none;margin:0}.terminal-unified .terminal-usb-entry input{height:86px;min-height:86px;padding:20px 52px 20px 18px;border-radius:16px;background:#fff;font-size:16px;border:1px solid #e4ecf4;width:100%}.terminal-unified .terminal-usb-entry [data-usb-focus]{position:absolute;right:10px;top:24px;background:transparent;border:0}.terminal-unified [data-submit-scan],.terminal-unified [data-scan-form]>label,.terminal-unified #usb-scan-help{display:none!important}.terminal-unified .terminal-device-status{text-align:center;font-size:13px;margin:18px 0;color:#5d7c6d}.terminal-page .terminal-unified .attendance-result{width:100%;max-width:none;margin:12px 0 0;padding:18px 22px;background:#edf3f8;box-shadow:none;border:1px solid #e0e9f1;border-radius:18px;text-align:left}.terminal-unified .attendance-result.scan-success{background:#e5f3ec;border-color:#c9e8d9}.terminal-unified .attendance-result.scan-error{background:#fff4e6;border-color:#f0d7b3}.terminal-unified .terminal-result-heading{padding-bottom:10px;margin-bottom:10px}.terminal-unified .terminal-result-content{text-align:left}.terminal-unified [data-result-person]{text-align:left!important;min-height:70px}.terminal-unified [data-result-photo]{float:left;margin:0 17px 6px 0!important;width:65px;height:80px;border-radius:12px}.terminal-unified [data-result-name]{font-size:20px!important}.terminal-unified [data-result-placeholder] h2{font-size:17px}.terminal-unified .attendance-time-grid{justify-content:flex-start;margin-top:12px}.terminal-reset-row{display:flex;justify-content:center;margin-top:16px}.terminal-unified button.terminal-reset{display:inline-flex;gap:8px;min-height:34px;padding:6px 16px;border-radius:30px;background:transparent;color:#6e7c8c;border:1px solid #cdd8e2;font-size:13px}.terminal-unified .terminal-camera-viewport{max-height:300px;aspect-ratio:4/3}.terminal-unified .terminal-help{font-size:12px}.terminal-unified .terminal-result-content:after{content:"";display:block;clear:both}
@media(max-width:600px){.terminal-page .terminal-unified .attendance-scanner{padding:15px}.terminal-unified .terminal-session-bar{gap:7px;font-size:11px}.terminal-unified .terminal-scan-overview{order:3;width:100%;justify-content:flex-end}.terminal-unified .terminal-scan-overview span{font-size:12px}.terminal-unified .terminal-close{margin-left:auto}.terminal-scan-stage{grid-template-columns:44px minmax(0,1fr) 44px;gap:7px}.terminal-unified [data-scan-action]{min-height:72px;border-radius:12px;font-size:12px;padding:11px 4px}.terminal-unified .terminal-usb-entry input{height:72px;min-height:72px;font-size:13px;padding:14px 36px 14px 10px}.terminal-unified .terminal-usb-entry [data-usb-focus]{right:0;top:15px}.terminal-scan-intro h2{font-size:20px}.terminal-scan-intro p{font-size:12px}.terminal-page .terminal-unified .attendance-result{padding:14px}.terminal-unified [data-result-name]{font-size:17px!important}.terminal-unified .terminal-camera-viewport{aspect-ratio:3/4}.terminal-unified .terminal-camera-guide{display:none}}

.terminal-unified .terminal-camera-viewport{min-height:0!important}.terminal-unified [data-camera-placeholder]{min-height:0!important;height:100%;padding:18px 10px;justify-content:center}.terminal-unified [data-camera-placeholder] strong{font-size:12px}.terminal-unified [data-camera-placeholder] span{font-size:11px}.terminal-unified [data-camera-placeholder]>.icon{width:35px;height:35px}

/* Compact staff directory typography without horizontal scrolling. */
.staff-directory-compact th{font-size:12px;white-space:nowrap;padding:13px 10px}.staff-directory-compact td{font-size:12px;padding:12px 10px}.staff-directory-compact .staff-list-name,.staff-directory-compact .staff-list-primary{font-size:12px;line-height:1.55;font-weight:550}.staff-directory-compact .staff-list-secondary{font-size:11px;line-height:1.5;margin-top:4px}.staff-directory-compact th:nth-child(1){width:40px}.staff-directory-compact th:nth-child(2){width:65px}.staff-directory-compact th:nth-child(3){width:28%}.staff-directory-compact th:nth-child(4){width:31%}.staff-directory-compact th:last-child{width:142px}.staff-directory-compact .staff-list-name,.staff-directory-compact .staff-list-primary,.staff-directory-compact .staff-list-secondary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.staff-directory-compact .staff-photo-thumbnail{width:34px;height:42px}
@media(max-width:1100px){.staff-directory-compact td{padding:0}.staff-directory-compact .staff-list-name,.staff-directory-compact .staff-list-primary,.staff-directory-compact .staff-list-secondary{white-space:normal;overflow:visible;overflow-wrap:anywhere}.staff-directory-compact .staff-list-name{font-size:13px}}

/* Bring the scanning surface closer to the session controls. */
.terminal-page .terminal-page-heading{margin-bottom:12px}.terminal-page .terminal-unified .attendance-scanner{padding-top:15px}.terminal-unified .terminal-session-bar{padding-bottom:10px;margin-bottom:0}.terminal-page .terminal-unified .terminal-compact-controls{padding:8px 0 0}.terminal-unified .terminal-scan-intro{padding:7px 0 10px;display:flex;align-items:center;justify-content:center;gap:9px}.terminal-unified .terminal-scan-intro>.icon{width:21px;height:21px}.terminal-unified .terminal-scan-intro h2{font-size:18px;margin:0;line-height:1.4}.terminal-unified .terminal-scan-intro p{display:none}.terminal-unified .terminal-camera-viewport{margin-top:0}.terminal-unified .terminal-camera-controls{margin-top:8px}.terminal-unified .terminal-camera-controls+p{margin-top:7px;margin-bottom:5px}
@media(max-width:600px){.terminal-page .terminal-unified .attendance-scanner{padding-top:12px}.terminal-unified .terminal-scan-intro{padding:7px 0 9px}.terminal-unified .terminal-scan-intro h2{font-size:16px}.terminal-unified .terminal-session-bar{padding-bottom:8px}.terminal-unified .terminal-scan-overview{order:0;width:auto;margin-left:auto}.terminal-unified .terminal-scan-overview span{font-size:11px}.terminal-unified .terminal-close{margin-left:0}}

/* Professional portlet header: session left, live total right. */
.terminal-page .terminal-unified .attendance-scanner{background:#fff;border-radius:16px;padding:18px 22px}.terminal-unified .terminal-session-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0;padding:0 0 14px;border-bottom:1px solid var(--border)}.terminal-session-identity{display:flex;align-items:center;gap:12px;min-width:0}.terminal-session-identity>span:last-child{font-size:12px;color:#7a8fa4}.terminal-unified .terminal-session-identity .pill{font-size:11px;padding:5px 9px;border-radius:6px;white-space:nowrap}.terminal-unified .terminal-scan-overview{display:flex;align-items:center;gap:9px;flex-shrink:0;margin:0;width:auto;order:0}.terminal-unified .terminal-scan-overview span{font-size:12px;color:#7a8fa4}.terminal-unified .terminal-scan-overview strong{font-size:24px;line-height:1.2;color:#1b679f;font-variant-numeric:tabular-nums}.terminal-page .terminal-unified .terminal-compact-controls{padding:12px 0 0}.terminal-unified .terminal-scan-intro{padding:8px 0 12px}.terminal-unified .terminal-scan-stage{max-width:740px;margin:0 auto;grid-template-columns:58px minmax(0,1fr) 58px;gap:14px}.terminal-unified .terminal-camera-viewport{width:100%;max-width:420px;aspect-ratio:4/3;max-height:280px;border-radius:12px;background:#eaf0f6}.terminal-unified .terminal-camera-viewport video{width:100%;height:100%;object-fit:cover}.terminal-unified [data-scan-action]{min-height:74px;border-radius:12px}.terminal-unified .terminal-reset-row{gap:10px;align-items:center}.terminal-unified .terminal-reset-row .terminal-close{margin:0}.terminal-unified .terminal-reset-row .terminal-close button{width:34px!important;height:34px!important;min-height:34px!important;min-width:34px!important}.terminal-unified .terminal-camera-guide{margin-top:5px}
@media(max-width:600px){.terminal-page .terminal-unified .attendance-scanner{padding:14px}.terminal-unified .terminal-session-bar{gap:8px;padding-bottom:11px;align-items:flex-start}.terminal-session-identity{flex-direction:column;align-items:flex-start;gap:5px}.terminal-session-identity>span:last-child{font-size:10px}.terminal-unified .terminal-scan-overview{margin:0;flex-direction:column;align-items:flex-end;gap:2px}.terminal-unified .terminal-scan-overview span{font-size:10px}.terminal-unified .terminal-scan-overview strong{font-size:22px}.terminal-unified .terminal-scan-stage{grid-template-columns:42px minmax(0,1fr) 42px;gap:7px}.terminal-unified .terminal-camera-viewport{aspect-ratio:3/4;max-height:250px}.terminal-unified [data-scan-action]{min-height:68px}.terminal-unified .terminal-camera-controls{margin-top:6px}}

/* Scan confirmation stays visible while the camera is in use. */
.terminal-scan-notice{position:fixed;top:18px;left:calc(50% + var(--sidebar)/2);transform:translateX(-50%);z-index:150;width:min(560px,calc(100vw - var(--sidebar) - 40px));display:flex;align-items:center;gap:13px;padding:17px 18px;border:1px solid #c8e7d5;border-left:5px solid #159c65;border-radius:13px;background:#f0fcf5;box-shadow:0 12px 40px #153e4833;color:#125c3d}.terminal-scan-notice[hidden]{display:none!important}.terminal-scan-notice.is-error{background:#fff3ed;color:#903e2b;border-color:#f1d4c7;border-left-color:#d16942}.terminal-scan-notice>img{width:48px;height:60px;object-fit:cover;border-radius:8px;flex-shrink:0}.terminal-scan-notice>div{min-width:0;flex:1}.terminal-scan-notice strong{display:block;font-size:17px;line-height:1.4;overflow-wrap:anywhere}.terminal-scan-notice span{display:block;font-size:14px;line-height:1.5;margin-top:5px}.terminal-scan-notice>button{background:transparent;color:inherit;flex-shrink:0}.terminal-scan-notice>button:hover{background:#00000008}
@media(max-width:1100px){.terminal-scan-notice{left:50%;width:min(560px,calc(100vw - 24px));top:12px}}@media(max-width:600px){.terminal-scan-notice{padding:13px 12px;gap:10px}.terminal-scan-notice strong{font-size:15px}.terminal-scan-notice span{font-size:13px}.terminal-scan-notice>img{width:40px;height:50px}}

/* Keep the last scan above the camera; place camera close inside its corner. */
.terminal-page .terminal-unified .attendance-result{margin:12px 0 10px;padding:12px 16px}.terminal-unified .terminal-result-heading{padding-bottom:6px;margin-bottom:7px}.terminal-unified .attendance-result [data-result-placeholder] p{display:none}.terminal-unified .attendance-result [data-result-placeholder] h2{font-size:14px;margin:0}.terminal-unified .terminal-result-content [data-result-detail]{font-size:12px;margin-bottom:3px}.terminal-unified .terminal-result-content [data-result-time]{font-size:11px;margin-bottom:3px}.terminal-unified .terminal-camera-viewport{position:relative}.terminal-unified .terminal-camera-viewport [data-camera-stop]{position:absolute;top:8px;right:8px;z-index:5;background:#ffffffed!important;color:#29475f!important;box-shadow:0 2px 9px #142c4426}.terminal-unified .terminal-camera-choice{display:flex;align-items:center;gap:8px;margin:8px 0;min-width:0}.terminal-camera-choice label{font-size:11px;color:#7b8fa3}.terminal-camera-choice select{flex:1;min-width:0;width:100%;font-size:12px;height:34px;min-height:34px;padding:5px 8px}.terminal-unified .attendance-result [data-result-person] p{margin-bottom:4px}.terminal-unified .attendance-result .attendance-time-grid{margin-top:6px;padding:7px}.terminal-unified .terminal-camera-controls:has([data-camera-start][hidden]){display:none}

/* Shared content typography. Physical staff cards retain their print scale. */
:root{--content-text:14px;--content-label:12px;--content-table:12px;--content-title:24px;--content-heading:16px}
.main-content{font-size:var(--content-text)}
.main-content :is(p,dd,li):not(.staff-id-card *):not(.terminal-feed-rows *):not(.record-pagination *){font-size:var(--content-text)}
.main-content h1{font-size:var(--content-title)!important;line-height:1.35}
.main-content h2:not(.staff-id-card *){font-size:var(--content-heading)!important;line-height:1.45}
.main-content h3:not(.staff-id-card *){font-size:var(--content-heading)!important;line-height:1.45}
.main-content :is(label,dt,small,.eyebrow,.field-help,.terminal-help):not(.staff-id-card *){font-size:var(--content-label)!important}
.main-content :is(input,select,textarea):not(.staff-id-card *){font-size:var(--content-text)!important}
.main-content table :is(th,td,a,strong,span,small){font-size:var(--content-table)!important;line-height:1.6}
.main-content table th{font-weight:650}
.main-content .staff-list-name,.main-content .staff-list-primary{font-size:var(--content-table)!important}
.main-content .staff-list-secondary{font-size:var(--content-label)!important}
.main-content .page-heading p,.main-content .staff-identity-header p,.main-content .terminal-live-list-heading p{font-size:var(--content-text)!important}
.main-content .pill{font-size:11px}
.main-content .record-pagination :is(label,select,small,.record-pagination-summary){font-size:var(--content-label)!important}
@media(max-width:600px){.main-content h1{font-size:22px!important}.main-content input,.main-content select,.main-content textarea{font-size:16px!important}}

/* Stable single-line scan result below the scanner. */
.terminal-inline-result-slot{height:58px;margin-top:12px;min-width:0}.terminal-unified .terminal-scan-notice{position:static;transform:none;left:auto;top:auto;width:100%;height:58px;min-height:58px;margin:0;padding:8px 12px;border-radius:9px;box-shadow:none;background:#f3f7fa;border:1px solid #dfe8ef;color:#526d85;gap:9px}.terminal-unified .terminal-scan-notice.is-success{background:#eaf8ef;border-color:#bfe4ce;color:#17643e}.terminal-unified .terminal-scan-notice.is-error{background:#fff2eb;border-color:#f0d2c2;color:#93432e}.terminal-unified .terminal-scan-notice>img{width:28px;height:36px;border-radius:5px}.terminal-unified .terminal-scan-notice>div{display:flex;align-items:center;gap:10px;white-space:nowrap;overflow:hidden;min-width:0}.terminal-unified .terminal-scan-notice strong{font-size:12px;line-height:1.4;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:0 1 auto;max-width:45%}.terminal-unified .terminal-scan-notice span{font-size:12px;line-height:1.4;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.terminal-unified .terminal-scan-notice>button{width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;padding:4px!important}.terminal-unified .terminal-scan-notice>button .icon{width:15px;height:15px}@media(max-width:600px){.terminal-unified .terminal-scan-notice{padding:7px;gap:6px}.terminal-unified .terminal-scan-notice>div{gap:6px}.terminal-unified .terminal-scan-notice strong,.terminal-unified .terminal-scan-notice span{font-size:11px}}

.terminal-unified .attendance-result[hidden]{display:none!important}

.terminal-unified .terminal-camera-choice[hidden],.terminal-unified [data-camera-message][hidden]{display:none!important}.terminal-inline-result-slot{height:64px}.terminal-unified .terminal-scan-notice{height:64px;min-height:64px;padding:10px 14px}.terminal-unified .terminal-scan-notice strong{font-size:14px}.terminal-unified .terminal-scan-notice span{font-size:14px}.terminal-unified .terminal-scan-notice>img{width:32px;height:42px}@media(max-width:600px){.terminal-unified .terminal-scan-notice strong,.terminal-unified .terminal-scan-notice span{font-size:12px}.terminal-unified .terminal-scan-notice{padding:8px;gap:7px}}

/* Scanner input conceals credential characters and shows a centred ready cursor. */
.terminal-unified .terminal-usb-entry input{color:transparent!important;-webkit-text-fill-color:transparent!important;caret-color:transparent!important;text-shadow:none!important;background:#fff!important;text-align:center}.terminal-unified .terminal-usb-entry input:-webkit-autofill{-webkit-text-fill-color:transparent!important;box-shadow:0 0 0 1000px #fff inset!important}.terminal-usb-caret{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:29px;color:#246da5;line-height:1;pointer-events:none;animation:terminal-caret-blink 1s steps(1,end) infinite}.terminal-unified .terminal-usb-entry:not(:focus-within) .terminal-usb-caret{animation:none;opacity:.4}.terminal-unified[aria-busy=true] .terminal-usb-caret{animation:none;opacity:.25}@keyframes terminal-caret-blink{0%,49%{opacity:1}50%,100%{opacity:0}}@media(prefers-reduced-motion:reduce){.terminal-usb-caret{animation:none!important}}

.terminal-header-actions{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex-shrink:0}.terminal-header-controls{display:flex;justify-content:flex-end;gap:9px}.terminal-header-controls form{margin:0}.terminal-header-controls button{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;min-width:38px;min-height:38px;padding:9px;border-radius:8px;background:#eaf2fa;color:#256aa4;border:1px solid #ccdfef}.terminal-header-controls .terminal-close button{background:#fff1f3;color:#bb5065;border-color:#f0d9df}.terminal-header-controls .icon{width:18px;height:18px}@media(pointer:coarse){.terminal-header-controls button{width:42px;height:42px;min-width:42px;min-height:42px}}@media(max-width:600px){.terminal-header-actions{align-items:flex-start}.terminal-header-actions .staff-page-actions{width:auto}.terminal-header-controls{justify-content:flex-start}}

.terminal-unified .terminal-scan-notice.is-warning{background:#fff8d9;border-color:#efd279;color:#8a6515;border-left:4px solid #e1b334}

/* Centred scan confirmation with a fixed two-line layout. */
.terminal-inline-result-slot{height:96px}.terminal-unified .terminal-scan-notice{position:relative;height:96px;min-height:96px;padding:14px 48px;justify-content:center;gap:14px}.terminal-unified .terminal-scan-notice>img{width:46px;height:58px;flex-shrink:0;border-radius:7px}.terminal-unified .terminal-scan-notice>div{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;flex:0 1 auto;max-width:calc(100% - 60px);text-align:center}.terminal-unified .terminal-scan-notice strong{max-width:100%;flex:none;font-size:15px;line-height:1.5;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.terminal-unified .terminal-scan-notice span{flex:none;font-size:14px;line-height:1.5;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.terminal-unified .terminal-scan-notice>button{position:absolute;right:12px;top:50%;transform:translateY(-50%)}
@media(max-width:600px){.terminal-unified .terminal-scan-notice{padding:12px 30px 12px 10px;gap:8px}.terminal-unified .terminal-scan-notice>img{width:36px;height:48px}.terminal-unified .terminal-scan-notice>div{max-width:calc(100% - 44px);gap:4px}.terminal-unified .terminal-scan-notice strong{font-size:13px}.terminal-unified .terminal-scan-notice span{font-size:12px}.terminal-unified .terminal-scan-notice>button{right:3px}}

/* Balanced terminal header with a live Malaysia clock. */
.terminal-page .terminal-unified .terminal-session-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px}.terminal-session-clock{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;font-variant-numeric:tabular-nums}.terminal-session-clock [data-clock-date]{font-size:15px;color:#6c839a;line-height:1.4}.terminal-session-clock [data-clock-time]{font-size:21px;color:#23496b;line-height:1.3;letter-spacing:.6px}.terminal-unified .terminal-status-centred{justify-self:center;font-size:12px;padding:7px 12px;white-space:nowrap}.terminal-unified .terminal-session-bar .terminal-scan-overview{justify-self:end;align-items:flex-end;flex-direction:column;gap:2px;text-align:right}.terminal-unified .terminal-session-bar .terminal-scan-overview strong{font-size:25px}@media(max-width:600px){.terminal-page .terminal-unified .terminal-session-bar{gap:6px}.terminal-session-clock [data-clock-date]{font-size:12px}.terminal-session-clock [data-clock-time]{font-size:17px}.terminal-unified .terminal-status-centred{font-size:10px;padding:6px 7px}.terminal-unified .terminal-session-bar .terminal-scan-overview span{font-size:10px}.terminal-unified .terminal-session-bar .terminal-scan-overview strong{font-size:22px}}

.attendance-record-count strong,.attendance-record-count small{display:block}.attendance-record-count small{color:#8397aa;margin-top:3px}.attendance-program-list .scanner-unavailable{background:#e4eaf0;color:#94a4b3;cursor:not-allowed;opacity:.6}.attendance-program-list .scanner-unavailable .icon{filter:blur(1px)}@media(max-width:1100px){.attendance-program-list tbody tr{grid-template-columns:35px minmax(0,1fr) auto}.attendance-program-list tbody td:nth-child(5){grid-column:2;grid-row:auto}.attendance-program-list tbody td:nth-child(6){grid-column:3;grid-row:1 / span 2}.attendance-program-list .staff-page-actions{flex-wrap:wrap}.attendance-program-list colgroup{display:none}}

/* Program title leads the record; its code stays secondary. */
.program-record-identity{padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid var(--border)}.main-content .program-record-identity h2{font-size:20px!important;font-weight:700;line-height:1.45;margin:0 0 7px;color:#1c3957}.program-record-code{display:block;color:#8a9aab;font-size:11px;letter-spacing:.2px;line-height:1.6}.program-fields-summary{gap:14px 22px}.program-fields-summary .program-field>dt{margin-bottom:5px}.program-fields-summary .program-field>dd{padding-bottom:10px;min-height:28px;font-weight:500}.program-details-panel .program-fields-summary .program-field-wide{margin-top:2px}.program-page-heading>div:first-child>p{color:#7f91a5;margin-top:8px}.program-workspace .program-details-panel>.panel-heading{margin-bottom:18px;padding-bottom:15px}@media(max-width:600px){.main-content .program-record-identity h2{font-size:18px!important}.program-record-identity{padding-bottom:14px;margin-bottom:14px}.program-fields-summary{gap:12px 15px}}

.program-workspace #program-description{min-height:145px;line-height:1.65;resize:vertical}.program-attachment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:16px}.program-gallery-tile{min-width:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:#f7fafd}.program-gallery-open{display:block;width:100%;height:140px;padding:0;border:0;border-radius:0;background:#edf2f6;cursor:zoom-in}.program-gallery-open:hover{background:#e5edf5}.program-gallery-open img{width:100%;height:100%;object-fit:cover;display:block}.program-gallery-tile .program-checkbox{margin:0;padding:7px 10px;justify-content:flex-end}.program-attachment-grid>.program-document,.program-attachment-grid>.program-documents-empty{grid-column:1/-1}.program-gallery-modal{width:min(1000px,94vw);max-height:92dvh;padding:12px;border:1px solid #dce5ee;border-radius:14px;background:#10273d;color:white}.program-gallery-modal::backdrop{background:#061626c9}.program-gallery-toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 3px 10px}.program-gallery-toolbar span{font-size:13px;color:#d6e6f3}.program-gallery-modal button{background:#ffffff14;color:#fff;border:1px solid #ffffff26}.program-gallery-stage{display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:10px}.program-gallery-stage>img{display:block;width:100%;height:min(72dvh,700px);object-fit:contain}.program-gallery-stage [data-gallery-prev] .icon{transform:rotate(180deg)}.program-save-actions [data-text-action]{min-width:105px;padding:10px 22px}@media(max-width:600px){.program-gallery-stage{grid-template-columns:32px minmax(0,1fr) 32px;gap:4px}.program-gallery-modal{padding:8px}.program-gallery-open{height:125px}}

/* Three consistent summary portlets above each working list. */
.section-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:18px 0 22px}.section-summary-card{display:flex;align-items:center;gap:15px;min-width:0;min-height:100px;background:white;border:1px solid var(--border);border-radius:13px;padding:19px;box-shadow:var(--shadow)}.section-summary-icon{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;border-radius:12px;background:#eaf3fc;color:#2474b2}.section-summary-card:nth-child(2) .section-summary-icon{background:#e9f7f1;color:#139771}.section-summary-card:nth-child(3) .section-summary-icon{background:#f0edfc;color:#8065be}.section-summary-icon .icon{width:23px;height:23px}.section-summary-card>div{min-width:0}.section-summary-card strong{display:block;font-size:26px;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums}.section-summary-card>div>span{display:block;font-size:12px;color:#8191a4;margin-top:5px;overflow-wrap:anywhere}.program-list-compact .program-list-name,.program-list-compact .program-list-code,.program-list-compact .program-list-place :is(strong,span){white-space:normal;overflow:visible;overflow-wrap:anywhere}.staff-directory-compact .staff-list-name,.staff-directory-compact .staff-list-primary,.staff-directory-compact .staff-list-secondary{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}.attendance-program-list .attendance-record-count small{white-space:normal}
@media(max-width:1100px){.attendance-program-list tbody>tr{grid-template-columns:30px minmax(0,1fr) auto;gap:10px}.attendance-program-list tbody>tr>.number-column{grid-column:1;grid-row:1}.attendance-program-list tbody>tr>.program-list-status{grid-column:2/-1;grid-row:1;justify-self:end}.attendance-program-list tbody>tr>.program-list-details{grid-column:1/-1;grid-row:2;margin-top:0}.attendance-program-list tbody>tr>.program-list-place{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:1fr 1fr;margin-top:0}.attendance-program-list tbody>tr>.attendance-record-count{grid-column:1/-1;grid-row:4;display:flex;align-items:baseline;gap:6px;padding-top:9px;border-top:1px solid var(--border)}.attendance-program-list tbody>tr>.record-actions-cell{grid-column:1/-1;grid-row:5;margin:0;padding-top:10px}.attendance-program-list .staff-page-actions{justify-content:flex-end;width:100%}.attendance-program-list .program-list-place>div+div{margin-top:0}.attendance-program-list .scanner-unavailable{flex-shrink:0}}
@media(max-width:600px){.section-summary{gap:8px;margin:14px 0 17px}.section-summary-card{flex-direction:column;align-items:flex-start;gap:9px;padding:12px;min-height:115px}.section-summary-icon{width:30px;height:30px;border-radius:8px}.section-summary-icon .icon{width:18px;height:18px}.section-summary-card strong{font-size:22px}.section-summary-card>div>span{font-size:11px;line-height:1.45}.attendance-program-list tbody>tr>.program-list-place{grid-template-columns:1fr;gap:8px}.program-gallery-open img{object-fit:contain;background:#edf2f6}}
.program-gallery-open img{object-fit:contain}

/* Compact attendance list: one programme summary and aligned actions. */
.attendance-program-list .program-col-number{width:48px}.attendance-program-list .program-col-status{width:125px}.attendance-program-list .attendance-count-col{width:115px}.attendance-program-list .attendance-actions-col{width:160px}.attendance-program-list th{white-space:nowrap;overflow-wrap:normal}.attendance-program-list td{padding-top:14px;padding-bottom:14px}.attendance-program-list .program-list-date{margin-top:5px}.attendance-organizer{display:block;color:#8496a8;font-size:12px;line-height:1.6;margin-top:4px;overflow-wrap:anywhere}.attendance-organizer>span{color:#91a0af}.attendance-program-list .pill{white-space:nowrap;max-width:none}.attendance-program-list .attendance-record-count{text-align:center}.attendance-program-list .attendance-record-count small{display:none}.attendance-program-list .staff-page-actions{display:flex;flex-direction:row;justify-content:flex-end;align-items:center;flex-wrap:nowrap;gap:7px;width:auto}.attendance-program-list .record-actions-cell{padding-left:10px;padding-right:10px}.attendance-program-list .scanner-unavailable .icon{filter:blur(1px)}
@media(max-width:1100px){.attendance-program-list tbody>tr>.program-list-details{grid-column:1/-1;grid-row:2}.attendance-program-list tbody>tr>.attendance-record-count{grid-column:1/2;grid-row:3;display:flex;gap:5px;border:0;padding:8px 0 0;align-items:center;text-align:left;white-space:nowrap}.attendance-program-list .attendance-record-count strong:after{content:' hadir';font-weight:400;color:#8496a8}.attendance-program-list tbody>tr>.record-actions-cell{grid-column:2/-1;grid-row:3;border:0;padding-top:8px;margin:0}.attendance-program-list .staff-page-actions{width:100%;justify-content:flex-end}.attendance-program-list .program-list-status{white-space:nowrap}.attendance-program-list tbody>tr{padding:14px;gap:8px}.attendance-program-list .attendance-record-count strong:after{content:' rekod'}}

.attendance-program-list .scanner-unavailable{width:38px;min-width:38px;height:38px;min-height:38px;padding:9px;display:inline-flex;justify-content:center;align-items:center;border-radius:8px}.attendance-program-list .scanner-unavailable .icon{width:18px;height:18px}@media(pointer:coarse){.attendance-program-list .scanner-unavailable{width:42px;min-width:42px;height:42px;min-height:42px}}

/* Larger agency crest with a tidy centred identity. */
.sidebar .agency-brand{padding:18px 16px 20px;gap:0;align-items:center;text-align:center}.sidebar .agency-brand img{width:158px;height:132px;max-width:80%;object-fit:contain;margin:0 0 3px}.sidebar .agency-brand>span{font-size:13px;line-height:1.5;letter-spacing:.1px}.sidebar .agency-brand small{font-size:12px;margin-top:5px;color:#b6cddd}.attendance-days-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;margin:18px 0;max-height:320px;overflow:auto}.attendance-day-card{display:flex;flex-direction:column;gap:6px;padding:15px;border:1px solid var(--border);border-radius:10px;background:#fff;color:#58748e}.attendance-day-card.selected{border-color:#69a4d6;background:#eff7ff}.attendance-day-card>span{font-size:12px}.attendance-day-card>strong{font-size:25px;color:#1c5f94}.attendance-day-card>small{font-size:11px;color:#8a9bac}.attendance-date-filter label{margin:0}.attendance-date-filter select{flex:0 1 300px}@media(max-width:600px){.attendance-days-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.attendance-day-card{padding:12px}}

.terminal-day-selector{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;margin:12px 0 0}.terminal-day-selector label{font-size:12px;color:#7c91a6;margin:0}.terminal-day-selector select{width:245px;min-height:36px;height:36px;padding:6px 10px}.terminal-day-selector small{flex-basis:100%;text-align:center;font-size:11px;color:#8b9eae}.terminal-day-selector button{margin:0}@media(max-width:600px){.terminal-day-selector select{width:auto;max-width:65%;flex:1}.terminal-day-selector label{flex-basis:100%;text-align:center}}

/* The same four-line programme summary across catalogue and attendance. */
.program-row-summary{display:flex;flex-direction:column;gap:4px;min-width:0}.program-row-summary .program-list-name{font-weight:650;line-height:1.6}.program-row-summary .program-list-date{margin:0;line-height:1.6}.program-row-organizer,.program-row-location{display:block;font-size:12px;color:#7f94a8;line-height:1.6;overflow-wrap:anywhere}.program-row-location{color:#8c9eaf}.program-catalog-list .program-col-number{width:48px}.program-catalog-list .program-col-status{width:125px}.program-catalog-list .program-col-actions{width:160px}.program-catalog-list th{white-space:nowrap}.program-catalog-list th,.program-catalog-list td{padding-top:14px;padding-bottom:14px}.program-catalog-list .pill{white-space:nowrap}.program-catalog-list .record-actions{justify-content:flex-end;gap:7px}.program-catalog-list .record-actions-cell{padding-left:10px;padding-right:10px}@media(max-width:1100px){.program-catalog-list tbody>tr>.record-actions-cell{grid-row:3}.program-row-summary{gap:4px}.program-catalog-list tbody>tr>.program-list-details{margin-top:3px}.program-catalog-list .record-actions{flex-wrap:nowrap}}

.terminal-numbered-days{gap:8px;margin-top:12px}.terminal-days-label{font-size:12px;color:#7890a6}.terminal-day-buttons{display:flex;gap:9px;align-items:flex-start;justify-content:center;flex-wrap:wrap}.terminal-day-option{display:flex;flex-direction:column;align-items:center;gap:3px}.terminal-day-option small{font-size:10px!important;line-height:1.4;color:#8b9dad}.terminal-day-buttons .terminal-day-button{display:flex;align-items:center;justify-content:center;gap:5px;width:42px;height:40px;min-height:40px;padding:6px;border:1px solid #d9e5f0;border-radius:9px;background:#f6f9fc;color:#577b9c}.terminal-day-buttons .terminal-day-button strong{font-size:17px;line-height:1}.terminal-day-buttons .terminal-day-button.is-selected{background:#e6f2ff;border-color:#2780c9;color:#1469ad;box-shadow:0 0 0 2px #3184c515}.terminal-day-buttons .terminal-day-button:disabled{background:#f0f2f5;border-color:#e3e7eb;color:#a7b3bf;opacity:.65;cursor:not-allowed}.terminal-day-buttons .terminal-day-button[value=""]{width:68px;font-size:12px}.terminal-day-buttons .icon{width:16px;height:16px}.terminal-numbered-days .terminal-day-locked-note{font-size:11px!important;color:#9a8d6b;margin-top:-4px}@media(max-width:600px){.terminal-days-label{flex-basis:100%;text-align:center}.terminal-day-buttons{gap:7px}}

.attendance-participants-modal{width:min(620px,94vw);max-height:90dvh;border:1px solid var(--border);border-radius:14px;padding:22px;color:var(--ink)}.attendance-participants-modal::backdrop{background:#0b294d99}.participants-modal-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px;gap:12px}.attendance-participants-modal form>label{display:block;margin:12px 0 5px;font-size:12px;color:#6d859d}.attendance-participants-modal form>input,.attendance-participants-modal form>select{width:100%;font-size:14px}.participants-picker{max-height:300px;overflow:auto;border:1px solid var(--border);border-radius:9px;margin-top:12px}.participant-option{display:flex;align-items:center;gap:12px;padding:11px 13px;border-bottom:1px solid #edf2f7;cursor:pointer}.participant-option[hidden]{display:none!important}.participant-option input{width:17px;height:17px;min-height:17px;flex-shrink:0}.participant-option span{min-width:0}.participant-option strong,.participant-option small{display:block;font-size:13px;overflow-wrap:anywhere}.participant-option small{font-size:11px;color:#8395a8;margin-top:3px}.participants-modal-footer{margin-top:15px;display:flex;justify-content:flex-end}.attendance-participants-modal form>small{font-size:12px;color:#8496a9}.attendance-participants-modal .muted{font-size:12px;margin:10px 0}.attendance-cancel-button{background:#fff0f2;color:#af344a}.attendance-cancel-button:hover{background:#ffe4e9}

/* Day buttons sit directly below the centred terminal status. */
.terminal-centre-stack{display:flex;flex-direction:column;align-items:center;justify-self:center;gap:8px;align-self:start}.terminal-centre-stack .terminal-status-centred{margin:0}.terminal-centre-stack .terminal-numbered-days{margin:0;gap:0}.terminal-centre-stack .terminal-day-buttons{gap:7px}.terminal-page .terminal-unified .terminal-session-bar{align-items:start;padding-bottom:12px}.terminal-session-clock,.terminal-session-bar .terminal-scan-overview{padding-top:4px}.terminal-centre-stack .terminal-day-buttons .terminal-day-button{height:36px;min-height:36px;width:38px;padding:5px}.terminal-centre-stack .terminal-day-buttons .terminal-day-button[value=""]{width:61px}.terminal-centre-stack .terminal-day-option small{margin:0}@media(max-width:600px){.terminal-page .terminal-unified .terminal-session-bar{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:5px}.terminal-centre-stack{gap:7px}.terminal-centre-stack .terminal-day-buttons{gap:4px}.terminal-centre-stack .terminal-day-buttons .terminal-day-button{width:31px;height:33px;min-height:33px}.terminal-centre-stack .terminal-day-buttons .terminal-day-button[value=""]{width:49px;font-size:10px;gap:3px}.terminal-centre-stack .terminal-day-buttons .icon{width:12px;height:12px}.terminal-centre-stack .terminal-day-buttons strong{font-size:15px}.terminal-centre-stack .terminal-day-option small{font-size:9px!important}.terminal-centre-stack{max-width:170px}}

/* Discreet day shortcuts beside scanner method controls. */
.terminal-centre-stack{gap:0;align-self:center}.terminal-page .terminal-unified .terminal-compact-controls{display:flex;align-items:center;justify-content:center;gap:15px;flex-wrap:wrap;padding-top:12px}.terminal-unified .terminal-compact-controls .terminal-numbered-days{order:2;margin:0;padding-left:14px;border-left:1px solid var(--border)}.terminal-unified .terminal-compact-controls .terminal-methods{order:1}.terminal-unified .terminal-day-buttons{gap:6px}.terminal-unified .terminal-day-option{position:relative;gap:0}.terminal-unified .terminal-day-buttons .terminal-day-button{width:32px;height:32px;min-height:32px;padding:4px;border-radius:7px}.terminal-unified .terminal-day-buttons .terminal-day-button strong{font-size:13px}.terminal-unified .terminal-day-option small{display:none}.terminal-unified .terminal-session-bar{align-items:center}@media(max-width:600px){.terminal-page .terminal-unified .terminal-compact-controls{gap:10px}.terminal-unified .terminal-compact-controls .terminal-numbered-days{padding-left:10px}.terminal-unified .terminal-day-buttons .terminal-day-button{width:32px;height:32px;min-height:32px}}

.attendance-record-locked{display:inline-flex;width:30px;height:30px;align-items:center;justify-content:center;color:#a0afbd}.attendance-record-locked .icon{width:15px;height:15px}

.attendance-records-table table{width:100%;table-layout:fixed;white-space:normal}.attendance-records-table th,.attendance-records-table td{padding:14px 12px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}.attendance-records-table th:first-child{width:44px}.attendance-records-table th:nth-child(2){width:auto}.attendance-records-table th:nth-child(3){width:110px}.attendance-records-table th:nth-child(4),.attendance-records-table th:nth-child(5){width:90px}.attendance-records-table th:nth-child(6){width:150px}.attendance-records-table th:nth-child(7){width:85px}.attendance-staff-identity>strong,.attendance-staff-identity>span,.attendance-staff-identity>small{display:block;line-height:1.6}.attendance-staff-identity>span{color:#758da4;margin-top:3px}.attendance-staff-identity>small{color:#8a9eaf;margin-top:2px}.attendance-records-table td:last-child form{margin:0}.attendance-records-table .pill{white-space:normal}@media(max-width:760px){.attendance-records-table table{table-layout:auto;min-width:650px}}

/* Balanced sidebar identity with restrained crest size and consistent spacing. */
.sidebar .agency-brand{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:22px 18px 20px;text-align:center;min-height:0}.sidebar .agency-brand img{display:block;width:86px;height:74px;max-width:100%;margin:0;object-fit:contain;flex-shrink:0}.sidebar .agency-brand>span{font-size:12px;font-weight:650;line-height:1.55;letter-spacing:.1px;color:#f4f8fc}.sidebar .agency-brand small{display:block;font-size:11px;font-weight:400;line-height:1.5;color:#aac5da;margin-top:6px;letter-spacing:.15px}

/* Prevent the branding block shrinking into the navigation on short screens. */
.sidebar .agency-brand{flex:0 0 auto;height:auto;min-height:180px;justify-content:flex-start;overflow:visible}.sidebar .agency-brand>span{flex:0 0 auto}.sidebar .sidebar-nav{flex:1 0 auto}.sidebar .sidebar-bottom{flex:0 0 auto}

/* Administrative overview: read-only data, aligned panels and accessible charts. */
.management-metrics .metric-card{min-height:135px;padding:20px;align-items:center}.management-metrics .metric-value{font-size:30px;line-height:1.25}.management-metrics .metric-icon{width:46px;height:46px}.management-metrics .metric-icon .icon{width:24px;height:24px}.management-metrics .metric-label{font-size:12px}.management-metrics .metric-card small{font-size:11px;line-height:1.6}.management-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:20px}.management-chart{min-width:0;padding:21px;overflow:hidden}.management-chart .panel-heading{margin-bottom:12px}.management-chart>p{font-size:12px!important;color:#8396a9;line-height:1.65;margin-bottom:18px}.monthly-chart{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:9px;height:215px;padding-top:5px}.monthly-column{display:flex;flex-direction:column;align-items:center;min-width:0;gap:7px}.monthly-value{font-size:11px;color:#5e7b97;font-variant-numeric:tabular-nums}.monthly-track{display:flex;align-items:flex-end;justify-content:center;flex:1;width:100%;border-bottom:1px solid #dfe9f2;background:repeating-linear-gradient(to top,transparent 0,transparent 39px,#f0f4f8 40px)}.monthly-track>span{display:block;width:65%;max-width:28px;min-height:2px;border-radius:5px 5px 0 0;background:#2d7ab9}.monthly-track>span.emerald{background:#16a085}.monthly-column>small{font-size:10px!important;color:#899cad}.management-status-list{display:flex;flex-direction:column;gap:19px;padding:10px 0 15px}.management-status-list>div{display:grid;grid-template-columns:105px minmax(0,1fr) 35px;gap:12px;align-items:center;font-size:12px}.management-status-list strong{text-align:right;color:#456d91}.management-track{height:9px;border-radius:8px;background:#eef3f8;overflow:hidden}.management-track i{display:block;height:100%;border-radius:8px;background:#2c82bd}.management-track .status-completed{background:#15a17c}.management-track .status-ongoing{background:#2a81cf}.management-track .status-upcoming{background:#8b79cf}.management-track .status-draft{background:#a9b9c9}.management-note{font-size:11px;line-height:1.7;color:#8b9daf;padding-top:12px;border-top:1px solid #edf2f7;margin-top:10px}.management-methods{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:10px 0 18px}.management-methods>div{display:flex;flex-direction:column;align-items:center;gap:8px}.management-methods strong{font-size:30px;color:#1c526d}.management-methods>div>span:last-child{font-size:12px;color:#7890a5}.management-split{display:flex;height:12px;border-radius:9px;overflow:hidden;background:#edf2f7}.management-split>span{background:#2583bf}.management-split>i{background:#17a283}.management-ranking{display:flex;flex-direction:column;gap:17px}.management-ranking>div>div:first-child{display:flex;align-items:flex-start;gap:15px;justify-content:space-between;font-size:12px;line-height:1.6;margin-bottom:7px}.management-ranking strong{flex-shrink:0;color:#315e80}.management-ranking span{overflow-wrap:anywhere}.management-ranking .management-track{height:8px}.management-upcoming{grid-column:1/-1}.management-upcoming-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.management-upcoming-list>div:not(.management-empty){display:flex;gap:13px;align-items:center;padding:12px;border:1px solid #edf2f7;border-radius:9px}.management-date{flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;width:47px;height:53px;border-radius:9px;background:#eaf3fc;color:#287ab4}.management-date strong{font-size:20px}.management-date small{font-size:10px!important}.management-upcoming-list>div>div{min-width:0}.management-upcoming-list>div>div>strong{display:block;font-size:13px;line-height:1.6}.management-upcoming-list>div>div>small{display:block;font-size:11px!important;color:#8a9daf;margin-top:3px;line-height:1.6}.management-empty{font-size:13px;padding:28px 12px;color:#8c9faf;text-align:center}.management-data-note{font-size:11px!important;color:#8b9daf;line-height:1.8;margin:17px 0 0}.dashboard-filter [name=year]{width:90px}.dashboard-filter [name=organization_id]{max-width:290px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:1100px){.management-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.monthly-chart{gap:5px}.management-chart{padding:17px}}@media(max-width:700px){.management-dashboard-grid{grid-template-columns:1fr;gap:14px}.management-upcoming{grid-column:auto}.management-upcoming-list{grid-template-columns:1fr}.management-metrics .metric-card{padding:14px;min-height:125px;gap:10px}.management-metrics .metric-icon{width:34px;height:34px;flex-shrink:0}.management-metrics .metric-value{font-size:25px}.management-metrics .metric-card small{font-size:10px}.management-metrics .metric-label{font-size:11px}.management-status-list>div{grid-template-columns:95px minmax(0,1fr) 28px;gap:8px}.monthly-chart{height:190px;gap:5px}.dashboard-filter{width:100%;flex-wrap:wrap}.dashboard-filter [name=organization_id]{flex:1;min-width:0;max-width:none}}

/* White rounded crest plate with a compact department caption. */
.sidebar .agency-brand{padding:20px 18px 18px;gap:8px;min-height:0;flex:0 0 auto}.sidebar .agency-brand img{width:104px;height:90px;padding:9px 10px;background:#fff;border:1px solid #e6edf3;border-radius:14px;object-fit:contain;margin:0;box-shadow:0 3px 10px #041b3020}.sidebar .agency-brand>span{font-size:12px;line-height:1.45;margin:0}.sidebar .agency-brand small{font-size:11px;line-height:1.4;margin-top:3px}

.bulk-card-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.bulk-card-toolbar button{font-size:13px}.bulk-card-toolbar small{color:#617890}.card-select-column{width:42px;text-align:center!important}.card-select-column input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;cursor:pointer}
/* Shared staff list sizing for the directory and card printing. */
.staff-table th{font-size:12px;padding:13px 10px;vertical-align:middle}
.staff-table td{font-size:12px;padding:12px 10px;vertical-align:middle}
.staff-table .staff-photo-thumbnail{width:34px;height:42px}
.staff-table .staff-list-name,.staff-table .staff-list-primary{display:block;font-size:12px;line-height:1.55;font-weight:550}
.staff-table .staff-list-secondary{display:block;font-size:11px;line-height:1.5;margin-top:4px;color:#7c8fa3}
.staff-card-table{width:100%;table-layout:fixed;white-space:normal}
.staff-card-table th:nth-child(1){width:42px}
.staff-card-table th:nth-child(2){width:40px}
.staff-card-table th:nth-child(3){width:65px}
.staff-card-table th:nth-child(4){width:32%}
.staff-card-table th:nth-child(6){width:110px}
.staff-card-table th:nth-child(7){width:120px}
.staff-card-table .photo-column{min-width:0}
.staff-card-table .staff-list-name,.staff-card-table .staff-list-primary,.staff-card-table .staff-list-secondary{white-space:normal;overflow-wrap:anywhere}
@media(max-width:1100px){.staff-directory-compact .staff-table td{padding:0}.staff-directory-compact .staff-table .staff-list-name{font-size:13px}}
@media(max-width:760px){.card-printing-list .staff-card-table{min-width:850px}}
.staff-table td.photo-column{padding-top:8px;padding-bottom:8px}
@media(max-width:1100px){.staff-directory-compact .staff-table td.photo-column{padding:0}}

.staff-card-print-actions{display:inline-flex;gap:6px;align-items:center}
.staff-card-print-actions button[data-text-action]{display:inline-flex;align-items:center;justify-content:center;width:38px;min-width:38px;height:38px;min-height:38px;padding:0;border-radius:8px}
.staff-card-print-actions button .icon{width:19px;height:19px}
.staff-card-print-actions .secondary{background:#edf4fb;color:#25689c;border:1px solid #ccdfef}
.staff-card-selection-status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.card-preview-link{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.card-preview-link .icon{width:17px;height:17px}
.card-printing-note{display:flex;gap:9px;padding:16px 20px;margin:0;color:#71869b;border-top:1px solid #e4ecf3;line-height:1.7}
.card-printing-note>.icon{width:18px;height:18px;flex-shrink:0;margin-top:3px}
.card-printing-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:35px 15px;color:#7a8fa3}
.card-printing-empty>.icon{width:30px;height:30px}
@media(max-width:760px){.card-printing-list .staff-card-table{min-width:850px}.staff-card-search .staff-card-print-actions{margin-left:auto}}
.settings-option-panel{max-width:860px}.settings-option-panel>.panel-heading{padding:0 0 18px;margin-bottom:18px;border-bottom:1px solid var(--border)}.settings-overview-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.settings-overview-item{margin:0;display:flex;flex-direction:column;align-items:flex-start;gap:12px}.settings-overview-item h2,.settings-overview-item p{margin:0}.settings-overview-item p{color:#738ba1;line-height:1.7;flex:1}.settings-overview-item .button{align-self:flex-end}@media(max-width:1100px){.settings-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.settings-overview-grid{grid-template-columns:1fr}}

.program-record-identity .program-field{width:100%;margin-bottom:7px}.program-record-identity .program-field>input{width:100%}

/* Subtle Islamic identity for the JAINJ sign-in panel. */
.login-brand-panel::before{content:"";position:absolute;inset:0;background:url('../images/islamic-pattern.svg') repeat;background-size:96px 96px;opacity:.12;mask-image:linear-gradient(140deg,transparent 15%,#000 100%);pointer-events:none}
.login-brand-panel>.login-agency,.login-brand-panel>.login-brand-copy,.login-brand-panel>small{position:relative;z-index:1}
.login-calligraphy{margin:0 0 23px;max-width:340px;display:flex;flex-direction:column;align-items:flex-start;gap:14px}
.login-calligraphy>span[lang=ar]{display:block;font-family:'Diwan Thuluth','Geeza Pro','Traditional Arabic','Noto Naskh Arabic',serif;font-size:30px;font-weight:400;line-height:1.9;color:#e2cc94;text-align:center;white-space:nowrap;letter-spacing:0}
.calligraphy-rule{display:block;width:86px;height:1px;background:linear-gradient(90deg,#d2b87880,transparent)}
.login-brand-panel .login-brand-copy{padding:24px 0}
@media(max-width:760px){.login-calligraphy{margin-bottom:13px;gap:5px}.login-calligraphy>span[lang=ar]{font-size:25px;line-height:1.7}.login-brand-panel .login-brand-copy{padding:18px 0 3px}}
/* Interlaced Islamic geometric lattice around the login panel. */
.auth-body{position:relative;isolation:isolate}
.auth-body::before,.auth-body::after{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:url('../images/islamic-lattice.svg') repeat;background-size:180px 180px;opacity:.13;mask-image:linear-gradient(110deg,#000,transparent 43%)}
.auth-body::after{transform:rotate(180deg);opacity:.11}
@media(max-width:760px){.auth-body::before,.auth-body::after{background-size:130px 130px;opacity:.09}}

.login-agency{gap:14px}
.login-agency img{width:126px;height:112px;flex-shrink:0}
.login-agency>.login-agency-name{display:inline-flex;flex-direction:column;font-size:14px;font-weight:700;line-height:1.55;letter-spacing:.35px;white-space:nowrap}
.login-agency-state{display:block;font-size:23px;line-height:1.35;letter-spacing:.5px;word-spacing:normal}
@media(max-width:760px){.login-agency{gap:12px}.login-agency img{width:90px;height:82px}.login-agency>.login-agency-name{font-size:12px}.login-agency-state{font-size:20px;letter-spacing:.2px}}

/* Mirror the camera preview; QR decoding still reads the original video frames. */
.terminal-camera-viewport video[data-camera-video]{transform:scaleX(-1)}

/* ===== Logo lockup (login + sidebar) — navy theme ===== */
/* Login */
.login-agency{display:flex;align-items:center;gap:0;color:#fff}
.login-agency .login-emblem{width:92px;height:92px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,#ffffff 0,#f7f9fc 65%,#e9eef5 100%);box-shadow:0 0 0 2px #d4bb7c,0 0 0 7px #ffffff14,0 10px 24px #04142a66}
.login-agency .login-emblem img{width:80px;height:80px;margin:0;object-fit:contain}
.login-agency>.login-agency-name{display:flex;flex-direction:column;gap:4px;margin-left:22px;padding-left:20px;border-left:2px solid #d4bb7c66;font-size:12px;font-weight:600;letter-spacing:2.4px;line-height:1.3;color:#c9dbe8;white-space:nowrap}
.login-agency-state{font-size:25px;font-weight:800;letter-spacing:1.4px;line-height:1.15;color:#fff}
.login-agency-name:after{content:"";display:block;width:38px;height:3px;border-radius:2px;margin-top:6px;background:#d4bb7c}
@media(max-width:760px){.login-agency .login-emblem{width:68px;height:68px}.login-agency .login-emblem img{width:58px;height:58px}.login-agency>.login-agency-name{margin-left:14px;padding-left:14px;font-size:10px;letter-spacing:1.8px}.login-agency-state{font-size:19px;letter-spacing:.8px}.login-agency-name:after{width:28px;margin-top:4px}}

/* Sidebar: same seal, gold accents and pattern as the login panel */
.app-body .sidebar{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none'%3E%3Cg stroke='%23D4BB7C' stroke-opacity='.09' stroke-width='.7'%3E%3Cpath d='M48 8 59.7 19.7 76.3 19.7 76.3 36.3 88 48 76.3 59.7 76.3 76.3 59.7 76.3 48 88 36.3 76.3 19.7 76.3 19.7 59.7 8 48 19.7 36.3 19.7 19.7 36.3 19.7Z'/%3E%3Cpath d='M48 24 72 48 48 72 24 48Z M31 31H65V65H31Z'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3C/g%3E%3C/svg%3E") repeat 0 0/96px 96px local,linear-gradient(160deg,#133e61 0%,#0d2c4b 42%,#0a243e 100%) fixed}
.app-body .sidebar .agency-brand{gap:12px;padding:24px 18px 20px;border-bottom:1px solid #d4bb7c26}
.app-body .sidebar .agency-brand img{width:96px;height:96px;padding:8px;border-radius:50%;border:0;background:radial-gradient(circle at 50% 40%,#ffffff 0,#f7f9fc 65%,#e9eef5 100%);box-shadow:0 0 0 2px #d4bb7c,0 0 0 7px #ffffff14,0 10px 24px #04142a66;object-fit:contain;margin:0 0 4px}
.app-body .sidebar .agency-brand>span{color:#fff;font-size:13px;font-weight:700;letter-spacing:.3px}
.app-body .sidebar .agency-brand small{color:#b6cddd;letter-spacing:.4px}
.app-body .sidebar .agency-brand small:after{content:"";display:block;width:34px;height:3px;border-radius:2px;margin:9px auto 0;background:#d4bb7c}
.app-body .topbar{border-bottom:3px solid #d4bb7c}

/* ===== Program list tabs (Aktif / Selesai) ===== */
.program-tabs{display:flex;gap:6px;margin:0 0 16px;border-bottom:1px solid var(--border)}
.program-tab{display:inline-flex;align-items:center;gap:8px;padding:11px 16px;margin-bottom:-1px;border:1px solid transparent;border-bottom:3px solid transparent;border-radius:9px 9px 0 0;color:#5f7389;font-size:14px;font-weight:600}
.program-tab .icon{width:17px;height:17px}
.program-tab:hover{color:var(--navy);background:#ffffff99}
.program-tab.active{color:var(--navy);background:#fff;border-color:var(--border);border-bottom:3px solid #d4bb7c}
.program-tab-count{min-width:24px;padding:1px 8px;border-radius:20px;background:#e9eff6;color:#4b6580;font-size:12px;text-align:center}
.program-tab.active .program-tab-count{background:var(--navy);color:#fff}
@media(max-width:600px){.program-tabs{gap:2px}.program-tab{padding:9px 10px;font-size:13px;gap:6px}}

/* ===== Program list: date column ===== */
.program-col-date{width:200px}
:is(.program-catalog-list,.attendance-program-list) .program-row-summary .program-list-date{display:none}
.program-list-when{white-space:nowrap}
.program-list-when strong{display:block;font-size:13px;font-weight:650;color:var(--ink);line-height:1.5}
.program-list-when .program-when-day{display:block;font-size:12px;color:#7b8fa4;line-height:1.5}
.program-list-when .program-when-time{display:inline-flex;align-items:center;gap:5px;margin-top:5px;padding:2px 8px;border-radius:6px;background:#eef4fb;color:#2c5f8f;font-size:11px;font-weight:600}
.program-list-when .program-when-time .icon{width:12px;height:12px}
@media(max-width:1100px){:is(.program-catalog-list,.attendance-program-list) .program-list-when{display:none}:is(.program-catalog-list,.attendance-program-list) .program-row-summary .program-list-date{display:flex}}

/* ===== Executive dashboard (top management view) ===== */
.exec-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1.6fr);gap:26px;align-items:center;padding:28px 30px;margin:4px 0 20px;border-radius:18px;color:#fff;position:relative;overflow:hidden;isolation:isolate;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none'%3E%3Cg stroke='%23D4BB7C' stroke-opacity='.10' stroke-width='.7'%3E%3Cpath d='M48 8 59.7 19.7 76.3 19.7 76.3 36.3 88 48 76.3 59.7 76.3 76.3 59.7 76.3 48 88 36.3 76.3 19.7 76.3 19.7 59.7 8 48 19.7 36.3 19.7 19.7 36.3 19.7Z'/%3E%3Cpath d='M48 24 72 48 48 72 24 48Z M31 31H65V65H31Z'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3C/g%3E%3C/svg%3E") repeat 0 0/96px 96px,linear-gradient(135deg,#133e61 0%,#0d2c4b 55%,#114c64 100%);box-shadow:0 14px 34px #0b2b4826;border-bottom:3px solid #d4bb7c}
.exec-gauge-wrap{display:flex;align-items:center;gap:22px}
.exec-gauge{--value:0;width:150px;height:150px;flex-shrink:0;border-radius:50%;padding:13px;background:conic-gradient(#d4bb7c calc(var(--value)*1%),#ffffff1c 0)}
.exec-gauge>div{width:100%;height:100%;border-radius:50%;background:#0f3352;display:grid;place-items:center;box-shadow:inset 0 0 0 1px #ffffff14}
.exec-gauge strong{font-size:38px;font-weight:800;letter-spacing:-1px;line-height:1}
.exec-gauge strong small{font-size:18px;font-weight:600;margin-left:2px;color:#e8d7a6}
.exec-gauge-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.exec-gauge-copy>span{font-size:12px;letter-spacing:1.6px;text-transform:uppercase;color:#e8d7a6;font-weight:700}
.exec-gauge-copy>strong{font-size:26px;font-weight:750;line-height:1.2}
.exec-gauge-copy>strong small{font-size:15px;font-weight:400;color:#b6cddd}
.exec-gauge-copy>small{font-size:13px;line-height:1.6;color:#c4d6e4}
.exec-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.exec-stat{display:flex;gap:12px;align-items:flex-start;padding:16px;border-radius:14px;background:#ffffff10;border:1px solid #ffffff1c;min-width:0}
.exec-stat-icon{width:38px;height:38px;flex-shrink:0;border-radius:10px;display:grid;place-items:center;background:#d4bb7c26;color:#e8d7a6}
.exec-stat-icon .icon{width:20px;height:20px}
.exec-stat>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.exec-stat>div>span{font-size:12px;color:#c4d6e4;font-weight:600}
.exec-stat>div>strong{font-size:28px;font-weight:800;line-height:1.15;letter-spacing:-.5px}
.exec-stat>div>small{font-size:12px;line-height:1.5;color:#b6cddd;overflow-wrap:anywhere}

.exec-insights{margin-bottom:20px}
.exec-insights ul{list-style:none;margin:0;padding:14px 20px 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}
.exec-insight{display:flex;gap:11px;align-items:flex-start;padding:13px 14px;border-radius:12px;border:1px solid var(--border);background:#fbfcfe}
.exec-insight>span{width:30px;height:30px;flex-shrink:0;border-radius:8px;display:grid;place-items:center}
.exec-insight>span .icon{width:17px;height:17px}
.exec-insight p{margin:0;font-size:14px;line-height:1.55;color:var(--ink)}
.exec-insight.good>span{background:#e6f6ef;color:#138b62}
.exec-insight.info>span{background:#eaf2fc;color:#1d69ae}
.exec-insight.warn>span{background:#fdf3e1;color:#b7791f}
.exec-insight.warn{border-color:#f3e2c0;background:#fffcf6}

.exec-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px;margin-bottom:20px}
.exec-panel{padding-bottom:18px}
.exec-panel-hint{font-size:13px;color:var(--muted);margin:6px 20px 0}
.exec-legend{display:flex;flex-wrap:wrap;gap:14px;margin:12px 20px 4px;font-size:12px;color:#6b7e94}
.exec-legend span{display:inline-flex;align-items:center;gap:6px}
.exec-legend i{width:10px;height:10px;border-radius:3px;display:inline-block}
.exec-legend .good,.exec-rank-row.good .exec-bar i{background:#16a07a}
.exec-legend .mid,.exec-rank-row.mid .exec-bar i{background:#2a7fcf}
.exec-legend .low,.exec-rank-row.low .exec-bar i{background:#e0a13a}
.exec-ranking{display:flex;flex-direction:column;gap:4px;padding:8px 20px 0;max-height:520px;overflow:auto}
.exec-rank-row{display:flex;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #f0f3f7}
.exec-rank-row:last-child{border-bottom:0}
.exec-rank-no{width:26px;height:26px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;font-size:12px;font-weight:700;background:#f0f4f8;color:#5b728c}
.exec-rank-row:first-child .exec-rank-no{background:#d4bb7c;color:#fff}
.exec-rank-body{flex:1;min-width:0}
.exec-rank-head{display:flex;justify-content:space-between;gap:10px;font-size:14px}
.exec-rank-head span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-weight:550}
.exec-rank-head strong{font-size:15px;font-variant-numeric:tabular-nums}
.exec-rank-row.good .exec-rank-head strong{color:#138b62}
.exec-rank-row.low .exec-rank-head strong{color:#b7791f}
.exec-bar{height:8px;border-radius:8px;background:#edf1f6;margin:6px 0 4px;overflow:hidden}
.exec-bar i{display:block;height:100%;border-radius:8px;min-width:2px}
.exec-rank-body small{font-size:12px;color:#8191a4}

.exec-agenda{display:flex;flex-direction:column;padding:10px 12px 0}
.exec-agenda-item{display:flex;gap:13px;align-items:center;padding:12px 8px;border-radius:10px;color:var(--ink);border-bottom:1px solid #f0f3f7}
.exec-agenda-item:last-child{border-bottom:0}
.exec-agenda-item:hover{background:#f5f8fc}
.exec-agenda-item>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.exec-agenda-item>div strong{font-size:14px;line-height:1.4}
.exec-agenda-item>div small{font-size:12px;color:#8191a4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.exec-date{width:52px;height:56px;flex-shrink:0;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#103452;color:#fff;border-bottom:3px solid #d4bb7c}
.exec-date strong{font-size:20px;line-height:1.1}
.exec-date small{font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:#e8d7a6}
.exec-chip{flex-shrink:0;font-size:11px;font-weight:650;padding:4px 9px;border-radius:20px;background:#eef3f9;color:#4b6580;white-space:nowrap}
.exec-chip.soon{background:#fdf3e1;color:#9a6512}
.exec-chip.live{background:#e6f6ef;color:#138b62}

.exec-trend{margin-bottom:20px}
.exec-trend .exec-month-programs{display:block;font-size:10px;line-height:14px;height:14px;color:#8b9cb0}

.exec-details{margin:0 0 18px;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:var(--shadow)}
.exec-details>summary{display:flex;align-items:center;gap:12px;padding:16px 20px;cursor:pointer;list-style:none}
.exec-details>summary::-webkit-details-marker{display:none}
.exec-details>summary>span{display:inline-flex;align-items:center;gap:9px;font-weight:700;font-size:15px;color:var(--ink)}
.exec-details>summary>span .icon{width:18px;height:18px;color:#1d69ae}
.exec-details>summary>small{color:var(--muted);font-size:13px}
.exec-details>summary>.icon{margin-left:auto;width:16px;height:16px;color:#6b7e94;transform:rotate(90deg);transition:transform .15s}
.exec-details[open]>summary>.icon{transform:rotate(-90deg)}
.exec-details[open]>summary{border-bottom:1px solid var(--border)}
.exec-details>.management-dashboard-grid{padding:20px}

@media(max-width:1560px){.exec-hero{grid-template-columns:1fr}}
@media(max-width:1250px){.exec-grid{grid-template-columns:1fr}}
@media(max-width:760px){.exec-hero{padding:20px;gap:18px}.exec-gauge{width:112px;height:112px;padding:10px}.exec-gauge strong{font-size:28px}.exec-gauge-copy>strong{font-size:20px}.exec-stats{grid-template-columns:1fr}.exec-stat>div>strong{font-size:23px}.exec-details>summary>small{display:none}.exec-details>.management-dashboard-grid{padding:12px}.exec-agenda-item>div small{white-space:normal}}

/* ===== Reports (Laporan Program / Laporan Kehadiran) ===== */
.report-filter select{min-width:150px}
.report-filter .report-program-select{flex:1;min-width:260px}
.report-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin:4px 0 20px}
.report-kpis>div{display:flex;flex-direction:column;gap:3px;padding:16px 18px;background:#fff;border:1px solid var(--border);border-left:4px solid #1d69ae;border-radius:12px;box-shadow:var(--shadow)}
.report-kpis>div.warn{border-left-color:#e0a13a}
.report-kpis>div.good{border-left-color:#16a07a}
.report-kpis span{font-size:12px;color:#6b7e94;font-weight:600}
.report-kpis strong{font-size:26px;line-height:1.2;color:var(--ink);font-variant-numeric:tabular-nums}
.report-kpis strong small{font-size:13px;color:#6b7e94}
.report-kpis small{font-size:12px;color:#8191a4}
.report-table{margin-bottom:16px}
.report-table table{white-space:normal}
.report-table td,.report-table th{vertical-align:top}
.report-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.report-table tfoot td{background:#f6f8fb;border-top:2px solid #dfe6ef;font-size:13px;color:var(--ink)}
.report-sub{display:block;font-size:11px;color:#8b9cb0;margin-top:3px}
.report-nowrap{white-space:nowrap}
.report-program-head{padding:18px 20px;margin-bottom:16px;border-left:4px solid #d4bb7c}
.report-program-head h2{font-size:18px;margin:0 0 4px}
.report-program-head p{margin:0;font-size:13px;color:var(--muted)}
.report-org-summary{margin-bottom:16px}
.report-org-summary .num{text-align:right;font-variant-numeric:tabular-nums}
.report-print-title{display:none}
@media print{
  .app-shell{margin-left:0!important}
  .main-content{padding:0!important;max-width:none}
  .page-heading{margin:0 0 8px}
  .page-heading p{display:none}
  .report-print-title{display:flex;justify-content:space-between;align-items:baseline;border-bottom:2px solid #103452;padding-bottom:6px;margin-bottom:12px;font-size:12px}
  .report-kpis{grid-template-columns:repeat(4,1fr);gap:8px}
  .report-kpis>div{box-shadow:none;padding:8px 10px}
  .report-kpis strong{font-size:18px}
  .panel,.report-table{box-shadow:none!important;border-color:#ccd5df}
  .report-table th,.report-table td{padding:6px 8px!important;font-size:10.5px}
  .report-table tr{break-inside:avoid}
  .report-table a{color:inherit}
  .management-data-note{font-size:9px}
}

/* ===== Attendance record status: single "Hadir" badge ===== */
.pill.attendance-present{background:#e8f1fd;color:#1d5fb8;border:1px solid #cfe0f7}
.pill.attendance-present.complete{background:#e6f6ef;color:#138b62;border-color:#c4e9d6}

/* ===== Terminal Kehadiran launcher ===== */
.launcher-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:18px;margin:6px 0 22px}
.launcher-card{display:flex;flex-direction:column;gap:10px;padding:20px 22px;background:#fff;border:1px solid var(--border);border-top:4px solid #16a07a;border-radius:16px;box-shadow:var(--shadow);color:var(--ink);transition:transform .15s,box-shadow .15s,border-color .15s}
.launcher-card:hover{transform:translateY(-2px);box-shadow:0 12px 28px #0b2b481f;border-color:#bcd3e8;border-top-color:#16a07a}
.launcher-card:focus-visible{outline:3px solid #53acff;outline-offset:3px}
.launcher-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px}
.launcher-card .pill.live{background:#e6f6ef;color:#138b62}
.launcher-day{font-size:12px;font-weight:650;color:#6b7e94}
.launcher-card h2{font-size:19px;line-height:1.35;margin:4px 0 0}
.launcher-card>p{margin:0;font-size:13px;color:var(--muted)}
.launcher-meta{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:7px;font-size:13px;color:#4b6580}
.launcher-meta li{display:flex;align-items:center;gap:8px}
.launcher-meta .icon{width:15px;height:15px;color:#7c93ab;flex-shrink:0}
.launcher-meta small{color:#8b9cb0}
.launcher-card-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:auto;padding-top:14px;border-top:1px solid #eef2f6}
.launcher-card-bottom strong{display:block;font-size:24px;line-height:1.1}
.launcher-card-bottom small{font-size:12px;color:#8191a4}
.launcher-open{display:inline-flex;align-items:center;gap:8px;padding:11px 16px;border-radius:10px;background:var(--blue);color:#fff;font-weight:650;font-size:14px}
.launcher-open .icon{width:18px;height:18px}
.launcher-card:hover .launcher-open{background:#1648a8}
.launcher-empty{margin-bottom:20px}
.launcher-upcoming{padding-bottom:12px}
@media(max-width:760px){.launcher-grid{grid-template-columns:1fr}.launcher-card h2{font-size:17px}}

/* ===== Kiosk mode ===== */
.kiosk-page .auth-main{justify-content:flex-start;padding-top:28px}
.kiosk-shell{width:100%;max-width:1100px;margin:0 auto;display:flex;flex-direction:column;gap:18px}
.kiosk-header{display:flex;align-items:center;gap:16px;padding:16px 20px;border-radius:16px;color:#fff;background:linear-gradient(135deg,#133e61,#0d2c4b 60%,#114c64);border-bottom:3px solid #d4bb7c;box-shadow:0 10px 26px #0b2b4826}
.kiosk-emblem{width:64px;height:64px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 50% 40%,#fff 0,#f7f9fc 65%,#e9eef5 100%);box-shadow:0 0 0 2px #d4bb7c}
.kiosk-emblem img{width:54px;height:54px;object-fit:contain}
.kiosk-title{flex:1;min-width:0}
.kiosk-title>span{font-size:11px;letter-spacing:1.6px;font-weight:700;color:#e8d7a6}
.kiosk-title h1{font-size:22px;margin:3px 0 2px;color:#fff;line-height:1.3}
.kiosk-title p{margin:0;font-size:13px;color:#c4d6e4}
.kiosk-header-actions{display:flex;gap:8px}
.kiosk-header-actions .terminal-icon-button{background:#ffffff1a;border-color:#ffffff33;color:#fff}
.kiosk-header-actions .terminal-icon-button:hover{background:#ffffff2e}
.kiosk-card{max-width:520px;width:100%;margin:10px auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px;padding:34px 30px}
.kiosk-card h2{font-size:24px;margin:0}
.kiosk-card p{margin:0;color:var(--muted);line-height:1.6}
.kiosk-card small{color:#8191a4;font-size:12px;line-height:1.6}
.kiosk-card .alert{width:100%;text-align:left;margin:0}
.kiosk-message-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#eef3f9;color:#103452;margin-bottom:4px}
.kiosk-message-icon .icon{width:28px;height:28px}
.kiosk-code-form{display:flex;flex-direction:column;gap:12px;width:100%;margin:8px 0 4px}
.kiosk-code-form input{text-align:center;font-size:34px;letter-spacing:14px;font-weight:700;padding:14px 10px 14px 24px;height:auto;font-variant-numeric:tabular-nums}
.kiosk-code-form button{min-height:50px;font-size:16px}
.kiosk-scanner .attendance-terminal{width:100%}
.kiosk-footer{text-align:center;font-size:11px;color:#8b9cb0;margin:4px 0 0}
@media(max-width:600px){.kiosk-header{flex-wrap:wrap;padding:14px}.kiosk-title h1{font-size:18px}.kiosk-emblem{width:48px;height:48px}.kiosk-emblem img{width:40px;height:40px}.kiosk-code-form input{font-size:28px;letter-spacing:10px}}

/* ===== Kiosk full view: same stacked layout as the admin terminal ===== */
.kiosk-full .auth-main{padding:20px 24px;align-items:stretch}
.kiosk-full .kiosk-shell{max-width:none;gap:18px}
.kiosk-full .kiosk-workspace{display:block}
.kiosk-full .kiosk-scanner{min-width:0}
.kiosk-full .kiosk-workspace .terminal-live-list{margin-top:0}
@media(max-width:600px){.kiosk-full .auth-main{padding:12px}}

/* ===== Kiosk sharing page (admin) ===== */
.kiosk-manage{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:20px;align-items:start}
.kiosk-manage-main,.kiosk-manage-side{display:flex;flex-direction:column;gap:20px;min-width:0}
.kiosk-steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.kiosk-step{display:flex;flex-direction:column;gap:16px;padding:20px}
.kiosk-step-head{display:flex;gap:12px;align-items:flex-start}
.kiosk-step-head h2{font-size:16px;margin:0 0 3px}
.kiosk-step-head p{margin:0;font-size:13px;color:var(--muted)}
.kiosk-step-no{width:30px;height:30px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;font-weight:750;font-size:14px;background:#103452;color:#fff;box-shadow:0 0 0 3px #d4bb7c55}
.kiosk-link-box{font:500 13px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace;color:#1f4d78;background:#f5f8fc;border:1px solid #dbe5f0;border-radius:10px;padding:12px 14px;word-break:break-all;flex:1;display:flex;align-items:center}
.kiosk-code-digits{display:flex;justify-content:center;gap:8px;flex:1;align-items:center}
.kiosk-code-digits span{width:46px;height:58px;display:grid;place-items:center;font-size:30px;font-weight:800;color:#103452;background:#f5f8fc;border:1px solid #dbe5f0;border-bottom:3px solid #d4bb7c;border-radius:10px;font-variant-numeric:tabular-nums}
.kiosk-step-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto}
.kiosk-step-actions>button,.kiosk-step-actions>.button{flex:1;justify-content:center;min-width:140px}
.kiosk-message-preview{margin:0;white-space:pre-wrap;word-break:break-word;font:inherit;font-size:14px;line-height:1.7;color:var(--ink);background:#f7f9fc;border:1px solid #e3eaf2;border-left:4px solid #16a07a;border-radius:10px;padding:14px 16px}
.kiosk-share-step .kiosk-step-actions>*{flex:0 1 auto}
.kiosk-whatsapp{color:#138b62!important;border-color:#bfe6d3!important;background:#effaf4!important}
.kiosk-status dl{margin:0;padding:6px 20px 4px}
.kiosk-status dl>div{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #f0f3f7;font-size:13px}
.kiosk-status dl>div:last-child{border-bottom:0}
.kiosk-status dt{display:flex;align-items:center;gap:8px;color:#6b7e94}
.kiosk-status dt .icon{width:15px;height:15px;color:#7c93ab}
.kiosk-status dd{margin:0;font-weight:600;color:var(--ink);text-align:right}
.kiosk-status-actions{display:flex;flex-direction:column;gap:10px;padding:14px 20px 20px;border-top:1px solid var(--border);background:#fafbfd}
.kiosk-status-actions form,.kiosk-status-actions button{width:100%}
.kiosk-status-actions button{justify-content:center}
.kiosk-revoke{background:#fff0f2!important;color:#ae3445!important;border:1px solid #f3c9d0!important}
.kiosk-revoke:hover{background:#ffe0e6!important}
.kiosk-rules{list-style:none;margin:0;padding:12px 20px 20px;display:flex;flex-direction:column;gap:12px;font-size:13px;color:#52667e}
.kiosk-rules li{display:flex;gap:10px;align-items:flex-start;line-height:1.55}
.kiosk-rules .icon{width:16px;height:16px;flex-shrink:0;margin-top:2px;color:#1d69ae}
.kiosk-start{max-width:560px;margin:10px auto;padding:36px 30px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.kiosk-start h2{font-size:20px;margin:0}
.kiosk-start p{margin:0 0 8px;color:var(--muted);line-height:1.6}
.kiosk-start-icon{width:58px;height:58px;border-radius:50%;display:grid;place-items:center;background:#eef3f9;color:#103452}
.kiosk-start-icon .icon{width:28px;height:28px}
@media(max-width:1200px){.kiosk-manage{grid-template-columns:1fr}.kiosk-manage-side{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.kiosk-steps,.kiosk-manage-side{grid-template-columns:1fr}.kiosk-code-digits span{width:40px;height:52px;font-size:26px}}
.kiosk-status-actions button.secondary{background:#eef4fb;color:#1d5fa8;border:1px solid #d3e0ee}
.kiosk-status-actions button.secondary:hover{background:#e1ecf8}

/* Kiosk sharing page: equal-height cards in a 3-column x 2-row grid */
.kiosk-manage{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 360px;grid-auto-rows:auto;align-items:stretch}
.kiosk-manage-main,.kiosk-steps,.kiosk-manage-side{display:contents}
.kiosk-steps>.kiosk-step:nth-child(1){grid-column:1;grid-row:1}
.kiosk-steps>.kiosk-step:nth-child(2){grid-column:2;grid-row:1}
.kiosk-share-step{grid-column:1/3;grid-row:2}
.kiosk-status{grid-column:3;grid-row:1;display:flex;flex-direction:column}
.kiosk-status .kiosk-status-actions{margin-top:auto}
.kiosk-rules-panel{grid-column:3;grid-row:2}
.kiosk-manage>*>.panel,.kiosk-manage>*>*>.panel{margin:0}
@media(max-width:1200px){
  .kiosk-manage{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kiosk-share-step{grid-column:1/-1;grid-row:2}
  .kiosk-status{grid-column:1;grid-row:3}
  .kiosk-rules-panel{grid-column:2;grid-row:3}
}
@media(max-width:760px){
  .kiosk-manage{grid-template-columns:1fr}
  .kiosk-steps>.kiosk-step:nth-child(1),.kiosk-steps>.kiosk-step:nth-child(2),.kiosk-share-step,.kiosk-status,.kiosk-rules-panel{grid-column:1;grid-row:auto}
}
.kiosk-link-box{flex:0 0 auto;margin:auto 0}

/* ===== Simplified sidebar: collapsible groups ===== */
.nav-group{margin:2px 0}
.nav-group>summary{list-style:none;cursor:pointer;user-select:none}
.nav-group>summary::-webkit-details-marker{display:none}
.nav-group>summary .nav-group-chevron{margin-left:auto;width:14px!important;height:14px!important;opacity:.7;transition:transform .15s}
.nav-group[open]>summary .nav-group-chevron{transform:rotate(90deg)}
.nav-group>summary.is-current{color:#fff}
.nav-group>summary.is-current .icon{color:#fff}
.nav-group-items{display:flex;flex-direction:column;margin:2px 0 6px 22px;padding-left:12px;border-left:1px solid #ffffff1f}
.sidebar .nav-item.nav-sub{min-height:34px;padding-top:7px;padding-bottom:7px;font-size:13px;color:#b9cfe0}
.sidebar .nav-item.nav-sub:hover{color:#fff}
.sidebar .nav-item.nav-sub.active{color:#fff}

/* ===== Laporan Program: tidier layout ===== */
.report-filter{margin-bottom:18px}
.report-kpis{margin-top:0;margin-bottom:22px}
.report-table table{table-layout:fixed}
.report-table .rpt-col-no{width:56px}
.report-table .rpt-col-date{width:190px}
.report-table .rpt-col-org{width:26%}
.report-table .rpt-col-status{width:130px}
.report-table .rpt-col-num{width:100px}
.report-table td{overflow-wrap:anywhere}
.report-table .program-list-name{display:block;line-height:1.45}
@media(max-width:1100px){.report-table table{table-layout:auto;min-width:900px}}

/* ===== Report filter bar (simple, auto-apply) ===== */
.report-filterbar{display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px;padding:14px 16px;margin:0 0 20px;background:#fff;border:1px solid var(--border);border-radius:12px;box-shadow:var(--shadow)}
.rf-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.rf-field>label{font-size:11px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#7b8fa4}
.rf-field select{min-height:38px;height:38px;padding:6px 30px 6px 11px;font-size:14px;border-color:#dfe6ee;background-color:#f8fafc}
.rf-field select:hover{border-color:#c6d3e1}
.rf-small select{width:140px}
.rf-wide{flex:1 1 260px;max-width:420px}
.rf-wide select,.rf-grow select{width:100%}
.rf-grow{flex:1 1 320px}
.rf-reset{margin-left:auto;align-self:center;font-size:13px;font-weight:600;color:#1d5fa8}
@media(max-width:760px){.rf-small{flex:1 1 calc(50% - 7px)}.rf-small select{width:100%}.rf-wide{max-width:none}}
/* Report filter bar: right aligned */
.report-filterbar{justify-content:flex-end}
.report-filterbar .rf-wide{flex:0 1 320px}
.report-filterbar .rf-grow{flex:0 1 520px}
.report-filterbar .rf-reset{margin-left:4px;order:-1;margin-right:auto}
@media(max-width:760px){.report-filterbar{justify-content:stretch}.report-filterbar .rf-wide,.report-filterbar .rf-grow{flex:1 1 100%}}
.report-filterbar .rf-reset{order:0;margin:0 0 0 6px}

/* ===== Login: larger, centred Bismillah ===== */
.login-calligraphy{max-width:none;width:100%;align-items:center;margin:6px 0 26px;gap:12px}
.login-calligraphy>span[lang=ar]{width:100%;font-size:48px;line-height:1.65;text-align:center;color:#e8d29a;text-shadow:0 2px 14px #d4bb7c33}
.login-calligraphy .calligraphy-rule{align-self:center;width:120px;background:linear-gradient(90deg,transparent,#d2b878aa,transparent)}
@media(max-width:760px){.login-calligraphy{margin:2px 0 14px;gap:6px}.login-calligraphy>span[lang=ar]{font-size:32px;line-height:1.6}}
.login-calligraphy>span[lang=ar]{overflow:hidden}

/* ===== Account menu: clear logout button ===== */
.account-dropdown a,.account-dropdown button{align-items:center;min-height:42px}
.account-logout-form{margin-top:6px;padding-top:6px;border-top:1px solid var(--border)}
.account-dropdown .account-logout{color:#b4233a;font-weight:600}
.account-dropdown .account-logout .icon{color:#b4233a}
.account-dropdown .account-logout:hover{background:#fdecef;color:#9b1c30}

/* ===== Standard form layout (form-*) — reusable across the system ===== */
.icon-flip{transform:rotate(180deg)}
.form-page-heading .button{white-space:nowrap}
.form-profile{display:flex;align-items:center;gap:18px;padding:20px 22px;margin-bottom:20px;border-left:4px solid #d4bb7c}
.form-profile-avatar{width:64px;height:64px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:750;color:#fff;background:linear-gradient(135deg,#133e61,#1d5fa8);box-shadow:0 0 0 3px #fff,0 0 0 5px #d4bb7c66}
.form-profile-body{flex:1;min-width:0}
.form-profile-body h2{font-size:20px;margin:0 0 3px;line-height:1.3}
.form-profile-body p{margin:0 0 9px;font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.form-profile-chips{display:flex;flex-wrap:wrap;gap:6px}
.form-role-pill{background:#eaf1fb;color:#1d5fa8;border:1px solid #d3e1f3}
.form-profile-meta{display:flex;gap:26px;margin:0;padding-left:22px;border-left:1px solid var(--border)}
.form-profile-meta div{display:flex;flex-direction:column;gap:3px}
.form-profile-meta dt{font-size:11px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#8191a4}
.form-profile-meta dd{margin:0;font-size:14px;font-weight:600;color:var(--ink);white-space:nowrap}

.form-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:20px;align-items:start;margin-bottom:20px}
.form-layout.has-side{grid-template-columns:minmax(0,1fr) 360px}
.form-card{padding:22px 24px;margin:0}
.form-card-head{margin-bottom:18px;padding-bottom:14px;border-bottom:1px solid var(--border)}
.form-card-head h2{font-size:16px;margin:0 0 3px}
.form-card-head p{margin:0;font-size:12px;color:var(--muted)}
.form-required{color:#c0392b;font-weight:700}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px}
.form-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.form-field.is-wide{grid-column:1/-1}
.form-field>label{font-size:13px;font-weight:650;color:#3d5168}
.form-field input,.form-field select{width:100%;min-height:44px;margin:0;font-size:14px;background:#fbfcfe}
.form-field input:focus,.form-field select:focus{background:#fff;border-color:#3b88ce;box-shadow:0 0 0 3px #3b88ce22}
.form-hint{font-size:12px;color:#8191a4;line-height:1.5}
.form-error{font-size:12px;color:#b4233a;line-height:1.5}
.form-field.has-error input,.form-field.has-error select{border-color:#e39aa6;background:#fff8f9}
.form-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin:22px -24px -22px;padding:14px 24px;border-top:1px solid var(--border);background:#fafbfd;border-radius:0 0 var(--radius) var(--radius)}
.form-actions button{min-width:170px}
.form-cancel{font-size:14px;font-weight:600;color:#5f7389}
.form-side{display:flex;flex-direction:column;gap:20px;min-width:0}
.form-role-list{list-style:none;margin:0 0 16px;padding:0;display:flex;flex-direction:column;gap:8px}
.form-role-list li{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#fbfcfe}
.form-role-list li>.icon{width:18px;height:18px;color:#1d5fa8;flex-shrink:0}
.form-role-list li>div{flex:1;min-width:0;display:flex;flex-direction:column}
.form-role-list li strong{font-size:14px}
.form-role-list li small{font-size:12px;color:#8191a4}
.form-role-empty{color:#8191a4;font-size:13px;justify-content:center}
.form-role-assign{display:flex;flex-direction:column;gap:12px;padding-top:14px;border-top:1px dashed var(--border)}
.form-role-assign button{width:100%}
.form-role-assign button.secondary{background:#eef4fb;color:#1d5fa8;border:1px solid #d3e0ee}
.form-note{display:flex;gap:8px;align-items:flex-start;margin:0;font-size:13px;color:#6b7e94;line-height:1.5}
.form-note .icon{width:16px;height:16px;flex-shrink:0;margin-top:2px}
.form-danger{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;margin-bottom:20px;border:1px solid #f3cdd4;background:#fffafb}
.form-danger h2{font-size:15px;margin:0 0 3px;color:#9b1c30}
.form-danger p{margin:0;font-size:13px;color:#8a5a63}
.form-danger button.danger{background:#fff;color:#b4233a;border:1px solid #e9a9b4;white-space:nowrap}
.form-danger button.danger:hover{background:#b4233a;color:#fff}
@media(max-width:1100px){.form-layout.has-side{grid-template-columns:1fr}.form-profile{flex-wrap:wrap}.form-profile-meta{width:100%;padding:12px 0 0;border-left:0;border-top:1px solid var(--border)}}
@media(max-width:760px){.form-grid{grid-template-columns:1fr}.form-actions{flex-direction:column-reverse;align-items:stretch}.form-actions button{width:100%}.form-danger{flex-direction:column;align-items:flex-start}}

/* ===== Searchable dropdown (select[data-searchable]) ===== */
select.ss-native{position:absolute!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;margin:-1px!important;overflow:hidden;clip:rect(0,0,0,0);border:0!important;opacity:0}
.ss{position:relative;width:100%}
.ss-trigger{width:100%;min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 38px 10px 12px;background:#fbfcfe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23526a84' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;border:1px solid #d7e0eb;border-radius:8px;color:var(--ink);font-size:14px;font-weight:500;text-align:left;cursor:pointer}
.ss-trigger:hover{background-color:#fff;border-color:#c6d3e1}
.ss.is-open .ss-trigger,.ss-trigger:focus-visible{border-color:#3b88ce;box-shadow:0 0 0 3px #3b88ce22;outline:none;background-color:#fff}
.ss-trigger.is-placeholder .ss-label{color:#8b9cb0}
.ss-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ss-panel{position:absolute;z-index:60;left:0;right:0;top:calc(100% + 6px);padding:8px;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:0 14px 32px #102a4326}
.ss input.ss-search{width:100%;min-height:40px;margin:0 0 6px;padding:8px 12px 8px 36px;font-size:14px;border:1px solid #d7e0eb;border-radius:8px;background:#f7f9fc url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%237c93ab' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") no-repeat 12px center}
.ss input.ss-search:focus{border-color:#3b88ce;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%237c93ab' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");box-shadow:none}
.ss-list{list-style:none;margin:0;padding:0;max-height:260px;overflow:auto}
.ss-list li{padding:9px 10px;border-radius:7px;font-size:14px;color:var(--ink);cursor:pointer;line-height:1.4}
.ss-list li.ss-placeholder{color:#8b9cb0}
.ss-list li:hover,.ss-list li.is-active{background:#eef4fb}
.ss-list li[aria-selected="true"]{font-weight:650;color:#1d5fa8}
.ss-empty{margin:6px 4px;font-size:13px;color:#8191a4}
.panel.form-card{overflow:visible}

/* ---- Profile pictures (linked kakitangan photo) ---- */
.avatar.has-photo{overflow:hidden;padding:0}
.avatar.has-photo img,.form-profile-avatar.has-photo img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.form-profile-avatar.has-photo{background:#edf3f9;overflow:hidden}
.staff-photo img{width:100%;height:100%;object-fit:cover;display:block}
.staff-photo-avatar{width:36px;height:36px;border-radius:50%}
.staff-photo-avatar .staff-photo-empty svg{width:16px;height:16px}
.user-cell{display:inline-flex;align-items:center;gap:10px;min-width:0}
.user-cell>span:last-child{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.user-cell strong{font-weight:650;color:var(--navy)}
.user-cell small{color:#6b7f92;font-size:12px}
.form-photo{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.form-photo-frame{position:relative;width:84px;height:104px;border-radius:10px;overflow:hidden;border:1px solid #dce5ee;background:#edf3f9;flex-shrink:0}
.form-photo-frame img{width:100%;height:100%;object-fit:cover;display:block}
.form-photo-frame .form-photo-preview{position:absolute;inset:0}
.form-photo-frame:has(.form-photo-preview:not([hidden])) [data-photo-current]{visibility:hidden}
.form-photo-empty{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:#9bb0c3;background:linear-gradient(145deg,#f2f7fb,#e4edf5)}
.form-photo-empty svg{width:30px;height:30px}
.form-photo-controls{display:flex;flex-direction:column;gap:9px;align-items:flex-start}
.form-photo-pick{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid #c9d7e5;border-radius:8px;background:#fff;color:var(--navy);font-weight:650;cursor:pointer;margin:0}
.form-photo-pick:hover{border-color:#1d5fa8;background:#f4f8fc}
.form-photo-pick svg{width:16px;height:16px}
.form-photo-pick input[type=file]{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.form-photo-remove{display:inline-flex;align-items:center;gap:7px;font-weight:500;color:#9b2c2c;font-size:13px;margin:0;cursor:pointer}
.form-photo-remove input{width:auto;margin:0}
.show-profile{margin-bottom:16px}
.show-profile .staff-photo-profile{border-radius:10px}

/* ---- Pengguna form: photo column beside the fields ---- */
.form-body.has-photo{display:grid;grid-template-columns:168px minmax(0,1fr);gap:28px;align-items:start}
.form-photo-col{display:flex;flex-direction:column;align-items:center;gap:10px;padding:4px 24px 4px 0;border-right:1px solid #e6edf4;text-align:center}
.form-photo-title{align-self:stretch;text-align:left;font-size:13px;font-weight:700;color:var(--navy)}
.form-photo-col .form-photo-frame{width:132px;height:162px;border-radius:12px;box-shadow:0 0 0 4px #fff,0 0 0 5px #e1e9f1}
.form-photo-empty{flex-direction:column;gap:6px}
.form-photo-empty small{font-size:11.5px;color:#8aa0b4}
.form-photo-col .form-photo-pick{width:132px;justify-content:center;padding:8px 10px;font-size:13px}
.form-photo-col .form-photo-remove{font-size:12.5px}
.form-photo-col .form-hint,.form-photo-col .form-error{font-size:11.5px;line-height:1.45;margin:0}
@media (max-width:760px){.form-body.has-photo{grid-template-columns:1fr}.form-photo-col{border-right:0;border-bottom:1px solid #e6edf4;padding:0 0 18px}}

/* ---- Read-only detail view, same positions as the form ---- */
.form-heading-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.form-view dl.form-grid{margin:0}
.form-view .form-field dt{font-size:13px;font-weight:700;color:var(--navy);margin-bottom:7px}
.form-view .form-view-value{margin:0;min-height:44px;display:flex;align-items:center;flex-wrap:wrap;padding:10px 13px;border:1px solid #e3eaf1;border-radius:9px;background:#f7fafd;color:#1d2b3a;font-weight:600;font-size:14.5px}
.form-view .form-view-sub{color:#6b7f92;font-weight:500;white-space:pre}
.form-view .form-view-value .pill{font-size:12.5px}
.form-view .form-card-head{margin-bottom:18px}
.form-photo-link{font-size:12.5px;font-weight:600;color:#1d5fa8}
.form-photo-link:hover{text-decoration:underline}

/* ---- Pengguna directory (grid + list) ---- */
.users-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 14px;margin:18px 0}
.users-search{flex:1 1 280px;display:flex;align-items:center;gap:9px;padding:0 13px;border:1px solid #d8e2ec;border-radius:9px;background:#f8fbfe;margin:0;height:42px}
.users-search:focus-within{border-color:#1d5fa8;background:#fff;box-shadow:0 0 0 3px #1d5fa81f}
.users-search svg{width:17px;height:17px;color:#7b90a5;flex-shrink:0}
.users-search input{border:0;background:transparent;box-shadow:none;padding:0;height:100%;flex:1;min-width:0;outline:0}
.users-status-tabs{display:flex;gap:4px;padding:4px;background:#eef3f8;border-radius:9px}
.users-status-tabs a{padding:7px 13px;border-radius:7px;font-size:13px;font-weight:650;color:#4b6075;text-decoration:none}
.users-status-tabs a.selected{background:#fff;color:var(--navy);box-shadow:0 1px 3px #0f2a4426}
.users-view-toggle{display:flex;border:1px solid #d8e2ec;border-radius:9px;overflow:hidden}
.users-view-toggle a{display:grid;place-items:center;width:40px;height:38px;color:#6b7f92;background:#fff}
.users-view-toggle a+a{border-left:1px solid #d8e2ec}
.users-view-toggle a.selected{background:#133e61;color:#fff}
.users-view-toggle svg{width:17px;height:17px}
.users-reset{font-size:13px;font-weight:650;color:#1d5fa8}
.users-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.user-card{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:26px 20px 16px;margin:0;border-top:3px solid #1d5fa8;transition:box-shadow .2s,transform .2s}
.user-card:hover{box-shadow:0 12px 28px #0f2a441c;transform:translateY(-2px)}
.user-card.is-inactive{border-top-color:#b8c4d0}
.user-card.is-inactive .staff-photo{filter:grayscale(.8);opacity:.75}
.user-card-status{position:absolute;top:14px;right:14px;font-size:11.5px}
.user-card-photo{display:block;border-radius:50%;box-shadow:0 0 0 4px #fff,0 0 0 6px #d4bb7c66}
.staff-photo-card{width:92px;height:92px;border-radius:50%;border:0}
.staff-photo-card .staff-photo-empty svg{width:34px;height:34px}
.user-card h2{margin:16px 0 4px;font-size:16px;line-height:1.3}
.user-card h2 a{color:var(--navy);text-decoration:none}
.user-card h2 a:hover{color:#1d5fa8}
.user-card-sub{margin:0;font-size:12.5px;color:#6b7f92}
.user-card-roles{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:12px 0 14px;min-height:24px}
.user-card-roles .pill{font-size:11.5px}
.user-card-meta{align-self:stretch;margin:0;padding:12px 0 0;border-top:1px solid #edf2f7;display:grid;gap:8px;text-align:left}
.user-card-meta>div{display:flex;justify-content:space-between;gap:10px;font-size:12.5px}
.user-card-meta dt{display:flex;align-items:center;gap:6px;color:#7b90a5;font-weight:600;flex-shrink:0}
.user-card-meta dt svg{width:14px;height:14px}
.user-card-meta dd{margin:0;color:#1d2b3a;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-card-actions{align-self:stretch;margin-top:14px;padding-top:12px;border-top:1px solid #edf2f7;display:flex;justify-content:center}
.users-table .user-cell a{color:var(--navy);text-decoration:none}
.users-table .user-cell a:hover{color:#1d5fa8}
.users-table td .pill{font-size:11.5px}
.users-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:40px;color:#6b7f92}
.users-empty svg{width:34px;height:34px;color:#9bb0c3}
.users-empty strong{color:var(--navy)}
.users-pagination{margin-top:16px}
.users-pagination:empty{display:none}

/* ---- Pengguna directory v2: compact, standard ---- */
.users-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.users-stat{display:flex;align-items:center;gap:13px;padding:14px 16px;background:#fff;border:1px solid #e3eaf1;border-radius:12px}
.users-stat-icon{width:38px;height:38px;border-radius:10px;display:grid;place-items:center;flex-shrink:0;background:#e8f1fa;color:#1d5fa8}
.users-stat-icon svg{width:18px;height:18px}
.users-stat.tone-1 .users-stat-icon{background:#e6f5ee;color:#1f8a5b}
.users-stat.tone-2 .users-stat-icon{background:#f1f3f6;color:#64748b}
.users-stat.tone-3 .users-stat-icon{background:#fbf3e2;color:#a87a1d}
.users-stat span{display:block;font-size:12px;font-weight:600;color:#6b7f92}
.users-stat strong{display:block;font-size:22px;line-height:1.15;color:var(--navy);font-weight:750}
.users-panel{padding:0;overflow:hidden}
.users-panel .users-toolbar{margin:0;padding:14px 16px;border-bottom:1px solid #e6edf4;background:#fbfcfe;border-radius:0;box-shadow:none}
.users-panel .users-search{height:38px;background:#fff}
.users-table-wrap .table-scroll{margin:0}
.users-table{width:100%;border-collapse:collapse}
.users-table th{background:#f6f9fc;font-size:11.5px;letter-spacing:.04em;text-transform:uppercase;color:#6b7f92;font-weight:700;padding:11px 14px;border-bottom:1px solid #e6edf4;text-align:left}
.users-table td{padding:12px 14px;border-bottom:1px solid #eef2f6;font-size:13.5px;vertical-align:middle}
.users-table tbody tr:hover{background:#f8fbfe}
.users-table tbody tr:last-child td{border-bottom:0}
.users-table .users-mono{font-variant-numeric:tabular-nums;color:#4b6075;font-weight:600}
.users-table .user-cell strong{font-size:13.5px}
.users-table .user-cell small{font-size:12px}
.users-pagination{margin:0;padding:12px 16px;border-top:1px solid #e6edf4;background:#fbfcfe}
.users-pagination>*{margin:0!important;box-shadow:none!important;border:0!important;background:transparent!important;padding:0!important}
.users-empty{display:flex;flex-direction:column;align-items:center;gap:6px;padding:44px;color:#6b7f92;border:0;box-shadow:none}
.users-grid{grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px;padding:16px}
.user-card{display:flex;flex-direction:column;align-items:stretch;text-align:left;padding:16px;margin:0;background:#fff;border:1px solid #e3eaf1;border-top:1px solid #e3eaf1;border-radius:12px;box-shadow:none;transform:none}
.user-card:hover{transform:none;box-shadow:0 4px 14px #0f2a4414;border-color:#c9d7e5}
.user-card.is-inactive{border-top-color:#e3eaf1;background:#fafbfc}
.user-card-head{display:flex;align-items:center;gap:12px}
.user-card-head .pill{margin-left:auto;align-self:flex-start;font-size:11.5px}
.user-card-photo{box-shadow:none;border-radius:50%;flex-shrink:0}
.staff-photo-card{width:48px;height:48px;border-radius:50%;border:1px solid #dce5ee}
.staff-photo-card .staff-photo-empty svg{width:20px;height:20px}
.user-card-id{min-width:0}
.user-card-id h2{margin:0;font-size:14.5px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-card-id h2 a{color:var(--navy);text-decoration:none}
.user-card-id p{margin:2px 0 0;font-size:12px;color:#6b7f92;font-variant-numeric:tabular-nums}
.user-card .user-card-meta{margin:14px 0 0;padding:12px 0 0;border-top:1px solid #eef2f6;display:grid;gap:7px}
.user-card .user-card-meta>div{display:grid;grid-template-columns:84px minmax(0,1fr);gap:8px;font-size:12.5px}
.user-card .user-card-meta dt{color:#7b90a5;font-weight:600}
.user-card .user-card-meta dd{margin:0;text-align:left;font-weight:600;color:#1d2b3a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.user-card .user-card-actions{margin-top:12px;padding-top:10px;border-top:1px solid #eef2f6;display:flex;align-items:center;justify-content:space-between}
.user-card .user-card-actions .pill{font-size:11.5px}
@media (max-width:980px){.users-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* ---- Kategori / Lokasi Program: catatan ---- */
.options-table .option-notes{color:#5b6f83;font-size:13px;line-height:1.45;max-width:520px}
.form-field textarea{width:100%;resize:vertical;min-height:84px;font:inherit}

/* ---- Compact layout for laptop / small screens (761–1500px wide) ---- */
@media (min-width:761px) and (max-width:1800px){
  :root{--sidebar:224px}
  html body .agency-brand{padding:16px 14px 14px;gap:6px;min-height:0}
  html body .agency-brand img{width:64px;height:64px;padding:5px;box-shadow:0 0 0 2px #d4bb7c,0 0 0 5px #ffffff14,0 6px 16px #04142a55}
  html body .agency-brand>span{font-size:12px;line-height:1.35}
  html body .agency-brand small{font-size:10.5px}
  html body .agency-brand small:after{margin-top:6px;width:28px}
  html body .sidebar-nav{padding:0 10px}
  html body .nav-caption{padding:12px 12px 4px;font-size:10px}
  html body .nav-item{min-height:34px;padding:7px 10px;font-size:13px;margin:1px 0}
  html body .topbar{height:64px;min-height:64px;padding-top:6px;padding-bottom:6px}
  html body .topbar-greeting span{font-size:11.5px}
  html body .topbar-greeting strong{font-size:18px}
  html body .topbar-greeting small{font-size:10.5px;margin-top:2px}
  html body .topbar-account{gap:14px}
  html body .account-menu summary{padding:4px 10px 4px 4px}
  html body .account-menu .avatar{width:32px;height:32px;font-size:15px}
  html body .breadcrumb{height:38px}
  html body .page-heading{margin:2px 0 16px;gap:14px}
  html body .page-heading h1{font-size:21px}
  html body .page-heading p{font-size:13px;margin-top:4px}
  html body .eyebrow{font-size:10.5px}
  html body .launcher-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px;margin-bottom:16px}
  html body .launcher-card{padding:16px 18px;gap:8px;border-radius:14px}
  html body .launcher-card h2,html body .launcher-card h3{font-size:15.5px}
  html body .launcher-open{padding:9px 14px;font-size:13px}
  html body .panel-heading h2{font-size:15px}
  html body .exec-agenda-item{padding-top:10px;padding-bottom:10px}
}
/* Short screens: shrink the crest further so the menu fits without scrolling */
@media (min-width:761px) and (max-height:820px){
  html body .agency-brand img{width:54px;height:54px}
  html body .agency-brand{padding-top:12px;padding-bottom:10px}
}

/* ---- Compact dashboard on laptop screens ---- */
@media (min-width:761px) and (max-width:1800px){
  html body .dashboard-filter select{height:36px;padding-top:6px;padding-bottom:6px;font-size:13px}
  html body .exec-hero{padding:18px 22px;gap:14px;border-radius:16px}
  html body .exec-gauge-wrap{gap:18px}
  html body .exec-gauge{width:104px;height:104px;padding:9px}
  html body .exec-gauge strong{font-size:26px}
  html body .exec-gauge-copy>strong{font-size:20px}
  html body .exec-gauge-copy>small{font-size:12.5px;line-height:1.5}
  html body .exec-stats{gap:10px}
  html body .exec-stat{padding:11px 13px;gap:10px;border-radius:12px}
  html body .exec-stat-icon{width:32px;height:32px;border-radius:9px}
  html body .exec-stat strong{font-size:22px;line-height:1.2}
  html body .exec-stat span,html body .exec-stat small,html body .exec-stat p{font-size:12px;line-height:1.45}
  html body .exec-insights ul{padding:10px 16px 16px;gap:8px}
  html body .exec-insight{padding:10px 12px;gap:9px}
  html body .exec-insight p{font-size:13px;line-height:1.5}
  html body .exec-insights{margin-bottom:16px}
  html body .panel-heading{padding-top:12px;padding-bottom:12px}
}

/* ---- Terminal launcher: compact program cards (all screens) ---- */
html body .launcher-grid{grid-template-columns:repeat(auto-fill,minmax(260px,320px));gap:12px;margin:4px 0 18px}
html body .launcher-card{padding:12px 14px;gap:6px;border-radius:12px;border-top-width:3px}
html body .launcher-card .pill{font-size:11px;padding:3px 8px}
html body .launcher-day{font-size:11px}
html body .launcher-card h2{font-size:14.5px;line-height:1.35;margin:2px 0 0}
html body .launcher-card>p{font-size:12px}
html body .launcher-meta{gap:4px;font-size:12px;margin-top:2px}
html body .launcher-meta li{gap:6px}
html body .launcher-meta .icon{width:13px;height:13px}
html body .launcher-card-bottom{padding-top:9px;gap:10px}
html body .launcher-card-bottom strong{font-size:18px}
html body .launcher-card-bottom small{font-size:11px}
html body .launcher-open{padding:7px 12px;font-size:12.5px;border-radius:8px;gap:6px}
html body .launcher-open .icon{width:15px;height:15px}
@media (max-width:600px){html body .launcher-grid{grid-template-columns:1fr}}

/* Topbar greeting: keep three lines inside the 64px bar padding. */
.topbar-greeting>div>span,.topbar-greeting>div>small{line-height:1.25}.topbar-greeting>div>strong{line-height:1.2}

/* Attendance table: keep staff names and headers whole on narrow screens (table scrolls instead). */
.attendance-records-table th,.attendance-records-table td{white-space:nowrap}.attendance-records-table .attendance-staff-identity{white-space:normal;min-width:200px}

/* ---- Kongsi Kiosk: smaller activation-code digits ---- */
html body .kiosk-code-digits{gap:6px}
html body .kiosk-code-digits span{width:34px;height:42px;font-size:20px;font-weight:750;border-radius:8px;border-bottom-width:2px}

/* ---- Kakitangan list: contact details under the name ---- */
.staff-list-contact{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;font-size:12.5px;color:#5b6f83}
.staff-list-contact>span{display:inline-flex;align-items:center;gap:5px;min-width:0;overflow-wrap:anywhere}
.staff-list-contact .icon{width:13px;height:13px;flex-shrink:0;color:#8aa0b4}

/* ---- Kakitangan list: balanced column widths ---- */
html body .staff-directory-compact .staff-table{table-layout:fixed;width:100%}
html body .staff-directory-compact .staff-table th.number-column,html body .staff-directory-compact .staff-table td.number-column{width:64px;text-align:center;padding-left:8px;padding-right:8px}
html body .staff-directory-compact .staff-table th.photo-column,html body .staff-directory-compact .staff-table td.photo-column{width:84px;text-align:center;padding-left:8px;padding-right:8px}
html body .staff-directory-compact .staff-table th:nth-child(3){width:46%}
html body .staff-directory-compact .staff-table th.record-actions-cell,html body .staff-directory-compact .staff-table td.record-actions-cell{width:168px}
html body .staff-directory-compact .staff-table td{vertical-align:middle}
html body .staff-directory-compact .staff-table .staff-list-name{overflow-wrap:anywhere}
@media (max-width:760px){html body .staff-directory-compact .staff-table{table-layout:auto}}

/* ---- Kakitangan cell: name, position, then ID chip + contact ---- */
.staff-list-position{display:block;margin-top:3px;font-size:13.5px;color:#41566b;font-weight:500}
.staff-list-meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px 14px;margin-top:7px;font-size:12.5px;color:#5b6f83}
.staff-list-meta>span{display:inline-flex;align-items:center;gap:5px;min-width:0;overflow-wrap:anywhere}
.staff-list-meta .icon{width:13px;height:13px;flex-shrink:0;color:#8aa0b4}
.staff-list-meta .staff-list-id{padding:2px 8px;border-radius:6px;background:#eef3f8;border:1px solid #dce5ee;color:#133e61;font-weight:650;font-variant-numeric:tabular-nums;letter-spacing:.2px}

/* ---- Cetakan Kad table ---- */
html body .staff-card-table{table-layout:fixed;width:100%}
html body .staff-card-table th,html body .staff-card-table td{vertical-align:middle}
html body .staff-card-table .card-select-column{width:52px;text-align:center}
html body .staff-card-table .number-column{width:60px;text-align:center}
html body .staff-card-table .photo-column{width:80px;text-align:center}
html body .staff-card-table th.col-org{width:30%}
html body .staff-card-table th.col-status{width:130px}
html body .staff-card-table th.col-preview{width:140px}
html body .staff-card-table .staff-list-name{overflow-wrap:anywhere}
@media (max-width:760px){html body .staff-card-table{table-layout:auto}}

/* ---- Cetakan Kad: status icon + card modal ---- */
.status-icon{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;vertical-align:middle}
.status-icon .icon{width:16px;height:16px;stroke-width:2.4}
.status-icon.is-active{background:#e3f5ec;color:#14875c;box-shadow:inset 0 0 0 1px #b8e3cd}
.status-icon.is-inactive{background:#f1f3f6;color:#8a97a6;box-shadow:inset 0 0 0 1px #dde3ea}
.status-icon-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
html body .staff-card-table td.col-status{text-align:center}
html body .staff-card-table th.col-status{width:90px;text-align:center}
.card-modal{border:0;border-radius:18px;padding:0;width:min(860px,94vw);max-height:92vh;box-shadow:0 30px 80px #0b1f3a55;background:#f5f7fb}
.card-modal::backdrop{background:#0b1f3acc;backdrop-filter:blur(3px)}
.card-modal-head{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;background:#fff;border-bottom:1px solid #e3eaf1;position:sticky;top:0;z-index:2}
.card-modal-head h2{margin:2px 0 0;font-size:18px}
.card-modal-actions{display:flex;gap:10px;align-items:center}
.card-modal-actions .button{padding:9px 14px;font-size:13px}
.card-modal-body{padding:22px;overflow:auto;max-height:calc(92vh - 80px)}
.card-modal-body .staff-card-pair{justify-content:center}
.card-modal-note{margin:0 0 14px;padding:10px 14px;border-radius:10px;background:#eaf2fc;color:#1d4f86;font-size:13px}
.card-modal-loading{margin:40px 0;text-align:center;color:#6b7f92}

/* ---- Staff profile: click-the-photo upload ---- */
.quick-photo{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;margin:0;flex-shrink:0}
.quick-photo-frame{position:relative;display:block;cursor:pointer;border-radius:12px;margin:0}
.quick-photo-frame input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.quick-photo-frame .staff-photo{transition:filter .15s}
.quick-photo-frame:hover .staff-photo,.quick-photo-frame:focus-within .staff-photo{filter:brightness(.88)}
.quick-photo-frame:focus-within{outline:3px solid #53acff;outline-offset:3px}
.quick-photo-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:10px}
.quick-photo-badge{position:absolute;right:-8px;bottom:-8px;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#1d5fa8;color:#fff;border:3px solid #fff;box-shadow:0 4px 10px #0b2b4833;pointer-events:none}
.quick-photo-badge .icon{width:15px;height:15px}
.quick-photo.is-uploading .quick-photo-frame::after{content:"Memuat naik…";position:absolute;inset:0;display:grid;place-items:center;border-radius:10px;background:#0b2b48aa;color:#fff;font-size:12px;font-weight:650}
.quick-photo-remove{background:none!important;border:0!important;box-shadow:none!important;padding:2px 4px!important;min-height:0!important;color:#b42318!important;font-size:12px!important;font-weight:600;text-decoration:underline;cursor:pointer;width:auto!important}
.quick-photo-hint{margin:12px 0 0;font-size:12.5px;color:#6b7f92}
.quick-photo-error{display:flex;align-items:center;gap:6px;margin:12px 0 0;font-size:13px;color:#b42318}
.quick-photo-error .icon{width:15px;height:15px}

/* ---- Staff edit: Simpan / Batal under the card preview ---- */
.staff-card-form-actions{display:flex;justify-content:center;gap:12px;margin-top:18px;padding-top:18px;border-top:1px solid #e6edf4}
.staff-card-form-actions button,.staff-card-form-actions .button{display:inline-flex;align-items:center;gap:8px;min-width:150px;justify-content:center}
.staff-card-form-actions .icon{width:17px;height:17px}

/* ===== Staff ID card v2: corporate Johor design (units of --card-unit; card = 270 × 428) ===== */
.staff-id-card.v2{--u:var(--card-unit);background:linear-gradient(180deg,#FDFCF8 0%,#F4F1E8 100%);color:#0F1F3D;overflow:hidden;justify-content:flex-start;text-align:center}
.staff-id-card.v2:before,.staff-id-card.v2:after{display:none!important}
.staff-id-card.v2 .v2-head{position:relative;width:100%;height:calc(128 * var(--u));flex-shrink:0;box-sizing:border-box;padding:calc(18 * var(--u)) calc(16 * var(--u)) 0;background:linear-gradient(160deg,#0A2463 0%,#12347F 65%,#1B4A9C 100%);display:flex;align-items:flex-start;overflow:hidden;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.staff-id-card.v2 .v2-pattern{position:absolute;inset:0;width:100%;height:100%;opacity:.22}
.staff-id-card.v2 .v2-brand{position:relative;display:flex;align-items:center;gap:calc(10 * var(--u));text-align:left}
.staff-id-card.v2 .v2-crest{width:calc(42 * var(--u));height:calc(42 * var(--u));flex-shrink:0;border-radius:50%;background:#fff;display:grid;place-items:center;box-shadow:0 0 0 calc(1.6 * var(--u)) #D4AF37,0 calc(2 * var(--u)) calc(6 * var(--u)) #0006}
.staff-id-card.v2 .v2-crest img{width:calc(34 * var(--u));height:calc(34 * var(--u));object-fit:contain}
.staff-id-card.v2 .v2-brand strong{display:block;color:#fff;font-size:calc(8.8 * var(--u));font-weight:800;letter-spacing:calc(.5 * var(--u));line-height:1.28}
.staff-id-card.v2 .v2-brand small{display:block;margin-top:calc(4 * var(--u));color:#E7C766;font-size:calc(6.4 * var(--u));letter-spacing:calc(1.8 * var(--u));font-weight:700}
.staff-id-card.v2 .v2-specimen{position:absolute;top:calc(13 * var(--u));right:calc(-30 * var(--u));transform:rotate(45deg);background:#C8102E;color:#fff;font-size:calc(6 * var(--u));font-weight:800;letter-spacing:calc(1.4 * var(--u));padding:calc(3 * var(--u)) calc(34 * var(--u));box-shadow:0 calc(1 * var(--u)) calc(3 * var(--u)) #0004}
.staff-id-card.v2 .v2-stripe{width:100%;height:calc(5 * var(--u));flex-shrink:0;background:linear-gradient(180deg,#D4AF37 0 60%,#C8102E 60% 100%);-webkit-print-color-adjust:exact;print-color-adjust:exact}
.staff-id-card.v2 .v2-photo{position:relative;z-index:2;width:calc(104 * var(--u));height:calc(128 * var(--u));margin-top:calc(-58 * var(--u));flex-shrink:0;box-sizing:border-box;padding:calc(3 * var(--u));background:#fff;border-radius:calc(10 * var(--u));box-shadow:0 0 0 calc(1.6 * var(--u)) #D4AF37,0 calc(5 * var(--u)) calc(14 * var(--u)) #0A246338;overflow:hidden}
.staff-id-card.v2 .v2-photo img,.staff-id-card.v2 .v2-photo .portrait-placeholder{width:100%;height:100%;object-fit:cover;border-radius:calc(7 * var(--u));display:flex}
.staff-id-card.v2 .v2-person{width:100%;box-sizing:border-box;padding:calc(12 * var(--u)) calc(18 * var(--u)) 0;display:flex;flex-direction:column;align-items:center;gap:calc(4 * var(--u))}
.staff-id-card.v2 .v2-person strong{font-size:calc(12 * var(--u));font-weight:800;line-height:1.25;text-transform:uppercase;letter-spacing:calc(.3 * var(--u));color:#0A2463;overflow-wrap:anywhere}
.staff-id-card.v2 .v2-position{font-size:calc(8.2 * var(--u));font-weight:700;color:#8A6A12;line-height:1.3}
.staff-id-card.v2 .v2-org{font-size:calc(7.4 * var(--u));color:#475569;line-height:1.35}
.staff-id-card.v2 .v2-id{margin-top:auto;margin-bottom:calc(44 * var(--u));display:flex;flex-direction:column;align-items:center;gap:calc(2 * var(--u));padding:calc(5 * var(--u)) calc(16 * var(--u));border-top:calc(1.2 * var(--u)) solid #D4AF37}
.staff-id-card.v2 .v2-id span{font-size:calc(6 * var(--u));letter-spacing:calc(1.8 * var(--u));color:#7B8794;font-weight:700}
.staff-id-card.v2 .v2-id strong{font-size:calc(14 * var(--u));letter-spacing:calc(1.2 * var(--u));font-weight:800;color:#0A2463;font-variant-numeric:tabular-nums}
.staff-id-card.v2 .v2-foot{position:absolute;left:0;right:0;bottom:0;height:calc(30 * var(--u));box-sizing:border-box;padding:0 calc(14 * var(--u));display:flex;align-items:center;justify-content:space-between;background:#0A2463;border-top:calc(2 * var(--u)) solid #D4AF37;color:#fff;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.staff-id-card.v2 .v2-foot span{font-size:calc(6.2 * var(--u));letter-spacing:calc(.6 * var(--u));opacity:.88}
.staff-id-card.v2 .v2-foot strong{font-size:calc(11 * var(--u));letter-spacing:calc(2.2 * var(--u));color:#E7C766}
.staff-id-card.v2 .v2-head-sm{height:calc(46 * var(--u));padding:0 calc(14 * var(--u));align-items:center;justify-content:space-between}
.staff-id-card.v2 .v2-head-title{position:relative;color:#fff;font-size:calc(7.6 * var(--u));font-weight:800;letter-spacing:calc(1.2 * var(--u))}
.staff-id-card.v2 .v2-crest-sm{position:relative;width:calc(28 * var(--u));height:calc(28 * var(--u))}
.staff-id-card.v2 .v2-crest-sm img{width:calc(22 * var(--u));height:calc(22 * var(--u))}
.staff-id-card.v2 .v2-scan{margin:calc(15 * var(--u)) 0 calc(9 * var(--u));font-size:calc(7.6 * var(--u));letter-spacing:calc(2.2 * var(--u));font-weight:800;color:#0A2463}
.staff-id-card.v2 .v2-qr{position:relative;width:calc(150 * var(--u));height:calc(150 * var(--u));flex-shrink:0;box-sizing:border-box;padding:calc(10 * var(--u));background:#fff;border-radius:calc(8 * var(--u));box-shadow:0 calc(2 * var(--u)) calc(9 * var(--u)) #0A24631f}
.staff-id-card.v2 .v2-qr svg{display:block;width:100%;height:100%}
.staff-id-card.v2 .v2-qr .c{position:absolute;width:calc(18 * var(--u));height:calc(18 * var(--u));border:calc(2.6 * var(--u)) solid #D4AF37}
.staff-id-card.v2 .v2-qr .tl{top:calc(-4 * var(--u));left:calc(-4 * var(--u));border-right:0;border-bottom:0;border-top-left-radius:calc(8 * var(--u))}
.staff-id-card.v2 .v2-qr .tr{top:calc(-4 * var(--u));right:calc(-4 * var(--u));border-left:0;border-bottom:0;border-top-right-radius:calc(8 * var(--u))}
.staff-id-card.v2 .v2-qr .bl{bottom:calc(-4 * var(--u));left:calc(-4 * var(--u));border-right:0;border-top:0;border-bottom-left-radius:calc(8 * var(--u))}
.staff-id-card.v2 .v2-qr .br{bottom:calc(-4 * var(--u));right:calc(-4 * var(--u));border-left:0;border-top:0;border-bottom-right-radius:calc(8 * var(--u))}
.staff-id-card.v2 .v2-backno{margin-top:calc(12 * var(--u));font-size:calc(13 * var(--u));font-weight:800;letter-spacing:calc(1.2 * var(--u));color:#0A2463}
.staff-id-card.v2 .v2-backname{margin-top:calc(2 * var(--u));padding:0 calc(16 * var(--u));font-size:calc(7.2 * var(--u));font-weight:600;color:#334155;text-transform:uppercase;letter-spacing:calc(.3 * var(--u))}
.staff-id-card.v2 .v2-caption{margin-top:calc(3 * var(--u));font-size:calc(6.2 * var(--u));letter-spacing:calc(.6 * var(--u));color:#8A6A12;font-weight:700;text-transform:uppercase}
.staff-id-card.v2 .v2-terms{margin:calc(12 * var(--u)) calc(18 * var(--u)) 0;padding:calc(9 * var(--u)) calc(10 * var(--u)) calc(4 * var(--u)) calc(22 * var(--u));text-align:left;font-size:calc(6.6 * var(--u));line-height:1.45;color:#334155;border-top:calc(.8 * var(--u)) solid #E2DCC8}
.staff-id-card.v2 .v2-terms li{margin-bottom:calc(4 * var(--u))}

/* ===== Staff ID card v3 (navy + gold, lattice, mosque) — units of --card-unit; card = 270 × 428 ===== */
.staff-id-card.v3{--u:var(--card-unit);position:relative;overflow:hidden;background:#f6f8fc;color:#0a2463;justify-content:flex-start;align-items:center;text-align:center;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.staff-id-card.v3:before,.staff-id-card.v3:after{display:none!important}
.staff-id-card.v3>*{position:relative;z-index:1}
.staff-id-card.v3 .v3-bg{position:absolute;inset:0;width:100%;height:100%;z-index:0}
.staff-id-card.v3 .v3-specimen{position:absolute;top:calc(14 * var(--u));right:calc(-30 * var(--u));z-index:3;transform:rotate(45deg);background:#c8102e;color:#fff;font-size:calc(6 * var(--u));font-weight:800;letter-spacing:calc(1.4 * var(--u));padding:calc(3 * var(--u)) calc(34 * var(--u))}
.staff-id-card.v3 .v3-crest{width:calc(62 * var(--u));height:calc(56 * var(--u));object-fit:contain;margin-top:calc(12 * var(--u));filter:drop-shadow(0 calc(2 * var(--u)) calc(3 * var(--u)) #0006)}
.staff-id-card.v3 .v3-crest-sm{width:calc(46 * var(--u));height:calc(40 * var(--u));margin-top:calc(9 * var(--u))}
.staff-id-card.v3 .v3-agency{margin-top:calc(5 * var(--u));color:#fff;font-size:calc(8.6 * var(--u));font-weight:800;letter-spacing:calc(.4 * var(--u));white-space:nowrap}
.staff-id-card.v3 .v3-divider{display:flex;align-items:center;gap:calc(5 * var(--u));margin-top:calc(4 * var(--u));color:#e7c766;font-size:calc(7 * var(--u))}
.staff-id-card.v3 .v3-divider i{display:block;width:calc(62 * var(--u));height:calc(.9 * var(--u));background:#d4af37}
.staff-id-card.v3 .v3-divider b{font-weight:400;line-height:1}
.staff-id-card.v3 .v3-kicker{margin-top:calc(3 * var(--u));color:#f2cf62;font-size:calc(7.4 * var(--u));font-weight:800;letter-spacing:calc(3.4 * var(--u))}
.staff-id-card.v3 .v3-photo{width:calc(96 * var(--u));height:calc(116 * var(--u));margin-top:calc(9 * var(--u));flex-shrink:0;box-sizing:border-box;padding:calc(2.5 * var(--u));border-radius:calc(10 * var(--u));background:linear-gradient(135deg,#f4d77d,#c99a33);box-shadow:0 calc(4 * var(--u)) calc(10 * var(--u)) #0a246340;overflow:hidden}
.staff-id-card.v3 .v3-photo img,.staff-id-card.v3 .v3-photo .portrait-placeholder{width:100%;height:100%;object-fit:cover;border-radius:calc(8 * var(--u));background:#fff;display:flex}
.staff-id-card.v3 .v3-name{margin-top:calc(8 * var(--u));padding:0 calc(14 * var(--u));font-size:calc(12 * var(--u));line-height:1.2;font-weight:800;text-transform:uppercase;color:#0a2463;overflow-wrap:anywhere}
.staff-id-card.v3 .v3-position{margin-top:calc(5 * var(--u));max-width:calc(220 * var(--u));padding:calc(3 * var(--u)) calc(16 * var(--u));border-radius:999px;background:linear-gradient(180deg,#173f8f,#0a2463);border:calc(1.4 * var(--u)) solid #d4af37;color:#fff;font-size:calc(8 * var(--u));font-weight:700;line-height:1.3}
.staff-id-card.v3 .v3-org{margin-top:calc(4 * var(--u));padding:0 calc(16 * var(--u));font-size:calc(7.6 * var(--u));font-weight:600;color:#0a2463;line-height:1.3}
.staff-id-card.v3 .v3-line{display:block;width:calc(120 * var(--u));height:calc(1 * var(--u));margin-top:calc(5 * var(--u));background:linear-gradient(90deg,transparent,#d4af37,transparent)}
.staff-id-card.v3 .v3-idlabel{margin-top:calc(4 * var(--u));font-size:calc(5.8 * var(--u));font-weight:800;letter-spacing:calc(2 * var(--u));color:#0a2463}
.staff-id-card.v3 .v3-idpill{margin-top:calc(3 * var(--u));padding:calc(2.5 * var(--u)) calc(18 * var(--u));border-radius:999px;background:linear-gradient(180deg,#173f8f,#0a2463);border:calc(1.4 * var(--u)) solid #d4af37;color:#fff;font-size:calc(11.5 * var(--u));font-weight:800;letter-spacing:calc(1 * var(--u));font-variant-numeric:tabular-nums}
.staff-id-card.v3 .v3-scanpill{display:inline-flex;align-items:center;gap:calc(6 * var(--u));margin-top:calc(16 * var(--u));padding:calc(4 * var(--u)) calc(14 * var(--u)) calc(4 * var(--u)) calc(6 * var(--u));border-radius:999px;background:#0a2463;border:calc(1.4 * var(--u)) solid #d4af37;color:#fff;font-size:calc(7.6 * var(--u));font-weight:800;letter-spacing:calc(.6 * var(--u))}
.staff-id-card.v3 .v3-scanpill .icon{width:calc(13 * var(--u));height:calc(13 * var(--u));padding:calc(2 * var(--u));border:calc(1 * var(--u)) solid #d4af37;border-radius:calc(4 * var(--u))}
.staff-id-card.v3 .v3-qr{position:relative;width:calc(122 * var(--u));height:calc(122 * var(--u));margin-top:calc(12 * var(--u));flex-shrink:0;box-sizing:border-box;padding:calc(7 * var(--u));background:#fff;border-radius:calc(6 * var(--u))}
.staff-id-card.v3 .v3-qr svg{display:block;width:100%;height:100%}
.staff-id-card.v3 .v3-qr .c{position:absolute;width:calc(16 * var(--u));height:calc(16 * var(--u));border:calc(2.6 * var(--u)) solid #f2b705}
.staff-id-card.v3 .v3-qr .tl{top:calc(-5 * var(--u));left:calc(-5 * var(--u));border-right:0;border-bottom:0;border-top-left-radius:calc(6 * var(--u))}
.staff-id-card.v3 .v3-qr .tr{top:calc(-5 * var(--u));right:calc(-5 * var(--u));border-left:0;border-bottom:0;border-top-right-radius:calc(6 * var(--u))}
.staff-id-card.v3 .v3-qr .bl{bottom:calc(-5 * var(--u));left:calc(-5 * var(--u));border-right:0;border-top:0;border-bottom-left-radius:calc(6 * var(--u))}
.staff-id-card.v3 .v3-qr .br{bottom:calc(-5 * var(--u));right:calc(-5 * var(--u));border-left:0;border-top:0;border-bottom-right-radius:calc(6 * var(--u))}
.staff-id-card.v3 .v3-idpill-sm{margin-top:calc(11 * var(--u));font-size:calc(10.5 * var(--u))}
.staff-id-card.v3 .v3-backname{margin-top:calc(4 * var(--u));padding:0 calc(14 * var(--u));font-size:calc(9 * var(--u));font-weight:800;text-transform:uppercase;color:#0a2463;line-height:1.2}
.staff-id-card.v3 .v3-caption{margin-top:calc(4 * var(--u));padding:calc(2.5 * var(--u)) calc(14 * var(--u));border-radius:999px;background:linear-gradient(180deg,#f7d56a,#e8b923);color:#0a2463;font-size:calc(6.2 * var(--u));font-weight:800;letter-spacing:calc(.5 * var(--u));text-transform:uppercase}
.staff-id-card.v3 .v3-terms{list-style:none;margin:calc(9 * var(--u)) calc(16 * var(--u)) 0;padding:0;display:flex;flex-direction:column;gap:calc(4 * var(--u));text-align:left}
.staff-id-card.v3 .v3-terms li{display:flex;align-items:center;gap:calc(7 * var(--u));font-size:calc(6.2 * var(--u));line-height:1.35;color:#0a2463;padding-bottom:calc(3 * var(--u));border-bottom:calc(.6 * var(--u)) solid #d5deec}
.staff-id-card.v3 .v3-terms li:last-child{border-bottom:0}
.staff-id-card.v3 .v3-ti{flex-shrink:0;width:calc(18 * var(--u));height:calc(15 * var(--u));border-radius:calc(3 * var(--u));background:#dfe7f3;display:grid;place-items:center;color:#0a2463}
.staff-id-card.v3 .v3-ti .icon{width:calc(10 * var(--u));height:calc(10 * var(--u))}

/* ===== Staff ID card v4: JAINJ artwork template with dynamic slots (card = 270 × 428 units) ===== */
.staff-id-card.v4{--u:var(--card-unit);position:relative;overflow:hidden;background:#fff;padding:0!important;display:block;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.staff-id-card.v4:before,.staff-id-card.v4:after{display:none!important}
.staff-id-card.v4 .v4-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;display:block}
.staff-id-card.v4 .v4-slot{position:absolute;box-sizing:border-box;display:flex;align-items:center;justify-content:center;text-align:center;white-space:nowrap;overflow:hidden;line-height:1;margin:0}
.staff-id-card.v4 .v4-photo{border-radius:calc(9 * var(--u));background:#fff}
.staff-id-card.v4 .v4-photo img,.staff-id-card.v4 .v4-photo .portrait-placeholder{width:100%;height:100%;object-fit:cover;display:flex}
.staff-id-card.v4 .v4-name{color:#0a2463;font-weight:800;text-transform:uppercase;letter-spacing:calc(.2 * var(--u))}
.staff-id-card.v4 .v4-position{color:#fff;font-weight:700}
.staff-id-card.v4 .v4-org{color:#0a2463;font-weight:600}
.staff-id-card.v4 .v4-empno{color:#0a2463;font-weight:800;letter-spacing:calc(.8 * var(--u));font-variant-numeric:tabular-nums}
.staff-id-card.v4 .v4-qr{background:#fff;padding:calc(2 * var(--u))}
.staff-id-card.v4 .v4-qr svg{display:block;width:100%;height:100%}
.staff-id-card.v4 .v4-backno{color:#fff;font-weight:800;letter-spacing:calc(.8 * var(--u));font-variant-numeric:tabular-nums}
.staff-id-card.v4 .v4-backname{color:#0a2463;font-weight:800;text-transform:uppercase}
.staff-id-card.v4 .v4-specimen{position:absolute;z-index:3;top:calc(18 * var(--u));right:calc(-30 * var(--u));transform:rotate(45deg);background:#c8102e;color:#fff;font-size:calc(6 * var(--u));font-weight:800;letter-spacing:calc(1.4 * var(--u));padding:calc(3 * var(--u)) calc(34 * var(--u))}
.staff-id-card.v4 .v4-qr-note{position:absolute;left:0;right:0;top:calc(268.8 * var(--u));text-align:center;font-size:calc(5.2 * var(--u));font-weight:800;letter-spacing:calc(.6 * var(--u));color:#c8102e}

/* ===== Staff ID card v5: SVG card 54 × 85.6 mm (x-staff-id-card); screen size from --card-unit (card = 270 × 428) ===== */
.staff-id-card.v5{--u:var(--card-unit);position:relative;display:block;padding:0!important;width:calc(270 * var(--card-unit));height:calc(428 * var(--card-unit));background:#fff;border:0;border-radius:calc(16 * var(--card-unit));overflow:hidden;box-shadow:0 10px 28px #0b2e6b26,0 0 0 1px #0b2e6b14;-webkit-print-color-adjust:exact;print-color-adjust:exact}
.staff-id-card.v5:before,.staff-id-card.v5:after{display:none!important}
.staff-id-card.v5>svg{display:block;width:100%;height:100%}
.card-export-toolbar{margin-top:10px;padding:12px 20px;gap:10px}
.card-export-toolbar .card-export-label{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:600;color:#476580;margin-right:4px}
.card-export-toolbar .card-export-label .icon{width:15px;height:15px}
.card-export-toolbar button{margin:0!important;font-size:13px;min-height:36px;padding:8px 13px}
.card-export-toolbar button.secondary{background:#eaf2fa;color:#0e56a8;border:1px solid #ccdfef}
.card-export-toolbar button:disabled{opacity:.55;cursor:progress}
.card-export-status{font-size:12px;margin-left:auto}
.card-guides-option{display:inline-flex;align-items:center;gap:7px;font-weight:400;font-size:13px!important}
.card-guides-option input{width:15px;height:15px;min-height:15px;margin:0}
.staff-card-directory .card-template-link{margin-left:auto}
@media print{.staff-id-card.v5{width:54mm!important;height:85.6mm!important;border-radius:0!important;box-shadow:none!important}.staff-card-sheet{width:54mm!important;height:85.6mm!important}}

/* ===== Staff view (Maklumat Kakitangan): profile summary + details + card ===== */
.staff-view{display:flex;flex-direction:column;gap:20px}
.staff-view>.card,.staff-view-grid>.card{margin:0}
.staff-view-hero{position:relative;display:grid;grid-template-columns:auto 1fr;gap:6px 26px;align-items:center;padding:24px 26px;overflow:hidden;border-top:4px solid #0b2e6b}
.staff-view-hero:after{content:"";position:absolute;right:0;top:0;bottom:0;width:38%;background:url("../images/card/corak-biru.png") right center/420px auto repeat;opacity:.07;pointer-events:none;-webkit-mask-image:linear-gradient(90deg,transparent,#000 60%);mask-image:linear-gradient(90deg,transparent,#000 60%)}
.staff-view-hero>*{position:relative;z-index:1}
.staff-view-photo .staff-photo-profile{width:104px;height:130px;border-radius:12px;border:3px solid #fff;box-shadow:0 0 0 1px #d7e1ec,0 6px 16px #0b2e6b1f}
.staff-view-identity{min-width:0}
.staff-view-identity .eyebrow{font-size:10.5px;letter-spacing:1.4px;margin-bottom:6px;display:block}
.staff-view-identity h2{font-size:22px;line-height:1.3;margin:0 0 6px;color:#0b2e6b;overflow-wrap:anywhere}
.staff-view-role{margin:0 0 12px;font-size:14px;color:#4f6478}
.staff-view-role span{margin:0 8px;color:#b6c3d0}
.staff-view-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.staff-view-id{display:inline-flex;align-items:center;padding:4px 11px;border-radius:7px;background:#0b2e6b;color:#fff;font-size:12.5px;font-weight:700;letter-spacing:.6px;font-variant-numeric:tabular-nums}
.staff-view-status{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;font-size:12.5px;font-weight:650;border:1px solid transparent}
.staff-view-status i{width:7px;height:7px;border-radius:50%;background:currentColor}
.staff-view-status .icon{width:13px;height:13px}
.staff-view-status.is-active{background:#e8f7ef;color:#137a4b;border-color:#c9ecd8}
.staff-view-status.is-inactive{background:#fdeeee;color:#b42318;border-color:#f6d0cd}
.staff-view-status.is-qr{background:#e8f1fd;color:#0e56a8;border-color:#cfe0f7}
.staff-view-contact{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:13.5px;color:#4f6478}
.staff-view-contact span{display:inline-flex;align-items:center;gap:7px;min-width:0}
.staff-view-contact .icon{width:15px;height:15px;color:#0e56a8;flex-shrink:0}
.staff-view-contact a{color:#1d3b5a;text-decoration:none;overflow-wrap:anywhere}
.staff-view-contact a:hover{color:#0e56a8;text-decoration:underline}
.staff-view-contact em{color:#9aabbb;font-style:normal}
.staff-view-hint{grid-column:1 / -1;margin:14px 0 0!important;padding-top:12px;border-top:1px solid #edf2f7;font-size:12px!important}
.staff-view-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:20px;align-items:start}
.staff-view-details{padding:22px 24px}
.staff-view-section-title{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;margin-bottom:4px;border-bottom:1px solid #e6edf4}
.staff-view-section-title h2{font-size:15px;margin:0;color:#0b2e6b}
.staff-view-fields{display:grid;grid-template-columns:1fr 1fr;gap:0 22px;margin:0}
.staff-view-fields>div{padding:13px 0;border-bottom:1px solid #eef2f6;min-width:0}
.staff-view-fields>div.is-wide{grid-column:1 / -1}
.staff-view-fields dt{font-size:11.5px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;color:#8295a8;margin-bottom:5px}
.staff-view-fields dd{margin:0;font-size:14.5px;font-weight:600;color:#14283d;overflow-wrap:anywhere;line-height:1.5}
.staff-view .staff-workspace-card{padding:21px}
@media(max-width:1200px){.staff-view-grid{grid-template-columns:1fr}}
@media(max-width:760px){.staff-view-hero{grid-template-columns:1fr;justify-items:start;padding:18px}.staff-view-hero:after{display:none}.staff-view-identity h2{font-size:19px}.staff-view-fields{grid-template-columns:1fr}.staff-view-details{padding:18px}}

/* ===== Staff card preview: one face at a time (Hadapan / Belakang toggle) ===== */
.card-flip-toggle{display:inline-flex;padding:3px;border-radius:9px;background:#eef3f8;border:1px solid #dce5ee;gap:2px}
.card-flip-toggle button{margin:0!important;min-height:30px!important;padding:5px 14px!important;font-size:12.5px!important;font-weight:650;border-radius:7px!important;border:0!important;background:transparent!important;color:#5b7088!important;box-shadow:none!important;width:auto!important}
.card-flip-toggle button[aria-selected=true]{background:#0b2e6b!important;color:#fff!important;box-shadow:0 2px 6px #0b2e6b33!important}
.card-flip .staff-card-pair{padding:18px 0 14px!important;justify-content:center}
.card-flip .staff-card-side-label{display:none}
.card-flip .staff-card-sheet{display:none}
.card-flip[data-side=front] .staff-card-sheet[data-card-side=front],.card-flip[data-side=back] .staff-card-sheet[data-card-side=back]{display:block;animation:cardFlipIn .25s ease}
@keyframes cardFlipIn{from{opacity:0;transform:translateY(4px) scale(.985)}to{opacity:1;transform:none}}
.staff-workspace-card .card-flip .staff-id-card{--card-unit:1.25px}
@media(min-width:1700px){.staff-workspace-card .card-flip .staff-id-card{--card-unit:1.45px}}
@media(max-width:760px){.staff-workspace-card .card-flip .staff-id-card{--card-unit:1.05px}}
@media(prefers-reduced-motion:reduce){.card-flip .staff-card-sheet{animation:none!important}}

/* ===== Staff view: profile + details on the left, compact card on the right ===== */
.staff-view{display:grid!important;grid-template-columns:minmax(0,1fr) 330px;gap:20px;align-items:start}
.staff-view-main{display:flex;flex-direction:column;gap:20px;min-width:0}
.staff-view-main>.card{margin:0}
.staff-view-side{position:sticky;top:16px;min-width:0}
.staff-view-side .staff-workspace-card{margin:0;padding:16px 16px 14px}
.staff-view-side .panel-heading{flex-wrap:wrap;gap:8px}
.staff-view-side .panel-heading h2{font-size:14px}
.staff-view-side .staff-workspace-card>p.muted{display:none}
.staff-view-side .card-flip .staff-card-pair{padding:12px 0 8px!important}
.staff-view-side .card-flip .staff-id-card{--card-unit:.96px}
.staff-view-side .staff-card-actions{flex-direction:column;align-items:stretch;gap:6px;margin:8px 0 0}
.staff-view-side .staff-card-actions form{width:100%}
.staff-view-side .staff-card-actions .button,.staff-view-side .staff-card-actions button{width:100%;justify-content:center;font-size:12.5px;min-height:34px}
.staff-view-side .staff-card-size-note{margin-top:10px}
.staff-view .staff-view-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
.staff-view .staff-view-fields>div.is-wide{grid-column:span 2}
@media(min-width:1700px){.staff-view{grid-template-columns:minmax(0,1fr) 380px}.staff-view-side .card-flip .staff-id-card{--card-unit:1.12px}}
@media(max-width:1280px){.staff-view .staff-view-fields{grid-template-columns:1fr 1fr}.staff-view .staff-view-fields>div.is-wide{grid-column:1 / -1}}
@media(max-width:1100px){.staff-view{grid-template-columns:1fr}.staff-view-side{position:static}.staff-view-side .card-flip .staff-id-card{--card-unit:1.05px}}
@media(max-width:760px){.staff-view .staff-view-fields{grid-template-columns:1fr}}
.staff-view-side .card-flip-toggle{display:flex;width:100%}.staff-view-side .card-flip-toggle button{flex:1}

/* Card actions in the side panel: one row of icon buttons */
.staff-view-side .staff-card-actions{flex-direction:row!important;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin:10px 0 0}
.staff-view-side .staff-card-actions form{width:auto}
.staff-view-side .staff-card-actions .button,.staff-view-side .staff-card-actions button{width:auto!important;flex:0 0 auto}

/* Staff edit page uses the same layout as the view page */
.staff-view-side .staff-card-form-actions{display:flex;gap:8px;margin-top:12px;padding-top:12px}
.staff-view-side .staff-card-form-actions>*{flex:1;justify-content:center;text-align:center;margin:0!important}
.staff-view.is-editing .staff-view-details .staff-field-grid{gap:14px 18px}
.staff-view-photo>.staff-photo-profile{width:104px;height:130px;border-radius:12px;border:3px solid #fff;box-shadow:0 0 0 1px #d7e1ec,0 6px 16px #0b2e6b1f}

/* Staff view: details inside the profile card (no repeated name / number / status) */
.staff-view-hero-details{grid-column:1 / -1;margin-top:18px;padding-top:16px;border-top:1px solid #e6edf4}
.staff-view-subtitle{font-size:13px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:#0b2e6b;margin:0 0 4px}
.staff-view-hero-details .staff-view-fields a{color:#14283d;text-decoration:none}
.staff-view-hero-details .staff-view-fields a:hover{color:#0e56a8;text-decoration:underline}
.staff-view-hero-details .staff-view-fields>div{border-bottom:0;padding:10px 0}
.staff-view-identity .staff-view-tags{margin-bottom:0}

/* ===== Staff view master layout: equal-height columns, detail tiles ===== */
.staff-view.is-viewing{align-items:stretch}
.staff-view.is-viewing .staff-view-main{height:100%}
.staff-view.is-viewing .staff-view-hero{flex:1;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:26px 28px}
.staff-view-hero-top{grid-column:1 / -1;display:flex;align-items:center;gap:24px;min-width:0}
.staff-view.is-viewing .staff-view-photo .staff-photo-profile{width:116px;height:145px}
.staff-view.is-viewing .staff-view-identity h2{font-size:24px;margin-bottom:12px}
.staff-view.is-viewing .staff-view-hero-details{margin-top:22px;padding-top:20px}
.staff-view-subtitle{margin-bottom:14px!important}
.staff-view-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.staff-view-tile{display:flex;align-items:center;gap:14px;min-width:0;padding:14px 16px;border-radius:12px;background:#f7f9fc;border:1px solid #e3eaf2}
.staff-view-tile-icon{flex-shrink:0;width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:#fff;border:1px solid #dbe5f0;color:#0e56a8}
.staff-view-tile-icon .icon{width:19px;height:19px}
.staff-view-tile>div{min-width:0}
.staff-view-tile span:not(.staff-view-tile-icon){display:block;font-size:11px;font-weight:650;letter-spacing:.5px;text-transform:uppercase;color:#8295a8;margin-bottom:3px}
.staff-view-tile strong,.staff-view-tile a{display:block;font-size:14.5px;font-weight:650;color:#14283d;overflow-wrap:anywhere;line-height:1.45;text-decoration:none}
.staff-view-tile a:hover{color:#0e56a8;text-decoration:underline}
.staff-view.is-viewing .staff-view-hint{margin-top:auto!important;padding-top:14px}
.staff-view.is-viewing .staff-view-hero-details{margin-bottom:18px}
.staff-view.is-viewing .staff-view-side{position:static;display:flex}
.staff-view.is-viewing .staff-view-side .staff-workspace-card{flex:1;display:flex;flex-direction:column}
.staff-view.is-viewing .staff-view-side .staff-card-size-note{margin-top:auto;padding-top:10px}
@media(max-width:1100px){.staff-view.is-viewing .staff-view-side{display:block}}
@media(max-width:760px){.staff-view-tiles{grid-template-columns:1fr}.staff-view-hero-top{flex-direction:column;align-items:flex-start}}
.staff-view.is-editing{align-items:stretch}
.staff-view.is-editing .staff-view-details{flex:1}
.staff-view.is-editing .staff-view-side{position:static;display:flex}
.staff-view.is-editing .staff-view-side .staff-workspace-card{flex:1;display:flex;flex-direction:column}
.staff-view.is-editing .staff-view-side .staff-card-form-actions{margin-top:auto}
@media(max-width:1100px){.staff-view.is-editing .staff-view-side{display:block}}

/* Attendance records: staff photo beside the name */
.attendance-staff-cell{display:flex;align-items:center;gap:14px;min-width:0}
.attendance-staff-photo{width:46px;height:58px;border-radius:9px;flex-shrink:0;border:2px solid #fff;box-shadow:0 0 0 1px #d7e1ec}
.attendance-staff-photo .staff-photo-empty .icon{width:22px;height:22px}
.attendance-staff-cell strong,.attendance-staff-cell span:not(.staff-photo):not(.staff-photo-empty),.attendance-staff-cell small{display:block;line-height:1.55}
.attendance-staff-cell>div>span{color:#758da4;margin-top:2px}
.attendance-staff-cell>div>small{color:#8a9eaf;margin-top:1px}

/* Report: participation rate per organisation */
.participation-rate{display:inline-flex;align-items:center;justify-content:flex-end;gap:10px;min-width:150px}
.participation-bar{position:relative;width:90px;height:7px;border-radius:999px;background:#e8eef5;overflow:hidden}
.participation-bar i{position:absolute;left:0;top:0;bottom:0;border-radius:999px;background:linear-gradient(90deg,#0e56a8,#2f8f6b)}
.participation-rate b{min-width:40px;text-align:right;font-variant-numeric:tabular-nums;color:#14283d}
@media print{.participation-bar{display:none}}

/* ===== Laporan Program: professional layout ===== */
.report-filterbar .rf-title{order:-2;margin-right:auto;align-self:center;display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:700;color:#0b2e6b}
.report-filterbar .rf-title .icon{width:17px;height:17px;color:#0e56a8}
.rk-v2>div{position:relative;border-left:0!important;border-top:3px solid #0e56a8;padding:18px 20px 16px 20px!important;gap:4px!important}
.rk-v2>div:nth-child(2){border-top-color:#0b2e6b}.rk-v2>div:nth-child(3){border-top-color:#2f8f6b}.rk-v2>div:nth-child(4){border-top-color:#c99a06}
.rk-v2 .rk-icon{position:absolute;right:18px;top:18px;width:38px;height:38px;border-radius:10px;display:grid;place-items:center;background:#eef4fb;color:#0e56a8}
.rk-v2 .rk-icon .icon{width:19px;height:19px}
.rk-v2>div>span:not(.rk-icon):not(.rk-split){font-size:12px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:#6b7e94}
.rk-v2 strong{font-size:30px!important;margin-top:4px}
.rk-split{display:block;height:6px;border-radius:999px;background:#f3e3b0;overflow:hidden;margin:4px 0 2px}
.rk-split i{display:block;height:100%;background:#0e56a8;border-radius:999px}
.rk-table{padding:0!important;overflow:hidden}
.rk-table-head{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;border-bottom:1px solid #e6edf4}
.rk-table-head h2{font-size:15px;margin:0;color:#0b2e6b}
.rk-table-head span{font-size:12px;font-weight:650;color:#6b7e94;background:#f2f6fa;border:1px solid #e1e8f0;border-radius:999px;padding:3px 10px}
.rk-table table thead th{font-size:11.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#6b7e94;background:#f7f9fc;padding:12px 16px}
.rk-table table tbody td,.rk-table table tfoot td{padding:14px 16px;font-size:13.5px;vertical-align:middle}
.rk-table table tbody tr:hover td{background:#f8fbff}
.rk-table .rpt-col-no{width:60px}.rk-table .rpt-col-date{width:170px}.rk-table .rpt-col-org{width:24%}.rk-table .rpt-col-status{width:140px}.rk-table .rpt-col-num{width:110px}.rk-table .rpt-col-method{width:150px}
.rk-table .program-list-name{font-weight:700;color:#0b2e6b;text-decoration:none}
.rk-table .program-list-name:hover{color:#0e56a8;text-decoration:underline}
.rk-code{display:inline-block;margin-top:5px;padding:1px 7px;border-radius:5px;background:#f1f5f9;border:1px solid #e2e8f0;font-size:11px;font-weight:600;color:#64748b;letter-spacing:.2px;font-variant-numeric:tabular-nums}
.rk-strong{display:block;font-weight:600;color:#1e3448}
.rk-status{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font-size:12px;font-weight:650;white-space:nowrap;background:#f1f5f9;color:#5b6b7d;border:1px solid #e2e8f0}
.rk-status i{width:7px;height:7px;border-radius:50%;background:currentColor}
.rk-status.is-ongoing{background:#e8f1fd;color:#0e56a8;border-color:#cfe0f7}
.rk-status.is-completed{background:#e8f7ef;color:#137a4b;border-color:#c9ecd8}
.rk-status.is-cancelled{background:#fdeeee;color:#b42318;border-color:#f6d0cd}
.rk-total{font-size:16px;color:#0b2e6b}
.rk-method{display:block;font-size:12px;color:#7b8ea3;line-height:1.6}
.rk-method b{color:#1e3448;font-variant-numeric:tabular-nums;margin-left:3px}
@media print{.rk-v2 .rk-icon,.rk-split,.rk-table-head span{display:none}.rk-v2>div{border-top-width:2px}.rk-table-head{padding:6px 8px}}

/* Laporan Program table uses the Program list layout */
.report-program-list .report-col-total{width:110px}
.report-program-list .report-col-method{width:120px}
.report-program-list td.num,.report-program-list th.num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.report-program-list td.num{vertical-align:middle}
.report-program-list tfoot td{background:#f6f8fb;border-top:2px solid #dfe6ef;padding-top:14px;padding-bottom:14px}
@media print{.report-program-list .program-list-date{display:none}}

/* ===== Laporan KPI portlets v3: tinted gradients, pattern, mini bars ===== */
.rk-v3{gap:18px!important}
.rk-v3>div{--rk:#0e56a8;--rk-soft:#eaf2fc;overflow:hidden;border:1px solid #e3eaf2!important;border-top:0!important;border-radius:16px!important;padding:22px 22px 18px!important;background:linear-gradient(160deg,#fff 0%,#fff 55%,var(--rk-soft) 100%)!important;box-shadow:0 1px 2px #0b2e6b0d,0 8px 24px #0b2e6b0f!important;transition:transform .18s ease,box-shadow .18s ease}
.rk-v3>div:hover{transform:translateY(-2px);box-shadow:0 2px 4px #0b2e6b14,0 14px 32px #0b2e6b1c!important}
.rk-v3>div:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:var(--rk)}
.rk-v3>div:after{content:"";position:absolute;right:-40px;bottom:-40px;width:170px;height:170px;background:url("../images/card/corak-biru.jpg") center/340px auto;mix-blend-mode:multiply;opacity:.16;border-radius:50%;-webkit-mask-image:radial-gradient(circle,#000 35%,transparent 70%);mask-image:radial-gradient(circle,#000 35%,transparent 70%);pointer-events:none}
.rk-v3>div:nth-child(1){--rk:#0e56a8;--rk-soft:#e7f0fb}
.rk-v3>div:nth-child(2){--rk:#0b2e6b;background:linear-gradient(150deg,#0b2e6b 0%,#0e56a8 100%)!important;border-color:transparent!important}
.rk-v3>div:nth-child(3){--rk:#2f8f6b;--rk-soft:#e6f5ee}
.rk-v3>div:nth-child(4){--rk:#c99a06;--rk-soft:#fbf3dc}
.rk-v3>div>*{position:relative;z-index:1}
.rk-v3 .rk-icon{width:46px!important;height:46px!important;border-radius:14px!important;background:var(--rk)!important;color:#fff!important;box-shadow:0 6px 14px color-mix(in srgb,var(--rk) 35%,transparent);position:absolute!important}
.rk-v3 .rk-icon .icon{width:22px!important;height:22px!important}
.rk-v3 strong{font-size:34px!important;letter-spacing:-.5px;color:#0b2e6b!important}
.rk-v3>div:nth-child(2) .rk-icon{background:#f5c400!important;color:#0b2e6b!important;box-shadow:0 6px 14px #00000033}
.rk-v3>div:nth-child(2)>span:not(.rk-icon),.rk-v3>div:nth-child(2) small{color:#c9d8ef!important}
.rk-v3>div:nth-child(2) strong{color:#fff!important}
.rk-v3>div:nth-child(2):after{background-image:url("../images/card/corak-emas.jpg");mix-blend-mode:screen;opacity:.35}
.rk-stack{display:flex;height:7px;border-radius:999px;background:#dbe5f0;overflow:hidden;margin:6px 0 4px}
.rk-stack i{display:block;height:100%}
.rk-stack i.is-done{background:#2f8f6b}.rk-stack i.is-live{background:#0e56a8}
.rk-legend{display:flex;flex-wrap:wrap;align-items:center;gap:3px 6px}
.rk-legend b{display:inline-block;width:8px;height:8px;border-radius:50%;background:#c3d1e0;margin-left:4px}
.rk-legend b:first-child{margin-left:0}
.rk-legend b.is-done{background:#2f8f6b}.rk-legend b.is-live{background:#0e56a8}
.rk-v3 .rk-split{height:7px;background:#f1e2ad;margin:6px 0 4px}
.rk-v3 .rk-split i{background:linear-gradient(90deg,#c99a06,#e0b100)}
@media print{.rk-v3>div{background:#fff!important;box-shadow:none!important}.rk-v3>div:after,.rk-v3>div:before{display:none}.rk-v3>div:nth-child(2) strong,.rk-v3>div:nth-child(2) small,.rk-v3>div:nth-child(2)>span{color:#14283d!important}}

/* Kehadiran Mengikut Program: programme list with link to the attendance detail */
.report-attendance-programs .report-col-action{width:170px}
.report-attendance-programs .report-row-link{cursor:pointer}
.report-attendance-programs .report-row-link:hover td{background:#f5f9ff}
.report-attendance-programs .report-action-cell{text-align:right;vertical-align:middle}
.report-detail-button{display:inline-flex;align-items:center;gap:7px;font-size:13px!important;min-height:36px;padding:8px 13px!important;white-space:nowrap}
.report-detail-button .icon{width:15px;height:15px}
.report-attendance-programs td.num .report-sub{text-align:right}
@media print{.report-attendance-programs .program-list-date{display:none}}

/* ===== Laporan kehadiran program (detail) ===== */
.report-program-list .report-row-link{cursor:pointer}
.report-program-list .report-row-link:hover td{background:#f5f9ff}
.ra-head{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 26px;margin-bottom:20px;border-radius:16px;overflow:hidden;color:#fff;background:linear-gradient(135deg,#071f4d 0%,#0b2e6b 45%,#0e56a8 100%);box-shadow:0 10px 28px #0b2e6b2e}
.ra-head:after{content:"";position:absolute;right:-60px;top:-60px;width:320px;height:320px;background:url("../images/card/corak-emas.jpg") center/420px auto;mix-blend-mode:screen;opacity:.28;-webkit-mask-image:radial-gradient(circle,#000 30%,transparent 70%);mask-image:radial-gradient(circle,#000 30%,transparent 70%);pointer-events:none}
.ra-head>*{position:relative;z-index:1}
.ra-head:before{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,#f5c400,#e0a800);z-index:1}
.ra-code{display:inline-block;padding:2px 9px;border-radius:6px;background:#ffffff1f;border:1px solid #ffffff33;font-size:11.5px;font-weight:650;letter-spacing:.4px;color:#dfe8f7}
.ra-head h2{font-size:24px;line-height:1.3;margin:10px 0 12px;color:#fff}
.ra-meta{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:13.5px;color:#d3def0}
.ra-meta span{display:inline-flex;align-items:center;gap:7px}
.ra-meta .icon{width:15px;height:15px;color:#f5c400}
.ra-head .rk-status{flex-shrink:0;background:#ffffff1a;border-color:#ffffff40;color:#fff}
.ra-head .rk-status.is-ongoing i{background:#4ade80;box-shadow:0 0 0 3px #4ade8040}
.ra-days{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0 4px}
.ra-days span{display:inline-flex;align-items:baseline;gap:6px;padding:5px 10px;border-radius:9px;background:#fff;border:1px solid #d7e9df;font-size:12px;color:#4b6175;font-weight:600}
.ra-days b{font-size:18px;color:#0b2e6b}
.ra-table{padding:0!important;overflow:hidden}
.ra-table table{table-layout:fixed;width:100%}
.ra-table .ra-col-no{width:60px}.ra-table .ra-col-role{width:30%}.ra-table .ra-col-date{width:120px}.ra-table .ra-col-time{width:100px}.ra-table .ra-col-method{width:140px}
.ra-table thead th{font-size:11.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#6b7e94;background:#f7f9fc;padding:12px 16px}
.ra-table tbody td{padding:13px 16px;font-size:13.5px;vertical-align:middle;overflow-wrap:anywhere}
.ra-table tbody tr:nth-child(even) td{background:#fbfcfe}
.ra-table tbody tr:hover td{background:#f5f9ff}
.ra-name{display:block;color:#0b2e6b;font-weight:700}
.ra-time{display:inline-block;padding:3px 9px;border-radius:7px;background:#eef4fb;color:#0e56a8;font-weight:650;font-variant-numeric:tabular-nums}
@media(max-width:1100px){.ra-table table{table-layout:auto;min-width:880px}}
@media(max-width:760px){.ra-head{flex-direction:column;padding:20px}.ra-head h2{font-size:20px}}
@media print{.ra-head{background:#fff!important;color:#14283d;box-shadow:none;border:1px solid #ccd5df;padding:10px 12px}.ra-head:after,.ra-head:before{display:none}.ra-head h2,.ra-meta{color:#14283d}.ra-code{color:#14283d;border-color:#ccd5df}.ra-meta .icon{display:none}.ra-time{background:none;padding:0;color:#14283d}.ra-table tbody td{padding:5px 8px!important;font-size:10px}.ra-table thead th{padding:5px 8px;font-size:9.5px}.ra-days span{border:0;padding:0 8px 0 0}}

/* Attendance detail: long names wrap inside their column */
.ra-table td,.ra-table th{white-space:normal}
.ra-table td.report-nowrap{white-space:nowrap}
.ra-name{overflow-wrap:break-word;word-break:normal;line-height:1.4}
.rk-split-light{background:#ffffff33!important}
.rk-split-light i{background:linear-gradient(90deg,#f5c400,#ffd84d)!important}
.report-org-summary.rk-table table thead th{font-size:11.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#6b7e94;background:#f7f9fc}

/* Penglibatan Jabatan: click a division to filter the "belum menyertai" list */
.org-filter-row{cursor:pointer}
.org-filter-row:hover td{background:#f5f9ff}
.org-filter-row.is-selected td{background:#eaf2fc}
.org-filter-row.is-selected td:first-child{box-shadow:inset 4px 0 0 #0e56a8;font-weight:700;color:#0b2e6b}
.org-filter-label{font-style:normal;color:#0e56a8;margin-left:4px}
.org-filter-tools{display:flex;align-items:center;gap:8px}
.org-filter-clear{margin:0!important;min-height:30px!important;padding:4px 12px!important;font-size:12px!important;background:#fff!important;color:#0e56a8!important;border:1px solid #cfe0f7!important;border-radius:999px!important;box-shadow:none!important}

/* Larger staff photos in the Kakitangan and Cetakan Kad lists */
.staff-photo-thumbnail,.staff-directory-compact .staff-photo-thumbnail,.staff-table .staff-photo-thumbnail,.staff-card-directory .staff-photo-thumbnail{width:58px;height:72px;border-radius:10px;border:2px solid #fff;box-shadow:0 0 0 1px #d7e1ec,0 3px 8px #0b2e6b14}
.staff-photo-thumbnail .staff-photo-empty .icon{width:26px;height:26px}
.photo-column,.staff-table .photo-column,.staff-card-directory .photo-column{width:96px;min-width:96px}
.staff-table col.col-photo,.staff-card-directory col.col-photo{width:96px}
@media(max-width:760px){.staff-photo-thumbnail,.staff-directory-compact .staff-photo-thumbnail,.staff-table .staff-photo-thumbnail,.staff-card-directory .staff-photo-thumbnail{width:46px;height:58px}.photo-column{width:70px;min-width:70px}}

/* Section summary as report-style portlets (Program, Rekod Kehadiran) */
.rk-summary{margin:4px 0 24px!important}
.rk-summary.rk-count-3{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.rk-summary.rk-count-3{grid-template-columns:1fr}}

/* ===== Terminal Kehadiran (launcher) ===== */
.tl-section-title{display:flex;align-items:center;justify-content:space-between;margin:4px 0 14px}
.tl-section-title h2{display:flex;align-items:center;gap:10px;font-size:16px;margin:0;color:#0b2e6b}
.tl-section-title>span{font-size:12px;font-weight:650;color:#6b7e94;background:#fff;border:1px solid #e1e8f0;border-radius:999px;padding:3px 10px}
.tl-live-dot{width:9px;height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px #22c55e2e;animation:tlPulse 1.8s ease-in-out infinite}
@keyframes tlPulse{50%{box-shadow:0 0 0 7px #22c55e14}}
.tl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:18px;margin-bottom:24px}
.tl-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e3eaf2;border-radius:16px;overflow:hidden;text-decoration:none;color:inherit;box-shadow:0 1px 2px #0b2e6b0d,0 8px 24px #0b2e6b0f;transition:transform .18s ease,box-shadow .18s ease}
.tl-card:hover{transform:translateY(-3px);box-shadow:0 2px 4px #0b2e6b14,0 16px 34px #0b2e6b22}
.tl-card-head{position:relative;padding:18px 20px 16px;color:#fff;background:linear-gradient(135deg,#071f4d 0%,#0b2e6b 50%,#0e56a8 100%);overflow:hidden}
.tl-card-head:after{content:"";position:absolute;right:-50px;top:-50px;width:220px;height:220px;background:url("../images/card/corak-emas.jpg") center/320px auto;mix-blend-mode:screen;opacity:.3;-webkit-mask-image:radial-gradient(circle,#000 30%,transparent 70%);mask-image:radial-gradient(circle,#000 30%,transparent 70%);pointer-events:none}
.tl-card-head:before{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:linear-gradient(90deg,#f5c400,#e0a800)}
.tl-card-head>*{position:relative;z-index:1}
.tl-card-tags{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.tl-live{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;background:#ffffff1f;border:1px solid #ffffff38;font-size:11.5px;font-weight:700;letter-spacing:.3px}
.tl-live i{width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px #4ade8040}
.tl-day{padding:3px 10px;border-radius:999px;background:#f5c400;color:#0b2e6b;font-size:11.5px;font-weight:700}
.tl-card-head h3{font-size:19px;line-height:1.35;margin:12px 0 4px;color:#fff}
.tl-card-head p{margin:0;font-size:13px;color:#c9d8ef}
.tl-meta{list-style:none;margin:0;padding:16px 20px;display:flex;flex-direction:column;gap:10px;flex:1}
.tl-meta li{display:flex;align-items:center;gap:10px;font-size:14px;color:#1e3448}
.tl-meta .icon{width:30px;height:30px;padding:7px;border-radius:9px;background:#eef4fb;color:#0e56a8;flex-shrink:0}
.tl-meta small{color:#7b8ea3}
.tl-card-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;border-top:1px solid #e9eff5;background:#f8fafd}
.tl-count strong{display:block;font-size:28px;line-height:1.1;color:#0b2e6b;font-variant-numeric:tabular-nums}
.tl-count small{font-size:12px;color:#6b7e94}
.tl-open{display:inline-flex;align-items:center;gap:8px;padding:10px 16px;border-radius:10px;background:#0e56a8;color:#fff;font-size:14px;font-weight:700;box-shadow:0 6px 14px #0e56a840;transition:background .15s}
.tl-card:hover .tl-open{background:#0b2e6b}
.tl-open .icon{width:17px;height:17px}
.tl-empty{margin-bottom:24px}
.tl-upcoming .rk-table-head .text-link{font-size:13px;font-weight:650}
.tl-agenda{display:flex;flex-direction:column}
.tl-agenda-item{display:flex;align-items:center;gap:18px;padding:16px 20px;border-bottom:1px solid #edf2f7;text-decoration:none;color:inherit;transition:background .15s}
.tl-agenda-item:last-child{border-bottom:0}
.tl-agenda-item:hover{background:#f5f9ff}
.tl-date{width:58px;height:64px;flex-shrink:0;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(160deg,#0b2e6b,#0e56a8);color:#fff;box-shadow:inset 0 -3px 0 #f5c400}
.tl-date strong{font-size:22px;line-height:1}
.tl-date small{font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#f5c400;margin-top:3px}
.tl-agenda-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.tl-agenda-body>strong{font-size:15px;color:#0b2e6b}
.tl-agenda-body small{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:12.5px;color:#6b7e94}
.tl-agenda-body small .icon{width:13px;height:13px;color:#8aa0b6}
.tl-chip{flex-shrink:0;padding:5px 12px;border-radius:999px;background:#eef4fb;border:1px solid #d6e4f5;color:#0e56a8;font-size:12px;font-weight:700;white-space:nowrap}
@media(max-width:760px){.tl-grid{grid-template-columns:1fr}.tl-agenda-item{flex-wrap:wrap;gap:12px}.tl-chip{margin-left:76px}}

/* ===== Terminal Kehadiran v2: hero per programme + timeline ===== */
.tl-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:28px;padding:26px 30px;margin-bottom:16px;border-radius:18px;overflow:hidden;color:#fff;text-decoration:none;background:linear-gradient(120deg,#071f4d 0%,#0b2e6b 45%,#0e56a8 100%);box-shadow:0 12px 30px #0b2e6b33;transition:transform .18s ease,box-shadow .18s ease}
a.tl-hero:hover{transform:translateY(-2px);box-shadow:0 18px 38px #0b2e6b44}
.tl-hero:after{content:"";position:absolute;right:-80px;top:-90px;width:420px;height:420px;background:url("../images/card/corak-emas.jpg") center/460px auto;mix-blend-mode:screen;opacity:.22;-webkit-mask-image:radial-gradient(circle,#000 30%,transparent 70%);mask-image:radial-gradient(circle,#000 30%,transparent 70%);pointer-events:none}
.tl-hero:before{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:linear-gradient(90deg,#f5c400,#e0a800)}
.tl-hero>*{position:relative;z-index:1}
.tl-hero-main{min-width:0}
.tl-hero h2{font-size:26px;line-height:1.25;margin:12px 0 12px;color:#fff}
.tl-hero-meta{display:flex;flex-wrap:wrap;gap:8px 22px;font-size:14px;color:#d3def0}
.tl-hero-meta span{display:inline-flex;align-items:center;gap:7px}
.tl-hero-meta .icon{width:16px;height:16px;color:#f5c400}
.tl-hero-side{display:flex;align-items:center;gap:26px;flex-shrink:0}
.tl-hero-count{text-align:right}
.tl-hero-count strong{display:block;font-size:44px;line-height:1;font-variant-numeric:tabular-nums}
.tl-hero-count small{font-size:12.5px;color:#c9d8ef}
.tl-hero-open{display:inline-flex;align-items:center;gap:10px;padding:14px 22px;border-radius:12px;background:#f5c400;color:#0b2e6b;font-size:15px;font-weight:800;box-shadow:0 8px 18px #00000033;transition:background .15s}
a.tl-hero:hover .tl-hero-open{background:#ffd84d}
.tl-hero-open .icon{width:20px;height:20px}
.tl-hero-empty{background:linear-gradient(120deg,#33445e,#4b5d78)}
.tl-hero-empty h2{font-size:22px}
.tl-live.is-off i{background:#cbd5e1;box-shadow:none}
.tl-hero-icon{width:72px;height:72px;border-radius:18px;display:grid;place-items:center;background:#ffffff1a}
.tl-hero-icon .icon{width:34px;height:34px;color:#cbd5e1}
.tl-timeline-wrap{margin-top:28px;padding:20px 24px;background:#fff;border:1px solid #e3eaf2;border-radius:16px;box-shadow:0 1px 2px #0b2e6b0d}
.tl-timeline-wrap .tl-section-title{margin:0 0 6px}
.tl-timeline{list-style:none;margin:0;padding:0 0 0 8px;position:relative}
.tl-timeline:before{content:"";position:absolute;left:36px;top:18px;bottom:18px;width:2px;background:#e3eaf2}
.tl-timeline a{display:flex;align-items:center;gap:18px;padding:10px 10px 10px 0;border-radius:10px;text-decoration:none;color:inherit}
.tl-timeline a:hover{background:#f5f9ff}
.tl-tdate{position:relative;z-index:1;width:56px;flex-shrink:0;display:flex;flex-direction:column;align-items:center;padding:6px 0;border-radius:10px;background:#fff;border:2px solid #d6e4f5;color:#0e56a8;font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase}
.tl-tdate strong{font-size:19px;line-height:1.1;color:#0b2e6b;letter-spacing:0}
.tl-tbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tl-tbody strong{font-size:14.5px;color:#0b2e6b}
.tl-tbody small{font-size:12.5px;color:#6b7e94}
.tl-none{margin:6px 0 0}
@media(max-width:900px){.tl-hero{flex-direction:column;align-items:stretch;padding:22px}.tl-hero-side{justify-content:space-between}.tl-hero-count{text-align:left}.tl-hero h2{font-size:21px}}

/* Terminal: each active programme gets its own colour */
.tl-hero.tl-tone-1{background:linear-gradient(120deg,#063b2c 0%,#0f5c45 45%,#2f8f6b 100%);box-shadow:0 12px 30px #0f5c4533}
.tl-hero.tl-tone-2{background:linear-gradient(120deg,#2a0f4d 0%,#4c1d7a 45%,#7c3aed 100%);box-shadow:0 12px 30px #4c1d7a33}
.tl-hero.tl-tone-3{background:linear-gradient(120deg,#4a0d1c 0%,#7f1d32 45%,#b23a4e 100%);box-shadow:0 12px 30px #7f1d3233}
.tl-hero.tl-tone-1 .tl-hero-meta,.tl-hero.tl-tone-1 .tl-hero-count small{color:#d4efe3}
.tl-hero.tl-tone-2 .tl-hero-meta,.tl-hero.tl-tone-2 .tl-hero-count small{color:#e6dcf7}
.tl-hero.tl-tone-3 .tl-hero-meta,.tl-hero.tl-tone-3 .tl-hero-count small{color:#f5d9de}
.rk-summary+.tl-section-title{margin-top:0}

/* Terminal: active programmes never use blue (emerald, purple, maroon, teal) */
.tl-hero.tl-tone-0{background:linear-gradient(120deg,#063b2c 0%,#0f5c45 45%,#2f8f6b 100%);box-shadow:0 12px 30px #0f5c4533}
.tl-hero.tl-tone-1{background:linear-gradient(120deg,#2a0f4d 0%,#4c1d7a 45%,#7c3aed 100%);box-shadow:0 12px 30px #4c1d7a33}
.tl-hero.tl-tone-2{background:linear-gradient(120deg,#4a0d1c 0%,#7f1d32 45%,#b23a4e 100%);box-shadow:0 12px 30px #7f1d3233}
.tl-hero.tl-tone-3{background:linear-gradient(120deg,#083340 0%,#0f5566 45%,#0e8a8a 100%);box-shadow:0 12px 30px #0f556633}
.tl-hero.tl-tone-0 .tl-hero-meta,.tl-hero.tl-tone-0 .tl-hero-count small{color:#d4efe3}
.tl-hero.tl-tone-1 .tl-hero-meta,.tl-hero.tl-tone-1 .tl-hero-count small{color:#e6dcf7}
.tl-hero.tl-tone-2 .tl-hero-meta,.tl-hero.tl-tone-2 .tl-hero-count small{color:#f5d9de}
.tl-hero.tl-tone-3 .tl-hero-meta,.tl-hero.tl-tone-3 .tl-hero-count small{color:#d3eef0}

/* Collapsible "Tapisan Laporan" filter bar */
.report-filterbar.rf-collapsible{transition:padding .15s}
.report-filterbar.rf-collapsible .rf-title{cursor:pointer;user-select:none;margin-right:auto;flex:1 1 auto;min-width:0;padding:4px 0}
.report-filterbar.rf-collapsible .rf-title:focus-visible{outline:2px solid #0e56a8;outline-offset:4px;border-radius:6px}
.rf-summary{display:none;margin-left:10px;padding:3px 10px;border-radius:999px;background:#eef4fb;border:1px solid #d6e4f5;color:#0e56a8;font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:60%}
.rf-chevron{margin-left:auto;width:9px;height:9px;border-right:2px solid #6b7e94;border-bottom:2px solid #6b7e94;transform:rotate(45deg);transition:transform .2s;flex-shrink:0;position:relative;top:-2px}
.report-filterbar.rf-collapsible:not(.is-collapsed) .rf-chevron{transform:rotate(-135deg);top:2px}
.report-filterbar.rf-collapsible.is-collapsed .rf-field,.report-filterbar.rf-collapsible.is-collapsed .rf-reset{display:none}
.report-filterbar.rf-collapsible.is-collapsed .rf-summary{display:inline-block}
.report-filterbar.rf-collapsible.is-collapsed{padding-top:12px;padding-bottom:12px}
.report-filterbar.rf-collapsible:not(.is-collapsed) .rf-title{flex-basis:100%}
.report-kpis+.report-filterbar,.report-kpis+form.report-filterbar{margin-top:-4px}
.rf-search{flex:1 1 240px;max-width:340px}
.rf-search input{min-height:38px;height:38px;padding:6px 11px;font-size:14px;border-color:#dfe6ee;background:#f8fafc;width:100%}
.rf-wide select{min-width:180px}

/* Filter fields on one row */
.rf-fields{display:flex;flex-wrap:nowrap;align-items:flex-end;gap:12px;width:100%;min-width:0}
.rf-fields .rf-field{flex:1 1 0;min-width:0;max-width:none}
.rf-fields .rf-field.rf-small{flex:.8 1 0}
.rf-fields .rf-field.rf-wide{flex:1.4 1 0}
.rf-fields .rf-field.rf-search,.rf-fields .rf-field.rf-grow{flex:1.6 1 0;max-width:none}
.rf-fields .rf-field select,.rf-fields .rf-field input{width:100%!important;min-width:0!important}
.rf-fields .rf-reset{flex-shrink:0;margin:0 0 9px 4px;align-self:flex-end}
.report-filterbar.rf-collapsible.is-collapsed .rf-fields{display:none}
.report-filterbar.rf-collapsible:not(.is-collapsed){row-gap:14px}
@media(max-width:1100px){.rf-fields{flex-wrap:wrap}.rf-fields .rf-field{flex:1 1 calc(33% - 12px)}}
@media(max-width:640px){.rf-fields .rf-field{flex:1 1 100%}}

/* ===== Kategori / Lokasi Program modal ===== */
.option-actions{display:flex;gap:8px;justify-content:flex-start}
.option-actions .icon-action{width:38px;height:38px;min-height:38px!important;padding:0!important;margin:0!important;display:grid;place-items:center;border-radius:10px!important;background:#eef4fb!important;color:#0e56a8!important;border:1px solid #d6e4f5!important;box-shadow:none!important}
.option-actions .icon-action .icon{width:17px;height:17px}
.option-actions .icon-action:hover{background:#dfeafa!important}
.option-actions .icon-action.is-danger{background:#fdeeee!important;color:#b42318!important;border-color:#f6d0cd!important}
.option-usage{display:inline-block;padding:2px 9px;border-radius:999px;background:#f1f5f9;color:#6b7e94;font-size:12px;font-weight:650;white-space:nowrap}
.option-usage.is-used{background:#eef4fb;color:#0e56a8}
.options-table .option-usage-col{width:120px}
.option-modal{width:min(620px,94vw);max-height:92dvh;padding:0;border:0;border-radius:18px;color:var(--ink);box-shadow:0 30px 70px #0b2e6b55;overflow:auto}
.option-modal::backdrop{background:#071f4dcc;backdrop-filter:blur(2px)}
.option-modal-head{position:relative;display:flex;align-items:center;gap:14px;padding:20px 22px;color:#fff;background:linear-gradient(120deg,#071f4d,#0b2e6b 55%,#0e56a8);overflow:hidden}
.option-modal-head:after{content:"";position:absolute;right:-40px;top:-60px;width:220px;height:220px;background:url("../images/card/corak-emas.jpg") center/300px auto;mix-blend-mode:screen;opacity:.25;-webkit-mask-image:radial-gradient(circle,#000 30%,transparent 70%);mask-image:radial-gradient(circle,#000 30%,transparent 70%)}
.option-modal-head:before{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#f5c400}
.option-modal-head>*{position:relative;z-index:1}
.option-modal-head .eyebrow{color:#c9d8ef;font-size:10.5px}
.option-modal-head h2{margin:2px 0 0;font-size:19px;color:#fff}
.option-modal-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#f5c400;color:#0b2e6b;flex-shrink:0}
.option-modal-icon .icon{width:20px;height:20px}
.option-modal[data-mode=delete] .option-modal-icon{background:#fecaca;color:#991b1b}
.option-modal-close{margin-left:auto!important;width:36px;height:36px;min-height:36px!important;padding:0!important;display:grid;place-items:center;border-radius:10px!important;background:#ffffff1f!important;border:1px solid #ffffff33!important;color:#fff!important;box-shadow:none!important}
.option-pane{padding:20px 22px}
.option-pane .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.option-pane .form-field.is-wide{grid-column:1 / -1}
.option-pane input,.option-pane textarea,.option-pane select{width:100%}
.option-view{display:grid;grid-template-columns:1fr 1fr;gap:0 20px;margin:0}
.option-view>div{padding:11px 0;border-bottom:1px solid #edf2f7}
.option-view>div.is-wide{grid-column:1 / -1}
.option-view dt{font-size:11.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase;color:#8295a8;margin-bottom:4px}
.option-view dd{margin:0;font-size:14.5px;font-weight:600;color:#14283d;overflow-wrap:anywhere}
.option-modal-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid #edf2f7}
.option-modal-foot button,.option-modal-foot .button{margin:0!important}
.option-delete-box{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:12px;background:#fdeeee;border:1px solid #f6d0cd;color:#7f1d1d}
.option-delete-box .icon{width:20px;height:20px;flex-shrink:0;margin-top:2px}
.option-delete-box p{margin:0;font-size:14px;line-height:1.6}
.option-delete-box.is-blocked{background:#fff8e6;border-color:#f5e2a8;color:#7a5b00}
@media(max-width:640px){.option-pane .form-grid,.option-view{grid-template-columns:1fr}}

/* ===== Tetapan hub (single settings page) ===== */
.settings-hub{margin-top:4px}
.settings-hub-group{font-size:12px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#6b7e94;margin:22px 0 10px}
.settings-hub-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}
.settings-hub-item{position:relative;display:flex;align-items:center;gap:16px;padding:18px 20px;background:#fff;border:1px solid #e3eaf2;border-radius:14px;text-decoration:none;color:inherit;box-shadow:0 1px 2px #0b2e6b0d;transition:transform .15s,box-shadow .15s,border-color .15s;overflow:hidden}
.settings-hub-item:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#0e56a8;opacity:0;transition:opacity .15s}
.settings-hub-item:hover{transform:translateY(-2px);border-color:#cfe0f7;box-shadow:0 10px 24px #0b2e6b1a}
.settings-hub-item:hover:before{opacity:1}
.settings-hub-icon{width:46px;height:46px;flex-shrink:0;border-radius:12px;display:grid;place-items:center;background:linear-gradient(150deg,#0b2e6b,#0e56a8);color:#fff;box-shadow:inset 0 -3px 0 #f5c400}
.settings-hub-icon .icon{width:21px;height:21px}
.settings-hub-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.settings-hub-text strong{font-size:15px;color:#0b2e6b}
.settings-hub-text small{font-size:12.5px;color:#6b7e94;line-height:1.5}
.settings-hub-arrow{width:16px;height:16px;color:#9fb1c4;flex-shrink:0}
.settings-hub-item:hover .settings-hub-arrow{color:#0e56a8}
.breadcrumb a+.icon{flex-shrink:0}
.breadcrumb-back{display:inline-flex;align-items:center;gap:6px;margin-left:14px;padding:4px 12px 4px 8px;border-radius:999px;background:#eef4fb;border:1px solid #d6e4f5;color:#0e56a8!important;font-size:12.5px;font-weight:650;text-decoration:none}
.breadcrumb-back .icon{width:14px;height:14px;transform:rotate(180deg)}
.breadcrumb-back:hover{background:#dfeafa}
.settings-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px}@media(max-width:1100px){.settings-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:700px){.settings-grid-3{grid-template-columns:1fr!important}}
.settings-row{margin-top:26px}
.settings-row:first-of-type{margin-top:6px}
.settings-row-title{display:flex;align-items:center;gap:10px;margin:0 0 12px;font-size:13px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:#0b2e6b}
.settings-row-title span{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;background:#0b2e6b;color:#f5c400;font-size:12px;letter-spacing:0}
.settings-row-title:after{content:"";flex:1;height:1px;background:#e1e8f0;margin-left:6px}

/* All "Tindakan" columns centred */
th.record-actions-cell,td.record-actions-cell,.record-actions-cell{text-align:center!important}
.record-actions-cell .record-actions,.record-actions-cell .option-actions,.record-actions-cell>div,.record-actions-cell>.staff-card-actions{justify-content:center!important;margin-left:auto;margin-right:auto}
.report-attendance-programs .report-action-cell,.report-attendance-programs th:last-child{text-align:center!important}

/* Standard column widths for Organisasi, Peserta Luar and Pengguna lists */
.resource-table{table-layout:fixed;width:100%}
.resource-table th,.resource-table td{vertical-align:middle;overflow-wrap:anywhere}
.resource-table .number-column{width:70px;text-align:center}
.resource-table .record-actions-cell{width:180px}
.resource-table .col-code{width:200px;font-variant-numeric:tabular-nums}
.resource-table .col-type{width:140px}
.resource-table .col-parent_id{width:28%}
.resource-table .col-is_active{width:90px;text-align:center}
.resource-table .col-status{width:130px;text-align:center}
.resource-table .col-email{width:24%}
.resource-table .col-phone{width:150px}
.resource-table .col-position{width:18%}
.resource-table .col-agency_name{width:22%}
.resource-organizations td.col-name{font-weight:600;color:#14283d}
.resource-organizations td.col-code{color:#64748b;font-size:13px}
@media(max-width:1100px){.resource-table{table-layout:auto;min-width:960px}}

/* Every "Tindakan" column: same fixed width */
html body col.program-col-actions,html body col.report-col-action,html body col.attendance-actions-col{width:180px!important}
html body th.record-actions-cell,html body td.record-actions-cell,html body .report-attendance-programs th:last-child,html body .report-attendance-programs td.report-action-cell{width:180px!important;min-width:180px!important;max-width:180px!important;box-sizing:border-box}

/* Slightly larger top bar and breadcrumb */
@media screen{
.topbar{height:78px!important;min-height:78px!important;padding-top:10px!important;padding-bottom:10px!important}
.topbar-greeting span{font-size:13px!important}
.topbar-greeting strong{font-size:22px!important;line-height:1.25}
.topbar-greeting small{display:block!important;font-size:12px!important;margin-top:2px}
.topbar .secure-label{font-size:14px}
.topbar .account-name strong{font-size:15px}
.topbar .account-name small{font-size:12.5px}
.topbar .avatar{width:40px;height:40px;font-size:16px}
.breadcrumb{height:46px!important;font-size:14px!important}
.breadcrumb .icon{width:15px;height:15px}
}
@media screen and (max-width:760px){.topbar{height:64px!important;min-height:64px!important}.topbar-greeting strong{font-size:17px!important}.topbar-greeting small{display:none!important}.breadcrumb{font-size:12.5px!important;height:40px!important}}

/* ===== Header polish: larger top bar with pattern, breadcrumb as a card ===== */
@media screen{
.topbar{height:86px!important;min-height:86px!important;padding:12px 30px!important;background:linear-gradient(105deg,#0b2e6b 0%,#0e56a8 55%,#3d82c4 100%)!important;overflow:hidden}
.topbar:after{content:"";position:absolute;right:-60px;top:-120px;width:520px;height:340px;background:url("../images/card/corak-emas.jpg") center/420px auto;mix-blend-mode:screen;opacity:.18;-webkit-mask-image:radial-gradient(ellipse,#000 30%,transparent 70%);mask-image:radial-gradient(ellipse,#000 30%,transparent 70%);pointer-events:none;z-index:-1}
.topbar{border-bottom:3px solid #f5c400!important}
.topbar-greeting span{font-size:13.5px!important;color:#d6e3f5}
.topbar-greeting strong{font-size:24px!important;letter-spacing:-.2px}
.topbar-greeting small{font-size:12.5px!important;color:#c9d8ef}
.topbar .secure-label{font-size:14.5px;padding:7px 14px;border-radius:999px;background:#ffffff1a;border:1px solid #ffffff2e}
.topbar .account-menu>summary{padding:8px 16px 8px 8px;box-shadow:0 6px 18px #00000026}
.topbar .avatar{width:44px!important;height:44px!important;font-size:17px}
.topbar .account-name strong{font-size:15.5px}
.breadcrumb{height:auto!important;min-height:52px;margin:18px 0 6px;padding:8px 10px 8px 16px;background:#fff;border:1px solid #e3eaf2;border-radius:14px;box-shadow:0 1px 2px #0b2e6b0d;font-size:14.5px!important;gap:10px!important}
.breadcrumb>a{color:#5b7088!important;font-weight:600;text-decoration:none}
.breadcrumb>a:hover{color:#0e56a8!important}
.breadcrumb>a:first-child{display:inline-flex;align-items:center;gap:8px}
.breadcrumb>a:first-child:before{content:"";width:28px;height:28px;border-radius:8px;background:#0b2e6b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5c400' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21h-6v-6H9v6H3z'/%3E%3C/svg%3E") center/16px no-repeat}
.breadcrumb>.icon{width:14px!important;height:14px!important;color:#a3b4c6}
.breadcrumb>span:not(.today){color:#0b2e6b!important;font-weight:700}
.breadcrumb .today{display:inline-flex;align-items:center;gap:8px;margin-left:auto;padding:6px 14px;border-radius:10px;background:#f2f6fb;border:1px solid #e1e8f0;color:#41566c;font-size:13.5px;font-weight:600}
.breadcrumb .today .icon{width:15px;height:15px;color:#0e56a8}
.breadcrumb-back{font-size:13px!important;padding:6px 14px 6px 10px!important}
}
@media screen and (max-width:760px){.topbar{height:68px!important;min-height:68px!important;padding:8px 14px!important}.topbar-greeting strong{font-size:17px!important}.breadcrumb{font-size:12.5px!important;margin-top:12px;padding:6px 10px}.breadcrumb .today{display:none}}

/* Header colours matched to the sidebar (deep teal-navy + muted gold) */
@media screen{
.topbar{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none'%3E%3Cg stroke='%23D4BB7C' stroke-opacity='.10' stroke-width='.7'%3E%3Cpath d='M48 8 59.7 19.7 76.3 19.7 76.3 36.3 88 48 76.3 59.7 76.3 76.3 59.7 76.3 48 88 36.3 76.3 19.7 76.3 19.7 59.7 8 48 19.7 36.3 19.7 19.7 36.3 19.7Z'/%3E%3Cpath d='M48 24 72 48 48 72 24 48Z M31 31H65V65H31Z'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3C/g%3E%3C/svg%3E") repeat 0 0/96px 96px,linear-gradient(100deg,#0d2c4b 0%,#133e61 55%,#1b4f7a 100%)!important;border-bottom:3px solid #d4bb7c!important}
.topbar:after{display:none}
.topbar-greeting span,.topbar-greeting small{color:#c3d2e2!important}
.topbar .secure-label{background:#ffffff12;border-color:#d4bb7c55;color:#f1e6c8}
.topbar .secure-label .icon{color:#d4bb7c}
.breadcrumb>a:first-child:before{background-color:#133e61;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4bb7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21h-6v-6H9v6H3z'/%3E%3C/svg%3E")}
.breadcrumb>span:not(.today){color:#133e61!important}
.breadcrumb .today .icon{color:#133e61}
}

/* =====================================================================
   THEME: Navy Diraja + Emas (corporate JAINJ)
   Navy #0B2545 / #13315C / #1D4E89 · Gold #C9A227 · Warm white #F7F8FA
   ===================================================================== */
:root{--navy:#0B2545;--navy-dark:#081A33;--navy-mid:#13315C;--blue:#1D4E89;--gold:#C9A227;--gold-soft:#E9D9A6;--ink:#14233A;--muted:#6B7A8F;--border:#E4E8EE;--canvas:#F7F8FA;--shadow:0 1px 2px #0B254510,0 6px 18px #0B25450D}
body{background:var(--canvas)}
a{color:var(--blue)}
/* Sidebar */
.sidebar{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none'%3E%3Cg stroke='%23C9A227' stroke-opacity='.08' stroke-width='.7'%3E%3Cpath d='M48 8 59.7 19.7 76.3 19.7 76.3 36.3 88 48 76.3 59.7 76.3 76.3 59.7 76.3 48 88 36.3 76.3 19.7 76.3 19.7 59.7 8 48 19.7 36.3 19.7 19.7 36.3 19.7Z'/%3E%3Cpath d='M48 24 72 48 48 72 24 48Z M31 31H65V65H31Z'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3C/g%3E%3C/svg%3E") repeat 0 0/96px 96px local,linear-gradient(180deg,#0B2545 0%,#0A2140 55%,#081A33 100%) fixed!important}
.nav-item.active{background:linear-gradient(95deg,#1D4E89,#13315C)!important;border-color:transparent!important;box-shadow:inset 3px 0 0 var(--gold),0 4px 12px #00000033!important}
.nav-item.active .icon{color:var(--gold)!important}
.nav-item.is-current,.nav-group[open]>summary{color:#fff}
.nav-caption{color:#C9A227CC!important;letter-spacing:1.6px}
/* Top bar */
@media screen{
.topbar{background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 96 96' fill='none'%3E%3Cg stroke='%23C9A227' stroke-opacity='.09' stroke-width='.7'%3E%3Cpath d='M48 8 59.7 19.7 76.3 19.7 76.3 36.3 88 48 76.3 59.7 76.3 76.3 59.7 76.3 48 88 36.3 76.3 19.7 76.3 19.7 59.7 8 48 19.7 36.3 19.7 19.7 36.3 19.7Z'/%3E%3Cpath d='M48 24 72 48 48 72 24 48Z M31 31H65V65H31Z'/%3E%3Ccircle cx='48' cy='48' r='5'/%3E%3C/g%3E%3C/svg%3E") repeat 0 0/96px 96px,linear-gradient(100deg,#0B2545 0%,#13315C 55%,#1D4E89 100%)!important;border-bottom:3px solid var(--gold)!important}
.topbar .secure-label{border-color:#C9A22766;color:#F3E9C8}
.topbar .secure-label .icon{color:var(--gold)}
.breadcrumb>a:first-child:before{background-color:var(--navy);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V21h-6v-6H9v6H3z'/%3E%3C/svg%3E")}
.breadcrumb>span:not(.today){color:var(--navy)!important}
.breadcrumb .today .icon{color:var(--blue)}
}
/* Headings */
h1,.page-heading h1{color:var(--navy)}
.eyebrow{color:#8A7430!important;letter-spacing:2px}
/* Buttons */
button,.button{background:var(--blue);border-radius:10px}
button:hover,.button:hover{background:var(--navy-mid)}
.button.secondary,button.secondary{background:#EEF2F8!important;color:var(--blue)!important;border:1px solid #D5DFEC!important}
.button.secondary:hover,button.secondary:hover{background:#E2EAF5!important}
button.danger,.button.danger{background:#B23A48}
/* Cards, panels, tables */
.card,.panel{border-color:var(--border);box-shadow:var(--shadow)}
table thead th{color:#5E6E83}
/* Report-style portlets: unified palette */
.rk-v3>div:nth-child(1){--rk:#1D4E89;--rk-soft:#E9EFF7}
.rk-v3>div:nth-child(2){background:linear-gradient(150deg,#0B2545 0%,#13315C 55%,#1D4E89 100%)!important}
.rk-v3>div:nth-child(2) .rk-icon{background:var(--gold)!important;color:var(--navy)!important}
.rk-v3>div:nth-child(3){--rk:#2E7D5B;--rk-soft:#E7F3ED}
.rk-v3>div:nth-child(4){--rk:#C9A227;--rk-soft:#FBF4DF}
.rk-v3 strong{color:var(--navy)!important}
.rk-split i,.rk-stack i.is-live{background:var(--blue)}
/* Banners and modal headers */
.ra-head,.option-modal-head,.tl-card-head{background:linear-gradient(120deg,#0B2545 0%,#13315C 50%,#1D4E89 100%)!important}
.ra-head:before,.option-modal-head:before,.tl-card-head:before{background:var(--gold)!important}
.tl-day,.tl-hero-open{background:var(--gold)!important;color:var(--navy)!important}
.settings-hub-icon,.tl-date{background:linear-gradient(150deg,#0B2545,#1D4E89)!important;box-shadow:inset 0 -3px 0 var(--gold)!important}
.tl-date small{color:var(--gold)}
/* Pills */
.pill.live{background:#E9EFF7;color:var(--blue)}
.rk-code,.staff-list-meta .staff-list-id{background:#F1F4F8;border-color:#E1E7EF}
/* Settings row number */
.settings-row-title{color:var(--navy)}
.settings-row-title span{background:var(--navy);color:var(--gold)}
/* Focus ring */
:focus-visible{outline-color:var(--gold)}

/* Terminal "Berlangsung Hari Ini": white corporate cards with a theme-coloured accent (no clashing backgrounds) */
.tl-hero,.tl-hero.tl-tone-0,.tl-hero.tl-tone-1,.tl-hero.tl-tone-2,.tl-hero.tl-tone-3{--tone:#2E7D5B;--tone-soft:#E7F3ED;background:linear-gradient(100deg,#fff 0%,#fff 60%,var(--tone-soft) 100%)!important;color:var(--ink)!important;border:1px solid var(--border);box-shadow:var(--shadow)!important;padding-left:36px!important}
.tl-hero.tl-tone-1{--tone:#C9A227;--tone-soft:#FBF4DF}
.tl-hero.tl-tone-2{--tone:#8C3B4A;--tone-soft:#F6E9EC}
.tl-hero.tl-tone-3{--tone:#2B6F77;--tone-soft:#E5F1F2}
a.tl-hero:hover{box-shadow:0 2px 4px #0B254514,0 14px 30px #0B25451F!important;border-color:#D5DFEC}
.tl-hero:before{top:0!important;bottom:0!important;left:0!important;right:auto!important;width:6px!important;height:auto!important;background:var(--tone)!important}
.tl-hero:after{display:none!important}
.tl-hero h2{color:var(--navy)!important}
.tl-hero .tl-hero-meta,.tl-hero .tl-hero-meta span{color:#4B5D73!important}
.tl-hero .tl-hero-meta .icon{color:var(--tone)!important}
.tl-hero .tl-live{background:var(--tone-soft);border-color:transparent;color:var(--tone)}
.tl-hero .tl-live i{background:var(--tone);box-shadow:0 0 0 3px color-mix(in srgb,var(--tone) 25%,transparent)}
.tl-hero .tl-day{background:var(--navy)!important;color:var(--gold)!important}
.tl-hero .tl-hero-count strong{color:var(--navy)}
.tl-hero .tl-hero-count small{color:#6B7A8F!important}
.tl-hero .tl-hero-open{background:var(--navy)!important;color:#fff!important;box-shadow:0 6px 16px #0B254533!important}
.tl-hero .tl-hero-open .icon{color:var(--gold)}
a.tl-hero:hover .tl-hero-open{background:var(--blue)!important}
.tl-hero-empty{--tone:#94A3B8;--tone-soft:#F1F4F8}
.tl-hero-empty .tl-hero-icon{background:#F1F4F8}
.tl-hero-empty .tl-hero-icon .icon{color:#94A3B8}

/* No duplicated titles: the breadcrumb names the section, so the small label above page titles is hidden */
.page-heading>div>.eyebrow,.page-heading>.eyebrow{display:none!important}
.breadcrumb>span.crumb-section{color:#5B7088!important;font-weight:600!important}

/* Account menu: dropdown must not be clipped (logout was hidden), and a compact profile chip */
@media screen{
.topbar{overflow:visible!important;z-index:30}
.account-menu{position:relative}
.account-dropdown{z-index:60!important}
.topbar .account-menu>summary{padding:5px 12px 5px 5px!important;gap:10px;border-radius:999px;min-height:0}
.topbar .avatar{width:34px!important;height:34px!important;font-size:14px!important}
.topbar .account-name strong{font-size:13.5px!important;line-height:1.25}
.topbar .account-name small{font-size:11.5px!important}
.topbar .account-menu>summary>.icon{width:14px;height:14px}
.topbar .secure-label{font-size:13px!important;padding:6px 12px!important}
}

/* Account: avatar-only icon (name is already in the greeting); name + role shown inside the dropdown */
@media screen and (min-width:761px){
.topbar .account-menu>summary{padding:3px!important;gap:6px;background:transparent!important;box-shadow:none!important;border:0!important}
.topbar .account-menu>summary .account-name{display:none!important}
.topbar .avatar{width:40px!important;height:40px!important;box-shadow:0 0 0 2px #C9A227,0 4px 10px #00000040;border:2px solid #fff}
.topbar .account-menu>summary>.icon{color:#E9D9A6;width:14px;height:14px}
.topbar .account-menu[open]>summary .avatar{box-shadow:0 0 0 3px #C9A227,0 4px 10px #00000040}
}
.account-dropdown-head{display:flex;flex-direction:column;gap:2px;padding:10px 12px 12px;margin-bottom:6px;border-bottom:1px solid var(--border)}
.account-dropdown-head strong{font-size:14px;color:var(--navy)}
.account-dropdown-head small{font-size:12px;color:#8A7430;font-weight:600}

/* ===== Tetapan › Matriks Peranan ===== */
.role-matrix-card{padding:0;overflow:hidden;margin-top:18px}
.role-matrix-legend{display:flex;flex-wrap:wrap;gap:18px;padding:14px 20px;border-bottom:1px solid #E4E8EF;font-size:.85rem;color:#4A5568}
.role-matrix-legend span{display:inline-flex;align-items:center;gap:8px}
.role-matrix{width:100%;border-collapse:collapse;font-size:.9rem;min-width:860px}
.role-matrix th,.role-matrix td{padding:11px 14px;border-bottom:1px solid #EEF1F5;text-align:center;vertical-align:middle}
.role-matrix thead th{background:#F7F8FA;color:var(--navy,#0B2545);border-bottom:2px solid var(--gold,#C9A227)}
.role-matrix .rm-feature{text-align:left;font-weight:500;color:#1F2937;width:34%}
.role-matrix thead .rm-feature{font-weight:700;text-transform:uppercase;font-size:.75rem;letter-spacing:.06em;color:#64748B}
.role-matrix .rm-role{width:13.2%}
.role-matrix .rm-role strong{display:block;font-size:.88rem}
.role-matrix .rm-role small{display:block;font-weight:400;color:#64748B;font-size:.72rem;margin-top:2px}
.role-matrix .rm-count{display:inline-flex;align-items:center;gap:4px;margin-top:6px;padding:2px 8px;border-radius:999px;background:#E8EEF7;color:var(--blue,#1D4E89);font-size:.7rem;font-weight:600}
.role-matrix .rm-count svg{width:12px;height:12px}
.role-matrix tr.rm-group th{text-align:left;background:#FBF8EE;color:#7A6212;font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;padding:8px 14px}
.role-matrix tbody tr:not(.rm-group):hover{background:#F9FAFC}
.rm-cell{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:8px;font-style:normal;font-weight:600}
.rm-cell svg{width:15px;height:15px}
.rm-all{background:#E3F4EA;color:#1E7A46}
.rm-scope{background:#E8EEF7;color:var(--blue,#1D4E89)}
.rm-none{background:#F1F3F6;color:#A0AEC0}
.role-matrix-notes{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;margin-top:18px}
.rm-note{display:flex;gap:12px;align-items:flex-start;padding:16px}
.rm-note h3{margin:0 0 4px;font-size:.95rem;color:var(--navy,#0B2545)}
.rm-note p{margin:0;font-size:.82rem;color:#4A5568;line-height:1.45}
.rm-badge{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:var(--navy,#0B2545);color:var(--gold,#C9A227);font-weight:700;font-size:.8rem}
.rm-note.is-pending{border-style:dashed;background:#FFFBF2}
.rm-note.is-pending .rm-badge{background:#F1E6C4;color:#7A6212}
@media (min-width:1200px){.role-matrix-notes{grid-template-columns:repeat(5,minmax(0,1fr))}}
.role-matrix tbody th.rm-feature{background:transparent}

/* Profil Saya */
.profile-layout .form-main{display:flex;flex-direction:column;gap:20px}
.profile-layout .form-side{display:flex;flex-direction:column;gap:20px}
.profile-photo-card .quick-photo{display:flex;flex-direction:column;align-items:center;gap:10px;margin:6px 0 4px}
.profile-photo-card .quick-photo-hint{text-align:center;font-size:.82rem;color:#64748B}

/* ===== Profil Saya v2 ===== */
.profile-hero{position:relative;display:grid;grid-template-columns:auto 1fr auto;gap:28px;align-items:center;padding:26px 30px;border-radius:18px;color:#fff;overflow:hidden;
  background:radial-gradient(120% 140% at 100% 0%,rgba(201,162,39,.18),transparent 45%),linear-gradient(135deg,#0B2545 0%,#13315C 55%,#1D4E89 100%);
  border-bottom:4px solid var(--gold,#C9A227);box-shadow:0 14px 30px rgba(11,37,69,.18);margin-bottom:22px}
.profile-hero::after{content:"";position:absolute;right:-60px;top:-60px;width:260px;height:260px;border-radius:50%;border:1px solid rgba(201,162,39,.25);box-shadow:0 0 0 30px rgba(255,255,255,.03),0 0 0 60px rgba(255,255,255,.02);pointer-events:none}
.profile-hero-photo .quick-photo-frame{border-radius:16px;padding:4px;background:linear-gradient(160deg,#E9D48A,#C9A227)}
.profile-hero-photo .staff-photo,.profile-hero-photo .staff-photo img,.profile-hero-initials{width:118px!important;height:146px!important;border-radius:12px!important;object-fit:cover;display:block}
.profile-hero-initials{display:grid!important;place-items:center;background:#E8EEF7;color:var(--navy,#0B2545);font-size:2.4rem;font-weight:700}
.profile-hero-photo .quick-photo-preview{inset:4px;width:calc(100% - 8px);height:calc(100% - 8px)}
.profile-hero-photo .quick-photo-badge{background:var(--gold,#C9A227);color:var(--navy,#0B2545);border-color:#13315C}
.profile-hero-photo .quick-photo-remove{color:#F6C9C4!important;margin-top:4px}
.profile-hero-eyebrow{font-size:.72rem;letter-spacing:.14em;font-weight:700;color:var(--gold,#C9A227)}
.profile-hero-body h2{margin:4px 0 4px;font-size:1.65rem;color:#fff;line-height:1.2}
.profile-hero-body>p{margin:0;color:#C9D6EA;font-size:.95rem}
.profile-hero-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.ph-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 11px;border-radius:999px;font-size:.78rem;font-weight:600;background:rgba(255,255,255,.1);color:#E6ECF5;border:1px solid rgba(255,255,255,.16)}
.ph-chip svg{width:13px;height:13px}
.ph-chip i{width:7px;height:7px;border-radius:50%;background:#A0AEC0}
.ph-chip-id{font-family:ui-monospace,Menlo,monospace;letter-spacing:.04em}
.ph-chip-role{background:rgba(201,162,39,.18);border-color:rgba(201,162,39,.45);color:#F3DE9B}
.ph-chip-ok i{background:#4ADE80;box-shadow:0 0 0 3px rgba(74,222,128,.2)}
.profile-hero-hint,.profile-hero-error{display:flex;align-items:center;gap:6px;margin:12px 0 0;font-size:.78rem;color:#9FB3CF}
.profile-hero-hint svg,.profile-hero-error svg{width:14px;height:14px}
.profile-hero-error{color:#FBC4BE}
.profile-hero-meta{display:grid;gap:10px;margin:0;position:relative;z-index:1}
.profile-hero-meta div{min-width:190px;padding:11px 16px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12)}
.profile-hero-meta dt{font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;color:#9FB3CF;font-weight:700}
.profile-hero-meta dd{margin:3px 0 0;font-weight:700;font-size:1rem;color:#fff}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch;margin-bottom:22px}
.profile-card{display:flex;flex-direction:column;margin:0!important}
.profile-card .form-actions{margin-top:auto}
.profile-card-head{display:flex;gap:14px;align-items:flex-start;padding-bottom:14px;margin-bottom:16px;border-bottom:1px solid #EEF1F5}
.profile-card-head h2{margin:0;font-size:1.08rem;color:var(--navy,#0B2545)}
.profile-card-head p{margin:3px 0 0;font-size:.84rem;color:#64748B}
.profile-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.profile-tiles div{padding:11px 14px;border-radius:10px;background:#F7F8FA;border:1px solid #EEF1F5;min-width:0}
.profile-tiles div.is-wide{grid-column:1/-1}
.profile-tiles dt{font-size:.7rem;letter-spacing:.08em;text-transform:uppercase;color:#7A8699;font-weight:700}
.profile-tiles dd{margin:3px 0 0;font-weight:600;color:#1F2937;overflow-wrap:anywhere}
.profile-role-list{margin:0}
.profile-card-link{display:inline-flex;align-items:center;gap:4px;margin-top:auto;padding-top:14px;font-weight:600;font-size:.86rem;color:var(--blue,#1D4E89);text-decoration:none}
.profile-card-link svg{width:14px;height:14px}
.pw-field{position:relative}
.pw-field input{width:100%;padding-right:46px}
.pw-toggle{position:absolute!important;right:6px;top:50%;transform:translateY(-50%);width:34px!important;height:34px!important;min-height:0!important;padding:0!important;display:grid!important;place-items:center;border-radius:8px!important;background:transparent!important;border:0!important;box-shadow:none!important;color:#7A8699!important}
.pw-toggle:hover,.pw-toggle.is-on{background:#EEF2F8!important;color:var(--blue,#1D4E89)!important}
.pw-toggle svg{width:17px;height:17px}
.pw-rules{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 16px;margin:14px 0 4px;padding:12px 14px;border-radius:10px;background:#F7F8FA;border:1px dashed #DCE2EA}
.pw-rules li{display:flex;align-items:center;gap:8px;font-size:.8rem;color:#7A8699}
.pw-rules li::before{content:"";flex:none;width:14px;height:14px;border-radius:50%;border:2px solid #CBD3DE}
.pw-rules li.is-ok{color:#1E7A46;font-weight:600}
.pw-rules li.is-ok::before{border-color:#1E7A46;background:#1E7A46 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/9px no-repeat}
.profile-card.has-focus{box-shadow:0 0 0 3px rgba(201,162,39,.35)}
@media (max-width:1100px){.profile-hero{grid-template-columns:auto 1fr}.profile-hero-meta{grid-column:1/-1;grid-template-columns:repeat(2,1fr)}}
@media (max-width:860px){.profile-grid{grid-template-columns:1fr}.profile-hero{grid-template-columns:1fr;justify-items:center;text-align:center}.profile-hero-chips{justify-content:center}.profile-hero-hint{justify-content:center}}
@media (max-width:560px){.profile-tiles,.pw-rules{grid-template-columns:1fr}}
.profile-subtitle{margin:18px 0 10px;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:#7A8699;font-weight:700}
.profile-access{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.profile-access li{display:grid;grid-template-columns:1fr 110px;gap:14px;align-items:center;padding:10px 14px;border-radius:10px;background:#F7F8FA;border:1px solid #EEF1F5}
.profile-access strong{display:block;font-size:.88rem;color:#1F2937}
.profile-access small{display:block;font-size:.76rem;color:#64748B;margin-top:2px}
.pa-bar{height:7px;border-radius:999px;background:#E4E8EF;overflow:hidden}
.pa-bar i{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue,#1D4E89),var(--gold,#C9A227))}
.profile-card .profile-subtitle{font-size:.7rem!important;letter-spacing:.1em;margin:16px 0 8px}
.profile-access{gap:6px}
.profile-access li{padding:8px 12px}
.profile-access li div{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.profile-access small{margin:0;white-space:nowrap}
.profile-access li{grid-template-columns:1fr 90px}

/* ===== Pengguna (view / tambah / kemaskini) — Profil Saya layout ===== */
.hero-photo-img{width:118px;height:146px;border-radius:12px;object-fit:cover;display:block}
.profile-hero-photo{display:flex;flex-direction:column;align-items:center;gap:8px}
.profile-hero-photo>.quick-photo-frame{border-radius:16px;padding:4px;background:linear-gradient(160deg,#E9D48A,#C9A227);position:relative;display:block}
.hero-photo-pick{cursor:pointer}
.hero-photo-pick input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.hero-photo-remove{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;font-weight:600;color:#F6C9C4;cursor:pointer}
.hero-photo-remove input{accent-color:#C9A227}
.profile-card .pw-rules{margin-top:12px}
.profile-role-assign{margin-top:14px;padding-top:14px;border-top:1px dashed #E4E8EF}
.profile-card .form-role-assign .form-field{margin-bottom:10px}
.profile-card .form-note{margin-top:12px}
.form-heading-actions{display:flex;gap:10px;flex-wrap:wrap}

/* Profil Saya: view first, edit on demand */
.profile-card-head .profile-edit-btn{margin-left:auto;align-self:center;display:inline-flex;align-items:center;gap:6px;padding:8px 14px!important;font-size:.85rem!important;min-height:0!important}
.profile-card-head .profile-edit-btn svg{width:15px;height:15px}
.profile-card.is-locked .lock-hide{display:none!important}
.profile-card:not(.is-locked) .lock-show,.profile-card:not(.is-locked) .profile-edit-btn{display:none!important}
.profile-card.is-locked input{background:#F7F8FA;border-color:transparent;color:#1F2937;cursor:default;box-shadow:none}
.profile-card.is-locked .form-field label .form-required{display:none}
.profile-locked-note{display:flex;align-items:center;gap:8px;margin:14px 0 0;font-size:.82rem;color:#64748B}
.profile-locked-note svg,.profile-pw-locked svg{width:15px;height:15px;flex:none}
.profile-pw-locked{display:flex;flex-direction:column;gap:10px;padding:16px 18px;border-radius:12px;background:#F7F8FA;border:1px solid #EEF1F5}
.profile-pw-dots{font-size:1.4rem;letter-spacing:.2em;color:var(--navy,#0B2545);line-height:1}
.profile-pw-locked p{display:flex;align-items:center;gap:8px;margin:0;font-size:.84rem;color:#64748B}
.profile-card .form-actions .form-cancel{background:none;border:0;color:#475569;font-weight:600;cursor:pointer}

/* ---- Tetapan → Templat Kad ---- */
.settings-grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px}@media(max-width:1280px){.settings-grid-4{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:700px){.settings-grid-4{grid-template-columns:1fr!important}}
.ct-status{display:flex;align-items:center;gap:14px;margin:0 0 20px;padding:14px 18px;border:1px solid var(--border);border-radius:var(--radius);background:#fff;box-shadow:var(--shadow)}
.ct-status.is-custom{border-color:#9fdcc9;background:#f1fbf7}
.ct-status-icon{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e8f1fb;color:var(--blue)}.ct-status.is-custom .ct-status-icon{background:#d9f3ea;color:var(--emerald)}
.ct-status>div{flex:1;display:flex;flex-direction:column;gap:2px;min-width:0}.ct-status>div span{color:var(--muted);font-size:13px}.ct-status form{margin:0}
.ct-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:20px;align-items:start;margin-bottom:26px}
.ct-upload .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ct-drop{display:grid;place-items:center;aspect-ratio:54/85.6;width:min(100%,170px);margin:4px auto 6px;border:2px dashed #c7d6e6;border-radius:12px;background:var(--canvas);cursor:pointer;overflow:hidden;color:var(--muted);font-weight:600}
.ct-drop:hover{border-color:var(--blue);color:var(--blue)}.ct-drop img{width:100%;height:100%;object-fit:fill}.ct-drop-empty{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px}
.ct-upload .form-field:has(.ct-drop){align-items:center;text-align:center}.ct-upload .form-field:has(.ct-drop)>label:first-child{align-self:center}.ct-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.ct-upload .form-field{position:relative}.form-field:has(.ct-file:focus-visible) .ct-drop{outline:3px solid #1769bc55;outline-offset:2px}
.ct-upload-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.ct-upload-foot .field-help{margin:0}
.ct-spec ul{margin:0;padding-left:18px;display:grid;gap:9px;color:var(--ink);font-size:13.5px;line-height:1.55}.ct-spec .field-help{margin:14px 0 0}
.ct-list-title{font-size:17px;margin:0 0 14px}
.ct-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:18px}
.ct-item{margin:0;padding:0;overflow:hidden;display:flex;flex-direction:column}.ct-item.is-active{border-color:#7fd2b8;box-shadow:0 0 0 3px #119c8322,var(--shadow)}
.ct-thumbs{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:16px;background:var(--canvas);border-bottom:1px solid var(--border)}
.ct-thumb{display:block;aspect-ratio:54/85.6;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 2px 8px #183d6618}
.ct-thumb img,.ct-thumb svg{display:block;width:100%;height:100%;object-fit:fill}
.ct-item-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:8px;flex:1}
.ct-item-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.ct-item-head h3{margin:0;font-size:15px;line-height:1.35}
.ct-meta{margin:0;color:var(--muted);font-size:12.5px;line-height:1.55;flex:1}
.ct-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.ct-actions form{margin:0}
.ct-preview{margin-top:6px}
@media(max-width:980px){.ct-layout{grid-template-columns:1fr}}
@media(max-width:600px){.ct-upload .form-grid{grid-template-columns:1fr}.ct-status{flex-wrap:wrap}.ct-status>div{flex:1 1 calc(100% - 60px)}.ct-status form,.ct-status form .button{width:100%;justify-content:center}.ct-upload-foot{flex-direction:column;align-items:stretch}}
@media screen and (max-width:600px){.breadcrumb-back{font-size:0!important;gap:0!important;padding:6px!important;margin-left:auto!important;flex:none}.breadcrumb-back .icon{width:15px;height:15px}}
/* Cetakan Kad: standard column sizes at every width (fixed layout; the table scrolls inside its card on small screens) */
html body .card-printing-list .staff-card-table{table-layout:fixed}
html body .staff-card-table :is(th,td):is(.card-select-column,.number-column,.photo-column){box-sizing:border-box;text-align:center}
html body .staff-card-table :is(th,td).card-select-column{width:44px;padding-left:4px!important;padding-right:4px!important}
html body .staff-card-table :is(th,td).number-column{width:52px;padding-left:6px!important;padding-right:6px!important}
html body .staff-card-table :is(th,td).photo-column{width:80px;padding-left:8px!important;padding-right:8px!important}
html body .staff-card-table .card-select-column input[type=checkbox]{display:block;margin:0 auto;width:16px;height:16px;min-height:16px}
html body .staff-card-table th:nth-child(4){width:auto}
html body .staff-card-table th.col-org{width:24%}
html body .staff-card-table th.col-status{width:90px}
html body .staff-card-table th.col-preview{width:120px}
@media(max-width:760px){html body .card-printing-list .staff-card-table{min-width:760px}}
/* Login panel: "JAINJ" was inheriting the global navy h1 colour (invisible on the navy panel) */
html body .login-brand-copy h1{color:#E9C46A;text-shadow:0 2px 14px #00000040}
html body .login-brand-copy h1 span{color:#fff;text-shadow:none}
/* Sidebar footer: compact, centred system card */
html body .sidebar .sidebar-bottom{padding:14px 14px 16px;margin-top:12px;border-top:1px solid #ffffff10;text-align:center}
.sb-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;padding:16px 6px 13px;border-radius:12px;background:linear-gradient(180deg,#ffffff0e,#ffffff05);border:1px solid #ffffff14;overflow:hidden}
.sb-card::before{content:"";position:absolute;top:0;left:50%;width:44px;height:3px;transform:translateX(-50%);border-radius:0 0 3px 3px;background:linear-gradient(90deg,#c99a2e,#E9C46A,#c99a2e)}
.sb-status{display:inline-flex;align-items:center;gap:6px;margin-bottom:6px;padding:3px 9px 3px 7px;border-radius:999px;background:#20bb911f;border:1px solid #20bb9138;color:#9fe3cc;font-size:9.5px;font-weight:650;letter-spacing:0;white-space:nowrap}
.sb-dot{position:relative;width:6px;height:6px;border-radius:50%;background:#20bb91;flex:none}
.sb-dot::after{content:"";position:absolute;inset:-3px;border-radius:50%;border:1.5px solid #20bb91;opacity:0;animation:sb-pulse 2.4s ease-out infinite}
@keyframes sb-pulse{0%{transform:scale(.6);opacity:.8}100%{transform:scale(1.8);opacity:0}}
@media(prefers-reduced-motion:reduce){.sb-dot::after{animation:none}}
.sb-title{color:#E9C46A;font-size:13px;font-weight:750;letter-spacing:.3px}
.sb-org{color:#a9bfd2;font-size:10.5px;line-height:1.45;white-space:nowrap}
.sidebar .sb-copy{margin:10px 0 0;font-size:10.5px;color:#6f8ca6;letter-spacing:.2px;white-space:nowrap}
/* Standard action buttons: Simpan (primary), Batal (secondary), Kemaskini (edit) - same size everywhere */
html body .btn-std.btn-std{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;height:42px;min-height:42px!important;min-width:132px;padding:0 20px!important;margin:0!important;border-radius:10px!important;font-size:14px!important;font-weight:700;line-height:1;white-space:nowrap;text-decoration:none!important;cursor:pointer;transition:background .15s,border-color .15s,box-shadow .15s}
html body .btn-std.btn-std .icon{width:16px;height:16px;flex:none}
html body .btn-std.btn-save,html body .btn-std.btn-edit{background:#1F4E8C!important;color:#fff!important;border:1px solid #1F4E8C!important;box-shadow:0 2px 6px #1f4e8c2e}
html body .btn-std.btn-save:hover,html body .btn-std.btn-edit:hover{background:#173E72!important;border-color:#173E72!important}
html body .btn-std.btn-cancel{background:#EEF2F8!important;color:#1F4E8C!important;border:1px solid #D5DFEC!important;box-shadow:none}
html body .btn-std.btn-cancel:hover{background:#E2EAF5!important;border-color:#C5D3E6!important}
html body .btn-std.btn-std:focus-visible{outline:3px solid #53acff;outline-offset:2px}
html body .form-actions .btn-std,html body .option-modal-foot .btn-std{min-width:132px}
html body .program-save-actions .btn-std{order:0}
@media(max-width:600px){html body .form-actions .btn-std{width:100%}}
/* Compact breadcrumb bar */
html body .breadcrumb{min-height:38px!important;margin:14px 0 4px!important;padding:5px 8px 5px 10px!important;gap:7px!important;font-size:12.5px!important;border-radius:11px!important}
html body .breadcrumb>a:first-child{gap:7px}
html body .breadcrumb>a:first-child:before{width:22px!important;height:22px!important;border-radius:6px!important;background-size:13px 13px!important}
html body .breadcrumb>.icon,html body .breadcrumb a+.icon{width:11px!important;height:11px!important}
html body .breadcrumb .today{padding:3px 10px!important;border-radius:8px!important;font-size:12px!important;gap:6px!important}
html body .breadcrumb .today .icon{width:13px!important;height:13px!important}
html body .breadcrumb-back{font-size:12px!important;padding:3px 10px 3px 7px!important;gap:5px!important;margin-left:10px}
html body .breadcrumb-back .icon{width:13px!important;height:13px!important}
@media(max-width:600px){html body .breadcrumb{flex-wrap:wrap;row-gap:4px!important;min-height:36px!important}html body .breadcrumb>a,html body .breadcrumb>span{white-space:nowrap}html body .breadcrumb>a:first-child{font-size:0!important;gap:0}html body .breadcrumb .breadcrumb-back{margin-left:auto!important}}
@media(max-width:600px){html body .breadcrumb .breadcrumb-back{font-size:0!important;gap:0!important;padding:5px!important}}
/* Batal + Simpan: always right-aligned at the standard size (no stretching) */
html body .staff-card-form-actions,html body .staff-view-side .staff-card-form-actions{justify-content:flex-end!important}
html body .staff-card-form-actions>.btn-std,html body .staff-view-side .staff-card-form-actions>.btn-std{flex:0 0 auto!important;width:auto!important;min-width:132px}
html body .program-save-actions{justify-content:flex-end;flex-wrap:wrap}
html body .program-save-actions>small{order:-1;margin:0 auto 0 0!important;flex:1 1 220px!important}
html body .profile-card .form-actions{flex-direction:row!important;justify-content:flex-end!important;align-items:center!important}
html body .profile-card .form-actions .btn-std{width:auto!important}
@media(max-width:600px){html body .form-actions{flex-direction:row!important;justify-content:flex-end!important;align-items:center!important}html body .form-actions .btn-std{width:auto!important;flex:0 0 auto}}
/* Terminal Kehadiran: programmes whose hours have ended today (scanner closed) */
.tl-finished{display:grid;gap:12px;margin:0 0 8px}.tl-hero+.tl-finished{margin-top:14px}
.tl-done-card{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;background:#fff;border:1px solid var(--border);border-left:4px solid #94a3b8;border-radius:14px;text-decoration:none;color:inherit;box-shadow:var(--shadow);transition:box-shadow .15s,border-color .15s}
.tl-done-card:hover{border-color:#cbd5e1;box-shadow:0 6px 18px #183d661a}
.tl-done-main{display:flex;flex-direction:column;gap:4px;min-width:0}
.tl-done-main strong{color:var(--navy);font-size:15px;line-height:1.35}
.tl-done-main small{color:var(--muted);font-size:12.5px}
.tl-done-tag{display:inline-flex;align-items:center;gap:6px;align-self:flex-start;padding:3px 10px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:11.5px;font-weight:700}
.tl-done-tag .icon{width:13px;height:13px}
.tl-done-side{display:flex;align-items:center;gap:16px;flex:none}
.tl-done-count{color:var(--muted);font-size:13px}.tl-done-count strong{color:var(--navy);font-size:20px;margin-right:2px}
.tl-done-open{display:inline-flex;align-items:center;gap:7px;height:38px;padding:0 16px;border-radius:10px;background:#EEF2F8;border:1px solid #D5DFEC;color:#1F4E8C;font-size:13.5px;font-weight:700}
.tl-done-open .icon{width:15px;height:15px}
@media(max-width:700px){.tl-done-card{flex-direction:column;align-items:stretch}.tl-done-side{justify-content:space-between}}
/* Program form: Batal + Simpan under the Sasaran Peserta / Status box in the side column */
html body .program-sidebar .program-save-actions{border-top:0;margin:16px 0 0;padding-top:0;justify-content:flex-end;gap:10px}
html body .program-sidebar .program-save-actions>small{order:2!important;flex:1 1 100%!important;margin:4px 0 0!important;text-align:right}
/* Kakitangan form: Batal + Simpan below the card panel (same as the program form) */
html body .staff-side-actions{display:flex;justify-content:flex-end!important;align-items:center;gap:10px!important;margin:16px 0 0!important;padding:0!important;border:0!important}
html body .staff-view.is-editing .staff-view-side{flex-direction:column}
html body .staff-view.is-editing .staff-view-side .staff-side-actions{flex:none}
/* Program main image: click the cover to choose (same pattern as the Kakitangan photo) */
.program-cover-pick{position:relative;display:block;margin:0;border-radius:10px;cursor:pointer}
.program-cover-pick input[type=file]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.program-cover-pick .program-cover,.program-cover-pick .program-cover-placeholder{transition:filter .15s}
.program-cover-pick:hover .program-cover,.program-cover-pick:hover .program-cover-placeholder,.program-cover-pick:focus-within .program-cover,.program-cover-pick:focus-within .program-cover-placeholder{filter:brightness(.9)}
.program-cover-pick:focus-within{outline:3px solid #53acff;outline-offset:3px}
.program-cover-preview{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:10px}
html body .program-cover-pick .program-cover-badge{right:10px;bottom:10px;width:38px;height:38px}
html body .program-cover-pick .program-cover-badge .icon{width:17px;height:17px}
.program-cover-hint{display:block;margin-top:10px;text-align:center}
.field-help-oneline,.program-cover-hint{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){.field-help-oneline{white-space:normal}}
/* Same tight 12px gap between the last card and Batal/Simpan on Kemaskini Program and Kemaskini Kakitangan */
html body .program-sidebar .program-save-actions{margin-top:-6px!important}
html body .staff-side-actions{margin-top:12px!important}
/* Batal + Simpan under the side card: centred (Kemaskini Program and Kemaskini Kakitangan) */
html body .program-sidebar .program-save-actions,html body .staff-side-actions{justify-content:center!important}
html body .program-sidebar .program-save-actions>small{text-align:center!important}
html body .staff-view-side .staff-card-form-actions.staff-side-actions{justify-content:center!important}
