/* =============================================================================
   Operator Admin styles (web-shared/admin, CARPA-018). Loaded after the
   site's style.css; uses its theme tokens (--bg, --text, --accent, …).
   ============================================================================= */

/* ============================== ADMIN PANEL ============================== */
.admin-route-list { display:flex; flex-direction:column; gap:16px; }
.admin-route-card {
  background:var(--panel); border:1px solid var(--line-2); border-radius:var(--radius);
  overflow:hidden;
}
.admin-route-head {
  display:flex; align-items:center; gap:12px; padding:16px 20px;
  cursor:pointer; user-select:none;
}
.admin-route-head:hover { background:var(--panel-2); }
.admin-route-name { flex:1; font-weight:600; font-size:15px; }
.admin-route-meta { display:flex; gap:8px; align-items:center; }
.admin-badge { font-size:11px; padding:2px 8px; border-radius:6px; font-weight:600; letter-spacing:0.5px; }
.admin-badge-dir { background:var(--panel-2); color:var(--muted); }
.admin-toggle { font-size:18px; color:var(--muted); transition:transform 0.2s; }
.admin-route-card.open .admin-toggle { transform:rotate(90deg); }
.admin-route-body { display:none; padding:0 20px 20px; }
.admin-route-card.open .admin-route-body { display:block; }
.admin-section { margin-top:16px; }
.admin-section-title {
  font-size:12px; text-transform:uppercase; letter-spacing:1.5px;
  color:var(--muted); margin-bottom:8px; font-weight:600;
}
.admin-table {
  width:100%; border-collapse:collapse; font-size:13px;
}
.admin-table th {
  text-align:left; padding:6px 10px; font-size:11px; text-transform:uppercase;
  letter-spacing:1px; color:var(--muted); border-bottom:1px solid var(--line);
}
.admin-table td { padding:6px 10px; border-bottom:1px solid var(--line); }
.admin-table input, .admin-table select {
  background:var(--bg-3); border:1px solid var(--line-2); border-radius:6px;
  color:var(--text); padding:4px 8px; font-size:13px; width:100%;
}
.admin-table input:focus, .admin-table select:focus {
  outline:none; border-color:var(--brand);
}
.admin-actions { display:flex; gap:6px; flex-shrink:0; }
.admin-btn {
  padding:4px 10px; border-radius:6px; border:1px solid var(--line-2);
  background:var(--panel-2); color:var(--text); cursor:pointer; font-size:12px;
}
.admin-btn:hover { background:var(--bg-3); }
.admin-btn-save { border-color:var(--ok); color:var(--ok); }
.admin-btn-del { border-color:var(--brand-2); color:var(--brand-2); }
.admin-btn-add {
  padding:6px 14px; border-radius:8px; border:1px dashed var(--line-2);
  background:transparent; color:var(--muted); cursor:pointer; font-size:13px;
  margin-top:8px;
}
.admin-btn-add:hover { border-color:var(--brand); color:var(--brand); }
.admin-btn-add-route {
  width:100%; padding:14px; font-size:15px; font-weight:600;
  border-style:dashed; border-width:2px; margin-top:0;
}
.admin-route-fields {
  display:grid; grid-template-columns:repeat(auto-fill, minmax(180px, 1fr));
  gap:10px; margin-bottom:12px;
}
.admin-field label { display:flex; flex-direction:column; gap:4px; font-size:12px; color:var(--muted); }
.admin-field input, .admin-field select {
  background:var(--bg-3); border:1px solid var(--line-2); border-radius:6px;
  color:var(--text); padding:6px 10px; font-size:13px;
}
.admin-field input:focus { outline:none; border-color:var(--brand); }
.admin-msg { font-size:12px; color:var(--ok); margin-left:8px; }
.admin-err { font-size:12px; color:var(--brand-2); margin-left:8px; }
/* Admin tabs */
.admin-tabs {
  display:flex; gap:4px; margin-bottom:20px;
  border-bottom:1px solid var(--line-2); padding-bottom:0;
  overflow-x:auto; scrollbar-width:none;
}
.admin-tabs::-webkit-scrollbar { display:none; }
.admin-tab { white-space:nowrap; flex-shrink:0; }
.admin-tab {
  padding:10px 20px; border:none; background:none; color:var(--muted);
  font-size:14px; font-weight:600; cursor:pointer; border-bottom:2px solid transparent;
  transition:color 0.2s, border-color 0.2s;
}
.admin-tab:hover { color:var(--text); }

