@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--navy:#102d48;--navy2:#193e59;--green:#13865e;--mint:#e9f7f0;--ink:#1b3446;--muted:#71808d;--line:#e3e9ed;--bg:#f4f7f9;--red:#b73e42;--amber:#a36c15}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px 'DM Sans',Segoe UI,sans-serif}h1,h2,h3,h4{font-family:Manrope,Segoe UI,sans-serif;margin:0}h1{font-size:28px;letter-spacing:-1px}h2{font-size:18px;letter-spacing:-.35px}h3{font-size:16px}p{line-height:1.6}button,input,select,textarea{font:inherit}button,a,input,select,textarea{outline-offset:4px}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button,a{transition:background .15s,color .15s,box-shadow .15s}a{color:var(--green)}.icon{width:20px;height:20px;display:inline-block;flex-shrink:0;vertical-align:middle}button{display:inline-flex;gap:9px;align-items:center;justify-content:center;border:1px solid var(--line);background:white;color:var(--ink);border-radius:9px;padding:11px 16px;font-weight:600}button:hover{background:#f1f6f5}button.primary{background:var(--green);border-color:var(--green);color:white;box-shadow:0 3px 7px #13865e18}button.primary:hover{background:#0a704d}button.navy{background:var(--navy);color:white;border-color:var(--navy)}button.ghost{background:transparent;border-color:transparent}button.small{padding:7px 11px;font-size:12px}button.danger{color:var(--red)}.muted{color:var(--muted)}.smalltext{font-size:12px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase}.stack{display:grid;gap:16px}.row{display:flex;align-items:center;gap:12px}.between{justify-content:space-between}.wrap{flex-wrap:wrap}.right{margin-left:auto}.loading{padding:18vh 20px;text-align:center}.loading h1{margin:16px}.loading span{color:var(--green)}.shell{display:grid;grid-template-columns:242px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:242px;background:var(--navy);color:white;padding:29px 20px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;gap:11px;align-items:center;text-decoration:none;color:inherit}.brand img{width:42px;height:42px}.brand strong{font-size:17px;letter-spacing:-.5px;display:block;font-family:Manrope,Segoe UI,sans-serif}.brand em{font-style:normal;color:#56d8a0}.brand small{font-size:10px;letter-spacing:1.1px;color:#b5c9d8}.site-marker{display:flex;gap:9px;align-items:center;margin:32px 2px 26px;border:1px solid #ffffff22;border-radius:8px;padding:12px;font-size:12px;color:#dfedf4}.site-marker i{width:6px;height:6px;border-radius:50%;background:#63d7a1}.nav-label{color:#8da7ba;font-size:10px;letter-spacing:1.7px;margin:8px 12px 15px}.nav{display:grid;gap:6px}.nav button{background:transparent;border:0;color:#bcd0de;justify-content:flex-start;padding:12px 14px;font-size:13px}.nav button:hover{background:#ffffff0b}.nav button.active{background:#1a976a;color:white}.nav .badge-count{margin-left:auto;padding:1px 7px;border-radius:5px;background:#ffffff22;font-size:11px}.sidebar-bottom{margin-top:auto;padding-top:30px}.status-card{background:#ffffff08;border:1px solid #ffffff12;border-radius:10px;padding:14px;font-size:12px}.status-card p{color:#99b3c5;font-size:11px;margin-bottom:0}.brand-foot{color:#8fa9ba;font-size:10px;text-align:center;margin-top:20px}.main{grid-column:2;min-width:0}.topbar{height:77px;background:white;border-bottom:1px solid var(--line);padding:0 35px;display:flex;align-items:center;justify-content:space-between;gap:20px}.crumb{font-size:12px;color:var(--muted)}.crumb b{color:var(--ink);font-weight:500}.topbar .avatar{width:34px;height:34px;border-radius:50%;background:#eaf1f4;color:#3a5b6b;display:grid;place-items:center;font-size:12px;font-weight:700}.content{max-width:1510px;margin:auto;padding:32px 35px 50px}.pagehead{display:flex;align-items:center;justify-content:space-between;margin-bottom:27px;gap:18px}.pagehead p{color:var(--muted);margin:7px 0 0;font-size:13px}.today{font-size:12px;color:#627887;display:flex;gap:8px;align-items:center}.welcome{display:grid;grid-template-columns:1fr auto;align-items:center;background:var(--navy);border-radius:13px;min-height:150px;padding:26px 30px;margin-bottom:25px;color:white;position:relative;overflow:hidden}.welcome:after{content:'';position:absolute;width:230px;height:230px;border:35px solid #ffffff04;border-radius:50%;right:60px;top:-80px;pointer-events:none}.welcome .eyebrow{color:#62d9a7;font-size:10px}.welcome h2{font-size:22px;margin-top:10px}.welcome p{color:#b1c9d9;font-size:13px;margin:9px 0 0}.welcome button{position:relative;z-index:1}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:25px}.stat{padding:20px;background:white;border:1px solid var(--line);border-radius:12px}.stat-top{display:flex;justify-content:space-between;align-items:center;color:#647888;font-size:12px}.stat-icon{width:35px;height:35px;border-radius:10px;display:grid;place-items:center;background:var(--mint);color:var(--green)}.stat:nth-child(2) .stat-icon{background:#ecf3fd;color:#4379ba}.stat:nth-child(3) .stat-icon{background:#fff4e5;color:#b5823a}.stat:nth-child(4) .stat-icon{background:#eef0fa;color:#7771ab}.stat strong{display:block;font-family:Manrope,Segoe UI,sans-serif;font-size:31px;letter-spacing:-1px;margin:9px 0 5px}.stat small{font-size:11px;color:var(--muted)}.grid-main{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:22px}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden}.panel-head{padding:20px 22px;display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f3}.panel-head h2{font-size:15px}.panel-body{padding:22px}.pill{display:inline-flex;align-items:center;gap:6px;font-size:10px;font-weight:600;padding:5px 8px;border-radius:6px;white-space:nowrap;background:#eef2f5;color:#657888}.pill.green{color:#187e59;background:#e9f7f0}.pill.amber{background:#fff4e2;color:#966415}.pill.red{background:#fff0ef;color:var(--red)}.dot{width:5px;height:5px;border-radius:50%;background:currentColor}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}th{font-weight:500;font-size:10px;text-transform:uppercase;letter-spacing:.7px;background:#fafcfd;color:#7a8c98;padding:12px 20px}td{padding:15px 20px;border-bottom:1px solid #edf1f3;font-size:12px}tr:last-child td{border-bottom:0}.person{display:flex;align-items:center;gap:10px}.initials{width:33px;height:33px;display:grid;place-items:center;flex-shrink:0;border-radius:9px;background:#edf3f7;color:#57758c;font-weight:600;font-size:11px}.person b{display:block;font-size:12px}.person small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.empty{text-align:center;padding:44px 20px;color:var(--muted)}.empty .icon{width:31px;height:31px;color:#8ca6b7;margin-bottom:10px}.empty h3{color:var(--ink);font-size:14px;margin-bottom:5px}.empty p{font-size:12px;margin:0 auto;max-width:340px}.empty button{margin-top:16px}.quick{display:grid;gap:11px}.quick button{justify-content:flex-start;text-align:left;font-size:12px;padding:13px}.quick button .icon{color:var(--green)}.quick button small{font-size:10px;display:block;color:var(--muted);font-weight:400;margin-top:4px}.chart{display:flex;align-items:flex-end;height:145px;gap:12px;padding-top:10px}.chart .col{flex:1;min-width:0;text-align:center;height:100%;display:flex;flex-direction:column;justify-content:flex-end}.bars{height:100%;display:flex;align-items:flex-end;gap:3px;justify-content:center;border-bottom:1px solid var(--line)}.bar{width:9px;background:#25a778;border-radius:3px 3px 0 0;min-height:1px}.bar.out{background:#a9c9db}.col small{font-size:9px;color:var(--muted);margin-top:8px}.legend{font-size:10px;display:flex;gap:15px;margin-top:14px;color:var(--muted)}.legend i{display:inline-block;width:7px;height:7px;border-radius:2px;margin-right:5px}.activity{display:grid;gap:18px}.activity-item{display:flex;gap:10px;font-size:11px}.activity-item>span{background:var(--mint);color:var(--green);width:29px;height:29px;border-radius:50%;display:grid;place-items:center;flex-shrink:0}.activity-item .icon{width:14px;height:14px}.activity-item small{color:var(--muted);display:block;margin-top:4px;font-size:10px}.bottomnote{display:flex;justify-content:space-between;color:#8a9aa6;margin-top:26px;font-size:10px}.toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:17px 20px;border-bottom:1px solid var(--line)}.search{position:relative;flex:1;min-width:180px}.search .icon{position:absolute;left:12px;top:11px;width:17px;color:#8093a1}.search input{padding-left:38px}input,select,textarea{width:100%;border:1px solid #dce5ea;background:#fff;color:var(--ink);border-radius:7px;padding:11px 12px;min-height:42px}input:focus,select:focus,textarea:focus{outline:2px solid #13865e40;border-color:var(--green)}textarea{resize:vertical}.toolbar select,.toolbar input[type=date]{width:auto}.fields{display:grid;grid-template-columns:1fr 1fr;gap:18px}.field label{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.field small{color:var(--muted);font-size:11px;display:block;line-height:1.5;margin-top:5px}.full{grid-column:1/-1}.check{display:flex;gap:9px;align-items:flex-start;font-size:12px;line-height:1.6}.check input{width:16px;height:16px;min-height:0;flex-shrink:0;margin-top:3px;accent-color:var(--green)}.notice{padding:13px 16px;border:1px solid #d7e9e2;border-radius:8px;background:#f2faf6;color:#456d5a;font-size:12px;line-height:1.6}.notice.amber{background:#fff9ee;border-color:#f1e2c4;color:#8c6a2e}.notice.red{background:#fff2f1;border-color:#f2cfcd;color:#a1433c}.section-space{margin-top:22px}.badge-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(215px,1fr));gap:17px}.badge-card{background:white;border:1px solid var(--line);border-radius:11px;padding:19px}.badge-card .badge-symbol{width:41px;height:41px;border-radius:10px;background:#edf6f1;color:var(--green);display:grid;place-items:center;margin-bottom:18px}.badge-card strong{font-size:17px;letter-spacing:.6px}.badge-card p{font-size:12px;color:var(--muted);min-height:19px}.badge-card .row{margin-top:17px}.overlay{position:fixed;inset:0;background:#0b233b99;backdrop-filter:blur(3px);z-index:50;display:grid;place-items:center;padding:22px;overflow:auto}.modal{background:white;width:min(760px,100%);border-radius:15px;box-shadow:0 25px 100px #081e3a44;max-height:calc(100dvh - 44px);overflow:auto}.modal.narrow{max-width:500px}.modal-header{padding:22px 26px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);position:sticky;top:0;background:white;z-index:2}.modal-header p{font-size:12px;color:var(--muted);margin:5px 0 0}.modal-header button{padding:7px}.modal-body{padding:24px 26px}.modal-footer{padding:18px 26px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px;background:#fcfdfd}.steps{display:flex;margin-bottom:26px;justify-content:space-between;gap:10px}.step{display:flex;align-items:center;gap:7px;font-size:11px;color:#9aa9b3}.step span{height:24px;width:24px;border-radius:50%;background:#edf2f5;display:grid;place-items:center;font-size:10px}.step.current{color:var(--green);font-weight:700}.step.current span{background:var(--green);color:white}.signature{width:100%;height:185px;display:block;touch-action:none;border:1px dashed #c5d2da;border-radius:10px;background:#fcfdfd}.signature-note{text-align:center;font-size:11px;color:var(--muted);margin:9px}.photo-preview{max-height:190px;max-width:100%;border-radius:8px}.upload{border:1.5px dashed #b8cfc4;background:#f8fcfa;border-radius:10px;padding:20px;text-align:center}.upload p{font-size:12px;margin:7px 0 12px;color:var(--muted)}.upload input{padding:8px;font-size:12px;background:white}.camera video{width:100%;max-height:300px;background:#102d48;border-radius:10px}.kv{display:grid;grid-template-columns:1fr 1fr;gap:17px;padding:19px;background:#f6f9fa;border-radius:10px}.kv span{font-size:11px;color:var(--muted);display:block;margin-bottom:5px}.kv b{font-weight:600;font-size:13px;overflow-wrap:anywhere}.success{text-align:center;padding:15px}.success>span{display:grid;place-items:center;width:65px;height:65px;border-radius:50%;background:#e4f7ee;color:var(--green);margin:0 auto 15px}.success>span .icon{width:30px;height:30px}.success h2{font-size:24px}.success p{color:var(--muted);font-size:13px}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:var(--navy);color:white;padding:14px 22px;border-radius:10px;box-shadow:0 8px 30px #0003;z-index:100;max-width:90%;font-size:13px;display:none}#toast.show{display:block}#toast.error{background:#a9383b}.login-layout{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:var(--navy);color:white;display:flex;flex-direction:column;justify-content:center;padding:10vw 7vw}.login-story h1{font-size:44px;line-height:1.2;margin-top:50px;max-width:480px}.login-story h1 span{color:#62d5a3}.login-story p{color:#b5ccd9;max-width:390px;margin-top:24px}.login-form{display:flex;align-items:center;justify-content:center;padding:40px}.login-box{width:360px;max-width:100%}.login-box h2{font-size:25px}.login-box>p{color:var(--muted);margin-bottom:26px}.login-box .field{margin:18px 0}.login-box button.primary{width:100%;margin-top:15px}.login-foot{font-size:11px;color:var(--muted);line-height:1.8;margin-top:28px}.mobile-menu{display:none}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.report-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.listitem{padding:12px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px}.listitem:last-child{border-bottom:0}.queue-item{padding:18px;border-bottom:1px solid var(--line)}.queue-item p{margin:5px 0;color:var(--muted);font-size:12px}.login-error{color:var(--red);font-size:12px}.menu-scrim{display:none}.print-only{display:none}
@media(min-width:1500px){.content{padding:40px 50px}.topbar{padding:0 50px}.grid-main{grid-template-columns:minmax(0,1fr) 350px}}
@media(max-width:1160px){.shell{grid-template-columns:210px 1fr}.sidebar{width:210px;padding:27px 14px}.content{padding:25px 22px}.topbar{padding:0 22px}.grid-main{grid-template-columns:1fr}.aside-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.stats{gap:12px}.stat{padding:16px}.welcome{padding:24px}.brand strong{font-size:15px}}
@media(max-width:760px){.shell{display:block}.sidebar{transform:translateX(-100%);width:242px;transition:transform .2s}.sidebar.open{transform:translateX(0)}.sidebar.open+.menu-scrim{display:block;position:fixed;inset:0;background:#102d4877;z-index:9}.mobile-menu{display:inline-flex;padding:7px}.topbar{height:65px;padding:0 15px}.topbar .today,.crumb{display:none}.topbar .user-role{display:none}.content{padding:23px 16px 35px}.pagehead{align-items:flex-start}.pagehead h1{font-size:24px}.pagehead p{font-size:12px}.pagehead>button{padding:10px;font-size:12px}.welcome{display:block;min-height:auto;padding:23px}.welcome h2{font-size:21px}.welcome button{margin-top:20px}.stats{grid-template-columns:1fr 1fr;gap:12px}.stat{padding:15px}.stat strong{font-size:28px}.stat-top{font-size:11px}.stat small{font-size:10px}.stat-icon{width:28px;height:28px}.stat-icon .icon{width:17px}.aside-grid{grid-template-columns:1fr}.fields,.settings-grid{grid-template-columns:1fr}.full{grid-column:auto}.modal-body{padding:19px}.overlay{padding:10px}.modal{max-height:calc(100dvh - 20px)}.modal-header,.modal-footer{padding:17px 19px}.step{font-size:0;gap:0}.step.current{font-size:11px;gap:6px}.toolbar{padding:13px}.toolbar select{max-width:160px}.toolbar .search{flex-basis:100%}.login-layout{display:block}.login-story{padding:28px}.login-story h1{font-size:28px;margin-top:25px}.login-story p{display:none}.login-form{padding:30px 25px}.bottomnote{gap:12px}.report-stats{grid-template-columns:1fr}.kv{gap:15px}.user-name{max-width:120px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}
@media print{body{background:white}.shell,.overlay,#toast,.login-layout{display:none!important}.print-only{display:block;padding:25px}.print-only h1{font-size:23px}.print-only table{white-space:normal}.print-only img{max-width:250px}.print-only .signature-print{max-height:120px}.print-only .receipt{max-width:600px;margin:auto}.print-only p{font-size:12px}}
[hidden]{display:none!important}

/* Settings and reporting, 1.2 */
.sidebar{overflow-y:auto;overscroll-behavior:contain}
.sidebar>*{flex-shrink:0}
.context-picker{margin:26px 0 18px;min-width:0}
.context-picker label{display:block;color:#a5bdce;font-size:10px;letter-spacing:1.2px;margin-bottom:8px}
.context-picker select{width:100%;min-width:0;border:1px solid #ffffff30;border-radius:8px;background:#193e59;color:#fff;padding:11px 8px;font-size:12px}
.context-picker option{background:#193e59;color:#fff}
.context-picker small{display:block;line-height:1.5;color:#a5bdce;font-size:10px;margin-top:8px;overflow-wrap:anywhere}
.settings-tabs{display:flex;gap:7px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding:0 0 15px;margin-bottom:22px}
.settings-tabs button{background:white;border:1px solid var(--line);font-size:12px}
.settings-tabs button.active{background:var(--navy);color:white;border-color:var(--navy)}
.location-intro{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:25px;padding:25px;background:#eaf4f2;border:1px solid #d6e8e1;border-radius:13px}
.location-intro .eyebrow{color:var(--green);font-size:10px}
.location-intro h2{font-size:23px;margin-top:8px}
.location-intro p{max-width:730px;color:#617c77;margin-bottom:0}
.location-intro>.icon{width:55px;height:55px;color:#548e7d}
.location-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:start}
.location-list{padding:0 18px}
.location-item{padding:20px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.location-item:last-child{border-bottom:0}
.location-item b{font-size:13px}
.location-item p{font-size:12px;color:var(--muted);margin:9px 0}
.post-assignment{border:1px solid var(--line);padding:16px;border-radius:10px;max-height:260px;overflow:auto}
.post-assignment legend{padding:0 5px;font-weight:600}
.post-assignment .check{align-items:start;margin:12px 0;font-size:12px;line-height:1.5}
.report-hero{background:linear-gradient(120deg,#102d48,#164c54);border-radius:15px;padding:30px 32px;color:white;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.report-hero .eyebrow{color:#7de1b8;font-size:10px}
.report-hero h2{font-size:26px;margin-top:10px}
.report-hero p{font-size:13px;color:#bfd6de;margin:9px 0 0;max-width:600px}
.report-badge{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:9px;border:1px solid #ffffff30;font-size:12px;white-space:nowrap;background:#ffffff08}
.report-filters{padding:20px;margin-bottom:22px}
.report-period-shortcuts{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}
.report-period-shortcuts button{border-radius:20px;background:#f5f8fa;color:#597486;font-size:11px}
.report-filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
.report-filter-grid .field{margin:0;min-width:0}
.report-filter-grid input,.report-filter-grid select{width:100%;min-width:0}
.report-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0 0 22px}
.report-kpis .stat{border-top:3px solid #1d9f79}
.report-kpis .stat:nth-child(2){border-top-color:#548fc8}
.report-kpis .stat:nth-child(3){border-top-color:#8274b2}
.report-kpis .stat:nth-child(4){border-top-color:#d7a04b}
.report-visuals{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:20px}
.report-chart svg{display:block;width:100%;height:auto;max-height:280px;overflow:visible}
.report-ranking{display:grid;gap:19px}
.report-ranking .row{font-size:12px;align-items:start}
.report-ranking small{display:block;font-size:10px;margin-top:3px}
.rank-track{height:7px;background:#edf3f3;border-radius:5px;overflow:hidden;margin-top:8px}
.rank-track span{display:block;height:100%;border-radius:5px;background:linear-gradient(90deg,#15966c,#65c8a5)}
.report-pagination{display:flex;justify-content:center;align-items:center;gap:18px;padding:18px;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.print-brand{display:flex;align-items:center;gap:14px;padding-bottom:14px;border-bottom:2px solid var(--green)}
.print-brand p{margin:5px 0 0}
.report-print footer{margin-top:20px;border-top:1px solid var(--line);padding-top:12px;font-size:10px;color:var(--muted)}
@media(max-width:1200px){.location-grid{grid-template-columns:1fr}.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.report-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-visuals{grid-template-columns:1fr}.report-badge{display:none}.report-hero{padding:25px}}
@media(max-width:600px){.report-hero h2{font-size:22px}.report-filter-grid{grid-template-columns:1fr}.report-kpis{gap:10px}.report-kpis .stat{padding:14px}.report-kpis .stat strong{font-size:25px}.report-kpis .stat-top{font-size:11px}.report-kpis .stat-icon{display:none}.location-intro{padding:20px}.location-intro>.icon{display:none}.settings-tabs button{font-size:11px}.report-filters{padding:16px}.report-filters .right{margin-left:0}.report-pagination{gap:10px}}
@page access-report{size:A4 landscape;margin:12mm}
@media print{.report-print{page:access-report}.report-print .report-kpis{grid-template-columns:repeat(4,1fr)}.report-print .report-visuals{grid-template-columns:2fr 1fr}.report-print .panel,.report-print .stat{break-inside:avoid}.report-print table{white-space:normal;table-layout:fixed}.report-print th,.report-print td{padding:8px 5px;font-size:9px;overflow-wrap:anywhere}.report-print .smalltext{font-size:9px}.report-print .table-wrap{overflow:visible}.report-print thead{display:table-header-group}.report-print tr{break-inside:avoid}.report-print .report-chart svg{max-height:180px}.report-print .panel-head,.report-print .panel-body{padding:12px}.report-print .stat strong{font-size:23px}.report-print .icon{width:16px;height:16px}}


/* One visitor entry action, readable on compact screens. */
.pagehead{flex-wrap:wrap}.pagehead>[data-action="new-visit"]{flex-shrink:0}
@media(max-width:600px){.pagehead>[data-action="new-visit"]{width:100%}}

/* Layout containment: scroll wide data within its panel, never the whole page. */
.main,.content,.stack,.panel,.panel-body,.field,.table-wrap,.grid-main>*,.settings-grid>*{min-width:0}
.fields,.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
input,select,textarea{min-width:0;max-width:100%}
.table-wrap{max-width:100%;overscroll-behavior-x:contain}
.panel-head{flex-wrap:wrap}
.panel-head h2,.notice,.location-item,.report-ranking,.person b,.person small{overflow-wrap:anywhere}
.person>div{min-width:0}
.settings-tabs button{min-height:44px}
.user-actions{white-space:normal;min-width:170px}
.user-actions button{margin:3px 4px 3px 0}
.modal-header>div{min-width:0}
.modal-header h2{overflow-wrap:anywhere}
.modal-header>button{flex-shrink:0}
.modal-footer{flex-wrap:wrap}
.post-assignment{min-width:0}
@media(max-width:1024px){
 .settings-grid{grid-template-columns:minmax(0,1fr)}
 .topbar .today{display:none}
}
@media(max-width:760px){
 .topbar{height:auto;min-height:65px;padding:10px 15px;align-items:center;gap:10px}
 .topbar>.row:first-child{flex-shrink:0}
 .topbar-actions{flex:1;min-width:0;flex-wrap:wrap;justify-content:flex-end;gap:6px}
 .topbar-actions button,.mobile-menu{min-width:44px;min-height:44px}
 .fields{grid-template-columns:minmax(0,1fr)}
 .settings-tabs button{flex:1 1 160px;font-size:12px;padding:11px}
 .panel-head{padding:16px;gap:10px}
 .panel-body{padding:16px}
 .toolbar{gap:10px}
 .toolbar .right{width:100%;margin-left:0}
 .toolbar .right button{width:100%}
 button{min-height:44px}
 input,select,textarea{font-size:16px}
 .modal-header{gap:12px}
 .modal-footer>button{flex:1 1 130px}
 .modal-body{padding:18px}
 .users-panel .table-wrap{overflow:visible}
 .users-panel table,.users-panel tbody{display:block;white-space:normal}
 .users-panel thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .users-panel tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border-bottom:1px solid var(--line)}
 .users-panel tbody tr:last-child{border-bottom:0}
 .users-panel td{display:block;padding:0;border:0;min-width:0;overflow-wrap:anywhere}
 .users-panel td::before{content:attr(data-label);display:block;color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;margin-bottom:6px}
 .users-panel td:first-child,.users-panel .user-actions{grid-column:1/-1}
 .users-panel td:first-child::before{display:none}
 .users-panel .user-actions button{max-width:100%;width:100%;margin:4px 0}
 .users-panel .person b{font-size:14px}
 .bottomnote{flex-wrap:wrap;line-height:1.5}
 .upload{padding:14px}
 .kv{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
 .topbar .avatar,.topbar-actions>.smalltext{display:none}
 .pagehead>button{width:100%}
 .pagehead p{max-width:100%}
 .settings-tabs{gap:8px}
 .settings-tabs button{flex-basis:calc(50% - 8px);font-size:11px}
 .report-filters .row{flex-wrap:wrap}
 .location-item .row{align-items:flex-start}
 .location-item .row b{min-width:0}
 .location-item .pill{flex-shrink:0}
 .report-chart svg{overflow:hidden}
}
@media(max-width:400px){
 .content{padding:20px 12px 30px}
 .users-panel tbody tr{grid-template-columns:minmax(0,1fr)}
 .stat{padding:12px}
 .stat-top{gap:6px;align-items:flex-start}
 .stat-icon{display:none}
 .stats{gap:8px}
 .settings-tabs button{flex-basis:100%}
 .report-kpis{grid-template-columns:minmax(0,1fr)}
}


/* Employee attendance */
.hr-tabs{display:flex;gap:10px;margin-bottom:20px;flex-wrap:wrap}.hr-sub{display:block;color:var(--muted,#687d8c);font-size:11px;margin-top:5px;line-height:1.5}.hr-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.hr-kpis>.panel{padding:20px}.hr-kpis span{font-size:12px;color:#5e7382}.hr-kpis strong{display:block;font-size:24px;margin-top:8px;color:#12334a}.hr-directory td{vertical-align:middle}fieldset{border:1px solid #dce6ea;border-radius:10px;padding:15px}legend{font-size:13px;font-weight:600;padding:0 6px}@media(max-width:800px){.hr-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-kpis>.panel{padding:14px}.hr-tabs button{flex:1}.hr-kpis strong{font-size:21px}}

/* Reception: large portraits and touch targets for shared tablets. */
.reception-person{display:grid;grid-template-columns:150px 1fr;gap:20px;align-items:center;padding:18px;background:#f4f8f7;border:1px solid #dce7e1;border-radius:14px}.reception-person img,.reception-no-photo{width:150px;height:180px;object-fit:contain;border-radius:9px;background:#e4ebe7}.reception-no-photo{display:grid;place-items:center;text-align:center;color:#5a6860}.reception-person h3{font-size:23px;margin:0 0 8px;overflow-wrap:anywhere}.reception-person p{margin:6px 0}.reception-video{width:100%;max-height:260px;background:#102821;border-radius:12px}.portrait-editor{border-top:1px solid #e2e8e4;padding-top:15px}.portrait-preview{max-width:180px;max-height:180px;object-fit:contain;border-radius:8px}.employee-badge{width:280px;max-width:100%;border:1px solid #cedbd3;border-radius:14px;padding:20px;text-align:center;margin:auto;break-inside:avoid}.employee-badge h2{font-size:21px;overflow-wrap:anywhere}.badge-photo{height:100px;max-width:130px;object-fit:contain}.badge-qr{width:180px;height:180px;margin:8px auto}.badge-qr svg{width:100%;height:100%}#staff-form button,#staff-form select,#staff-code{min-height:46px}#staff-check-label{padding:12px;background:#edf8f2;border:1px solid #cce4d5;border-radius:9px;align-items:flex-start}#staff-form [hidden]{display:none!important}@media(max-width:420px){.reception-person{grid-template-columns:105px 1fr;gap:12px;padding:12px}.reception-person img,.reception-no-photo{width:105px;height:140px}.reception-person h3{font-size:19px}}

.pagehead-actions{justify-content:flex-end}.pagehead-actions button{white-space:nowrap}@media(max-width:600px){.pagehead-actions{width:100%;justify-content:flex-start}.pagehead-actions button{flex:1 1 100%;width:100%}}

/* Mobile and tablet ergonomics, 1.5.1. */
:root{--muted:#617585}body{overflow-wrap:break-word}button:disabled{cursor:not-allowed}.sidebar-close,.mobile-account{display:none}.overlay-open{overflow:hidden}.modal{overscroll-behavior:contain}.modal-footer{position:sticky;bottom:0;z-index:2}.modal-header{align-items:flex-start}.modal-header button{flex-shrink:0;min-width:44px;min-height:44px}.modal-body{min-width:0}.modal-body>*,.listitem>*,.reception-person>*,.pagehead>div{min-width:0}.listitem{align-items:flex-start;flex-wrap:wrap}.listitem>div{flex:1 1 180px;overflow-wrap:anywhere}.listitem>button{flex-shrink:0}.badge-card strong,.badge-card p,.activity-item b,.queue-item,.account-tools p{overflow-wrap:anywhere}.badge-grid{grid-template-columns:repeat(auto-fill,minmax(min(215px,100%),1fr))}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.account-tools{display:grid;gap:12px}.account-tools button{justify-content:flex-start;text-align:left}.check{align-items:center;min-height:44px;padding-block:8px}.check input{width:20px;height:20px;margin:0}.responsive-table td{white-space:normal;overflow-wrap:anywhere}.responsive-table .person{min-width:160px;max-width:320px}.responsive-table td:last-child button{margin:3px}.responsive-table .pill{white-space:normal}.responsive-table th{white-space:normal}.pagehead-actions{min-width:0}.report-pagination{flex-wrap:wrap}.toolbar>button,.toolbar .row{flex-shrink:0}.bottomnote{overflow-wrap:anywhere}.modal :focus-visible{outline-offset:2px}.modal[tabindex]:focus{outline:none}
@media(max-width:1100px){
 .shell{display:block}.main{width:100%}.sidebar{width:min(310px,calc(100vw - 44px));padding:20px;transform:translateX(-100%);visibility:hidden;transition:transform .2s,visibility .2s;z-index:40}.sidebar.open{transform:translateX(0);visibility:visible}.sidebar.open+.menu-scrim{display:block;position:fixed;inset:0;background:#102d4877;z-index:39}.sidebar-close{display:flex;position:absolute;top:10px;right:8px;color:white;padding:8px;width:44px;height:44px}.sidebar .brand{padding-right:32px}.mobile-menu,.mobile-account{display:inline-flex;min-width:44px;min-height:44px}.topbar{height:auto;min-height:65px;padding:10px 16px;gap:12px}.topbar .crumb,.topbar .today,.topbar .avatar,.topbar-actions>.smalltext{display:none}.topbar-actions{flex:1;justify-content:flex-end;gap:10px}.topbar-actions>[data-action=offline-settings],.topbar-actions>[data-action=diagnostics],.topbar-actions>[data-action=my-password],.topbar-actions>[data-action=logout]{display:none}.topbar button,button.small,button.ghost{min-height:44px}.topbar button{min-width:44px}.content{padding:24px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat-top{gap:8px}.aside-grid{grid-template-columns:1fr 1fr}.fields,.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-grid{grid-template-columns:1fr}.toolbar input,.toolbar select,input,select,textarea{font-size:16px}button,a[download]{min-height:44px}.modal-footer>button{min-height:46px}.modal input,.modal select,.modal textarea{min-height:46px}.check input{min-height:20px}.settings-tabs button{min-height:46px}.login-story h1{font-size:34px}.table-wrap:has(.responsive-table){overflow:visible}.responsive-table,.responsive-table tbody{display:block;width:100%;white-space:normal}.responsive-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.responsive-table tbody tr,.users-panel .responsive-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border-bottom:1px solid var(--line)}.responsive-table tbody tr:last-child{border-bottom:0}.responsive-table td,.users-panel .responsive-table td{display:block;min-width:0;padding:0;border:0}.responsive-table td::before{content:attr(data-label);display:block;color:var(--muted);font-size:11px;font-weight:600;margin-bottom:5px}.responsive-table td:first-child,.responsive-table td:last-child,.responsive-table .wide-cell{grid-column:1/-1}.responsive-table td:first-child::before{display:none}.responsive-table td:last-child:has(button)::before{display:none}.responsive-table td:last-child{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.responsive-table td:last-child>button{margin:0;flex:1 1 100px}.responsive-table .person{min-width:0;max-width:none;align-items:flex-start}.responsive-table .person b{font-size:14px;line-height:1.5}.responsive-table .person small,.hr-sub{font-size:12px}.responsive-table .pill{font-size:12px}.users-panel .user-actions button{width:auto}.responsive-table td{font-size:14px;line-height:1.5}.responsive-table .row{flex-wrap:wrap;width:100%}.responsive-table .row button{flex:1 1 110px}
}
@media(max-width:600px){
 .content{padding:20px 16px 32px}.pagehead{gap:16px;margin-bottom:20px}.pagehead>div{width:100%}.pagehead h1{font-size:24px}.pagehead-actions{width:100%;gap:10px}.pagehead-actions button{width:100%;flex:1 1 100%;white-space:normal}.pagehead>button{width:100%}.topbar{padding:8px 12px}.login-story{padding:22px 24px}.login-story h1{font-size:25px;margin-top:20px}.login-story .section-space{display:none}.login-form{padding:28px 24px}.aside-grid,.fields,.form-grid,.report-filter-grid,.settings-grid{grid-template-columns:1fr}.panel-body,.panel-head{padding:16px}.toolbar{padding:14px;gap:12px}.toolbar>.search,.toolbar>select,.toolbar>button,.toolbar>input,.toolbar>.row{width:100%;max-width:none;flex-basis:100%}.toolbar .right{width:100%;margin-left:0}.settings-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px}.settings-tabs button{font-size:12px;line-height:1.4;padding:10px;min-width:0}.hr-tabs{gap:8px}.hr-tabs button{flex:1 1 120px;font-size:13px}.report-period-shortcuts button{flex:1 1 120px}.report-filters>.row button,.report-filters>.row.wrap button{flex:1 1 130px}.report-hero{padding:20px}.report-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.hr-kpis{gap:10px}.hr-kpis strong{font-size:20px}.hr-kpis>.panel{padding:14px}.overlay{padding:8px}.modal{max-height:calc(100dvh - 16px);border-radius:12px;scroll-padding-top:82px;scroll-padding-bottom:90px}.modal-header{padding:14px 16px;gap:8px}.modal-header h2{font-size:18px;line-height:1.45}.modal-body{padding:18px 16px}.modal-footer{padding:12px 16px;gap:8px}.modal-footer>button{flex:1 1 120px}.steps{gap:6px}.step.current{max-width:65%;line-height:1.4}.step span{flex-shrink:0}.modal .row:not(.reception-person){flex-wrap:wrap}.modal .kv{grid-template-columns:1fr;padding:16px}.modal .row>button{flex:1 1 130px}.modal input[type=file]{font-size:14px;padding:10px;overflow:hidden}.signature{height:170px}.post-assignment{max-height:240px}.reception-person{padding:12px;gap:12px;grid-template-columns:96px minmax(0,1fr)}.reception-person img,.reception-no-photo{width:96px;height:128px}.reception-person h3{font-size:18px}.reception-person p{font-size:12px}.reception-person .pill{white-space:normal}.employee-badge{width:100%;padding:16px}.badge-qr{max-width:100%;height:auto;aspect-ratio:1}.responsive-table tbody tr,.users-panel .responsive-table tbody tr{padding:16px;gap:12px}.report-pagination{padding:14px;gap:10px}.report-pagination button{flex:1 1 100px}.bottomnote{display:grid;gap:8px;font-size:11px;line-height:1.5}#toast{bottom:calc(14px + env(safe-area-inset-bottom));width:calc(100% - 28px);max-width:480px;padding:12px 16px}.panel-head>label{min-width:0;width:100%}
}
@media(max-width:359px){.stats,.report-kpis{gap:8px}.stat{padding:12px}.stat-top{font-size:12px}.responsive-table tbody tr,.users-panel .responsive-table tbody tr{grid-template-columns:1fr}.reception-person{grid-template-columns:80px minmax(0,1fr)}.reception-person img,.reception-no-photo{width:80px;height:110px}.reception-person h3{font-size:16px}.settings-tabs{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}

@media print{body.overlay-open{overflow:visible!important}}

.signature-terms, .signature-terms ~ .smalltext { overflow-wrap: anywhere; }

.mfa-qr{max-width:260px;margin:16px auto}.mfa-qr svg{display:block;width:100%;height:auto}.secret-code{overflow-wrap:anywhere;word-break:break-all}.recovery-codes{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin-top:20px}.recovery-codes code{background:#edf4f7;padding:10px;overflow-wrap:anywhere}.import-preview{overflow:auto;max-height:320px}.invitation-list{display:grid;gap:14px;margin-top:18px}.invitation-card{border:1px solid #dde6eb;border-radius:12px;padding:16px;overflow-wrap:anywhere}
