:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#172033;background:#f5f7fb;font-synthesis:none;--blue:#2563eb;--line:#e2e8f0;--muted:#64748b}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}.hidden{display:none!important}.muted{color:var(--muted)}.eyebrow{margin:0 0 5px;color:#2563eb;font-size:10px;font-weight:800;letter-spacing:.1em}.brand-mark{display:grid;width:52px;height:52px;place-items:center;border-radius:15px;background:linear-gradient(135deg,#2563eb,#3b82f6);color:#fff;font-weight:800;box-shadow:0 8px 20px #2563eb28}.brand-mark.small{width:38px;height:38px;border-radius:12px;font-size:12px}.primary,.secondary,.text-button{border:0;cursor:pointer}.primary{border-radius:9px;background:linear-gradient(135deg,#2563eb,#3478ef);padding:10px 15px;color:#fff;font-size:11px;font-weight:750;box-shadow:0 4px 10px #2563eb26}.primary:hover{filter:brightness(.97)}button:disabled{cursor:not-allowed;opacity:.55}.secondary{border:1px solid #d6deea;border-radius:9px;background:#fff;padding:9px 14px;color:#526077;font-size:11px}.text-button{background:none;color:#2563eb;font-size:10px;font-weight:700}.wide{width:100%}.icon{display:grid;width:34px;height:34px;place-items:center;border:0;border-radius:8px;background:transparent;color:#617089;cursor:pointer}.mobile{display:none}.login-screen{display:grid;min-height:100vh;place-items:center;background:radial-gradient(circle at top right,#dce9ff,transparent 40%),#f7f9fc;padding:20px}.login-card{display:grid;width:min(410px,100%);gap:14px;border:1px solid #e2e8f0;border-radius:18px;background:#fff;padding:34px;box-shadow:0 25px 70px #17203318}.login-card h1{margin:0}.login-card p{margin:0}.login-card label,.form-grid label{display:grid;gap:6px;color:#45556f;font-size:10px;font-weight:700}.error{border-radius:8px;background:#fff0f2;padding:9px;color:#b42343;font-size:11px}.app-shell{min-height:100vh}.sidebar{position:fixed;z-index:30;inset:0 auto 0 0;display:flex;width:256px;flex-direction:column;border-right:1px solid var(--line);background:#fff}.sidebar>header{display:flex;min-height:72px;align-items:center;gap:11px;border-bottom:1px solid var(--line);padding:10px 15px}.sidebar>header>div:nth-child(2){display:grid;gap:2px;line-height:1.25}.sidebar>header strong{font-size:13px}.sidebar>header small{color:#45658f;font-size:8px;font-weight:800;letter-spacing:.09em}.sidebar>header .icon{margin-left:auto}.sidebar nav{flex:1;overflow-y:auto;padding:8px 10px 22px;scrollbar-width:thin}.sidebar nav section{margin-top:10px}.sidebar nav p{margin:0;padding:7px 14px 5px;color:#41658f;font-size:9px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}.sidebar nav button{display:flex;width:100%;align-items:center;gap:12px;border:0;border-radius:11px;background:transparent;padding:10px 12px;color:#42526b;text-align:left;cursor:pointer}.sidebar nav button:hover{background:#f7f9fc;color:#1d4ed8}.sidebar nav button.active{background:#edf2f8;color:#1554d1;font-weight:750}.sidebar nav svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sidebar nav span{font-size:12px}.sidebar>footer{display:flex;min-height:69px;align-items:center;gap:10px;border-top:1px solid var(--line);padding:10px 15px}.sidebar>footer .avatar{display:grid;width:35px;height:35px;flex:none;place-items:center;border-radius:50%;background:#2d67e9;color:#fff;font-size:11px;font-weight:800}.sidebar>footer>div:nth-child(2){display:grid;min-width:0;flex:1}.sidebar>footer strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.sidebar>footer small{overflow:hidden;color:#718096;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.main{min-height:100vh;margin-left:256px}.topbar{position:sticky;z-index:15;top:0;display:flex;height:63px;align-items:center;gap:12px;border-bottom:1px solid var(--line);background:#ffffffeb;padding:0 26px;backdrop-filter:blur(10px)}.topbar>div{display:grid}.topbar strong{font-size:13px}.topbar small,.topbar>span{color:#7a879a;font-size:9px}.topbar>span{margin-left:auto}.content{display:grid;gap:20px;padding:26px 28px 60px}.page-title{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.page-title h1{margin:0;color:#182236;font-size:23px;letter-spacing:-.02em}.page-title>div>p:last-child{margin:5px 0 0;color:#6b7890;font-size:11px}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metrics.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.metric{display:flex;min-height:105px;align-items:center;justify-content:space-between;border:1px solid var(--line);border-radius:13px;background:#fff;padding:16px}.metric>div{display:grid;gap:4px}.metric span{color:#67758c;font-size:10px}.metric strong{font-size:23px;letter-spacing:-.03em}.metric small{color:#93a0b2;font-size:8px}.metric i{display:grid;width:36px;height:36px;place-items:center;border-radius:10px;background:#eaf1ff;color:#2563eb}.metric.orange i{background:#fff2e5;color:#e87817}.metric.green i{background:#e9faf2;color:#159669}.metric.purple i{background:#f2edff;color:#7757d7}.metric svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:16px}.card{border:1px solid var(--line);border-radius:13px;background:#fff;padding:18px}.card h2{margin:0;font-size:14px}.card>p,.card-head p{margin:4px 0 0;color:#78869a;font-size:9px}.card-head{display:flex;align-items:start;justify-content:space-between}.recent{display:grid;margin-top:13px}.recent button,.tracking-list button{display:flex;align-items:center;gap:10px;border:0;border-top:1px solid #edf1f5;background:#fff;padding:10px 0;text-align:left;cursor:pointer}.recent button:first-child,.tracking-list button:first-child{border-top:0}.recent button>span,.tracking-list button>div{display:grid;min-width:0;flex:1;gap:3px}.recent strong,.tracking-list strong{font-size:10px}.recent small,.tracking-list small{overflow:hidden;color:#8490a2;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.recent em,.tracking-list em{font-size:8px;font-style:normal}.job-dot{display:grid;width:30px;height:30px;flex:none;place-items:center;border-radius:8px;background:#edf4ff;color:#2563eb;font-size:8px;font-style:normal;font-weight:800}.type-bars{display:grid;gap:12px;margin-top:20px}.type-bars>div{display:grid;grid-template-columns:95px 1fr 28px;align-items:center;gap:8px;color:#66758d;font-size:9px}.type-bars i{height:7px;overflow:hidden;border-radius:9px;background:#edf1f6}.type-bars i b{display:block;height:100%;border-radius:inherit;background:#3b82f6}.toolbar{display:flex;flex-wrap:wrap;gap:9px}.toolbar label{display:flex;min-width:250px;flex:1;align-items:center;border:1px solid #d9e1ec;border-radius:9px;background:#fff;padding-left:11px}.toolbar svg{width:15px;height:15px;fill:none;stroke:#8290a5;stroke-width:1.7}.toolbar input{border:0;outline:0}.toolbar select{width:auto;min-width:150px}.table-wrap{overflow:auto;border:1px solid #dfe5ed;border-radius:11px;background:#fff}.table{width:100%;border-collapse:collapse;white-space:nowrap}.table th{background:#f8fafc;padding:12px;color:#687790;font-size:8px;letter-spacing:.04em;text-align:left;text-transform:uppercase}.table td{border-top:1px solid #e7ebf0;padding:12px;color:#53627a;font-size:9px}.table tbody tr[data-job]{cursor:pointer}.table tbody tr[data-job]:hover{background:#f7faff}.table td strong{color:#172033}.table small{color:#8b97a9}.amount{font-weight:750}.amount.income{color:#13885e}.amount.expense{color:#c64141}.status,.priority{display:inline-flex;width:max-content;border-radius:99px;background:#eef2f7;padding:4px 7px;color:#59677a;font-size:8px;font-style:normal;font-weight:700}.status.assigned,.status.active,.status.income,.status.approved{background:#eaf1ff;color:#245cc7}.status.travelling,.status.arrived,.priority.high,.status.draft{background:#fff3de;color:#a9650a}.status.in_progress,.priority.urgent{background:#ffe8ec;color:#bd2948}.status.completed,.status.paid{background:#e7f8ef;color:#168158}.status.cancelled,.status.expense{background:#f1f3f6;color:#697386}.priority.low{background:#eef8ff;color:#267aa3}.empty{display:grid;min-height:220px;place-items:center;align-content:center;gap:7px;color:#8490a2;font-size:10px}.empty.small{min-height:100px}.loading{display:grid;min-height:55vh;place-items:center;color:#7a8798;font-size:11px}.tracking-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.7fr);gap:16px}.map-panel{position:relative;min-height:470px;overflow:hidden;border:1px solid #dce4ee;border-radius:13px;background:#eaf1ed}.map-grid{position:absolute;inset:0;background:linear-gradient(30deg,transparent 40%,#fff8 41%,#fff8 43%,transparent 44%),linear-gradient(120deg,transparent 45%,#bcd5c688 46%,#bcd5c688 48%,transparent 49%),repeating-linear-gradient(0deg,#dce8e1 0 1px,transparent 1px 52px),repeating-linear-gradient(90deg,#dce8e1 0 1px,transparent 1px 52px);opacity:.85}.map-center{position:absolute;inset:0;display:grid;place-items:center;align-content:center;gap:8px;text-align:center}.map-center svg{width:40px;height:40px;fill:none;stroke:#2563eb;stroke-width:1.5}.map-center span{max-width:320px;color:#617384;font-size:10px}.tracking-list{display:grid;margin-top:12px}.pulse{width:9px;height:9px;border-radius:50%;background:#32b37b;box-shadow:0 0 0 5px #32b37b18}.announcement-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.announcement>div{display:flex;align-items:center;justify-content:space-between}.announcement time{color:#8a97a8;font-size:8px}.announcement h2{margin-top:15px}.announcement>p{min-height:45px;color:#58677c;font-size:10px;line-height:1.65;white-space:pre-wrap}.announcement footer{border-top:1px solid #edf0f4;padding-top:10px;color:#8995a6;font-size:8px}.ranking{display:grid;margin-top:15px}.ranking>div{display:flex;align-items:center;gap:10px;border-top:1px solid #edf1f5;padding:10px 0}.ranking>div:first-child{border-top:0}.ranking b{display:grid;width:25px;height:25px;place-items:center;border-radius:7px;background:#eef3fa;color:#43658d;font-size:9px}.ranking span{display:grid;flex:1}.ranking strong{font-size:10px}.ranking small{color:#8995a6;font-size:8px}.ranking em{color:#2563eb;font-size:10px;font-style:normal;font-weight:750}.history-tabs{display:grid;gap:18px}.history-tabs>article>h2{font-size:14px}.audit-list{display:grid;margin-top:13px}.audit-list>div{display:flex;align-items:center;gap:10px;border-top:1px solid #edf0f4;padding:9px 0}.audit-list>div:first-child{border-top:0}.audit-list i{display:grid;width:28px;height:28px;place-items:center;border-radius:8px;background:#eef4fc;color:#3668a8}.audit-list svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.7}.audit-list span{display:grid;flex:1}.audit-list strong{font-size:9px}.audit-list small,.audit-list time{color:#8794a6;font-size:8px}.report>header{display:flex;align-items:center;gap:12px;border-bottom:1px solid #edf0f4;padding-bottom:14px}.report .metrics{margin:18px 0}.report h3{margin-top:22px;font-size:12px}.report-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.report-grid>div{display:grid;gap:5px;border-radius:9px;background:#f5f8fc;padding:12px}.report-grid span{color:#728095;font-size:8px}.report-grid strong{font-size:18px}.summary{display:grid;gap:8px;margin-top:14px}.summary p{margin:0 0 8px;color:#657389;font-size:10px}.summary strong{font-size:10px}.alert{position:fixed;z-index:100;right:22px;top:78px;max-width:420px;border:1px solid #cadcf8;border-radius:10px;background:#f2f7ff;padding:12px 15px;color:#1e55ad;font-size:11px;box-shadow:0 10px 30px #16244320}.modal-layer{position:fixed;inset:0;z-index:80;display:grid;place-items:center;background:#0f172a99;padding:16px}.modal,.drawer{max-height:92vh;overflow:auto;background:#fff;box-shadow:0 30px 90px #0d172f42}.modal{width:min(720px,100%);border-radius:16px}.modal>header,.drawer>header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e6eaf0;padding:18px 20px}.modal h2,.drawer h2{margin:0;font-size:18px}.modal>form,.modal-body{padding:20px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.form-grid .span-2{grid-column:1/-1}input,select,textarea{width:100%;border:1px solid #d5deea;border-radius:9px;background:#fff;padding:10px 11px;color:#263449;font-size:11px;outline:none}input:focus,select:focus,textarea:focus{border-color:#6b9af4;box-shadow:0 0 0 3px #2563eb12}.form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;border-top:1px solid #edf0f4;padding-top:16px}.drawer-layer{place-items:stretch end;padding:0}.drawer{width:min(540px,100%);height:100%;max-height:100%;border-radius:0}.drawer-body{display:grid;gap:17px;padding:18px}.drawer .summary{border-radius:11px;background:#f6f8fc;padding:15px}.drawer-form,.section{display:grid;gap:9px;border-top:1px solid #e6eaf0;padding-top:15px}.drawer-form h3,.section h3{margin:0;font-size:12px}.drawer-form .row,.status-actions{display:flex;flex-wrap:wrap;gap:8px}.status-actions button{border:0;border-radius:8px;background:#2768e8;color:#fff;padding:9px 12px;font-size:10px;font-weight:800;cursor:pointer}.status-actions button.cancelled{background:#fff0f2;color:#b72945}.timeline{display:grid}.timeline article{position:relative;display:flex;gap:10px;padding-bottom:15px}.timeline article:before{position:absolute;left:4px;top:12px;bottom:0;width:1px;background:#dbe4f1;content:""}.timeline article:last-child:before{display:none}.timeline i{z-index:1;width:9px;height:9px;margin-top:3px;border:2px solid #2768e8;border-radius:50%;background:#fff}.timeline div{display:grid;gap:3px}.timeline strong{font-size:10px}.timeline span{color:#526077;font-size:10px}.timeline small{color:#8a95a6;font-size:8px}.photos{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.photos a{display:grid;gap:5px;color:#526077;font-size:9px;text-decoration:none}.photos img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;background:#eef1f5}.backdrop{position:fixed;inset:0;z-index:20;border:0;background:#0f172a80}
select{appearance:none;background-color:#fff;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6b82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 10px center;background-repeat:no-repeat;padding-right:30px;text-align:center;text-align-last:center}.tech-nav{display:none}.technician-mode{background:#f6f8fb}.technician-mode .sidebar{display:none}.technician-mode .main{min-height:100vh;margin:0}.technician-mode .topbar{height:60px;padding:0 16px}.technician-mode .topbar:before{display:grid;width:33px;height:33px;place-items:center;border-radius:10px;background:#2563eb;color:#fff;font-size:10px;font-weight:800;content:"FC"}.technician-mode .topbar strong{font-size:13px}.technician-mode .topbar small{color:#4d6a91;font-size:8px;font-weight:700;letter-spacing:.08em}.technician-mode .topbar>span{display:none}.technician-mode .content{width:min(440px,100%);margin:auto;padding:18px 12px 100px}.technician-mode .tech-nav{position:fixed;z-index:25;bottom:0;left:50%;display:grid;width:min(440px,100%);height:66px;grid-template-columns:repeat(5,1fr);transform:translateX(-50%);border:1px solid #dbe3ee;border-bottom:0;background:#fff;box-shadow:0 -5px 20px #25364d0a}.tech-nav button{display:grid;place-items:center;align-content:center;gap:4px;border:0;background:transparent;color:#60718a;font-size:8px;cursor:pointer}.tech-nav button.active{color:#1760f0}.tech-nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.tech-page{display:grid;gap:11px}.tech-page>header h1{margin:0;font-size:17px}.tech-page>header p{margin:3px 0 0;color:#607391;font-size:10px}.tech-dashboard>header{margin:2px 0 8px}.tech-dashboard>header h1{font-size:20px}.tech-dashboard>header h1 span{font-size:18px}.clock-banner{display:flex;align-items:center;gap:12px;border:1px solid #f2cd4e;border-radius:12px;background:#fffdf5;padding:15px;text-align:left;cursor:pointer}.clock-banner.clocked{border-color:#8bdac2;background:#f3fffb}.clock-banner>svg,.attendance-state>svg{width:38px;height:38px;flex:none;border-radius:50%;background:#fff1bd;padding:10px;fill:none;stroke:#ee8a00;stroke-width:1.8}.clock-banner>span,.attendance-state>span{display:grid;gap:2px}.clock-banner strong,.attendance-state strong{font-size:11px}.clock-banner small,.attendance-state small{color:#60718b;font-size:9px}.tech-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.tech-stats article{display:grid;min-height:106px;place-items:center;align-content:center;gap:6px;border:1px solid #dfe6ef;border-radius:12px;background:#fff;box-shadow:0 2px 5px #25364d0a}.tech-stats svg{width:31px;height:31px;border-radius:10px;background:#edf4ff;padding:8px;fill:none;stroke:#2768e8;stroke-width:1.8}.tech-stats article:nth-child(2) svg{background:#eafbf5;stroke:#13a779}.tech-stats article:nth-child(3) svg{background:#fff7df;stroke:#ef8b00}.tech-stats strong{font-size:20px}.tech-stats span{color:#718097;font-size:8px}.tech-section{display:grid;gap:8px;margin-top:4px}.tech-section h2{display:flex;align-items:center;gap:6px;margin:0;font-size:12px}.tech-section h2 svg{width:15px;height:15px;fill:none;stroke:#1760f0;stroke-width:1.8}.tech-announcement{display:grid;gap:5px;border:1px solid #9fbfff;border-radius:11px;background:#edf3ff;padding:12px}.tech-announcement .urgent{width:max-content;border:1px solid #ff9c9c;border-radius:99px;background:#fff1f1;padding:3px 8px;color:#e0202f;font-size:8px}.tech-announcement strong{font-size:11px}.tech-announcement p{display:-webkit-box;overflow:hidden;margin:0;color:#546c8e;font-size:9px;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}.tech-empty{display:grid;min-height:80px;place-items:center;align-content:center;gap:5px;border:1px solid #dce4ee;border-radius:11px;background:#fff;color:#65768e;font-size:9px}.tech-empty.large{min-height:128px}.tech-empty svg{width:30px;height:30px;fill:none;stroke:#708198;stroke-width:1.7}.tech-empty strong{color:#111827;font-size:11px}.tech-task-list{display:grid;gap:8px}.tech-task-list button{display:flex;align-items:center;gap:8px;border:1px solid #dce4ee;border-radius:11px;background:#fff;padding:12px;text-align:left}.tech-task-list button>div{display:grid;min-width:0;flex:1;gap:4px}.tech-task-list strong{font-size:10px}.tech-task-list small{overflow:hidden;color:#6f7e92;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.tech-title{margin-bottom:2px}.tech-title.row{display:flex;align-items:center;justify-content:space-between}.time-card{display:grid;place-items:center;border:1px solid #dce4ee;border-radius:11px;background:#fff;padding:12px}.time-card strong{font-size:24px}.time-card span{color:#697b94;font-size:8px}.attendance-state{display:flex;align-items:center;gap:10px;border:1px solid #f2cd4e;border-radius:10px;background:#fffdf5;padding:11px}.attendance-state.ready{border-color:#86d4bd;background:#f4fff9}.attendance-state>svg{width:28px;height:28px;padding:7px}.verify-card{display:grid;gap:9px;border:1px solid #dce4ee;border-radius:11px;background:#fff;padding:11px}.verify-card header{display:flex;align-items:center;justify-content:space-between}.verify-card header span{display:flex;align-items:center;gap:6px;font-size:9px;font-weight:700}.verify-card svg{width:14px;height:14px;fill:none;stroke:#526c90;stroke-width:1.7}.verify-card em{border-radius:99px;background:#fff0f0;padding:3px 6px;color:#e34545;font-size:7px;font-style:normal}.verify-card em.allowed{background:#e9faf3;color:#12845f}.verify-card p{margin:0;border-radius:7px;background:#fff8df;padding:8px;color:#a46a0b;font-size:8px}.verify-card .verify-ok{background:#eafaf3;color:#17845f}.selfie-button{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d5deea;border-radius:8px;padding:8px;font-size:9px;font-weight:700;cursor:pointer}.selfie-button input{display:none}.selfie-preview{display:flex;align-items:center;gap:10px}.selfie-preview img{width:48px;height:48px;border-radius:50%;object-fit:cover}.selfie-preview strong{font-size:9px}.tech-action{width:100%;border:0;border-radius:8px;background:#2c68e8;padding:11px;color:#fff;font-size:10px;font-weight:750}.tech-action:disabled{background:#83c9ba;color:#fff}.section-row{display:flex;align-items:center;justify-content:space-between}.mini-selects{display:flex;gap:5px}.mini-selects select{width:auto;min-width:0;border-radius:9px;padding:6px 24px 6px 9px;background-position:right 7px center;font-size:8px}.history-stats{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.history-stats article,.salary-stats article{display:grid;gap:7px;border:1px solid #dce4ee;border-radius:10px;background:#fff;padding:11px}.history-stats span,.salary-stats span{color:#657790;font-size:8px}.history-stats strong{color:#1760f0;font-size:14px}.daily-records,.salary-card,.profile-card,.profile-hero{border:1px solid #dce4ee;border-radius:11px;background:#fff;padding:12px}.daily-records h3,.salary-card h2,.profile-card h2{margin:0 0 9px;font-size:9px}.daily-records>div{display:grid;grid-template-columns:1fr 1fr 1fr;border-top:1px solid #edf1f5;padding:8px 0;color:#53647c;font-size:8px}.daily-records p,.salary-empty{margin:20px 0;text-align:center;color:#708098;font-size:8px}.task-pills{display:flex;gap:6px}.task-pills button{border:0;border-radius:99px;background:#eff3f8;padding:7px 13px;color:#51647e;font-size:8px}.task-pills button.active{background:#2563eb;color:#fff}.salary-title{display:flex;align-items:center;gap:8px}.salary-title>svg{width:16px;height:16px;fill:none;stroke:#1760f0;stroke-width:1.7}.salary-selects{justify-content:flex-start}.salary-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.salary-stats strong{font-size:13px}.salary-card{display:grid}.salary-card>small{margin-top:-6px;color:#6c7c91;font-size:7px}.salary-card>div{display:grid;grid-template-columns:1fr auto 1fr auto;gap:8px;border-top:1px solid #edf1f5;padding:7px 0}.salary-card>div:first-of-type{border-top:0}.salary-card span{color:#63758e;font-size:8px}.salary-card strong{font-size:8px}.salary-card strong.net{font-size:10px}.profile-hero{display:grid;place-items:center;gap:5px;padding:16px}.profile-avatar{display:grid;width:62px;height:62px;place-items:center;border-radius:50%;background:#2f6eea;color:#fff;font-size:22px;font-weight:700}.profile-hero>strong{font-size:11px}.profile-hero>span{color:#687a91;font-size:8px}.profile-hero>em{display:flex;align-items:center;gap:4px;border-radius:99px;background:#edf4ff;padding:4px 8px;color:#1760f0;font-size:7px;font-style:normal}.profile-hero svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:1.7}.profile-card>div{display:grid;grid-template-columns:52px 1fr auto;align-items:center;gap:7px;font-size:8px}.profile-card>div span{color:#687a91}.profile-card>div small{color:#718096}.profile-form{display:grid;gap:11px}.profile-form label{display:grid;gap:5px;font-size:8px;font-weight:700}.profile-form label small{color:#718096;font-size:7px;font-weight:400}.profile-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}.profile-stats article{display:grid;place-items:center;gap:5px;border:1px solid #dce4ee;border-radius:10px;background:#fff;padding:12px}.profile-stats strong{color:#1760f0}.profile-stats span{color:#687a91;font-size:8px}.logout-button{border:1px solid #ff4545;border-radius:8px;background:#fff;color:#ef3333;padding:9px;font-size:9px}
.settings-tabs{display:flex;gap:6px;border-bottom:1px solid #dfe6ef}.settings-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 14px;color:#66768e;font-size:10px;cursor:pointer}.settings-tabs button.active{border-color:#2563eb;color:#1d5ed4;font-weight:750}.office-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.office-card{display:grid;gap:10px;border:1px solid #dce4ee;border-radius:13px;background:#fff;padding:20px;box-shadow:0 2px 5px #25364d0a}.office-card header{display:flex;align-items:center;gap:9px}.office-card header>i{display:grid;width:40px;height:40px;place-items:center;border-radius:11px;background:#edf4ff;color:#2563eb}.office-card header>i svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8}.office-card header>div{display:grid;flex:1}.office-card header strong{font-size:12px}.office-card header span{color:#718198;font-size:9px}.office-card .icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.office-card .icon.danger{color:#d34545}.office-card p{display:flex;align-items:center;gap:7px;margin:0;color:#5f7390;font-size:10px}.office-card p svg{width:14px;height:14px;fill:none;stroke:#66809f;stroke-width:1.7}.office-card small{color:#65758b;font-size:9px}.office-card em{color:#079564;font-size:9px;font-style:normal;font-weight:700}.table-select{min-width:150px;padding-top:7px;padding-bottom:7px;font-size:9px}.check-field{display:flex!important;grid-template-columns:18px 1fr!important;align-items:center}.check-field input{width:16px;height:16px;margin:0}.office-map{position:relative;z-index:0;height:280px;overflow:hidden;border:1px solid #d5deea;border-radius:9px;background:#edf1f5}.map-help{margin:-5px 0 2px;color:#6c7e96;font-size:8px}.map-unavailable{display:grid;height:100%;place-items:center;color:#66758c;font-size:10px}.toggle-field{display:flex!important;align-items:center;justify-content:space-between;border:1px solid #d9e2ed;border-radius:10px;padding:10px 12px}.toggle-field>span{display:grid;gap:2px}.toggle-field strong{font-size:9px}.toggle-field small{color:#718096;font-size:7px;font-weight:400}.toggle-field input{position:relative;width:34px;height:19px;flex:none;appearance:none;border:0;border-radius:99px;background:#dbe4ef;padding:0;cursor:pointer;box-shadow:none}.toggle-field input:after{position:absolute;top:2px;left:2px;width:15px;height:15px;border-radius:50%;background:#fff;content:"";transition:.15s}.toggle-field input:checked{background:#2563eb}.toggle-field input:checked:after{transform:translateX(15px)}.profile-hero>span+span{color:#2563eb}
@media(max-width:1100px){.metrics{grid-template-columns:repeat(2,1fr)}.grid-two,.tracking-layout{grid-template-columns:1fr}.announcement-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.mobile{display:grid}.technician-mode .topbar .mobile{display:none}.sidebar{transform:translateX(-100%);transition:transform .18s}.sidebar.open{transform:none}.main{margin-left:0}.topbar{padding:0 14px}.content{padding:20px 12px 55px}.technician-mode .content{padding:18px 12px 100px}.page-title{align-items:stretch;flex-direction:column}.page-title .primary,.page-title .secondary{width:100%}.metrics,.metrics.compact{grid-template-columns:1fr 1fr}.toolbar{flex-direction:column}.toolbar label,.toolbar select{width:100%;min-width:0}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.announcement-grid,.office-grid{grid-template-columns:1fr}.report-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:460px){.metrics,.metrics.compact{grid-template-columns:1fr}.login-card{padding:27px 22px}.topbar>span{display:none}.photos{grid-template-columns:repeat(2,1fr)}.metric{min-height:92px}}
@media print{.sidebar,.topbar,.page-title,.alert{display:none!important}.main{margin:0}.content{padding:0}.content>:not(.report){display:none}.report{border:0}.report .metric{break-inside:avoid}}

/* Clean, high-legibility admin visual system */
@media (min-width:761px){
  :root{--blue:#2563eb;--line:#dce3ec;--muted:#64748b;color:#172033;background:#f7f9fc}
  body{background:#f7f9fc;color:#172033;font-size:14px;line-height:1.45}
  .sidebar{width:310px;border-color:#dce3ec;box-shadow:none}
  .sidebar>header{min-height:88px;gap:13px;padding:14px 20px}
  .brand-mark.small{width:43px;height:43px;border-radius:12px;box-shadow:none}
  .brand-mark.small svg{width:22px;height:22px;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
  .sidebar>header strong{font-size:17px;line-height:1.22;letter-spacing:-.01em}
  .sidebar>header small{font-size:10px;letter-spacing:.08em}
  .sidebar nav{padding:10px 12px 24px}
  .sidebar nav section{margin-top:8px}
  .sidebar nav p{padding:10px 12px 7px;color:#55708f;font-size:11px;letter-spacing:.055em}
  .sidebar nav button{min-height:45px;gap:14px;border-radius:11px;padding:10px 12px;color:#43526a}
  .sidebar nav button:hover{background:#f3f6fa;color:#175cd3}
  .sidebar nav button.active{background:#edf2f8;color:#1554d1;font-weight:650}
  .sidebar nav svg{width:19px;height:19px;stroke-width:1.75}
  .sidebar nav span{font-size:16px}
  .sidebar>footer{min-height:78px;padding:12px 20px}
  .sidebar>footer .avatar{width:42px;height:42px;font-size:14px}
  .sidebar>footer strong{font-size:14px}
  .sidebar>footer small{font-size:11px}
  .main{margin-left:310px}
  .topbar{height:82px;padding:0 30px;border-color:#dce3ec;background:#fff}
  .topbar>div:first-of-type{gap:1px}
  .topbar strong{font-size:18px;letter-spacing:-.02em}
  .topbar small{display:none}
  .topbar>span#today{display:none}
  .topbar-actions{display:flex!important;align-items:center;gap:15px;margin-left:auto}
  .topbar-actions .icon{width:40px;height:40px;color:#172033}
  .topbar-actions svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
  .notification-button{position:relative}
  .notification-button i{position:absolute;top:9px;right:8px;width:7px;height:7px;border:2px solid #fff;border-radius:50%;background:#ef4444}
  .top-avatar{display:grid!important;width:42px;height:42px;place-items:center;border-radius:50%;background:#2c68e8;color:#fff;font-size:14px!important;font-weight:750}
  .top-chevron{color:#64748b!important;font-size:17px!important}
  .content{gap:24px;padding:32px 30px 64px}
  .page-title{align-items:center}
  .page-title .eyebrow{display:none}
  .page-title h1{font-size:26px;font-weight:750;letter-spacing:-.03em}
  .page-title>div>p:last-child{margin-top:3px;font-size:14px}
  .primary{min-height:44px;border-radius:10px;padding:10px 20px;background:#2867e8;font-size:14px;font-weight:700;box-shadow:0 2px 5px #1d4ed829}
  .secondary{min-height:42px;border-color:#d7dfe9;border-radius:9px;padding:9px 16px;font-size:14px}
  .text-button{font-size:13px}
  .icon{width:38px;height:38px;border-radius:9px}
  .icon:hover{background:#f1f5f9;color:#1d5ed4}
  .card,.office-card,.metric,.table-wrap{border-color:#dce3ec;box-shadow:0 1px 3px #1720330b}
  .card{border-radius:13px;padding:22px}
  .card h2{font-size:15px}
  .card>p,.card-head p{font-size:13px}
  .metrics{gap:16px}
  .metric{min-height:122px;border-radius:13px;padding:20px}
  .metric span{font-size:13px}
  .metric strong{font-size:28px}
  .metric small{font-size:11px}
  .metric i{width:42px;height:42px;border-radius:11px}
  .metric svg{width:20px;height:20px}
  .grid-two{gap:20px}
  .recent button,.tracking-list button{padding:13px 0}
  .recent strong,.tracking-list strong{font-size:13px}
  .recent small,.tracking-list small{font-size:11px}
  .recent em,.tracking-list em{font-size:10px}
  .job-dot{width:36px;height:36px;font-size:10px}
  .type-bars>div{grid-template-columns:125px 1fr 34px;font-size:12px}
  .toolbar{gap:12px}
  .toolbar label{min-height:44px}
  .toolbar svg{width:17px;height:17px}
  input,select,textarea{min-height:42px;border-color:#d4dde8;border-radius:9px;padding:10px 12px;font-size:13px}
  .toolbar select{min-width:180px}
  .table-wrap{border-radius:12px}
  .table th{padding:14px 16px;font-size:10px}
  .table td{padding:15px 16px;font-size:12px}
  .table small{font-size:10px}
  .status,.priority{padding:5px 9px;font-size:10px}
  .empty{font-size:13px}
  .empty.small{min-height:120px}
  .announcement-grid{gap:18px}
  .announcement time,.announcement footer{font-size:10px}
  .announcement>p{font-size:13px}
  .ranking strong{font-size:13px}
  .ranking small{font-size:11px}
  .ranking em{font-size:12px}
  .report-grid span{font-size:11px}
  .summary{gap:10px}
  .summary p{font-size:13px;line-height:1.55}
  .summary strong{font-size:13px}
  .settings-tabs{gap:10px}
  .settings-tabs button{padding:11px 16px;font-size:13px}
  .office-grid{gap:20px}
  .office-card{gap:12px;min-height:225px;border-radius:13px;padding:24px}
  .office-card header{gap:12px}
  .office-card header>i{width:44px;height:44px;border-radius:12px}
  .office-card header>i svg{width:22px;height:22px}
  .office-card header strong{font-size:16px}
  .office-card header span{font-size:13px}
  .office-card p{gap:9px;font-size:14px}
  .office-card p svg{width:17px;height:17px}
  .office-card small,.office-card em{font-size:12px}
  .modal{width:min(780px,100%);border-radius:14px}
  .modal>header,.drawer>header{padding:20px 24px}
  .modal h2,.drawer h2{font-size:18px}
  .modal>form,.modal-body{padding:24px}
  .form-grid{gap:16px}
  .form-grid label{gap:7px;font-size:12px}
  .form-actions{margin-top:22px;padding-top:18px}
  .office-map{height:310px}
  .map-help{font-size:11px}
  .toggle-field{padding:11px 13px}
  .toggle-field strong{font-size:12px}
  .toggle-field small{font-size:10px}
  .table-select{font-size:12px}
}

@media (min-width:761px) and (max-width:1180px){
  .sidebar{width:260px}
  .main{margin-left:260px}
  .sidebar nav span{font-size:14px}
  .content{padding-left:22px;padding-right:22px}
}

/* Technician portal: readable mobile-first cards and unambiguous attendance states */
.technician-mode .topbar-actions{display:none!important}
.technician-mode .content{width:min(520px,100%);padding:22px 16px calc(90px + env(safe-area-inset-bottom))}
.technician-mode .tech-nav{width:min(520px,100%);height:calc(68px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}
.tech-nav button{font-size:10px;font-weight:600}
.tech-nav svg{width:20px;height:20px}
.tech-page{gap:14px}
.tech-page>header h1{font-size:20px;letter-spacing:-.02em}
.tech-page>header p{font-size:12px}
.tech-dashboard>header h1{font-size:24px}
.tech-dashboard>header h1 span{font-size:21px}
.clock-banner{min-height:76px;padding:16px}
.clock-banner.completed{border-color:#cbd5e1;background:#f8fafc}
.clock-banner.completed>svg{background:#e9faf3;stroke:#159669}
.clock-banner strong,.attendance-state strong{font-size:14px}
.clock-banner small,.attendance-state small{font-size:11px;line-height:1.4}
.tech-stats article{min-height:112px}
.tech-stats strong{font-size:22px}
.tech-stats span{font-size:9px;font-weight:700;letter-spacing:.03em}
.tech-section h2{font-size:14px}
.tech-announcement{padding:14px}
.tech-announcement .urgent{font-size:9px}
.tech-announcement strong{font-size:13px}
.tech-announcement p{font-size:11px}
.tech-empty{font-size:11px;line-height:1.45}
.tech-empty strong{font-size:13px}
.tech-task-list button{padding:14px}
.tech-task-list strong{font-size:13px}
.tech-task-list small{font-size:10px}
.time-card{padding:15px}
.time-card strong{font-size:30px;letter-spacing:-.03em}
.time-card span{font-size:10px}
.attendance-state{min-height:70px;padding:14px}
.attendance-state.completed{border-color:#86d4bd;background:#f4fff9}
.attendance-state.completed>svg{background:#e4f8ef;stroke:#159669}
.verify-card{gap:11px;padding:14px}
.verify-card header span{font-size:12px}
.verify-card em{padding:4px 8px;font-size:9px;font-weight:700}
.verify-card p{font-size:10.5px;line-height:1.45}
.verify-card .secondary.wide{min-height:40px;font-size:11px}
.selfie-button{min-height:42px;font-size:11px}
.selfie-preview img{width:60px;height:60px}
.selfie-preview span{display:grid;gap:4px}
.selfie-preview strong{font-size:11px}
.tech-action{min-height:48px;border-radius:10px;font-size:14px;cursor:pointer}
.tech-action.clock-out{background:#dc3545}
.tech-action:disabled{cursor:not-allowed;background:#9bb3ad}
.attendance-help{margin:-4px 8px 2px;color:#6b7b91;font-size:10px;line-height:1.45;text-align:center}
.tech-inline-error{border:1px solid #fecaca;border-radius:10px;background:#fff1f2;padding:11px 12px;color:#b42343;font-size:11px;line-height:1.45}
.mini-selects select{font-size:10px}
.history-stats article,.salary-stats article{padding:13px}
.history-stats span,.salary-stats span{font-size:10px}
.history-stats strong{font-size:17px}
.history-stats .late-value{color:#dc3545}
.daily-records,.salary-card,.profile-card,.profile-hero{padding:14px}
.daily-records h3,.salary-card h2,.profile-card h2{font-size:11px}
.daily-records>div{grid-template-columns:.8fr 1.2fr 1.2fr .7fr;font-size:9.5px}
.daily-records .record-head{border-radius:6px;background:#f8fafc;font-weight:750}
.daily-records p,.salary-empty{font-size:10px}
.task-pills button{font-size:10px}
.salary-stats strong{font-size:15px}
.salary-card>small{font-size:9px}
.salary-card span,.salary-card strong{font-size:10px}
.salary-card strong.net{font-size:12px}
.profile-hero>strong{font-size:14px}
.profile-hero>span{font-size:10px}
.profile-hero>em{font-size:9px}
.profile-card>div,.profile-form label{font-size:10px}
.profile-form label small{font-size:9px}
.profile-stats span{font-size:10px}
.logout-button{min-height:40px;font-size:11px}

@media(max-width:370px){
  .technician-mode .content{padding-left:10px;padding-right:10px}
  .tech-stats{gap:6px}
  .tech-stats article{min-height:100px}
  .tech-stats span{font-size:8px}
}

/* Technician attendance reference layout and front-camera capture */
.attendance-page{gap:14px}
.attendance-page .time-card{min-height:108px;border-radius:13px;padding:18px;box-shadow:0 1px 3px #1720330b}
.attendance-page .time-card strong{font-size:34px;line-height:1}
.attendance-page .time-card span{margin-top:6px;font-size:12px}
.attendance-page .attendance-state{min-height:72px;border-radius:12px;padding:14px 16px}
.attendance-page .attendance-state>svg{width:34px;height:34px;background:#fff3c9;stroke:#ef8b00}
.attendance-page .verify-card{gap:12px;border-radius:13px;padding:15px;box-shadow:0 1px 3px #1720330b}
.attendance-page .verify-card header span{font-size:13px}
.attendance-page .verify-card header span svg{width:16px;height:16px}
.gps-row{display:flex;align-items:center;justify-content:space-between;color:#64748b;font-size:13px}
.gps-row strong{color:#172033;font-size:13px}
.gps-row .distance-ok{color:#079564}
.selfie-button{width:100%;border:1px solid #d5deea;background:#fff;color:#172033}
.selfie-button svg{width:17px!important;height:17px!important}
.attendance-page .tech-action{display:flex;min-height:54px;align-items:center;justify-content:center;gap:9px;background:#7ccbb7;font-size:16px}
.attendance-page .tech-action svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.attendance-page .tech-action.clock-out{background:#dc3545}
.attendance-page .tech-action:disabled{background:#a6d8cc}
.tech-camera{position:fixed;z-index:200;inset:0;display:grid;place-items:center;background:#0f172acc}
.camera-panel{display:grid;width:min(520px,100%);height:100%;grid-template-rows:minmax(0,1fr) auto;gap:14px;padding:88px 20px calc(78px + env(safe-area-inset-bottom))}
.camera-panel video{width:100%;height:auto;max-height:100%;min-height:0;aspect-ratio:3/4;align-self:center;justify-self:center;border-radius:14px;background:#111827;object-fit:contain;transform:scaleX(-1);box-shadow:0 18px 45px #0006}
.camera-controls{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.camera-controls button{display:flex;min-height:48px;align-items:center;justify-content:center;gap:8px;border-radius:10px;font-size:14px;font-weight:700;cursor:pointer}
.camera-cancel{border:1px solid #94a3b8;background:#1f2937cc;color:#fff}
.camera-capture{border:0;background:#2867e8;color:#fff}
.camera-capture svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}

@media(max-width:520px){
  .technician-mode .content{padding:12px 12px calc(88px + env(safe-area-inset-bottom))}
  .camera-panel{padding-left:20px;padding-right:20px}
}

.technician-mode .topbar:before{width:34px;height:34px;background-color:#2563eb;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5-5L7.4 3.6l3 3-3.8 3.8-3-3-2.3 2.3a4 4 0 0 0 5 5L14 7Z'/%3E%3Cpath d='m8 16 2-2 8.6 8.6a1.4 1.4 0 0 0 2-2Z'/%3E%3C/svg%3E");background-position:center;background-repeat:no-repeat;background-size:20px;content:""}
.technician-mode .topbar small{display:block;font-size:0}
.technician-mode .topbar small:after{color:#45658f;font-size:8px;font-weight:800;letter-spacing:.08em;content:"TECHNICIAN"}
.technician-mode .topbar-actions{display:flex!important;align-items:center;gap:12px;margin-left:auto}
.technician-mode .topbar-actions .top-avatar,.technician-mode .topbar-actions .top-chevron{display:none!important}
.technician-mode .notification-button{position:relative;display:grid;width:34px;height:34px}
.technician-mode .notification-button svg{width:18px;height:18px;fill:none;stroke:#172033;stroke-width:1.7}
.technician-mode .notification-button i{position:absolute;top:1px;right:0;display:grid;width:16px;height:16px;place-items:center;border:0;border-radius:50%;background:#dc3545;color:#fff;font-size:9px;font-style:normal}
.technician-mode .notification-button i:after{content:"2"}
.technician-mode .topbar-actions:after{width:10px;height:10px;border-radius:50%;background:#10b981;content:""}

/* Attendance directory and employee record detail */
.attendance-title-actions{display:flex;align-items:center;gap:10px}
.attendance-title-actions input{width:200px;background-color:#fff}
.attendance-search{display:flex;width:min(385px,100%);align-items:center;gap:9px;border:1px solid #d8e0ea;border-radius:10px;background:#fff;padding:0 12px;box-shadow:0 1px 2px #17203308}
.attendance-search svg{width:17px;height:17px;flex:none;fill:none;stroke:#687b95;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.attendance-search input{min-width:0;flex:1;border:0;background:transparent;box-shadow:none}.attendance-search input:focus{outline:none;box-shadow:none}.attendance-search:focus-within{border-color:#5274ff!important;box-shadow:0 0 0 1px #5274ff14}
.attendance-employee-list{display:grid;gap:13px}
.attendance-employee-card{display:grid;min-height:102px;grid-template-columns:48px minmax(260px,1fr) minmax(420px,.9fr) 24px;align-items:center;gap:16px;border:1px solid #dce3ec;border-radius:13px;background:#fff;padding:16px;color:#172033;text-align:left;box-shadow:0 1px 3px #1720330b;cursor:pointer}
.attendance-employee-card:hover{border-color:#a9c4f7;box-shadow:0 4px 14px #2563eb0d}
.attendance-avatar{display:grid;width:48px;height:48px;place-items:center;border-radius:50%;background:#2d6bea;color:#fff;font-size:16px;font-weight:750}
.attendance-person{display:grid;gap:2px;min-width:0}
.attendance-person strong{font-size:14px}
.attendance-person small{overflow:hidden;color:#60738f;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.attendance-person em,.attendance-hero em{width:max-content;border-radius:99px;background:#dce9ff;padding:3px 8px;color:#1859d1;font-size:10px;font-style:normal}
.attendance-card-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
.attendance-card-metrics>span{display:grid;place-items:center;gap:2px;text-align:center}
.attendance-card-metrics strong{color:#175ee8;font-size:20px}
.attendance-card-metrics .on-time strong{color:#079564}
.attendance-card-metrics .late strong{color:#dc2626}
.attendance-card-metrics small{color:#61738d;font-size:10px;white-space:nowrap}
.attendance-chevron{color:#60738f;font-size:25px;font-weight:400}
.attendance-back{width:max-content}
.attendance-hero{display:flex;min-height:142px;align-items:center;gap:18px;border-radius:13px;background:#2d67e9;padding:24px;color:#fff}
.attendance-avatar.large{width:66px;height:66px;background:#ffffff2b;font-size:20px}
.attendance-hero>div{display:grid;gap:3px;flex:1}
.attendance-hero h1{margin:0;font-size:20px}
.attendance-hero p{margin:0;font-size:13px}
.attendance-hero em{background:#ffffff2b;color:#fff}
.attendance-hero small{font-size:11px}
.attendance-hero aside{display:flex;gap:9px}
.attendance-hero .secondary{border:0;color:#172033}
.attendance-detail-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.attendance-detail-metrics article{position:relative;display:grid;min-height:88px;align-content:center;gap:4px;border:1px solid #dce3ec;border-radius:12px;background:#fff;padding:16px;box-shadow:0 1px 3px #1720330b}
.attendance-detail-metrics span{color:#61738d;font-size:11px}
.attendance-detail-metrics strong{font-size:22px}
.attendance-detail-metrics i{position:absolute;right:16px;top:20px;display:grid;width:38px;height:38px;place-items:center;border-radius:50%;background:#e9f1ff;color:#2563eb}
.attendance-detail-metrics i.green{background:#e9faf3;color:#079564}.attendance-detail-metrics i.red{background:#fff0f0;color:#ef4444}.attendance-detail-metrics i.purple{background:#f3edff;color:#7c3aed}
.attendance-detail-metrics svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}
.attendance-daily{overflow:hidden;border:1px solid #dce3ec;border-radius:13px;background:#fff;box-shadow:0 1px 3px #1720330b}
.attendance-daily h2{margin:0;padding:18px;font-size:14px}
.attendance-table-wrap{overflow:auto}
.attendance-daily table{width:100%;border-collapse:collapse;white-space:nowrap}
.attendance-daily th{border-top:1px solid #e2e8f0;background:#f8fafc;padding:13px 16px;color:#60738f;font-size:10px;text-align:left;text-transform:uppercase}
.attendance-daily td{border-top:1px solid #e2e8f0;padding:13px 16px;color:#536780;font-size:11px}
.attendance-daily td:first-child{display:grid;gap:2px;color:#172033}.attendance-daily td:first-child small{color:#60738f}
.punctuality,.attendance-row-status{display:inline-flex;border-radius:99px;padding:4px 8px;font-size:10px}
.punctuality.on_time{background:#d8f8ea;color:#087a58}.punctuality.warning{background:#fff2d5;color:#9a6000}.punctuality.late{background:#ffe2e2;color:#c62b2b}
.attendance-row-status.completed{background:#dce9ff;color:#1455ce}.attendance-row-status.working{background:#fff0c7;color:#946000}
.attendance-delete{border:0;background:transparent;color:#ef4444;font-size:17px;cursor:pointer}
.attendance-time-cell{display:flex;min-width:190px;align-items:center;gap:9px}.attendance-time-edit{display:grid;min-width:190px;gap:7px}
.attendance-time-edit input{min-width:190px;min-height:36px;padding:7px 9px;font-size:11px}
.attendance-time-edit{grid-template-columns:minmax(160px,1fr) 36px 30px 30px;align-items:center;column-gap:5px}.attendance-time-edit input[data-attendance-manual-clock-in],.attendance-time-edit input[data-attendance-manual-clock-out]{box-sizing:border-box;min-width:0;width:100%;font-size:11px}.attendance-time-edit input[aria-invalid="true"]{border-color:#e05252;background:#fff8f8}.attendance-time-edit .modern-date-field{width:36px}.attendance-time-edit .modern-date-trigger{width:36px;min-height:36px;justify-content:center;padding:0}.attendance-time-edit .modern-date-trigger>span,.attendance-time-edit .modern-date-trigger>.chevron{display:none}.attendance-time-edit .attendance-selfie,.attendance-time-edit .attendance-no-selfie{grid-column:1/-1}.attendance-time-edit>.attendance-save,.attendance-time-edit>.attendance-cancel{display:grid;width:30px;height:30px;place-items:center;border:1px solid #dce4ee;border-radius:8px;background:#fff;font-size:16px;cursor:pointer}.attendance-time-edit>.attendance-save{border-color:#3768ec;background:#3768ec;color:#fff}.attendance-time-button{border:0;background:transparent;padding:5px 0;color:inherit;font:inherit;text-align:left;cursor:pointer}.attendance-time-button:hover,.attendance-time-button:focus-visible{color:#2563eb;text-decoration:underline;outline:0}
.attendance-selfie{display:inline-flex;width:max-content;align-items:center;color:#2563eb;font-size:9px;text-decoration:none;white-space:nowrap}
.attendance-selfie:hover{text-decoration:underline}
.attendance-no-selfie{color:#94a3b8;font-size:9px;font-style:italic}
.attendance-actions{display:flex;align-items:center;gap:6px}
.attendance-actions button{display:grid;width:32px;height:32px;place-items:center;border-radius:8px;background:#fff;cursor:pointer}
.attendance-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.attendance-edit{border:1px solid #cbdcf8;color:#2563eb}.attendance-edit:hover{background:#edf4ff}
.attendance-delete{border:1px solid #fecaca!important;color:#ef4444}.attendance-delete:hover{background:#fff1f2}
.attendance-save{border:0;background:#2563eb!important;color:#fff;font-size:17px}
.attendance-cancel{border:1px solid #dbe3ed!important;color:#475569;font-size:18px}
.attendance-daily tr.editing{background:#f7faff}
.attendance-daily tr.editing td{vertical-align:top}

/* Employee payroll register */
.payroll-register,.payroll-rate-card,.payroll-summary{overflow:hidden;border:1px solid #dce3ec;border-radius:13px;background:#fff;box-shadow:0 1px 3px #1720330b}
.payroll-register{overflow:visible}.payroll-toolbar{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px}
.payroll-toolbar>input{width:190px}.payroll-toolbar label{display:flex;width:min(385px,100%);align-items:center;gap:8px;border:1px solid #d8e0ea;border-radius:10px;padding:0 12px}.payroll-toolbar label svg{width:17px;height:17px;fill:none;stroke:#687b95}.payroll-toolbar label input{border:0;box-shadow:none}
.payroll-table{width:100%;border-collapse:collapse;white-space:nowrap}.payroll-table th,.payroll-table td{border-top:1px solid #e2e8f0;padding:13px 14px;text-align:left}.payroll-table thead th{background:#f8fafc;color:#60738f;font-size:11px}.payroll-table tbody tr{cursor:pointer}.payroll-table tbody tr:hover{background:#f7faff}.payroll-table td{color:#536780;font-size:12px}.payroll-table td:first-child{display:grid;gap:3px;color:#172033}.payroll-table td:first-child small{color:#60738f}.payroll-table .advance{color:#d97706}.payroll-table tfoot th{background:#f8fafc;font-size:11px}
.payroll-hero{display:flex;min-height:142px;align-items:center;border-radius:13px;background:#2d67e9;padding:24px;color:#fff}.payroll-hero>div{display:grid;gap:4px}.payroll-hero h1{margin:0;font-size:20px}.payroll-hero p{margin:0;font-size:13px}.payroll-hero span{width:max-content;border-radius:99px;background:#ffffff2b;padding:3px 8px;font-size:10px}.payroll-hero small{font-size:11px}
.payroll-detail-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.payroll-detail-metrics article{display:grid;gap:5px;border:1px solid #dce3ec;border-radius:12px;background:#fff;padding:17px}.payroll-detail-metrics span{color:#61738d;font-size:11px}.payroll-detail-metrics strong{font-size:21px}
.payroll-rate-card{padding:17px}.payroll-rate-card header,.payroll-section-title{display:flex;align-items:center;justify-content:space-between}.payroll-rate-card h2,.payroll-summary h2{margin:0;font-size:14px}.payroll-rate-card header small{color:#60738f}.payroll-rate-card button{display:flex;align-items:center;gap:6px}.payroll-rate-card button svg{width:14px;height:14px;fill:none;stroke:currentColor}.payroll-rate-card>div{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:14px;border-top:1px solid #e2e8f0;padding-top:14px}.payroll-rate-card span{display:grid;gap:4px;color:#60738f;font-size:10px}.payroll-rate-card strong{color:#172033;font-size:12px}
.payroll-section-title h2{border:0!important}.payroll-section-title button{margin-right:18px}.payroll-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.payroll-summary{padding:17px}.payroll-summary>div:not(.empty){display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e2e8f0;padding:10px 0;color:#60738f;font-size:11px}.payroll-summary>div:first-of-type{margin-top:10px}.payroll-summary div strong{color:#172033}.payroll-summary div small{display:block;margin-top:2px}
.payroll-summary-actions>.payroll-rate-overview{display:grid!important;grid-template-columns:1fr 1fr;gap:10px 18px;margin:14px 0!important;border:1px solid #dce3ec!important;border-radius:11px;padding:12px!important;background:#f8fafc}.payroll-rate-overview span{display:flex;align-items:center;justify-content:space-between;gap:10px}.payroll-summary-actions>.payroll-financial-rows{display:grid!important;margin:0!important;border:1px solid #dce3ec!important;border-radius:11px;padding:0!important;overflow:hidden}.payroll-financial-rows>div{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #dce3ec;padding:10px 12px;color:#172033}.payroll-financial-rows>div:first-child{border-top:0}.payroll-financial-rows>div.net{background:#edf4ff;font-weight:750}.payroll-wide-action{display:flex;width:100%;min-height:40px;align-items:center;justify-content:center;gap:8px;margin-top:12px}.payroll-wide-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.cash-advance-panel>header{display:flex;align-items:center;justify-content:space-between}.cash-advance-panel>header h2{margin:0}.cash-advance-panel>header small{color:#60738f}.cash-advance-panel>.cash-advance-list,.cash-advance-panel>.payment-history{display:grid!important;margin:14px 0 0!important;border:1px solid #dce3ec!important;border-radius:11px;padding:0!important;overflow:hidden}.cash-advance-list>div,.payment-history>div{display:flex;min-height:48px;align-items:center;justify-content:space-between;border-top:1px solid #e2e8f0;padding:10px 12px;color:#60738f;font-size:11px}.cash-advance-list>div:first-child,.payment-history>div:first-of-type{border-top:0}.cash-advance-list>.empty{justify-content:center;min-height:66px}.payment-history h3{margin:0;padding:12px;font-size:12px}.form-section-label{margin:0;color:#172033;font-size:11px;font-weight:700}.payment-choice-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.payment-choice-grid label{position:relative;display:block!important}.payment-choice-grid input{position:absolute;opacity:0;pointer-events:none}.payment-choice-grid label>span{display:grid;min-height:58px;grid-template-columns:20px 1fr;align-content:center;column-gap:8px;border:1px solid #d8e0ea;border-radius:10px;padding:10px 12px;cursor:pointer}.payment-choice-grid label:has(input:checked)>span{border-color:#2563eb;background:#edf3ff;box-shadow:0 0 0 1px #2563eb}.payment-choice-grid svg{grid-row:1/3;width:18px;height:18px;align-self:center;fill:none;stroke:#2563eb;stroke-width:1.8}.payment-choice-grid b{font-size:12px}.payment-choice-grid small{color:#718096;font-size:9px}.payroll-payment-summary{display:grid;gap:5px;border:1px solid #dce3ec;border-radius:11px;background:#f8fafc;padding:12px;color:#60738f;font-size:12px}
.modern-date-selects{display:flex;align-items:center;gap:8px}.modern-date-selects .modern-filter-select{position:relative;min-width:0;color:#172033;font-size:12px}.modern-date-selects .month-choice{width:130px}.modern-date-selects .year-choice{width:86px}.modern-filter-trigger{display:flex;width:100%;height:42px;align-items:center;gap:9px;border:1px solid #d8e0ea;border-radius:9px;background:#fff;padding:0 11px;color:#172033;font:inherit;font-weight:600;text-align:left;cursor:pointer;box-shadow:0 1px 2px #17203308}.modern-filter-trigger:hover{border-color:#9ec5ff}.modern-filter-trigger:focus-visible{outline:2px solid #2875f5;outline-offset:2px}.modern-filter-trigger>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modern-filter-trigger>svg{width:16px;height:16px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.modern-filter-trigger>svg:last-child{width:14px;height:14px}.modern-filter-popover{position:absolute;z-index:100;top:calc(100% + 7px);left:0;width:max(100%,128px);max-height:min(460px,calc(100vh - 150px));overflow:auto;overscroll-behavior:contain;padding:8px;border:1px solid #d8e0ea;border-radius:12px;background:#fff;color:#172033;box-shadow:0 18px 50px #10254a24}.year-choice .modern-filter-popover{width:max(100%,108px);max-height:320px}.modern-filter-popover button{display:flex;width:100%;min-height:36px;align-items:center;justify-content:space-between;gap:10px;border:0;border-radius:7px;background:transparent;padding:8px 10px;color:inherit;font:inherit;text-align:left;cursor:pointer}.modern-filter-popover button:hover,.modern-filter-popover button:focus-visible,.modern-filter-popover button.selected{outline:0;background:#e8efff;color:#1767df}.modern-filter-popover button b{font-size:14px}.payroll-toolbar>.modern-date-selects{flex:none}

@media(max-width:1000px){
  .attendance-employee-card{grid-template-columns:48px 1fr 24px}
  .attendance-card-metrics{grid-column:1/-1;padding-top:10px;border-top:1px solid #edf1f5}
  .attendance-detail-metrics{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .attendance-title-actions,.attendance-hero,.attendance-hero aside{align-items:stretch;flex-direction:column}
  .attendance-title-actions input{width:100%}
  .attendance-employee-card{grid-template-columns:42px 1fr 18px;padding:13px}
  .attendance-avatar{width:42px;height:42px}
  .attendance-card-metrics{gap:7px}
  .attendance-card-metrics strong{font-size:15px}
  .attendance-card-metrics small{font-size:8px}
  .attendance-hero{align-items:flex-start}
  .attendance-detail-metrics{gap:8px}
  .attendance-detail-metrics article{min-height:82px;padding:12px}
  .attendance-detail-metrics i{right:10px;top:14px}
  .payroll-toolbar{align-items:stretch;flex-direction:column}.payroll-toolbar>.modern-date-selects{width:100%}.modern-filter-popover button{min-height:42px;padding:10px}.payroll-detail-metrics,.payroll-detail-grid{grid-template-columns:1fr}.payroll-rate-card>div{grid-template-columns:1fr 1fr}
  .payment-choice-grid,.payroll-summary-actions>.payroll-rate-overview{grid-template-columns:1fr}
}

@media print{.sidebar,.topbar,.tech-nav,.attendance-back,.payroll-hero,.payroll-detail-metrics,.payroll-rate-card,.payroll-attendance,.cash-advance-panel,.payroll-wide-action{display:none!important}.main{margin:0!important}.content{padding:0!important}.payroll-detail-grid{display:block}.payroll-summary-actions{border:0;box-shadow:none}}

/* Shared visual styles for Field Connect. */
:root{
  --fc-ink:#10172d;
  --fc-muted:#62708a;
  --fc-line:#dce4ef;
  --fc-canvas:#f7faff;
  --fc-surface:#fff;
  --fc-blue:#2474f5;
  --fc-blue-hover:#1768e8;
  --fc-blue-soft:#e4f0ff;
  --fc-success:#12b989;
  --fc-warning:#f59e0b;
  --fc-danger:#f4485f;
  --fc-shadow:0 2px 8px rgba(19,35,62,.055);
  color:var(--fc-ink);
  background:var(--fc-canvas);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
html,body{background:var(--fc-canvas);color:var(--fc-ink)}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}
:where(button,input,select,textarea,a):focus-visible{outline:3px solid rgba(36,116,245,.2);outline-offset:2px}
.primary{border-radius:9px;background:var(--fc-blue);box-shadow:0 3px 9px rgba(36,116,245,.2)}
.primary:hover{background:var(--fc-blue-hover);filter:none}
.secondary{border-color:var(--fc-line);color:#334155;box-shadow:0 1px 3px rgba(19,35,62,.04)}
.text-button{color:var(--fc-blue)}
input,select,textarea{border-color:#d8e1ed;border-radius:9px;color:var(--fc-ink);box-shadow:0 1px 2px rgba(19,35,62,.025)}
input::placeholder,textarea::placeholder{color:#8b98ab}
input:focus,select:focus,textarea:focus{border-color:var(--fc-blue);box-shadow:0 0 0 3px rgba(36,116,245,.11)}
.card,.metric,.table-wrap,.office-card,.attendance-employee-card,.attendance-daily,.attendance-detail-metrics article,.payroll-register,.payroll-rate-card,.payroll-summary{border-color:var(--fc-line);background:var(--fc-surface);box-shadow:var(--fc-shadow)}
.status,.priority,.punctuality,.attendance-row-status{font-weight:700}
.status.active,.status.completed,.status.paid,.punctuality.on_time{background:#dcfce7;color:#15803d}
.status.in_progress,.priority.urgent,.punctuality.late{background:#ffe4e8;color:#e11d48}
.status.assigned,.status.approved,.attendance-row-status.completed{background:#dbeafe;color:#1d4ed8}
.status.travelling,.status.arrived,.status.draft,.attendance-row-status.working{background:#fef3c7;color:#b45309}

@media (min-width:761px){
  body{font-size:13px;line-height:1.45}
  .sidebar{width:238px;border-color:var(--fc-line);background:#fff}
  .sidebar>header{min-height:66px;gap:10px;padding:10px 15px}
  .brand-mark.small{width:36px;height:36px;border-radius:11px;background:var(--fc-blue);box-shadow:none}
  .brand-mark.small svg{width:19px;height:19px}
  .sidebar>header strong{font-size:14px;line-height:1.2}
  .sidebar>header small{font-size:8px;color:#526783}
  .sidebar nav{padding:8px 10px 18px}
  .sidebar nav section{margin-top:7px}
  .sidebar nav p{padding:9px 12px 6px;color:#526783;font-size:9px;letter-spacing:.055em}
  .sidebar nav button{min-height:39px;gap:11px;border-radius:10px;padding:8px 12px;color:#566176}
  .sidebar nav button:hover{background:#f2f7ff;color:#1769ea;transform:translateX(2px)}
  .sidebar nav button.active{background:var(--fc-blue-soft);color:#0865e9;font-weight:700}
  .sidebar nav svg{width:17px;height:17px;stroke-width:1.8}
  .sidebar nav span{font-size:13px}
  .sidebar>footer{min-height:66px;padding:10px 14px}
  .sidebar>footer .avatar{width:36px;height:36px;background:var(--fc-blue);font-size:12px}
  .sidebar>footer strong{font-size:12px}.sidebar>footer small{font-size:9px}
  .main{margin-left:238px}
  .topbar{height:66px;padding:0 24px;border-color:var(--fc-line);background:#fff;backdrop-filter:none}
  .topbar strong{font-size:14px;font-weight:750;letter-spacing:-.015em}
  .topbar-actions{gap:10px}
  .topbar-actions .icon{width:36px;height:36px;color:#334155}
  .topbar-actions svg{width:18px;height:18px}
  .top-avatar{width:36px;height:36px;background:var(--fc-blue);font-size:12px!important}
  .top-chevron{font-size:14px!important}
  .content{gap:20px;padding:24px 24px 56px}
  .page-title{align-items:center}
  .page-title h1{font-size:27px;font-weight:750;letter-spacing:-.035em;color:#0f172a}
  .page-title>div>p:last-child{margin-top:3px;color:var(--fc-muted);font-size:12px}
  .primary{min-height:42px;padding:9px 17px;font-size:12px}
  .secondary{min-height:40px;padding:8px 14px;font-size:12px}
  .text-button{font-size:11px}.icon{width:36px;height:36px}
  .metrics{gap:14px}.metric{min-height:108px;border-radius:14px;padding:18px}
  .metric span{font-size:12px;color:#526783}.metric strong{font-size:25px;color:#071027}.metric small{font-size:10px}
  .metric i{width:42px;height:42px;border-radius:12px}.metric svg{width:20px;height:20px}
  .card{border-radius:14px;padding:20px}.card h2{font-size:14px}.card>p,.card-head p{font-size:11px}
  .grid-two{gap:16px}.recent button,.tracking-list button{padding:12px 0}.recent strong,.tracking-list strong{font-size:12px}.recent small,.tracking-list small{font-size:10px}
  .toolbar{align-items:end;gap:9px;border:1px solid var(--fc-line);border-radius:14px;background:#fff;padding:16px;box-shadow:var(--fc-shadow)}
  .toolbar label{min-height:42px;border-color:#d8e1ed;border-radius:9px}.toolbar select{min-width:165px}
  input,select,textarea{min-height:40px;padding:9px 11px;font-size:12px}
  .table-wrap{border-radius:14px}.table th{height:43px;background:#f8fafc;padding:12px 15px;color:#526783;font-size:9px}.table td{height:54px;padding:13px 15px;font-size:11px}.table small{font-size:9px}
  .announcement-grid{gap:14px}.announcement>p{font-size:11px}.announcement time,.announcement footer{font-size:9px}
  .settings-tabs{gap:4px}.settings-tabs button{padding:10px 14px;font-size:12px}.settings-tabs button.active{border-color:var(--fc-blue);color:#0865e9}
  .office-grid{gap:16px}.office-card{min-height:190px;border-radius:14px;padding:20px}.office-card header strong{font-size:14px}.office-card header span{font-size:11px}.office-card p{font-size:12px}.office-card small,.office-card em{font-size:10px}
  .modal{width:min(760px,100%);border-radius:15px;box-shadow:0 24px 70px rgba(15,23,42,.22)}
  .modal>header,.drawer>header{padding:18px 22px}.modal h2,.drawer h2{font-size:18px}.modal>form,.modal-body{padding:22px}.form-grid{gap:14px}.form-grid label{font-size:11px}
  .attendance-search{width:min(385px,100%)}
  .attendance-employee-card{min-height:94px;border-radius:13px}
  .attendance-daily,.payroll-rate-card,.payroll-summary{border-radius:14px}
  .payroll-register{border-radius:14px}.payroll-toolbar{padding:15px 16px}.payroll-table thead th{background:#f8fafc;color:#526783}.payroll-table tbody tr:hover{background:#f4f8ff}
  .payroll-hero{border-radius:14px;background:var(--fc-blue)}
  .modern-filter-trigger{border-color:#d8e1ed;border-radius:9px;box-shadow:0 1px 3px rgba(19,35,62,.04)}
  .modern-filter-popover{border-color:#d8e1ed;border-radius:11px;box-shadow:0 16px 40px rgba(19,35,62,.16)}
  .modern-filter-popover button.selected,.modern-filter-popover button:hover{background:var(--fc-blue-soft);color:#0865e9}
}

@media (min-width:761px) and (max-width:1050px){
  .sidebar{width:218px}.main{margin-left:218px}.content{padding-left:18px;padding-right:18px}.sidebar nav span{font-size:12px}
}

/* Technician remains mobile-first but shares the same product family. */
.technician-mode{background:var(--fc-canvas)}
.technician-mode .topbar{border-color:var(--fc-line);background:#fff}
.technician-mode .topbar:before{background-color:var(--fc-blue);box-shadow:none}
.technician-mode .content{background:var(--fc-canvas)}
.technician-mode .tech-nav{border-color:var(--fc-line);box-shadow:0 -4px 18px rgba(19,35,62,.06)}
.tech-nav button.active{color:var(--fc-blue)}
.time-card,.verify-card,.daily-records,.salary-card,.profile-card,.profile-hero,.tech-stats article,.tech-empty,.tech-task-list button{border-color:var(--fc-line);box-shadow:var(--fc-shadow)}
.tech-action,.task-pills button.active{background:var(--fc-blue)}
.tech-action:not(:disabled):hover{background:var(--fc-blue-hover)}
.profile-avatar{background:var(--fc-blue)}
.clock-banner,.attendance-state{box-shadow:0 2px 7px rgba(120,78,0,.045)}

@media(max-width:760px){
  .content{gap:16px;padding:18px 12px 76px}
  .page-title h1{font-size:22px}.page-title>div>p:last-child{font-size:11px}
  .card,.metric,.table-wrap,.office-card{border-radius:12px}
  .primary,.secondary{min-height:42px}
  .modal-layer{padding:10px}.modal{border-radius:15px}.modal>header{padding:17px 18px}.modal>form,.modal-body{padding:18px}
  .technician-mode .content{padding-top:14px}
}

/* Payroll summary and cash advances mirror the compact finance reference. */
.payroll-summary-layout{align-items:stretch}
.payroll-summary-layout>.payroll-summary{min-width:0;padding:16px}
.payroll-summary-actions>.payroll-financial-rows{display:grid!important;width:100%;align-items:stretch!important;justify-content:normal!important;margin:14px 0 0!important;padding:0!important;border:1px solid #dce4ef!important;border-radius:11px!important;overflow:hidden}
.payroll-financial-rows>div{display:flex!important;width:100%;min-height:42px;align-items:center;justify-content:space-between;border-top:1px solid #dce4ef;padding:10px 13px;color:#172033;font-size:12px}
.payroll-financial-rows>div:first-child{border-top:0}.payroll-financial-rows>div.net{background:#edf4ff;font-weight:750}
.cash-advance-panel>header{min-height:38px}.cash-advance-panel>header h2{font-size:14px}.cash-advance-panel>header small{display:block;margin-top:1px;font-size:10px}
.cash-advance-panel>.cash-advance-list{display:grid!important;width:100%;align-items:stretch!important;justify-content:normal!important;gap:8px;margin:12px 0 0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:visible!important}
.cash-advance-list>.cash-advance-entry{display:flex;width:100%;min-height:54px;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dce4ef;border-radius:11px;background:#fff;padding:10px 12px}
.cash-advance-entry>span{display:grid;min-width:0;gap:2px}.cash-advance-entry>span>strong{color:#172033;font-size:13px}.cash-advance-entry>span>small{overflow:hidden;color:#60738f;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.cash-advance-entry>aside{display:flex;align-items:center;gap:5px}.cash-advance-entry button{display:grid;width:32px;height:32px;place-items:center;border:0;border-radius:8px;background:transparent;cursor:pointer}
.cash-advance-entry button:hover{background:#eef4ff}.cash-advance-entry .cash-advance-delete{color:#ef3340}.cash-advance-entry .cash-advance-edit{color:#172033}
.cash-advance-entry .cash-advance-delete:hover{background:#fff0f0}.negative-net{color:#d92d3a!important}
.cash-advance-entry button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cash-advance-list>.empty{display:grid!important;width:100%;min-height:66px;place-items:center;border:1px solid #dce4ef!important;border-radius:11px!important;padding:12px!important}
@media(max-width:620px){.payroll-summary-layout{grid-template-columns:1fr}.cash-advance-entry>span>small{white-space:normal}}

/* Reference scale for the payroll cards. */
.payroll-summary-layout>.payroll-summary h2{font-size:17px}.payroll-summary-actions>.payroll-rate-overview{gap:12px 18px!important;padding:17px!important}.payroll-rate-overview span,.payroll-rate-overview strong{font-size:15px}.payroll-financial-rows>div{min-height:44px;font-size:15px}.cash-advance-panel>header small{font-size:13px}.cash-advance-entry>span>strong{font-size:16px}.cash-advance-entry>span>small{font-size:13px}.cash-advance-panel>.cash-advance-list{gap:0}.cash-advance-panel>.cash-advance-list>.cash-advance-entry{min-height:66px}.advance-methods label>span{display:grid}.inline-advance-fields label,.advance-method-title,.advance-methods b{font-size:13px}.advance-methods small{font-size:11px}.inline-advance-form>p{font-size:11px}
.payroll-summary-actions>.payroll-rate-overview{min-height:126px}.payroll-summary-actions>.payroll-financial-rows>div{min-height:42px!important}.payroll-summary-layout>.payroll-summary{min-height:576px}.inline-advance-form .advance-methods label>span{min-height:62px}.inline-advance-form .advance-methods svg{stroke:#4772bd;stroke-width:1.8}

/* Modern payroll rate editor. */
.payroll-summary-layout{grid-template-columns:1fr 1fr;gap:20px}.payroll-summary-layout>.payroll-summary{border:1px solid #dce4ef;border-radius:14px;background:#f8fafc;padding:20px}.payroll-summary-layout h2{margin:0;color:#273244;font-size:16px}.payroll-summary-actions>.payroll-rate-overview{display:grid!important;grid-template-columns:1fr 1fr;gap:10px!important;margin:16px 0!important;padding:15px!important;background:#f8fafc!important}.payroll-rate-overview span{color:#60738f;font-size:12px}.payroll-rate-overview strong{color:#273244;font-size:12px}.payroll-summary-actions>.payroll-financial-rows{margin:14px 0!important}.payroll-financial-rows>div{min-height:40px;padding:9px 14px;font-size:12px}.payroll-summary-actions>.payroll-wide-action{min-height:43px;margin-top:12px;border-radius:10px}.cash-advance-panel>header{align-items:flex-start}.cash-advance-panel>header small{font-size:11px}.cash-advance-panel>.cash-advance-list{display:block!important;max-height:374px;margin-top:16px!important;overflow:auto!important;border:1px solid #dce4ef!important;border-radius:13px!important;background:#f8fafc}.cash-advance-list>.cash-advance-entry{min-height:64px;border:0;border-bottom:1px solid #dce4ef;border-radius:0;background:transparent;padding:10px 14px}.cash-advance-list>.cash-advance-entry:last-child{border-bottom:0}.cash-advance-entry>span>strong{font-size:14px}.cash-advance-entry>span>small{font-size:11px}.cash-advance-entry>aside{gap:4px}.cash-advance-entry .advance-repay{width:auto;height:28px;border:1px solid #dce4ef;padding:0 8px;color:#526783;font-size:11px}.advance-summary-note,.advance-legacy{margin:9px 0;color:#60738f;font-size:11px;line-height:1.4}.advance-legacy{color:#995e08}.inline-advance-form{margin-top:16px;border:1px solid #dce4ef;border-radius:13px;background:#f8fafc;padding:14px}.inline-advance-form>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.inline-advance-form h3{margin:0;font-size:14px}.inline-advance-form>header button{border:0;background:transparent;color:#273244;font-size:22px;cursor:pointer}.inline-advance-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.inline-advance-fields label{display:grid;gap:6px;color:#273244;font-size:11px;font-weight:650}.inline-advance-fields .wide{grid-column:1/-1}.inline-advance-fields input,.inline-advance-fields textarea{width:100%;min-height:39px;border:1px solid #dce4ef;border-radius:10px;background:#f8fafc;padding:9px 11px;color:#273244;font:inherit;box-shadow:0 1px 2px #dce4ef55}.inline-advance-fields textarea{min-height:62px}.advance-method-title{display:block;margin:14px 0 8px;color:#273244;font-size:11px}.advance-methods{display:grid;grid-template-columns:1fr 1fr;gap:8px}.advance-methods label{position:relative}.advance-methods input{position:absolute;opacity:0}.advance-methods span{display:grid;grid-template-columns:18px 1fr;column-gap:7px;align-items:center;min-height:56px;border:1px solid #dce4ef;border-radius:11px;padding:9px 10px;cursor:pointer}.advance-methods input:checked+span{border-color:#3976f2;background:#eaf1ff}.advance-methods svg{grid-row:1/3;width:17px;height:17px;fill:none;stroke:currentColor}.advance-methods b{font-size:11px}.advance-methods small{color:#70839d;font-size:9px}.inline-advance-form>p{margin:8px 0;color:#70839d;font-size:10px}.inline-advance-form footer{display:flex;justify-content:flex-end;gap:8px}.inline-advance-form footer button{min-height:33px;border-radius:9px;padding:0 12px;font-size:11px}@media(max-width:760px){.payroll-summary-layout{grid-template-columns:1fr}.advance-methods{grid-template-columns:1fr 1fr}}
.pay-rate-modal{overflow:visible}
.pay-rate-modal>form{overflow:visible}
.pay-rate-modal .form-grid{overflow:visible}
.modern-form-select{position:relative;width:100%;font-weight:500}
.modern-form-select>input{display:none}
.modern-form-select-trigger{display:flex;width:100%;min-height:42px;align-items:center;justify-content:space-between;gap:12px;border:1px solid #d8e1ed;border-radius:10px;background:#fff;padding:0 12px;color:#172033;font:inherit;font-size:12px;text-align:left;cursor:pointer;box-shadow:0 1px 2px rgba(19,35,62,.025)}
.modern-form-select-trigger:hover{border-color:#9ec5ff}.modern-form-select-trigger:focus-visible{border-color:#2474f5;outline:3px solid rgba(36,116,245,.13);outline-offset:0}
.modern-form-select-trigger>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modern-form-select-trigger svg{width:15px;height:15px;flex:none;fill:none;stroke:#526783;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.modern-form-select-menu{position:absolute;z-index:120;top:calc(100% + 7px);left:0;width:100%;overflow:hidden;border:1px solid #d8e1ed;border-radius:11px;background:#fff;padding:7px;box-shadow:0 18px 45px rgba(19,35,62,.17)}
.modern-form-select-menu button{display:flex;width:100%;min-height:38px;align-items:center;justify-content:space-between;gap:12px;border:0;border-radius:8px;background:transparent;padding:8px 11px;color:#172033;font:inherit;font-size:12px;text-align:left;cursor:pointer}
.modern-form-select-menu button:hover,.modern-form-select-menu button:focus-visible{background:#f2f7ff;outline:0}.modern-form-select-menu button.selected{background:#e4f0ff;color:#0865e9;font-weight:700}.modern-form-select-menu button b{font-size:14px}
.pay-rate-help{margin:5px 0 10px;border:1px solid #dce4ef;border-radius:10px;background:#f8fafc;padding:12px 13px;color:#60738f;font-size:11px;line-height:1.55}
.pay-rate-modal .toggle-field{min-height:68px;border-color:#d8e1ed;border-radius:11px;background:#fff;padding:12px 14px}
.pay-rate-modal .toggle-field strong{color:#263449;font-size:11px}.pay-rate-modal .toggle-field small{font-size:9px}
.pay-rate-modal .toggle-field input{width:38px;height:22px;border:0;border-radius:999px;background:#dbe4ef;box-shadow:none}.pay-rate-modal .toggle-field input:after{top:2px;left:2px;width:18px;height:18px}.pay-rate-modal .toggle-field input:checked{background:#2474f5}.pay-rate-modal .toggle-field input:checked:after{transform:translateX(16px)}
.pay-rate-modal .form-actions{margin-top:22px}.pay-rate-modal .form-actions .primary,.pay-rate-modal .form-actions .secondary{min-width:94px}
@media(min-width:761px){.pay-rate-modal{width:min(760px,calc(100vw - 32px))}.pay-rate-modal .form-grid{gap:15px 14px}.pay-rate-modal input{min-height:42px}}
@media(max-width:760px){.pay-rate-modal{overflow:auto}.modern-form-select-menu{position:static;margin-top:6px}.pay-rate-modal .form-actions .primary,.pay-rate-modal .form-actions .secondary{min-width:0}}

/* Universal modern select: preserves native form values while replacing every visible dropdown. */
.native-modern-select{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;opacity:0!important}
.modern-native-select{position:relative;display:block;width:100%;min-width:0}
.modern-native-select-trigger{display:flex;width:100%;min-height:40px;align-items:center;justify-content:space-between;gap:10px;border:1px solid #d8e1ed;border-radius:9px;background:#fff;padding:0 11px;color:#172033;font:inherit;font-size:12px;font-weight:550;text-align:left;cursor:pointer;box-shadow:0 1px 2px rgba(19,35,62,.025)}
.modern-native-select-trigger:hover{border-color:#9ec5ff;background:#fff}.modern-native-select-trigger:focus-visible{border-color:#2474f5;outline:3px solid rgba(36,116,245,.13);outline-offset:0}.modern-native-select-trigger:disabled{cursor:not-allowed;opacity:.55}
.modern-native-select-trigger>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modern-native-select-trigger svg{width:14px;height:14px;flex:none;fill:none;stroke:#526783;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.modern-native-select-menu{position:fixed;z-index:220;overflow:auto;overscroll-behavior:contain;border:1px solid #d8e1ed;border-radius:11px;background:#fff;padding:7px;box-shadow:0 18px 45px rgba(19,35,62,.18)}
.modern-native-select-menu button{display:flex;width:100%;min-height:37px;align-items:center;justify-content:space-between;gap:10px;border:0;border-radius:8px;background:transparent;padding:8px 10px;color:#172033;font:inherit;font-size:12px;text-align:left;cursor:pointer}
.modern-native-select-menu button:hover,.modern-native-select-menu button:focus-visible{background:#f2f7ff;outline:0}.modern-native-select-menu button.selected{background:#e4f0ff;color:#0865e9;font-weight:700}.modern-native-select-menu button:disabled{cursor:not-allowed;color:#94a3b8}.modern-native-select-menu button b{font-size:14px}
.toolbar>.modern-native-select{width:auto;min-width:165px}.toolbar label>.modern-native-select{flex:1}
.modern-native-select.compact{min-width:150px}.modern-native-select.compact .modern-native-select-trigger{min-height:36px;font-size:11px}
.drawer-form .row>.modern-native-select{flex:1;min-width:170px}.drawer-form .row>.modern-native-select+.primary{flex:none}
@media(max-width:760px){.toolbar>.modern-native-select{width:100%;min-width:0}.modern-native-select.compact{min-width:135px}.modern-native-select-menu{max-width:calc(100vw - 16px)}}

.drawer.task-drawer{width:min(620px,100%);background:#f7f9fc}
.task-drawer-header{position:sticky;z-index:2;top:0;min-height:94px;background:#fff}
.task-drawer-heading{min-width:0}
.task-drawer-heading .eyebrow{margin-bottom:6px}
.task-drawer-heading h2{overflow:hidden;color:#172033;font-size:20px;text-overflow:ellipsis}
.task-drawer-heading small{display:block;margin-top:5px;color:#66758a;font-size:11px}
.task-drawer-heading small span{padding:0 4px;color:#b0bac8}
.task-drawer-body{gap:12px;padding:16px}
.task-overview{display:grid;gap:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;padding:16px;box-shadow:0 2px 8px #17203306}
.task-overview-top{display:flex;align-items:center;gap:7px}
.task-overview-top .status,.task-overview-top .priority{padding:6px 9px;font-size:10px}
.priority.normal{background:#eef2f7;color:#59677a}
.task-address{display:flex;align-items:flex-start;gap:9px;margin:0;color:#334155;font-size:12px;line-height:1.5}
.task-address>span{color:#2563eb;font-size:17px;line-height:1}
.task-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.task-detail-grid>div{display:grid;min-width:0;gap:4px;border-radius:9px;background:#f6f8fb;padding:10px}
.task-detail-grid span,.task-request>span{color:#8190a4;font-size:9px;font-weight:700;letter-spacing:.035em;text-transform:uppercase}
.task-detail-grid strong{overflow-wrap:anywhere;color:#263449;font-size:11px;font-weight:650}
.task-request{display:grid;gap:6px;border-top:1px solid #edf0f4;padding-top:12px}
.task-request p{margin:0;color:#475569;font-size:11px;line-height:1.6;white-space:pre-wrap}
.task-drawer .task-action-card{gap:12px;border:1px solid #e2e8f0;border-radius:13px;background:#fff;padding:14px;box-shadow:0 2px 8px #17203306}
.task-section-heading{display:flex;align-items:center;gap:10px}
.task-section-heading>div{display:grid;gap:3px}
.task-section-heading h3{color:#263449;font-size:12px}
.task-section-heading small{color:#8491a3;font-size:10px}
.task-section-icon{display:grid;width:32px;height:32px;flex:none;place-items:center;border-radius:9px;background:#edf4ff;color:#2563eb;font-size:16px}
.task-drawer .drawer-form .row{align-items:center}
.task-drawer .drawer-form .row .primary{flex:none}
.task-drawer .status-actions button{min-height:37px;padding:9px 13px;font-size:11px}
.task-drawer #note-form textarea{min-height:82px;resize:vertical}
.task-photo-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.task-photo-controls select{grid-column:1/-1}
.task-photo-controls input[type=file]{grid-column:1/-1;min-width:0;background:#fafbfd;font-size:10px}
.task-drawer .task-content-section{gap:12px;border:1px solid #e2e8f0;border-radius:13px;background:#fff;padding:14px}
.task-empty-state{margin:0;border-radius:9px;background:#f7f9fc;padding:13px;color:#8290a3;font-size:10px;line-height:1.5}
.task-drawer .photos{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.task-drawer .photos a{overflow:hidden;border:1px solid #e6ebf2;border-radius:10px;background:#fff;padding:6px}
.task-drawer .photos img{aspect-ratio:4/3;border-radius:6px}
.task-drawer .photos a span{overflow:hidden;padding:0 2px 2px;text-overflow:ellipsis;white-space:nowrap}
.task-drawer .timeline article{padding-bottom:17px}
.completed-task-modal{width:min(520px,100%);max-height:88vh;overflow:hidden;border-radius:13px;background:#f8fafc;box-shadow:0 22px 70px #0d172f30}
.completed-task-modal>header{min-height:58px;border:0;padding:15px 24px 8px}
.completed-task-modal>header h2{color:#202a3b;font-size:17px;letter-spacing:-.02em}
.completed-task-modal>header .icon{width:29px;height:29px;border:2px solid #78a1ff;border-radius:50%;color:#356fe6;font-size:19px;line-height:1}
.completed-task-body{display:grid;max-height:calc(88vh - 58px);gap:12px;overflow-y:auto;padding:6px 24px 22px}
.completed-task-title{display:grid;gap:3px}
.completed-task-title h3{margin:0;color:#1d2738;font-size:15px}
.completed-task-title>span{color:#728096;font-size:9px}
.completed-task-title small{color:#8390a3;font-size:10px}
.completed-task-badges{display:flex;gap:7px}
.completed-task-badges .priority,.completed-task-badges .status{border:1px solid #d7e5ff;background:#f4f8ff;padding:4px 9px;color:#3972e7;font-size:10px}
.completed-task-badges .status.completed{border-color:#a9edcf;background:#effcf5;color:#169b64}
.completed-task-info-grid{display:grid;gap:9px;margin-top:2px}
.completed-task-info{display:flex;align-items:center;gap:8px;min-width:0}
.completed-task-symbol{width:14px;flex:none;color:#71849f;font-size:14px;text-align:center}
.completed-task-info>div{display:grid;min-width:0;gap:2px}
.completed-task-info small{color:#7b8aa2;font-size:10px}
.completed-task-info strong{overflow-wrap:anywhere;color:#506078;font-size:11px;font-weight:500}
.completed-task-info:nth-child(5) strong{color:#179d68}
.completed-task-technician{margin:1px 0 0;color:#728096;font-size:11px}
.completed-task-technician strong{color:#303b4c;font-weight:600}
.completed-task-section{display:grid;gap:6px}
.completed-task-section h4{margin:0;color:#7b8aa2;font-size:10px;font-weight:500}
.completed-task-section>p{margin:0;border-radius:9px;background:#f1f4f8;padding:11px 12px;color:#3e4a5d;font-size:11px;line-height:1.5;white-space:pre-wrap}
.completed-task-photo-heading{display:flex;align-items:center;justify-content:space-between}
.completed-task-photo-heading>span{color:#78879d;font-size:10px}
.completed-task-section>p.completed-task-empty{background:#f1f4f8;color:#8592a5}
.completed-task-photos{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.completed-task-photos a{overflow:hidden;border-radius:8px}
.completed-task-photos img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
@media(max-width:520px){
  .drawer.task-drawer{width:100%}
  .task-drawer-header{padding:15px 16px}
  .task-drawer-body{gap:10px;padding:11px}
  .task-overview{padding:13px}
  .task-detail-grid{gap:7px}
  .task-detail-grid>div{padding:9px}
  .task-drawer .task-action-card,.task-drawer .task-content-section{padding:12px}
  .completed-task-modal{max-height:90vh}
  .completed-task-modal>header{padding:14px 17px 7px}
  .completed-task-body{max-height:calc(90vh - 55px);padding:6px 17px 18px}
}

/* Unified modern date, month, time, and date-time pickers. */
.native-modern-date{position:absolute!important;width:1px!important;height:1px!important;margin:0!important;padding:0!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;opacity:0!important}
.modern-date-field{position:relative;display:block;width:100%;min-width:0}
.modern-date-trigger{display:flex;width:100%;min-height:40px;align-items:center;gap:9px;border:1px solid #d8e1ed;border-radius:9px;background:#fff;padding:0 11px;color:#172033;font:inherit;font-size:12px;font-weight:550;text-align:left;cursor:pointer;box-shadow:0 1px 2px rgba(19,35,62,.025)}
.modern-date-trigger:hover{border-color:#9ec5ff}.modern-date-trigger:focus-visible{border-color:#2474f5;outline:3px solid rgba(36,116,245,.13);outline-offset:0}.modern-date-trigger>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.modern-date-trigger svg{width:16px;height:16px;flex:none;fill:none;stroke:#526783;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.modern-date-trigger .chevron{width:14px;height:14px}
.modern-date-popover{position:fixed;z-index:210;overflow:auto;overscroll-behavior:contain;border:1px solid #d8e1ed;border-radius:12px;background:#fff;padding:14px;color:#172033;box-shadow:0 18px 45px rgba(19,35,62,.18)}
.modern-date-header{display:grid;grid-template-columns:34px 1fr 34px;align-items:center;gap:6px;margin-bottom:11px}.modern-date-header strong{text-align:center;font-size:13px}.modern-date-header button{display:grid;width:34px;height:34px;place-items:center;border:1px solid #e4eaf2;border-radius:50%;background:#fff;color:#526783;font-size:22px;line-height:1;cursor:pointer}.modern-date-header button:hover,.modern-date-header button:focus-visible{border-color:#b9d3ff;background:#f2f7ff;outline:0;color:#1767df}
.modern-date-weekdays,.modern-date-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:3px}.modern-date-weekdays{margin-bottom:5px}.modern-date-weekdays span{padding:3px 0;color:#718096;font-size:10px;font-weight:650;text-align:center}.modern-date-grid button{display:grid;aspect-ratio:1;min-width:0;place-items:center;border:0;border-radius:50%;background:transparent;color:#172033;font:inherit;font-size:11px;cursor:pointer}.modern-date-grid button:hover,.modern-date-grid button:focus-visible{background:#edf4ff;outline:0;color:#1767df}.modern-date-grid button.outside{color:#94a3b8}.modern-date-grid button.today{box-shadow:inset 0 0 0 1px #9ec5ff}.modern-date-grid button.selected{background:#2d6dea;color:#fff;font-weight:750;box-shadow:0 4px 10px rgba(37,99,235,.22)}.modern-date-grid button:disabled{cursor:not-allowed;opacity:.3}
.modern-date-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:11px;border-top:1px solid #edf1f6;padding-top:11px}.modern-date-footer button{border:0;border-radius:8px;background:transparent;padding:7px 9px;color:#1767df;font:inherit;font-size:11px;font-weight:650;cursor:pointer}.modern-date-footer button:hover,.modern-date-footer button:focus-visible{background:#edf4ff;outline:0}.modern-date-footer .primary-action{margin-left:auto;background:#2563eb;color:#fff}.modern-date-title{margin:1px 0 12px;font-size:13px;font-weight:750}
.modern-month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.modern-month-grid button{min-height:41px;border:0;border-radius:8px;background:transparent;color:#172033;font:inherit;font-size:11px;cursor:pointer}.modern-month-grid button:hover,.modern-month-grid button:focus-visible{background:#edf4ff;outline:0;color:#1767df}.modern-month-grid button.selected{background:#e4efff;color:#1767df;font-weight:750}
.modern-time-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}.modern-time-controls .modern-native-select-trigger{min-height:39px}.modern-date-popover>.modern-native-select-menu{z-index:220}
.modern-date-manual{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:8px;margin-top:12px;border-top:1px solid #edf1f6;padding-top:11px}.modern-date-manual label{display:grid;gap:5px;color:#526783;font-size:11px;font-weight:650}.modern-date-manual input{box-sizing:border-box;width:100%;min-height:38px;border:1px solid #d8e1ed;border-radius:8px;background:#fff;padding:7px 9px;color:#172033;font:inherit;font-size:12px}.modern-date-manual input:focus{border-color:#2474f5;outline:3px solid rgba(36,116,245,.13)}.modern-date-manual-error{margin:7px 0 0;color:#c53030;font-size:11px}
.toolbar>.modern-date-field{width:auto;min-width:180px}.form-grid label>.modern-date-field{width:100%}.attendance-title-actions>.modern-date-field{width:200px}
@media(max-width:760px){.modern-date-popover{max-width:calc(100vw - 16px);padding:12px}.toolbar>.modern-date-field,.attendance-title-actions>.modern-date-field{width:100%;min-width:0}.modern-date-grid button{min-height:32px}.modern-time-controls{gap:6px}}

/* User management actions and module permissions. */
.user-table .user-disabled{background:#fafbfc;opacity:.72}.role-badge{display:inline-flex;border-radius:999px;background:#edf4ff;padding:4px 8px;color:#245cc7;font-size:9px;font-weight:700}.user-actions{display:flex;align-items:center;gap:5px}.user-actions>button{display:grid;min-width:31px;height:31px;place-items:center;border:1px solid #dce4ef;border-radius:8px;background:#fff;padding:0 8px;color:#526783;font-size:9px;font-weight:700;cursor:pointer}.user-actions>button:hover{border-color:#9ec5ff;background:#f2f7ff;color:#1767df}.user-actions>button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}.user-actions .disable{color:#a36508}.user-actions .enable{color:#087b54}.user-actions .delete{border-color:#ffd4d8;color:#df2638}.user-actions .delete:hover{border-color:#ffadb5;background:#fff2f3;color:#c91e30}
.user-permission-modal{width:min(650px,100%)}.user-permission-modal>header small{display:block;margin-top:4px;color:#64748b;font-size:10px}.user-permission-modal>form{padding:18px 20px}.permission-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}.permission-toolbar strong{font-size:13px}.permission-toolbar span{display:flex;gap:6px}.permission-toolbar button{border:0;background:transparent;padding:6px 8px;color:#253247;font-size:10px;font-weight:650;cursor:pointer}.permission-toolbar button:hover{color:#1767df}.permission-groups{display:grid;gap:15px}.permission-groups section>p{margin:0 0 7px;color:#718096;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.permission-groups section>div{display:grid;grid-template-columns:1fr 1fr;gap:7px}.permission-groups label{position:relative;display:block}.permission-groups label>input{position:absolute;width:1px;height:1px;opacity:0}.permission-groups label>span{display:flex;min-height:42px;align-items:center;gap:9px;border:1px solid #dce4ef;border-radius:10px;background:#fff;padding:9px 10px;color:#263449;font-size:11px;cursor:pointer}.permission-groups label>span>i{display:grid;width:17px;height:17px;flex:none;place-items:center;border:1.5px solid #2d70ed;border-radius:50%;color:transparent;font-size:10px;font-style:normal;font-weight:800}.permission-groups input:checked+span{border-color:#cdddf8;background:#fbfdff}.permission-groups input:checked+span>i{background:#2d70ed;color:#fff}.permission-groups input:focus-visible+span{outline:3px solid rgba(36,116,245,.13)}.permission-groups input:disabled+span{cursor:not-allowed}.user-permission-modal .form-actions{margin-top:17px}
@media(max-width:760px){.user-table{min-width:930px}.permission-groups section>div{grid-template-columns:1fr}.user-permission-modal>form{padding:16px}.permission-toolbar{align-items:flex-start;flex-direction:column}}

/* Modern tasks directory and full task editor. */
.task-filter-bar{display:grid;grid-template-columns:minmax(230px,1.5fr) repeat(5,minmax(125px,.6fr)) auto;gap:9px;align-items:center}.task-search{display:flex;min-height:40px;align-items:center;gap:8px;border:1px solid #d8e1ed;border-radius:9px;background:#fff;padding:0 11px}.task-search svg{width:15px;height:15px;fill:none;stroke:#718096;stroke-width:1.8}.task-search input{border:0;padding:0;box-shadow:none!important}.task-view-switch{display:flex;overflow:hidden;border:1px solid #d8e1ed;border-radius:9px;background:#fff}.task-view-switch button{height:38px;border:0;background:#fff;padding:0 12px;color:#60738f;font-size:10px;cursor:pointer}.task-view-switch button.active{background:#2868e8;color:#fff}.task-type-tabs{display:flex;gap:2px;overflow:auto;border-radius:10px;background:#eef2f7;padding:4px;scrollbar-width:none}.task-type-tabs button{min-height:30px;flex:none;border:0;border-radius:8px;background:transparent;padding:5px 12px;color:#526783;font-size:10px;cursor:pointer}.task-type-tabs button.active{background:#fff;color:#172033;font-weight:700;box-shadow:0 1px 4px rgba(19,35,62,.12)}.tasks-table-wrap{border-radius:12px}.tasks-table{min-width:1450px}.tasks-table td{height:45px;padding:8px 9px;color:#53627a}.tasks-table td:first-child strong{display:block;max-width:190px;overflow:hidden;color:#111827;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.tasks-table td:first-child small{display:block;margin-top:2px;font-size:8px}.task-area-badge{display:inline-flex;align-items:center;gap:4px;border-radius:5px;background:#fff5da;padding:4px 6px;color:#ad6200;font-size:8px;font-weight:700}.task-area-badge svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2}.task-location{max-width:190px;overflow:hidden;text-overflow:ellipsis}.task-row-actions{display:flex;align-items:center;gap:4px}.task-row-actions button{display:grid;width:27px;height:27px;place-items:center;border:0;border-radius:7px;background:transparent;color:#1f2937;cursor:pointer}.task-row-actions button:hover{background:#edf4ff;color:#1767df}.task-row-actions button.delete{color:#e3293d}.task-row-actions svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8}.task-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.task-list-card{display:grid;gap:10px;border:1px solid #dce4ef;border-radius:12px;background:#fff;padding:14px;cursor:pointer}.task-list-card>header{display:flex;justify-content:space-between}.task-list-card h3{margin:0;font-size:13px}.task-list-card p{margin:0;color:#60738f;font-size:10px}.task-list-card dl{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0}.task-list-card dl div{display:grid;gap:2px}.task-list-card dt{color:#8a97aa;font-size:8px}.task-list-card dd{margin:0;font-size:10px}.task-list-card .task-row-actions{justify-content:flex-end;border-top:1px solid #edf1f6;padding-top:8px}.task-empty{border:1px solid #dce4ef;border-radius:12px;background:#fff}
.task-editor-modal{width:min(760px,calc(100vw - 24px));max-height:95vh}.task-editor-modal>header{position:sticky;z-index:8;top:0;background:#fff}.task-editor-modal>form{padding:18px 24px}.task-editor-modal .form-grid{gap:14px 12px}.task-customer-field>span,.task-map-field>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.task-customer-field>span>em{display:flex;align-items:center;gap:8px;color:#60738f;font-size:9px;font-style:normal;font-weight:500}.task-customer-field>span>em input{width:35px}.task-map-field{display:grid;gap:7px}.task-map-field strong{font-size:10px}.task-map-field small{color:#60738f;font-size:9px}.task-map-field #task-location-map{height:300px;overflow:hidden;border:1px solid #d8e1ed;border-radius:10px;background:#e8f1f6}.task-map-field>p{margin:-38px auto 8px;z-index:500;border:1px solid #d8e1ed;border-radius:999px;background:#fff;padding:7px 12px;color:#60738f;font-size:9px;box-shadow:0 3px 10px rgba(19,35,62,.12)}.task-editor-modal .form-actions{position:sticky;z-index:7;bottom:-18px;margin:6px -24px -18px;background:#fff;padding:14px 24px;border-top:1px solid #e6eaf0}.task-editor-modal .leaflet-control-layers{border:0;border-radius:9px;box-shadow:0 2px 8px rgba(19,35,62,.18)}
@media(max-width:1280px){.task-filter-bar{grid-template-columns:minmax(220px,1fr) repeat(3,minmax(120px,.6fr));}.task-view-switch{width:max-content}.task-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.task-filter-bar{grid-template-columns:1fr 1fr}.task-search{grid-column:1/-1}.task-filter-bar>.modern-native-select{min-width:0}.task-view-switch{grid-column:1/-1}.task-type-tabs button{min-height:36px}.task-card-grid{grid-template-columns:1fr}.task-editor-modal{width:100%;max-height:96vh}.task-editor-modal>form{padding:16px}.task-editor-modal .form-grid{grid-template-columns:1fr}.task-editor-modal .span-2{grid-column:1}.task-map-field #task-location-map{height:255px}.task-editor-modal .form-actions{margin:4px -16px -16px;padding:12px 16px}}
.task-customer-field>span>em input{position:relative;width:36px;height:20px;appearance:none;border:0;border-radius:999px;background:#dbe4ef;padding:0;cursor:pointer;box-shadow:none}.task-customer-field>span>em input:after{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(19,35,62,.22);content:"";transition:transform .18s}.task-customer-field>span>em input:checked{background:#2872ed}.task-customer-field>span>em input:checked:after{transform:translateX(16px)}
@media(min-width:761px){.task-editor-modal{width:min(560px,calc(100vw - 24px))}}



/* Reference-style pack status, battery graph, and cell graph. */

/* Compact pack reading cards with the retained live cell-voltage cards. */

/* Accurate cell comparison: centered deviation marker instead of exaggerated fills. */


/* Refresh-safe hash navigation uses real links with the existing button appearance. */
.sidebar nav a{display:flex;width:100%;min-height:39px;align-items:center;gap:11px;border-radius:10px;padding:8px 12px;color:#566176;text-align:left;text-decoration:none;cursor:pointer}.sidebar nav a:hover{background:#f2f7ff;color:#1769ea;transform:translateX(2px)}.sidebar nav a.active{background:var(--fc-blue-soft,#edf2f8);color:#0865e9;font-weight:700}.sidebar nav a svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sidebar nav a span{font-size:13px}.tech-nav a{display:grid;place-items:center;align-content:center;gap:4px;color:#60718a;font-size:8px;text-decoration:none;cursor:pointer}.tech-nav a.active{color:#1760f0}.tech-nav a svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1040px){.sidebar nav a span{font-size:12px}}

.page-title h1{font-size:19px;letter-spacing:-.025em}
.page-title>div>p:last-child{font-size:10px}
@media(max-width:650px){.page-title h1{font-size:17px}.page-title>div>p:last-child{font-size:10px}}

/* Keep the mobile app header on one line. */
@media(max-width:760px){
  .topbar{height:64px;gap:8px;padding:0 14px}
  .topbar #open-nav{width:40px;height:40px;flex:none}
  .topbar>div:first-of-type{display:flex;min-width:0;flex:1;align-items:center}
  .topbar>div:first-of-type strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
  .topbar>div:first-of-type small,.topbar #today{display:none}
  .topbar .topbar-actions{display:flex;flex:none;align-items:center;gap:6px;margin-left:auto}
  .topbar-actions .icon{width:40px;height:40px}
  .topbar-actions svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
  .top-avatar{display:grid;width:34px;height:34px;flex:none;place-items:center;border-radius:50%;background:#2c68e8;color:#fff;font-size:12px!important;font-weight:750}
  .top-chevron{display:none}
}

/* Task editor reference layout. */
.task-editor-modal{width:min(560px,calc(100vw - 10px));max-height:calc(100dvh - 12px);overflow-y:auto;border:1px solid #e1e7ef;border-radius:11px;background:#f8fafc;box-shadow:0 20px 55px rgba(15,23,42,.25)}
.task-editor-modal>header{min-height:48px;gap:5px;border-bottom:1px solid #e6ebf1;background:#f8fafc;padding:10px 16px}
.task-editor-modal>header>div{min-width:0;flex:1}
.task-editor-modal>header .eyebrow{display:none}
.task-editor-modal>header h2{color:#172033;font-size:14px;font-weight:700;letter-spacing:-.015em}
.task-editor-modal>header .icon{width:24px;height:24px;flex:none;color:#66758b;font-size:16px}
.task-header-settings{display:grid;width:24px;height:24px;flex:none;place-items:center;color:#7c8ba1}
.task-header-settings svg,.task-area-title svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.task-editor-modal>form{padding:8px 16px 16px}
.task-editor-modal .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 9px}
.task-editor-modal .form-grid>.span-2{grid-column:1/-1}
.task-editor-modal .form-grid>label{min-width:0;gap:5px;color:#344054;font-size:10px;font-weight:600}
.task-editor-modal .form-grid input:not([type="hidden"]):not([type="checkbox"]),.task-editor-modal .form-grid textarea,.task-editor-modal .modern-native-select-trigger,.task-editor-modal .modern-date-trigger{width:100%;min-height:30px;border:1px solid #d9e2ec;border-radius:7px;background:#f8fafc;padding:5px 9px;color:#253247;font-size:11px;font-weight:500;box-shadow:0 1px 2px rgba(19,35,62,.025)}
.task-editor-modal .form-grid input::placeholder,.task-editor-modal .form-grid textarea::placeholder{color:#8391a6}
.task-editor-modal .form-grid textarea{height:47px;min-height:47px;resize:vertical}
.task-editor-modal .modern-native-select-trigger,.task-editor-modal .modern-date-trigger{display:flex;align-items:center;padding:0 9px;text-align:left}
.task-editor-modal .modern-native-select-trigger svg,.task-editor-modal .modern-date-trigger svg{width:13px;height:13px}
.task-editor-modal .task-customer-field>span,.task-editor-modal .task-map-field>div:first-child,.task-editor-modal .task-area-title{display:flex;align-items:center;justify-content:space-between;gap:6px}
.task-editor-modal .task-customer-field>span>em{gap:6px;color:#75849a;font-size:8px;font-weight:500;white-space:nowrap}
.task-editor-modal .task-customer-field>span>em input{flex:none}
.task-editor-modal .task-customer-field>span>em input[type="checkbox"]{width:30px;min-width:30px;max-width:30px;height:17px;min-height:17px;max-height:17px;margin:0;padding:0;border:0;border-radius:999px;box-shadow:none}
.task-editor-modal .task-customer-field>span>em input[type="checkbox"]:after{top:2px;left:2px;width:13px;height:13px;box-shadow:none}
.task-editor-modal .task-customer-field>span>em input[type="checkbox"]:checked:after{transform:translateX(13px)}
.task-editor-modal .task-area-title>span{display:grid;place-items:center;color:#8492a6}
.task-editor-modal .task-map-field{min-width:0;gap:6px}
.task-editor-modal .task-map-field{margin-top:10px}
.task-editor-modal .task-map-field strong{color:#344054;font-size:10px;font-weight:600}
.task-editor-modal .task-map-field small{color:#8a97aa;font-size:8px}
.task-editor-modal .task-map-field #task-location-map{display:block;height:190px;min-width:0;border:1px solid #d8e3ec;border-radius:7px;background:#d9eef3}
.task-editor-modal .task-map-field>p{position:relative;z-index:700;justify-self:center;margin:-28px auto 5px;padding:5px 9px;color:#74859c;font-size:8px;pointer-events:none;box-shadow:0 2px 7px rgba(19,35,62,.12)}
.task-editor-modal .leaflet-control-layers{border:1px solid #e0e6ed;border-radius:7px;box-shadow:0 3px 9px rgba(19,35,62,.15)}
.task-editor-modal .leaflet-control-layers-expanded{min-width:140px;padding:6px 8px;background:#fff}
.task-editor-modal .leaflet-control-layers-base label{padding:3px 0;color:#334155;font-size:9px;font-weight:600}
.task-editor-modal .form-grid .leaflet-control-layers-base input[type="radio"]{width:11px;min-width:11px;max-width:11px;height:11px;min-height:11px;max-height:11px;margin:0 5px 0 0;padding:0;border:0;background:transparent;box-shadow:none;accent-color:#2563eb}
.task-editor-modal .leaflet-control-zoom a{width:26px;height:26px;line-height:26px;font-size:16px}
.task-editor-modal .leaflet-control-layers-toggle{width:32px;height:32px;background-size:18px}
.task-editor-modal .leaflet-control-attribution{font-size:7px}
.task-editor-modal .leaflet-control-layers-list{font-size:10px}
.task-editor-modal .task-map-field>p{display:none}
.task-editor-modal .form-actions{position:sticky;z-index:7;bottom:-16px;gap:7px;margin:13px -16px -16px;border-top:1px solid #e6ebf1;background:#f8fafc;padding:11px 16px}
.task-editor-modal .form-actions .primary,.task-editor-modal .form-actions .secondary{min-height:33px;border-radius:7px;padding:7px 12px;font-size:10px;font-weight:600;box-shadow:0 1px 3px rgba(19,35,62,.08)}
.task-editor-modal .form-actions .primary{background:#316ef0;color:#fff}
.task-editor-modal .form-actions .primary:disabled{background:#8aafff;color:#fff;opacity:1;box-shadow:none}
.task-editor-modal .form-actions .secondary{border-color:#dce4ee;background:#f8fafc;color:#344054}
@media(max-width:760px){
  .modal-layer:has(.task-editor-modal){padding:5px}
  .task-editor-modal{width:100%;max-height:calc(100dvh - 10px)}
  .task-editor-modal>header{padding:10px 15px}
  .task-editor-modal>form{padding:6px 15px 15px}
  .task-editor-modal .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 8px}
  .task-editor-modal .form-grid>.span-2{grid-column:1/-1}
  .task-editor-modal .task-map-field #task-location-map{height:clamp(155px,49vw,190px)}
  .task-editor-modal .form-actions{bottom:-15px;margin:12px -15px -15px;padding:10px 15px}
}
@media(max-width:360px){
  .task-editor-modal{display:flex;min-height:calc(100dvh - 10px);flex-direction:column}
  .task-editor-modal>header{min-height:42px;padding:8px 14px}
  .task-editor-modal>header h2{font-size:12px}
  .task-editor-modal>form{display:flex;flex:1;flex-direction:column;padding:6px 14px 12px}
  .task-editor-modal .form-grid{gap:6px 8px}
  .task-editor-modal .task-map-field~label{margin-top:4px}
  .task-editor-modal .form-grid>label{gap:4px;font-size:9px}
  .task-editor-modal .form-grid input:not([type="hidden"]):not([type="checkbox"]),.task-editor-modal .form-grid textarea,.task-editor-modal .modern-native-select-trigger,.task-editor-modal .modern-date-trigger{min-height:24px;padding:3px 7px;font-size:9px}
  .task-editor-modal .form-grid textarea{height:38px;min-height:38px}
  .task-editor-modal .task-map-field{gap:4px}
  .task-editor-modal .task-map-field strong{font-size:9px}
  .task-editor-modal .task-map-field small,.task-editor-modal .task-customer-field>span>em{font-size:7px}
  .task-editor-modal .task-map-field>p{font-size:7px}
  .task-editor-modal .task-customer-field>span>em input[type="checkbox"]{width:26px;min-width:26px;max-width:26px;height:15px;min-height:15px;max-height:15px}
  .task-editor-modal .task-customer-field>span>em input[type="checkbox"]:after{width:11px;height:11px}
  .task-editor-modal .task-customer-field>span>em input[type="checkbox"]:checked:after{transform:translateX(11px)}
  .task-editor-modal .form-actions{bottom:-12px;margin:auto -14px -12px;padding:8px 14px}
  .task-editor-modal .form-actions .primary,.task-editor-modal .form-actions .secondary{min-height:27px;padding:5px 9px;font-size:9px}
}

/* Tasks reference: full-size admin shell, list, and task editor. */
@media(min-width:761px){
  body:not(.technician-mode) .app-shell .sidebar{width:315px}
  body:not(.technician-mode) .app-shell .main{margin-left:315px}
  .sidebar>header{min-height:79px;gap:13px;padding:10px 25px}
  .brand-mark.small{width:43px;height:44px;border-radius:14px}
  .brand-mark.small svg{width:23px;height:23px}
  .sidebar>header strong{font-size:18px;line-height:1.22}
  .sidebar>header small{font-size:12px;font-weight:500;letter-spacing:.04em}
  .sidebar nav{padding:12px 10px 18px}
  .sidebar nav section{margin-top:5px;margin-bottom:15px}
  .sidebar nav p{padding:9px 15px 12px;font-size:12px;letter-spacing:.045em}
  .sidebar nav a{min-height:47px;gap:16px;border-radius:15px;padding:9px 15px}
  .sidebar nav a span{font-size:17px;font-weight:400}
  .sidebar nav a svg{width:19px;height:19px}
  .sidebar nav a.active{background:#eef2f7;color:#0757d8;font-weight:500}
  .sidebar nav a.active span{font-weight:500}
  .sidebar>footer{min-height:82px;padding:12px 25px;gap:15px}
  .sidebar>footer .avatar{width:45px;height:45px;font-size:16px}
  .sidebar>footer strong{font-size:16px}
  .sidebar>footer small{font-size:13px}
  .topbar{height:79px;padding:0 30px}
  .topbar strong{font-size:22px;font-weight:600}
  .topbar #today{display:none}
  .topbar-actions{margin-left:auto;gap:15px}
  .topbar-actions .icon{width:40px;height:40px}
  .top-avatar{width:40px;height:40px;font-size:16px!important}
  .top-chevron{font-size:17px!important}
  .content.tasks-page{gap:30px;padding:31px 30px 60px}
}
.tasks-page .page-title .eyebrow{display:none}
.tasks-page .task-filter-bar{grid-template-columns:minmax(230px,1.45fr) minmax(170px,.88fr) minmax(165px,.88fr) minmax(175px,1fr) minmax(165px,.88fr) minmax(160px,.88fr) 164px;gap:15px}
.tasks-page .task-search,.tasks-page .task-filter-bar>.modern-native-select .modern-native-select-trigger{min-height:45px;border-radius:13px;background:#f8fafc;box-shadow:0 2px 3px rgba(15,23,42,.05)}
.tasks-page .task-search{gap:12px;padding:0 16px}
.tasks-page .task-search svg{width:19px;height:19px}
.tasks-page .task-search>svg{display:none}
.tasks-page .task-search:before{width:19px;height:19px;flex:none;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23647b9c' stroke-width='1.9' stroke-linecap='round'%3E%3Ccircle cx='10.8' cy='10.8' r='7.2'/%3E%3Cpath d='m16.2 16.2 5 5'/%3E%3C/svg%3E");content:""}
.tasks-page .task-search input,.tasks-page .task-filter-bar>.modern-native-select .modern-native-select-trigger{font-size:17px;font-weight:400}
.tasks-page .task-search input::placeholder{color:#617a9e}
.tasks-page .task-filter-bar>.modern-native-select .modern-native-select-trigger{padding:0 16px}
.tasks-page .task-filter-bar>#task-status+.modern-native-select .modern-native-select-trigger:before,.tasks-page .task-filter-bar>#task-area+.modern-native-select .modern-native-select-trigger:before,.tasks-page .task-filter-bar>#task-date+.modern-native-select .modern-native-select-trigger:before,.tasks-page .task-filter-bar>#task-sort+.modern-native-select .modern-native-select-trigger:before{display:block;width:19px;height:19px;flex:none;background:center/contain no-repeat;content:""}
.tasks-page .task-filter-bar>#task-status+.modern-native-select .modern-native-select-trigger:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2307152f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 5h18l-7 8v6l-4 2v-8Z'/%3E%3C/svg%3E")}
.tasks-page .task-filter-bar>#task-area+.modern-native-select .modern-native-select-trigger:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2307152f' stroke-width='1.8'%3E%3Cpath d='M12 22s7-6 7-12a7 7 0 1 0-14 0c0 6 7 12 7 12Z'/%3E%3Ccircle cx='12' cy='10' r='2.6'/%3E%3C/svg%3E")}
.tasks-page .task-filter-bar>#task-date+.modern-native-select .modern-native-select-trigger:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23647b9c' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4M17 3v4M3 10h18'/%3E%3C/svg%3E")}
.tasks-page .task-filter-bar>#task-sort+.modern-native-select .modern-native-select-trigger:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2307152f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 19V5m0 0L4 8m3-3 3 3m7-3v14m0 0-3-3m3 3 3-3'/%3E%3C/svg%3E")}
.tasks-page .task-view-switch{height:45px;border-radius:13px}
.tasks-page .task-view-switch button{height:44px;flex:1;padding:0 13px;font-size:16px}
.tasks-page .task-type-tabs{min-height:45px;align-items:center;justify-content:center;gap:0;border-radius:15px;background:#f0f4f8;padding:4px}
.tasks-page .task-type-tabs button{min-height:36px;padding:5px 16px;font-size:17px;font-weight:400;white-space:nowrap}
.tasks-page .task-type-tabs button.active{font-weight:500}
.tasks-page .tasks-table-wrap{border-radius:15px}
.tasks-page .tasks-table{min-width:1660px}
.tasks-page .tasks-table th{height:53px;padding:7px 10px;background:#f8fafc;color:#597397;font-size:17px;font-weight:500;letter-spacing:0;text-transform:none;white-space:normal}
.tasks-page .tasks-table td{height:56px;padding:10px;color:#07152f;font-size:15px}
.tasks-page .tasks-table td:first-child strong{max-width:240px;font-size:17px;font-weight:500}
.tasks-page .tasks-table td:first-child small{display:none}
.tasks-page .tasks-table td:nth-child(2),.tasks-page .tasks-table .task-location{color:#597397}
.tasks-page .task-area-badge{gap:5px;background:#fff9e9;padding:4px 7px;color:#bd5700;font-size:15px;font-weight:400}
.tasks-page .task-area-badge svg{width:15px;height:15px}
.tasks-page .tasks-table .priority,.tasks-page .tasks-table .status{border:1px solid #c4dcff;border-radius:13px;background:#eef5ff;padding:5px 13px;color:#075eff;font-size:15px;font-weight:400}
.tasks-page .tasks-table .status.completed{border-color:#a7ebce;background:#ebfff4;color:#009b6d}
.tasks-page .tasks-table .status.in_progress{border-color:#ded0ff;background:#f6f2ff;color:#7539ff}
.tasks-page .tasks-table .status.new,.tasks-page .tasks-table .status.assigned{border-color:#c4dcff;background:#eef5ff;color:#075eff}
.tasks-page .task-row-actions button{width:30px;height:30px}
.tasks-page .task-card-grid{gap:17px}
.tasks-page .task-list-card h3{font-size:17px}
.tasks-page .task-list-card p,.tasks-page .task-list-card dd{font-size:14px}
.task-editor-modal{width:min(640px,calc(100vw - 20px));max-height:calc(100dvh - 12px);border-radius:16px;background:#f8fafc}
.task-editor-modal>header{min-height:72px;border-bottom:0;padding:19px 30px 8px}
.task-editor-modal>header h2{font-size:22px;font-weight:600}
.task-editor-modal>header .icon,.task-header-settings{width:27px;height:27px;font-size:25px}
.task-header-settings svg,.task-area-title svg{width:19px;height:19px}
.task-editor-modal>form{padding:12px 30px 30px}
.task-editor-modal .form-grid{gap:22px 16px}
.task-editor-modal .form-grid>label{gap:9px;color:#07152f;font-size:17px;font-weight:500}
.task-editor-modal .form-grid input:not([type="hidden"]):not([type="checkbox"]),.task-editor-modal .form-grid textarea,.task-editor-modal .modern-native-select-trigger,.task-editor-modal .modern-date-trigger{min-height:45px;border-radius:13px;padding:10px 15px;font-size:17px;font-weight:400;box-shadow:0 2px 3px rgba(15,23,42,.05)}
.task-editor-modal .form-grid textarea{height:76px;min-height:76px}
.task-editor-modal .modern-native-select-trigger,.task-editor-modal .modern-date-trigger{padding:0 15px}
.task-editor-modal .modern-native-select-trigger svg,.task-editor-modal .modern-date-trigger svg{width:17px;height:17px}
.task-editor-modal .task-customer-field>span>em{font-size:14px}
.task-editor-modal .task-customer-field>span>em input[type="checkbox"]{width:45px;min-width:45px;max-width:45px;height:26px;min-height:26px;max-height:26px}
.task-editor-modal .task-customer-field>span>em input[type="checkbox"]:after{width:21px;height:21px;top:2.5px;left:2px}
.task-editor-modal .task-customer-field>span>em input[type="checkbox"]:checked:after{transform:translateX(20px)}
.task-editor-modal .task-map-field{margin-top:0;gap:10px}
.task-editor-modal .task-map-field strong{font-size:17px;font-weight:500}
.task-editor-modal .task-map-field small{font-size:14px}
.task-editor-modal .task-map-field #task-location-map{height:300px;border-radius:14px}
.task-editor-modal .leaflet-control-zoom a{width:36px;height:36px;line-height:36px;font-size:22px}
.task-editor-modal .leaflet-control-layers-toggle{width:39px;height:39px;background-size:22px}
.task-editor-modal .form-actions{bottom:-30px;margin:22px -30px -30px;padding:16px 30px}
.task-editor-modal .form-actions .primary,.task-editor-modal .form-actions .secondary{min-height:42px;padding:8px 16px;font-size:14px}
@media(max-width:1450px) and (min-width:761px){
  .tasks-page .task-filter-bar{grid-template-columns:repeat(3,minmax(0,1fr))}
  .tasks-page .task-search{grid-column:span 2}
  .tasks-page .task-type-tabs{justify-content:flex-start}
}
@media(max-width:760px){
  .content.tasks-page{gap:18px}
  .tasks-page .task-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .tasks-page .task-search{grid-column:1/-1}
  .tasks-page .task-search input,.tasks-page .task-filter-bar>.modern-native-select .modern-native-select-trigger{font-size:13px}
  .tasks-page .task-type-tabs{justify-content:flex-start}
  .tasks-page .task-type-tabs button{font-size:13px}
  .task-editor-modal{width:calc(100vw - 12px)}
  .task-editor-modal>header{min-height:60px;padding:14px 20px 8px}
  .task-editor-modal>header h2{font-size:20px}
  .task-editor-modal>form{padding:10px 20px 20px}
  .task-editor-modal .form-grid{gap:17px 12px}
  .task-editor-modal .form-grid>label{font-size:15px}
  .task-editor-modal .form-grid input:not([type="hidden"]):not([type="checkbox"]),.task-editor-modal .form-grid textarea,.task-editor-modal .modern-native-select-trigger,.task-editor-modal .modern-date-trigger{min-height:42px;font-size:14px}
  .task-editor-modal .task-customer-field>span>em{font-size:11px}
  .task-editor-modal .task-map-field strong{font-size:15px}
  .task-editor-modal .task-map-field small{font-size:11px}
  .task-editor-modal .task-map-field #task-location-map{height:245px}
  .task-editor-modal .form-actions{bottom:-20px;margin:17px -20px -20px;padding:12px 20px}
}
.office-map .leaflet-control-layers{border:1px solid #dce4ee;border-radius:9px;box-shadow:0 3px 9px #13233e26}
.office-map .leaflet-control-layers-expanded{min-width:140px;padding:6px 8px;background:#fff}
.office-map .leaflet-control-layers-base label{display:flex;align-items:center;gap:5px;padding:3px 0;color:#334155;font-size:10px;font-weight:600}
.office-map .leaflet-control-layers-base input[type="radio"]{width:13px;min-width:13px;height:13px;min-height:13px;margin:0;padding:0;border:0;border-radius:50%;background:transparent;box-shadow:none;accent-color:#2563eb}
.office-map .leaflet-control-layers-toggle{width:36px;height:36px;background-size:20px}
.office-map .leaflet-control-attribution{font-size:8px}

/* Office settings cards */
.office-grid{gap:16px}
.office-card{min-height:194px;align-content:start;gap:12px;border:1px solid #dce4ee;border-radius:13px;background:#fff;padding:20px;box-shadow:0 1px 3px #1720330b}
.office-card header{gap:8px}
.office-card header>i{width:40px;height:40px;flex:none;border-radius:11px;background:#edf4ff;color:#2563eb}
.office-card header>i svg{width:21px;height:21px}
.office-card header>div{min-width:0;gap:2px}
.office-card header strong{overflow:hidden;color:#283246;font-size:14px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.office-card header span{color:#718198;font-size:12px}
.office-card header .icon{width:30px;height:30px;flex:none;color:#60728f}
.office-card header .icon:hover{background:#eef4ff;color:#2563eb}
.office-card header .icon svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.office-card-details{display:grid;gap:9px}
.office-card-details p{display:flex;align-items:center;gap:8px;margin:0;color:#6a7b95;font-size:14px;line-height:1.2}
.office-card-details p svg{width:16px;height:16px;flex:none;fill:none;stroke:#7083a0;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.office-card small{color:#718199;font-size:12px;line-height:1.2}
.office-card em{color:#169567;font-size:12px;font-style:normal;font-weight:600;line-height:1.2}
@media(max-width:1050px){.office-grid{grid-template-columns:1fr}}
.user-permission-modal{display:flex;max-height:calc(100dvh - 24px);flex-direction:column;overflow:hidden}.user-permission-modal>header{flex:none}.user-permission-modal>form{display:flex;min-height:0;flex:1;flex-direction:column;overflow:hidden}.user-permission-modal .permission-toolbar,.user-permission-modal .form-actions{flex:none}.user-permission-modal .permission-groups{min-height:0;overflow-y:auto;padding-right:3px}.permission-module{min-width:0}.permission-module>.permission-settings-toggle{display:flex;min-height:28px;align-items:center;margin:4px 0 0 10px}.permission-module>.permission-settings-toggle>input{top:0;left:0}.permission-groups .permission-settings-toggle>span{min-height:28px;border:0;background:transparent;padding:3px 7px;color:#60728d;font-size:10px}.permission-groups .permission-settings-toggle>span>i{width:15px;height:15px}.permission-groups .permission-settings-toggle input:disabled+span{opacity:.45}

.modern-date-backdrop{position:fixed;inset:0;z-index:209;background:rgba(15,23,42,.38);touch-action:none}

:is(.primary,.secondary):has(> .settings-icon){display:inline-flex;align-items:center;justify-content:center;gap:8px}.settings-icon{flex:none;vertical-align:middle}
