/* ==========================================================================
   Smart Trivandrum — vehicleowner / watervehicle shared primitives.
   Built on top of styles.css design tokens (--teal, --card, --ink, etc).
   Bootstrap-free. Loaded once (from partials/vohead.phtml) ahead of
   vehicleowner.css and watervehicle.css, which build on these.
   ========================================================================== */

/* ---- Modal ----
   #myModal/#standardModal/#userDialogModal (partials/vomodal.phtml) keep Bootstrap 3's
   .modal/.modal-dialog/.modal-content structure and data-toggle="modal" markup, because
   the shared (unmodified, minified) public_html/js/erp.min.js populates them via
   `$(selector+" .modal-content").html(response.body)` and calls jQuery's `.modal()`/
   `.modal('hide')` plugin methods — rewriting that shared file is out of scope here.
   bootstrap.min.js (JS only, no Bootstrap CSS) stays loaded in vohead.phtml purely for
   that plugin + its data-api auto-binding; everything below re-skins the same class
   names with v3 tokens instead of relying on Bootstrap's CSS. */
.modal { display: none; position: fixed; inset: 0; z-index: 1050; overflow-y: auto; padding: 24px; }
.modal.fade .modal-dialog { transform: translateY(-16px); opacity: 0; transition: transform .2s var(--ease), opacity .2s var(--ease); }
.modal.in .modal-dialog { transform: translateY(0); opacity: 1; }
.modal-dialog { max-width: 480px; margin: 40px auto; }
.modal-content { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.modal-title { font-family: var(--font-display); font-size: 16.5px; color: var(--ink); margin: 0; }
.modal-header .close { border: none; background: none; color: var(--ink-3); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px; opacity: 1; }
.modal-header .close:hover { color: var(--err); }
.modal-body { padding: 24px; max-height: 65vh; overflow-y: auto; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.modal-footer .pull-left { margin-right: auto; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: rgba(17, 30, 30, .45); }
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.in { opacity: 1; }
@media (max-width: 480px) {
  .modal { padding: 0; }
  .modal-dialog { margin: 0; min-height: 100%; }
  .modal-content { border-radius: 0; min-height: 100vh; }
}

/* ---- Stat tiles (dashboard summary row) ---- */
.vo-stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin: 0 0 28px; }
.vo-stat-tile {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 18px 20px; box-shadow: var(--shadow-1);
}
.vo-stat-tile-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-3); }
.vo-stat-tile-value { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--teal); margin-top: 6px; }
.vo-stat-tile-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
@media (max-width: 480px) {
  .vo-stat-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .vo-stat-tile { padding: 14px 16px; }
  .vo-stat-tile-value { font-size: 21px; }
}
