*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  -webkit-font-smoothing: antialiased;
}

.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 232px;
  background: #1e3a5f;
  color: #fff;
  padding: 1rem 0.85rem 1rem;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.brand {
  margin-bottom: 1rem;
  padding: 0 0.35rem 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.brand-title {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.brand-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.nav-section {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-bottom: 0.15rem;
}

.nav-section-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  padding: 0.5rem 0.5rem 0.35rem;
  margin-top: 0.15rem;
}

.nav-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin: 0.65rem 0.5rem;
  flex-shrink: 0;
}

.nav-spacer {
  flex: 1;
  min-height: 0.75rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #cbd5e1;
  text-decoration: none;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  min-height: 38px;
  line-height: 1.3;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.12s ease, color 0.12s ease;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.72;
}

.nav-link.active,
.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.14);
  font-weight: 600;
}

.nav-link.active .nav-icon,
.nav-link:hover .nav-icon {
  opacity: 1;
}

.site-visits-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.site-visits-box--today {
  margin-bottom: 0.75rem;
}

.site-visits-box summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  color: #0f172a;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.site-visits-box summary::-webkit-details-marker {
  display: none;
}

.site-visits-all {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 500;
  color: #0369a1;
  text-decoration: none;
}

.site-visits-table {
  width: 100%;
  margin-top: 0.5rem;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.site-visits-table th,
.site-visits-table td {
  text-align: left;
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid #e2e8f0;
}

.site-visits-table th {
  color: #64748b;
  font-weight: 600;
  font-size: 0.75rem;
}

.visits-table--simple {
  table-layout: fixed;
  width: 100%;
}

.visits-table--simple th,
.visits-table--simple td {
  padding: 0.45rem 0.55rem;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
}

.visits-table--simple th:nth-child(1),
.visits-table--simple td:nth-child(1) {
  width: 5rem;
  white-space: nowrap;
}

.visits-table--simple th:nth-child(2),
.visits-table--simple td:nth-child(2) {
  width: 34%;
  white-space: normal;
}

.visits-table--simple th:nth-child(3),
.visits-table--simple td:nth-child(3) {
  width: auto;
}

.site-visits-link {
  color: #0369a1;
  text-decoration: none;
  word-break: break-all;
}

.site-visits-link:hover {
  text-decoration: underline;
}

.site-visits-table td:nth-child(2) {
  white-space: nowrap;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-visits-table td:nth-child(3) {
  word-break: break-all;
}

.nav-link--logout {
  color: #94a3b8;
  font-size: 0.88rem;
  margin-bottom: 0.15rem;
}

.nav-link--logout:hover {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.15);
}

.content {
  flex: 1;
  padding: 1.25rem 1.5rem;
  max-width: 520px;
  min-width: 0;
  box-sizing: border-box;
}

.content-today {
  max-width: 1180px;
  padding: 1.25rem 1.25rem 2rem;
}

.content-wide {
  max-width: 1180px;
  padding: 1.25rem 1.5rem 2rem;
}

/* Invoices / finance / broker billing — full desk width (not the 520px chat column) */
.content-finance,
.content-payments,
.content-invoices {
  max-width: min(1200px, 100%) !important;
  width: 100%;
  padding: 1.25rem 1.5rem 2.5rem;
  min-width: 0;
  box-sizing: border-box;
}

/* SEO Factory full-bleed pages (PR / portal) — use entire main area, not 520/1180 cap */
.content-wide.pr-content-full,
.content.pr-content-full,
.content-wide.factory-content-full,
.content.factory-content-full {
  max-width: none !important;
  width: 100% !important;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.75rem 1rem 1.25rem;
  box-sizing: border-box;
}

/* Today — open book: map left, desk right */
.today-book {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 0;
  align-items: stretch;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.08);
  overflow: hidden;
  min-height: 520px;
}

.today-book--no-map {
  grid-template-columns: 1fr;
}

.today-book-page {
  min-width: 0;
  min-height: 0;
}

.today-book-page--map {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.7rem 0.7rem;
  background: #f8f9fa;
  border-right: 1px solid #e2e8f0;
  position: sticky;
  top: 0.5rem;
  align-self: start;
  min-height: min(640px, calc(100vh - 5rem));
  max-height: calc(100vh - 5rem);
  height: calc(100vh - 5rem);
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}

.today-book-page--desk {
  position: relative;
  z-index: 2;
  padding: 0.7rem 0.85rem 0.9rem;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: calc(100vh - 5rem);
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
}

.today-book-page--map .desk-map-head {
  flex: 0 0 auto;
  margin-bottom: 0.35rem;
}

.today-book-page--map .desk-map {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 360px;
  margin-top: 0.25rem;
  background: #e8eaed;
  border-radius: 8px;
  border: 1px solid #dadce0;
}

/* —— Direct ops work queue: compact professional card —— */
.watch-deck--list .watch-slide--hidden { display: block !important; }
.watch-deck--list .watch-deck-nav { display: none; }
.watch-deck--list .watch-deck-track {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: none;
  overflow: visible;
}
.watch-deck--list .watch-slide {
  border: none;
  border-bottom: 1px solid #e8eaed;
  border-radius: 0;
  padding: 0.65rem 0 0.75rem;
  box-shadow: none;
  background: transparent;
}
.watch-deck--list .watch-slide:last-child { border-bottom: none; }
.watch-slide-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  margin-bottom: 0.3rem;
}
.badge-source {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  line-height: 1.3;
}
.badge-source--website { background: #dcfce7; color: #166534; }
.badge-source--transeu { background: #dbeafe; color: #1d4ed8; }
.badge-source--other { background: #f3f4f6; color: #4b5563; }
.watch-slide-pill {
  font-size: 0.62rem !important;
  padding: 0.12rem 0.4rem !important;
  font-weight: 600 !important;
}
.watch-slide-pill--ok {
  background: #e6f4ea;
  color: #137333;
}
.watch-slide-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.55rem;
  margin: 0.4rem 0 0.5rem;
  padding: 0.4rem 0.55rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
.watch-slide-price-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.watch-slide-price-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.watch-slide-price-hint {
  flex: 1 1 100%;
  font-size: 0.72rem;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
}
.watch-slide-vol {
  font-size: 0.72rem;
  font-weight: 600;
  color: #0f766e;
  margin: 0;
}
.watch-cancel-panel {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
}
.watch-cancel-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a3412;
  margin-bottom: 0.35rem;
}
.watch-cancel-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: stretch;
}
.watch-cancel-select {
  flex: 1 1 12rem;
  min-width: 10rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #fdba74;
  border-radius: 8px;
  font-size: 0.88rem;
  background: #fff;
}
.watch-cancel-other {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.85rem;
}
.watch-cancel-form .watch-outcome-btn--lost {
  white-space: nowrap;
}
/* Three equal action buttons — never full-page mobile monsters */
.watch-slide-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  margin-top: 0.15rem;
}
.watch-action-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 32px !important;
  height: 32px !important;
  line-height: 1 !important;
  padding: 0 0.45rem !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  border-radius: 7px !important;
  text-decoration: none !important;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.watch-action-btn.btn-primary {
  background: #2563eb;
  color: #fff;
  border: 1px solid #2563eb;
}
.watch-action-btn--dispatch {
  background: #fff !important;
  border: 1px solid #2563eb !important;
  color: #2563eb !important;
}
.watch-deck--list .watch-deck-title {
  font-size: 0.95rem !important;
  font-weight: 700;
  color: #0f172a !important;
}
.watch-deck--list .watch-deck-sub {
  font-size: 0.75rem !important;
  color: #64748b !important;
  line-height: 1.35;
  max-width: 36rem;
}

.today-book-page--desk .watch-deck {
  margin-bottom: 0.65rem;
  box-shadow: none;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  padding: 0.65rem 0.75rem 0.55rem;
  background: #fff;
}

.today-book-page--desk .today-section {
  margin-bottom: 0.65rem;
}

/* Desk UI: kill the giant mobile .btn look */
.content-today .btn,
.today-book .btn,
.watch-deck .btn,
.map-area-panel .btn,
.today-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 32px;
  height: auto;
  line-height: 1.25;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 7px;
  margin: 0;
}

.content-today .btn-sm,
.today-page .btn-sm {
  min-height: 28px;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
}

@media (max-width: 960px) {
  .today-book {
    grid-template-columns: 1fr;
  }

  .today-book-page--map {
    position: relative;
    top: 0;
    height: auto;
    min-height: 380px;
    max-height: none;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .today-book-page--map .desk-map {
    min-height: 300px;
    height: 340px;
    flex: 0 0 auto;
  }

  .today-book-page--desk {
    max-height: none;
  }

  .watch-slide-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.content-schedule {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 1rem 1.25rem 1.75rem;
}

.schedule-page {
  width: 100%;
}

.schedule-header h1 {
  margin: 0 0 0.2rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
}
.schedule-header .section-note {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
}

.schedule-tabs {
  display: flex;
  gap: 0.35rem;
}

.schedule-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.schedule-toolbar-left,
.schedule-toolbar-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.schedule-toolbar-right {
  margin-left: auto;
}

.content-schedule .btn,
.content-schedule .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-height: 30px;
  height: auto;
  line-height: 1.2;
  padding: 0.28rem 0.65rem;
  border-radius: 7px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  cursor: pointer;
  margin: 0;
  box-sizing: border-box;
}
.content-schedule .btn-primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.content-schedule .btn-done {
  background: #137333;
  color: #fff;
  border-color: #137333;
  min-height: 30px;
  font-size: 0.75rem;
  padding: 0.28rem 0.65rem;
  width: auto;
  margin: 0;
}

.content-schedule .btn-active {
  background: #1967d2;
  color: #fff;
  border-color: #1967d2;
}

.content-schedule .btn-icon {
  min-width: 36px;
  padding: 0 0.5rem;
}

.toolbar-vdivider {
  width: 1px;
  height: 28px;
  background: #cbd5e1;
  flex-shrink: 0;
  align-self: center;
}

.toolbar-vdivider--spacer {
  display: none;
}

@media (min-width: 720px) {
  .toolbar-vdivider--spacer {
    display: block;
    height: 32px;
    margin: 0 0.15rem;
  }
}

.content-schedule .view-toggle {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.view-toggle--segmented {
  padding: 3px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  gap: 0;
}

.view-toggle--segmented .btn-sm {
  border: none;
  background: transparent;
  box-shadow: none;
  margin: 0;
}

.view-toggle--segmented .btn-sm.btn-active {
  background: #1967d2;
  color: #fff;
  border-radius: 7px;
}

.view-toggle-divider {
  width: 1px;
  height: 22px;
  background: #cbd5e1;
  flex-shrink: 0;
}

.content-schedule .schedule-tabs {
  display: flex;
  gap: 0.25rem;
  padding-right: 0.15rem;
}

.schedule-empty-note {
  margin: 0.75rem 0 1rem;
  color: #475569;
}

.won-day-group { margin-bottom: 1.5rem; }
.won-day-title { font-size: 1.05rem; margin: 0 0 0.5rem; color: #1e293b; }

/* —— Won jobs: clean card (not scattered flex wrap) —— */
.schedule-won-intro {
  margin-bottom: 0.75rem;
}
.schedule-won-lede {
  margin: 0 0 0.45rem !important;
  font-size: 0.8rem !important;
}
.won-job-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.85rem 0.7rem;
  margin-bottom: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.won-job-card--unassigned {
  border-color: #fcd34d;
  background: #fffbeb;
}
.won-job-card--assigned {
  border-color: #bbf7d0;
}
.won-job-card--done { opacity: 0.72; background: #f8fafc; }
.won-job-top { min-width: 0; }
.won-job-id-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.45rem;
  margin-bottom: 0.2rem;
}
.won-job-ref {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}
.won-job-title {
  margin: 0 0 0.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}
.won-job-route-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.55rem;
  font-size: 0.78rem;
  color: #64748b;
  align-items: center;
}
.won-job-route-line .pipeline-route {
  font-weight: 600;
  color: #334155;
}
.won-job-head { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; margin-bottom: 0.5rem; }
.won-job-route { font-weight: 600; }

.won-schedule-form {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0.55rem 0.6rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.won-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem 0.55rem;
  align-items: end;
}
.won-field {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  min-width: 0;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
}
.won-field span {
  line-height: 1.2;
}
.won-field input,
.won-field select {
  width: 100%;
  min-height: 32px;
  padding: 0.28rem 0.4rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: #0f172a;
  background: #fff;
  box-sizing: border-box;
}
.won-field--wide {
  grid-column: span 2;
}
.won-field--full {
  grid-column: 1 / -1;
}
.won-field--driver {
  grid-column: span 1;
}
.won-form-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding-top: 0.15rem;
}
.won-job-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding-top: 0.15rem;
  border-top: 1px solid #f1f5f9;
}
.won-done-form {
  margin: 0;
  display: inline-flex;
}
.won-close-photos {
  margin: 0.65rem 0 0.35rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 10px;
}
.won-close-photos__title {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #166534;
}
.won-close-photos__hint {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: #334155;
  line-height: 1.35;
}
.won-close-photos__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.7rem;
  align-items: end;
}
.won-close-photos__files,
.won-close-photos__note {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
}
.won-close-photos__note { min-width: 14rem; flex: 1; }
.won-close-photos input[type="file"],
.won-close-photos input[type="text"] {
  font-weight: 500;
  padding: 0.35rem 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  min-height: 2.2rem;
}
.won-driver-sent {
  font-size: 0.65rem;
  font-weight: 700;
  color: #137333;
  background: #e6f4ea;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
}
@media (max-width: 900px) {
  .won-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .won-field--wide { grid-column: span 2; }
}
@media (max-width: 520px) {
  .won-fields { grid-template-columns: 1fr 1fr; }
}

