html,
body {
  height: 100%;
  overflow: hidden;
}

:root {
  --brand: #8238c5;
  --brand-dark: #5f2494;
  --spectrum: linear-gradient(90deg, #6f2aa8 0%, #8238c5 54%, #a963dc 100%);
  --ink: #172033;
  --muted: #667085;
  --line: #e3ddec;
  --panel: #ffffff;
  --page: #faf8fc;
  --soft-red: #fff1f3;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.bg {
  height: 100vh;
  padding: 10px 0 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 8px;
  text-align: center;
  flex: 0 0 auto;
}

.brandLockup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  max-width: 100%;
  padding: 2px 0;
}

.brandLogo {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brandLogoPrima {
  width: 98px;
  max-height: 38px;
}

.brandLogoMansfield {
  width: 134px;
  max-height: 36px;
}

.brandDivider {
  width: 1px;
  height: 26px;
  background: #d9d1e5;
}

.wrap {
  width: min(1120px, calc(100vw - 24px));
  height: calc(100vh - 132px);
  margin: 0 auto;
  padding: 14px 20px 18px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #5f2494 0%, #8238c5 52%, #d9c5ef 100%) border-box;
  border: 3px solid transparent;
  border-radius: 28px;
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.09);
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
}

#fnolForm {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  width: 100%;
}

.sessionNote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  align-self: stretch;
  margin: 0 0 8px;
  padding: 6px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(223, 227, 234, 0.9);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.sessionLabel {
  flex: 1;
  min-width: 0;
}

.sessionActions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

.logoutLink {
  padding: 4px 10px;
  color: var(--brand-dark);
  background: rgba(130, 56, 197, 0.08);
  border: 1px solid rgba(130, 56, 197, 0.18);
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.logoutLink:hover {
  color: #fff;
  background: var(--spectrum);
  border-color: transparent;
}

.progress {
  flex: 0 0 auto;
  height: 7px;
  margin: 0 0 12px;
  overflow: hidden;
  background: #e8ecf3;
  border-radius: 999px;
}

.stepNav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
  padding: 8px 0 2px;
  position: sticky;
  top: 0;
  z-index: 3;
  background: linear-gradient(#fff, #fff);
}

.stepMarker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  color: var(--brand-dark);
  background: linear-gradient(#fff, #fff) padding-box, var(--spectrum) border-box;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.stepMarker span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  color: #fff;
  background: var(--spectrum);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

.stepMarker.current {
  color: #fff;
  background: var(--spectrum);
}

.stepMarker.current span {
  color: var(--brand-dark);
  background: #fff;
}

.stepMarker.complete {
  opacity: 0.95;
}

.stepMarker.locked {
  opacity: 0.45;
}

.progress b {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
  transition: width 0.2s ease;
}

.card {
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(23, 32, 51, 0.08);
}

.welcomeCard {
  max-width: 700px;
  margin: 0 auto;
}

.welcomeLead {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.welcomeCopy {
  margin: 0 0 18px;
  color: var(--muted);
}

.startFnolBtn {
  min-width: 180px;
  color: #fff !important;
  background: var(--spectrum) !important;
  border-color: transparent !important;
}

.startFnolBtn:hover {
  filter: brightness(1.05);
}

body.authPage {
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: auto;
  background:
    radial-gradient(circle at top, rgba(130, 56, 197, 0.12), transparent 36%),
    radial-gradient(circle at 20% 20%, rgba(197, 31, 69, 0.07), transparent 24%),
    var(--page);
}

body.authPage .bg {
  justify-content: center;
  min-height: 100vh;
  padding: 18px 0 22px;
}

body.authPage .brandLockup {
  min-height: 58px;
  margin-bottom: 8px;
}

body.authPage .brandLogoPrima {
  width: 112px;
  max-height: 42px;
}

body.authPage .brandLogoMansfield {
  width: 150px;
  max-height: 40px;
}

body.authPage .wrap {
  width: min(1260px, calc(100vw - 24px));
  height: auto;
  min-height: 0;
  flex: 0 0 auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body.authPage .authCard {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  border: 3px solid transparent;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(90deg, #6f2aa8 0%, #a963dc 100%) border-box;
  box-shadow: 0 18px 44px rgba(23, 32, 51, 0.12);
}

body.authPage .authBrand,
body.authPage .authAction {
  padding: 28px 34px;
}

body.authPage .authBrand {
  border-right: 0;
  background: #fff;
  text-align: center;
}

body.authPage .authBrand h1 {
  margin: 0 auto 8px;
  max-width: none;
  white-space: nowrap;
  font-size: clamp(18px, 1.9vw, 30px);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

body.authPage .authAction {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 0;
}

body.authPage .authAction .startFnolBtn {
  min-width: 220px;
  min-height: 52px;
  align-self: center;
}

body.authPage .authIntro {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 600;
}

.step {
  display: none;
}

.step.active {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding-right: 4px;
}

.stepVehicle.active {
  overflow: hidden;
  padding-right: 0;
}

.stepHeader {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.completionIndicator {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: auto;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.completionIndicator.complete {
  color: #166534;
  background: #edf9f1;
  border-color: #b7e2c2;
}

.completionIndicator.needs-attention {
  color: #9a3412;
  background: #fff7e6;
  border-color: #f3d19c;
}

.completionIndicator.not-started {
  color: var(--muted);
}

.accountNotice {
  align-self: flex-end;
  margin: 0 0 14px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.accountNotice.cash {
  border-color: rgba(148, 163, 184, 0.45);
}

.accountNotice.fleet {
  border-color: rgba(16, 185, 129, 0.35);
}

.accountNotice.assist {
  border-color: rgba(217, 70, 239, 0.35);
}

.adminPage .wrap {
  max-width: 1400px;
  min-height: 0;
  height: auto;
  padding-bottom: 12px;
}

.adminShell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: auto;
  overflow: visible;
}

.adminHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.adminForm {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.adminTabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px;
  border: 1px solid rgba(223, 227, 234, 0.9);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
}

.adminTab {
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.18s ease;
}

.adminTab.active {
  background: var(--spectrum);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 16px rgba(128, 45, 169, 0.18);
}

.adminTab:not(.active):hover {
  background: rgba(217, 70, 239, 0.08);
}

.adminPanels {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.adminPanel {
  display: none;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
  padding-top: 4px;
}

.adminPanel.active {
  display: flex;
  flex: 1;
  overflow: auto;
  padding-right: 4px;
}

.adminMiniForm {
  padding-top: 6px;
}

.adminActions {
  display: flex;
  justify-content: flex-end;
}

.adminModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 50;
  padding: 24px;
}

.adminModal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.adminModalCard {
  width: min(640px, 100%);
  max-height: 100%;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  border: 1px solid rgba(223, 227, 234, 0.95);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.25);
  padding: 16px;
}

.adminModalNarrow {
  width: min(560px, 100%);
  padding: 12px;
}

.adminModalHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.adminModalClose {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.08);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.adminTable {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 9px;
  border: 1px solid rgba(223, 227, 234, 0.95);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.adminTable th,
.adminTable td {
  padding: 3px 5px;
  border-bottom: 1px solid rgba(223, 227, 234, 0.85);
  border-right: 1px solid rgba(223, 227, 234, 0.55);
  vertical-align: top;
}

.adminTable th:last-child,
.adminTable td:last-child {
  border-right: 0;
}

.adminTable th:nth-child(5),
.adminTable td:nth-child(5) {
  width: 180px;
}

.adminTable th:nth-child(6),
.adminTable td:nth-child(6) {
  width: 84px;
}

.adminTable th:nth-child(7),
.adminTable td:nth-child(7) {
  width: 160px;
}

.adminTable th:nth-child(8),
.adminTable td:nth-child(8) {
  width: 78px;
}

.adminTable td:nth-child(5) .adminInlineBadges {
  overflow: hidden;
}

.adminTable td:nth-child(7) .tableValue {
  max-width: 100%;
}

.adminTable th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  color: var(--muted);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.adminTable input[type="text"],
.adminTable input[type="number"],
.adminTable textarea {
  width: 100%;
}

.adminTable textarea {
  min-height: 28px;
  resize: none;
}

.adminInlineChecks {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.adminInlineChecks .adminCheck {
  gap: 3px;
  font-size: 9px;
  white-space: nowrap;
}

.adminTable input[type="checkbox"] {
  width: 12px;
  height: 12px;
  transform: none;
  accent-color: var(--brand-dark);
  margin: 0;
}

.warrantyTable {
  table-layout: fixed;
  font-size: 10px;
  border: 1px solid rgba(148, 163, 184, 0.75);
  border-radius: 8px;
}

.warrantyTable th,
.warrantyTable td {
  padding: 2px 4px;
  white-space: nowrap;
  vertical-align: middle;
  border: 1px solid rgba(223, 227, 234, 0.95);
}

.warrantyTable input {
  width: 100%;
  height: 24px;
  padding: 2px 6px;
  font-size: 11px;
}

.warrantyTable .rowEditBtn {
  min-height: 24px;
  padding: 2px 6px;
  font-size: 10px;
}

.warrantyTable th:nth-child(2),
.warrantyTable td:nth-child(2) {
  width: 105px;
}

.warrantyTable th:nth-child(3),
.warrantyTable td:nth-child(3) {
  width: 62px;
}

.warrantyActions {
  gap: 8px;
  margin-top: 10px;
}

.faultSearchResults {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  margin: 10px 0;
}

.faultResult {
  min-height: 0;
  padding: 10px;
  display: block;
  text-align: left;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d8dee9;
  border-radius: 10px;
}

.faultResult b,
.faultResult span {
  display: block;
}

.faultResult span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.adminCheck input[type="checkbox"],
.adminModal input[type="checkbox"] {
  width: 12px;
  height: 12px;
  transform: none;
  accent-color: var(--brand-dark);
  margin: 0;
}

.adminTable td {
  vertical-align: middle;
}

.adminTableScroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: calc(100vh - 320px);
}

.adminTable td:nth-child(2),
.adminTable td:nth-child(3),
.adminTable td:nth-child(4),
.adminTable td:nth-child(7),
.adminTable td:nth-child(8),
.adminTable td:nth-child(9) {
  white-space: nowrap;
}

.tableValue {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tableNote {
  max-width: 180px;
}

.statusBadge,
.flagBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  border: 1px solid transparent;
}

.statusBadge.on,
.flagBadge.on {
  background: rgba(16, 185, 129, 0.12);
  color: #0f7a55;
  border-color: rgba(16, 185, 129, 0.18);
}

.statusBadge.off,
.flagBadge.off {
  background: rgba(148, 163, 184, 0.10);
  color: #64748b;
  border-color: rgba(148, 163, 184, 0.18);
}

.adminInlineBadges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.rowEditBtn {
  min-width: 56px;
  height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(217, 70, 239, 0.22);
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.adminCenter {
  text-align: center;
}

.adminCheck {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

.adminCheck input[type="checkbox"] {
  width: 12px;
  height: 12px;
  accent-color: var(--brand-dark);
  margin: 0;
}

body.adminPage {
  overflow: hidden;
}

body.adminPage .bg {
  height: 100vh;
  overflow: hidden;
}

body.adminPage .wrap {
  height: calc(100vh - 148px);
  overflow: hidden;
}

body.adminPage .adminShell {
  height: 100%;
  overflow: hidden;
}

body.adminPage .adminTableScroll {
  max-height: none;
  overflow: auto;
}

.stepHeader span {
  display: none;
}

.stepHeader span.completionIndicator {
  display: inline-flex;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 0;
  color: var(--ink);
}

label {
  display: block;
  margin: 12px 0 6px;
  color: #2d3748;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfd6e1;
  border-radius: 8px;
  font: inherit;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(214, 9, 47, 0.16);
  border-color: var(--brand);
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  color: #fff;
  background: var(--spectrum);
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, filter 0.16s ease;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
  filter: saturate(1.05) brightness(1.04);
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.btn.secondary,
button.secondary {
  color: var(--ink);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--spectrum) border-box;
  border: 1px solid transparent;
}

.btn.secondary:hover,
button.secondary:hover {
  color: var(--ink);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--spectrum) border-box;
}

.actionRow button.secondary[onclick="goBack()"],
.actionRow button.historyBack {
  color: var(--ink);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--spectrum) border-box;
  border: 1px solid transparent;
  box-shadow: none;
  font-weight: 700;
}

.actionRow button.secondary[onclick="goBack()"]:hover,
.actionRow button.historyBack:hover {
  color: var(--ink);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--spectrum) border-box;
}

.actionRow button.secondary[onclick="restartFnol()"] {
  color: var(--muted);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--spectrum) border-box;
  border: 1px solid transparent;
  box-shadow: none;
  font-weight: 600;
}

.actionRow button.secondary[onclick="restartFnol()"]:hover {
  color: var(--brand-dark);
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--spectrum) border-box;
  transform: none;
}

.muted {
  color: var(--muted);
}

.hide {
  display: none !important;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choiceGrid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 12px;
}

.choiceGrid .tile {
  white-space: nowrap;
}

#step7 .choiceGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

#step7 .choiceGrid .tile {
  min-width: 0;
  min-height: 82px;
  height: auto;
  white-space: normal;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#step7 .choiceGrid .tile input {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  #step7 .choiceGrid {
    grid-template-columns: 1fr;
  }
}

.tile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.tile input {
  width: auto;
  min-height: 0;
}

.tile:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.08);
}

.tile.disabled {
  position: relative;
  cursor: not-allowed;
  opacity: 0.52;
}

.tile.disabled:hover {
  border-color: var(--line);
  box-shadow: none;
}

.tile.disabled[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translate(-50%, -100%);
  z-index: 20;
  width: min(460px, calc(100vw - 48px));
  padding: 10px 14px;
  color: #fff;
  background: rgba(23, 32, 51, 0.96);
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.24);
  font-size: 12px;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  pointer-events: none;
}

