/* M&D Job Sites — one look on every screen: white cards on a cool light ground, deep navy for the brand and
   primary actions, orange only for "urgent / needs you". Phone first, big screens second, dark mode built in. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/fonts/pjs-normal-latin.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 400 800; font-display: swap; src: url(/fonts/pjs-italic-latin.woff2) format("woff2"); }
:root {
  --bg: #f3f5f8; --card: #ffffff; --ink: #0f172a; --muted: #64748b; --line: #e2e8f0; --soft: #f1f5f9; --soft2: #e9edf3;
  --brand: #0f2a5f; --brand-deep: #0a1f47; --brand-soft: #e6ecf7; --brand-ink: #0f2a5f;
  --acc: #e85d12; --acc-bg: #fff0e6; --acc-ink: #b84609;
  --ok: #16a34a; --ok-bg: #e7f7ec; --blue: #2563eb; --blue-bg: #e8effd; --amber: #b45309; --amber-bg: #fff4e0; --purple: #7c3aed; --purple-bg: #f1eafd; --red: #dc2626; --red-bg: #fdeceb;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 2px 10px rgba(15,23,42,.04); --r: 14px; --tabs: 62px;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1220; --card: #141c2e; --ink: #eef2f8; --muted: #94a3b8; --line: #263247; --soft: #1a2336; --soft2: #202b40;
    --brand: #1e40af; --brand-deep: #1a3796; --brand-soft: #1b2a4d; --brand-ink: #9db4ff; --acc: #f97316; --acc-bg: #3a2210; --acc-ink: #fdba74;
    --ok: #4ade80; --ok-bg: #12301d; --blue: #8fb0ff; --blue-bg: #17213d; --amber: #fbbf24; --amber-bg: #33270b; --purple: #c4b5fd; --purple-bg: #2a1f4a; --red: #ff7b70; --red-bg: #3a1716; --shadow: none; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15.5px/1.45 "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0; }
h2 { font-size: 17px; margin: 0 0 10px; display: flex; align-items: baseline; flex-wrap: wrap; }
h2 small, h3 small { font-weight: 500; font-size: 13px; margin-left: 6px; }
h2 .see { margin-left: auto; font-size: 13px; font-weight: 600; }
h3 { font-size: 15px; margin: 14px 0 8px; }
.card h3:first-child { margin-top: 0; }
p { margin: 0 0 10px; }
img { max-width: 100%; }
.muted { color: var(--muted); } .small { font-size: 13px; } .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.nojs .js-only { display: none !important; } .js .nojs-only { display: none !important; }
.ic { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: -5px; } .ic.flip { transform: rotate(180deg); }
.eyebrow { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 30; background: var(--brand); color: #fff; padding-top: env(safe-area-inset-top); }
.bar-in { display: flex; align-items: center; min-height: 56px; padding: 0 12px; gap: 8px; max-width: 1500px; margin: 0 auto; }
.bar-brand { text-decoration: none; color: #fff; }
.mark { display: inline-block; font-weight: 800; font-size: 18px; letter-spacing: -.02em; background: #fff; color: var(--brand-deep); padding: 4px 9px; border-radius: 8px; }
.bar-back { display: inline-flex; align-items: center; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 6px 8px 2px; margin-left: -4px; }
.bar-back .ic { width: 22px; height: 22px; }
.bar-title { flex: 1 1 auto; min-width: 0; }
.bar-title h1 { font-size: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-sub { font-size: 12px; opacity: .85; }
.bar-r { display: flex; align-items: center; gap: 6px; }
.bar-r .btn { min-height: 36px; margin: 0; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; }
.bar-r .btn-main { background: #fff; color: var(--brand-deep); border-color: #fff; }
.bar-bell { position: relative; color: #fff; display: inline-flex; padding: 8px; }
.bar-bell .ic { width: 24px; height: 24px; }
.bar-bell b { position: absolute; top: 2px; right: 0; background: var(--acc); color: #fff; font-size: 10.5px; min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.bar-me { display: inline-flex; }
.bar-me .av { background: #fff; color: var(--brand-deep); }
.cartbtn b { margin-left: 6px; background: var(--acc); color: #fff; border-radius: 999px; padding: 0 7px; font-size: 12px; }

/* side rail (big screens) + bottom tabs (phones) */
.rail { display: none; }
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tabs); text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabs a .ic { width: 24px; height: 24px; }
.tabs a.on { color: var(--brand-ink); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 14px 14px calc(var(--tabs) + 24px + env(safe-area-inset-bottom)); }
.wrap.wide { max-width: 1500px; }
@media (min-width: 1000px) {
  .tabs { display: none; }
  .rail { display: block; position: fixed; top: 56px; bottom: 0; left: 0; width: 220px; background: var(--card); border-right: 1px solid var(--line); overflow-y: auto; z-index: 20; }
  .rail-in { padding: 12px 10px; }
  .rail a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; margin-bottom: 2px; }
  .rail a .ic { color: var(--muted); }
  .rail a.on { background: var(--brand-soft); color: var(--brand-ink); } .rail a.on .ic { color: var(--brand-ink); }
  .rail a:hover { background: var(--soft); }
  .wrap { margin-left: 220px; padding: 20px 24px 60px; max-width: none; }
  .wrap:not(.wide) > * { max-width: 1120px; }
  .is-login .wrap { margin-left: 0; }
}