.won-done-section { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed #cbd5e1; }

/* —— Cancelled jobs list (Schedule → Won) —— */
.won-cancelled-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #fecaca;
}
.won-cancelled-note {
  margin: -0.15rem 0 0.65rem !important;
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
}
.won-cancelled-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.55rem;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 10px;
  border-left: 4px solid #ef4444;
}
.won-cancelled-card--removed {
  border-left-color: #94a3b8;
  border-color: #e2e8f0;
  background: #f8fafc;
}
.won-cancelled-card--driver-cancelled {
  border-left-color: #f59e0b;
  border-color: #fde68a;
  background: #fffbeb;
}
.won-cancelled-card--not-done {
  border-left-color: #8b5cf6;
  border-color: #ddd6fe;
  background: #f5f3ff;
}
.won-cancelled-main { min-width: 0; flex: 1 1 14rem; }
.won-cancelled-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.15rem;
}
.won-cancel-pill {
  display: inline-flex;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
}
.won-cancel-pill--removed { background: #e2e8f0; color: #475569; }
.won-cancel-pill--driver-cancelled { background: #ffedd5; color: #c2410c; }
.won-cancel-pill--not-done { background: #ede9fe; color: #6d28d9; }
.won-cancel-note {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
}
.won-cancel-when {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  color: #94a3b8;
}
.won-cancelled-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.content-schedule .btn-cancel-job {
  background: #fff;
  color: #b91c1c;
  border-color: #fecaca;
}
.content-schedule .btn-cancel-job:hover {
  background: #fef2f2;
}
.won-vol {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f766e;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 0.12rem 0.45rem;
}
.won-day-fill-wrap {
  margin: 0.35rem 0 0.85rem;
  max-width: 32rem;
}
.won-day-fill-caption {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
}
.van-fill-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.2rem;
}
.journey-add-job-vol {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}
.journey-lazy-err {
  margin: 0;
  font-size: 0.8rem;
  color: #94a3b8;
}
.won-journey-static {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.won-day-fill-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #b91c1c;
  font-weight: 600;
}
.van-fill-block {
  margin: 0.35rem 0;
  padding: 0.45rem 0.55rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
.van-fill-block--compact { margin: 0.25rem 0 0; padding: 0.35rem 0.45rem; }
.van-fill-block--high { border-color: #fcd34d; background: #fffbeb; }
.van-fill-block--over { border-color: #fca5a5; background: #fef2f2; }
.van-fill-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}
.van-fill-pct { font-weight: 800; color: #0f766e; }
.van-fill-block--high .van-fill-pct { color: #b45309; }
.van-fill-block--over .van-fill-pct { color: #b91c1c; }
.van-fill-delta { font-weight: 600; color: #64748b; font-size: 0.75rem; }
.van-fill-bar {
  position: relative;
  height: 10px;
  background: #e2e8f0;
  border-radius: 5px;
  overflow: hidden;
}
.van-fill-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  border-radius: 5px 0 0 5px;
  transition: width 0.35s ease;
}
.van-fill-block--high .van-fill-bar-inner {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}
.van-fill-block--over .van-fill-bar-inner {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}
.van-fill-bar-over {
  position: absolute;
  top: 0;
  left: 100%;
  height: 100%;
  margin-left: -1px;
  background: repeating-linear-gradient(-45deg, #ef4444, #ef4444 4px, #b91c1c 4px, #b91c1c 8px);
  transform: translateX(-100%);
  max-width: 40%;
}
.van-fill-warn {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
  color: #b91c1c;
}
.van-fill-ok {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: #0f766e;
}
.journey-open-item { margin-bottom: 0.65rem; }
.journey-open-main { font-size: 0.9rem; }
.journey-add-label {
  flex: 1 1 100%;
  margin: 0 0 0.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #475569;
}
.journey-add-hint { font-weight: 500; color: #94a3b8; }
.journey-add-card {
  flex: 1 1 100%;
  padding: 0.5rem 0.6rem;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fafc;
  margin-bottom: 0.45rem;
}
.journey-add-card--over {
  border-color: #fecaca;
  background: #fef2f2;
}
.journey-add-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  align-items: baseline;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}
.journey-add-pct { margin-left: auto; font-size: 0.82rem; color: #1d4ed8; }
.journey-add-card--over .journey-add-pct { color: #b91c1c; }
.journey-add-form { margin-top: 0.35rem; }
.btn-journey-over {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  cursor: not-allowed;
  opacity: 0.95;
}
.won-stack-bar--over {
  border-color: #fca5a5;
  background: #fef2f2;
}
.won-stack-main { flex: 1; min-width: 12rem; }
.schedule-avail-banner {
  margin: 0 0 0.65rem;
  padding: 0.4rem 0.6rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #1e3a5f;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
}
.schedule-avail-banner a { font-weight: 600; }
.schedule-avail-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.35;
}
.schedule-avail-hint strong { color: #0f766e; }
.schedule-driver-select option.schedule-driver--avail { color: #166534; }
.schedule-driver-select option.schedule-driver--away { color: #94a3b8; }
.won-stack-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.75rem;
  background: #eef6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  font-size: 0.92rem;
}

.schedule-pending-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 0.9rem;
  color: #78350f;
}

.schedule-pending-banner p {
  margin: 0;
}

.schedule-empty-note--calendar {
  margin-bottom: 1rem;
}

.schedule-waiting {
  margin-bottom: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.schedule-waiting-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.85rem 1rem;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
}

.schedule-waiting-head .section-label {
  margin: 0;
}

.schedule-waiting-count {
  font-size: 0.82rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.schedule-waiting-note {
  margin: 0;
  padding: 0.65rem 1rem;
  color: #78350f;
  font-size: 0.88rem;
  background: #fffbeb;
  border-bottom: 1px solid #fde68a;
}

.schedule-waiting-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.schedule-waiting-item {
  border-bottom: 1px solid #e2e8f0;
}

.schedule-waiting-item:last-child {
  border-bottom: none;
}

.schedule-waiting-item .work-list-card--waiting {
  margin: 0;
  border: none;
  border-radius: 0;
  border-left: 4px solid #f59e0b;
  background: #fff;
}

.schedule-section-divider {
  border: none;
  border-top: 2px solid #e2e8f0;
  margin: 1.25rem 0 1.5rem;
}

.work-list-card--waiting {
  border-left: 4px solid #f59e0b;
}

.wait-badge {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 600;
}

.content-schedule .my-work-controls {
  width: 100%;
  margin-bottom: 1rem;
  justify-content: space-between;
}

.content-schedule .driver-filter select {
  min-width: 150px;
  padding: 0.4rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.875rem;
  background: #fff;
}

.content-schedule .week-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.content-schedule .week-label {
  min-width: 160px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #334155;
}

.content-schedule .work-week-grid {
  width: 100%;
  min-height: calc(100vh - 280px);
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #e2e8f0;
}

.content-schedule .work-time-col {
  background: #f8fafc;
  border-right: 1px solid #cbd5e1;
}

.content-schedule .work-hour {
  height: 56px;
  font-size: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  padding: 0.25rem 0.35rem;
  color: #64748b;
}

.content-schedule .work-day-col {
  border-right: 1px solid #cbd5e1;
  background: #fff;
}

.content-schedule .work-day-col:last-child {
  border-right: none;
}

.content-schedule .work-day-body {
  height: calc(13 * 56px);
  position: relative;
}

.content-schedule .work-day-slot {
  height: 56px;
  border-bottom: 1px solid #e2e8f0;
  pointer-events: none;
}

.content-schedule .work-day-head {
  height: 44px;
  font-size: 0.875rem;
  font-weight: 700;
  border-bottom: 1px solid #cbd5e1;
  background: #f1f5f9;
}

.content-schedule .work-corner {
  border-bottom: 1px solid #cbd5e1;
  background: #f1f5f9;
}

.content-schedule .work-journey {
  font-size: 0.78rem;
  padding: 0.45rem 0.5rem 0.5rem;
  overflow: visible;
  z-index: 1;
  min-height: 118px;
}
.content-schedule .work-journey:hover,
.content-schedule .work-journey:focus-within {
  z-index: 25;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.18);
}
.content-schedule .work-journey--unassigned {
  min-height: 128px;
}

.content-schedule .job-board-card--empty {
  width: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.content-schedule .work-list-card {
  grid-template-columns: 1fr minmax(240px, 320px);
  gap: 0.55rem;
  padding: 0.7rem 0.75rem;
}

.content-schedule .pipeline-week {
  width: 100%;
  margin-bottom: 1rem;
}
.content-schedule .pipeline-week > .section-label {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.won-day-count {
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0;
  text-transform: none;
}
.won-day-fill-wrap {
  margin: 0 0 0.55rem;
  max-width: 28rem;
}
.won-stack-bar {
  padding: 0.45rem 0.6rem;
  margin-bottom: 0.55rem;
  font-size: 0.8rem;
}

.drivers-section {
  width: 100%;
}

.drivers-banner {
  background: #fef7e0;
  border: 1px solid #f9e076;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.drivers-banner--app {
  background: #e6f4ea;
  border-color: #ceead6;
}

.drivers-banner--login {
  background: #e8f0fe;
  border-color: #aecbfa;
}

.driver-login-codes-list {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.driver-login-codes-empty {
  color: #5f6368;
  font-size: 0.85rem;
}

.driver-login-code-card {
  background: #fff;
  border: 1px solid #c6dafc;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.driver-login-code-meta {
  font-size: 0.82rem;
  color: #3c4043;
  margin-bottom: 0.35rem;
}

.driver-login-code-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.driver-login-code-digits {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  color: #1a73e8;
  background: #f8f9fa;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.driver-login-copy {
  background: #1a73e8 !important;
  color: #fff !important;
  border-color: #1a73e8 !important;
}

.driver-app-link {
  font-weight: 700;
  color: #137333;
  word-break: break-all;
}

.drivers-banner--recruit {
  background: #eff6ff;
  border-color: #93c5fd;
}
.driver-apply-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}
.driver-sourcing-panel,
.driver-leads-panel {
  margin-bottom: 1.25rem;
}
.driver-sourcing-block {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  background: #fafafa;
}
.driver-sourcing-block summary {
  cursor: pointer;
  font-size: 0.92rem;
}
.driver-sourcing-tips {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.2rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #334155;
}
.driver-ad-copy {
  margin-top: 0.5rem;
}
.driver-ad-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.25rem;
}
.driver-ad-text {
  width: 100%;
  font-size: 0.8rem;
  padding: 0.45rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  margin-bottom: 0.35rem;
  resize: vertical;
}
.driver-lead-add-form {
  margin-bottom: 0.75rem;
}
.driver-leads-table .muted {
  font-size: 0.78rem;
  color: #64748b;
}
.lead-status-form select {
  font-size: 0.82rem;
  padding: 0.2rem 0.35rem;
}
.btn-onboard {
  background: #137333 !important;
  color: #fff !important;
  border-color: #137333 !important;
}

.driver-add-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.driver-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 0.75rem 0 1rem;
}

.driver-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.driver-form-grid input {
  padding: 0.45rem 0.55rem;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 0.9rem;
}

.btn-add-driver {
  background: #16a34a !important;
  color: #fff !important;
  border-color: #16a34a !important;
}

.drivers-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  font-size: 0.9rem;
}

.drivers-table th,
.drivers-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 0.65rem 0.85rem;
  text-align: left;
}

.drivers-table th {
  background: #f8fafc;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748b;
}

.driver-leads-table {
  overflow-x: auto;
}
.driver-leads-table td {
  vertical-align: top;
  word-break: break-word;
}
.driver-leads-name {
  display: block;
}
.driver-leads-date {
  display: block;
  margin-top: 0.2rem;
}
.lead-notes-cell {
  min-width: 14rem;
  max-width: 22rem;
}
.lead-call-notes-log {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #334155;
  max-height: 6.5rem;
  overflow-y: auto;
  margin-bottom: 0.4rem;
}
.lead-call-notes-log p { margin: 0 0 0.3rem; }
.lead-call-notes-add {
  display: flex;
  gap: 0.4rem;
  align-items: flex-end;
}
@media (max-width: 960px) {
  .driver-leads-table thead {
    display: none;
  }
  .driver-leads-table,
  .driver-leads-table tbody,
  .driver-leads-table tr,
  .driver-leads-table td {
    display: block;
    width: 100%;
  }
  .driver-leads-table tr {
    border-bottom: 10px solid #f1f5f9;
    padding: 0.65rem 0 0.85rem;
  }
  .driver-leads-table td {
    border: 0;
    padding: 0.2rem 0.85rem;
  }
  .driver-leads-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.1rem;
  }
  .driver-leads-table td:first-child::before {
    content: none;
  }
}

.drivers-row--inactive {
  opacity: 0.55;
}

.driver-pin {
  font-family: ui-monospace, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #137333;
  background: #e6f4ea;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.btn-edit {
  background: #fce7f3 !important;
  color: #be185d !important;
  border-color: #f9a8d4 !important;
  cursor: pointer;
}

.driver-remove-box {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid #fecaca;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.driver-remove-form {
  display: inline;
}
.btn-danger {
  background: #b91c1c !important;
  color: #fff !important;
  border-color: #991b1b !important;
}
.btn-danger:hover {
  background: #991b1b !important;
}
.drivers-folders-head {
  margin: 0 0 1rem;
}
.drivers-folders-title {
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}
.driver-folder-link {
  color: #0f172a;
  text-decoration: none;
}
.driver-folder-link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}
.drivers-folder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: flex-start;
}

.driver-edit-form {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  display: grid;
  gap: 0.5rem;
  min-width: 220px;
}

.driver-edit-form label {
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.driver-edit-form input[type="text"],
.driver-edit-form input[type="email"],
.driver-edit-form input[type="tel"] {
  padding: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.job-sheet-link {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1967d2;
  text-decoration: none;
}

.job-sheet-link:hover {
  text-decoration: underline;
}

.job-sheet-btn {
  display: inline-block;
  padding: 0.4rem 0.65rem;
  border: 1px solid #2563eb;
  border-radius: 6px;
  background: #fff;
  color: #1d4ed8 !important;
  text-decoration: none !important;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
}

.job-sheet-btn:hover {
  background: #eff6ff;
}

.work-journey--clickable {
  cursor: pointer;
}

.work-journey--clickable .work-journey-actions {
  cursor: default;
}

.content-schedule .work-journey .job-sheet-btn {
  display: block;
  width: 100%;
  padding: 0.3rem 0.4rem;
  font-size: 0.68rem;
  margin-top: 0.15rem;
}

body.job-sheet-modal-open {
  overflow: hidden;
}

.job-sheet-backdrop[hidden],
.job-sheet-modal[hidden] {
  display: none !important;
}

.job-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.job-sheet-modal {
  position: fixed;
  z-index: 1201;
  top: 4vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 94vw);
  height: 92vh;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.job-sheet-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  flex-shrink: 0;
}

.job-sheet-modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.job-sheet-modal-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.job-sheet-close-btn {
  background: #334155;
  color: #fff;
  border-color: #334155;
  font-weight: 700;
}

.job-sheet-close-btn:hover {
  background: #1e293b;
}

.job-sheet-modal-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.25rem 1.5rem;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

/* Inline job sheet under the card (no popup) */
.job-sheet-inline-panel {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  width: 100%;
  max-width: 100%;
  grid-column: 1 / -1;
}
.job-sheet-inline-panel[hidden] {
  display: none !important;
}
.job-sheet-inline-panel__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.job-sheet-inline-panel__body {
  max-height: min(70vh, 720px);
  overflow: auto;
}
.work-list-card.has-job-sheet-open,
.work-journey.has-job-sheet-open {
  outline: 2px solid #86efac;
  outline-offset: 2px;
}
.schedule-driver-confirm {
  margin-top: 0.45rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.schedule-driver-confirm[hidden] {
  display: none !important;
}
.schedule-driver-confirm strong {
  color: #b45309;
}
/* legacy selector — won cards use .won-job-card layout above */
.work-list-card.won-job-card {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.65rem;
}
.work-list-card.won-job-card > .job-sheet-inline-panel {
  flex: 1 1 100%;
}
.won-source-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: #dbeafe;
  color: #1e40af;
  vertical-align: middle;
}
.watch-slide-price-value--missing {
  color: #b45309;
}
.watch-set-price {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.35rem;
}
.watch-set-price input[type="number"] {
  width: 6.5rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  font-size: 0.9rem;
}
.watch-set-price select {
  padding: 0.35rem 0.4rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
}
.job-sheet-loading,
.job-sheet-error {
  margin: 2rem 0;
  text-align: center;
  color: #64748b;
  font-size: 1rem;
}

.work-journey-actions {
  margin-top: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.work-journey-assign-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 0.15rem;
}

.work-journey-driver-select,
.work-journey-assign select {
  width: 100%;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.35rem;
  min-height: 34px;
  border-radius: 6px;
  border: 1px solid #94a3b8;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.work-journey-spec-link {
  font-size: 0.68rem;
  font-weight: 600;
  text-align: center;
  padding: 0.2rem 0;
}

.work-journey-driver {
  font-weight: 700;
}

/* ── Today page (job board style) ── */

.today-page {
  width: 100%;
}

.today-header {
  margin-bottom: 1.25rem;
}

.workflow-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: #5f6368;
}

.workflow-step {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #f1f3f4;
}

.workflow-step--on {
  background: #e8f0fe;
  color: #1967d2;
  font-weight: 600;
}

.workflow-step a {
  color: inherit;
  font-weight: 600;
}

.workflow-arrow {
  color: #80868b;
  font-size: 0.8rem;
}

.today-section--live .section-label {
  color: #137333;
}

.today-section--practice {
  margin-top: 1.5rem;
}

.practice-details {
  border: 1px dashed #dadce0;
  border-radius: 10px;
  padding: 0.75rem 1rem 0.25rem;
  background: #fafafa;
}

.practice-details > summary {
  cursor: pointer;
  list-style: none;
  margin-bottom: 0.5rem;
}

.practice-details > summary::-webkit-details-marker {
  display: none;
}

.section-label--practice {
  color: #b06000;
}

.status-pill {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
}

.status-pill--green {
  background: #e6f4ea;
  color: #137333;
}

.status-pill--amber {
  background: #fef7e0;
  color: #b06000;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f6368;
  margin: 0 0 0.75rem;
}

.today-summary {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  color: #5f6368;
}

.section-note {
  margin: -0.35rem 0 0.75rem;
  font-size: 0.85rem;
  color: #80868b;
}

.today-section--alert .section-label {
  color: #b06000;
}

.queue-min {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #80868b;
}

.job-board-card {
  background: #fff;
  border: 1px solid #e0e4ea;
  border-radius: 10px;
  padding: 0.875rem 1.125rem;
  margin-bottom: 0.625rem;
}

.job-board-card--active {
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}

.job-board-card--empty {
  text-align: left;
  color: #5f6368;
  padding: 0.75rem 0.9rem;
  border-style: dashed;
}

.desk-empty-line {
  margin: 0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.45;
}
.desk-empty-line a {
  font-weight: 600;
  color: #1967d2;
  text-decoration: none;
}
.desk-empty-line a:hover { text-decoration: underline; }

.job-board-card--queue {
  padding: 0.875rem 1.25rem;
  opacity: 0.92;
}

.job-board-card--watch {
  padding: 0.85rem 1rem;
  border-left: 3px solid #1967d2;
  margin-bottom: 0.65rem;
}

.job-board-card--watch-alert {
  border-left-color: #f59e0b;
  background: #fffdf8;
}

.job-board-card--watch-live {
  border-left-color: #137333;
  background: #f8fdf9;
}

.badge-shiply-placed {
  display: inline-block;
  background: #e6f4ea;
  color: #137333;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  margin-bottom: 0.25rem;
}

.watch-card-as {
  display: block;
  font-size: 0.78rem;
  color: #137333;
  font-weight: 600;
  margin-top: 0.2rem;
}

.watch-price-box--shiply {
  background: #e6f4ea;
  border: 1px solid #ceead6;
}

.watch-price-box--shiply strong {
  color: #137333;
}

.watch-price-box--min strong {
  color: #5f6368;
}

.watch-card-live {
  margin: 0.65rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: #e6f4ea;
  border: 1px solid #ceead6;
  color: #137333;
  font-size: 0.82rem;
}

.watch-card-live--soft {
  background: #f0f7ff;
  border-color: #c5d9f5;
  color: #1a4a8a;
}

.watch-card-floor-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #5f6368;
}

.watch-card-min-note {
  margin: 0.25rem 0 0;
  font-size: 0.76rem;
  color: #80868b;
}

.watch-price-hint {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: #80868b;
  margin-top: 0.1rem;
}

.watch-price-box--ok {
  background: #f8f9fa;
  border-color: #e8eaed;
}

.today-header--clean {
  margin-bottom: 1rem;
}

/* Business desk km bar — top right, horizontal chips (not booking site) */
.today-header-top-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  margin-left: auto;
}
.today-km-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.4rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 999px;
  padding: 0.28rem 0.45rem 0.28rem 0.55rem;
  border: 1px solid #334155;
  max-width: min(100%, 52rem);
}
.today-km-bar__tag {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #94a3b8;
  padding-right: 0.2rem;
  white-space: nowrap;
}
.today-km-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  background: #1e293b;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
  border: 1px solid #334155;
  white-space: nowrap;
}
.today-km-chip__label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #94a3b8;
}
.today-km-chip__pair {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12rem;
}
.today-km-chip__val {
  font-size: 0.82rem;
  font-weight: 800;
  color: #fbbf24;
  font-variant-numeric: tabular-nums;
}
.today-km-chip__val--eu {
  color: #7dd3fc;
}
.today-km-chip__unit {
  font-size: 0.62rem;
  font-weight: 700;
  color: #fbbf24;
  opacity: 0.75;
}
.today-km-chip__unit--eu {
  color: #7dd3fc;
}
.today-km-chip__sep {
  font-size: 0.7rem;
  color: #64748b;
  margin: 0 0.15rem;
  font-weight: 600;
}
.today-km-bar__meta {
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  padding: 0 0.25rem 0 0.1rem;
  white-space: nowrap;
}
.today-km-bar__fx {
  font-size: 0.68rem;
  font-weight: 700;
  color: #a5b4fc;
  background: #1e1b4b;
  border: 1px solid #3730a3;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
@media (max-width: 720px) {
  .today-km-bar {
    border-radius: 12px;
    width: 100%;
    justify-content: flex-start;
  }
  .today-header-top-right {
    width: 100%;
    justify-content: flex-start;
  }
}

.today-header-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.35rem;
}