.dangerTile {
  background: var(--soft-red);
}

.scriptBox,
.banner,
.lookupBox,
.selectedLocationBox,
.summaryBox {
  padding: 12px 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.lookupCard {
  margin-top: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(223, 227, 234, 0.9);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.lookupCard.ok {
  border-color: rgba(34, 197, 94, 0.32);
}

.lookupCard.warn {
  border-color: rgba(245, 158, 11, 0.32);
}

.lookupCard.confirmed {
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 18px 46px rgba(34, 197, 94, 0.12);
}

.lookupCard.needs-review {
  border-color: rgba(225, 29, 72, 0.55);
  box-shadow: 0 18px 46px rgba(225, 29, 72, 0.12);
}

.lookupCard .lookupTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.lookupCard .lookupTitle h3 {
  margin: 0;
  font-size: 18px;
}

.lookupCard .lookupStatus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.lookupCard .lookupStatus.ok {
  color: #166534;
  background: #ecfdf3;
}

.lookupCard .lookupStatus.bad {
  color: #b42318;
  background: #fef3f2;
}

.lookupCardGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.customerAddressBox {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(223, 227, 234, 0.9);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.addressSuggestions {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}

.addressSuggestions.hide {
  display: none;
}

.addressSuggestion {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(223, 227, 234, 0.9);
  background: #fff;
  color: var(--ink);
  box-shadow: none;
}

.addressSuggestion:hover {
  background: rgba(246, 239, 253, 0.95);
}

.customerAddressHeader {
  margin-bottom: 10px;
}

.customerAddressHeader span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.customerAddressHeader strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
}

.customerAddressBox iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 12px;
}

.lookupField {
  padding: 8px 10px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(223, 227, 234, 0.85);
  border-radius: 12px;
}

.lookupField span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.lookupField b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 15px;
}

.lookupHint {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 600;
}

.lookupActions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.lookupActions button {
  min-width: 0;
}

.lookupDecision {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 46px;
  padding: 4px 8px;
  color: #fff;
  border: 0;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.lookupDecision span {
  display: block;
  line-height: 1;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 900;
}

.lookupDecision small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lookupDecision.yes {
  background: #19c963;
}

.lookupDecision.no {
  background: #f43b46;
}

.lookupDecision:hover {
  transform: translateY(-2px);
}

.lookupDecision:active {
  transform: translateY(0);
}

.lookupActions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 18px;
}

.lookupActions button {
  max-width: 100%;
}

.vehicleContinue {
  display: block;
  margin: 12px 0 0 auto;
  min-width: 150px;
}

.scriptBox {
  font-size: 17px;
}

.banner {
  margin: 16px 0;
}

.banner.info {
  background: #eef6ff;
  border-color: #bdd7f5;
}

