/* Technician workstream (p-technician*, assets/technician-page.js). BlackFire brand on portal theme tokens. */
.tech-workspace{--tw-fire:#D7141E;--tw-fire-soft:#FDECEE;--tw-fire-line:#F3B7BD;--tw-green:#1A8A4A;--tw-green-soft:#E6F5EC;--tw-amber:#C9700A;--tw-amber-soft:#FFF4E2;--tw-amber-line:#F4D5A4;--tw-blue:#2868A0;--tw-blue-soft:#EAF3FF;
  --tw-ink:var(--text,#111C2D);--tw-muted:var(--muted,#626C7C);--tw-line:var(--border,#E3E7ED);--tw-paper:var(--surface,#fff);--tw-soft:var(--surface2,#F5F7FA);
  color:var(--tw-ink);font-family:var(--font-body,'Instrument Sans',sans-serif);font-size:14px;line-height:1.5;padding-bottom:84px}
[data-theme="dark"] .tech-workspace{--tw-fire:#FF4D57;--tw-fire-soft:rgba(215,20,30,.16);--tw-fire-line:rgba(255,77,87,.4);--tw-green:#3DD68C;--tw-green-soft:rgba(26,138,74,.18);--tw-amber:#F5A623;--tw-amber-soft:rgba(245,166,35,.12);--tw-amber-line:rgba(245,166,35,.35);--tw-blue:#6AA8F0;--tw-blue-soft:rgba(59,130,246,.14)}
.tech-workspace *{box-sizing:border-box}
.tech-workspace h1,.tech-workspace h2,.tech-workspace h3,.tech-workspace p,.tech-workspace dl,.tech-workspace dd{margin:0}
.tech-workspace h1{font:700 clamp(28px,3vw,40px)/1.15 var(--font-body,'Instrument Sans',sans-serif);letter-spacing:-.5px}
.tech-workspace h2{display:flex;align-items:center;gap:10px;font:700 17px/1.35 var(--font-body,'Instrument Sans',sans-serif);color:var(--tw-ink)}
.tech-workspace :focus-visible{outline:2px solid var(--tw-fire);outline-offset:2px}
.tech-workspace .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tech-icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.tech-title-icon{color:var(--tw-fire);width:22px;height:22px}
.tech-muted{color:var(--tw-muted);font-size:13px}.tech-small{font-size:12px;margin-top:8px}
.tech-count{color:var(--tw-muted);font-weight:500}
.tech-link{background:none;border:0;padding:0;color:var(--tw-fire);font:inherit;font-weight:600;cursor:pointer;text-decoration:none}.tech-link:hover{text-decoration:underline}

/* Headings */
.tech-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.tech-heading p{margin-top:6px;color:var(--tw-muted);font-size:15px}
.tech-greeting{display:flex;align-items:center;gap:10px;text-align:right;font-size:13px;color:var(--tw-muted);flex:none}
.tech-greeting strong{display:block;color:var(--tw-ink);font-weight:600;font-size:14px}.tech-sun{color:var(--tw-amber);width:30px;height:30px}
.tech-back{display:inline-flex;align-items:center;gap:6px;color:var(--tw-muted);font:600 13px/1 var(--font-body,sans-serif);background:none;border:0;padding:0;margin-bottom:12px;cursor:pointer}.tech-back:hover{color:var(--tw-fire)}.tech-back .tech-icon{width:16px;height:16px}

/* Layout */
.tech-columns{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:18px;align-items:start}
.tech-main{min-width:0;display:grid;gap:16px;align-content:start}.tech-aside{display:grid;gap:16px;min-width:0}
.tech-grid{display:grid;gap:16px}.tech-grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}.tech-grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.tech-panel{border:1px solid var(--tw-line);border-radius:8px;background:var(--tw-paper);padding:18px;min-width:0;box-shadow:0 1px 2px rgba(17,28,45,.04)}
.tech-panel>h2{margin-bottom:14px}
.tech-panel-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.tech-title-actions{display:flex;gap:8px;flex-wrap:wrap}
.tech-h2-gap{margin-top:18px}

/* Buttons and inputs */
.tech-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:8px 14px;min-height:38px;border:1px solid var(--tw-line);background:var(--tw-paper);color:var(--tw-ink);font:600 13px/1.2 var(--font-body,sans-serif);border-radius:var(--radius-btn,8px);cursor:pointer;text-decoration:none;white-space:nowrap}
.tech-btn:hover{border-color:var(--tw-fire);color:var(--tw-fire)}
.tech-btn-primary{background:var(--tw-fire);border-color:var(--tw-fire);color:#fff}.tech-btn-primary:hover{background:#B80F18;border-color:#B80F18;color:#fff}
.tech-btn:disabled{opacity:.55;cursor:not-allowed}.tech-btn .tech-icon{width:17px;height:17px}
.tech-btn-sm{min-height:32px;padding:6px 10px;font-size:12px}.tech-btn-block{width:100%;margin-top:12px}
.tech-icon-btn{display:grid;place-items:center;width:32px;height:32px;border:1px solid transparent;background:none;color:var(--tw-muted);border-radius:var(--radius-btn,8px);cursor:pointer}.tech-icon-btn:hover{color:var(--tw-fire);border-color:var(--tw-line)}
.tech-upload{position:relative;overflow:hidden}.tech-upload input{position:absolute;inset:0;opacity:0;cursor:pointer}.tech-upload.is-busy{opacity:.6;pointer-events:none}
.tech-input,.tech-textarea,.tech-filters select{width:100%;border:1px solid var(--tw-line);border-radius:var(--radius-btn,8px);padding:8px 10px;background:var(--tw-paper);color:var(--tw-ink);font:inherit;font-size:var(--fs-input,14px)}
.tech-textarea{resize:vertical;min-height:92px;line-height:1.5}
.tech-input:focus,.tech-textarea:focus{border-color:var(--tw-fire);outline:none;box-shadow:0 0 0 3px var(--tw-fire-soft)}
.tech-input-num{max-width:110px}
.tech-field{display:grid;gap:6px;margin-top:12px;font-size:13px;font-weight:600}
.tech-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.tech-search{display:flex;align-items:center;gap:8px;flex:1;min-width:200px;border:1px solid var(--tw-line);border-radius:var(--radius-btn,8px);padding:0 12px;background:var(--tw-soft);color:var(--tw-muted)}
.tech-search input{width:100%;min-height:40px;border:0;background:transparent;color:var(--tw-ink);font:inherit;outline:none}
.tech-filters select{width:auto;min-width:200px}

/* KPIs */
.tech-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.tech-metric{display:flex;align-items:flex-start;gap:14px;border:1px solid var(--tw-line);border-radius:8px;background:var(--tw-paper);padding:20px 16px;min-height:128px}
.tech-icon-box{display:grid;place-items:center;width:48px;height:48px;border-radius:10px;flex:none}.tech-icon-box .tech-icon{width:24px;height:24px}
.tech-icon-box-fire{background:var(--tw-fire-soft);color:var(--tw-fire)}.tech-icon-box-green{background:var(--tw-green-soft);color:var(--tw-green)}
.tech-icon-box-lg{width:64px;height:64px;border-radius:50%}.tech-icon-box-lg .tech-icon{width:30px;height:30px}
button.tech-metric{position:relative;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer;transition:border-color .15s,box-shadow .15s,transform .15s}
button.tech-metric:hover{border-color:var(--tw-fire);box-shadow:0 4px 14px rgba(0,0,0,.08);transform:translateY(-1px)}
button.tech-metric:focus-visible{outline:2px solid var(--tw-fire);outline-offset:2px}
.tech-metric-body{display:block;min-width:0}
.tech-metric-go{position:absolute;top:14px;right:14px;width:16px;height:16px;color:var(--tw-muted);opacity:0;transition:opacity .15s}
button.tech-metric:hover .tech-metric-go,button.tech-metric:focus-visible .tech-metric-go{opacity:1;color:var(--tw-fire)}
.tech-metric small{display:block;font-size:13px;font-weight:600}.tech-metric strong{display:block;font-size:32px;line-height:1.2;margin:4px 0}.tech-metric p{font-size:12px;color:var(--tw-muted)}

/* Job table */
.tech-table-head,.tech-job{display:grid;grid-template-columns:minmax(150px,1.25fr) minmax(170px,1.5fr) 110px 130px 130px 150px;gap:14px;align-items:center}
.tech-table-head{background:var(--tw-soft);color:var(--tw-muted);font-size:12px;font-weight:600;padding:12px 14px;border-radius:6px;margin-bottom:8px}
.tech-jobs{display:grid;gap:10px}
.tech-job{border:1px solid var(--tw-line);border-radius:8px;background:var(--tw-paper);padding:14px;font-size:13px;overflow-wrap:anywhere}
.tech-job-critical{border-color:var(--tw-fire);background:linear-gradient(0deg,var(--tw-fire-soft),var(--tw-fire-soft)),var(--tw-paper);box-shadow:inset 3px 0 0 var(--tw-fire)}
.tech-ref{display:block;font-weight:700;color:var(--tw-fire);font-size:15px;letter-spacing:.2px;margin-bottom:2px}.tech-ref-lg{font-size:26px;display:inline}
.tech-client{display:block;font-size:15px;font-weight:700}
.tech-kind{display:inline-flex;align-items:center;gap:4px;margin:2px 0 6px;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:600;background:var(--tw-blue-soft);color:var(--tw-blue)}.tech-kind .tech-icon{width:12px;height:12px}
.tech-kind-risk{background:var(--tw-amber-soft);color:var(--tw-amber)}
.tech-site{display:flex;align-items:flex-start;gap:5px;color:var(--tw-muted);font-size:12px;margin-top:4px}.tech-site .tech-icon{width:14px;height:14px;margin-top:2px}
.tech-cell-issue strong{display:block;font-size:14px}
.tech-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;color:var(--tw-muted);font-size:12px;margin-top:4px}
.tech-cell-when{display:flex;gap:8px;align-items:flex-start}.tech-cell-when .tech-icon{color:var(--tw-muted);margin-top:2px}.tech-cell-when small{display:block;color:var(--tw-muted);font-size:12px}
.tech-overdue{color:var(--tw-fire)!important;font-weight:600}
.tech-next{display:block;color:var(--tw-muted);font-size:11px;margin-top:6px}
.tech-job-actions{display:grid;gap:6px}.tech-job-actions .tech-btn{min-height:34px;font-size:12px;padding:6px 10px}
.tech-label{display:none;font-size:11px;color:var(--tw-muted);margin-bottom:4px}.tech-cell-when .tech-label{display:none}
.tech-label-inline{display:block;font-size:12px;color:var(--tw-muted);margin-bottom:4px;font-weight:600}

