/* Technician portal uses the admin console's type, color and surface scale. */
.tech-more-links{display:grid;gap:12px}
.technician-mode .tech-more-links button{display:flex;align-items:center;gap:14px;min-height:82px;width:100%;padding:18px;border:1px solid var(--fc-line);border-radius:14px;background:#fff;color:var(--fc-ink);text-align:left;cursor:pointer}
.tech-more-links button>svg{width:24px;height:24px;flex-shrink:0;fill:none;stroke:var(--fc-blue);stroke-width:1.8}
.tech-more-links button>span:first-of-type{display:grid;flex:1;gap:5px}
.tech-more-links strong{font-size:15px}.tech-more-links small{color:var(--fc-muted);font-size:12px}
.tech-more-links button:focus-visible{outline:2px solid var(--fc-blue);outline-offset:3px}
.technician-mode .app-shell .topbar{display:none}
.technician-mode .app-shell .content{width:min(640px,100%);gap:0;margin:auto;padding:28px 22px calc(98px + env(safe-area-inset-bottom));background:var(--fc-canvas)}
.technician-mode .app-shell .main{background:var(--fc-canvas)}
.technician-mode .tech-nav{width:min(640px,100%);height:calc(72px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom);border:1px solid var(--fc-line);border-bottom:0;background:#fff;box-shadow:0 -3px 15px rgba(15,23,42,.045)}
.technician-mode .tech-nav a{gap:5px;color:var(--fc-muted);font-size:11px;font-weight:550}
.technician-mode .tech-nav a.active{color:var(--fc-blue)}
.technician-mode .tech-nav svg{width:21px;height:21px}
.technician-mode .tech-page{gap:18px}
.technician-mode .tech-page>header h1{color:var(--fc-ink);font-size:22px;font-weight:700;letter-spacing:-.025em;line-height:1.25}
.technician-mode .tech-page>header p{margin:4px 0 0;color:var(--fc-muted);font-size:13px}
.technician-mode .clock-banner{min-height:78px;gap:12px;border:1px solid #f1db94;border-radius:14px;background:#fffdf5;padding:14px 16px;box-shadow:var(--fc-shadow)}
.technician-mode .clock-banner>svg{width:44px;height:44px;border-radius:12px;background:#fff3bd;padding:12px;stroke:#de8500}
.technician-mode .clock-banner strong{color:var(--fc-ink);font-size:14px}
.technician-mode .clock-banner small{color:var(--fc-muted);font-size:12px}
.technician-mode .tech-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.technician-mode .tech-stats button{display:grid;min-height:108px;place-items:center;align-content:center;gap:4px;border:1px solid var(--fc-line);border-radius:14px;background:#fff;padding:11px 5px;color:var(--fc-ink);box-shadow:var(--fc-shadow);cursor:pointer}
.technician-mode .tech-stats button:hover,.technician-mode .tech-job-card:hover{border-color:#b6c8f7;box-shadow:0 5px 16px rgba(37,99,235,.09)}
.technician-mode .tech-stats button svg{width:35px;height:35px;border-radius:10px;background:var(--fc-blue-soft);padding:9px;fill:none;stroke:var(--fc-blue);stroke-width:1.8}
.technician-mode .tech-stats button:nth-child(2) svg{background:#eafaf2;stroke:#15a56b}
.technician-mode .tech-stats button:nth-child(3) svg{background:#fff8e8;stroke:#e68a00}
.technician-mode .tech-stats button strong{font-size:22px;line-height:1.1}
.technician-mode .tech-stats button span{color:var(--fc-muted);font-size:10px;font-weight:650;letter-spacing:.03em}
.technician-mode .tech-section{gap:12px;margin-top:4px}
.technician-mode .tech-section h2{gap:8px;color:var(--fc-ink);font-size:15px;font-weight:700}
.technician-mode .tech-section h2 svg{width:17px;height:17px}
.technician-mode .tech-announcement{display:grid;width:100%;gap:5px;border:1px solid #d7e3ff;border-radius:14px;background:#f5f8ff;padding:15px;text-align:left;box-shadow:var(--fc-shadow);cursor:pointer}
.technician-mode .tech-announcement .urgent{border:1px solid #ffd0d0;background:#fff2f2;color:#dc3535;font-size:10px}
.technician-mode .tech-announcement strong{color:var(--fc-ink);font-size:13px;font-weight:650}
.technician-mode .tech-announcement p{margin:0;color:var(--fc-muted);font-size:12px;line-height:1.45}
.technician-mode .tech-tasks-page{gap:17px}
.technician-mode .tech-tasks-page .tech-title{margin:0}
.technician-mode .tech-tasks-page .tech-title h1{font-size:22px}
.technician-mode .tech-tasks-page .primary{min-height:40px;border-radius:10px;font-size:12px}
.technician-mode .task-pills{display:flex;flex-wrap:wrap;gap:8px;border:1px solid var(--fc-line);border-radius:14px;background:#fff;padding:7px;box-shadow:var(--fc-shadow)}
.technician-mode .task-pills button{min-height:38px;border:0;border-radius:9px;background:transparent;padding:7px 15px;color:var(--fc-muted);font-size:12px;font-weight:600}
.technician-mode .task-pills button.active{background:var(--fc-blue-soft);color:#315ce4}
.technician-mode .tech-task-list{gap:12px}
.technician-mode .tech-task-list .tech-job-card{display:grid;width:100%;min-height:0;align-items:start;gap:6px;border:1px solid var(--fc-line);border-radius:14px;background:#fff;padding:17px 18px;text-align:left;box-shadow:var(--fc-shadow);cursor:pointer}
.technician-mode .tech-job-head{display:flex;min-width:0;align-items:center;justify-content:space-between;gap:12px}
.technician-mode .tech-job-head strong{overflow:hidden;color:var(--fc-ink);font-size:14px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.technician-mode .tech-job-head .priority{flex:none;border:1px solid #c7d9ff;background:#eff5ff;padding:5px 10px;color:#3463ef;font-size:10px}
.technician-mode .tech-job-type{color:var(--fc-muted);font-size:12px}
.technician-mode .tech-job-meta{display:flex;align-items:center;gap:7px;color:var(--fc-muted);font-size:12px}
.technician-mode .tech-job-meta svg,.technician-mode .tech-job-duration svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
.technician-mode .tech-job-foot{display:flex;align-items:center;justify-content:space-between;margin-top:5px}
.technician-mode .tech-job-foot .status{border:1px solid #c7d9ff;background:#eff5ff;color:#3463ef;font-size:10px}
.technician-mode .tech-job-duration{display:flex;align-items:center;gap:6px;color:var(--fc-muted);font-size:11px}
.technician-mode .tech-job-view{display:flex;min-height:42px;align-items:center;justify-content:center;gap:9px;margin-top:8px;border:1px solid var(--fc-line);border-radius:10px;color:var(--fc-ink);font-size:12px;box-shadow:0 1px 2px rgba(15,23,42,.045)}
.technician-mode .tech-job-view svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}
.technician-mode .tech-job-card.compact{gap:6px;padding:17px 18px}
.technician-mode .tech-job-card.compact .tech-job-foot{justify-content:flex-start}
.technician-mode .tech-job-card.compact .tech-job-head strong{font-size:14px}
.technician-mode .tech-job-foot .status.paused{border-color:#d8ccff;background:#f3efff;color:#754ed1}
.technician-mode .tech-job-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:8px}
.technician-mode .tech-job-actions:has([data-tech-accept]){grid-template-columns:repeat(2,minmax(0,1fr))}
.technician-mode .tech-job-actions button:only-child{grid-column:1/-1}
.technician-mode .tech-job-actions button{display:flex;min-height:40px;align-items:center;justify-content:center;gap:7px;border:1px solid var(--fc-line);border-radius:10px;background:#fff;color:var(--fc-ink);font-size:12px;box-shadow:0 1px 2px rgba(15,23,42,.045);cursor:pointer}
.technician-mode .tech-job-actions button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}
.technician-mode .tech-job-actions button.complete{border-color:#25976c;background:#2c9870;color:#fff}
.technician-mode .tech-job-actions button:disabled{cursor:not-allowed;opacity:.5}
.tech-job-modal{width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 28px);border-radius:16px;background:#fff}
.tech-job-modal>header{min-height:62px;border-bottom:1px solid var(--fc-line);padding:17px 24px}
.tech-job-modal>header h2{font-size:18px}
.tech-job-modal .tech-job-detail{display:grid;gap:15px;padding:20px 24px 24px}
.tech-detail-title h3{margin:0;color:var(--fc-ink);font-size:16px;font-weight:650}
.tech-detail-title p{margin:2px 0 9px;color:var(--fc-muted);font-size:12px}
.tech-detail-title>span{display:block;color:var(--fc-muted);font-size:11px}
.tech-detail-title>strong{display:block;margin-top:3px;color:var(--fc-ink);font-size:14px;font-weight:600}
.tech-detail-pills{display:flex;gap:8px;margin-top:10px}
.tech-detail-pills .priority,.tech-detail-pills .status{border:1px solid #c8d9ff;background:#eff5ff;padding:5px 10px;color:#3463ef;font-size:10px}
.tech-detail-location{display:grid;gap:8px;border:1px solid var(--fc-line);border-radius:12px;background:var(--fc-canvas);padding:13px}
.tech-detail-location p{display:flex;align-items:center;gap:9px;margin:0;color:var(--fc-muted);font-size:12px}
.tech-detail-location svg{width:17px;height:17px;fill:none;stroke:#667c9b;stroke-width:1.7}
.tech-detail-map{display:grid;overflow:hidden;border:1px solid var(--fc-line);border-radius:12px}
.tech-detail-map #tech-job-map,.tech-detail-map-unavailable{width:100%;height:198px;border:0;background:#e7eef4}
.tech-detail-map-unavailable{display:grid;place-items:center;color:#71819a;font-size:13px}
.tech-detail-map a{display:flex;min-height:42px;align-items:center;justify-content:center;gap:9px;background:var(--fc-blue);color:#fff;font-size:12px;font-weight:650;text-decoration:none}
.tech-detail-map a svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.tech-detail-photo-section h4{margin:0 0 12px;color:var(--fc-ink);font-size:13px;font-weight:650}
.tech-detail-empty{margin:0;color:#8391a5;font-size:13px;font-style:italic}
.tech-detail-photos{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.tech-detail-photos img{width:100%;aspect-ratio:1.3;object-fit:cover;border-radius:9px}
.tech-detail-photos button,.task-detail-photos button{display:block;width:100%;padding:0;border:0;border-radius:9px;background:transparent;cursor:pointer;overflow:hidden}
.tech-detail-photos button:focus-visible,.task-detail-photos button:focus-visible{outline:3px solid #3768f4;outline-offset:2px}
.tech-photo-viewer{width:min(900px,calc(100vw - 24px));max-height:calc(100dvh - 24px);padding:16px;background:#f8fafc}
.tech-photo-viewer>header{display:flex;justify-content:space-between;align-items:center;padding:0 0 12px}
.tech-photo-viewer>img{display:block;max-width:100%;max-height:calc(100dvh - 110px);margin:auto;object-fit:contain;border-radius:8px}
.tech-detail-description{margin:0;color:#5f7089;font-size:13px;line-height:1.5;white-space:pre-wrap}
.tech-detail-more{border-top:1px solid #e9eef5;padding-top:11px;color:#60738e;font-size:13px}
.tech-detail-more summary{cursor:pointer}
.tech-detail-more form{display:grid;gap:8px;margin-top:12px}
.tech-detail-more form label{display:grid;gap:6px}
.tech-detail-more form button{justify-self:start}
.tech-cancel-task{margin-top:12px;border:0;background:none;color:#cf4054;font-size:12px;cursor:pointer}
.tech-detail-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:17px}
.tech-detail-actions .secondary,.tech-detail-actions .primary{min-height:42px;padding:9px 16px;font-size:12px}
.tech-announcement-modal{width:min(520px,calc(100vw - 24px))}
.tech-announcement-modal .modal-body p{color:#47566f;font-size:14px;line-height:1.6;white-space:pre-wrap}
.tech-announcement-modal .modal-body small{color:#8b99ad}
.tech-complete-modal{width:min(450px,calc(100vw - 24px));max-height:calc(100dvh - 28px);border-radius:16px;background:#fff}
.tech-complete-modal>header{border-bottom:1px solid var(--fc-line);padding:18px 24px}
.tech-complete-modal>header h2{font-size:18px}
.tech-complete-modal form{display:grid;gap:12px;padding:20px 24px 24px}
.tech-complete-title{margin:2px 0 4px;color:#273349;font-size:15px;font-weight:600}
.tech-complete-modal form>label{display:grid;gap:7px;color:#25334a;font-size:13px;font-weight:500}
.tech-complete-modal textarea{min-height:79px;resize:vertical}
.tech-complete-label{display:flex;justify-content:space-between;color:#25334a;font-size:13px}
.tech-complete-label small{color:#6c7b94;font-size:12px}
.tech-complete-control{display:flex;min-height:39px;align-items:center;justify-content:center;gap:9px;border:1px solid #dce5f1;border-radius:10px;background:#f8fafc;color:#253247;font-size:13px;box-shadow:0 1px 2px rgba(15,23,42,.04);cursor:pointer}
.tech-complete-control:hover{border-color:#b9caf6;background:#f2f6ff}
.tech-complete-control svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7}
.tech-photo-preview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.tech-photo-preview:empty{display:none}
.tech-photo-tile{position:relative;display:block;min-width:0;overflow:hidden;border:1px solid #e2e8f0;border-radius:9px;background:#e9eef5;aspect-ratio:1.17}
.tech-photo-tile img{display:block;width:100%;height:100%;object-fit:cover}
.tech-photo-tile button{position:absolute;top:5px;right:5px;display:grid;width:25px;height:25px;place-items:center;border:0;border-radius:50%;background:#263447b9;color:#fff;font-size:18px;line-height:1;cursor:pointer}
.tech-photo-tile button:hover{background:#17243b}
.task-camera-layer{position:fixed;z-index:220;inset:0;display:grid;place-items:center;background:#0c1526ed;padding:14px}
.task-camera-panel{display:grid;width:min(560px,100%);height:min(820px,100%);grid-template-rows:auto minmax(0,1fr) auto;gap:12px;border-radius:16px;background:#111b2c;padding:14px;color:#fff;box-shadow:0 20px 60px #0008}
.task-camera-panel header,.task-camera-panel footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.task-camera-panel header{min-height:35px}.task-camera-panel header strong{font-size:16px}
.task-camera-panel header button,.task-camera-panel footer>button:last-child{border:0;border-radius:9px;background:#ffffff20;padding:7px 12px;color:#fff;font-size:14px;cursor:pointer}
.task-camera-panel header button{font-size:23px;line-height:1}
.task-camera-panel video{width:100%;height:100%;min-height:0;border-radius:11px;background:#050b14;object-fit:cover}
.task-camera-panel footer{min-height:68px}.task-camera-panel footer span{min-width:88px;color:#b5c5df;font-size:12px}
#task-camera-shutter{display:grid;width:58px;height:58px;flex:none;place-items:center;border:3px solid #fff;border-radius:50%;background:transparent;cursor:pointer}
#task-camera-shutter i{width:42px;height:42px;border-radius:50%;background:#fff}
#task-camera-shutter:disabled{opacity:.4;cursor:not-allowed}
.tech-location-hint{margin:-5px 0 7px;color:#d47800;font-size:11px}
.tech-location-hint.synced{color:#16885e}
.tech-complete-error{margin:0;border-radius:8px;background:#fff0f2;padding:9px;color:#b42343;font-size:12px}
.tech-complete-modal footer{display:flex;justify-content:flex-end;gap:9px;margin-top:3px}
.tech-complete-modal footer button{min-height:40px;padding:8px 15px;font-size:13px}
.tech-complete-modal footer .primary:disabled{background:#9eb4f5;color:#fff;opacity:1;box-shadow:none}
.technician-mode .tech-empty{color:var(--fc-muted);font-size:12px}
.technician-mode .tech-empty strong{color:var(--fc-ink);font-size:14px}
.technician-mode .time-card,.technician-mode .attendance-state,.technician-mode .verify-card,.technician-mode .daily-records,.technician-mode .salary-card,.technician-mode .profile-card,.technician-mode .profile-hero{border:1px solid var(--fc-line);border-radius:14px;background:#fff;box-shadow:var(--fc-shadow)}
.technician-mode .attendance-page .time-card strong{color:var(--fc-ink);font-size:30px}
.technician-mode .attendance-page .time-card span,.technician-mode .attendance-state small{color:var(--fc-muted);font-size:12px}
.technician-mode .attendance-state strong,.technician-mode .verify-card header span{color:var(--fc-ink);font-size:13px}
.technician-mode .verify-card em{font-size:10px}
.technician-mode .gps-row,.technician-mode .gps-row strong{font-size:12px}
.technician-mode .selfie-button,.technician-mode .verify-card .secondary.wide{min-height:42px;font-size:12px}
.technician-mode .attendance-page .tech-action{min-height:46px;background:var(--fc-blue);font-size:13px}
.technician-mode .attendance-page .tech-action.clock-out{background:#dc3545}
.technician-mode .attendance-page .tech-action:disabled{background:#9eb4f5}
.technician-mode .history-stats span,.technician-mode .salary-stats span{font-size:11px}
.technician-mode .daily-records h3,.technician-mode .salary-card h2,.technician-mode .profile-card h2{color:var(--fc-ink);font-size:14px}
.technician-mode .daily-records>div{font-size:11px}
.technician-mode .daily-records p,.technician-mode .salary-empty{font-size:12px}
.technician-mode .salary-card span,.technician-mode .salary-card strong,.technician-mode .profile-card>div,.technician-mode .profile-form label{font-size:12px}
.technician-mode .salary-card>small,.technician-mode .profile-form label small{font-size:11px}
.technician-mode .profile-hero>strong{color:var(--fc-ink);font-size:16px}
.technician-mode .profile-hero>span,.technician-mode .profile-stats span{font-size:12px}
.technician-mode .profile-hero>em{font-size:10px}
.technician-mode .logout-button{min-height:42px;font-size:12px}
@media(max-width:480px){.technician-mode .app-shell .content{padding:21px 15px calc(94px + env(safe-area-inset-bottom))}.technician-mode .tech-stats{gap:8px}.technician-mode .tech-stats button{min-height:105px}.technician-mode .tech-stats button span{font-size:9px}.technician-mode .tech-task-list .tech-job-card{padding:15px}.tech-job-modal>header{padding:16px 20px}.tech-job-modal .tech-job-detail{gap:15px;padding:18px 20px 20px}.tech-detail-map #tech-job-map,.tech-detail-map-unavailable{height:176px}}
.technician-mode .salary-page{width:min(100%,760px);margin-inline:auto;min-width:0}
.technician-mode .salary-page + .salary-page{margin-top:12px}
.technician-mode .salary-stats article{min-width:0;align-content:center;text-align:center}
.technician-mode .salary-stats strong{overflow-wrap:anywhere}
.technician-mode .salary-page .salary-card>div{grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px}
.technician-mode .salary-page .salary-card>div>strong{justify-self:end;text-align:right;overflow-wrap:anywhere}
.technician-mode .salary-page .salary-rate-card>div:has(>span:nth-of-type(2)){grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto}
.technician-mode .salary-loan-row{display:grid;width:100%;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:12px;border:0;border-top:1px solid #edf1f5;background:transparent;padding:12px 0;color:var(--fc-ink);text-align:left;cursor:pointer}
.technician-mode .salary-loan-row:hover,.technician-mode .salary-loan-row:focus-visible{color:var(--fc-blue);background:#f7faff}
.technician-mode .salary-loan-row span:first-child{min-width:0;overflow-wrap:anywhere}
.technician-mode .salary-loan-row strong{text-align:right;white-space:normal}
.technician-mode .salary-loan-row span:last-child{font-size:20px}
.technician-mode .salary-history-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;border-top:1px solid #edf1f5;padding:9px 0;color:var(--fc-ink);font-size:11px}
.technician-mode .salary-history-row strong{text-align:right}
.technician-mode .salary-history-disclosure>summary{position:relative;display:block;list-style:none;padding-right:22px;cursor:pointer}
.technician-mode .salary-history-disclosure>summary::-webkit-details-marker{display:none}
.technician-mode .salary-history-disclosure>summary h2{margin:0 0 3px}
.technician-mode .salary-history-disclosure>summary small{display:block;color:#6c7c91;font-size:11px}
.technician-mode .salary-history-disclosure>summary::after{position:absolute;right:2px;top:7px;width:8px;height:8px;border-right:1.5px solid #64748b;border-bottom:1.5px solid #64748b;transform:rotate(45deg);content:""}
.technician-mode .salary-history-disclosure[open]>summary::after{transform:rotate(225deg);top:11px}
.technician-mode .salary-history-disclosure>summary:focus-visible{outline:2px solid #3d6df0;outline-offset:3px;border-radius:4px}
.technician-mode .salary-history-disclosure[open]>.salary-history-rows{display:grid;margin-top:8px}
.salary-history-modal .salary-loan-summary>div:last-child:nth-child(odd){grid-column:1/-1}
.salary-loan-modal{width:min(520px,100%)}
.salary-loan-modal .modal-body{display:grid;gap:16px}
.salary-loan-modal .modal-body h3{margin:0;font-size:14px}
.salary-loan-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0}
.salary-loan-summary>div{min-width:0;border-radius:9px;background:#f6f8fc;padding:10px}
.salary-loan-summary dt{color:#64748b;font-size:11px}
.salary-loan-summary dd{margin:4px 0 0;font-size:13px;font-weight:700;overflow-wrap:anywhere}
.salary-loan-payments>div{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #edf1f5;padding:10px 0}
.salary-loan-payments span{display:grid;min-width:0;gap:3px}
.salary-loan-payments small{color:#64748b;overflow-wrap:anywhere}
.salary-loan-payments>div>strong{flex:none}
@media(max-width:550px){.technician-mode .salary-page .salary-rate-card>div:has(>span:nth-of-type(2)){grid-template-columns:minmax(0,1fr) auto}.technician-mode .salary-page .salary-rate-card>div:has(>span:nth-of-type(2))>span:nth-of-type(2){grid-column:1}.technician-mode .salary-loan-row{gap:7px}.technician-mode .salary-stats{gap:6px}.technician-mode .salary-stats article{padding:9px 5px}.technician-mode .salary-stats strong{font-size:clamp(11px,3vw,15px)}}
.technician-mode .attendance-history .history-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.technician-mode .attendance-history .history-stats article{display:flex;min-width:0;min-height:94px;flex-direction:column;align-items:center;justify-content:center;gap:8px;border-color:var(--fc-line);border-radius:13px;padding:10px 6px;text-align:center;box-shadow:var(--fc-shadow)}
.technician-mode .history-stat-heading{display:flex;width:100%;min-width:0;align-items:center;justify-content:center;gap:6px}
.technician-mode .history-stat-heading i{display:grid;width:32px;height:32px;flex:none;place-items:center;border-radius:50%;background:#edf3ff;color:#3467ff;font-style:normal}
.technician-mode .history-stat-heading svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.technician-mode .history-stats .history-stat-heading span{min-width:0;color:var(--fc-muted);font-size:clamp(10px,2.4vw,12px);line-height:1.2;overflow-wrap:anywhere}
.technician-mode .attendance-history .history-stats strong{max-width:100%;color:#3467ff;font-size:clamp(17px,4.5vw,22px);line-height:1.1;overflow-wrap:anywhere}
.technician-mode .history-stat-on-time .history-stat-heading i{background:#eaf9f1;color:#18a66b}
.technician-mode .attendance-history .history-stats .history-stat-on-time strong{color:#18a66b}
.technician-mode .history-stat-late .history-stat-heading i{background:#fff1f1;color:#e53935}
.technician-mode .attendance-history .history-stats .history-stat-late strong{color:#e0272f}
.technician-mode .history-stat-hours .history-stat-heading i{background:#f2ebff;color:#8c43f6}
.technician-mode .attendance-history .history-stats .history-stat-hours strong{color:#8c43f6}
.technician-mode .history-stat-punctuality .history-stat-heading i{background:#eaf0ff;color:#4268ff}
@media(max-width:360px){.technician-mode .attendance-history .history-stats{gap:7px}.technician-mode .attendance-history .history-stats article{padding:9px 4px}.technician-mode .history-stat-heading{flex-direction:column;gap:4px}}

/* Attendance layout and technician frame */
.technician-mode .app-shell .topbar{display:flex;height:60px;min-height:60px;padding:0 15px}
.technician-mode .app-shell .topbar:before{width:32px;height:32px;border-radius:11px;background:#3e67ee url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6.5a5 5 0 0 0-6 6L3 18l3 3 5.5-5.5a5 5 0 0 0 6-6l-3.2 3.2-3-3z'/%3E%3C/svg%3E") center/19px no-repeat;content:""}
.technician-mode .app-shell .topbar>div:first-of-type{align-self:center}
.technician-mode .app-shell .topbar #top-title{display:grid;gap:0;color:#101a2e;font-size:14px;line-height:1.1}
.technician-mode .app-shell .topbar #top-title:after{margin-top:3px;color:#607693;content:"TECHNICIAN";font-size:9px;font-weight:500;letter-spacing:.06em}
.technician-mode .app-shell .topbar .topbar-divider,.technician-mode .app-shell .topbar .top-avatar,.technician-mode .app-shell .topbar .top-chevron{display:none!important}
.technician-mode .app-shell .topbar .notification-button i{position:absolute;top:auto;right:0;bottom:0;display:block;width:9px;height:9px;border:2px solid #fff;border-radius:50%;background:#4a79f4}
.technician-mode .app-shell .topbar .notification-button i:after{content:none}
.technician-mode .app-shell .content{width:min(448px,100%);padding:18px 16px calc(92px + env(safe-area-inset-bottom))}
.technician-mode .tech-nav{width:min(448px,100%);height:calc(60px + env(safe-area-inset-bottom))}
.technician-mode .attendance-page{gap:16px}
.technician-mode .tech-attendance-heading{margin:0 0 1px}
.technician-mode .tech-attendance-heading h1{font-size:19px}
.technician-mode .tech-attendance-heading p{margin-top:3px;font-size:14px}
.technician-mode .attendance-page .time-card{min-height:110px;border-radius:12px;padding:16px}
.technician-mode .attendance-page .time-card strong{font-size:36px;line-height:1.05}
.technician-mode .attendance-page .time-card span{margin-top:2px;font-size:13px}
.technician-mode .attendance-page .attendance-state{min-height:74px;border-color:#f5d965;border-radius:12px;background:#fffdf5;padding:15px 16px}
.technician-mode .attendance-page .attendance-state.ready,.technician-mode .attendance-page .attendance-state.completed{border-color:#91d6ba;background:#f5fff9}
.technician-mode .attendance-page .attendance-state>svg{width:40px;height:40px;padding:10px}
.technician-mode .attendance-page .attendance-state strong{font-size:14px}
.technician-mode .attendance-page .attendance-state small{font-size:12px}
.technician-mode .attendance-page .verify-card{gap:11px;border-radius:12px;padding:16px}
.technician-mode .attendance-page .verify-card header span{font-size:14px}
.technician-mode .attendance-page .verify-card header span svg{width:17px;height:17px}
.technician-mode .attendance-page .verify-card em{padding:3px 9px;font-size:11px}
.technician-mode .gps-notice{display:flex;align-items:center;gap:8px;margin:0;border-radius:10px;background:#fff9e7;padding:9px 10px;color:#bd5c00;font-size:12px;line-height:1.25}
.technician-mode .gps-notice span{flex:1}
.technician-mode .gps-notice button{flex:none;border:0;background:transparent;padding:3px;color:#a74e00;font-size:11px;font-weight:650;text-decoration:underline;cursor:pointer}
.technician-mode .attendance-page .selfie-button{min-height:36px;font-size:14px;font-weight:500}
.technician-mode .attendance-page .tech-action{min-height:56px;border-radius:10px;background:#3cbd91;font-size:16px}
.technician-mode .attendance-page .tech-action:disabled{background:#94c7b4}
.technician-mode .attendance-history{gap:16px;margin-top:0}
.technician-mode .attendance-history .section-row h2{font-size:18px}
.technician-mode .attendance-history .history-stats{gap:12px}
.technician-mode .attendance-history .history-stats article{min-height:92px;align-items:flex-start;gap:7px;padding:12px;text-align:left}
.technician-mode .attendance-history .history-stat-heading{justify-content:flex-start;gap:8px}
.technician-mode .attendance-history .history-stat-heading i{width:30px;height:30px}
.technician-mode .attendance-history .history-stats strong{font-size:20px}
.technician-mode .attendance-history .history-stats .history-stat-hours{grid-column:1}
.technician-mode .attendance-history .history-stats .history-stat-punctuality{grid-column:2}
@media(max-width:480px){.technician-mode .app-shell .content{padding:18px 15px calc(92px + env(safe-area-inset-bottom))}.technician-mode .attendance-history .history-stats{gap:8px}.technician-mode .attendance-history .history-stats article{padding:10px 9px}}

/* Keep technician dialogs within the same column as the portal. */
.technician-mode .modal-layer{padding:15px}
.technician-mode .modal-layer .modal{width:min(448px,100%);max-width:100%;max-height:calc(100dvh - 30px);overflow:auto;overscroll-behavior:contain}
.technician-mode .modal-layer .modal>header{position:sticky;z-index:2;top:0;display:flex;align-items:center;justify-content:space-between;gap:12px;background:#fff}
.technician-mode .modal-layer .modal>header h2{min-width:0;overflow-wrap:anywhere}
.technician-mode .modal-layer .modal>header [data-close]{flex:none}
.technician-mode .salary-loan-summary>div,.technician-mode .salary-loan-payments>div{min-width:0}
.technician-mode .salary-loan-payments>div>strong{text-align:right;overflow-wrap:anywhere}
@media(max-width:480px){.technician-mode .modal-layer{padding:10px}.technician-mode .modal-layer .modal{max-height:calc(100dvh - 20px)}.technician-mode .modal-layer .modal>header,.technician-mode .modal-layer .modal>.modal-body,.technician-mode .modal-layer .modal>form{padding:17px}.technician-mode .salary-loan-summary{gap:8px}}

/* My Attendance shares the history cards with technicians, without technician-mode on the body. */
body:not(.technician-mode) .attendance-page .history-stats{width:min(100%,650px);grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-inline:auto}
body:not(.technician-mode) .attendance-page .history-stats article{display:flex;min-width:0;min-height:92px;flex-direction:column;align-items:flex-start;justify-content:center;gap:7px;border:1px solid #dce4ee;border-radius:13px;background:#fff;padding:12px;box-shadow:0 2px 6px #1c30500c}
body:not(.technician-mode) .attendance-page .history-stat-heading{display:flex;min-width:0;align-items:center;gap:8px}
body:not(.technician-mode) .attendance-page .history-stat-heading i{display:grid;width:30px;height:30px;flex:none;place-items:center;border-radius:50%;background:#edf3ff;color:#3467ff;font-style:normal}
body:not(.technician-mode) .attendance-page .history-stat-heading svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body:not(.technician-mode) .attendance-page .history-stat-heading span{min-width:0;color:#687991;font-size:11px;line-height:1.2}
body:not(.technician-mode) .attendance-page .history-stats strong{max-width:100%;color:#3467ff;font-size:20px;line-height:1.1;overflow-wrap:anywhere}
body:not(.technician-mode) .attendance-page .history-stat-on-time .history-stat-heading i{background:#eaf9f1;color:#18a66b}
body:not(.technician-mode) .attendance-page .history-stat-on-time strong{color:#18a66b}
body:not(.technician-mode) .attendance-page .history-stat-late .history-stat-heading i{background:#fff1f1;color:#e53935}
body:not(.technician-mode) .attendance-page .history-stat-late strong{color:#e0272f}
body:not(.technician-mode) .attendance-page .history-stat-hours .history-stat-heading i{background:#f2ebff;color:#8c43f6}
body:not(.technician-mode) .attendance-page .history-stat-hours strong{color:#8c43f6}
body:not(.technician-mode) .attendance-page .history-stat-punctuality .history-stat-heading i{background:#eaf0ff;color:#4268ff}
@media(max-width:520px){body:not(.technician-mode) .attendance-page .history-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}}

/* Personal attendance: six clean metrics and evenly spaced daily records. */
.technician-mode .attendance-page .attendance-history .history-stats,
body:not(.technician-mode) .attendance-page .history-stats{border:0;border-radius:0;background:transparent;box-shadow:none}
.technician-mode .attendance-page .attendance-history .history-stats article,
body:not(.technician-mode) .attendance-page .history-stats article{border:0;border-radius:9px;background:#f6f8fc;box-shadow:none}
.technician-mode .attendance-page .history-stat-absences .history-stat-heading i,
body:not(.technician-mode) .attendance-page .history-stat-absences .history-stat-heading i{background:#fff1f1;color:#e53935}
.technician-mode .attendance-page .history-stats .history-stat-absences strong,
body:not(.technician-mode) .attendance-page .history-stats .history-stat-absences strong{color:#e0272f}
.technician-mode .attendance-page .attendance-history .history-stats article,
body:not(.technician-mode) .attendance-page .history-stats article{display:flex;min-height:92px;flex-direction:column;align-items:center;justify-content:center;gap:2px;border:1px solid var(--fc-line);border-radius:14px;background:#fff;padding:6px 5px;text-align:center;box-shadow:var(--fc-shadow)}
.technician-mode .attendance-page .history-stat-heading,
body:not(.technician-mode) .attendance-page .history-stat-heading{display:contents}
.technician-mode .attendance-page .history-stat-heading i,
body:not(.technician-mode) .attendance-page .history-stat-heading i{order:0;width:35px;height:35px;border-radius:10px}
.technician-mode .attendance-page .attendance-history .history-stats article strong,
body:not(.technician-mode) .attendance-page .history-stats article strong{order:1;color:var(--fc-ink);font-size:22px}
.technician-mode .attendance-page .history-stats .history-stat-heading span,
body:not(.technician-mode) .attendance-page .history-stats .history-stat-heading span{order:2;color:var(--fc-muted);font-size:9px;font-weight:650;letter-spacing:.03em;line-height:1.15;text-align:center;text-transform:uppercase}
.attendance-page .daily-records>div{grid-template-columns:.8fr 1.2fr 1.2fr .7fr;align-items:center}
.attendance-page .daily-records>div>span{min-width:0;line-height:1.35}
.attendance-page .daily-records>div>span:last-child{text-align:center}

/* Keep the technician task dialog's size and colors while matching the admin field layout. */
.technician-mode .modal-layer .tech-onspot-task-modal{display:flex;flex-direction:column;width:min(448px,100%);height:min(860px,calc(100dvh - 30px));overflow:hidden}
.technician-mode .tech-onspot-task-modal>header{flex:none;min-height:72px}
.technician-mode .tech-onspot-task-modal>header .eyebrow{display:none}
.technician-mode .tech-onspot-task-modal>header h2{font-size:17px}
.technician-mode .modal-layer .tech-onspot-task-modal>form{display:flex;flex:1;min-height:0;flex-direction:column;overflow:hidden;padding:0}
.technician-mode .tech-onspot-task-modal .form-grid{display:grid;flex:1;min-height:0;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:16px 11px;overflow:auto;padding:20px 22px}
.technician-mode .tech-onspot-task-modal .form-grid>*{min-width:0}
.technician-mode .tech-onspot-task-modal .form-grid>.span-2{grid-column:1/-1}
.technician-mode .tech-onspot-task-modal .form-grid>label{gap:7px;font-size:12px;font-weight:600}
.technician-mode .tech-onspot-task-modal .form-grid textarea{min-height:54px}
.technician-mode .tech-onspot-task-modal .form-actions{flex:none;margin:0;padding:14px 22px;border-top:1px solid #e5ebf3;background:#fff}
.technician-mode .tech-onspot-task-modal .tech-task-customer-field{position:relative;z-index:3}
.technician-mode .tech-onspot-task-modal .tech-task-customer-field>span{display:flex;align-items:center;justify-content:space-between;gap:8px}
.technician-mode .tech-onspot-task-modal .tech-task-customer-field em{display:flex;align-items:center;gap:6px;color:#8998b2;font-size:10px;font-style:normal;font-weight:500;white-space:nowrap}
.technician-mode .tech-onspot-task-modal .tech-task-customer-field input[type=checkbox]{position:relative;width:32px;min-width:32px;height:18px;appearance:none;border:0;border-radius:999px;background:#d3ddeb;padding:0;cursor:pointer}
.technician-mode .tech-onspot-task-modal .tech-task-customer-field input[type=checkbox]:checked{background:#4d7bfa}
.technician-mode .tech-onspot-task-modal .tech-task-customer-field input[type=checkbox]:after{position:absolute;top:2px;left:2px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #243b6b33;content:"";transition:transform .15s}
.technician-mode .tech-onspot-task-modal .tech-task-customer-field input[type=checkbox]:checked:after{transform:translateX(14px)}
.technician-mode .tech-onspot-task-modal .modern-date-trigger[aria-readonly=true]{cursor:default}
.technician-mode .tech-onspot-task-modal .modern-date-trigger[aria-readonly=true] .chevron{display:none}
@media(max-width:480px){.technician-mode .modal-layer .tech-onspot-task-modal{height:calc(100dvh - 20px)}.technician-mode .tech-onspot-task-modal .form-grid{padding:18px 20px}.technician-mode .tech-onspot-task-modal .form-actions{padding:14px 20px}}

.technician-mode .tech-unremitted-card{display:grid;gap:8px;width:100%;padding:18px;text-align:left;border:1px solid var(--fc-line);border-radius:14px;background:var(--fc-surface,#fff);color:var(--fc-ink);box-shadow:0 2px 5px rgba(15,23,42,.04)}
.tech-unremitted-card>span:first-child{display:flex;align-items:center;gap:9px}.tech-unremitted-card svg{width:20px;height:20px;color:var(--fc-blue)}
.tech-unremitted-card .tech-unremitted-total{font-size:26px;line-height:1.2}.tech-unremitted-card small{color:var(--fc-muted)}.tech-unremitted-link{color:var(--fc-blue);font-size:13px}
.tech-unremitted-list{display:grid;gap:12px}.tech-unremitted-list article{display:grid;gap:8px;padding:16px;border:1px solid var(--fc-line);border-radius:12px;overflow-wrap:anywhere}.tech-unremitted-list small{color:var(--fc-muted)}.tech-unremitted-list button{min-height:42px;justify-self:start}

.attendance-break-toggle{cursor:pointer}.attendance-break-toggle>span:first-child{color:#3467ff;font-weight:600}.attendance-break-toggle:focus-visible{outline:2px solid #3467ff;outline-offset:2px;border-radius:4px}
.attendance-break-details:not([hidden]){grid-column:1 / -1;display:flex;flex-wrap:wrap;gap:12px 24px;padding:10px 0 2px}.attendance-break-details span{display:grid;gap:3px}.attendance-break-details strong{color:var(--fc-ink);font-weight:600}
