:root{--brand-copper:#b5612b;--brand-copper-dark:#96501f;--brand-copper-on-dark:#d9814a;--brand-charcoal:#23272c;--brand-charcoal2:#31373e;--brand-stone:#6b5646;--brand-cabinet:#2f6b4f;--brand-metal:#3d5a73;}
/* ExpressFab app. Plain CSS: a left rail on a laptop, a bottom bar on a phone. The brand colors (--brand-*) come from
   config/product.json; tools/build.py puts them at the top of the built stylesheet. */
:root {
  --ink: #1b232b; --ink2: #4a5561; --muted: #6b7682; --line: #dde2e7; --bg: #f4f5f7; --card: #fff;
  --rail: var(--brand-charcoal); --rail2: var(--brand-charcoal2); --accent: var(--brand-copper); --accent2: var(--brand-copper-dark); --blue: #2f6db3; --green: #2e7d4f; --red: #b33a3a;
  --r: 10px; --sh: 0 1px 2px rgba(16, 24, 32, .06), 0 1px 8px rgba(16, 24, 32, .04);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 24px; margin: 0; letter-spacing: -.01em; } h2 { font-size: 15px; margin: 0 0 10px; } h3 { font-size: 13px; margin: 14px 0 6px; color: var(--ink2); }
small { color: var(--muted); } .muted { color: var(--muted); } .c { text-align: center; } .r { text-align: right; } .grow { flex: 1; }
.boot { padding: 40px; color: var(--muted); }

/* buttons and fields */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 8px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { border-color: #c4ccd4; } .btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; } .btn.primary:hover { background: var(--accent2); }
.btn.ghost { background: transparent; } .btn.sm { padding: 4px 10px; font-size: 13px; } .btn.block { width: 100%; margin-top: 10px; } .btn.danger { color: var(--red); }
.link { background: none; border: 0; padding: 0; color: var(--blue); font: inherit; cursor: pointer; text-align: left; } .link:hover { text-decoration: underline; }
input, select, textarea { font: inherit; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: #fff; width: 100%; min-width: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(181, 97, 43, .3); border-color: var(--accent); }
input:disabled, select:disabled, textarea:disabled { background: #f7f8f9; color: var(--ink2); }
.fld { display: block; margin: 0 0 12px; } .fld > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink2); margin-bottom: 4px; } .fld small { display: block; margin-top: 3px; }
.row2, .row3 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; }
.chk { display: flex; gap: 8px; align-items: center; margin: 6px 0; } .chk input { width: auto; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; } .seg label { cursor: pointer; } .seg input { display: none; }
.seg span, .seg button { display: block; border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; background: #fff; font: inherit; cursor: pointer; }
.seg input:checked + span, .seg button.on { border-color: var(--accent); background: #f8ede4; color: var(--accent2); font-weight: 600; }
.seg.col { flex-direction: column; } .seg.col span { padding: 10px 12px; } .seg.col small { display: block; }
.seg.sm button { padding: 5px 10px; font-size: 13px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef0f2; color: var(--ink2); vertical-align: middle; }
.chip.blue { background: #e6eef8; color: var(--blue); } .chip.green { background: #e5f2ea; color: var(--green); } .chip.red { background: #f8e8e8; color: var(--red); } .chip.grey { background: #f0f1f3; color: var(--muted); }
.warn { background: #fdf4e5; border: 1px solid #f0d6ad; padding: 10px; border-radius: 8px; }

/* frame */
.shell { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.rail { background: var(--rail); color: #dfe5ea; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.brand { padding: 18px 18px 14px; display: flex; align-items: center; gap: 10px; } .brand svg { width: 30px; height: 30px; flex: none; }
.brand .wm { font-size: 19px; color: #fff; letter-spacing: -.01em; font-weight: 500; line-height: 1.1; } .brand .wm b { font-weight: 800; } .brand small { display: block; color: var(--brand-copper-on-dark); font-weight: 600; font-size: 12.5px; }
.rail nav { display: flex; flex-direction: column; padding: 4px 8px; gap: 2px; }
.rail nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #c8d1d9; font-weight: 500; text-decoration: none; }
.rail nav a:hover { background: var(--rail2); color: #fff; } .rail nav a.on { background: var(--rail2); color: #fff; box-shadow: inset 3px 0 0 var(--accent); }
.railfoot { margin-top: auto; padding: 14px 18px; border-top: 1px solid var(--rail2); font-size: 13px; } .railfoot .shopname { color: #fff; font-weight: 600; } .railfoot .who { color: #9aa6b1; margin-bottom: 6px; } .railfoot .link { color: #c8d1d9; }
.main { min-width: 0; display: flex; flex-direction: column; }
.demobar, .trialbar { background: #fbf3e9; color: #7a4d14; padding: 8px 20px; font-size: 13px; border-bottom: 1px solid #f0d6ad; }
.top { display: flex; gap: 10px; align-items: center; padding: 12px 24px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.search { position: relative; flex: 1; max-width: 520px; }
.qres { position: absolute; left: 0; right: 0; top: 42px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .12); overflow: hidden; z-index: 20; } .qres:empty { display: none; }
.qres a { display: block; padding: 8px 12px; color: var(--ink); text-decoration: none; } .qres a:hover { background: var(--bg); } .qres small { display: block; } .qres .none { padding: 10px 12px; color: var(--muted); }
.view { padding: 20px 24px 60px; max-width: 1280px; width: 100%; }
.bottom { display: none; }
.vhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.vhead .sub { margin: 4px 0 0; color: var(--muted); } .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--sh); margin-bottom: 16px; min-width: 0; }
.card.narrow { max-width: 720px; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } .cols3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.cols2 > .card, .cols3 > .card { margin-bottom: 0; } .cols2, .cols3 { margin-bottom: 16px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--r); }
.note { background: var(--bg); padding: 8px 10px; border-radius: 8px; white-space: pre-wrap; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a, .tabs button { padding: 8px 12px; border: 0; background: none; font: inherit; color: var(--ink2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; text-decoration: none; }
.tabs .on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.filters { display: flex; gap: 10px; margin-bottom: 12px; align-items: center; } .filters input { max-width: 340px; } .filters select { max-width: 200px; }

/* tables */
.tbl { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.card .tbl { border: 0; border-radius: 0; margin: 0 -16px; }
table { width: 100%; border-collapse: collapse; } th, td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; background: #fafbfc; } tr:last-child td { border-bottom: 0; }
th.r, td.r { text-align: right; } td small { display: block; } tr[data-href] { cursor: pointer; } tr[data-href]:hover td { background: #fafbfc; }

/* Today */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; color: var(--ink); box-shadow: var(--sh); text-decoration: none !important; }
.kpi span { font-size: 13px; color: var(--muted); font-weight: 600; } .kpi b { display: block; font-size: 24px; margin: 2px 0; } .kpi:hover { border-color: #c4ccd4; }
.mini { list-style: none; margin: 0; padding: 0; } .mini li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); } .mini li:last-child { border: 0; } .mini span { color: var(--muted); font-size: 13px; text-align: right; }
.bars { list-style: none; margin: 0; padding: 0; } .bars a { display: grid; grid-template-columns: 150px 1fr 30px; gap: 10px; align-items: center; padding: 4px 0; color: var(--ink); text-decoration: none; }
.bars i { display: block; height: 10px; background: var(--accent); border-radius: 5px; opacity: .8; } .bars b { text-align: right; }
.tl { list-style: none; margin: 0; padding: 0; } .tl li { padding: 8px 0 8px 14px; border-left: 2px solid var(--line); margin-left: 4px; } .tl li.system { opacity: .8; }
.tlh { font-size: 12px; color: var(--muted); } .tlt { white-space: pre-wrap; }
.tasks { list-style: none; margin: 0; padding: 0; } .tasks li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); } .tasks li:last-child { border: 0; }
.tasks .check { width: 20px; height: 20px; border: 2px solid #b7c0c9; border-radius: 6px; background: #fff; cursor: pointer; flex: none; margin-top: 2px; } .tasks .check:hover { border-color: var(--green); background: #e5f2ea; }
.tasks li.late small { color: var(--red); } .tasks li.due small { color: var(--accent2); }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; } .dl dt { color: var(--muted); } .dl dd { margin: 0; text-align: right; font-weight: 600; }
.contact { margin-bottom: 10px; }

/* ready or not */
.chip.amber { background: #fbefd9; color: #8a5a10; }
.cardh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; } .cardh h2 { margin: 0; }
.attn { border-color: #e9d2bd; }
.atts { list-style: none; margin: 0; padding: 0; } .att { padding: 10px 0 10px 12px; border-left: 3px solid var(--line); margin: 8px 0; }
.att.late, .att.blocked { border-color: var(--red); } .att.risk { border-color: #d9a441; }
.atth { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: baseline; }
.why { margin: 6px 0; padding-left: 18px; color: var(--ink2); font-size: 14px; } .why li { margin: 2px 0; }
.att .acts { margin-top: 6px; }
.checks { list-style: none; margin: 4px 0 10px; padding: 0; } .checks li { padding: 6px 0; border-bottom: 1px solid var(--line); } .checks li:last-child { border: 0; }
.checks .chk { margin: 0; } .checks small { display: block; margin-left: 26px; } .checks li.done span { color: var(--ink2); }
.checks input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.ready .later { margin: 10px 0 0; font-size: 13px; }
.sched { list-style: none; margin: 0; padding: 0; } .sched li { display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 220px) auto; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line); } .sched li:last-child { border: 0; }
.sched .when { font-weight: 600; color: var(--ink2); font-size: 13px; } .sched .state { text-align: right; white-space: nowrap; }
.card.day h2 { color: var(--accent2); }
.tabs.sub { margin-top: -8px; } .tabs.sub a { font-size: 14px; }
.cl { padding: 6px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; } .cl h3 { margin: 6px 0; color: var(--ink); }
.clitems { padding-left: 20px; margin: 4px 0 8px; } .clitems li { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; } .clitems input { flex: 1; } .clitems select { width: 130px; flex: none; }
.narrowp { max-width: 720px; }

/* capacity */
.captbl { margin: 0 -8px; } .captbl table { border-collapse: separate; border-spacing: 3px; width: 100%; table-layout: fixed; } .captbl colgroup, .captbl thead th:first-child { width: 118px; } .captbl .cell { min-width: 0; font-size: 12px; } .wk1 { display: none; }
@media (max-width: 720px) { .captbl tbody th { white-space: normal; padding-left: 8px; } .captbl .w2, .captbl .w3, .wk3 { display: none; } .wk1 { display: inline; } .captbl thead th:first-child { width: 96px; } }
.captbl th, .captbl td { border: 0; padding: 0; text-align: center; background: none; } .captbl thead th { font-size: 11px; color: var(--muted); text-transform: none; letter-spacing: 0; padding-bottom: 4px; } .captbl thead small { display: block; }
.captbl thead th.today { color: var(--accent2); } .captbl tbody th { text-align: left; padding: 0 10px 0 16px; white-space: nowrap; font-size: 13px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 400; } .captbl tbody th small { display: block; }
.cell { width: 100%; min-width: 46px; height: 38px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font: 600 11px/1 inherit; color: var(--ink2); background: linear-gradient(to top, #d9eadf var(--p), #fff var(--p)); }
.cell.busy { background: linear-gradient(to top, #f3dcae var(--p), #fff var(--p)); color: #7a4d14; border-color: #ecd09a; } .cell.over { background: #f6d4d4; color: var(--red); border-color: #e9b4b4; }
.cell:hover { border-color: var(--accent); } .off { display: block; font-size: 11px; color: #b7c0c9; }
.outlook { list-style: none; margin: 0 0 6px; padding: 0; } .outlook li { display: grid; grid-template-columns: 140px 1fr 130px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.outlook a { color: var(--ink); } .weeks { display: flex; gap: 4px; height: 30px; align-items: flex-end; } .wk { flex: 1; height: 100%; background: #f0f2f4; border-radius: 4px; display: flex; align-items: flex-end; overflow: hidden; }
.wk i { display: block; width: 100%; background: #7fb08f; } .wk.busy i { background: #e0a94a; } .wk.over i { background: var(--red); } .outlook small { text-align: right; }
.hint { display: block; margin: -8px 0 10px; } .hint.busy { color: #8a5a10; } .hint.over { color: var(--red); }
.promise { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 6px; } .promise h3 { margin: 6px 0; } .promise ul { list-style: none; margin: 0 0 6px; padding: 0; }
.promise li { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 3px 0; } .promise li small { grid-column: 1 / -1; }
.res .dows { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; } .res .dows input { width: auto; }

/* boards */
/* boards wrap into rows instead of scrolling sideways: as many stage columns as fit, left to right */
.board { display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); gap: 10px; padding-bottom: 8px; align-items: start; }
.board .dcard { padding: 8px; } .board .dcard .r { text-align: left; } .board .dcard b { font-size: 13.5px; overflow-wrap: anywhere; }
.col { background: #eceff2; border-radius: var(--r); padding: 10px; min-height: 120px; } .colh { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 13px; } .colh span { color: var(--muted); }
.dcard { display: block; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; margin-bottom: 8px; font: inherit; color: var(--ink); cursor: pointer; box-shadow: var(--sh); text-decoration: none !important; }
.dcard:hover { border-color: var(--accent); } .dcard b { display: block; font-size: 14px; } .dcard span { display: block; font-size: 12.5px; color: var(--muted); } .dcard .r { text-align: right; color: var(--ink2); }
.col .muted { font-size: 13px; margin: 4px; }

/* quote editor */
.qgrid { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; } .qside { position: sticky; top: 76px; }
.pick { display: flex; gap: 6px; }
.lines .line { display: grid; grid-template-columns: 1fr 80px 46px 100px 100px 28px; gap: 6px; align-items: center; padding: 4px 0; }
.line .lu { font-size: 12px; color: var(--muted); } .line .la { text-align: right; } .line .lq, .line .lp { text-align: right; }
.x { border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; } .x:hover { color: var(--red); }
.addline { display: flex; gap: 8px; margin-top: 10px; } .addline select { flex: 1; }
.tot { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 8px 0 4px; } .tot dt { color: var(--ink2); } .tot dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.tot .big { font-size: 20px; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; }
.printdoc { display: none; }

/* jobs */
.stepper { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 0; margin: 0 0 12px; }
.stepper li { flex: 1 1 96px; min-width: 0; } .stepper button, .stepper span { display: block; width: 100%; text-align: left; background: #f4f5f7; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; color: var(--ink2); }
.stepper button { cursor: pointer; } .stepper button:hover { border-color: var(--accent); }
.stepper i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #dfe4e9; font-style: normal; font-size: 11px; font-weight: 700; margin-right: 4px; }
.stepper b { font-size: 12.5px; } .stepper small { display: block; font-size: 11px; }
.stepper .past button, .stepper .past span { background: #eef6f1; } .stepper .past i { background: var(--green); color: #fff; }
.stepper .now span { background: #fbf3e9; border-color: var(--accent); color: var(--ink); } .stepper .now i { background: var(--accent); color: #fff; }
.files { list-style: none; margin: 0 0 10px; padding: 0; } .files li { padding: 6px 0; border-bottom: 1px solid var(--line); } .files small { display: block; }
.upl { cursor: pointer; }

/* import, settings */
.steps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; } .steps li { color: var(--muted); font-weight: 600; font-size: 13px; }
.steps i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #dfe4e9; font-style: normal; margin-right: 6px; }
.steps .now { color: var(--ink); } .steps .now i { background: var(--accent); color: #fff; } .steps .past i { background: var(--green); color: #fff; }
.drop { display: block; border: 2px dashed #c4ccd4; border-radius: var(--r); padding: 30px; text-align: center; cursor: pointer; font-weight: 600; color: var(--blue); } .drop:hover { border-color: var(--accent); } .drop small { display: block; font-weight: 400; margin-top: 6px; }
.map td { vertical-align: middle; } .map select { max-width: 260px; }
.big { font-size: 17px; } ul.big li { margin: 4px 0; }
.stagelist { padding-left: 20px; } .stagelist li { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; } .stagelist input { max-width: 260px; } .stagelist .off input { opacity: .5; text-decoration: line-through; }

/* modal and toast */
.mback { position: fixed; inset: 0; background: rgba(15, 22, 30, .45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.mcard { background: #fff; border-radius: 12px; width: 100%; max-width: 560px; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); } .mcard.wide { max-width: 820px; }
.mhead { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); } .mhead h2 { margin: 0; font-size: 17px; }
.mbody { padding: 16px 18px; overflow-y: auto; } .mfoot { display: flex; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; opacity: 0; transition: .2s; z-index: 60; max-width: 90vw; pointer-events: none; }
#toast.show { opacity: 1; transform: translate(-50%, 0); } #toast.bad { background: var(--red); }

/* sign-in and setup */
.gate { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; background: var(--rail); }
.gcard { background: #fff; border-radius: 14px; padding: 28px; width: 100%; max-width: 440px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); } .gcard h1 { margin-bottom: 8px; }
.glogo { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; } .glogo svg { width: 34px; height: 34px; } .glogo .wm { font-size: 22px; color: var(--rail); font-weight: 500; letter-spacing: -.01em; } .glogo .wm b { font-weight: 800; } .gfoot { color: #9aa6b1; font-size: 13px; margin-top: 14px; }
.or { text-align: center; color: var(--muted); margin: 12px 0; font-size: 13px; } .google { background: #fff; }

/* phone */
@media (max-width: 900px) {
  .cols3, .kpis { grid-template-columns: 1fr 1fr; } .qgrid { grid-template-columns: 1fr; } .qside { position: static; }
}
@media (max-width: 720px) {
  .shell { grid-template-columns: 1fr; } .rail { display: none; }
  .bottom { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: var(--rail); z-index: 10; padding-bottom: env(safe-area-inset-bottom); overflow-x: auto; }
  .bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px; color: #c8d1d9; font-size: 10.5px; min-width: 52px; text-decoration: none; } .bottom a.on { color: var(--accent); }
  .bottom a[data-nav=files] { display: none; }
  .top { padding: 10px 12px; } .view { padding: 14px 12px 90px; } h1 { font-size: 20px; }
  .cols2, .cols3, .kpis, .row2, .row3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; } .kpi b { font-size: 19px; }
  .tbl table, .tbl tbody, .tbl tr, .tbl td { display: block; } .tbl thead { display: none; }
  .tbl tr { border-bottom: 1px solid var(--line); padding: 6px 0; } .tbl td { border: 0; padding: 3px 12px; } .tbl td.r { text-align: left; }
  .tbl td[data-l]:not([data-l=""])::before { content: attr(data-l) ": "; color: var(--muted); font-size: 12px; }
  .lines .line { grid-template-columns: 1fr 64px 80px 24px; } .line .ln { grid-column: 1 / -1; } .line .lu { display: none; } .line .la { grid-column: 3; grid-row: 2; display: none; }
  .filters { flex-wrap: wrap; } .filters input, .filters select { max-width: none; }
  .bars a { grid-template-columns: 110px 1fr 24px; }
  .outlook li { grid-template-columns: 1fr; gap: 4px; } .outlook small { text-align: left; }
  .sched li { grid-template-columns: 1fr auto; } .sched li .muted { grid-column: 1 / -1; } .sched .when { grid-column: 1 / -1; }
  .clitems li { flex-wrap: wrap; } .clitems select { width: auto; flex: 1; }
}

/* printing a quote: only the customer's copy */
@media print {
  body { background: #fff; } .shell > *:not(.main), .main > *:not(.view), .view > *:not(.printdoc), #toast, #modal { display: none !important; }
  .view { padding: 0; } .printdoc { display: block; } .printdoc h1 { font-size: 22px; } .printdoc table { margin: 16px 0; } .printdoc .tot { max-width: 320px; margin-left: auto; } .printdoc .sig { margin-top: 40px; }
}

/* drag and drop */
[data-drag] { cursor: grab; } .dragging-now, .dragging-now * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
@media (pointer: fine), (min-width: 761px) { [data-drag] { touch-action: none; } }
.drag-src { opacity: .35; }
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; margin: 0; list-style: none; background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.18); border-radius: 8px; opacity: .95; }
.col.drop-over { background: #fbeee4; outline: 2px dashed var(--accent); outline-offset: -2px; }
.cell.drop-over { outline: 3px solid var(--accent); outline-offset: -1px; }
[data-filedrop].drop-over { outline: 2px dashed var(--accent); outline-offset: 4px; background: #fdf6f0; }
.drop[data-filedrop].drop-over { outline: none; border-color: var(--accent); }
.sched li[data-drag] { border-radius: 6px; } .sched li[data-drag]:hover { background: #f6f7f9; }
.droptip { display: block; margin-top: 6px; }
.chipghost { padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--ink); border: 1px solid var(--accent); white-space: nowrap; }

/* field app */
.offline { background: #fff5e0; border: 1px solid #f0d49a; border-radius: var(--r); padding: 10px 12px; margin-bottom: 12px; font-size: 14px; }
.fwho { margin-bottom: 12px; max-width: 320px; }
.btn.block { display: block; width: 100%; text-align: center; margin-bottom: 10px; }
.stops { list-style: none; padding: 0; margin: 0 0 8px; }
.stopli { background: #fff; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; box-shadow: var(--sh); }
.stopli.drop-over { outline: 2px dashed var(--accent); }
.stop { display: flex; gap: 12px; padding: 12px; color: var(--ink); text-decoration: none !important; align-items: flex-start; }
.stop .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }
.stop .sbody { flex: 1; min-width: 0; } .stop .sbody b { display: block; } .stop .sbody span { display: block; font-size: 13.5px; color: var(--muted); }
.stop .sside { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.stopacts { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 12px 12px; align-items: center; } .card .stopacts { padding: 0; } .stopacts .grow { flex: 1; }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: #eef1f4; color: var(--ink2); white-space: nowrap; } .pill.ok { background: #e3f3e8; color: #23683b; }
.back { display: inline-block; margin-bottom: 6px; font-size: 14px; } .back::before { content: "\2039  "; }
.fitem { display: block; padding: 12px 0; border-top: 1px solid var(--line); } .fitem:first-of-type { border-top: 0; }
.fitem > span { display: block; font-weight: 600; margin-bottom: 6px; } .fitem small { font-weight: 400; color: var(--muted); }
.fitem input[type=text], .fitem input[type=number] { width: 100%; font-size: 16px; padding: 10px 12px; }
.fcheck { display: flex; gap: 12px; align-items: center; cursor: pointer; } .fcheck input { width: 26px; height: 26px; flex: none; accent-color: var(--accent); } .fcheck > span { margin: 0; flex: 1; }
.fitem.done > span::after { content: " \2713"; color: #23683b; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; } .thumb { width: 72px; height: 54px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; padding: 0; background: #f3f4f6; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; } .thumb.wait { opacity: .6; outline: 2px dashed #e0a43a; }
.sigpad { width: 100%; height: 200px; border: 2px dashed #c4ccd4; border-radius: var(--r); background: #fff; display: block; margin-top: 10px; }
.sigshow img { max-width: 220px; max-height: 80px; display: block; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.wrapup .btn { font-size: 16px; padding: 12px; }
.fline { padding: 6px 0; } .warn { color: #9a3b12; } .okline { color: #23683b; } .small { font-size: 13px; }
/* remakes */
.bars { width: 100%; border-collapse: collapse; font-size: 14px; } .bars td { padding: 5px 6px; border-bottom: 1px solid var(--line); } .bars .r { text-align: right; white-space: nowrap; }
.bars .barc { width: 30%; } .bars .barc span { display: block; height: 8px; border-radius: 4px; background: var(--accent); opacity: .75; }
.months { display: flex; gap: 8px; align-items: flex-end; } .mo { flex: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; font-size: 13px; }
.mo .mbar { width: 28px; background: var(--accent); opacity: .7; border-radius: 4px 4px 0 0; min-height: 2px; } .mo small { color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }

/* billing */
.kpi.warnk b { color: var(--red); } .late { color: var(--red); } .big { font-size: 22px; }
.btnrow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rtb li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .rtb li span { flex: 1; min-width: 160px; }
.filt { margin-bottom: 12px; }
.cols2.wideleft { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.aging td.late { color: var(--red); font-weight: 600; } .aging tr.b td { font-weight: 700; border-top: 2px solid var(--line); }
.docwrap { overflow: hidden; } .doc header { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; flex-wrap: wrap; }
.doc .dname { font-size: 17px; } .doc .dr { text-align: right; } .doc .dr h2 { margin: 0 0 4px; letter-spacing: .04em; } .doc .dsm { font-size: 12px; color: var(--muted); }
.doc .dlab { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .05em; margin-bottom: 3px; }
.doc .dbill { display: flex; justify-content: space-between; gap: 16px; margin: 14px 0; flex-wrap: wrap; } .doc .b { font-weight: 700; }
.doc .dbox { border: 1px solid var(--line); padding: 10px 14px; min-width: 170px; text-align: right; border-radius: 6px; } .doc .dbox b { font-size: 20px; } .doc .dbox.alert b { color: var(--red); }
.doct { width: 100%; border-collapse: collapse; margin: 8px 0 14px; font-size: 13.5px; table-layout: auto; } .doct th { text-align: left; font-size: 10.5px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding: 6px; }
.doct td { padding: 6px; border-bottom: 1px solid #eef0f2; overflow-wrap: anywhere; } .doct .r { text-align: right; white-space: nowrap; } .doct tr.b td { font-weight: 700; border-top: 1px solid var(--ink); } .doct.grid th, .doct.grid td { text-align: right; }
.invlines .row2 { margin-bottom: 6px; grid-template-columns: 1fr 120px; }
@media (max-width: 900px) { .cols2.wideleft { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .doct.grid th, .doct.grid td { font-size: 11px; padding: 4px 2px; } .doc .dr { text-align: left; } }
.morenav { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .morenav a { display: flex; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 600; }
/* shipping */
.shiplist li { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .shiplist li > span:not(.chip) { flex: 1; min-width: 180px; }
.shipline { display: grid; grid-template-columns: 1fr 90px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); } .shipline small { display: block; color: var(--muted); }
.subh { font-size: 16px; margin: 18px 0 8px; }
/* cash forecast */
.cashbars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; align-items: end; height: 190px; margin: 6px 0; } .cashbars.compact { height: 150px; }
.cw { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; text-decoration: none !important; color: var(--ink); min-width: 0; }
.cw b { font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; } .cw small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cw .stack { display: flex; flex-direction: column-reverse; width: 70%; max-width: 46px; min-height: 2px; border-radius: 4px 4px 0 0; overflow: hidden; margin: 4px 0; }
.cw .stack i { display: block; min-height: 0; } .stack .inv, .dot.inv { background: var(--accent); } .stack .tobe, .dot.tobe { background: #f0c9a8; }
.legend .dot { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 10px; vertical-align: -1px; } .legend .dot:first-child { margin-left: 0; }
.weekpick { margin: 10px 0; flex-wrap: wrap; } .why li { flex-direction: column; align-items: flex-start; gap: 2px; } .why small { color: var(--muted); }
.msgcard .switch { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; } .msgcard details { margin-top: 8px; } .msgcard summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.mailprev { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin-top: 12px; background: #fbfbfc; } .mailprev pre { white-space: pre-wrap; font: inherit; font-size: 14px; margin: 8px 0 0; }
@media (max-width: 600px) { .cashbars { gap: 3px; } .cw b { font-size: 9.5px; } .cw small { font-size: 9.5px; } }
/* setup */
.setup { max-width: 920px; margin: 0 auto; } .setuphead h1 { margin: 0 0 4px; }
.steps { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.steps a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-size: 13.5px; background: #fff; }
.steps span { flex: none; width: 22px; height: 22px; border-radius: 50%; background: #eef1f4; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.steps li.on a { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); } .steps li.done span { background: #e3f3e8; color: #23683b; }
.setupbody > h2 { margin: 6px 0 10px; } .setupnav { display: flex; gap: 8px; align-items: center; margin: 16px 0 8px; } .setupnav .grow, .btnrow .grow { flex: 1; }
.taxbox { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 8px; } .taxbox div { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; } .taxbox span { display: block; font-size: 12.5px; color: var(--muted); } .taxbox b { font-size: 20px; }
.pct { display: inline-flex; gap: 6px; align-items: center; } .pct input { width: 110px; }
.ptbl { width: 100%; border-collapse: collapse; margin-bottom: 8px; table-layout: fixed; } .ptbl th { text-align: left; font-size: 11.5px; color: var(--muted); text-transform: uppercase; padding: 4px; }
.ptbl th:nth-child(1) { width: 44px; } .ptbl th:nth-child(3) { width: 90px; } .ptbl th:nth-child(4), .ptbl th:nth-child(5) { width: 100px; } .ptbl td { padding: 3px 4px; } .ptbl input, .ptbl select { width: 100%; }
.msgrow { padding: 8px 0; border-bottom: 1px solid var(--line); } .msgrow small { display: block; margin-left: 26px; }
.setupcard .bar { height: 8px; background: #eef1f4; border-radius: 4px; overflow: hidden; margin: 6px 0 10px; } .setupcard .bar span { display: block; height: 100%; background: var(--accent); }
.lcustom { grid-column: 1 / -1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13px; padding: 2px 0 6px; } .lcustom select { width: auto; }
@media (max-width: 600px) { .taxbox { grid-template-columns: 1fr; } .ptbl th:nth-child(5), .ptbl td:nth-child(5) { display: none; } .ptbl th:nth-child(3) { width: 70px; } .ptbl th:nth-child(4) { width: 76px; } }
/* Ed */
.edbtn { position: fixed; right: 18px; bottom: 18px; z-index: 60; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 700; padding: 12px 18px; box-shadow: 0 8px 22px rgba(0,0,0,.22); cursor: pointer; font-size: 15px; }
.edbtn::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; } .edbtn.on { display: none; }
.ed { position: fixed; right: 18px; bottom: 18px; z-index: 61; width: 400px; max-width: calc(100vw - 24px); height: min(620px, calc(100vh - 100px)); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.22); display: flex; flex-direction: column; overflow: hidden; }
.ed[hidden] { display: none; } .ed header { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); } .ed header .seg { margin: 0; flex: 1; } .ed header .x { font-size: 22px; }
.edlog { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; } .ed header, .edin { flex: none; } .edmsg { margin: 0 0 10px; padding: 9px 12px; border-radius: 12px; font-size: 14.5px; line-height: 1.45; max-width: 92%; }
.edmsg.me { background: #f3e6dc; margin-left: auto; } .edmsg.bot { background: #f4f6f8; } .edmsg p { margin: 0 0 6px; } .edmsg ol, .edmsg ul { margin: 4px 0 6px; padding-left: 20px; } .edmsg.busy { color: var(--muted); }
.edlinks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .edlinks a { font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.edsug { display: flex; flex-direction: column; gap: 6px; } .chipbtn { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 14px; } .chipbtn:hover { border-color: var(--accent); }
.edin { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); } .edin textarea { flex: 1; resize: none; font-size: 15px; } 
@media (max-width: 760px) { .edbtn { bottom: 72px; right: 12px; padding: 10px 14px; } .ed { right: 6px; left: 6px; bottom: 64px; width: auto; height: calc(100vh - 140px); } }
/* help */
.helpq { width: 100%; font-size: 16px; padding: 12px 14px; margin-bottom: 14px; } .helpsecs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.manual { max-width: 760px; } .manual h1 { margin: 4px 0 12px; } .manual p, .manual li { font-size: 15.5px; line-height: 1.6; } .manual li { margin-bottom: 6px; }
.helphits li { flex-direction: column; align-items: flex-start; } .helphits small { color: var(--muted); }
.checklist { list-style: none; padding: 0; margin: 0; } .checklist li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); } .checklist li > a:first-of-type { flex: 1; }
.checklist .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 13px; color: #fff; } .checklist li.done .tick { background: #2f8a4c; border-color: #2f8a4c; } .checklist li.done > a:first-of-type { color: var(--muted); text-decoration: line-through; }

/* Today: the person's own cards, two across, wide ones full width; drag by the handle, hide with the x */
.tcards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 12px; align-items: start; }
.tcard { position: relative; min-width: 0; }
.tcard.wide { grid-column: 1 / -1; }
.tcard > .card, .tcard > .kpis { margin-bottom: 0; }
.tcard .tgrip { position: absolute; top: 6px; right: 34px; z-index: 2; cursor: grab; color: var(--muted); font-size: 13px; letter-spacing: -3px; padding: 4px 6px; border-radius: 6px; opacity: .75; touch-action: none; user-select: none; }
.tcard .tx { position: absolute; top: 4px; right: 6px; z-index: 2; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 6px; cursor: pointer; opacity: .45; }
.tcard:hover .tgrip, .tcard:hover .tx, .tcard .tx:focus { opacity: 1; }
.tcard .tgrip:hover, .tcard .tx:hover { background: #eef1f4; }
.tcard > .kpis + .tgrip, .tcard .kpis { padding-top: 0; }
.tcard.drop-over { outline: 2px dashed var(--accent); outline-offset: 3px; border-radius: var(--r); }
.tcard .cardh { padding-right: 52px; }
.tcard > .card > h2:first-child { padding-right: 52px; }
.cardlib { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.cardlib .chk { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.cardlib .chk small { display: block; color: var(--muted); }
.c { text-align: center; }
@media (max-width: 900px) { .tcards { grid-template-columns: minmax(0, 1fr); } .tcard .tgrip { display: none; } .tcard .tx { opacity: .8; } }
.top .mebtn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #24313d; color: #fff; font-weight: 600; font-size: 13px; text-decoration: none; flex: none; }
.railfoot a.who { color: inherit; text-decoration: none; display: block; } .railfoot a.who:hover { text-decoration: underline; }
.newmenu { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rolelist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.rolelist li { display: flex; justify-content: space-between; gap: 8px; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; }
.rolelist li span { color: var(--muted); }
@media (max-width: 760px) { .top [data-act=newMenu] { padding-left: 10px; padding-right: 10px; } }
.stagelist .sgrip { cursor: grab; color: var(--muted); letter-spacing: -3px; padding: 4px 6px; user-select: none; touch-action: none; flex: none; width: 22px; }
.stagelist .sgrip.off { cursor: default; }
.stagelist li.drop-over { outline: 2px dashed var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Field calendar */
.fcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-bottom: 10px; }
.fcw { font-size: 12px; color: var(--muted); text-align: center; padding: 2px 0; }
.fcd { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px; min-height: 92px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fcal.week .fcd { min-height: 300px; }
.fcd.out { opacity: .5; } .fcd.wkend { background: #f8f9fa; } .fcd.now { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.fcd.drop-over { outline: 2px dashed var(--accent); outline-offset: 1px; }
.fcdh { border: 0; background: none; text-align: left; font-weight: 600; font-size: 12px; padding: 2px 4px; cursor: pointer; border-radius: 4px; color: inherit; }
.fcdh:hover { background: #eef1f4; }
.fci { display: block; font-size: 12px; line-height: 1.25; padding: 3px 5px; border-radius: 5px; background: #eef3f8; color: inherit; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid #5b7fa3; }
.fci span { color: var(--muted); }
.fci.install { border-left-color: #2f8a57; background: #edf6f0; } .fci.template, .fci.measure { border-left-color: #b8771f; background: #fbf3e7; } .fci.deliver { border-left-color: #7a5bb0; background: #f3effa; }
.fcal.week .fci { white-space: normal; }
@media (max-width: 760px) {
  .fcal.week { grid-template-columns: minmax(0, 1fr); } .fcal.week .fcw { display: none; } .fcal.week .fcd { min-height: 0; }
  .fcal.month .fci { font-size: 0; padding: 0; height: 6px; border-left-width: 0; } .fcal.month .fcd { min-height: 56px; }
}
.daycheck { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; background: #f7faf8; margin: 8px 0 12px; }
.daycheck h3 { margin: 0 0 4px; }

/* Setup, the ExpressDesk way: steps down the side, one step at a time */
.sbar { height: 6px; background: #e6eaee; border-radius: 4px; overflow: hidden; margin: 0 0 16px; } .sbar span { display: block; height: 100%; background: var(--accent); }
.setup2 { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; align-items: start; }
.stepnav nav { display: flex; flex-direction: column; gap: 4px; }
.stepnav a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.stepnav a:hover { background: #eef1f4; } .stepnav a.on { background: var(--card); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.stepnav .sn { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #e6eaee; display: grid; place-items: center; font-size: 12px; font-weight: 700; margin-top: 1px; }
.stepnav a.done .sn { background: #e3f3e8; color: #23683b; }
.stepnav .st b { display: block; font-size: 14px; } .stepnav .st small { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.stepsmall { display: none; }
.stepbody { min-width: 0; } .stepbody > h2 { margin: 2px 0 6px; font-size: 22px; } .stepintro { color: var(--ink2, #3b4652); margin: 0 0 14px; max-width: 70ch; }
.stepbody .card.narrow { max-width: none; }
.gaps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 6px; }
.gaps li { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.gaps small { display: block; color: var(--muted); }
.implist { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.implist li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.implist .sn { width: 24px; height: 24px; border-radius: 50%; background: #e6eaee; display: grid; place-items: center; font-size: 12px; } .implist li.done .sn { background: #e3f3e8; color: #23683b; }
.implist small { display: block; color: var(--muted); }
.fine { font-size: 12px; color: #444; }
@media (max-width: 900px) {
  .setup2 { grid-template-columns: minmax(0, 1fr); } .stepbig { display: none !important; } .stepsmall { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
  .stepsmall summary { cursor: pointer; font-weight: 600; } .stepsmall summary small { color: var(--accent); font-weight: 600; margin-left: 6px; } .stepsmall nav { margin-top: 8px; }
  .implist li { grid-template-columns: 26px minmax(0, 1fr); } .implist li .btn, .implist li > .muted { grid-column: 2; justify-self: start; }
}
@media (max-width: 760px) { .setupnav { flex-wrap: wrap; } .setupnav .grow { flex-basis: 100%; height: 0; } .setupnav .btn { flex: 1 1 auto; } }

/* pipeline, orders, quotes */
.dcard.stalled { border-left: 3px solid #d08a1c; }
.dcard .small { font-size: 12px; } .colh i { font-style: normal; color: var(--muted); }
.warnline { background: #fdf4e4; border: 1px solid #f0d7a7; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; }
.fbars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; align-items: end; margin: 8px 0; }
.fbar { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; }
.fbar .fstack { position: relative; width: 70%; height: 140px; background: #f2f4f6; border-radius: 6px 6px 0 0; }
.fbar .fstack i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px 6px 0 0; } .fbar i.best { background: #e8d6c6; } .fbar i.wt { background: var(--accent); }
.fbar b { font-size: 13px; } .fbar span, .fbar small { font-size: 12px; color: var(--muted); }
.lopt { border: 1px solid var(--line); background: none; border-radius: 6px; font-size: 11px; padding: 2px 6px; color: var(--muted); cursor: pointer; } .lopt.on { background: #fdf4e4; border-color: #e7b866; color: #8a5a10; }
.docprev { max-height: 52vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 10px; background: #fff; }
@media (max-width: 760px) { .fbars { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.crow { display: grid; grid-template-columns: 1.2fr 1fr 1.4fr 1fr auto; gap: 6px; margin-bottom: 6px; align-items: center; }
@media (max-width: 760px) { .crow { grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding-bottom: 6px; } }

/* production: list, stations, calendar */
.savedv { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 8px; }
.savedv .chipbtn { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 2px 4px 2px 10px; background: var(--card); }
.savedv .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.bulkbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff7ee; border: 1px solid #efcfaa; border-radius: 8px; padding: 8px 10px; margin: 0 0 10px; }
.bulkbar select { width: auto; }
.jobtbl tr.picked td { background: #fff7ee; }
.sorth { font-weight: 600; color: inherit; text-transform: inherit; letter-spacing: inherit; font-size: inherit; } .sorth.on { color: var(--accent); }
.stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.stations .card { margin: 0; } .stnums { display: flex; gap: 14px; margin: 0 0 8px; color: var(--muted); } .stnums b { color: var(--ink); font-size: 18px; margin-right: 3px; } .stnums .latec b { color: #a3361f; }
.latec { color: #a3361f; font-weight: 600; } small.latec { display: block; }
.calnav { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; } .calnav b { font-size: 17px; }
@media (max-width: 760px) { .jobtbl th:nth-child(6), .jobtbl td:nth-child(6), .jobtbl th:nth-child(9), .jobtbl td:nth-child(9) { display: none; } }

/* team messages and the bell */
.top .bell { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; }
.top .bell i { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: #c2412d; color: #fff; font: 700 11px/18px system-ui, sans-serif; text-align: center; font-style: normal; }
.msgwrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.msgside { display: flex; flex-direction: column; gap: 2px; } .msgside h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 10px 0 4px; }
.msgside a { display: flex; justify-content: space-between; padding: 6px 10px; border-radius: 6px; color: var(--ink); text-decoration: none; } .msgside a:hover { background: #eef1f4; } .msgside a.on { background: var(--card); box-shadow: 0 0 0 1px var(--accent); font-weight: 600; }
.msgside a i, .bellch i { font-style: normal; background: #c2412d; color: #fff; border-radius: 9px; padding: 0 6px; font-size: 11px; line-height: 18px; }
.msgmain { display: flex; flex-direction: column; padding: 0; margin: 0; height: calc(100vh - 220px); min-height: 380px; }
.msglist { flex: 1; overflow: auto; padding: 12px 16px; }
.msgday { text-align: center; font-size: 12px; color: var(--muted); margin: 10px 0 6px; }
.msg { padding: 8px 10px; border-radius: 8px; margin: 2px 0; } .msg:hover { background: #f6f7f9; } .msg.atme { background: #fff7ee; border-left: 3px solid var(--accent); }
.msgh { display: flex; gap: 8px; align-items: baseline; font-size: 13px; } .msgh span { color: var(--muted); font-size: 12px; } .msgh .link { margin-left: auto; opacity: 0; } .msg:hover .msgh .link { opacity: 1; }
.msgt { white-space: normal; overflow-wrap: anywhere; } .ment { color: var(--accent); }
.rcards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rcard { display: flex; flex-direction: column; gap: 1px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 13px; min-width: 180px; max-width: 280px; }
.rcard span { color: var(--muted); font-size: 12px; } .rcard:hover { border-color: var(--accent); } .rcard.gone { color: var(--muted); }
.rchip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 2px 4px 2px 10px; font-size: 12px; } .rchip .x { border: 0; background: none; cursor: pointer; }
.msgform { border-top: 1px solid var(--line); padding: 10px 12px; } .msgform textarea { width: 100%; resize: vertical; } .msgacts { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.belli { display: block; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); margin-bottom: 6px; } .belli span { display: block; color: var(--ink2, #3b4652); } .belli small { color: var(--muted); }
.bellch { display: flex; flex-wrap: wrap; gap: 8px; } .bellch a { border: 1px solid var(--line); border-radius: 14px; padding: 4px 10px; text-decoration: none; color: var(--ink); }
@media (max-width: 760px) {
  .msgwrap { grid-template-columns: minmax(0, 1fr); } .msgside { flex-direction: row; flex-wrap: wrap; gap: 4px; } .msgside h3 { width: 100%; margin: 4px 0 0; } .msgside a { border: 1px solid var(--line); }
  .msgmain { height: auto; min-height: 0; } .msglist { max-height: 55vh; } .top .bell { width: 34px; height: 34px; }
}
@media (min-width: 761px) { .msgacts { padding-right: 96px; } }
@media (max-width: 1180px) { .cols2.fc2 { grid-template-columns: minmax(0, 1fr); } .tbl th.w1, .tbl td.w1 { display: none; } }
.rolecards { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; } .rolecards li { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 10px; align-items: baseline; } .rolecards li span { grid-column: 1 / -1; color: var(--muted); font-size: 13px; }
.rolecards li > .link { grid-row: 1; grid-column: 3; }
.accmx { width: 100%; border-collapse: collapse; margin: 6px 0 10px; } .accmx td, .accmx th { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; } .accmx td:nth-child(n+2), .accmx th:nth-child(n+2) { text-align: center; width: 70px; }
.btn.danger { color: #a3361f; }
.sech { font-size: 17px; margin: 18px 0 4px; } .cltabs { display: flex; justify-content: flex-end; gap: 8px; }
.clitems .fli { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .clitems .fli input[type=text], .clitems .fli > input:not([type]) { flex: 1 1 200px; } .num2 { width: 56px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; }
.chipchk { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 16px; padding: 4px 10px; cursor: pointer; font-size: 13px; background: var(--card); }
.chipchk input { margin: 0; } .chipchk:has(input:checked) { border-color: var(--accent); background: #fbf2ea; }
.addone { display: flex; gap: 6px; max-width: 360px; margin-bottom: 8px; }
.qprev table { width: 100%; border-collapse: collapse; } .qprev td, .qprev th { border-bottom: 1px solid var(--line); padding: 5px 6px; text-align: left; } .qprev .r { text-align: right; }
.qprev h1 { font-size: 20px; margin: 0; } .qprev h2 { font-size: 17px; }
.mailprev.big pre { white-space: pre-wrap; font: inherit; }
.qpics { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.qpic { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: flex; flex-direction: column; gap: 4px; } .qpic img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; } .qpic figcaption { font-size: 12px; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.qprintpic { margin: 10px 0; break-inside: avoid; } .qprintpic img { max-width: 100%; max-height: 360px; border: 1px solid #ccc; } .qprintpic figcaption { font-size: 11px; color: #555; }
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.folder { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 10px 40px; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b06a3b' stroke-width='1.8'%3E%3Cpath d='M3 6h6l2 2h10v11H3z'/%3E%3C/svg%3E") 10px 12px / 20px no-repeat; color: var(--ink); text-decoration: none; text-align: left; font: inherit; cursor: pointer; }
.folder span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .folder small { color: var(--muted); } .folder:hover { border-color: var(--accent); }
.fthumb { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 6px; }
.datetime { display: flex; gap: 6px; } .datetime select { width: auto; min-width: 0; } .fci .tm { font-style: normal; color: var(--accent); font-weight: 600; } .tmline { color: var(--accent); font-weight: 600; font-size: 13px; }
.switch.big { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.edhelp { background: #f3f6fa; border: 1px solid #d9e2ec; border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; } .edhelp ul { margin: 6px 0 0 18px; padding: 0; }
button.chipchk { font: inherit; font-size: 13px; } button.chipchk.on { border-color: var(--accent); background: #fbf2ea; }
.edchip { display: inline-block; font-size: 11px; color: #2f5a86; background: #e8f0f8; border-radius: 10px; padding: 1px 8px; }
/* messages, simpler: an inbox like texting */
.msgwrap { grid-template-columns: 280px minmax(0, 1fr); } .msgwrap.one { grid-template-columns: minmax(0, 1fr); }
.inbox { display: flex; flex-direction: column; gap: 4px; } .inbox .btn.block { margin-bottom: 6px; }
.th { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.th b { font-size: 14px; } .th span { grid-column: 1 / -1; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .th small { grid-column: 1 / -1; color: var(--muted); font-size: 11px; }
.th i { font-style: normal; background: #c2412d; color: #fff; border-radius: 9px; padding: 0 7px; font-size: 11px; line-height: 18px; align-self: center; }
.th:hover { background: #eef1f4; } .th.on { background: var(--card); border-color: var(--accent); } .th.un b { color: var(--ink); } .th.un span { color: var(--ink); font-weight: 600; }
.msgtop { display: flex; gap: 10px; align-items: baseline; padding: 10px 16px; border-bottom: 1px solid var(--line); } .msgtop b { font-size: 16px; }
.msgrow { display: flex; gap: 6px; align-items: flex-end; } .msgrow textarea { flex: 1; resize: none; min-height: 40px; } .msgform p { margin: 4px 0 0; }
.newto { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .newto .th { border-color: var(--line); }
@media (max-width: 760px) { .inbox .th { border-bottom: 1px solid var(--line); border-radius: 0; } .msgmain { height: calc(100vh - 210px); } .msglist { max-height: none; } .newto { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .msgform p { display: none; } .msgform { padding-bottom: 54px; } }
.courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.course { border: 1px solid var(--line); border-radius: 10px; padding: 10px; } .course h3 { margin: 8px 0 2px; font-size: 15px; } .course ol { margin: 6px 0 0 18px; padding: 0; }
.vthumb { aspect-ratio: 16 / 9; border-radius: 8px; background: #24313d; display: grid; place-items: center; color: #cfd6dd; font-size: 13px; overflow: hidden; } .vthumb video { width: 100%; height: 100%; } .vthumb.soon { background: repeating-linear-gradient(135deg, #2b3946, #2b3946 10px, #26323e 10px, #26323e 20px); }
/* a new message pops up on any screen */
#pops { position: fixed; right: 18px; bottom: 76px; z-index: 70; display: flex; flex-direction: column; gap: 8px; width: 340px; max-width: calc(100vw - 24px); }
.pop { background: var(--card); border: 1px solid var(--line); border-left: 4px solid #5b7fa3; border-radius: 10px; box-shadow: 0 10px 28px rgba(20, 30, 40, .18); padding: 10px 12px; animation: popin .22s ease-out; }
.pop.tome { border-left-color: var(--accent); } .pop.out { opacity: 0; transform: translateY(8px); transition: .25s; }
@keyframes popin { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.poph { display: flex; gap: 6px; align-items: baseline; } .poph span { color: var(--muted); font-size: 12px; } .poph .x { margin-left: auto; border: 0; background: none; font-size: 18px; color: var(--muted); cursor: pointer; }
.popt { margin: 4px 0 6px; overflow-wrap: anywhere; } .pop .rcard { min-width: 0; }
.poprep { display: flex; gap: 6px; margin-top: 6px; } .poprep input { flex: 1; min-width: 0; }
@media (max-width: 760px) { #pops { right: 12px; left: 12px; width: auto; bottom: 120px; } }
/* the left menu: departments that open like a dropdown */
.rail nav .ngroup { display: flex; flex-direction: column; }
.rail nav .ghead { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: #c8d1d9; font: inherit; font-weight: 500; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.rail nav .ghead:hover { background: var(--rail2); color: #fff; } .rail nav .ngroup.has > .ghead { color: #fff; }
.rail nav .ghead .chev { margin-left: auto; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; opacity: .7; }
.rail nav .ngroup.open .ghead .chev { transform: rotate(45deg); }
.rail nav .gitems { display: none; flex-direction: column; gap: 1px; padding: 2px 0 4px; } .rail nav .ngroup.open .gitems { display: flex; }
.rail nav a.sub { padding: 7px 10px 7px 40px; font-size: 14px; } .rail nav a.sub.pin { font-style: italic; color: #9fb0bf; }
.edprompt { padding: 12px 14px; } .edprompt .msgrow { margin-top: 6px; } .edprompt input { flex: 1; }
/* Messages: pick a team or a person from dropdowns; the same panel opens as a drawer on any screen */
.chat { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.msgpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); } .msgpick .fld { margin: 0; } .msgpick select { width: 100%; }
.msgmain .chat { height: 100%; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; background: var(--card); border-left: 1px solid var(--line); box-shadow: -12px 0 30px rgba(20, 30, 40, .14); z-index: 60; display: none; flex-direction: column; }
.drawer.open { display: flex; } .drawer .chat { flex: 1; } .drawer .msglist { flex: 1; overflow: auto; }
.drawh { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); } .drawh b { font-size: 16px; flex: 1; } .drawh .x { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
body.drawon #pops { right: 438px; }
@media (max-width: 760px) { .drawer { width: 100vw; border-left: 0; } .msgpick { grid-template-columns: 1fr; gap: 6px; padding: 8px 12px; } body.drawon #pops { right: 12px; } .drawer .msgform { padding-bottom: 12px; } }
/* inventory */
.stkrow { align-items: end; } .lowc { border-left: 4px solid #c98a1e; } b.neg { color: var(--red); }
/* the customer's signing page, and the same page over the app for signing in person */
.signov { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow: auto; }
.signpage { max-width: 820px; margin: 0 auto; padding: 18px 16px 60px; }
.signtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; } .signtop b { font-size: 18px; display: block; } .signtop span { color: var(--muted); font-size: 13px; }
.docspec h1 { font-size: 22px; margin: 0 0 2px; } .dsrows { display: grid; grid-template-columns: 150px 1fr; gap: 4px 12px; margin: 14px 0; } .dsrows dt { color: var(--muted); } .dsrows dd { margin: 0; }
.dsfoot { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; justify-content: end; margin: 10px 0 14px auto; max-width: 320px; } .dsfoot dt { text-align: right; color: var(--muted); } .dsfoot dd { margin: 0; text-align: right; }
.signbox .sigpad { width: 100%; max-width: 640px; height: auto; aspect-ratio: 640 / 220; border: 1px dashed var(--line); border-radius: 8px; background: #fff; display: block; }
.signbox .agree { margin: 10px 0; align-items: flex-start; } .signbox .acts { display: flex; gap: 8px; }
@media (max-width: 760px) { .dsrows { grid-template-columns: 1fr; } .dsrows dt { margin-top: 6px; } }
/* change orders, punch list */
.colist { list-style: none; margin: 0; padding: 0; } .coli { border-top: 1px solid var(--line); padding: 10px 0; } .coli:first-child { border-top: 0; }
.cohead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .coli .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.coline { display: grid; grid-template-columns: minmax(0, 3fr) 70px 70px 90px 30px; gap: 6px; margin-bottom: 6px; } .coline .x { border: 0; background: none; font-size: 20px; color: var(--muted); cursor: pointer; }
.cototal { text-align: right; }
.punch { list-style: none; margin: 0 0 8px; padding: 0; } .punch li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; } .punch li.done label { text-decoration: line-through; color: var(--muted); }
.punchadd { display: flex; gap: 6px; } .punchadd input { flex: 1; }
@media (max-width: 760px) { .coline { grid-template-columns: 1fr 60px 60px; } .coline [data-k=price] { grid-column: 1 / 3; } }
/* field: time on site, measuring */
.onsite { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); } .onsite small { flex-basis: 100%; }
.mrow { display: grid; grid-template-columns: minmax(0, 2fr) 80px auto 80px 80px; gap: 6px; align-items: center; margin-bottom: 6px; } .mrow b { text-align: right; font-size: 13px; }
.mtotal { font-size: 16px; margin: 10px 0; }
@media (max-width: 760px) { .mrow { grid-template-columns: 1fr 64px auto 64px; } .mrow b { grid-column: 1 / -1; text-align: left; } }
.rcard.rfile { text-align: left; cursor: pointer; font: inherit; max-width: 240px; } .rcard.rfile img { max-width: 220px; max-height: 140px; border-radius: 6px; margin-bottom: 4px; object-fit: cover; }
.msgrow .clip { display: inline-flex; align-items: center; cursor: pointer; }
/* shop floor and the owner's overview */
.whereline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); } .whereline select { max-width: 220px; }
.placebtns { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .placebtns .btn { padding: 16px 10px; font-size: 16px; }
.floorgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.fcol { background: #eef1f4; border-radius: 10px; padding: 10px; min-height: 90px; } .fcol h3 { margin: 0 0 8px; font-size: 14px; } .fcol h3 small { color: var(--muted); } .fcol.none { background: #f7f3ec; }
.fjob { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; color: var(--ink); text-decoration: none; font-size: 14px; } .fjob span { display: block; color: var(--muted); font-size: 12px; } .fjob.old { border-left: 4px solid #c98a1e; }
.ovtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ovtile { display: flex; flex-direction: column; gap: 2px; background: var(--card); border: 1px solid var(--line); border-top: 4px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--ink); text-decoration: none; }
.ovtile span { color: var(--muted); font-size: 13px; } .ovtile b { font-size: 24px; } .ovtile small { color: var(--muted); font-size: 12px; }
.ovtile.green { border-top-color: var(--green); } .ovtile.amber { border-top-color: #c98a1e; } .ovtile.red { border-top-color: var(--red); } .ovtile.red b { color: var(--red); }
.ovgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; align-items: start; } .ovgrid .card { margin: 0; }
@media (max-width: 760px) { .ovgrid { grid-template-columns: 1fr; } .ovtiles { grid-template-columns: 1fr 1fr; } .ovtile b { font-size: 20px; } }

/* ===== The look, after ExpressDesk: IBM Plex Sans, a deep rail with a color for each item, numbers on what needs
   action, the shop's logo in a card, and (html.vivid, on unless the shop turns it off) a color for each part of the
   app across the page header, the tiles, card titles, table heads and status chips. The shop's own color is --accent. */
:root { font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; --sec: #2563eb; --sec2: #06b6d4; }
.rail { background: linear-gradient(180deg, #121821 0%, #17222f 55%, #1c1a22 100%); }
.rail nav { overflow-y: auto; flex: 1; padding: 6px 10px 10px; }
.rail nav a { padding: 8px 10px; font-size: 14px; } .rail nav a svg { flex: none; }
.rail nav .badge, .rail nav .ghead .badge { margin-left: auto; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; font: 700 11px/19px "IBM Plex Sans", sans-serif; font-style: normal; text-align: center; color: #fff; background: linear-gradient(135deg, #ff7a18, #ff3d71); box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }
.rail nav .ghead { margin-top: 10px; padding: 6px 10px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8193a6; }
.rail nav .ghead .chev { width: 6px; height: 6px; } .rail nav .ghead .badge { margin-right: 8px; letter-spacing: 0; }
.rail nav a.sub { padding: 7px 10px; font-size: 14px; } .rail nav .gitems { padding-bottom: 2px; }
.brand.logocard { margin: 14px 12px 8px; padding: 10px; background: #fff; border-radius: 10px; display: flex; justify-content: center; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.brand.logocard img { max-width: 100%; max-height: 56px; object-fit: contain; display: block; }
.railfoot .powered { display: block; color: #7d8b99; font-size: 11px; margin-bottom: 8px; } .railfoot .powered b { color: #c8d1d9; }
/* each menu item's own color */
.rail nav [data-nav="today"] { --h: #60a5fa; } .rail nav [data-nav="overview"] { --h: #a5b4fc; } .rail nav [data-nav="pipeline"] { --h: #a78bfa; } .rail nav [data-nav="quotes"] { --h: #818cf8; }
.rail nav [data-nav="orders"] { --h: #f472b6; } .rail nav [data-nav="customers"] { --h: #38bdf8; } .rail nav [data-nav="jobs"] { --h: #fbbf24; } .rail nav [data-nav="floor"] { --h: #fb923c; }
.rail nav [data-nav="schedule"] { --h: #22d3ee; } .rail nav [data-nav="inventory"] { --h: #a3e635; } .rail nav [data-nav="purchasing"] { --h: #4ade80; } .rail nav [data-nav="slabs"] { --h: #e2e8f0; }
.rail nav [data-nav="remakes"] { --h: #fb7185; } .rail nav [data-nav="shipping"] { --h: #fdba74; } .rail nav [data-nav="field"] { --h: #2dd4bf; } .rail nav [data-nav="field/cal"] { --h: #22d3ee; }
.rail nav [data-nav="field/measure"] { --h: #67e8f9; } .rail nav [data-nav="billing"] { --h: #34d399; } .rail nav [data-nav="invoices"] { --h: #86efac; } .rail nav [data-nav="payments"] { --h: #4ade80; }
.rail nav [data-nav="forecast"] { --h: #5eead4; } .rail nav [data-nav="costing"] { --h: #fcd34d; } .rail nav [data-nav="marketing"] { --h: #f472b6; } .rail nav [data-nav="site"] { --h: #c084fc; }
.rail nav [data-nav="compliance"] { --h: #fca5a5; } .rail nav [data-nav="messages"] { --h: #f9a8d4; } .rail nav [data-nav="files"] { --h: #cbd5e1; } .rail nav [data-nav="help"] { --h: #67e8f9; }
.rail nav [data-nav="training"] { --h: #7dd3fc; } .rail nav [data-nav="settings"] { --h: #cbd5e1; } .rail nav [data-nav="setup"] { --h: #7dd3fc; }
.rail nav a[data-nav] svg { color: var(--h, currentColor); }
.rail nav a[data-nav].on { background: linear-gradient(90deg, color-mix(in srgb, var(--h, #fff) 28%, transparent), color-mix(in srgb, var(--h, #fff) 6%, transparent)); box-shadow: inset 3px 0 0 var(--h, var(--accent)); color: #fff; }
.rail nav a[data-nav]:hover { background: color-mix(in srgb, var(--h, #fff) 14%, transparent); }
/* each part of the app's color */
html[data-sec="today"] { --sec: #2563eb; --sec2: #06b6d4; } html[data-sec="overview"] { --sec: #6366f1; --sec2: #db2777; } html[data-sec="sell"] { --sec: #7c3aed; --sec2: #db2777; }
html[data-sec="production"] { --sec: #d97706; --sec2: #ea580c; } html[data-sec="install"] { --sec: #0d9488; --sec2: #0891b2; } html[data-sec="money"] { --sec: #059669; --sec2: #0891b2; }
html[data-sec="marketing"] { --sec: #db2777; --sec2: #f59e0b; } html[data-sec="compliance"] { --sec: #dc2626; --sec2: #7c3aed; } html[data-sec="messages"] { --sec: #db2777; --sec2: #7c3aed; }
html[data-sec="files"] { --sec: #475569; --sec2: #0891b2; } html[data-sec="help"] { --sec: #0891b2; --sec2: #7c3aed; } html[data-sec="settings"] { --sec: #475569; --sec2: #4f46e5; } html[data-sec="setup"] { --sec: #0284c7; --sec2: #16a34a; }
html.vivid .main { background: radial-gradient(900px 320px at 100% 0, color-mix(in srgb, var(--sec) 7%, transparent), transparent 70%), var(--bg); }
html.vivid .vhead { margin: -20px -24px 18px; padding: 18px 24px 14px; background: linear-gradient(90deg, color-mix(in srgb, var(--sec) 12%, var(--card)) 0%, color-mix(in srgb, var(--sec2) 5%, var(--card)) 55%, var(--card) 100%); border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, var(--sec), var(--sec2), transparent) 1; }
html.vivid .vhead h1::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 10px; vertical-align: 2px; background: linear-gradient(135deg, var(--sec), var(--sec2)); box-shadow: 0 0 12px color-mix(in srgb, var(--sec) 60%, transparent); }
html.vivid .card { box-shadow: 0 1px 2px rgba(20, 26, 40, .06), 0 4px 14px rgba(20, 26, 40, .06); }
html.vivid .card > h2::before, html.vivid .card .cardh h2::before, html.vivid .card > .cardh > h2::before { content: ""; display: inline-block; width: 4px; height: 15px; border-radius: 2px; margin-right: 9px; vertical-align: -2px; background: linear-gradient(180deg, var(--sec), var(--sec2)); }
html.vivid .kpis > :nth-child(6n+1), html.vivid .ovtiles > :nth-child(6n+1) { --t: #2563eb; } html.vivid .kpis > :nth-child(6n+2), html.vivid .ovtiles > :nth-child(6n+2) { --t: #7c3aed; }
html.vivid .kpis > :nth-child(6n+3), html.vivid .ovtiles > :nth-child(6n+3) { --t: #0891b2; } html.vivid .kpis > :nth-child(6n+4), html.vivid .ovtiles > :nth-child(6n+4) { --t: #ea580c; }
html.vivid .kpis > :nth-child(6n+5), html.vivid .ovtiles > :nth-child(6n+5) { --t: #db2777; } html.vivid .kpis > :nth-child(6n+6), html.vivid .ovtiles > :nth-child(6n+6) { --t: #16a34a; }
html.vivid .kpi, html.vivid .ovtile { border-top: 3px solid var(--t, var(--sec)); background: linear-gradient(180deg, color-mix(in srgb, var(--t, var(--sec)) 9%, var(--card)), var(--card) 75%); }
html.vivid .kpi b, html.vivid .ovtile b { color: color-mix(in srgb, var(--t, var(--sec)) 80%, var(--ink)); }
html.vivid .ovtile.red { border-top-color: var(--red); } html.vivid .ovtile.amber { border-top-color: #c98a1e; } html.vivid .ovtile.green { border-top-color: var(--green); }
html.vivid .kpi:hover, html.vivid .ovtile:hover { transform: translateY(-1px); box-shadow: 0 8px 20px color-mix(in srgb, var(--t, var(--sec)) 22%, transparent); }
html.vivid th { background: color-mix(in srgb, var(--sec) 8%, #fafbfc); color: color-mix(in srgb, var(--sec) 60%, var(--ink)); border-bottom: 2px solid color-mix(in srgb, var(--sec) 30%, transparent); }
html.vivid tr[data-href]:hover td { background: color-mix(in srgb, var(--sec) 7%, transparent); }
html.vivid .chip { border: 1px solid color-mix(in srgb, currentColor 25%, transparent); } html.vivid .chip::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; margin-right: 5px; vertical-align: 1px; }
html.vivid .btn.primary { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #7c3aed)); border-color: transparent; box-shadow: 0 2px 10px color-mix(in srgb, var(--accent) 35%, transparent); } html.vivid .btn.primary:hover { filter: brightness(1.07); }
html.vivid .tabs a.on { color: var(--sec); box-shadow: inset 0 -2px 0 var(--sec); }
@media (max-width: 760px) { html.vivid .vhead { margin: -14px -12px 14px; padding: 14px 12px; } }
/* Settings: Your look */
.lookrow { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; } .logobox { width: 200px; height: 80px; border: 1px dashed var(--line); border-radius: 10px; display: grid; place-items: center; background: #fff; padding: 8px; }
.logobox img { max-width: 100%; max-height: 64px; object-fit: contain; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; } .sw { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.sw.on { box-shadow: 0 0 0 2px var(--ink); } .sw.custom { display: grid; place-items: center; overflow: hidden; background: conic-gradient(red, yellow, lime, cyan, blue, magenta, red); } .sw.custom input { opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.signtop .signlogo { max-height: 52px; max-width: 180px; object-fit: contain; margin-right: 12px; } .signtop { justify-content: flex-start; } .signtop > div { flex: 1; } .signpage .btn.primary { background: var(--accent); border-color: var(--accent); }
.rail nav .ghead .badge + .chev { margin-left: 8px; }
html[data-sec="grow"] { --sec: #db2777; --sec2: #f59e0b; }
#modal { position: relative; z-index: 95; }
/* the customer's page and the shop's website: no app around them, the shop's logo and color */
.pubpage, .pubsite { max-width: 880px; margin: 0 auto; padding: 16px 16px 40px; } .pubsite { max-width: 1080px; }
.pubtop { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0 14px; } .publogo { max-height: 56px; max-width: 220px; object-fit: contain; } .pubname { font-size: 20px; }
.pubh1 { font-size: 26px; margin: 8px 0 2px; } .pubpage .card { margin-top: 14px; }
.pubrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); } .pubrow:first-of-type { border-top: 0; }
.pubwait { border-left: 4px solid var(--accent); }
.pubjob { padding: 10px 0; border-top: 1px solid var(--line); } .pubjob:first-of-type { border-top: 0; }
ol.steps { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; padding: 0; margin: 10px 0 0; }
ol.steps li { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); padding-right: 18px; position: relative; }
ol.steps li i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); background: #fff; flex: none; }
ol.steps li.done i { background: var(--accent); border-color: var(--accent); } ol.steps li.done { color: var(--ink2); }
ol.steps li.now i { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); } ol.steps li.now { color: var(--ink); font-weight: 700; }
ol.steps li small { color: var(--muted); font-weight: 400; }
.pubmsgs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; } .pubmsg { background: #f4f5f7; border-radius: 10px; padding: 8px 12px; max-width: 85%; } .pubmsg.me { align-self: flex-end; background: color-mix(in srgb, var(--accent) 12%, #fff); } .pubmsg p { margin: 4px 0 0; }
.pubsend { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.pubfoot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 12.5px; padding: 24px 0 8px; border-top: 1px solid var(--line); margin-top: 24px; }
.pubpage .btn.primary, .pubsite .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.hero { border-radius: 14px; padding: 64px 36px; color: #fff; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 85%, #000), color-mix(in srgb, var(--accent) 55%, #1d2733)); background-size: cover; background-position: center; margin-bottom: 8px; }
.hero h1 { font-size: 34px; line-height: 1.15; max-width: 640px; margin: 0 0 8px; color: #fff; } .hero p { font-size: 17px; opacity: .92; margin: 0 0 18px; } .hero .btn.primary { background: #fff; color: var(--ink); border-color: #fff; }
.pubsec { padding: 26px 0 6px; } .pubsec h2 { font-size: 22px; margin-bottom: 12px; }
.svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; } .svc { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 14px; background: var(--card); font-weight: 600; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; } .gal figure { margin: 0; } .gal img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; } .gal figcaption { font-size: 13px; color: var(--muted); margin-top: 4px; }
.rems { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; } .rem { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--card); } .rem img, .remph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 6px; background: repeating-linear-gradient(45deg, #eceff2, #eceff2 8px, #f6f7f9 8px, #f6f7f9 16px); } .rem small { display: block; color: var(--muted); }
.leadf { max-width: 640px; } .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
@media (max-width: 760px) { .hero { padding: 40px 20px; } .hero h1 { font-size: 26px; } }
/* Website editor */
.slugrow { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } .slugrow span { padding: 8px 0 8px 10px; color: var(--muted); white-space: nowrap; font-size: 13px; } .slugrow input { border: 0; padding-left: 2px; }
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; margin-bottom: 12px; } .pick { position: relative; cursor: pointer; } .pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; display: block; border: 3px solid transparent; }
.pick input { position: absolute; top: 6px; left: 6px; } .pick:has(input:checked) img { border-color: var(--accent); }
.chk.big { font-size: 16px; margin-bottom: 12px; } ol.steps2 { padding-left: 20px; } ol.steps2 li { margin-bottom: 6px; }
/* slabs and remnants */
.thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 8px; } .fit { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; } .fit input { width: 80px; }
a.rem { color: var(--ink); text-decoration: none; display: block; } a.rem:hover { border-color: var(--accent); } .slabph { width: 100%; border-radius: 8px; display: block; } .remph.big { aspect-ratio: 16 / 9; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 900px) { .cols2 { grid-template-columns: 1fr; } }
b.ok { color: var(--green); }
/* the drawing tool */
.drawov { background: #f4f5f7; } .drawwrap { display: flex; flex-direction: column; height: 100vh; }
.drawtop { display: flex; align-items: center; gap: 10px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; } .drawadd { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.drawmain { flex: 1; display: grid; grid-template-columns: 1fr 320px; min-height: 0; } .drawcanvas { position: relative; padding: 12px; min-height: 0; display: flex; flex-direction: column; }
.drawsvg { width: 100%; flex: 1; min-height: 300px; background: #fff; border: 1px solid var(--line); border-radius: 10px; touch-action: none; user-select: none; }
.drawsvg .pcf { fill: #eef0f3; stroke: #b9c1ca; stroke-width: .4; cursor: move; } .drawsvg .pc.on .pcf { fill: color-mix(in srgb, var(--accent) 14%, #fff); stroke: var(--accent); }
.drawsvg .hole { fill: #fff; stroke: #8a94a0; stroke-width: .5; } .drawsvg .sd { cursor: pointer; } .drawsvg .sd:hover { stroke-opacity: .6; }
.drawsvg text { text-anchor: middle; pointer-events: none; } .drawsvg .pct { font-size: 4.2px; font-weight: 600; fill: #1b232b; } .drawsvg .pcs { font-size: 3.4px; fill: #5a616e; }
.drawsvg.small { min-height: 0; height: 180px; flex: none; border: 0; } .drawsvg.small .pcf { cursor: default; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); padding: 8px 2px 0; } .legend i { display: inline-block; width: 22px; height: 0; border-top-width: 3px; margin-right: 6px; vertical-align: middle; }
.drawside { background: var(--card); border-left: 1px solid var(--line); overflow-y: auto; padding: 12px 14px; } .dp { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; } .dp h3 { margin-top: 0; }
.cuts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; } .cuts label { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; } .cuts input { width: 56px; }
.dtot b { color: var(--ink); } .drawempty { flex: 1; display: grid; place-items: center; border: 2px dashed var(--line); border-radius: 10px; color: var(--muted); }
@media (max-width: 900px) { .drawmain { grid-template-columns: 1fr; grid-template-rows: minmax(300px, 1fr) auto; } .drawside { border-left: 0; border-top: 1px solid var(--line); max-height: 45vh; } }
.drawsvg .sdhit { cursor: pointer; } .drawsvg .sdhit:hover { stroke: rgba(0, 0, 0, .08); }

/* job photos: a grid with no limit, and a viewer to step through them */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.pcell { aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; padding: 0; background: #f3f4f6; cursor: zoom-in; }
.pcell img { width: 100%; height: 100%; object-fit: cover; display: block; } .pcell span { font-size: 12px; padding: 4px; }
.phov { position: fixed; inset: 0; z-index: 400; background: rgba(10, 12, 16, .92); display: flex; align-items: center; justify-content: center; }
.phov img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.phbar { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; color: #fff; gap: 10px; }
.phbar small { opacity: .75; margin-left: 6px; } .phbar .btn { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; margin-left: 6px; }
.phnav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); color: #fff; border: 0; font-size: 40px; width: 52px; height: 72px; border-radius: 8px; cursor: pointer; }
.phnav.prev { left: 12px; } .phnav.next { right: 12px; }
.arrange { list-style: none; padding: 0; margin: 0; } .arrange li { display: flex; justify-content: space-between; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--line); } .arrange li .btn { margin-left: 4px; }

/* Today, dense (the default): three across on a wide screen, each card folds to its title, and a long card scrolls
   inside itself instead of pushing everything down. "Show in full" turns the caps off. */
.tcards.dense { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.tcards.dense .tcard > .card { max-height: 360px; overflow: auto; padding-top: 12px; padding-bottom: 12px; }
.tcards.dense .tcard > .card h2 { font-size: 15px; } .tcards.dense .tcard .mini li { padding: 4px 0; }
.tcards.dense .tcard.wide > .card { max-height: 300px; }
.tcards.dense .attn .atts { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 18px; }
.tcards.dense .att { padding: 6px 0 6px 10px; margin: 4px 0; } .tcards.dense .att .why { margin: 2px 0 4px; font-size: 13px; } .tcards.dense .att .why li { margin: 0; }
.tcards.dense .att .acts { margin-top: 2px; } .tcards.dense .att .acts .btn { padding: 2px 8px; font-size: 12px; }
.tcard .tmin { position: absolute; top: 4px; right: 62px; z-index: 2; border: 0; background: none; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 6px; cursor: pointer; opacity: .6; }
.tcard:hover .tmin { opacity: 1; } .tcard .tmin:hover { background: #eef1f4; }
.tcard.shut .tgrip { right: 90px; } .tcard .tgrip { right: 90px; }
.tcard.shut > .card { padding-top: 10px; padding-bottom: 10px; } .tcard.shut > .card h2 { margin: 0; font-size: 14px; color: var(--muted); }
.tcard .cardh { padding-right: 110px; } .tcard > .card > h2:first-child { padding-right: 110px; }
@media (max-width: 900px) { .tcards.dense { grid-template-columns: minmax(0, 1fr); } .tcard .tmin { opacity: .8; } }
/* every window's close button: big enough to find and tap */
.mhead .x { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink, #1f2937); font-size: 22px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mhead .x:hover { background: #f3f4f6; color: var(--red); }
.vhead { flex-wrap: wrap; } .backbtn { flex-basis: 100%; align-self: flex-start; border: 0; background: none; color: var(--muted); font-size: 13px; padding: 0 0 6px; cursor: pointer; text-align: left; width: max-content; }
.backbtn:hover { color: var(--accent); text-decoration: underline; }
.edq { background: #fff8ec; border: 1px solid #f0d9b5; border-radius: 8px; padding: 10px 12px; } .edq ul { margin: 4px 0 8px 18px; padding: 0; } .drawadd .edsk { border-color: var(--accent); color: var(--accent); }
.fgh { margin: 14px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
/* Measure */
.mpiece { border: 1px solid var(--line); border-radius: 8px; padding: 8px; margin-bottom: 8px; }
.mp1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto minmax(0, 1fr) 80px 28px; gap: 6px; align-items: center; } .mp1 b { font-size: 13px; text-align: right; }
.mp2 { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 6px; font-size: 13px; color: var(--muted); } .mp2 label { display: inline-flex; gap: 4px; align-items: center; } .mp2 select { padding: 2px 4px; } .mp2.wide input { width: 100%; }
.mtot { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; } .mtot .num2 { width: 48px; }
@media (max-width: 760px) { .mp1 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto minmax(0, 1fr); } .mp1 input:first-child { grid-column: 1 / -1; } .mp1 b { grid-column: 1 / 3; text-align: left; } }
/* the shop's website: layouts, the shop's colors and font, reviews and questions */
.pubsite { font-family: var(--sitefont, inherit); } .pubsite h1, .pubsite h2 { color: var(--siteink, inherit); font-family: var(--sitefont, inherit); }
.pubsite .svc { display: flex; gap: 10px; align-items: center; } .pubsite .svc svg { color: var(--accent); flex: none; }
.pubsite.lay-bold .hero { padding: 110px 40px; border-radius: 0; margin-left: -20px; margin-right: -20px; } .pubsite.lay-bold .hero h1 { font-size: 46px; text-transform: uppercase; letter-spacing: .02em; }
.pubsite.lay-simple .hero, .hero.simple { background: none; color: var(--siteink, var(--ink)); text-align: center; padding: 48px 20px 24px; } .hero.simple h1 { color: var(--siteink, var(--ink)); margin: 0 auto 8px; } .hero.simple .btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.pubsite.lay-simple .pubsec { text-align: center; } .pubsite.lay-simple .leadf { margin: 0 auto; text-align: left; }
.pubsite.lay-showcase .gal { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.pubsite.dark { background: #14171c; color: #e8eaed; } .pubsite.dark .svc, .pubsite.dark .rem, .pubsite.dark .rev { background: #1d2128; border-color: #2c313a; } .pubsite.dark h2 { color: #fff; }
.revs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; } .rev { margin: 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--card); } .rev p { margin: 0 0 8px; font-style: italic; } .rev cite { color: var(--muted); font-style: normal; font-size: 13px; }
.faq { border-bottom: 1px solid var(--line); padding: 10px 0; } .faq summary { cursor: pointer; font-weight: 600; } .faq p { margin: 8px 0 0; }
@media (max-width: 760px) { .pubsite.lay-bold .hero { padding: 60px 20px; } .pubsite.lay-bold .hero h1 { font-size: 30px; } }
/* website editor */
.lays { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; } .lay { border: 2px solid var(--line); border-radius: 10px; padding: 8px; cursor: pointer; text-align: center; font-size: 13px; background: var(--card); } .lay.on { border-color: var(--accent); }
.lay i { display: block; height: 46px; border-radius: 6px; margin-bottom: 6px; background: linear-gradient(#cfd5dd 40%, #eef1f4 40%); } .lay.bold i { background: linear-gradient(#5b6573 60%, #eef1f4 60%); } .lay.simple i { background: linear-gradient(#fff 50%, #eef1f4 50%); border: 1px solid var(--line); } .lay.showcase i { background: repeating-linear-gradient(90deg, #cfd5dd 0 30%, #fff 30% 34%); }
.secs { list-style: none; padding: 0; margin: 0; } .secs li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line); } .secs li span.grow { flex: 1; }
.galord { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; } .galord .gp { position: relative; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; } .galord .gp img { width: 100%; height: 100%; object-fit: cover; display: block; } .galord .gp .x { position: absolute; top: 2px; right: 2px; background: #fff; border-radius: 50%; width: 24px; height: 24px; }
.galord .gp.drop-over { outline: 3px solid var(--accent); } .galdrop { border: 2px dashed var(--line); border-radius: 10px; padding: 14px; text-align: center; color: var(--muted); margin-top: 8px; } .galdrop.drop-over { border-color: var(--accent); color: var(--accent); }
@media (max-width: 760px) { .lays { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svcrow { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 3px 0; } .svcrow select { width: 120px; }
.setupvid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--bg2, #f6f7f9); border-radius: 10px; padding: 10px; margin-bottom: 12px; } .setupvid video, .setupvid .vthumb { width: 100%; aspect-ratio: 16 / 9; border-radius: 8px; } .setupvid p { margin: 4px 0 8px; }
@media (max-width: 760px) { .setupvid { grid-template-columns: minmax(0, 1fr); } }
.conns li small { display: block; color: var(--muted); }
.samplec { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-left: 4px solid var(--accent); } .samplec .btnrow { display: flex; gap: 8px; } .samplec select { max-width: 420px; }
.railfoot .whorow { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .railfoot .whorow .who { margin-bottom: 0; }
.themebtn { border: 1px solid var(--rail2); background: transparent; color: #c8d1d9; border-radius: 8px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; } .themebtn:hover { background: var(--rail2); color: #fff; }
html.darkmode .edbtn { background: #2b333d; color: #fff; }
/* CRM */
.touch { display: inline-flex; gap: 4px; vertical-align: middle; } .tbtn { border: 1px solid var(--line); background: var(--card); color: var(--ink2); border-radius: 6px; width: 28px; height: 26px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; } .tbtn:hover { color: var(--accent); border-color: var(--accent); }
.calls { list-style: none; margin: 0; padding: 0; } .calls > li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); } .calls .why { margin: 4px 0 0 18px; padding: 0; color: var(--ink2); }
.tierb { display: inline-block; border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: 11px; color: var(--muted); }
@media (max-width: 760px) { .calls > li { flex-direction: column; } }
/* the radar */
.rlist { list-style: none; margin: 0; padding: 0; } .rline { border-left: 3px solid var(--line); padding: 8px 0 8px 12px; margin: 6px 0; } .rline.slip { border-left-color: var(--red); } .rline.hot { border-left-color: var(--green); }
.rhead { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .rval { font-weight: 700; white-space: nowrap; } .rline .why { margin: 4px 0 4px 16px; padding: 0; color: var(--ink2); } .opener { font-style: italic; color: var(--muted); margin: 4px 0 6px; }
.rlane.slip h2 { color: var(--red); } .rlane.hot h2 { color: var(--green); } h3.slipc { color: var(--red); margin-top: 0; } h3.hotc { color: var(--green); margin-top: 0; }
.radar.mini2 .rline { padding: 4px 0 4px 10px; margin: 4px 0; }
.banklink { border-left: 4px solid var(--accent); } .banklink label.link { cursor: pointer; text-decoration: underline; color: var(--blue); }
/* Teach Ed */
.edrecs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; margin: 10px 0; } .edrec { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; text-decoration: none; color: inherit; display: block; } .edrec b { display: block; font-size: 20px; } .edrec span { font-size: 12px; color: var(--muted); } .edrec.thin { border-style: dashed; } .edrec.thin b { color: var(--muted); }
.edq1 { display: block; margin: 0 0 10px; } .edq1 > span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 3px; } .edq1.has > span::after { content: " \2713"; color: var(--green); } .edq1 textarea, .teach textarea { width: 100%; }
.factrow { display: flex; gap: 8px; align-items: center; margin: 4px 0; } .factrow input:not([type=checkbox]) { flex: 1; }
.eddoc { border-top: 1px solid var(--line); padding: 8px 0; } .eddoc summary { cursor: pointer; } .eddoc ul { margin: 6px 0 0 18px; padding: 0; }
.edfix { display: block; margin-top: 6px; border: 0; background: none; padding: 0; font-size: 11px; color: var(--muted); cursor: pointer; text-decoration: underline; }
/* number boxes are always something to click: a link, a filter for the list under them, or what's behind the number */
button.kpi { font: inherit; text-align: left; cursor: pointer; width: 100%; } a.kpi, button.kpi { transition: border-color .12s, transform .12s; } a.kpi:hover, button.kpi:hover { border-color: var(--accent, #94a3b8); transform: translateY(-1px); }
.kpi.on { outline: 2px solid var(--accent, #94a3b8); outline-offset: -2px; } .kpil li > a, .kpil li > button.link { text-align: left; flex: 1; color: inherit; text-decoration: none; } .kpil li > a:hover b, .kpil li > button.link:hover b { text-decoration: underline; } .kpil li > span:last-child { white-space: nowrap; text-align: right; }
/* What we use */
.useq { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; margin-bottom: 8px; } .usegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 22px; } .usegrid h4 { margin: 8px 0 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.usegrid .chk span small { display: block; color: var(--muted); font-weight: 400; } @media (max-width: 900px) { .usegrid, .useq { grid-template-columns: 1fr; } }
/* charts: one series, one color; quiet grid; a tip on every mark */
:root { --chart: #2a78d6; } html.darkmode { --chart: #3987e5; }
.chart { width: 100%; height: auto; display: block; } .cgrid { stroke: var(--line); stroke-width: 1; } .cbase { stroke: var(--muted); stroke-width: 1; opacity: .5; } .caxis { fill: var(--muted); font-size: 10.5px; } .cval { fill: var(--ink); font-size: 11.5px; font-weight: 700; }
.cbar { fill: var(--chart); } .cline { fill: none; stroke: var(--chart); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; } .carea { fill: var(--chart); opacity: .1; } .cdot { fill: var(--chart); opacity: 0; } .cend { fill: var(--chart); stroke: var(--card); stroke-width: 2; }
.chit { fill: transparent; } .cmark:hover .cbar { opacity: .75; } .cmark:hover .cdot { opacity: 1; stroke: var(--card); stroke-width: 2; } .cmark:hover .chit { fill: var(--ink); opacity: .04; }
.crows { display: grid; gap: 7px; } .crow { display: grid; grid-template-columns: minmax(90px, 30%) 1fr auto; gap: 10px; align-items: center; font-size: 14px; } .cname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cname a { color: inherit; }
.ctrack { height: 10px; } .ctrack i { display: block; height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; min-width: 3px; } .cnum { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; } .crow:hover .ctrack i { opacity: .75; }
.charttip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--card); font-size: 12.5px; padding: 5px 9px; border-radius: 6px; max-width: 320px; box-shadow: var(--sh); }
.clockc .placebtns { margin-bottom: 10px; } .clockstrip { margin-bottom: 14px; }
.holdsh { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; } .holdsh h3 { margin: 0; }
/* How this page works */
.howto { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent, #94a3b8); border-radius: var(--r); padding: 10px 14px; margin: 0 0 14px; font-size: 14px; }
.howh { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .howh span { display: flex; gap: 12px; align-items: center; font-size: 13px; } .howto ul { margin: 6px 0 0 18px; padding: 0; } .howto li { margin: 2px 0; color: var(--muted); } .howto li b { color: var(--ink); }
@media print { .howto, .tipbtn { display: none; } }
/* drawings and approvals, and the cut list */
.aprow > span:last-child { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; } .apcard .warnline, .apcard .okline { margin-bottom: 8px; }
.cutlist { list-style: none; margin: 0; padding: 0; } .cutrow { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); } .cutrow:first-child { border-top: 0; }
.cutn { font-size: 20px; font-weight: 700; color: var(--muted); text-align: center; } .cutrow.held .cutn { color: var(--red); } .cutacts { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; } .cutacts select { max-width: 150px; }
@media (max-width: 760px) { .cutrow { grid-template-columns: 28px 1fr; } .cutacts { grid-column: 1 / -1; justify-content: flex-start; } } @media print { .cutacts { display: none; } }
.piecesc select { max-width: 170px; } .paycard h3 { margin: 0 0 6px; }
.bomcard h3 { margin: 12px 0 4px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; } .tblwrap { max-height: 46vh; overflow: auto; }
.sovrow { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; margin-bottom: 6px; align-items: center; } .kpis.k3 { grid-template-columns: repeat(3, 1fr); } .paytbl { width: 100%; border-collapse: collapse; } .paytbl th, .paytbl td { padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left; } .paytbl .r { text-align: right; } .num3 { width: 84px; text-align: right; }
.cabprev { margin-top: 8px; } .cabpair { display: grid; grid-template-columns: 1fr 70px auto; gap: 6px; margin-bottom: 5px; align-items: center; } .cabpair input:nth-child(2) { text-align: right; }
.progrow { display: grid; grid-template-columns: 1.3fr 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 6px; } .progrow label { white-space: nowrap; font-size: 13px; } .lotgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; margin-bottom: 8px; } .lot { border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; text-decoration: none; color: inherit; display: block; } .lot span, .lot small { display: block; font-size: 12px; color: var(--muted); } .lot.done { border-color: var(--green); } @media (max-width: 760px) { .progrow { grid-template-columns: 1fr; } }
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; } .dcol { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; } .dcol.warn { border-color: var(--amber, #d97706); } .dcol h3 { margin: 0; } .dstop { border-top: 1px solid var(--line); padding: 8px 0; } .dstop a { color: inherit; text-decoration: none; } .dstop small { display: block; color: var(--muted); } .dctl { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; } .dctl select { max-width: 112px; font-size: 12.5px; } @media print { .dctl { display: none; } }
.locpick { width: 100%; margin: 4px 0 6px; font-size: 12.5px; padding: 4px 6px; border-radius: 6px; background: rgba(255,255,255,.08); color: inherit; border: 1px solid rgba(255,255,255,.18); } .locpick option { color: #111; } .locline { margin: 0 0 12px; display: flex; gap: 8px; align-items: center; }
.pubappr .pubacts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; } .pubchg { margin-top: 8px; } .pubchg textarea { width: 100%; margin-bottom: 6px; }
.edsline { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin: 10px 0 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; } .edsfound select { max-width: 280px; }
.offerdays { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; } .pubdays { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; } .collectc .pubrow { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); } .collectc .pubrow:first-of-type { border-top: 0; }
.paycols { display: grid; gap: 14px; } .paycols > div { min-width: 0; }
.specrow { align-items: flex-start; margin: 3px 0; } .specrow span { flex: 1; }
.lot.wait { border-color: var(--amber, #d97706); background: rgba(217, 119, 6, .06); } .lotwait { color: var(--amber, #b45309); font-weight: 600; } .pubtbl { overflow-x: auto; } .pubtbl table { width: 100%; border-collapse: collapse; } .pubtbl th, .pubtbl td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; } .pubtbl .r { text-align: right; }

/* one piece of the site on its own, inside a page on the shop's own website; the slab yard; Ask about it */
.pubsite.embed { max-width: none; padding: 4px 6px 20px; } .pubsite.embed .pubsec:first-of-type { padding-top: 6px; } .embbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 6px 0 10px; border-bottom: 1px dashed var(--line); margin-bottom: 8px; }
.rem[hidden] { display: none; } .rem .btn { margin-top: 6px; } .rem .cnt { color: var(--ink); font-weight: 600; } .pubsite.dark .rem .cnt { color: #e8eaed; }
.yardq { width: 100%; max-width: 360px; margin: 0 0 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: var(--card); color: inherit; }
.piece { border-top: 1px solid var(--line); padding: 12px 0 4px; } .piece h3 { margin: 0; } .piece input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
html.embedded, html.embedded body { background: transparent; }
/* sheets and offcuts on a job */
.offhint { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; } .offhint p { margin: 0 0 6px; } .yline { margin: 10px 0 0; }
.nestt input { width: 100%; } .nestt td { padding: 4px 6px; } .nestt td:nth-child(n+2) { width: 130px; }
/* website editor: a real color swatch, the top photo with its preview, and a clear place to upload photos */
input[type=color] { width: 72px; height: 40px; padding: 3px; cursor: pointer; }
.heropick { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 10px; } .heropick > img, .heropick > .remph { width: 240px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin: 0; } .heropick > div:last-child { flex: 1 1 260px; display: grid; gap: 10px; justify-items: start; } .heropick .field, .heropick label.f { width: 100%; }
.galdrop { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; } [data-sitepicks] details { margin-top: 10px; } [data-sitepicks] .btn { margin-bottom: 12px; }
.galord .nopics { grid-column: 1 / -1; margin: 0; }
/* program orders by email */
.omail { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 12px; } .omail h3 { margin: 0 0 6px; } .omaddr { font-family: ui-monospace, Menlo, Consolas, monospace; user-select: all; } .omlist .link { text-align: left; }
.mailbox { margin-top: 10px; } .mailtxt { white-space: pre-wrap; word-break: break-word; background: var(--card2, #f7f8f9); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; max-height: 320px; overflow: auto; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; }
.progrow { grid-template-columns: 1.3fr 1fr auto auto; } .progrow .progfrom { grid-column: 1 / -1; margin-bottom: 8px; }
.booklists { display: grid; gap: 4px; margin: 6px 0 10px; }
/* support: tickets, support access, and a notice from us */
.tickets li { display: block; } .tickets small { display: block; color: var(--muted); }
.supacc { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.thread { display: grid; gap: 8px; margin: 10px 0; } .tmsg { background: #f4f5f6; border-radius: 10px; padding: 8px 12px; } .tmsg.sup { background: #fbf2ea; } .tmsg p { margin: 2px 0 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; } .edsup { margin: 6px 0 0; text-align: center; }
.notice { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; background: #e6eef8; border: 1px solid #c5d6ec; border-radius: 10px; padding: 10px 14px; margin-bottom: 14px; }
.notice.warn { background: #fbefd9; border-color: #ecd3a0; } .notice.good { background: #e5f2ea; border-color: #bcdcc8; } .notice .x { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--ink2); }
/* the Admin console (admin.js) */
.adm { min-height: 100vh; background: var(--bg, #f4f5f6); }
.admtop { display: flex; align-items: center; gap: 14px; background: var(--rail); color: #fff; padding: 10px 20px; position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.admname { font-size: 17px; white-space: nowrap; } .admname span { color: #d9814a; font-weight: 600; }
.admtop nav { display: flex; gap: 2px; flex-wrap: wrap; } .admtop nav a { color: #cfd3d8; padding: 7px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 14px; } .admtop nav a.on, .admtop nav a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.admtop .grow { flex: 1; } .admwho { color: #cfd3d8; font-size: 13px; } .admtop .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .3); background: none; }
#admview { max-width: 1280px; margin: 0 auto; padding: 22px 20px 60px; }
.admgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 16px; margin: 16px 0; align-items: start; } .admgrid .card { margin: 0; }
.adm .mini li { display: block; } .adm .mini li small { display: block; color: var(--muted); } .adm .mini li .chip { margin-left: 4px; } .adm .kpi small { display: block; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0 0 12px; } .facts dt { font-size: 12px; color: var(--muted); font-weight: 600; } .facts dd { margin: 0; font-weight: 600; }
.admdot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: #a9b0b8; } .admdot.green { background: #2e8b57; } .admdot.amber { background: #d99a1c; } .admdot.red { background: #c0392b; }
.admhealth li { padding: 8px 0; } #admnotes { width: 100%; }
@media (max-width: 700px) { .admgrid { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } }

/* what's holding a job up, and the trail of its moves (holds.js) */
.holdc.on { border-left: 4px solid var(--red); } .holdadd { margin-left: 8px; }
.holds { list-style: none; margin: 0 0 8px; padding: 0; } .hold { padding: 10px 0; border-bottom: 1px solid var(--line); } .hold:last-child { border: 0; }
.hold .holdh b { font-size: 15px; overflow-wrap: anywhere; } .hold small { display: block; color: var(--ink2); font-size: 13px; margin-top: 3px; } .hold small.muted { color: var(--muted); }
.hold.late > small:first-of-type { color: var(--red); font-weight: 600; } .hold .acts { margin-top: 8px; }
.hnote { margin: 5px 0; padding: 6px 10px; background: var(--bg); border-radius: 8px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; } .hnote small { color: var(--muted); }
.heldbefore { margin-top: 8px; } .heldbefore summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.dcard.held { border-left: 3px solid var(--red); } .dcard .heldline { color: var(--red); margin-top: 3px; overflow-wrap: anywhere; } .dcard .heldline .chip { font-size: 11px; }
.moves { list-style: none; margin: 0 0 8px; padding: 0; } .mv { display: grid; grid-template-columns: 132px 1fr; gap: 12px; padding: 9px 0 9px 14px; border-left: 3px solid var(--line); position: relative; }
.mv::before { content: ""; position: absolute; left: -7px; top: 14px; width: 11px; height: 11px; border-radius: 50%; background: var(--card); border: 2px solid var(--muted); }
.mv.move::before { border-color: var(--accent); background: var(--accent); } .mv.move.back::before { background: #d9a441; border-color: #d9a441; }
.mv.k-hold::before { border-color: var(--red); background: var(--red); } .mv.k-clear::before { border-color: var(--green); background: var(--green); }
.mv time { color: var(--muted); font-size: 13px; padding-top: 1px; } .mv b { font-size: 14.5px; overflow-wrap: anywhere; } .mv small { display: block; color: var(--ink2); font-size: 13px; } .mv.k-path b { font-weight: 600; color: var(--ink2); } .stagefor { margin: 10px 0 0; }
.mv .link.small { font-size: 13px; }
@media (max-width: 640px) { .mv { grid-template-columns: 1fr; gap: 2px; } .holdadd { margin: 8px 0 0; display: block; } }

/* dark mode (made by tools/darkcss.py from the rules above) */
html.darkmode { --ink: #e6e9ed; --ink2: #c3c9d0; --muted: #98a2ad; --line: #323941; --bg: #15191e; --card: #1d2228; --blue: #6ea8ff; --green: #5cc28a; --red: #ff7a7a; color-scheme: dark; }
html.darkmode body { background: var(--bg); color: var(--ink); }
html.darkmode img, html.darkmode video { filter: brightness(.92); }
html.darkmode .btn { background: #1a1a1a }
html.darkmode .btn:hover { border-color: #4f575e }
html.darkmode input, html.darkmode select, html.darkmode textarea { background: #1a1a1a }
html.darkmode input:disabled, html.darkmode select:disabled, html.darkmode textarea:disabled { background: #1d2022 }
html.darkmode .seg span, html.darkmode .seg button { background: #1a1a1a }
html.darkmode .seg input:checked + span, html.darkmode .seg button.on { background: #36271c }
html.darkmode .chip { background: #24272a }
html.darkmode .chip.blue { background: #1c2734 }
html.darkmode .chip.green { background: #233329 }
html.darkmode .chip.red { background: #321c1c }
html.darkmode .chip.grey { background: #232528 }
html.darkmode .warn { background: #382b14; border: 1px solid #765c35 }
html.darkmode .demobar, html.darkmode .trialbar { background: #332717; color: #ddcab1; border-bottom: 1px solid #765c35 }
html.darkmode .qres { background: #1a1a1a }
html.darkmode th { background: #191d21 }
html.darkmode tr[data-href]:hover td { background: #191d21 }
html.darkmode .kpi:hover { border-color: #4f575e }
html.darkmode .tasks .check { border: 2px solid #575e65; background: #1a1a1a }
html.darkmode .tasks .check:hover { background: #233329 }
html.darkmode .chip.amber { background: #403219; color: #decaaa }
html.darkmode .attn { border-color: #69513c }
html.darkmode .cell { background: linear-gradient(to top, #2c3c32 var(--p), #1a1a1a var(--p)) }
html.darkmode .cell.busy { background: linear-gradient(to top, #5f4d28 var(--p), #1a1a1a var(--p)); color: #ddcab1; border-color: #7f6739 }
html.darkmode .cell.over { background: #421f1f; border-color: #6f3c3c }
html.darkmode .wk { background: #222528 }
html.darkmode .hint.busy { color: #decaaa }
html.darkmode .col { background: #24282c }
html.darkmode .dcard { background: #1a1a1a }
html.darkmode .stepper button, html.darkmode .stepper span { background: #1f2125 }
html.darkmode .stepper i { background: #2d3237 }
html.darkmode .stepper .past button, html.darkmode .stepper .past span { background: #1f2b24 }
html.darkmode .stepper .now span { background: #332717 }
html.darkmode .steps i { background: #2d3237 }
html.darkmode .drop { border: 2px dashed #4f575e }
html.darkmode .mcard { background: #1a1a1a }
html.darkmode .gcard { background: #1a1a1a }
html.darkmode .google { background: #1a1a1a }
html.darkmode .drag-ghost { background: #1a1a1a }
html.darkmode .col.drop-over { background: #382517 }
html.darkmode [data-filedrop].drop-over { background: #2f2013 }
html.darkmode .sched li[data-drag]:hover { background: #1d1f24 }
html.darkmode .offline { background: #3d2f12; border: 1px solid #806836 }
html.darkmode .stopli { background: #1a1a1a }
html.darkmode .pill { background: #22262b }
html.darkmode .pill.ok { background: #223528; color: #b9d7c3 }
html.darkmode .fitem.done > span::after { color: #b9d7c3 }
html.darkmode .thumb { background: #202226 }
html.darkmode .sigpad { border: 2px dashed #4f575e; background: #1a1a1a }
html.darkmode .warn { color: #dbb5a4 }
html.darkmode .okline { color: #b9d7c3 }
html.darkmode .stack .tobe, html.darkmode .dot.tobe { background: #63452c }
html.darkmode .mailprev { background: #1a1a1f }
html.darkmode .steps a { background: #1a1a1a }
html.darkmode .steps span { background: #22262b }
html.darkmode .steps li.done span { background: #223528; color: #b9d7c3 }
html.darkmode .setupcard .bar { background: #22262b }
html.darkmode .ed { background: #1a1a1a }
html.darkmode .edmsg.me { background: #3b2d22 }
html.darkmode .edmsg.bot { background: #1d2226 }
html.darkmode .edlinks a { background: #1a1a1a }
html.darkmode .chipbtn { background: #1a1a1a }
html.darkmode .tcard .tgrip:hover, html.darkmode .tcard .tx:hover { background: #22262b }
html.darkmode .fcd.wkend { background: #1c1f22 }
html.darkmode .fcdh:hover { background: #22262b }
html.darkmode .fci { background: #1c242d }
html.darkmode .fci.install { background: #1f2d23 }
html.darkmode .fci.template, html.darkmode .fci.measure { background: #352917 }
html.darkmode .fci.deliver { background: #20192d }
html.darkmode .daycheck { background: #1b231e }
html.darkmode .sbar { background: #282c31 }
html.darkmode .stepnav a:hover { background: #22262b }
html.darkmode .stepnav .sn { background: #282c31 }
html.darkmode .stepnav a.done .sn { background: #223528; color: #b9d7c3 }
html.darkmode .stepintro { color: var(--ink2, #c2c7cc) }
html.darkmode .implist .sn { background: #282c31 }
html.darkmode .implist li.done .sn { background: #223528; color: #b9d7c3 }
html.darkmode .fine { color: #c9c9c9 }
html.darkmode .warnline { background: #392c14; border: 1px solid #796235 }
html.darkmode .fbar .fstack { background: #202327 }
html.darkmode .fbar i.best { background: #4c3d2f }
html.darkmode .lopt.on { background: #392c14; border-color: #997941; color: #decaaa }
html.darkmode .bulkbar { background: #33220f; border: 1px solid #775936 }
html.darkmode .jobtbl tr.picked td { background: #33220f }
html.darkmode .stnums .latec b { color: #d4a9a0 }
html.darkmode .latec { color: #d4a9a0 }
html.darkmode .msgside a:hover { background: #22262b }
html.darkmode .msg:hover { background: #1d1f24 }
html.darkmode .msg.atme { background: #33220f }
html.darkmode .belli span { color: var(--ink2, #c2c7cc) }
html.darkmode .btn.danger { color: #d4a9a0 }
html.darkmode .chipchk:has(input:checked) { background: #322417 }
html.darkmode .qprintpic img { border: 1px solid #575757 }
html.darkmode .qprintpic figcaption { color: #c0c0c0 }
html.darkmode .edhelp { background: #1a2029; border: 1px solid #3c4857 }
html.darkmode button.chipchk.on { background: #322417 }
html.darkmode .edchip { color: #acbdcf; background: #1c2732 }
html.darkmode .th:hover { background: #22262b }
html.darkmode .signbox .sigpad { background: #1a1a1a }
html.darkmode .fcol { background: #22262b }
html.darkmode .fcol.none { background: #2e281d }
html.darkmode .rail nav .badge, html.darkmode .rail nav .ghead .badge { background: linear-gradient(135deg, #ff7a18, #af3354) }
html.darkmode .brand.logocard { background: #1a1a1a }
html.darkmode .rail nav a[data-nav].on { background: linear-gradient(90deg, color-mix(in srgb, var(--h, #1a1a1a) 28%, transparent), color-mix(in srgb, var(--h, #1a1a1a) 6%, transparent)) }
html.darkmode .rail nav a[data-nav]:hover { background: color-mix(in srgb, var(--h, #1a1a1a) 14%, transparent) }
html.darkmode.vivid th { background: color-mix(in srgb, var(--sec) 8%, #191d21) }
html.darkmode .logobox { background: #1a1a1a }
html.darkmode .sw { border: 2px solid #383838 }
html.darkmode ol.steps li i { background: #1a1a1a }
html.darkmode .pubmsg { background: #1f2125 }
html.darkmode .pubmsg.me { background: color-mix(in srgb, var(--accent) 12%, #1a1a1a) }
html.darkmode .hero .btn.primary { background: #1a1a1a; border-color: #383838 }
html.darkmode .rem img, html.darkmode .remph { background: repeating-linear-gradient(45deg, #24282c, #24282c 8px, #1d1f24 8px, #1d1f24 16px) }
html.darkmode .drawov { background: #1f2125 }
html.darkmode .drawsvg { background: #1a1a1a }
html.darkmode .drawsvg .pcf { stroke: #565d64 }
html.darkmode .drawsvg .pct { fill: #d4d9de }
html.darkmode .drawsvg .pcs { fill: #b5b7bc }
html.darkmode .pcell { background: #202226 }
html.darkmode .tcard .tmin:hover { background: #22262b }
html.darkmode .mhead .x { background: #1a1a1a; color: var(--ink, #cfd4dc) }
html.darkmode .mhead .x:hover { background: #202226 }
html.darkmode .edq { background: #35270f; border: 1px solid #715935 }
html.darkmode .lay i { background: linear-gradient(#393e44 40%, #22262b 40%) }
html.darkmode .lay.bold i { background: linear-gradient(#5b6573 60%, #22262b 60%) }
html.darkmode .lay.simple i { background: linear-gradient(#1a1a1a 50%, #22262b 50%) }
html.darkmode .lay.showcase i { background: repeating-linear-gradient(90deg, #393e44 0 30%, #1a1a1a 30% 34%) }
html.darkmode .galord .gp .x { background: #1a1a1a }
html.darkmode .setupvid { background: var(--bg2, #1d1f24) }
html.darkmode a.kpi:hover, html.darkmode button.kpi:hover { border-color: var(--accent, #616b7a) }
html.darkmode .kpi.on { outline: 2px solid var(--accent, #616b7a) }
html.darkmode .howto { border-left: 3px solid var(--accent, #616b7a) }
html.darkmode .locpick option { color: #e2e2e2 }
html.darkmode .lotwait { color: var(--amber, #ddb79a) }
html.darkmode .mailtxt { background: var(--card2, #1d2022) }
html.darkmode .tmsg { background: #212224 }
html.darkmode .tmsg.sup { background: #322417 }
html.darkmode .notice { background: #1c2734; border: 1px solid #394c65 }
html.darkmode .notice.warn { background: #403219; border-color: #7b6639 }
html.darkmode .notice.good { background: #233329; border-color: #486653 }
html.darkmode .adm { background: var(--bg, #212224) }
html.darkmode .admdot { background: #5b6065 }