:root {
  color: #071a44;
  background: #f7fbff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --navy: #06164f;
  --navy-2: #092a84;
  --blue: #075ef2;
  --blue-2: #0f7aff;
  --ink: #071a44;
  --muted: #5f6d84;
  --line: #d9e5f6;
  --soft: #f8fbff;
  --white: #ffffff;
  --green: #0f8a5f;
  --amber: #b87500;
  --red: #c73535;
  --shadow: 0 22px 60px rgba(7, 25, 54, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: #f5f9ff;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
  background:
    radial-gradient(circle at 78% 14%, rgba(7, 94, 242, 0.1), transparent 30%),
    radial-gradient(circle at 22% 8%, rgba(15, 122, 255, 0.09), transparent 34%),
    linear-gradient(180deg, #ffffff 0, #f7fbff 500px, #f9fbff 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-frame {
  min-height: 100vh;
  overscroll-behavior: contain;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(210px, auto) 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 18px 42px;
  color: #fff;
  background: linear-gradient(90deg, #051853 0%, #062878 48%, #063fa4 100%);
  box-shadow: 0 16px 42px rgba(6, 27, 84, 0.2);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.brand strong,
.brand span {
  display: block;
  line-height: 1.2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand strong {
  font-size: 1.18rem;
}

.brand:hover strong,
.brand:focus-visible strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem;
}

.nav-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  min-width: 0;
}

.public-nav-tabs {
  justify-self: end;
  justify-content: flex-end;
}

.nav-tab,
.primary-button,
.secondary-button,
.ghost-button {
  min-height: 42px;
  border: 0;
  border-radius: 10px;
  font-weight: 800;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 0 20px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  text-decoration: none;
}

.nav-tab:hover,
.nav-tab.is-active {
  color: #fff;
  background: linear-gradient(180deg, #0f7aff, #075ef2);
  box-shadow: 0 14px 24px rgba(0, 28, 110, 0.3);
}

.topbar-status {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}

.staff-header-identity,
.portal-header-identity {
  justify-self: end;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(110deg, #223f91 0%, #116fbe 52%, #16b5e8 100%);
  box-shadow: 0 10px 24px rgba(17, 111, 190, 0.24);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.01em;
}

body[data-app-mode="staff"] .public-nav-tabs,
body[data-app-mode="portal"] .public-nav-tabs {
  display: none;
}

body[data-app-mode="staff"] .staff-header-identity,
body[data-app-mode="portal"] .portal-header-identity {
  display: inline-flex;
}

/* Local header colour trial: white header with blue navigation buttons. */
.topbar {
  color: var(--navy);
  background: #ffffff;
  border-bottom: 1px solid #dce8f8;
  box-shadow: 0 12px 34px rgba(7, 26, 68, 0.1);
}

.topbar .brand {
  color: var(--navy);
}

.header-brand-logo {
  display: block;
  width: 178px;
  height: 66px;
  object-fit: cover;
  object-position: center;
}

.topbar .brand span {
  color: var(--muted);
}

.topbar .nav-tab {
  color: #ffffff;
  background: linear-gradient(110deg, #166fbd 0%, #136fc2 56%, #19a9e3 100%);
  box-shadow: 0 8px 18px rgba(31, 74, 154, 0.2);
}

.topbar .nav-tab:hover,
.topbar .nav-tab:focus-visible {
  color: #ffffff;
  background: linear-gradient(110deg, #183f89 0%, #0e62b2 56%, #1298d4 100%);
  box-shadow: 0 10px 22px rgba(31, 74, 154, 0.28);
}

.topbar .nav-tab.is-active {
  color: #ffffff;
  background: linear-gradient(110deg, #223f91 0%, #116fbe 52%, #16b5e8 100%);
  box-shadow: 0 10px 24px rgba(17, 111, 190, 0.28);
}

.topbar .topbar-status {
  color: var(--navy);
}

.signal {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}

main {
  width: min(100% - 80px, 1500px);
  margin: 0 auto;
  padding: 24px 0 50px;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
}

.section-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.section-head h1 {
  max-width: 820px;
  margin: 0;
  color: var(--navy);
  font-size: 2.05rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 0.77rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.head-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.head-metrics span {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  background: var(--white);
  box-shadow: 0 12px 28px rgba(7, 25, 54, 0.06);
}

.head-metrics strong {
  color: var(--navy);
}

.customer-hero {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto 30px;
}

.customer-hero h1 {
  max-width: 800px;
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 2.72rem;
  line-height: 1.06;
  letter-spacing: 0;
}

.customer-hero p:not(.eyebrow) {
  max-width: 780px;
  margin: 0;
  color: #59677e;
  font-size: 1.05rem;
  line-height: 1.6;
}

.portal-booking-banner {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: -10px auto 22px;
  padding: 14px 16px;
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  background: #f7fbff;
}

.portal-booking-banner[hidden] {
  display: none;
}

.portal-booking-banner strong,
.portal-booking-banner span {
  display: block;
}

.portal-booking-banner strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.portal-booking-banner span {
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.vehicle-ai-assist {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 18px 0 0;
  padding: 12px;
  border: 1px solid #c6ddf5;
  border-radius: 8px;
  background: #f7fbff;
}

.ai-badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
  font-weight: 900;
}

.vehicle-ai-assist strong,
.vehicle-ai-assist span {
  display: block;
}

.vehicle-ai-assist strong {
  color: var(--navy);
}

.vehicle-ai-assist span {
  color: var(--muted);
  line-height: 1.35;
}

.quote-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.quote-main {
  display: grid;
  gap: 0;
  min-width: 0;
}

.quote-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  width: min(100%, 760px);
  margin: 0 0 -1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 30px rgba(7, 25, 54, 0.04);
}

.quote-steps span {
  position: relative;
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 0 20px;
  border-radius: 0;
  color: #172a55;
  background: rgba(255, 255, 255, 0.78);
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.quote-steps span.is-clickable {
  cursor: pointer;
}

.quote-steps span.is-clickable:not(.is-active):hover,
.quote-steps span.is-clickable:not(.is-active):focus-visible {
  color: var(--blue);
  background: #eef6ff;
  outline: none;
}

.quote-steps span.is-locked {
  cursor: not-allowed;
  opacity: 0.58;
}

.quote-steps b {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 6px;
  color: #5e6877;
  background: #cdd3dc;
  font-size: 0.72rem;
  line-height: 1;
}

.quote-steps span + span {
  margin-left: 0;
  border-left: 1px solid #e6edf8;
}

.quote-steps span + span::before {
  content: none;
}

.quote-steps span.is-active,
.quote-steps span.is-complete {
  color: #fff;
  background: linear-gradient(180deg, #0f7aff, #075ef2);
  box-shadow: 0 16px 28px rgba(7, 94, 242, 0.22);
}

.quote-steps span.is-active b,
.quote-steps span.is-complete b {
  color: var(--blue);
  background: #fff;
}

.quote-entry-panel,
.quote-summary-panel {
  padding: 46px 42px;
  border-radius: 0 14px 14px 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(7, 25, 54, 0.13);
}

.postcode-form {
  display: grid;
  max-width: 780px;
  gap: 22px;
}

.postcode-grid {
  display: grid;
  grid-template-columns: 250px minmax(320px, 1fr);
  gap: 20px 34px;
  align-items: center;
}

.postcode-grid label {
  display: contents;
}

.postcode-grid span {
  color: var(--navy);
  font-size: 1rem;
  font-weight: 800;
}

.quote-entry-panel label:has(input[required]) > span::after,
.quote-entry-panel label:has(textarea[required]) > span::after,
.booking-form label:has(input[required]) > span::after,
.booking-form label:has(textarea[required]) > span::after,
.staff-booking-form label:has(input[required]) > span::after,
.staff-booking-form label:has(textarea[required]) > span::after,
.assistant-email-form label:has(input[required]) > span::after {
  content: " *";
  color: var(--red);
  font-weight: 900;
}

.required-note {
  justify-self: center;
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.booking-form > .required-note {
  justify-self: start;
  margin: 0;
}

.required-note span {
  color: var(--red);
  font-weight: 900;
}

.postcode-grid input {
  min-height: 58px;
  border-radius: 10px;
  border-color: #cfe0f6;
  font-size: 1.18rem;
  font-weight: 800;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(7, 25, 54, 0.03);
}

.postcode-grid input[type="email"] {
  font-size: 1rem;
  text-transform: none;
}

.postcode-grid input::placeholder {
  text-transform: none;
}

[data-quote-lead-message]:empty {
  display: none;
}

[data-additional-stop-pricing]:empty,
[data-booking-payment-message]:empty {
  display: none;
}

.address-lookup-field {
  position: relative;
}

.address-lookup-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid #cfe0f6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(13, 47, 81, 0.16);
}

.address-lookup-list.is-floating {
  position: fixed;
  right: auto;
  z-index: 1000;
}

.address-lookup-list button {
  display: grid;
  width: 100%;
  gap: 3px;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #edf3fb;
  background: #fff;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.address-lookup-list button:hover {
  background: #f4f9ff;
}

.address-lookup-list button:last-child {
  border-bottom: 0;
}

.address-lookup-list strong {
  font-size: 0.88rem;
}

.address-lookup-list span,
.address-lookup-status {
  color: #627089;
  font-size: 0.8rem;
  line-height: 1.35;
}

.address-lookup-status {
  padding: 10px 12px;
}

.ready-fieldset {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 12px 34px;
  align-items: center;
  padding: 0;
  margin: 4px 0 0;
  border: 0;
}

.ready-fieldset legend {
  grid-row: span 2;
  color: #1a3764;
  font-weight: 800;
  line-height: 1.35;
}

.ready-fieldset label {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #1a3764;
  font-size: 1.02rem;
  font-weight: 800;
}

.ready-fieldset input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  accent-color: var(--blue);
}

.quote-button {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 168px;
  min-height: 54px;
  margin-top: 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, #0f7aff, #075ef2);
  box-shadow: 0 16px 30px rgba(7, 94, 242, 0.25);
}

.quote-summary-head {
  display: flex;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #e0e8f4;
}

.quote-summary-head h2 {
  margin-bottom: 6px;
  font-size: 2rem;
}

.quote-summary-head p {
  margin: 0;
  color: #1a3764;
  font-size: 1.02rem;
}

.postcode-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 18px 0;
  margin: 0;
  border-bottom: 1px solid #e0e8f4;
}

.postcode-summary div {
  display: grid;
  gap: 6px;
}

.postcode-summary dt {
  color: #1a3764;
  font-size: 0.86rem;
  text-transform: none;
}

.postcode-summary dd {
  color: #1a3764;
  font-size: 1.14rem;
}

.service-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 20px 0 18px;
}

.service-tabs button {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 10px 12px;
  border: 1px solid #d6dce6;
  border-radius: 10px;
  color: #1a3764;
  background: #fff;
  text-align: left;
}

.service-tabs button.is-active {
  border-color: var(--blue);
  color: #fff;
  background: linear-gradient(180deg, #0f7aff, #075ef2);
}

.service-tabs span {
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0.84;
}

.vehicle-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.quote-option-card {
  display: grid;
  gap: 12px;
  min-height: 380px;
  padding: 18px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  box-shadow: 0 14px 34px rgba(7, 25, 54, 0.05);
}

.quote-option-card.is-selected,
.quote-option-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 91, 220, 0.12);
}

.vehicle-illustration {
  display: grid;
  height: 76px;
  place-items: center;
}

.vehicle-illustration.has-image {
  display: flex;
  box-sizing: border-box;
  height: 138px;
  min-height: 138px;
  padding: 14px 18px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #fff;
}

.vehicle-illustration.has-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
  margin: auto;
}

.vehicle-illustration span {
  position: relative;
  display: block;
  width: 92px;
  height: 42px;
  border: 4px solid var(--blue);
  border-radius: 8px 14px 8px 8px;
}

.vehicle-illustration span::before {
  position: absolute;
  right: -18px;
  bottom: -4px;
  width: 28px;
  height: 25px;
  border: 4px solid var(--blue);
  border-left: 0;
  border-radius: 0 12px 8px 0;
  content: "";
}

.vehicle-illustration span::after {
  position: absolute;
  right: -21px;
  bottom: -14px;
  width: 112px;
  height: 12px;
  background:
    radial-gradient(circle at 18px 6px, var(--blue) 0 6px, transparent 7px),
    radial-gradient(circle at 90px 6px, var(--blue) 0 6px, transparent 7px);
  content: "";
}

.quote-option-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: 1.08rem;
}

.quote-option-card p {
  min-height: 48px;
  margin: 0;
  color: #536274;
  line-height: 1.35;
}

.quote-option-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.quote-option-card dt {
  text-transform: none;
}

.quote-option-card dd {
  color: var(--blue);
  font-size: 0.96rem;
}

.quote-price {
  padding-top: 12px;
  border-top: 1px solid #e4e8ef;
}

.quote-price strong {
  display: block;
  color: #0d2a56;
  font-size: 2rem;
  line-height: 1;
}

.quote-price span {
  color: #536274;
  font-weight: 800;
}

.details-step {
  display: grid;
  gap: 14px;
}

.checkout-step {
  display: grid;
  gap: 14px;
}

.stride-checkout-card {
  display: grid;
  gap: 22px;
  padding: 30px;
  border-radius: 0 14px 14px 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(7, 25, 54, 0.13);
}

.stride-checkout-head {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.stride-checkout-head h1 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.05;
}

.stride-checkout-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.stride-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.stride-checkout-grid h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: 1.08rem;
}

.stride-payment-summary {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #b9d6ff;
  border-radius: 10px;
  background: #f8fbff;
}

.stride-payment-summary dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.stride-payment-summary dl div {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3eefc;
}

.stride-payment-summary dl div:last-child {
  border-bottom: 0;
}

.stride-payment-summary .is-total {
  align-items: end;
}

.stride-payment-summary .is-total dt,
.stride-payment-summary .is-total dd {
  color: var(--navy);
  font-size: 1.08rem;
}

.stride-payment-summary .primary-button,
.stride-payment-summary .secondary-button {
  width: 100%;
}

.stride-checkout-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.checkout-route-row {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}

.checkout-route-summary {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checkout-route-summary li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
  padding: 0 0 18px;
}

.checkout-route-summary li:not(:last-child)::after {
  position: absolute;
  top: 30px;
  bottom: 2px;
  left: 15px;
  width: 2px;
  background: #cfe0f6;
  content: "";
}

.checkout-route-summary li:last-child {
  padding-bottom: 0;
}

.checkout-route-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.checkout-route-summary li > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.checkout-route-summary strong,
.checkout-route-summary span,
.checkout-route-summary small {
  overflow-wrap: anywhere;
}

.checkout-route-summary strong {
  color: var(--navy);
}

.checkout-route-summary li > div > span {
  color: var(--ink);
  font-weight: 800;
}

.stride-checkout-actions .ghost-button {
  width: 100%;
  color: var(--navy);
  background: #eef4ff;
}

.stride-payment-confirmation {
  max-width: 920px;
  margin: 28px auto;
  padding: clamp(26px, 5vw, 52px);
  color: #fff;
  background: linear-gradient(90deg, #051853 0%, #062878 48%, #063fa4 100%);
  text-align: center;
  box-shadow: 0 22px 54px rgba(6, 27, 84, 0.28);
}

/* The generic .surface rule is declared later, so retain the confirmation's
   header-colour background with a deliberately more specific selector. */
.surface.stride-payment-confirmation {
  display: grid;
  grid-template-rows: repeat(6, auto);
  min-height: 0;
  height: auto;
  align-content: start;
  gap: 22px;
  border: 1px solid rgba(6, 40, 120, 0.45);
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(90deg, #051853 0%, #062878 48%, #063fa4 100%);
  opacity: 1;
  filter: none;
  isolation: isolate;
}

.payment-confirmation-brand {
  display: flex;
  width: min(250px, 72vw);
  min-height: 120px;
  margin: 0 auto;
  padding: 14px 22px;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 11, 50, 0.25);
}

.payment-confirmation-brand img {
  display: block;
  width: 100%;
  max-width: 210px;
  height: auto;
  object-fit: contain;
}

.payment-confirmation-heading {
  display: grid;
  justify-items: center;
}

.payment-confirmation-mark {
  display: grid;
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  place-items: center;
  border-radius: 999px;
  background: #0e9f6e;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(14, 159, 110, 0.25);
}

.stride-payment-confirmation h1 {
  margin: 8px 0 0;
  color: #fff;
  font-size: clamp(1.9rem, 5vw, 3.25rem);
  line-height: 1.06;
}

.stride-payment-confirmation .eyebrow {
  color: #d9ecff;
}

.payment-confirmation-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.payment-confirmation-details div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
}

.payment-confirmation-details dt {
  margin-bottom: 7px;
  color: #61708a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.payment-confirmation-details dd {
  margin: 0;
  color: #0b2455;
  font-size: 1.05rem;
  font-weight: 900;
}

.payment-confirmation-booking-summary {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background: #fff;
  color: #0b2455;
  text-align: left;
}

.payment-confirmation-summary-heading {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dce8f8;
}

.payment-confirmation-summary-heading .eyebrow {
  margin: 0;
  color: #075ef2;
}

.payment-confirmation-summary-heading h2,
.payment-confirmation-route h3 {
  margin: 0;
  color: #0b2455;
}

.payment-confirmation-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 24px;
  align-items: start;
}

.payment-confirmation-route {
  display: grid;
  gap: 16px;
}

.payment-confirmation-job-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.payment-confirmation-job-facts div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid #dce8f8;
  border-radius: 12px;
  background: #f5f9ff;
}

.payment-confirmation-job-facts dt {
  color: #61708a;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.payment-confirmation-job-facts dd {
  margin: 0;
  color: #0b2455;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.payment-confirmation-contact {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(2, 18, 66, 0.42);
  color: #fff;
}

.payment-confirmation-contact h2 {
  margin: 0 0 8px;
  color: #fff;
}

.payment-confirmation-contact p {
  margin: 0;
  color: #e9f3ff;
}

.payment-confirmation-contact a {
  color: #fff;
  font-weight: 900;
}

.payment-confirmation-actions {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.payment-confirmation-actions .primary-button {
  display: inline-flex;
  min-width: min(320px, 100%);
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  color: #075ef2;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 12, 58, 0.28);
  text-align: center;
}

.payment-confirmation-actions .primary-button:hover,
.payment-confirmation-actions .primary-button:focus-visible {
  color: #063fa4;
  background: #f2f7ff;
}

@media (max-width: 720px) {
  .payment-confirmation-details {
    grid-template-columns: 1fr;
  }

  .payment-confirmation-summary-grid {
    grid-template-columns: 1fr;
  }

  .surface.stride-payment-confirmation {
    margin: 16px auto;
    padding: 22px 16px;
    border-radius: 18px;
  }
}

.stride-payment-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.selected-quote-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
}

.selected-quote-strip span,
.selected-vehicle-inline span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.selected-quote-strip strong {
  color: var(--navy);
  font-size: 1.08rem;
}

.selected-vehicle-inline {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #b9d6ff;
  border-radius: 8px;
  background: #eef6ff;
}

.selected-vehicle-inline strong {
  color: var(--navy);
}

.quote-ai-panel {
  display: grid;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #b9d6ff;
  border-radius: 8px;
  background: #f8fbff;
}

.quote-ai-panel[hidden] {
  display: none;
}

.quote-ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.quote-ai-form .primary-button {
  min-width: 100px;
}

.quote-side {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: 22px;
  align-items: start;
}

.help-card {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(7, 25, 54, 0.07);
}

.help-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid #d9e6fa;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 12px 26px rgba(7, 94, 242, 0.1);
  font-weight: 900;
}

.help-card strong,
.help-card span {
  display: block;
}

.help-card strong {
  font-size: 1.05rem;
}

.why-card h2 {
  margin-bottom: 14px;
  color: var(--navy);
  font-size: 1.34rem;
}

.why-card ul {
  display: grid;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.why-card li {
  position: relative;
  padding-left: 38px;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.45;
}

.why-card li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #075ef2);
  content: "✓";
  font-size: 0.9rem;
  line-height: 1;
}

.surface {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 18px;
  align-items: start;
}

.booking-form {
  display: grid;
  gap: 24px;
  padding: 26px;
}

.form-section {
  display: grid;
  gap: 14px;
}

.form-section-title {
  display: flex;
  gap: 10px;
  align-items: center;
}

.form-section-title > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--navy-2);
  font-size: 0.8rem;
  font-weight: 900;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: 1.08rem;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 0.94rem;
  letter-spacing: 0;
}

.field-grid {
  display: grid;
  gap: 12px;
}

.address-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.address-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fcff;
}

.address-card h3 {
  margin-bottom: 0;
}

.address-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.address-card-head h3 {
  margin-bottom: 0;
}

.address-card-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.extra-stop-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.extra-stop-order-actions .compact-button {
  min-height: 38px;
}

.stop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.additional-stop-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}

.additional-stop-choice[hidden] {
  display: none;
}

.additional-stop-choice span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.extra-stops {
  display: grid;
  gap: 12px;
}

