*,
*::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;
  min-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-link span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.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;
}

.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;
  min-width: 0;
  padding: 1.25rem 1.5rem;
  max-width: 520px;
  position: relative;
}

/* Instant nav — thin progress while Turbo swaps main */
body.desk-nav-busy #desk-main::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb, #60a5fa, #2563eb);
  background-size: 200% 100%;
  animation: desk-nav-bar 0.7s linear infinite;
  z-index: 50;
  border-radius: 0 0 2px 2px;
  pointer-events: none;
}

@keyframes desk-nav-bar {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

html.turbo-progress-bar::before,
.turbo-progress-bar {
  height: 3px !important;
  background: #2563eb !important;
}

.content-today {
  max-width: 1180px;
  padding: 1.25rem 1.25rem 2rem;
}

.content-wide {
  max-width: 1180px;
  padding: 1.25rem 1.5rem 2rem;
}

.content-calendar {
  max-width: none;
  width: 100%;
  padding: 1.25rem 1.75rem 2rem;
}

/* Today — open book: map left, desk right */
.today-book {
  display: grid;
  grid-template-columns: 1fr 1fr;
  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: 480px;
}

.today-book-page--map {
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.9rem 0.9rem;
  background: #f8f9fa;
  border-right: 2px solid #dadce0;
  position: sticky;
  top: 0.75rem;
  align-self: start;
  max-height: calc(100vh - 5rem);
  overflow: hidden;
  isolation: isolate;
  z-index: 1;
}

.today-book-page--desk {
  position: relative;
  z-index: 2;
  padding: 0.85rem 0.9rem 1rem;
  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 {
  flex: 1;
  width: 100%;
  height: 300px;
  min-height: 260px;
  margin-top: 0.35rem;
  background: #e8eaed;
}

.today-book-page--desk .watch-deck {
  margin-bottom: 0.85rem;
  box-shadow: none;
  border: 1px solid #e8eaed;
}

.today-book-page--desk .today-section {
  margin-bottom: 0.85rem;
}

@media (max-width: 960px) {
  .today-book {
    grid-template-columns: 1fr;
  }

  .today-book-page--map {
    position: relative;
    top: 0;
    max-height: none;
    border-right: none;
    border-bottom: 2px solid #dadce0;
  }

  .today-book-page--map .desk-map {
    min-height: 260px;
    height: 280px;
  }

  .today-book-page--desk {
    max-height: none;
  }
}

.content-schedule {
  max-width: none;
  width: 100%;
  padding: 1.25rem 1.75rem 2rem;
}

.schedule-page {
  width: 100%;
}

.schedule-header h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.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: 36px;
  line-height: 1.2;
  padding: 0 0.85rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  cursor: pointer;
}

.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;
}

.schedule-avail-strip {
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.schedule-avail-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.schedule-avail-strip-head .section-label {
  margin: 0;
  font-size: 0.92rem;
}

.schedule-avail-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
}

.schedule-avail-day {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.5rem 0.55rem;
  min-width: 0;
}

.schedule-avail-day--today {
  border-color: #93c5fd;
  box-shadow: none;
}

.schedule-avail-day header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
}

.schedule-avail-count {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
}

.schedule-avail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.35;
}

.schedule-avail-list li + li {
  margin-top: 0.35rem;
}

.schedule-avail-list .meta {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
}

.schedule-avail-none,
.schedule-avail-empty,
.schedule-avail-loading {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.work-day-avail-count {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: #15803d;
  margin-top: 0.1rem;
}

.driver-select--warn {
  border-color: #f59e0b;
  background: #fffbeb;
}

select option.opt-not-reserved {
  color: #b45309;
}

@media (max-width: 1100px) {
  .schedule-avail-days {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

.won-day-group { margin-bottom: 1.5rem; }
.won-day-title { font-size: 1.05rem; margin: 0 0 0.5rem; color: #1e293b; }
.won-job-card {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.65rem;
  background: #fff;
}
.won-job-card--done { opacity: 0.72; background: #f8fafc; }
.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-wrap: wrap; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.won-schedule-form label { display: flex; align-items: center; gap: 0.35rem; }
.won-schedule-form input[type="date"],
.won-schedule-form input[type="time"],
.won-schedule-form input[type="text"],
.won-schedule-form select {
  padding: 0.35rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
}
.won-schedule-form .won-notes { min-width: 12rem; flex: 1; }
.won-done-section { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px dashed #cbd5e1; }
.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;
}
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #fef7e0;
  border: 1px solid #f9e076;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #7a5c00;
}

.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;
  grid-template-columns: 56px repeat(7, minmax(130px, 1fr));
  overflow-x: auto;
}

.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.85rem;
  line-height: 1.35;
  padding: 0.55rem 0.6rem 0.65rem;
  overflow: visible;
  z-index: 1;
  min-height: 108px;
}
.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: minmax(0, 1fr) minmax(320px, 420px);
  gap: 1rem 1.25rem;
  padding: 1rem 1.15rem;
}

.content-schedule .won-job-card.work-list-card {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 1fr);
  align-items: start;
}