.banner.warn {
  background: #fff7e6;
  border-color: #f3d19c;
}

.axCashStoragePrompt {
  margin-bottom: 16px;
  padding: 18px 20px;
  border-width: 2px;
  font-size: 16px;
}

.axCashStoragePrompt b {
  display: block;
  margin-bottom: 6px;
  font-size: 19px;
}

.axCashStoragePrompt p {
  margin: 0;
  line-height: 1.5;
}

.banner.ok {
  background: #edf9f1;
  border-color: #b7e2c2;
}

.banner.danger,
.modal.critical .box {
  background: var(--soft-red);
  border-color: rgba(214, 9, 47, 0.25);
}

.completenessBanner {
  margin-bottom: 14px;
}

.completenessBanner strong {
  display: block;
  margin-bottom: 4px;
}

.completenessBanner ul {
  margin: 6px 0 0 18px;
  padding: 0;
}

.summarySection {
  margin: 0 0 14px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.summarySectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #faf8fc;
  border-bottom: 1px solid var(--line);
}

.summarySectionHeader h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.summaryEditButton {
  min-width: 0;
  padding: 5px 11px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid rgba(130, 56, 197, 0.28);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.summaryEditButton:hover {
  color: #fff;
  background: var(--spectrum);
  border-color: transparent;
}

.summarySection table {
  width: 100%;
  border-collapse: collapse;
}

.summarySection th,
.summarySection td {
  padding: 8px 12px;
  border-bottom: 1px solid #f0edf4;
  text-align: left;
  vertical-align: top;
}

.summarySection tr:last-child th,
.summarySection tr:last-child td {
  border-bottom: 0;
}

.summarySection th {
  width: 34%;
  color: var(--muted);
  font-size: 12px;
}

.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px;
  background:
    linear-gradient(#fff, #fff) padding-box,
    var(--spectrum) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
}

.segmented button {
  min-height: 38px;
  color: var(--brand-dark);
  background: transparent;
  border-color: transparent;
}

.segmented button.active {
  color: #fff;
  background: var(--spectrum);
  border-color: transparent;
}

.taxiCashTransfer,
.taxiBookingPanel {
  margin-top: 16px;
}

.taxiCashTransfer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.taxiCashTransfer p,
.taxiBookingPanel p {
  margin: 3px 0 0;
  color: var(--muted);
}

.taxiIcon {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #fff;
  background: var(--spectrum);
  border-radius: 14px;
  font-weight: 900;
}

.taxiBookingPanel {
  padding: 20px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(107, 47, 147, 0.06), transparent 38%),
    #f8fafc;
  border: 1px solid #d9e0ea;
  border-radius: 20px;
}

.taxiBookingHead,
.taxiSectionTitle,
.taxiConfirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.taxiBookingHead h3,
.taxiProviderCard h3 {
  margin: 2px 0 0;
}

.taxiEyebrow,
.taxiProviderTag,
.taxiStatus {
  color: #7b1f72;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.taxiStatus {
  flex: 0 0 auto;
  padding: 7px 11px;
  color: #334155;
  background: #fff;
  border: 1px solid #d8dee8;
  border-radius: 999px;
  letter-spacing: 0;
}

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

.travelServiceGrid {
  margin-top: 18px;
}

.travelServiceCard {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  margin: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
  cursor: pointer;
}

.travelServiceCard:has(input:checked) {
  background: #faf6ff;
  border-color: #8238c5;
  box-shadow: 0 0 0 2px rgba(130, 56, 197, 0.08);
}

.travelServiceCard input {
  width: 20px;
  min-height: 20px;
  margin: 0;
}

.travelServiceCard > span:last-child {
  display: flex;
  flex-direction: column;
}

.travelServiceCard small {
  color: var(--muted);
  font-weight: 500;
}

.travelServiceIcon {
  display: grid;
  flex: 0 0 46px;
  place-items: center;
  height: 40px;
  color: #fff;
  background: #172033;
  border-radius: 11px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.travelBookingSection,
.taxiPassengerCard {
  margin-top: 18px;
  padding: 16px;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.05);
}

.taxiRouteCard {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
}

.taxiRouteMarker {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding-top: 34px;
}

.taxiRouteMarker i {
  display: block;
  width: 10px;
  height: 10px;
  background: #fff;
  border: 3px solid #7b1f72;
  border-radius: 50%;
}

.taxiRouteMarker i:last-child {
  background: var(--brand);
  border-color: var(--brand);
  border-radius: 3px;
}