.additional-stop-pricing-note {
  margin: 0;
  padding: 11px 13px;
  border: 1px solid #bfd7f7;
  border-radius: 10px;
  color: #26364d;
  background: #f4f8fe;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.additional-stop-pricing-note[data-tone="checking"] {
  border-color: #e0b341;
  color: #6a4900;
  background: #fff8df;
}

.additional-stop-pricing-note[data-tone="success"] {
  border-color: #8ecfb4;
  color: #075c40;
  background: #effbf5;
}

.additional-stop-pricing-note[data-tone="warning"] {
  border-color: #e4a0a0;
  color: #8f1d1d;
  background: #fff1f1;
}

.deadline-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.deadline-control .ghost-button {
  min-height: 54px;
}

.deadline-control .ghost-button.is-on {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.booking-form input[type="datetime-local"] {
  min-height: 56px;
  padding: 0 14px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  background: #fff;
}

.booking-form input[type="datetime-local"]::-webkit-datetime-edit,
.booking-form input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
.booking-form input[type="datetime-local"]::-webkit-datetime-edit-text,
.booking-form input[type="datetime-local"]::-webkit-datetime-edit-month-field,
.booking-form input[type="datetime-local"]::-webkit-datetime-edit-day-field,
.booking-form input[type="datetime-local"]::-webkit-datetime-edit-year-field,
.booking-form input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
.booking-form input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
.booking-form input[type="datetime-local"]::-webkit-datetime-edit-ampm-field {
  color: var(--ink);
  font-weight: 900;
}

.booking-form input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  width: 22px;
  height: 22px;
  opacity: 0.82;
}

input[type="date"],
input[type="time"],
input[type="datetime-local"] {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
  accent-color: #111;
}