.workflow-strip--compact {
  margin-bottom: 0;
}

.today-flash {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
}

.today-flash--ok {
  background: #e6f4ea;
  color: #137333;
}

.today-flash--warn {
  background: #fef7e0;
  color: #b06000;
  border: 1px solid #f9e076;
}

.today-backlog-strip {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.65rem;
  background: #e8f0fe;
  border: 1px solid #aecbfa;
  border-radius: 8px;
  font-size: 0.85rem;
  color: #1967d2;
  font-weight: 600;
}

.today-refresh-inline {
  display: inline;
  margin: 0;
}

.today-refresh-inline button {
  background: none;
  border: none;
  color: #1967d2;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  font-size: inherit;
  padding: 0;
}

.today-sprint-bar {
  margin: 0.4rem 0 0;
  padding: 0.4rem 0.65rem;
  background: #fef7e0;
  border: 1px solid #f9e076;
  border-radius: 8px;
  font-size: 0.82rem;
  color: #5f4300;
}

.today-sprint-bar kbd {
  display: inline-block;
  padding: 0.1rem 0.35rem;
  border: 1px solid #dadce0;
  border-radius: 4px;
  background: #fff;
  font-size: 0.75rem;
  font-family: inherit;
}

.bid-sprint-left {
  font-weight: 700;
}

.job-board-card--focus {
  outline: 2px solid #1967d2;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(25, 103, 210, 0.15);
}

.job-board-card--removed {
  display: none !important;
}

.job-board-message--fold summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.82rem;
  color: #1967d2;
  margin-bottom: 0.35rem;
}

.job-board-message--fold .shiply-msg {
  margin-top: 0.35rem;
}

.today-details {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: #5f6368;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  padding: 0.35rem 0.65rem;
  background: #fafafa;
}

.today-details summary {
  cursor: pointer;
  font-weight: 600;
  color: #3c4043;
}

.today-details p {
  margin: 0.35rem 0 0;
}

.today-inline-warn {
  margin: -0.25rem 0 0.65rem;
  font-size: 0.82rem;
  color: #b45309;
}

.today-section--watch .section-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1967d2;
  font-size: 0.85rem;
  font-weight: 700;
}

.badge-corridor--sm {
  font-size: 0.65rem;
  padding: 0.1rem 0.35rem;
}

.watch-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  align-items: flex-start;
}

.watch-card-name {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.watch-card-route {
  display: block;
  font-size: 0.82rem;
  color: #5f6368;
  margin-top: 0.15rem;
}

.watch-card-prices {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.watch-price-box {
  text-align: center;
  min-width: 3.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  background: #f1f3f4;
}

.watch-price-box--bid {
  background: #e8f0fe;
}

.watch-price-box--bid strong {
  color: #1967d2;
}

.watch-price-box--rival {
  background: #fce8e6;
}

.watch-price-box--rival strong {
  color: #c5221f;
}

.watch-price-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #80868b;
  font-weight: 600;
}

.watch-card-alert {
  margin: 0.65rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.82rem;
}

.watch-card-status {
  margin: 0.45rem 0 0;
  font-size: 0.8rem;
  color: #5f6368;
}

.watch-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}

.btn-ghost {
  background: transparent;
  border: 1px solid #dadce0;
  color: #5f6368;
}

.watch-card-more {
  margin-top: 0.55rem;
  font-size: 0.82rem;
}

.watch-card-more summary {
  cursor: pointer;
  color: #1967d2;
  font-weight: 600;
}

.watch-card-more .shiply-msg--compact {
  margin-top: 0.45rem;
  width: 100%;
}

.job-board-qa-thread--compact {
  margin: 0.45rem 0 0;
  padding-left: 1rem;
  font-size: 0.8rem;
}

.job-board-qa-thread--compact .qa-item {
  margin-bottom: 0.35rem;
}

.desk-map-section {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 0.75rem 1rem 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.06);
}

.today-book-page--map.desk-map-section,
.today-book-page--map {
  margin-bottom: 0;
}

.desk-map-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 30;
  overflow: visible;
}

.desk-job-search {
  position: relative;
  flex: 1 1 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: center;
  max-width: 100%;
  overflow: visible;
  margin: 0.25rem 0 0.15rem;
}

.desk-job-search-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.32rem 0.5rem;
  border: 1px solid #dadce0;
  border-radius: 7px;
  font: inherit;
  font-size: 0.78rem;
  height: 32px;
  box-sizing: border-box;
}

.desk-job-search-input:focus {
  outline: none;
  border-color: #1967d2;
  box-shadow: 0 0 0 2px rgba(25, 103, 210, 0.2);
}

.desk-job-search-status {
  padding: 0.25rem 0.4rem;
  border: 1px solid #dadce0;
  border-radius: 7px;
  font: inherit;
  font-size: 0.75rem;
  background: #fff;
  height: 32px;
  box-sizing: border-box;
  flex: 0 0 auto;
}

.desk-job-search-results {
  position: absolute;
  z-index: 5000;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.25rem;
  max-height: min(320px, 50vh);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.18);
  color: #202124;
  pointer-events: auto;
}

