@font-face {
  font-family: 'Manrope';
  src: url('/fonts/manrope-var.woff2') format('woff2-variations'), url('/fonts/manrope-var.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* Dispatch board.
   The reference is a departure board rather than an admin panel: a fixed
   time column so every pickup lines up down the page, hairline rules in
   place of cards, and job status carried by a single coloured edge so the
   page can be read by colour before it is read by word. Dark because this
   is used before dawn and in glare, where a white screen is the enemy.
   Colours are CSS variables from partials/colours.blade.php (config).
   --blue is the brand accent. --paid, --pending and --danger are status. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--chrome);
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Times and fares line up column-wise, which is most of the point. */
  font-variant-numeric: tabular-nums;
}

a { color: var(--blue); }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Header, with the next pickup stated before anything else ---------- */
.hub-header {
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: calc(env(safe-area-inset-top) + 16px) 18px 0;
}
.hub-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hub-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 800; letter-spacing: -.01em; line-height: 1;
  color: var(--white); text-decoration: none;
}
.hub-brand img { width: 28px; height: 28px; display: block; flex: none; }
.hub-user { font-size: 12px; color: var(--muted); }

.hub-next { padding: 14px 0 16px; }
.hub-next[hidden] { display: none; }
.hub-next-k { font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.hub-next-t {
  margin-top: 5px;
  font-size: 42px; font-weight: 800; line-height: 1;
  letter-spacing: -.02em; color: var(--white);
}
.hub-next-t small { font-size: 19px; font-weight: 700; color: var(--muted); margin-left: 5px; }
.hub-next-w { margin-top: 7px; font-size: 14px; color: var(--chrome); }
.hub-next-w b { color: var(--white); font-weight: 700; }

/* ---------- Tabs ---------- */
.hub-tabs {
  display: flex; gap: 20px; overflow-x: auto;
  padding: 0 18px;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 10;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hub-tabs::-webkit-scrollbar { display: none; }
.hub-tab {
  flex: 0 0 auto; padding: 13px 0; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 600; white-space: nowrap;
  color: var(--muted); background: none; border: 0;
  border-bottom: 2px solid transparent;
}
.hub-tab.active { color: var(--white); border-bottom-color: var(--blue); }

.hub-main { padding: 0 0 calc(env(safe-area-inset-bottom) + 40px); }
.hub-home { padding: 20px 18px 26px; display: grid; gap: 14px; }
.hub-home-btn {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: linear-gradient(180deg, var(--white) 0%, var(--chrome) 100%);
  border: 1px solid var(--line); border-radius: 14px; padding: 20px 18px;
  color: var(--ink); font: inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.hub-home-btn:hover { border-color: var(--blue); }
/* Pressed state matters more than hover here: this is used on a phone. */
.hub-home-btn:active { transform: translateY(2px); box-shadow: 0 2px 8px rgba(0,0,0,.34); }
.hub-home-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.hub-home-btn-t { display: block; font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
/* Not --muted: that is tuned for pale text on the dark panels and falls
   below a readable contrast once it sits on a light button. */
.hub-home-btn-s { display: block; margin-top: 5px; font-size: 13px; color: var(--ink-soft); }

.hub-panel { display: none; }
.hub-panel.active { display: block; }
.hub-section-title {
  padding: 22px 18px 8px; margin: 0;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--muted);
}
.hub-empty { padding: 18px; margin: 0; color: var(--muted); font-size: 14px; }
.hub-hint, .hub-slug-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.hub-status-line { padding: 0 18px; font-size: 12px; color: var(--muted); min-height: 16px; }
.hub-alerts { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding-block: 8px; }
/* A display rule on the element beats the browser's own [hidden] styling,
   so the row would otherwise show before any script had revealed it. */
.hub-alerts[hidden] { display: none; }
.hub-alerts-btn { background: none; border: 1px solid var(--rule); color: var(--white); font: inherit; font-size: 11px;
  font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 12px; border-radius: 3px; cursor: pointer; }
.hub-alerts-btn[disabled] { opacity: .5; cursor: default; }

/* ---------- Figures ---------- */
.hub-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
/* An odd last figure (Paid this month) spans the row, so the 2-column grid does not paint an empty tile beside it. */
.hub-cards > .hub-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hub-card { background: var(--ink); padding: 15px 18px; border: 0; border-radius: 0; }
.hub-card-label { font-size: 10px; font-weight: 700; letter-spacing: .13em; color: var(--muted); margin-bottom: 5px; }
.hub-card-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--white); line-height: 1.1; }

/* ---------- Generic rows ---------- */
.hub-list { list-style: none; margin: 0; padding: 0; }

/* ---------- Client directory ---------- */
.hub-client-row { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--rule); }
.hub-row-main { flex: 1; min-width: 0; }
.hub-row-title { font-size: 15px; font-weight: 700; color: var(--white); }
.hub-row-sub { margin-top: 3px; font-size: 12.5px; color: var(--muted); word-break: break-word; }
.hub-row-actions { display: flex; gap: 10px; flex-shrink: 0; }
.hub-link-btn { background: none; border: 0; padding: 6px 2px; font: inherit; font-size: 12px;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--chrome); cursor: pointer; }
.hub-link-btn:hover { color: var(--white); }
.hub-link-danger { color: var(--danger); }
.hub-client-row.is-off .hub-row-title { color: var(--muted); }
.hub-tag { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--muted); border-radius: 3px; padding: 2px 5px; vertical-align: middle; }