input[type="date"]::-webkit-datetime-edit,
input[type="date"]::-webkit-datetime-edit-fields-wrapper,
input[type="date"]::-webkit-datetime-edit-text,
input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field,
input[type="time"]::-webkit-datetime-edit,
input[type="time"]::-webkit-datetime-edit-fields-wrapper,
input[type="time"]::-webkit-datetime-edit-text,
input[type="time"]::-webkit-datetime-edit-hour-field,
input[type="time"]::-webkit-datetime-edit-minute-field,
input[type="datetime-local"]::-webkit-datetime-edit,
input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
input[type="datetime-local"]::-webkit-datetime-edit-text,
input[type="datetime-local"]::-webkit-datetime-edit-month-field,
input[type="datetime-local"]::-webkit-datetime-edit-day-field,
input[type="datetime-local"]::-webkit-datetime-edit-year-field,
input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
input[type="datetime-local"]::-webkit-datetime-edit-ampm-field {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

label:has(input[type="date"]) > span,
label:has(input[type="time"]) > span,
label:has(input[type="datetime-local"]) > span {
  color: #111 !important;
}

.crm-lookup-note {
  min-height: 18px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.crm-lookup-note:empty {
  display: none;
}

.crm-lookup-note[data-tone="success"] {
  color: #087a52;
}

.crm-lookup-note[data-tone="info"] {
  color: #006edc;
}

.crm-lookup-note[data-tone="warning"] {
  color: #a45a00;
}

.staff-company-lookup-field {
  position: relative;
}

.staff-company-lookup-list {
  position: absolute;
  z-index: 40;
  top: calc(100% + 6px);
  left: 0;
  width: min(520px, 100%);
  max-height: 320px;
  overflow: auto;
  padding: 7px;
  border: 1px solid #b9d2f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(7, 36, 86, 0.2);
}

.staff-company-lookup-list button,
.staff-address-book-menu button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  text-align: left;
  background: transparent;
}

.staff-company-lookup-list button:hover,
.staff-company-lookup-list button:focus-visible,
.staff-address-book-menu button:hover,
.staff-address-book-menu button:focus-visible {
  background: #eaf4ff;
  outline: none;
}

.staff-company-lookup-list button + button,
.staff-address-book-menu button + button {
  border-top: 1px solid #e2ebf7;
  border-radius: 0;
}

.staff-company-lookup-list button span,
.staff-address-book-menu button span,
.staff-address-book-menu button small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-company-lookup-empty,
.staff-address-book-empty {
  padding: 11px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.staff-customer-type-field {
  display: grid;
  align-content: end;
  gap: 7px;
}

.staff-customer-type-field > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.staff-customer-type-field > strong {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cbd9eb;
  border-radius: 10px;
  background: #f4f7fb;
  color: var(--ink);
}

.staff-customer-type-field > strong.is-account {
  border-color: #0c4da2;
  background: #e8f2ff;
  color: #073b7c;
}

.staff-account-customer-banner {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #072f70;
  border-radius: 12px;
  background: linear-gradient(135deg, #071f54, #0d52ad);
  color: #fff;
  box-shadow: 0 9px 22px rgba(7, 47, 112, 0.2);
}

.staff-account-customer-banner[hidden] {
  display: none;
}

.staff-account-customer-banner strong,
.staff-account-customer-banner span {
  color: #fff;
}

.staff-account-customer-banner strong {
  flex: 0 0 auto;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.simple-goods-grid {
  grid-template-columns: minmax(0, 1fr);
}

.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-col {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.span-two {
  grid-column: span 2;
}

.span-three {
  grid-column: 1 / -1;
}

.span-four {
  grid-column: 1 / -1;
}

label,
.full-label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

label > span,
.full-label > span,
.ops-toolbar span {
  color: #42526a;
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #cfe0f6;
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input,
select {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 120, 255, 0.13);
}

.file-drop {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 12px;
  border: 1px dashed #adc3dd;
  border-radius: 12px;
  background: #f8fbff;
}

.file-drop > span {
  color: var(--navy);
  font-weight: 850;
}

.file-drop .secondary-button {
  justify-self: start;
}

small {
  color: var(--muted);
  line-height: 1.35;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.option-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-option-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-option-wide {
  grid-column: 1 / -1;
}

.booking-grid.is-assistant-disabled {
  grid-template-columns: minmax(0, 1fr);
}

[data-customer-ai-entry][hidden],
[data-booking-assistant][hidden] {
  display: none !important;
}

.check-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  min-height: 88px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
}

.check-card input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.check-card:has(input:checked) {
  border-color: var(--blue);
  background: #eaf3ff;
  box-shadow: 0 0 0 3px rgba(7, 94, 242, 0.11);
}

.check-card strong,
.check-card small {
  display: block;
}

.check-card strong {
  margin-bottom: 4px;
  color: var(--navy);
  font-size: 0.9rem;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.primary-button {
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(180deg, #0f7aff, #075ef2);
  box-shadow: 0 12px 24px rgba(8, 120, 255, 0.2);
}

.primary-button:hover {
  background: var(--blue-2);
}

.compact-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  white-space: nowrap;
}

.secondary-button,
.ghost-button {
  padding: 0 14px;
  color: var(--navy);
  background: #eef5ff;
}

.ghost-button {
  border: 1px solid #cfe0f6;
  background: #fff;
}

.ghost-button.is-on {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.assistant-panel,
.fleet-panel {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 16px;
  padding: 22px;
}

.assistant-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.confidence-pill {
  min-width: 58px;
  padding: 7px 10px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy-2);
  font-size: 0.86rem;
  font-weight: 900;
  text-align: center;
}

.recommendation-card,
.mini-rec {
  padding: 16px;
  border: 1px solid #b9d6ff;
  border-radius: 12px;
  background: linear-gradient(180deg, #f7fbff, #eef6ff);
}

.vehicle-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.recommendation-card strong,
.mini-rec strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1.4rem;
  letter-spacing: 0;
}

.recommended-vehicle-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.recommended-vehicle-row strong {
  margin-bottom: 0;
}

.recommended-vehicle-row .primary-button {
  min-height: 34px;
  white-space: nowrap;
}

.recommendation-card p,
.quote-ai-summary,
.mini-rec p {
  margin-bottom: 0;
  color: #43536a;
  line-height: 1.5;
}

.assistant-call-team {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 0.8rem;
  text-decoration: none;
}

.assistant-call-team[hidden] {
  display: none;
}

.quote-ai-summary {
  display: grid;
  gap: 12px;
}

.ai-load-notes {
  display: grid;
  gap: 6px;
}

.ai-load-notes span {
  color: var(--navy);
  font-weight: 900;
}

.ai-load-notes small {
  color: var(--muted);
  font-weight: 800;
}

.ai-load-notes textarea {
  width: 100%;
  min-height: 86px;
  resize: vertical;
}

.dimension-answer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dimension-answer-grid label {
  display: grid;
  gap: 5px;
}

.dimension-answer-grid span,
.loading-help-grid > div > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.loading-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.loading-help-grid > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.ai-final-output {
  display: grid;
  gap: 12px;
}

.ai-final-output dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.ai-final-output dl div {
  padding-bottom: 8px;
  border-bottom: 1px solid #dbeafe;
}

.ai-final-output ul {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding-left: 18px;
}

.ai-final-output li {
  color: #43536a;
  font-weight: 700;
}

.assistant-block {
  padding-top: 2px;
}

.question-list,
.reason-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.question-list li,
.reason-list li,
.note-list p {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #35455e;
  background: var(--soft);
  line-height: 1.45;
}

.answer-question {
  display: grid;
  gap: 10px;
}

.answer-question > div:first-child {
  display: grid;
  gap: 3px;
}

.answer-question > div:first-child span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.answer-question > div:first-child strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.answer-question.is-answered {
  border-color: #b9d6ff;
  background: #f4f9ff;
}

.answer-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.answer-options button {
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid #cbd8e8;
  border-radius: 8px;
  color: var(--navy);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.answer-options button.is-selected {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.answer-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.answer-summary span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #07437f;
  background: #e4f1ff;
  font-size: 0.74rem;
  font-weight: 900;
}

.satisfied-button {
  justify-self: start;
  min-height: 34px;
}

.flag-stack,
.card-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.flag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #07437f;
  background: #e4f1ff;
  font-size: 0.74rem;
  font-weight: 900;
}

.flag.urgent {
  color: #7a4200;
  background: #fff0d4;
}

.flag.problem {
  color: #8b1e1e;
  background: #ffe2e2;
}

.flag.muted {
  color: var(--muted);
  background: #eef2f7;
}

.assistant-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  align-items: start;
}

.portal-signin-shell,
.portal-dashboard {
  display: grid;
  gap: 18px;
}

.portal-dashboard[hidden] {
  display: none;
}

.portal-dashboard {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.portal-main {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.portal-panel {
  display: none;
  gap: 18px;
}

.portal-panel.is-active {
  display: grid;
}

.portal-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-kpi-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 16px;
  border-left: 4px solid #007bff;
}

.portal-kpi-card span,
.portal-kpi-card small {
  color: var(--muted);
  font-weight: 800;
}

.portal-kpi-card span {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.portal-kpi-card strong {
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1;
}

.portal-signin-shell {
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: stretch;
}

.portal-login-panel,
.portal-login-side,
.portal-card {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.portal-login-panel {
  align-content: center;
  min-height: 480px;
}

.portal-login-panel h1,
.portal-dashboard-head h1 {
  max-width: 780px;
  margin: 0;
  color: var(--navy);
  font-size: 2.45rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.portal-login-panel p:not(.eyebrow),
.portal-dashboard-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.portal-login-side {
  align-content: center;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

.portal-login-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
}

.portal-small-link {
  width: max-content;
  border: 0;
  padding: 0;
  color: #006de3;
  background: transparent;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.portal-small-link:hover {
  color: #0d2f51;
  text-decoration: underline;
}

.portal-register-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: 26px;
}

.portal-register-panel[hidden] {
  display: none;
}

.portal-signin-shell.is-registering .portal-login-panel,
.portal-signin-shell.is-registering .portal-login-side {
  display: none;
}

.portal-register-form {
  display: grid;
  gap: 16px;
}

.portal-register-form input,
.portal-register-form select {
  height: 54px;
  min-height: 54px;
  box-sizing: border-box;
  border: 1px solid #cfe0f6;
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  background-color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.portal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.portal-card .primary-button,
.portal-card .secondary-button,
.portal-card .ghost-button {
  justify-self: start;
}

.portal-message {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.live-job-message {
  padding: 12px 14px;
  border: 1px solid #d9e5f6;
  border-radius: 10px;
  color: #12375f;
  background: #f3f8ff;
  font-weight: 850;
}

.live-job-message.is-success {
  border-color: #c7ecd6;
  color: #145b2f;
  background: #f0fff5;
}

.live-job-message.is-error {
  border-color: #ffc7c7;
  color: #9b1c1c;
  background: #fff3f3;
}

.bookings-action-strip {
  margin: 0 0 10px;
  padding-block: 8px;
  font-size: 0.82rem;
}

.portal-global-message {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}

.portal-section-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-section-shortcuts button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #17345f;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(7, 25, 54, 0.04);
}

.portal-section-shortcuts button:hover,
.portal-section-shortcuts button.is-active {
  color: #fff;
  border-color: var(--blue);
  background: linear-gradient(180deg, #0f7aff, #075ef2);
}

.portal-dashboard-head {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
  padding: 4px 0 8px;
}

.portal-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.portal-action-tile {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 12px 32px rgba(7, 25, 54, 0.06);
  text-align: left;
}

.portal-action-tile:hover {
  border-color: #9dc8ff;
  box-shadow: 0 16px 36px rgba(7, 94, 242, 0.12);
}

.portal-action-tile strong,
.portal-action-tile span {
  display: block;
}

.portal-action-tile strong {
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 1rem;
}

.portal-action-tile span {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.portal-benefits {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.portal-benefits li {
  position: relative;
  padding-left: 32px;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.35;
}

.portal-benefits li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #075ef2);
  content: "✓";
  font-size: 0.82rem;
}

.portal-card-head {
  display: flex;
  gap: 12px;
  align-items: start;
  justify-content: space-between;
}

.portal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.portal-card-head span {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 9px;
  color: #07437f;
  background: #e4f1ff;
  font-size: 0.8rem;
  font-weight: 900;
  white-space: nowrap;
}

.portal-filter-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.segmented-control {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f9fa;
}

.segmented-control button {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0 10px;
}

.segmented-control button.is-active {
  color: #fff;
  background: var(--blue);
}

.portal-table {
  display: grid;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior: contain;
}

.portal-jobs-table {
  min-width: 1320px;
}

.portal-rate-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.portal-rate-card {
  display: grid;
  gap: 6px;
  min-height: 124px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.portal-rate-card strong {
  color: var(--navy);
}

.portal-rate-card span {
  color: var(--blue);
  font-weight: 900;
}

.portal-rate-card small {
  color: var(--muted);
}

.portal-row {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.95fr 0.8fr 0.85fr;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.portal-row.invoice-row {
  grid-template-columns: 1fr 1.2fr 0.8fr 0.8fr;
}

.portal-row span,
.portal-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.portal-row small {
  display: block;
  margin-top: 3px;
  font-weight: 800;
}

.link-button {
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 900;
  text-decoration: underline;
  padding: 0;
}

.portal-row-actions,
.portal-document-actions,
.portal-export-actions,
.portal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.portal-mini-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.portal-mini-card span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-mini-card strong {
  color: var(--navy);
  font-size: 1rem;
}

.portal-mini-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.portal-activity-list {
  display: grid;
  gap: 8px;
}

.portal-activity-row {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}

.portal-activity-row strong {
  color: var(--navy);
}

.portal-activity-row span {
  color: var(--muted);
  line-height: 1.4;
}

.portal-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 16px;
}

.portal-detail-grid h3 {
  margin-top: 0;
}

.portal-tracking-space {
  margin-top: 14px;
  padding: 18px;
  border: 1px dashed #bfd1e8;
  border-radius: 12px;
  color: var(--muted);
  background: #f8fbff;
  font-weight: 850;
}

.portal-settings-form {
  display: grid;
  gap: 16px;
}

.portal-placeholder-card {
  min-height: 320px;
  align-content: center;
  text-align: center;
}

.portal-placeholder-card h2 {
  font-size: 2rem;
}

.pod-pill {
  justify-self: start;
  padding: 7px 10px;
  border-radius: 999px;
  color: #5f6d84;
  background: #eaf0f8;
  font-size: 0.78rem;
  font-weight: 900;
}

.pod-pill.is-ready {
  color: #0b6b4c;
  background: #dff8ee;
}

.pod-centre-shell {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.pod-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pod-kpi-grid article,
.accounting-kpi-card {
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.accounting-kpi-card {
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.accounting-kpi-card:hover,
.accounting-kpi-card.is-active {
  border-color: #0f67d5;
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px #0f67d5;
}

.pod-kpi-grid span,
.pod-search-toolbar span {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pod-kpi-grid strong {
  color: #0d2f51;
  font-size: 1.45rem;
}

.pod-kpi-grid small,
.accounting-kpi-card small {
  color: #6c757d;
  font-weight: 800;
}

.pod-search-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px) auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.pod-search-toolbar.accounting-search-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(150px, 180px) minmax(150px, 180px) auto auto;
}

.pod-search-toolbar label {
  display: grid;
  gap: 6px;
}

.pod-search-toolbar input,
.pod-search-toolbar select {
  min-height: 38px;
  width: 100%;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.pod-search-toolbar strong {
  align-self: center;
  color: #0d2f51;
  font-size: 0.86rem;
}

.pod-centre-table {
  min-width: 1180px;
}

.pod-centre-table td {
  vertical-align: top;
}

.pod-centre-table small {
  display: block;
  margin-top: 4px;
  color: #6c757d;
  font-size: 0.75rem;
  font-weight: 800;
}

.pod-row-actions {
  min-width: 220px;
}

.accounting-reference-editor {
  display: grid;
  gap: 6px;
  min-width: 170px;
}

.accounting-reference-editor input {
  width: 100%;
  min-width: 0;
  min-height: 32px;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  color: #0d2f51;
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 6px 8px;
}

.accounting-reference-editor button {
  min-height: 30px;
  border: 1px solid #0f67d5;
  border-radius: 6px;
  color: #fff;
  background: #0f67d5;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 5px 9px;
  cursor: pointer;
}

.accounting-charge-editor {
  display: grid;
  grid-template-columns: minmax(130px, 1.2fr) 100px minmax(120px, 1fr) auto;
  gap: 6px;
  min-width: 460px;
  margin-bottom: 8px;
}

.accounting-charge-editor select,
.accounting-charge-editor input {
  width: 100%;
  min-height: 28px;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 7px;
}

.accounting-charge-editor button,
.accounting-charge-list button {
  min-height: 28px;
  border: 1px solid #0f67d5;
  border-radius: 4px;
  color: #fff;
  background: #0f67d5;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
  white-space: nowrap;
}

.accounting-charge-list {
  display: grid;
  gap: 5px;
  margin-bottom: 8px;
}

.accounting-charge-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #f8fbff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 6px;
}

.accounting-charge-list button {
  border-color: #d9e5f6;
  color: #0d2f51;
  background: #fff;
}

.pod-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-rate-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.assistant-console {
  display: grid;
  gap: 18px;
  padding: 26px;
}

.assistant-email-gate {
  display: grid;
  max-width: 780px;
  gap: 20px;
  padding: 34px 36px;
}

.assistant-email-gate h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.45rem;
}

.assistant-email-gate p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.assistant-email-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.assistant-email-form label {
  display: grid;
  gap: 8px;
}

.assistant-email-form span {
  color: var(--navy);
  font-weight: 800;
}

.assistant-email-form input {
  min-height: 54px;
  border-color: #cfe0f6;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
}

.assistant-chat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
}

.assistant-chat textarea {
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
}

.assistant-action-stack {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.assistant-upload-button {
  cursor: pointer;
  text-align: center;
}

.assistant-upload-button input {
  display: none;
}

.assistant-example-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assistant-example-list span {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #d9e7f8;
  border-radius: 8px;
  color: #43536a;
  background: #f8fbff;
  font-size: 0.82rem;
  font-weight: 800;
}

.vehicle-result-card {
  display: grid;
  gap: 10px;
}

.assistant-centre-result {
  border-color: rgba(0, 123, 255, 0.28);
  background: linear-gradient(180deg, #ffffff, #eef6ff);
  box-shadow: 0 18px 44px rgba(7, 25, 54, 0.08);
}

.fit-score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #d9e7f8;
  border-radius: 8px;
  background: #f8fbff;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.fit-score-row strong {
  color: var(--blue);
  font-size: 1rem;
}

.fit-score-row.is-ready {
  border-color: rgba(0, 123, 255, 0.32);
  background: #eef6ff;
}

.fit-score-row.is-review {
  border-color: rgba(220, 53, 69, 0.24);
  background: #fff5f5;
}

.fit-score-row.is-review strong {
  color: var(--red);
}

.vehicle-result-card .primary-button {
  justify-self: start;
}

.assistant-followup {
  border-color: rgba(0, 123, 255, 0.22);
  background: #eef6ff;
  color: var(--ink);
  font-weight: 800;
}

.assistant-usage-message {
  font-weight: 800;
}

.assistant-usage-message.is-warning {
  border-color: rgba(199, 53, 53, 0.24);
  background: #fff5f5;
  color: var(--red);
}

.assistant-conversation {
  display: grid;
  max-height: 320px;
  gap: 10px;
  overflow: auto;
}

.assistant-message {
  display: grid;
  gap: 4px;
  max-width: 82%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 10px 28px rgba(7, 25, 54, 0.06);
}

.assistant-message p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.assistant-message strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.assistant-message-user {
  justify-self: end;
  border-color: rgba(0, 123, 255, 0.24);
  background: #eef6ff;
}

.assistant-message-ai,
.assistant-message-review {
  justify-self: start;
}

.assistant-message-ai p,
.assistant-message-review p {
  color: var(--ink);
  font-weight: 650;
}

.assistant-message-review {
  border-color: rgba(199, 53, 53, 0.25);
  background: #fff5f5;
}

.ai-summary-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}

.ai-summary-panel h4 {
  margin: 0;
  color: var(--ink);
}

.load-profile-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.compact-head {
  margin: 0;
}

.load-profile-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0;
}

.load-profile-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) 1.2fr;
  gap: 10px;
  align-items: start;
  padding: 8px 0;
  border-bottom: 1px solid #edf3fb;
}

.load-profile-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.load-profile-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 800;
}

.chat-log {
  display: grid;
  max-height: 280px;
  gap: 8px;
  overflow: auto;
}

.chat-message {
  width: fit-content;
  max-width: min(720px, 100%);
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
}

.chat-message.assistant {
  color: #14375f;
  background: #eaf4ff;
}

.chat-message.customer {
  justify-self: end;
  color: #fff;
  background: var(--navy-2);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.fleet-card {
  display: grid;
  gap: 16px;
  min-height: 220px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 26px rgba(7, 25, 54, 0.06);
}

.fleet-card h3 {
  margin-bottom: 6px;
  font-size: 1rem;
}

.fleet-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.fleet-card dl,
.detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.fleet-card dl {
  grid-template-columns: repeat(2, 1fr);
}

.fleet-card div,
.detail-list div {
  min-width: 0;
}

dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 92px;
  z-index: 8;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-color: var(--line);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(7, 25, 54, 0.08);
}

.admin-sidebar-head {
  display: none;
}

.sidebar-brand-icon,
.sidebar-icon {
  display: grid;
  place-items: center;
}

.sidebar-brand-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-brand-icon svg {
  width: 24px;
  height: 24px;
}

.sidebar-icon svg,
.sidebar-brand-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-nav {
  display: flex;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  justify-items: start;
  padding-bottom: 2px;
}

.admin-nav button {
  display: inline-flex;
  position: relative;
  width: auto;
  min-width: max-content;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  color: var(--navy);
  background: #eef6ff;
  font-weight: 800;
  padding: 0 14px;
}

.admin-nav button::before {
  display: none;
}

.admin-nav .sidebar-icon {
  display: none;
}

.admin-nav .sr-only {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border: 0;
}

.admin-nav button:hover,
.admin-nav button.is-active {
  color: #fff;
  background: #007bff;
  box-shadow: 0 10px 22px rgba(0, 123, 255, 0.18);
}

.admin-nav button.is-active::before {
  background: #fff;
}

.admin-main {
  min-width: 0;
}

.admin-panel {
  display: none;
}

.admin-panel.is-active {
  display: grid;
  gap: 18px;
}

.admin-page-head {
  display: flex;
  gap: 18px;
  align-items: end;
  justify-content: space-between;
}

.admin-page-head h1 {
  margin: 0 0 8px;
  color: #0d2f51;
  font-size: 2rem;
  line-height: 1.08;
}

.admin-page-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #6c757d;
  line-height: 1.5;
}

.ops-toolbar {
  display: grid;
  grid-template-columns: 1fr 230px 210px;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
}

.ops-toolbar.compact {
  grid-template-columns: 170px minmax(240px, 1fr) 180px 170px;
  margin-bottom: 0;
  padding: 12px;
  box-shadow: none;
}

.ops-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ops-summary-card {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 112px;
  padding: 18px;
  border-left: 4px solid #007bff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ops-summary-card:hover,
.ops-summary-card:focus-visible {
  border-color: #007bff;
  box-shadow: 0 18px 36px rgba(0, 123, 255, 0.16);
  transform: translateY(-1px);
}

.ops-summary-card span,
.ops-summary-card small {
  color: var(--muted);
  font-weight: 800;
}

.ops-summary-card span {
  font-size: 0.84rem;
  text-transform: uppercase;
}

.ops-summary-card strong {
  color: var(--navy);
  font-size: 2.1rem;
  line-height: 1;
}

.ops-summary-card small {
  line-height: 1.35;
}

.dashboard-drilldown {
  display: grid;
  gap: 14px;
  padding: 18px;
  margin-bottom: 18px;
}

.dashboard-drilldown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-drilldown-head h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1.2rem;
}

.dashboard-drilldown-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.dashboard-drilldown-body {
  overflow-x: auto;
}

.dashboard-drilldown-table {
  min-width: 980px;
}

.dashboard-drilldown-table td small,
.customer-stack small,
.route-stack small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.customer-stack,
.route-stack {
  display: grid;
  gap: 2px;
}

.ops-control-head {
  padding: 18px;
  border: 1px solid #d9e5f6;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 16px 42px rgba(7, 25, 54, 0.08);
}

.ops-control-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  align-items: start;
}

.job-status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
}

.ops-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.ops-today-panel,
.ops-important-panel,
.ops-late-panel,
.ops-payment-panel,
.ops-alert-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.ops-today-panel {
  min-height: 560px;
}

.ops-dashboard-rail {
  display: grid;
  gap: 16px;
}

.ops-payment-panel {
  grid-column: auto;
}

.payment-dashboard-table {
  overflow-x: auto;
}

.ops-live-panel,
.ops-alert-panel,
.ops-quick-panel,
.ops-timeline-panel,
.ops-activity-panel,
.ops-detail-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.ops-live-panel {
  grid-row: span 2;
}

.ops-side-stack {
  display: grid;
  gap: 16px;
}

.panel-head,
.live-pulse {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.panel-head h2 {
  margin: 0;
  color: #0d2f51;
  font-size: 1rem;
}

.panel-head span,
.live-pulse {
  color: #6c757d;
  font-size: 0.82rem;
  font-weight: 900;
}

.live-pulse {
  justify-content: start;
}

.ops-alert-list,
.ops-panel-list,
.ops-timeline,
.ops-activity-feed,
.quick-action-grid {
  display: grid;
  gap: 8px;
}

.ops-alert,
.timeline-row,
.activity-row {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  color: #212529;
  background: #f8f9fa;
  text-align: left;
}

.ops-alert:hover,
.timeline-row:hover,
.activity-row:hover {
  border-color: #007bff;
  background: #eef6ff;
}

.ops-alert strong,
.timeline-row strong,
.activity-row strong {
  color: #0d2f51;
}

.ops-alert span,
.timeline-row small,
.activity-row span,
.activity-row small {
  color: #6c757d;
  line-height: 1.35;
}

.ops-alert.urgent {
  border-left: 4px solid #c73535;
  background: #fff5f5;
}

.ops-alert.problem {
  border-left: 4px solid #b87500;
  background: #fff8e8;
}

.ops-alert.warning,
.ops-alert.payment {
  border-left: 4px solid #007bff;
}

.ops-alert.late {
  border-left: 4px solid #d64545;
  background: #fff4f4;
}

.timeline-row {
  grid-template-columns: 56px minmax(0, 1fr);
}

.timeline-row span {
  grid-row: span 2;
  color: #007bff;
  font-weight: 900;
}

.quick-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-action-grid button {
  width: 100%;
}

.ops-detail-panel {
  grid-column: 1 / -1;
}

.ops-mini-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.ops-mini-card > button:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
  border: 0;
  color: #212529;
  background: transparent;
  text-align: left;
  padding: 0;
}

.ops-mini-card strong {
  color: #0d2f51;
}

.ops-mini-card span,
.ops-mini-card small {
  color: #6c757d;
  line-height: 1.35;
}

.remove-mini-action {
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  color: #0d2f51;
  background: #fff;
  font-size: 0.74rem;
  font-weight: 900;
  padding: 7px 9px;
}

.mini-ops-table,
.payment-dashboard-table-inner {
  width: 100%;
  border-collapse: collapse;
}

.dashboard-payment-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.dashboard-payment-remove {
  min-height: 32px;
  border: 1px solid #cc3030;
  border-radius: 7px;
  padding: 6px 10px;
  color: #a21d1d;
  background: #fff;
  font-size: 0.74rem;
  font-weight: 950;
  white-space: nowrap;
}

.dashboard-payment-remove:hover,
.dashboard-payment-remove:focus-visible {
  color: #fff;
  background: #b52626;
}

.mini-ops-table th,
.mini-ops-table td {
  padding: 9px 7px;
  border-bottom: 1px solid #d9e5f6;
  color: #212529;
  font-size: 0.78rem;
  text-align: left;
}

.mini-ops-table th {
  color: #0d2f51;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.late-minutes {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  border-radius: 999px;
  color: #8b1e1e;
  background: #ffe2e2;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  white-space: nowrap;
}

.job-id-link {
  border: 0;
  color: #006de3;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.job-name-link {
  display: grid;
  gap: 3px;
  width: 100%;
  min-width: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  padding: 0;
}

.job-name-link strong {
  color: #006de3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.job-name-link:hover strong,
.job-id-link:hover {
  color: #0056b3;
}

.important-toggle {
  min-height: 28px;
  border: 1px solid #d9e5f6;
  border-radius: 999px;
  color: #0d2f51;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 10px;
  white-space: nowrap;
}

.important-toggle.is-on {
  border-color: #ffcc66;
  color: #7a4b00;
  background: #fff4cf;
}

.live-jobs-head {
  align-items: center;
  padding: 4px 0 0;
}

.live-view-toggle,
.date-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-view-toggle button,
.date-filter-buttons button {
  min-height: 34px;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font-weight: 900;
  padding: 7px 14px;
}

.live-view-toggle .sample-jobs-button {
  margin-left: 14px;
  border-color: #d9e5f6;
  color: #0d2f51;
  background: #fff;
}

.live-view-toggle .create-live-booking {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.live-view-toggle button.is-active,
.date-filter-buttons button.is-active {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.date-filter-buttons button.is-active {
  border-color: #111827;
  color: #111827;
  background: #fff;
  box-shadow: inset 0 0 0 1px #111827;
}

.live-filter-panel {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.live-sample-message {
  min-height: 18px;
  color: #0d2f51;
  font-size: 0.82rem;
  font-weight: 900;
}

.live-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.live-filter-row label span,
.live-custom-range label span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.live-filter-row select,
.live-filter-row input,
.live-custom-range input {
  min-height: 34px;
  border-radius: 4px;
  font-size: 0.78rem;
}

.live-filter-row [data-live-job-filter],
.live-filter-row [data-live-payment-filter],
.live-filter-row [data-live-invoice-filter] {
  border-color: #d9e5f6;
  color: #0d2f51;
  background-color: #fff;
  box-shadow: none;
  font-weight: 900;
}

.live-filter-row label:not(.live-search-field) {
  width: 150px;
}

.live-search-field {
  margin-left: auto;
  width: min(100%, 250px);
}

.live-filter-button {
  min-height: 34px;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font-weight: 900;
  padding: 7px 14px;
}

.live-custom-range {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.live-custom-range[hidden] {
  display: none;
}

.live-jobs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.live-jobs-board,
.live-job-detail,
.live-learning-board {
  display: grid;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
}

.live-jobs-board .calendar-board {
  grid-template-columns: 1fr;
  overflow-x: auto;
  overscroll-behavior: contain;
}

.live-job-detail {
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 112px);
  overflow: auto;
  overscroll-behavior: contain;
}

.live-job-detail[hidden] {
  display: none;
}

.live-jobs-table {
  min-width: 1760px;
}

.booking-creator-cell {
  display: grid;
  gap: 2px;
  min-width: 130px;
}

.booking-creator-cell strong {
  color: #0d2f51;
  font-size: 0.82rem;
}

.booking-creator-cell small {
  color: #66768a;
  font-size: 0.7rem;
  font-weight: 800;
}

.modern-datatable {
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  background: #fff;
}

.modern-datatable .admin-table {
  border-collapse: separate;
  border-spacing: 0;
}

.modern-datatable .admin-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  border-bottom: 1px solid #cfdceb;
  color: #0d2f51;
  background: #f8fbff;
  font-size: 0.72rem;
  white-space: nowrap;
}

.modern-datatable .admin-table th[draggable="true"] {
  cursor: grab;
  user-select: none;
}

.modern-datatable .admin-table th.is-dragging {
  opacity: 0.55;
}

.modern-datatable .admin-table th.is-drop-target {
  outline: 2px solid #007bff;
  outline-offset: -2px;
  background: #eef6ff;
}

.column-drag-handle {
  display: inline-block;
  margin-left: 8px;
  color: #6c757d;
  font-size: 0.68rem;
  letter-spacing: 1px;
}

.modern-datatable .admin-table td {
  padding: 9px 12px;
  border-right: 1px solid #eef2f7;
  color: #1d2b3a;
  font-size: 0.78rem;
  vertical-align: middle;
  white-space: nowrap;
}

.modern-datatable .admin-table tr:nth-child(even) td {
  background: #fcfdff;
}

.modern-datatable .admin-table tr:hover td,
.modern-datatable .admin-table tr.is-selected td {
  background: #eef6ff;
}

.live-jobs-table tr.is-eta-soon td,
.live-timeline-item.is-eta-soon {
  background: #fff7df !important;
}

.live-jobs-table tr.is-eta-passed td,
.live-timeline-item.is-eta-passed {
  background: #fff0f0 !important;
}

.live-jobs-table tr.is-job-late td {
  color: #8b1e1e;
  background: #ffe1e1 !important;
  border-top-color: #ef9a9a;
  border-bottom-color: #ef9a9a;
}

.live-jobs-table tr.is-job-late td:first-child {
  box-shadow: inset 5px 0 0 #c73535;
}

.live-jobs-table tr.is-job-late .job-id-link,
.live-jobs-table tr.is-job-late .price-cell,
.live-jobs-table tr.is-job-late .driver-cell {
  color: #8b1e1e;
}

.cx-page-head {
  align-items: center;
  margin-bottom: 14px;
}

.cx-page-head-compact {
  min-height: 0;
  margin-bottom: 8px;
}

.cx-page-head-compact h1 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1;
}

.cx-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.cx-bid-back-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-color: #0f7aff;
  color: #0751b8;
  background: #fff;
}

.cx-bid-back-button svg {
  width: 16px;
  height: 16px;
}

.cx-summary-grid {
  margin-bottom: 14px;
}

.cx-filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
  padding: 14px;
}

.cx-filter-panel label {
  display: grid;
  gap: 6px;
}

.cx-filter-panel span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.cx-filter-panel input,
.cx-filter-panel select {
  width: 100%;
}

.cx-message {
  margin: 0 0 14px;
}

.cx-page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 14px;
  align-items: start;
}

.cx-bid-review-page {
  display: grid;
  gap: 14px;
}

.cx-job-panel,
.cx-bid-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 6px;
}

.cx-job-panel-full {
  width: 100%;
  min-height: calc(100vh - 190px);
}

.cx-job-panel-table-only {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.cx-job-panel-table-only .cx-job-table-wrap {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.cx-posted-job-detail {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border-radius: 6px;
}

.cx-posted-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cx-posted-detail-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 240px) auto;
  gap: 12px;
  align-items: stretch;
}

.cx-posted-title,
.cx-customer-price-card {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 14px 16px;
  border-radius: 6px;
}

.cx-posted-title {
  color: #fff;
  background: linear-gradient(135deg, #062878, #0f7aff);
}

.cx-posted-title span,
.cx-customer-price-card span,
.cx-detail-card span {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cx-posted-title h2,
.cx-posted-title p,
.cx-customer-price-card strong {
  margin: 0;
}

.cx-posted-title h2 {
  font-size: 1.35rem;
  line-height: 1.1;
}

.cx-posted-title p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.82rem;
  font-weight: 800;
}

.cx-posted-title small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
}

.cx-customer-price-card {
  color: #fff;
  background: linear-gradient(135deg, #0f8a5f, #16a376);
  box-shadow: 0 14px 28px rgba(15, 138, 95, 0.18);
}

.cx-customer-price-card strong {
  font-size: 1.7rem;
  line-height: 1.05;
}

.cx-customer-price-card small {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
}

.cx-posted-detail-header > button,
.cx-posted-detail-actions {
  align-self: center;
}

.cx-posted-detail-actions {
  display: grid;
  gap: 8px;
}

.cx-posted-detail-cards {
  display: grid;
  grid-template-columns: minmax(170px, 0.8fr) minmax(240px, 1.2fr) minmax(240px, 1.2fr);
  gap: 10px;
}

.cx-detail-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #d9e5f6;
  border-top: 4px solid #0f7aff;
  border-radius: 6px;
  background: #fff;
}

.cx-detail-card-blue {
  border-top-color: #0f7aff;
}

.cx-detail-card-green {
  border-top-color: #0f8a5f;
}

.cx-detail-card-amber {
  border-top-color: #b87500;
}

.cx-detail-card-notes {
  grid-column: 1 / -1;
  border-top-color: #6c5ce7;
  background: #fbfcff;
}

.cx-detail-card span {
  color: var(--muted);
}

.cx-detail-card strong {
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cx-detail-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cx-collection-timing {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  padding: 9px 10px;
  border: 1px solid #bde9d8;
  border-radius: 6px;
  background: #eefbf6;
}

.cx-collection-timing span {
  color: #477363;
  font-size: 0.68rem;
}

.cx-collection-timing strong {
  color: #075d40;
  font-size: 0.86rem;
}

.cx-collection-timing small {
  color: #477363;
}

.cx-collection-timing small.is-soon,
.cx-collection-timing small.is-open {
  color: #9a5b00;
}

.cx-collection-timing small.is-overdue {
  color: #b42318;
}

.cx-collection-timing small.is-complete {
  color: #08724d;
}

.cx-manual-notes-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.4;
}

.cx-no-manual-notes {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.cx-bid-panel-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cx-bid-delivery-price {
  display: grid;
  min-width: 132px;
  padding: 8px 12px;
  border: 1px solid #bde9d8;
  border-radius: 6px;
  background: #eefbf6;
}

.cx-bid-delivery-price small {
  color: #477363;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cx-bid-delivery-price strong {
  color: #08724d;
  font-size: 1.12rem;
}

.cx-bid-job-detail {
  margin-bottom: 0;
}

.cx-detail-wide {
  grid-column: span 2;
}

.cx-detail-full {
  grid-column: 1 / -1;
}

.cx-posted-detail-grid div,
.cx-bid-compact-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cx-posted-detail-grid span,
.cx-bid-compact-row span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cx-posted-detail-grid strong,
.cx-bid-compact-row strong {
  color: var(--navy);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.cx-posted-detail-grid small,
.cx-bid-compact-row small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cx-job-table {
  min-width: 1380px;
}

.cx-bid-table {
  min-width: 1260px;
}

.cx-bid-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.cx-bid-table-wrap {
  width: 100%;
}

.cx-bid-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 190px;
}

.cx-bid-action-buttons button {
  min-height: 30px;
}

.cx-agreed-rate-field {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.cx-agreed-rate-field > span:first-child {
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 900;
}

.cx-agreed-rate-input {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #a9c8ff;
  border-radius: 9px;
  background: #fff;
}

.cx-agreed-rate-input b {
  padding-left: 10px;
  color: var(--navy);
}

.cx-agreed-rate-input input {
  width: 112px;
  min-height: 38px;
  border: 0;
  outline: 0;
  padding: 7px 9px 7px 4px;
  color: var(--navy);
  font: inherit;
  font-weight: 900;
}

.cx-agreed-rate-input:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(18, 104, 255, 0.14);
}

.cx-bid-table tr.is-dismissed {
  opacity: 0.58;
}

.cx-bid-table tr.is-dismissed td {
  background: #f8fafc;
}

.cx-job-table td small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.cx-job-table td.cx-post-result {
  min-width: 300px;
  max-width: 420px;
  white-space: normal;
}

.cx-post-failure {
  display: grid;
  gap: 4px;
  align-items: start;
}

.cx-post-failure strong {
  color: #b42318;
}

.cx-post-failure span {
  color: #7a271a;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.cx-post-failure .job-id-link {
  justify-self: start;
}

.cx-post-success {
  color: #067647;
  font-weight: 800;
}

.cx-selected-job,
.cx-selected-driver {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  background: #f8fbff;
}

.cx-selected-job h3,
.cx-selected-job p,
.cx-selected-driver strong,
.cx-selected-driver span {
  margin: 0;
}

.cx-selected-job h3 {
  color: var(--navy);
  font-size: 0.94rem;
}

.cx-selected-job p,
.cx-selected-driver span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.cx-selected-driver {
  display: grid;
  justify-content: stretch;
  border-color: #b8dcff;
  background: #eef7ff;
}

.cx-bid-review-list {
  padding: 8px;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  background: #fff;
}

.cx-bid-grid {
  display: grid;
  gap: 6px;
  max-height: 390px;
  overflow-y: auto;
  padding-right: 2px;
}

.cx-bid-card {
  display: grid;
  gap: 6px;
  padding: 8px 10px;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  background: #fff;
}

.cx-bid-card.is-selected {
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.12);
}

.cx-supplier-insight {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) auto minmax(0, 1.5fr);
  gap: 8px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  background: #f8fbff;
}

.cx-supplier-insight strong {
  color: var(--navy);
  font-size: 0.78rem;
}

.cx-supplier-insight span {
  color: #007bff;
  font-size: 0.78rem;
  font-weight: 900;
}

.cx-supplier-insight small {
  min-width: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cx-bid-head {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.cx-bid-head h3,
.cx-bid-head p {
  margin: 0;
}

.cx-bid-head h3 {
  color: var(--navy);
  font-size: 1.02rem;
}

.cx-bid-head p {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.cx-bid-head strong {
  color: #0d2f51;
  font-size: 1.1rem;
  white-space: nowrap;
}

.cx-bid-compact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  gap: 8px;
  align-items: center;
}

.cx-bid-compact-row div {
  min-height: 66px;
  padding: 9px 10px;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  background: #f8fbff;
}

.cx-bid-compact-row div:first-child {
  grid-column: span 2;
}

.cx-phone-link {
  color: #007bff;
  font-weight: 900;
  text-decoration: none;
}

.cx-phone-link:hover {
  text-decoration: underline;
}

.cx-bid-price {
  display: grid;
  gap: 3px;
  justify-items: end;
}

.cx-bid-price span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cx-margin-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  background: #f8fbff;
}

.cx-margin-strip div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cx-margin-strip span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cx-margin-strip strong {
  color: var(--navy);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.cx-margin-strip .profit-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
}

.cx-bid-more {
  border-top: 1px solid #eef2f7;
  padding-top: 6px;
}

.cx-bid-more summary {
  color: #0d2f51;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.cx-bid-more[open] {
  display: grid;
  gap: 10px;
}

.cx-bid-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.cx-bid-details div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cx-bid-details dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cx-bid-details dd {
  min-width: 0;
  margin: 0;
  color: #1d2b3a;
  font-size: 0.84rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cx-bid-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.cx-bid-actions,
.cx-bid-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.cx-bid-footer {
  justify-content: space-between;
  padding-top: 2px;
}

.cx-bid-footer p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 240px;
}

.row-actions button,
.row-actions a {
  min-height: 26px;
  border: 1px solid #d9e5f6;
  border-radius: 7px;
  color: #0d2f51;
  background: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: none;
  padding: 4px 7px;
}

.icon-actions {
  min-width: 260px;
  flex-wrap: nowrap;
}

.icon-actions button,
.icon-actions a {
  display: inline-grid;
  width: 28px;
  height: 28px;
  min-height: 28px;
  place-items: center;
  padding: 0;
  border: 0;
  color: #34445a;
  background: transparent;
}

.icon-actions button:hover,
.icon-actions a:hover {
  color: #007bff;
  background: #eef6ff;
}

.action-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.table-time {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #111827;
  font-weight: 900;
}

.table-time::before {
  width: 10px;
  height: 10px;
  border: 2px solid #1f2937;
  border-radius: 50%;
  content: "";
}

.table-time.is-eta-soon::before {
  border-color: #f0a400;
}

.table-time.is-eta-passed::before {
  border-color: #e03131;
}

.vehicle-cell,
.driver-cell {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.driver-cx-link {
  color: inherit;
  text-decoration: none;
}

.driver-cx-link:hover span:not(.driver-avatar) {
  color: #006de3;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.driver-cx-link small,
.live-status-stack small {
  display: block;
  color: #6c757d;
  font-size: 0.7rem;
  font-weight: 800;
}

.live-status-stack {
  display: grid;
  gap: 4px;
}

.vehicle-icon {
  position: relative;
  width: 20px;
  height: 13px;
  border-radius: 2px;
  background: #0d2f51;
}

.vehicle-icon::before,
.vehicle-icon::after {
  position: absolute;
  bottom: -4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #24364d;
  content: "";
}

.vehicle-icon::before {
  left: 3px;
}

.vehicle-icon::after {
  right: 3px;
}

.driver-avatar {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #0d2f51;
  font-size: 0.62rem;
  font-weight: 900;
}

.cx-icon-button {
  min-width: 34px;
  border: 1px solid #d9e5f6 !important;
  color: #0d2f51 !important;
  background: #fff !important;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0;
}

.cx-icon-button:hover {
  border-color: #007bff !important;
  color: #007bff !important;
  background: #eef6ff !important;
}

.danger-icon-button {
  color: #8b1e1e !important;
}

.danger-icon-button:hover {
  color: #c73535 !important;
  background: #fff0f0 !important;
}

.danger-icon-button:disabled {
  color: #aab3bd !important;
  background: transparent !important;
  cursor: not-allowed;
  opacity: 0.55;
}

.row-actions .cx-cancel-job-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  min-height: 32px;
  place-items: center;
  padding: 0;
  border: 1px solid #dc3545;
  border-radius: 7px;
  color: #c62828;
  background: #fff;
}

.row-actions .cx-cancel-job-icon:hover {
  border-color: #b42318;
  color: #b42318;
  background: #fff5f5;
}

.job-date-cell {
  color: #111827;
  font-weight: 900;
}

.star-toggle {
  border: 0;
  color: #8b98a8;
  background: transparent;
  font-size: 1.05rem;
  line-height: 1;
}

.star-toggle.is-on {
  color: #f2a900;
}

.datatable-footer {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid #d9e5f6;
  color: #516071;
  font-size: 0.78rem;
}

.datatable-pages {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.datatable-pages button,
.datatable-footer select {
  min-height: 30px;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font-weight: 800;
  padding: 4px 10px;
}

.datatable-pages button.is-active {
  color: #fff;
  background: #007bff;
  border-color: #007bff;
}

.profit-pill,
.invoice-pill {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 8px;
  white-space: nowrap;
}

.profit-pill.green {
  color: #0f5f43;
  background: #dcf8ec;
}

.profit-pill.blue {
  color: #064a86;
  background: #dff0ff;
}

.profit-pill.amber {
  color: #7a4b00;
  background: #fff0c2;
}

.profit-pill.red {
  color: #8b1e1e;
  background: #ffe2e2;
}

.invoice-pill {
  color: #0d3f78;
  background: #e5f2ff;
}

.invoice-pill.paid {
  color: #0f5f43;
  background: #dcf8ec;
}

.invoice-pill.overdue,
.invoice-pill.failed {
  color: #8b1e1e;
  background: #ffe2e2;
}

.invoice-pill.not-sent {
  color: #5e6670;
  background: #eef2f7;
}

.live-jobs-table .status-pill.awaiting-payment,
.live-timeline-board .status-pill.awaiting-payment,
.live-job-detail .status-pill.awaiting-payment {
  color: #5e6670;
  background: #eef2f7;
}

.live-jobs-table .status-pill.booked,
.live-timeline-board .status-pill.booked,
.live-job-detail .status-pill.booked {
  color: #064a86;
  background: #dff0ff;
}

.live-jobs-table .status-pill.allocated,
.live-jobs-table .status-pill.driver-allocated,
.live-timeline-board .status-pill.allocated,
.live-timeline-board .status-pill.driver-allocated,
.live-job-detail .status-pill.allocated,
.live-job-detail .status-pill.driver-allocated {
  color: #8a4a00;
  background: #ffe7bd;
}

.live-jobs-table .status-pill.driver-en-route,
.live-timeline-board .status-pill.driver-en-route,
.live-job-detail .status-pill.driver-en-route {
  color: #6c5600;
  background: #fff5bd;
}

.live-jobs-table .status-pill.collected,
.live-timeline-board .status-pill.collected,
.live-job-detail .status-pill.collected {
  color: #4e2b89;
  background: #eee6ff;
}

.live-jobs-table .status-pill.in-transit,
.live-timeline-board .status-pill.in-transit,
.live-job-detail .status-pill.in-transit {
  color: #005a6f;
  background: #d8f8ff;
}

.live-jobs-table .status-pill.delivered,
.live-timeline-board .status-pill.delivered,
.live-job-detail .status-pill.delivered {
  color: #0f5f43;
  background: #dcf8ec;
}

.live-jobs-table .status-pill.completed,
.live-timeline-board .status-pill.completed,
.live-job-detail .status-pill.completed {
  color: #fff;
  background: #0f5f43;
}

.live-jobs-table .status-pill.issue,
.live-timeline-board .status-pill.issue,
.live-job-detail .status-pill.issue {
  color: #8b1e1e;
  background: #ffe2e2;
}

.live-jobs-table .status-pill.late,
.live-timeline-board .status-pill.late,
.live-job-detail .status-pill.late {
  color: #fff;
  background: #c73535;
  animation: latePulse 1.4s ease-in-out infinite;
}

.live-jobs-table .status-pill.cancelled,
.live-timeline-board .status-pill.cancelled,
.live-job-detail .status-pill.cancelled {
  color: #fff;
  background: #343a40;
}

@keyframes latePulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(199, 53, 53, 0);
  }

  50% {
    box-shadow: 0 0 0 4px rgba(199, 53, 53, 0.18);
  }
}

.live-timeline-board,
.live-calendar-board {
  display: grid;
  gap: 10px;
}

.live-timeline-item,
.live-calendar-day button {
  display: grid;
  gap: 5px;
  width: 100%;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  color: #212529;
  background: #fff;
  text-align: left;
  padding: 12px;
}

.live-timeline-item {
  grid-template-columns: 70px minmax(0, 1fr) auto auto;
  align-items: center;
}

.live-timeline-item span {
  color: #111827;
  font-weight: 900;
}

.live-timeline-item small,
.live-calendar-day small,
.live-calendar-day span {
  color: #6c757d;
}

.live-calendar-board {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.live-calendar-day {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 10px;
  background: #f8fbff;
}

.live-calendar-day h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  color: #0d2f51;
  font-size: 0.96rem;
}

.live-calendar-day h3 span {
  color: #6c757d;
  font-size: 0.76rem;
}

.tracking-module,
.tracking-section {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.tracking-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid #d9e5f6;
  border-radius: 10px;
  background: #fff;
}

.tracking-subnav button {
  min-height: 34px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  color: #0d2f51;
  background: #f8fbff;
  font-weight: 900;
  padding: 7px 11px;
}

.tracking-subnav button.is-active {
  color: #fff;
  border-color: #007bff;
  background: #007bff;
}

.tracking-message {
  margin: 0;
}

.tracking-filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 10px;
  background: #fff;
}

.tracking-filter-bar label,
.tracking-form-card label,
.tracking-setting-card {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.tracking-filter-bar span,
.tracking-form-card span {
  color: #0d2f51;
  font-size: 0.76rem;
  font-weight: 900;
}

.tracking-filter-bar input,
.tracking-filter-bar select,
.tracking-form-card input,
.tracking-setting-card input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  padding: 9px 10px;
  color: #212529;
  background: #fff;
  font-weight: 800;
}

.tracking-map-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.tracking-map {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #d5e3f5;
  border-radius: 10px;
  background:
    linear-gradient(rgba(13, 47, 81, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 47, 81, 0.06) 1px, transparent 1px),
    #f8fbff;
  background-size: 32px 32px;
}

.tracking-map-zone {
  color: #0d2f51;
  font-weight: 900;
}

.tracking-map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #0f8a5f;
  font-size: 0.74rem;
  font-weight: 950;
  box-shadow: 0 10px 18px rgba(13, 47, 81, 0.22);
}

.tracking-map-pin.amber {
  background: #f0a400;
}

.tracking-map-pin.red {
  background: #c73535;
}

.tracking-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tracking-legend span,
.tracking-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #0d2f51;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.tracking-light,
.tracking-status i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #0f8a5f;
}

.tracking-light.amber,
.tracking-status.amber i {
  background: #f0a400;
}

.tracking-light.red,
.tracking-status.red i {
  background: #c73535;
}

.tracking-status.green {
  color: #0f5f43;
}

.tracking-status.amber {
  color: #7a4b00;
}

.tracking-status.red {
  color: #8b1e1e;
}

.tracking-table-card {
  display: grid;
  gap: 10px;
  overflow-x: auto;
  padding: 14px;
}

.tracking-table-card .panel-head {
  padding: 0 0 2px;
}

.tracking-table-card .panel-head h2 {
  font-size: 1.08rem;
  line-height: 1.15;
}

.tracking-table,
.tracking-links-table {
  min-width: 1180px;
}

.tracking-table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #fff;
}