.desk-job-search-results[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.desk-job-search-empty {
  margin: 0;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #5f6368;
}

.desk-job-search-item {
  display: flex;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border: none;
  border-bottom: 1px solid #f1f3f4;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.desk-job-search-book {
  margin-top: 0.25rem;
  padding: 0.25rem 0.55rem;
  border: none;
  border-radius: 6px;
  background: #1e8e3e;
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.desk-job-search-book:hover {
  background: #137333;
}

.desk-job-search-book:disabled {
  opacity: 0.7;
  cursor: wait;
}

.desk-job-search-done {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #137333;
}

.desk-job-search-item:hover,
.desk-job-search-item--active {
  background: #e8f0fe;
}

.desk-job-search-item-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.desk-job-search-item-main strong {
  font-weight: 600;
  color: #202124;
}

.desk-job-search-route {
  color: #5f6368;
  font-size: 0.78rem;
}

.desk-job-search-user {
  color: #1967d2;
  font-size: 0.76rem;
}

.desk-job-search-id {
  color: #80868b;
  font-size: 0.74rem;
  margin-left: 0.35rem;
}

.desk-job-search-item-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.2rem;
  flex-shrink: 0;
  font-size: 0.74rem;
  color: #5f6368;
}

.desk-job-search-badge {
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.desk-job-search-item--won .desk-job-search-badge {
  background: #e6f4ea;
  color: #137333;
}

.desk-job-search-item--watch .desk-job-search-badge {
  background: #fef7e0;
  color: #b06000;
}

.desk-job-search-item--lost .desk-job-search-badge {
  background: #fce8e6;
  color: #c5221f;
}

.desk-job-search-item--bid .desk-job-search-badge {
  background: #e8f0fe;
  color: #1967d2;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.desk-map-head-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.desk-map-title {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: #3c4043;
  white-space: nowrap;
}

.desk-map-toolbar {
  flex: 1 1 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.65rem;
  min-width: 0;
}

.desk-map-legend {
  margin: 0;
  font-size: 0.78rem;
  color: #5f6368;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.desk-map-status {
  margin: 0;
  font-size: 0.78rem;
  color: #5f6368;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  line-height: 1.4;
}

.desk-map-status-sep {
  color: #bdc1c6;
}

.desk-map-gap-hint {
  font-size: 0.72rem;
  color: #80868b;
}

.desk-map-funnel-note {
  margin: 0;
  font-size: 0.72rem;
  color: #80868b;
  line-height: 1.35;
}

.desk-map-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem 0.45rem;
  border: 1px solid #dadce0;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  color: #5f6368;
  cursor: pointer;
}

.desk-map-filter:hover {
  background: #f8f9fa;
  border-color: #bdc1c6;
}

.desk-map-filter--active {
  background: #e8f0fe;
  border-color: #1967d2;
  color: #1967d2;
  font-weight: 600;
}

.desk-map-filter--active .desk-map-dot {
  box-shadow: 0 0 0 1px rgba(25, 103, 210, 0.35);
}

.desk-map-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 0.2rem;
  vertical-align: middle;
}

.desk-map-dot--watch {
  background: #e37400;
}

.desk-map-dot--bid {
  background: #1967d2;
}

.desk-map-dot--drop {
  background: #ea4335;
}

.desk-map-key {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.72rem;
  color: #5f6368;
  margin-right: 0.25rem;
}

.desk-map-dot--won {
  background: #1e8e3e;
}

.desk-map-stat-bump {
  animation: desk-stat-tick 0.55s ease-out;
  color: #1967d2;
}

@keyframes desk-stat-tick {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.desk-map-live {
  color: #1e8e3e;
  font-weight: 600;
  font-size: 0.75rem;
}

.desk-map-live--busy {
  color: #e37400;
}

.desk-map-live--busy::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #e37400;
  animation: desk-map-pulse 0.9s ease-in-out infinite;
}

.desk-map-live--ok::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: #1e8e3e;
}

@keyframes desk-map-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}

.desk-map-workflow {
  margin: 0;
  font-size: 0.72rem;
  color: #5f6368;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .desk-map-workflow {
    white-space: normal;
  }
  .desk-map-legend {
    flex-wrap: wrap;
  }
}

.desk-map {
  height: 480px;
  min-height: 360px;
  border-radius: 10px;
  border: 1px solid #e8eaed;
  z-index: 1;
  background: #e8eaed;
}

.today-book-page--map .desk-map {
  position: relative;
}

.desk-map.leaflet-container {
  font-family: inherit;
}

.desk-map .leaflet-tile-pane {
  opacity: 1;
}

.desk-map .leaflet-control-attribution {
  font-size: 9px;
}

.desk-map .leaflet-popup-content {
  margin: 7px 9px;
  font-size: 0.74rem;
  line-height: 1.35;
  max-width: 170px;
}

.desk-map .leaflet-popup-content strong {
  font-size: 0.78rem;
  line-height: 1.25;
  display: block;
}

.desk-map-tooltip.leaflet-tooltip {
  max-width: 220px;
  font-size: 0.74rem;
  line-height: 1.35;
  white-space: normal;
}

/* —— Map click → area panel (right book page) —— */
.map-area-compact-slot--loading {
  padding: 0.5rem 0;
  color: #64748b;
  font-size: 0.88rem;
}
.map-area-compact-slot--loading p { margin: 0; }

.map-area-panel {
  position: relative;
  z-index: 20;
  background: #f0faf2;
  border: 1px solid #1e8e3e;
  border-radius: 10px;
  padding: 0.65rem 0.75rem 0.75rem;
  margin-bottom: 0.85rem;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.08);
  max-height: min(72vh, calc(100vh - 6.5rem));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.map-area-panel--hidden {
  display: none;
}

.map-area-head {
  position: relative;
  padding-right: 1.5rem;
}

.map-area-close {
  position: absolute;
  top: -0.15rem;
  right: 0;
  border: none;
  background: none;
  font-size: 1.35rem;
  line-height: 1;
  color: #5f6368;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
}

.map-area-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #202124;
}

.map-area-summary {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: #5f6368;
}

.map-area-hint {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  color: #137333;
}

.map-area-jobs {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.map-area-job {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: stretch;
  padding: 0.65rem 0.75rem;
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 8px;
  font-size: 0.82rem;
}

.map-area-job--picked {
  border-color: #1e8e3e;
  background: #fff;
}

.map-area-compact-slot {
  width: 100%;
  clear: both;
}

.map-area-job--has-full .map-area-compact-slot {
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e8eaed;
}

.map-area-job--has-full {
  padding: 0.65rem 0.75rem;
  border: 1px solid #aecbfa;
  background: #fff;
}

.map-area-full-board .job-board-card {
  margin-bottom: 0;
  box-shadow: none;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
}

.map-area-full-board .job-board-title h2 {
  font-size: 0.88rem;
  line-height: 1.25;
  margin: 0.15rem 0 0.1rem;
}

.map-area-full-board .job-board-sub,
.map-area-full-board .job-board-dates {
  font-size: 0.72rem;
}

.map-area-full-board .badge {
  font-size: 0.58rem;
  padding: 0.1rem 0.32rem;
}

.map-area-full-board .mike-bid-strip {
  margin: 0.35rem 0 0.25rem;
  padding: 0.35rem 0.5rem;
  gap: 0.35rem;
}

.map-area-full-board .bid-price-grid {
  margin: 0.35rem 0 0.3rem;
  gap: 0.35rem;
}

.map-area-full-board .bid-price-value {
  font-size: 1.15rem;
}

.map-area-full-board .bid-price-label,
.map-area-full-board .bid-price-hint {
  font-size: 0.58rem;
}

.map-area-full-board .bid-workflow {
  margin: 0.35rem 0;
}

.map-area-full-board .bid-workflow-step {
  padding: 0.35rem 0.45rem;
  font-size: 0.68rem;
}

.map-area-full-board .bid-workflow-num {
  width: 1.1rem;
  height: 1.1rem;
  line-height: 1.1rem;
  font-size: 0.62rem;
}

.map-area-full-board .bid-action-bar {
  margin-top: 0.4rem;
  gap: 0.3rem;
}

.map-area-full-board .bid-action-btn {
  min-height: 34px;
  font-size: 0.68rem;
  padding: 0.3rem 0.25rem;
}

.map-area-full-board .bid-skip-form {
  display: none;
}

.map-area-full-board .cost-sheet-strip {
  margin: 0 0 0.3rem;
  padding: 0.28rem 0.45rem;
  font-size: 0.72rem;
}

.map-area-full-board .mike-intent-hint {
  font-size: 0.72rem;
  margin: 0 0 0.3rem;
}

.map-area-full-board .job-board-grid {
  display: none;
}

.map-area-full-board .job-board-details,
.map-area-full-board .job-board-pricing-why {
  display: none;
}

.map-area-full-board .job-board-message {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
}

.map-area-full-board .job-board-message .col-label {
  font-size: 0.68rem;
  margin-bottom: 0.25rem;
}

.map-area-full-board .shiply-msg {
  min-height: 3rem;
  max-height: none;
  overflow: visible;
  font-size: 0.72rem;
  padding: 0.35rem 0.45rem;
  margin-bottom: 0.25rem;
}

.map-area-full-board .job-board-msg-note,
.map-area-full-board .job-board-hint {
  font-size: 0.68rem;
  margin: 0.2rem 0 0;
  line-height: 1.3;
}

.map-area-full-board .job-board-qa {
  display: none;
}

.map-area-full-board .btn-copy {
  font-size: 0.72rem;
  padding: 0.3rem 0.5rem;
}

.map-area-full-board .job-board-actions .btn-done {
  font-size: 0.78rem;
  min-height: 34px;
}

.map-area-more-jobs {
  margin: 0.5rem 0 0;
  border-top: 1px dashed #dadce0;
  padding-top: 0.4rem;
}

.map-area-more-jobs summary {
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1967d2;
  list-style: none;
  padding: 0.2rem 0;
}

.map-area-more-jobs summary::-webkit-details-marker {
  display: none;
}

.map-area-more-jobs summary::before {
  content: "▸ ";
  display: inline-block;
}

.map-area-more-jobs[open] summary::before {
  content: "▾ ";
}

.map-area-jobs--more {
  margin-top: 0.45rem;
}

.map-area-job--picked.map-area-job--has-full {
  outline: 2px solid #1967d2;
  outline-offset: 2px;
  border-radius: 10px;
  padding: 0;
}

.map-area-job--bid {
  border-color: #aecbfa;
}

.map-area-prices--prominent {
  margin: 0.25rem 0 0.35rem;
  font-size: 0.85rem;
}
.map-area-prices--pending {
  margin: 0.25rem 0 0.35rem;
  color: #64748b;
  font-size: 0.78rem;
}

.map-area-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr));
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.map-area-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  min-height: 30px;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
  box-sizing: border-box;
  white-space: nowrap;
}

.map-area-btn--primary,
.map-area-btn--won {
  background: #1967d2;
  color: #fff;
  border-color: #1967d2;
}

.map-area-btn--primary:hover,
.map-area-btn--won:hover {
  background: #1557b0;
  color: #fff;
}

.map-area-btn--copy {
  background: #e8f0fe;
  color: #1967d2;
  border-color: #aecbfa;
}

.map-area-btn--ghost {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
}

.map-area-btn--won-prominent {
  display: inline-flex;
  width: auto;
  min-height: 30px;
  box-sizing: border-box;
  text-align: center;
  padding: 0.28rem 0.65rem;
  font-size: 0.74rem;
  font-weight: 600;
  background: #137333;
  color: #fff;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

.map-area-btn--won-prominent:hover {
  background: #0d652d;
  color: #fff;
}

.map-area-lost {
  margin-top: 0.25rem;
}

.map-area-lost .map-area-btn {
  width: auto;
  box-sizing: border-box;
  text-align: center;
}

.map-area-schedule-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1967d2;
  text-decoration: none;
  margin-top: 0.35rem;
}
.map-area-schedule-link:hover {
  text-decoration: underline;
}

.map-area-full-note--watch {
  color: #137333;
  font-weight: 600;
}

.map-area-btn--won:not(.map-area-btn--won-prominent) {
  background: #e6f4ea;
  color: #137333;
  text-decoration: none;
}

.map-area-btn--ghost {
  background: #f1f3f4;
  color: #5f6368;
}

.map-area-btn--done {
  background: #1a2744;
  color: #fff;
  font-weight: 600;
}

.map-area-btn--done:hover {
  background: #0f1829;
  color: #fff;
}

.map-area-done {
  margin: 0;
}

.map-area-done-bar {
  margin: 0.5rem 0 0.65rem;
}

.map-area-btn--done-prominent {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 0.55rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 700;
  background: #1a2744;
  color: #fff;
  border-radius: 8px;
}

.map-area-btn--done-prominent:hover {
  background: #0f1829;
  color: #fff;
}

.map-area-full-board > .map-area-done-bar {
  margin: 0 0 0.5rem;
}

.map-area-full-board .job-board-actions .done-form {
  display: none;
}

.map-area-full-card .map-area-done-bar {
  margin-top: 0.55rem;
}

.map-area-hint--bid {
  color: #1967d2;
}

.map-area-full-card {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  padding: 0.65rem 0.7rem;
  background: #f8f9fa;
  border: 1px solid #dadce0;
  border-radius: 8px;
  overflow: visible;
}

.map-area-full-card .shiply-msg,
.map-area-full-msg {
  max-height: 7rem;
  overflow-y: auto;
}

/* Bookings + trans.eu work focus (marketplace bid/min removed) */
.job-source-hint {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.85rem;
  color: #546e7a;
}
.watch-ops-links {
  margin: 0.5rem 0 0.85rem;
  font-size: 0.9rem;
}
.watch-ops-links a { font-weight: 600; }
.badge-source {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.badge-source--website {
  background: #e8f5e9;
  color: #1b5e20;
  border-color: #a5d6a7;
}
.badge-source--transeu {
  background: #e3f2fd;
  color: #0d47a1;
  border-color: #90caf9;
}
.badge-source--other {
  background: #f5f5f5;
  color: #424242;
  border-color: #e0e0e0;
}
.watch-slide-pill.badge-source {
  margin-right: 0.35rem;
}
.queue-src {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #546e7a;
  margin-top: 0.15rem;
}
.job-work-focus {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 0.65rem;
  margin: 0.65rem 0 0.85rem;
}
@media (max-width: 520px) {
  .job-work-focus { grid-template-columns: 1fr; }
}
.job-work-focus__cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.job-work-focus__cell--where {
  background: #eff6ff;
  border-color: #bfdbfe;
}
.bid-price-value--route {
  font-size: 1.05rem !important;
  letter-spacing: -0.01em;
}

.map-area-full-prices {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
}

.map-area-full-note {
  margin: 0 0 0.45rem;
  font-size: 0.76rem;
  color: #5f6368;
  line-height: 1.35;
}

.map-area-full-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #5f6368;
  margin-bottom: 0.25rem;
}