/* Pills */
.tech-pill{display:inline-flex;align-items:center;font-size:12px;font-weight:650;padding:5px 10px;border-radius:6px;background:var(--tw-soft);color:var(--tw-muted);white-space:nowrap}
.tech-pill-assigned{background:var(--tw-fire-soft);color:var(--tw-fire)}.tech-pill-open{background:var(--tw-blue-soft);color:var(--tw-blue)}
.tech-pill-progress{background:var(--tw-fire-soft);color:var(--tw-fire)}.tech-pill-completed{background:var(--tw-green-soft);color:var(--tw-green)}
.tech-pill-review{background:var(--tw-amber-soft);color:var(--tw-amber)}.tech-pill-overdue{background:var(--tw-fire-soft);color:var(--tw-fire)}
.tech-priority{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:650;padding:5px 10px;border-radius:6px}.tech-priority .tech-icon{width:15px;height:15px}
.tech-priority-critical{background:var(--tw-fire-soft);color:var(--tw-fire)}.tech-priority-high{background:var(--tw-amber-soft);color:var(--tw-amber)}.tech-priority-normal{background:var(--tw-soft);color:var(--tw-muted)}
.tech-badge{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--tw-fire);color:#fff;font-size:11px}

/* Checkpoint guide */
.tech-guide{list-style:none;margin:16px 0 0;padding:0}
.tech-guide li{position:relative;display:grid;grid-template-columns:30px 38px 1fr;gap:10px;align-items:start;padding-bottom:18px}
.tech-guide li:not(:last-child)::after{content:'';position:absolute;left:14px;top:30px;bottom:0;border-left:2px solid var(--tw-line)}
.tech-guide-num{position:relative;z-index:1;display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--tw-muted);color:#fff;font-size:13px;font-weight:700}
.tech-guide-num .tech-icon{width:16px;height:16px;stroke-width:3}
.tech-guide-current .tech-guide-num{background:var(--tw-fire);box-shadow:0 0 0 4px var(--tw-fire-soft)}.tech-guide-done .tech-guide-num{background:var(--tw-green)}.tech-guide-done:not(:last-child)::after{border-color:var(--tw-green)}
.tech-guide-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:var(--tw-soft);color:var(--tw-ink)}
.tech-guide-done-group{margin-top:16px;border:1px solid var(--tw-green-soft);border-radius:8px;background:var(--tw-green-soft)}
.tech-guide-done-group summary{display:flex;align-items:center;gap:10px;padding:8px 10px;cursor:pointer;list-style:none;font-size:13px;font-weight:650;color:var(--tw-green)}
.tech-guide-done-group summary::-webkit-details-marker{display:none}
.tech-guide-done-group summary .tech-guide-num{width:24px;height:24px;background:var(--tw-green)}
.tech-guide-done-group summary .tech-chevron{margin-left:auto;transform:none;transition:transform .15s}
.tech-guide-done-group[open] summary .tech-chevron{transform:rotate(180deg)}
.tech-guide-done-group .tech-guide{margin:0;padding:6px 10px 0;background:var(--tw-paper);border-radius:0 0 8px 8px}
.tech-guide-done-group + .tech-guide{margin-top:12px}
.tech-guide strong{display:block;font-size:13px}.tech-guide p{font-size:12px;color:var(--tw-muted);margin-top:2px}

