/* ==========================================================================
   Smart Trivandrum — vehicleowner (septage license holder) module.
   Built on top of styles.css + vocommon.css tokens/primitives, and reuses
   appuser.css primitives (.form-grid, .btnRegister, .status-pill, .booking-table,
   .kv-grid, .spinner-wrap, .hist-card, .status-banner) wherever they already fit —
   this file only adds what those two don't already cover.
   Bootstrap-free: no .row/.col-md-*/.box*/.table.table-bordered/.btn.btn-* survive
   in migrated markup — see the plan's migration table.
   ========================================================================== */

/* ---- Extra form-grid column (appuser.css only ships span-1(6)/full(12)) ---- */
.form-col-4 { grid-column: span 1; }
.form-grid.form-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .form-grid.form-grid-3 { grid-template-columns: 1fr; }
}

/* ---- Filter / search panel (replaces .box.box-primary + .box-header/.box-body/.box-footer) ---- */
.vo-filter-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); margin: 0 0 24px; overflow: hidden;
}
.vo-filter-card-head {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
}
.vo-filter-card-head i { color: var(--teal); }
.vo-filter-card-body { padding: 20px; }
.vo-filter-card-foot { padding: 14px 20px; border-top: 1px solid var(--line); background: var(--bg-soft); display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Compact document table (Septage/Water Vehicle Documents) ---- */
.vo-doc-table th, .vo-doc-table td { padding: 8px 12px; font-size: 13px; }
.vo-doc-table th { font-size: 11.5px; }
.vo-doc-table .btnRegister { padding: 6px 14px; font-size: 12.5px; }
.vo-doc-table .fa-triangle-exclamation { color: var(--warn, #d97706); margin-left: 4px; }
.vo-doc-expiry-cell { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vo-doc-download {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-soft); color: var(--teal); font-size: 12px;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.vo-doc-download:hover { background: var(--teal); color: #fff; }

/* ---- Back link (release voucher detail pages) ---- */
.vo-back-link-wrap { margin: 0 0 16px; }
.vo-back-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13.5px; font-weight: 600; color: var(--teal); text-decoration: none;
}
.vo-back-link:hover { text-decoration: underline; }

/* ---- List/table outer container (replaces .box + .box-body.table-responsive) ---- */
.vo-list-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); padding: 20px; margin: 0 0 24px;
}
.vo-list-card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin: 0 0 16px;
}
.vo-list-card-head h3 { font-family: var(--font-display); font-size: 16px; color: var(--ink); margin: 0; }
.vo-empty-state { text-align: center; padding: 40px 16px; color: var(--ink-3); font-size: 14px; }
.vo-empty-state i { display: block; font-size: 26px; color: var(--ink-4); margin-bottom: 10px; }

/* ---- Document expiry / GPS status pills (dashboard vehicle cards, vehicleview.phtml) ---- */
.vo-vehicle-status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin: 0 0 28px; }
.vo-vehicle-status-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); padding: 18px 20px; transition: box-shadow .15s var(--ease), transform .15s var(--ease);
}
.vo-vehicle-status-card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.vo-vehicle-status-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.vo-vehicle-status-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vo-vehicle-status-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--teal-soft); color: var(--teal);
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.vo-vehicle-status-regno { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink); }
.vo-vehicle-status-type { font-size: 12px; color: var(--ink-3); }
.vo-vehicle-status-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.vo-vehicle-status-docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.vo-doc-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; }
.vo-doc-status-label { color: var(--ink-3); }
.vo-doc-status-value { font-weight: 600; }
.vo-doc-status-value.is-ok { color: var(--leaf); }
.vo-doc-status-value.is-warn { color: var(--warn); }
.vo-doc-status-value.is-err { color: var(--err); }
.vo-vehicle-status-link {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px;
  font-size: 13px; font-weight: 600; color: var(--teal); text-decoration: none;
}
.vo-vehicle-status-link:hover { text-decoration: underline; }
@media (max-width: 480px) {
  .vo-vehicle-status-docs { grid-template-columns: 1fr; }
}