/* cards, lists, flashes */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 10px 0; box-shadow: var(--shadow); }
.card.narrow { max-width: 440px; margin: 30px auto; } .card.narrowish { max-width: 680px; } .card.form { max-width: 860px; }
.card.empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.card.list, .card.plist { padding: 0; overflow: hidden; }
.list .li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 11px 14px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.list .li:first-child { border-top: 0; }
a.li:hover { background: var(--soft); }
.li-main { flex: 1 1 200px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.li-sub { flex: 1 1 100%; font-size: 12.5px; color: var(--muted); }
.li-act { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.li.unread .li-main { font-weight: 700; } .li.unread::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); }
.flash { border-radius: 10px; padding: 11px 14px; margin: 10px 0; border: 1px solid transparent; }
.flash ul { margin: 6px 0 0; padding-left: 20px; }
.flash-ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(22,163,74,.25); font-weight: 600; }
.flash-err { background: var(--red-bg); color: var(--ink); border-color: rgba(220,38,38,.3); } .flash-err b { color: var(--red); }
.flash-warn { background: var(--amber-bg); color: var(--ink); border-color: rgba(180,83,9,.25); }
.sec { margin: 18px 0 8px; } .sec-h { margin: 18px 0 8px; }
.cols { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1fr 1fr; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.15; text-align: center; vertical-align: middle; }
.btn:hover { border-color: var(--muted); }
.btn-main { background: var(--brand); border-color: var(--brand-deep); color: #fff; } .btn-main:hover { background: var(--brand-deep); }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.btn.quiet { color: var(--muted); }
.btn-sm { min-height: 34px; padding: 5px 11px; font-size: 13.5px; border-radius: 8px; } .btn-sm .ic { width: 17px; height: 17px; }
.btn.big { min-height: 52px; font-size: 16.5px; padding: 12px 20px; border-radius: 12px; }
.btn.wide { display: flex; width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.btn-icon { width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font: inherit; font-weight: 700; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.btn-icon.on { background: var(--acc-bg); border-color: var(--acc); color: var(--acc-ink); } .btn-icon.danger { color: var(--red); }
.link { background: none; border: 0; padding: 0; color: var(--brand-ink); font: inherit; text-decoration: underline; cursor: pointer; }
form.inline { display: inline; margin: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 4px; }
.actions.big { gap: 10px; margin: 14px 0; } .actions.big .card { flex: 1 1 100%; }
.submitbar { margin: 16px 0 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; } .row.wrap > .field { flex: 1 1 140px; } .row .field { margin-bottom: 8px; }
.card.row { align-items: center; } .card.row > input:not(.qty) { flex: 1 1 200px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.seg-form { display: inline-flex; gap: 4px; }
.tick { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); background: var(--card); color: transparent; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto; padding: 0; }
.tick.on { background: var(--ok); border-color: var(--ok); color: #fff; } .tick.ro { cursor: default; } .tick .ic { width: 20px; height: 20px; }

/* forms */
input, select, textarea { width: 100%; min-height: 44px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; }
textarea { min-height: 70px; line-height: 1.4; } select { -webkit-appearance: none; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; margin: 0; }
input.qty { width: 72px; text-align: center; font-weight: 700; }
.field { margin-bottom: 12px; } .field > label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px; } .checks.cols3 { max-height: 220px; overflow: auto; padding: 2px; }
.check { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; font-size: 14px; }
.check:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.radios { display: flex; gap: 8px; }
.radio { flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 6px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; text-align: center; }
.radio:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.radio.p-1h:has(input:checked) { background: var(--acc-bg); border-color: var(--acc); color: var(--acc-ink); }
.js .radio input { position: absolute; opacity: 0; pointer-events: none; }
.file { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px dashed var(--muted); border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); max-width: 100%; }
.file input { position: absolute; opacity: 0; width: 1px; height: 1px; } .file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.search { display: flex; gap: 6px; flex: 1 1 220px; max-width: 480px; } .search input { flex: 1; min-height: 40px; }
details.adder > summary { list-style: none; display: inline-flex; cursor: pointer; } details.adder > summary::-webkit-details-marker { display: none; }
details.adder[open] > summary { margin-bottom: 12px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 2px 0 10px; }

/* pills, chips, avatars, segments */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--soft2); color: var(--muted); white-space: nowrap; vertical-align: middle; }
.pill .ic { width: 14px; height: 14px; }
.s-now { background: var(--ok-bg); color: var(--ok); } .s-wait { background: var(--blue-bg); color: var(--blue); } .s-done { background: var(--ok-bg); color: var(--ok); } .s-none, .s-off { background: var(--soft2); color: var(--muted); }
.s-new { background: var(--blue-bg); color: var(--blue); } .s-packed { background: var(--amber-bg); color: var(--amber); } .s-out { background: var(--purple-bg); color: var(--purple); }
.p-1h { background: var(--acc-bg); color: var(--acc-ink); } .p-today { background: var(--amber-bg); color: var(--amber); } .p-low { background: var(--soft2); color: var(--muted); }
.t-shop { background: var(--ok-bg); color: var(--ok); } .t-at_job { background: var(--blue-bg); color: var(--blue); } .t-reported, .t-broken, .t-repair, .t-sent_back { background: var(--red-bg); color: var(--red); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--acc); margin-right: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 12px; } .chips.small { margin: 6px 0 0; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; font-family: inherit; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; } .chip b { font-weight: 700; opacity: .7; font-size: 12px; } .chip.on b { opacity: .9; } .chip.off { opacity: .5; text-decoration: line-through; }
.chip.job { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); font-size: 12px; padding: 4px 9px; }
.chip.has-note::after { content: "•"; color: var(--acc); }
.av { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-size: 11.5px; font-weight: 700; flex: 0 0 auto; letter-spacing: .02em; }
.av.xs { width: 22px; height: 22px; font-size: 9px; } .av.sm { width: 26px; height: 26px; font-size: 10px; } .av.lg { width: 60px; height: 60px; font-size: 21px; }
.who { font-weight: 600; margin-left: 6px; margin-right: 6px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; background: var(--soft2); border-radius: 10px; padding: 3px; max-width: 100%; }
.seg a { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.seg a.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); } .seg a b { font-size: 11.5px; background: var(--soft); color: var(--muted); border-radius: 999px; padding: 1px 6px; } .seg a.on b { background: var(--brand-soft); color: var(--brand-ink); }
.weeknav { display: flex; align-items: center; gap: 8px; } .weeknav b { font-size: 14px; }

