/* ===================== Frames ===================== */
.boot { padding: 40px; color: var(--muted); }
.site-in { width: min(1200px, 100% - 2 * max(4vw, 16px)); margin-inline: auto; }
.acct { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 3px 10px 3px 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); cursor: pointer; }
.acct:hover { border-color: var(--line-2); }
.acct-name { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; font-weight: 650; }
.acct-chev { width: 16px; height: 16px; color: var(--muted); }
.acct .avatar .ic { width: 18px; height: 18px; }

/* website */
.area-site { background: var(--surface); }
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-head .site-in { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.site-nav { display: flex; gap: 4px; margin-right: auto; }
.site-nav button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font-weight: 600; font-size: 14.5px; color: var(--ink-2); cursor: pointer; }
.site-nav button:hover { background: var(--sunk); color: var(--ink); }
.site-nav button:focus:not(:focus-visible) { outline: none; }
.site-signin { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); color: var(--ink); }
.site-signin:hover { border-color: var(--ink); }
.site-signin .ic { width: 20px; height: 20px; }
.site-actions { display: flex; align-items: center; gap: 8px; }
.site-burger { display: none; }
.band { padding: clamp(44px, 6vw, 88px) 0; }
.band + .band { border-top: 1px solid var(--line); }
.band-head { display: grid; gap: 10px; max-width: 720px; margin-bottom: 30px; }
.mt { margin-top: 10px; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain > li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
ul.plain > li b { white-space: nowrap; }
ul.plain > li.sum { border-bottom: 0; border-top: 2px solid var(--ink); font-weight: 750; font-size: 16px; }
.site-foot { padding: 56px 0 28px; background: #17181b; color: #e9e9ea; --muted: #a3a4aa; --line: #2c2d31; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 32px; align-items: start; }
.foot-logo { width: 150px; padding: 10px 12px; border-radius: 12px; background: #fff; }
.foot-big { font: 700 30px/1 var(--display); margin: 8px 0 4px; }
.site-foot .h3 { color: #fff; }
.site-foot .btn { background: transparent; color: #fff; border-color: #3a3b40; } .site-foot .btn-red { background: var(--accent); border-color: var(--accent); }
.foot-note { margin-top: 32px; }

/* hero: the company's own photo, darkened on the left so the words read */
.hero { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: max(520px, calc(100vh - 69px)); min-height: max(520px, calc(100svh - 69px)); color: #fff; background: #0b1424; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 16, 30, .9) 0%, rgba(8, 16, 30, .7) 34%, rgba(8, 16, 30, .12) 66%, rgba(8, 16, 30, 0) 100%); }
.hero-copy { display: grid; gap: 18px; justify-items: start; padding: 56px 0 calc(56px + 18vh); }
.hero-title { max-width: 16ch; font: 700 clamp(44px, 6.2vw, 84px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.005em; text-wrap: balance; color: #fff; }
.hero-sub { max-width: 42ch; font-size: clamp(16px, 1.5vw, 19px); color: rgba(255, 255, 255, .88); }
.hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.hero-book { display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 24px; border-radius: 12px; background: #d8232a; color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; transition: background .15s; }
.hero-book:hover { background: #c41f26; color: #fff; }
.hero-book:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.hero-book .ic { width: 20px; height: 20px; transition: transform .15s; } .hero-book:hover .ic { transform: translateX(2px); }
@media (max-width: 640px) { .hero-book { width: 100%; justify-content: center; } }
.hero-call { color: rgba(255, 255, 255, .86); font-size: 15px; }
.hero-call b { color: #fff; }
@media (max-width: 700px) {
  /* On a phone the whole photo sits on top and the words go below it, so nothing covers the truck. */
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: calc(100vh - 69px); min-height: calc(100svh - 69px); background: #0e1726; }
  .hero-copy { flex: 1; align-content: center; }
  .hero-photo { position: relative; inset: auto; height: auto; aspect-ratio: 1639 / 1093; object-position: 50% 50%; }
  .hero::before { inset: auto 0 auto 0; top: calc(100vw * 1093 / 1639 - 56px); height: 57px; background: linear-gradient(180deg, rgba(14, 23, 38, 0), #0e1726); z-index: 0; }
  .hero-copy { position: relative; padding: 6px 0 30px; gap: 14px; }
}
/* drawing classes for the containers in the size pictures */
.sc-shadow { fill: rgba(0, 0, 0, .22); }
.sc-box { fill: var(--red); } .sc-box-dark { fill: color-mix(in srgb, var(--red) 70%, #000); } .sc-box-light { fill: color-mix(in srgb, var(--red) 55%, #fff); }
.sc-ribs line { stroke: color-mix(in srgb, var(--red) 72%, #000); stroke-width: 2.4; }
.sc-word { fill: #fff; font: 700 9px var(--display); letter-spacing: .08em; }
.sc-tire { fill: #1d1e21; }
.sc-person { fill: #59606b; }
.sc-person .p-shadow { fill: rgba(0, 0, 0, .16); }
:root[data-theme="dark"] .sc-person { fill: #9aa1ab; }
.sc-groundline { stroke: var(--line-2); stroke-width: 1.5; }

/* quote band: the red field */
.quote-band { background: var(--accent); color: var(--on-accent); padding: 22px 0; }
.quote { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 14px; align-items: end; }
.quote .field > span { color: var(--on-accent); opacity: .9; }
.quote .input, .quote .select { border-color: transparent; }
.quote-go { background: #17181b; border-color: #17181b; color: #fff; }
.quote-go:hover { background: #000; }
.quote-note { grid-column: 1 / -1; font-size: 14px; color: var(--on-accent); }

/* sizes */
.size-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.size-card { display: grid; gap: 12px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.boxsvg { width: 100%; height: auto; }
.boxsvg.is-sm { width: 104px; }
.size-top { display: flex; align-items: baseline; justify-content: space-between; }
.price { font: 700 30px/1 var(--display); }
.size-fits { color: var(--ink-2); min-height: 3em; }
.size-kv { font-size: 13.5px; }

/* pricing */
.price-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.price-col { display: grid; gap: 8px; align-content: start; }
.price-eg { padding: 20px; border-radius: var(--r); border: 1px solid var(--line); }
.price-eg ul.plain > li.sum { border-top-color: var(--ink); }

/* how, rules, faq */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { display: grid; gap: 10px; align-content: start; }
.step > .ic, .rule-col > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--red-soft); color: var(--red-ink); }
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px; align-items: stretch; }
.area-map { min-height: 420px; }
.zone-list li span { display: inline-flex; align-items: center; gap: 10px; }
.rules .rule-col { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: var(--r); border: 1px solid var(--line); }
.rule-col.is-fee > .ic { background: var(--warn-soft); color: var(--warn); }
.rule-col.is-no > .ic { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-i { border-bottom: 1px solid var(--line); }
.faq-i summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 650; font-size: 16px; list-style: none; cursor: pointer; }
.faq-i summary::-webkit-details-marker { display: none; }
.faq-i summary .ic { transition: transform .15s; color: var(--muted); }
.faq-i[open] summary .ic { transform: rotate(180deg); }
.faq-i p { padding: 0 0 18px; color: var(--ink-2); max-width: 65ch; }

/* sign in */
.signin-band { background: var(--bg); }
.signin { display: grid; gap: 18px; max-width: 560px; margin: 0 auto; }
.signin-demo { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.demo-card { display: grid; gap: 4px; justify-items: start; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; }
.demo-card:hover { border-color: var(--ink); }
.demo-card span { font-size: 12.5px; color: var(--muted); }

/* booking */
.book { background: var(--sunk); min-height: 70vh; }
.book-in { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.book-main { display: grid; gap: 18px; }
.book-steps { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; list-style: none; counter-reset: s; font-size: 14px; font-weight: 650; color: var(--muted); }
.book-steps li { display: inline-flex; align-items: center; gap: 8px; }
.book-steps li::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); font-size: 12px; }
.book-steps li.is-on { color: var(--ink); } .book-steps li.is-on::before { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.book-steps li.is-done::before { content: '✓'; background: var(--good-soft); border-color: transparent; color: var(--good); }
.book-form { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-1); gap: 18px; }
.book-nav { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--line); }
.book-nav .btn-red { margin-left: auto; }
.pick-list { display: grid; gap: 8px; }
.pick { display: flex; align-items: center; gap: 16px; width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; cursor: pointer; }
.pick:hover { border-color: var(--line-2); }
.pick.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.pick[aria-disabled="true"] { opacity: .5; }
.pick.is-row { padding: 12px 14px; }
.pick-main { flex: 1; display: grid; gap: 3px; }
.pick-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px; }
.pick-sub { font-size: 13px; color: var(--muted); }
.pick-warn { font-size: 13px; font-weight: 600; color: var(--red-ink); }
.pick-note { font-size: 13px; font-weight: 600; color: var(--warn); }
.pick-price { font: 700 24px/1 var(--display); }
.has-err .input, .has-err .select, .has-err .textarea { border-color: var(--red); }
.err { color: var(--red-ink) !important; font-weight: 600; }
.photo-pick { display: flex; align-items: center; gap: 12px; }
.photo-pick img { width: 120px; height: 84px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.bk-sum { position: sticky; top: 88px; }
.bk-sum .boxsvg { margin-bottom: 8px; }
.review-kv { font-size: 15px; }
.review-kv .link { margin-left: 8px; font-size: 13px; }
.card-fields { padding: 14px; border-radius: 12px; background: var(--sunk); }
.terms section { display: grid; gap: 6px; }
.done { display: grid; gap: 18px; justify-items: start; max-width: 680px; margin: 0 auto; }
.done-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--good); color: #fff; }
.done-mark .ic { width: 34px; height: 34px; stroke-width: 2.6; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; width: 100%; }
.timeline li { position: relative; display: grid; gap: 2px; padding: 0 0 18px 30px; }
.timeline li::before { content: ''; position: absolute; left: 6px; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.timeline li::after { content: ''; position: absolute; left: 12px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { background: var(--good); border-color: var(--good); }
.timeline li.is-now::before { background: var(--ink); border-color: var(--ink); }
.timeline span { font-size: 13.5px; color: var(--muted); }

@media (max-width: 1000px) {
  .size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .price-cols, .area, .faq { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .book-in { grid-template-columns: minmax(0, 1fr); }
  .bk-sum { position: static; order: -1; }
  .bk-sum .boxsvg { display: none; }
}
@media (max-width: 860px) {
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 8px 16px 14px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); }
  .site-nav.is-open { display: flex; }
  .site-nav button { text-align: left; min-height: 46px; }
  .site-nav .nav-signin { display: flex; align-items: center; min-height: 46px; margin-top: 6px; padding: 0 12px; border-top: 1px solid var(--line); font-weight: 700; color: var(--ink); text-decoration: none; }
  .site-burger { display: inline-grid; }
  .site-head .acct-name, .site-head .acct-chev { display: none; }
  .site-head .site-in { justify-content: space-between; }
  .site-actions { margin-left: auto; }
  .quote { grid-template-columns: 1fr 1fr; }
  .quote-go { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-head .site-in { gap: 10px; }
  .site-head .btn-red { padding: 0 12px; }
  .logo img { height: 28px; }
  .size-grid, .steps, .grid-3, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .quote { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .book-form { padding: 18px; }
  .pick { gap: 10px; padding: 12px; }
  .pick .boxsvg.is-sm { width: 70px; }
  .area-map { min-height: 300px; }
}

/* customer portal */
.area-portal { background: var(--bg); padding-bottom: 76px; }
.app-head { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.app-head-in { display: flex; align-items: center; gap: 20px; width: min(1200px, 100% - 32px); min-height: 64px; margin: 0 auto; }
.ptabs { display: flex; gap: 2px; margin-right: auto; }
.ptab { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 9px; color: var(--ink-2); font-weight: 650; font-size: 14px; text-decoration: none; }
.ptab:hover { background: var(--sunk); color: var(--ink); }
.ptab.is-on { background: var(--sunk); color: var(--ink); }
.ptab .ic { width: 18px; height: 18px; }
.portal-main { width: min(1200px, 100% - 32px); margin: 0 auto; padding: 28px 0 40px; display: grid; gap: 20px; }
.bottom-nav { display: none; }
@media (max-width: 760px) {
  .ptabs, .head-book { display: none; }
  .app-head-in { justify-content: space-between; }
  .app-head .acct-name, .app-head .acct-chev { display: none; }
  .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .bottom-nav .ptab { flex-direction: column; gap: 3px; padding: 6px 2px; font-size: 11.5px; background: none; }
  .bottom-nav .ptab.is-on { color: var(--accent); }
  .bottom-nav .ptab .ic { width: 22px; height: 22px; }
  .bottom-nav .count { position: absolute; top: 2px; left: calc(50% + 6px); }
  .portal-main { padding-top: 18px; }
}

/* driver */
.area-driver { background: var(--bg); }
.drv { width: min(680px, 100%); margin: 0 auto; min-height: 100dvh; padding-bottom: 84px; }
.drv-head { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.drv-head-mid { flex: 1; display: grid; line-height: 1.25; }
.drv-head-mid strong { font-size: 15px; }
.drv-head-mid span { font-size: 12.5px; color: var(--muted); }
.drv-head .acct { padding: 3px; } .drv-head .acct-name, .drv-head .acct-chev { display: none; }
.drv-main { padding: 16px 14px 24px; display: grid; gap: 14px; }
.drv-tabs { position: fixed; left: 50%; bottom: 0; z-index: 40; transform: translateX(-50%); width: min(680px, 100%); display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgba(0, 0, 0, .3); }
.dtab { position: relative; display: grid; justify-items: center; gap: 3px; padding: 7px 4px; border-radius: 10px; color: var(--muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.dtab .ic { width: 24px; height: 24px; }
.dtab.is-on { color: var(--accent); }
.dtab.is-on .ic { stroke-width: 2.2; }
.dtab .dot { position: absolute; top: 6px; left: calc(50% + 9px); }

/* office */
.area-office { background: var(--bg); }
.ofc { display: grid; grid-template-columns: 96px minmax(0, 1fr); min-height: 100dvh; }
.rail { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 16px 10px 14px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; }
.rail nav { flex: 1; display: flex; flex-direction: column; width: 100%; }
.rail .nav-g { display: grid; gap: 6px; padding: 12px 0; }
.rail .nav-g + .nav-g { border-top: 1px solid var(--line); }
.rail .nav-end { margin-top: auto; }
.nav-i { position: relative; display: grid; justify-items: center; gap: 5px; padding: 10px 2px 9px; border-radius: 12px; color: var(--ink-2); font-size: 11.5px; font-weight: 650; text-decoration: none; }
.nav-i:hover { background: var(--sunk); color: var(--ink); }
.nav-i.is-on { background: var(--accent-soft); color: var(--ink); }
.nav-i.is-on .ic { color: var(--ink); }
.nav-i .ic { width: 22px; height: 22px; }
.nav-i .count { position: absolute; top: 3px; left: calc(50% + 7px); box-shadow: 0 0 0 2px var(--surface); }
.nav-i.is-on .count { box-shadow: 0 0 0 2px var(--surface); }
.ofc-body { display: flex; flex-direction: column; min-width: 0; }
.ofc-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 28px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); }
.ofc-burger, .ofc-logo-sm { display: none; }
.search-btn { flex: 1; max-width: 560px; display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); font-size: 14px; text-align: left; cursor: pointer; margin-right: auto; }
.search-btn span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-btn kbd { padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 6px; font: 600 12px var(--font); }
.ofc-main { padding: 6px 28px 48px; display: grid; gap: 20px; align-content: start; width: 100%; max-width: 1440px; }
.sheet-nav .nav-g { display: grid; gap: 2px; padding: 6px 0; }
.sheet-nav .nav-g + .nav-g { border-top: 1px solid var(--line); }
.mi-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 650; }
.mi-row.is-on { background: var(--ink); color: var(--on-ink); }
.mi-row .count { margin-left: auto; }
@media (max-width: 900px) {
  .ofc { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .ofc-burger, .ofc-logo-sm { display: inline-flex; }
  .ofc-logo-sm img { height: 26px; }
  .ofc-top { padding: 8px 14px; gap: 8px; }
  .search-btn { max-width: none; min-height: 40px; }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { flex: none; width: 40px; padding: 0; justify-content: center; margin-left: auto; margin-right: 0; }
  .ofc-top .btn-ink span, .ofc-top .acct-name, .ofc-top .acct-chev { display: none; }
  .ofc-main { padding: 6px 14px 40px; }
}

/* ===================== Customer portal ===================== */
.p-hello { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.p-hello .eyebrow { margin-bottom: 6px; }
.p-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p-summary .stat + .stat { border-left: 1px solid var(--line); }
.p-summary .stat .btn { justify-self: start; margin-top: 6px; }
.rental-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.rental { display: grid; grid-template-rows: auto auto auto 1fr; gap: 16px; padding: 18px; }
.rental-top { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 64px; }
.rental-id { display: grid; gap: 2px; } .rental-id p { margin: 0; font-size: 13.5px; }
.rental-id p.small { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rental-days { display: grid; gap: 8px; }
.rental-days .meter { height: 8px; }
.rental-note { margin: 0; font-weight: 650; }
.rental-note.is-good { color: var(--good); } .rental-note.is-warn { color: var(--warn); } .rental-note.is-bad { color: var(--red-ink); }
.rental-plan { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--sunk); color: var(--ink-2); }
.rental-plan .ic { flex: none; width: 16px; height: 16px; margin-top: 2px; }
.rental-plan.is-info { background: var(--info-soft); color: var(--info); }
.rental-plan.is-warn { background: var(--warn-soft); color: var(--warn); }
.rental-acts { display: grid; align-self: end; }
.rental-acts > :only-child { grid-column: 1 / -1; }
.rental-acts .btn { width: 100%; }
.rental-acts [data-act="p-more"] .ic { width: 16px; height: 16px; }
/* loyalty */
.loyal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 320px); gap: 18px 28px; align-items: center; padding: 20px 22px; }
.loyal-now { display: flex; align-items: center; gap: 16px; }
.loyal-now .medal { width: 56px; height: 56px; flex: none; }
.loyal-text { display: grid; gap: 2px; } .loyal-text p, .loyal-text h2 { margin: 0; }
.loyal-prog { display: grid; gap: 8px; } .loyal-prog p { margin: 0; }
.loyal-prog .meter { height: 8px; }
.loyal-tiers { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.loyal-tiers > li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.loyal-tiers > li.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.loyal-tiers > li > div { display: grid; gap: 2px; min-width: 0; }
.loyal-tiers ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 13px; }
.loyal-tiers ul li::before { content: '✓ '; color: var(--good); font-weight: 700; }
.loyal-tiers .medal { width: 30px; height: 30px; flex: none; }
.medal circle { stroke: none; }
.medal.is-member circle { fill: none; stroke: var(--line-2); stroke-width: 2.5; }
.medal.is-member path { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.medal .rib { fill: var(--accent); } .medal .star { fill: rgba(255, 255, 255, .85); }
.medal.is-bronze circle { fill: #b0703c; } .medal.is-silver circle { fill: #9aa3ad; } .medal.is-gold circle { fill: #d4a52a; }
@media (max-width: 900px) { .loyal { grid-template-columns: minmax(0, 1fr); } .loyal-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .loyal-tiers { grid-template-columns: minmax(0, 1fr); } }
.opt-list { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; text-align: left; cursor: pointer; }
.opt:hover { background: var(--sunk); }
.opt .opt-go { margin-left: auto; color: var(--muted); }
.ticket { display: grid; gap: 10px; padding: 14px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: var(--sunk); }
.ticket-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inv-lines td:first-child { width: 100%; }
.site-li { align-items: flex-start; }
.site-li .field { margin-top: 8px; }
@media (max-width: 760px) {
  .p-summary { grid-template-columns: minmax(0, 1fr); }
  .p-summary .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .rental-grid { grid-template-columns: minmax(0, 1fr); }
  .rental-plan { min-height: 0; }
  .up-li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 12px; row-gap: 6px; }
  .up-li > .li-main { grid-column: 2; grid-row: 1; }
  .list .li.up-li > .badge { grid-column: 2; grid-row: 2; justify-self: start; margin: 0; }
  .up-li > .icon-btn { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
}
@media (max-width: 600px) {
  .list .li { flex-wrap: wrap; }
  .list .li > .badge { order: 3; margin-left: 34px; }
}

/* ===================== Driver ===================== */
.route-head { display: grid; gap: 8px; padding: 4px 2px 2px; }
.route-head .title { font-size: 34px; }
.clock-nudge { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--warn-soft); font-weight: 600; font-size: 14px; }
.clock-nudge .ic { color: var(--warn); }
.clock-nudge .btn { margin-left: auto; }
.stop-kind { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.stop-addr { font: 700 30px/1.02 var(--display); text-transform: uppercase; letter-spacing: .005em; margin: 2px 0 3px; }
.stop-notes { display: flex; gap: 8px; padding: 12px; border-radius: 10px; background: var(--sunk); font-size: 14.5px; }
.stop-notes .ic { color: var(--muted); margin-top: 1px; }
.small .ic { width: 15px; height: 15px; vertical-align: -3px; }
.stop-row { padding: 12px 16px; }
.stop-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); font-size: 12px; font-weight: 750; flex: none; }
.stop-row.is-done .stop-dot { background: var(--good-soft); border-color: transparent; color: var(--good); }
.stop-row.is-done .stop-dot .ic { width: 15px; height: 15px; stroke-width: 2.6; }
.stop-row.is-done .li-title { color: var(--muted); }
.wk > summary { list-style: none; cursor: pointer; }
.wk > summary::-webkit-details-marker { display: none; }
.wk-date { display: grid; justify-items: center; width: 40px; line-height: 1.1; flex: none; }
.wk-date b { font-size: 11.5px; font-weight: 650; color: var(--muted); }
.wk-date span { font: 700 22px/1 var(--display); }
.wk-meter { width: 90px; }
.wk-chev { color: var(--muted); transition: transform .15s; }
.wk[open] .wk-chev { transform: rotate(180deg); }
.wk-stops { border-top: 1px solid var(--line); background: var(--sunk); }
.stop-row.is-tap { cursor: pointer; } .stop-row.is-tap:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }
.stop-row .row-go { color: var(--muted); width: 16px; height: 16px; flex: none; }
.seg-full { display: flex; margin-top: 12px; } .seg-full button { flex: 1; }
.center { text-align: center; }
.clock { display: grid; gap: 10px; justify-items: center; padding: 26px 20px; text-align: center; }
.clock .eyebrow { display: inline-flex; align-items: center; gap: 8px; }
.clock-big { font: 700 64px/.9 var(--display); }
.clock-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
.clock .btn-block { margin-top: 6px; }
.li-hrs { font-weight: 700; }
.reading { display: grid; justify-items: center; gap: 10px; padding: 30px; color: var(--muted); }
.reading .ic { width: 40px; height: 40px; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .reading .ic { animation: none; } }
.also { border: 1px solid var(--line); border-radius: 12px; }
.also summary { padding: 12px 14px; font-weight: 650; font-size: 14px; cursor: pointer; }
.also-grid { display: grid; gap: 10px; padding: 0 14px 14px; }
.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stats-3 .stat { padding: 14px 16px; }
.stats-3 .stat-value { font-size: 30px; }
.li-title.num { white-space: nowrap; }

/* ===================== Office ===================== */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; padding-top: 6px; }
.page-head .eyebrow { margin-bottom: 6px; }
.date-nav { display: flex; align-items: center; gap: 6px; }
.date-nav .input { width: auto; min-height: 40px; font-size: 14px; padding: 6px 10px; }
.kpis .stat-value { font-size: 34px; }
.stat.is-link { color: inherit; text-decoration: none; border: 0; background: none; text-align: left; font: inherit; cursor: pointer; border-radius: 0; }
.stats > .stat.is-link:hover { background: var(--sunk); }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: start; scroll-snap-type: x proximity; }
.col { display: grid; gap: 10px; padding: 12px; border-radius: var(--r); background: color-mix(in srgb, var(--ink) 4%, var(--bg)); border: 1px solid var(--line); scroll-snap-align: start; }
.col.is-un { background: color-mix(in srgb, var(--red) 5%, var(--bg)); border-style: dashed; border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
.col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.col-head h2 { font: 700 20px/1 var(--display); text-transform: uppercase; letter-spacing: .015em; }
.col-head .avatar { width: 32px; height: 32px; }
.col-head .dot { display: inline-block; vertical-align: 1px; margin-right: 2px; }
.col-load { display: grid; gap: 6px; padding: 0 2px 2px; }
.col-list { display: grid; gap: 8px; min-height: 64px; border-radius: 10px; transition: background .12s, box-shadow .12s; }
.col-list.is-over { background: color-mix(in srgb, var(--info) 10%, transparent); box-shadow: 0 0 0 2px var(--info); }
.col-empty { display: grid; place-items: center; min-height: 64px; padding: 10px; border: 1.5px dashed var(--line-2); border-radius: 10px; color: var(--muted); font-size: 13px; text-align: center; }
.tk { display: grid; gap: 4px; width: 100%; padding: 10px 12px 11px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); box-shadow: var(--sh-1); text-align: left; cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .12s; }
.tk:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.tk[draggable="true"] { cursor: grab; }
.tk.is-drag { opacity: .45; }
.tk.is-done { background: color-mix(in srgb, var(--surface) 55%, transparent); box-shadow: none; }
.tk.is-done .tk-addr { color: var(--muted); }
.tk-top { display: flex; align-items: center; gap: 7px; }
.tk-n { min-width: 18px; font: 700 18px/1 var(--display); color: var(--muted); }
.tk-size { margin-left: auto; font-size: 13px; font-weight: 700; }
.tk-grip { width: 16px; height: 16px; color: var(--line-2); }
.tk-addr { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.tk-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-st { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.tk-st.is-good { color: var(--good); } .tk-st.is-warn { color: var(--warn); } .tk-st.is-bad { color: var(--red-ink); }
.drop-photo { width: 100%; max-height: 220px; object-fit: cover; border-radius: 12px; }
.timeline li.is-bad::before { background: var(--red); border-color: var(--red); }
/* office calendar */
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: stretch; }
.cal-day { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 14px; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .12s, transform .06s; }
.cal-day:hover { border-color: var(--line-2); }
.cal-day.is-today { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.cal-day.is-past { background: var(--sunk); }
.cal-day.is-past .cal-stops, .cal-day.is-past .cal-num { color: var(--muted); }
.cal-dh { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cal-dow { font-size: 13px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cal-num { font: 700 26px/1 var(--display); }
.cal-dh .badge { margin-left: auto; align-self: center; }
.cal-stops { font-size: 15px; } .cal-stops b { font-size: 20px; }
.cal-load { display: grid; gap: 5px; }
.cal-flag { color: var(--red-ink); font-weight: 650; }
.cal-free { display: grid; gap: 4px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.cal-box { display: flex; justify-content: space-between; font-size: 13px; }
.cal-box.is-low b { color: var(--warn); } .cal-box.is-out b { color: var(--red-ink); }
.cal-month { padding: 0; overflow: hidden; }
.cal-heads, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-heads span { padding: 10px 12px; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.cal-cell { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-height: 96px; padding: 10px 12px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell:hover { background: var(--sunk); }
.cal-cell .cal-num { font-size: 20px; }
.cal-cell.is-other { background: var(--sunk); } .cal-cell.is-other .cal-num, .cal-cell.is-other .small { opacity: .45; }
.cal-cell.is-past .cal-num { color: var(--muted); }
.cal-cell.is-today .cal-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--surface); font-size: 18px; }
.cal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--red); vertical-align: middle; }
.cal-cell .cal-dot { position: absolute; top: 12px; right: 12px; }
.cal-key { margin-top: 4px; }
@media (max-width: 1100px) { .cal-week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cal-week { grid-template-columns: minmax(0, 1fr); } .cal-cell { min-height: 64px; padding: 6px; } .cal-cell .meter, .cal-cell .small { display: none; } .cal-cell .cal-dot { top: 6px; right: 6px; } }
.pin.is-late { background: var(--warn); }
.pin-icon { background: none; border: 0; }
.pin-icon .pin { width: 100%; height: 100%; }
.inbox-card { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; padding: 18px 20px; }
.inbox-main { display: grid; gap: 6px; align-content: start; }
.inbox-acts { display: grid; gap: 8px; align-content: start; }
.fit { font-weight: 650; } .fit.is-good { color: var(--good); } .fit.is-bad { color: var(--red-ink); } .fit.is-warn { color: var(--warn); }
.done-list > summary { list-style: none; cursor: pointer; }
.done-list > summary::-webkit-details-marker { display: none; }
.done-list[open] > summary .ic { transform: rotate(180deg); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.filter-q { flex: 1 1 240px; max-width: 360px; margin-left: auto; }
.filter-q .input { min-height: 40px; font-size: 14px; }
.size-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.size-cell { display: grid; gap: 8px; padding: 14px 16px; }
.size-num { display: flex; align-items: baseline; gap: 8px; }
.aging { display: grid; gap: 12px; }
.aging-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--sunk); gap: 2px; }
.aging-bar span { display: block; height: 100%; }
.ag-0 { background: var(--good); } .ag-1 { background: var(--warn); } .ag-2 { background: #d9622b; } .ag-3 { background: var(--red); }
.aging-key { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13.5px; }
.aging-key i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: 0; }
.hbars { display: grid; gap: 10px; margin-top: 14px; }
.hbar { display: grid; grid-template-columns: minmax(80px, 150px) minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 13.5px; }
.hbar-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hbar-track { height: 12px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.hbar-fill.is-info { background: var(--info); }
.hbar-v { font-weight: 700; white-space: nowrap; }
.cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; height: 230px; margin-top: 16px; }
.colw { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 6px; text-align: center; }
.col-v { font-size: 12px; font-weight: 700; color: var(--ink-2); }
.col-track { position: relative; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line-2); }
.col-fill { display: block; width: 100%; max-width: 56px; margin: 0 auto; border-radius: 6px 6px 0 0; background: color-mix(in srgb, var(--ink) 70%, var(--surface)); }
.col-fill.is-now { background: var(--accent); }
.col-l { font-size: 12px; color: var(--muted); white-space: nowrap; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.person { display: grid; gap: 12px; padding: 16px 18px; }
.person-nums { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13.5px; color: var(--ink-2); }
.hours-li .btn { flex: none; }
.ot-sel { min-height: 36px; width: auto; font-size: 13.5px; padding-top: 6px; padding-bottom: 6px; }
.text-li .textarea { margin: 6px 0; font-size: 14px; }
.num-in { position: relative; display: block; max-width: 150px; }
.num-in i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); }
.num-in i + .input { padding-left: 24px; }
@media (max-width: 1100px) { .size-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .inbox-card { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis > .stat { border-left: 0 !important; border-top: 1px solid var(--line); }
  .kpis > .stat:nth-child(even) { border-left: 1px solid var(--line) !important; }
  .kpis > .stat:nth-child(-n+2) { border-top: 0; }
  .size-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-q { max-width: none; margin-left: 0; }
  .hbar { grid-template-columns: 90px minmax(0, 1fr) auto; }
  .cols .col-v { font-size: 10.5px; }
  .hours-li { flex-wrap: wrap; }
  .table.stack-sm thead { display: none; }
  .table.stack-sm tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table.stack-sm td, .table.stack-sm th { padding: 0; border: 0; text-align: left; }
  .table.stack-sm td.r { text-align: right; }
  /* customer invoices and orders: one tidy block per row, no sideways scrolling */
  .p-inv-t thead, .p-ord-t thead { display: none; }
  .p-inv-t tr, .p-ord-t tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .p-inv-t td, .p-ord-t td { padding: 0; border: 0; text-align: left; }
  .p-inv-t td:nth-child(2), .p-ord-t td:nth-child(3), .p-ord-t td:nth-child(4) { display: none; }
  .p-inv-t td:nth-child(3) { grid-area: 1 / 1; } .p-inv-t td:nth-child(4) { grid-area: 1 / 2; text-align: right; font-weight: 700; }
  .p-inv-t td:nth-child(1) { grid-area: 2 / 1; font-size: 13px; } .p-inv-t td:nth-child(5) { grid-area: 2 / 2; justify-self: end; }
  .p-inv-t td:nth-child(6) { grid-column: 1 / -1; } .p-inv-t td:nth-child(6):empty { display: none; } .p-inv-t td:nth-child(6) .btn { width: 100%; margin-top: 6px; }
  .p-ord-t td:nth-child(2) { grid-area: 1 / 1; } .p-ord-t td:nth-child(5) { grid-area: 1 / 2; text-align: right; font-weight: 700; }
  .p-ord-t td:nth-child(1) { grid-area: 2 / 1 / 3 / 3; font-size: 13px; } .p-ord-t td:nth-child(6) { grid-column: 1 / -1; } .p-ord-t td:nth-child(6) .btn { width: 100%; margin-top: 6px; }
  .table-wrap:has(.p-inv-t), .table-wrap:has(.p-ord-t) { overflow-x: visible; }
  .tabs { gap: 0 16px; flex-wrap: wrap; }
  .board { grid-auto-flow: row; grid-auto-columns: auto; overflow-x: visible; scroll-snap-type: none; }
}
.m-only { display: none; }
@media (max-width: 760px) { .m-only { display: inline; } }

/* booking fields line up: street and ZIP on one row, the day at half width */
.fields-addr { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.fields-half { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.book-form .field > small { min-height: 0; }
@media (max-width: 600px) { .fields-addr, .fields-half { grid-template-columns: minmax(0, 1fr); } }

/* booking: steps run across the top; the form and the price box start on the same line */
.book-in { row-gap: 18px; }
.book-steps { grid-column: 1 / -1; }
.fields-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-sum .boxsvg.is-sum { display: block; width: 100%; max-width: 260px; margin: 0 auto 10px; }
.bk-sum .eyebrow { margin-top: 4px; }
@media (max-width: 1000px) { .book-steps { order: -2; } .fields-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fields-3 > .field:nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .fields-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1000px) { .bk-sum .boxsvg.is-sum { display: none; } }


/* financials (top of Billing) */
.fin-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.fin-tile { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .12s, background .12s; }
.fin-tile:hover { border-color: var(--line-2); background: var(--sunk); }
.fin-tile .stat-value { font-size: 30px; }
.fin-tile .fin-go { position: absolute; top: 16px; right: 14px; width: 16px; height: 16px; color: var(--muted); }
.fin-tile.is-bad { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); background: color-mix(in srgb, var(--red) 7%, var(--surface)); }
.fin-tile.is-bad .stat-value { color: var(--red-ink); }
.fin-tile.is-warn .stat-value { color: var(--warn); }
.fin-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 16px; align-items: stretch; }
.fin-age, .fin-cash { display: grid; gap: 14px; align-content: start; }
.fin-bars { display: grid; gap: 2px; }
.fin-bar { display: grid; grid-template-columns: 96px minmax(0, 1fr) 84px; align-items: center; gap: 12px; min-height: 40px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.fin-bar:hover:not(:disabled) { background: var(--sunk); }
.fin-bar:disabled { cursor: default; opacity: .55; }
.fin-bar b { text-align: right; }
.fin-bar-t { height: 10px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.fin-bar-t span { display: block; height: 100%; min-width: 0; border-radius: 99px; }
.fin-bars .ag-3 { background: #c2410c; } .fin-bars .ag-4 { background: var(--red); }
.cash-chart { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; align-items: end; height: 190px; }
.cash-col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; align-items: end; gap: 6px; height: 100%; padding: 4px 0 0; border: 0; border-radius: 8px; background: none; color: inherit; font: inherit; cursor: pointer; }
.cash-col:hover:not(:disabled) { background: var(--sunk); }
.cash-col:disabled { cursor: default; }
.cash-amt { font-size: 12px; font-weight: 650; color: var(--ink-2); min-height: 15px; }
.cash-stack { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; width: min(34px, 70%); min-height: 0; align-self: end; }
.cash-stack > span { display: block; width: 100%; border-radius: 4px; }
.cash-a { background: var(--good); } .cash-b { background: var(--warn); }
.cash-wk { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cash-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.cash-key span { display: inline-flex; align-items: center; gap: 7px; } .cash-key i { width: 10px; height: 10px; border-radius: 3px; }
.fin-cash > p { margin: 0; }
.fin-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.fin-split > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--sunk); }
.fin-h { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 1000px) { .fin-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fin-row { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) { .fin-tile .stat-value { font-size: 24px; } .fin-bar { grid-template-columns: 78px minmax(0, 1fr) 70px; gap: 8px; font-size: 13px; } .cash-chart { gap: 2px; } .cash-amt { font-size: 10.5px; } .cash-wk { font-size: 10.5px; } }

/* customer notification settings */
.notif-to { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px 20px 6px; }
.notif-to > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--sunk); min-width: 0; }
.notif-to b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-grid { display: grid; padding: 6px 20px 4px; }
.notif-row { display: grid; grid-template-columns: minmax(0, 1fr) 64px 64px; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.notif-row > span:first-child { display: grid; gap: 2px; }
.notif-row > span:not(:first-child) { justify-self: center; }
.notif-head { border-top: 0; padding: 8px 0; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.notif-more { display: grid; gap: 14px; border-top: 1px solid var(--line); }
.sw { position: relative; display: inline-flex; cursor: pointer; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw-ui { width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); transition: background .15s; position: relative; }
.sw-ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.sw input:checked + .sw-ui { background: var(--good); }
.sw input:checked + .sw-ui::after { transform: translateX(18px); }
.sw input:focus-visible + .sw-ui { outline: 2px solid var(--info); outline-offset: 2px; }
@media (max-width: 560px) { .notif-to { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 4px; } .notif-grid { padding: 4px 16px; } .notif-row { grid-template-columns: minmax(0, 1fr) 48px 48px; gap: 6px; } }
.notif-more .fields-half { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .notif-more .fields-half { grid-template-columns: minmax(0, 1fr); } }

.p-up-btn { position: relative; }
.p-up-btn .fin-go { position: absolute; top: 18px; right: 16px; width: 16px; height: 16px; color: var(--muted); }
.up-day { padding: 14px 0 4px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border: 0 !important; list-style: none; }
#p-up-list .up-li { padding-left: 0; padding-right: 0; }

/* on site: grouped by job site, one row per box */
.os-sites { display: grid; gap: 14px; }
.os-site { overflow: hidden; }
.os-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.os-head > .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.os-head .li-main { display: grid; gap: 1px; min-width: 0; flex: 1; }
.os-over { color: var(--red-ink); font-weight: 650; }
.os-list { list-style: none; margin: 0; padding: 0; }
.os-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 190px auto; align-items: center; gap: 18px; padding: 14px 18px; border-top: 1px solid var(--line); }
.os-row:first-child { border-top: 0; }
.os-size { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--accent); color: var(--on-accent); line-height: 1; }
.os-size b { font: 700 22px/1 var(--display); } .os-size span { font-size: 11px; font-weight: 650; opacity: .85; }
.os-days { display: grid; gap: 6px; min-width: 0; }
.os-days .meter { height: 8px; }
.os-note { font-weight: 650; } .os-note.is-good { color: var(--good); } .os-note.is-warn { color: var(--warn); } .os-note.is-bad { color: var(--red-ink); }
.os-drop { margin-top: -2px; }
.os-plan { display: inline-flex; align-items: center; gap: 7px; justify-self: start; padding: 6px 10px; border-radius: 99px; background: var(--sunk); color: var(--ink-2); font-size: 13px; font-weight: 600; white-space: nowrap; }
.os-plan .ic { width: 15px; height: 15px; flex: none; }
.os-plan.is-info { background: var(--info-soft); color: var(--info); } .os-plan.is-warn { background: var(--warn-soft); color: var(--warn); }
.os-more .ic { width: 15px; height: 15px; } .os-more .os-dots { display: none; }
@media (max-width: 760px) {
  .os-row { grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "size days more" "size plan more"; gap: 8px 12px; padding: 14px 16px; }
  .os-row .os-size { grid-area: size; width: 46px; height: 46px; align-self: start; } .os-row .os-days { grid-area: days; } .os-row .os-plan { grid-area: plan; } .os-row .os-more { grid-area: more; align-self: start; }
  .os-more { width: 40px; height: 40px; padding: 0; justify-content: center; } .os-more .os-more-t, .os-more .os-chev { display: none; } .os-more .os-dots { display: block; width: 18px; height: 18px; }
  .os-head { padding: 12px 16px; flex-wrap: wrap; } .os-head > .muted { width: 100%; padding-left: 30px; }
}
.os-days .spread > span:first-child { white-space: nowrap; } .os-days .spread { flex-wrap: wrap; gap: 2px 10px; }

/* on site as a board */
.kboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kcol { display: grid; gap: 10px; padding: 12px; border-radius: 16px; background: var(--sunk); border: 1px solid var(--line); }
.kcol-head { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 2px 8px; padding: 2px 4px 4px; }
.kcol-head > .muted { grid-column: 1 / -1; }
.count-pill { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.kcol-need .count-pill { background: var(--ink); color: var(--surface); border-color: transparent; }
.kcol-list { display: grid; gap: 10px; }
.kcol-empty { margin: 0; padding: 18px 12px; border: 1.5px dashed var(--line-2); border-radius: 12px; text-align: center; color: var(--muted); font-size: 13px; }
.k-card { position: relative; display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer; transition: border-color .12s, box-shadow .12s, transform .06s; }
.k-card::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--good); }
.k-card.is-warn::before { background: var(--warn); } .k-card.is-bad::before { background: var(--red); }
.k-card:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.k-card:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; }
.k-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.k-top .os-size { width: 44px; height: 44px; border-radius: 10px; } .k-top .os-size b { font-size: 19px; }
.k-id { display: grid; gap: 1px; min-width: 0; } .k-id b, .k-id span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-dots { width: 18px; height: 18px; color: var(--muted); align-self: start; }
.k-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.k-foot .os-plan { padding: 4px 9px; font-size: 12.5px; }
@media (max-width: 900px) { .kboard { grid-template-columns: minmax(0, 1fr); } }
 /* keeps red for buttons and warnings so the board does not read red-and-green */

/* ---------- customer looks being tried ---------- */

/* Night */
.nh { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; padding-top: 6px; }
.nh-eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nh-title { margin: 0; font: 700 clamp(36px, 5vw, 58px)/.95 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.nh-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.nh-btn { height: 48px; padding: 0 18px; border-radius: 14px; background: transparent; border: 1px solid var(--line-2); color: var(--ink); font-weight: 650; }
.nh-btn:hover { border-color: var(--ink); }
.nh-btn.is-solid { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.nh-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.nt { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 0; color: inherit; font: inherit; text-align: left; }
button.nt { padding-right: 40px; cursor: pointer; } button.nt:hover { background: var(--raise); }
.nt-v { flex: none; font: 700 42px/1 var(--display); }
.nt-t { display: grid; gap: 3px; min-width: 0; }
.nt-l { font-size: 12px; font-weight: 700; line-height: 1.25; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.nt-n { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nt.is-late .nt-n { color: var(--red-ink); }
.nt-go { position: absolute; top: 50%; right: 16px; width: 16px; height: 16px; margin-top: -8px; color: var(--muted); }
.nh-card { display: grid; gap: 16px; padding: 22px; border-radius: 22px; background: var(--surface); }
.nh-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.nh-h { margin: 0; font: 700 30px/1 var(--display); text-transform: uppercase; }
.nh-sub { font-size: 13px; color: var(--muted); }
.pips { display: flex; gap: 3px; align-items: center; }
.pips i { flex: 1; max-width: 28px; height: 10px; border-radius: 3px; }
.pips i.is-used { background: var(--ink); } .pips i.is-over { background: var(--red); } .pips i.is-left { background: var(--line-2); }
.pips em { margin-left: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--red-ink); }
@media (max-width: 1000px) { .nh-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .nh-tiles { gap: 10px; } .nt { gap: 10px; padding: 14px; } button.nt { padding-right: 30px; } .nt-go { right: 10px; } .nt-v { font-size: 27px; } .nt-l { font-size: 11px; letter-spacing: .08em; } .nt-n { font-size: 10.5px; letter-spacing: .04em; white-space: nowrap; } .nh-card { padding: 16px; } .nh-acts { width: 100%; } .nh-acts .btn { flex: 1; } }

/* Rings: one card per box, a countdown ring on top */
.rc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rc {
  --rc-glow: none;
  display: grid; grid-template-rows: auto auto 1fr; justify-items: center; gap: 14px; padding: 22px 18px 0; overflow: hidden;
  border-radius: 18px; border: 1px solid var(--line); text-align: center; cursor: pointer;
  background: var(--rc-glow), linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, 0) 55%), var(--sunk);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: border-color .15s, background-color .15s;
}
.rc:hover { border-color: var(--line-2); background-color: var(--raise); }
.rc-ring { position: relative; width: 100px; height: 100px; }
.ring { display: block; width: 100%; height: 100%; }
.ring circle { fill: none; stroke-width: 7; }
.ring-bg { stroke: rgba(255, 255, 255, .07); }
.ring-fg { stroke: var(--ink); stroke-linecap: round; }
.ring.is-warn .ring-fg { stroke: var(--warn); } .ring.is-bad .ring-fg { stroke: var(--red); }
.rc-c { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; }
.rc-c b { font: 700 36px/.85 var(--display); font-variant-numeric: tabular-nums; text-transform: uppercase; letter-spacing: .01em; }
.rc-c b i { margin-right: 1px; font-style: normal; font-size: .62em; vertical-align: .16em; }
.rc-c span { font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rc-c.is-warn b { color: var(--warn); } .rc-c.is-bad b { color: var(--red-ink); }
.rc-id { display: grid; gap: 3px; max-width: 100%; }
.rc-id b { overflow: hidden; font-size: 15.5px; font-weight: 650; letter-spacing: -.005em; text-overflow: ellipsis; white-space: nowrap; }
.rc-id span { font-size: 13px; color: var(--muted); }
.rc-foot { align-self: end; justify-self: stretch; display: flex; justify-content: center; margin: 2px -18px 0; padding: 12px 16px 13px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .015); }
.rc-stat { display: inline-flex; align-items: center; gap: 7px; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.rc-stat .ic { width: 14px; height: 14px; }
.rc-stat.is-info { color: var(--info); } .rc-stat.is-need, .rc-stat.is-warn { color: var(--warn); }
@media (max-width: 1000px) { .rc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rc-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rc { grid-template: "ring id" auto "ring foot" auto / 80px minmax(0, 1fr); justify-items: start; align-items: center; gap: 6px 16px; padding: 14px 16px; text-align: left; }
  .rc-ring { grid-area: ring; width: 80px; height: 80px; }
  .rc-c { gap: 3px; } .rc-c b { font-size: 29px; } .rc-c span { font-size: 7px; letter-spacing: .05em; }
  .rc-id { grid-area: id; align-self: end; }
  .rc-foot { grid-area: foot; align-self: start; justify-self: start; margin: 0; padding: 0; border: 0; background: none; }
  .rc-stat { font-size: 11px; }
}

.bal-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.bal-top p { margin: 0; } .bal-top .big { margin: 2px 0; }
.bal-late { color: var(--red-ink); }
.bal-list .li { padding-left: 0; padding-right: 0; }
.bal-list .li .badge { margin-left: 4px; }
.hist-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hist-q { flex: 1; min-width: 220px; }
.seg.seg-sm button { min-height: 32px; padding: 0 12px; font-size: 13px; }
@media (max-width: 560px) { .hist-bar .seg { width: 100%; } .hist-bar .seg button { flex: 1; } .hist-q { min-width: 0; width: 100%; } }
/* day marks with a calendar scale (Night look) */


.rh-sec .nh-h { margin: 6px 0 0; }

/* Sizes (website): one segmented bar, one size at a time */
.sz-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sz-name, .sz-price { margin: 0; font: 700 44px/1 var(--display); }
.sz-name { text-transform: uppercase; letter-spacing: .01em; }
.sz-fits { margin: 0; color: var(--muted); font-size: 14.5px; }
.sz-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sz-stats > div { padding: 12px 0; } .sz-stats > div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.sz-stats dt { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sz-stats dd { margin: 4px 0 0; font-size: 15px; font-weight: 650; color: var(--ink); white-space: nowrap; }
.szp { display: grid; gap: 26px; }
.szp-tabs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 4px; border: 1px solid var(--line); border-radius: 16px; }
.szp-tab { position: relative; display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; transition: background .15s; }
.szp-tab b { font: 700 30px/1 var(--display); } .szp-tab span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.szp-tab + .szp-tab::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
.szp-tab.is-on::before, .szp-tab.is-on + .szp-tab::before { display: none; }
.szp-tab:hover:not(.is-on) { background: var(--sunk); }
.szp-tab.is-on { background: var(--ink); color: #fff; } .szp-tab.is-on span { color: rgba(255, 255, 255, .7); }
.szp-tab:focus:not(:focus-visible) { outline: none; }
.szp-panel { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 8px; }
.szp-panel[hidden] { display: none; }
.szp-art .boxsvg { width: 100%; }
.szp-info { display: grid; gap: 16px; }
.szp-book { height: 54px; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: #d8232a; color: #fff; font-size: 16px; font-weight: 750; }
.szp-book:hover { background: #e52b32; color: #fff; }
@media (max-width: 1000px) {
  .szp-panel { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .szp-tab b { font-size: 24px; } .szp-tab span { font-size: 9.5px; letter-spacing: .05em; }
}
@media (max-width: 640px) { .sz-name, .sz-price { font-size: 36px; } }

/* Prices: two columns */
.price-cols.is-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .price-cols.is-two { grid-template-columns: minmax(0, 1fr); } }

/* Driver route, live layout: map on top, one card, one action at the bottom */
.lv { position: relative; display: grid; margin: 0 -16px; }
.lv-map { height: clamp(220px, 38vh, 380px); background: var(--map-land); }
.lv-map .leaflet-container { background: var(--map-land); }
.lv-card { position: relative; z-index: 2; display: grid; gap: 14px; margin-top: -26px; padding: 20px 18px 18px; border-radius: 24px 24px 0 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -14px 34px -18px rgba(0, 0, 0, .7); }
.lv-card::before { content: ""; justify-self: center; width: 40px; height: 4px; margin: -8px 0 2px; border-radius: 99px; background: var(--line-2); }
.lv-eta { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lv-eta b { font: 700 34px/1 var(--display); text-transform: uppercase; color: var(--good); }
.lv-eta span { font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.lv-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.lv-tag { padding: 4px 10px; border-radius: 99px; background: var(--sunk); border: 1px solid var(--line); font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.lv-tag.is-pickup, .lv-tag.is-swap, .lv-tag.is-relocate { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.lv-tag.is-delivery { background: var(--info-soft); border-color: transparent; color: var(--info); }
.lv-tag.is-dump { background: var(--sunk); color: var(--ink); }
.lv-addr { margin: -4px 0 0; font: 700 32px/1 var(--display); text-transform: uppercase; letter-spacing: .005em; }
.lv-sub { margin-top: -8px; font-size: 15px; color: var(--ink-2); }
.lv-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--sunk); border: 1px solid var(--line); font-size: 15px; color: var(--ink); }
.lv-note .ic { flex: none; margin-top: 1px; color: var(--ink-2); }
.lv-note.is-warn { background: var(--warn-soft); border-color: transparent; } .lv-note.is-warn .ic { color: var(--warn); }
.lv-note.is-good { background: var(--good-soft); border-color: transparent; } .lv-note.is-good .ic { color: var(--good); }
.lv-btns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 4px 0 2px; }
.lv-rb { display: grid; justify-items: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--ink-2); font-size: 12.5px; font-weight: 650; text-decoration: none; cursor: pointer; }
.lv-rb > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--raise); border: 1px solid var(--line-2); color: var(--ink); transition: background .15s; }
.lv-rb:hover > span { background: var(--line); } .lv-rb .ic { width: 22px; height: 22px; }
.lv-main { display: flex; align-items: center; justify-content: center; gap: 10px; height: 64px; border: 0; border-radius: 18px; background: var(--ink); color: var(--on-ink); font-size: 18px; font-weight: 750; cursor: pointer; }
.lv-main .ic { width: 22px; height: 22px; }

/* the slide-to-confirm control */
.swipe { --p: 0; position: relative; display: grid; align-items: center; height: 64px; padding: 4px; border-radius: 18px; background: var(--raise); border: 1px solid var(--line-2); overflow: hidden; user-select: none; }
.swipe::before { content: ""; position: absolute; inset: 0; background: var(--good-soft); transform-origin: left; transform: scaleX(var(--p)); }
.swipe.is-go { background: var(--good-soft); border-color: transparent; }
.swipe.is-go::before { background: color-mix(in srgb, var(--good) 30%, transparent); }
.swipe-label { position: relative; text-align: center; padding-left: 56px; font-size: 17px; font-weight: 750; color: var(--ink); opacity: calc(1 - var(--p) * 1.4); pointer-events: none; }
.swipe-knob { position: absolute; left: 4px; top: 4px; display: grid; place-items: center; width: 56px; height: 54px; border: 0; border-radius: 14px; background: var(--ink); color: var(--on-ink); cursor: grab; touch-action: none; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.swipe.is-go .swipe-knob { background: var(--good); color: #0e0e0f; }
.swipe.is-drag .swipe-knob { transition: none; cursor: grabbing; }
.swipe-knob .ic { width: 24px; height: 24px; stroke-width: 2.4; }
.swipe.is-nudge .swipe-knob { animation: lv-nudge .4s; }
@keyframes lv-nudge { 30% { transform: translateX(22px); } 60% { transform: translateX(-4px); } }

/* map markers */
.lv-truck { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--on-ink); border: 3px solid var(--surface); box-shadow: 0 4px 12px rgba(0, 0, 0, .5); }
.lv-truck .ic { width: 18px; height: 18px; }
.lv-pin.is-dest { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--good); border: 3px solid var(--surface); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.lv-pin.is-dest > * { transform: rotate(45deg); } .lv-pin.is-dest b { font: 700 18px/1 var(--display); color: #0e0e0f; } .lv-pin.is-dest .ic { width: 18px; height: 18px; color: #0e0e0f; }
.lv-pin.is-dump { background: var(--warn); }
.lv-pin.is-later { display: block; width: 14px; height: 14px; border-radius: 50%; background: var(--ink-2); border: 3px solid var(--surface); opacity: .8; }

@media (min-width: 700px) { .lv { margin: 0; } .lv-map { border-radius: 20px 20px 0 0; } .lv-card { border: 1px solid var(--line); border-radius: 24px; margin-bottom: 70px; } }
.lv-head { display: grid; gap: 8px; margin-bottom: 12px; font-size: 14px; } .lv-head b { font-size: 15px; }
.lv-clock { margin-bottom: 12px; padding: 8px 8px 8px 14px; }
.lv-card { padding-bottom: 76px; }
@media (min-width: 700px) { .lv-card { padding-bottom: 18px; } }
/* keep the one action at the thumb: it rides above the tab bar while the card scrolls */
.lv-card > .lv-main, .lv-card > .swipe { position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 3; box-shadow: 0 0 0 8px var(--surface), 0 -18px 24px -6px var(--surface); }
.lv-card { padding-bottom: 18px; }
@media (max-width: 699px) { .lv-map { height: clamp(200px, 30vh, 300px); } }
/* keep the map's own layers inside the map, so sheets and menus always sit on top */
.lv-map, .map { position: relative; z-index: 0; isolation: isolate; }

/* Driver: truck check */
.pt-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pt-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.pt-seg { flex: none; }
.pt-seg button { display: inline-flex; align-items: center; gap: 5px; min-height: 40px; }
.pt-seg button .ic { width: 16px; height: 16px; }
.pt-seg [data-v="ok"][aria-pressed="true"] { background: var(--good-soft); color: var(--good); }
.pt-seg [data-v="bad"][aria-pressed="true"] { background: var(--red-soft); color: var(--red-ink); }

/* Driver: at the box */
.pk-photo { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 64px; border: 1.5px dashed var(--line-2); border-radius: 14px; font-weight: 700; cursor: pointer; }
.pk-photo.is-done { border-style: solid; border-color: transparent; background: var(--good-soft); color: var(--good); }
.pk-extras { display: grid; border-top: 1px solid var(--line); }
.pk-x { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pk-x > span { display: grid; font-weight: 600; } .pk-x small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--raise); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.stepper b { min-width: 28px; text-align: center; font-size: 18px; }
.pk-over { display: flex; align-items: center; gap: 10px; padding: 12px 0 2px; font-weight: 600; }
.pk-over input { width: 22px; height: 22px; accent-color: var(--warn); }


/* Office "Other": ideas for later */

/* Dispatch: only what needs a decision */
.todos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; margin-bottom: 18px; }
.todo { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 12px 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14.5px; }
.todo > .ic:first-child { flex: none; width: 20px; height: 20px; }
.todo > span { flex: 1; } .todo b { font-weight: 750; }
.todo.is-bad > .ic:first-child { color: var(--red-ink); } .todo.is-warn > .ic:first-child { color: var(--warn); }
.todo.is-bad { border-color: color-mix(in srgb, var(--red) 35%, var(--line)); }
a.todo:hover { border-color: var(--line-2); background: var(--raise); }
.todo-go { width: 18px; height: 18px; color: var(--muted); }
.todo .btn { flex: none; }
.col-now { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.col-now .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.col-now.is-go .dot { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); } .col-now.is-go { color: var(--ink); }
.col-now.is-warn .dot { background: var(--warn); } .col-now.is-warn { color: var(--warn); }
.col-now.is-done .dot { background: var(--good); }
.col-load .is-over { font-weight: 700; color: var(--red-ink); }

/* sidebar fits short windows: spacing shrinks with the window height */
.rail { gap: clamp(6px, 1.4vh, 14px); padding-top: clamp(10px, 1.8vh, 16px); padding-bottom: clamp(8px, 1.4vh, 14px); }
.rail .nav-g { gap: clamp(1px, .6vh, 6px); padding: clamp(4px, 1.2vh, 12px) 0; }
.nav-i { padding: clamp(6px, 1vh, 10px) 2px clamp(5px, .9vh, 9px); }
.todos { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1300px) { .todos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .todos { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) { .todos { grid-template-columns: minmax(0, 1fr); } }
.todo.is-ok { color: var(--ink-2); } .todo.is-ok > .ic:first-child { color: var(--good); }

button.todo { font: inherit; text-align: left; cursor: pointer; } button.todo:hover { border-color: var(--line-2); background: var(--raise); }
.reqs .inbox-card { box-shadow: none; }

.day-pick { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 150px; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.day-pick:hover { background: var(--sunk); }
.day-pick .ic { position: absolute; left: 14px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; color: var(--muted); }
.day-pick { padding: 0 38px; }
.day-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.day-pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

.link-btn { display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: var(--ink-2); font: inherit; font-weight: 650; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); } .link-btn .ic { width: 14px; height: 14px; transition: transform .15s; } .link-btn[aria-expanded="true"] .ic { transform: rotate(180deg); }
.col-done .tk { opacity: .7; }

/* a board that holds still: fixed Not assigned column, steady column heights */
.board { grid-template-columns: 280px; }
.board > .col { min-height: max(460px, calc(100vh - 318px)); min-height: max(460px, calc(100dvh - 318px)); align-content: start; }
.col.is-un.is-clear { background: var(--surface); border-style: solid; border-color: var(--line); }
.col-empty.is-good { gap: 6px; grid-auto-flow: column; justify-content: center; align-items: center; border-style: solid; border-color: transparent; background: var(--good-soft); color: var(--good); font-weight: 650; }
.col-empty.is-good .ic { width: 16px; height: 16px; }
.tk.is-landed { animation: tk-land 1.5s ease-out; }
@keyframes tk-land { 0%, 35% { box-shadow: 0 0 0 2px var(--good), 0 0 0 7px var(--good-soft); } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .tk.is-landed { animation: none; outline: 2px solid var(--good); } }

/* Dispatch: the week strip */
.wk-strip { margin: 0 0 14px; }
.wk-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "d n" "s s" "b b"; align-items: baseline; gap: 2px 8px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.wk:hover { border-color: var(--line-2); }
.wk.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.wk.is-past, .wk.is-off { opacity: .55; }
.wk-d { grid-area: d; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wk.is-on .wk-d { color: var(--ink); }
.wk-n { grid-area: n; font: 700 22px/1 var(--display); justify-self: end; }
.wk-s { grid-area: s; font-size: 13px; color: var(--ink-2); }
.wk-bar { grid-area: b; display: block; height: 4px; margin-top: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.wk-bar i { display: block; height: 100%; border-radius: inherit; background: var(--good); }
.wk-bar.is-warn i { background: var(--warn); } .wk-bar.is-bad i { background: var(--red); }
.wk-un { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px var(--bg); }
.wk-step { flex: none; }
.day-jump { position: relative; }
.day-jump input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.day-jump input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
@media (max-width: 900px) { .wk-days { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 92px; overflow-x: auto; } }

.month-btn { gap: 8px; min-height: 40px; padding: 0 12px 0 14px; }
.month-btn .ic { width: 16px; height: 16px; } .month-btn .ic:last-child { color: var(--muted); transition: transform .15s; }
.month-btn.is-on .ic:last-child { transform: rotate(180deg); }
.mo { margin: 0 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.mo-head { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 10px; }
.mo-head h2 { min-width: 190px; text-align: center; font: 700 22px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.mo-dow, .mo-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.mo-dow { margin-bottom: 6px; } .mo-dow span { padding: 0 12px; font-size: 11.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mo .wk { padding: 8px 10px 10px; background: var(--bg); }
.mo .wk:not(.is-today) .wk-d { visibility: hidden; }
.mo .wk.is-other { opacity: .35; }

/* month view, refined */
.mo { padding: 18px 18px 14px; }
.mo-head { position: relative; margin-bottom: 14px; }
.mo-today { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
.mo-days { gap: 6px; }
.mo .wk { min-height: 84px; padding: 9px 11px 10px; border-color: transparent; background: var(--sunk); align-content: start; }
.mo .wk:hover { border-color: var(--line-2); }
.mo .wk.is-past { opacity: 1; background: transparent; border-color: var(--line); }
.mo .wk.is-past .wk-n, .mo .wk.is-past .wk-s { color: var(--muted); }
.mo .wk.is-past .wk-bar { visibility: hidden; }
.mo .wk.is-off { opacity: 1; background: transparent; } .mo .wk.is-off .wk-s, .mo .wk.is-off .wk-n { color: var(--muted); } .mo .wk.is-off .wk-bar { visibility: hidden; }
.mo .wk.is-other { opacity: 1; background: transparent; border-color: transparent; min-height: 84px; cursor: pointer; }
.mo .wk.is-other .wk-n { color: color-mix(in srgb, var(--muted) 55%, transparent); font-size: 18px; }
.mo .wk.is-today { border-color: var(--good); box-shadow: inset 0 0 0 1px var(--good); background: var(--raise); }
.mo .wk.is-today .wk-d { color: var(--good); }
.mo .wk.is-on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mo .wk-n { font-size: 20px; }
.mo-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.mo-key span { display: inline-flex; align-items: center; gap: 7px; }
.mo-key .k { width: 16px; height: 4px; border-radius: 99px; background: var(--good); } .mo-key .k.is-warn { background: var(--warn); } .mo-key .k.is-bad { background: var(--red); }
.mo-key .k-un { display: grid; place-items: center; min-width: 18px; height: 18px; border-radius: 99px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; }
.wk.is-empty:not(.is-off) .wk-s { color: var(--muted); }
.mo .wk-bar.is-none { visibility: hidden; }

.wk-tags { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.wk-tag { padding: 2px 7px; border-radius: 6px; background: var(--raise); border: 1px solid var(--line); font-size: 11px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.wk-tag.is-bad { background: var(--red-soft); border-color: transparent; color: var(--red-ink); }
.wk-tag.is-warn { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.wk-tag.is-quiet { background: none; border-color: transparent; padding: 2px 0; color: var(--muted); font-weight: 600; }
.wk { align-content: start; }

/* day hover card */
.hc { position: fixed; z-index: 80; width: 290px; padding: 14px 14px 10px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--raise); color: var(--ink); box-shadow: var(--sh-3); font-size: 13px; pointer-events: none; animation: hc-in .12s ease-out; }
@keyframes hc-in { from { opacity: 0; transform: translateY(4px); } }
.hc-date { margin: 0 0 8px; font: 700 17px/1.1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.hc-sec { padding: 8px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.hc-h { margin: 0 0 2px; font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hc-row { display: flex; justify-content: space-between; gap: 12px; } .hc-row span { color: var(--ink-2); } .hc-row b { font-weight: 650; text-align: right; }
.hc-row b.is-bad { color: var(--red-ink); }
.hc-boxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.hc-boxes span { display: flex; align-items: baseline; gap: 5px; padding: 4px 7px; border-radius: 7px; background: var(--sunk); color: var(--muted); font-size: 11.5px; }
.hc-boxes b { font-size: 14px; color: var(--ink); }
.hc-boxes .is-warn { background: var(--warn-soft); } .hc-boxes .is-warn b { color: var(--warn); }
.hc-boxes .is-bad { background: var(--red-soft); } .hc-boxes .is-bad b { color: var(--red-ink); }
.hc-line { margin: 0; color: var(--ink-2); } .hc-muted { margin: 0; color: var(--muted); }
.hc-foot { margin: 4px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.b-opt { flex: none; color: var(--ink-2); } .b-opt:hover { color: var(--ink); }

/* follow-up list */
.fu .li { cursor: pointer; } .fu .li:hover { background: var(--sunk); } .fu .li > .ic { width: 18px; height: 18px; color: var(--muted); }
.fu-what { color: var(--warn); font-weight: 700; }
/* history: proof icons */
.pfs { display: inline-flex; gap: 6px; }
.pf { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 7px; background: var(--sunk); font-size: 12px; font-weight: 700; color: var(--muted); }
.pf .ic { width: 15px; height: 15px; }
.pf.is-ok { color: var(--good); background: var(--good-soft); } .pf.is-open { color: var(--warn); background: var(--warn-soft); }
.pf.is-bad, .pf.is-miss { color: var(--red-ink); background: var(--red-soft); } .pf.is-none { opacity: .5; }
/* job record */
.rec-h { margin: 0 0 8px; font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ph-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ph-ex { margin: 0; }
.ph-img { display: grid; place-items: center; gap: 4px; aspect-ratio: 4 / 3; border-radius: 10px; border: 1px dashed var(--line-2); background: linear-gradient(135deg, var(--sunk), var(--raise)); color: var(--muted); font-size: 12px; }
.ph-img .ic { width: 22px; height: 22px; }
.ph-ex figcaption { margin-top: 5px; font-size: 12.5px; color: var(--ink-2); }
.tk-ex { display: grid; gap: 6px; max-width: 360px; padding: 14px; border-radius: 10px; background: #f4f4f1; color: #1b1b1b; font-family: var(--mono); font-size: 13px; }
.tk-ex-head { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px dashed #b9b9b4; }
.tk-ex-row { display: flex; justify-content: space-between; }
.tk-ex .muted { color: #6b6b66; font-family: var(--font); }
.rec-inv { padding: 10px 12px; margin-bottom: 6px; border-radius: 10px; background: var(--sunk); }

.tl-rec { display: grid; gap: 0; margin: 0 0 10px; padding: 0; list-style: none; }
.tl-rec li { position: relative; display: flex; gap: 12px; padding: 0 0 12px; font-size: 14px; }
.tl-rec li:last-child { padding-bottom: 0; }
.tl-rec li i { position: relative; flex: none; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); }
.tl-rec li:not(:last-child) i::after { content: ""; position: absolute; left: 3px; top: 12px; width: 2px; height: 22px; background: var(--line-2); }
.tl-rec li.is-here i { border-color: var(--good); background: var(--good); }
.rec-days { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 12px; border-radius: 10px; background: var(--sunk); font-size: 13.5px; color: var(--ink-2); }
.rec-days b { color: var(--ink); } .rec-days .is-extra b { color: var(--red-ink); }
.rec-texts { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rec-texts li { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--sunk); max-width: 520px; }
.rec-texts p { margin: 0; font-size: 13.5px; }
.rec-changes p { margin: 0 0 4px; }

.cust-contact { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cust-contact .kv dd .btn { margin-left: 6px; vertical-align: middle; } .cust-contact .kv dd .btn .ic { width: 15px; height: 15px; }
.ce { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.no-mode { align-self: start; } .no-mode button { display: inline-flex; align-items: center; gap: 5px; } .no-mode .ic { width: 14px; height: 14px; }
[hidden].no-addr { display: none !important; }

.size-word { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; font-size: 13px; font-weight: 700; }
.size-word i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.size-word.is-good { color: var(--good); } .size-word.is-warn { color: var(--warn); } .size-word.is-bad { color: var(--red-ink); }
.box-rm { margin-right: auto; color: var(--red-ink); }
.box-rm-sec { display: grid; justify-items: start; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.box-rm[disabled] { opacity: .45; cursor: not-allowed; }
/* list rows in panels: the hover highlight gets breathing room and soft corners instead of a hard flush block */
.fu .li, .bal-list .li { padding: 12px 14px; margin: 0 -14px; width: calc(100% + 28px); border-radius: 12px; }
.fin-sheet button.li:hover, .fu .li:hover, .bal-list button.li:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.fin-sheet .list > li + li, .fu > li + li { border-top: 0; }

/* Financials drill-downs: one card per customer, invoices as rows inside it */
.fin-group { border: 1px solid var(--line); border-radius: 14px; background: var(--sunk); overflow: hidden; }
.fin-group + .fin-group { margin-top: 10px; }
.fg-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--raise); }
.fg-name { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 15px; font-weight: 750; cursor: pointer; }
.fg-name .ic { width: 15px; height: 15px; color: var(--muted); } .fg-name:hover .ic { color: var(--ink); }
.fg-count { font-size: 12.5px; color: var(--muted); }
.fg-total { margin-left: auto; font-size: 15.5px; }
.fg-list { margin: 0; padding: 0; list-style: none; }
.fg-list > li + li { border-top: 1px solid var(--line); }
.fin-sheet .li.iv { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px 18px; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 11px 16px; border-radius: 0; }
.fin-sheet .li.iv:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.iv .li-title { font-weight: 650; } .iv-no { margin-left: 4px; font-weight: 500; color: var(--muted); }
.iv-when { padding: 3px 9px; border-radius: 99px; background: var(--raise); font-size: 12px; font-weight: 650; color: var(--ink-2); white-space: nowrap; }
.iv-when.is-late { background: var(--warn-soft); color: var(--warn); } .iv-when.is-bad { background: var(--red-soft); color: var(--red-ink); } .iv-when.is-paid { background: var(--good-soft); color: var(--good); }
.iv-amt { text-align: right; }
.iv .row-go { width: 16px; height: 16px; color: var(--muted); }
.fin-row { grid-template-columns: minmax(0, 1fr) !important; }
.cash-chart { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.fin-cash .cash-stack { width: min(140px, 46%) !important; }

.remind-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--raise); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.remind-bar > span { display: inline-flex; align-items: center; gap: 8px; } .remind-bar .ic { width: 17px; height: 17px; } .remind-bar > span .ic { color: var(--good); }

/* Tons entry: input and button share one baseline and height */
.tons-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; }
.tons-row .input, .tons-row .btn { height: 46px; }
.tons-row .btn { padding: 0 20px; }

/* ---------- Revenue ---------- */
.rv-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr); }
.rv-main { display: grid; gap: 8px; align-content: center; padding: 24px 26px; }
.rv-big { font: 700 58px/.9 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.rv-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); }
.rv-chg { display: inline-flex; align-items: center; gap: 2px; padding: 2px 8px 2px 5px; border-radius: 99px; font-weight: 750; font-size: 12.5px; }
.rv-chg .ic { width: 14px; height: 14px; }
.rv-chg.is-up { background: var(--good-soft); color: var(--good); } .rv-chg.is-down { background: var(--red-soft); color: var(--red-ink); }
.rv-side { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 1px solid var(--line); }
.rv-side > div { display: grid; gap: 6px; align-content: center; padding: 20px 22px; }
.rv-side > div + div { border-left: 1px solid var(--line); }
.rv-side b { font: 700 30px/.9 var(--display); font-variant-numeric: tabular-nums; }
.rv-side small { font-size: 12.5px; color: var(--muted); }

.rv-chart { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: 240px auto; margin-top: 18px; }
.rv-grid { position: absolute; inset: 0 0 auto 0; height: 240px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.rv-grid span { position: relative; height: 0; border-top: 1px dashed var(--line); margin-left: 44px; }
.rv-grid span:last-child { border-top: 1px solid var(--line-2); border-top-style: solid; }
.rv-grid em { position: absolute; right: calc(100% + 10px); top: -8px; font-style: normal; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rv-plot { position: relative; grid-column: 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; height: 240px; padding: 0 6px; }
.rv-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; }
.rv-bar { position: relative; display: block; width: min(52px, 72%); min-height: 3px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--red) 0%, color-mix(in srgb, var(--red) 70%, var(--surface)) 100%); transition: filter .15s, box-shadow .15s; }
.rv-col:hover .rv-bar { filter: brightness(1.15); box-shadow: 0 0 0 2px color-mix(in srgb, var(--red) 35%, transparent); }
.rv-col.is-now .rv-bar { background: repeating-linear-gradient(135deg, var(--red) 0 6px, color-mix(in srgb, var(--red) 45%, var(--surface)) 6px 12px); }
.rv-v { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.rv-col:hover .rv-v, .rv-col.is-now .rv-v { color: var(--ink); }
.rv-col:hover .rv-v { opacity: 0; }
.rv-chart.is-many .rv-tip { bottom: calc(100% + 8px); }
.rv-avg { position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px dashed color-mix(in srgb, var(--ink) 30%, transparent); pointer-events: none; z-index: 1; }
.rv-avg em { position: absolute; right: 0; top: -22px; padding: 2px 7px; border-radius: 6px; background: var(--raise); border: 1px solid var(--line); font-style: normal; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.rv-tip { position: absolute; bottom: calc(100% + 28px); left: 50%; z-index: 3; display: grid; gap: 2px; min-width: 150px; padding: 9px 12px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line-2); box-shadow: var(--sh-2); font-size: 12.5px; color: var(--ink-2); white-space: nowrap; opacity: 0; transform: translate(-50%, 4px); pointer-events: none; transition: opacity .12s, transform .12s; }
.rv-tip b { color: var(--ink); font-size: 13px; }
.rv-col:hover .rv-tip { opacity: 1; transform: translate(-50%, 0); }
.rv-col:first-child .rv-tip { left: 0; transform: translate(0, 4px); } .rv-col:first-child:hover .rv-tip { transform: none; }
.rv-col:last-child .rv-tip { left: auto; right: 0; transform: translate(0, 4px); } .rv-col:last-child:hover .rv-tip { transform: none; }
.rv-x { grid-column: 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; padding: 10px 6px 0; }
.rv-x span { text-align: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.rv-x span:last-child { color: var(--ink); font-weight: 700; }
.rv-chart.is-many .rv-plot, .rv-chart.is-many .rv-x { gap: 3px; }
.rv-chart.is-many .rv-bar { width: 100%; border-radius: 3px 3px 1px 1px; }

.rv-pair > .card { display: grid; align-content: start; gap: 14px; }
.rv-cust { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.rv-cust button { display: grid; grid-template-columns: 18px 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.rv-cust button:hover { background: var(--sunk); }
.rv-rank { font-size: 12px; font-weight: 750; color: var(--muted); text-align: center; }

.rv-cust .avatar { background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
.rv-who { display: grid; gap: 7px; min-width: 0; }
.rv-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 650; }
.rv-line { display: block; height: 4px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.rv-line i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.rv-amt { display: grid; justify-items: end; gap: 2px; }
.rv-amt b { font-size: 14.5px; font-weight: 750; }
.rv-amt small { font-size: 12px; color: var(--muted); }
.rv-stack { display: flex; gap: 3px; height: 14px; }
.rv-stack span { display: block; min-width: 4px; border-radius: 4px; }
.rv-sizes { display: grid; margin: 0; padding: 0; list-style: none; }
.rv-sizes li { display: grid; grid-template-columns: 12px 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 4px; font-size: 13.5px; }
.rv-sizes li + li { border-top: 1px solid var(--line); }
.rv-sizes .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-sw { width: 12px; height: 12px; border-radius: 4px; }
@media (max-width: 1100px) { .rv-hero { grid-template-columns: minmax(0, 1fr); } .rv-side { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 560px) { .rv-side { grid-template-columns: minmax(0, 1fr); } .rv-side > div + div { border-left: 0; border-top: 1px solid var(--line); } .rv-big { font-size: 46px; } .rv-chart { grid-template-columns: 36px minmax(0, 1fr); } .rv-grid span { margin-left: 36px; } .rv-v { display: none; } }

/* Chart series colors (validated categorical palette, fixed order) */
.c-1 { --c: #257de0; } .c-2 { --c: #f47230; } .c-3 { --c: #00b894; } .c-4 { --c: #f2a600; } .c-5 { --c: #ee7fac; } .c-6 { --c: #008a17; }
:root[data-theme="dark"] .c-1, .c-1, :root[data-look="rings"] .c-1 { --c: #338ced; }
:root[data-theme="dark"] .c-2, .c-2, :root[data-look="rings"] .c-2 { --c: #e76624; }
:root[data-theme="dark"] .c-3, .c-3, :root[data-look="rings"] .c-3 { --c: #00a888; }
:root[data-theme="dark"] .c-4, .c-4, :root[data-look="rings"] .c-4 { --c: #d28e05; }
:root[data-theme="dark"] .c-5, .c-5, :root[data-look="rings"] .c-5 { --c: #e24d8b; }
:root[data-theme="dark"] .c-6, .c-6, :root[data-look="rings"] .c-6 { --c: #0aac23; }
.rv-stack .c-1, .rv-stack .c-2, .rv-stack .c-3, .rv-stack .c-4, .rv-stack .c-5, .rv-stack .c-6, .rv-sw { background: var(--c); }
.rv-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: var(--c); vertical-align: 1px; }
.rv-side > div { position: relative; }
.rv-keep { color: var(--good); font-weight: 750; }
.rv-hero { background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--red) 12%, transparent) 0%, transparent 45%), var(--surface); }
.rv-cust .rv-amt small, .rv-sizes .rv-amt small { font-weight: 650; }
.tabs-bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.tabs-bar > .tabs { border-bottom: 0; margin-bottom: 0; }
.tabs-right { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.range-seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); box-shadow: none; }

/* Balance: amounts in their own right-aligned column; the past-due pill sits in a narrow unlabeled column after it */
.table .bal-tag, .table .bal-tag-h { width: 1%; padding-left: 0; white-space: nowrap; }

.qb-sync { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.qb-sync:hover { border-color: var(--line-2); color: var(--ink); }
.qb-sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.qb-sync.is-busy i { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); animation: qbpulse 1s ease-in-out infinite; }
@keyframes qbpulse { 50% { opacity: .35; } }
.no-hold { display: flex; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--red) 45%, var(--line)); background: var(--red-soft); }
.no-hold[hidden] { display: none; }
.no-hold > .ic { flex: none; width: 20px; height: 20px; color: var(--red-ink); margin-top: 1px; }
.no-hold div { display: grid; gap: 2px; font-size: 14px; } .no-hold b { color: var(--red-ink); } .no-hold span { color: var(--ink-2); }

.filters > .push-r { margin-left: auto; }

/* Coming in: stacked sent + estimated, same chart frame as Billed by week */
.rv-coming .rv-col { border: 0; background: none; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.rv-coming .rv-col:disabled { cursor: default; }
.rv-split { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; background: none !important; width: min(72px, 60%); }
.rv-split > i { display: block; width: 100%; border-radius: 3px; }
.rv-split > i:first-of-type { border-top-left-radius: 8px; border-top-right-radius: 8px; }
.is-sent { background: var(--good); }
.is-est { background: repeating-linear-gradient(135deg, var(--good) 0 6px, color-mix(in srgb, var(--good) 35%, var(--surface)) 6px 12px); }
.rv-coming .rv-col:hover .rv-split { filter: brightness(1.12); }
.rv-key { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 13px; color: var(--ink-2); }
.rv-key span { display: inline-flex; align-items: center; gap: 8px; } .rv-key i { width: 12px; height: 12px; border-radius: 3px; }
.rv-coming .rv-x span:last-child { color: var(--muted); font-weight: 400; }
.rv-coming + .rv-key { margin-top: 14px; }
.rv-coming .rv-col:hover .rv-bar { box-shadow: none; }
/* Reports color */
.hbar-fill.is-cat { background: var(--c); }
.hbar-l .rv-dot { width: 7px; height: 7px; }
.rv-chart.is-blue { --c: #257de0; }
:root[data-theme="dark"] .rv-chart.is-blue, .rv-chart.is-blue, :root[data-look="rings"] .rv-chart.is-blue { --c: #338ced; }
.rv-chart.is-blue .rv-bar { background: linear-gradient(180deg, var(--c) 0%, color-mix(in srgb, var(--c) 70%, var(--surface)) 100%); }
.rv-chart.is-blue .rv-col:hover .rv-bar { box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 35%, transparent); }
.rv-chart.is-blue .rv-col.is-now .rv-bar { background: repeating-linear-gradient(135deg, var(--c) 0 6px, color-mix(in srgb, var(--c) 40%, var(--surface)) 6px 12px); }
.kpis .stat { position: relative; }

.rc-c b.is-word { font-size: 25px; letter-spacing: .03em; }
@media (max-width: 480px) { .rc-c b.is-word { font-size: 20px; } }

/* Customer account: saved card */
.pay-row { display: flex; align-items: center; gap: 14px; }
.pay-chip { display: grid; place-items: center; width: 44px; height: 32px; flex: none; border-radius: 7px; background: var(--sunk); border: 1px solid var(--line-2); }
.pay-chip .ic { width: 20px; height: 20px; color: var(--ink-2); }
.pay-card.is-warn { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.pay-card.is-warn .pay-row .muted { color: var(--warn); }
.pay-secure { display: flex; gap: 8px; align-items: flex-start; margin: 0; } .pay-secure .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* No customer or driver on file yet */
.nobody main { min-height: 70vh; display: grid; place-items: center; }
.nobody-card { max-width: 440px; } .nobody-card > .ic { width: 34px; height: 34px; color: var(--muted); }
.size-word.is-muted { color: var(--muted); } .size-word.is-muted i { background: var(--line-2); }
.qb-sync .ic { width: 15px; height: 15px; } .qb-sync .count { margin-left: 2px; }

/* Send routes */
.sent-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 99px; background: var(--good-soft); color: var(--good); font-size: 13px; font-weight: 650; }
.sent-pill .ic { width: 15px; height: 15px; }
.pill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: var(--sunk); color: var(--muted); font-size: 11.5px; font-weight: 650; vertical-align: 1px; }
.pill.is-good { background: var(--good-soft); color: var(--good); }
.field[hidden], .fields[hidden] { display: none !important; }

/* Shared database status (Setup > Data) */
.sync-line { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--ink-2); }
.sync-line i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.sync-line.is-online i { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.sync-line.is-offline i { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.gate-card { max-width: 420px; width: 100%; margin-inline: auto; } .gate-card > .ic { width: 26px; height: 26px; color: var(--muted); }
.sync-wait { min-height: 60vh; display: grid; place-items: center; grid-auto-flow: column; gap: 8px; color: var(--muted); } .sync-wait .ic { width: 18px; height: 18px; }

/* Staff sign-in, invite links and owner tools */
.gate-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.warn-text { color: var(--warn); }
.invite-link { display: flex; gap: 8px; } .invite-link .input { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); }
.invite-share .row .btn { flex: 1; justify-content: center; }
.login-add { padding-top: 14px; border-top: 1px solid var(--line); }
.ts-box { min-height: 65px; margin-top: 12px; }

/* History: Show more */
.row-center { display: flex; justify-content: center; }

/* Dispatch: a day in the week strip a stop is being dragged onto */
.wk.is-over { border-color: var(--ink); background: var(--sunk); box-shadow: 0 0 0 2px var(--ink); }

/* Schedule pickup (job record and job sheet) */
.pk-line { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--sunk); border: 1px solid var(--line); font-size: 14.5px; }
.pk-line > span { flex: 1; min-width: 0; } .pk-line .ic { color: var(--ink-2); }
.rec .rec-days + .btn, .rec .rec-days + .pk-line { margin-top: 12px; }
.pk-month { margin-bottom: 8px; font: 700 18px/1 var(--display); text-transform: uppercase; }
.pk-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.pk-dow { padding-bottom: 2px; text-align: center; font-size: 12px; font-weight: 650; color: var(--muted); }
.pk-day { display: grid; justify-items: center; gap: 1px; min-height: 48px; padding: 6px 0 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.pk-day b { font-size: 16px; font-weight: 700; } .pk-day span { min-height: 14px; font-size: 11.5px; font-weight: 650; color: var(--muted); }
.pk-day:hover:not(:disabled) { border-color: var(--line-2); }
.pk-day.is-today { box-shadow: inset 0 0 0 1px var(--ink-2); }
.pk-day:disabled { background: none; border-color: transparent; color: var(--muted); opacity: .45; cursor: default; }
.pk-day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); } .pk-day[aria-pressed="true"] span { color: inherit; opacity: .75; }
.pk .chip .muted { font-weight: 500; }