/* Trip history, opened in place under the client rather than on its own
   screen, so the list is not lost on the way back. */
.hub-client-row { flex-wrap: wrap; }
.hub-trips { flex-basis: 100%; margin-top: 10px; border-top: 1px solid var(--rule); padding-top: 10px; }
.hub-trips[hidden] { display: none; }
.hub-trips-sum { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 8px; }
.hub-trips-note { font-size: 13px; color: var(--muted); }
.hub-trip { padding: 8px 0; border-bottom: 1px solid var(--rule); }
.hub-trip:last-child { border-bottom: 0; }
.hub-trip-when { font-size: 13px; font-weight: 700; color: var(--white); }
.hub-trip-route { margin-top: 2px; font-size: 12.5px; color: var(--chrome); word-break: break-word; }
.hub-trip-meta { margin-top: 2px; font-size: 12px; color: var(--muted); }

/* Suggestions under the quote name field. Sits tight against the input so
   it reads as part of it rather than as a separate list. */
.hub-suggest { list-style: none; margin: -8px 0 12px; padding: 0; background: var(--panel);
  border: 1px solid var(--rule); border-radius: 8px; overflow: hidden; }
.hub-suggest[hidden] { display: none; }
.hub-suggest li + li { border-top: 1px solid var(--rule); }
.hub-suggest-btn { display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 11px 14px; font: inherit; color: var(--white); cursor: pointer; }
.hub-suggest-btn:hover { background: var(--rule); }
.hub-suggest-name { display: block; font-size: 14px; font-weight: 700; }
.hub-suggest-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.hub-list-item { padding: 13px 18px; border-top: 1px solid var(--rule); }
.hub-list-item-tap { cursor: pointer; }
.hub-list-main { font-size: 15px; font-weight: 700; color: var(--white); }
.hub-list-sub { margin-top: 3px; font-size: 13px; color: var(--chrome); }
.hub-list-meta { margin-top: 5px; font-size: 12px; color: var(--muted); }

.hub-pill {
  display: inline-block; margin-left: 7px; padding: 2px 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  border-radius: 3px; vertical-align: middle;
}
.hub-pill-active   { background: var(--paid-soft);  color: var(--paid); }
.hub-pill-inactive { background: var(--muted-soft); color: var(--muted); }
.hub-pill-expired  { background: var(--danger-soft); color: var(--danger); }

.hub-seen { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: var(--pending); vertical-align: middle; }
.hub-seen-count { font-size: 11px; font-weight: 800; }

.hub-cal-scan {
  margin: 0; padding: 10px 18px 0;
  font-size: 11px; line-height: 1.6; color: var(--muted);
}