/* home */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); min-height: 100px; }
.tile:hover { border-color: var(--brand); }
.tile-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; } .tile-ic .ic { width: 22px; height: 22px; }
.tile b { font-size: 15px; } .tile small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.tile-n { position: absolute; top: 12px; right: 12px; background: var(--acc); color: #fff; font-size: 12px; font-weight: 700; min-width: 24px; height: 24px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; padding: 0 7px; }
.today-jobs { display: grid; gap: 8px; grid-template-columns: 1fr; }
.tj { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); }
.tj-people { display: inline-flex; align-items: center; } .tj-people .av { margin-left: -6px; border: 2px solid var(--card); } .tj-people small { margin-left: 8px; color: var(--muted); font-weight: 700; }
.hello { font-size: 20px; margin: 4px 0 10px; } .hello b { font-weight: 800; }
.myjob { border-left: 5px solid var(--brand); } .myjob h2 { font-size: 24px; margin-bottom: 4px; } .addr { color: var(--muted); }
.addr a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; }
.bigbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.bb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 108px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); font-size: 15px; box-shadow: var(--shadow); text-align: center; padding: 10px; }
.bb .ic { width: 32px; height: 32px; color: var(--brand-ink); } .bb:active { background: var(--soft); }

/* jobs board */
.board { display: flex; gap: 10px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding: 2px 2px 14px; margin: 0 -14px; padding-left: 14px; padding-right: 14px; scroll-snap-type: x proximity; }
@media (min-width: 1000px) { .board { margin: 0; padding-left: 2px; padding-right: 2px; } }
.col { flex: 0 0 272px; background: var(--soft); border-radius: var(--r); padding: 10px; scroll-snap-align: start; min-height: 120px; }
.col.today { background: var(--brand-soft); }
.col h3 { display: flex; align-items: center; justify-content: space-between; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 2px 4px 10px; }
.col h3 b { background: var(--card); color: var(--ink); font-size: 12px; border-radius: 999px; padding: 1px 8px; }
.cards { display: grid; gap: 8px; grid-template-columns: 1fr; } @media (min-width: 700px) { .cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); } }
.jc { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px; margin-bottom: 8px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.jc:hover { border-color: var(--brand); } .jc.urgent { border-left: 4px solid var(--acc); }
.jc-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; } .jc-top b { font-size: 15px; }
.jc-addr { color: var(--muted); font-size: 12.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; flex-wrap: wrap; } .jc-mgrs { display: inline-flex; } .jc-mgrs .av { margin-left: -4px; border: 2px solid var(--card); }
.jc-crew, .jc-punch { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: var(--muted); } .jc-crew .ic, .jc-punch .ic { width: 15px; height: 15px; }
.jc-names { font-size: 12px; color: var(--muted); flex: 1 1 100%; }
.jobhead.urgent { border-left: 5px solid var(--acc); } .jh-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .jh-mgrs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 6px 0; }
.note { background: var(--amber-bg); border-radius: 10px; padding: 10px 12px; white-space: pre-wrap; }
.manage .row { gap: 8px; }