.map-area-full-msg {
  width: 100%;
  font-size: 0.76rem;
  border: 1px solid #dadce0;
  border-radius: 6px;
  padding: 0.4rem;
  margin-bottom: 0.35rem;
  resize: vertical;
}

.map-area-full-hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: #80868b;
}

.job-board-card--highlight {
  outline: 2px solid #1967d2;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(25, 103, 210, 0.15);
}

.map-area-job--won {
  border-color: #1e8e3e;
  background: #f0faf2;
}

.map-area-badge {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  align-self: flex-start;
}

.map-area-badge--won {
  background: #e6f4ea;
  color: #137333;
}

.map-area-badge--watch {
  background: #e6f4ea;
  color: #137333;
}

.map-area-badge--bid {
  background: #e8f0fe;
  color: #1967d2;
}

.map-area-job-title {
  font-weight: 600;
  color: #202124;
  line-height: 1.25;
  display: block;
}

.map-area-job-route {
  color: #5f6368;
  font-size: 0.78rem;
  display: block;
}

.map-area-job-vol {
  display: block;
  font-size: 0.82rem;
  color: #1a5fb4;
  margin: 2px 0 4px;
}

.map-area-gbp-ref {
  color: #80868b;
  font-size: 0.78rem;
  font-weight: normal;
}

.map-area-action {
  grid-column: 2;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.15rem;
}

.map-area-action--primary {
  color: #137333;
}

.map-area-bid {
  grid-column: 2;
  font-weight: 600;
  color: #1967d2;
  font-size: 0.78rem;
}

.map-area-schedule-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #137333;
  text-decoration: none;
}

.map-area-loading {
  margin: 0;
  font-size: 0.85rem;
  color: #5f6368;
}

.map-area-job--picked {
  outline: 2px solid #1967d2;
  outline-offset: 2px;
  border-radius: 8px;
}

/* —— Already on Shiply deck (one card at a time) —— */
.watch-deck {
  background: #fff;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  padding: 1rem 1.15rem 1.1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 4px rgba(60, 64, 67, 0.08);
}

.watch-deck-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e8eaed;
}

.watch-deck-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
}

.watch-deck-sub {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #5f6368;
  line-height: 1.35;
}

.watch-deck-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.watch-deck-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: #3c4043;
}

.watch-deck-auto {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: #5f6368;
}

.watch-deck-auto--busy .watch-auto-dot {
  background: #f9ab00;
  animation: watch-pulse 0.8s ease infinite;
}

.watch-auto-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34a853;
  animation: watch-pulse 2s ease infinite;
}

@keyframes watch-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.watch-deck-warn {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: #b06000;
  background: #fef7e0;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
}

.watch-slide {
  padding: 0.25rem 0 0;
}

.watch-slide--hidden {
  display: none;
}

.watch-slide--alert {
  border-left: 3px solid #f9ab00;
  padding-left: 0.65rem;
}

.watch-slide-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}

.watch-slide-pill {
  background: #e6f4ea;
  color: #137333;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.watch-slide-user,
.watch-slide-corridor {
  font-size: 0.72rem;
  color: #5f6368;
}

.watch-slide-title {
  margin: 0 0 0.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.3;
  color: #202124;
}

.watch-slide-route {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  color: #5f6368;
  line-height: 1.35;
}

.watch-slide-quote {
  text-align: center;
  padding: 0.75rem;
  background: #f8fdf9;
  border: 1px solid #ceead6;
  border-radius: 10px;
  margin-bottom: 0.65rem;
}

.watch-slide-amount {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: #137333;
  line-height: 1.1;
}

.watch-slide-amount-label {
  display: block;
  font-size: 0.78rem;
  color: #5f6368;
  margin-top: 0.15rem;
}

.watch-slide-msg {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: #5f6368;
  text-align: center;
}

.watch-slide-explain {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #5f6368;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  text-align: left;
}

.job-board-pricing-why {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #5f6368;
  line-height: 1.35;
}

.watch-slide-msg--ok {
  color: #137333;
  font-weight: 600;
}

.watch-slide-msg--warn {
  color: #b06000;
  font-weight: 600;
  background: #fef7e0;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
}

.watch-shiply-link {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.75rem 1rem;
  background: #1967d2;
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 0.55rem;
  box-sizing: border-box;
}

.watch-shiply-link:hover {
  background: #1557b0;
}

.watch-shiply-link--disabled {
  background: #dadce0;
  color: #5f6368 !important;
}

.watch-slide-meta {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: #80868b;
  text-align: center;
}

.watch-slide-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.45rem;
}

.watch-outcome-form {
  margin: 0;
}

.watch-btn {
  width: 100%;
  padding: 0.55rem 0.35rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}

.watch-btn--won {
  background: #137333;
  color: #fff;
  border-color: #137333;
}

.watch-btn--won:hover {
  background: #0d652d;
}

.watch-btn--lost {
  background: #fff;
  color: #5f6368;
  border-color: #dadce0;
}

.watch-btn--lost:hover {
  background: #f8f9fa;
}

.watch-btn--skip {
  background: transparent;
  color: #80868b;
  border-color: #e8eaed;
}

.watch-slide-more {
  margin-top: 0.75rem;
  font-size: 0.82rem;
}

.watch-slide-more summary {
  cursor: pointer;
  color: #1967d2;
  font-weight: 600;
}

.watch-deck-nav {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e8eaed;
}

.watch-nav-btn {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #dadce0;
  background: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: #3c4043;
}

.watch-nav-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.watch-nav-btn--next {
  background: #e8f0fe;
  border-color: #1967d2;
  color: #1967d2;
}

.watch-nav-btn--next:hover:not(:disabled) {
  background: #d2e3fc;
}

.watch-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: flex-start;
}

.watch-main {
  flex: 1;
  min-width: 200px;
}

.watch-main strong {
  display: block;
  font-size: 0.9rem;
  margin: 0.2rem 0 0.15rem;
}

.watch-route {
  display: block;
  font-size: 0.78rem;
  color: #5f6368;
}

.watch-user {
  display: block;
  font-size: 0.75rem;
  color: #1967d2;
  margin-top: 0.25rem;
}

.watch-poll {
  display: block;
  font-size: 0.72rem;
  color: #5f6368;
  margin-top: 0.2rem;
}

.watch-movement {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.65rem;
  background: #f0f7ff;
  border-radius: 6px;
  font-size: 0.8rem;
  list-style: none;
}

.watch-movement li {
  padding: 0.15rem 0;
  color: #333;
}

.watch-shiply-msg {
  margin-top: 0.55rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #e0e0e0;
}

.shiply-msg--compact {
  min-height: 4.5rem;
  font-size: 0.82rem;
}

.watch-qa-details {
  margin-top: 0.45rem;
  font-size: 0.82rem;
}

.watch-qa-details summary {
  cursor: pointer;
  color: #1967d2;
  font-weight: 600;
}

.watch-side {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.watch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.watch-action-form {
  display: inline;
  margin: 0;
}

.watch-customer-said {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.82rem;
  background: #fff8e6;
  border-left: 3px solid #e37400;
  border-radius: 4px;
  color: #444;
}

.watch-bids {
  font-size: 0.85rem;
}

.watch-rival {
  color: #c5221f;
  font-weight: 700;
}

.watch-sep {
  margin: 0 0.2rem;
  color: #80868b;
}

.watch-miles {
  font-size: 0.72rem;
  color: #5f6368;
}

.watch-hint {
  display: block;
  font-size: 0.72rem;
  color: #1967d2;
  max-width: 18rem;
  text-align: right;
  margin-top: 0.35rem;
}

.watch-hint--alert {
  color: #b45309;
  font-weight: 600;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 0.35rem 0.45rem;
  text-align: left;
  max-width: 22rem;
}

.watch-state {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
}

.watch-state--ok {
  background: #e6f4ea;
  color: #137333;
}

.watch-state--warn {
  background: #fce8e6;
  color: #c5221f;
}

.watch-state--idle {
  background: #e8f0fe;
  color: #1967d2;
}

.section-note--placed {
  background: #e6f4ea;
  border: 1px solid #b7dfc8;
  color: #137333;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
}

.job-board-head {
  margin-bottom: 0.625rem;
}

.job-board-title h2 {
  margin: 0.2rem 0 0.15rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.28;
  color: #202124;
}

.job-board-sub {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #5f6368;
}

.badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.badge-urgent {
  background: #fce8e6;
  color: #c5221f;
}

.badge-soft {
  background: #e8f0fe;
  color: #1967d2;
}

.badge-practice {
  background: #fef7e0;
  color: #b06000;
}

.badge-corridor {
  background: #e6f4ea;
  color: #137333;
}

.badge-route {
  background: #e8f0fe;
  color: #1967d2;
  font-weight: 600;
}

.badge-intent--win {
  background: #0d652d;
  color: #fff;
  font-weight: 700;
}

.badge-intent--anchor {
  background: #1a3a5c;
  color: #fff;
}

.badge-intent--solo {
  background: #f1f3f4;
  color: #3c4043;
}

.job-board-card--win {
  border-left: 4px solid #0d652d;
}

/* —— Bid price grid (Shiply bid + minimum) —— */
.bid-price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0.65rem 0 0.5rem;
}

.bid-price-grid:has(.bid-price-cell--rival) {
  grid-template-columns: 1fr 1fr 1fr;
}

.bid-price-cell {
  text-align: center;
  padding: 0.55rem 0.45rem;
  border-radius: 10px;
  border: 1px solid #e8eaed;
  background: #fafafa;
}

.bid-price-cell--bid {
  background: #e6f4ea;
  border-color: #ceead6;
}

.bid-price-cell--min {
  background: #e8f0fe;
  border-color: #aecbfa;
}

.bid-price-cell--rival {
  background: #fce8e6;
  border-color: #f5c6c2;
}

.bid-price-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5f6368;
  margin-bottom: 0.15rem;
}

.bid-price-value--multi {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.bid-price-value {
  display: block;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  color: #202124;
}

.bid-price-cell--bid .bid-price-value {
  color: #137333;
}

.bid-price-cell--min .bid-price-value {
  color: #1967d2;
}

.bid-price-cell--rival .bid-price-value {
  color: #c5221f;
}

.bid-price-hint {
  display: block;
  font-size: 0.68rem;
  color: #80868b;
  margin-top: 0.2rem;
  line-height: 1.25;
}

/* —— Numbered bid workflow —— */
.bid-workflow {
  list-style: none;
  margin: 0.65rem 0;
  padding: 0;
  border: 1px solid #e8eaed;
  border-radius: 10px;
  overflow: hidden;
}

.bid-workflow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #e8eaed;
  background: #fff;
  font-size: 0.82rem;
}

.bid-workflow-step:last-child {
  border-bottom: none;
}

.bid-workflow-step--on {
  background: #f8fbff;
  border-left: 3px solid #1967d2;
}

.bid-workflow-step--done {
  background: #f8fdf9;
  border-left: 3px solid #137333;
}

.bid-workflow-num {
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  line-height: 1.35rem;
  text-align: center;
  border-radius: 50%;
  background: #f1f3f4;
  font-size: 0.72rem;
  font-weight: 700;
  color: #5f6368;
}

.bid-workflow-step--on .bid-workflow-num {
  background: #1967d2;
  color: #fff;
}

.bid-workflow-step--done .bid-workflow-num {
  background: #137333;
  color: #fff;
}

.bid-workflow-body strong {
  display: block;
  color: #202124;
  margin-bottom: 0.1rem;
}

.bid-workflow-detail {
  color: #5f6368;
  line-height: 1.3;
}

.bid-workflow-detail a {
  color: #1967d2;
}

/* —— Symmetric action bar —— */
.bid-action-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.bid-action-form {
  margin: 0;
  display: contents;
}

.bid-customer-user-input {
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 2px solid #4285f4;
  border-radius: 8px;
  font-size: 0.9rem;
  outline: none;
}

.bid-customer-user-input:focus {
  border-color: #1967d2;
  box-shadow: 0 0 0 2px rgba(25, 103, 210, 0.15);
}

.bid-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0.3rem 0.45rem;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
  line-height: 1.2;
}

.bid-action-btn--shiply {
  background: #e8f0fe;
  color: #1967d2;
  border-color: #aecbfa;
}

.bid-action-btn--shiply:hover {
  background: #d2e3fc;
}

.bid-action-btn--copy {
  background: #fff;
  color: #3c4043;
  border-color: #dadce0;
}

.bid-action-btn--copy:hover {
  background: #f8f9fa;
}

.bid-action-btn--placed {
  background: #1e3a5f;
  color: #fff;
  border-color: #1e3a5f;
}

.bid-action-btn--placed:hover {
  background: #16304f;
}

.bid-action-btn--gone {
  background: #fff;
  color: #c5221f;
  border-color: #f5c6c6;
}

.bid-action-btn--gone:hover {
  background: #fce8e6;
}

.bid-action-btn--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f0f0f0;
  color: #888;
}

.bid-decline-bar,
.map-area-decline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.5rem;
  background: #f8f9fa;
  border: 1px dashed #dadce0;
  border-radius: 8px;
}

.bid-decline-label,
.map-area-decline-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #5f6368;
  margin-right: 0.15rem;
}

.bid-decline-btn,
.map-area-decline-btn {
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.bid-decline-btn:hover,
.map-area-decline-btn:hover {
  background: #f1f3f4;
}

.bid-decline-btn--vehicle,
.map-area-decline-btn--vehicle {
  border-color: #f9ab00;
  color: #b06000;
  background: #fef7e0;
}

.map-area-decline {
  margin-top: 0.4rem;
}

.job-board-hint--warn {
  color: #b06000;
  font-weight: 600;
  background: #fef7e0;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
  margin-top: 0.5rem;
}

/* —— Watch outcome bar —— */
.watch-outcome-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.watch-outcome-btn {
  width: 100%;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid transparent;
}

.watch-outcome-btn--won {
  background: #137333;
  color: #fff;
  border-color: #137333;
}

.watch-outcome-btn--won:hover {
  background: #0d652d;
}

.watch-outcome-btn--lost {
  background: #fff;
  color: #5f6368;
  border-color: #dadce0;
}

.watch-outcome-btn--lost:hover {
  background: #f8f9fa;
}

.watch-outcome-form--skip {
  margin-top: 0.35rem;
  text-align: center;
}

.map-area-price-tag {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.82rem;
}

.map-area-price-tag--rival {
  color: #c5221f;
}

.mike-bid-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.5rem 0 0.35rem;
  padding: 0.5rem 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e8eaed;
}