/* ---------- Calendar: add to diary ---------- */
.hub-cal-add { padding: 14px 18px 0; }
.hub-cal-add-toggle {
  width: 100%; padding: 11px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--chrome); background: transparent;
  border: 1px dashed var(--rule); border-radius: 6px;
}
.hub-cal-add-form { margin-top: 11px; }
.hub-cal-add-form[hidden] { display: none; }
.hub-ev-legend {
  margin: 15px 0 7px; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.hub-cal-job.is-diary::before { background: var(--diary); }
.hub-dot-diary { background: var(--diary); }

/* ---------- Calendar: view switch ---------- */
.hub-cal-views { display: flex; gap: 0; border-bottom: 1px solid var(--rule); }
.hub-cal-view {
  flex: 1 1 0; padding: 13px 8px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--muted); background: none; border: 0; border-bottom: 2px solid transparent;
}
.hub-cal-view.active { color: var(--white); border-bottom-color: var(--blue); }
.hub-cal-sched-note { padding: 14px 18px 0; margin: 0; font-size: 12px; color: var(--muted); }

/* ---------- Calendar: month ---------- */
.hub-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 18px 4px; }
.hub-cal-title { flex: 1 1 auto; margin: 0; text-align: center; font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--white); }
.hub-cal-nav {
  flex: 0 0 auto; width: 40px; height: 40px; cursor: pointer;
  font-size: 20px; line-height: 1; color: var(--chrome);
  background: var(--panel); border: 1px solid var(--rule); border-radius: 6px;
}
.hub-cal-today {
  display: block; margin: 12px auto 14px; padding: 6px 16px; cursor: pointer;
  font-family: inherit; font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: var(--muted); background: none; border: 1px solid var(--rule); border-radius: 20px;
}
.hub-cal-dow, .hub-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 0 12px; }
.hub-cal-dow { margin-bottom: 5px; }
.hub-cal-dow span { text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.hub-cal-cell {
  min-height: 46px; padding: 5px 2px 4px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-size: 13px; color: var(--chrome);
  background: var(--panel); border: 1px solid transparent; border-radius: 5px;
}
.hub-cal-cell.is-empty { background: transparent; cursor: default; }
.hub-cal-cell.is-today { border-color: var(--blue); color: var(--white); font-weight: 800; }
.hub-cal-cell.is-selected { background: var(--blue); color: var(--white); font-weight: 800; }
.hub-cal-dots { display: flex; gap: 2px; flex-wrap: wrap; justify-content: center; }
.hub-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
.hub-dot-paid { background: var(--paid); }
.hub-dot-unpaid { background: var(--pending); }
.hub-dot-quote { background: transparent; box-shadow: inset 0 0 0 1.5px var(--muted); }
.hub-cal-cell.is-selected .hub-dot-paid,
.hub-cal-cell.is-selected .hub-dot-unpaid,
.hub-cal-cell.is-selected .hub-dot-diary,
.hub-cal-cell.is-selected .hub-dot-portal { background: var(--white); }
.hub-cal-cell.is-selected .hub-dot-quote { box-shadow: inset 0 0 0 1.5px var(--white); }
.hub-cal-legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 16px 18px 4px; font-size: 11px; color: var(--muted); }
.hub-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- Calendar: the job row ---------- */
.hub-cal-day-title {
  margin: 0; padding: 22px 18px 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .16em; color: var(--muted);
}
.hub-cal-day-title.is-past { opacity: .55; }
.hub-cal-today-tag {
  margin-left: 8px; padding: 2px 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: var(--white); background: var(--blue); border-radius: 3px;
}

/* The coloured edge is the status. Paid, awaiting payment and quote read
   differently at arm's length without anyone reading a word. */
.hub-cal-job {
  position: relative; padding: 13px 18px 13px 18px;
  border-top: 1px solid var(--rule); cursor: pointer;
}
.hub-cal-job::before { content: ''; position: absolute; left: 0; top: 13px; bottom: 13px; width: 3px; }
.hub-cal-job.is-paid::before   { background: var(--paid); }
.hub-cal-job.is-unpaid::before { background: var(--pending); }
.hub-cal-job.is-quote::before  { background: repeating-linear-gradient(180deg, var(--muted) 0 4px, transparent 4px 8px); }
#panel-calendar .hub-cal-job { cursor: pointer; }
.hub-cal-job.is-open { background: var(--panel); }

.hub-cal-job-line { display: flex; align-items: baseline; gap: 12px; }
.hub-cal-job-time { flex: 0 0 auto; min-width: 62px; font-size: 16px; font-weight: 800; color: var(--white); letter-spacing: -.01em; }
.hub-cal-job-name { font-size: 15px; font-weight: 700; color: var(--white); }
.hub-cal-job-route { margin-top: 3px; padding-left: 74px; font-size: 13px; color: var(--chrome); }
.hub-cal-job-meta { margin-top: 5px; padding-left: 74px; font-size: 11px; font-weight: 700; color: var(--muted); }
@media (max-width: 360px) {
  .hub-cal-job-route, .hub-cal-job-meta { padding-left: 0; }
}