/* Alerts */
.tech-alerts{display:grid;gap:10px}
.tech-alert{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:start;width:100%;text-align:left;border:1px solid var(--tw-amber-line);background:var(--tw-amber-soft);padding:12px;border-radius:8px;color:var(--tw-ink);font:inherit;cursor:pointer}
.tech-alert:hover{border-color:var(--tw-amber)}
.tech-alert-overdue{background:var(--tw-fire-soft);border-color:var(--tw-fire-line)}.tech-alert-overdue strong{color:var(--tw-fire)}
.tech-alert-info{background:var(--tw-blue-soft);border-color:transparent}
.tech-alert-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--tw-amber);color:#fff}.tech-alert-overdue .tech-alert-icon{background:var(--tw-fire)}.tech-alert-info .tech-alert-icon{background:var(--tw-blue)}
.tech-alert strong{display:block;font-size:13px}.tech-alert span span{display:block;font-size:12px;color:var(--tw-muted);margin-top:2px}.tech-alert .tech-alert-ref{color:var(--tw-ink);font-weight:600}
.tech-chevron{transform:rotate(-90deg);color:var(--tw-muted);width:18px;height:18px}
.tech-empty{padding:26px 16px;text-align:center;color:var(--tw-muted);font-size:13px}.tech-empty-sm{padding:14px}
.tech-error{padding:14px;border:1px solid var(--tw-fire-line);background:var(--tw-fire-soft);color:var(--tw-ink);border-radius:8px;margin-bottom:14px;display:flex;flex-wrap:wrap;gap:10px;align-items:center}