/* ---- Inline GPS live/offline indicator (vehicle list tables) ---- */
.vo-regno-cell { display: inline-flex; align-items: center; flex-wrap: nowrap; }
.vo-gps-status {
  display: inline-flex; align-items: center; gap: 6px; margin-left: 10px;
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
  vertical-align: middle;
}
.vo-gps-dot {
  position: relative; flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%;
}
.vo-gps-status.is-live { color: var(--leaf, #16a34a); }
.vo-gps-status.is-live .vo-gps-dot { background: var(--leaf, #16a34a); animation: vo-gps-blink 1.6s ease-in-out infinite; }
.vo-gps-status.is-live .vo-gps-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--leaf, #16a34a); opacity: .45;
  animation: vo-gps-pulse 1.6s ease-out infinite;
}
.vo-gps-status.is-offline { color: var(--err, #dc2626); }
.vo-gps-status.is-offline .vo-gps-dot { background: var(--err, #dc2626); animation: vo-gps-blink 1.6s ease-in-out infinite; }
.vo-gps-status.is-offline .vo-gps-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  background: var(--err, #dc2626); opacity: .45;
  animation: vo-gps-pulse 1.6s ease-out infinite;
}
@keyframes vo-gps-pulse {
  0%   { transform: scale(0.4); opacity: .55; }
  70%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes vo-gps-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: .25; }
}
@media (prefers-reduced-motion: reduce) {
  .vo-gps-status.is-live .vo-gps-dot,
  .vo-gps-status.is-offline .vo-gps-dot { animation: none; }
  .vo-gps-status.is-live .vo-gps-dot::after,
  .vo-gps-status.is-offline .vo-gps-dot::after { animation: none; opacity: 0; }
}

/* ---- Month-wise trip/revenue trend (dashboard) ---- */
.vo-trend-table-wrap { overflow-x: auto; }
.vo-trend-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.vo-trend-table th, .vo-trend-table td { padding: 10px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.vo-trend-table th:first-child, .vo-trend-table td:first-child { text-align: left; }
.vo-trend-table th { color: var(--ink-3); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }

/* ---- Document upload slot grid (uploaddocuments.phtml, uploadupdateddocuments.phtml, etc) ---- */
.vo-doc-upload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 20px; }
.vo-doc-upload-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.vo-doc-upload-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.vo-doc-upload-title.is-required::after { content: "*"; color: var(--err); margin-left: 4px; }
.vo-doc-upload-meta { font-size: 12px; color: var(--ink-3); }
.vo-doc-upload-thumb {
  width: 100%; height: 90px; border-radius: var(--r-sm); background: var(--card);
  border: 1px dashed var(--line-strong); display: flex; align-items: center; justify-content: center;
  color: var(--ink-4); font-size: 22px; overflow: hidden;
}
.vo-doc-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Upload drop-zone (new-file picker, e.g. septage/watervehicle register.phtml wizards) ----
   Wraps a visually-hidden <input type="file"> so we control the look instead of the browser's
   native "Choose File" button, which reads unstyled/inconsistent next to the rest of the theme. */
.vo-doc-upload-card.has-file .vo-doc-upload-drop { border-color: var(--teal); background: var(--teal-soft); }
.vo-doc-upload-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  min-height: 96px; padding: 14px; text-align: center; cursor: pointer;
  border: 1px dashed var(--line-strong); border-radius: var(--r-sm); background: var(--card);
  color: var(--ink-3); transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.vo-doc-upload-drop:hover { border-color: var(--teal-2); color: var(--teal); }
.vo-doc-upload-drop i { font-size: 20px; }
.vo-doc-upload-drop-text { font-size: 12.5px; font-weight: 500; }
.vo-doc-upload-filename {
  font-size: 12px; color: var(--ink-2); font-weight: 600; word-break: break-all;
}
.vo-doc-upload-filename.is-empty { color: var(--ink-4); font-weight: 400; }
.vo-doc-upload-input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---- Small responsive tweaks specific to this module ---- */
@media (max-width: 720px) {
  .vo-filter-card-body .form-grid { grid-template-columns: 1fr; }
  .vo-list-card-head { flex-direction: column; align-items: flex-start; }
  /* Nested containers (.wrap, .appuser-main, this card) each add their own horizontal
     padding; on phones that stacks into large dead margins that squeeze the actual
     booking data, so tighten the card-level padding here. */
  .vo-list-card { padding: 14px; }
  .vo-filter-card-head, .vo-filter-card-body, .vo-filter-card-foot { padding-left: 14px; padding-right: 14px; }
  .vo-vehicle-status-card { padding: 14px; }
  .vo-kpi-panel { padding: 14px; }
  .application-sheet-body { padding-left: 14px; padding-right: 14px; }
  .application-sheet-section-standalone { padding-left: 14px; padding-right: 14px; }
  .vo-hero { padding: 16px; }
}

@media (max-width: 480px) {
  .vo-list-card { padding: 10px; }
  .vo-filter-card-head, .vo-filter-card-body, .vo-filter-card-foot { padding-left: 10px; padding-right: 10px; }
  .vo-vehicle-status-card { padding: 10px; }
  .vo-kpi-panel { padding: 10px; }
  .application-sheet-body { padding-left: 10px; padding-right: 10px; }
  .application-sheet-section-standalone { padding-left: 10px; padding-right: 10px; }
  .vo-hero { padding: 12px; }
}

/* ---- Application sheet (register.phtml wizard preview step, preview.phtml) ----
   Reads like a filled paper application form rather than a dashboard: bordered
   sheet, letterhead, label/value rows, photo pinned top-right. */
.application-sheet {
  background: var(--card); border: 1px solid rgba(15,23,42,.06); border-radius: var(--r-md);
  padding: 0; margin: 0 auto 20px; overflow: hidden; max-width: 800px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 4px 10px -4px rgba(15,23,42,.12), 0 16px 32px -12px rgba(15,23,42,.18);
}
.application-sheet-toolbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap;
  padding: 8px 18px; background: var(--bg-soft); border-bottom: 1px solid rgba(15,23,42,.06);
}
.application-sheet-toolbar .btnRegister { padding: 6px 14px; font-size: 13px; }
.application-sheet-status {
  margin-right: auto; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.application-sheet-status.is-pending { background: color-mix(in srgb, var(--warn, #b45309) 15%, transparent); color: var(--warn, #b45309); }
.application-sheet-status.is-confirmed { background: color-mix(in srgb, var(--teal, #0f766e) 15%, transparent); color: var(--teal, #0f766e); }
.application-sheet-letterhead {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px; border-bottom: 2px solid var(--teal, #0f766e);
  background: linear-gradient(180deg, var(--bg-soft), var(--card));
  position: relative;
}
.application-sheet-letterhead::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
  background: rgba(15,23,42,.06);
}
.application-sheet-logo {
  width: 48px; height: 48px; object-fit: contain; flex: 0 0 auto;
  border-radius: 50%; background: var(--card); border: 1px solid rgba(15,23,42,.08); padding: 3px;
}
.application-sheet-title-block { flex: 1 1 auto; min-width: 0; }
.application-sheet-corp { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--teal, #0f766e); }
.application-sheet-title-block h2 { margin: 2px 0 1px; font-size: 17px; line-height: 1.25; }
.application-sheet-sub { font-size: 12px; color: var(--ink-3); }
.application-sheet-appid { font-size: 12.5px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
/* Vehicle-profile identity strip (vehicleview.phtml letterhead) - compact label:value
   chips summarizing the vehicle at a glance, below the form title/app-id line. */
.application-sheet-identity-strip { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; }
.application-sheet-identity-chip { font-size: 12px; color: var(--ink-2); }
.application-sheet-identity-chip .label { color: var(--ink-3); font-weight: 600; margin-right: 4px; }
.application-sheet-identity-chip .value { font-weight: 600; color: var(--ink); }
.application-sheet-photo {
  flex: 0 0 auto; width: 92px; height: 116px; border: 1px solid rgba(15,23,42,.1);
  border-radius: var(--r-sm); background: var(--card); display: flex; align-items: center;
  justify-content: center; overflow: hidden; text-align: center; color: var(--ink-4); font-size: 11px;
  box-shadow: 0 1px 2px rgba(15,23,42,.06), 0 3px 8px -2px rgba(15,23,42,.14);
}
.application-sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.application-sheet-section-with-photo-row { display: flex; align-items: flex-start; gap: 20px; }
.application-sheet-section-with-photo-row .application-sheet-table { flex: 1 1 auto; min-width: 0; }
.application-sheet-section-with-photo-row .application-sheet-photo { margin-top: 2px; }
@media (max-width: 640px) {
  .application-sheet-section-with-photo-row { flex-direction: column-reverse; align-items: center; }
}
.application-sheet-body { padding: 20px 22px 20px; background: var(--card); }
.application-sheet-section {
  margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px dashed rgba(15,23,42,.1);
}
.application-sheet-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.application-sheet-section-standalone {
  padding-left: 22px; padding-right: 22px; padding-top: 18px; background: var(--card);
}
.application-sheet-section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px;
}
.application-sheet-section-head h3 {
  margin: 0; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--teal, #0f766e);
  display: flex; align-items: center; gap: 7px;
}
.application-sheet-section-head h3::before {
  content: ''; width: 3px; height: 13px; background: var(--teal, #0f766e); border-radius: 2px; display: inline-block;
}
.application-sheet-table { width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; font-family: var(--font-body); }
.application-sheet-table th, .application-sheet-table td {
  border: 1px solid rgba(15,23,42,.08); padding: 7px 12px; text-align: left; vertical-align: middle;
  font-family: inherit;
}
.application-sheet-table th {
  width: 38%; background: var(--bg-soft); color: var(--ink-2); font-weight: 600; font-size: 11.5px;
  border-right: 1px solid rgba(15,23,42,.08);
}
.application-sheet-table td { color: var(--ink); font-weight: 500; word-break: break-word; background: var(--card); }
.application-sheet-table td a { color: var(--teal, #0f766e); font-weight: 600; }

/* ---- Renewal Fees table: 4 columns (label/value pairs, 2 per row) ---- */
.renew-fee-table th, .renew-fee-table td { width: 25%; }
.renew-fee-table-total { font-weight: 700; color: var(--teal); background: var(--teal-soft, #E9F1F3) !important; }
@media (max-width: 640px) {
  .renew-fee-table { table-layout: auto; }
  .renew-fee-table th, .renew-fee-table td { width: auto; }
}
.application-sheet-doc-thumb {
  width: 30px; height: 30px; border-radius: 4px; overflow: hidden; display: inline-flex;
  align-items: center; justify-content: center; background: var(--card); border: 1px solid rgba(15,23,42,.08);
  color: var(--ink-4); margin-right: 8px; vertical-align: middle; flex: 0 0 auto;
}
.application-sheet-doc-thumb img { width: 100%; height: 100%; object-fit: cover; }
.application-sheet-doc-row { display: flex; align-items: center; }
.application-sheet-doc-missing {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600;
  color: var(--err, #b91c1c);
}
.application-sheet-doc-row-missing td, .application-sheet-doc-row-missing th {
  background: color-mix(in srgb, var(--err, #b91c1c) 6%, var(--card));
}
.application-sheet-payment { padding: 14px 22px; background: var(--bg-soft); border-top: 1px solid rgba(15,23,42,.06); }
.application-sheet-payment-amount { font-size: 19px; font-weight: 700; color: var(--ink); }

/* ---- Renewal payment banner (renew.phtml/waterrenew.phtml) - a compact, flat white
   bar (no colored background) so it stays low-height and matches the rest of the
   application-sheet, while still surfacing the amount and Make Payment action up top. ---- */
.renew-payment-banner {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); padding: 14px 20px; margin: 0 0 20px;
}
.renew-payment-banner-card {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.renew-payment-banner-info { text-align: left; }
.renew-payment-banner-label { font-size: 11.5px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
.renew-payment-banner-amount { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.renew-payment-banner-action { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.renew-payment-banner-btn { display: inline-block; padding: 9px 24px; font-size: 14px; white-space: nowrap; }
.renew-payment-banner-sub { font-size: 13px; color: var(--ink-3); }
.renew-payment-banner-charges { font-size: 11px; color: var(--ink-3); }
@media (max-width: 560px) {
  .renew-payment-banner-card { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .application-sheet-letterhead { flex-wrap: wrap; }
  .application-sheet-table { table-layout: auto; }
  .application-sheet-table th { width: 46%; }
}
/* ==========================================================================
   Vehicle Profile dashboard (vehicleview.phtml) - hero, KPI row, collapsible
   sections, document/alert cards, timeline. Sits at the module's normal full
   content width (outside .application-sheet's 800px print-sheet cap, which is
   kept only around the toolbar/letterhead above it), reusing existing tokens/
   primitives (.vo-stat-tile, .vo-doc-upload-card, .status-pill, .btnRegister)
   wherever they already fit.
   ========================================================================== */
.vo-hero {
  display: flex; gap: 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-md); box-shadow: var(--shadow-1); padding: 22px; margin: 20px 0;
}
.vo-hero-photo {
  flex: 0 0 auto; width: 160px; height: 160px; border-radius: var(--r-md);
  background: var(--bg-soft); border: 1px solid var(--line); overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: var(--ink-4); font-size: 12px;
}
.vo-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.vo-hero-body { flex: 1 1 auto; min-width: 0; }
.vo-hero-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ink); margin: 0; }
.vo-hero-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.vo-hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.vo-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.vo-hero-actions .btnRegister[disabled], .vo-hero-actions .btnRegister.is-disabled {
  opacity: .5; pointer-events: none;
}
@media (max-width: 640px) {
  .vo-hero { flex-direction: column; align-items: center; text-align: center; }
  .vo-hero-badges, .vo-hero-actions { justify-content: center; }
}

/* ---- KPI panel: groups the KPI row into one shadowed card instead of tiles floating
   loose directly on the page background. ---- */
.vo-kpi-panel {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-1); padding: 18px 20px 20px; margin: 0 0 20px;
}
.vo-kpi-panel-title {
  font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--ink-2);
  text-transform: uppercase; letter-spacing: .04em; margin: 0 0 14px;
}
.vo-kpi-panel .vo-kpi-row { margin-bottom: 0; }
.vo-kpi-panel .vo-stat-tile { box-shadow: none; border-color: var(--line); }
.vo-kpi-panel .vo-stat-tile:hover { box-shadow: var(--shadow-1); }

/* ---- KPI row: existing .vo-stat-tile (vocommon.css) + icon header + hover lift ---- */
.vo-stat-tile { position: relative; transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.vo-stat-tile:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.vo-stat-tile-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.vo-stat-tile-icon {
  width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--teal-soft);
  color: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 13px;
}
/* Vehicle profile KPI row (vehicleview.phtml) - 10 tiles read better compact than the
   4-5 tile dashboard row .vo-stat-tile was originally sized for. */
.vo-kpi-row.vo-stat-row { gap: 12px; margin-bottom: 20px; }
.vo-kpi-row .vo-stat-tile { padding: 12px 16px; }
.vo-kpi-row .vo-stat-tile-label { font-size: 11.5px; color: var(--ink-2); }
.vo-kpi-row .vo-stat-tile-value { font-size: 20px; margin-top: 3px; }
.vo-kpi-row .vo-stat-tile-sub { margin-top: 2px; font-size: 12.5px; color: var(--ink-3); }

/* ---- Collapsible section (Overview/Owner/Driver/License/GPS/Documents/Alerts/...) ---- */
.vo-collapse { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-1); margin: 0 0 16px; overflow: hidden; }
.vo-collapse-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 16px 20px; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink);
}
.vo-collapse-head-left { display: flex; align-items: center; gap: 10px; }
.vo-collapse-head-left i.vo-collapse-icon { color: var(--teal); font-size: 15px; }
.vo-collapse-chevron { color: var(--ink-3); transition: transform .2s var(--ease); }
.vo-collapse.is-open .vo-collapse-chevron { transform: rotate(180deg); }
.vo-collapse-body { padding: 0 20px 20px; display: none; }
.vo-collapse.is-open .vo-collapse-body { display: block; }

/* ---- Document status cards (reuses .vo-doc-upload-card/-thumb/-title/-meta) ---- */
.vo-doc-upload-card { position: relative; }
.vo-doc-upload-actions { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; }
.vo-doc-upload-actions a, .vo-doc-upload-actions button {
  font-size: 12px; font-weight: 600; color: var(--teal); background: none; border: none; padding: 0; cursor: pointer;
}
.vo-doc-remaining { font-weight: 700; }
.vo-doc-remaining.is-ok { color: var(--leaf); }
.vo-doc-remaining.is-warn { color: var(--warn); }
.vo-doc-remaining.is-err { color: var(--err); }
/* Compact variant for the read-only Documents section on vehicleview.phtml - the default
   .vo-doc-upload-thumb is sized for the upload flow's own drag-drop zone (uploaddocuments.
   phtml etc.); a read-only status icon doesn't need that much height/whitespace. */
.vo-doc-grid-compact { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.vo-doc-grid-compact .vo-doc-upload-card {
  padding: 12px; gap: 6px;
  /* Base .vo-doc-upload-card uses the grayish --bg-soft (an upload drop-zone convention) -
     brighten to match the white cards used by every other section on this page. */
  background: var(--card); border-color: var(--line);
}
.vo-doc-grid-compact .vo-doc-upload-thumb { height: 44px; font-size: 16px; }
.vo-doc-grid-compact .vo-doc-upload-title { font-size: 11.5px; font-weight: 600; color: var(--ink-2); }
.vo-doc-grid-compact .vo-doc-upload-meta { font-size: 12.5px; color: var(--ink); }

/* ---- Alert cards ---- */
.vo-alert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.vo-alert-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border-radius: var(--r-sm); border: 1px solid var(--line); border-left: 4px solid var(--ink-4); background: var(--bg-soft);
}
.vo-alert-card.is-err { border-left-color: var(--err); }
.vo-alert-card.is-warn { border-left-color: var(--warn); }
.vo-alert-card.is-ok { border-left-color: var(--leaf); }
.vo-alert-card i { font-size: 16px; margin-top: 1px; }
.vo-alert-card.is-err i { color: var(--err); }
.vo-alert-card.is-warn i { color: var(--warn); }
.vo-alert-card.is-ok i { color: var(--leaf); }
.vo-alert-card-title { font-weight: 600; font-size: 13.5px; color: var(--ink); }
.vo-alert-card-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

/* ---- Placeholder ("coming soon" / not-tracked) blocks ---- */
.vo-placeholder {
  display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: var(--r-sm);
  border: 1px dashed var(--line-strong); color: var(--ink-3); font-size: 13px; background: var(--bg-soft);
}
.vo-placeholder i { color: var(--ink-4); font-size: 16px; }

/* ---- GPS live map (vehicle profile - lazy-inits Leaflet on first open, see the phtml's
   bottom script block) ---- */
.vo-gps-map { height: 320px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--bg-soft); }

/* ---- Activity timeline ---- */
.vo-timeline { position: relative; margin: 0; padding: 0 0 0 22px; list-style: none; }
.vo-timeline::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.vo-timeline li { position: relative; padding-bottom: 18px; }
.vo-timeline li:last-child { padding-bottom: 0; }
.vo-timeline li::before {
  content: ''; position: absolute; left: -22px; top: 3px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--teal); border: 2px solid var(--card); box-shadow: 0 0 0 1px var(--teal);
}
.vo-timeline-date { font-size: 11.5px; color: var(--ink-3); }
.vo-timeline-title { font-size: 13.5px; font-weight: 600; color: var(--ink); }

@media print {
  .vo-collapse-body { display: block !important; }
  .vo-collapse-chevron, .vo-hero-actions { display: none !important; }
  .vo-collapse, .vo-stat-tile, .vo-doc-upload-card { break-inside: avoid; page-break-inside: avoid; }
  .vo-hero { box-shadow: none; border-color: var(--line); }
}

@media print {
  /* `visibility:hidden` on body * doesn't reliably suppress the page chrome (the site's
     own header brand logo kept rendering full-size) - hide the known layout landmarks by
     name instead, and leave everything inside the sheet untouched. */
  .topbar, .site-header, .appuser-side, .appuser-footer, #alert_box,
  .wizard-progress, .wizard-progress-compact, .wizard-nav {
    display: none !important;
  }
  /* .appuser-shell is a 260px-sidebar + 1fr-content CSS grid - hiding .appuser-side above
     doesn't reclaim its column, so without this the printed content was still squeezed
     into a narrow leftover column (wrapping every card down to a near-phone width and
     ballooning the printout to a dozen-plus pages). Collapse it to a single full-width
     column for print, same as the already-existing no-sidebar screen variant. */
  .appuser-shell { grid-template-columns: 1fr !important; gap: 0 !important; padding: 0 !important; }
  .appuser-main { border: none !important; box-shadow: none !important; padding: 0 !important; }
  /* register.phtml wizard: only the step holding the sheet (#septagePreviewStep) should
     print - the other five steps and the form's own heading/helper text stay hidden. */
  #septageRegisterForm .wizard-step:not(#septagePreviewStep),
  #septageRegisterForm > h2, #septageRegisterForm > .step-helper {
    display: none !important;
  }
  .application-sheet-toolbar, .no-print { display: none !important; }
  .application-sheet { border: none; box-shadow: none; margin: 0; max-width: none; }
  /* Keep a section (or at minimum a single label/value row) from splitting across the
     page boundary - the earlier plain window.print() (no page-break rules) let table
     rows tear in half at the A4 edge. */
  @page { size: A4; margin: 12mm; }
  .application-sheet-letterhead, .application-sheet-section-head {
    break-after: avoid; page-break-after: avoid;
  }
  .application-sheet-section {
    break-inside: avoid; page-break-inside: avoid;
  }
  .application-sheet-table, .application-sheet-table tbody, .application-sheet-table tr {
    break-inside: avoid; page-break-inside: avoid;
  }
}

/* ---- Full-page submit overlay (register.phtml final "Accept & Register") ----
   Shown the instant the form actually submits (native multipart POST - a real page
   navigation, so the upload itself is unavoidably synchronous), so the browser reads as
   "working" instead of frozen for the seconds a multi-file upload takes. */
.submit-overlay {
  position: fixed; inset: 0; z-index: 9999; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
}
:root[data-theme="dark"] .submit-overlay { background: rgba(15,23,42,.92); }
@media (prefers-color-scheme: dark) {
  .submit-overlay { background: rgba(15,23,42,.92); }
}
.submit-overlay .spinner-label { max-width: 280px; text-align: center; }