.hub-cal-now { display: flex; align-items: center; gap: 10px; padding: 16px 18px 6px; scroll-margin-top: 78px; }
.hub-cal-now::before, .hub-cal-now::after { content: ''; flex: 1 1 auto; height: 1px; background: var(--danger); opacity: .55; }
.hub-cal-now-label { flex: 0 0 auto; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--danger); white-space: nowrap; }

/* ---------- Calendar: opened job ---------- */
.hub-cal-detail { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--rule); cursor: default; }
.hub-cal-detail-full { margin-bottom: 12px; }
.hub-cal-detail-full > div { margin-bottom: 8px; font-size: 13px; line-height: 1.45; color: var(--chrome); }
.hub-cal-detail-full span,
.hub-cal-detail-grid span {
  display: block; margin-bottom: 3px;
  font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--muted);
}
.hub-cal-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.hub-cal-detail-grid > div { font-size: 13px; color: var(--chrome); }
.hub-cal-detail-grid a { color: var(--blue); font-weight: 700; text-decoration: none; }
.hub-cal-detail-h { margin: 16px 0 7px; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.hub-cal-detail-note { margin: 9px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted); }
.hub-cal-detail-row { display: flex; gap: 7px; margin-bottom: 8px; }

/* Collapsible sections in an open calendar entry. */
.hub-cal-sec { border: 1px solid var(--rule); border-radius: 8px; margin: 0 0 8px; background: rgba(255,255,255,.02); }
.hub-cal-sec > summary {
  list-style: none; cursor: pointer; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--white);
  -webkit-tap-highlight-color: transparent;
}
.hub-cal-sec > summary::-webkit-details-marker { display: none; }
.hub-cal-sec > summary::after { content: '\25BE'; color: var(--muted); font-size: 14px; transition: transform .15s ease; }
.hub-cal-sec[open] > summary::after { transform: rotate(180deg); }
.hub-cal-sec[open] > summary { border-bottom: 1px solid var(--rule); }
.hub-cal-sec-body { padding: 12px 12px 6px; }
.hub-cal-sec-body > .hub-cal-detail-h:first-child { margin-top: 0; }
.hub-cal-detail-notes { margin: 4px 0 8px; font-size: 13px; line-height: 1.5; white-space: pre-line; }
.hub-cal-detail-notes span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 2px; }
.hub-cal-notes-wrap { margin: 6px 0 10px; }
.hub-cal-notes-label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.hub-cal-notes {
  display: block; width: 100%; box-sizing: border-box; margin-bottom: 7px; resize: vertical;
  padding: 10px 9px; font-family: inherit; font-size: 15px; line-height: 1.4;
  color: var(--white); background: var(--raised); border: 1px solid var(--rule); border-radius: 6px;
}
.hub-cal-remove { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule); }
.hub-cal-detail-row[hidden] { display: none; }
.hub-cal-detail-row > * { flex: 1 1 0; min-width: 0; }

.hub-cal-driver, .hub-cal-rate, .hub-cal-date, .hub-cal-time,
.hub-cal-flight, .hub-cal-phone, .hub-cal-refund-amt, .hub-cal-resend-to {
  padding: 10px 9px; font-family: inherit; font-size: 15px;
  color: var(--white); background: var(--raised);
  border: 1px solid var(--rule); border-radius: 6px;
}
.hub-cal-rate { flex: 0 0 80px; }
.hub-cal-btn {
  display: block; padding: 11px 10px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none;
  color: var(--blue); background: transparent;
  border: 1px solid var(--blue); border-radius: 6px;
}
.hub-cal-btn-solid { background: var(--blue); color: var(--white); }
.hub-cal-btn-danger { color: var(--danger); border-color: var(--danger); }
.hub-cal-btn:disabled, .hub-cal-btn-danger:disabled { opacity: .45; }
.hub-cal-save { width: 100%; }
.hub-cal-status { margin: 9px 0 0; font-size: 12px; color: var(--muted); min-height: 16px; }
.hub-cal-status.is-error { color: var(--danger); }
.hub-cal-job-add { display: flex; gap: 7px; margin-top: 9px; }
.hub-cal-add-btn {
  flex: 1 1 0; padding: 8px; text-align: center; text-decoration: none;
  font-size: 12px; font-weight: 700; color: var(--chrome);
  border: 1px solid var(--rule); border-radius: 6px;
}