/* Schedule */
.tech-day{margin-bottom:14px}.tech-day-overdue{border-color:var(--tw-fire-line)}
.tech-day-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.tech-day-list li{display:grid;grid-template-columns:110px minmax(0,1fr) auto auto;gap:14px;align-items:center;padding:12px;border:1px solid var(--tw-line);border-radius:8px}
.tech-day-list time{font-weight:700;font-size:15px}.tech-day-list strong{display:block}.tech-day-meta{display:flex;gap:6px;flex-wrap:wrap}
.tech-day-list time small{display:block;color:var(--tw-muted);font-size:12px;font-weight:600;margin-top:2px}
.tech-day-facts{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;font-size:12px}
.tech-tat{display:block;color:var(--tw-muted);font-size:11px;font-weight:600;margin-top:4px}.tech-day-facts .tech-tat{display:inline;margin:0;font-size:12px}

/* Job detail */
.tech-job-heading{align-items:center}.tech-job-id{display:flex;align-items:center;gap:16px;flex-wrap:wrap;justify-content:flex-end}
.tech-state{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:8px;border:1px solid var(--tw-line);background:var(--tw-soft)}
.tech-state .tech-icon{width:30px;height:30px}.tech-state strong{display:block;font-size:15px}.tech-state span{font-size:12px;color:var(--tw-muted)}
.tech-state-review{background:var(--tw-fire-soft);border-color:var(--tw-fire);color:var(--tw-fire)}.tech-state-review span{color:var(--tw-ink)}
.tech-state-progress,.tech-state-assigned{background:var(--tw-fire-soft);border-color:transparent;color:var(--tw-fire)}
.tech-state-completed{background:var(--tw-green-soft);color:var(--tw-green);border-color:transparent}.tech-state-open{background:var(--tw-blue-soft);color:var(--tw-blue);border-color:transparent}
.tech-summary{display:grid;grid-template-columns:minmax(200px,1.3fr) minmax(220px,1.6fr) auto auto;gap:24px;align-items:center}
.tech-summary>div+div{border-left:1px solid var(--tw-line);padding-left:24px}
.tech-summary-client,.tech-summary-issue,.tech-summary-when{display:flex;gap:14px;align-items:flex-start}
.tech-client-lg{display:block;font-size:20px;font-weight:700}.tech-summary-issue strong{display:block;font-size:17px}.tech-summary-issue p{font-size:13px;color:var(--tw-muted);margin-top:4px}
.tech-summary-icon{width:34px;height:34px;padding:6px;border-radius:8px;background:var(--tw-soft);color:var(--tw-ink);flex:none}
.tech-summary-when strong{display:block;font-size:15px}.tech-summary-when span:last-child{color:var(--tw-muted);font-size:13px}