.tracking-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 12px;
  border-bottom: 1px solid #bdd2ea;
  color: #0d2f51;
  background: #f8fbff;
  font-size: 0.72rem;
  letter-spacing: 0;
  white-space: nowrap;
}

.tracking-table td {
  padding: 9px 12px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #e3ebf6;
  background: #fff;
  font-size: 0.78rem;
  vertical-align: middle;
}

.tracking-table tr.tracking-row-collected > td {
  background: #ecfbf4;
  border-bottom-color: #a9e4c8;
}

.tracking-table tr.tracking-row-running-late > td {
  background: #fff8df;
  border-bottom-color: #f0cf72;
}

.tracking-table tr.tracking-row-late > td {
  background: #fff0f0;
  border-bottom-color: #efaaaa;
}

.tracking-table tr.tracking-row-complete > td {
  background: #eef5ff;
  border-bottom-color: #abc9ef;
}

.tracking-operation-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9cce2;
  border-radius: 999px;
  padding: 5px 9px;
  color: #0d2f51;
  background: #f4f8fc;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.tracking-operation-badge.collected {
  border-color: #72caa1;
  color: #0b6948;
  background: #dcf7eb;
}

.tracking-operation-badge.running-late {
  border-color: #e4b934;
  color: #714500;
  background: #ffefb7;
}

.tracking-operation-badge.late {
  border-color: #dc7777;
  color: #921d1d;
  background: #ffdada;
}

.tracking-operation-badge.complete {
  border-color: #669bd8;
  color: #0d477f;
  background: #dcecff;
}

.tracking-remove-button {
  min-height: 30px;
  border: 1px solid #cc3030;
  border-radius: 7px;
  padding: 5px 9px;
  color: #a21d1d;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 950;
  white-space: nowrap;
}

.tracking-remove-button:hover,
.tracking-remove-button:focus-visible {
  color: #fff;
  background: #b52626;
}

.tracking-table tr:last-child td {
  border-bottom: 0;
}

.tracking-table tr.cx-stop-progress-row > td {
  padding: 0;
  border-right: 0;
  background: #f5f9fe;
}

.cx-stop-progress {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 9px;
  padding: 10px 12px 12px;
}

.cx-stop-progress-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid #cbdcf0;
  border-radius: 9px;
  padding: 10px;
  color: #10233e;
  background: #fff;
  box-shadow: 0 5px 14px rgba(16, 50, 86, 0.06);
}

.cx-stop-progress-head {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.cx-stop-progress-head strong,
.cx-stop-progress-head small {
  display: block;
}

.cx-stop-progress-head small {
  overflow: hidden;
  margin-top: 2px;
  color: #5f6f84;
  font-size: 0.68rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cx-stop-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1478ef;
  font-size: 0.72rem;
  font-weight: 950;
}

.cx-stop-progress-card > p {
  margin: 0;
  color: #4c5e74;
  font-size: 0.7rem;
  line-height: 1.35;
}

.cx-stop-meta,
.cx-stop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cx-stop-document-actions {
  display: inline-flex;
  overflow: hidden;
  align-items: stretch;
  border: 1px solid #b9cee8;
  border-radius: 7px;
  background: #fff;
}

.cx-stop-document-actions a,
.cx-stop-document-actions button {
  border: 0;
  border-radius: 0;
}

.cx-stop-document-actions > * + * {
  border-left: 1px solid #b9cee8;
}

.cx-stop-meta span {
  color: #63748a;
  font-size: 0.66rem;
  font-weight: 800;
}

.cx-booking-document-archive {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #c9dbef;
  border-radius: 12px;
  background: #f5f9fe;
}

.cx-booking-document-archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cx-booking-document-archive-head > div {
  display: grid;
  gap: 3px;
}

.cx-booking-document-archive-head strong {
  color: #10233e;
}

.cx-booking-document-archive-head span,
.cx-booking-document-card > small {
  color: #63748a;
  font-size: 0.74rem;
  font-weight: 800;
}

.cx-booking-document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
}

.cx-booking-document-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #cbdcf0;
  border-radius: 10px;
  background: #ffffff;
}

.cx-booking-document-card > p {
  margin: 0;
  color: #4c5e74;
  font-size: 0.76rem;
}

.cx-stop-actions a,
.cx-stop-actions button {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 0.67rem;
  text-decoration: none;
}

.tracking-table .job-id-link {
  margin-bottom: 4px;
}

.tracking-table td small,
.tracking-links-table td small {
  display: block;
  margin-top: 3px;
  color: #6c757d;
  font-size: 0.7rem;
  font-weight: 800;
}

.tracking-card-grid,
.tracking-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.tracking-driver-card,
.tracking-info-card,
.tracking-form-card,
.tracking-template-card,
.tracking-setting-card {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.tracking-driver-card p,
.tracking-info-card p,
.tracking-template-card p,
.tracking-setting-card p {
  margin: 0;
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 780;
  line-height: 1.45;
}

.tracking-two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.tracking-card-list {
  display: grid;
  gap: 8px;
}

.tracking-card-list article {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.tracking-card-list span,
.tracking-card-list small {
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 800;
}

.tracking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tracking-links-table code,
.tracking-table-card code {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  color: #0d2f51;
  text-overflow: ellipsis;
  vertical-align: bottom;
  white-space: nowrap;
}

.customer-tracking-preview {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.customer-tracking-brand,
.customer-tracking-head {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.customer-tracking-brand strong,
.customer-tracking-head h2,
.tracking-info-card h2,
.tracking-template-card h2,
.tracking-setting-card h2 {
  margin: 0;
  color: #0d2f51;
}

.customer-tracking-brand span,
.customer-tracking-head p {
  margin: 0;
  color: #6c757d;
  font-weight: 800;
}

.customer-map {
  min-height: 300px;
}

.tracking-progress-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tracking-progress-timeline li {
  padding: 10px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  color: #6c757d;
  background: #fff;
  font-weight: 850;
}

.tracking-progress-timeline li.is-complete {
  color: #0f5f43;
  border-color: #bdebd3;
  background: #edfff5;
}

.live-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.live-detail-head h2 {
  margin: 4px 0;
  color: #0d2f51;
  font-size: 1.18rem;
}

.live-detail-head p {
  margin: 0;
  color: #6c757d;
  font-weight: 800;
}

.live-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.live-detail-section {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #d9e5f6;
}

.live-detail-section h3 {
  margin: 0;
  color: #0d2f51;
  font-size: 0.9rem;
}

.job-page-shell {
  display: grid;
  gap: 14px;
}

.job-page-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

.job-page-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  max-width: 420px;
}

.job-page-head h1 {
  margin: 0 0 4px;
  color: #0d2f51;
  font-size: 1.8rem;
}

.job-page-head p:not(.eyebrow) {
  margin: 0;
  color: #6c757d;
  font-weight: 800;
}

.job-page-head .job-created-by {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin-top: 7px;
  color: #344a63;
  font-size: 0.78rem;
}

.job-page-head .job-created-by span {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  color: #0d2f51;
  background: #e9f2ff;
}

.staff-booking-creator-field small {
  color: #66768a;
  font-size: 0.72rem;
  font-weight: 700;
}

.job-page-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.job-page-head .ghost-button,
.job-page-head .secondary-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}

.job-edit-form {
  display: grid;
  gap: 14px;
}

.job-edit-form label {
  min-width: 0;
}

.job-edit-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.job-edit-form select {
  min-height: 54px;
  height: 54px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #cfe0f6;
  border-radius: 10px;
  color: var(--ink);
  background-color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.job-edit-form textarea {
  min-height: 120px;
  box-sizing: border-box;
  border: 1px solid #cfe0f6;
  border-radius: 10px;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.job-edit-form .field-grid {
  align-items: end;
}

.live-additional-charge-grid {
  align-items: stretch !important;
}

.job-charges-panel {
  color: #fff;
  border: 0;
  background: linear-gradient(90deg, #051853 0%, #062878 48%, #063fa4 100%);
  box-shadow: 0 18px 38px rgba(6, 39, 119, 0.22);
}

.job-charges-panel .job-record-panel-head h2,
.job-charges-panel .job-charges-reference {
  color: #fff;
}

.job-charges-panel .panel-drag-handle {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.12);
}

.live-job-charge-grid {
  align-items: stretch !important;
}

.live-job-charge-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 12px;
  color: #0d2f51;
  background: #fff;
  box-shadow: 0 10px 24px rgba(2, 19, 65, 0.18);
}

.job-edit-form .live-job-charge-card > span {
  color: #0d2f51;
  font-weight: 900;
}

.job-edit-form .live-job-charge-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) {
  color: #071a44;
  border-color: #c7dcf4;
  background: #f7fbff;
  opacity: 1;
}

.live-additional-charge-summary {
  padding-top: 4px;
}

.live-additional-charge-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #bdd7f2;
  border-radius: 10px;
  background: #f8fbff;
}

.live-extra-charge-heading,
.live-charge-send-box,
.live-goods-images-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.live-extra-charge-heading > div,
.live-goods-images-head > div:first-child {
  display: grid;
  gap: 3px;
}

.live-extra-charge-heading span,
.live-goods-images-head span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.live-xero-badge {
  padding: 7px 11px;
  border-radius: 999px;
  color: #075b70 !important;
  background: #dff8ff;
  font-size: 0.78rem !important;
  font-weight: 900 !important;
}

.live-charge-send-box {
  padding: 12px 14px;
  border: 1px solid #bdd7f2;
  border-radius: 10px;
  background: #eef7ff;
}

.live-xero-choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
}