/* ---------- Reminders and driver allocation ---------- */
.hub-remind { margin-top: 10px; }
.hub-remind-actions, .hub-assign-actions { display: flex; gap: 7px; }
.hub-remind-btn, .hub-assign-btn, .hub-receipt-btn {
  flex: 1 1 0; padding: 10px 8px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none;
  color: var(--blue); background: transparent;
  border: 1px solid var(--blue); border-radius: 6px;
}
.hub-remind-btn:disabled, .hub-receipt-btn:disabled { opacity: .45; }
.hub-paid-btn { color: var(--pending); border-color: var(--pending); }
.hub-remind-actions[hidden] { display: none; }
.hub-remind-status, .hub-assign-status { margin: 7px 0 0; font-size: 12px; color: var(--muted); min-height: 16px; }
.hub-remind-status.is-error, .hub-assign-status.is-error { color: var(--danger); }
.hub-assign { margin-top: 11px; padding-top: 11px; border-top: 1px solid var(--rule); }
.hub-assign-none { margin: 0; font-size: 12px; color: var(--muted); }
.hub-assign-row { display: flex; gap: 6px; align-items: center; }
.hub-assign-driver, .hub-assign-rate {
  padding: 9px 8px; font-family: inherit; font-size: 15px;
  color: var(--white); background: var(--raised); border: 1px solid var(--rule); border-radius: 6px;
}
.hub-assign-driver { flex: 1 1 auto; min-width: 0; }
.hub-assign-rate { width: 74px; flex: 0 0 auto; }
.hub-assign-save {
  flex: 0 0 auto; padding: 9px 13px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--white); background: var(--blue); border: 0; border-radius: 6px;
}
.hub-assign-text { background: var(--blue); color: var(--white); }

/* ---------- Forms ---------- */
.hub-input, .hub-textarea, .hub-draft-status {
  width: 100%; margin-bottom: 10px; padding: 11px 12px;
  font-family: inherit; font-size: 15px; color: var(--white);
  background: var(--raised); border: 1px solid var(--rule); border-radius: 6px;
}
.hub-textarea { min-height: 160px; resize: vertical; line-height: 1.6; }
.hub-input::placeholder, .hub-textarea::placeholder { color: var(--muted); }
.hub-checkbox-row { display: flex; align-items: center; gap: 9px; margin: 4px 0 12px; font-size: 14px; color: var(--chrome); }
.hub-button-row { display: flex; gap: 8px; margin-top: 4px; }
.hub-button, .hub-button-publish, .hub-button-secondary {
  flex: 1 1 0; padding: 12px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; text-align: center;
  border-radius: 6px; border: 1px solid var(--blue);
  color: var(--white); background: var(--blue);
}
.hub-button-secondary { background: transparent; color: var(--blue); }
.hub-button:disabled, .hub-button-publish:disabled, .hub-button-secondary:disabled { opacity: .45; }

.hub-cal-job.is-portal::before { background: var(--portal); }
.hub-cal-job.is-portal-unpaid::before { background: repeating-linear-gradient(180deg, var(--portal) 0 5px, transparent 5px 10px); }
.hub-dot-portal { background: var(--portal); }

/* Driver progress: confirmed, on board, dropped off. */
.hub-steps { gap: 5px; }
.hub-step {
  display: inline-block; padding: 3px 8px;
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  border-radius: 3px; text-align: center;
}
.hub-step.ok   { color: var(--paid);   background: var(--paid-soft); }
.hub-step.wait { color: var(--muted);  background: var(--muted-soft); }