/* Stepper */
.tech-stepper{display:flex;list-style:none;margin:0;padding:18px 12px;border:1px solid var(--tw-line);border-radius:8px;background:var(--tw-paper);overflow-x:auto}
.tech-step{position:relative;flex:1;min-width:88px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;font-size:12px;color:var(--tw-muted)}
.tech-step:not(:first-child)::before{content:'';position:absolute;top:17px;right:50%;width:100%;border-top:3px solid var(--tw-line);z-index:0}
.tech-step-done:not(:first-child)::before,.tech-step-current:not(:first-child)::before,.tech-step-blocked:not(:first-child)::before{border-color:var(--tw-green)}
.tech-step-dot{position:relative;z-index:1;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#9AA3B0;color:#fff;font-weight:700;font-size:14px;border:3px solid var(--tw-paper)}
.tech-step-dot .tech-icon{width:18px;height:18px;stroke-width:3}
.tech-step-done .tech-step-dot{background:var(--tw-green)}.tech-step-done{color:var(--tw-ink)}
.tech-step-current .tech-step-dot,.tech-step-blocked .tech-step-dot{background:var(--tw-fire);box-shadow:0 0 0 3px var(--tw-fire-soft)}
.tech-step-current,.tech-step-blocked{color:var(--tw-fire);font-weight:700}
.tech-step-skipped .tech-step-dot{background:var(--tw-soft);color:var(--tw-muted);border-color:var(--tw-line)}
.tech-step-label{max-width:120px;line-height:1.3}

/* Banners and next step */
.tech-banner{display:flex;gap:16px;align-items:flex-start;padding:16px 18px;border-radius:8px;border:1px solid var(--tw-amber-line);background:var(--tw-amber-soft)}
.tech-banner strong{display:block;font-size:18px;color:var(--tw-fire)}.tech-banner p{margin-top:4px;font-size:14px}
.tech-banner-icon{display:grid;place-items:center;flex:none;width:44px;height:44px;border-radius:50%;background:var(--tw-amber);color:#fff;font-weight:800;font-size:22px}
.tech-banner-overdue{background:var(--tw-fire-soft);border-color:var(--tw-fire-line)}.tech-banner-overdue .tech-banner-icon{background:var(--tw-fire)}
.tech-next-panel{display:grid;grid-template-columns:auto 1fr auto;gap:16px;align-items:center;padding:16px 18px;border-radius:8px;border:2px solid var(--tw-fire);background:var(--tw-paper)}
.tech-next-panel>.tech-icon{width:34px;height:34px;color:var(--tw-fire)}
.tech-next-panel strong{display:block;font-size:16px}.tech-next-panel p{color:var(--tw-muted);font-size:13px;margin-top:2px}
.tech-next-wait{border-color:var(--tw-amber-line);background:var(--tw-amber-soft)}.tech-next-wait>.tech-icon{color:var(--tw-amber)}
.tech-ppe-confirm{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:12px 0 0}
.tech-ppe-confirm label{display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--tw-line);border-radius:var(--radius-btn,8px);cursor:pointer;font-size:13px;min-height:40px}
.tech-ppe-confirm label:has(input:checked){border-color:var(--tw-green);background:var(--tw-green-soft)}
.tech-ppe-confirm input,.tech-confirm input{width:18px;height:18px;accent-color:var(--tw-fire)}
.tech-confirm{display:flex;gap:8px;align-items:center;margin-top:10px;font-size:13px;font-weight:600;cursor:pointer}
.tech-workspace>div>.tech-stepper,.tech-workspace>div>.tech-banner,.tech-workspace>div>.tech-next-panel,.tech-workspace>div>.tech-summary{margin-bottom:16px}

/* Detail cards */
.tech-dl{display:grid;grid-template-columns:auto 1fr;gap:10px 16px;font-size:13px}
.tech-dl dt{color:var(--tw-muted)}.tech-dl dd{overflow-wrap:anywhere}.tech-dl a{display:inline-flex;gap:6px;align-items:center;color:var(--tw-ink);text-decoration:none}.tech-dl a .tech-icon{width:15px;height:15px}.tech-dl a:hover{color:var(--tw-fire)}
.tech-body{font-size:13px;color:var(--tw-muted);white-space:pre-wrap;overflow-wrap:anywhere}
.tech-location{display:flex;gap:10px;margin-top:14px;padding:12px;border-radius:8px;background:var(--tw-soft);font-size:13px}.tech-location strong{display:block}.tech-location span{color:var(--tw-muted)}
.tech-safety-notes{display:flex;gap:12px;padding:12px;border-radius:8px;background:var(--tw-fire-soft);font-size:12px}.tech-safety-notes>.tech-icon{color:var(--tw-fire);width:26px;height:26px}.tech-safety-notes ul{margin:0;padding-left:16px;padding-right:6px;max-height:120px;overflow-y:auto;flex:1;min-width:0}.tech-check{min-height:56px;resize:vertical;line-height:1.4}.tech-table-edit td:first-child{width:62%}
.tech-subhead{display:block;font-size:13px;margin:14px 0 8px}
.tech-ppe{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.tech-ppe-item{position:relative;display:flex;align-items:center;gap:6px;padding:8px;border:1px solid var(--tw-line);border-radius:6px;font-size:12px}
.tech-ppe-item .tech-icon{width:18px;height:18px}.tech-ppe-item.is-confirmed{border-color:var(--tw-green);background:var(--tw-green-soft)}.tech-ppe-check{color:var(--tw-green);margin-left:auto}
.tech-photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.tech-photo{display:grid;gap:4px;padding:6px;border:1px solid var(--tw-line);border-radius:8px;color:var(--tw-ink);background:var(--tw-paper);text-decoration:none;font:inherit;font-size:12px;text-align:left;min-width:0;cursor:zoom-in}
.tech-photo img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:5px;background:var(--tw-soft)}
.tech-photo span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tech-photo small{color:var(--tw-muted)}.tech-photo:hover{border-color:var(--tw-fire)}
.tech-docs{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:8px}
.tech-docs li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--tw-line);border-radius:8px;font-size:13px}
.tech-docs li>.tech-icon{width:18px;height:18px;color:var(--tw-muted)}
.tech-docs span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tech-docs small{display:block;color:var(--tw-muted);font-size:11px}
.tech-table{width:100%;border-collapse:collapse;font-size:13px}
.tech-table th,.tech-table td{text-align:left;padding:8px;border-bottom:1px solid var(--tw-line);vertical-align:middle}
.tech-table thead th{background:var(--tw-soft);font-size:12px;color:var(--tw-muted)}
.tech-table tfoot th{font-size:13px;border-bottom:0}
.tech-table-edit td{padding:6px 4px}
.tech-tests{list-style:none;margin:0;padding:0}
.tech-tests li{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid var(--tw-line);font-size:13px}
.tech-result{font-size:12px;font-weight:700;padding:2px 10px;border-radius:5px}.tech-result-pass{background:var(--tw-green-soft);color:var(--tw-green)}.tech-result-fail{background:var(--tw-fire-soft);color:var(--tw-fire)}.tech-result-na{background:var(--tw-soft);color:var(--tw-muted)}
.tech-time{display:grid;grid-template-columns:1fr 1fr;gap:12px}.tech-time strong{font-size:14px}
.tech-time-total{display:flex;gap:12px;align-items:center;margin-top:14px;padding:12px;border-radius:8px;background:var(--tw-blue-soft)}.tech-time-total .tech-icon{width:32px;height:32px;color:var(--tw-blue)}
.tech-time-total span{display:block;font-size:12px;color:var(--tw-muted)}.tech-time-total strong{display:block;font-size:20px;color:var(--tw-blue)}.tech-time-total small{color:var(--tw-muted)}
.tech-approval-form summary{list-style:none;cursor:pointer}.tech-approval-form summary::-webkit-details-marker{display:none}
.tech-approval-form[open] summary{margin-bottom:10px}.tech-approval-form .tech-btn-primary{margin-top:14px}

