:root{color-scheme:light;--bg:#f4f7fb;--surface:#fff;--surface-2:#f8fafc;--ink:#1c3042;--muted:#68798a;--line:#dee6ed;--nav:#142c41;--nav-2:#183a50;--accent:#087f82;--accent-d:#076a6c;--danger:#ac3641;--shadow:0 5px 24px rgba(19,44,64,.05)}
*{box-sizing:border-box}html{font-family:Tahoma,"Segoe UI",Arial,sans-serif;line-height:1.55}body{margin:0;background:var(--bg);color:var(--ink);font-size:13px}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:3px}button{cursor:pointer}h1,h2,h3,p{margin:0}h1{font-size:22px;line-height:1.6}h2{font-size:17px}p{color:var(--muted)}.shell{display:grid;grid-template-columns:259px minmax(0,1fr);min-height:100vh}.sidebar{display:flex;flex-direction:column;background:var(--nav);color:#eef8fa;position:sticky;top:0;height:100vh;overflow:auto}.brand{display:flex;align-items:center;gap:11px;padding:18px 14px 15px;border-bottom:1px solid #ffffff1c}.official-logo{height:57px;width:57px;object-fit:contain;background:#f8fafc;border-radius:50%;padding:4px;flex-shrink:0}.brand strong{font-size:13px;display:block;line-height:1.8}.brand span,.mini-label{display:block;font-size:11px;opacity:.75}.nav-label{padding:22px 16px 8px;color:#91b6c0;font-size:11px}.sidebar nav{padding:0 8px 15px}.nav-link{display:flex;align-items:center;gap:10px;min-height:40px;padding:8px 11px;border-radius:8px;margin:3px 0;transition:background .16s}.nav-link:hover{background:#ffffff12}.nav-link.active{background:#0c8c8f;color:white;font-weight:700}.nav-symbol{width:19px;text-align:center;font-size:20px;opacity:.8}.sidebar-bottom{margin-top:auto;border-top:1px solid #ffffff16;padding:13px 17px;font-size:12px;color:#bad0d9}.sidebar-bottom span{font-weight:900;color:white}.sidebar-bottom small{display:block;margin-top:4px;font-size:10px}.workspace{min-width:0;display:flex;flex-direction:column}.topbar{background:var(--surface);height:69px;display:flex;align-items:center;justify-content:space-between;padding:11px 24px;box-shadow:0 1px 0 var(--line)}.top-start,.top-actions,.button-group,.topbar .inline-form{display:flex;align-items:center;gap:10px}.top-start b{display:block;font-size:13px}.top-start small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.icon-btn{min-width:37px;height:37px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:9px;font-size:18px}.content{width:100%;max-width:1650px;margin:0 auto;padding:25px;flex:1}.footer{border-top:1px solid var(--line);display:flex;justify-content:space-between;padding:12px 25px;color:var(--muted);font-size:11px}.footer b{color:var(--accent)}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px}.page-heading p{margin-top:1px}.card{background:var(--surface);border:1px solid var(--line);border-radius:13px;padding:21px;box-shadow:var(--shadow)}.section-heading{margin-bottom:18px}.section-heading p{margin-top:5px}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px}.stat-card{display:flex;flex-direction:column;gap:3px;min-height:120px;padding:18px 19px;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);border-top:3px solid var(--accent)}.stat-card span{font-size:12px;color:var(--muted)}.stat-card strong{font-size:29px;letter-spacing:1px}.stat-card small{color:var(--muted)}.btn{border:1px solid transparent;border-radius:9px;min-height:38px;padding:8px 15px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;gap:5px}.btn.primary{background:var(--accent);color:white}.btn.primary:hover{background:var(--accent-d)}.btn.quiet{border-color:var(--line);background:var(--surface-2);color:var(--ink)}.btn.quiet:hover{background:var(--line)}.toolbar{display:flex;gap:9px;background:var(--surface);padding:11px;border:1px solid var(--line);border-radius:12px;margin-bottom:10px}.stretch{flex:1}.toolbar input{width:100%}.table-meta{font-size:12px;color:var(--muted);padding:6px 3px 11px}.table-card{padding:0;overflow:hidden}.table-scroll{overflow:auto;max-width:100%}table{border-collapse:collapse;min-width:100%;white-space:nowrap;font-size:12px}th,td{text-align:right;border-bottom:1px solid var(--line);padding:11px 13px;vertical-align:middle}thead{background:var(--surface-2)}th{color:var(--ink);font-weight:700}tbody tr:hover{background:rgba(14,135,138,.035)}tbody tr:last-child td{border-bottom:0}.ltr-cell{direction:ltr;text-align:right;font-variant-numeric:tabular-nums}.table-actions{display:flex;align-items:center;gap:9px;min-width:285px}.table-actions>a{color:var(--accent);font-weight:700}.inline-form{display:inline-flex;gap:5px;align-items:center}.action-reason input{max-width:108px;padding:5px;font-size:11px}.danger-link{border:0;background:transparent;color:var(--danger);font-size:12px}.empty-state{text-align:center;color:var(--muted);padding:32px!important}.pager{display:flex;justify-content:center;gap:9px;margin-top:14px}.login-card{max-width:440px;margin:65px auto}.form-card{padding:0}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;padding:20px}.form-grid.single{grid-template-columns:1fr;padding:0}.field,.filter-form>label,.form-grid.single>label,.reason-field{display:flex;flex-direction:column;gap:6px;min-width:0}.field>span,label>span{font-size:12px;font-weight:700}.field input,.field textarea,.field select,.form-grid.single input,.filter-form input,.filter-form select,.toolbar input,.action-reason input,.inline-form input,.reason-field input{min-height:40px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);padding:9px 11px;width:100%}.field textarea{resize:vertical;min-height:80px}.field input:focus,.field select:focus,.field textarea:focus,.toolbar input:focus,.filter-form input:focus,.filter-form select:focus{border-color:var(--accent);outline:2px solid rgba(8,127,130,.14)}.full-width{grid-column:1/-1}.latin{direction:ltr;text-align:left}.required{color:var(--danger)}.field-hint{color:var(--muted);font-size:10px}.calendar-toolbar{background:var(--surface-2);border-bottom:1px solid var(--line);padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:10px}.calendar-toolbar strong,.calendar-toolbar small{display:block}.calendar-toolbar small{color:var(--muted);font-size:11px;margin-top:3px}.inline-select{display:flex;align-items:center;gap:10px}.inline-select select{padding:9px;border-radius:8px;border:1px solid var(--line);background:var(--surface);color:var(--ink)}.form-actions{display:flex;align-items:center;gap:8px;padding:15px 20px;border-top:1px solid var(--line);grid-column:1/-1}.reason-field{margin:3px 20px 12px}.reason-field input{max-width:600px}.date-control{display:flex;gap:4px;align-items:stretch}.date-control input{min-width:0;flex:1}.small-btn{min-width:36px;border:1px solid var(--line);background:var(--surface-2);border-radius:7px;padding:0 9px;color:var(--ink)}.today-btn{white-space:nowrap}.calendar-popover{position:fixed;z-index:100;max-width:min(350px,calc(100vw - 20px));width:350px;right:30px;top:150px;box-shadow:0 20px 55px #0002;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:14px;padding:15px}.calendar-popover[hidden]{display:none!important}.calendar-header,.weekdays,.calendar-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:center;text-align:center;gap:4px}.calendar-header{display:flex;justify-content:space-between;margin-bottom:14px}.calendar-header button{border:0;background:var(--surface-2);height:32px;width:36px;color:var(--ink);border-radius:7px}.calendar-days button{border:0;min-width:0;aspect-ratio:1;background:var(--surface-2);color:var(--ink);border-radius:8px}.calendar-days button:hover,.calendar-days button:focus{background:var(--accent);color:white}.weekdays{font-size:10px;color:var(--muted);margin-bottom:8px}.calendar-popover small{display:block;color:var(--muted);font-size:10px;margin:12px 0}.calendar-popover>.btn{width:100%}.alert{padding:10px 14px;border-radius:8px;margin-bottom:15px;border:1px solid var(--line);background:var(--surface)}.alert.error{color:#9a2433;border-color:#d99aa5;background:#fff4f4}.alert.ok{color:#12715d;border-color:#88c7bb;background:#f0fffa}.filter-form{display:grid;grid-template-columns:1.1fr .8fr 1.1fr 1fr 1fr;gap:12px;padding:16px;margin-bottom:13px}.filter-form .form-actions{padding:0;border:0}.report-summary{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:14px}.report-summary div{min-width:140px;padding:10px 17px;background:var(--surface);border:1px solid var(--line);border-radius:11px;display:flex;flex-direction:column}.report-summary strong{font-size:20px}.report-summary span{font-size:11px;color:var(--muted)}.print-actions{margin-bottom:12px}.report-print-heading{display:none}details pre{overflow:auto;white-space:pre-wrap;max-width:500px;font-size:11px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
@media(max-width:1200px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-form{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:850px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar{position:fixed;z-index:120;right:-280px;top:0;width:260px;transition:right .2s;box-shadow:0 4px 30px #0003}.shell.sidebar-open .sidebar{right:0}.topbar{padding:10px 15px}.content{padding:15px}.footer{padding:12px 15px}.filter-form{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading{align-items:flex-start}.page-heading .button-group{flex-wrap:wrap}}
@media(max-width:550px){.stats-grid,.form-grid,.filter-form{grid-template-columns:1fr}.page-heading{flex-wrap:wrap}.form-grid{padding:14px}.calendar-toolbar{flex-wrap:wrap}.top-start b{font-size:11px}.footer{flex-direction:column;gap:4px}.button-group{gap:5px}.report-summary{gap:6px}.report-summary div{flex:1;min-width:120px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}
@media print{@page{size:A4 landscape;margin:9mm}body{background:white!important;color:#000!important;font-size:10px}.sidebar,.topbar,.footer,.page-heading,.filter-form,.print-actions,.alert,.no-print,.calendar-popover{display:none!important}.shell{display:block}.content{padding:0;margin:0;max-width:none}.card{box-shadow:none;border:0;padding:0}.table-scroll{overflow:visible}table{white-space:normal;font-size:8px}th,td{padding:4px;border:1px solid #777;overflow-wrap:anywhere}.report-summary{margin:6px 0}.report-summary div{padding:3px;border:1px solid #ddd}.report-print-heading{display:block;text-align:center;margin-bottom:10px}.report-print-heading p{color:#333}.report-print-heading h2{font-size:16px}thead{display:table-header-group}tr{page-break-inside:avoid}}
html.dark{--bg:#111c27;--surface:#1c2b3a;--surface-2:#24374a;--ink:#f0f4f7;--muted:#afc1d0;--line:#34495d;--nav:#101824;--nav-2:#152231;--accent:#26aaaa;--accent-d:#188e90;--danger:#e88790;--shadow:0 5px 24px rgba(0,0,0,.12)}

@font-face{font-family:Estedad;src:url('vendor/Estedad.woff2') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
html,body{font-family:Estedad,Tahoma,sans-serif;text-align:right;line-height:1.8}
body{font-size:14px}h1,h2,h3{font-family:inherit;font-weight:750}
a:hover{color:var(--accent);text-decoration:none}button,input,select,textarea{font:inherit}p{margin:0}
.card{margin-bottom:0;display:block}.btn{font-size:13px;line-height:1.5;box-shadow:none}
.sidebar{float:none;width:auto;transform:none;margin:0}.sidebar a:hover{color:white}
.brand{padding:13px 12px}.nav-label{padding-top:14px}.topbar{height:64px}.content{padding:20px}.page-heading{margin-bottom:14px}
.stat-card{min-height:105px;padding:13px 17px;transition:box-shadow .15s,border-color .15s}
.stat-card:hover{border-color:var(--accent);box-shadow:0 5px 18px #087f8214}
.stat-card:nth-child(2){border-top-color:#4774be}.stat-card:nth-child(3){border-top-color:#b38531}.stat-card:nth-child(4){border-top-color:#8664b5}
.stat-card strong{font-variant-numeric:tabular-nums}.section-heading{margin-bottom:14px}
.quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.quick-link{display:flex;align-items:center;gap:12px;border:1px solid var(--line);padding:13px;border-radius:10px}
.quick-link>span:last-child{margin-right:auto;color:var(--accent)}.quick-link strong{display:block;font-size:12px}
.quick-link small{display:block;color:var(--muted);margin-top:2px}
.quick-icon{background:var(--surface-2);color:var(--accent);font-size:23px;width:38px;height:38px;text-align:center;border-radius:9px}
.optional{font-size:10px;color:var(--muted);font-weight:400}.field-error{color:var(--danger);font-size:11px}.field [aria-invalid=true]{border-color:var(--danger)}
.filter-chip{background:var(--surface-2);border:1px solid var(--line);padding:3px 9px;border-radius:6px;color:var(--accent)}
.table-scroll{scrollbar-color:var(--accent) var(--surface-2)}th{position:sticky;top:0;background:var(--surface-2)}
.table-actions>a,.danger-link{padding:6px}.field>span{min-height:21px}
.password-control{display:flex;gap:6px}.password-control input{min-width:0}.password-control button{min-width:60px}
.login-note{text-align:center;font-size:11px;color:var(--muted);margin-top:18px}
.guest .shell{grid-template-columns:minmax(0,1fr)}.guest .sidebar{display:none}
.guest .topbar{height:62px;background:transparent;box-shadow:none}
.guest .content{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:16px 20px 32px}
.guest .alert{width:min(100%,470px)}.guest{background:radial-gradient(ellipse at 10% 10%,#087f8210,transparent 55%),var(--bg)}
.login-card{width:100%;max-width:470px;margin:0;padding:28px 34px;border-top:4px solid var(--accent);box-shadow:0 16px 50px #142c410c;border-radius:18px}
.login-identity{text-align:center;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:18px}
.login-logo{display:block;object-fit:contain;margin:0 auto 12px;background:#fff;border-radius:50%;padding:6px}
.ministry-name{display:block;font-size:20px;margin-bottom:4px;color:var(--ink)}
.login-identity p{font-size:13px;line-height:1.9;color:var(--ink)}.login-heading{margin-bottom:20px;text-align:center}
.login-heading h1{font-size:24px;font-weight:800;margin:3px 0 5px}.login-heading p{font-size:12px}
.eyebrow{font-size:11px;color:var(--accent);font-weight:700}.login-card .single{gap:15px}
.login-card input{min-height:44px}.login-card .primary{min-height:44px;justify-content:space-between;margin-top:3px}.login-card label{margin:0}
.guest .footer{justify-content:center;gap:24px;background:var(--surface)}.dark{color-scheme:dark}
.dark .alert.error{background:#40282e;color:#ffb8bf;border-color:#89515d}.dark .alert.ok{background:#173b35;color:#9be1c6;border-color:#367967}
.dark .login-card{box-shadow:0 16px 50px #0002}.dark .guest{background:var(--bg)}
.btn:disabled{opacity:.65;cursor:wait}.top-actions{flex-shrink:0}label{margin-bottom:0}summary{cursor:pointer}details pre{color:var(--ink);direction:rtl}.sidebar-bottom{flex-shrink:0}html.dark .table{color:var(--ink)}
@media(min-width:851px){.shell.sidebar-open{grid-template-columns:76px minmax(0,1fr)}.shell.sidebar-open .brand>div,.shell.sidebar-open .nav-label,.shell.sidebar-open .sidebar-bottom{display:none}.shell.sidebar-open .brand{padding:12px 9px}.shell.sidebar-open .nav-link{font-size:0;justify-content:center;padding:9px}.shell.sidebar-open .nav-symbol{font-size:22px}.shell.sidebar-open .official-logo{width:48px;height:48px}}
@media(max-width:850px){.sidebar{width:260px}.content{padding:15px}.topbar{height:auto;min-height:64px}.top-start{min-width:0}.top-start b{font-size:12px}.top-start small{font-size:10px}}
@media(max-width:550px){.quick-grid{grid-template-columns:1fr}.guest .content{padding:12px 14px 24px}.login-card{padding:22px 20px}.login-logo{height:86px;width:86px}.login-identity p{font-size:12px}.guest .footer{gap:3px;align-items:center}.login-heading h1{font-size:22px}.toolbar{flex-wrap:wrap}.toolbar .stretch{flex-basis:100%}.top-start small{max-width:200px}.form-actions{flex-wrap:wrap}.inline-select{flex-wrap:wrap}.report-summary div{min-width:115px}.calendar-popover{max-height:calc(100dvh - 120px);overflow:auto}.stat-card{min-height:90px}}
@media print{html.dark{--surface:#fff;--surface-2:#f4f4f4;--ink:#000;--muted:#333;--line:#777}.report-summary,.report-print-heading{color:#000}.table-card{overflow:visible}th{position:static}.report-summary div{background:white}.report-print-heading p{font-size:10px}}
.live-clock{display:grid;grid-template-columns:auto auto;column-gap:10px;align-items:center;border-inline-end:1px solid var(--line);padding-inline-end:14px;font-size:11px;color:var(--muted);line-height:1.5;white-space:nowrap}.live-clock b{font-size:16px;color:var(--ink);font-variant-numeric:tabular-nums;letter-spacing:1px;grid-column:2;grid-row:1/3}.live-clock small{font-size:9px}.live-clock span{grid-column:1}.live-clock small{grid-column:1}@media(max-width:550px){.live-clock{gap:0 6px;padding-inline-end:7px;font-size:9px}.live-clock b{font-size:13px}.top-actions{gap:6px}.top-start small{max-width:145px;font-size:9px}.guest .top-start small{display:none}.topbar{padding:9px 10px}.top-start{gap:6px}}
.login-card{padding-top:22px;padding-bottom:22px}.login-identity{padding-bottom:14px;margin-bottom:14px}.login-logo{width:86px;height:86px;margin-bottom:8px}.login-heading{margin-bottom:14px}.login-note{margin-top:12px}.guest .content{padding-top:12px;padding-bottom:20px}.login-card .single{gap:12px}
.toolbar{align-items:flex-end}.toolbar label{display:flex;flex-direction:column;gap:5px}.toolbar select{min-height:40px;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:8px;padding:8px 12px}.audit-values{max-width:520px;max-height:400px;overflow:auto;margin-top:10px}.audit-values td{white-space:normal;overflow-wrap:anywhere;min-width:95px}.error-card{max-width:600px;margin:30px auto}.error-card p{margin:12px 0 20px}@media(max-width:550px){.toolbar .sort-field{flex:1}.toolbar select{width:100%}}
.card.filter-form{display:grid}.calendar-popover{right:auto!important;bottom:auto;max-width:calc(100vw - 20px);overflow-y:auto;overscroll-behavior:contain;z-index:1050;padding:14px;isolation:isolate}.calendar-popover .calendar-days{gap:4px;min-height:160px}.calendar-popover .calendar-days button{height:36px;min-height:36px;aspect-ratio:auto;padding:0;font-size:13px;line-height:1;border:1px solid transparent}.calendar-days button.selected{background:var(--accent);color:#fff;font-weight:750}.calendar-days button[aria-current=date]{border-color:var(--accent)}.calendar-popover .calendar-header{margin-bottom:10px}.calendar-popover .calendar-header button{padding:0;font-size:20px}.calendar-popover .weekdays{font-size:10px;gap:2px}.calendar-popover small{line-height:1.8}.calendar-popover:focus-within{border-color:var(--accent)}@media(max-width:550px){.calendar-popover{max-width:calc(100vw - 20px);width:350px}.calendar-popover .calendar-days button{height:34px;min-height:34px}}

/* Consistent section colours across tiles, shortcuts and navigation. */
:root{--teal:12,130,131;--blue:61,104,193;--amber:179,116,25;--violet:123,80,184;--rose:177,63,114}
.stat-card,.quick-link,.report-summary>div{--tone:var(--teal);--tone-ink:#086d70}
.stat-card:nth-child(2),.quick-link:nth-child(2),.report-summary>div:nth-child(2){--tone:var(--blue);--tone-ink:#345ba5}
.stat-card:nth-child(3),.quick-link:nth-child(3),.report-summary>div:nth-child(3){--tone:var(--amber);--tone-ink:#926017}
.stat-card:nth-child(4),.quick-link:nth-child(4),.report-summary>div:nth-child(4){--tone:var(--violet);--tone-ink:#7245ab}
.stat-card{position:relative;background:linear-gradient(135deg,rgba(var(--tone),.14),var(--surface) 88%);border-color:rgba(var(--tone),.24);border-top:3px solid rgb(var(--tone));box-shadow:0 4px 18px rgba(var(--tone),.07)}
.stat-card strong{color:var(--tone-ink);font-size:32px;line-height:1.5}.stat-card span{color:var(--ink);font-weight:650}.stat-card small{color:var(--tone-ink)}
.stat-card:hover{border-color:rgb(var(--tone));box-shadow:0 7px 22px rgba(var(--tone),.15)}
.quick-link{background:linear-gradient(110deg,var(--surface),rgba(var(--tone),.07));border-color:rgba(var(--tone),.22)}
.quick-link:hover{border-color:rgb(var(--tone));color:var(--ink)}.quick-link .quick-icon{background:rgba(var(--tone),.14);color:var(--tone-ink)}
.quick-link>span:last-child{color:var(--tone-ink)}
.report-summary>div{background:linear-gradient(135deg,rgba(var(--tone),.12),var(--surface));border-color:rgba(var(--tone),.23);border-inline-start:3px solid rgb(var(--tone))}
.report-summary strong{color:var(--tone-ink)}
.sidebar{background:linear-gradient(165deg,#173650 0%,#183548 46%,#0e4448 100%);border-top:3px solid #31c2b4}
.brand{background:linear-gradient(125deg,#ffffff0d,transparent);border-color:#ffffff20}.brand .official-logo{box-shadow:0 0 0 3px #d9b15b36}
.brand .mini-label{opacity:1;color:#9ce1db}.brand span{opacity:1;color:#c8d9e5}
.sidebar .nav-link{--nav-tone:25,150,152;color:#edf5fc;min-height:43px;border:1px solid transparent;padding:8px 10px;font-size:12px}
.sidebar .nav-link:nth-of-type(2){--nav-tone:12,139,140}.sidebar .nav-link:nth-of-type(3){--nav-tone:64,111,200}
.sidebar .nav-link:nth-of-type(4){--nav-tone:155,103,29}.sidebar .nav-link:nth-of-type(5){--nav-tone:127,79,185}.sidebar .nav-link:nth-of-type(6){--nav-tone:173,61,112}
.sidebar .nav-symbol{display:inline-flex;align-items:center;justify-content:center;flex:0 0 30px;height:30px;border-radius:8px;background:rgba(var(--nav-tone),.27);color:#fff;font-size:19px;opacity:1}
.sidebar .nav-link:hover{background:rgba(var(--nav-tone),.24);border-color:rgba(var(--nav-tone),.4)}
.sidebar .nav-link.active{background:linear-gradient(115deg,rgba(var(--nav-tone),.72),rgb(var(--nav-tone)));border-color:#ffffff26;box-shadow:0 4px 13px #0002;color:#fff}
.sidebar .nav-link.active .nav-symbol{background:#ffffff22}.sidebar .nav-label{color:#8fd6d2;padding-top:13px}
.sidebar-bottom{background:#061d2824;color:#c7e4e4}.sidebar-bottom span{color:#87e7d9}
.topbar{background:linear-gradient(105deg,var(--surface) 55%,#eaf6f6);border-bottom:1px solid #cfe5e7;box-shadow:0 2px 12px #142c4104}
.top-start b{color:#126f77}.live-clock{border:1px solid #c9e4e6;padding:5px 10px;background:linear-gradient(120deg,#e7f5f4,#eff4fc);border-radius:9px;column-gap:9px}
.live-clock span{color:#44647d}.live-clock b{color:#136f78}.top-actions .icon-btn{color:#315b9b;background:var(--surface)}
.btn.primary{background:linear-gradient(115deg,#078789,#14768c);border-color:#087e86;box-shadow:0 3px 8px #087f8215}
.btn.primary:hover{background:linear-gradient(115deg,#066d72,#105e78)}.btn.quiet{border-color:#d4e0ef;background:linear-gradient(125deg,var(--surface),var(--surface-2))}
.calendar-toolbar{background:linear-gradient(110deg,#f4f1fb,#edf8f7);border-color:#dce9ec}.calendar-toolbar strong{color:#2e6c83}
.table-scroll th{background:#edf5f7;color:#275c72}.filter-form{border-top:3px solid #6484c3}
.calendar-popover{border-top:3px solid #088b91;box-shadow:0 15px 45px #142c4130}.calendar-header b{color:var(--accent)}
.calendar-days button:hover,.calendar-days button:focus-visible{background:var(--accent);color:#fff}
.dark .stat-card,.dark .quick-link,.dark .report-summary>div{--tone-ink:#8edfd7}
.dark .stat-card:nth-child(2),.dark .quick-link:nth-child(2),.dark .report-summary>div:nth-child(2){--tone-ink:#9fbfff}
.dark .stat-card:nth-child(3),.dark .quick-link:nth-child(3),.dark .report-summary>div:nth-child(3){--tone-ink:#e8c079}
.dark .stat-card:nth-child(4),.dark .quick-link:nth-child(4),.dark .report-summary>div:nth-child(4){--tone-ink:#c7acf3}
.dark .topbar{background:linear-gradient(110deg,#1c2b3a 55%,#1d3b47);border-color:#345464}.dark .top-start b{color:#8edfd7}
.dark .live-clock{background:linear-gradient(120deg,#1c4446,#253a54);border-color:#3c6168}.dark .live-clock span{color:#bdcfe2}.dark .live-clock b{color:#96e3df}
.dark .top-actions .icon-btn{color:#b1c9f5}.dark .btn.quiet{border-color:#3e536b}
.dark .calendar-toolbar{background:linear-gradient(110deg,#302e48,#223d42);border-color:#405165}.dark .calendar-toolbar strong{color:#a9d9e9}
.dark .table-scroll th{background:#253c50;color:#c6e6f0}.dark .sidebar{background:linear-gradient(165deg,#14273d,#14333c 90%)}
@media(min-width:851px){.shell.sidebar-open .sidebar .nav-link{font-size:0;padding:8px 2px}}
@media(max-width:550px){.live-clock{padding:4px 6px;column-gap:5px}.live-clock span{font-size:9px}.sidebar .nav-link{font-size:12px}}
@media print{.stat-card,.quick-link,.report-summary>div,.table-scroll th{background:white!important;color:#000!important}.report-summary strong{color:#000!important}}
.ui-icon{display:inline-block;width:20px;height:20px;vertical-align:middle;flex-shrink:0}.icon-btn{display:inline-flex;align-items:center;justify-content:center}.nav-symbol .ui-icon{width:19px;height:19px}
.stat-emblem{position:absolute;left:14px;top:14px;display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:12px;background:rgba(var(--tone),.13);color:var(--tone-ink)!important}.stat-emblem .ui-icon{width:23px;height:23px}
.stat-card>span:not(.stat-emblem){padding-left:44px;min-height:22px}.stat-card small .ui-icon{width:14px;height:14px;margin-right:3px}.quick-icon{display:flex;align-items:center;justify-content:center}.quick-icon .ui-icon{width:21px;height:21px}
.calendar-btn,.small-btn[data-open-calendar]{display:inline-flex;align-items:center;justify-content:center}.small-btn .ui-icon{width:17px;height:17px}.calendar-header .ui-icon{width:17px;height:17px}.guest .footer{padding-block:8px}
.btn,.icon-btn,.quick-link,.nav-link,.nav-symbol,.calendar-days button{transition:background .18s ease,box-shadow .18s ease,transform .18s ease,border-color .18s ease}
.stat-card{animation:tile-enter .38s ease both}.stat-card:nth-child(2){animation-delay:.05s}.stat-card:nth-child(3){animation-delay:.1s}.stat-card:nth-child(4){animation-delay:.15s}
.content>.card,.content>section.card,.page-heading{animation:surface-enter .3s ease both}.calendar-popover:not([hidden]){animation:surface-enter .15s ease both}
@media(hover:hover){.stat-card:hover,.quick-link:hover{transform:translateY(-3px)}.nav-link:hover .nav-symbol{transform:rotate(-5deg)}.btn:hover,.icon-btn:hover{box-shadow:0 4px 12px #142c4112}.quick-link:hover .quick-icon{transform:scale(1.06)}}
.btn:active,.icon-btn:active{transform:scale(.97)}.calendar-days button:hover{transform:translateY(-1px)}.calendar-days button:active{transform:scale(.94)}
.quick-icon{transition:transform .18s ease}.calendar-popover[aria-busy=true] .calendar-header b::after{content:'';display:inline-block;width:12px;height:12px;margin-right:8px;border:2px solid var(--line);border-top-color:var(--accent);border-radius:50%;animation:calendar-spin .6s linear infinite}
@keyframes tile-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}@keyframes surface-enter{from{opacity:0}to{opacity:1}}@keyframes calendar-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.stat-card:hover,.quick-link:hover,.calendar-days button:hover,.nav-link:hover .nav-symbol{transform:none!important}}
@media print{.stat-emblem{display:none}*,*::before,*::after{animation:none!important;transition:none!important}}
input::placeholder,textarea::placeholder{font-weight:400!important;font-size:11px!important;opacity:.8;color:var(--muted)!important}
.sidebar-title{font-size:14px;padding:9px 1px;color:#e8fcfa}.brand{min-height:72px;justify-content:center}
.permission-section{padding:0 20px 20px}.permission-section>p{margin:8px 0 14px}.permission-table th{white-space:normal;min-width:110px}.permission-table td{text-align:center}.permission-table input,.check-label input{width:18px!important;height:18px;min-height:18px!important;accent-color:var(--accent);flex-shrink:0}.check-label{display:flex;align-items:center;gap:9px;font-weight:500}.permission-check{display:flex;min-height:36px;justify-content:center;align-items:center;cursor:pointer}.status-badge{display:inline-block;border-radius:6px;padding:3px 9px;font-size:11px}.status-badge.enabled{background:#ddf3e9;color:#166a51}.status-badge.disabled{background:var(--surface-2);color:var(--muted)}.wrap-cell{white-space:normal;min-width:160px;max-width:300px}
.backup-card{margin-bottom:18px}.backup-card>p{margin:8px 0 16px}.backup-download-form,.restore-upload{display:flex;gap:12px;align-items:flex-end;flex-wrap:wrap}.restore-upload .field{flex:1;min-width:220px}.backup-card .field-hint{display:block;margin-top:12px}.restore-warning{border:1px solid #bf8845;border-top:4px solid #c6923e}.btn.danger{background:#a63148;color:white}.cancel-restore{margin-top:10px}.download-result{color:var(--muted);font-size:12px}.backup-reminder{display:flex;justify-content:space-between;align-items:center;gap:15px;background:var(--surface);border:1px solid #d9ac5b;border-inline-start:4px solid #c78f30;border-radius:10px;padding:13px 16px;margin-bottom:18px}.backup-reminder[hidden]{display:none!important}.backup-reminder p{font-size:12px;margin-top:3px}.dark .status-badge.enabled{background:#184b40;color:#a9e9ce}.dark .sidebar-title{color:#b2f3e8}.permission-section h2{margin-top:5px}
@media(max-width:700px){.backup-reminder{flex-direction:column;align-items:stretch}.backup-reminder .button-group{flex-wrap:wrap}.permission-section{padding:0 14px 14px}.backup-card{padding:16px}}
@media(min-width:851px){.shell.sidebar-open .sidebar-title{font-size:10px;text-align:center;white-space:normal}.shell.sidebar-open .brand{padding:6px}}
.file-picker{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.file-name{max-width:260px;overflow-wrap:anywhere;font-size:11px;color:var(--muted)}
.file-picker input[type=file].sr-only{width:1px!important;height:1px!important;min-height:1px!important;padding:0;border:0}.file-picker:focus-within>.btn{outline:2px solid var(--accent);outline-offset:3px}
/* Restrained dashboard polish; leaves other screens unchanged. */
.content:has(>.stats-grid){max-width:1440px}
.content:has(>.stats-grid)>.page-heading{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:20px}
.content:has(>.stats-grid)>.page-heading h1{font-size:21px;font-weight:700}
.content:has(>.stats-grid)>.page-heading p{font-size:11px;margin-top:4px}
.content>.stats-grid{gap:16px;margin-bottom:22px}
.content>.stats-grid .stat-card{min-height:148px;padding:20px;border-radius:12px;border-top-width:2px;box-shadow:0 3px 12px #142c4108}
.content>.stats-grid .stat-card>span:not(.stat-emblem){font-size:12px;font-weight:500;line-height:1.9}
.content>.stats-grid .stat-card strong{font-size:30px;font-weight:650;letter-spacing:0;line-height:1.6}
.content>.stats-grid .stat-card small{font-size:10px;line-height:1.8}
.content>.stats-grid .stat-emblem{width:34px;height:34px;border-radius:9px}
.content>.stats-grid+.card{border-top:2px solid var(--accent);padding:22px}
.content>.stats-grid+.card .section-heading h2{font-size:15px;font-weight:650}
.content>.stats-grid+.card .section-heading p{font-size:11px}
.content>.stats-grid+.card .quick-link{padding:14px;border-radius:9px;box-shadow:none;min-width:0}
.content>.stats-grid+.card .quick-link strong{font-size:12px;font-weight:600;white-space:normal}
.content>.stats-grid+.card .quick-link small{font-size:10px}
@media(max-width:550px){.content>.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:16px}.content>.stats-grid .stat-card{min-height:140px;padding:12px}.content>.stats-grid .stat-card>span:not(.stat-emblem){padding-left:0;padding-top:34px;font-size:11px}.content>.stats-grid .stat-emblem{top:10px;left:10px;width:28px;height:28px}.content>.stats-grid .stat-emblem .ui-icon{width:18px;height:18px}.content>.stats-grid .stat-card strong{font-size:26px}.content>.stats-grid+.card{padding:16px}}
@media(max-width:550px){.topbar,.guest .topbar{height:auto;min-height:0;display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px}.top-start{flex:1;min-width:0;gap:7px}.top-start b{font-size:12px;white-space:nowrap}.top-start small{display:none}.top-actions{display:contents}.top-actions>.icon-btn{order:2}.top-actions>.inline-form{order:3}.top-actions>.live-clock{order:4;flex-basis:100%;display:flex;justify-content:center;align-items:center;gap:14px;padding:5px 10px}.live-clock span{font-size:11px}.live-clock b{font-size:14px}.top-actions .btn{padding:8px 10px}}

.demo-notice{padding:8px 12px;background:#e8eff6;color:#2a455b;text-align:center;font-weight:700}