/* ---------- Cart recovery ---------- */
.hub-cart-stage { font-weight: 700; color: var(--chrome); }
.hub-cart-actions { display: flex; gap: 7px; margin-top: 10px; align-items: center; }
.hub-cart-btn {
  flex: 1 1 0; padding: 9px 8px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700;
  color: var(--blue); background: transparent;
  border: 1px solid var(--blue); border-radius: 6px;
}
.hub-cart-btn:disabled { opacity: .45; }
.hub-cart-btn.is-danger { color: var(--danger); border-color: var(--danger); }
.hub-cart-when { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 4px 0 2px; font-size: 13px; }
.hub-cart-when b { font-weight: 700; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 4px; }
/* Marks a lead that only ever abandoned a cart, so it can't be mistaken
   for someone who has actually travelled. */
.hub-tag-cart {
  display: inline-block; margin-left: 6px; padding: 1px 6px; vertical-align: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--pending); border: 1px solid var(--pending); border-radius: 3px;
}
/* Clear all sits beside the heading rather than in the list, so a thumb
   reaching for a row's Delete can't land on it by accident. */
.hub-section-head { display: flex; align-items: center; gap: 10px; }
.hub-section-head .hub-section-title { flex: 1 1 auto; }
.hub-section-head .hub-cart-btn { flex: 0 0 auto; padding: 7px 12px; }
.hub-cart-pct {
  flex: 0 0 62px; padding: 9px 6px; text-align: center;
  font-family: inherit; font-size: 15px; color: var(--white);
  background: var(--raised); border: 1px solid var(--rule); border-radius: 6px;
}
.hub-cart-warn { margin: 8px 0 0; font-size: 11px; color: var(--pending); }
.hub-cart-status { margin: 7px 0 0; font-size: 12px; color: var(--muted); min-height: 16px; }
.hub-cart-status.is-error { color: var(--danger); }

/* ---------- Promo tab ---------- */
.hub-promo-new { padding-bottom: 6px; }
.hub-promo-row { display: flex; gap: 7px; }
.hub-promo-row > * { flex: 1 1 0; min-width: 0; }
.hub-promo-row #hub-promo-type { flex: 0 0 92px; }
.hub-promo-row #hub-promo-value { flex: 0 0 80px; }
.hub-promo-toggle {
  margin-top: 8px; padding: 7px 12px; cursor: pointer;
  font-family: inherit; font-size: 12px; font-weight: 700;
  color: var(--chrome); background: transparent;
  border: 1px solid var(--rule); border-radius: 6px;
}

/* ---------- Quote tab ---------- */
.hub-quote-result { margin: 12px 0; padding: 14px 0; border-block: 1px solid var(--rule); }
.hub-quote-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: 14px; color: var(--chrome); }
.hub-quote-subrow { font-size: 12px; color: var(--muted); }
.hub-quote-total { padding-top: 9px; margin-top: 7px; border-top: 1px solid var(--rule); font-size: 20px; font-weight: 800; color: var(--white); }

/* ---------- Blog photo strip ---------- */
.hub-photo-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.hub-photo-chip { flex: 0 0 128px; padding: 8px; background: var(--panel); border: 1px solid var(--rule); border-radius: 6px; }
.hub-photo-chip-body { font-size: 11px; color: var(--chrome); word-break: break-all; }
.hub-photo-chip-actions { display: flex; gap: 5px; margin-top: 6px; }
.hub-photo-chip-status { margin-top: 5px; font-size: 10px; color: var(--muted); }
.hub-photo-picker-label {
  display: inline-block; padding: 10px 14px; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--blue);
  border: 1px solid var(--blue); border-radius: 6px;
}

/* Panels that hold forms need their own breathing room, since the
   sections above deliberately run edge to edge. */
#panel-quote, #panel-blog, #panel-promo, #panel-cart, #panel-tax { padding: 0 18px; }
.hub-tax-head { padding-top: 4px; }
.hub-tax-card {
  border: 1px solid var(--rule); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 12px;
}
.hub-tax-card.is-year { border-color: var(--blue); }
.hub-tax-q {
  font-size: 11px; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.hub-tax-card .hub-quote-total { display: flex; justify-content: space-between; }
#panel-quote .hub-section-title,
#panel-blog .hub-section-title,
#panel-promo .hub-section-title,
#panel-cart .hub-section-title { padding-left: 0; padding-right: 0; }
#panel-cart .hub-cards, #panel-promo .hub-cards { margin: 0 -18px; }
#panel-quote .hub-list-item, #panel-blog .hub-list-item,
#panel-promo .hub-list-item, #panel-cart .hub-list-item { padding-left: 0; padding-right: 0; }
