:root{font-family:"Segoe UI",system-ui,sans-serif;color:#152735;background:#edf2f4;line-height:1.5;--teal:#075d55;--border:#ccd8dd;--muted:#4b626f}
*{box-sizing:border-box}body{margin:0}header{background:#102a37;color:white}.shell{width:min(100% - 2rem,70rem);margin:auto}.masthead{display:flex;align-items:center;justify-content:space-between;gap:.8rem;min-height:4.5rem;flex-wrap:wrap;padding:.65rem 0}.brand{display:flex;align-items:center;gap:.6rem;font-size:1.35rem;font-weight:700}.mark{background:#b9f2df;color:#0f332e;border-radius:.35rem;padding:.18rem .45rem;font-weight:800;font-size:.9rem}.masthead nav,.filters{display:flex;gap:.4rem;flex-wrap:wrap}
h1{font-size:clamp(1.8rem,5vw,2.75rem);line-height:1.1;margin:1.65rem 0 1rem;letter-spacing:-.045em}h2{font-size:1.2rem;margin:0 0 .8rem}main{padding-bottom:2rem}.panel,.card,dialog{background:white;border:1px solid var(--border);border-radius:.8rem;padding:1.15rem;margin-bottom:1rem}.card{margin:0}.fields,.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem}.mapping,.controls{grid-template-columns:repeat(auto-fit,minmax(9.25rem,1fr))}.cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,16rem),1fr))}
label{display:block;font-weight:600;margin-bottom:.65rem}input,select,textarea,button{font:inherit}input:not([type=checkbox]),select,textarea{display:block;width:100%;padding:.55rem;border:1px solid #90a5af;border-radius:.4rem;background:white;color:inherit;margin-top:.22rem}textarea{resize:vertical}small,.muted{color:var(--muted)}button{cursor:pointer;border:1px solid transparent;border-radius:.42rem;padding:.5rem .85rem;font-weight:650;background:var(--teal);color:white;min-height:2.65rem}button:disabled{opacity:.6;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #147d96;outline-offset:2px}.secondary,.filters button{color:#173d46;background:#f1f6f6;border-color:var(--border)}.masthead button{background:transparent;color:#e4f1f3}.masthead button[aria-pressed=true],.filters button[aria-pressed=true]{background:#b9f2df;color:#103d36}.filters{margin-bottom:1rem}
fieldset{display:flex;flex-wrap:wrap;gap:.3rem 1.2rem;border:1px solid var(--border);border-radius:.45rem;margin:0;padding:.5rem .75rem}fieldset label{font-weight:500;margin:.2rem 0}legend{font-weight:650;padding:0 .3rem}summary{cursor:pointer;font-weight:650}details,#mapping{margin:.8rem 0}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;margin-bottom:1rem}th,td{text-align:left;padding:.45rem;border-bottom:1px solid var(--border);white-space:nowrap}th{color:var(--muted)}.status{display:inline-block;background:#e3f3ed;color:#15473d;padding:.15rem .55rem;border-radius:.4rem;font-size:.9rem;font-weight:650}.card p{margin:.4rem 0 .8rem}#notice{background:#dbeee9;border-radius:.4rem;padding:.65rem .9rem}.error{color:#882322}.dialog-top{display:flex;align-items:center;justify-content:space-between;gap:1rem}dialog{width:min(95%,38rem);max-height:90vh;margin:auto;color:inherit}dialog::backdrop{background:#102a37a8}.photos{display:flex;gap:.5rem;flex-wrap:wrap}.photos img{width:78px;height:65px;object-fit:cover;border-radius:.3rem}.outbox-row{border-top:1px solid var(--border);padding:.55rem 0}
[hidden]{display:none!important}@media(max-width:560px){.fields{grid-template-columns:1fr}.mapping{grid-template-columns:repeat(2,minmax(0,1fr))}.panel{padding:.85rem}.masthead{justify-content:flex-start}.shell{width:calc(100% - 1.25rem)}}
.bingo-key{display:flex;flex-wrap:wrap;gap:.45rem;list-style:none;padding:0;margin:0 0 1rem}.bingo-key li{border:1px solid var(--border);border-radius:.4rem;padding:.22rem .55rem;font-size:.9rem}.bingo-green{background:#d9f2df;color:#17472b}.bingo-amber{background:#fff0cb;color:#60440d}.bingo-red{background:#fde0df;color:#792521}.bingo-white{background:white;color:#152735}.bingo-grid .status{background:transparent;color:inherit;padding-left:0}.garage-table{background:white}.garage-actions button,.bingo-grid button{margin:.15rem .3rem .15rem 0}.return-notes{white-space:normal;min-width:8rem}
.bingo-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,6rem),1fr));gap:.45rem}.bingo-grid .bingo-tile{display:grid;place-items:center;min-height:3.45rem;min-width:0;margin:0;padding:.65rem .75rem;border:1px solid var(--border);border-radius:.45rem;white-space:normal;overflow-wrap:anywhere;font-size:1.05rem;line-height:1.2;font-variant-numeric:tabular-nums}.bingo-tile.bingo-green{border-color:#85ba92}.bingo-tile.bingo-amber{border-color:#d5ad59}.bingo-tile.bingo-red{border-color:#df9792}
.job-id{overflow-wrap:anywhere;font-size:.875rem}.delete-job{color:#882322}
.dashboard-totals{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:.75rem}.dashboard-metric h2{font-size:.95rem;color:var(--muted);margin:0}.dashboard-metric strong{display:block;font-size:2rem;color:var(--teal);font-variant-numeric:tabular-nums}.dashboard-table td{text-align:right;font-variant-numeric:tabular-nums}.dashboard-table thead th:not(:first-child){text-align:right}.dashboard-table tbody th{color:inherit}
.dashboard-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.75rem}.jobs-ring{width:132px;aspect-ratio:1;display:grid;place-items:center;border-radius:50%;margin:.85rem auto 1rem}.jobs-ring-total{display:grid;place-items:center;width:70%;aspect-ratio:1;border-radius:50%;background:white;font-size:1.65rem;font-weight:700;font-variant-numeric:tabular-nums}.jobs-chart-key{list-style:none;padding:0;margin:0}.jobs-chart-key li{display:grid;grid-template-columns:.7rem 1fr auto;align-items:center;gap:.45rem;margin:.35rem 0;font-size:.875rem;overflow-wrap:anywhere}.jobs-swatch{width:.65rem;height:.65rem;border-radius:50%}
.remove-vehicle{min-height:1.85rem;min-width:1.85rem;padding:0 .35rem;color:#882322;font-size:1.05rem;line-height:1}
#parts-catalogue th,#parts-catalogue td{text-align:left;white-space:normal}
.setup-branch-field{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.35rem}.setup-branch-field .branch-add{height:2.6rem;min-width:2.6rem;margin-bottom:.65rem;padding:.18rem .55rem;font-size:1.2rem}

.route-controls{align-items:end}.route-controls span{align-self:center}
.bingo-grid .bingo-tile{position:relative}
.route-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#64748b;flex:none}
.bingo-tile .route-dot{position:absolute;top:3px;right:3px}
.bingo-tile .bingo-spanner{position:absolute;top:3px;left:4px;font-size:.875rem;line-height:1;pointer-events:none}
.toolkit-received{padding:.65rem .8rem;border-radius:.45rem;background:#d9f2df;color:#17472b;font-weight:600}
.job-time{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.job-timer{background:#edf0f2;color:#46535d;border-radius:.4rem;padding:.4rem .55rem;font-variant-numeric:tabular-nums}
#site-clock #site-on{background:#187345;color:white}
#site-clock #site-off{background:#a4252b;color:white}
.site-clock-action{display:flex;align-items:end;gap:.5rem;flex-wrap:wrap}
.site-clock-action label{min-width:0}
.site-clock-action input,.site-clock-action select{box-sizing:border-box;min-width:0;max-width:100%}
@media(max-width:560px){
  #site-clock{align-items:stretch}
  .site-clock-action{display:grid;grid-template-columns:minmax(0,1fr);flex:0 0 100%;min-width:0}
  .site-clock-action input,.site-clock-action select{width:100%}
  .site-clock-action button{justify-self:start;margin:0}
}
.route-dot.route-active{background:#bc2b24}.route-dot.route-ended{background:#a86700}
.route-dot.route-inactive{background:#137744}
.route-badge{display:inline-flex;align-items:baseline;gap:5px}
#description-summary{margin-left:.4rem;font-weight:400}
#description-options{margin-top:.5rem}
#description-options label{display:flex;align-items:center;gap:.4rem}
.description-preview,#job-description{white-space:pre-wrap;overflow-wrap:anywhere}
.jobs-nav{margin-top:1rem}
.document-page{display:block;max-width:100%;height:auto;margin-top:.75rem}
.photos fieldset{display:grid;min-width:0;max-width:100%;width:100%;padding:.65rem}
.photos legend{max-width:100%;overflow-wrap:anywhere}
.testing-spec-content th,.testing-spec-content td{white-space:normal;vertical-align:top}
.testing-spec-content td{min-width:8rem}
@media (min-width: 64rem) {
  .office-workspace .shell {
    width: calc(100% - 3rem);
  }

  .office-workspace main > section .table-scroll :is(th, td) {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