.live-xero-choice input {
  width: 18px;
  height: 18px;
  accent-color: #13b5d1;
}

.live-xero-choice span {
  display: grid;
  gap: 2px;
}

.live-charge-send-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.live-goods-images-box {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #bdd7f2;
  border-radius: 10px;
  background: #f8fbff;
}

.live-goods-images-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.live-goods-image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.live-goods-image-gallery.is-empty {
  grid-template-columns: 1fr;
}

.live-goods-image-card,
.live-goods-image-empty {
  overflow: hidden;
  margin: 0;
  border: 1px solid #d6e5f6;
  border-radius: 10px;
  background: #fff;
}

.live-goods-image-card img {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #fff;
}

.live-goods-image-card figcaption,
.legacy-image-name,
.live-goods-image-empty {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.live-goods-image-card figcaption span,
.legacy-image-name span {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.live-goods-image-card figcaption button {
  justify-self: start;
  padding: 0;
  border: 0;
  color: #b42318;
  background: transparent;
  font-weight: 850;
}

.live-goods-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.live-goods-image-actions a {
  color: #075ef2;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: underline;
}

.live-goods-image-empty {
  min-height: 90px;
  place-content: center;
  text-align: center;
}

.live-address-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.live-address-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.live-address-card h3 {
  margin: 0;
  color: #0d2f51;
  font-size: 0.92rem;
}

.job-edit-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.job-edit-panel.is-dragging {
  opacity: 0.6;
}

.job-edit-panel.is-drop-target {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.job-record-panel-head {
  gap: 12px;
}

.job-record-panel-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.panel-drag-handle {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px dashed #aac2df;
  border-radius: 6px;
  color: #4f6684;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: grab;
  user-select: none;
}

.job-record-asap-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.job-record-asap-row > span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.live-extra-stops-editor {
  grid-column: 1 / -1;
  overflow: hidden;
  border: 1px solid #bdd7f2;
  border-radius: 10px;
  background: #f8fbff;
}

.live-extra-stops-editor > summary {
  padding: 13px 14px;
  color: #0d2f51;
  background: #edf6ff;
  font-weight: 900;
  cursor: pointer;
}

.live-extra-stops-editor > p,
.live-extra-stop-toolbar,
.live-extra-stop-list {
  margin: 12px 14px;
}

.live-extra-stop-toolbar,
.live-extra-stop-actions,
.live-extra-stop-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.live-extra-stop-list {
  display: grid;
  gap: 12px;
}

.live-extra-stop-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d4e2f2;
  border-radius: 8px;
  background: #fff;
}

.live-extra-stop-card.is-asap {
  border-color: #7db7ee;
}

.live-extra-stop-head {
  justify-content: space-between;
}

.live-extra-stop-head > div:first-child {
  display: grid;
  gap: 2px;
}

.live-extra-stop-head small,
.live-extra-stops-editor > p {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.live-extra-stop-empty[hidden] {
  display: none;
}

.job-record-asap-row [data-live-delivery-asap].is-on,
.staff-booking-form [data-staff-delivery-asap].is-on {
  border-color: #007bff;
  color: #fff;
  background: #007bff;
  box-shadow: 0 8px 18px rgba(0, 123, 255, 0.18);
}

.cx-live-allocation-panel {
  border-color: #b8dcff;
  background: #f8fbff;
}

.cx-live-allocation-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.cx-live-allocation-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  background: #fff;
}

.cx-live-allocation-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cx-live-allocation-grid dd {
  min-width: 0;
  margin: 0;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.cx-live-allocation-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.45;
}

.cx-direct-book-box {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 2px solid #b8dcff;
  border-radius: 12px;
  background: #eef7ff;
}

.cx-direct-book-heading,
.cx-direct-book-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
}

.cx-direct-book-heading > div {
  display: grid;
  gap: 4px;
}

.cx-direct-book-heading strong {
  color: var(--navy);
  font-size: 1rem;
}

.cx-direct-book-heading span:not(.status-pill),
.cx-direct-book-actions small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 750;
}

.cx-direct-book-actions small {
  flex: 1 1 360px;
  line-height: 1.4;
}

.cx-company-lookup-field {
  position: relative;
}

.cx-company-lookup-field > label {
  display: grid;
  gap: 7px;
}

.cx-company-lookup-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  display: grid;
  max-height: 300px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #a8c9ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(12, 42, 94, 0.18);
}

.cx-company-lookup-results[hidden] {
  display: none;
}

.cx-company-lookup-results button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 7px;
  color: var(--navy);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.cx-company-lookup-results button:hover,
.cx-company-lookup-results button:focus-visible {
  background: #eaf4ff;
  outline: none;
}

.cx-company-lookup-results button span,
.cx-company-lookup-results p,
[data-cx-company-lookup-status] {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.cx-company-lookup-results p {
  padding: 10px 12px;
}

.cx-live-post-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cx-post-warning {
  display: grid;
  flex: 1 0 100%;
  gap: 7px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #e3b341;
  border-left: 6px solid #d28a00;
  border-radius: 10px;
  color: #563800;
  background: #fff4c9;
  box-shadow: 0 8px 20px rgba(136, 91, 0, 0.1);
}

.cx-live-allocation-panel .cx-post-warning strong,
.cx-live-allocation-panel .cx-post-warning p,
.cx-live-allocation-panel .cx-post-warning small,
.cx-live-allocation-panel .cx-post-warning summary {
  margin: 0;
  color: #563800;
}

.cx-post-warning strong {
  font-size: 0.95rem;
}

.cx-post-warning summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
}

.cx-post-warning details p {
  padding-top: 6px;
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}

.job-edit-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -12px 28px rgba(13, 47, 81, 0.08);
}

.job-edit-actions .secondary-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.recurring-job-intro,
.recurring-job-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #cfe0f5;
  border-radius: 12px;
  background: linear-gradient(135deg, #f7fbff, #edf5ff);
}

.recurring-panel-launch {
  display: flex;
  align-items: center;
  gap: 10px;
}

.recurring-panel-launch + [data-recurring-box] {
  margin-top: 14px;
}

.recurring-job-intro > span,
.recurring-job-summary div > span {
  display: block;
  margin-top: 4px;
  color: #526a82;
  font-size: 0.88rem;
  font-weight: 700;
}

.recurring-job-fields {
  align-items: stretch !important;
}

.recurring-driver-choice {
  min-height: 100%;
}

.recurring-unallocated-note {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid #cfe0f5;
  border-radius: 10px;
  background: #fff;
}

.recurring-unallocated-note span {
  color: #526a82;
  font-size: 0.88rem;
  font-weight: 700;
}

.recurring-job-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.recurring-job-actions small {
  color: #526a82;
  font-weight: 700;
}

.recurring-date-editor {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(170px, 0.6fr) auto minmax(240px, 1fr);
  align-items: end;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #cfe0f5;
  border-radius: 12px;
  background: #f7fbff;
}

.recurring-date-editor label,
.recurring-date-editor label > span {
  display: grid;
  gap: 6px;
}

.recurring-date-editor label > span,
.recurring-date-editor small {
  color: #526a82;
  font-weight: 700;
}

.recurring-job-details {
  margin-bottom: 12px;
}

@media (max-width: 720px) {
  .recurring-job-intro,
  .recurring-job-summary,
  .recurring-job-actions,
  .recurring-date-editor {
    align-items: flex-start;
    flex-direction: column;
  }

  .recurring-date-editor {
    display: flex;
  }
}

.compact-timeline {
  max-height: none;
}

