:root{--red:#d92d38;--red-dark:#b91e2b;--orange:#fa8731;--ink:#26313f;--muted:#788391;--line:#e8ebef;--paper:#f5f6f8;--sidebar:252px}*{box-sizing:border-box}body{font-family:Inter,'Segoe UI',Arial,sans-serif;color:var(--ink);background:var(--paper);font-size:14px}a{text-decoration:none}.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fff;border-right:1px solid var(--line);z-index:20;display:flex;flex-direction:column}.sidebar-brand{margin:25px 18px 20px;padding:14px 10px 9px;border-radius:12px;background:#262b34;display:block;text-align:right}.sidebar-brand img{width:100%;height:auto}.sidebar-brand>span{color:#c5cbd4;font-size:9px;letter-spacing:4px;margin-top:9px;display:block}.nav-heading{font-size:10px;color:#a3a9b3;letter-spacing:1.8px;font-weight:700;padding:4px 27px 12px}nav{padding:0 13px;overflow:auto;scrollbar-width:thin;flex:1}.nav-item{display:flex;gap:12px;align-items:center;padding:10px 13px;color:#65707f;font-weight:500;border-radius:8px;margin-bottom:3px;font-size:12px;transition:.12s}.nav-item>span{font-size:18px;width:22px;line-height:1;text-align:center}.nav-item:hover{background:#f7f8fa;color:var(--ink)}.nav-item.active{color:var(--red);background:#fff0f1;font-weight:700;box-shadow:inset 3px 0 var(--red)}.sidebar-footer{border-top:1px solid var(--line);padding:17px 25px;color:#697482;font-size:11px}.sidebar-footer small{display:block;font-size:10px;color:#a4abb4;margin:5px 0 0 14px}.live-dot{display:inline-block;width:6px;height:6px;background:#30b17d;border-radius:50%;margin-right:6px}.app-main{margin-left:var(--sidebar);min-height:100vh;display:flex;flex-direction:column}.topbar{height:79px;flex-shrink:0;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;gap:15px}.topbar-title{color:#778290;font-size:12px}.user-block{display:flex;align-items:center;gap:11px}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#fff0f1;color:var(--red);font-weight:700}.user-block strong{display:block;font-size:12px;font-weight:600}.user-block small{display:block;color:#94a0ac;font-size:10px;margin-top:3px}.logout-button{background:none;border:0;font-size:11px;color:#8a929f;padding:10px;cursor:pointer}.menu-toggle{display:none;border:0;background:transparent;font-size:22px}.content-area{padding:34px;max-width:1800px;width:100%;margin:0 auto;flex:1}.page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:26px;gap:20px}.eyebrow{font-size:9px;letter-spacing:2.1px;color:#9ba3ae;font-weight:700}.page-title h1{font-size:29px;letter-spacing:-1px;font-weight:700;margin:7px 0 7px}.page-title p{margin:0;color:#8c96a3;font-size:12px}.date-chip{border:1px solid #e4e7ed;background:#fff;border-radius:7px;padding:10px 13px;font-size:10px;color:#858e9a;white-space:nowrap}.welcome-banner{display:flex;justify-content:space-between;align-items:center;padding:32px 36px;border-radius:14px;background:#252c38;color:white;overflow:hidden;position:relative;margin-bottom:25px;min-height:226px}.welcome-banner:after{content:'';position:absolute;width:280px;height:280px;border:50px solid #ffffff04;border-radius:50%;right:-70px;bottom:-125px}.welcome-banner .eyebrow{color:#fa9861;font-size:9px}.welcome-banner h2{font-size:27px;line-height:1.3;font-weight:600;letter-spacing:-.6px;margin:13px 0}.welcome-banner p{font-size:11px;color:#aeb6c3;max-width:470px;line-height:1.8;margin:0}.banner-mark{color:var(--red);font-style:italic;font-size:100px;font-weight:900;line-height:1;letter-spacing:-15px;transform:skew(-8deg);padding:0 35px;opacity:.85}.banner-mark span{display:block;font-size:8px;color:#aeb6c3;letter-spacing:4px;font-style:normal;line-height:3;text-align:center}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:25px}.metric{background:white;border:1px solid var(--line);border-radius:11px;padding:21px 22px;position:relative}.metric:before{content:'';position:absolute;top:24px;right:22px;width:7px;height:7px;background:var(--red);border-radius:2px}.metric:nth-child(2):before{background:#eab452}.metric:nth-child(3):before{background:#41b394}.metric:nth-child(4):before{background:#91a1b7}.metric>span{display:block;font-size:11px;color:#7c8795}.metric>strong{display:block;font-size:32px;font-weight:650;letter-spacing:-1px;line-height:1.7}.metric small{font-size:9px;color:#a1a9b4}.panel{padding:24px;background:#fff;border:1px solid var(--line);border-radius:11px;margin-bottom:23px}.panel-heading{margin-bottom:21px}.panel-heading h2{font-size:15px;font-weight:650;margin:0 0 7px;letter-spacing:-.2px}.panel-heading p{color:#98a0ab;font-size:10px;margin:0;line-height:1.6}.app-table{font-size:11px;margin-bottom:0;vertical-align:middle;color:#5c6878;min-width:600px}.app-table thead th{font-size:9px;font-weight:600;color:#98a0ac;background:#f9fafb;border:0;padding:12px 13px;white-space:nowrap}.app-table tbody td{padding:16px 13px;border-color:#f0f1f4;max-width:400px;overflow-wrap:anywhere}.app-table tbody tr:last-child td{border-bottom:0}.status{display:inline-flex;padding:5px 8px;font-size:9px;font-weight:600;border-radius:5px;line-height:1.3;background:#f0f2f5;color:#7c8795;max-width:230px}.status.good{background:#eaf7f0;color:#29996a}.status.bad{background:#fff0f1;color:#d14c58}.status.pending{background:#fff7e7;color:#b48937}.empty-state{padding:45px 20px!important;text-align:center;color:#9ca6b3!important;font-size:11px;line-height:2}.empty-state strong{font-size:13px;font-weight:500;color:#7e8896}.quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.quick-card{border:1px solid var(--line);border-radius:8px;padding:20px 17px;display:block;color:var(--ink);transition:.15s}.quick-card:hover{border-color:#e6b8bd;background:#fffafb}.quick-card span{display:block;font-size:12px;font-weight:600;margin-bottom:8px}.quick-card small{color:#a1a9b3;font-size:10px;line-height:1.8;display:block}.btn{font-size:11px;font-weight:500;border-radius:6px;padding:9px 16px}.btn-primary{background:var(--red);border-color:var(--red)}.btn-primary:hover,.btn-primary:active{background:var(--red-dark)!important;border-color:var(--red-dark)!important}.btn-outline-secondary{border-color:#e0e4e9;color:#737d8a}.btn-sm{font-size:9px;padding:6px 10px}.form-label{font-size:11px;font-weight:500;color:#7f8996;margin-bottom:7px}.form-control,.form-select{font-size:12px;border-color:#e1e6ec;border-radius:6px;padding:10px 12px;color:#4e5d6e;min-height:39px}.form-control:focus,.form-select:focus{border-color:#e9a0a6;box-shadow:0 0 0 3px #d92d380e}.form-text{font-size:10px;color:#a1a9b3;line-height:1.6}.form-check-input:checked{background-color:var(--red);border-color:var(--red)}.form-check-label{font-size:11px;color:#9ba4b0}.search-bar{display:flex;max-width:650px;gap:10px;margin-bottom:20px}.pagination-bar{display:flex;justify-content:space-between;align-items:center;margin-top:20px;color:#9aa4b0;font-size:10px}.notice{padding:17px 21px;border:1px solid #f1ddae;background:#fffbf2;border-radius:8px;color:#9c844e;font-size:11px;line-height:1.8;margin-bottom:22px}.app-footer{display:flex;justify-content:space-between;padding:20px 34px;border-top:1px solid var(--line);font-size:9px;color:#a5adb7}.photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:20px;margin-bottom:24px}.photo-card{border-radius:10px;background:#fff;overflow:hidden;border:1px solid var(--line)}.photo-card img{width:100%;height:220px;object-fit:contain;background:#f0f2f5}.photo-card>div:last-child{padding:18px}.photo-card p{font-size:10px;color:#94a0ad;line-height:1.7;margin:8px 0}.photo-missing{height:200px;display:grid;place-items:center;background:#edf0f4;color:#98a3b1;font-size:11px}.review-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}.reference-placeholder{min-height:250px;display:grid;place-items:center;background:#f4f5f7;color:#9ba5b3;text-align:center}.review-image{max-width:100%;max-height:400px}.auth-page{background:#f5f6f8}.auth-grid{display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh}.auth-brand{background:#272d37;padding:75px 75px 45px;color:white;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-brand:after{content:'';height:430px;width:430px;border:70px solid #ffffff03;border-radius:50%;position:absolute;right:-180px;bottom:0}.auth-brand>img{width:min(100%,380px);margin-bottom:auto}.auth-brand>.eyebrow{color:#ff9c68;margin-top:100px}.auth-brand h1{font-size:36px;font-weight:550;line-height:1.3;letter-spacing:-1px;margin:20px 0}.auth-brand>p{font-size:13px;line-height:1.9;color:#a7b1be;max-width:370px}.brand-rule{height:3px;width:42px;background:var(--orange);margin:25px 0 55px}.auth-brand>small{font-size:9px;color:#858e9d}.auth-form{align-self:center;padding:65px;max-width:520px;width:100%;margin:auto}.auth-icon{width:40px;height:40px;background:#ffeaec;display:grid;place-items:center;border-radius:10px;color:var(--red);font-size:23px;font-weight:800;font-style:italic;margin-bottom:30px}.auth-form h2{font-size:26px;font-weight:650;letter-spacing:-.7px}.auth-form>p{font-size:12px;color:#9ca5b0;margin:12px 0 29px}.auth-form .col-md-6{width:100%}.auth-form .btn{width:100%;padding:13px}.auth-foot{display:block;color:#a8b0bc;font-size:9px;text-align:center;margin-top:28px}.setup-notice{padding:16px;background:#fff;border:1px solid var(--line);border-radius:8px;font-size:11px;margin-top:22px;color:#8a96a5}.setup-notice p{margin:8px 0}.setup-notice a{color:var(--red)}.app-alert{font-size:12px}.auth-page>.app-alert{position:fixed;top:12px;right:20px;z-index:99;max-width:420px}.btn:disabled{opacity:.65}
@media(min-width:1600px){.content-area{padding:40px 50px}.welcome-banner{min-height:250px}}@media(max-width:1150px){:root{--sidebar:220px}.content-area{padding:25px}.metric-grid,.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.banner-mark{font-size:70px;padding:0 20px}.auth-brand{padding:55px 40px}.auth-form{padding:45px}.topbar{padding:0 25px}.auth-brand h1{font-size:30px}}@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s}.menu-open .sidebar{transform:translateX(0)}.app-main{margin-left:0}.menu-toggle{display:inline-block;margin-right:8px}.topbar-title{display:none}.topbar{height:68px;padding:0 18px}.content-area{padding:22px 16px}.page-title{align-items:flex-start}.page-title h1{font-size:24px}.page-title p{font-size:11px;line-height:1.7}.date-chip{display:none}.welcome-banner{padding:25px}.welcome-banner h2{font-size:23px}.banner-mark{display:none}.metric-grid{gap:10px}.metric{padding:18px 14px}.metric:before{right:13px}.metric>span{font-size:10px}.metric small{font-size:8px}.panel{padding:19px 16px}.quick-grid{gap:10px}.quick-card{padding:15px}.app-footer{padding:20px 16px;gap:10px;line-height:1.7}.app-footer span{display:none}.auth-grid{grid-template-columns:1fr}.auth-brand{padding:28px;min-height:230px}.auth-brand>img{width:230px;margin:0 0 22px}.auth-brand>.eyebrow{margin-top:10px}.auth-brand h1{font-size:23px;margin:12px 0}.auth-brand>p,.auth-brand>small,.brand-rule{display:none}.auth-form{padding:32px 25px}.auth-icon{display:none}.auth-form h2{font-size:23px}.review-grid{grid-template-columns:1fr}}
.people-controls{display:grid;grid-template-columns:minmax(180px,1fr) 180px auto;gap:14px;align-items:end;margin-bottom:22px}.people-controls .form-label{font-size:12px;color:var(--muted);font-weight:600}.people-directory-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.people-range,.people-page-summary{font-size:12px;color:var(--muted)}.people-table td{vertical-align:middle}.people-table th:first-child{width:84px}.people-table .person-name{font-weight:600;min-width:180px}.person-photo-frame{position:relative;display:inline-flex;vertical-align:middle;align-items:center;justify-content:center;width:56px;height:72px;flex:0 0 56px;overflow:hidden;border:1px solid var(--line);border-radius:8px;background:#f7f8fa}.person-photo-frame img{display:block;width:100%;height:100%;object-fit:contain;background:#f7f8fa}.person-photo-frame img[hidden],.person-photo-placeholder[hidden]{display:none!important}.person-photo-placeholder{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;width:100%;height:100%;font-size:9px;line-height:1.15;text-align:center;color:#929ca8;padding:3px}.person-photo-placeholder svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.4}.person-photo-large{width:144px;height:192px;flex-basis:144px;border-radius:12px}.person-photo-large .person-photo-placeholder{font-size:12px;gap:10px}.person-photo-large .person-photo-placeholder svg{width:48px;height:48px}.people-pagination{display:flex;flex:initial;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:18px 22px;overflow:visible;border-top:1px solid var(--line)}.people-pagination .pagination{gap:4px}.people-pagination .page-link{border-radius:6px!important;color:var(--ink);border-color:var(--line);padding:7px 10px}.people-pagination .active .page-link{background:var(--red);border-color:var(--red);color:#fff}.people-pagination .page-link:focus{box-shadow:0 0 0 3px #d92d3820}.people-pagination .disabled .page-link{color:#a8afb9;background:#fafbfc}.people-sync-note{display:flex;align-items:center;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:12px;margin:4px 0 20px}.people-sync-note small{flex-basis:100%;font-size:11px}.person-profile-modal .modal-content{border:0;border-radius:16px;overflow:hidden}.person-profile-modal .modal-header,.person-profile-modal .modal-footer{padding:18px 24px;border-color:var(--line)}.person-profile-modal .modal-body{padding:24px}.person-profile-heading{display:flex;align-items:center;gap:24px;margin-bottom:24px}.person-profile-heading h3{font-size:23px;line-height:1.3;margin-bottom:8px}.person-profile-document{color:var(--muted);margin-bottom:12px}.person-profile-details{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;margin:0}.person-profile-details>div{padding:12px 0;border-bottom:1px solid var(--line);min-width:0}.person-profile-details dt{font-size:11px;font-weight:500;color:var(--muted);margin-bottom:4px}.person-profile-details dd{margin:0;font-size:14px;overflow-wrap:anywhere}.person-profile-source{font-size:11px;color:var(--muted);margin:20px 0 0}@media(max-width:600px){.people-controls{grid-template-columns:1fr 130px}.people-controls>div:first-child{grid-column:1/-1}.people-pagination{padding:16px;align-items:flex-start;flex-direction:column}.people-pagination .page-link{padding:7px 9px}.person-profile-heading{gap:16px;align-items:flex-start}.person-profile-heading h3{font-size:19px}.person-profile-heading .person-photo-large{width:96px;height:128px;flex-basis:96px}.person-profile-details{grid-template-columns:1fr}.person-profile-modal .modal-body{padding:18px}}
.email-preview-text{white-space:pre-wrap;overflow-wrap:anywhere;font-family:inherit;font-size:12px;line-height:1.8;padding:20px;background:#f8f9fb;border:1px solid #edf0f4;border-radius:8px}
.email-variables p{font-size:11px;color:#7f8996}.email-variables button{font-family:monospace}
.monitor-toolbar,.monitor-tools,.monitor-filter{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.monitor-toolbar{justify-content:space-between;margin-bottom:22px}.monitor-filter label{font-weight:600;font-size:12px}.monitor-filter select{width:240px}.monitor-tools>span{font-size:11px;color:#6c7885}.monitor-health{display:flex;justify-content:space-between;gap:24px;align-items:center;padding:22px 26px;background:#fff;border:1px solid var(--line);border-left:4px solid #b9a069;border-radius:12px;margin-bottom:20px}.monitor-health-fresh{border-left-color:#24a574}.monitor-health-error{border-left-color:var(--red)}.monitor-health p{margin:12px 0 5px;font-size:13px}.monitor-health small{color:#71808e;font-size:11px}.monitor-cadence{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#71808e;text-align:right}.monitor-cadence strong{font-size:13px;color:var(--ink)}.monitor-delay-note{color:#8e7134;font-size:12px;margin:0 0 20px}.monitor-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:28px}.monitor-metrics>div{padding:18px 20px;border:1px solid var(--line);background:#fff;border-radius:10px}.monitor-metrics span{display:block;font-size:11px;color:#7b8795}.monitor-metrics strong{display:block;font-size:28px;margin-top:6px;line-height:1.2}.monitor-section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:16px}.monitor-section-heading h2{font-size:17px;font-weight:650;margin:0}.monitor-section-heading span,.monitor-section-heading p{color:#778593;font-size:11px;margin:5px 0 0}.monitor-device-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(265px,1fr));gap:18px;margin-bottom:30px}.monitor-device{min-width:0;border:1px solid var(--line);border-radius:12px;background:#fff;overflow:hidden}.monitor-device header{padding:15px 17px;display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.monitor-device h3{font-size:12px;font-weight:700;overflow-wrap:anywhere;margin:0 0 5px}.monitor-device header div>span{font-size:10px;color:#7b8795}.monitor-activity{font-size:9px;color:#7b8795;white-space:nowrap}.monitor-activity.is-recent{color:#17875e}.monitor-activity.is-recent:before{content:'';display:inline-block;width:6px;height:6px;border-radius:50%;background:#24a574;margin-right:4px}.monitor-capture{position:relative;width:60px;height:72px;background:#f1f3f6;border-radius:7px;overflow:hidden;display:flex;align-items:center;justify-content:center}.monitor-capture-large{width:100%;height:210px;border-radius:0;background:#edf0f4}.monitor-capture a{width:100%;height:100%;display:flex;align-items:center;justify-content:center}.monitor-capture img{width:100%;height:100%;object-fit:contain;display:block}.monitor-capture img[hidden],.monitor-photo-placeholder[hidden]{display:none!important}.monitor-photo-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:7px;gap:5px;color:#8b98a7;font-size:9px;line-height:1.3}.monitor-photo-placeholder>span{font-size:24px;line-height:1}.monitor-capture-large .monitor-photo-placeholder{font-size:12px;gap:10px}.monitor-capture-large .monitor-photo-placeholder>span{font-size:40px}.monitor-device-detail{padding:17px}.monitor-person{display:flex;flex-direction:column;gap:5px;min-width:155px}.monitor-person strong{font-size:12px;color:#303e4d;line-height:1.5}.monitor-person>span{font-size:10px;color:#7a8795}.monitor-mark-time{display:flex;flex-direction:column;gap:4px;margin:13px 0;font-size:12px}.monitor-mark-time time{font-size:11px;color:#71808e}.monitor-device-detail>p{font-size:10px;color:#7a8795;margin:0 0 13px}.monitor-events .app-table td{vertical-align:middle;line-height:1.8}.monitor-events .status{white-space:normal}.monitor-footnote{font-size:11px;color:#82909e;line-height:1.8}.monitor-selection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.monitor-selection{display:flex;align-items:flex-start;gap:14px;padding:16px;border:1px solid var(--line);border-radius:9px;cursor:pointer}.monitor-selection:has(input:checked){border-color:#e9a0a6;background:#fff9f9}.monitor-selection .form-check-input{flex:0 0 16px;margin-top:3px}.monitor-selection>span{display:flex;flex-direction:column;gap:5px;font-size:11px;color:#728090}.monitor-selection strong{font-size:12px;color:var(--ink)}.monitor-selection small{font-size:10px;color:#8b97a4}.monitor-wall .sidebar,.monitor-wall .topbar,.monitor-wall .app-footer,.monitor-wall .page-title{display:none}.monitor-wall .app-main{margin-left:0}.monitor-wall .content-area{max-width:none;padding:24px}.monitor-wall .monitor-device-grid{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}@media(max-width:900px){.monitor-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.monitor-health{align-items:flex-start}.monitor-toolbar{align-items:flex-start;flex-direction:column}}@media(max-width:600px){.monitor-health{flex-direction:column;padding:18px}.monitor-cadence{text-align:left}.monitor-selection-grid{grid-template-columns:1fr}.monitor-filter{width:100%}.monitor-filter select{width:100%}.monitor-filter label{width:100%}.monitor-device-grid{grid-template-columns:1fr}.monitor-metrics>div{padding:15px}.monitor-metrics span{font-size:10px}.monitor-tools{gap:8px}.monitor-tools>span{width:100%}}
.matrix-legend{display:flex;flex-wrap:wrap;gap:10px 18px;padding:2px 0 18px}.matrix-legend>span{display:inline-flex;align-items:center;gap:7px;font-size:10px;color:#677787}.matrix-code{min-width:30px;height:27px;border-radius:5px;display:inline-flex;align-items:center;justify-content:center;font-size:10px}.matrix-rule-note{font-size:11px;color:#7c8996;line-height:1.8;margin:0 0 22px}.matrix-panel{padding:0;overflow:hidden}.matrix-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:22px 24px}.matrix-heading h2{font-size:17px;font-weight:650;margin:0 0 6px}.matrix-heading p,.matrix-heading>span{font-size:11px;color:#7b8795;margin:0}.matrix-scroll{overflow:auto;max-height:72vh;position:relative;outline-offset:-3px}.attendance-matrix{border-collapse:separate;border-spacing:0;width:100%;font-size:11px}.attendance-matrix th,.attendance-matrix td{border-right:1px solid #e5e9ef;border-bottom:1px solid #e5e9ef;padding:8px 7px;text-align:center;vertical-align:middle}.attendance-matrix thead th{background:#283442;color:#fff;position:sticky;top:0;z-index:5}.attendance-matrix thead tr:first-child{height:48px}.attendance-matrix thead tr:nth-child(2) th{top:48px}.attendance-matrix .matrix-person-head{min-width:230px;width:230px;left:0;z-index:8;text-align:left;padding-left:18px}.attendance-matrix .matrix-kind-head{left:230px;min-width:70px;z-index:8}.matrix-date-head{min-width:42px;height:48px;font-size:10px;line-height:1.2}.matrix-date-head>span{display:block;font-size:12px;font-weight:700;margin-top:4px}.attendance-matrix thead .matrix-weekend{background:#45596b}.attendance-matrix .matrix-date-sub{font-size:8px;font-weight:400;height:20px;padding:3px;color:#bac5d0}.matrix-summary-head{min-width:85px;max-width:100px;white-space:normal;font-size:10px}.attendance-matrix .matrix-person{position:sticky;left:0;background:#fff;z-index:3;text-align:left;min-width:230px;max-width:230px;padding:12px 16px;box-shadow:3px 0 8px #26313f05}.matrix-person strong{display:block;font-size:11px;color:#344454;line-height:1.45}.matrix-person>span,.matrix-person>small{display:block;font-weight:400;font-size:9px;color:#82909e;margin-top:4px}.matrix-person>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:195px}.matrix-toggle{display:inline-block;border:1px solid #e0e5ec;border-radius:4px;background:#f8f9fb;color:#718091;font-size:9px;padding:3px 7px;margin-top:8px;line-height:1.4}.matrix-toggle:hover,.matrix-toggle:focus{border-color:#d92d38;color:#d92d38;background:#fff4f4}.attendance-matrix .matrix-kind{position:sticky;left:230px;min-width:70px;background:#f8f9fb;z-index:3;font-size:10px;color:#788694;font-weight:500}.attendance-matrix [hidden]{display:none!important}.matrix-day{height:40px;min-width:42px;font-variant-numeric:tabular-nums;line-height:1.35}.matrix-day a{display:block;color:inherit;line-height:1.35;min-height:20px}.matrix-day a:focus{outline:2px solid #46596c;outline-offset:2px}.matrix-day b{font-size:11px}.matrix-day small{display:block;font-size:9px;opacity:.8;margin-top:3px}.matrix-person-summary{font-variant-numeric:tabular-nums;font-weight:650;background:#fff;min-width:85px;font-size:11px}.attendance-matrix tbody:nth-of-type(even) .matrix-person,.attendance-matrix tbody:nth-of-type(even) .matrix-person-summary{background:#fafbfd}.matrix-attended{background:#d9f0e4!important;color:#176840}.matrix-late,.matrix-ongoing,.matrix-unknown,.matrix-pending{background:#fff0bb!important;color:#805f0d}.matrix-vacation{background:#d5f0f0!important;color:#176d70}.matrix-leave{background:#e5ddf5!important;color:#65448a}.matrix-holiday{background:#dae7f4!important;color:#365d85}.matrix-rest{background:#e3e8ed!important;color:#4c6174}.matrix-incomplete{background:#ffe2d4!important;color:#9d4c27}.matrix-rejected{background:#fbe1e3!important;color:#a33844}.matrix-empty{background:#f1f3f6!important;color:#7b8795}.matrix-carry{background:#e8edf4!important;color:#5f718a}.matrix-future,.matrix-inactive,.matrix-restricted{background:#f5f6f8!important;color:#8b95a2}.matrix-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 24px;font-size:11px;color:#7b8795;border-top:1px solid var(--line)}@media(max-width:600px){.attendance-matrix .matrix-person,.attendance-matrix .matrix-person-head{min-width:170px;max-width:170px;width:170px}.attendance-matrix .matrix-kind,.attendance-matrix .matrix-kind-head{left:170px;min-width:58px}.matrix-person strong{font-size:10px}.matrix-person>small{max-width:140px}.matrix-heading,.matrix-pagination{padding:18px}.matrix-scroll{max-height:70vh}.matrix-legend{gap:8px 12px}.matrix-legend>span{font-size:9px}}
.matrix-advanced summary{font-size:11px;color:#748291;cursor:pointer;padding:4px 0}.matrix-heading-actions{display:flex;align-items:center;gap:14px}.matrix-heading-actions>span{font-size:11px;color:#7b8795}.attendance-matrix .matrix-person{padding:8px 12px}.matrix-person strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:204px;font-size:10.5px;line-height:1.4}.matrix-person>span{display:inline-block;font-size:9px;margin-top:3px}.matrix-person>small{display:none}.matrix-toggle{float:right;margin:3px 0 0 5px;font-size:8px;padding:1px 4px}.matrix-wall .sidebar,.matrix-wall .topbar,.matrix-wall .app-footer,.matrix-wall .page-title,.matrix-wall .matrix-filters,.matrix-wall .matrix-legend,.matrix-wall .matrix-rule-note{display:none}.matrix-wall .app-main{margin-left:0}.matrix-wall .content-area{padding:20px;max-width:none}.matrix-wall .matrix-scroll{max-height:calc(100vh - 150px)}.matrix-wall .matrix-person,.matrix-wall .matrix-person-head{width:200px;min-width:200px;max-width:200px}.matrix-wall .matrix-kind,.matrix-wall .matrix-kind-head{left:200px;min-width:60px}.matrix-wall .matrix-person strong{max-width:176px}.matrix-wall .matrix-summary-head,.matrix-wall .matrix-person-summary{min-width:66px}.matrix-wall .matrix-date-head,.matrix-wall .matrix-day{min-width:38px;padding-left:4px;padding-right:4px}@media(max-width:600px){.matrix-heading-actions{align-items:flex-start;flex-direction:column;gap:8px}.matrix-person strong{max-width:144px}.matrix-wall .content-area{padding:12px}}
.attendance-detail-person h3{font-size:19px;margin:0 0 6px}.attendance-detail-person p{color:var(--muted);margin:0 0 6px}.attendance-detail-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px 0;margin:0}.attendance-detail-summary>div{background:var(--paper);border-radius:8px;padding:12px}.attendance-detail-summary dt{font-size:11px;color:var(--muted);font-weight:500;margin-bottom:6px}.attendance-detail-summary dd{font-size:13px;margin:0;font-weight:600}.attendance-detail-notes{font-size:12px;color:#65707f;padding-left:20px;margin-bottom:20px}.attendance-detail-events th,.attendance-detail-events td{font-size:12px;vertical-align:middle}.attendance-detail-events td:first-child{white-space:nowrap}.attendance-detail-events small{display:block;color:var(--muted);margin-top:5px}.attendance-detail-photo{width:72px;height:90px;object-fit:contain;background:var(--paper);border-radius:6px}.attendance-detail-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;color:var(--muted);font-size:12px}.download-status{display:flex;align-items:center;gap:12px;min-height:48px}.download-progress{width:100%;height:12px;margin-top:18px;accent-color:var(--red)}#file-download-modal [hidden],#attendance-detail-modal [hidden]{display:none!important}@media(max-width:700px){.attendance-detail-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){#file-download-modal .spinner-border{animation-duration:2s}}

/* Administrative dashboard: local SVG charts, direct labels and accessible data tables. */
.dashboard-welcome{display:flex;justify-content:space-between;align-items:center;gap:24px;background:#283442;color:#fff;padding:25px 30px;border-radius:12px;margin-bottom:24px}
.dashboard-welcome .eyebrow{color:#ffc09c}.dashboard-welcome h2{font-size:25px;letter-spacing:-.6px;margin:8px 0}.dashboard-welcome p{font-size:12px;color:#c1cad4;margin:0;line-height:1.7}
.dashboard-welcome .btn{flex-shrink:0}.dashboard-period{display:flex;gap:18px 25px;align-items:end;flex-wrap:wrap;padding:20px 24px}.dashboard-period>div:first-child{margin-right:auto;max-width:390px}
.dashboard-period h2,.dashboard-section-title h2{font-size:17px;font-weight:650;letter-spacing:-.2px;margin:0 0 7px}.dashboard-period p,.dashboard-section-title p{font-size:11px;line-height:1.7;color:#788391;margin:0}
.dashboard-period form{display:flex;align-items:end;gap:10px}.dashboard-period .form-control{min-width:145px}.dashboard-presets{display:flex;gap:6px;width:100%}
.dashboard-refresh-state{font-size:10px;color:#788391;margin:-9px 0 21px}.dashboard-section-title{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-bottom:18px;flex-wrap:wrap}
.dashboard-source{display:flex;flex-direction:column;align-items:end;gap:7px}.dashboard-source small{font-size:10px;color:#788391}.dashboard-definition{font-size:11px;color:#788391;line-height:1.7;margin:-10px 0 24px}
.dashboard-today .app-table{font-size:12px}.dashboard-today .app-table td{padding-top:13px;padding-bottom:13px}.dashboard-today .app-table td:first-child{font-weight:600;color:#344454}.dashboard-today .dashboard-section-title .btn{font-size:10px}
.dashboard-history-title{margin:28px 0 18px}.dashboard-period-totals{display:flex;gap:20px;flex-wrap:wrap}.dashboard-period-totals span{font-size:10px;color:#788391}.dashboard-period-totals strong{display:block;font-size:20px;color:#344454;margin-bottom:3px}
.dashboard-chart-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:22px;align-items:start}.dashboard-chart{margin-bottom:0;min-width:0;padding:23px}.dashboard-chart .panel-heading{margin-bottom:17px}.dashboard-chart .panel-heading h2{font-size:15px}.dashboard-chart .panel-heading p{font-size:11px;color:#788391;min-height:36px;line-height:1.6}
.dashboard-line-chart,.dashboard-hour-chart{display:block;width:100%;height:auto;overflow:visible}.dashboard-grid-line{stroke:#e5eaf0;stroke-width:1}.dashboard-axis{fill:#788391;font-size:12px;font-family:inherit}
.dashboard-line{fill:none;stroke:#d92d38;stroke-width:3;stroke-linejoin:round;stroke-linecap:round}.dashboard-line-area{fill:#d92d380c}.dashboard-line-point{fill:#fff;stroke:#d92d38;stroke-width:2}.dashboard-line-chart a:hover .dashboard-line-point,.dashboard-line-chart a:focus .dashboard-line-point{fill:#d92d38;stroke-width:4}
.dashboard-chart-key{display:flex;align-items:center;justify-content:center;gap:8px;font-size:11px;color:#657586;margin:2px 0 14px}.dashboard-chart-key>span{height:3px;width:25px;background:#d92d38;border-radius:3px}
.dashboard-bars{display:flex;flex-direction:column;gap:15px}.dashboard-bar>div:first-child{display:flex;justify-content:space-between;gap:14px;align-items:baseline;margin-bottom:6px}.dashboard-bar strong{font-size:11px;font-weight:600;color:#344454;overflow-wrap:anywhere}.dashboard-bar>div>span{font-size:10px;color:#788391;text-align:right;flex-shrink:0}
.dashboard-bar-track{height:9px;background:#f0f3f7;border-radius:5px;overflow:hidden}.dashboard-bar-track>span{display:block;height:100%;background:#526c90;border-radius:5px}.dashboard-group-bar .dashboard-bar-track>span{background:#2c9c81}
.dashboard-hour-bar{fill:#e99342;outline-offset:2px}.dashboard-hour-bar:hover,.dashboard-hour-bar:focus{fill:#c8691f;outline:2px solid #344454}.dashboard-data-table{border-top:1px solid #edf0f4;padding-top:13px;margin-top:17px}.dashboard-data-table summary{font-size:11px;color:#64778b;cursor:pointer;padding:4px 0}.dashboard-data-table .table-responsive{max-height:300px;margin-top:10px}.dashboard-data-table .app-table{min-width:380px}.dashboard-data-table .app-table td{padding:9px 12px}
.dashboard-chart-note,.dashboard-updated{font-size:10px;color:#788391;line-height:1.8}.dashboard-chart-note{margin:16px 0 0}.dashboard-updated{margin:20px 0 25px}.dashboard-empty{min-height:230px;display:flex;align-items:center;justify-content:center;text-align:center;color:#8d99a6;font-size:12px;background:#fafbfd;border:1px dashed #e5eaf0;border-radius:9px;padding:22px}
@media(max-width:1100px){.dashboard-chart-grid{grid-template-columns:1fr}.dashboard-chart .panel-heading p{min-height:0}.dashboard-line-chart,.dashboard-hour-chart{max-height:340px}.dashboard-period>div:first-child{width:100%;max-width:none}}
@media(max-width:600px){.dashboard-welcome{padding:22px;align-items:flex-start;flex-direction:column;gap:16px}.dashboard-welcome h2{font-size:22px}.dashboard-period{padding:18px}.dashboard-period form{flex-wrap:wrap;width:100%}.dashboard-period form>div{flex:1;min-width:130px}.dashboard-period .form-control{min-width:0;width:100%}.dashboard-source{align-items:start}.dashboard-chart{padding:18px}.dashboard-chart-grid{gap:18px}.dashboard-bar>div:first-child{align-items:start}.dashboard-bar>div>span{font-size:9px;max-width:150px}.dashboard-period-totals{gap:15px}.dashboard-period-totals strong{font-size:17px}}

#dashboard-today{scroll-margin-top:20px}
.dashboard-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px;margin-top:4px;color:#788391;font-size:11px}
.dashboard-page-controls{display:flex;align-items:center;gap:10px;flex:0 0 auto;overflow:visible;padding:0}
.dashboard-page-link{display:inline-flex;align-items:center;min-height:32px;padding:5px 10px;border:1px solid #e3e8ee;border-radius:6px;background:#fff;color:#526171;white-space:nowrap}
.dashboard-page-link:hover{background:#f5f7f9;color:#26313f;border-color:#bcc7d3}
.dashboard-page-link:focus-visible{outline:2px solid #526c90;outline-offset:2px}
.dashboard-page-link.is-disabled{color:#a5adb7;background:#fafbfc;border-color:#eef1f4}
.dashboard-page-position{white-space:nowrap;font-size:11px}.dashboard-page-position strong{color:#526171;font-weight:600}
@media(max-width:600px){.dashboard-pagination{justify-content:center}.dashboard-pagination>span{width:100%;text-align:center}.dashboard-page-controls{gap:8px}}

.portal-body{background:#f5f6f8;font-size:14px}.portal-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px max(22px,calc((100% - 1180px)/2));background:#fff;border-bottom:1px solid var(--line)}.portal-header>a{display:flex;align-items:center;gap:14px;color:#445366;font-size:13px;font-weight:600;white-space:nowrap}.portal-header img{width:150px;height:66px;object-fit:contain;background:#26313f;border-radius:8px;padding:7px}.portal-header nav{display:flex;align-items:center;justify-content:end;gap:20px;padding:0;flex:0;overflow:visible;white-space:nowrap}.portal-header nav>a{color:#526171;font-size:12px}.portal-header form{margin:0}.portal-main{max-width:1180px;margin:0 auto;padding:30px 22px;min-height:calc(100vh - 175px)}.portal-main h1{font-size:25px;font-weight:650;letter-spacing:-.5px;margin:8px 0 18px}.portal-main h2{font-size:18px;font-weight:600;margin:10px 0 14px}.portal-main p{line-height:1.75}.portal-main .app-table{min-width:650px;font-size:12px}.portal-main .app-table td{padding:13px 10px}.portal-main small{color:#7b8795}.portal-footer{text-align:center;font-size:11px;color:#88929e;padding:22px}.portal-access{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;margin:40px 0}.portal-intro{background:#263442;padding:45px 35px;border-radius:14px;color:#fff;min-height:360px}.portal-intro h1{font-size:38px;line-height:1.25;margin:25px 0}.portal-intro p{color:#c5ceda}.portal-intro a{color:#fff;font-size:12px}.portal-access>.panel{padding:32px}.portal-access p{font-size:12px;color:#778391}.portal-access summary{cursor:pointer}.portal-welcome{padding:20px 0 25px}.portal-period{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.portal-period .mb-3{margin-bottom:0!important}.portal-period .form-control{min-width:165px}.portal-period button{margin-top:24px}.portal-period>span{font-size:11px;color:#85909e;margin-top:24px}.portal-status{display:inline-flex;padding:5px 9px;border-radius:6px;font-size:11px;background:#eef1f5;color:#536379;white-space:nowrap}.portal-status-approved{background:#e0f2e8;color:#23714b}.portal-status-rejected,.portal-status-cancelled{background:#fae7e7;color:#983d43}.portal-status-pending,.portal-status-needs_info{background:#fff1cc;color:#835f14}.portal-status-in_review{background:#e1edfa;color:#3e6690}.portal-note{border-left:3px solid #bdcbd9;background:#f5f8fb;padding:12px 16px;border-radius:0 6px 6px 0;font-size:12px}.portal-text{overflow-wrap:anywhere}.portal-timeline{list-style:none;padding:0;border-left:2px solid #e1e7ef;margin:22px 0 30px 8px}.portal-timeline li{position:relative;padding:0 0 20px 22px}.portal-timeline li:before{content:'';position:absolute;width:10px;height:10px;border-radius:50%;background:#607995;left:-6px;top:6px;border:2px solid #fff}.portal-timeline li>div{font-size:11px;color:#7b8795}.portal-timeline p{margin:8px 0 0;font-size:12px}.portal-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px;color:#788391;font-size:11px}.portal-pagination>div{display:flex;gap:7px}.portal-mark-photo{width:80px;height:86px;object-fit:contain;border-radius:6px;background:#f1f4f7}.portal-correction-fields{background:#f4f7fa;border:1px solid #dfe6ee;border-radius:8px;padding:16px;margin-bottom:20px}.portal-correction-fields p{font-size:11px;margin-bottom:0}.portal-activation-code{font-size:24px;letter-spacing:3px;font-family:monospace}.portal-main [hidden]{display:none!important}
@media(max-width:800px){.portal-header{padding:12px 18px;align-items:flex-start;flex-direction:column;gap:12px}.portal-header nav{justify-content:start;flex-wrap:wrap;gap:10px 18px}.portal-header img{width:120px;height:52px}.portal-main{padding:22px 15px}.portal-access{grid-template-columns:1fr;gap:20px;margin:12px 0}.portal-intro{min-height:0;padding:25px}.portal-intro h1{font-size:29px;margin:15px 0}.portal-access>.panel{padding:23px}.portal-period{gap:12px}.portal-period>div{flex:1;min-width:135px}.portal-period button{margin-top:0}.portal-main h1{font-size:23px}.portal-pagination{flex-wrap:wrap}}
.auth-page{display:flex;flex-direction:column;min-height:100vh}.auth-page .auth-grid{flex:1;min-height:0}