.mike-bid-amounts {
  font-size: 1.05rem;
}

.mike-bid-num {
  color: #137333;
}

.mike-bid-min {
  color: #1a3a5c;
}

.mike-bid-sep {
  margin: 0 0.35rem;
  color: #80868b;
}

.mike-bid-rival {
  color: #c5221f;
  font-weight: 700;
  font-size: 0.95rem;
}

.mike-bid-margin {
  color: #137333;
  font-size: 0.78rem;
  font-weight: 600;
}

.job-board-message--confidence {
  border: 1px solid #aecbfa;
  background: #f8fbff;
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}

.job-board-message--confidence .col-label {
  color: #1967d2;
  font-weight: 700;
}

.section-note--public {
  background: #e8f0fe;
  border: 1px solid #aecbfa;
  color: #1967d2;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
}

.mike-bid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-claim--top {
  font-weight: 700;
}

.btn-copy-bid {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  background: #fff;
  border: 1px solid #dadce0;
  border-radius: 6px;
  cursor: pointer;
}

.btn-copy-bid:hover {
  background: #f1f3f4;
}

.btn-copy-min {
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid #f9ab00;
  background: #fef7e0;
  color: #7a4e00;
  border-radius: 6px;
  cursor: pointer;
}

.btn-copy-min:hover {
  background: #feefc3;
}

.mike-intent-hint {
  font-size: 0.85rem;
  color: #137333;
  font-weight: 600;
  margin: 0 0 0.45rem;
  line-height: 1.3;
}

.job-board-dates--flex {
  color: #b06000;
  font-weight: 600;
}

.cost-sheet-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0 0 0.45rem;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  font-size: 0.82rem;
  background: #f1f3f4;
  border: 1px solid #e8eaed;
}

.cost-sheet-strip--loss {
  background: #fce8e6;
  border-color: #f5c6c2;
}

.cost-sheet-strip--thin {
  background: #fef7e0;
  border-color: #f9e6a8;
}

.cost-sheet-strip--good,
.cost-sheet-strip--great {
  background: #e6f4ea;
  border-color: #b7dfc8;
}

.cost-sheet-label {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: #5f6368;
}

.cost-sheet-band {
  font-weight: 600;
  margin-left: auto;
}

.corridor-money-strip {
  margin: 0 0 0.55rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
  border: 1px solid #c5d9f5;
  font-size: 0.84rem;
  line-height: 1.45;
}
.corridor-money-head {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a56db;
  margin-bottom: 0.35rem;
}
.corridor-money-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
}
.corridor-equiv {
  color: #475569;
  font-weight: 500;
  margin-left: 0.15rem;
}
.corridor-fuel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.45rem;
  padding-top: 0.4rem;
  border-top: 1px solid #dbeafe;
}
.corridor-fuel-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
}
.corridor-fuel-chip {
  font-size: 0.78rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.2rem 0.45rem;
}
.corridor-money-hint {
  margin: 0.4rem 0 0;
  font-size: 0.76rem;
  color: #64748b;
}
.map-area-corridor-strip {
  margin: 0.35rem 0 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 0.78rem;
  line-height: 1.4;
}
.map-area-corridor-strip strong { color: #1e40af; }
.map-area-money-line {
  margin: 0.15rem 0;
}
.map-area-money-line--fuel {
  color: #64748b;
  font-size: 0.74rem;
}
.map-area-job-title-orig {
  font-weight: 400;
  color: #64748b;
  font-size: 0.88em;
}
.map-area-price-equiv {
  font-size: 0.78em;
  font-weight: 600;
  color: #1d4ed8;
}

.route-group {
  margin: 1.25rem 0 1.75rem;
  padding: 0.75rem 0 0;
  border-top: 2px solid #e8eaed;
}

.route-group:first-of-type {
  border-top: none;
  padding-top: 0;
}

.route-group-label {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: #1a3a5c;
}

.route-group--manchester .route-group-label::before {
  content: "📍 ";
}

.route-group--london .route-group-label::before {
  content: "📍 ";
}

.route-group--long-day {
  border-top-color: #e6a817;
}

.route-group--over-max {
  border-top-color: #c5221f;
}

.route-group-warn {
  font-size: 0.85rem;
  color: #b06000;
  margin: -0.35rem 0 0.75rem;
  font-weight: 600;
}

.route-group-warn--hard {
  color: #c5221f;
}

.corridor-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.5rem 0 0;
}

.corridor-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #e8f0fe;
  color: #1967d2;
}

.corridor-chip--total {
  background: #e6f4ea;
  color: #137333;
}

.price-mile-note {
  margin: 0.15rem 0 0;
  font-size: 0.72rem;
  color: #5f6368;
  grid-column: 1 / -1;
}

.price-business-note {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #137333;
  background: #e6f4ea;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  grid-column: 1 / -1;
}

.section-note--warn {
  color: #b06000;
  background: #fef7e0;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.job-board-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  padding: 0.625rem 0;
  border-top: 1px solid #f1f3f4;
  border-bottom: 1px solid #f1f3f4;
  margin-bottom: 0.45rem;
}

.job-board-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.job-board-details {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
}

.job-board-details summary {
  cursor: pointer;
  color: #137333;
  font-weight: 600;
  padding: 0.15rem 0;
  list-style: none;
}

.job-board-details summary::-webkit-details-marker {
  display: none;
}

.job-board-details summary::before {
  content: "▸ ";
  color: #5f6368;
}

.job-board-details[open] summary::before {
  content: "▾ ";
}

.job-board-details .price-business-note {
  margin: 0.35rem 0 0;
  grid-column: unset;
}

.job-board-col .col-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #80868b;
  margin-bottom: 0.12rem;
}

.job-board-col .col-place {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #202124;
  line-height: 1.2;
}

.job-board-col .col-sub {
  display: block;
  font-size: 0.75rem;
  color: #5f6368;
  margin-top: 0.08rem;
  line-height: 1.25;
}

.job-board-prices {
  text-align: right;
}

.price-line {
  margin-bottom: 0.2rem;
}

.price-line .col-label {
  display: inline;
  margin-right: 0.4rem;
  font-size: 0.6875rem;
}

.price-big {
  font-size: 1.5rem;
  font-weight: 700;
  color: #202124;
  line-height: 1;
}

.price-min {
  font-size: 1rem;
  font-weight: 600;
  color: #5f6368;
  line-height: 1.1;
}

.job-board-activity {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
}

.job-board-activity-text {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: #444;
}

.job-board-qa {
  margin-top: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #fff8e6;
  border: 1px solid #f0d78c;
  border-radius: 8px;
}

.job-board-qa-note {
  margin: 0.35rem 0 0.5rem;
  font-size: 0.82rem;
  color: #6b5a2e;
}

.job-board-customer-date {
  margin: 0.5rem 0;
  padding: 0.5rem 0.65rem;
  background: #fff;
  border-left: 3px solid #e37400;
  border-radius: 4px;
  font-size: 0.9rem;
  line-height: 1.45;
}

.job-board-qa-thread {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
}

.qa-item {
  padding: 0.45rem 0;
  border-top: 1px solid #f0e6c8;
  font-size: 0.85rem;
}

.qa-item:first-child {
  border-top: none;
}

.qa-item--customer {
  background: rgba(255, 255, 255, 0.55);
  margin: 0 -0.35rem;
  padding: 0.45rem 0.35rem;
  border-radius: 4px;
}

.qa-author {
  font-weight: 600;
  color: #333;
}

.qa-when {
  color: #888;
  font-size: 0.8rem;
}

.qa-body {
  margin: 0.2rem 0 0;
  color: #444;
  line-height: 1.4;
}

.job-board-actions {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
}

.job-board-actions .done-form {
  flex: 1;
  margin: 0;
}

.btn-claim {
  flex: 1;
  min-height: 42px;
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f4fd;
  color: #1565c0;
  border: 1px solid #bbdefb;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  width: auto;
}

.btn-claim:hover {
  background: #d2ebfc;
}

.btn-claim--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #f0f0f0;
  color: #888;
  border-color: #ddd;
}

.job-board-actions .btn-done {
  margin-top: 0;
  border-radius: 8px;
  font-size: 0.9375rem;
}

.job-board-message {
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid #e2e8f0;
}

.job-board-message .col-label {
  display: block;
  margin-bottom: 0.5rem;
}

.shiply-msg {
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.55rem 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #1e293b;
  resize: vertical;
  min-height: 5.5rem;
  margin-bottom: 0.4rem;
}

.job-board-msg-note {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0.35rem 0 0;
}

.job-board-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  color: #80868b;
  text-align: center;
  line-height: 1.35;
}

.queue-section {
  margin-top: 1.75rem;
}

.queue-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #5f6368;
  margin: 0 0 0.625rem;
}

.queue-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.queue-main strong {
  display: block;
  font-size: 0.9375rem;
  color: #3c4043;
  font-weight: 600;
}

.queue-route {
  font-size: 0.8125rem;
  color: #80868b;
}

.queue-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: #5f6368;
  white-space: nowrap;
}

.cancel-settlement-strip {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #f8f9fa;
  border: 1px solid #e8eaed;
  border-radius: 6px;
  font-size: 0.88rem;
}

.cancel-settlement-line {
  margin: 0.35rem 0;
  color: #3c4043;
}

.cancel-settlement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cancel-settlement-line--hard {
  color: #b06000;
  font-weight: 600;
}

.penalty-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.penalty-tier-card {
  padding: 0.6rem 0.75rem;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 0.85rem;
}

.penalty-tier-card--rec {
  border-color: #1a73e8;
  background: #f8fbff;
}

.penalty-tier-card--custom {
  border-style: dashed;
}

.penalty-tier-label {
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.penalty-tier-amount {
  margin: 0.25rem 0;
  color: #3c4043;
}

.penalty-tier-hint {
  margin: 0.25rem 0 0.5rem;
  color: #80868b;
  font-size: 0.8rem;
}

.penalty-tier-form {
  display: inline-block;
  margin-right: 0.35rem;
  margin-top: 0.25rem;
}

.penalty-custom-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.35rem;
}

.penalty-custom-input {
  width: 5.5rem;
  padding: 0.25rem 0.4rem;
  border: 1px solid #dadce0;
  border-radius: 4px;
}

.deposit-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: #fef7e0;
  border: 1px solid #f9e076;
  border-radius: 10px;
  padding: 0.875rem 1.25rem;
  margin-top: 1.5rem;
}

.deposit-strip p {
  margin: 0;
  font-weight: 600;
  color: #b06000;
}

.content-today .btn-primary.btn-sm {
  display: inline-flex;
  width: auto;
  min-height: 28px;
  margin-top: 0.35rem;
  padding: 0.22rem 0.55rem;
  font-size: 0.72rem;
}

.today-refresh-form {
  margin-top: 0.75rem;
}

@media (max-width: 640px) {
  .content-today {
    max-width: 100%;
    padding: 1rem;
  }

  .job-board-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }

  .job-board-prices {
    grid-column: 1 / -1;
    text-align: left;
    display: flex;
    gap: 2rem;
    padding-top: 0.5rem;
    border-top: 1px dashed #e8eaed;
  }

  .job-board-actions {
    flex-direction: column;
  }

  .btn-claim,
  .job-board-actions .btn-done {
    width: 100%;
  }

  .bid-price-grid,
  .bid-price-grid:has(.bid-price-cell--rival) {
    grid-template-columns: 1fr;
  }

  .bid-action-bar {
    grid-template-columns: 1fr;
  }
}

.banner {
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  font-weight: 600;
}

