/* Logistics: the dispatch board, hand-over board, truck suggestions and transport memory.
   Owned by public/js/orders.js and loaded after /styles.css. Class names here belong to this module;
   a look shared by several modules goes in /styles.css (npm run check-styles enforces this). */

/* dispatch board */
.board { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
.column { background: var(--surface-2); border-radius: var(--radius); padding: .75rem; }
.column h2 { display: flex; justify-content: space-between; font-size: .9rem; }
.count { background: var(--surface); border-radius: 999px; padding: 0 .55rem; color: var(--muted); }
.task { display: grid; gap: .25rem; margin-bottom: .6rem; font-size: .9rem; }
.task.late { border-left: 4px solid var(--danger); }

/* ---------- dispatch: hand-over board & truck suggestions ---------- */
.column.col-new { background: var(--second-soft); }
.suggest { width: 100%; display: grid; gap: .4rem; padding: .7rem; border-radius: 10px; background: var(--surface-2); }
.sg-head { font-size: .9rem; }
.sg { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1.4fr); gap: .3rem .9rem; align-items: center; text-align: left; font: inherit;
  padding: .55rem .7rem; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.sg:hover { border-color: var(--accent); }
.sg.pick { border: 2px solid var(--ok); }
.sg.chosen { background: var(--accent-soft); border-color: var(--accent); }
.sg-main { display: flex; flex-wrap: wrap; gap: .3rem .5rem; align-items: center; }
.sg-cost { text-align: right; font-weight: 700; }
@media (max-width: 640px) { .sg { grid-template-columns: 1fr auto; } .sg-meta { grid-column: 1 / -1; } }
.rel { color: var(--copper); white-space: nowrap; }
.rel.ok { color: var(--ok); }

/* ---------- transport memory ---------- */
.transport-memory { display: grid; gap: .3rem; margin-top: .4rem; padding: .55rem .7rem; border-radius: 8px; background: var(--surface-2); border-left: 3px solid var(--copper); font-size: .88rem; }
.transport-memory .btn { margin-left: .3rem; }
.tm-advice { color: var(--text); }

/* Post to logistics: one row per truck load (load, suggested truck, agreed transport price) */
.post-rows { display: grid; gap: .5rem; }
.post-row { display: grid; grid-template-columns: 6rem minmax(0, 1fr) 9rem; gap: .5rem; align-items: start; }
@media (max-width: 640px) { .post-row { grid-template-columns: 1fr; } }

/* Delivery schedule: groups by date; late jobs and today's stand out */
.sched.late { border-left: 4px solid var(--danger); }
.sched.today { border-left: 4px solid var(--copper); }
.sched .order-list { margin-top: .5rem; }
@media (min-width: 1000px) {
  .order-row.sched-row { grid-template-columns: 7rem minmax(0, 2.4fr) minmax(0, 1fr) minmax(0, 1.4fr) 9rem; grid-template-areas: "id cust qty total status"; }
  .sched-row .o-total { font-weight: 500; text-align: left; }
}

/* Drivers without a truck, above the drivers & trucks register */
.free-drivers { display: grid; gap: .5rem; }

/* A price below the minimum: the decision on the form, and the order held until it is made */
.price-ask { display: inline-flex; flex-wrap: wrap; gap: .4rem; margin-left: .5rem; vertical-align: middle; }
.price-ok { color: var(--ok); }
.price-held { border-left: 4px solid var(--copper); display: grid; gap: .4rem; }
.price-held p { margin: 0; }

/* All five columns of the dispatch board side by side on a computer */
@media (min-width: 1200px) { .board { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .6rem; } }

/* Under the product: the selling price worked out in full (customer pays − transport = bricks → each) */
.deal-line { display: block; margin-top: .3rem; line-height: 1.45; }
.deal-line.warn { color: var(--danger); }

/* Schedule › Tell the customer (GAKA 1.62.0): the ready WhatsApp message */
.tell-msg { margin: 0; padding: .7rem .9rem; border-left: 4px solid var(--copper); border-radius: 8px; background: var(--surface-2); line-height: 1.45; }

/* Live totals in a form (the driver's own customer, GAKA 1.67.1): bricks × price, owed, cost and profit as you type */
.live-totals { grid-column: 1 / -1; flex: 1 1 100%; width: 100%; box-sizing: border-box; display: grid; gap: .25rem; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.live-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .92rem; }
.live-row strong { font-variant-numeric: tabular-nums; }
.live-row.big { font-size: 1.05rem; padding-bottom: .25rem; border-bottom: 1px solid var(--border); margin-bottom: .15rem; }
.live-row.big strong { font-size: 1.2rem; }
.live-row.neg strong { color: var(--danger, #e5484d); }
.live-row.ok strong { color: var(--ok); }

/* Dispatch: the truck sales suggested, shown first and plainly (GAKA 1.82.3) */
.sales-pick { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .7rem .85rem; margin-bottom: .6rem;
  border: 1px solid var(--accent); border-radius: 10px; background: var(--surface-2); }

/* Office payments (GAKA 1.92.0): "Paid at office · awaiting approval" under the amount, and the "Record office payment"
   button where it applies */
/* "Paid at office · Awaiting approval" (GAKA 1.92.1): a two-line chip in the tone of the amber status badge, a soft
   tint and hairline border, a gently pulsing dot; right-aligned under the amount in the Owes column */
.office-chip { display: inline-flex; align-items: center; gap: .45rem; margin-top: .35rem; padding: .3rem .6rem .3rem .5rem;
  border: 1px solid rgba(201, 145, 0, .35); border-radius: 10px; background: linear-gradient(135deg, #fff6d6, #fff1c2);
  color: #7a5600; text-align: left; white-space: nowrap; vertical-align: middle; line-height: 1.15; box-shadow: 0 1px 2px rgba(122, 86, 0, .08); }
.office-words { display: flex; flex-direction: column; }
.office-words b { font-size: .72rem; font-weight: 650; letter-spacing: .01em; }
.office-words small { font-size: .66rem; font-weight: 500; opacity: .8; }
.office-dot { position: relative; flex: none; width: .5rem; height: .5rem; border-radius: 50%; background: #e0a100; }
.office-dot::after { content: ''; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #e0a100; opacity: 0; animation: office-pulse 2.4s ease-out infinite; }
@keyframes office-pulse { 0% { transform: scale(.6); opacity: .55; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .office-dot::after { animation: none; } }
@media (prefers-color-scheme: dark) {
  .office-chip { border-color: rgba(255, 216, 102, .22); background: linear-gradient(135deg, rgba(255, 216, 102, .14), rgba(255, 216, 102, .07)); color: #ffd866; box-shadow: none; }
  .office-dot { background: #ffd866; }
  .office-dot::after { border-color: #ffd866; }
}
/* In the Owes column the chip sits under the amount, right-aligned like the figures */
td.num .office-chip { display: flex; width: max-content; margin-left: auto; }
/* The chip (GAKA 1.139.2): its words and 📎 open the payment; the CEO's green "✓ Approve" end approves at once */
.office-view { display: inline-flex; align-items: center; gap: .45rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; }
.office-view:focus-visible, .office-go:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.office-see { font-size: .7rem; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; opacity: .9; padding-left: .1rem; }
.office-view:hover .office-see { opacity: 1; text-decoration-thickness: 2px; }
button.office-go { font: inherit; cursor: pointer; border-top: 0; border-right: 0; border-bottom: 0; background-color: transparent; }
/* The CEO's chip is a button (GAKA 1.93.2): a green "✓ Approve" end behind a hairline, which lifts on hover */
button.office-approve { font: inherit; cursor: pointer; padding-right: .3rem; transition: transform .12s ease, box-shadow .12s ease; }
button.office-approve:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(122, 86, 0, .18); }
button.office-approve:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.office-approve:disabled { opacity: .6; cursor: progress; transform: none; }
.office-go { margin-left: .2rem; padding: .28rem .5rem; border-left: 1px solid rgba(201, 145, 0, .3); border-radius: 0 7px 7px 0;
  font-size: .7rem; font-weight: 650; color: #1d7a3e; background: rgba(46, 160, 67, .12); }
button.office-approve:hover .office-go { background: rgba(46, 160, 67, .22); }
@media (prefers-color-scheme: dark) {
  .office-go { color: #6fdc8c; border-left-color: rgba(255, 216, 102, .2); background: rgba(111, 220, 140, .12); }
  button.office-approve:hover .office-go { background: rgba(111, 220, 140, .22); }
  button.office-approve:hover { box-shadow: 0 3px 12px rgba(0, 0, 0, .35); }
}
.block-btn { display: block; margin: .35rem 0 0 auto; white-space: nowrap; }
.office-pay-note { margin: 0; width: 100%; }
/* The photo of the paper receipt takes the whole row of the Post to logistics window */
.office-pay { width: 100%; }

/* ---------- Loads page (GAKA 1.93.3): the CEO, "make it beautiful and match the rest of the system's design … make every
   data visible and simple and accessible". Same columns and figures as before; a description under the title, the filters
   in one labelled card, status chips with their colour dot, figure cards in the EcoCash style (short figure big, exact amount
   under it) and the table in its own rounded card. ---------- */
.loads-page { display: grid; grid-template-columns: minmax(0, 1fr); }
.loads-page > * { min-width: 0; }
.lp-head { align-items: flex-end; }
.lp-head h1 { margin-bottom: 0; }
.lp-sub { margin: .25rem 0 0; font-size: .92rem; }

/* Filters: each box has its name above it */
.lp-filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: 1rem 1.1rem; }
.lp-row { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: flex-start; }
/* Every box in the row the same height (1.93.4): the period's boxes, the Today button and both choosers */
.lp-row select, .lp-row .period-btn, .lp-row .pickbox-input, .lp-row .pickbox-chosen { box-sizing: border-box; height: 2.6rem; min-height: 2.6rem; }
.lp-row .period > .btn { box-sizing: border-box; height: 2.6rem; }
.lp-row .period { min-height: 2.6rem; }
.lp-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; min-width: 0; }
/* The manufacturer and sales person boxes wide enough for long names; the period keeps its own sizes */
.lp-field:not(.lp-period) > :last-child { min-width: 14rem; }
.lp-period select { width: auto; min-width: 0; }
.lp-label { font-size: .72rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lp-search { position: relative; }
.lp-search input { width: 100%; max-width: none; padding-left: 2.4rem; }
.lp-search-ic { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); display: grid; color: var(--muted); pointer-events: none; z-index: 1; }
.lp-search-ic svg { width: 1.05rem; height: 1.05rem; }
.lp-search .qsearch { padding-left: 2.4rem; max-width: none; }

/* Status chips: a dot in the colour of the status badge */
.lp-bar { align-items: center; }
.lp-chip { display: inline-flex; align-items: center; gap: .45rem; }
.lp-dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--muted); }
.lp-dot.d-unpaid { background: #e0a100; }
.lp-dot.d-paid { background: #1f8a57; }
.lp-dot.d-collected { background: #7c4ddb; }
.lp-dot.d-deals { background: #2a6fdb; }
.lp-dot.d-cancelled { background: #d1242f; }
.lp-chip.active .lp-dot { background: currentColor; }
.lp-chip:focus-visible, .lp-seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Table or By manufacturer: a two-way switch */
.lp-seg { display: inline-flex; padding: .2rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lp-seg-btn { font: inherit; font-size: .85rem; font-weight: 600; padding: .3rem .9rem; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.lp-seg-btn:hover { color: var(--text); }
.lp-seg-btn.active { background: var(--accent); color: var(--accent-ink); }

/* The figures */
.lp-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.lp-fig { position: relative; display: grid; grid-template-rows: auto auto auto; align-content: start; gap: .35rem; min-width: 0; padding: .85rem 1rem .8rem 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
/* The icon and the name on one line */
.lp-fig-top { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.lp-fig-top .lp-fig-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The second line never wraps, so every card is the same height */
.lp-fig-sub { display: block; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* The whole card is one button (stretched over it); the cancelled link sits above it */
.lp-fig-tap { position: absolute; inset: 0; z-index: 1; width: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; }
.lp-fig-tap:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lp-fig:has(.lp-fig-tap):hover { border-color: var(--tone); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0, 0, 0, .1); }
.lp-fig.on { border-color: var(--tone); box-shadow: 0 0 0 1px var(--tone) inset; background: linear-gradient(180deg, var(--tone-soft), var(--surface) 70%); }
.lp-fig-link { position: relative; z-index: 2; padding: 0; border: 0; background: none; font: inherit; color: var(--link, var(--accent)); cursor: pointer; }
.lp-fig-link:hover { text-decoration: underline; }
.lp-fig-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 3px; }
.lp-fig::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--tone); }
.lp-fig-ic { flex: none; display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 9px; background: var(--tone-soft); color: var(--tone-ink); }
.lp-fig-ic svg { width: 1.05rem; height: 1.05rem; }
.lp-fig-label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.lp-fig strong { font-size: 1.45rem; font-weight: 750; letter-spacing: -.01em; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; }
.lp-fig small { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp-fig.blue { --tone: #2a6fdb; --tone-soft: #dfe9ff; --tone-ink: #2846a0; }
.lp-fig.violet { --tone: #7c4ddb; --tone-soft: #e6dcff; --tone-ink: #5530a8; }
.lp-fig.copper { --tone: #d4844f; --tone-soft: #fbe5d6; --tone-ink: #8a4a1f; }
.lp-fig.slate { --tone: #64748b; --tone-soft: #e8edf4; --tone-ink: #3b4a5f; }
.lp-fig.green { --tone: #1f8a57; --tone-soft: #d8f3e4; --tone-ink: #17633e; }
.lp-fig.amber { --tone: #e0a100; --tone-soft: #fff1c2; --tone-ink: #7a5600; }
.lp-fig.red { --tone: #d1242f; --tone-soft: #fde2df; --tone-ink: #9b2218; }
.lp-fig.amber strong { color: #9a6b00; }
.lp-fig.red strong { color: #b4232c; }

/* The table in its own card */
.lp-sheet { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); overflow: hidden; }
.lp-sheet .table-wrap, .lp-sheet > div { margin: 0; }
.lp-sheet table.sheet th { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-block: .7rem; }
.lp-sheet table.sheet td { padding-block: .6rem; }
.lp-sheet table.sheet td:first-child, .lp-sheet table.sheet th:first-child { padding-left: 1rem; }
.lp-sheet table.sheet td:last-child, .lp-sheet table.sheet th:last-child { padding-right: 1rem; }
.lp-sheet tr.group-row td { padding: .55rem 1rem; font-size: .8rem; font-weight: 650; color: var(--text); background: var(--accent-soft); border-top: 1px solid var(--border); }
.lp-sheet tr.click:hover td { background: var(--surface-2); }
.lp-sheet tr.click:focus-visible td { background: var(--accent-soft); }
.lp-sheet tr.click:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lp-sheet td.lp-owes { color: #9a6b00; font-weight: 650; }

@media (prefers-color-scheme: dark) {
  .lp-fig.blue { --tone: #5b8def; --tone-soft: #1c2b52; --tone-ink: #9db6ff; }
  .lp-fig.violet { --tone: #9b7bf0; --tone-soft: #2f2153; --tone-ink: #c3adff; }
  .lp-fig.copper { --tone: #e39a68; --tone-soft: #3d2718; --tone-ink: #f2b88f; }
  .lp-fig.slate { --tone: #8a9bb4; --tone-soft: #232d40; --tone-ink: #b8c4d6; }
  .lp-fig.green { --tone: #3fbf7f; --tone-soft: #143d29; --tone-ink: #7fe0ae; }
  .lp-fig.amber { --tone: #ffd866; --tone-soft: #4a3a0c; --tone-ink: #ffd866; }
  .lp-fig.red { --tone: #ff7a70; --tone-soft: #4a1a15; --tone-ink: #ff9d92; }
  .lp-fig.amber strong, .lp-sheet td.lp-owes { color: #ffd866; }
  .lp-fig.red strong { color: #ff9d92; }
  .lp-fig, .lp-sheet { box-shadow: none; }
  .lp-dot.d-unpaid { background: #ffd866; }
  .lp-dot.d-paid { background: #3fbf7f; }
  .lp-dot.d-collected { background: #9b7bf0; }
  .lp-dot.d-deals { background: #5b8def; }
  .lp-dot.d-cancelled { background: #ff7a70; }
  .lp-sheet tr.group-row td { background: rgba(91, 141, 239, .12); }
}
@media (max-width: 720px) {
  .lp-filters { padding: .85rem; }
  .lp-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .lp-field:not(.lp-period) > :last-child { min-width: 0; width: 100%; }
  .lp-figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-fig strong { font-size: 1.2rem; }
  .lp-bar .spacer { display: none; }
}

/* Driver's own customer: a price below the minimum (GAKA 1.94.0), approved by management on the form */
.dc-price { display: grid; gap: .45rem; padding: .7rem .9rem; border: 1px solid rgba(201, 145, 0, .35); border-radius: 10px; background: #fff6d6; color: #5c4200; font-size: .9rem; }
.dc-price.ok { border-color: rgba(31, 138, 87, .35); background: #e3f6ec; color: #17633e; }
.dc-price.no { border-color: rgba(209, 36, 47, .3); background: #fde9e7; color: #8f1d16; }
.dc-price-btns { display: flex; flex-wrap: wrap; gap: .4rem; }
.dc-price-done { display: flex; align-items: center; gap: .6rem; font-weight: 650; }
@media (prefers-color-scheme: dark) {
  .dc-price { border-color: rgba(255, 216, 102, .25); background: rgba(255, 216, 102, .1); color: #ffe9a3; }
  .dc-price.ok { border-color: rgba(127, 224, 174, .3); background: rgba(127, 224, 174, .1); color: #a9efc8; }
  .dc-price.no { border-color: rgba(255, 157, 146, .3); background: rgba(255, 157, 146, .1); color: #ffc2bb; }
}

/* A load being prepared with no truck (GAKA 1.100.0): amber, then red from 30 minutes */
.badge.no-truck { background: color-mix(in srgb, #d08a12 18%, var(--surface)); color: #a86a00; border: 1px solid color-mix(in srgb, #d08a12 45%, transparent); margin-left: .3rem; white-space: nowrap; }
.badge.no-truck.late { background: color-mix(in srgb, var(--danger) 16%, var(--surface)); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); font-weight: 700; }
@media (prefers-color-scheme: dark) { .badge.no-truck { color: #f0b54a; } }

/* Deleting a truck (GAKA 1.102.0): the two choices */
.td-choices { display: grid; gap: .5rem; margin: .4rem 0 .6rem; }
.td-choice { display: flex; gap: .6rem; align-items: flex-start; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.td-choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.td-choice input { margin-top: .25rem; flex: none; width: auto; min-height: 0; }

/* The office payment window (GAKA 1.139.2): the payment, what is attached, and the receipt as it prints */
.ow { display: grid; gap: 1rem; }
.ow h3 { margin: 0 0 .5rem; font-size: .95rem; }
.ow-hero { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.4rem; align-items: start; padding: 1rem 1.1rem; border-radius: 14px;
  border: 1px solid rgba(201, 145, 0, .35); background: linear-gradient(135deg, #fff9e6, #fff3cf); color: #4d3700; }
.ow-amount { display: grid; gap: .15rem; }
.ow-amount small { font-size: .78rem; opacity: .8; }
.ow-amount strong { font-size: 1.8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ow-tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 650; }
.ow-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .55rem .9rem; }
.ow-fact { display: grid; gap: .05rem; min-width: 0; }
.ow-fact small { font-size: .72rem; opacity: .75; text-transform: uppercase; letter-spacing: .04em; }
.ow-fact strong { font-size: .92rem; overflow-wrap: anywhere; }
.ow-thumbs { display: flex; flex-wrap: wrap; gap: .6rem; }
.ow-thumb { display: grid; width: 10.5rem; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.ow-thumb:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.ow-thumb img { width: 100%; height: 8rem; object-fit: cover; display: block; background: var(--surface-2, var(--surface)); }
.ow-thumb span { display: grid; padding: .4rem .55rem; font-size: .82rem; font-weight: 600; }
.ow-thumb small, .ow-file small { color: var(--muted); font-weight: 400; font-size: .74rem; }
.ow-file { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: 10px; border: 1px solid var(--border); color: inherit; text-decoration: none; }
.ow-file span { display: grid; }
.ow-none { margin: 0; padding: .7rem .9rem; border-radius: 10px; background: var(--surface-2, var(--surface)); color: var(--muted); }
.ow-foot { display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap; }
@media (prefers-color-scheme: dark) {
  .ow-hero { border-color: rgba(255, 216, 102, .25); background: linear-gradient(135deg, rgba(255, 216, 102, .12), rgba(255, 216, 102, .05)); color: #ffe7a3; }
}
@media (max-width: 640px) { .ow-hero { grid-template-columns: 1fr; } .ow-thumb { width: calc(50% - .3rem); } }
.truck-kinds { margin: .2rem 0 .8rem; }

/* The day a job is needed (GAKA 1.146.0): quick days, whether it is confirmed or a promise, promises in the schedule */
.sched.promised { border-left: 4px solid var(--copper, #d08a3c); }
.sched-row.promise { opacity: .92; }
.sched-row .sched-tick { width: 1.05rem; height: 1.05rem; margin-right: .45rem; vertical-align: middle; accent-color: var(--accent); }
.sched-row .o-status { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; justify-content: flex-end; }
.promise-when { white-space: nowrap; }
.sched-bulk { position: sticky; top: .5rem; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .8rem; padding: .6rem .8rem; border-radius: 14px;
  border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); font-weight: 600; }
.sched-bulk[hidden] { display: none; }

/* Lay-by collections on the delivery schedule (GAKA 1.153.0) */
.sched-layby { border-left: 3px solid var(--ok); }
.layby-badge { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); font-weight: 700; }