/* orders */
.ocs { display: grid; gap: 8px; grid-template-columns: 1fr; } @media (min-width: 800px) { .ocs { grid-template-columns: 1fr 1fr; } } @media (min-width: 1300px) { .wide .ocs { grid-template-columns: 1fr 1fr 1fr; } }
.oc { display: block; background: var(--card); border: 1px solid var(--line); border-left-width: 5px; border-radius: 12px; padding: 10px 12px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.oc:hover { border-color: var(--brand); } .oc-new { border-left-color: var(--blue); } .oc-packed { border-left-color: var(--amber); } .oc-out { border-left-color: var(--purple); } .oc-delivered { border-left-color: var(--ok); } .oc-cancelled { border-left-color: var(--line); opacity: .75; }
.oc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .oc-top b { display: inline-flex; align-items: center; gap: 4px; margin-right: auto; }
.oc-mid { display: flex; align-items: center; gap: 6px; margin: 6px 0 2px; } .oc-job { font-weight: 700; }
.oc-items { font-size: 13.5px; color: var(--muted); } .oc-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-top: 6px; }
.ohead { border-left: 5px solid var(--line); } .ohead.oc-new { border-left-color: var(--blue); } .ohead.oc-packed { border-left-color: var(--amber); } .ohead.oc-out { border-left-color: var(--purple); } .ohead.oc-delivered { border-left-color: var(--ok); }
.oh-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; } .oh-who { display: flex; align-items: center; gap: 6px; font-size: 16px; margin-bottom: 4px; } .oh-job { font-weight: 800; text-decoration: none; }
.lines .line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); } .lines .line:first-child { border-top: 0; }
.line.picked .line-body b { text-decoration: line-through; color: var(--muted); } .line.oos { background: var(--acc-bg); }
.line-img { width: 48px; height: 48px; border-radius: 8px; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; } .line-img img { width: 100%; height: 100%; object-fit: contain; }
.line-body { flex: 1 1 auto; min-width: 0; } .line-body b { display: block; } .line-body small { color: var(--muted); display: block; }
.deliver { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .deliver small { flex: 1 1 100%; }

/* catalog */
.cat-h { margin: 6px 0 10px; font-size: 19px; }
.catgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @media (min-width: 600px) { .catgrid { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 900px) { .catgrid { grid-template-columns: repeat(4, 1fr); } } @media (min-width: 1300px) { .catgrid { grid-template-columns: repeat(5, 1fr); } }
.item { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; box-shadow: var(--shadow); position: relative; }
.item-img { position: relative; background: #fff; border-bottom: 1px solid var(--line); height: 0; padding-top: 78%; } .item-img img, .item-img > .ic { position: absolute; left: 8px; top: 8px; right: 8px; bottom: 8px; width: calc(100% - 16px); height: calc(100% - 16px); object-fit: contain; color: var(--muted); }
.favbtn { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #cbd5e1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; } .item.fav .favbtn { color: #f59e0b; } .favbtn .ic { width: 18px; height: 18px; fill: currentColor; }
.item-body { padding: 9px 10px 10px; display: flex; flex-direction: column; gap: 5px; flex: 1; } .item-body b { font-size: 14px; line-height: 1.25; } .item-body small { color: var(--muted); font-size: 12px; line-height: 1.3; }
.item-opts { display: flex; flex-direction: column; gap: 5px; margin-top: auto; } .item-opts select { min-height: 38px; padding: 5px 28px 5px 10px; font-size: 14px; }
.item-add { display: flex; gap: 6px; align-items: center; } .item-add .qty { min-height: 38px; width: 58px; } .item-add .btn { flex: 1; }
.item-edit { position: absolute; top: 6px; left: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; } .item-edit .ic { width: 16px; height: 16px; }
.cart { padding: 0; } .cl { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); } .cl:first-child { border-top: 0; }
.cl-img { width: 52px; height: 52px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; } .cl-img img { width: 100%; height: 100%; object-fit: contain; }
.cl-body { flex: 1 1 auto; min-width: 0; } .cl-body b { display: block; font-size: 14px; } .cl-body small { color: var(--muted); display: block; }
.cl-qty { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; } .cl-qty .qty { width: 54px; min-height: 36px; padding: 4px; }
.qty-n { min-width: 36px; text-align: center; font-size: 17px; } .qty-n.lowq { color: var(--acc-ink); }
.thumb { max-width: 140px; border-radius: 10px; border: 1px solid var(--line); }

/* schedule grid */
.gridwrap { overflow: auto; -webkit-overflow-scrolling: touch; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin: 0 -14px; border-left: 0; border-right: 0; border-radius: 0; max-height: calc(100vh - 220px); }
@media (min-width: 1000px) { .gridwrap { margin: 0; border-radius: var(--r); border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.grid { border-collapse: separate; border-spacing: 0; min-width: 900px; width: 100%; font-size: 13px; }
.grid th, .grid td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 6px 6px; vertical-align: top; text-align: left; min-width: 112px; }
.grid thead th { position: sticky; top: 0; background: var(--soft); z-index: 2; text-align: center; }
.grid tbody th { position: sticky; left: 0; background: var(--card); z-index: 1; font-weight: 600; min-width: 140px; white-space: nowrap; } .grid tbody th a { text-decoration: none; color: var(--ink); }
.grid tr.grp th { background: var(--soft2); color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; position: sticky; left: 0; }
.grid td.today, .grid thead th:has(.today) { background: var(--brand-soft); }
.grid td { position: relative; min-height: 40px; } .grid td .chip { margin: 1px 2px 1px 0; }
.cell-add { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: transparent; text-decoration: none; font-weight: 700; font-size: 18px; } .cell-add:hover { color: var(--brand-ink); background: var(--soft); }
.dh { display: flex; flex-direction: column; align-items: center; line-height: 1.15; } .dh b { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); } .dh small { font-size: 12.5px; font-weight: 700; } .dh.today b, .dh.today small { color: var(--brand-ink); }

/* tools */
.tools { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } @media (min-width: 700px) { .tools { grid-template-columns: repeat(3, 1fr); } } @media (min-width: 1100px) { .tools { grid-template-columns: repeat(4, 1fr); } }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tool-main { display: flex; flex-direction: column; gap: 4px; padding: 10px; text-decoration: none; color: var(--ink); flex: 1; }
.tool-img { height: 96px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; } .tool-img img { max-height: 100%; max-width: 100%; object-fit: contain; } .tool-img .ic { width: 36px; height: 36px; color: var(--muted); }
.tool-main b { font-size: 14px; } .tool-main small { color: var(--muted); font-size: 12px; } .tool-main .ok { color: var(--ok); font-weight: 700; } .tool-main .bad { color: var(--red); font-weight: 700; }
.tool-req { padding: 0 10px 10px; } .tool-req .btn { width: 100%; }
.tool-hero { height: 150px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; margin: 8px 0; } .tool-hero img { max-height: 100%; max-width: 100%; object-fit: contain; } .tool-hero .ic { width: 48px; height: 48px; color: var(--muted); }

/* punch list, requests, misc */
.pi { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-top: 1px solid var(--line); } .pi:first-child { border-top: 0; } .pi.done b { text-decoration: line-through; color: var(--muted); }
.pi-body { flex: 1 1 auto; min-width: 0; } .pi-body b { display: block; } .pi-body small { color: var(--muted); display: block; }
.pi-more { flex: 0 0 auto; } .pi-more summary { list-style: none; cursor: pointer; width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted); } .pi-more summary::-webkit-details-marker { display: none; }
.pi-more[open] { flex: 1 1 100%; } .pi-menu { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0 0 46px; } .pi-menu input { flex: 1 1 160px; }
.notes { margin: 4px 0 0; padding-left: 16px; font-size: 13px; }
.donefold > summary { list-style: none; cursor: pointer; } .donefold > summary::-webkit-details-marker { display: none; } .donefold > summary h2::before { content: "▸ "; } .donefold[open] > summary h2::before { content: "▾ "; }
.prog { display: flex; flex-direction: column; align-items: flex-end; width: 90px; gap: 3px; } .prog b { font-size: 13px; } .prog i { display: block; height: 6px; width: 100%; background: var(--soft2); border-radius: 3px; position: relative; } .prog i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: inherit; background: var(--ok); border-radius: 3px; }
.prog i { width: 100% !important; } .prog i[style] { background: linear-gradient(to right, var(--ok) var(--w, 0), var(--soft2) 0); }
.req { padding: 12px 14px; } .req-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 6px; } .req-text { white-space: pre-wrap; } .req-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; } .req-act form.row { flex: 1 1 240px; } .req-act form.row input { flex: 1; }
.replies { border-left: 3px solid var(--line); padding-left: 10px; margin: 8px 0; } .reply p { margin: 2px 0 6px; }
audio { width: 100%; max-width: 360px; height: 40px; margin: 6px 0; }
.photos { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; } .photos img { width: 86px; height: 86px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; } .photos.small img { width: 56px; height: 56px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; } .gallery a { display: block; text-decoration: none; color: var(--muted); font-size: 11.5px; } .gallery img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: block; margin-bottom: 3px; }
.hist { list-style: none; margin: 0; padding: 0; } .hist li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; } .hist li:first-child { border-top: 0; } .hist-who { color: var(--muted); font-size: 12.5px; }
.me-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; } .me-head h2 { font-size: 22px; margin: 0; }
.pager { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; margin: 10px 0; }
.flash-row { animation: hilite 2s ease-out; } @keyframes hilite { from { background: var(--amber-bg); } to { background: transparent; } }

/* login */
.is-login .bar { display: none; } .is-login .wrap { max-width: 560px; padding-top: 28px; }
.login { text-align: center; } .login-brand { margin-bottom: 18px; } .login-brand .mark { font-size: 30px; padding: 8px 14px; background: var(--brand); color: #fff; } .login-brand h2 { font-size: 22px; margin: 10px 0 2px; display: block; }
.login h2 { display: block; }
.login h3 { text-align: left; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; margin: 16px 0 6px; }
.names { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } @media (min-width: 560px) { .names { grid-template-columns: repeat(3, 1fr); } }
.names a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; text-align: left; min-height: 52px; box-shadow: var(--shadow); }
.names a:hover { border-color: var(--brand); } .names a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.login-back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 600; margin-bottom: 14px; }
.login-who { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 10px 0 16px; } .login-who h2 { font-size: 24px; }
.pinform label { display: block; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.pin { font-size: 34px; letter-spacing: .5em; text-align: center; max-width: 240px; margin: 0 auto 14px; padding-left: calc(12px + .5em); font-weight: 700; }
.login-signup { margin-top: 20px; } .lang { display: inline-block; margin-top: 18px; color: var(--muted); font-weight: 600; }
