/*
  Management screen styles, ported with the agency and platform screens from the passenger website (Prompt 05), so those screens keep
  working unchanged in the agency website. The aliases map the passenger stylesheet's variable names onto this site's palette in
  partner.css; loaded after it from _Layout.cshtml. New screens should prefer the components in partner.css.
*/
:root {
  --border-soft: var(--line);
  --border-input: var(--input-border);
  --text-strong: var(--text);
  --surface-muted: var(--page);
  --notice: var(--warning-bg);
  --notice-text: var(--warning-text);
  --brand-orange-dark: #E67C00;
}

.panel > form + form { margin-top: 0.75rem; }
.filter-bar .filter-grow { flex: 1 1 14rem; min-width: 0; }
.notification-unread { border-left: 4px solid var(--brand-blue); padding-left: 0.75rem; }
.notification-preferences th, .notification-preferences td { text-align: center; vertical-align: middle; }
.notification-preferences th:first-child, .notification-preferences td:first-child { text-align: left; }
.page-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.5rem; }
.page-header h1 { font-size: 1.625rem; margin: 0; overflow-wrap: anywhere; }
.page-eyebrow { color: var(--text-muted); font-size: 0.875rem; font-weight: 600; margin: 0 0 0.125rem; }
.section-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.625rem; margin-bottom: 0.75rem; }
.role-list { display: flex; flex-wrap: wrap; gap: 0.375rem; list-style: none; margin: 0; padding: 0; }
.role-chip, .status-chip { background: var(--tint); color: var(--tint-text); border-radius: 999px; padding: 0.1875rem 0.75rem; font-size: 0.8125rem; font-weight: 600; }
.permission-list { font-size: 0.875rem; color: var(--text-muted); }
.form-panel { max-width: 44rem; }
.filter-grow { flex: 1 1 14rem; min-width: 0; }
.row-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--border-soft); overflow-wrap: anywhere; }
.row-item:last-child { border-bottom: 0; }
.row-item > div:first-child { flex: 1 1 14rem; min-width: 0; }
.document-review { border-bottom: 1px solid var(--border-soft); }
.document-review:last-child { border-bottom: 0; }
.document-review .row-item { border-bottom: 0; }
.status-forms { display: grid; gap: 1rem; }
.stops-table input { min-width: 6.5rem; }
.stops-table td:first-child input { min-width: 11rem; }
.empty-state-icon { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--tint); color: var(--tint-text); margin-bottom: 0.75rem; }
.todo-marker { background: var(--notice); color: var(--notice-text); border-radius: 0.5rem; padding: 0.5rem 0.75rem; font-size: 0.875rem; font-weight: 500; }
.tracking-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.tracking-pill { display: inline-flex; align-items: center; gap: 0.375rem; border-radius: 999px; padding: 0.1875rem 0.75rem; font-size: 0.875rem; font-weight: 600; border: 2px solid transparent; }
.tracking-pill::before { content: ""; width: 0.625rem; height: 0.625rem; border-radius: 50%; background: currentColor; }
.tracking-pill-live { background: #E3F6EA; color: #0B5E2E; }
.tracking-pill-delayed { background: var(--notice); color: var(--notice-text); }
.tracking-pill-stale { background: var(--surface); color: var(--text-muted); border-color: var(--border-input); border-style: dashed; }
.tracking-pill-stale::before { background: transparent; border: 2px dashed currentColor; }
.tracking-pill-unavailable { background: #ECEFF4; color: var(--text-muted); }
.tracking-pill-unavailable::before { border-radius: 0; height: 0.1875rem; }
.tracking-simulated { background: var(--notice); color: var(--notice-text); border: 1px solid var(--brand-orange-dark); border-radius: 0.375rem; padding: 0.125rem 0.5rem; font-size: 0.8125rem; font-weight: 600; }
.tracking-connection { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.tracking-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 1rem; align-items: start; }
.tracking-map { height: 32rem; min-height: 20rem; border-radius: var(--radius); border: 1px solid var(--border-soft); background: var(--surface); }
.tracking-details { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.25rem 1rem; }
.tracking-details dt { font-weight: 600; }
.tracking-details dd { margin: 0; overflow-wrap: anywhere; }
.tracking-stops { padding-left: 1.25rem; }
.tracking-stops li { padding: 0.125rem 0; overflow-wrap: anywhere; }
@media (max-width: 62rem) { .tracking-layout { grid-template-columns: minmax(0, 1fr); } .tracking-map { height: 24rem; } }
.status-chip-sandbox { background: var(--notice); color: var(--notice-text); border: 1px solid var(--brand-orange-dark); margin-left: 0.375rem; }
.status-chip-booking-confirmed { background: #E3F6EA; color: #0B5E2E; }
.status-chip-booking-pending { background: var(--notice); color: var(--notice-text); }
.status-chip-booking-failed, .status-chip-booking-cancelled { background: #ECEFF4; color: var(--text-muted); }
.sandbox-payment { border: 2px dashed var(--brand-orange-dark); border-radius: var(--radius); padding: 1rem; background: var(--notice); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.plan-card { display: flex; flex-direction: column; gap: 0.75rem; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.25rem; min-width: 0; }
.plan-card-current { border: 2px solid var(--brand-blue); }
.plan-price { font-size: 1.5rem; font-weight: 700; margin: 0; }
.plan-features { list-style: none; padding: 0; margin: 0; }
.plan-features li { padding: 0.125rem 0; overflow-wrap: anywhere; }
.plan-feature-missing { color: var(--text-muted); text-decoration: line-through; }
.plan-card form { margin-top: auto; }
.status-chip-subscription-active, .status-chip-subscription-trialing { background: #E3F6EA; color: #0B5E2E; }
.status-chip-subscription-pastdue, .status-chip-subscription-cancelled { background: var(--notice); color: var(--notice-text); }
.status-chip-subscription-suspended, .status-chip-subscription-expired, .status-chip-subscription-none { background: #ECEFF4; color: var(--text-muted); }
.stat-tile { display: flex; flex-direction: column; gap: 0.25rem; background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 0.875rem 1rem; min-width: 0; }
.stat-value { font-size: 1.375rem; font-weight: 700; overflow-wrap: anywhere; }
.stat-label { color: var(--text-muted); font-size: 0.875rem; }
.report-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 0.25rem; }
.report-tabs .nav-link { white-space: nowrap; }
.report-table th, .report-table td { white-space: nowrap; }
.verified-chip { display: inline-flex; align-items: center; gap: 0.25rem; background: #E3F6EA; color: #0B5E2E; border-radius: 999px; padding: 0.125rem 0.625rem; font-size: 0.8125rem; font-weight: 600; }
.verified-chip::before { content: "\2713"; }
.reference-number { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 1.5rem; font-weight: 700; color: var(--brand-navy); letter-spacing: 0.04em; }
.setup-link-panel { border-color: var(--brand-orange); background: var(--notice); }
.status-chip-registration-approved, .status-chip-registration-activated { background: #E3F6EA; color: #0B5E2E; }
.status-chip-registration-rejected { background: #FDE7E7; color: #8A1C1C; }
.status-chip-registration-pending { background: var(--notice); color: var(--notice-text); }

/* Camera views: a calm 16:9 frame that never overflows the page. */
.camera-frame { background: var(--surface-sunken, #F4F6FA); border-radius: 0.75rem; overflow: hidden; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; padding: 0.5rem; }
.camera-picture { display: block; width: 100%; height: 100%; object-fit: contain; }
