/* Quotes & invoices demo: builder, documents, signature pad. */
.li-link{color:inherit;text-decoration:none}
.li-link:hover{background:#f8fbff;color:inherit}
.q-layout{display:grid;gap:18px;align-items:start}
@media (min-width:1100px){.q-layout{grid-template-columns:minmax(0,1fr) 300px}}
.q-side{display:grid;gap:14px}
@media (min-width:1100px){.q-side{position:sticky;top:96px}}
.q-total{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:10px}
.q-total span{color:var(--muted);font-size:13px;font-weight:600}
.q-total strong{font-size:26px;letter-spacing:-.03em;font-variant-numeric:tabular-nums}
.q-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid var(--line);font-size:13.5px}
.q-row>span:first-child{color:var(--muted)}
.tax-in{display:inline-block;width:76px;min-height:30px;padding:3px 8px;text-align:right}
.side-h{margin:0 0 10px;color:var(--muted);font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.q-steps{display:grid;gap:8px;margin:0;padding:0;list-style:none}
.q-steps li{position:relative;display:flex;justify-content:space-between;gap:8px;padding-left:20px;color:var(--muted);font-size:13px}
.q-steps li::before{content:"";position:absolute;top:5px;left:2px;width:10px;height:10px;box-sizing:border-box;border:2px solid var(--line-2);border-radius:50%}
.q-steps li.done{color:var(--ink)}
.q-steps li.done::before{background:var(--ok);border-color:var(--ok)}
.q-steps strong{font-weight:600}

/* line editor */
.lines-h,.line{display:grid;grid-template-columns:minmax(0,1fr) 62px 70px 86px 96px 50px 30px;align-items:center;gap:8px}
.lines-h{margin:18px 0 6px;padding:0 2px;color:var(--muted);font-size:12px;font-weight:650}
.lines{display:grid;gap:8px}
.line .input{min-height:36px;padding:6px 9px}
.l-amt{font-weight:650}
.add-cat{min-width:240px}
@media (max-width:760px){
  .lines-h{display:none}
  .line{grid-template-columns:1fr 1fr;padding:10px;border:1px solid var(--line);border-radius:10px}
  .l-desc{grid-column:1 / -1}
  .l-amt{text-align:left}
}

/* document styles (.doc-h, .doc-tbl, ...) live in kit.css: statements use them too */
/* customer approval */
.portal-wide{max-width:880px}
.sign{margin-top:18px}
.sign h2{margin:0;font-size:18px}
.pad-wrap{position:relative}
.pad{display:block;width:100%;height:150px;border:1px dashed var(--line-2);border-radius:12px;background:#fbfcfe;cursor:crosshair;touch-action:none}
.pad-clear{position:absolute;top:6px;right:6px}
.check{display:flex;align-items:flex-start;gap:8px;font-size:13.5px;font-weight:550}
.check input{flex:none;width:17px;height:17px;margin-top:1px}
.done-sign{display:flex;align-items:center;gap:12px}
.done-sign>.ic{width:36px;height:36px;padding:8px;border-radius:50%;background:var(--ok-bg);color:var(--ok)}
.done-sign strong{display:block}
.done-sign span{color:var(--muted);font-size:13.5px}

@media print{.q-side,.portal-note,.sign{display:none!important}.q-layout{display:block}}

/* optional add-ons */
.l-opt{display:inline-flex;align-items:center;gap:5px;color:var(--muted);font-size:12px;font-weight:650;white-space:nowrap;cursor:pointer}
.l-opt input{width:15px;height:15px}
.line.is-opt{padding:6px;margin:-6px;border-radius:10px;background:var(--vio-bg)}
.line.is-opt .l-opt{color:var(--vio)}
.dep-in{width:auto;min-height:30px;padding:3px 8px}
.doc-sub{margin:18px 0 6px;color:var(--muted);font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.doc-opts td{color:var(--muted)}
.doc-opts tr.on td{color:var(--ink);font-weight:600}
.doc-opts .opt-state{width:110px;font-size:12px;font-weight:700}
.doc-opts tr.on .opt-state{color:var(--ok)}
.opt-pick{display:grid;gap:8px;padding:12px 14px;border-radius:12px;background:var(--vio-bg)}
.opt-pick .side-h{margin:0 0 2px;color:var(--vio)}
.opt-line{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;cursor:pointer}
.opt-line input{flex:none;width:18px;height:18px}
.opt-line span{flex:1;min-width:0}
.opt-line strong{display:block;font-size:13.5px}
.opt-line small{color:var(--muted);font-size:12px}
.opt-line em{color:var(--vio);font-style:normal;font-weight:750;white-space:nowrap}
.opt-line:has(input:checked){border-color:var(--vio);box-shadow:0 0 0 2px rgba(109,40,217,.15)}
.alert-ok{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:14px;padding:10px 12px;border-radius:10px;background:var(--ok-bg);color:var(--ok);font-size:13.5px;font-weight:650}
.alert-ok span{flex:1}

/* crew schedule */
.jb-wrap{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);box-shadow:var(--sh)}
.jb{min-width:860px}
.jb-head,.jb-row{display:grid;grid-template-columns:170px minmax(0,1fr)}
.jb-head{grid-template-columns:170px repeat(10,minmax(0,1fr));background:#f8fafc;border-bottom:1px solid var(--line)}
.jb-d{padding:8px 4px;border-left:1px solid var(--line);color:var(--muted);font-size:11.5px;font-weight:600;text-align:center}
.jb-d strong{display:grid;place-items:center;width:28px;height:28px;margin:2px auto 0;border-radius:50%;color:var(--ink);font-size:15px}
.jb-d.is-today strong{background:var(--blue);color:#fff}
.jb-head .jb-d:nth-child(7){border-left:2px solid var(--line-2)}
.jb-row{border-bottom:1px solid var(--line)}
.jb-row:last-child{border-bottom:0}
.jb-crew{display:flex;align-items:center;gap:9px;padding:14px 12px;font-size:12.5px}
.jb-crew strong{display:block;font-size:13.5px}
.jb-crew span:not(.dot){color:var(--muted)}
.jb-lane{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));grid-auto-rows:minmax(64px,auto);align-items:center;gap:6px 0;padding:8px 0;
  background:repeating-linear-gradient(to right,transparent 0,transparent calc(10% - 1px),var(--line) calc(10% - 1px),var(--line) 10%)}
.jbar{display:flex;flex-direction:column;justify-content:center;min-width:0;height:52px;margin:0 4px;padding:6px 10px;overflow:hidden;border:0;border-left:4px solid var(--c);border-radius:8px;
  background:color-mix(in srgb,var(--c) 14%,#fff);color:var(--ink);text-align:left;cursor:pointer}
.jbar:hover{box-shadow:0 6px 16px -8px rgba(15,23,36,.45)}
.jbar strong{overflow:hidden;font-size:12.5px;white-space:nowrap;text-overflow:ellipsis}
.jbar span{overflow:hidden;color:var(--muted);font-size:11.5px;white-space:nowrap;text-overflow:ellipsis}
.jbar.st-in-progress{background:var(--c);color:#fff}
.jbar.st-in-progress span{color:rgba(255,255,255,.85)}
.jbar.st-complete{opacity:.5}
@media (max-width:760px){.line .l-opt{grid-column:1 / -1}}
@media (max-width:760px){.jb{min-width:720px}.jb-head,.jb-row{grid-template-columns:118px minmax(0,1fr)}.jb-head{grid-template-columns:118px repeat(10,minmax(0,1fr))}.jb-crew{padding:12px 8px}}
/* the add-on column is just a checkbox on wide screens; the word shows on phones */
.l-opt{justify-content:center}
.l-opt span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.l-opt-h{text-align:center}
@media (max-width:760px){.l-opt{justify-content:flex-start}.l-opt span{position:static;width:auto;height:auto;overflow:visible;clip:auto}}

/* phones and tablets: compact quote lines, a total that stays in view, the crew board as a list */
.q-bar{display:none}
.jb-list{display:none}
.jl-row{border-left:3px solid var(--c)}
.jl-row .when-col small,.when-col small{display:block;color:var(--muted);font-size:11px;font-weight:600}
@media (max-width:1099px){
  .q-bar{position:sticky;bottom:10px;z-index:4;display:flex;align-items:center;justify-content:space-between;width:100%;min-height:50px;margin-top:12px;padding:0 16px;border:0;border-radius:12px;background:var(--navy);color:#fff;font:600 14px var(--sans);box-shadow:0 12px 28px -10px rgba(4,20,52,.55);cursor:pointer}
  .q-bar strong{font-size:18px}
}
@media (max-width:760px){
  .lines{gap:10px}
  .line{grid-template-columns:64px 72px minmax(0,1fr) auto;grid-template-areas:"desc desc desc desc" "qty unit rate amt" "opt opt opt rm";gap:8px;padding:10px;border:1px solid var(--line);border-radius:12px}
  .line.is-opt{margin:0;padding:10px;border-color:#d8c8fb}
  .line .l-desc{grid-area:desc}
  .line .l-qty{grid-area:qty}
  .line .l-unit{grid-area:unit}
  .line .l-rate{grid-area:rate}
  .line .l-amt{grid-area:amt;min-width:84px;text-align:right}
  .line .l-opt{grid-area:opt;justify-content:flex-start}
  .line>[data-rm]{grid-area:rm;justify-self:end}
  .jb-wrap{display:none}
  .jb-list{display:grid;gap:12px}
  .doc{padding:18px 14px}
  .doc-h{gap:12px;padding-bottom:14px}
  .doc-meta h2{text-align:left}
  .doc-tbl th,.doc-tbl td{padding:8px 4px}
  .doc-tot div{grid-template-columns:1fr auto}
  .q-total strong{font-size:22px}
  .opt-line{padding:9px 10px}
}

/* ---- Ironwood Roofing: a dark, contractor-grade look. Charcoal and slate with a copper-flashing accent,
   Space Grotesk for headings and numbers, Manrope for everything else. Quotes and invoices (.doc) stay white paper,
   because that is what the customer gets. Fonts: SIL OFL, self-hosted. */
@font-face{font-family:"Manrope";src:url(/fonts/demo/manrope-400-800.woff2) format("woff2");font-weight:400 800;font-display:swap}
@font-face{font-family:"Space Grotesk";src:url(/fonts/demo/space-grotesk-400-700.woff2) format("woff2");font-weight:400 700;font-display:swap}
:root{
  color-scheme:dark;
  --sans:"Manrope",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --display:"Space Grotesk","Manrope",system-ui,sans-serif;--display-weight:700;--num:"Space Grotesk","Manrope",system-ui,sans-serif;
  --blue:#d4874a;--blue-2:#e39a5e;--azure:#e8a46c;--sky:#5c3f28;--sky-2:rgba(212,135,74,.14);
  --navy:#0d1014;--navy-2:#090b0e;
  --ink:#ebe8e3;--ink-2:#c5c1ba;--muted:#8e939a;--line:#2a2f36;--line-2:#3a4048;
  --bg:#121519;--bg-2:#1c2026;--surface:#181b20;--surface-2:#1e2228;--hover:#20252c;--on-brand:#1a1208;
  --ok:#5fcf8f;--ok-2:#4cb87b;--ok-bg:rgba(95,207,143,.13);--warn:#f0b35a;--warn-bg:rgba(240,179,90,.13);--bad:#ff7b72;--bad-bg:rgba(255,123,114,.13);
  --vio:#b8a4ff;--vio-bg:rgba(184,164,255,.13);
  --focus-ring:rgba(212,135,74,.3);--brand-tint:rgba(212,135,74,.1);--brand-tint-2:rgba(212,135,74,.5);
  --top-bg:rgba(18,21,25,.92);--backdrop:rgba(0,0,0,.62);
  --side-bg:#0e1013;--side-ink:#b4b9c0;--side-strong:#f1eee8;--side-muted:#767c84;--side-line:#20242a;
  --side-hover:#171a1f;--side-active-bg:rgba(212,135,74,.13);--side-active-ink:#e8a46c;
  --tab-on:#d4874a;--toast:#262b32;
  --r:10px;--r-lg:12px;--r-btn:8px;--r-in:8px;--r-sm:8px;
  --sh:inset 0 1px 0 rgba(255,255,255,.03),0 12px 30px -18px rgba(0,0,0,.85);
  --chart-1:#d4874a;--chart-2:#5aa9e6;--chart-3:#5fcf8f;--chart-4:#e3c06b;--chart-5:#b48ef0;--chart-6:#5c636d;
  --chart-a:#e8a46c;--chart-b:#b8692f;--grid:#262b32;
  --paper:#fff;
}
:focus-visible{outline-color:#e8a46c}
.top h1{font-size:26px;font-weight:700;letter-spacing:-.02em}
.card-h h2,.sec h3{font-size:16px;font-weight:600;letter-spacing:-.005em}
.kpi-l{font-weight:600;color:var(--muted)}
.kpi-v{font-size:30px;font-weight:600;letter-spacing:-.02em}
.co-name{font-family:var(--display);font-size:16px;font-weight:700;letter-spacing:-.01em}
.btn-primary{font-weight:700}
.btn-ok,.btn-ok:hover{color:#08130c}
@media (min-width:861px){.nav a[aria-current="page"]{box-shadow:inset 3px 0 0 #d4874a}}
.card,.kpi{background:linear-gradient(180deg,#1b1f25,#171a1f)}
.kpis .kpi{border-top:2px solid var(--spark,var(--line-2))}
.b-blue{background:var(--sky-2);color:#eaa56b}
.ini{color:#14171b}
.chart text,.lchart text{fill:var(--muted)}
/* things in the app's own CSS that assumed a white page */
.li-link:hover{background:var(--hover)}
.opt-line{background:var(--surface-2)}
.jb-wrap{background:var(--surface)}
.jb-head{background:var(--surface-2)}
.jb-d.is-today strong{color:var(--on-brand)}
.jbar{background:color-mix(in srgb,var(--c) 18%,var(--surface))}
.jbar.st-in-progress{color:#14171b}
.jbar.st-in-progress span{color:rgba(20,23,27,.75)}
.jbar.st-complete{opacity:.45}
.jbar:hover{box-shadow:0 6px 16px -8px rgba(0,0,0,.8)}
.line.is-opt{border-color:#4a3f6e}
/* the paper keeps a copper accent */
.doc .doc-brand .co-logo{width:44px;height:44px}
.portal-note{background:var(--surface-2);color:var(--ink-2)}
@media (max-width:640px){.top h1{font-size:22px}.kpi-v{font-size:24px}}
:root{accent-color:#d4874a}
.pad-wrap .pad-clear{color:#364152}

/* roof measuring */
.btn-measure{border-color:rgba(212,135,74,.55);color:#eaa56b}
.roof-tool{display:grid;gap:18px}
@media (min-width:760px){.roof-tool{grid-template-columns:250px minmax(0,1fr)}}
.roof-ctl{display:grid;gap:12px;align-content:start}
.roof-ctl .seg{display:flex}
.roof-ctl .seg label{flex:1}
.rng span{display:flex;justify-content:space-between}
.rng b{font:600 13px var(--num);color:var(--blue-2)}
.rng input{width:100%;accent-color:#d4874a}
.roof-view{display:grid;gap:12px;min-width:0}
.roof-pic{border:1px solid var(--line);border-radius:12px;background:radial-gradient(ellipse at 50% 30%,#232831,#14171b)}
.roof3d{display:block;width:100%;height:auto}
.roof3d .r-shadow{fill:rgba(0,0,0,.28)}
.roof3d polygon{stroke:rgba(0,0,0,.35);stroke-width:1;stroke-linejoin:round}
.roof3d .r-ridge{stroke:#d4874a;stroke-width:2.6;stroke-linecap:round}
.roof3d .r-dim{stroke:#8e939a;stroke-width:1;stroke-dasharray:3 3}
.roof3d .r-dim-t,.roof3d .r-pitch{fill:#c5c1ba;font:600 12px var(--num)}
.roof3d .r-pitch{fill:#e8a46c}
.roof-big{display:flex;align-items:center;gap:12px}
.roof-big strong{font:700 40px/1 var(--num);color:#e8a46c}
.roof-big span{color:var(--muted);font-size:12.5px;line-height:1.35}
.roof-nums{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.roof-nums div{padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--surface-2)}
.roof-nums dt{color:var(--muted);font-size:11.5px}
.roof-nums dd{margin:0;font:600 15px var(--num)}
.roof-card{display:flex;align-items:center;gap:14px;width:100%;margin:2px 0 14px;padding:10px 12px;border:1px solid var(--line-2);border-radius:12px;background:var(--surface-2);color:var(--ink-2);font-size:13px;text-align:left;cursor:pointer}
.roof-card:hover{border-color:#d4874a}
.roof-card strong{display:block;color:var(--ink);font:600 16px var(--num)}
.roof-card em{display:block;margin-top:2px;color:#e8a46c;font-style:normal;font-weight:600}
.roof-thumb{flex:none;width:150px;border-radius:8px;background:#14171b;overflow:hidden}
.doc-roof{display:grid;grid-template-columns:minmax(0,300px) 1fr;gap:18px;align-items:center;margin:4px 0 18px;padding:12px;border:1px solid var(--line);border-radius:10px;background:#f7f8fa}
.doc-roof h4{margin:0 0 4px;font-size:14px}
.doc-roof p{margin:0 0 6px;color:var(--ink-2);font-size:13px}
.doc .roof3d .r-shadow{fill:rgba(15,23,36,.12)}
.doc .roof3d .r-dim-t{fill:#364152}
.doc .roof3d .r-dim{stroke:#9aa3b0}
.doc .roof3d .r-pitch{fill:#b8692f}
@media (max-width:640px){.doc-roof{grid-template-columns:1fr}.roof-nums{grid-template-columns:repeat(2,minmax(0,1fr))}.roof-thumb{width:110px}}