.content-schedule .won-schedule-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 0.6rem 0.85rem;
  align-items: end;
}

.content-schedule .won-schedule-form label {
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
  font-size: 0.82rem;
}

.content-schedule .won-schedule-form input[type="date"],
.content-schedule .won-schedule-form input[type="time"],
.content-schedule .won-schedule-form input[type="text"],
.content-schedule .won-schedule-form input[type="email"],
.content-schedule .won-schedule-form select {
  width: 100%;
  min-width: 0;
}

.content-schedule .won-schedule-form input[name="schedule_notes"],
.content-schedule .won-schedule-form .btn-primary {
  grid-column: 1 / -1;
}

.content-schedule .won-job-side {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.content-schedule .pipeline-week {
  width: 100%;
}

.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;
}

.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-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;
}

.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: center;
  color: #5f6368;
  padding: 2.5rem 1.5rem;
}

.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;
}

.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: wrap;
  gap: 0.35rem 0.5rem;
  align-items: center;
  max-width: 100%;
  overflow: visible;
}

.desk-job-search-input {
  flex: 1 1 14rem;
  min-width: 12rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.85rem;
}

.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.4rem 0.5rem;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.8rem;
  background: #fff;
}

.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.5rem 1.25rem;
  min-width: 0;
  flex: 1 1 auto;
}

.desk-map-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #3c4043;
  white-space: nowrap;
}

.desk-map-toolbar {
  flex: 1 1 100%;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  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.78rem;
  color: #1967d2;
  font-weight: 600;
  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: 200px;
  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.35rem 0 0.5rem;
  font-size: 0.95rem;
}
.map-area-prices--pending {
  margin: 0.35rem 0 0.5rem;
  color: #64748b;
  font-size: 0.88rem;
}
  font-size: 0.78rem;
  color: #202124;
}

.map-area-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.map-area-btn {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.map-area-btn--primary {
  background: #1967d2;
  color: #fff;
}

.map-area-btn--primary:hover {
  background: #1557b0;
  color: #fff;
}

.map-area-btn--copy {
  background: #e8f0fe;
  color: #1967d2;
}

.map-area-btn--won-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: #137333;
  color: #fff;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

.map-area-btn--won-prominent:hover {
  background: #0d652d;
  color: #fff;
}

.map-area-lost {
  margin-top: 0.35rem;
}

.map-area-lost .map-area-btn {
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.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;
}

.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.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e8eaed;
}

.watch-deck-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #137333;
}

.watch-deck-sub {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #5f6368;
}

.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.25rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #202124;
}

.watch-slide-route {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: #5f6368;
}

.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: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 0.4rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  box-sizing: border-box;
  width: 100%;
}

.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: 40px;
  margin-top: 0.75rem;
}

.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: none;
  width: 100%;
}

.content-calendar .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.85rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.calendar-header,
.pipeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.calendar-day {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem;
  min-height: 200px;
  min-width: 0;
}

.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.6rem 0.65rem;
  margin-top: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.35;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.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: 48px repeat(7, minmax(100px, 1fr)); overflow-x: auto; }
  .work-list-card { grid-template-columns: 1fr; }
  .content-schedule .won-job-card.work-list-card { grid-template-columns: 1fr; }
  .content-schedule .won-schedule-form { grid-template-columns: 1fr; }
  .content-calendar .calendar-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 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; }
.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; }
.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: 12px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}
.ops-ingest-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.88rem;
  padding: 0.65rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  resize: vertical;
}
.ops-ingest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.5rem;
}
.ops-ingest-image {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px dashed #cbd5e1;
}
.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-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;
}