.banner-green { background: #dcfce7; color: #166534; }
.banner-amber { background: #fef3c7; color: #92400e; }
.banner-red { background: #fee2e2; color: #991b1b; }

.section h2 {
  font-size: 1rem;
  margin: 1.5rem 0 0.75rem;
}

.job-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.btn {
  display: block;
  width: 100%;
  min-height: 48px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  line-height: 48px;
  padding: 0 1rem;
}

.btn-shiply {
  background: #16a34a;
  color: #fff;
  margin-bottom: 1rem;
}

.btn-done {
  background: #1e3a5f;
  color: #fff;
  margin-top: 1rem;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-secondary {
  background: #e2e8f0;
  color: #334155;
}

.btn-copy {
  background: #f1f5f9;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.bid-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.bid-row strong {
  font-size: 28px;
  color: #1e3a5f;
}

.job-card-focus {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.empty {
  color: #64748b;
  padding: 2rem 0;
  text-align: center;
}

.deposit-banner {
  background: #fef3c7;
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
}

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-box {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.login-box input {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  margin: 1rem 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
}

.error { color: #dc2626; }

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1rem 0;
}

.stat-card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.mgr-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.mgr-table th,
.mgr-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

.content:has(.mgr-table) {
  max-width: 960px;
}

.route-card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.fill-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.fill-bar .fill {
  height: 100%;
  background: #16a34a;
}

.settings-form label {
  display: block;
  margin-bottom: 1rem;
}

.settings-form input {
  width: 100%;
  min-height: 40px;
  margin-top: 0.25rem;
  padding: 0 0.5rem;
}

.meta {
  color: #64748b;
  font-size: 0.9rem;
}

.refresh-form {
  margin-top: 2rem;
}

.done-flash {
  opacity: 0.5;
}

.route-map {
  height: 280px;
  border-radius: 12px;
  margin-top: 1rem;
}

.leg-list {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.job-board-dates {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #1967d2;
  font-weight: 600;
}

.calendar-page,
.pipeline-page {
  max-width: 1100px;
}

.calendar-header,
.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.calendar-day {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem;
  min-height: 160px;
}

.calendar-day-head {
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
  color: #334155;
}

.calendar-block + .calendar-block {
  margin-top: 0.55rem;
}

.calendar-card {
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.45rem 0.5rem;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.calendar-card--route {
  border-left: 3px solid #1967d2;
}

.calendar-card--ready {
  border-left: 3px solid #137333;
  background: #e6f4ea;
}

.calendar-card--wait {
  border-left: 3px solid #b06000;
  background: #fef7e0;
}

.calendar-legs,
.pipeline-legs {
  margin: 0.25rem 0 0;
  padding-left: 1rem;
  font-size: 0.75rem;
}

.calendar-empty {
  color: #94a3b8;
  font-size: 0.8rem;
}

.pipeline-week + .pipeline-week {
  margin-top: 1.5rem;
}

.pipeline-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem;
  margin-top: 0.65rem;
  display: grid;
  gap: 0.55rem;
}

.pipeline-route,
.pipeline-lead {
  color: #64748b;
  font-size: 0.85rem;
}

.pipeline-dispatch {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.55rem;
  border-radius: 6px;
}

.pipeline-dispatch--ready {
  background: #e6f4ea;
  color: #137333;
}

.pipeline-dispatch--wait {
  background: #fef7e0;
  color: #b06000;
}

.pipeline-date-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
  font-size: 0.85rem;
}

.pipeline-date-form input[type="date"] {
  margin-left: 0.25rem;
}

/* My Work — Shiply-style week board */
.my-work-page { max-width: 1200px; }
.my-work-toolbar { margin-bottom: 0.75rem; }
.my-work-toolbar h1 { margin: 0 0 0.5rem; }
.my-work-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.view-toggle { display: flex; gap: 0.25rem; }
.btn-active { background: #1967d2; color: #fff; }
.driver-filter select { min-width: 160px; padding: 0.35rem; }
.week-nav { display: flex; align-items: center; gap: 0.35rem; }
.week-label { font-weight: 600; min-width: 140px; text-align: center; }

.work-week-grid {
  display: grid;
  grid-template-columns: 52px repeat(7, 1fr);
  gap: 1px;
  background: #e2e8f0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  min-height: 520px;
}
.work-time-col { background: #f8fafc; }
.work-corner { height: 36px; border-bottom: 1px solid #e2e8f0; }
.work-hour {
  height: 48px;
  font-size: 0.7rem;
  color: #64748b;
  padding: 0.2rem 0.25rem;
  border-bottom: 1px solid #f1f5f9;
}
.work-day-col { background: #fff; min-width: 0; }
.work-day-head {
  height: 36px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.work-day-body {
  position: relative;
  height: calc(13 * 48px);
}
.work-journey {
  position: absolute;
  left: 2px;
  right: 2px;
  border-radius: 6px;
  padding: 0.35rem 0.4rem;
  font-size: 0.68rem;
  line-height: 1.25;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.work-journey--assigned {
  background: #dbeafe;
  border-left: 3px solid #2563eb;
}
.work-journey--unassigned {
  background: #fce7f3;
  border-left: 3px solid #db2777;
}
.work-journey-route { font-weight: 700; }
.work-journey-price { font-weight: 600; }
.work-journey-meta, .work-journey-slot { color: #475569; }
.work-journey-driver { font-weight: 600; margin-top: auto; }

.work-list { display: flex; flex-direction: column; gap: 0.65rem; }
.work-list-card {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem;
}
.work-list-legs {
  margin: 0.35rem 0 0;
  padding-left: 1rem;
  font-size: 0.82rem;
  color: #475569;
}
.work-list-side { display: flex; flex-direction: column; gap: 0.4rem; }
.work-assign-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
}
.work-assign-form select,
.work-assign-form input[type="time"] {
  width: 100%;
  padding: 0.3rem;
}
.work-dispatch { font-size: 0.78rem; padding: 0.3rem 0.45rem; border-radius: 4px; }
.work-dispatch.ready { background: #e6f4ea; color: #137333; }
.work-dispatch.wait { background: #fef7e0; color: #b06000; }

@media (max-width: 900px) {
  .work-week-grid { grid-template-columns: 40px repeat(7, minmax(72px, 1fr)); overflow-x: auto; }
  .work-list-card { grid-template-columns: 1fr; }
}

.link-btn {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.85rem;
  padding: 0 0.25rem;
}

@media (max-width: 640px) {
  .layout { flex-direction: column; }
  .sidebar {
    width: 100%;
    min-height: 0;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .brand {
    width: 100%;
    border-bottom: none;
    margin-bottom: 0.5rem;
  }
  .nav-section {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.2rem;
  }
  .nav-section-label {
    width: 100%;
  }
  .nav-divider { width: 100%; margin: 0.35rem 0; }
  .nav-spacer { display: none; }
  .nav-link--logout { width: 100%; }
}

/* Payments board */
.content-payments .payments-page { max-width: 960px; }
.payments-summary-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.92rem;
}
.pay-stat--warn { color: #b45309; }
.pay-stat--mid { color: #1d4ed8; }
.pay-stat--ok { color: #15803d; }
.payments-how {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.45;
  max-width: 52rem;
}
.payments-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.payments-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  text-decoration: none;
  font-size: 0.88rem;
  min-width: 8.5rem;
}
.payments-tab:hover { border-color: #94a3b8; background: #f8fafc; }
.payments-tab--active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.payments-tab-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  font-size: 0.75rem;
  font-weight: 700;
}
.payments-tab--active .payments-tab-step { background: rgba(255,255,255,0.22); }
.payments-tab-label { font-weight: 600; white-space: nowrap; }
.payments-tab-count {
  margin-left: auto;
  font-weight: 700;
  opacity: 0.85;
}
.pay-flash {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.85rem;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 8px;
  color: #166534;
  font-size: 0.9rem;
}
.pay-row-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.pay-hero {
  margin: 0.35rem 0 0.15rem;
  font-size: 1.05rem;
  color: #0f172a;
}
.pay-hero--deposit { color: #b45309; }
.pay-hero--balance { color: #1d4ed8; }
.pay-hero--ok { color: #15803d; }
.pay-hero--fee { color: #92400e; }
.pay-subline { margin: 0 0 0.65rem; font-size: 0.88rem; color: #64748b; }
.pay-main-btn { font-weight: 700; }
.pay-schedule-link { flex-shrink: 0; }
.pay-row {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: #fff;
}
.pay-row-main { margin-bottom: 0.5rem; }
.pay-row-id { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: baseline; }
.pay-row-route { color: #475569; font-size: 0.92rem; margin-top: 0.15rem; }
.pay-row-meta { color: #64748b; font-size: 0.85rem; margin-top: 0.2rem; }
.pay-progress {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin: 0.5rem 0 0.35rem;
  max-width: 280px;
}
.pay-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #22c55e);
  border-radius: 3px;
  min-width: 2%;
}
.pay-amounts { display: flex; flex-wrap: wrap; gap: 0.65rem; font-size: 0.9rem; }
.pay-amount--in { color: #15803d; font-weight: 600; }
.pay-amount--due { color: #b45309; font-weight: 600; }
.pay-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.78rem;
  background: #f1f5f9;
}
.pay-badge--shiply { background: #fef3c7; color: #92400e; }
.pay-badge--ok { background: #dcfce7; color: #166534; }
.pay-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.pay-action-form { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.pay-ref-input {
  width: 7rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.85rem;
}
.pay-dispatch-note { margin: 0; font-size: 0.85rem; color: #475569; }
.pay-cancel-details { margin-top: 0.65rem; font-size: 0.9rem; }
.pay-cancel-details summary { cursor: pointer; color: #64748b; }
.pay-meta { font-size: 0.85rem; color: #64748b; }

/* —— Stats + schedule ops —— */
.content-stats { max-width: 1100px; }
/* Ads Excel tracking — full width spreadsheet */
.content-stats.content-ads-excel,
.content-ads-excel {
  max-width: none !important;
  width: 100% !important;
}
/* Website visitors — use full desk main area (no narrow column) */
.content-wide.visits-content,
.visits-content {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  box-sizing: border-box;
}
.visits-page--xl {
  font-size: 1.05rem;
}
.visits-page--xl h1 {
  font-size: 1.85rem;
  margin: 0 0 0.25rem;
}
.visits-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.1rem;
}
.visits-sub {
  margin: 0;
  font-size: 0.95rem;
}
.visits-live-badge {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  background: #ecfdf5;
  border: 1px solid #86efac;
  color: #14532d;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
}
.visits-live-err .visits-live-badge {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}
.visits-pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: visits-pulse 1.6s ease-out infinite;
}
@keyframes visits-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.visits-page--xl .visits-stats-row {
  gap: 1rem;
  margin-bottom: 1.35rem;
}
.visits-1m-panel {
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(34, 197, 94, 0.06));
  border-radius: 14px;
  padding: 1rem 1.15rem 0.85rem;
  margin-bottom: 1.35rem;
}
.visits-1m-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}
.visits-1m-head .section-label {
  margin: 0;
  flex: 1 1 auto;
}
.visits-pace-pill {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.visits-pace-pill--green {
  background: rgba(34, 197, 94, 0.18);
  color: #86efac;
  border-color: rgba(34, 197, 94, 0.4);
}
.visits-pace-pill--red {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.35);
}
.visits-pace-pill--boost {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.45);
}
.visits-pace-pill--off {
  background: rgba(148, 163, 184, 0.12);
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.25);
}
.visits-stats-row--1m .visits-stat--1m strong {
  font-size: 1.65rem;
  color: #7dd3fc;
}
.visits-1m-note {
  font-size: 0.85rem;
  margin: 0.35rem 0 0;
  line-height: 1.4;
}
.visits-page--xl .visits-stat {
  min-width: 9.5rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
}
.visits-page--xl .visits-stat strong {
  font-size: 2rem;
}
.visits-page--xl .visits-stat span {
  font-size: 0.9rem;
}
.visits-page--xl .visits-legend {
  font-size: 0.95rem;
  padding: 1rem 1.15rem;
  margin-bottom: 1.35rem;
}
.visits-page--xl .section-label {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.visits-page--xl .visits-table--xl {
  font-size: 1.02rem;
}
.visits-page--xl .visits-table--xl th,
.visits-page--xl .visits-table--xl td {
  padding: 0.7rem 0.85rem;
  line-height: 1.4;
}
.visits-page--xl .visits-table--xl th {
  font-size: 0.92rem;
  white-space: nowrap;
}
.visits-page--xl .visits-kind {
  font-size: 0.88rem;
  padding: 0.22rem 0.5rem;
}
.visits-page--xl .visits-ip {
  font-size: 0.92rem;
}
.visits-page--xl .visits-device {
  font-size: 0.95rem;
}
.visits-page--xl .visits-when {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-weight: 600;
  color: #0f172a;
}
.visits-page--xl .visits-stayed {
  font-weight: 700;
  color: #0f766e;
  white-space: nowrap;
  font-size: 1.05rem;
}
.visits-page--xl .visits-pages {
  max-width: 28rem;
  line-height: 1.35;
}
.visits-page--xl .site-visits-link {
  font-size: 1.02rem;
  font-weight: 600;
}
.visits-page--xl .visits-table-wrap {
  max-height: min(70vh, 820px);
  overflow: auto;
}
@media (max-width: 900px) {
  .visits-page--xl .visits-stat strong { font-size: 1.55rem; }
  .visits-page--xl .visits-table--xl { font-size: 0.92rem; }
}

.stats-page .stats-header { margin-bottom: 1.25rem; }
.stats-ai-hint { font-size: 0.9rem; color: #b45309; margin-top: 0.5rem; }
.stats-today-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  text-align: center;
}
.stat-card--won { border-color: #86efac; background: #f0fdf4; }
.stat-card--gross { border-color: #93c5fd; background: #eff6ff; }
.stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: #0f172a; }
.stat-lbl { font-size: 0.78rem; color: #64748b; }
.stats-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.stats-table th, .stats-table td {
  padding: 0.5rem 0.65rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.stats-table th { background: #f1f5f9; font-weight: 600; }
.stats-table--team td, .stats-table--feed td { font-variant-numeric: tabular-nums; }
.stats-row--me { background: #eff6ff; }
.stats-row--me td:first-child { border-left: 3px solid #2563eb; }
.stats-role-pill {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  margin-left: 0.25rem;
}
.stats-empty { text-align: center; color: #64748b; padding: 1.25rem !important; }
.visits-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}
.visits-stat {
  flex: 1 1 7rem;
  min-width: 7rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  text-align: center;
}
.visits-stat strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}
.visits-stat span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #64748b;
}
.visits-stat--real {
  border-color: #86efac;
  background: #f0fdf4;
}
.visits-stat--real strong {
  color: #166534;
}
.visits-legend {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #334155;
}
.visits-legend p {
  margin: 0 0 0.45rem;
}
.visits-legend ul {
  margin: 0;
  padding-left: 1.15rem;
}
.visits-legend li + li {
  margin-top: 0.35rem;
}
.visits-legend code {
  font-size: 0.78rem;
  background: #e2e8f0;
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
}
.visits-kind {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  white-space: nowrap;
}
.visits-kind--google {
  background: #f1f5f9;
  color: #64748b;
}
.visits-kind--monitor {
  background: #fef3c7;
  color: #92400e;
}
.visits-kind--human {
  background: #dcfce7;
  color: #166534;
}
.visits-page .visits-row--google td {
  color: #94a3b8;
}
.visits-page .visits-row--google .visits-kind--google {
  color: #64748b;
}
.visits-cols {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.visits-page .visits-panel {
  min-width: 0;
}
.visits-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 0.35rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.visits-page .visits-ip {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  white-space: nowrap;
}
.visits-page .visits-device {
  font-size: 0.82rem;
  white-space: nowrap;
}
.visits-page .visits-ads-pill {
  display: inline-block;
  font-size: 0.78rem;
  line-height: 1.35;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: #fef7e0;
  color: #92400e;
  font-weight: 600;
}
.visits-page .visits-ads {
  font-size: 0.8rem;
}
.visits-page .visits-table {
  table-layout: fixed;
  width: 100%;
  min-width: 52rem;
  border-collapse: separate;
  border-spacing: 0;
  margin: 0;
}
.visits-page .visits-table th,
.visits-page .visits-table td {
  padding: 0.5rem 0.65rem;
  vertical-align: top;
  border-bottom: 1px solid #e2e8f0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
  white-space: normal;
}
.visits-page .visits-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f1f5f9;
  font-size: 0.75rem;
}
.visits-page .visits-table--feed th:nth-child(1),
.visits-page .visits-table--feed td:nth-child(1) {
  width: 7.25rem;
  white-space: nowrap;
}
.visits-page .visits-table--feed th:nth-child(2),
.visits-page .visits-table--feed td:nth-child(2) {
  width: 5.5rem;
}
.visits-page .visits-table--feed th:nth-child(3),
.visits-page .visits-table--feed td:nth-child(3) {
  width: 8.5rem;
}
.visits-page .visits-table--feed th:nth-child(4),
.visits-page .visits-table--feed td:nth-child(4) {
  width: 20%;
}
.visits-page .visits-table--feed th:nth-child(5),
.visits-page .visits-table--feed td:nth-child(5) {
  width: 5.5rem;
}
.visits-page .visits-table--feed th:nth-child(6),
.visits-page .visits-table--feed td:nth-child(6) {
  width: 8%;
}
.visits-page .visits-table--feed th:nth-child(7),
.visits-page .visits-table--feed td:nth-child(7) {
  width: 14%;
}
.visits-page .visits-table--feed th:nth-child(8),
.visits-page .visits-table--feed td:nth-child(8) {
  width: auto;
}
.visits-page .visits-table--people th:nth-child(1),
.visits-page .visits-table--people td:nth-child(1) {
  width: 5.5rem;
}
.visits-page .visits-table--people th:nth-child(2),
.visits-page .visits-table--people td:nth-child(2) {
  width: 8.5rem;
}
.visits-page .visits-table--people th:nth-child(3),
.visits-page .visits-table--people td:nth-child(3) {
  width: 18%;
}
.visits-page .visits-table--people th:nth-child(4),
.visits-page .visits-table--people td:nth-child(4) {
  width: 5.5rem;
  white-space: nowrap;
}
.visits-page .visits-table--people th:nth-child(5),
.visits-page .visits-table--people td:nth-child(5) {
  width: 8%;
}
.visits-page .visits-table--people th:nth-child(6),
.visits-page .visits-table--people td:nth-child(6) {
  width: 14%;
}
.visits-page .visits-table--people th:nth-child(7),
.visits-page .visits-table--people td:nth-child(7) {
  width: 22%;
}
.visits-page .visits-table--people th:nth-child(8),
.visits-page .visits-table--people td:nth-child(8) {
  width: 7rem;
  white-space: nowrap;
}
.visits-page .visits-table tbody tr:last-child td {
  border-bottom: none;
}
.visits-page .site-visits-link {
  display: inline-block;
  max-width: 100%;
}
.visits-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}
.visits-filter-input {
  flex: 1;
  min-width: 8rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.88rem;
}
.visits-event {
  font-size: 0.72rem;
  color: #1d4ed8;
  background: #eff6ff;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.visits-vid-btn {
  border: none;
  background: #f1f5f9;
  color: #1d4ed8;
  font-size: 0.78rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  cursor: pointer;
  font-family: ui-monospace, monospace;
}
.visits-journey-panel {
  margin-top: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}
.visits-journey-panel ol {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
  font-size: 0.88rem;
}
.nav-user-pill {
  font-size: 0.72rem;
  color: #94a3b8;
  padding: 0.35rem 0.75rem 0;
  line-height: 1.35;
}
.nav-user-pill strong { color: #e2e8f0; font-weight: 600; }
.schedule-ops-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.8rem 0.7rem;
  margin-bottom: 0.75rem;
}
.schedule-ops-panel .section-label {
  margin: 0 0 0.4rem;
  font-size: 0.7rem;
}
.schedule-ops-panel--compact {
  padding: 0.55rem 0.7rem 0.6rem;
}
.schedule-search-panel .desk-job-search {
  margin: 0;
  flex-wrap: nowrap;
}
.schedule-search-panel .desk-job-search-input {
  min-height: 32px;
  height: 32px;
  font-size: 0.78rem;
  padding: 0.28rem 0.5rem;
}
.schedule-search-panel .desk-job-search-status {
  height: 32px;
  font-size: 0.75rem;
}
.ops-ingest-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.8rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  resize: vertical;
  min-height: 4rem;
  box-sizing: border-box;
}
.ops-ingest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  margin-top: 0.4rem;
}
.ops-ai-toggle {
  font-size: 0.75rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.ops-ingest-image {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  align-items: center;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px dashed #e2e8f0;
  font-size: 0.75rem;
  color: #64748b;
}
.ops-file-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
}
.ops-flash {
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}
.ops-flash--ok { background: #dcfce7; color: #166534; }
.ops-flash--warn { background: #fef3c7; color: #92400e; }
.journey-open-list { margin: 0; padding-left: 1.2rem; font-size: 0.9rem; }
.journey-open-list li { margin-bottom: 0.35rem; }
.driver-ops-page { max-width: 1100px; }
.driver-ops-section { margin-bottom: 2rem; }
.driver-ops-table .muted { color: #64748b; font-size: 0.82rem; font-weight: 400; }
.ops-badge {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 999px;
  font-size: 0.75rem; font-weight: 700; background: #e2e8f0; color: #475569;
}
.ops-badge--live { background: #dcfce7; color: #166534; }
.ops-shift-mini { margin: 0; padding-left: 1rem; font-size: 0.82rem; color: #475569; }
.proof-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.75rem;
}
.proof-card {
  display: flex; flex-direction: column; gap: 0.2rem; padding: 0.85rem 1rem;
  border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; text-decoration: none; color: inherit;
}
.proof-card:hover { border-color: #93c5fd; background: #f8fafc; }
.proof-card-meta { font-size: 0.85rem; color: #334155; }
.proof-card-docs {
  display: flex; flex-wrap: wrap; gap: 0.35rem 0.65rem; margin-top: 0.45rem;
  font-size: 0.82rem; font-weight: 700;
}
.proof-card-docs a { color: #1d4ed8; text-decoration: none; }
.proof-card-docs a:hover { text-decoration: underline; }
table.proof-list { width: 100%; border-collapse: collapse; background: #fff; }
table.proof-list th, table.proof-list td {
  text-align: left; padding: 0.65rem 0.75rem; border-bottom: 1px solid #e2e8f0; vertical-align: top;
}
table.proof-list th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.proof-photo-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.65rem;
}
.proof-photo-thumb {
  display: block; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; text-decoration: none; color: #64748b;
}
.proof-photo-thumb img { width: 100%; height: 120px; object-fit: cover; display: block; background: #f1f5f9; }
.proof-photo-thumb span { display: block; padding: 0.35rem 0.5rem; font-size: 0.72rem; }
.proof-signature-img { max-width: 320px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; }
.ops-comments, .ops-inventory { margin: 0; padding-left: 1.2rem; font-size: 0.9rem; }
.won-journey-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.5rem 0;
}
.btn-journey-add { background: #e0e7ff; color: #3730a3; border-color: #a5b4fc; }
.won-customer-timing, .won-dims {
  display: block;
  font-size: 0.82rem;
  color: #475569;
  margin-top: 0.2rem;
}

/* ── Booking leads — phone-first slim list ── */
.booking-leads-content {
  max-width: 720px !important;
  width: 100%;
  padding-left: 0.75rem !important;
  padding-right: 0.75rem !important;
}
.booking-leads-page { width: 100%; padding-bottom: 5rem; }
.bl-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}
.bl-head h1 {
  margin: 0 0 0.15rem;
  font-size: 1.25rem;
  line-height: 1.2;
}
.bl-sub { margin: 0; font-size: 0.8rem; }
.bl-count {
  flex-shrink: 0;
  min-width: 2rem;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
  background: #e2e8f0;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}
.bl-tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  margin-bottom: 0.65rem;
  scrollbar-width: none;
}
.bl-tabs::-webkit-scrollbar { display: none; }
.bl-tab {
  flex: 0 0 auto;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
}
.bl-tab.is-on {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}
.bl-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.bl-row {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}
.bl-row--hot { border-color: #fdba74; background: linear-gradient(180deg, #fff7ed 0%, #fff 40%); }
.bl-row--booked { border-color: #86efac; }
.bl-row--noise { opacity: 0.85; }
.bl-row.is-open { box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08); }
.bl-row-main {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.7rem 0.8rem;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.bl-row-line1 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
}
.bl-stage {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.4rem;
  border-radius: 5px;
  background: #e2e8f0;
  color: #334155;
}
.bl-stage--priced, .bl-stage--checkout { background: #ffedd5; color: #9a3412; }
.bl-stage--booked { background: #dcfce7; color: #166534; }
.bl-stage--email { background: #dbeafe; color: #1d4ed8; }
.bl-chip {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  text-transform: uppercase;
}
.bl-chip--sweet { background: #166534; color: #fff; }
.bl-chip--bounce { background: #b91c1c; color: #fff; }
.bl-mail-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: #64748b;
}
.bl-row-who {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  word-break: break-word;
  line-height: 1.25;
}
.bl-who-phone {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #2563eb;
}
.bl-row-route {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bl-row-money {
  margin-top: 0.3rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
}
.bl-row-money strong {
  font-size: 1rem;
  color: #0f172a;
}
.bl-margin {
  font-size: 0.72rem;
  font-weight: 700;
  color: #166534;
}
.bl-row-detail {
  padding: 0 0.8rem 0.8rem;
  border-top: 1px solid #f1f5f9;
}
.bl-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  margin: 0.65rem 0 0.55rem;
}
.bl-metric {
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.4rem 0.45rem;
  text-align: center;
}
.bl-metric span {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
}
.bl-metric strong {
  font-size: 0.88rem;
  color: #0f172a;
}
.bl-activity { margin-bottom: 0.55rem; }
.bl-act-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: #475569;
  margin-bottom: 0.2rem;
}
.bl-badge-sent { background: #166534; color: #fff; font-size: 0.65rem; }
.bl-badge-fail { background: #b91c1c; color: #fff; font-size: 0.65rem; }
.bl-act-type { color: #94a3b8; font-size: 0.7rem; }
.bl-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}
.bl-btn {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
}
.bl-btn-call { background: #166534; color: #fff; }
.bl-chase-phone {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 0.8rem;
  color: #64748b;
  padding: 0.4rem;
}
.bl-ip {
  margin: 0.45rem 0 0;
  font-size: 0.65rem;
  font-family: ui-monospace, monospace;
  color: #94a3b8;
}
.bl-empty {
  text-align: center;
  color: #64748b;
  padding: 1.5rem 1rem;
  background: #fff;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  font-size: 0.9rem;
}
.bl-toast {
  position: fixed;
  left: 0.65rem;
  right: 0.65rem;
  bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  z-index: 1300;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}
.bl-toast--ok { background: #166534; color: #fff; }
.bl-toast--err { background: #991b1b; color: #fff; }
@media (min-width: 640px) {
  .bl-actions { grid-template-columns: repeat(4, 1fr); }
  .bl-head h1 { font-size: 1.4rem; }
}

/* —— Leak dashboard tab strip —— */
.stats-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
}
.stats-days {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: #475569;
}
.stats-days select {
  font: inherit;
  padding: 0.25rem 0.45rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
}
.stats-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.1rem;
  margin: 0.85rem 0 0;
  border-bottom: 1px solid #e2e8f0;
}
.stats-tab {
  display: inline-block;
  padding: 0.45rem 0.1rem 0.55rem;
  color: #475569;
  text-decoration: none;
  font-size: 0.92rem;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.stats-tab:hover { color: #0f172a; }
.stats-tab.is-on {
  color: #1d4ed8;
  font-weight: 600;
  border-bottom-color: #1d4ed8;
}
.stats-panel { margin-top: 1rem; }
.stats-source {
  margin-top: 1.25rem;
  font-size: 0.78rem;
  color: #94a3b8;
}
.stats-nodata { color: #64748b; font-style: italic; }
.stats-leak {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}
.stat-card--leak { border-color: #fca5a5; background: #fef2f2; }
.stats-kind-raw,
.stats-kind-bot_filtered,
.stats-kind-measured,
.stats-kind-filtered {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.08rem 0.3rem;
  border-radius: 4px;
  margin-left: 0.25rem;
  font-weight: 600;
}
.stats-kind-raw { background: #fff7ed; color: #9a3412; }
.stats-kind-bot_filtered,
.stats-kind-filtered { background: #f0fdf4; color: #166534; }
.stats-row-orphan td { background: #fff7ed; }
.stats-row-orphan td:first-child { border-left: 3px solid #f59e0b; }

/* ── Stats: spreadsheet-style filter + sort (stats-table.js) ── */
.stats-filter {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .25rem 0 .4rem;
}
.stats-filter__input {
  flex: 0 1 260px;
  padding: .35rem .6rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: .85rem;
}
.stats-filter__input:focus {
  outline: 2px solid #2563eb;
  outline-offset: 1px;
  border-color: #2563eb;
}
.stats-filter__count {
  font-size: .78rem;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
.stats-table th.is-sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  padding-right: 1.1rem;
}
.stats-table th.is-sortable:hover { background: #e2e8f0; }
.stats-table th.is-sortable:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: -2px;
}
/* Neutral marker on every sortable header so columns look clickable, then a
   solid arrow on the one actually sorted. */
.stats-table th.is-sortable::after {
  content: "\2195";
  position: absolute;
  right: .35rem;
  color: #94a3b8;
  font-size: .75rem;
}
.stats-table th.is-sortable[data-sort="asc"]::after  { content: "\2191"; color: #0f172a; }
.stats-table th.is-sortable[data-sort="desc"]::after { content: "\2193"; color: #0f172a; }
.stats-dim { color: #94a3b8; font-size: .8em; }