.taxiRouteMarker b {
  width: 2px;
  height: 66px;
  background: repeating-linear-gradient(to bottom, #c7ced9 0 4px, transparent 4px 8px);
}

.taxiRouteFields label:first-child {
  margin-top: 0;
}

.taxiDestinationChoice {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.taxiDestinationChoice .segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.taxiDestinationChoice .segmented button {
  color: #5f2494;
  background: #faf6ff;
  border: 2px solid #8238c5;
  box-shadow: 0 5px 14px rgba(95, 36, 148, .14);
}

.taxiDestinationChoice .segmented button:hover {
  color: #fff;
  background: #8238c5;
}

.taxiDestinationChoice .segmented button.active {
  color: #fff;
  background: var(--spectrum);
  border-color: transparent;
}

.taxiDetailsGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 6px;
}

.taxiSectionTitle span,
.taxiConfirmation span {
  color: var(--muted);
  font-size: 13px;
}

.taxiPassengerCard textarea,
.travelBookingSection textarea {
  min-height: 72px;
}

.taxiNotice {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid;
  border-radius: 12px;
}

.taxiNoticeWarn {
  color: #6b4500;
  background: #fff8e8;
  border-color: #efd393;
}

.taxiProviderGrid {
  margin-top: 16px;
}

.taxiProviderGrid.single {
  grid-template-columns: 1fr;
}

.taxiProviderCard {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  min-height: 190px;
  padding: 18px;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 16px;
}

.taxiProviderTag.fallback {
  color: #9a5700;
}

.taxiProviderLink {
  width: 100%;
  margin-top: auto;
}

.cmacBookingStatus {
  width: 100%;
  margin: 14px 0 10px;
  padding: 10px 12px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #dfe5ee;
  border-radius: 10px;
  font-weight: 700;
}

.cmacQuoteResult {
  display: flex;
  width: 100%;
  flex-direction: column;
  margin-bottom: 12px;
  padding: 14px;
  color: #14532d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

.cmacQuoteResult span,
.cmacQuoteResult small {
  color: #475569;
}

.cmacBookingActions {
  display: block;
  width: 100%;
}

.cmacBookingActions button {
  width: 100%;
}

.cmacInlineBooking {
  margin-top: 12px;
  padding: 16px;
  background: #faf6ff;
  border: 2px solid #8238c5;
  border-radius: 14px;
}

.cmacInlineBookingRow {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.cmacInlineBooking .cmacBookingStatus {
  margin: 0;
  padding: 10px 12px;
}

.cmacInlineBookingRow button {
  min-width: 220px;
}

.cmacInlineBookingRow .cmacBookPrimary {
  padding: 15px 22px;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(160, 17, 122, .22);
}

.cmacInlineBooking .cmacFallback {
  margin-top: 10px;
  padding-top: 10px;
}

.cmacFallback {
  width: 100%;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

.cmacFallback summary {
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
}

.cmacFallback .taxiProviderLink {
  margin-top: 10px;
}

.cmacConfirmationBadge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.cmacConfirmationBadge.pending {
  color: #92400e;
  background: #fef3c7;
}

.cmacConfirmationBadge.confirmed {
  color: #166534;
  background: #dcfce7;
}

.cmacBooked .travelBookingSection,
.cmacBooked .taxiPassengerCard {
  background: #f8fafc;
}

.taxiConfirmation {
  margin-top: 16px;
  padding: 15px;
  background: #fff;
  border: 1px solid #dfe5ee;
  border-radius: 14px;
}

.taxiConfirmation > div:first-child {
  display: flex;
  flex-direction: column;
}

body.onwardTravelModalOpen {
  overflow: hidden;
}

.onwardTravelModal {
  z-index: 60;
  padding: 18px;
}

.modal.onwardTravelModal .box.onwardTravelModalBox {
  width: min(1400px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  padding: 22px;
  overflow-y: auto;
}

.onwardTravelModalHead {
  position: sticky;
  z-index: 2;
  top: -22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: -22px -22px 8px;
  padding: 18px 22px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.onwardTravelModalHead h2 {
  margin: 2px 0 0;
}

.onwardTravelModalHeadActions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.onwardTravelModalClose {
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
}

.onwardTravelIntro {
  margin: 0 0 14px !important;
}

.taxiConfirmationWrap .taxiConfirmation {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.taxiConfirmationWrap .taxiConfirmation .taxiOpenButton {
  width: min(440px, 100%);
  min-height: 58px;
  grid-column: 1 / -1;
  justify-self: center;
  font-size: 18px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(160, 17, 122, .24);
}

.onwardTravelModalActions {
  justify-content: flex-end;
}

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

.onwardTravelModal .taxiPassengerCard .taxiDetailsGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.onwardRouteMap {
  min-height: 300px;
  margin-top: 16px;
  overflow: hidden;
  background: #eef2f7;
  border: 1px solid #d7dee8;
  border-radius: 14px;
}

.onwardRouteMap iframe {
  display: block;
  width: 100%;
  height: 300px;
  border: 0;
}

.onwardRouteMapPlaceholder {
  display: grid;
  min-height: 300px;
  padding: 24px;
  place-items: center;
  color: var(--muted);
  text-align: center;
}

.onwardRouteMapLink {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
}

#cmacBookedMessage {
  width: 100%;
  color: #166534;
  background: #f0fdf4;
  border-color: #86efac;
}

.cmacTestPage .wrap {
  width: min(1540px, calc(100% - 32px));
  max-width: none;
}

.cmacTestHero,
.cmacTestHeroActions,
.cmacTestCardHead,
.cmacTestCardHead > div,
.cmacTestResultHead {
  display: flex;
  align-items: center;
}

.cmacTestHero {
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 22px 26px;
  color: #fff;
  background: linear-gradient(120deg, #111827 0%, #34203e 65%, #7b1f72 100%);
  border-radius: 20px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
}

.cmacTestHero h1 {
  margin: 3px 0 5px;
}

.cmacTestHero p {
  margin: 0;
  color: #e5e7eb;
}

.cmacTestEyebrow {
  color: #d9c5ef;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.cmacTestHeroActions {
  gap: 10px;
}

.cmacTestHeroActions .btn {
  margin: 0;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}

.cmacTestEnvironment {
  padding: 9px 12px;
  color: #111827;
  background: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

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

.cmacTestForm,
.cmacTestResults {
  display: grid;
  gap: 16px;
}

.cmacTestCard,
.cmacTestResultCard {
  padding: 20px;
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
}

.cmacTestCardHead,
.cmacTestResultHead {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.cmacTestCardHead > div {
  gap: 10px;
}

.cmacTestCardHead span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #fff;
  background: var(--spectrum);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 900;
}

.cmacTestCardHead h2,
.cmacTestResultCard h2 {
  margin: 0;
  font-size: 19px;
}

.cmacTestCardHead small {
  color: var(--muted);
  text-align: right;
}

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

.cmacTestMap {
  display: grid;
  min-height: 300px;
  margin-top: 16px;
  overflow: hidden;
  place-items: center;
  color: var(--muted);
  background: #edf2f7;
  border: 1px solid #d8e0ea;
  border-radius: 14px;
  text-align: center;
}

.cmacTestMap iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.cmacTestMapLink {
  display: inline-block;
  margin-top: 10px;
  font-weight: 800;
}

.cmacCapacityMessage {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.cmacTestActionsCard {
  position: sticky;
  bottom: 12px;
  z-index: 3;
}

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

.cmacTestActionButtons button {
  width: 100%;
  margin: 0;
}

.cmacTestResults {
  position: sticky;
  top: 14px;
}

#cmacTestStatusBadge {
  padding: 7px 10px;
  color: #475569;
  background: #e2e8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

#cmacTestStatusBadge.connected {
  color: #166534;
  background: #dcfce7;
}

#cmacTestStatusBadge.failed {
  color: #991b1b;
  background: #fee2e2;
}

.cmacTestStatus,
.cmacTestResultEmpty {
  margin-top: 12px;
  color: var(--muted);
}

.cmacTestResult h3 {
  margin: 12px 0 8px;
}

.cmacTestResult pre,
#cmacTestPayload {
  max-height: 360px;
  margin: 10px 0 0;
  padding: 14px;
  overflow: auto;
  color: #dbeafe;
  background: #111827;
  border-radius: 12px;
  font: 12px/1.55 Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}

.cmacTestResult.success h3 {
  color: #166534;
}

.cmacTestResult.danger h3 {
  color: #991b1b;
}

@media (max-width: 1050px) {
  .cmacTestLayout {
    grid-template-columns: 1fr;
  }

  .cmacTestResults {
    position: static;
  }
}

@media (max-width: 760px) {
  .cmacTestHero,
  .cmacTestHeroActions,
  .cmacTestCardHead {
    align-items: flex-start;
    flex-direction: column;
  }

  .cmacTestRequirements,
  .cmacTestActionButtons {
    grid-template-columns: 1fr;
  }

  .cmacTestCardHead small {
    text-align: left;
  }
}

.cmacSimpleConsole {
  width: min(1080px, 100%);
  margin: 0 auto;
}

.cmacTestHeroSimple {
  width: min(1080px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.cmacSimpleCard {
  padding: 24px;
}

.cmacSimpleHeading {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cmacSimpleHeading > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--spectrum);
  border-radius: 10px;
  font-weight: 900;
}

.cmacSimpleHeading h2,
.cmacSimpleHeading p {
  margin: 0;
}

.cmacSimpleHeading p {
  color: var(--muted);
  font-size: 13px;
}

.cmacSimpleHeadingSpaced {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid #e2e8f0;
}

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

.cmacSimpleCard .cmacTestMap {
  min-height: 230px;
}

.cmacSimpleCard .cmacTestMap iframe {
  height: 230px;
}

.cmacSimpleCard .cmacTestActionButtons {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.cmacSimpleStatus {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 13px;
  background: #f8fafc;
  border-radius: 10px;
}

.cmacSimpleStatus .cmacTestStatus {
  margin: 0;
}

.cmacSimpleResultCard {
  margin-top: 16px;
}

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

.cmacSimpleResultGrid > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

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

.cmacTechnicalDetails {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.cmacTechnicalDetails summary {
  cursor: pointer;
  font-weight: 800;
}

.cmacTechnicalDetails h3 {
  margin: 16px 0 6px;
  font-size: 14px;
}

.cmacTechnicalDetails pre {
  max-height: 260px;
}

@media (max-width: 760px) {
  .cmacSimpleCard .cmacTestRequirements,
  .cmacSimpleResultGrid {
    grid-template-columns: 1fr;
  }

  .cmacSimpleStatus {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .onwardTravelModal {
    padding: 8px;
  }

  .modal.onwardTravelModal .box.onwardTravelModalBox {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    padding: 16px;
  }

  .onwardTravelModalHead {
    top: -16px;
    margin: -16px -16px 8px;
    padding: 14px 16px;
  }

  .taxiDetailsGrid,
  .onwardTravelModal .taxiDetailsGrid,
  .onwardTravelModal .taxiPassengerCard .taxiDetailsGrid,
  .cmacInlineBookingRow,
  .taxiConfirmationWrap .taxiConfirmation {
    grid-template-columns: 1fr;
  }
}

.warrantyGuide {
  margin: 16px 0;
  padding: 14px 16px;
  color: #2d3748;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.warrantyGuide p {
  margin: 8px 0 12px;
  color: var(--muted);
}

.warrantyGuideGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.warrantyGuide ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.warrantyGuide li {
  margin: 4px 0;
}

.counter {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  gap: 8px;
}

.counter input {
  text-align: center;
}

.counter button {
  padding: 0;
}

.vrn,
.miniVrn {
  font-weight: 800;
  font-family: "Arial Black", "Impact", system-ui, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.vrn {
  padding: 18px 20px;
  color: #111;
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: 0.14em;
  background: linear-gradient(180deg, #ffe64d 0%, #ffd500 100%);
  border: 2px solid #222;
  border-radius: 10px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28), 0 10px 24px rgba(15, 23, 42, 0.08);
}

.vrn::placeholder {
  color: rgba(17, 17, 17, 0.45);
}

.vrn.invalid {
  border-color: #e11d48;
  outline: 3px solid rgba(225, 29, 72, 0.15);
  background: #fff7f8;
}

.vrn.valid {
  border-color: #16a34a;
  outline: 3px solid rgba(22, 163, 74, 0.12);
}

.locationSearchRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

#step8.card {
  padding: 12px;
}

#step8 .banner,
#step8 .selectedLocationBox,
#step8 .livePanel {
  margin-top: 8px;
  margin-bottom: 8px;
}

.locationMapRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  align-items: stretch;
}

.locationMap {
  display: grid;
  min-height: 210px;
  margin: 8px 0;
  place-items: center;
  background: #eef1f6;
  border: 1px dashed #b8c0cc;
  border-radius: 8px;
}

.locationSmsPanel {
  margin: 8px 0;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.locationMap iframe {
  width: 100%;
  min-height: 210px;
  border: 0;
  border-radius: 8px;
}

.locationMap > div:not(.mapPlaceholder) {
  width: 100%;
  min-height: 210px;
  border-radius: 8px;
}

.mapPlaceholder {
  color: var(--muted);
  text-align: center;
}

.livePanel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
  padding: 16px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.smsModal {
  backdrop-filter: blur(8px);
  background: rgba(15, 23, 42, 0.42);
}

.smsModal.hide {
  display: none;
}

.smsModalBox {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  width: min(980px, calc(100vw - 32px));
  max-width: none;
}

.modal .box.smsModalBox {
  width: min(980px, calc(100vw - 32px));
  max-width: none;
}

.smsStatusGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.smsStatusGrid div {
  padding: 14px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.smsStatusGrid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.smsStatusGrid b {
  display: block;
  margin-top: 6px;
  color: var(--ink);
}

.damageStencil {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  min-height: 180px;
  margin: 12px 0;
  padding: 12px;
  background: #f8fafc;
  border: 1px dashed #b8c0cc;
  border-radius: 8px;
}

.damageZone {
  min-height: 44px;
  padding: 10px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.damageZone.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.smallCard {
  margin-top: 16px;
  box-shadow: none;
}

.emailBig {
  color: var(--brand-dark);
  font-size: 20px;
  font-weight: 800;
}

.actionRow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
}

.actionRow button {
  min-width: 126px;
}

.actionRow button:not(.secondary) {
  margin-left: auto;
  min-width: 150px;
}

.actionRow button:only-child {
  margin-left: auto;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.modal .box {
  width: min(620px, 100%);
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.24);
}

.pac-container {
  z-index: 99999 !important;
}

.modalActions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.modalActions button {
  min-width: 150px;
}

.incidentReasonTile {
  cursor: pointer;
  align-items: flex-start;
  min-height: 106px;
}

.fieldRequired {
  color: #6f2aa8;
  font-weight: 900;
}

.fieldOptional {
  color: #6b7280;
  font-size: .88em;
  font-weight: 600;
}

.incidentReasonText {
  display: grid;
  gap: 6px;
}

.incidentReasonText strong {
  color: #21152d;
  font-size: 15px;
  line-height: 1.3;
}

.incidentReasonText small {
  color: #5d6470;
  font-size: 12px;
  line-height: 1.45;
}

.incidentDetailModal {
  z-index: 70;
  background: rgba(27, 15, 45, 0.68);
  backdrop-filter: blur(4px);
}

.incidentDetailModal .incidentDetailBox {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 28px;
  border: 2px solid rgba(130, 56, 197, 0.28);
  border-radius: 18px;
}

.incidentDetailHeading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.incidentDetailEyebrow {
  color: #6f2aa8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}

.incidentDetailHeading h2 {
  margin: 6px 0 0;
  color: #171122;
}

.incidentDetailClose {
  display: grid;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  color: #5f2494;
  background: #f5effa;
  border: 1px solid #d9c1ec;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
}

.incidentSubreasonOptions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.incidentSubreasonOption {
  display: flex;
  width: 100%;
  min-height: 68px;
  padding: 14px 16px;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  color: #21152d;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.incidentSubreasonOption:hover,
.incidentSubreasonOption.active {
  background: #fbf7ff;
  border-color: #8238c5;
  box-shadow: 0 8px 20px rgba(95, 36, 148, .12);
}

.incidentSubreasonOption span {
  font-weight: 800;
}

.incidentSubreasonOption small {
  color: #5d6470;
  font-size: 13px;
  line-height: 1.4;
}

.incidentSubreasonError {
  margin-top: 10px;
  color: #b42318;
  font-size: 13px;
  font-weight: 800;
}

.incidentDetailActions {
  justify-content: flex-end;
}

@media (max-width: 600px) {
  .incidentDetailModal .incidentDetailBox {
    padding: 21px;
  }
}

.modal.noFleetDecisionModal{z-index:80;background:rgba(10,16,30,.78);backdrop-filter:blur(7px)}
.modal.noFleetDecisionModal .noFleetDecisionBox{width:min(920px,calc(100vw - 32px));max-height:calc(100vh - 32px);overflow-y:auto;padding:38px;border:2px solid #8238c5;border-radius:20px;box-shadow:0 32px 100px rgba(0,0,0,.38)}
.noFleetEyebrow{margin:0 0 8px;color:#5f2494;font-size:12px;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.noFleetDecisionBox h1{max-width:780px;margin:0;color:#111827;font-size:clamp(28px,4vw,44px);line-height:1.08;letter-spacing:-.035em}
.noFleetPhoneWarning{display:flex;align-items:center;gap:18px;margin:24px 0;padding:18px 20px;color:#7c2d12;background:#fff7ed;border:2px solid #fb923c;border-radius:13px}
.noFleetPhoneWarning strong{flex:0 0 auto;font-size:17px;letter-spacing:.035em}
.noFleetPhoneWarning span{color:#7c2d12;font-weight:700;line-height:1.4}
.noFleetDecisionChoices{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.noFleetChoice{display:flex;min-height:180px;padding:24px;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;border-radius:15px;box-shadow:0 10px 25px rgba(15,23,42,.1)}
.noFleetChoice>span{display:grid;width:42px;height:42px;margin-bottom:14px;place-items:center;background:rgba(255,255,255,.85);border-radius:50%;font-size:16px;font-weight:900;text-transform:uppercase}
.noFleetChoice strong{font-size:22px;line-height:1.15}.noFleetChoice small{margin-top:8px;font-size:14px;line-height:1.45}
.noFleetCashChoice{color:#172033;background:#f8fafc;border:2px solid #94a3b8}.noFleetCashChoice:hover{background:#eef2f7;border-color:#475569}
.noFleetAssistChoice{color:#fff;background:linear-gradient(125deg,#5f2494,#8238c5);border:2px solid #6f2aa8}.noFleetAssistChoice:hover{filter:brightness(1.06);transform:translateY(-1px)}
.noFleetAssistChoice small{color:#fff}.noFleetAssistChoice>span{color:#6f2aa8}
#motorAssistLinePanel label{margin-top:4px;font-size:18px}#motorAssistOverrideLine{min-height:58px;font-size:16px;font-weight:750}
.noFleetLineError{margin-top:8px;color:#b42318;font-size:13px;font-weight:800}.noFleetLineActions{justify-content:flex-end}.noFleetLineActions button:last-child{min-width:260px}
@media(max-width:700px){.modal.noFleetDecisionModal .noFleetDecisionBox{padding:23px}.noFleetDecisionChoices{grid-template-columns:1fr}.noFleetChoice{min-height:135px}.noFleetPhoneWarning{align-items:flex-start;flex-direction:column;gap:6px}}

.modal.critical .box {
  background: var(--soft-red);
  border-color: rgba(214, 9, 47, 0.25);
}

@media (max-width: 760px) {
  .bg {
    height: auto;
    min-height: 100vh;
  }

  body.authPage .bg {
    padding: 12px 0 16px;
  }

  .top,
  .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wrap {
    width: calc(100vw - 16px);
    height: auto;
    min-height: calc(100vh - 122px);
  }

  body.authPage .wrap {
    width: calc(100vw - 16px);
    min-height: 0;
  }

  body.authPage .authCard {
    grid-template-columns: 1fr;
  }

  body.authPage .authBrand {
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 22px 20px 16px;
  }

  body.authPage .authAction {
    padding: 22px 20px 24px;
  }

  body.authPage .authAction .startFnolBtn {
    width: 100%;
    align-self: stretch;
  }

  .card {
    padding: 14px;
  }

  .brandLockup {
    gap: 8px;
  }

  .brandLogoPrima {
    width: 82px;
    max-height: 32px;
  }

  .brandLogoMansfield {
    width: 108px;
    max-height: 30px;
  }

  .stepHeader,
  .livePanel {
    align-items: flex-start;
    flex-direction: column;
  }

  .stepNav {
    gap: 6px;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .taxiBookingHead,
  .taxiConfirmation {
    align-items: flex-start;
    flex-direction: column;
  }

  .travelServiceGrid,
  .taxiDetailsGrid,
  .taxiProviderGrid {
    grid-template-columns: 1fr;
  }

  .taxiProviderCard {
    min-height: 165px;
  }

  .warrantyGuideGrid {
    grid-template-columns: 1fr;
  }

  .lookupCardGrid,
  .lookupActions {
    grid-template-columns: 1fr;
  }

  .lookupDecision {
    min-height: 52px;
  }

  .actionRow {
    display: grid;
    grid-template-columns: 1fr;
  }

  .actionRow button,
  .actionRow button:not(.secondary),
  .actionRow button:only-child {
    width: 100%;
    margin-left: 0;
  }
}


.rtcOperatorGrid {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.rtcQuestions,
.rtcDamagePanel {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.rtcQuestions h3,
.rtcDamagePanel h3 {
  margin: 0 0 4px;
}

.damageCanvasWrap {
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}

#damageCanvas {
  display: block;
  width: 100%;
  height: auto;
  min-height: 260px;
  touch-action: none;
  cursor: crosshair;
}

.damageToolbar {
  display: flex;
  justify-content: flex-end;
  margin: 10px 0;
}

@media (max-width: 980px) {
  .rtcOperatorGrid {
    grid-template-columns: 1fr;
  }
}


#step10.step.active {
  overflow: hidden;
}

#step10 .rtcOperatorGrid {
  flex: 1 1 auto;
  min-height: 0;
}

#step10 .rtcQuestions {
  max-height: calc(100vh - 250px);
  overflow-y: auto;
  padding-right: 12px;
}

#step10 .rtcDamagePanel {
  position: sticky;
  top: 0;
}

#step10 textarea {
  min-height: 76px;
}

#step10 .actionRow {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  #step10.step.active {
    overflow-y: auto;
  }

  #step10 .rtcQuestions {
    max-height: none;
    overflow: visible;
  }

  #step10 .rtcDamagePanel {
    position: static;
  }
}


#step10 {
  gap: 12px;
}

#step10 .rtcOperatorGrid {
  max-height: calc(100vh - 330px);
  overflow: hidden;
}

#step10 .rtcQuestions {
  max-height: 100%;
  padding-bottom: 18px;
}

#step10 .actionRow {
  position: relative;
  z-index: 3;
  margin-top: 0;
  padding-top: 14px;
  background: #fff;
  border-top: 1px solid var(--line);
}


.grid.three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .grid.three {
    grid-template-columns: 1fr;
  }
}


.detailModal .box {
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}


#step10 .compactQuestionRow {
  align-items: end;
  margin-top: 8px;
}

#step10 .compactQuestionRow label {
  margin-top: 0;
}

#step10 .driveableDecision {
  margin-top: 20px;
  padding: 22px;
  border: 2px solid var(--brand);
  border-radius: 14px;
  background: linear-gradient(135deg, #faf6ff, #ffffff);
  box-shadow: 0 10px 26px rgba(95, 36, 148, 0.12);
  text-align: center;
}

#step10 .driveableDecision h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

#step10 .driveableDecision p {
  margin: 0 0 16px;
}

#step10 .driveableDecision .segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}

#step10 .driveableDecision .segmented button {
  min-height: 62px;
  font-size: 17px;
  font-weight: 800;
}

@media (max-width: 640px) {
  #step10 .driveableDecision .segmented { grid-template-columns: 1fr; }
}


#rtcDetailsModal .box {
  width: min(900px, calc(100vw - 32px));
}


#step10 .rtcOperatorGrid {
  grid-template-columns: 1fr;
}

#step10 .rtcQuestions {
  max-height: none;
  overflow: visible;
}

.damageModalBox {
  width: min(1120px, calc(100vw - 32px)) !important;
  max-width: none !important;
}

.damageModalGrid {
  display: grid;
  grid-template-columns: minmax(320px, 0.8fr) minmax(420px, 1.2fr);
  gap: 18px;
  align-items: start;
}

.modalDamagePanel {
  position: static !important;
}

@media (max-width: 900px) {
  .damageModalGrid {
    grid-template-columns: 1fr;
  }
}

.adminModalCard.adminModalNarrow {
  width: min(760px, 96vw);
  padding: 10px;
}

.adminModalNarrow .adminModalHead {
  margin-bottom: 6px;
}

.adminModalNarrow .adminModalHead h2 {
  font-size: 18px;
}

.adminModalNarrow .warrantyTable {
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
}

.adminModalNarrow .warrantyTable th,
.adminModalNarrow .warrantyTable td {
  height: 22px;
  padding: 1px 3px;
  border: 1px solid #cfd6e1;
  white-space: nowrap;
}

.adminModalNarrow .warrantyTable input {
  min-height: 0;
  height: 20px;
  padding: 1px 4px;
  border-radius: 0;
  font-size: 10px;
}

.adminModalNarrow .warrantyTable .rowEditBtn {
  min-height: 0;
  height: 20px;
  padding: 0 6px;
  border-radius: 0;
  font-size: 9px;
}

.adminModalNarrow .warrantyActions button {
  min-height: 28px;
  padding: 0 10px;
  font-size: 11px;
}

.emailBuilderGrid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
}

.emailBuilder aside {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 16px;
}

.emailBlockPalette button {
  width: 100%;
  margin: 0 0 8px 0;
}

.emailCanvas {
  min-height: 220px;
  border: 2px dashed #d1d5db;
  border-radius: 16px;
  padding: 12px;
  margin-top: 14px;
  background: #f9fafb;
}

.emailBlock {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 12px;
  cursor: grab;
}

.emailBlockHead,
.emailRow {
  display: flex;
  align-items: center;
  gap: 10px;
}

.emailBlockHead {
  justify-content: space-between;
  margin-bottom: 10px;
}

.emailRow {
  margin-bottom: 8px;
}

.emailRow input {
  flex: 1;
}

.emailRow select {
  flex: 1;
}

.emailRemoveRow {
  width: auto;
  min-height: 40px;
}

.emailPreviewFrame {
  width: 100%;
  min-height: 520px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  margin-top: 14px;
}

.small {
  font-size: 12px;
}

@media (max-width: 900px) {
  .emailBuilderGrid {
    grid-template-columns: 1fr;
  }
}
.customerPrivacyNotice{margin-top:22px;text-align:left;border-top:1px solid #e2e8f0;padding-top:16px;color:#475569;font-size:13px;line-height:1.5}
.customerPrivacyNotice summary{cursor:pointer;color:#0f172a;font-weight:800}
.customerPrivacyNotice p{font-size:13px;margin:10px 0 0}

/* Mass Apex uploader */
body.massApexPage{background:#f3f5f9;color:#182133}
body.massApexPage .bg{height:auto;min-height:100vh;background:linear-gradient(180deg,#121c2d 0 188px,#f3f5f9 188px)}
body.massApexPage .top{display:none}
body.massApexPage .wrap{width:min(1500px,calc(100vw - 48px));height:auto;min-height:100vh;padding:28px 0 52px}
.massApexShell{display:grid;gap:20px}
.massApexHeader{display:flex;align-items:center;justify-content:space-between;gap:30px;color:#fff}
.massBack{display:inline-block;margin-bottom:22px;color:#aebbd0;font-size:13px;font-weight:800;text-decoration:none}
.massEyebrow{margin:0 0 5px;color:#65d6c8;font-size:11px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}
.massApexHeader h1{margin:0;font-size:clamp(32px,4vw,52px);line-height:1;letter-spacing:-.035em}
.massLead{max-width:720px;margin:12px 0 0;color:#c7d0de;font-size:15px}
.massUser{display:flex;align-items:center;gap:11px;min-width:310px;padding:12px 14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:12px}
.massUserAvatar{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;background:#8238c5;border-radius:10px;font-weight:900}
.massUser>span:nth-child(2){display:flex;min-width:0;flex:1;flex-direction:column}
.massUser small{color:#aebbd0;font-size:10px}
.massUser strong{overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.massUser a{color:#fff;font-size:12px;font-weight:800}
.massUser>strong{min-width:0;flex:1;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.massSummary{display:grid;grid-template-columns:repeat(3,150px);width:max-content;overflow:hidden;background:#fff;border:1px solid #e0e5ec;border-radius:14px;box-shadow:0 14px 34px rgba(15,23,42,.08)}
.massSummary>div{display:flex;align-items:center;gap:12px;min-height:78px;padding:14px 22px;border-right:1px solid #e7eaf0}
.massSummary>div:not(.massBatchStatus){flex-direction:column;align-items:flex-start;justify-content:center;gap:0}
.massSummary span{color:#172033;font-size:25px;font-weight:900;line-height:1}
.massSummary small{display:block;margin-top:5px;color:#6a7485;font-size:11px;font-weight:700}
.massSummary .massBatchStatus{justify-content:flex-end;border:0}
.massBatchStatus i{width:9px;height:9px;background:#f59e0b;border-radius:50%;box-shadow:0 0 0 5px #fff5d9}
.massBatchStatus span{font-size:13px}
.massPanel{overflow:hidden;background:#fff;border:1px solid #dfe4ec;border-radius:16px;box-shadow:0 16px 42px rgba(15,23,42,.08)}
.massToolbar,.massFooter{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 22px}
.massToolbar{border-bottom:1px solid #e5e8ee}
.massToolbar:has(.massActions:only-child){justify-content:flex-end}
.massToolbar h2{margin:0;font-size:19px}
.massToolbar p,.massFooter p{margin:4px 0 0;color:#6a7485;font-size:12px}
.massActions{display:flex;gap:9px}
.massActions .btn,.massPastePanel .btn,.massResults .btn{min-height:38px;padding:8px 13px;border-radius:8px;font-size:12px}
.massPastePanel{padding:18px 22px;background:#f7f9fc;border-bottom:1px solid #e4e8ef}
.massPastePanel label{margin:0 0 9px;font-size:12px}
.massPastePanel textarea{min-height:95px;background:#fff;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.massPastePanel>div{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.massTableWrap{overflow:auto}
.massTable{width:100%;min-width:1700px;border-collapse:collapse;table-layout:fixed}
.massTable th{padding:11px 10px;color:#687386;background:#f7f8fb;border-bottom:1px solid #dfe4eb;text-align:left;font-size:10px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.massTable th:nth-child(1){width:42px;text-align:center}.massTable th:nth-child(2){width:150px}.massTable th:nth-child(3){width:180px}.massTable th:nth-child(4){width:130px}.massTable th:nth-child(5){width:130px}.massTable th:nth-child(6),.massTable th:nth-child(7){width:250px}.massTable th:nth-child(8){width:240px}.massTable th:nth-child(9){width:175px}.massTable th:nth-child(10){width:110px}.massTable th:nth-child(11){width:46px}
.massTable td{padding:8px 6px;border-bottom:1px solid #edf0f4;vertical-align:top}
.massTable td:first-child{padding-top:19px;color:#8a94a3;text-align:center;font-size:11px;font-weight:800}
.massTable input,.massTable textarea{width:100%;min-height:40px;margin:0;padding:9px 10px;background:#fff;border:1px solid #d8dee7;border-radius:7px;box-shadow:none;font-size:12px;line-height:1.35;resize:vertical}
.massTable input:focus,.massTable textarea:focus{border-color:#7754c7;outline:3px solid rgba(119,84,199,.11)}
.massTable .massReg{font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.massTable tr.rowError input{border-color:#e34b62}
.massStatus{padding-top:15px!important}
.massStatus span{display:inline-block;padding:5px 8px;color:#7a8493;background:#f0f2f5;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}
.massStatus span.ready{color:#087d5f;background:#e5f8f2}.massStatus span.sent{color:#087d5f;background:#dff7ef}.massStatus span.error{color:#bd1f3b;background:#ffeaee}
.massDelete{width:30px;min-height:30px;margin-top:4px;padding:0;color:#7d8795;background:transparent;border:0;border-radius:6px;box-shadow:none;font-size:20px}
.massDelete:hover{color:#bf2140;background:#fff0f2}
.massFooter{background:#fbfcfd}
.massSend{min-width:285px;min-height:52px;padding:9px 20px;color:#fff;background:linear-gradient(110deg,#5f2494,#8238c5);border:0;border-radius:9px;box-shadow:0 8px 18px rgba(107,44,160,.2)}
.massSend span,.massSend small{display:block}.massSend span{font-weight:900}.massSend small{margin-top:2px;color:rgba(255,255,255,.75);font-size:9px}
.massSend:disabled{color:#7a8493;background:#e5e8ed;box-shadow:none;cursor:not-allowed}.massSend:disabled small{color:#99a1ad}
.massResults{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:17px 20px;background:#e9faf5;border:1px solid #bce9da;border-radius:12px}
.massResults>div{display:flex;align-items:center;gap:12px}.massResults>div>span:last-child{display:flex;flex-direction:column}.massResults small{margin-top:3px;color:#557067}
.massResultIcon{display:grid;width:38px;height:38px;place-items:center;color:#fff;background:#11a879;border-radius:50%;font-weight:900}
.massPreviewTable td{padding:12px 10px;color:#263247;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.massPreviewTable .massJobNumber{font-weight:900}.massPreviewTable .jobSuccess{color:#087d5f}.massPreviewTable .jobError{color:#bd1f3b}
@media(max-width:850px){
  body.massApexPage .wrap{width:calc(100vw - 24px);padding-top:18px}
  .massApexHeader{align-items:flex-start;flex-direction:column}.massUser{width:100%;margin:0}.massSummary{grid-template-columns:repeat(3,1fr)}.massSummary .massBatchStatus{display:none}
  .massToolbar,.massFooter,.massResults{align-items:stretch;flex-direction:column}.massActions{display:grid;grid-template-columns:1fr 1fr}.massSend{width:100%}
}

/* Compact uploader layout */
body.massApexPage{background:#edf0f5}
body.massApexPage .bg{min-height:100vh;background:radial-gradient(circle at 15% 0,rgba(113,66,173,.11),transparent 27%),#edf0f5}
body.massApexPage .wrap{width:calc(100vw - 24px);max-width:1800px;min-height:100vh;padding:12px 0 24px}
.massApexShell{gap:10px}
.massApexHeader{min-height:66px;padding:10px 14px 10px 18px;background:linear-gradient(110deg,#141d2e,#242d42 64%,#40255e);border:1px solid rgba(255,255,255,.08);border-radius:12px;box-shadow:0 8px 22px rgba(18,27,44,.18)}
.massApexHeader h1{font-size:25px;letter-spacing:-.025em}
.massUser{min-width:285px;padding:7px 9px;background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.1);border-radius:8px}
.massUserAvatar{flex-basis:30px;width:30px;height:30px;border-radius:7px;font-size:12px}
.massSummary{grid-template-columns:repeat(3,105px);border:0;border-radius:10px;box-shadow:0 4px 14px rgba(15,23,42,.07)}
.massSummary>div{min-height:52px;padding:8px 14px;border-color:#e8ebf0}
.massSummary span{font-size:19px}
.massSummary small{margin-top:2px;font-size:9px;letter-spacing:.04em;text-transform:uppercase}
.massPanel{border-color:#d9dee7;border-radius:11px;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.massToolbar,.massFooter{min-height:52px;padding:9px 12px}
.massToolbar{background:#fafbfc;border-color:#e2e6ec}
.massToolbar>strong{font-size:13px}
.massActions{gap:7px}
.massBatchAccount{display:flex;align-items:center;gap:8px;margin:0;color:#4f5b6d;font-size:10px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.massBatchAccount input{width:260px;min-height:32px;margin:0;padding:6px 9px;background:#fff;border:1px solid #cfd6e1;border-radius:6px;font-size:12px;text-transform:none}
.massBatchAccount input:focus{border-color:#7142ad;outline:2px solid rgba(113,66,173,.1)}
.massActions .btn,.massPastePanel .btn,.massResults .btn{min-height:32px;padding:6px 10px;border-radius:7px;font-size:11px}
.massPastePanel{padding:10px 12px;background:#f3f5f9}
.massPastePanel textarea{min-height:72px;border-radius:7px;font-size:11px}
.massPastePanel>div{margin-top:7px}
.massTableWrap{max-height:calc(100vh - 260px);background:#fff}
.massTable{min-width:1320px}
.massTable th{position:sticky;top:0;z-index:2;padding:8px 7px;color:#596477;background:#f1f3f7;border-color:#dce1e9;font-size:9px;letter-spacing:.07em}
.massTable th:nth-child(1){width:34px}.massTable th:nth-child(2){width:125px}.massTable th:nth-child(3){width:105px}.massTable th:nth-child(4){width:110px}.massTable th:nth-child(5),.massTable th:nth-child(6){width:205px}.massTable th:nth-child(7){width:200px}.massTable th:nth-child(8){width:145px}.massTable th:nth-child(9){width:88px}.massTable th:nth-child(10){width:36px}
.massTable td{padding:4px;border-color:#edf0f4}
.massTable tbody tr:nth-child(even){background:#fafbfc}
.massTable tbody tr:hover{background:#f5f2fa}
.massTable td:first-child{padding-top:13px;font-size:9px}
.massTable input,.massTable textarea{min-height:32px;height:32px;padding:6px 7px;background:rgba(255,255,255,.88);border-color:#d6dce5;border-radius:5px;font-size:11px;resize:none}
.massTable textarea:focus{height:58px;resize:vertical}
.massTable input:focus,.massTable textarea:focus{border-color:#7142ad;outline:2px solid rgba(113,66,173,.1)}
.massStatus{padding-top:9px!important}
.massStatus span{padding:4px 7px;font-size:9px}
.massDelete{width:26px;min-height:26px;margin-top:3px;font-size:17px}
.massFooter{background:#f7f8fa;border-top:1px solid #e1e5eb}
.massFooter>span{color:#697486;font-size:10px;font-weight:800}
.massSend{min-width:190px;min-height:38px;padding:7px 15px;border-radius:7px;box-shadow:0 6px 14px rgba(107,44,160,.18);font-size:11px}
.massPreviewTable td{padding:8px 7px;font-size:10px}
.massPreviewTable th:last-child{width:130px}
.massResults{padding:10px 12px;border-radius:9px}
@media(max-width:850px){
  body.massApexPage .wrap{width:calc(100vw - 16px);padding-top:8px}
  .massApexHeader{min-height:0;padding:12px;gap:10px}.massApexHeader h1{font-size:22px}.massUser{min-width:0}
  .massSummary{width:100%;grid-template-columns:repeat(3,1fr)}.massSummary>div{align-items:center!important}
  .massToolbar,.massFooter{flex-direction:row}.massTableWrap{max-height:calc(100vh - 250px)}
}

/* Prevent full-height grid stretching */
body.massApexPage .wrap{min-height:0;padding-top:8px}
.massApexShell{align-content:start;grid-auto-rows:max-content;gap:7px}
.massApexHeader{min-height:50px;padding:7px 10px 7px 14px;border-radius:9px}
.massApexHeader h1{color:#fff;font-size:20px}
.massUser{min-width:260px;padding:5px 7px}
.massUserAvatar{flex-basis:26px;width:26px;height:26px}
.massSummary{grid-template-columns:repeat(3,88px);border-radius:8px}
.massSummary>div{min-height:42px;padding:6px 11px}
.massSummary span{font-size:16px}
.massSummary small{font-size:8px}
.massToolbar,.massFooter{min-height:42px;padding:6px 9px}
.massBatchAccount input{width:220px;min-height:29px;height:29px}
.massActions .btn,.massPastePanel .btn,.massResults .btn{min-height:29px;padding:4px 9px}
.massTableWrap{min-height:0;max-height:calc(100vh - 205px)}
.massTable th{padding:6px}
.massTable td{padding:3px}
.massTable td:first-child{padding-top:11px}
.massTable input,.massTable textarea{min-height:29px;height:29px;padding:4px 6px}
.massStatus{padding-top:7px!important}
.massDelete{margin-top:1px}
.massFooter .massSend{min-height:34px}
.massBatchFields{display:flex;align-items:center;gap:12px}
.massBatchFields label{display:flex;align-items:center;gap:7px;margin:0;color:#4f5b6d;font-size:9px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.massBatchFields input,.massBatchFields select{width:190px;min-height:29px;height:29px;margin:0;padding:5px 8px;background:#fff;border:1px solid #cfd6e1;border-radius:6px;font-size:11px;text-transform:none}
.massBatchFields input:focus,.massBatchFields select:focus{border-color:#7142ad;outline:2px solid rgba(113,66,173,.1)}
.massBatchFields select:disabled{color:#8b94a2;background:#f2f4f7}
.massAutocomplete{position:relative;display:inline-block}
.massOptions{position:absolute;top:calc(100% + 4px);left:0;z-index:30;width:290px;max-height:250px;overflow:auto;padding:4px;background:#fff;border:1px solid #d7dce5;border-radius:8px;box-shadow:0 14px 35px rgba(15,23,42,.18)}
.massOptions button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:34px;padding:7px 9px;color:#263247;text-align:left;background:transparent;border:0;border-radius:5px;box-shadow:none;font-size:11px}
.massOptions button:hover{background:#f3eef9}
.massOptions button strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.massOptions button small{flex:0 0 auto;color:#7b8492;font-size:9px}
.massTable{min-width:1180px}
.massTable th:nth-child(1){width:34px}.massTable th:nth-child(2){width:125px}.massTable th:nth-child(3){width:110px}.massTable th:nth-child(4),.massTable th:nth-child(5){width:205px}.massTable th:nth-child(6){width:200px}.massTable th:nth-child(7){width:145px}.massTable th:nth-child(8){width:88px}.massTable th:nth-child(9){width:36px}
body.massModalOpen{overflow:hidden}
.massPreviewModal{position:fixed;inset:0;z-index:100;display:flex;align-items:center;justify-content:center;padding:22px;background:rgba(12,18,30,.62);backdrop-filter:blur(5px)}
.massPreviewModal.hide{display:none}
.massPreviewDialog{display:flex;flex-direction:column;width:min(1480px,calc(100vw - 44px));max-height:calc(100vh - 44px);overflow:hidden;background:#fff;border:1px solid #d8dee8;border-radius:12px;box-shadow:0 28px 90px rgba(0,0,0,.3)}
.massPreviewDialog .massTableWrap{max-height:calc(100vh - 160px);overflow:auto}
.massPreviewDialog .massFooter{flex:0 0 auto}
.massPreviewDialog .massFooter>strong{color:#263247;font-size:11px}
.massPreviewTable{min-width:1080px}
.massPreviewTable th:nth-child(1){width:34px}.massPreviewTable th:nth-child(2){width:125px}.massPreviewTable th:nth-child(3){width:110px}.massPreviewTable th:nth-child(4),.massPreviewTable th:nth-child(5){width:205px}.massPreviewTable th:nth-child(6){width:200px}.massPreviewTable th:nth-child(7){width:145px}.massPreviewTable th:nth-child(8){width:130px}
@media(max-width:850px){
  .massBatchFields{align-items:stretch;flex:1;flex-direction:column;gap:5px}.massBatchFields label{justify-content:space-between}.massBatchFields input,.massBatchFields select{width:65%}
  .massPreviewModal{padding:8px}.massPreviewDialog{width:calc(100vw - 16px);max-height:calc(100vh - 16px)}
}
.massTable{min-width:1280px}
.massTable th:nth-child(1){width:34px}.massTable th:nth-child(2){width:110px}.massTable th:nth-child(3){width:100px}.massTable th:nth-child(4){width:100px}.massTable th:nth-child(5){width:130px}.massTable th:nth-child(6),.massTable th:nth-child(7){width:190px}.massTable th:nth-child(8){width:130px}.massTable th:nth-child(9){width:180px}.massTable th:nth-child(10){width:75px}.massTable th:nth-child(11){width:36px}
.massPreviewTable{min-width:1180px}
.massPreviewTable th:nth-child(1){width:34px}.massPreviewTable th:nth-child(2){width:110px}.massPreviewTable th:nth-child(3){width:100px}.massPreviewTable th:nth-child(4){width:100px}.massPreviewTable th:nth-child(5){width:130px}.massPreviewTable th:nth-child(6),.massPreviewTable th:nth-child(7){width:190px}.massPreviewTable th:nth-child(8){width:130px}.massPreviewTable th:nth-child(9){width:180px}.massPreviewTable th:nth-child(10){width:130px}