/* Timeline */
.tech-timeline{list-style:none;margin:0;padding:0}
.tech-timeline li{position:relative;display:grid;grid-template-columns:34px 1fr;gap:12px;padding-bottom:16px}
.tech-timeline li:not(:last-child)::after{content:'';position:absolute;left:16px;top:34px;bottom:0;border-left:2px dashed var(--tw-line)}
.tech-tl-done:not(:last-child)::after{border-left-style:solid;border-color:var(--tw-green)}
.tech-tl-dot{position:relative;z-index:1;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#9AA3B0;color:#fff;font-weight:700;font-size:13px}
.tech-tl-dot .tech-icon{width:17px;height:17px;stroke-width:3}
.tech-tl-done .tech-tl-dot{background:var(--tw-green)}.tech-tl-current .tech-tl-dot,.tech-tl-blocked .tech-tl-dot{background:var(--tw-fire)}.tech-tl-skipped .tech-tl-dot{background:var(--tw-soft);color:var(--tw-muted)}
.tech-timeline strong{display:block;font-size:13px}.tech-timeline time{display:block;font-size:12px;color:var(--tw-ink)}.tech-timeline p{font-size:12px;color:var(--tw-muted);margin-top:2px}
.tech-tl-current strong,.tech-tl-blocked strong{color:var(--tw-fire)}
.tech-tl-tag{font-style:normal;font-size:11px;font-weight:600;padding:1px 6px;border-radius:4px;background:var(--tw-fire-soft);color:var(--tw-fire);margin-left:4px}.tech-tl-tag-muted{background:var(--tw-soft);color:var(--tw-muted)}
.tech-next-list{margin:0;padding-left:18px;display:grid;gap:10px;font-size:13px}.tech-next-list p{font-size:12px;color:var(--tw-muted)}

/* Approval card */
.tech-approval-card.tech-approval-pending{border-color:var(--tw-amber-line);background:var(--tw-amber-soft)}
.tech-approval-card h2{color:var(--tw-fire)}
.tech-info{display:flex;gap:8px;align-items:flex-start;font-size:12px;margin-top:12px;color:var(--tw-ink)}.tech-info .tech-icon{color:var(--tw-amber)}
.tech-decide{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}

/* Sticky action bar */
.tech-actionbar{position:sticky;bottom:0;z-index:5;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px;padding:12px 16px;border:1px solid var(--tw-line);border-radius:8px;background:var(--tw-paper);box-shadow:0 -4px 16px rgba(17,28,45,.08)}
.tech-actionbar-main{display:flex;gap:10px;flex-wrap:wrap}
.tech-more{position:relative}.tech-more summary{list-style:none}.tech-more summary::-webkit-details-marker{display:none}
.tech-more-menu{position:absolute;bottom:calc(100% + 8px);left:0;display:grid;gap:6px;min-width:200px;padding:8px;border:1px solid var(--tw-line);border-radius:8px;background:var(--tw-paper);box-shadow:0 8px 24px rgba(17,28,45,.14)}
.tech-more-menu .tech-btn{justify-content:flex-start}

/* Responsive */
@media(max-width:1280px){
  .tech-columns{grid-template-columns:minmax(0,1fr) 290px}
  .tech-table-head{display:none}
  .tech-job{grid-template-columns:repeat(3,minmax(0,1fr))}.tech-label,.tech-cell-when .tech-label{display:block}
  .tech-cell-when{display:block}.tech-cell-when>.tech-icon{display:none}
  .tech-job-actions{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}
  .tech-grid-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tech-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.tech-summary>div:nth-child(3){border-left:0;padding-left:0}
}
@media(max-width:1000px){
  .tech-columns{grid-template-columns:1fr}.tech-aside{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tech-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tech-grid-2,.tech-grid-3{grid-template-columns:1fr}
}
@media(max-width:640px){
  .tech-workspace{font-size:13px}
  .tech-heading{flex-direction:column;gap:10px}.tech-greeting{text-align:left}
  .tech-panel{padding:14px}
  .tech-metric{padding:14px 12px;min-height:110px;gap:10px}.tech-icon-box{width:38px;height:38px}.tech-metric strong{font-size:26px}
  .tech-aside{grid-template-columns:1fr}
  .tech-job{grid-template-columns:1fr 1fr}.tech-cell-job,.tech-cell-issue{grid-column:1/-1}
  .tech-job-actions{grid-template-columns:1fr}
  .tech-summary{grid-template-columns:1fr}.tech-summary>div+div{border-left:0;padding-left:0;border-top:1px solid var(--tw-line);padding-top:14px}
  .tech-next-panel{grid-template-columns:1fr}.tech-next-panel>.tech-icon{display:none}.tech-next-panel .tech-btn{width:100%}
  .tech-filters select{width:100%}
  .tech-day-list li{grid-template-columns:1fr}.tech-day-list .tech-btn{width:100%}
  .tech-actionbar{position:sticky}.tech-actionbar-main,.tech-actionbar-main .tech-btn{width:100%}
  .tech-job-id{justify-content:flex-start}.tech-ref-lg{font-size:22px}
  .tech-time{grid-template-columns:1fr}
}

/* Portal-wide table styles (mono caps, sort toggles) do not apply to the technician tables. */
.tech-workspace .tech-table th{font:600 12px/1.3 var(--font-body,'Instrument Sans',sans-serif);text-transform:none;letter-spacing:0;color:var(--tw-muted)}
.tech-workspace .tech-table tfoot th{color:var(--tw-ink);font-size:13px}
@media(max-width:640px){
  .tech-table-edit thead{display:none}
  .tech-table-edit,.tech-table-edit tbody,.tech-table-edit tr,.tech-table-edit td,.tech-table-edit tfoot{display:block;width:100%}
  .tech-table-edit tr[data-part-row],.tech-table-edit tr[data-test-row]{display:grid;grid-template-columns:1fr 1fr auto;gap:6px;padding:10px 0;border-bottom:1px solid var(--tw-line)}
  .tech-table-edit tr[data-part-row] td:first-child,.tech-table-edit tr[data-test-row] td:first-child{grid-column:1/-1}
  .tech-table-edit td{border:0;padding:0}.tech-input-num{max-width:none}
  .tech-table-edit tfoot tr{display:flex;justify-content:space-between;padding-top:8px}
}