@media (min-width: 641px) {
  .admin-tabs { flex-wrap:wrap; overflow-x:visible; }
  .admin-tab { padding:10px 16px; }
}

.admin-tab.active { color:var(--brand); border-bottom-color:var(--brand); }
/* Occupancy calendar */
.occ-header {
  display:flex; align-items:center; justify-content:center; gap:16px; margin-bottom:20px;
}
.occ-month-label {
  min-width:200px; text-align:center; font-size:18px; font-weight:700;
}
.occ-nav { padding:6px 14px; font-size:16px; min-width:40px; }
.occ-calendar {
  display:grid; grid-template-columns:repeat(7, 1fr); gap:6px;
}
.occ-day-head {
  text-align:center; font-size:11px; text-transform:uppercase;
  letter-spacing:1.5px; color:var(--muted); padding:6px 0; font-weight:600;
}
.occ-day {
  background:var(--panel); border:1px solid var(--line-2); border-radius:var(--radius);
  padding:8px; min-height:90px; cursor:pointer; transition:border-color 0.2s, background 0.2s;
}
.occ-day:hover { border-color:var(--brand); background:var(--panel-2); }
.occ-day.occ-today { border-color:var(--brand); }
.occ-day.occ-selected { border-color:var(--brand); background:var(--brand-a10); }
.occ-day-empty {
  background:transparent; border:1px solid transparent; min-height:90px;
}
.occ-day-num {
  font-size:13px; font-weight:700; margin-bottom:6px; color:var(--text);
}
.occ-day.occ-today .occ-day-num {
  color:var(--brand);
}
.occ-day-bars { display:flex; flex-direction:column; gap:3px; }
.occ-bar-row {
  display:flex; align-items:center; gap:4px;
}
.occ-bar-label {
  font-size:9px; color:var(--muted); white-space:nowrap; overflow:hidden;
  text-overflow:ellipsis; max-width:50px; flex-shrink:0;
}
.occ-bar-wrap {
  flex:1; height:6px; background:var(--bg-3); border-radius:3px; overflow:hidden;
}
.occ-bar-fill { height:100%; border-radius:3px; transition:width 0.3s; }
.occ-bar-fill.occ-low  { background:var(--ok); }
.occ-bar-fill.occ-mid  { background:var(--gold); }
.occ-bar-fill.occ-high { background:var(--brand-2); }
.occ-bar-count {
  font-size:9px; color:var(--muted); font-family:ui-monospace,Menlo,monospace;
  min-width:24px; text-align:right;
}
/* Occupancy detail panel */
.occ-detail {
  margin-top:20px; background:var(--panel); border:1px solid var(--line-2);
  border-radius:var(--radius); padding:20px;
}
.occ-detail-head {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:16px;
}
.occ-detail-date { font-size:16px; font-weight:700; }
.occ-detail-close {
  background:none; border:none; color:var(--muted); cursor:pointer;
  font-size:18px; padding:4px 8px;
}
.occ-detail-close:hover { color:var(--text); }
.occ-trip-card {
  background:var(--bg-3); border:1px solid var(--line); border-radius:10px;
  padding:16px; margin-bottom:12px;
}
.occ-trip-card:last-child { margin-bottom:0; }
.occ-trip-top {
  display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;
}
.occ-trip-route { font-weight:700; font-size:14px; }
.occ-trip-time { font-size:13px; color:var(--muted); font-family:ui-monospace,Menlo,monospace; }
.occ-trip-vehicle { font-size:12px; color:var(--muted); margin-bottom:10px; }
.occ-trip-bar-wrap {
  height:10px; background:var(--panel); border-radius:5px; overflow:hidden; margin-bottom:6px;
}
.occ-trip-bar-fill { height:100%; border-radius:5px; }
.occ-trip-stats {
  display:flex; gap:16px; font-size:12px; color:var(--muted);
}
.occ-trip-stats strong { color:var(--text); }
.occ-trip-pct {
  font-size:20px; font-weight:800; font-family:ui-monospace,Menlo,monospace;
}
.occ-trip-pct.occ-low  { color:var(--ok); }
.occ-trip-pct.occ-mid  { color:var(--gold); }
.occ-trip-pct.occ-high { color:var(--brand-2); }
/* ---- Passenger manifest (drill-down inside an occupancy card) ---- */
.occ-manifest-btn {
  margin-top:12px; width:100%; padding:8px 12px;
  background:var(--panel); color:var(--text);
  border:1px solid var(--line-2); border-radius:8px;
  font-size:12.5px; font-weight:600; cursor:pointer; transition:border-color .15s;
}
.occ-manifest-btn:hover { border-color:var(--brand-2); }
.occ-manifest { margin-top:10px; }
.mf-booking {
  background:var(--panel); border:1px solid var(--line);
  border-radius:8px; padding:12px; margin-bottom:8px;
}
.mf-booking:last-child { margin-bottom:0; }
.mf-head {
  display:flex; align-items:flex-start; justify-content:space-between;
  gap:12px; flex-wrap:wrap; padding-bottom:8px; margin-bottom:8px;
  border-bottom:1px solid var(--line);
}
.mf-head strong { font-size:13.5px; }
.mf-contact { display:block; font-size:11.5px; color:var(--muted); margin-top:2px; }
.mf-meta { display:flex; gap:12px; font-size:12px; color:var(--muted); flex-wrap:wrap; }
.mf-boarded { color:var(--ok); font-weight:600; }
.mf-ticket {
  display:grid; grid-template-columns:34px 1fr auto auto auto auto;
  gap:10px; align-items:center; padding:4px 0; font-size:12.5px;
}
.mf-seat {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:28px; padding:2px 6px; border-radius:6px;
  background:var(--bg-3); border:1px solid var(--line-2);
  font-family:ui-monospace,Menlo,monospace; font-weight:700; font-size:12px;
}
.mf-seat.is-prem { color:var(--gold); border-color:var(--gold); }
.mf-name { font-weight:600; }
.mf-route, .mf-fare { color:var(--muted); font-size:12px; }
.mf-price { font-family:ui-monospace,Menlo,monospace; }
.mf-flag { color:var(--ok); font-size:11.5px; font-weight:600; }
.mf-cancel {
  margin-top:10px; padding:6px 12px;
  background:transparent; color:var(--brand-2);
  border:1px solid var(--brand-2); border-radius:7px;
  font-size:12px; font-weight:600; cursor:pointer; transition:.15s;
}
.mf-cancel:hover { background:var(--brand-2); color:#fff; }

@media (max-width:640px) {
  .mf-ticket { grid-template-columns:34px 1fr auto; row-gap:2px; }
  .mf-route, .mf-fare { grid-column:2 / -1; }
}

@media (max-width:768px) {
  .occ-calendar { grid-template-columns:repeat(7, 1fr); gap:3px; }
  .occ-day { padding:5px; min-height:70px; }
  .occ-bar-label { display:none; }
  .occ-bar-count { display:none; }
}

/* ---- Drivers management ---- */
.drivers-header { margin-bottom:20px; }
.drivers-header p { margin:0 0 14px; }
.drivers-add-form { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.drivers-add-form input {
  flex:1; min-width:220px; padding:10px 14px; border-radius:8px;
  border:1px solid var(--line); background:var(--panel2); color:var(--text); font-size:14px;
}
.drivers-add-form input:focus { border-color:var(--brand); outline:none; }
.drivers-msg { margin-top:10px; padding:8px 14px; border-radius:8px; font-size:13px; }
.drivers-msg-ok { background:rgba(67,211,158,0.12); color:#43d39e; }
.drivers-msg-err { background:rgba(230,57,70,0.12); color:#e63946; }
.drivers-list { display:flex; flex-direction:column; gap:8px; }
.driver-card {
  display:flex; justify-content:space-between; align-items:center;
  padding:14px 18px; border-radius:10px;
  background:var(--panel); border:1px solid var(--line);
}
.driver-name { font-weight:700; color:var(--text); }
.driver-meta { font-size:12px; color:var(--muted); margin-top:2px; }
.driver-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; justify-content:flex-end; }
.driver-status { font-size:11px; font-weight:700; letter-spacing:1px; text-transform:uppercase; }
.driver-remove { color:#e63946; border-color:#e63946; }
.driver-remove:hover { background:rgba(230,57,70,0.12); }
/* ---- Fleet (vehicle) management — `veh-` prefix to avoid clashing with the
   homepage marketing `.fleet-*` image cards (whose ::after overlay would
   otherwise swallow clicks on the admin cards). ---- */
.veh-summary { display:flex; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.veh-stat {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-width:110px; padding:12px 20px; border-radius:12px;
  background:var(--panel); border:1px solid var(--line);
}
.veh-stat strong { font-family:var(--mono); font-size:26px; color:var(--brand); line-height:1; }
.veh-stat span { font-size:11px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); margin-top:6px; }
.veh-add-wrap {
  padding:16px 18px; border-radius:12px; margin-bottom:20px;
  background:var(--panel); border:1px solid var(--line);
}
.veh-add-title { font-size:12px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); margin-bottom:12px; }
.veh-add-form { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.veh-add-form input {
  padding:9px 12px; border-radius:8px;
  background:var(--bg-2); border:1px solid var(--line); color:var(--text); font-size:13px;
}
.veh-add-form input[type=number] { width:100px; }
.veh-add-form input:focus { border-color:var(--brand); outline:none; }
.veh-list { display:grid; grid-template-columns:repeat(auto-fill,minmax(320px,1fr)); gap:12px; }
.veh-card {
  padding:16px 18px; border-radius:12px;
  background:var(--panel); border:1px solid var(--line);
}
.veh-card-head { display:flex; align-items:center; gap:12px; }
.veh-bus-icon {
  display:flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:10px; flex:0 0 auto;
  background:var(--bg-3); color:var(--brand);
}
.veh-card-title { flex:1 1 auto; min-width:0; }
.veh-card-title strong { display:block; color:var(--text); font-size:16px; }
.veh-card-title span { display:block; font-size:12px; margin-top:2px; }
.veh-usage {
  flex:0 0 auto; font-size:10.5px; font-weight:700; letter-spacing:0.5px; text-transform:uppercase;
  padding:4px 9px; border-radius:999px;
}
.veh-card-fields { display:grid; grid-template-columns:1fr 1fr; gap:8px 10px; margin:14px 0 12px; }
.veh-card-fields label { display:flex; flex-direction:column; gap:4px; font-size:11px; color:var(--muted); min-width:0; }
.veh-card-fields input {
  width:100%; padding:7px 10px; border-radius:7px;
  background:var(--bg-2); border:1px solid var(--line); color:var(--text); font-size:13px;
}
.veh-card-fields input:focus { border-color:var(--brand); outline:none; }
.veh-card-actions { display:flex; align-items:center; gap:10px; }
.veh-msg { font-size:12px; }
.veh-msg-ok { color:#43d39e; }
.veh-msg-err { color:#e63946; }
/* Admin: schedule without a vehicle → not offered in passenger search */
.sched-novehicle {
  display:block; margin-top:4px; font-size:11px; font-weight:600; line-height:1.3;
  color:var(--gold); white-space:nowrap;
}
.sched-novehicle[hidden] { display:none; }
/* Admin: a stop name typed differently from an existing one (CARPA-002) */
.admin-stop-warn { margin-top:4px; font-size:11px; line-height:1.4; color:var(--gold); }
.admin-stop-warn[hidden] { display:none; }
.admin-stop-warn button { margin-left:6px; font-size:11px; padding:2px 8px; }
/* =============================================================================
   Admin · Online payments (Stripe Connect)
   ============================================================================= */
.po-card {
  padding:22px 22px 18px; border-radius:var(--radius);
  background:var(--panel); border:1px solid var(--line);
}
.po-head { display:flex; gap:16px; align-items:flex-start; justify-content:space-between; }
.po-title { margin:0 0 6px; font-size:18px; }
.po-lead { margin:0; font-size:13.5px; line-height:1.55; max-width:62ch; }
.po-badge {
  flex-shrink:0; padding:5px 11px; border-radius:999px; font-size:12px; font-weight:700;
  letter-spacing:.3px; border:1px solid var(--line-2); color:var(--muted); background:var(--panel-2);
}
.po-badge[data-state="complete"]     { color:var(--ok); border-color:rgba(67,211,158,.35); background:rgba(67,211,158,.10); }
.po-badge[data-state="pending"]      { color:var(--gold); border-color:rgba(212,163,115,.40); background:rgba(212,163,115,.10); }
.po-badge[data-state="restricted"],
.po-badge[data-state="disconnected"] { color:var(--brand-2); border-color:rgba(230,57,70,.35); background:rgba(230,57,70,.10); }
.po-detail { margin:16px 0 0; font-size:14px; color:var(--text-soft); line-height:1.55; }
.po-dev {
  margin-top:14px; padding:10px 14px; border-radius:var(--radius-sm); font-size:13px; line-height:1.5;
  color:var(--gold); background:rgba(212,163,115,.10); border:1px dashed rgba(212,163,115,.45);
}
.po-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:16px; }
.po-banner:not(:empty) { margin-top:16px; }
.po-embed {
  margin-top:18px; padding:18px; border-radius:var(--radius-sm);
  background:var(--panel); border:1px solid var(--line-2); min-height:120px;
}
.po-facts { margin:18px 0 0; padding:14px 0 0 18px; border-top:1px solid var(--line); font-size:13px; color:var(--muted); line-height:1.6; }
.po-facts li + li { margin-top:4px; }

@media (max-width:600px) {
  .po-card { padding:18px 16px 16px; }
  .po-head { flex-direction:column-reverse; gap:10px; }
  .po-actions .btn { flex:1 1 100%; }
  .po-embed { padding:10px; }
}

/* Admin → Export vânzări */
.ex-form { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; margin:16px 0 8px; }
.ex-form .field { min-width:150px; }
.ex-quick, .ex-actions { display:flex; gap:8px; flex-wrap:wrap; }
.ex-summary { margin-top:16px; }
.ex-table-wrap { overflow-x:auto; }
.ex-table { width:100%; border-collapse:collapse; font-size:14px; }
.ex-table th, .ex-table td { padding:8px 10px; border-bottom:1px solid var(--line); text-align:right; white-space:nowrap; }
.ex-table th:first-child, .ex-table td:first-child { text-align:left; }
.ex-table th { font-size:12px; color:var(--muted); font-weight:600; }
.ex-table .ex-total td { font-weight:700; border-top:2px solid var(--line); }
.ex-note { margin-top:10px; font-size:13px; color:var(--muted); }
.inv-admin { margin-top:16px; }
.inv-admin #invEmail { flex:1; min-width:220px; }
/* Admin → Anunțuri */
.an-current { margin-top: 14px; }
.an-form { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.an-form textarea, .an-form input[type="datetime-local"] {
  width: 100%; box-sizing: border-box;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-size: 14px;
  resize: vertical;
}
.an-form textarea:focus, .an-form input:focus { outline: none; border-color: var(--brand-2); }
.an-count { align-self: flex-end; font-size: 11.5px; color: var(--muted); margin-top: -8px; }
.an-count.is-long { color: var(--brand-2); }
.an-levels { display: flex; gap: 8px; flex-wrap: wrap; }
.an-levels label {
  display: flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 8px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 13.5px;
}
.an-levels label:has(input:checked) { border-color: var(--brand-2); color: var(--brand-2); }
.an-preview-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.an-preview .announce-x { pointer-events: none; }
.an-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.an-meta { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.an-history { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.an-item { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel-2); }
.an-item-text { font-size: 13.5px; overflow-wrap: anywhere; }
.an-chip {
  display: inline-block; margin-right: 6px; padding: 1px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; border: 1px solid var(--line-2); color: var(--muted);
}
.an-chip--active { border-color: var(--ok); color: var(--ok); }
.an-chip--important { border-color: var(--brand-2); color: var(--brand-2); }
.an-subtitle { margin-top: 22px; font-size: 15px; }
.an-item-actions { margin-top: 10px; }
/* Admin → Excepții (days a departure does not run) */
.an-form input[type="date"], .an-form input[type="text"] {
  width: 100%; box-sizing: border-box;
  background: var(--bg-3); border: 1px solid var(--line-2); color: var(--text);
  border-radius: var(--radius-sm); padding: 10px 12px; font: inherit; font-size: 14px;
}
.xc-runs { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.xc-run {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel-2); font-size: 13.5px; cursor: pointer;
}
.xc-run:has(input:checked:not(:disabled)) { border-color: var(--brand-2); }
.xc-run.is-off, .xc-run.is-departed { cursor: default; }
.xc-run.is-departed { opacity: .6; }
.xc-run input { width: 18px; height: 18px; accent-color: var(--brand-2); flex: none; }
.xc-run-main { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; }
.xc-run-time { font-weight: 700; margin-right: 6px; }
.xc-run-meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.xc-run-sold { color: var(--brand-2); font-weight: 600; }
/* Admin → Plăți online: accounts blocked after a card dispute */
.pb-list { display:flex; flex-direction:column; gap:10px; margin-top:12px; }
.pb-row { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap;
  padding:10px 12px; border:1px solid var(--line); border-radius:10px; font-size:13px; }
/* Admin → Flotă → seat layout editor (renders like the passenger seat map) */
.veh-layout { margin-top:14px; padding-top:14px; border-top:1px dashed var(--line-2); display:flex; flex-direction:column; gap:10px; }
.lay-head { display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; }
.lay-help { font-size:12px; margin:0; }
.lay-tools { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }
.lay-tool { padding:5px 10px; font-size:12px; border:1px solid var(--line-2); border-radius:6px; background:transparent; color:inherit; cursor:pointer; }
.lay-tool.on { border-color:var(--brand-2); color:var(--brand-2); font-weight:700; }
.lay-sep { width:1px; height:20px; background:var(--line-2); margin:0 4px; }
.lay-paste textarea { width:100%; font-family:var(--mono); font-size:12px; padding:8px; border:1px solid var(--line-2); border-radius:8px; background:var(--panel-2); color:inherit; }
.lay-paste-actions { display:flex; gap:10px; align-items:center; margin-top:6px; font-size:12px; flex-wrap:wrap; }
.lay-paste-actions input { width:56px; padding:4px 6px; }
.lay-bus { align-self:flex-start; padding:14px; border:1.5px solid var(--line-2); border-radius:28px 28px 18px 18px; background:var(--panel); max-width:100%; overflow-x:auto; }
.lay-grid { display:grid; gap:6px; }
.lay-cell { height:40px; border-radius:7px; display:flex; align-items:center; justify-content:center;
  font-family:var(--mono); font-size:12px; font-weight:700; cursor:pointer; border:1px solid transparent; user-select:none; }
.lay-empty { border:1px dashed var(--line); opacity:.55; }
.lay-label { font-size:9px; letter-spacing:1px; text-transform:uppercase; color:var(--muted); border:1px dashed var(--line-2); }
.lay-sum { display:flex; gap:14px; flex-wrap:wrap; font-size:13px; }
/* The card whose layout editor is open spans the whole fleet grid. */
.veh-card:has(> .veh-layout:not([hidden])) { grid-column: 1 / -1; }
