/* Laurel Fork Heating & Air: a field-service look. Dark slate cab, flame orange for heat, cool blue for air,
   condensed workshop headings, squared-off corners. Fonts: Barlow + Barlow Condensed (SIL OFL), self-hosted. */
@font-face{font-family:"Barlow";src:url(/fonts/demo/barlow-400.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Barlow";src:url(/fonts/demo/barlow-500.woff2) format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Barlow";src:url(/fonts/demo/barlow-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Barlow";src:url(/fonts/demo/barlow-700.woff2) format("woff2");font-weight:700 900;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url(/fonts/demo/barlow-condensed-600.woff2) format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Barlow Condensed";src:url(/fonts/demo/barlow-condensed-700.woff2) format("woff2");font-weight:700 900;font-display:swap}

:root{
  --sans:"Barlow",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --display:"Barlow Condensed","Barlow",system-ui,sans-serif;--num:"Barlow Condensed","Barlow",system-ui,sans-serif;
  --blue:#e8590c;--blue-2:#c94a07;--azure:#f76707;--sky:#ffc9a8;--sky-2:#fff0e6;
  --navy:#16212e;--navy-2:#0f1720;
  --ink:#16212e;--ink-2:#394656;--muted:#657285;--line:#e1e4e9;--line-2:#cbd2db;
  --bg:#eceff3;--bg-2:#dfe4ea;--surface:#fff;--surface-2:#f6f7f9;--hover:#fff6ef;
  --focus-ring:rgba(232,89,12,.22);--brand-tint:rgba(232,89,12,.08);--brand-tint-2:rgba(232,89,12,.45);
  --top-bg:rgba(236,239,243,.94);
  --side-bg:#16212e;--side-ink:#b6c0cd;--side-strong:#fff;--side-muted:#7e8b9c;--side-line:#253242;
  --side-hover:#1f2d3d;--side-active-bg:#e8590c;--side-active-ink:#fff;
  --tab-on:#16212e;--toast:#16212e;
  --r:6px;--r-lg:8px;--r-btn:6px;--r-in:6px;--r-sm:6px;
  --sh:0 1px 2px rgba(22,33,46,.06),0 8px 18px -12px rgba(22,33,46,.3);
  --chart-1:#e8590c;--chart-2:#1c7ed6;--chart-3:#0ca678;--chart-4:#e8a10e;--chart-5:#7048e8;--chart-6:#9aa5b4;
  --chart-a:#ff8a3d;--chart-b:#e8590c;--grid:#e4e7eb;
}
body{font-size:15px}
/* workshop headings: condensed, upper case where it reads as a label */
.top h1{font-size:25px;font-weight:700;letter-spacing:.01em;text-transform:uppercase}
.card-h h2,.sec h3{font-family:var(--display);font-size:15.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase}
.kpi-l{font-family:var(--display);font-size:13px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.kpi-v{font-size:31px;font-weight:700;letter-spacing:0}
.co-name{font-size:16px;letter-spacing:.02em;text-transform:uppercase}
.co-kind{color:#f59f72}
.btn{font-weight:600;letter-spacing:.01em}
.badge{border-radius:4px;letter-spacing:.02em}
.tab{border-radius:6px}
.kpis .kpi{border-top:4px solid var(--spark,var(--chart-1))}
.card{border-color:#dde1e7}
/* the kanban board: each stage column gets a coloured cap */
.col{border-top:4px solid var(--chart-6);border-radius:6px}
.col[data-stage="New lead"]{border-top-color:var(--chart-6)}
.col[data-stage="Estimate scheduled"]{border-top-color:var(--chart-2)}
.col[data-stage="Quote sent"]{border-top-color:var(--chart-4)}
.col[data-stage="Won"]{border-top-color:var(--chart-3)}
.col[data-stage="Lost"]{border-top-color:#e03131}
.col-h strong{font-family:var(--display);font-size:15px;letter-spacing:.05em;text-transform:uppercase}
.kcard{border-left:3px solid var(--line-2)}
.kcard:hover{border-left-color:var(--chart-1)}
.kcard-v{font-family:var(--display);font-size:16px}
.day-col{border-radius:8px}
.day-col h3{font-family:var(--display);font-size:15px;letter-spacing:.04em;text-transform:uppercase}
.day-col.today{background:#ffe8d9}
.vt{letter-spacing:.02em;text-transform:uppercase}

.crew-load{margin-bottom:14px}
/* the service-area map */
.areamap .ridge{fill:none;stroke:var(--grid);stroke-width:1.4}
.areamap .road{stroke:#d5dbe3;stroke-width:4;stroke-linecap:round}
.areamap .town{fill:var(--chart-1);fill-opacity:.82;stroke:#fff;stroke-width:2.5}
.areamap .town:hover{fill-opacity:1}
.areamap .town-l{fill:var(--ink);font:700 13px var(--display);letter-spacing:.03em;text-transform:uppercase}
.areamap .town-n{fill:var(--muted);font:600 11px var(--sans)}
.map-key{margin:6px 0 0;color:var(--muted);font-size:12.5px}
/* equipment age against a typical 15-year life */
.age-bar{position:relative;display:block;width:min(220px,100%);height:6px;margin-top:6px;border-radius:99px;background:var(--bg-2)}
.age-bar i{display:block;height:100%;border-radius:99px;background:var(--chart-3)}
.age-bar.old i{background:var(--chart-1)}
.age-bar b{position:absolute;top:-3px;bottom:-3px;width:2px;background:var(--ink)}
.fn-bar span{border-radius:3px}
@media (max-width:640px){.top h1{font-size:21px}.kpi-v{font-size:24px}}

/* route builder */
.route-grid{display:grid;gap:18px;align-items:start}
@media (min-width:1100px){.route-grid{grid-template-columns:370px minmax(0,1fr)}}
.route-grid>*{min-width:0}
.rt-pick{display:grid;gap:14px}
.stops{border-top:1px solid var(--line)}
.stop-row{display:flex;align-items:center;gap:11px;padding:10px 16px;border-bottom:1px solid var(--line);cursor:pointer}
.stop-row:hover{background:var(--hover)}
.stop-row input{flex:none;width:17px;height:17px;accent-color:#e8590c}
.stop-n{display:grid;place-items:center;flex:none;width:26px;height:26px;border-radius:50%;background:var(--chart-1);color:#fff;font:700 13px var(--display)}
.stop-row.off .stop-n{background:var(--bg-2);color:var(--muted)}
.stop-row.off .li-t{color:var(--muted)}
.routemap .town-dot{fill:var(--line-2)}
.routemap .town-sm{fill:var(--muted);font:600 10.5px var(--display);letter-spacing:.05em;text-transform:uppercase}
.routemap .rt{fill:none;stroke:var(--chart-1);stroke-width:4;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1;animation:rtdraw 1.6s ease-out .2s forwards}
.routemap .rt-alt{fill:none;stroke:var(--ink-2);stroke-width:1.6;stroke-dasharray:5 6;opacity:.4}
.routemap .rt-stop{opacity:0;animation:rtpop .35s ease-out forwards}
.routemap .rt-stop circle{fill:var(--chart-1);stroke:#fff;stroke-width:2.5}
.routemap .rt-stop text{fill:#fff;font:700 12px var(--display)}
.routemap .rt-shop path{fill:var(--ink);stroke:#fff;stroke-width:2}
.routemap .rt-truck circle{fill:var(--chart-2);stroke:#fff;stroke-width:2.5}
@keyframes rtdraw{to{stroke-dashoffset:0}}
@keyframes rtpop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.rt-legend{margin:8px 0 0}
.rt-legend i{width:16px;height:4px}
.rt-legend .k-best{background:var(--chart-1)}
.rt-legend .k-list{height:0;border-top:2px dashed var(--ink-2);opacity:.5}
.rt-legend .k-shop{width:10px;height:10px;border-radius:2px;background:var(--ink)}
.strip{position:relative;height:44px;margin-top:30px;border:1px solid var(--line);border-radius:6px;background:var(--surface-2)}
.strip .tick{position:absolute;top:-20px;transform:translateX(-50%);color:var(--muted);font:600 11px var(--display)}
.strip .st-drive{position:absolute;top:15px;height:12px;border-radius:3px;background:repeating-linear-gradient(90deg,var(--line-2) 0 4px,transparent 4px 7px)}
.strip .st-job{position:absolute;top:5px;bottom:5px;display:grid;place-items:center;overflow:hidden;border:2px solid var(--surface-2);border-radius:6px;background:var(--chart-1);color:#fff;font:700 12px var(--display)}
.strip .five{position:absolute;top:-5px;bottom:-5px;width:2px;margin-left:-1px;background:#e03131}
.strip-key{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:10px 0 0;color:var(--muted);font-size:12.5px}
.strip-key i{display:inline-block;width:14px;height:10px;margin-right:-8px;border-radius:2px}
.strip-key .k-job{background:var(--chart-1)}
.strip-key .k-drive{background:repeating-linear-gradient(90deg,var(--line-2) 0 3px,transparent 3px 5px)}
.strip-key .k-five{width:2px;background:#e03131}
@media (prefers-reduced-motion:reduce){.routemap .rt,.routemap .rt-stop{animation:none;stroke-dashoffset:0;opacity:1}.routemap .rt-truck{display:none}}
.routemap .ridge{fill:none;stroke:var(--grid);stroke-width:1.4}
.routemap .road{stroke:#d5dbe3;stroke-width:4;stroke-linecap:round}
.stop-row .li-main{display:grid;flex:1;min-width:0}
.stop-row .li-t{font-weight:600}
.stop-row .li-s{overflow:hidden;color:var(--muted);font-size:12.5px;white-space:nowrap;text-overflow:ellipsis}

/* route builder on the road map */
.map-wait{display:grid;place-items:center;aspect-ratio:600/380;border-radius:8px;background:#eef1f4;color:var(--muted);font-weight:600}
.routemap.real{display:block;width:100%;height:auto;aspect-ratio:600/380;border-radius:8px;background:#eef1f4;touch-action:pan-y}
.routemap .m-land{fill:#eef1f4}
.routemap .m-water{fill:#c3dbf0}
.routemap .m-river{fill:none;stroke:#a7c9ea;stroke-width:2.2px;stroke-linecap:round;stroke-linejoin:round}
.routemap use{fill:none;stroke-linecap:round;stroke-linejoin:round}
.routemap .m-ter{stroke:#fff;stroke-width:1.4px}
.routemap .m-sec-c{stroke:#d3d9e2;stroke-width:3.8px}.routemap .m-sec{stroke:#fff;stroke-width:2.3px}
.routemap .m-pri-c{stroke:#e2c28c;stroke-width:4.6px}.routemap .m-pri{stroke:#ffe4ad;stroke-width:3px}
.routemap .m-tru-c{stroke:#d9a35a;stroke-width:5.2px}.routemap .m-tru{stroke:#ffd083;stroke-width:3.4px}
.routemap .m-mot-c{stroke:#c98235;stroke-width:5.8px}.routemap .m-mot{stroke:#f7b04d;stroke-width:3.8px}
.routemap .m-town{fill:#4a5768;font-family:var(--display);font-weight:700;letter-spacing:.06em;text-transform:uppercase;paint-order:stroke;stroke:#eef1f4;stroke-linejoin:round;pointer-events:none}
.routemap .rt-alt2{fill:none;stroke:#394656;stroke-width:2px;stroke-dasharray:5 6;stroke-linejoin:round;opacity:.45}
.routemap .rt-case{fill:none;stroke:#fff;stroke-width:9px;stroke-linejoin:round;stroke-linecap:round;opacity:.9}
.routemap .rt-ghost{fill:none;stroke:#e8590c;stroke-width:5px;stroke-linejoin:round;stroke-linecap:round;opacity:.25}
.routemap .rt-prog{fill:none;stroke:#e8590c;stroke-linejoin:round;stroke-linecap:round;stroke-dasharray:1000;stroke-dashoffset:1000}
.routemap .rt-shop2 circle{fill:#16212e;stroke:#fff;stroke-width:3}
.routemap .rt-shop2 path{fill:#fff}
.routemap .rt-stop2 circle{fill:#fff;stroke:#e8590c;stroke-width:3;transform-box:fill-box;transform-origin:center;transition:fill .2s}
.routemap .rt-stop2 text{fill:#e8590c;font:700 12px var(--display);transition:fill .2s}
.routemap .rt-stop2.hit circle{fill:#e8590c;animation:stophit .45s ease-out}
.routemap .rt-stop2.hit text{fill:#fff}
@keyframes stophit{40%{transform:scale(1.4)}}
.routemap .rt-truck2 circle{fill:#1c7ed6;stroke:#fff;stroke-width:3}
.routemap .rt-truck2 path{fill:#fff}
.routemap .rt-truck2 circle.w{fill:#fff;stroke:none}
.rt-under{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.rt-under .rt-legend{margin:0}
.map-attr{margin:6px 0 0;color:var(--muted);font-size:11.5px}
.map-attr a{color:inherit}