.learning-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.learning-card {
  display: grid;
  gap: 6px;
  position: relative;
  min-height: 110px;
  padding: 14px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.learning-card.is-dragging,
.report-card.is-dragging {
  opacity: 0.58;
}

.learning-card.is-drop-target,
.report-card.is-drop-target {
  border-color: #007bff;
  box-shadow: inset 0 0 0 2px rgba(0, 123, 255, 0.16), 0 16px 34px rgba(0, 123, 255, 0.14);
}

.card-move-handle {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 26px;
  padding: 0 8px;
  border: 1px dashed #b8cbe6;
  border-radius: 7px;
  background: #fff;
  color: #52637a;
  cursor: move;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.learning-card span {
  color: #6c757d;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.learning-card .card-move-handle,
.report-card .card-move-handle {
  color: #52637a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: none;
}

.learning-card strong {
  color: #0d2f51;
  font-size: 1.05rem;
}

.learning-card small {
  color: #6c757d;
  line-height: 1.35;
}

.ops-grid {
  display: grid;
  grid-template-columns: 430px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(380px, 0.72fr);
  gap: 18px;
  align-items: start;
}

.admin-jobs-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.admin-jobs-panel .booking-cards {
  display: none;
}

.admin-job-table,
.admin-data-table {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior: contain;
}

.admin-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  color: #212529;
  font-size: 0.84rem;
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: #0d2f51;
  background: #f8f9fa;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-table tr {
  cursor: pointer;
}

.admin-table tr:hover td,
.admin-table tr.is-selected td {
  background: #eef6ff;
}

.admin-table strong,
.admin-table small {
  display: block;
}

.admin-table small {
  margin-top: 3px;
  color: #6c757d;
  font-weight: 800;
}

.price-cell {
  font-weight: 900;
  white-space: nowrap;
}

.quotes-pipeline-table .compact-button {
  white-space: nowrap;
}

.staff-security-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.staff-security-tabs button {
  min-height: 34px;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font-weight: 900;
  padding: 7px 14px;
}

.staff-security-tabs button.is-active {
  border-color: #007bff;
  color: #fff;
  background: #007bff;
}

.staff-security-panels,
.staff-security-panel,
.staff-user-form-panel,
.staff-security-settings {
  display: grid;
  gap: 14px;
}

.staff-security-panel {
  display: none;
}

.staff-security-panel.is-active {
  display: grid;
}

.staff-user-form-panel,
.staff-security-settings {
  padding: 16px;
  margin-bottom: 14px;
}

.staff-user-form-panel[hidden] {
  display: none;
}

.staff-users-toolbar {
  margin-bottom: 0;
}

.staff-users-table {
  min-width: 1180px;
}

.staff-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 360px;
}

.staff-row-actions button {
  min-height: 28px;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 5px 8px;
  white-space: nowrap;
}

.staff-row-actions button:hover {
  border-color: #007bff;
  color: #006de3;
  background: #eef6ff;
}

.staff-user-detail {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.staff-user-profile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.staff-user-profile div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.staff-user-profile dt {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-user-profile dd {
  margin: 0;
  color: #0d2f51;
  font-weight: 900;
}

.staff-user-profile .staff-activation-link {
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 0.78rem;
  line-height: 1.35;
}

.customer-link-button {
  appearance: none;
  border: 0;
  padding: 0;
  color: #006de3;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.customer-link-button:hover {
  color: #0d2f51;
  text-decoration: underline;
}

.customer-link-button.muted-link {
  color: #0d2f51;
}

.customer-record-toolbar {
  display: flex;
  gap: 14px;
  align-items: end;
  justify-content: space-between;
  min-width: 920px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.customer-record-toolbar label {
  display: grid;
  gap: 6px;
  width: min(520px, 100%);
}

.customer-record-toolbar span {
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
}

.customer-record-toolbar input {
  width: 100%;
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  font-weight: 800;
}

.customer-record-toolbar strong {
  color: #6c757d;
  font-size: 0.82rem;
  white-space: nowrap;
}

.customer-record-toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.customer-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.customer-import-status {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr);
  gap: 4px 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.customer-import-status strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.customer-import-status span,
.customer-import-status p {
  margin: 0;
  color: #52667d;
  font-size: 0.82rem;
  font-weight: 750;
}

.customer-import-status p {
  grid-column: 1 / -1;
  color: #0d2f51;
}

.customer-credit-row {
  cursor: pointer;
}

.customer-credit-row:hover td {
  background: #f8fbff;
}

.customer-profile-page,
.customer-profile-form {
  display: grid;
  gap: 16px;
}

.customer-profile-form,
.customer-profile-page > .admin-data-table {
  padding: 20px;
}

.customer-profile-page > .admin-data-table .panel-head {
  margin-bottom: 12px;
}

.customer-profile-shell {
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.customer-profile-head {
  margin-bottom: 0;
}

.customer-credit-alert {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #d9e5f6;
  background: #f8fbff;
}

.customer-credit-alert h2,
.customer-credit-alert p {
  margin: 0;
}

.customer-credit-alert h2 {
  color: #0d2f51;
  font-size: 1rem;
}

.customer-credit-alert p {
  color: #6c757d;
  line-height: 1.45;
}

.customer-credit-alert strong {
  color: #0d2f51;
  white-space: nowrap;
}

.customer-credit-alert.is-locked {
  border-color: #ffcaca;
  background: #fff4f4;
}

.customer-credit-alert.is-locked h2,
.customer-credit-alert.is-locked strong {
  color: #8b1e1e;
}

.customer-profile-summary {
  margin: 0;
}

.customer-profile-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

.customer-profile-grid label {
  align-content: end;
}

.customer-profile-grid input,
.customer-profile-grid select {
  height: 54px;
  min-height: 54px;
  box-sizing: border-box;
  border: 1px solid #cfe0f6;
  border-radius: 10px;
  padding: 0 14px;
  color: var(--ink);
  background-color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 54px;
}

.customer-profile-grid input[type="date"] {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
  font-weight: 900;
}

.customer-profile-grid textarea {
  min-height: 120px;
  box-sizing: border-box;
  border: 1px solid #cfe0f6;
  border-radius: 10px;
  padding: 14px;
  color: var(--ink);
  background-color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.customer-record-toolbar input {
  height: 54px;
  min-height: 54px;
  box-sizing: border-box;
  border-color: #cfe0f6;
  border-radius: 10px;
  padding: 0 14px;
  font-size: 1rem;
}

[data-customers-table].admin-data-table {
  padding: 16px;
}

[data-customers-table].admin-data-table table {
  margin-top: 12px;
}

.customer-credit-row.is-locked td {
  background: #fff9f9;
}

.portal-action-tile.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.staff-permission-summary,
.staff-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.staff-permission-summary section,
.staff-role-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.staff-role-card {
  background: #fff;
}

.staff-permission-summary h3,
.staff-role-card h3 {
  margin: 0;
  color: #0d2f51;
  font-size: 0.86rem;
}

.staff-permission-summary ul,
.staff-role-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #495057;
  line-height: 1.35;
}

.staff-role-card h2 {
  margin: 0;
  color: #0d2f51;
  font-size: 1rem;
}

.email-template-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.email-template-editor[hidden] {
  display: none;
}

.email-template-table {
  min-width: 1180px;
}

.email-template-actions {
  min-width: 430px;
}

.email-template-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.email-template-fields,
.email-template-side,
.email-merge-tags,
.email-preview-stack {
  display: grid;
  gap: 12px;
}

.email-html-code {
  min-height: 360px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.merge-tag-grid {
  display: grid;
  gap: 7px;
}

.merge-tag-grid button {
  min-height: 30px;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: left;
  padding: 6px 8px;
}

.merge-tag-grid button:hover {
  border-color: #007bff;
  color: #006de3;
  background: #eef6ff;
}

.email-preview-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.email-preview-meta div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.email-preview-meta span {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.email-preview-meta strong {
  color: #0d2f51;
  overflow-wrap: anywhere;
}

.email-preview-toggle {
  justify-content: flex-start;
}

.email-preview-frame {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  min-height: 360px;
  max-height: 620px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #eef4fb;
  padding: 16px;
}

.email-preview-iframe {
  display: block;
  width: 100%;
  height: 540px;
  border: 0;
  border-radius: 6px;
  background: #fff;
}

.email-preview-frame.is-desktop .email-preview-iframe {
  max-width: 760px;
  min-height: 540px;
}

.email-preview-frame.is-mobile {
  width: min(100%, 376px);
  min-height: 632px;
  max-height: 700px;
  margin: 0 auto;
  padding: 18px 14px 22px;
  border-radius: 28px;
  border-color: #0d2f51;
  background: #10243a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px rgba(13, 47, 81, 0.18);
}

.email-preview-frame.is-mobile .email-preview-iframe {
  width: 320px;
  max-width: 100%;
  height: 568px;
  min-height: 568px;
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(13, 47, 81, 0.12);
}

.email-version-list {
  display: grid;
  gap: 8px;
}

.email-version-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.email-version-card strong,
.email-version-card span,
.email-version-card small {
  display: block;
}

.email-version-card strong {
  color: #0d2f51;
}

.email-version-card span,
.email-version-card small {
  color: #6c757d;
  line-height: 1.35;
}

.workflow-settings-workspace,
.workflow-settings-panel,
.workflow-stage-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.workflow-settings-panel {
  overflow-x: auto;
  padding-top: 4px;
}

.workflow-stage-row {
  display: grid;
  grid-template-columns: 28px minmax(180px, 1.2fr) minmax(150px, 0.9fr) 90px minmax(140px, 0.8fr) 110px minmax(190px, 1fr);
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.workflow-stage-row label,
.workflow-rule-row label,
.workflow-colour-row {
  display: grid;
  gap: 6px;
}

.workflow-stage-row label span,
.workflow-colour-row span {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workflow-stage-row input,
.workflow-stage-row select,
.workflow-rule-row select {
  min-height: 36px;
  width: 100%;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.workflow-drag-handle {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px dashed #aac2df;
  border-radius: 4px;
  color: #6c757d;
  background: #fff;
  font-weight: 900;
  cursor: grab;
}

.workflow-stage-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.workflow-rule-summary,
.workflow-rules-grid,
.workflow-automation-grid,
.workflow-colour-grid,
.cx-workflow-grid {
  display: grid;
  gap: 12px;
}

.workflow-rules-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-rules-grid section,
.workflow-automation-card,
.cx-workflow-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.cx-workflow-grid {
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
}

.cx-workflow-field-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cx-workflow-field-tags span {
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #d9e5f6;
  border-radius: 999px;
  color: #0d2f51;
  background: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 10px;
}

.cx-workflow-table {
  overflow-x: auto;
}

.cx-workflow-table input,
.cx-workflow-table select {
  min-height: 34px;
  width: 100%;
  min-width: 150px;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 7px 9px;
}

.cx-workflow-table td:last-child input {
  min-width: 240px;
}

.workflow-rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.workflow-rule-row span {
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 900;
}

.workflow-example-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #fff;
}

.workflow-example-flow span {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #0d2f51;
  background: #eef6ff;
  font-size: 0.76rem;
  font-weight: 900;
  padding: 4px 10px;
}

.workflow-example-flow b {
  color: #007bff;
}

.workflow-automation-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-colour-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.workflow-colour-row {
  grid-template-columns: minmax(0, 1fr) 64px 34px;
  align-items: center;
  padding: 10px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.workflow-colour-row strong {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #d9e5f6;
}

.vat-settings-workspace,
.vat-settings-panel-shell,
.vat-settings-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.vat-settings-panel-shell {
  overflow-x: auto;
}

.vat-settings-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.vat-settings-panel label,
.vat-service-grid label {
  display: grid;
  gap: 6px;
}

.vat-settings-panel label span {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vat-settings-panel input,
.vat-settings-panel select,
.vat-settings-panel textarea,
.vat-rates-table input,
.vat-rates-table select,
.vat-service-grid select,
.vat-settings-card .admin-table input {
  min-height: 36px;
  width: 100%;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.vat-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.payment-settings-workspace,
.payment-settings-panel-shell,
.payment-settings-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.payment-settings-panel-shell {
  overflow-x: auto;
}

.payment-settings-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.payment-settings-grid,
.payment-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.payment-settings-panel label {
  display: grid;
  gap: 6px;
}

.payment-settings-panel label span {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-settings-panel input,
.payment-settings-panel select,
.payment-settings-panel textarea,
.payment-settings-card .admin-table input,
.payment-settings-card .admin-table select {
  min-height: 36px;
  width: 100%;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.payment-settings-card .admin-table input[type="radio"],
.payment-settings-card .admin-table input[type="color"] {
  min-height: 0;
  padding: 0;
}

.payment-settings-card .admin-table small {
  display: block;
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 800;
}

.payment-status-colour {
  width: 48px;
  height: 36px;
}

.notification-settings-workspace,
.notification-settings-panel-shell,
.notification-settings-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.notification-settings-panel-shell {
  overflow-x: auto;
}

.notification-settings-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.notification-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.notification-settings-panel label {
  display: grid;
  gap: 6px;
}

.notification-settings-panel label span {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-settings-panel input,
.notification-settings-panel select,
.notification-settings-panel textarea,
.notification-settings-card .admin-table input,
.notification-settings-card .admin-table select {
  min-height: 36px;
  width: 100%;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.notification-settings-card .admin-table input[type="checkbox"] {
  width: auto;
  min-height: 0;
  padding: 0;
}

.notification-tabs button {
  flex: 0 1 auto;
  max-width: 190px;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}

.notification-channel-table,
.notification-matrix-table {
  min-width: 0;
  table-layout: fixed;
}

.notification-channel-table th,
.notification-channel-table td,
.notification-matrix-table th,
.notification-matrix-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}

.notification-channel-table th:first-child,
.notification-channel-table td:first-child {
  width: 28%;
}

.notification-matrix-table th:first-child,
.notification-matrix-table td:first-child {
  width: 42%;
}

.notification-log-filters {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.api-integrations-workspace,
.api-integrations-panel-shell,
.api-integration-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.api-integrations-panel-shell {
  overflow-x: auto;
}

.api-integrations-panel,
.api-integration-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.api-integration-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.api-integration-card > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.api-integration-card strong {
  color: #0d2f51;
}

.api-integration-card p,
.api-integration-card small {
  margin: 0;
  color: #6c757d;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.api-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.stripe-result-panel,
.openai-result-panel,
.xero-result-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #fff;
}

.stripe-result-head,
.openai-result-head,
.xero-result-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.stripe-result-head strong,
.openai-result-head strong,
.xero-result-head strong {
  color: #0d2f51;
}

.stripe-result-grid,
.openai-result-grid,
.xero-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.stripe-result-grid div,
.openai-result-grid div,
.xero-result-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #e5edf8;
  border-radius: 6px;
  background: #f8fbff;
}

.stripe-result-grid span,
.openai-result-grid span,
.xero-result-grid span {
  color: #6c757d;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stripe-result-grid strong,
.openai-result-grid strong,
.xero-result-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #0d2f51;
  font-size: 0.82rem;
}

@media (max-width: 900px) {
  .stripe-result-grid,
  .openai-result-grid,
  .xero-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .stripe-result-grid,
  .openai-result-grid,
  .xero-result-grid {
    grid-template-columns: 1fr;
  }
}

.monthly-online-pricing-card {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid #cfe0f7;
  border-radius: 16px;
  background: linear-gradient(145deg, #f7fbff, #ffffff);
}

.monthly-online-pricing-toggle {
  min-width: 190px;
}

.monthly-online-pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.monthly-online-pricing-month {
  display: grid;
  gap: 7px;
  padding: 13px;
  border: 1px solid #dbe7f7;
  border-radius: 12px;
  background: #ffffff;
}

.monthly-online-pricing-month.is-current {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(7, 94, 242, 0.08);
}

.monthly-online-pricing-month > span {
  color: var(--ink);
  font-weight: 850;
}

.monthly-online-pricing-month > div {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 7px;
}

.monthly-online-pricing-month input {
  width: 100%;
  min-width: 0;
}

.monthly-online-pricing-month b {
  color: var(--blue);
  font-size: 15px;
}

.monthly-online-pricing-month small {
  color: #53627b;
  font-weight: 750;
}

.monthly-online-pricing-safety {
  margin: 14px 0 0;
  color: #31405c;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 1050px) {
  .monthly-online-pricing-grid {
    grid-template-columns: repeat(3, minmax(140px, 1fr));
  }
}

@media (max-width: 720px) {
  .monthly-online-pricing-grid {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }
}

.api-integrations-panel label {
  display: grid;
  gap: 6px;
}

.api-integrations-panel label span {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.api-integrations-panel input,
.api-integrations-panel select,
.api-integrations-panel textarea,
.api-integrations-card .admin-table input,
.api-integrations-card .admin-table select {
  min-height: 36px;
  width: 100%;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.system-health-workspace,
.system-health-panel-shell,
.system-health-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.system-health-panel-shell {
  overflow-x: auto;
}

.system-health-panel,
.system-status-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.system-health-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.health-guardian-overview {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid #bcd6f4;
  border-left: 6px solid #2b78c5;
  border-radius: 10px;
  background: #f7fbff;
}

.health-guardian-overview.is-green {
  border-left-color: #14835b;
  background: #f3fbf7;
}

.health-guardian-overview.is-amber {
  border-left-color: #d98a00;
  background: #fffaf0;
}

.health-guardian-overview.is-red {
  border-left-color: #c62828;
  background: #fff5f5;
}

.health-guardian-overview h2,
.health-guardian-overview p,
.system-status-card p,
.health-guardian-issue p,
.health-guardian-controls p {
  margin: 0;
}

.health-guardian-overview h2 {
  margin-top: 3px;
  color: #0d2f51;
  font-size: 1.18rem;
}

.health-guardian-overview p,
.system-status-card p,
.health-guardian-controls p {
  color: #53657a;
  line-height: 1.45;
}

.health-guardian-kicker {
  color: #2b78c5;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.health-guardian-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.health-guardian-summary article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #fff;
}

.health-guardian-summary span {
  color: #6c757d;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.health-guardian-summary strong {
  color: #0d2f51;
  font-size: 1.15rem;
}

.health-guardian-issues {
  background: #fff;
}

.health-guardian-issue {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #f2d08a;
  border-left: 5px solid #d98a00;
  border-radius: 7px;
  background: #fffaf0;
}

.health-guardian-issue.is-red {
  border-color: #efb7b7;
  border-left-color: #c62828;
  background: #fff5f5;
}

.health-guardian-issue strong {
  color: #0d2f51;
}

.health-guardian-issue p,
.health-guardian-issue small {
  color: #53657a;
  line-height: 1.4;
}

.health-guardian-diagnosis {
  border-color: #bcd6f4;
  background: #fff;
}

.health-guardian-diagnosis > p {
  margin: 0;
  color: #0d2f51;
  font-weight: 750;
  line-height: 1.55;
  white-space: pre-wrap;
}

.health-guardian-diagnosis > small {
  color: #6c757d;
}

.system-status-card > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.system-status-card strong {
  color: #0d2f51;
}

.system-status-card small,
.system-toggle-row {
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 850;
}

.system-health-panel label,
.system-status-card label {
  display: grid;
  gap: 6px;
}

.system-health-panel label span {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.system-health-panel input,
.system-health-panel select,
.system-health-panel textarea,
.system-status-card input,
.system-health-card .admin-table input,
.system-health-card .admin-table select {
  min-height: 36px;
  width: 100%;
  border: 1px solid #d9e5f6;
  border-radius: 4px;
  color: #0d2f51;
  background: #fff;
  font: inherit;
  font-weight: 800;
  padding: 8px 10px;
}

.system-toggle-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.system-toggle-row input,
.system-health-card .admin-table input[type="checkbox"] {
  width: auto;
  min-height: 0;
  padding: 0;
}

.vat-calculation-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.vat-calculation-preview div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #fff;
}

.vat-calculation-preview dt {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.vat-calculation-preview dd {
  margin: 0;
  color: #0d2f51;
  font-weight: 900;
}

.vat-rates-table {
  min-width: 980px;
}

.vat-service-grid .workflow-colour-row {
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.7fr) 90px;
}

.vat-service-grid .workflow-colour-row strong {
  width: auto;
  height: auto;
  border-radius: 999px;
  color: #0d2f51;
  background: #eef6ff;
  font-size: 0.72rem;
  text-align: center;
  padding: 6px 10px;
}

.vat-reporting-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.priority-dot {
  display: inline-grid;
  min-width: 74px;
  min-height: 26px;
  place-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  color: #6c757d;
  background: #eef2f7;
  font-size: 0.72rem;
  font-weight: 900;
}

.priority-dot.is-priority {
  color: #8b1e1e;
  background: #ffe2e2;
}

.detail-grid-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-section-wide {
  grid-column: 1 / -1;
}

.detail-badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.calendar-board,
.drivers-board,
.reports-grid,
.settings-grid {
  display: grid;
  gap: 14px;
}

.calendar-board {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.calendar-day,
.driver-card,
.report-card,
.settings-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.settings-card {
  display: flex;
  flex-direction: column;
}

.calendar-day h2,
.driver-card h2,
.report-card h2,
.settings-card h2 {
  margin: 0;
  color: #0d2f51;
  font-size: 1rem;
}

.calendar-job {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f9fa;
}

.calendar-job strong,
.calendar-job span,
.calendar-job small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.calendar-job span,
.calendar-job small,
.settings-card p,
.report-card p,
.driver-card p {
  margin: 0;
  color: #6c757d;
  line-height: 1.4;
}

.danger-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #ffc7c7;
  border-radius: 10px;
  color: #a61d1d;
  background: #fff2f2;
  font-weight: 800;
}

.danger-button:hover {
  color: #fff;
  background: #c73535;
}

.danger-button.compact-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.vehicle-settings-card,
.pricing-rules-card,
.account-pricing-card {
  grid-column: 1 / -1;
}

.vehicle-setting-head,
.vehicle-setting-actions,
.settings-card-actions {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.vehicle-setting-head {
  justify-content: space-between;
}

.settings-card-head {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  align-items: start;
}

.settings-card-head > div,
.vehicle-setting-head > div {
  min-width: 0;
}

.settings-card-head p,
.vehicle-setting-head span {
  margin-top: 4px;
}

.settings-card-actions {
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-top: auto;
}

.settings-detail-page {
  display: grid;
  gap: 14px;
}

.settings-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
}

.settings-detail-head h1 {
  margin: 0;
  color: var(--navy);
  font-size: 1.45rem;
}

.settings-detail-head p:not(.eyebrow) {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 780;
  line-height: 1.45;
}

.settings-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.settings-detail-body {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.vehicle-settings-list {
  display: grid;
  gap: 14px;
}

.vehicle-settings-closed {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid #d5e3f5;
  border-radius: 10px;
  background: #f8fbff;
}

.vehicle-settings-closed div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.vehicle-settings-closed strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.vehicle-settings-closed span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.vehicle-setting-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}

.vehicle-setting-card.is-disabled {
  opacity: 0.72;
  background: #f3f5f8;
}

.vehicle-setting-card.is-editing {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 94, 242, 0.12);
}

.vehicle-setting-media,
.vehicle-setting-form {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.vehicle-image-preview {
  display: grid;
  min-height: 138px;
  overflow: hidden;
  place-items: center;
  border: 1px solid #d3e2f6;
  border-radius: 10px;
  background: #fff;
}

.vehicle-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.vehicle-image-placeholder {
  display: grid;
  gap: 6px;
  padding: 16px;
  color: var(--muted);
  text-align: center;
}

.vehicle-image-placeholder strong {
  color: var(--navy);
  font-size: 0.92rem;
}

.vehicle-image-placeholder span,
.vehicle-setting-media small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.vehicle-image-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vehicle-image-upload input {
  display: none;
}

.vehicle-setting-head h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
}

.vehicle-setting-head span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.vehicle-setting-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
}

.vehicle-save-status {
  display: inline-grid;
  min-height: 24px;
  place-items: center;
  padding: 3px 9px;
  border: 1px solid #a7e3c5;
  border-radius: 999px;
  color: #0f8a5f;
  background: #e9fff3;
  font-size: 0.72rem;
  font-weight: 900;
}

.vehicle-setting-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vehicle-settings-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.vehicle-settings-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.vehicle-settings-fields span {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
}

.vehicle-settings-fields input,
.vehicle-settings-fields select,
.vehicle-settings-fields textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 750;
}

.vehicle-settings-fields textarea {
  resize: vertical;
}

.pricing-rules-workspace {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.pricing-rules-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.pricing-rules-table {
  min-width: 1280px;
}

.pricing-rules-table th,
.pricing-rules-table td {
  vertical-align: top;
}

.pricing-rules-table input,
.pricing-rules-table select {
  width: 100%;
  min-width: 94px;
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--ink);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.pricing-rules-table select[name="vehicleId"] {
  min-width: 180px;
}

.pricing-rule-actions {
  display: grid;
  min-width: 150px;
  gap: 7px;
}

.pricing-rules-table tr.is-editing {
  outline: 3px solid rgba(7, 94, 242, 0.14);
  outline-offset: -3px;
}

.pricing-preview-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d5e3f5;
  border-radius: 10px;
  background: #f8fbff;
}

.pricing-preview-panel h3 {
  margin: 0 0 4px;
}

.pricing-preview-panel p {
  margin: 0;
}

.pricing-preview-grid,
.pricing-preview-results {
  display: grid;
  gap: 12px;
}

.pricing-preview-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pricing-preview-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pricing-preview-grid span,
.pricing-preview-results span {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
}

.pricing-preview-grid input,
.pricing-preview-grid select {
  width: 100%;
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.pricing-preview-results {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-preview-results div {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid #d5e3f5;
  border-radius: 10px;
  background: #fff;
}

.pricing-preview-results strong {
  color: var(--navy);
  font-size: 1.05rem;
}

.pricing-preview-results .is-good strong,
.pricing-margin-warning.is-good {
  color: #0f8a5f;
}

.pricing-preview-results .is-warning strong,
.pricing-margin-warning.is-warning {
  color: #b87500;
}

.pricing-preview-results .is-danger strong,
.pricing-margin-warning.is-danger {
  color: #c73535;
}

.pricing-margin-warning {
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}

.pricing-margin-warning.is-good {
  background: #e9fff3;
}

.pricing-margin-warning.is-warning {
  background: #fff7df;
}

.pricing-margin-warning.is-danger {
  background: #fff2f2;
}

.pricing-route-test-panel {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid #d5e3f5;
  border-radius: 10px;
  background: #f8fbff;
}

.pricing-route-test-grid,
.pricing-route-test-results {
  display: grid;
  gap: 12px;
}

.pricing-route-test-grid {
  grid-template-columns: 1.15fr repeat(4, minmax(0, 1fr));
}

.pricing-route-test-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.pricing-route-test-grid span,
.pricing-route-test-results span {
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
}

.pricing-route-test-grid input,
.pricing-route-test-grid select {
  width: 100%;
  min-width: 0;
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.pricing-route-test-results {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pricing-route-test-results div {
  display: grid;
  gap: 4px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid #d5e3f5;
  border-radius: 10px;
  background: #fff;
}

.pricing-route-test-results strong {
  color: var(--navy);
  font-size: 1rem;
}

.pricing-route-test-results .is-good strong {
  color: #0f8a5f;
}

.pricing-route-test-results .is-warning strong {
  color: #b87500;
}

.pricing-route-test-results .is-danger strong {
  color: #c73535;
}

.pricing-engine-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d5e3f5;
  border-radius: 10px;
  background: #fff;
}

.pricing-collapsed-card {
  background: #f8fbff;
}

.pricing-collapsed-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.pricing-collapsed-summary h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1rem;
}

.pricing-collapsed-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.pricing-engine-card.is-editing,
.zone-card.is-editing,
.ooh-rule-card.is-editing {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 94, 242, 0.12);
}

.pricing-engine-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.pricing-engine-section-head h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1rem;
}

.pricing-engine-section-head p,
.pricing-logic-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.45;
}

.pricing-engine-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.pricing-engine-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.pricing-setup-page,
.pricing-setup-hub {
  display: grid;
  gap: 16px;
}

.pricing-setup-page-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #d5e3f5;
  border-radius: 10px;
  background: #f8fbff;
}

.pricing-setup-page-head h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: 1.08rem;
}

.pricing-setup-page-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 780;
  line-height: 1.45;
}

.pricing-setup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pricing-setup-card {
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 170px;
  padding: 14px;
  border: 1px solid #d5e3f5;
  border-radius: 10px;
  background: #f8fbff;
}

.pricing-setup-card span {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
}

.pricing-setup-card strong {
  color: var(--navy);
  font-size: 1rem;
}

.pricing-setup-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.45;
}

.pricing-setup-card button {
  align-self: end;
  justify-self: start;
}

.zone-manager-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 14px;
  align-items: start;
}

.zone-manager-full-page .zone-manager-layout {
  grid-template-columns: minmax(520px, 1.45fr) minmax(360px, 0.75fr);
}

.pricing-map-placeholder {
  position: sticky;
  top: 86px;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  align-content: end;
  gap: 8px;
  padding: 18px;
  border: 1px solid #cfe0f4;
  border-radius: 10px;
  background:
    linear-gradient(rgba(13, 47, 81, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 47, 81, 0.06) 1px, transparent 1px),
    #f8fbff;
  background-size: 28px 28px;
}

.zone-manager-full-page .pricing-map-placeholder {
  position: relative;
  top: auto;
  min-height: 640px;
  background-size: 36px 36px;
}

.pricing-map-placeholder strong {
  position: relative;
  z-index: 2;
  color: var(--navy);
  font-size: 0.95rem;
}

.pricing-map-placeholder p {
  position: relative;
  z-index: 2;
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.pricing-zone-google-map {
  padding: 0;
  background: #eef4fb;
}

.pricing-zone-google-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing-zone-google-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.pricing-zone-google-map img[hidden] {
  display: none;
}

.pricing-zone-google-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(13, 47, 81, 0.08), rgba(13, 47, 81, 0.38));
}

.zone-map-caption {
  position: relative;
  z-index: 2;
  align-self: end;
  display: grid;
  gap: 4px;
  max-width: 360px;
  margin: 18px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(13, 47, 81, 0.16);
}

.zone-map-caption p.is-error {
  color: #b42318;
}

.zone-map-legend {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
  display: grid;
  gap: 6px;
  width: min(230px, calc(100% - 28px));
}

.zone-map-legend a {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  padding: 7px 9px;
  border: 1px solid rgba(213, 227, 245, 0.86);
  border-radius: 8px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: none;
}

.zone-map-legend i {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.zone-map-legend span {
  overflow: hidden;
  min-width: 0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-draw-toolbar {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.map-draw-toolbar button {
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--navy);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.map-zone {
  position: absolute;
  display: grid;
  place-items: center;
  border: 2px solid rgba(0, 123, 255, 0.36);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(0, 123, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
}

.map-zone.zone-a {
  inset: 54px 56px auto auto;
  width: 130px;
  height: 94px;
}

.map-zone.zone-b {
  inset: 86px auto auto 32px;
  width: 205px;
  height: 150px;
  border-color: rgba(13, 47, 81, 0.28);
  background: rgba(13, 47, 81, 0.06);
}

.map-route-line {
  position: absolute;
  top: 142px;
  left: 86px;
  width: 190px;
  height: 4px;
  transform: rotate(-18deg);
  border-radius: 999px;
  background: var(--blue);
}

.map-pin {
  position: absolute;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(13, 47, 81, 0.18);
}

.map-pin.collection {
  top: 122px;
  left: 70px;
}

.map-pin.delivery {
  top: 76px;
  right: 58px;
  background: var(--navy);
}

.zone-list,
.day-pricing-grid,
.ooh-rules-grid,
.manual-surcharge-grid,
.future-automation-grid {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.zone-card,
.day-pricing-card,
.ooh-rule-card,
.manual-surcharge-card,
.future-automation-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fbff;
}

.zone-card-head,
.zone-card-map-fields,
.pricing-settings-grid,
.ooh-rule-card,
.manual-surcharge-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.zone-card label,
.zone-card-map-fields label,
.pricing-settings-grid label,
.day-pricing-card label,
.ooh-rule-card label,
.manual-surcharge-card label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.zone-card span,
.zone-card-map-fields span,
.pricing-settings-grid span,
.day-pricing-card span,
.ooh-rule-card span,
.manual-surcharge-card span {
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
}

.zone-card input,
.zone-card select,
.zone-card textarea,
.zone-card-map-fields input,
.zone-card-map-fields select,
.pricing-settings-grid input,
.pricing-settings-grid select,
.pricing-settings-grid textarea,
.day-pricing-card input,
.day-pricing-card select,
.day-pricing-card textarea,
.ooh-rule-card input,
.ooh-rule-card select,
.manual-surcharge-card input,
.manual-surcharge-card select,
.manual-surcharge-card textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 800;
}

.zone-map-link {
  align-self: end;
  justify-self: start;
  text-decoration: none;
}

.zone-card textarea,
.pricing-settings-grid textarea,
.day-pricing-card textarea,
.manual-surcharge-card textarea {
  resize: vertical;
}

.zone-colour-field input[type="color"] {
  height: 39px;
  padding: 3px;
}

.wide-field {
  grid-column: span 4;
}

.pricing-example-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.account-pricing-page {
  display: grid;
  gap: 16px;
}

.account-pricing-control-grid {
  align-items: end;
}

.account-pricing-rule-note {
  display: grid;
  grid-column: span 3;
  gap: 4px;
  padding: 12px;
  border: 1px solid #d9e7f8;
  border-radius: 8px;
  background: #f8fbff;
}

.account-pricing-rule-note strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.account-pricing-rule-note span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.account-tier-grid {
  display: grid;
  gap: 14px;
}

.account-tier-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.account-pricing-table .admin-table {
  min-width: 820px;
}

.account-pricing-table input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 800;
}

.account-charge-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.account-charge-grid label {
  display: grid;
  gap: 6px;
}

.account-charge-grid span {
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
}

.account-charge-grid input {
  width: 100%;
  min-width: 0;
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  padding: 9px 10px;
  font-weight: 800;
}

.pricing-example-list span,
.future-automation-card span {
  padding: 8px 10px;
  border: 1px solid #d5e3f5;
  border-radius: 999px;
  color: var(--muted);
  background: #fff;
  font-size: 0.74rem;
  font-weight: 850;
}

.time-pricing-list {
  display: grid;
  gap: 8px;
}

.time-pricing-row {
  display: grid;
  gap: 10px;
  align-items: end;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.day-pricing-card.time-pricing-row {
  grid-template-columns: minmax(116px, 0.7fr) 96px 116px 116px minmax(220px, 1.2fr);
}

.ooh-rule-card.time-pricing-row {
  grid-template-columns: minmax(108px, 0.55fr) minmax(180px, 1.1fr) 104px 104px 116px 116px 96px minmax(130px, 0.7fr);
}

.time-pricing-summary {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  background: #fff;
}

.time-pricing-summary strong {
  color: var(--navy);
  font-size: 0.88rem;
  line-height: 1.15;
}

.time-pricing-status {
  width: max-content;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  color: #42526a;
  background: #eef4fb;
  font-size: 0.68rem;
  font-weight: 900;
  white-space: nowrap;
}

.time-pricing-status.is-on {
  color: #0f8a5f;
  background: #e9fff3;
}

.time-pricing-status.is-off {
  color: #7b8794;
  background: #eef1f5;
}

.time-pricing-row label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.time-pricing-row span {
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
}

.time-pricing-row input,
.time-pricing-row select,
.time-pricing-row textarea {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  border: 1px solid #d5e3f5;
  border-radius: 8px;
  padding: 8px 9px;
  color: var(--ink);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 800;
}

.time-pricing-row textarea {
  resize: none;
}

.time-pricing-row .inline-actions {
  display: grid;
  gap: 6px;
}

.time-pricing-row .compact-button {
  width: 100%;
  min-height: 36px;
}

.day-pricing-grid {
  grid-template-columns: repeat(7, minmax(150px, 1fr));
}

.day-pricing-card strong,
.manual-surcharge-card strong,
.future-automation-card strong {
  color: var(--navy);
  font-size: 0.9rem;
}

.ooh-rules-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ooh-rule-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-surcharge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.manual-surcharge-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manual-surcharge-card strong {
  grid-column: 1 / -1;
}

.future-automation-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.future-automation-card {
  align-content: start;
  background: #fff;
}

.staff-booking-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.staff-booking-form label {
  min-width: 0;
}

.staff-booking-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.staff-booking-form select {
  min-height: 54px;
  padding: 0 14px;
  box-sizing: border-box;
}

.staff-booking-form select {
  height: 54px;
  border: 1px solid #cfe0f6;
  border-radius: 10px;
  color: var(--ink);
  background-color: #fff;
  box-sizing: border-box;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
  line-height: 54px;
}

.staff-booking-form textarea {
  min-height: 96px;
  box-sizing: border-box;
}

.staff-booking-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.staff-booking-left,
.staff-booking-right {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.staff-booking-right {
  position: sticky;
  top: 92px;
}

.staff-booking-form .form-section,
.staff-booking-form .side-panel {
  padding: 18px;
}

.staff-booking-form .form-section-title h2,
.staff-booking-form .panel-head h2 {
  font-size: 1rem;
}

.staff-customer-grid {
  align-items: start;
}

.staff-customer-grid .staff-internal-notes-field {
  grid-column: span 2;
  width: 100%;
  min-width: 0;
}

.staff-customer-grid .staff-internal-notes-field textarea {
  height: 54px;
  min-height: 54px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.staff-cx-service-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.staff-cx-service-card {
  min-height: 70px;
  border-color: #b8dcff;
  background: #f8fbff;
}

.staff-cx-service-card:has(input:checked) {
  border-color: #007bff;
  background: #eef6ff;
  box-shadow: inset 0 0 0 1px rgba(0, 123, 255, 0.18);
}

.staff-cx-service-card small {
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 720px) {
  .staff-cx-service-options {
    grid-template-columns: 1fr;
  }

  .staff-stop-time-row {
    grid-template-columns: 1fr;
  }
}

.staff-stop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.staff-stop-list {
  display: grid;
  gap: 12px;
}

.staff-stop-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d8e5f6;
  border-radius: 10px;
  background: #f9fcff;
}

.staff-stop-card .field-grid.two-col {
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
}

.staff-stop-company-field {
  grid-column: 1 / -1;
}

.staff-address-book-field {
  position: relative;
  min-width: 0;
}

.staff-address-book-field label {
  display: grid;
}

.staff-address-book-field input {
  padding-right: 54px;
}

.staff-address-book-button {
  position: absolute;
  right: 6px;
  bottom: 6px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #b9d2f2;
  border-radius: 8px;
  color: #075ef2;
  font-size: 1.15rem;
  font-weight: 900;
  background: #eef6ff;
}

.staff-address-book-button:hover,
.staff-address-book-button:focus-visible {
  border-color: #075ef2;
  background: #dcebff;
  outline: none;
}

.staff-address-book-menu {
  position: absolute;
  z-index: 35;
  top: calc(100% + 6px);
  left: 0;
  width: min(430px, calc(100vw - 48px));
  max-height: 480px;
  overflow: auto;
  padding: 7px;
  border: 1px solid #b9d2f2;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(7, 36, 86, 0.2);
}

.staff-address-book-search {
  position: sticky;
  z-index: 2;
  top: -7px;
  display: grid;
  gap: 6px;
  margin: -7px -7px 6px;
  padding: 12px;
  border-bottom: 1px solid #d9e6f5;
  border-radius: 12px 12px 0 0;
  background: #f7fbff;
}

.staff-address-book-search label {
  display: grid;
  gap: 6px;
}

.staff-address-book-search label span {
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.staff-address-book-search input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #9fbfe7;
  border-radius: 9px;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 800;
  background: #fff;
}

.staff-address-book-search input:focus {
  border-color: #075ef2;
  outline: 3px solid rgba(7, 94, 242, 0.14);
}

.staff-address-book-search small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.staff-address-book-results {
  display: grid;
  gap: 8px;
}

.staff-address-book-group {
  display: grid;
  gap: 2px;
}

.staff-address-book-group + .staff-address-book-group {
  margin-top: 4px;
  padding-top: 9px;
  border-top: 2px solid #d9e6f5;
}

.staff-address-book-group h4 {
  position: sticky;
  top: 102px;
  z-index: 1;
  margin: 0;
  padding: 7px 10px;
  border-radius: 7px;
  color: #073b7c;
  font-size: 0.76rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
  background: #eaf4ff;
}

.staff-stop-time-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  padding-top: 4px;
}

@media (max-width: 720px) {
  .staff-stop-time-row {
    grid-template-columns: 1fr;
  }
}

.staff-date-field input,
.staff-time-field input,
.staff-time-end-field input {
  min-height: 54px;
  padding: 0 14px;
  border-color: #bfd4ef;
  font-size: 1rem;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  font-weight: 800;
  background: #fff;
}

.staff-booking-form input[type="date"],
.staff-booking-form input[type="time"],
.job-edit-form input[type="date"],
.job-edit-form input[type="time"] {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
  font-weight: 900;
  accent-color: var(--ink);
}

.staff-booking-form input[type="date"]::-webkit-datetime-edit,
.staff-booking-form input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.staff-booking-form input[type="date"]::-webkit-datetime-edit-text,
.staff-booking-form input[type="date"]::-webkit-datetime-edit-month-field,
.staff-booking-form input[type="date"]::-webkit-datetime-edit-day-field,
.staff-booking-form input[type="date"]::-webkit-datetime-edit-year-field,
.staff-booking-form input[type="time"]::-webkit-datetime-edit,
.staff-booking-form input[type="time"]::-webkit-datetime-edit-fields-wrapper,
.staff-booking-form input[type="time"]::-webkit-datetime-edit-text,
.staff-booking-form input[type="time"]::-webkit-datetime-edit-hour-field,
.staff-booking-form input[type="time"]::-webkit-datetime-edit-minute-field,
.job-edit-form input[type="date"]::-webkit-datetime-edit,
.job-edit-form input[type="date"]::-webkit-datetime-edit-fields-wrapper,
.job-edit-form input[type="date"]::-webkit-datetime-edit-text,
.job-edit-form input[type="date"]::-webkit-datetime-edit-month-field,
.job-edit-form input[type="date"]::-webkit-datetime-edit-day-field,
.job-edit-form input[type="date"]::-webkit-datetime-edit-year-field,
.job-edit-form input[type="time"]::-webkit-datetime-edit,
.job-edit-form input[type="time"]::-webkit-datetime-edit-fields-wrapper,
.job-edit-form input[type="time"]::-webkit-datetime-edit-text,
.job-edit-form input[type="time"]::-webkit-datetime-edit-hour-field,
.job-edit-form input[type="time"]::-webkit-datetime-edit-minute-field {
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
  font-weight: 900;
}

.staff-date-field span,
.staff-time-field span,
.staff-time-end-field span,
.staff-time-mode-field span {
  color: var(--navy);
}

.staff-time-mode-field select {
  min-height: 54px;
  border-color: #bfd4ef;
  color: var(--ink);
  font-weight: 900;
  background: #fff;
}

.staff-time-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.staff-time-with-asap .compact-button {
  min-height: 54px;
  padding-inline: 14px;
}

.staff-stop-card.is-asap .staff-time-input-row {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
}

.staff-stop-card.is-asap .staff-time-input-row::before {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  align-items: center;
  padding: 0 76px 0 14px;
  border: 1px solid #bfd4ef;
  border-radius: 10px;
  color: var(--ink);
  background: #eef6ff;
  font-weight: 900;
  content: "ASAP selected";
}

.staff-stop-card.is-asap .staff-time-input-row .compact-button {
  position: absolute;
  top: 7px;
  right: 7px;
  min-height: 40px;
  padding-inline: 10px;
}

.staff-stop-card.is-asap .staff-time-input-row input {
  display: none;
}

.staff-stop-card:not(.is-between-time) .staff-time-end-field {
  display: none;
}

.staff-time-with-asap .compact-button.is-on {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.cx-time-control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  background: #f8fbff;
}

.cx-time-control-grid label {
  min-width: 0;
}

.cx-time-control-grid input,
.cx-time-control-grid select {
  min-height: 54px;
  border-color: #bfd4ef;
  color: var(--ink) !important;
  -webkit-text-fill-color: var(--ink);
  font-weight: 900;
  background: #fff;
}

.cx-time-control-grid:not(.is-between-time) .job-time-end-field,
.cx-time-control-grid.is-asap .job-time-end-field {
  display: none;
}

.cx-time-control-grid.is-asap input[type="time"] {
  display: none;
}

.cx-time-control-grid.is-asap label:has(input[type="time"]:disabled)::after {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #bfd4ef;
  border-radius: 10px;
  color: var(--ink);
  background: #eef6ff;
  font-weight: 900;
  content: "ASAP selected";
}

.staff-ai-page {
  display: grid;
  grid-template-rows: auto auto minmax(320px, 1fr) auto auto;
  gap: 18px;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 260px);
  padding: 24px;
  align-content: stretch;
}

.staff-ai-page label {
  display: grid;
  min-height: 0;
  gap: 8px;
}

.staff-ai-page textarea {
  min-height: 130px;
  padding: 14px 16px;
  resize: vertical;
}

.staff-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.staff-ai-conversation {
  display: grid;
  min-height: 320px;
  max-height: 52vh;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  align-content: start;
  border: 1px solid #d8e5f6;
  border-radius: 14px;
  background: #f8fbff;
}

.staff-ai-conversation .assistant-message {
  width: min(84%, 900px);
}

.staff-ai-conversation .assistant-message-user {
  justify-self: end;
}

.staff-ai-conversation .assistant-message-ai {
  justify-self: start;
}

.stop-card-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.stop-card-head h4 {
  margin: 0;
  color: var(--navy);
  font-size: 0.92rem;
}

.route-stop-summary {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px dashed #bfd1e8;
  border-radius: 10px;
  background: #f8fbff;
}

.route-stop-summary h3,
.route-order-card h3 {
  margin-bottom: 0;
}

.route-stop-summary ol,
.route-order-card ol {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #42526a;
  font-size: 0.85rem;
  line-height: 1.35;
}

.surcharge-grid {
  display: grid;
  gap: 8px;
}

.surcharge-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.1fr) minmax(96px, 0.45fr) minmax(160px, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fbfdff;
}

.surcharge-row label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 850;
}

.surcharge-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--blue);
}

.dark-select {
  color: #fff;
  border-color: #2b2f36;
  background: #20232b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dark-select option {
  color: #fff;
  background: #4f4f4f;
}

.staff-pricing-inline {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8e5f6;
  border-radius: 12px;
  background: #f8fbff;
}

.staff-pricing-inline input[readonly] {
  color: #42526a;
  background: #eef4fb;
  cursor: not-allowed;
}

.pricing-rule-breakdown {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid #d8e5f6;
  border-radius: 10px;
  background: #fff;
}

.pricing-breakdown-card {
  display: grid;
  gap: 5px;
  align-content: start;
  min-width: 0;
  min-height: 64px;
  padding: 10px 11px;
  border: 1px solid #d8e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.pricing-breakdown-card.is-primary {
  background: #eef4fb;
}

.pricing-breakdown-card.is-wide {
  grid-column: 1 / -1;
  min-height: auto;
}

.pricing-breakdown-card > span {
  color: #42526a;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.pricing-breakdown-card strong {
  min-width: 0;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.pricing-breakdown-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pricing-breakdown-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid #d8e5f6;
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 850;
  line-height: 1.2;
}

.pricing-breakdown-muted {
  color: #6b778c;
  font-size: 0.78rem;
  font-weight: 850;
}

.margin-readout {
  min-height: auto;
}

.profit-readout {
  display: grid;
  gap: 7px;
  align-content: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid #d8e5f6;
  border-radius: 10px;
  background: #f9fcff;
}

.profit-readout span {
  color: #42526a;
  font-size: 0.82rem;
  font-weight: 800;
}

.profit-readout strong {
  color: var(--navy);
  font-size: 1.12rem;
}

.side-panel {
  display: grid;
  gap: 14px;
}

.side-panel-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.45;
}

.ai-response-card,
.route-order-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #d8e5f6;
  border-radius: 10px;
  background: #f8fbff;
}

.ai-response-card strong {
  color: var(--navy);
}

.ai-response-card p {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 650;
  font-size: 0.88rem;
  line-height: 1.45;
}

.route-map-preview {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid #d8e5f6;
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(207, 224, 246, 0.34) 1px, transparent 1px),
    linear-gradient(0deg, rgba(207, 224, 246, 0.34) 1px, transparent 1px),
    #eef6ff;
  background-size: 36px 36px;
}

.route-map-preview.is-google-connected {
  background: #eef6ff;
}

.route-map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
}

.route-map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-map-svg.is-fallback {
  opacity: 0.14;
}

.route-map-preview.is-google-connected .map-pin,
.route-map-preview.is-google-connected .route-map-status {
  z-index: 2;
}

.route-map-status {
  position: absolute;
  right: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  border: 1px solid #cfe0f6;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(13, 47, 81, 0.12);
}

.map-route-line {
  position: absolute;
  top: 100px;
  left: 70px;
  width: 245px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), #0d2f51);
  transform: rotate(-18deg);
  transform-origin: left center;
}

.map-pin {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(13, 47, 81, 0.22);
  font-size: 0.78rem;
  font-weight: 900;
}

.map-pin.collection {
  top: 62px;
  left: 58px;
}

.map-pin.delivery {
  right: 54px;
  bottom: 58px;
  background: var(--navy);
}

.route-info-grid {
  display: grid;
  gap: 8px;
  margin: 0;
}

.route-info-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.route-info-grid div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.route-info-grid div:last-child {
  border-bottom: 0;
}

.route-info-grid dt {
  color: #42526a;
  font-size: 0.8rem;
  font-weight: 800;
}

.route-info-grid dd {
  margin: 0;
  color: var(--navy);
  font-size: 0.84rem;
  font-weight: 900;
  text-align: right;
}

.route-info-grid dd select {
  min-height: 34px;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 850;
}

.staff-booking-actions {
  position: sticky;
  bottom: 12px;
  z-index: 3;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.staff-booking-action-message,
.job-edit-action-message {
  flex: 1 1 320px;
  margin: 0 auto 0 0;
  text-align: left;
}

.staff-booking-action-message:empty {
  display: none;
}

.inline-action-message {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.88rem;
}

.drivers-board {
  grid-template-columns: 1fr;
}

.cx-driver-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.cx-driver-report-card {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #fff;
}

.cx-driver-report-card span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cx-driver-report-card strong {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cx-driver-report-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.35;
}

.internal-driver-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.cx-supplier-directory {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.cx-supplier-table,
.cx-supplier-jobs-table {
  min-width: 1180px;
}

.cx-supplier-table {
  table-layout: fixed;
}

.cx-supplier-table th:nth-child(1) {
  width: 19%;
}

.cx-supplier-table th:nth-child(2) {
  width: 13%;
}

.cx-supplier-table th:nth-child(3) {
  width: 18%;
}

.cx-supplier-table th:nth-child(4) {
  width: 17%;
}

.cx-supplier-table th:nth-child(5) {
  width: 23%;
}

.cx-supplier-table th:nth-child(6) {
  width: 10%;
}

.cx-supplier-table tr.is-demo {
  opacity: 0.86;
}

.cx-supplier-table td {
  vertical-align: top;
}

.cx-supplier-table td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.cx-supplier-table input,
.cx-supplier-table textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 0.86rem;
  font-weight: 800;
}

.cx-supplier-table input {
  min-height: 34px;
  padding: 0 9px;
}

.cx-supplier-table textarea {
  min-height: 54px;
  padding: 8px 9px;
  resize: vertical;
}

.cx-supplier-table .cx-rating-control {
  width: max-content;
  min-width: 150px;
}

.cx-supplier-phone-cell,
.cx-supplier-rating-cell {
  min-width: 0;
}

.cx-supplier-phone-cell {
  display: grid;
  gap: 5px;
}

.cx-supplier-phone-cell .cx-phone-display {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.cx-supplier-table-wrap,
.cx-supplier-jobs-table-wrap {
  width: 100%;
}

.cx-supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.cx-supplier-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #f8fbff;
}

.cx-supplier-card.is-demo {
  border-style: dashed;
}

.cx-supplier-card-head {
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.cx-supplier-card-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.cx-supplier-card-head span,
.cx-supplier-fields span,
.cx-supplier-summary-grid span,
.cx-supplier-notes-row span,
.cx-supplier-rating-field > span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cx-supplier-card-head strong {
  color: var(--navy);
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.cx-supplier-card-head small,
.cx-supplier-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.cx-supplier-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cx-supplier-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.cx-supplier-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cx-supplier-field-box,
.cx-supplier-rating-field,
.cx-supplier-notes-row {
  display: grid;
  gap: 6px;
  min-width: 0;
  align-content: start;
  padding: 9px 10px;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  background: #fff;
}

.cx-supplier-field-box strong {
  color: var(--navy);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.cx-supplier-field-box small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.cx-phone-edit-box {
  grid-template-columns: minmax(0, 1fr);
}

.cx-phone-display {
  width: fit-content;
  font-size: 0.84rem;
}

.cx-supplier-rating-field {
  min-height: 92px;
}

.cx-supplier-fields input,
.cx-supplier-fields select,
.cx-supplier-fields textarea,
.cx-supplier-summary-grid input,
.cx-supplier-notes-row textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #fff;
}

.cx-supplier-summary-grid input {
  min-height: 36px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 800;
}

.cx-supplier-notes-row textarea {
  min-height: 86px;
}

.cx-rating-control {
  display: flex;
  gap: 4px;
  align-items: center;
  min-height: 40px;
  padding: 7px 8px;
  border: 1px solid #d9e5f6;
  border-radius: 8px;
  background: #fff;
}

.cx-rating-control button {
  display: inline-grid;
  width: 30px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: #b7c4d8;
  background: transparent;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.cx-rating-control button:hover,
.cx-rating-control button.is-on {
  color: #f5a623;
  background: #fff7e4;
}

.cx-rating-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.cx-static-stars {
  display: inline-flex;
  gap: 1px;
  color: #b7c4d8;
  font-size: 0.82rem;
  line-height: 1;
}

.cx-static-stars .is-on {
  color: #f5a623;
}

.reports-grid,
.settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.reports-grid {
  grid-template-columns: 1fr;
}

.reports-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.report-card {
  position: relative;
  width: 100%;
  border: 1px solid transparent;
  text-align: left;
}

.report-card.is-movable {
  padding-right: 64px;
}

.report-card.is-active {
  border-color: #007bff;
  box-shadow: 0 18px 38px rgba(0, 123, 255, 0.16);
}

.report-card strong {
  color: #007bff;
  font-size: 1.8rem;
  line-height: 1;
}

.report-detail-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  min-width: 0;
}

.report-detail-card .panel-head strong {
  color: #007bff;
  font-size: 1.5rem;
  line-height: 1;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.report-filter-bar {
  display: grid;
  grid-template-columns: repeat(3, auto) repeat(2, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  background: #f8fbff;
}

.report-filter-bar button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #d9e5f6;
  border-radius: 6px;
  color: var(--muted);
  background: #fff;
  font-weight: 900;
}

.report-filter-bar button.is-active {
  color: #fff;
  border-color: #075ef2;
  background: #075ef2;
}

.report-filter-bar label {
  display: grid;
  gap: 5px;
}

.report-filter-bar label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-booking-table {
  min-width: 980px;
}

.report-detail-table {
  min-width: 980px;
}

.report-detail-table small {
  display: block;
  margin-top: 4px;
  color: #6c757d;
  font-size: 0.74rem;
  font-weight: 800;
}

.booking-list,
.booking-detail {
  min-height: 680px;
  padding: 16px;
  overscroll-behavior: contain;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.list-head span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.booking-cards {
  display: grid;
  gap: 10px;
}

.booking-card {
  display: grid;
  gap: 9px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  background: #fff;
  text-align: left;
}

.booking-card:hover,
.booking-card.is-selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 120, 255, 0.1);
}

.booking-card-head,
.card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.booking-card-head strong {
  color: var(--navy);
}

.status-pill {
  min-height: 26px;
  padding: 4px 8px;
  border-radius: 8px;
  color: #0d3f78;
  background: #e5f2ff;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.awaiting-payment {
  color: #7a4b00;
  background: #fff0c2;
}

.status-pill.booked,
.status-pill.allocated,
.status-pill.driver-allocated {
  color: #0d3f78;
  background: #e5f2ff;
}

.status-pill.outstanding,
.status-pill.awaiting-payment {
  color: #7a4b00;
  background: #fff0c2;
}

.status-pill.overdue {
  color: #8b1e1e;
  background: #ffe2e2;
}

.status-pill.driver-en-route,
.status-pill.collected,
.status-pill.in-transit {
  color: #064a86;
  background: #dff0ff;
}

.status-pill.issue,
.status-pill.late {
  color: #8b1e1e;
  background: #ffe2e2;
}

.status-pill.cancelled {
  color: #8b1e1e;
  background: #ffe2e2;
}

.status-pill.completed,
.status-pill.pod-sent,
.status-pill.delivered {
  color: #0f5f43;
  background: #dcf8ec;
}

.payment-pill {
  display: inline-grid;
  min-height: 26px;
  place-items: center;
  border-radius: 999px;
  color: #0d3f78;
  background: #e5f2ff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 4px 8px;
  white-space: nowrap;
}

.payment-pill.paid {
  color: #0f5f43;
  background: #dcf8ec;
}

.payment-pill.awaiting-payment,
.payment-pill.send-payment-link,
.payment-pill.overdue {
  color: #7a4b00;
  background: #fff0c2;
}

.payment-link-inline {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.72rem;
}

.payment-pill.account-invoice {
  color: #5e6670;
  background: #eef2f7;
}

.payment-pill.failed,
.payment-pill.refunded {
  color: #8b1e1e;
  background: #ffe2e2;
}

.route {
  color: var(--navy);
  font-weight: 900;
  line-height: 1.35;
}

.customer-line,
.card-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-head {
  display: flex;
  gap: 14px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.reference {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 900;
}

.detail-head h2 {
  font-size: 1.28rem;
  line-height: 1.25;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.workflow {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(128px, 1fr);
  gap: 6px;
  max-width: 100%;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.workflow span {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbff;
  font-size: 0.72rem;
  font-weight: 900;
  text-align: center;
}

.workflow span.is-complete {
  color: #0f5f43;
  border-color: #b8ecd6;
  background: #e9fbf2;
}

.workflow span.is-current {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.management-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.detail-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-columns section,
.notes-grid section {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mini-rec strong {
  font-size: 1.08rem;
}

.mini-rec span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.notes-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.note-list {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.note-list p {
  margin-bottom: 0;
  overflow-wrap: anywhere;
}

.note-form {
  display: grid;
  gap: 10px;
}

.timeline {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding-left: 18px;
}

.timeline li::before {
  position: absolute;
  top: 6px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline span {
  margin: 3px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.timeline p {
  margin-bottom: 0;
  color: #35455e;
  line-height: 1.4;
}

.pod-list {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
}

.pod-list span {
  color: var(--muted);
}

.empty-state {
  display: grid;
  min-height: 260px;
  place-content: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.empty-state.compact {
  min-height: 180px;
}

.empty-state h2 {
  margin-bottom: 8px;
}

.empty-state p {
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .day-pricing-card.time-pricing-row,
  .ooh-rule-card.time-pricing-row,
  .pricing-rule-breakdown {
    grid-template-columns: 1fr;
  }

  .quote-shell {
    grid-template-columns: 1fr;
  }

  .quote-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-grid,
  .assistant-workspace,
  .portal-dashboard,
  .ops-control-grid,
  .ops-dashboard-layout,
  .job-page-head,
  .live-search-row,
  .live-filter-grid,
  .live-jobs-layout,
  .admin-dashboard-grid,
  .calendar-board,
  .portal-signin-shell,
  .portal-actions-grid,
  .portal-kpi-grid,
  .portal-detail-grid,
  .portal-rate-grid,
  .ops-summary-grid,
  .ops-toolbar.compact,
  .staff-booking-workspace,
  .vehicle-setting-card,
  .tracking-filter-bar,
  .tracking-card-grid,
  .tracking-two-column,
  .tracking-settings-grid,
  .tracking-progress-timeline,
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .assistant-panel,
  .fleet-panel,
  .staff-booking-right,
  .live-job-detail {
    position: static;
  }

  .booking-list,
  .booking-detail {
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nav-tabs {
    justify-content: start;
    overflow-x: auto;
  }

  .topbar-status {
    justify-content: start;
  }

  main {
    width: min(100% - 24px, 1480px);
    margin: 0 auto;
    padding: 16px 0 50px;
  }

  .section-head,
  .customer-hero,
  .portal-booking-banner,
  .detail-head,
  .admin-page-head,
  .portal-dashboard-head {
    display: grid;
  }

  .customer-hero h1 {
    font-size: 1.8rem;
  }

  .portal-login-panel h1,
  .portal-dashboard-head h1 {
    font-size: 1.8rem;
  }

  .quote-steps {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quote-steps span + span {
    margin-left: 0;
  }

  .quote-steps span + span::before {
    content: none;
  }

  .postcode-grid,
  .ready-fieldset,
  .postcode-summary,
  .service-tabs,
  .vehicle-ai-assist,
  .assistant-email-form,
  .selected-quote-strip,
  .vehicle-option-grid,
  .quote-side,
  .dimension-answer-grid,
  .loading-help-grid,
  .stride-checkout-grid,
  .account-charge-grid,
  .account-pricing-control-grid,
  .customer-profile-grid {
    grid-template-columns: 1fr;
  }

  .account-pricing-rule-note {
    grid-column: auto;
  }

  .customer-page-actions,
  .customer-import-status {
    display: grid;
    grid-template-columns: 1fr;
  }

  .customer-import-status p {
    grid-column: auto;
  }

  .stride-checkout-card {
    padding: 24px 18px;
  }

  .stride-checkout-head {
    display: grid;
  }

  .stride-checkout-head h1 {
    font-size: 1.65rem;
  }

  .postcode-grid label {
    display: grid;
  }

  .quote-entry-panel,
  .quote-summary-panel {
    padding: 24px 18px;
  }

  .section-head h1 {
    font-size: 1.55rem;
  }

  .two-col,
  .three-col,
  .four-col,
  .address-cards,
  .portal-row,
  .portal-row.invoice-row,
  .portal-filter-bar,
  .portal-actions-grid,
  .portal-kpi-grid,
  .portal-detail-grid,
  .portal-rate-grid,
  .ops-summary-grid,
  .quick-action-grid,
  .live-detail-actions,
  .live-timeline-item,
  .detail-grid-wide,
  .route-info-wide,
  .option-grid,
  .option-grid.compact,
  .staff-stop-grid,
  .surcharge-row,
  .ops-toolbar,
  .management-grid,
  .detail-columns,
  .notes-grid,
  .quote-ai-form,
  .assistant-chat,
  .vehicle-settings-fields,
  .pricing-preview-grid,
  .pricing-preview-results,
  .pricing-route-test-grid,
  .pricing-route-test-results,
  .pricing-engine-grid,
  .pricing-setup-grid,
  .zone-manager-layout,
  .zone-manager-full-page .zone-manager-layout,
  .zone-card-head,
  .zone-card-map-fields,
  .pricing-settings-grid,
  .pricing-example-list,
  .day-pricing-grid,
  .ooh-rules-grid,
  .ooh-rule-card,
  .manual-surcharge-grid,
  .manual-surcharge-card,
  .future-automation-grid,
  .tracking-filter-bar,
  .tracking-card-grid,
  .tracking-two-column,
  .tracking-settings-grid,
  .tracking-progress-timeline,
  .deadline-control,
  .pod-kpi-grid,
  .pod-search-toolbar,
  .staff-user-profile,
  .staff-permission-summary,
  .staff-role-grid,
  .email-template-layout,
  .email-preview-meta,
  .settings-detail-head,
  .workflow-stage-row,
  .workflow-rules-grid,
  .workflow-rule-row,
  .workflow-automation-grid,
  .cx-workflow-grid,
  .vat-settings-grid,
  .payment-settings-grid,
  .payment-action-grid,
  .notification-settings-grid,
  .notification-log-filters,
  .api-integration-grid,
  .system-health-grid,
  .health-guardian-summary,
  .cx-time-control-grid,
	  .cx-page-layout,
	  .cx-filter-panel,
	  .report-filter-bar,
	  .cx-posted-detail-header,
	  .cx-posted-detail-cards,
	  .cx-posted-detail-grid,
	  .cx-bid-compact-row,
	  .cx-bid-details,
	  .cx-margin-strip,
	  .cx-driver-report-grid,
	  .cx-supplier-fields,
	  .cx-supplier-summary-grid,
	  .cx-supplier-insight,
	  .cx-live-allocation-grid,
	  .live-address-grid,
	  .vat-calculation-preview {
    grid-template-columns: 1fr;
  }

  .health-guardian-overview {
    display: grid;
  }

  .vehicle-setting-head,
  .vehicle-settings-closed,
  .pricing-collapsed-summary,
  .pricing-engine-section-head,
  .pricing-setup-page-head,
  .customer-credit-alert,
  .settings-detail-head,
  .cx-page-head,
  .cx-selected-job,
  .customer-tracking-brand,
  .customer-tracking-head {
    display: grid;
  }

  .wide-field {
    grid-column: auto;
  }

  .pricing-map-placeholder {
    position: relative;
    top: auto;
    min-height: 270px;
  }

  .settings-card-actions,
  .settings-detail-actions,
  .vehicle-setting-actions,
  .cx-page-actions,
  .cx-bid-actions,
  .cx-bid-footer {
    justify-content: stretch;
  }

  .span-two,
  .span-three,
  .span-four {
    grid-column: auto;
  }

  .form-actions,
  .detail-actions {
    justify-content: stretch;
  }

  .form-actions button,
  .detail-actions button,
  .assistant-chat button,
  .portal-row-actions button,
  .portal-document-actions button,
  .portal-card-actions button,
  .settings-card-actions button,
  .settings-detail-actions button,
  .cx-page-actions button,
  .cx-page-actions a,
  .cx-bid-actions button,
  .cx-bid-actions a,
  .cx-bid-footer a,
  .cx-bid-action-buttons button,
  .vehicle-setting-actions button,
  .vehicle-settings-closed button,
  .portal-section-shortcuts button {
    width: 100%;
  }

  .staff-row-actions {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .admin-shell {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .admin-sidebar {
    position: sticky;
    top: 76px;
    padding: 8px;
  }

  .admin-nav button {
    width: auto;
    min-height: 36px;
    padding: 0 12px;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 20px, 1480px);
    padding-top: 16px;
  }

  .topbar {
    padding: 12px;
  }

  .booking-form,
  .assistant-console,
  .booking-list,
  .booking-detail {
    padding: 14px;
  }

  .nav-tab {
    padding: 0 11px;
  }
}
/* In-app document viewer used for collected-goods sheets and POD summaries. */
.document-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 24, 51, 0.72);
}

.document-preview-panel {
  width: min(980px, 96vw);
  height: min(860px, 92vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbdcf3;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(7, 24, 51, 0.28);
}

.document-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid #dce7f5;
  background: #f7faff;
  color: #10233e;
}

.document-preview-actions {
  display: flex;
  gap: 8px;
}

.document-preview-frame {
  width: 100%;
  min-height: 0;
  flex: 1;
  border: 0;
  background: #ffffff;
}

.cx-document-preview-panel {
  width: min(1080px, 96vw);
}

.cx-document-preview-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid #bfd1e8;
  border-radius: 50%;
  color: #0b2a55;
  background: #ffffff;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.cx-document-preview-close:hover,
.cx-document-preview-close:focus-visible {
  color: #ffffff;
  background: #1478ef;
}

.cx-document-preview-body {
  display: grid;
  min-height: 0;
  flex: 1;
  overflow: auto;
  place-items: center;
  background: #eef4fb;
}

.cx-document-preview-loading {
  color: #40536d;
  font-weight: 800;
}

.cx-document-preview-frame {
  height: 100%;
  min-height: 620px;
}

.cx-document-preview-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  padding: 18px;
}

.cx-company-profile-panel {
  width: min(920px, 96vw);
  max-height: min(820px, 92vh);
  overflow: hidden;
  border: 1px solid #bfd2ea;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(7, 24, 51, 0.30);
}

.cx-company-profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  background: linear-gradient(135deg, #0d2f51, #1267bd);
  color: #ffffff;
}

.cx-company-profile-header > div {
  display: grid;
  gap: 3px;
}

.cx-company-profile-header span,
.cx-company-profile-header small {
  color: #dcecff;
}

.cx-company-profile-header strong {
  font-size: 1.35rem;
}

.cx-company-profile-body {
  display: grid;
  gap: 16px;
  max-height: calc(92vh - 96px);
  overflow: auto;
  padding: 20px;
  color: #10233e;
  background: #f5f8fc;
}

.cx-company-profile-loading,
.cx-company-profile-error {
  margin: 0;
  padding: 26px;
  border: 1px solid #d7e4f2;
  border-radius: 12px;
  background: #ffffff;
  text-align: center;
  font-weight: 800;
}

.cx-company-profile-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.cx-company-profile-summary article,
.cx-company-profile-columns > section,
.cx-company-profile-feedback,
.cx-company-profile-stride-rating {
  border: 1px solid #d5e3f2;
  border-radius: 12px;
  background: #ffffff;
}

.cx-company-profile-summary article {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 106px;
  padding: 14px;
}

.cx-company-profile-summary span,
.cx-company-profile-feedback span,
.cx-company-profile-stride-rating span {
  color: #5b6f87;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.cx-company-profile-summary strong {
  color: #0d2f51;
  font-size: 1.05rem;
}

.cx-company-profile-feedback,
.cx-company-profile-stride-rating {
  display: grid;
  gap: 7px;
  padding: 14px 16px;
}

.cx-company-profile-api-note {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #f2cd78;
  border-radius: 10px;
  color: #694b06;
  background: #fff8df;
  font-weight: 700;
}

.cx-company-profile-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.cx-company-profile-columns > section {
  padding: 15px;
}

.cx-company-profile-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2eaf4;
}

.cx-company-profile-section-head span {
  display: grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: #1478ef;
  font-weight: 800;
}

.cx-company-profile-columns ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.cx-company-profile-columns li {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 8px;
  background: #f2f7fd;
}

.cx-company-profile-columns small {
  color: #60738a;
}

.cx-company-profile-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #596d85;
  font-size: 0.86rem;
  font-weight: 700;
}

@media (max-width: 760px) {
  .cx-company-profile-summary,
  .cx-company-profile-columns { grid-template-columns: 1fr; }
  .cx-company-profile-footer { align-items: stretch; flex-direction: column; }
}

@media (max-width: 640px) {
  .document-preview-overlay { padding: 8px; }
  .document-preview-panel { width: 100%; height: 96vh; }
  .document-preview-header { align-items: flex-start; flex-direction: column; }
  .cx-document-preview-header { flex-direction: row; }
  .cx-document-preview-frame { min-height: 72vh; }
}

.internal-notes-alert {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 14px 0;
  padding: 16px 18px;
  border: 2px solid #8f1111;
  border-radius: 12px;
  background: #c51f1f;
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(143, 17, 17, 0.22);
}

.internal-notes-alert[hidden] {
  display: none;
}

.internal-notes-alert strong {
  color: #ffffff;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.internal-notes-alert span,
.internal-notes-alert li {
  color: #ffffff;
  font-weight: 700;
  line-height: 1.45;
}

.internal-notes-alert ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 20px;
}

.staff-internal-notes-preview {
  grid-column: 1 / -1;
  margin: 0;
}

/* Keep every customer and staff date/time value and label black in Safari and other browsers. */
:root body input[type="date"],
:root body input[type="time"],
:root body input[type="datetime-local"],
:root body input[type="date"]::-webkit-datetime-edit,
:root body input[type="date"]::-webkit-datetime-edit-fields-wrapper,
:root body input[type="date"]::-webkit-datetime-edit-text,
:root body input[type="date"]::-webkit-datetime-edit-month-field,
:root body input[type="date"]::-webkit-datetime-edit-day-field,
:root body input[type="date"]::-webkit-datetime-edit-year-field,
:root body input[type="time"]::-webkit-datetime-edit,
:root body input[type="time"]::-webkit-datetime-edit-fields-wrapper,
:root body input[type="time"]::-webkit-datetime-edit-text,
:root body input[type="time"]::-webkit-datetime-edit-hour-field,
:root body input[type="time"]::-webkit-datetime-edit-minute-field,
:root body input[type="datetime-local"]::-webkit-datetime-edit,
:root body input[type="datetime-local"]::-webkit-datetime-edit-fields-wrapper,
:root body input[type="datetime-local"]::-webkit-datetime-edit-text,
:root body input[type="datetime-local"]::-webkit-datetime-edit-month-field,
:root body input[type="datetime-local"]::-webkit-datetime-edit-day-field,
:root body input[type="datetime-local"]::-webkit-datetime-edit-year-field,
:root body input[type="datetime-local"]::-webkit-datetime-edit-hour-field,
:root body input[type="datetime-local"]::-webkit-datetime-edit-minute-field,
:root body input[type="datetime-local"]::-webkit-datetime-edit-ampm-field {
  color: #111 !important;
  -webkit-text-fill-color: #111 !important;
}

:root body label:has(input[type="date"]) > span,
:root body label:has(input[type="time"]) > span,
:root body label:has(input[type="datetime-local"]) > span {
  color: #111 !important;
}

.cx-bid-popup-stack {
  position: fixed;
  z-index: 10000;
  top: 22px;
  right: 22px;
  display: grid;
  gap: 8px;
  width: min(340px, calc(100vw - 32px));
  pointer-events: none;
}

.cx-bid-popup {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 10px;
  padding: 12px 14px;
  border: 1px solid rgba(7, 94, 242, 0.22);
  border-left: 5px solid var(--blue);
  border-radius: 11px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 20px 52px rgba(6, 22, 79, 0.25);
  pointer-events: auto;
  animation: cx-bid-popup-in 180ms ease-out;
}

.cx-bid-popup-kicker,
.cx-bid-popup strong,
.cx-bid-popup p,
.cx-bid-popup small {
  grid-column: 1;
}

.cx-bid-popup-kicker {
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cx-bid-popup strong {
  font-size: 16px;
}

.cx-bid-popup p,
.cx-bid-popup small {
  margin: 0;
  color: #31405c;
  font-size: 12px;
  line-height: 1.25;
}

.cx-bid-popup-view {
  grid-column: 2;
  grid-row: 2 / span 3;
  align-self: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #ffffff;
  font-weight: 850;
}

.cx-bid-popup-close {
  position: absolute;
  top: 3px;
  right: 5px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #52617a;
  font-size: 20px;
  line-height: 1;
}

@keyframes cx-bid-popup-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 620px) {
  .cx-bid-popup-stack {
    top: 12px;
    right: 16px;
  }

  .cx-bid-popup {
    grid-template-columns: 1fr;
    padding-right: 38px;
  }

  .cx-bid-popup-view {
    grid-column: 1;
    grid-row: auto;
    margin-top: 7px;
  }
}
