:root{--bg:#0a111f;--panel:#111d2e;--panel2:#17263a;--text:#ecf2fc;--muted:#8ea0ba;--border:#273750;--accent:#28bfa5;--accent2:#177e73;--shadow:0 18px 55px #02081745}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px/1.5 Inter,Segoe UI,Arial,sans-serif}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer;border:0}h1{font-size:30px;letter-spacing:-.8px;margin:3px 0}h2{font-size:17px;margin:0 0 18px}p{margin:5px 0 16px}.muted{color:var(--muted)}.smalltext{font-size:12px}.eyebrow{font-size:11px;letter-spacing:2px;color:var(--accent);font-weight:700}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:#0d1828;border-right:1px solid var(--border);padding:25px 15px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;gap:12px;align-items:center;font-size:15px;font-weight:800;letter-spacing:1px;margin:5px 12px 40px}.brand small{display:block;font-size:9px;color:var(--muted);letter-spacing:2px;margin-top:3px}.brandmark{display:grid;place-items:center;background:linear-gradient(140deg,#21c9b1,#13776e);color:white;border-radius:13px;width:43px;height:43px;font-size:24px;box-shadow:0 8px 25px #0ac5a128}.sidebar nav{display:grid;gap:7px}.sidebar nav a{padding:12px 15px;color:#9eacc3;border-radius:10px;font-weight:600}.sidebar nav a:hover,.sidebar nav a.selected{background:#17362f;color:#69ebd4}.sidebar-bottom{margin-top:auto;padding:15px;color:#647895;font-size:11px;border-top:1px solid var(--border)}.main{margin-left:245px;min-height:100vh;display:flex;flex-direction:column}header{height:72px;display:flex;justify-content:space-between;align-items:center;padding:0 32px;border-bottom:1px solid var(--border);background:var(--panel)}.crumb{color:var(--muted)}.crumb b{color:var(--text)}.header-actions{display:flex;align-items:center;gap:15px;color:var(--muted);font-size:12px}.header-actions form{margin:0}.live-dot{width:8px;height:8px;border-radius:50%;background:#3de5ad;box-shadow:0 0 12px #3de5ad}.iconbtn{background:var(--panel2);color:var(--text);border-radius:9px;padding:9px 12px}main{width:100%;max-width:1600px;margin:auto;padding:30px 34px;flex:1}footer{padding:18px 34px;border-top:1px solid var(--border);color:var(--muted);font-size:11px;display:flex;justify-content:space-between}.page-head{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.page-head p{margin:6px 0}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;border-radius:9px;padding:11px 17px;font-weight:700}.primary{background:var(--accent);color:#05251f}.primary:hover{background:#58e4cc}.secondary{background:var(--panel2);color:var(--text);border:1px solid var(--border)}.secondary:hover{border-color:var(--accent)}.small{padding:7px 10px;font-size:12px}.wide{width:100%}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat{background:var(--panel);border:1px solid var(--border);border-radius:14px;padding:22px;box-shadow:var(--shadow)}.stat span{display:block;color:var(--muted);font-size:12px}.stat strong{font-size:37px;display:block;margin:8px 0;line-height:1.1}.stat small{color:var(--accent);font-size:11px}.split{display:grid;grid-template-columns:1.35fr 1fr;gap:20px;margin-bottom:22px}.panel{background:var(--panel);border:1px solid var(--border);border-radius:15px;padding:23px;margin-bottom:22px;min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px;gap:10px}.panel-head h2{margin:0}.panel-head a{color:var(--accent)}.tag{background:#183b39;color:#66e2c9;padding:5px 10px;border-radius:7px;font-size:11px}.camera-img{width:100%;aspect-ratio:16/9;object-fit:contain;background:#050a11;border-radius:10px}.engine-item{display:flex;justify-content:space-between;gap:15px;border-bottom:1px solid var(--border);padding:15px 0}.engine-item span{color:var(--muted)}.engine-item b{text-align:right;overflow-wrap:anywhere}.info{padding:15px;background:#123d3b;color:#b0efe4;border-radius:9px;margin:20px 0;font-size:12px}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left}th{font-size:11px;text-transform:uppercase;letter-spacing:.7px;color:var(--muted);background:var(--panel2)}td,th{padding:14px 16px;border-bottom:1px solid var(--border)}td{white-space:nowrap}tr:last-child td{border-bottom:0}.pill{background:#1b3d37;color:#6be3b7;padding:5px 10px;border-radius:20px;font-size:11px;font-weight:700}.empty{text-align:center;color:var(--muted);padding:35px}.actions,.inline{display:flex;gap:8px;align-items:center}.actions{flex-wrap:wrap}label{display:block;font-size:12px;font-weight:700;color:var(--muted);margin:16px 0}input:not([type=checkbox]),select{display:block;width:100%;background:var(--bg);color:var(--text);border:1px solid var(--border);border-radius:9px;padding:12px;margin-top:7px;outline:none}input:focus,select:focus{border-color:var(--accent)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.checkline{display:flex;gap:10px;align-items:flex-start;color:var(--text);line-height:1.6}.checkline input{accent-color:var(--accent);margin-top:4px}.notice{padding:12px 15px;background:#473520;color:#ffd6a4;border-radius:9px;margin-bottom:20px}.modal-backdrop{position:fixed;inset:0;background:#020814c9;display:none;align-items:center;justify-content:center;z-index:20;padding:20px;overflow:auto}.modal-backdrop.open{display:flex}.modal{width:100%;max-width:460px;background:var(--panel);border:1px solid var(--border);border-radius:18px;padding:27px;box-shadow:var(--shadow);max-height:90vh;overflow:auto}.modal.large{max-width:960px}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.modal-head button{background:transparent;color:var(--muted);font-size:20px}.enroll-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:25px}.sample-count{margin:22px 0;font-size:18px}.toast{position:fixed;right:24px;bottom:25px;z-index:40;background:#143f39;color:#e1fff6;border:1px solid #278d7c;padding:14px 20px;border-radius:12px;box-shadow:var(--shadow)}.auth-body{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 60% 0%,#143b3b,var(--bg) 65%);padding:20px}.auth-card{width:100%;max-width:440px;background:var(--panel);padding:38px;border:1px solid var(--border);border-radius:20px;box-shadow:var(--shadow)}.auth-card .brand{margin:0 0 40px}.auth-card h1{font-size:27px}.password-field{display:flex;position:relative}.password-field input{padding-right:75px}.password-field button{position:absolute;right:9px;top:15px;background:transparent;color:var(--accent)}.tv-hero{background:linear-gradient(115deg,#116657,#12324a);padding:30px;border-radius:16px;margin-bottom:22px}.tv-hero h2{font-size:28px;margin-bottom:5px}.tv-hero p{color:#baf6e9}.mobile-menu{display:none}.light{--bg:#f3f7fa;--panel:#fff;--panel2:#edf3f6;--text:#16243a;--muted:#63738b;--border:#dce5ed;--shadow:0 15px 40px #0e2b4610}.light .sidebar{background:#fff}.light .sidebar nav a{color:#52677b}.light .sidebar nav a.selected,.light .sidebar nav a:hover{color:#08695a;background:#e4f7f1}.light .tag,.light .pill{background:#e2f7f0;color:#12745d}.light .info{background:#e3f7f2;color:#126653}@media(max-width:1100px){.stats{grid-template-columns:repeat(2,1fr)}.split{grid-template-columns:1fr}}@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:.2s}.show-nav .sidebar{transform:translateX(0)}.main{margin-left:0}.mobile-menu{display:inline-block;background:transparent;color:var(--text);font-size:21px;margin-right:12px}header{padding:0 18px}.header-actions{gap:8px}main{padding:24px 15px}.page-head{align-items:flex-start;flex-direction:column}.stats{grid-template-columns:1fr 1fr;gap:10px}.stat{padding:16px}.stat strong{font-size:29px}.enroll-grid,.form-grid{grid-template-columns:1fr}.header-actions #cameraState{display:none}footer{padding:15px}}

/* Africontech premium UI refresh */
:root{--bg:#09111e;--panel:#111e2e;--panel2:#1a2a3e;--border:#293a50;--accent:#37d5b4}
body{background:radial-gradient(circle at 85% 5%,#133b4144,transparent 32%),var(--bg)}
.sidebar{box-shadow:12px 0 45px #02081418}.sidebar nav a{transition:background .18s,transform .18s}.sidebar nav a:hover{transform:translateX(3px)}
.panel,.stat{box-shadow:0 12px 35px #00000018;transition:border-color .2s}.panel:hover,.stat:hover{border-color:#3a5269}
.page-head h1,.dashboard-banner h1{font-weight:800;letter-spacing:-1.2px}.stat{position:relative;overflow:hidden}.stat:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--accent)}
.dashboard-banner{display:flex;justify-content:space-between;align-items:center;gap:25px;background:linear-gradient(115deg,#153d43,#142a42 55%,#102138);border:1px solid #2b6a66;border-radius:22px;padding:34px 38px;margin-bottom:24px;overflow:hidden}
.dashboard-banner h1{font-size:clamp(26px,3vw,38px);margin:10px 0}.dashboard-banner p{max-width:600px;color:#b3d1d5}.dashboard-quick{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}.dashboard-banner-mark{font-size:120px;line-height:1;font-weight:900;color:#46ddbb24;position:relative}.dashboard-banner-mark span{position:absolute;bottom:4px;right:0;color:#70f0d6;font-size:12px;letter-spacing:3px}
.tv-live-layout{display:grid;grid-template-columns:430px minmax(0,1fr);gap:20px;align-items:start}.tv-live-layout[hidden]{display:none!important}.tv-camera-panel{display:flex;flex-direction:column;align-items:center}.tv-camera-panel .panel-head{align-self:stretch}.tv-camera-square{width:400px;height:400px;max-width:100%;border:1px solid #3b716d;background:#050b13;border-radius:16px;overflow:hidden;display:flex;align-items:center;justify-content:center}.tv-camera-square img{width:100%;height:100%;object-fit:contain}.tv-employee-panel{min-height:470px}.tv-avatar{width:92px;height:92px;display:grid;place-items:center;border-radius:22px;background:linear-gradient(145deg,#20a98f,#164963);font-size:34px;font-weight:800;color:white;margin:30px 0 20px}.tv-employee-panel h2{font-size:28px}.tv-event-badge{display:inline-flex;background:#164b3c;border:1px solid #2d9675;border-radius:12px;color:#9bffe1;padding:12px 16px;font-weight:800;margin-top:16px}.tv-hero{border:1px solid #26746a;box-shadow:0 20px 50px #06131e25}.tv-hero h2{margin:12px 0 0}
.schedule-grid{display:grid;grid-template-columns:1fr 1fr;gap:15px}.schedule-field{border:1px solid var(--border);border-radius:13px;padding:12px;background:var(--panel2)}.schedule-field label{margin:0 0 9px}.time-12{display:flex;align-items:center;gap:7px}.time-12 select{margin:0;min-width:0;padding:10px 5px;text-align:center}.time-12 .hour,.time-12 .minute{flex:1}.time-12 .ampm{flex:1.2}
.light .dashboard-banner{background:linear-gradient(115deg,#e2faf3,#e7f0ff);border-color:#a2d7c9}.light .dashboard-banner p{color:#45687a}.light .dashboard-banner-mark{color:#0b987c20}.light .tv-event-badge{background:#d8f7ea;color:#116b4e}
@media(max-width:1150px){.tv-live-layout{grid-template-columns:1fr}.tv-camera-panel{align-items:flex-start}}@media(max-width:700px){.dashboard-banner{padding:25px}.dashboard-banner-mark{display:none}.schedule-grid{grid-template-columns:1fr}.tv-camera-square{width:min(400px,100%);height:auto;aspect-ratio:1}}

/* Compact scheduling and square live preview */
.schedule-field input[type=time]{width:100%;max-width:260px;min-height:46px;font:inherit;border:1px solid var(--border);border-radius:10px;padding:9px 12px;background:var(--panel2);color:var(--text)}
.tv-camera-square{width:400px;height:400px;max-width:100%;aspect-ratio:1}

/* White-only workspace and collapsible navigation */
:root{--bg:#f5f8fc;--panel:#fff;--panel2:#eff4f9;--text:#15273d;--muted:#64758b;--border:#dde7ef;--accent:#138e79;--accent2:#0b6d5d;--shadow:0 10px 32px #16365c0c}
body,.auth-body{background:var(--bg);color:var(--text)}.sidebar{background:#fff;box-shadow:5px 0 24px #1836500a}.sidebar nav a{color:#52677b}.sidebar nav a.selected,.sidebar nav a:hover{background:#e5f5f0;color:#08705e}.panel,.stat{box-shadow:var(--shadow)}.panel:hover,.stat:hover{border-color:#a9c8d3}.tag,.pill{background:#e1f5ee;color:#08755e}.info{background:#e9f7f2;color:#155c50}.notice{background:#fff3dc;color:#795418}.toast{background:#fff;color:#173f35}.primary{color:#fff}.primary:hover{background:#087b69}.tv-employee-panel{min-height:440px}.tv-event-badge{background:#e1f7ed;color:#0d7050}.tv-hero{display:none}.auth-body{background:var(--bg)}.brandmark img{width:100%;height:100%;object-fit:contain}.brand-label{min-width:0;overflow:hidden;text-overflow:ellipsis}.brand{margin-bottom:22px}.sidebar-toggle{background:#f0f5f8;color:#33485e;border:1px solid var(--border);border-radius:10px;padding:10px;margin:0 8px 16px;text-align:left}.sidebar-collapsed .sidebar{width:76px;padding-left:9px;padding-right:9px}.sidebar-collapsed .main{margin-left:76px}.sidebar-collapsed .brand{margin:4px 7px 20px}.sidebar-collapsed .brand-label,.sidebar-collapsed .sidebar-bottom,.sidebar-collapsed .nav-label{display:none}.sidebar-collapsed .sidebar nav a{font-size:0;text-align:center;padding:14px 4px}.sidebar-collapsed .sidebar nav a::first-letter{font-size:19px}.sidebar-collapsed .sidebar-toggle{font-size:20px;text-align:center}.stat-icon{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#e4f5f0;color:#0b8b75;font-size:20px;margin-right:9px;vertical-align:middle}.stat-label{display:flex!important;align-items:center}.tv-live-layout[hidden]{display:none!important}.schedule-field{background:#f8fbfd}.schedule-field input[type=time]{background:#fff;color:var(--text)}
@media(max-width:760px){.sidebar-collapsed .main{margin-left:0}.sidebar-collapsed .sidebar{transform:translateX(-100%)}.show-nav .sidebar{transform:translateX(0);width:245px}.show-nav .brand-label,.show-nav .sidebar-bottom,.show-nav .nav-label{display:block}.show-nav .sidebar nav a{font-size:14px;text-align:left}}

.sidebar nav a{display:flex;align-items:center;gap:10px}.nav-icon{font-size:19px;min-width:22px;text-align:center}.sidebar-collapsed .sidebar nav a{font-size:14px;justify-content:center}.sidebar-collapsed .sidebar nav a .nav-label{display:none}.sidebar-collapsed .sidebar nav a::first-letter{font-size:inherit}

/* October 2026 UI refinements: isolated layouts prevent Settings conflicts */
.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:start}.settings-grid>.panel{margin:0;padding:28px}.settings-panel .panel-head{margin-bottom:24px}.settings-panel .panel-head h2{font-size:19px}.settings-panel form{display:flex;flex-direction:column;gap:16px}.settings-panel label{margin:0;color:#40536b;font-size:13px}.settings-panel input:not([type=checkbox]),.settings-panel select{background:#fff;margin-top:8px;min-height:46px}.settings-panel .primary{align-self:flex-start;margin-top:2px}.settings-panel .field-stack{display:grid;gap:17px}.settings-panel .field-stack label{display:block}.settings-panel .schedule-grid{gap:12px}.settings-panel .schedule-field{padding:14px;background:#f7fafc}.settings-panel .schedule-field input[type=time]{width:100%;max-width:none}.settings-panel .checkline{display:flex;gap:10px;align-items:center}.settings-panel .checkline input{margin:0}.settings-panel .info{line-height:1.65}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}.metric-card{border:1px solid #dce7ee;background:#fff;border-radius:18px;padding:24px;box-shadow:0 10px 28px #123e5710;min-width:0;display:flex;flex-direction:column;gap:12px}.metric-top{display:flex;align-items:center;gap:13px}.metric-icon{width:48px;height:48px;flex:0 0 48px;border-radius:14px;display:grid;place-items:center;background:#e6f7f1;color:#087f6e}.metric-icon svg{width:25px;height:25px;display:block}.metric-title{font-weight:650;color:#465c70;font-size:13px}.metric-card strong{font-size:38px;line-height:1.1;letter-spacing:-1px;color:#11283d}.metric-foot{font-size:12px;color:#087f6e;font-weight:600}.profile-layout{display:grid;grid-template-columns:340px minmax(0,1fr);gap:22px}.profile-card{text-align:center}.profile-card h2{font-size:23px;margin:18px 0 12px}.portrait-frame{aspect-ratio:4/5;width:100%;background:#edf4f7;border-radius:16px;overflow:hidden;display:grid;place-items:center}.portrait-frame img{width:100%;height:100%;object-fit:cover}.portrait-empty{color:#708295}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.detail-grid>div{background:#f5f9fb;border:1px solid #e3ecf1;border-radius:12px;padding:16px}.detail-grid span{display:block;color:#64758b;font-size:12px}.detail-grid strong{display:block;margin-top:7px;font-size:15px;overflow-wrap:anywhere}.profile-subhead{margin-top:28px}.crop-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr);gap:24px}.crop-preview{background:#edf3f6;border-radius:12px;display:grid;place-items:center;min-height:300px;padding:12px}.crop-preview canvas{max-width:100%;height:auto;border-radius:8px}.crop-controls{display:grid;align-content:start;gap:10px}.crop-controls label{margin:0}.crop-controls input[type=range]{width:100%;margin-top:8px;accent-color:#138e79}.crop-controls button{margin-top:8px}@media(max-width:1150px){.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:850px){.settings-grid,.profile-layout,.crop-layout{grid-template-columns:1fr}}@media(max-width:560px){.metrics-grid,.detail-grid{grid-template-columns:1fr}}
/* Reports, assignments and authentication refresh */
.report-builder{max-width:1050px}.report-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:15px 0 20px}.report-option{display:flex!important;align-items:center;gap:14px;padding:20px;border:1px solid #dbe8ee;border-radius:15px;background:#f8fbfc;cursor:pointer}.report-option input{width:20px;height:20px;accent-color:#128e79;flex-shrink:0}.report-option span{display:grid;gap:4px}.report-option strong{font-size:15px}.report-option small{color:#65778b}.report-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px;align-items:center}.report-actions .secondary{padding:10px 18px;border:1px solid #dce8ed;border-radius:9px}.report-preview{margin-top:20px}.report-preview iframe{width:100%;height:680px;border:1px solid #dce7ed;border-radius:12px;background:#fff}.report-preview iframe[hidden]{display:none}.report-actions button:disabled{opacity:.45;cursor:not-allowed}.assignment-modal{width:min(860px,95vw);max-height:90vh;overflow:auto}.assignment-modal h3{margin:16px 0 12px}.assignment-modal #assignmentFields{margin-top:18px;border-top:1px solid #e1eaf0;padding-top:16px}.assignment-modal #assignmentFields[hidden]{display:none}.stop-row{display:grid;grid-template-columns:minmax(160px,2fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:10px;align-items:end;padding:12px;margin-bottom:10px;background:#f6fafb;border:1px solid #dfeaf0;border-radius:12px}.stop-row button{margin-bottom:3px}
.auth-body{min-height:100vh;background:#f1f6f8;display:grid;place-items:center;padding:28px}.auth-shell{width:min(1090px,100%);min-height:630px;display:grid;grid-template-columns:1.05fr 1fr;background:#fff;border:1px solid #e1e9ef;border-radius:25px;overflow:hidden;box-shadow:0 25px 80px #24455a1a}.auth-story{background:linear-gradient(145deg,#075c58,#0e8b7a 62%,#0b655f);color:white;padding:42px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-story:after{content:'';position:absolute;width:400px;height:400px;border:1px solid #ffffff22;border-radius:50%;right:-240px;top:120px;box-shadow:0 0 0 65px #ffffff0b,0 0 0 130px #ffffff08;pointer-events:none}.auth-story-top{display:flex;align-items:center;gap:13px;font-size:11px;letter-spacing:1.8px;font-weight:750;position:relative;z-index:1}.auth-symbol,.auth-login-mark{display:grid;place-items:center;width:43px;height:43px;background:#fff;color:#087e6e;border-radius:13px;font-size:24px;font-weight:900}.auth-story-main{position:relative;z-index:1}.auth-kicker{font-size:11px;letter-spacing:2px;color:#b1f4df;font-weight:750}.auth-story h2{font-size:clamp(34px,3.5vw,49px);line-height:1.14;letter-spacing:-1.8px;margin:18px 0}.auth-story-main>p{color:#d6f4ee;font-size:15px;max-width:380px;line-height:1.75}.auth-feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:33px}.auth-feature-grid>div{background:#ffffff15;border:1px solid #ffffff29;border-radius:14px;padding:16px;display:grid;gap:5px}.auth-feature-icon{font-size:22px}.auth-feature-grid strong{font-size:13px}.auth-feature-grid small{color:#d3f1e9;font-size:11px}.auth-story-bottom{font-size:10px;letter-spacing:2px;color:#d3f1e9;position:relative;z-index:1}.auth-login{display:grid;place-items:center;padding:55px 52px}.auth-login-inner{width:min(390px,100%)}.auth-login-mark{background:#e5f6f1;margin-bottom:32px}.auth-overline{font-size:11px;color:#138e79;letter-spacing:1.6px;font-weight:800}.auth-login h1{font-size:34px;margin:12px 0 9px}.auth-login .muted{line-height:1.65;margin-bottom:29px}.auth-login label{display:block;font-size:13px;font-weight:700;color:#3a5266;margin-bottom:18px}.auth-login input{display:block;width:100%;height:49px;background:#f8fbfd;border:1px solid #dce6ee;border-radius:11px;padding:12px 14px;margin-top:9px;color:#162b3e}.auth-login input:focus{outline:2px solid #94dbca;border-color:#138e79}.auth-login .password-field{position:relative}.auth-login .password-field input{padding-right:72px}.auth-login .password-field button{position:absolute;right:9px;top:16px;background:transparent;color:#087e6d;font-size:12px;font-weight:750}.auth-submit{height:50px;margin-top:10px;border-radius:11px}.auth-help{text-align:center;font-size:11px;color:#7b8b9b;margin-top:24px}@media(max-width:760px){.auth-shell{grid-template-columns:1fr}.auth-story{padding:24px}.auth-story-main,.auth-story-bottom{display:none}.auth-login{padding:34px 24px}.report-options{grid-template-columns:1fr}.stop-row{grid-template-columns:1fr 1fr}.stop-row label:first-child{grid-column:1/-1}}@media(max-width:460px){.stop-row{grid-template-columns:1fr}}

/* 2026-10-16: Leave/Assignment dialog — size the actual modal, not its children. */
#leaveModal.modal-backdrop {
  position: fixed; inset: 0;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px; overflow-y: auto; overflow-x: hidden;
}
#leaveModal.modal-backdrop.open { display: flex; }
#leaveModal > .modal.assignment-modal {
  box-sizing: border-box;
  flex: 0 1 1100px;
  width: min(1100px, calc(100vw - 48px)) !important;
  max-width: min(1100px, calc(100vw - 48px)) !important;
  min-width: 0;
  max-height: calc(100dvh - 48px);
  overflow-y: auto; overflow-x: hidden;
  padding: 30px 36px;
}
#leaveModal #leaveForm,
#leaveModal #leaveForm > *,
#leaveModal .form-grid { min-width: 0; max-width: 100%; }
#leaveModal .form-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px; row-gap: 4px;
}
#leaveModal .form-grid > label { min-width: 0; }
#leaveModal .stop-row {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  min-width: 0;
}
@media (max-width: 700px) {
  #leaveModal.modal-backdrop { padding: 12px; }
  #leaveModal > .modal.assignment-modal {
    flex-basis: auto;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    max-height: calc(100dvh - 24px);
    padding: 22px 18px;
  }
  #leaveModal .form-grid { grid-template-columns: 1fr; }
  #leaveModal .stop-row { grid-template-columns: 1fr; }
}

/* Assignment destinations inherit the record dates; no per-stop date fields. */
#leaveModal .stop-row {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:14px;}
#leaveModal .stop-row label {min-width:0;margin:0;}
#leaveModal .stop-row button {white-space:nowrap;}
/* In-app confirmation instead of browser-owned 127.0.0.1 dialog */
.app-confirm-overlay{position:fixed;inset:0;z-index:9999;background:#14233799;display:grid;place-items:center;padding:20px;backdrop-filter:blur(3px)}
.app-confirm-box{width:min(440px,100%);background:#fff;color:#14243b;border:1px solid #dae6ec;border-radius:18px;box-shadow:0 25px 90px #122c3b33;padding:28px;}
.app-confirm-box h2{font-size:20px;margin:0 0 10px}.app-confirm-box p{color:#63738b;line-height:1.6;margin:0 0 24px}.app-confirm-actions{display:flex;justify-content:flex-end;gap:12px}.app-confirm-actions button{min-width:100px}
@media(max-width:600px){#leaveModal .stop-row{grid-template-columns:minmax(0,1fr) auto}}

/* ZKTeco attendance redesign — inspired by the supplied white/purple sample */
:root{--bg:#f3f5fa;--panel:#fff;--panel2:#f4f6fb;--text:#20273a;--muted:#7c8599;--border:#e3e7f0;--accent:#6069f7;--accent2:#4e56dd;--shadow:0 8px 26px #222c5a0b}
body{background:var(--bg);color:var(--text);font-family:Inter,'Segoe UI',Arial,sans-serif}
.sidebar{width:258px;background:#fff;padding:0 14px 22px;box-shadow:2px 0 22px #222c4b0b;border-color:#e7eaf2}.brand{margin:0 -14px 26px;padding:21px 20px;min-height:94px;background:linear-gradient(125deg,#626df6,#545cf0);color:white;font-size:15px;letter-spacing:0;gap:12px}.brand small{color:#e3e5ff;letter-spacing:1px}.brandmark{background:#ffffff28;box-shadow:none;flex-shrink:0}.brandmark img{object-fit:contain}.sidebar-caption{font-size:10px;color:#9aa2b3;letter-spacing:1.6px;font-weight:800;padding:0 15px;margin:8px 0 12px}.sidebar-caption.nested{margin:18px 0 8px}.sidebar nav{gap:4px}.sidebar nav a{display:flex;align-items:center;gap:12px;color:#5b6377;padding:12px 14px;border-radius:9px;font-weight:650}.sidebar nav a:hover,.sidebar nav a.selected{background:#eef0ff;color:#565fe6;transform:none}.nav-icon{display:inline-flex;width:22px;min-width:22px;align-items:center;justify-content:center}.nav-icon svg{width:19px;height:19px}.sidebar-bottom{font-size:11px;color:#8b93a5}.main{margin-left:258px}header{background:#fff;height:78px;padding:0 28px;border-color:#e8ebf2}.header-left{display:flex;align-items:center;gap:16px}.crumb{color:#8c93a5}.crumb b{color:#273147}.header-actions{color:#69768d}.device-indicator{display:flex;align-items:center;gap:9px}.live-dot{background:#37bd8c;box-shadow:none}.bell{position:relative;color:#556076;display:grid;place-items:center;padding:8px}.bell i{position:absolute;right:6px;top:5px;background:#686ff8;width:6px;height:6px;border-radius:50%}.iconbtn{background:transparent;color:#5a6480;padding:8px;display:grid;place-items:center}.iconbtn svg{width:23px;height:23px}.mobile-menu{display:none}main{max-width:1650px;padding:30px}.page-head{margin-bottom:25px}.eyebrow{color:#6269ec;letter-spacing:1.8px}.page-head h1{font-size:29px;letter-spacing:-.7px}.primary{background:#6169f5;color:#fff;box-shadow:0 4px 10px #646cf51c}.primary:hover{background:#4c54d9}.secondary{background:#fff;color:#596178;border:1px solid #e1e5ee}.secondary:hover{border-color:#858cf7;color:#5059d7}.panel{border-radius:12px;background:#fff;box-shadow:var(--shadow);padding:25px}.panel:hover{border-color:var(--border)}.panel-head h2{font-size:18px}.panel-head a{color:#5a63e9}.tag,.pill{background:#edf0ff;color:#575fe0;border-radius:6px}.info{background:#eef0ff;color:#4b5687;border-radius:9px}.metrics-grid{gap:18px}.sample-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.sample-metrics .metric-card{border:0;border-radius:9px;padding:23px 24px;min-height:165px;box-shadow:0 7px 20px #1b22571a;color:white;display:flex;flex-direction:column;justify-content:space-between;gap:9px}.sample-metrics .metric-card.blue{background:#606af6}.sample-metrics .metric-card.orange{background:#ffac17}.sample-metrics .metric-card.purple{background:#693bb7}.sample-metrics .metric-card.red{background:#f32636}.sample-metrics .metric-card.green{background:#19a782}.sample-metrics .metric-card .metric-title{font-size:12px;font-weight:750;color:#fff;letter-spacing:.4px}.sample-metrics .metric-card .metric-top{justify-content:space-between;align-items:center}.sample-metrics .metric-card .metric-top svg{width:27px;height:27px;opacity:.9}.sample-metrics .metric-card strong{font-size:43px;color:white;margin:0}.sample-metrics .metric-card a{align-self:flex-start;color:#303b77;background:#fff;padding:5px 15px;font-size:11px;font-weight:800;border-radius:4px}.split{grid-template-columns:1.1fr 1fr}.device-illustration{display:flex;gap:17px;align-items:center;background:#f6f7fe;border:1px solid #eceeff;padding:20px;border-radius:11px;margin-bottom:18px}.device-illustration>span{background:#e6e8ff;color:#6069ef;padding:16px;border-radius:12px}.device-illustration svg{width:32px;height:32px}.device-illustration strong{font-size:17px}.device-illustration p{font-size:12px;color:#78819a;margin:5px 0}.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-grid a{display:grid;gap:5px;background:#f7f8fe;border:1px solid #e9ecf7;border-radius:10px;padding:18px}.quick-grid a:hover{border-color:#9ca2ff}.quick-grid svg{color:#5d66ee}.quick-grid strong{font-size:13px}.quick-grid small{font-size:11px;color:#8a92a5}table th{background:#f6f7fb;color:#7a8397;font-size:11px}table td{border-color:#edf0f5}table td,table th{padding:13px 16px}.table-scroll{border-radius:8px;border:1px solid #edf0f5}.modal-backdrop{background:#131b3a91;backdrop-filter:blur(2px)}.modal{background:#fff;border-color:#e4e8f0;box-shadow:0 28px 90px #121e413d;color:#253047}.modal.wide-form{max-width:760px}.modal-head h2{font-size:20px}.modal-head button{color:#8991a1}.modal label{color:#52617b}input:not([type=checkbox]),select{background:#f8f9fc;color:#2a354b;border-color:#e1e6f1;min-width:0}input:focus,select:focus{border-color:#6b74f4}.filter-bar{display:flex;align-items:end;gap:12px;margin-bottom:24px}.filter-bar label{margin:0;min-width:240px}.filter-bar button{height:43px}.settings-panel .primary{align-self:flex-start}.settings-panel .info{line-height:1.65}.report-option input{accent-color:#6169f5}.event-highlight{padding:20px;border-radius:10px;background:#f5f7ff;color:#39476b;font-weight:700}.sidebar-collapsed .sidebar{width:78px}.sidebar-collapsed .main{margin-left:78px}.sidebar-collapsed .brand{padding:20px 10px;justify-content:center;margin:0 -9px 22px}.sidebar-collapsed .sidebar-caption,.sidebar-collapsed .brand-label,.sidebar-collapsed .sidebar-bottom,.sidebar-collapsed .nav-label{display:none}.sidebar-collapsed .sidebar nav a{display:flex;justify-content:center;padding:13px}.sidebar-collapsed .sidebar nav a svg{width:21px;height:21px}.sidebar-collapsed .sidebar nav a::first-letter{font-size:inherit}.sidebar-collapsed .sidebar nav a{font-size:inherit}.auth-story{background:linear-gradient(140deg,#626cf6,#473cbd)}.auth-feature-grid>div{border-color:#ffffff29}.auth-login-mark{background:#eef0ff;color:#5d66ec}.auth-overline{color:#5d66e9}.auth-login .password-field button{color:#5962ed}.report-option{background:#f8f9ff}.report-preview iframe{border-color:#e2e6f0}footer{color:#8c94a5}
@media(max-width:1200px){.sample-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:1fr}}@media(max-width:760px){.sidebar{transform:translateX(-100%)}.main,.sidebar-collapsed .main{margin-left:0}.mobile-menu{display:grid}.header-actions .device-indicator{display:none}main{padding:22px 14px}.show-nav .sidebar{transform:translateX(0)}.show-nav .sidebar nav a{justify-content:flex-start}.show-nav .sidebar .nav-label{display:block}.show-nav .sidebar .brand-label{display:block}.show-nav .sidebar .sidebar-caption{display:block}.show-nav .sidebar .brand{justify-content:flex-start}.sample-metrics{grid-template-columns:1fr 1fr}.filter-bar{flex-wrap:wrap}.filter-bar label{min-width:0;flex:1}.form-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:1fr}}@media(max-width:480px){.sample-metrics{grid-template-columns:1fr}.quick-grid{grid-template-columns:1fr}}

/* Analytics dashboard, audit log, RBAC and live notification UI */
.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 24px}.dashboard-welcome h1{font-size:29px;letter-spacing:-.8px;margin:0 0 7px;color:#222c45}.dashboard-welcome p{color:#8590a5;font-size:13px;margin:0}.dashboard-date{display:flex;align-items:center;gap:8px;color:#8a93a7;font-size:12px}.dashboard-date svg{width:17px;height:17px}.analytics-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,1fr);gap:20px;margin-top:22px}.analytics-panel{min-height:340px;overflow:hidden}.analytics-panel .panel-head{align-items:flex-start;margin-bottom:20px}.analytics-panel .panel-head p{margin:5px 0 0;font-size:12px}.chart-legend{display:flex;gap:16px;font-size:11px;color:#8490a7}.chart-legend span{display:flex;align-items:center;gap:7px}.chart-legend i,.donut-legend i{display:inline-block;width:10px;height:10px;border-radius:3px;flex-shrink:0}.legend-entry{background:#626af3}.legend-exit{background:#ffad19}.legend-away{background:#e9ecf5}.canvas-wrap{width:100%;height:280px}.canvas-wrap canvas{display:block;width:100%;height:280px}.donut-layout{display:flex;align-items:center;justify-content:center;gap:25px;min-height:238px}.donut-graphic{width:194px;height:194px;border-radius:50%;position:relative;display:grid;place-items:center;flex-shrink:0}.donut-graphic:after{content:'';position:absolute;inset:27px;background:#fff;border-radius:50%}.donut-graphic>div{position:relative;z-index:1;text-align:center;display:grid;gap:2px}.donut-graphic b{font-size:31px;color:#2c3650}.donut-graphic small{font-size:11px;color:#929aae}.donut-legend{min-width:110px;display:grid;gap:16px}.donut-legend>div{display:grid;grid-template-columns:10px 1fr auto;align-items:center;gap:9px;font-size:12px;color:#7e889d}.donut-legend strong{color:#29344e}.bars-chart{display:grid;align-content:start;gap:18px;min-height:200px}.bar-caption{display:flex;justify-content:space-between;gap:15px;margin-bottom:8px;font-size:12px;color:#62718b}.bar-caption strong{color:#2d3852}.bar-track{height:9px;background:#eef0f7;border-radius:9px;overflow:hidden}.bar-fill{height:100%;border-radius:9px;transition:width .5s}.empty-chart{padding:45px 10px;text-align:center}.chart-icon{color:#646df3;background:#f0f1ff;border-radius:10px;padding:9px;display:grid}.chart-icon svg{width:20px;height:20px}.header-settings{display:inline-flex;align-items:center;gap:8px;border:1px solid #e5e8f2;border-radius:8px;padding:9px 12px;background:#fff;color:#59637d;font-size:12px;font-weight:700;white-space:nowrap}.header-settings:hover{background:#f4f5ff;color:#5963e8}.header-settings svg{width:17px;height:17px}.notification-wrap{position:relative}.bell{border:0;background:transparent;position:relative}.bell i{background:#ef476f}.notif-count{position:absolute;right:-4px;top:-5px;background:#ee4464;color:white;font-size:10px;min-width:17px;height:17px;border-radius:12px;display:grid;place-items:center;padding:0 3px}.notif-count[hidden],.bell i[hidden],.notification-panel[hidden]{display:none!important}.notification-panel{position:absolute;right:-24px;top:48px;width:min(380px,calc(100vw - 28px));background:white;border:1px solid #e7eaf4;border-radius:14px;box-shadow:0 20px 65px #19244b2b;z-index:100;overflow:hidden}.notification-panel-head{display:flex;align-items:center;justify-content:space-between;padding:16px 17px;border-bottom:1px solid #eff1f6}.notification-list{max-height:380px;overflow:auto}.notification-item{display:flex;align-items:flex-start;gap:12px;padding:14px 17px;border-bottom:1px solid #f0f2f7}.notification-item.unread{background:#f6f7ff}.notification-type{background:#e9ecff;color:#636df4;min-width:32px;height:32px;border-radius:9px;display:grid;place-items:center;font-weight:800}.notification-item strong{font-size:12px;color:#26324b}.notification-item p{font-size:12px;color:#69768f;margin:4px 0 5px}.notification-item small{color:#9da5b5;font-size:10px}.audit-search{display:flex;gap:8px}.audit-search input{min-width:250px}.mono{font-family:Consolas,monospace;font-size:11px;color:#7a859a}.pager{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:18px;color:#7b879b;font-size:12px}.rbac-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:20px}.rbac-summary .panel{display:grid;gap:12px}.rbac-summary strong{font-size:31px;color:#5964eb}.rbac-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,1fr);gap:20px}.rbac-side{display:grid;gap:20px;align-content:start}.rbac-side form{display:grid;gap:14px}.rbac-side form label{display:grid;gap:6px;font-size:12px;color:#61708b}.rbac-side form button{justify-self:start}.role-picker{display:flex;align-items:center;gap:12px;font-size:12px;font-weight:700;color:#6a7590;margin-bottom:20px}.role-picker select{width:240px}.permission-table td,.permission-table th{text-align:center}.permission-table td:first-child,.permission-table th:first-child{text-align:left}.check-tile{display:inline-flex;justify-content:center;align-items:center;width:31px;height:31px;background:#f5f6fb;border:1px solid #e6e9f1;border-radius:7px;cursor:pointer}.check-tile input{accent-color:#626af3;width:17px;height:17px;cursor:pointer}.check-tile:has(input:checked){background:#edf0ff;border-color:#cdd2ff}.matrix-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}.matrix-footer p{font-size:11px;max-width:350px}.inline-control{display:flex;align-items:center;gap:8px}.inline-control select{max-width:180px}.app-confirm-box input{margin:0 0 18px}
@media(max-width:1100px){.analytics-grid,.rbac-layout{grid-template-columns:1fr}}@media(max-width:760px){.dashboard-welcome{flex-wrap:wrap}.analytics-grid{grid-template-columns:1fr}.donut-layout{flex-wrap:wrap}.rbac-summary{grid-template-columns:1fr}.audit-search{flex-wrap:wrap}.audit-search input{min-width:150px}.header-settings{font-size:0;padding:9px}.header-settings svg{width:19px;height:19px}.notification-panel{right:-65px}}

/* Africontech v4 — compact dashboard, mixed chart, user-level RBAC and scrollable sidebar */
.sidebar{height:100dvh;max-height:100dvh;overflow:hidden;padding-bottom:0}
.sidebar .brand{flex:0 0 auto}
.sidebar>.sidebar-caption{flex:0 0 auto}
.sidebar nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;padding:0 4px 14px 0;scrollbar-width:thin;scrollbar-color:#929bf1 #eef0ff}
.sidebar nav::-webkit-scrollbar{width:7px}.sidebar nav::-webkit-scrollbar-track{background:#eef0ff;border-radius:20px}.sidebar nav::-webkit-scrollbar-thumb{background:#919af0;border-radius:20px;border:1px solid #eef0ff}.sidebar nav::-webkit-scrollbar-thumb:hover{background:#646df3}
.sidebar-bottom{flex:0 0 auto;margin-top:0;background:#fff;z-index:1}
.sidebar-collapsed .sidebar nav{scrollbar-width:thin}.sidebar-collapsed .sidebar nav::-webkit-scrollbar{width:4px}
.sample-metrics{margin-top:0}.analytics-grid{margin-top:22px}.legend-total{background:#d9dfe8}
.rbac-title{margin-bottom:22px}.rbac-security{display:inline-flex;align-items:center;gap:8px;color:#5964e9;background:#eef0ff;border:1px solid #e0e4ff;border-radius:9px;padding:10px 13px;font-size:11px;font-weight:800;white-space:nowrap}.rbac-security svg{width:16px;height:16px}
.rbac-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 22px}
.rbac-tab{background:#fff;color:#65718a;border:1px solid #e6eaf3;display:flex;align-items:center;gap:11px;padding:17px 19px;border-radius:12px;font-size:13px;font-weight:750;box-shadow:0 4px 18px #1e315008;text-align:left;transition:all .2s}
.rbac-tab svg{width:19px;height:19px}.rbac-tab>span:nth-child(2){color:#a0a8b8;font-size:11px}.rbac-tab.active{background:#626af3;color:white;border-color:#626af3;box-shadow:0 8px 25px #616af338}.rbac-tab.active>span:nth-child(2){color:#e1e4ff}.rbac-tab:hover:not(.active){border-color:#b7bcfb;color:#515be6}
.rbac-section[hidden]{display:none!important}.rbac-section-grid{display:grid;grid-template-columns:minmax(290px,.9fr) minmax(0,1.5fr);gap:20px;align-items:start}.rbac-section-grid>.panel{margin:0}.rbac-form-card{padding:26px}.rbac-form-card form{display:grid;gap:14px}.rbac-form-card label{font-size:12px;color:#64718b;display:grid;gap:7px;margin:0}.rbac-form-card form button{justify-self:start;gap:8px;margin-top:4px}.rbac-form-card form button svg{width:16px;height:16px}
.rbac-card-intro{display:flex;gap:14px;align-items:flex-start;margin-bottom:24px}.rbac-card-intro h2{font-size:18px;margin:0 0 5px}.rbac-card-intro p{font-size:12px;line-height:1.6;margin:0}.rbac-icon{width:46px;height:46px;min-width:46px;display:grid;place-items:center;border-radius:12px}.rbac-icon svg{width:23px;height:23px}.rbac-icon.lavender{color:#646df3;background:#eef0ff}.rbac-icon.sky{color:#2585cd;background:#e8f5ff}
.rbac-list-card{padding:26px}.rbac-list-card .panel-head p{font-size:12px;margin:5px 0 0}.rbac-directory,.rbac-user-directory{display:grid;gap:0}.rbac-directory-row,.rbac-user-row{display:flex;align-items:center;gap:12px;padding:15px 2px;border-top:1px solid #edf0f6;min-width:0}.rbac-row-avatar{display:grid;place-items:center;width:39px;height:39px;min-width:39px;border-radius:10px;background:#eef0ff;color:#636cf0;font-weight:800;font-size:15px}.rbac-row-avatar.user{background:#eaf6ff;color:#2985c5}.rbac-row-main{display:grid;gap:4px;min-width:0;flex:1}.rbac-row-main strong{font-size:13px;color:#2a3650;overflow-wrap:anywhere}.rbac-row-main small{color:#8a94a8;font-size:11px;overflow-wrap:anywhere}.rbac-system-tag{color:#5964dc;background:#eff0ff;border-radius:6px;font-size:10px;font-weight:800;padding:6px 9px}.rbac-user-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;justify-content:flex-end}.rbac-user-actions select{width:150px;max-width:180px;margin:0;padding:8px;font-size:11px}.rbac-user-actions button{white-space:nowrap}.danger-outline{color:#e24d64;border-color:#ffe1e5}.danger-outline:hover{color:#b92e48;border-color:#e24d64;background:#fff4f5}.danger-outline svg{width:14px;height:14px}.rbac-hint{font-size:11px;line-height:1.6}
.rbac-matrix-card{margin:0}.rbac-matrix-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;flex-wrap:wrap;background:#f8f9fe;border:1px solid #edf0fa;border-radius:11px;padding:17px 20px;margin:18px 0}.rbac-user-picker{display:grid;gap:8px;margin:0;font-size:12px;color:#58647d;font-weight:800;min-width:260px;flex:0 1 360px}.rbac-user-picker select{margin:0;background:#fff}.rbac-access-mode{display:grid;gap:7px;justify-items:end}.rbac-access-mode small{font-size:11px;color:#8894a8}.rbac-matrix-scroll{border-radius:10px}.permission-table{min-width:600px}.permission-table th{background:#f6f8fd;padding:17px 14px}.permission-table td{padding:11px 14px}.permission-table tbody tr:hover{background:#fafbff}.permission-table td:first-child{min-width:205px}.rbac-module-label{display:flex;align-items:center;gap:12px;font-size:12px;color:#3c4b67;font-weight:750}.module-icon{display:grid;place-items:center;width:33px;height:33px;border-radius:9px;color:#626cf0;background:#eff1ff}.module-icon svg{width:17px;height:17px}.check-tile{width:34px;height:34px;border-radius:9px}.check-tile:has(input:disabled){cursor:not-allowed;opacity:.68}.rbac-matrix-buttons{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.rbac-matrix-buttons button{gap:7px}.rbac-matrix-buttons svg{width:16px;height:16px}.rbac-matrix-buttons button:disabled{opacity:.5;cursor:not-allowed}.matrix-footer{align-items:center}.matrix-footer p{margin:0;line-height:1.6}
@media(max-width:1200px){.rbac-section-grid{grid-template-columns:1fr}}@media(max-width:760px){.rbac-tabs{grid-template-columns:1fr;gap:8px}.rbac-tab{padding:12px 14px}.rbac-user-row{flex-wrap:wrap}.rbac-user-actions{width:100%;justify-content:flex-start;padding-left:51px}.rbac-access-mode{justify-items:start}.rbac-matrix-toolbar{align-items:start}.rbac-matrix-buttons{justify-content:flex-start}.matrix-footer{align-items:flex-start;flex-direction:column}.rbac-title{align-items:flex-start}.rbac-security{white-space:normal}}

/* v5 reference chart demo styling */
.trend-panel .canvas-wrap,.trend-panel .canvas-wrap canvas{height:302px}
.trend-panel .panel-head h2{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.chart-demo-tag{font-size:9px;font-weight:800;letter-spacing:.8px;color:#936b1d;background:#fff5d8;border:1px solid #f6e5b1;border-radius:6px;padding:5px 7px;vertical-align:middle}
.trend-panel .chart-legend{flex-wrap:wrap}

/* v6: compact and feature-aware permissions */
.permission-table th{padding:10px 11px!important;font-size:11px}
.permission-table td{padding:5px 10px!important;height:42px}
.permission-table td:first-child{min-width:190px}
.permission-table .module-icon{width:27px;height:27px;border-radius:7px}
.permission-table .module-icon svg{width:15px;height:15px}
.permission-table .rbac-module-label{gap:9px;font-size:11px}
.permission-table .check-tile{width:27px;height:27px;border-radius:7px}
.permission-table .check-tile input{width:15px;height:15px}
.permission-na{font-size:17px;color:#c5ccdb;user-select:none}
.rbac-user-row,.rbac-directory-row{padding:10px 2px!important}
.rbac-row-avatar{width:33px;height:33px;min-width:33px;font-size:13px}
.rbac-user-actions{gap:5px}
.rbac-user-actions button{padding:6px 10px;font-size:11px}
/* Facebook Social Media workspace */
.social-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px;flex-wrap:wrap}.social-heading h1{font-size:29px;color:#25314b;margin:5px 0 6px}.social-heading p{margin:0}.social-eyebrow{font-size:11px;letter-spacing:1.6px;color:#616bf2;font-weight:800}.social-connection{padding:10px 15px;border-radius:9px;font-size:12px;font-weight:750;display:flex;align-items:center;gap:8px}.social-connection.online{background:#e7f8f0;color:#15986b}.social-connection.offline{background:#fff2e6;color:#bd761f}.social-status-dot{width:8px;height:8px;background:currentColor;border-radius:50%}.social-warning{padding:14px 17px;background:#fff8e9;border:1px solid #ffe6a9;color:#9c6a20;border-radius:10px;margin:14px 0;font-size:13px}.social-warning a{color:#4d56e6;text-decoration:underline}.social-tabs{display:flex;align-items:center;gap:8px;overflow-x:auto;border-bottom:1px solid #e6eaf3;margin:10px 0 24px;padding:0 0 12px}.social-tabs a{display:flex;align-items:center;gap:9px;white-space:nowrap;border-radius:9px;padding:11px 14px;font-size:12px;font-weight:750;color:#748099}.social-tabs a.active{background:#ebedff;color:#5660e7}.social-tabs a:hover{background:#f3f5ff}.social-tabs svg{width:16px;height:16px}.social-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin:0 0 21px}.social-stat{background:white;border:1px solid #e8ebf4;box-shadow:0 5px 18px #2b366009;border-radius:12px;padding:22px;display:grid;gap:12px}.social-stat svg{width:23px;height:23px;color:#636af0}.social-stat small{color:#8994a8;font-size:10px;font-weight:800;letter-spacing:1px}.social-stat strong{font-size:30px;color:#28354e}.social-two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.social-form{display:grid;gap:17px;margin-top:20px}.social-form label{display:grid;gap:8px;font-size:12px;font-weight:750;color:#62708a}.social-form textarea,.social-form input,.social-reply input{width:100%;background:#fbfcff;border:1px solid #e0e5ef;color:#2d3950;border-radius:9px;padding:13px 14px;outline:none;font:inherit}.social-form textarea:focus,.social-form input:focus,.social-reply input:focus{border-color:#6b72ee;box-shadow:0 0 0 3px #6b72ee16}.social-form button{justify-self:start}.social-feed{display:grid;gap:0;margin-top:15px;max-height:670px;overflow:auto}.social-feed article{padding:18px 0;border-top:1px solid #edf0f6}.social-feed article:first-child{border-top:0}.social-feed small,.social-comment small{display:block;font-size:11px;color:#97a0b2}.social-feed p{margin:8px 0;font-size:13px;line-height:1.65;color:#4b5870;overflow-wrap:anywhere}.social-feed a{font-size:12px;font-weight:750;color:#5c66ec}.social-meta{display:flex;gap:16px;flex-wrap:wrap;color:#8a96a9;font-size:11px}.social-comments{display:grid}.social-comment{display:flex;gap:14px;border-bottom:1px solid #edf0f6;padding:20px 0}.social-avatar{flex-shrink:0;width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:#ecedff;color:#626cf0;font-weight:850}.social-comment>div:last-child{flex:1;min-width:0}.social-comment strong{display:block;color:#303b53;font-size:13px}.social-comment p{font-size:13px;color:#53617a;line-height:1.6}.social-reply{display:flex;gap:9px;margin-top:12px}.social-reply button{flex-shrink:0}.social-insight-list>div,.social-config>div{display:flex;justify-content:space-between;gap:20px;padding:17px 0;border-bottom:1px solid #eef0f6}.social-insight-list strong,.social-config strong{font-size:13px;color:#34415d}.social-insight-list small,.social-config span{display:block;color:#8b95a7;font-size:11px;margin-top:5px}.social-steps{display:grid;gap:13px;padding-left:22px;font-size:13px;color:#5d6981;line-height:1.7}.social-steps code,.social-warning code{background:#f1f3fb;border-radius:5px;padding:3px 5px;color:#5360b9}@media(max-width:1000px){.social-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.social-two-col{grid-template-columns:1fr}}@media(max-width:560px){.social-stats{grid-template-columns:1fr 1fr}.social-stat{padding:16px}.social-stat strong{font-size:25px}.social-tabs a{padding:10px}.social-heading h1{font-size:24px}}
/* Facebook connection credential form */
.fb-token-wrap{display:flex;align-items:center;gap:9px;width:100%}.fb-token-wrap input{flex:1;min-width:0}.fb-token-wrap button{flex-shrink:0}.social-form button.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px}.social-form button.primary [data-icon]{width:17px;height:17px}

/* Africontech Facebook Social Workspace v9 */
.sm-head{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin:0 0 23px}.sm-title{display:flex;align-items:center;gap:15px}.sm-title h1{font-size:26px;font-weight:800;letter-spacing:-.7px;color:#26314c;margin:0}.sm-title p{margin:5px 0 0;font-size:12px;color:#8c97ad}.sm-brand{width:49px;height:49px;display:grid;place-items:center;background:linear-gradient(135deg,#1877f2,#5c62ef);color:#fff;border-radius:15px;box-shadow:0 8px 22px #1877f22b}.sm-brand svg{width:27px;height:27px}.sm-head-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sm-account-switch{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid #e6eaf4;border-radius:11px;padding:0 11px;height:43px}.sm-account-switch svg{width:16px;height:16px;color:#6470e9}.sm-account-switch select{border:0!important;background:transparent!important;font-size:12px;min-width:210px;max-width:320px;color:#394560;outline:0}.sm-manage{display:flex;align-items:center;gap:8px;border:1px solid #e5e9f3;background:#fff;padding:12px 15px;border-radius:11px;font-weight:750;color:#536078;font-size:12px}.sm-manage svg{width:15px;height:15px}.sm-nav{display:flex;gap:7px;overflow-x:auto;padding:7px;background:#fff;border:1px solid #e8ebf5;border-radius:13px;margin:0 0 24px;scrollbar-width:thin}.sm-nav a{display:flex;align-items:center;gap:9px;padding:12px 16px;color:#7c879f;font-size:12px;font-weight:750;white-space:nowrap;border-radius:9px}.sm-nav a svg{width:16px;height:16px}.sm-nav a.active{background:#626cf0;color:#fff;box-shadow:0 5px 12px #626cf03b}.sm-nav a:hover:not(.active){background:#f3f5ff;color:#5b64dc}.sm-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:20px}.sm-kpi{background:#fff;border:1px solid #e8ecf5;border-radius:14px;padding:22px;box-shadow:0 6px 20px #25386608;display:flex;flex-direction:column;gap:11px}.sm-kpi-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:12px}.sm-kpi-icon svg{width:21px;height:21px}.sm-kpi-icon.purple{background:#efecff;color:#7460e5}.sm-kpi-icon.blue{background:#eaf2ff;color:#4085ed}.sm-kpi-icon.orange{background:#fff3df;color:#ed9a24}.sm-kpi-icon.green{background:#e6f8f0;color:#27a878}.sm-kpi small{font-size:11px;font-weight:750;color:#8b97ac}.sm-kpi strong{font-size:30px;font-weight:800;color:#27334c}.sm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.sm-panel{background:#fff;border:1px solid #e7ebf5;border-radius:14px;padding:24px;min-width:0;box-shadow:0 7px 22px #263b6408}.sm-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:17px;border-bottom:1px solid #eff1f7}.sm-panel-title>div{display:flex;align-items:center;gap:11px}.sm-panel-title svg{width:19px;height:19px;color:#626cf0}.sm-panel-title h2{font-size:16px;margin:0;font-weight:800;color:#29354d}.sm-panel-title a{font-size:12px;color:#646bed;font-weight:750}.sm-form{display:grid;gap:17px;margin-top:20px}.sm-form label{display:grid;gap:8px;font-size:12px;font-weight:750;color:#5c6880}.sm-form label small{font-weight:500;color:#a1aabd}.sm-form textarea,.sm-form input,.sm-reply input{width:100%;border:1px solid #e0e6f1;background:#fafbfe;border-radius:10px;color:#2b3952;padding:13px 14px;font:inherit;font-size:13px;outline:none}.sm-form textarea:focus,.sm-form input:focus,.sm-reply input:focus{border-color:#6873ed;box-shadow:0 0 0 3px #6570f019}.sm-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 16px;border-radius:10px;font-size:12px;font-weight:800;cursor:pointer;text-decoration:none;border:1px solid transparent}.sm-btn svg{width:16px;height:16px}.sm-btn.primary{background:#616bf0;color:white}.sm-btn.secondary{background:#f3f5fc;border-color:#e3e8f4;color:#5d6683}.sm-btn.danger{background:#fff0f1;border-color:#ffe0e3;color:#ce475a}.sm-btn:disabled{opacity:.5;cursor:not-allowed}.sm-feed{max-height:680px;overflow-y:auto;scrollbar-width:thin}.sm-feed article{padding:17px 0;border-bottom:1px solid #edf0f7}.sm-feed small,.sm-comments small{display:block;font-size:11px;color:#9aa5b7}.sm-feed p{margin:8px 0;color:#4c5a73;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.sm-feed a{font-size:12px;color:#6069e9;font-weight:750}.sm-post-meta{display:flex;align-items:center;gap:9px;color:#8c97ac;font-size:12px}.sm-post-meta svg{width:14px;height:14px}.sm-post-meta a{margin-left:auto}.sm-empty-small{padding:36px 12px;text-align:center;font-size:13px;color:#9aa5b7}.sm-empty{background:#fff;border:1px solid #e8ebf4;border-radius:15px;padding:40px;text-align:center;margin-bottom:24px}.sm-empty>svg{width:36px;height:36px;color:#626cf0}.sm-empty h2{font-size:19px}.sm-empty p{color:#8b96a9;font-size:13px}.sm-alert{display:flex;align-items:center;gap:11px;background:#fff6e8;border:1px solid #ffebca;color:#986a32;border-radius:11px;padding:13px 17px;margin-bottom:18px;font-size:12px}.sm-alert svg{width:18px;height:18px;flex-shrink:0}.sm-alert a{margin-left:auto;color:#626cf0}.sm-comments article{display:flex;gap:14px;border-bottom:1px solid #edf0f7;padding:18px 0}.sm-avatar{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#e9edff;color:#626cf0;font-weight:800;flex-shrink:0}.sm-comments article>div{flex:1;min-width:0}.sm-comments strong{display:block;color:#303b52;font-size:13px}.sm-comments p{font-size:13px;color:#56617a}.sm-reply{display:flex;gap:9px;margin-top:12px}.sm-reply button{flex-shrink:0}.sm-insights>div{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 0;border-bottom:1px solid #edf0f7}.sm-insights strong{font-size:13px;color:#34405a}.sm-insights small{display:block;color:#9aa4b7;font-size:11px;margin-top:5px}.sm-account-list{margin-top:12px}.sm-account-row{display:flex;align-items:center;gap:12px;padding:14px 10px;border-radius:10px;color:#4d5971}.sm-account-row:hover,.sm-account-row.active{background:#f1f3ff}.sm-account-row>span:nth-child(2){flex:1;min-width:0}.sm-account-row strong{display:block;font-size:13px}.sm-account-row small{display:block;color:#9aa5b7;font-size:11px;margin-top:4px}.sm-account-row svg{width:16px;height:16px;color:#727aef}.sm-page-avatar{width:37px;height:37px;display:grid;place-items:center;background:#e8efff;border-radius:10px}.sm-count{border-radius:50px;padding:4px 10px;background:#eef0ff;color:#656ee9;font-size:12px;font-weight:800}.sm-secret{display:flex;align-items:center;position:relative}.sm-secret input{padding-right:55px}.sm-eye{position:absolute;right:5px;top:5px;bottom:5px;width:40px;display:grid;place-items:center;background:#eef0ff;border:0;border-radius:8px;color:#616ae8;cursor:pointer}.sm-eye svg{width:18px;height:18px}.sm-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}@media(max-width:1050px){.sm-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.sm-grid{grid-template-columns:1fr}}@media(max-width:580px){.sm-head-right{width:100%}.sm-account-switch{flex:1;min-width:0}.sm-account-switch select{min-width:0;max-width:100%;width:100%}.sm-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.sm-kpi{padding:15px}.sm-panel{padding:17px}.sm-title h1{font-size:23px}}

/* Meta Ads reporting — integrated into the existing Social workspace */
.ads-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;padding:25px 28px;margin-bottom:20px;background:linear-gradient(115deg,#fff,#f2f4ff);border:1px solid #e7eaf7;border-radius:16px}.ads-intro h2{font-size:23px;margin:8px 0;color:#27324d}.ads-intro p{font-size:13px;color:#77839a;margin:0;max-width:660px;line-height:1.6}.ads-eyebrow{font-size:11px;font-weight:800;letter-spacing:1px;color:#6069df;display:flex;gap:7px;align-items:center}.ads-eyebrow svg,.ads-readonly svg{width:15px;height:15px}.ads-readonly{display:flex;align-items:center;gap:8px;border:1px solid #dbe6fa;border-radius:30px;padding:9px 13px;background:#fff;color:#52729c;font-size:11px;font-weight:750}.ads-help,.ads-guidance p{font-size:13px;color:#69758b;line-height:1.8}.ads-help code,.ads-guidance code{background:#f0f2fc;padding:2px 5px;border-radius:5px}.ads-guidance{padding-top:10px}.ads-toolbar{display:flex;align-items:end;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:17px}.ads-filter{display:flex;align-items:end;flex-wrap:wrap;gap:11px}.ads-filter label{display:grid;gap:7px;color:#76839a;font-size:11px;font-weight:750}.ads-filter select{background:#fff;border:1px solid #e1e6f0;border-radius:10px;padding:11px 12px;color:#35425c;font-size:12px;min-width:170px;max-width:330px}.ads-account-meta{display:flex;gap:15px;align-items:center;flex-wrap:wrap;margin-bottom:18px;font-size:12px;color:#7b879c}.ads-account-meta strong{color:#33405c}.ads-account-meta svg{width:17px;height:17px;color:#656feb}.ads-kpis .sm-kpi strong{font-size:clamp(18px,2vw,26px);overflow-wrap:anywhere}.ads-campaign-panel{margin-top:20px}.ads-table-scroll{overflow-x:auto}.ads-table{border-collapse:collapse;width:100%;min-width:620px;font-size:12px}.ads-table th{text-align:left;color:#8a95aa;padding:15px 12px;border-bottom:1px solid #e9edf5;font-weight:750}.ads-table td{padding:16px 12px;border-bottom:1px solid #eff1f7;color:#58657c}.ads-table td strong{display:block;color:#303d58}.ads-table td small{display:block;color:#a1aabc;margin-top:4px}.ads-status{display:inline-flex;border-radius:20px;padding:6px 10px;background:#f1f3f8;color:#7e8a9e;font-weight:750;font-size:10px}.ads-status.running{background:#e5f7ef;color:#249366}.ads-none{text-align:center;padding:30px!important;color:#97a2b5!important}@media(max-width:600px){.ads-intro{padding:18px}.ads-filter,.ads-filter label,.ads-filter select{width:100%;max-width:none}.ads-filter button{width:100%}}

/* Workforce report grouping and off-day scheduling */
.report-mode,.off-form{display:grid;gap:12px;padding:18px;margin:16px 0;border:1px solid var(--border,#dce4e9);border-radius:14px}.report-mode label,.off-weekdays label{display:flex;align-items:center;gap:9px}.off-weekdays{display:flex;flex-wrap:wrap;gap:12px}.off-day-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;border-bottom:1px solid #dbe3e9}.off-day-item span{display:grid;gap:4px}.off-day-item small{color:#667788}.merge-dialog{width:min(650px,94vw);max-height:85vh;overflow:auto;border:1px solid #dbe3e9;border-radius:18px;padding:24px;background:var(--surface,#fff);color:var(--text,#16212b);box-shadow:0 25px 90px #0004}.merge-dialog::backdrop{background:#0a172a88}.merge-list{max-height:220px;overflow:auto}.report-mode input[type=radio]{width:auto}.off-weekdays input[type=checkbox]{width:auto}

/* v12 – compact professional reporting and independent off-day management */
.premium-panel{max-width:none!important;padding:24px 26px;border:1px solid #e7eaf5;border-radius:18px;box-shadow:0 10px 35px #293a7510}
.section-heading{display:flex;align-items:center;gap:13px;margin-bottom:22px;min-width:0}.section-heading>div{min-width:0;flex:1}.section-heading h2{margin:0;font-size:18px;color:#202b48;letter-spacing:-.35px}.section-heading p{margin:4px 0 0;color:#8490a5;font-size:12px}.section-symbol{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;background:#eef0ff;color:#5d66f1;border-radius:12px}.section-symbol svg{width:22px;height:22px}
.mini-action{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;min-height:40px;padding:9px 15px;border-radius:10px;font-size:12px}.mini-action svg{width:16px;height:16px;flex-shrink:0}.report-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 18px}.report-choice{display:flex!important;align-items:center;gap:12px;min-width:0;cursor:pointer;padding:15px 16px;background:#fafbff;border:1px solid #e3e8f4;border-radius:13px;transition:.15s}.report-choice:has(input:checked){background:#f2f3ff;border-color:#aab0fa;box-shadow:inset 0 0 0 1px #d5d8ff}.report-choice>input{width:17px;height:17px;flex:0 0 17px;accent-color:#636af3}.choice-icon{display:grid;place-items:center;width:37px;height:37px;flex:0 0 37px;border-radius:10px;background:#e8ebff;color:#626af3}.choice-icon svg{width:19px;height:19px}.choice-copy{display:grid;gap:3px;flex:1;min-width:0}.choice-copy strong{font-size:13px;color:#27314b}.choice-copy small{font-size:11px;color:#8792a5;line-height:1.4}.choice-check{color:#626af3;opacity:0}.report-choice:has(input:checked) .choice-check{opacity:1}
.report-config{padding:18px 20px;border:1px solid #e8ebf5;background:#fff;border-radius:13px;margin-top:13px}.report-config[hidden],.off-tab-panel[hidden],#leaveShared[hidden]{display:none!important}.config-title{display:flex;align-items:center;gap:10px;margin-bottom:16px;color:#636af3}.config-title>svg{width:18px;height:18px}.config-title>div{display:grid;gap:2px}.config-title strong{color:#26344f;font-size:13px}.config-title small{color:#8995a7;font-size:11px}.compact-field-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,1fr);gap:14px;max-width:970px}.compact-field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-field-grid>label{display:block!important;min-width:0;font-size:11px;font-weight:750;color:#64728b}.compact-field-grid>label>svg{width:14px;height:14px;vertical-align:middle;margin-right:5px;color:#6871ee}.compact-field-grid select,.compact-field-grid input:not([type=checkbox]){display:block;width:100%;max-width:100%;min-width:0;height:41px;padding:9px 11px;margin-top:7px;border:1px solid #e2e6f1;border-radius:9px;background:#f9faff;font-size:12px;color:#293650}
.mode-section{margin-top:19px;border-top:1px solid #edf0f7;padding-top:17px}.mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-width:660px}.mode-choice{display:flex!important;align-items:center;gap:11px;padding:12px 14px;background:#fafbff;border:1px solid #e7eaf4;border-radius:11px;cursor:pointer}.mode-choice:has(input:checked){border-color:#a7aef9;background:#f3f4ff}.mode-choice input{accent-color:#626af3;width:16px;height:16px}.mode-choice>svg{color:#616af3;width:19px;height:19px}.mode-choice>span{display:grid;gap:2px}.mode-choice strong{font-size:12px;color:#34415c}.mode-choice small{font-size:10px;color:#8994a6}.merge-controls{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:13px}.filter-note{display:flex;align-items:center;gap:8px;color:#71809b;background:#f6f7ff;border:1px solid #e8ebfc;padding:11px 13px;border-radius:10px;font-size:11px}.filter-note>svg{color:#656df1;flex-shrink:0;width:16px;height:16px}.report-actions{margin-top:18px;gap:9px}.preview-empty{min-height:200px;border:1px dashed #dce2f3;background:#fafbff;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;color:#8390a8}.preview-empty>svg{width:36px;height:36px;color:#858cf5}.preview-empty strong{color:#37425c;font-size:14px}.preview-empty small{font-size:12px}.preview-empty[hidden]{display:none}.merge-dialog{width:min(680px,94vw);border-radius:20px;border:1px solid #e3e7f2;padding:25px}.merge-dialog .section-heading{margin-bottom:12px}
.off-tabs{display:flex;align-items:center;gap:9px;border-bottom:1px solid #e6eaf4;margin:0 0 22px;padding:0 0 12px}.off-tab{display:flex;align-items:center;gap:9px;padding:11px 17px;border-radius:10px;background:transparent;color:#697791;font-weight:750;font-size:12px}.off-tab.active{background:#eef0ff;color:#575fec}.off-tab>svg{width:17px;height:17px}.tab-count{background:#e1e5f6;color:#5e67db;border-radius:20px;padding:2px 7px;font-size:10px}.weekday-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:8px 0 20px}.weekday-tile{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:125px;padding:13px 5px;background:#fafbff;border:1px solid #e6eaf5;border-radius:13px;cursor:pointer;position:relative;text-align:center}.weekday-tile:has(input:checked){background:#eff1ff;border-color:#aeb5ff;box-shadow:inset 0 0 0 1px #d9dcff}.weekday-tile input{position:absolute;top:9px;right:9px;accent-color:#616af4}.weekday-symbol{color:#7b85a5}.weekday-symbol svg{width:22px;height:22px}.weekday-tile strong{font-size:12px;color:#394660}.weekday-tile small{font-size:10px;color:#8e9aaf}.weekday-indicator{position:absolute;bottom:8px;right:9px;opacity:0;color:#6069ed}.weekday-tile:has(input:checked) .weekday-indicator{opacity:1}.weekday-indicator svg{width:14px;height:14px}.form-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px;margin-top:18px}.form-footer .filter-note{max-width:650px}.holiday-table-wrap{overflow-x:auto;border:1px solid #edf0f6;border-radius:12px}.holiday-table{width:100%;border-collapse:collapse;min-width:640px}.holiday-table th{background:#f8f9fd;text-transform:uppercase;letter-spacing:.5px;font-size:10px;color:#8993a8;padding:13px 15px}.holiday-table td{padding:14px 15px;font-size:12px;color:#59667d}.holiday-name{display:flex;align-items:center;gap:10px}.holiday-name svg{width:18px;height:18px;color:#636af3}.holiday-name strong{color:#27344d}.danger-soft{color:#ce5360;border-color:#f3dfe4}.danger-soft:hover{color:#b62d3c;border-color:#e4a5ad}.empty-table{text-align:center;padding:40px!important}.empty-table svg{width:19px;height:19px;vertical-align:middle;margin-right:7px}
@media(max-width:1100px){.weekday-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:760px){.report-type-grid,.compact-field-grid,.compact-field-grid.two,.mode-grid{grid-template-columns:1fr}.weekday-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.off-tabs{flex-wrap:wrap}.premium-panel{padding:18px}.section-heading{flex-wrap:wrap}.form-footer{align-items:stretch}.form-footer button{width:100%}} 

#openMerge[hidden],#leaveFields[hidden],#attendanceFields[hidden]{display:none!important}

/* v14 compact login card */
@media(min-width:761px){.auth-body{padding:18px}.auth-shell{width:min(830px,100%);min-height:460px;grid-template-columns:1fr 1fr;border-radius:19px}.auth-story{padding:27px}.auth-story h2{font-size:30px;line-height:1.18;margin:12px 0}.auth-story-main>p{font-size:12px;line-height:1.55}.auth-feature-grid{margin-top:17px;gap:8px}.auth-feature-grid>div{padding:10px;border-radius:10px}.auth-feature-grid strong{font-size:11px}.auth-feature-icon{font-size:17px}.auth-login{padding:27px 29px}.auth-login-inner{width:min(320px,100%)}.auth-login-mark{width:37px;height:37px;font-size:20px;margin-bottom:18px}.auth-login h1{font-size:26px;margin:8px 0}.auth-login .muted{font-size:12px;margin-bottom:18px}.auth-login label{font-size:12px;margin-bottom:12px}.auth-login input{height:40px;margin-top:6px}.auth-login .password-field button{top:11px}.auth-submit{height:42px;margin-top:5px}.auth-help{margin-top:15px}}

/* v14 custom merge calendar */
#extendedFilters[hidden],#mergeControls[hidden]{display:none!important}.merge-explainer{display:flex;align-items:center;gap:10px;padding:10px 12px;background:#f3f4ff;border-radius:10px;border:1px solid #e2e5ff;width:100%}.merge-explainer>svg{color:#626af3;flex-shrink:0}.merge-explainer div{display:grid;gap:3px}.merge-explainer strong{font-size:12px;color:#34415c}.merge-explainer small{font-size:11px;color:#7683a1}.merge-summary{font-size:11px;color:#656de9;font-weight:750}.merge-calendar-dialog{width:min(590px,95vw);max-height:90vh;padding:22px}.merge-hint{display:flex;align-items:flex-start;gap:8px;background:#f7f8ff;border:1px solid #e9ebfa;border-radius:10px;padding:10px 12px;color:#687493;font-size:11px;margin:12px 0}.merge-hint svg{width:16px;flex-shrink:0;color:#656df1}.merge-date-pickers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}.merge-date-field{position:relative;display:grid;text-align:left;gap:5px;background:#f9faff;border:1px solid #e0e5f4;border-radius:11px;padding:12px 40px 12px 14px;cursor:pointer;min-height:64px}.merge-date-field.active{border-color:#656df1;background:#f1f3ff;box-shadow:0 0 0 2px #626af31a}.merge-date-field small{font-size:10px;letter-spacing:.7px;color:#8893aa;font-weight:800}.merge-date-field strong{font-size:12px;color:#29375a}.merge-date-field>svg{position:absolute;right:13px;top:20px;width:19px;color:#656df1}.merge-calendar{border:1px solid #e4e8f5;border-radius:14px;padding:14px;background:#fff}.merge-calendar-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.merge-calendar-head>button{width:35px;height:35px;font-size:23px;line-height:1;padding:0}.merge-calendar-selects{display:flex;gap:8px;flex:1;justify-content:center}.merge-calendar-selects select{height:35px;width:auto;min-width:115px;padding:5px 9px;border-radius:8px;font-weight:750;color:#37415f}.merge-calendar-weekdays,.merge-calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-top:12px}.merge-calendar-weekdays span{text-align:center;font-size:10px;font-weight:800;color:#8d98ae}.merge-calendar-days{margin-top:7px}.calendar-day{aspect-ratio:1;max-height:43px;border-radius:9px;border:1px solid transparent;background:#f8f9ff;color:#384663;font-size:12px;font-weight:750;cursor:pointer}.calendar-day:hover:not(:disabled){background:#e6e9ff;border-color:#a6acfb}.calendar-day.selected{background:#626af3;color:#fff}.calendar-day.in-range{background:#e7e9ff;color:#555cda}.calendar-day:disabled{opacity:.28;cursor:not-allowed;background:#e8ebf1}.merge-calendar-foot{display:flex;gap:16px;flex-wrap:wrap;margin-top:12px;color:#8792a6;font-size:10px}.merge-calendar-foot span{display:flex;align-items:center;gap:5px}.merge-dot{width:9px;height:9px;border-radius:50%;background:#626af3;display:inline-block}.merge-dot.used{background:#bfc6d4}.merge-dialog-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:13px}.merge-list{display:grid;gap:8px;margin-top:13px;max-height:165px}.merge-period-item{display:flex;align-items:center;gap:10px;border:1px solid #e8ebf5;border-radius:10px;padding:9px 11px;background:#fafbff}.merge-period-number{background:#e9ebff;color:#626af3;border-radius:8px;font-size:11px;font-weight:850;padding:8px}.merge-period-item>div{display:grid;gap:3px;flex:1}.merge-period-item strong{font-size:12px;color:#303c56}.merge-period-item small{font-size:10px;color:#8a95a7}.merge-period-item button{font-size:11px}@media(max-width:560px){.merge-date-pickers{grid-template-columns:1fr}.merge-calendar-selects select{min-width:0;max-width:135px}.merge-calendar-dialog{padding:14px}}

.report-employee-field{max-width:430px;margin-bottom:13px}.report-employee-field label{display:block;font-size:11px;font-weight:750;color:#64728b}.report-employee-field label>svg{width:14px;height:14px;vertical-align:middle;margin-right:5px;color:#6871ee}.report-employee-field select{display:block;width:100%;height:41px;margin-top:7px;padding:9px 11px;border-radius:9px;font-size:12px;background:#f9faff;border:1px solid #e2e6f1}.report-config .compact-field-grid.two{max-width:610px}

/* v15 — PDF dialog: self-contained preview with no page scrolling */
.pdf-preview-dialog{width:min(1180px,96vw);max-width:96vw;height:min(92dvh,980px);max-height:92dvh;padding:0;border:1px solid #dce1f4;border-radius:18px;background:#fff;box-shadow:0 28px 100px #101a405c;overflow:hidden;color:#273147}
.pdf-preview-dialog::backdrop{background:#10152bb8;backdrop-filter:blur(5px)}
.pdf-preview-header{height:76px;padding:13px 20px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid #e8ebf5;background:#fff}
.pdf-preview-heading{display:flex;align-items:center;gap:13px;min-width:0}.pdf-preview-heading h2{font-size:16px;margin:0;color:#202943}.pdf-preview-heading p{margin:3px 0 0;color:#808aa0;font-size:12px}
.pdf-preview-symbol{width:42px;height:42px;display:grid;place-items:center;background:#eef0ff;color:#5963ed;border-radius:12px;flex-shrink:0}
.pdf-preview-actions{display:flex;align-items:center;gap:10px}.pdf-preview-close{border:1px solid #e2e7f1;background:#f6f7fc;color:#596279;border-radius:10px;display:grid;place-items:center;width:38px;height:38px;cursor:pointer}.pdf-preview-close:hover{background:#edf0ff;color:#505be9}
.pdf-preview-content{height:calc(100% - 76px);background:#eef1f8;position:relative}.pdf-preview-content iframe{width:100%;height:100%;border:0;display:block;background:#fff}.pdf-preview-content iframe[hidden]{display:none}
.pdf-preview-loading{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;color:#374361}.pdf-preview-loading strong{font-size:16px}.pdf-preview-loading small{font-size:12px;color:#7d88a1}
.pdf-preview-spinner{width:36px;height:36px;border:3px solid #d8ddfa;border-top-color:#626af5;border-radius:50%;animation:pdfPreviewSpin .75s linear infinite}@keyframes pdfPreviewSpin{to{transform:rotate(360deg)}}
@media(max-width:650px){.pdf-preview-dialog{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border-radius:0}.pdf-preview-header{padding:10px 12px}.pdf-preview-heading p{display:none}.pdf-preview-actions .mini-action{font-size:11px;padding:9px}}
/* v15 — Dashboard KPI cards only. No changes to other application cards. */
.premium-dashboard-metrics{gap:16px}
.premium-dashboard-metrics .metric-card{position:relative;isolation:isolate;overflow:hidden;border:1px solid #e4e8f5!important;border-radius:17px!important;background:#fff!important;color:#26344e!important;box-shadow:0 5px 20px #263c7810!important;padding:20px 22px!important;min-height:170px!important;transition:transform .18s,box-shadow .18s,border-color .18s}
.premium-dashboard-metrics .metric-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px #273e831c!important;border-color:#cfd5ef!important}
.premium-dashboard-metrics .metric-card::before{content:"";position:absolute;top:0;left:0;right:0;height:3px;background:var(--kpi-accent)}
.premium-dashboard-metrics .metric-card.blue{--kpi-accent:#606af6;--kpi-tint:#edf0ff}.premium-dashboard-metrics .metric-card.orange{--kpi-accent:#e6a22b;--kpi-tint:#fff6e6}.premium-dashboard-metrics .metric-card.purple{--kpi-accent:#8a63d9;--kpi-tint:#f3eeff}.premium-dashboard-metrics .metric-card.red{--kpi-accent:#e36c80;--kpi-tint:#fff0f3}
.premium-dashboard-metrics .metric-card .metric-title{font-size:11px!important;letter-spacing:.75px!important;color:#78839b!important;font-weight:800!important}
.premium-dashboard-metrics .metric-card .metric-icon{width:42px;height:42px;flex:0 0 42px;background:var(--kpi-tint);color:var(--kpi-accent);border-radius:12px;display:grid;place-items:center}
.premium-dashboard-metrics .metric-card .metric-icon svg{width:22px;height:22px;opacity:1}
.premium-dashboard-metrics .metric-card strong{font-size:39px!important;letter-spacing:-1.3px;color:#1e2944!important;line-height:1!important}
.premium-dashboard-metrics .metric-card a{background:transparent!important;color:var(--kpi-accent)!important;border:0;padding:0!important;border-radius:0!important;font-size:11px!important;letter-spacing:.35px!important}
.premium-dashboard-metrics .metric-card a:hover{text-decoration:underline}

/* v16: pixel-conscious recreation of supplied four KPI cards; scoped to dashboard only. */
.reference-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:22px}
.reference-kpis .metric-card{--kpi-accent:#7645ff;--kpi-tint:#eeebff;position:relative;display:flex!important;flex-direction:column!important;gap:0!important;justify-content:initial!important;min-height:125px!important;padding:14px 13px 10px!important;background:#fff!important;color:#111b3b!important;border:1px solid #e1e5f5!important;border-radius:10px!important;box-shadow:0 4px 12px rgba(39,40,105,.09)!important;overflow:hidden}
.reference-kpis .metric-card::before{content:'';position:absolute;top:0;left:0;width:61%;height:5px;background:var(--kpi-accent);border-radius:0 0 6px 0}
.reference-kpis .metric-card.blue{--kpi-accent:#7645ff;--kpi-tint:#ecebff}
.reference-kpis .metric-card.green{--kpi-accent:#10af74;--kpi-tint:#e2f8ed}
.reference-kpis .metric-card.purple{--kpi-accent:#a22cff;--kpi-tint:#f5e7ff}
.reference-kpis .metric-card.orange{--kpi-accent:#ff9700;--kpi-tint:#fff0dc}
.reference-kpis .kpi-header{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:36px}
.reference-kpis .kpi-copy{min-width:0;flex:1}
.reference-kpis .metric-title{display:block;margin:0!important;font-size:11px!important;line-height:1.25!important;letter-spacing:-.12px!important;text-transform:none!important;color:#111a3a!important;font-weight:800!important}
.reference-kpis .kpi-subtitle{margin:3px 0 0;font-size:8px;line-height:1.35;color:#75809c;font-weight:500}
.reference-kpis .metric-icon{width:31px!important;height:31px!important;flex:0 0 31px!important;border-radius:9px!important;background:var(--kpi-tint)!important;color:var(--kpi-accent)!important;display:grid;place-items:center}
.reference-kpis .metric-icon svg{width:19px!important;height:19px!important;opacity:1!important}
.reference-kpis .metric-card .kpi-value{display:block;margin:9px 0 7px!important;font-size:32px!important;line-height:1!important;letter-spacing:-1.2px!important;color:#101a3a!important;font-weight:800!important}
.reference-kpis .metric-card .kpi-link{display:flex!important;align-items:center;gap:6px;margin-top:auto!important;padding:8px 0 0!important;border-top:1px solid #e9ebf6!important;border-radius:0!important;background:none!important;color:#533aff!important;font-size:10px!important;font-weight:600!important;text-transform:none!important;letter-spacing:0!important;align-self:stretch!important}
.reference-kpis .kpi-link span{font-size:15px;line-height:8px;transition:transform .15s}
.reference-kpis .kpi-link:hover span{transform:translateX(3px)}
.reference-kpis .metric-card:hover{transform:translateY(-2px);box-shadow:0 7px 19px rgba(39,40,105,.14)!important}
@media(max-width:1100px){.reference-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.reference-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.reference-kpis .metric-card{padding:13px 10px 9px!important}.reference-kpis .metric-title{font-size:10px!important}.reference-kpis .kpi-subtitle{font-size:8px}}

/* v17: reference card recreation. Old sample-metrics and premium-dashboard-metrics
   classes were removed from the dashboard template to eliminate conflicting rules. */
.reference-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:20px}
.reference-kpis .metric-card{box-sizing:border-box;min-height:125px;max-height:125px;padding:14px 12px 10px!important;gap:0!important;justify-content:flex-start!important;border:1px solid #dfe4f3!important;border-radius:10px!important;box-shadow:0 4px 12px #252b7216!important;background:#fff!important;overflow:hidden;position:relative}
.reference-kpis .metric-card::before{height:5px;width:60%;border-radius:0 0 5px 0;right:auto}
.reference-kpis .kpi-header{height:37px;min-height:37px;align-items:center}
.reference-kpis .metric-title{font-size:11px!important;letter-spacing:-.15px!important;font-weight:800!important;color:#101a3c!important;text-transform:none!important;line-height:1.15!important}
.reference-kpis .kpi-subtitle{font-size:8px!important;line-height:1.25!important;margin:4px 0 0!important;color:#75829f!important}
.reference-kpis .metric-icon{width:31px!important;height:31px!important;flex:0 0 31px!important;border-radius:9px!important}
.reference-kpis .metric-icon svg{width:19px!important;height:19px!important}
.reference-kpis .metric-card .kpi-value{display:block;font-size:32px!important;line-height:1!important;letter-spacing:-1px!important;font-weight:800!important;color:#101a3b!important;margin:9px 0 7px!important}
.reference-kpis .metric-card .kpi-link{margin-top:auto!important;padding:7px 0 0!important;border-top:1px solid #e7eafa!important;background:transparent!important;color:#563aff!important;align-self:stretch!important;font-size:10px!important;line-height:1.2!important;font-weight:600!important;letter-spacing:0!important;text-transform:none!important;text-decoration:none!important;display:flex!important;align-items:center!important;gap:5px!important}
.reference-kpis .metric-card .kpi-link:hover{text-decoration:underline!important}
.reference-kpis .metric-card.blue{--kpi-accent:#7842ff;--kpi-tint:#eeebff}
.reference-kpis .metric-card.green{--kpi-accent:#10ae72;--kpi-tint:#e3f8ef}
.reference-kpis .metric-card.purple{--kpi-accent:#a12cff;--kpi-tint:#f4e8ff}
.reference-kpis .metric-card.orange{--kpi-accent:#ff9700;--kpi-tint:#fff0dc}
/* Critical: author display:flex on the loading overlay used to override the browser's
   [hidden] display:none, leaving the spinner painted over a finished PDF. */
.pdf-preview-content .pdf-preview-loading[hidden],
.pdf-preview-content iframe[hidden]{display:none!important;visibility:hidden!important}
@media(max-width:1100px){.reference-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.reference-kpis{gap:9px}.reference-kpis .metric-card{padding:13px 10px 9px!important}}

/* v18: Reference image card geometry: ~158px wide x 125px tall.
   Limit ONLY the KPI strip; charts and other dashboard sections stay full width. */
.reference-kpis {
  width:100%!important;
  max-width:670px!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin-right:auto!important;
  margin-left:0!important;
}
.reference-kpis .metric-card {
  height:125px!important;
  min-height:125px!important;
  max-height:125px!important;
}
@media (max-width:740px) {
  .reference-kpis {grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:450px!important;}
}
@media (max-width:390px) {
  .reference-kpis {grid-template-columns:minmax(0,1fr)!important;max-width:220px!important;}
}

/* v19: use the full available dashboard row, preserving the approved card appearance.
   v18's 670px max-width caused a large unused area on the right. */
.reference-kpis {
  width:100%!important;
  max-width:none!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:10px!important;
  margin-left:0!important;
  margin-right:0!important;
}
.reference-kpis .metric-card {
  width:100%!important;
  min-width:0!important;
  height:125px!important;
  min-height:125px!important;
  max-height:125px!important;
}
@media(max-width:740px){
  .reference-kpis{max-width:none!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:390px){
  .reference-kpis{max-width:none!important;grid-template-columns:minmax(0,1fr)!important}
}

/* v20: five equal dashboard KPI cards, with no motion/hover animation. */
.reference-kpis{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:10px!important}
.reference-kpis .metric-card.teal{--kpi-accent:#0c9bb5;--kpi-tint:#e2f7fa}
.reference-kpis .metric-card,.reference-kpis .metric-card::before,
.reference-kpis .metric-card *{animation:none!important;transition:none!important}
.reference-kpis .metric-card:hover{transform:none!important;box-shadow:0 4px 12px #252b7216!important}
.reference-kpis .metric-card .kpi-link:hover span{transform:none!important}
.reference-kpis .metric-card .kpi-subtitle{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
@media(max-width:1100px){.reference-kpis{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:740px){.reference-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:390px){.reference-kpis{grid-template-columns:minmax(0,1fr)!important}}
/* v20: unmistakable theme-colored close button on PDF preview dialog. */
.pdf-preview-actions .pdf-preview-close{
  display:grid!important;place-items:center!important;
  width:40px!important;height:40px!important;min-width:40px!important;
  background:#5b5cf2!important;color:#fff!important;
  border:1px solid #494cdb!important;border-radius:10px!important;
  box-shadow:0 2px 7px rgba(65,70,180,.18)!important;
  opacity:1!important;cursor:pointer!important;
  animation:none!important;transition:none!important;transform:none!important;
}
.pdf-preview-actions .pdf-preview-close svg{width:20px!important;height:20px!important;stroke:#fff!important;stroke-width:2.5!important;opacity:1!important}
.pdf-preview-actions .pdf-preview-close:hover{background:#4647d4!important;transform:none!important}
.pdf-preview-actions .pdf-preview-close:focus-visible{outline:3px solid #c8c8ff!important;outline-offset:3px!important}

/* v21: reference-inspired department progress + weekly leave/assignment chart. */
.reference-chart-card{min-height:300px!important;border:1px solid #e4e5f1!important;border-radius:16px!important;box-shadow:0 8px 20px rgba(44,39,98,.10)!important;background:#fff!important;overflow:hidden!important}
.reference-chart-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:14px!important;margin-bottom:18px!important}
.reference-chart-title{display:flex;align-items:center;gap:12px;min-width:0}
.reference-chart-icon{display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:11px;background:#f1e8ff;color:#7b1ee8;box-shadow:0 4px 10px rgba(111,41,220,.15)}
.reference-chart-icon svg{width:22px;height:22px;stroke-width:2.2}
.reference-chart-title h2{margin:0!important;font-size:17px!important;line-height:1.15!important;color:#141631!important;font-weight:800!important;letter-spacing:-.35px!important}
.reference-chart-title p{margin:4px 0 0!important;font-size:11px!important;color:#7b7690!important}
.reference-expand{display:grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border:1px solid #e6e5f0;border-radius:9px;background:#fff;color:#1c1c38;box-shadow:0 2px 7px rgba(35,31,76,.07)}
.reference-expand svg{width:15px;height:15px}
.reference-progress-chart{display:grid;gap:15px;padding:2px 4px 4px}
.reference-progress-row{display:grid;grid-template-columns:minmax(92px,auto) minmax(120px,1fr) 44px;align-items:center;gap:12px}
.reference-progress-label{font-size:12px;font-weight:700;color:#191b38;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reference-progress-track{height:12px;background:#ececf7;border-radius:999px;overflow:hidden;box-shadow:inset 0 1px 2px rgba(53,49,97,.06)}
.reference-progress-fill{height:100%;border-radius:999px;min-width:8px;animation:none!important;transition:none!important}
.reference-progress-fill.tone-purple{background:linear-gradient(90deg,#8b42ed,#8312ef)}
.reference-progress-fill.tone-blue{background:linear-gradient(90deg,#29a8ef,#2387ec)}
.reference-progress-fill.tone-orange{background:linear-gradient(90deg,#ffb01e,#ff7a13)}
.reference-progress-fill.tone-green{background:linear-gradient(90deg,#38d76e,#0eb44a)}
.reference-progress-fill.tone-violet{background:linear-gradient(90deg,#a86bf1,#6d42e8)}
.reference-progress-fill.tone-cyan{background:linear-gradient(90deg,#36d6dd,#159dbf)}
.reference-progress-fill.tone-rose{background:linear-gradient(90deg,#ff7f9c,#ec4f74)}
.reference-progress-fill.tone-amber{background:linear-gradient(90deg,#ffd24c,#f3a816)}
.reference-progress-value{text-align:right;font-size:13px;color:#15172f;font-weight:800}
.reference-line-legend{display:flex;align-items:center;gap:15px;font-size:11px;font-weight:700;color:#55526a;white-space:nowrap}
.reference-line-legend span{display:flex;align-items:center;gap:6px}
.reference-line-legend i{width:10px;height:10px;border-radius:4px;display:inline-block;box-shadow:0 1px 3px rgba(50,42,92,.15)}
.reference-line-legend .leave-dot{background:linear-gradient(180deg,#a438f1,#6e15e4)}
.reference-line-legend .assignment-dot{background:linear-gradient(180deg,#ffab21,#ff7d13)}
.reference-weekly-wrap{width:100%;height:220px}
.reference-weekly-wrap canvas{display:block;width:100%;height:220px}
@media(max-width:900px){.reference-progress-row{grid-template-columns:90px 1fr 40px}.reference-line-legend{gap:9px;flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:600px){.reference-chart-head{align-items:flex-start!important}.reference-line-legend{font-size:10px}.reference-progress-row{grid-template-columns:80px 1fr 38px;gap:8px}.reference-progress-label{font-size:11px}}
/* v22 — compact, premium Leave & Assignment popup; isolated from other modals */
body.leave-modal-open{overflow:hidden}
#leaveModal.modal-backdrop{z-index:1100;padding:16px;background:rgba(20,27,61,.58);backdrop-filter:blur(5px)}
#leaveModal>.modal.assignment-modal.leave-dialog-v22{display:flex;flex-direction:column;flex:0 1 760px;width:min(760px,calc(100vw - 32px))!important;max-width:min(760px,calc(100vw - 32px))!important;max-height:min(92dvh,840px);padding:0!important;overflow:hidden;border:1px solid #e2e6fb;border-radius:18px;background:#fff;box-shadow:0 28px 90px #111b4a42}
#leaveModal .leave-dialog-header{display:flex;align-items:center;gap:13px;flex:none;padding:17px 22px;border-bottom:1px solid #edf0f8;background:linear-gradient(110deg,#fff,#f7f7ff)}
#leaveModal .leave-dialog-emblem{width:42px;height:42px;flex:none;display:grid;place-items:center;border-radius:12px;background:#ebecff;color:#6065f5}
#leaveModal .leave-dialog-emblem svg{width:23px;height:23px}
#leaveModal .leave-dialog-heading{min-width:0;flex:1}
#leaveModal .leave-dialog-heading h2{margin:0;font-size:18px;line-height:1.3;font-weight:800;letter-spacing:-.35px;color:#172445}
#leaveModal .leave-dialog-heading p{margin:4px 0 0;color:#8790a8;font-size:11px;line-height:1.35}
#leaveModal .leave-dialog-close{display:grid;place-items:center;flex:none;width:34px;height:34px;border:1px solid #dfe3ff;border-radius:9px;background:#eef0ff;color:#5459db;font-size:24px;line-height:1;font-weight:500}
#leaveModal .leave-dialog-close:hover,#leaveModal .leave-dialog-close:focus-visible{background:#5d63f1;color:#fff;outline:none}
#leaveModal #leaveForm{display:flex;flex-direction:column;min-height:0;flex:1}
#leaveModal .leave-dialog-body{padding:18px 22px 14px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
#leaveModal .leave-section-label{display:flex;align-items:center;gap:8px;margin:0 0 12px;color:#26365c;font-size:12px}
#leaveModal .leave-section-label>svg{width:17px;height:17px;color:#6369f5}
#leaveModal .leave-section-label strong{font-weight:800}
#leaveModal .leave-section-label small{font-size:10px;font-weight:500;color:#939bb0;margin-left:auto}
#leaveModal .leave-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 14px}
#leaveModal .leave-field{display:block;margin:0;min-width:0;color:#596781;font-weight:650;font-size:11px}
#leaveModal .leave-field-full{grid-column:1/-1}
#leaveModal .leave-field-label{display:flex;align-items:center;gap:6px;margin-bottom:5px;line-height:1.3}
#leaveModal .leave-field-label svg{width:14px;height:14px;color:#777ff2}
#leaveModal .leave-field-label b{color:#ed6a76;font-size:12px}
#leaveModal .leave-field input:not([type=checkbox]),#leaveModal .leave-field select{display:block;width:100%;height:38px;min-height:38px;margin:0;padding:7px 11px;border:1px solid #e1e6f3;border-radius:8px;background:#f8f9fd;color:#25334f;font-size:12px;font-weight:600;box-shadow:none}
#leaveModal .leave-field input:focus,#leaveModal .leave-field select:focus{outline:2px solid #d4d6ff;border-color:#777bf7;background:#fff}
#leaveModal .leave-field input::placeholder{color:#a2abc0;font-weight:400}
#leaveModal #assignmentFields{margin-top:17px;padding-top:15px;border-top:1px solid #ebedf6}
#leaveModal #assignmentFields[hidden]{display:none}
#leaveModal .leave-assignment-label{margin-bottom:12px}
#leaveModal .leave-places-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:16px 0 0}
#leaveModal .leave-places-head .leave-section-label{margin:0}
#leaveModal .leave-add-place{gap:5px;padding:7px 10px;font-size:11px;border-radius:8px;color:#585feb;background:#f3f4ff;border-color:#dfe2ff}
#leaveModal .leave-add-place svg{width:14px;height:14px}
#leaveModal .leave-places-hint{font-size:10px;color:#8c97ad;margin:4px 0 9px;line-height:1.5}
#leaveModal .stop-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:10px 11px;margin-bottom:8px;background:#f8f9ff;border:1px solid #e8eafb;border-radius:10px}
#leaveModal .leave-remove-place{height:38px;padding:7px 12px;color:#cf5669;border-color:#f5dce2;background:#fff;font-size:11px}
#leaveModal .leave-dialog-footer{flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px 22px;border-top:1px solid #edf0f8;background:#fff}
#leaveModal .leave-footer-hint{display:flex;align-items:center;gap:6px;color:#929bb0;font-size:10px}
#leaveModal .leave-footer-hint svg{width:15px;height:15px;color:#6972f1}
#leaveModal .leave-footer-actions{display:flex;align-items:center;gap:9px}
#leaveModal .leave-footer-actions button{min-height:36px;padding:8px 14px;border-radius:8px;font-size:11px;box-shadow:none}
#leaveModal .leave-footer-actions .primary{gap:7px;background:#6066f4;color:white}
#leaveModal .leave-footer-actions .primary svg{width:15px;height:15px}
@media(max-width:600px){#leaveModal.modal-backdrop{padding:8px}#leaveModal>.modal.assignment-modal.leave-dialog-v22{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)}#leaveModal .leave-dialog-header{padding:13px 14px}#leaveModal .leave-dialog-body{padding:14px}#leaveModal .leave-fields-grid{grid-template-columns:1fr;gap:10px}#leaveModal .leave-dialog-footer{padding:11px 14px}#leaveModal .leave-footer-hint{display:none}#leaveModal .leave-footer-actions{width:100%;justify-content:flex-end}}


/* v23 — Attendee reference purple theme, shared across the existing application. */
:root{--accent:#7747e9!important;--accent2:#6035d3!important;--accent-soft:#f4efff;--accent-border:#e5dafa}
body{background:#f6f5fc}
.sidebar .brand{background:linear-gradient(115deg,#7747e9,#6135d3)!important}
.sidebar .brandmark{background:#ffffff29!important;color:#fff!important}
.sidebar nav a.selected,.sidebar nav a:hover{background:#f2ecff!important;color:#673bd9!important}
.sidebar nav a.selected svg{color:#7747e9!important}
.eyebrow,.panel-head a,.crumb b{color:#7142e4}
.primary,.primary:hover{background:#7747e9!important;color:#fff!important}
.primary:focus-visible,.secondary:focus-visible{outline:3px solid #d6c3ff;outline-offset:2px}
.secondary:hover{border-color:#7747e9!important;color:#673bd9}
.tag{background:#f4efff!important;color:#6a3ed8!important}
.header-settings:hover,.header-settings:focus-visible{border-color:#7747e9;color:#7747e9}
.header-system-logo{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;overflow:hidden;border:1px solid #e5dafa;border-radius:10px;background:#f4efff;box-shadow:0 2px 7px #5d37b515}
.header-system-logo img{display:block;width:100%;height:100%;object-fit:contain;padding:3px}
.header-system-logo>span{display:grid;place-items:center;width:100%;height:100%;background:#7747e9;color:#fff;font-size:20px;font-weight:900}
.header-left{display:flex;align-items:center;gap:11px;min-width:0}
.header-left .crumb{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pdf-preview-actions .pdf-preview-close{background:#7747e9!important;border-color:#6035d3!important}
.pdf-preview-actions .pdf-preview-close:hover{background:#6035d3!important}
/* Shared compact controls — no changes to the approved Leave dialog's grid. */
.main form:not(#leaveForm) input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
.main form:not(#leaveForm) select,
.main form:not(#leaveForm) textarea{
  min-height:38px;height:auto;max-height:44px;padding:8px 11px!important;
  margin-top:5px!important;border:1px solid #e0e3f2!important;border-radius:9px!important;
  background:#f9f9fe!important;color:#26324c!important;font-size:12px!important;
  box-shadow:none!important;outline:none;
}
.main form:not(#leaveForm) textarea{max-height:none!important;min-height:70px!important;resize:vertical}
.main form:not(#leaveForm) input:focus,
.main form:not(#leaveForm) select:focus,
.main form:not(#leaveForm) textarea:focus{border-color:#9064ee!important;background:#fff!important;box-shadow:0 0 0 3px #7747e91c!important}
.main form:not(#leaveForm) label:not(.weekday-tile):not(.report-option):not(.mode-choice):not(.report-type-option):not(.checkline):not(.radio-card){font-size:11px;line-height:1.4;font-weight:700;color:#59647f}
.main form:not(#leaveForm) label:not(.weekday-tile):not(.report-option):not(.mode-choice):not(.report-type-option):not(.checkline):not(.radio-card)>.form-label-icon{display:inline-flex;vertical-align:middle;margin-right:6px;color:#7747e9}
.form-label-icon svg{width:14px!important;height:14px!important;stroke-width:2!important}
.main .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.main .form-grid>label{margin:0!important;min-width:0}
.main .field-stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 14px}
.main .field-stack>label{margin:0!important;min-width:0}
.main .schedule-grid{gap:10px 14px}
.main .schedule-field{min-width:0}
.main .schedule-field label{margin:0!important}
.main .compact-field-grid{gap:10px 14px!important}
.main .compact-field-grid>label{margin:0!important;min-width:0}
.main .settings-panel{padding:19px!important}
.main .settings-panel form>.primary{margin-top:12px}
.main .modal.wide-form{max-width:650px!important;padding:0!important;overflow:hidden;border:1px solid #e6e1f7;box-shadow:0 24px 65px #1e164a42}
.main .modal.wide-form>.modal-head{padding:17px 21px;border-bottom:1px solid #ede8fa;background:#fbfaff}
.main .modal.wide-form>.modal-head h2{margin:0;color:#1d2543;font-size:18px}
.main .modal.wide-form>form{padding:18px 21px 19px}
.main .modal.wide-form .report-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:16px}
.main .modal.wide-form .report-actions button{min-height:36px;padding:8px 14px}
.main .report-config{padding:15px 18px!important}
.main .report-filter-row{gap:10px 14px!important}
.main .panel{border-color:#e8e4f2}
#leaveModal .leave-dialog-emblem{background:#f1eaff!important;color:#7747e9!important}
#leaveModal .leave-field-label svg,#leaveModal .leave-section-label>svg{color:#7747e9!important}
#leaveModal .leave-dialog-close{background:#f1eaff!important;color:#7747e9!important;border-color:#e3d6ff!important}
#leaveModal .leave-dialog-close:hover{background:#7747e9!important;color:#fff!important}
#leaveModal .leave-field input:focus,#leaveModal .leave-field select:focus{border-color:#7747e9!important;outline-color:#e2d5ff!important}
@media(max-width:720px){.header-system-logo{flex-basis:30px;width:30px;height:30px}.main .form-grid,.main .field-stack{grid-template-columns:1fr}.main .modal.wide-form{max-width:100%!important}}

/* v23 logo and sign-in field icon finishing touches */
.sidebar .brandmark img{width:100%;height:100%;object-fit:contain;border-radius:10px}
.auth-login-mark img{display:block;width:100%;height:100%;object-fit:contain;border-radius:12px}
.auth-label-icon{display:inline-flex;vertical-align:middle;margin-right:7px;color:#7747e9}
.auth-label-icon svg{width:15px;height:15px}
.auth-login label{font-size:11px;font-weight:700;color:#5c6480;margin:13px 0!important}
.auth-login input:not([type=checkbox]){min-height:40px!important;padding:9px 12px!important;background:#f9f9fe!important;border:1px solid #e0e3f2!important;border-radius:9px!important}
.auth-login input:focus{border-color:#7747e9!important;box-shadow:0 0 0 3px #7747e91c!important}


/* v24 — Brand identity: large, visible sidebar logo only; system name in header. */
.sidebar .brand.brand-logo-only{
  display:flex!important;align-items:center!important;justify-content:center!important;
  width:auto!important;height:105px!important;min-height:105px!important;
  padding:12px 14px!important;margin:0 -14px 22px!important;
  background:linear-gradient(115deg,#7747e9,#6135d3)!important;
  overflow:hidden!important;
}
.sidebar .brand.brand-logo-only .brandmark{
  display:flex!important;align-items:center!important;justify-content:center!important;
  flex:1 1 auto!important;width:100%!important;max-width:210px!important;
  height:79px!important;max-height:79px!important;min-width:0!important;
  background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;overflow:visible!important;
}
.sidebar .brand.brand-logo-only .brandmark img{
  display:block!important;width:100%!important;height:100%!important;
  max-width:210px!important;max-height:79px!important;
  padding:0!important;object-fit:contain!important;object-position:center!important;
  border-radius:0!important;filter:none!important;
}
.header-system-name{
  display:inline-block;font-size:14px;font-weight:800;color:#292047;
  max-width:205px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  padding-right:10px;border-right:1px solid #e8e0f6;
}
.sidebar-collapsed .sidebar .brand.brand-logo-only{
  height:74px!important;min-height:74px!important;padding:9px 7px!important;
  margin:0 -9px 18px!important;
}
.sidebar-collapsed .sidebar .brand.brand-logo-only .brandmark{
  height:55px!important;max-height:55px!important;width:55px!important;
}
.sidebar-collapsed .sidebar .brand.brand-logo-only .brandmark img{
  max-width:55px!important;max-height:55px!important;
}
@media(max-width:1100px){.header-system-name{max-width:145px;font-size:12px}}
@media(max-width:800px){.header-system-name{max-width:115px;font-size:11px}}
@media(max-width:600px){.header-system-name{max-width:130px}.header-left .crumb{display:none}}

/* === v25 Live Dashboard — professional purple rotating workforce display === */
.tv25-page{max-width:1550px;margin:0 auto}.tv25-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:22px}.tv25-clock{display:flex;align-items:center;gap:14px;background:linear-gradient(115deg,#7140df,#8d58f3);color:#fff;border-radius:15px;padding:13px 20px;box-shadow:0 12px 28px #7747e926;min-height:70px}.tv25-clock-icon{width:43px;height:43px;display:grid;place-items:center;background:#ffffff24;border:1px solid #ffffff3c;border-radius:12px}.tv25-clock-icon svg{width:24px;height:24px}.tv25-clock>div{display:flex;flex-direction:column;gap:2px}.tv25-clock strong{font-size:25px;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:1px}.tv25-clock>div>span{font-size:12px;color:#f1e8ff}.tv25-live{display:flex;align-items:center;gap:6px;margin-left:14px;font-size:10px;font-weight:850;letter-spacing:1.2px;background:#ffffff22;border:1px solid #ffffff42;border-radius:30px;padding:7px 10px}.tv25-live i{width:7px;height:7px;background:#bbffdc;border-radius:50%;box-shadow:0 0 0 4px #bbffdc29}.tv25-fullscreen{display:flex;align-items:center;gap:9px;padding:13px 19px;font-weight:700;border-radius:10px}.tv25-fullscreen svg{width:18px;height:18px}.tv25-stage{position:relative;overflow:hidden;border:1px solid #e6dcfa;border-radius:20px;background:#fff;box-shadow:0 14px 45px #39276d0c;min-height:590px}.tv25-stage-header{background:linear-gradient(110deg,#fbf9ff,#f4efff);border-bottom:1px solid #e9e1f7;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:27px 32px}.tv25-stage-identity{display:flex;align-items:center;gap:20px}.tv25-stage-icon{width:66px;height:66px;flex-shrink:0;display:grid;place-items:center;background:linear-gradient(140deg,#7949ea,#9b75f7);color:white;border-radius:18px;box-shadow:0 8px 18px #7747e936}.tv25-stage-icon svg{width:31px;height:31px}.tv25-overline{font-size:10px;letter-spacing:2px;color:#8057c8;font-weight:850}.tv25-stage h1{font-size:27px;line-height:1.3;color:#302445;margin:4px 0}.tv25-stage-header p{color:#857795;font-size:12px;margin:0}.tv25-stage-count{background:#fff;border:1px solid #e6d9fc;color:#7747e9;padding:9px 15px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap}.tv25-stage-content{padding:26px 30px;min-height:385px}.tv25-table-scroll{overflow:auto;max-height:58vh;border:1px solid #eee8f8;border-radius:13px}.tv25-table{width:100%;border-collapse:collapse}.tv25-table th{background:#f7f3ff!important;color:#7557a3!important;font-size:11px;font-weight:850;letter-spacing:.6px;padding:16px 18px;text-align:left;white-space:nowrap}.tv25-table td{padding:16px 18px!important;border-bottom:1px solid #f0eaf8!important;font-size:13px;color:#4b3f60}.tv25-table tr:last-child td{border-bottom:0!important}.tv25-table tbody tr:hover{background:#faf7ff}.tv25-employee{font-weight:800;color:#312744}.tv25-status{display:inline-flex;align-items:center;gap:7px;border-radius:7px;padding:7px 10px;font-size:11px;font-weight:800;white-space:nowrap}.tv25-status svg{width:14px;height:14px}.tv25-status.present{color:#0d795a;background:#e3f8ef}.tv25-status.exited{color:#5d52ba;background:#eeeaff}.tv25-status.absent{color:#bd3d4a;background:#fff0f1}.tv25-status.leave{color:#8050be;background:#f3eaff}.tv25-status.assignment{color:#315f9c;background:#eaf2ff}.tv25-stage-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;border-top:1px solid #eee7fa;padding:18px 30px;color:#8a7c9d;font-size:11px;font-weight:650}.tv25-rotation-indicator{display:flex;align-items:center;gap:7px}.tv25-rotation-indicator span{width:9px;height:9px;border-radius:30px;background:#e1d5f4;transition:width .25s,background .25s}.tv25-rotation-indicator span.active{width:28px;background:#7747e9}.tv25-updated{margin-left:auto}.tv25-progress{height:4px;background:#7747e9;transform-origin:left;transform:scaleX(0)}.tv25-progress-run{animation:tv25Countdown 11s linear forwards}@keyframes tv25Countdown{from{transform:scaleX(0)}to{transform:scaleX(1)}}.tv25-enter{animation:tv25Enter .3s ease both}@keyframes tv25Enter{from{opacity:.25;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.tv25-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:290px;text-align:center;color:#8b7b9e;gap:12px}.tv25-empty>span{display:grid;place-items:center;width:74px;height:74px;background:#f3ecff;color:#7747e9;border-radius:20px}.tv25-empty>span svg{width:34px;height:34px}.tv25-empty strong{font-size:18px;color:#47335f}.tv25-empty p{font-size:13px;max-width:420px;margin:0}.live-setting-panel .panel-head h2{display:flex;align-items:center;gap:10px}.live-setting-panel .panel-head h2 svg{color:#7747e9}.live-setting-form{display:flex;align-items:center;gap:22px;flex-wrap:wrap;margin-top:20px}.live-setting-toggle{display:flex;align-items:center;gap:13px;font-weight:750;cursor:pointer}.live-setting-toggle input{position:absolute;opacity:0;width:1px;height:1px}.live-toggle-track{width:53px;height:29px;border-radius:20px;background:#c4bed1;position:relative;transition:background .2s}.live-toggle-track:after{content:'';position:absolute;top:4px;left:4px;width:21px;height:21px;border-radius:50%;background:#fff;box-shadow:0 1px 5px #0002;transition:transform .2s}.live-setting-toggle input:checked+.live-toggle-track{background:#7747e9}.live-setting-toggle input:checked+.live-toggle-track:after{transform:translateX(24px)}.live-setting-toggle input:focus-visible+.live-toggle-track{outline:3px solid #9c78f4;outline-offset:3px}.live-setting-form .primary{display:flex;align-items:center;gap:7px}.live-setting-form .primary svg{width:16px;height:16px}
@media(max-width:750px){.tv25-toolbar{align-items:stretch;flex-direction:column}.tv25-clock{justify-content:space-between}.tv25-stage-header{padding:20px;align-items:flex-start;flex-direction:column}.tv25-stage-identity{gap:12px}.tv25-stage-icon{width:50px;height:50px}.tv25-stage-icon svg{width:24px;height:24px}.tv25-stage h1{font-size:21px}.tv25-stage-content{padding:15px}.tv25-stage-footer{padding:15px;flex-wrap:wrap}.tv25-stage-footer #tv25Next{display:none}.tv25-table td,.tv25-table th{padding:12px!important}}
@media(prefers-reduced-motion:reduce){.tv25-enter,.tv25-progress-run{animation:none!important}}


/* v26 — compact workforce display; no KPI cards or event panels */
.tv26-page{max-width:1580px;margin:auto}.tv26-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.tv26-clock{display:flex;align-items:center;gap:12px;border:1px solid #e1d4f9;background:linear-gradient(115deg,#7545e7,#8d5bf2);border-radius:12px;color:#fff;padding:11px 16px;min-width:310px}.tv26-clock-icon{display:grid;place-items:center;background:#ffffff29;border-radius:10px;width:38px;height:38px}.tv26-clock>div{display:flex;flex-direction:column;gap:1px}.tv26-clock-label{font-size:9px;letter-spacing:1.1px;font-weight:800;color:#e9dbff}.tv26-clock strong{font-size:22px;line-height:1.1;letter-spacing:1px;font-variant-numeric:tabular-nums}.tv26-clock #tv25Date{font-size:11px;color:#f0e9ff}.tv26-live{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:10px;font-weight:850;letter-spacing:1px}.tv26-live i{background:#b8ffdb;width:8px;height:8px;border-radius:50%}.tv26-fullscreen{display:inline-flex;align-items:center;gap:8px;border-radius:9px}.tv26-stage{border:1px solid #e7dff5;border-radius:15px;overflow:hidden;background:#fff;box-shadow:0 12px 35px #4934750b;min-height:470px}.tv26-section-head{display:flex;align-items:center;gap:14px;background:#f8f5ff;border-bottom:1px solid #e8dff7;padding:17px 20px}.tv26-head-icon{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;background:#7848e8;color:white;border-radius:11px}.tv26-head-icon svg{width:23px;height:23px}.tv26-head-titles{flex:1;min-width:0}.tv26-head-titles>span{font-size:9px;color:#7a52ce;font-weight:850;letter-spacing:1.1px}.tv26-head-titles h1{font-size:19px;line-height:1.3;margin:2px 0;color:#31244b}.tv26-head-titles p{margin:0;font-size:11px;color:#877c9a}.tv26-head-tools{display:flex;align-items:center;gap:10px}.tv26-search{display:flex;align-items:center;gap:6px;background:white;border:1px solid #e6ddf3;border-radius:9px;padding:0 9px;height:35px;color:#8355db}.tv26-search svg{width:16px;height:16px}.tv26-search input{min-width:145px;width:180px;border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;font-size:12px!important;padding:6px 0!important;height:33px!important}.tv26-count{border-radius:8px;background:#eee7ff;color:#6e40cf;font-size:11px;font-weight:800;padding:8px 11px;white-space:nowrap}.tv26-content{padding:14px 17px;min-height:335px}.tv26-table-scroll{max-height:60vh;overflow:auto;border:1px solid #eee8f7;border-radius:10px}.tv26-table{width:100%;border-collapse:collapse;min-width:740px}.tv26-table th{position:sticky;top:0;background:#f3edff!important;color:#7050a5!important;text-align:left;font-size:10px;font-weight:850;letter-spacing:.45px;padding:10px 12px!important;white-space:nowrap}.tv26-table th .tv26-inline-icon{vertical-align:middle;margin-right:7px}.tv26-table th svg{width:14px;height:14px}.tv26-table td{padding:10px 12px!important;font-size:12px!important;color:#4e4561!important;border-bottom:1px solid #f1edf8!important;white-space:nowrap}.tv26-table tbody tr:last-child td{border-bottom:0!important}.tv26-table tbody tr:nth-child(even){background:#fdfbff}.tv26-table tbody tr:hover{background:#f6f1ff}.tv26-person{display:inline-flex;align-items:center;gap:8px;color:#322747}.tv26-person>.tv26-inline-icon{width:27px;height:27px;background:#f0e8ff;border-radius:7px;display:grid;place-items:center;color:#7747e9}.tv26-person svg{width:15px;height:15px}.tv26-pill{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:800;padding:5px 9px;border-radius:6px;background:#f2edff;color:#7041c8}.tv26-pill svg{width:13px;height:13px}.tv26-pill.present{background:#e5f7ee;color:#13764c}.tv26-pill.exited{background:#ebe9ff;color:#584ab5}.tv26-pill.absent{background:#fff0f2;color:#c33d53}.tv26-pill.assignment{background:#e9f0ff;color:#355e9b}.tv26-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 17px;border-top:1px solid #eee6f7;color:#897c9e;font-size:10px}.tv26-steps{display:flex;gap:7px;flex-wrap:wrap}.tv26-steps>span{display:flex;align-items:center;gap:6px;padding:6px 9px;border-radius:7px;background:#f5f1fa;color:#9386a6;font-weight:750}.tv26-steps>span.active{background:#7747e9;color:#fff}.tv26-steps svg{width:13px;height:13px}.tv26-stage .tv25-progress{height:3px}.tv26-stage .tv25-empty{min-height:260px}.sound-setting-panel .panel-head h2{display:flex;align-items:center;gap:9px}.sound-setting-panel .panel-head h2 svg{color:#7747e9}.sound-settings-form{display:flex;flex-direction:column;gap:14px;margin-top:15px}.sound-switch{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:800;cursor:pointer}.sound-switch input{position:absolute;opacity:0;width:1px;height:1px}.sound-switch input:checked+.live-toggle-track{background:#7747e9}.sound-switch input:checked+.live-toggle-track:after{transform:translateX(24px)}.sound-switch input:focus-visible+.live-toggle-track{outline:3px solid #b89cf9;outline-offset:2px}.sound-upload-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.sound-upload-label{display:flex;align-items:center;gap:9px;flex-wrap:wrap;font-weight:750;font-size:12px}.sound-upload-label svg{width:17px;height:17px;color:#7747e9}.sound-upload-label input{font-size:11px;max-width:240px}.sound-file-hint{font-size:10px;color:#9284a4}.sound-existing{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #e8e1f3;border-radius:9px;padding:10px 12px;font-size:11px;color:#6b5e7d}.sound-existing svg{width:16px;height:16px;color:#7747e9}.sound-remove{display:flex;align-items:center;gap:5px;margin-left:auto}.sound-settings-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.sound-settings-actions button{display:inline-flex;align-items:center;gap:7px}.sound-settings-actions button svg{width:16px;height:16px}.notification-type{display:grid;place-items:center;background:#eee7ff;border-radius:8px;color:#7747e9;width:31px;height:31px;flex-shrink:0}.notification-type svg{width:17px;height:17px}
@media(max-width:850px){.tv26-section-head{flex-wrap:wrap}.tv26-head-tools{width:100%;justify-content:space-between}.tv26-search{flex:1}.tv26-search input{width:100%}}@media(max-width:560px){.tv26-toolbar{align-items:stretch;flex-direction:column}.tv26-clock{min-width:0}.tv26-section-head{padding:13px}.tv26-head-titles h1{font-size:17px}.tv26-content{padding:9px}.tv26-bottom{flex-direction:column;align-items:flex-start}}


/* v27: /tv only — hide the entire navigation panel and use all available width. */
body.tv-sidebar-hidden .sidebar{display:none!important;visibility:hidden!important}
body.tv-sidebar-hidden .main,body.tv-sidebar-hidden.sidebar-collapsed .main{margin-left:0!important;width:100%!important}
body.tv-sidebar-hidden .main main{max-width:none!important;width:100%;padding:16px clamp(12px,2vw,30px)!important}
body.tv-sidebar-hidden .tv26-page{max-width:none;width:100%}
body.tv-sidebar-hidden .tv26-table-scroll{max-height:calc(100vh - 310px)}
body.tv-sidebar-hidden .sidebar-toggle-control{display:none!important}
body.tv-sidebar-hidden.show-nav .sidebar{display:none!important}
/* v27: one-click browser sound activation status in the header. */
.notification-sound-enable{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:35px;padding:7px 10px;border:1px solid #cfc1f7;background:#f4eeff;color:#7143d7;border-radius:9px;font-size:11px;font-weight:800;white-space:nowrap;transition:background .18s,border-color .18s}
.notification-sound-enable svg{width:16px;height:16px}
.notification-sound-enable:hover{background:#eae0ff;border-color:#a889f4}
.notification-sound-enable.is-ready{background:#e9f8ef;border-color:#b9e8c9;color:#197447}
.notification-sound-enable.needs-action{border-color:#d4a0e9;box-shadow:0 0 0 2px #e7d6ff55}
@media(max-width:850px){.notification-sound-enable .notification-sound-label{display:none}.notification-sound-enable{padding:8px}}

/* ATTENdee v28 — persistent notification sound status. */
.notification-sound-enable[aria-pressed="true"]{background:#f0eaff;border-color:#c6b4f8;color:#6c3fcd}
.notification-sound-enable.needs-action{background:#fff5e7;border-color:#f1c67c;color:#87510d;box-shadow:0 0 0 2px #f6d99a55}
.notification-sound-enable.is-ready{background:#eee8ff;border-color:#cbb9f7;color:#6c3fcd}


/* ATTENdee Settings v2: independent compact columns (no grid-row whitespace) */
.main .settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.main .settings-grid>.settings-column{display:flex;flex-direction:column;gap:16px;min-width:0}
.main .settings-grid .settings-panel{margin:0!important;padding:19px!important;min-width:0;align-self:stretch}
.main .settings-grid .settings-panel .panel-head{margin-bottom:14px;align-items:flex-start;gap:12px}
.main .settings-grid .settings-panel .panel-head h2{font-size:16px;line-height:1.35;margin:0}
.main .settings-grid .settings-panel form{gap:11px}
.main .settings-grid .settings-panel .field-stack{gap:10px 12px}
.main .settings-grid .settings-panel input:not([type=checkbox]),.main .settings-grid .settings-panel select{min-height:40px;margin-top:5px}
.main .settings-grid .settings-panel .schedule-field{padding:11px}
.main .settings-grid .settings-panel .info{padding:11px 13px}
.main .settings-grid .settings-panel .engine-item{padding:11px 0}
.main .settings-grid .settings-panel .primary{margin-top:0}
.main .settings-grid .device-registry-panel{overflow:visible}
.registry-intro{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;background:#f4f5ff;border:1px solid #e3e6ff;border-radius:11px;color:#586184;font-size:12px;line-height:1.5;margin-bottom:12px}
.registry-intro svg{width:17px;height:17px;flex-shrink:0;color:#606af3}
.device-add-details{border:1px dashed #cfd4f6;border-radius:12px;background:#fafaff;margin:10px 0 15px}
.device-add-details>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:8px;padding:12px 13px;color:#535ddc;font-size:12px;font-weight:800}
.device-add-details>summary::-webkit-details-marker,.device-action-details>summary::-webkit-details-marker{display:none}
.device-add-details>summary svg{width:16px;height:16px}
.device-add-details .summary-hint{margin-left:auto;font-weight:500;color:#9098ac;font-size:11px}
.device-add-details[open]>summary{border-bottom:1px solid #e6e8f6}
.main .settings-grid .device-add-form{padding:14px;gap:11px}
.main .settings-grid .device-field-full{grid-column:1/-1}
.device-list{display:grid;gap:11px}
.device-card{border:1px solid #e4e8f3;background:#fff;border-radius:14px;padding:14px;min-width:0}
.device-card-top,.device-identity{display:flex;align-items:center;gap:10px;min-width:0}
.device-card-top{justify-content:space-between;align-items:flex-start;gap:12px}
.device-identity{flex:1}
.device-identity>div{min-width:0}
.device-identity strong{display:block;font-size:13px;color:#27334d;overflow-wrap:anywhere}
.device-identity small{display:block;color:#8791a6;font-size:11px;margin-top:2px}
.device-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#eff0ff;color:#606af3;flex:0 0 36px}
.device-icon svg{width:19px;height:19px}
.device-approval{font-size:10px;font-weight:800;padding:5px 9px;border-radius:999px;white-space:nowrap}
.device-approval-approved{background:#e6f8ef;color:#13764d}
.device-approval-pending{background:#fff4df;color:#9a6513}
.device-approval-disabled{background:#f0f2f7;color:#677287}
.device-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}
.device-facts>div{min-width:0}
.device-facts>div>span{display:block;font-size:10px;color:#8792a5;font-weight:700;margin-bottom:3px}
.device-facts>div>strong{display:block;color:#34415c;font-size:11px;overflow-wrap:anywhere;font-weight:750}
.device-connection{display:inline-flex!important;align-items:center;gap:6px}
.device-connection:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#aeb7c7}
.device-connection.is-online{color:#158154!important}.device-connection.is-online:before{background:#1eac70;box-shadow:0 0 0 3px #1eac701a}
.device-connection.is-idle{color:#76829b!important}
.device-last-seen{font-size:10px;color:#7d889e;margin:11px 0 0;overflow-wrap:anywhere}
.device-controls{display:flex;gap:7px;flex-wrap:wrap;align-items:flex-start;border-top:1px solid #edf0f7;margin-top:12px;padding-top:12px}
.main .settings-grid .device-controls>form{display:block;margin:0}
.main .settings-grid .device-controls button,.main .settings-grid .device-controls>form>button{padding:8px 11px;border-radius:8px;font-size:11px;min-height:34px}
.device-action-details{position:relative;min-width:0}
.device-action-details>summary{cursor:pointer;list-style:none;padding:8px 12px;min-height:34px;border:1px solid #e2e6f2;border-radius:8px;font-size:11px;font-weight:750;color:#5a6680;background:#f8f9fd;line-height:17px}
.device-action-details[open]{flex:1 1 100%;order:10}
.device-action-details[open]>summary{border-radius:8px 8px 0 0;background:#f2f4ff;color:#545ce1}
.main .settings-grid .device-action-details>form{border:1px solid #e2e6f2;border-top:0;padding:13px;background:#fafbff;border-radius:0 0 9px 9px;margin:0;display:flex;flex-direction:column;gap:10px}
.device-delete-details:not([open])>summary{color:#c13e50;background:#fff8f9;border-color:#f3d8dd}
.device-delete-details[open]>summary{color:#b52d42;background:#fff1f3;border-color:#f3d8dd}
.main .settings-grid .device-delete-details>form{background:#fff9fa;border-color:#f3d8dd}
.device-delete-details p{margin:0;color:#a04b59}
.device-danger-button{background:#c83c51;color:white;border:0;border-radius:8px;font-size:11px;font-weight:800;padding:9px 13px;align-self:flex-start}
.device-danger-button:hover{background:#ac2e43}
.device-refresh-hint{margin:12px 0 0}
@media(max-width:1050px){.main .settings-grid{grid-template-columns:1fr}}
@media(max-width:520px){.main .settings-grid .settings-panel{padding:15px!important}.device-facts{grid-template-columns:1fr 1fr}.main .settings-grid .device-add-form .field-stack,.main .settings-grid .device-edit-details .field-stack{grid-template-columns:1fr}}

/* ATTENdee device user synchronization */
.device-user-link{margin:12px 0}.device-user-link a{display:inline-flex;gap:7px;align-items:center}
.device-sync-panel{margin-bottom:20px}.device-sync-panel .panel-head{display:flex;justify-content:space-between;gap:15px;align-items:flex-start}
.device-sync-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 20px}
.device-sync-facts>div{background:#f7f9fe;border:1px solid #e5e8f2;border-radius:12px;padding:14px;min-width:0}
.device-sync-facts span{display:block;color:#69768a;font-size:12px;margin-bottom:6px}.device-sync-facts strong{overflow-wrap:anywhere;font-size:14px}
.device-users-table-wrap{overflow-x:auto}.device-users-table{border-collapse:collapse;width:100%;min-width:750px}
.device-users-table th,.device-users-table td{padding:14px 12px;border-bottom:1px solid #e7eaf2;text-align:left;vertical-align:top}
.device-users-table th{color:#58677d;font-size:12px;background:#f8f9fd}.device-users-table td{font-size:13px}
.device-users-table td:last-child{min-width:210px}.device-users-table td form{display:grid;gap:8px;margin:8px 0}
.device-users-table td select,.device-users-table td input{max-width:270px;width:100%;padding:10px;border:1px solid #dbe1ea;border-radius:9px;background:#fff;color:#1e2d41}
.device-users-table details{margin:5px 0}.device-users-table summary{cursor:pointer;color:#7747e9;font-weight:650}
.device-users-table label{display:grid;gap:4px;color:#516075;font-size:12px}.device-mapping-state{display:inline-block;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:700}
.device-mapping-state.mapped{background:#e3f8ed;color:#17663d}.device-mapping-state.unmapped{background:#fff1db;color:#895511}
@media(max-width:900px){.device-sync-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.device-sync-facts{grid-template-columns:1fr}}
