/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  /* Light theme — white + red */
  --bg:        #f4f5f7;
  --bg2:       #ffffff;
  --bg3:       #eef0f4;
  --card:      #ffffff;
  --card-hover:#f9fafb;
  --border:    #e5e7eb;
  --border2:   #d1d5db;

  --txt:       #111827;
  --txt2:      #6b7280;
  --txt3:      #9ca3af;

  /* Red accent (company color) */
  --accent:       #dc2626;
  --accent2:      #b91c1c;
  --accent-glow:  rgba(220,38,38,.15);
  --accent-light: rgba(220,38,38,.08);

  /* Sidebar — dark warm */
  --side-bg:      #1c1917;
  --side-border:  #292524;
  --side-txt:     #d6d3d1;
  --side-txt2:    #78716c;
  --side-active:  rgba(220,38,38,.18);
  --side-active-t:#fca5a5;

  /* Status colors — visible on white */
  --green:   #16a34a;  --green-bg:  rgba(22,163,74,.1);
  --yellow:  #d97706;  --yellow-bg: rgba(217,119,6,.1);
  --orange:  #ea580c;  --orange-bg: rgba(234,88,12,.1);
  --red:     #dc2626;  --red-bg:    rgba(220,38,38,.1);
  --blue:    #2563eb;  --blue-bg:   rgba(37,99,235,.1);
  --purple:  #7c3aed;  --purple-bg: rgba(124,58,237,.1);
  --gray:    #6b7280;  --gray-bg:   rgba(107,114,128,.1);

  /* Seat colors (light bg) */
  --seat-free:      #f3f4f6;
  --seat-booked:    #dbeafe;
  --seat-deposit:   #fef3c7;
  --seat-paid:      #dcfce7;
  --seat-bus:       #ffedd5;
  --seat-problem:   #fee2e2;
  --seat-cancelled: #f9fafb;
  --seat-vip:       #f3e8ff;

  --gold:      #b45309;
  --gold-bg:   rgba(180,83,9,.1);
  --gold-glow: rgba(180,83,9,.3);

  --radius:    10px;
  --radius-sm: 7px;
  --shadow:    0 1px 4px rgba(0,0,0,.08), 0 4px 16px rgba(0,0,0,.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --transition: .16s ease;
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* overflow-x:hidden on html/body prevents long text/content from expanding
   the layout viewport beyond device-width, ensuring mobile breakpoints fire */
html { font-size: 15px; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--txt);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  max-width: 100vw;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg3); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* ════════════════════════════════════════════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════════════════════════════════════════ */
.sidebar {
  width: 220px;
  min-height: 100vh;
  background: var(--side-bg);
  border-right: 1px solid var(--side-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  z-index: 200;
  transition: transform .25s ease;
}

.sidebar-logo {
  padding: 22px 20px 16px;
  border-bottom: 1px solid var(--side-border);
}
.sidebar-logo .logo-mark {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--accent);
}
.sidebar-logo .logo-sub {
  font-size: .68rem;
  color: var(--side-txt2);
  text-transform: uppercase;
  letter-spacing: 1.8px;
  margin-top: 2px;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--side-txt2);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--transition);
  min-height: 44px;
}
.nav-item:hover  { background: rgba(255,255,255,.06); color: var(--side-txt); }
.nav-item.active { background: var(--side-active); color: var(--side-active-t); }
.nav-item .nav-icon { font-size: 1.05rem; width: 22px; text-align: center; flex-shrink: 0; }

/* Sidebar user card */
.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid var(--side-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-avatar {
  width: 34px; height: 34px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
  flex-shrink: 0;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: .82rem; font-weight: 600; color: var(--side-txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: .7rem; color: var(--side-txt2); margin-top: 1px; }
.logout-btn {
  color: var(--side-txt2);
  font-size: 1.1rem;
  padding: 4px;
  border-radius: 4px;
  border: none;
  background: none;
  flex-shrink: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.logout-btn:hover { color: var(--accent); }

/* Sidebar overlay (mobile) */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
}
.sidebar-overlay.open { display: block; }

/* Hamburger button */
.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--txt);
  font-size: 1.4rem;
  padding: 4px 8px;
  line-height: 1;
  cursor: pointer;
  margin-right: 8px;
}

/* ════════════════════════════════════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════════════════════════════════ */
.main {
  margin-left: 220px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;          /* allow flex child to shrink */
  overflow-x: clip;      /* prevent sticky topbar expanding beyond viewport */
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 12px;
}
.topbar-left { display: flex; align-items: center; gap: 4px; min-width: 0; flex: 1 1 0; overflow: hidden; }
.topbar-title { font-size: 1.05rem; font-weight: 700; color: var(--txt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-sub { font-size: .76rem; color: var(--txt3); margin-top: 1px; white-space: nowrap; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; flex-wrap: wrap; }

.page { padding: 24px; }

/* ════════════════════════════════════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════════════════════════════════ */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-sm { padding: 14px 16px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.stat-label { font-size: .71rem; color: var(--txt3); text-transform: uppercase; letter-spacing: .8px; }
.stat-value { font-size: 1.6rem; font-weight: 800; margin-top: 4px; color: var(--txt); }
.stat-value.accent { color: var(--accent); }
.stat-value.green  { color: var(--green); }
.stat-value.yellow { color: var(--yellow); }
.stat-value.red    { color: var(--red); }
.stat-value.blue   { color: var(--blue); }
.stat-value.orange { color: var(--orange); }
.stat-value.txt2   { color: var(--txt2); }

.stat-card.stat-alert {
  border-color: var(--red);
  background: var(--red-bg);
  animation: stat-alert-pulse 2s ease-in-out infinite;
}
@keyframes stat-alert-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
  50%     { box-shadow: 0 0 0 4px rgba(220,38,38,.18); }
}

/* ════════════════════════════════════════════════════════════════════════════
   BUTTONS  (min 44px touch target on mobile)
═══════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: .855rem;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
  min-height: 38px;
  cursor: pointer;
}
.btn-primary   { background: var(--accent); color: #fff; }
.btn-primary:hover  { background: var(--accent2); box-shadow: 0 3px 10px var(--accent-glow); }
.btn-secondary { background: var(--bg3); color: var(--txt); border: 1px solid var(--border2); }
.btn-secondary:hover { background: var(--border); }
.btn-success   { background: var(--green-bg); color: var(--green); border: 1px solid rgba(22,163,74,.25); }
.btn-success:hover { background: rgba(22,163,74,.18); }
.btn-warning   { background: var(--yellow-bg); color: var(--yellow); border: 1px solid rgba(217,119,6,.25); }
.btn-warning:hover { background: rgba(217,119,6,.18); }
.btn-danger    { background: var(--red-bg); color: var(--red); border: 1px solid rgba(220,38,38,.25); }
.btn-danger:hover { background: rgba(220,38,38,.18); }
.btn-ghost     { background: transparent; color: var(--txt2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg3); }
.btn-sm  { padding: 6px 12px; font-size: .78rem; min-height: 32px; }
.btn-lg  { padding: 12px 24px; font-size: .95rem; min-height: 46px; }
.btn-icon { padding: 8px; min-width: 38px; justify-content: center; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

/* ════════════════════════════════════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .76rem;
  font-weight: 600;
  color: var(--txt2);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--bg2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--txt);
  padding: 10px 13px;
  font-size: .9rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  min-height: 42px;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control::placeholder { color: var(--txt3); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 88px; }
.form-grid   { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.form-full   { grid-column: 1 / -1; }

/* ── Manager checkbox group ──────────────────────────────────────────────── */
.manager-cb-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.manager-cb-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  background: var(--bg3);
  user-select: none;
  min-width: 140px;
}
.manager-cb-label:hover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.manager-cb-input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.manager-cb-input:checked ~ .manager-cb-name { color: var(--accent); font-weight: 600; }
.manager-cb-label:has(.manager-cb-input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
}
.manager-cb-name { font-size: .875rem; color: var(--txt); }
.manager-cb-role {
  font-size: .68rem;
  color: var(--txt3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 2px;
}

/* ════════════════════════════════════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.badge-draft        { background: var(--gray-bg);   color: var(--gray); }
.badge-sales_open   { background: var(--green-bg);  color: var(--green); }
.badge-almost_full  { background: var(--yellow-bg); color: var(--yellow); }
.badge-sales_closed { background: var(--orange-bg); color: var(--orange); }
.badge-departed     { background: var(--blue-bg);   color: var(--blue); }
.badge-completed    { background: var(--purple-bg); color: var(--purple); }
.badge-archive      { background: var(--gray-bg);   color: var(--gray); }

.badge-new           { background: var(--blue-bg);   color: var(--blue); }
.badge-booked        { background: var(--blue-bg);   color: var(--blue); }
.badge-waiting_advance { background: var(--yellow-bg); color: var(--yellow); }
.badge-deposit_paid  { background: var(--yellow-bg); color: var(--yellow); }
.badge-must_pay_in_bus { background: var(--orange-bg); color: var(--orange); }
.badge-fully_paid    { background: var(--green-bg);  color: var(--green); }
.badge-checked_in    { background: var(--green-bg);  color: var(--green); }
.badge-no_show       { background: var(--red-bg);    color: var(--red); }
.badge-cancelled     { background: var(--gray-bg);   color: var(--gray); }
.badge-problem       { background: var(--red-bg);    color: var(--red); }
.badge-birthday { background: var(--gold-bg); color: var(--gold); border: 1px solid var(--gold-glow); }

@keyframes badge-pop { 0% { transform:scale(1.35); } 100% { transform:scale(1); } }
.badge.just-updated { animation: badge-pop .28s ease-out; }

/* ════════════════════════════════════════════════════════════════════════════
   TOUR CARDS (index)
═══════════════════════════════════════════════════════════════════════════ */
.tours-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.tour-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  transition: box-shadow .2s, transform .2s, border-color .2s;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 12px rgba(0,0,0,.04);
  display: flex;
  flex-direction: column;
}
.tour-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow), 0 1px 3px rgba(0,0,0,.08);
  transform: translateY(-2px);
}
.tour-card-accent {
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #f87171);
  border-radius: 12px 12px 0 0;
}
.tour-card-body { padding: 18px 20px 16px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.tour-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tour-city { font-size: 1.15rem; font-weight: 800; letter-spacing: -.3px; color: var(--txt); }
.tour-date { font-size: .78rem; color: var(--txt3); margin-top: 3px; display: flex; align-items: center; gap: 5px; }
.tour-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.tour-meta-item {
  font-size: .75rem; color: var(--txt2);
  background: var(--bg3); border-radius: 20px;
  padding: 3px 10px;
  display: inline-flex; align-items: center; gap: 4px;
}
.capacity-bar { height: 5px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.capacity-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #f87171); border-radius: 3px; transition: width .5s; }
.capacity-text { font-size: .78rem; color: var(--txt3); }
.tour-card-stats {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.tour-card-stat {
  background: var(--card); padding: 10px 12px; text-align: center;
}
.tour-card-stat-label { font-size: .65rem; color: var(--txt3); text-transform: uppercase; letter-spacing: .5px; }
.tour-card-stat-val { font-size: .95rem; font-weight: 800; margin-top: 2px; }

/* ════════════════════════════════════════════════════════════════════════════
   BUS MAP
═══════════════════════════════════════════════════════════════════════════ */
.bus-wrap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  overflow-x: auto;
}
.bus-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; font-size: .74rem; }
.legend-item { display: flex; align-items: center; gap: 5px; color: var(--txt2); }
.legend-dot  { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }

.bus-body {
  background: #ffffff;
  border: 2px solid var(--border2);
  border-radius: 14px 14px 8px 8px;
  padding: 14px 10px;
  min-width: 280px;
}
.bus-driver {
  display: flex;
  justify-content: flex-end;
  padding: 0 6px 10px;
  font-size: .68rem;
  color: var(--txt3);
  border-bottom: 1px dashed var(--border);
  margin-bottom: 10px;
  gap: 6px;
  align-items: center;
}
.driver-seat {
  width: 34px; height: 26px;
  border: 1px solid var(--border2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-size: .62rem;
  color: var(--txt3);
}
.bus-rows { display: flex; flex-direction: column; gap: 5px; }
.bus-row {
  display: grid;
  grid-template-columns: 1fr 1fr 22px 1fr 1fr;
  gap: 4px;
  align-items: center;
}
.bus-aisle { height: 100%; border-left: 1px dashed var(--border2); }

/* ── Seat styles (light theme) ─────────────────────────────────────────────── */
.seat {
  width: 100%;
  aspect-ratio: 1.1;
  border-radius: 5px;
  border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  user-select: none;
  overflow: visible;
}
.seat:hover { transform: scale(1.14); z-index: 5; }

.seat.free      { background: var(--seat-free);    border-color: var(--border2); color: var(--txt3); }
.seat.booked    { background: var(--seat-booked);  border-color: #3b82f6; color: #1d4ed8; }
.seat.deposit   { background: var(--seat-deposit); border-color: #d97706; color: #92400e; }
.seat.paid      { background: var(--seat-paid);    border-color: #16a34a; color: #166534; }
.seat.bus_due   { background: var(--seat-bus);     border-color: #ea580c; color: #9a3412; }
.seat.no_show   { background: #fef2f2; border-color: #fca5a5; color: #9b1c1c; opacity: .7; }
.seat.cancelled { background: var(--seat-cancelled); border-color: var(--border); color: var(--txt3); opacity: .35; cursor: default; }
.seat.vip       { background: var(--seat-vip); border-color: #7c3aed; color: #4c1d95; box-shadow: 0 0 6px rgba(124,58,237,.3); }

.seat.problem {
  background: #fee2e2;
  border-color: var(--red);
  color: #991b1b;
  box-shadow: 0 0 0 2px rgba(220,38,38,.3), 0 0 10px rgba(220,38,38,.25);
  animation: seat-problem-pulse 1.6s ease-in-out infinite;
}
@keyframes seat-problem-pulse {
  0%,100% { box-shadow: 0 0 0 2px rgba(220,38,38,.3), 0 0 8px rgba(220,38,38,.2); }
  50%     { box-shadow: 0 0 0 4px rgba(220,38,38,.5), 0 0 16px rgba(220,38,38,.4); }
}
@keyframes seat-flash { 0% { transform: scale(1.3); } 100% { transform: scale(1); } }
.seat.just-changed { animation: seat-flash .35s ease-out; }

.seat[data-birthday="true"] { outline: 2px solid var(--gold); outline-offset: 2px; }
.seat[data-birthday="true"]::after {
  content: '🎂';
  position: absolute;
  top: -10px; right: -8px;
  font-size: 9px;
  pointer-events: none;
}

/* ════════════════════════════════════════════════════════════════════════════
   TABLE
═══════════════════════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .84rem; }
thead th {
  padding: 10px 14px;
  text-align: left;
  font-size: .69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--txt3);
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--txt);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: var(--bg3); }

tbody tr.birthday-row td { background: var(--gold-bg); }
tbody tr.birthday-row td:first-child { border-left: 3px solid var(--gold); }
tbody tr.problem-row td  { background: var(--red-bg); }
tbody tr.noshow-row td   { background: var(--gray-bg); opacity: .75; }

.boarding-row-arrived td { background: var(--green-bg); }
.boarding-row-noshow td  { background: var(--gray-bg); opacity: .65; }
.boarding-row-problem td { background: var(--red-bg); }

/* ════════════════════════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(3px);
  z-index: 300;
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 -4px 32px rgba(0,0,0,.15);
  transform: translateY(100%);
  transition: transform .25s ease;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: var(--card); z-index: 1;
}
.modal-title { font-size: .95rem; font-weight: 700; }
.modal-close {
  background: none; border: none; color: var(--txt3);
  font-size: 1.3rem; line-height: 1; padding: 4px 8px;
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg3); color: var(--txt); }
.modal-body { padding: 18px 20px; }

/* ── Swipe handle ──────────────────────────────────────────────────────────── */
.modal-handle {
  width: 40px; height: 4px;
  background: var(--border2);
  border-radius: 2px;
  margin: 10px auto 0;
}

/* ════════════════════════════════════════════════════════════════════════════
   MISC UI
═══════════════════════════════════════════════════════════════════════════ */
.quick-actions {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 14px; background: var(--bg3);
  border-radius: var(--radius-sm); margin-bottom: 12px;
}
.fin-block {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  background: var(--bg3); border-radius: var(--radius-sm); padding: 14px;
}
.fin-label { font-size: .68rem; color: var(--txt3); text-transform: uppercase; letter-spacing: .6px; }
.fin-val { font-size: 1.05rem; font-weight: 700; margin-top: 2px; }

.section-title {
  font-size: .76rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--txt3);
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 8px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.tour-header {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.tour-header-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 16px; flex-wrap: wrap; gap: 12px;
}
.tour-header-info h1 { font-size: 1.5rem; font-weight: 800; }
.tour-header-info .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.tour-header-info .meta span { font-size: .82rem; color: var(--txt2); display: flex; align-items: center; gap: 5px; }
.tour-header-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: .85rem; margin-bottom: 12px;
}
.alert-warning { background: var(--yellow-bg); border: 1px solid rgba(217,119,6,.25); color: var(--yellow); }
.alert-danger  { background: var(--red-bg);    border: 1px solid rgba(220,38,38,.25); color: var(--red); }
.alert-success { background: var(--green-bg);  border: 1px solid rgba(22,163,74,.25);  color: var(--green); }
.alert-info    { background: var(--blue-bg);   border: 1px solid rgba(37,99,235,.25);  color: var(--blue); }

/* ── Toast ──────────────────────────────────────────────────────────────────── */
#toast-container {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 999; display: flex; flex-direction: column; gap: 8px;
  align-items: center; width: 90%; max-width: 360px;
}
.toast {
  background: var(--side-bg); color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: .85rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  animation: slideUp .2s ease;
  width: 100%;
  display: flex; align-items: center; gap: 8px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error   { border-left: 3px solid var(--red); }
.toast.warning { border-left: 3px solid var(--yellow); }
@keyframes slideUp { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* ── Charts ─────────────────────────────────────────────────────────────────── */
.chart-bar-wrap { }
.chart-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .82rem; }
.chart-bar-label { width: 120px; color: var(--txt2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-bar-bg  { flex: 1; height: 18px; background: var(--bg3); border-radius: 9px; overflow: hidden; }
.chart-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #f87171); border-radius: 9px; transition: width .6s; min-width: 4px; }
.chart-bar-val  { width: 70px; text-align: right; color: var(--txt3); font-size: .78rem; }

/* ── Progress ring ──────────────────────────────────────────────────────────── */
.ring-bg   { fill: none; stroke: var(--bg3); stroke-width: 6; }
.ring-fill { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset .6s; }

/* ── Empty state ─────────────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 20px; color: var(--txt3); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 12px; opacity: .45; }
.empty-state p { font-size: .9rem; }

/* ── Utility ─────────────────────────────────────────────────────────────────── */
.flex            { display: flex; }
.flex-col        { flex-direction: column; }
.gap-2           { gap: 8px; }
.gap-3           { gap: 12px; }
.items-center    { align-items: center; }
.justify-between { justify-content: space-between; }
.text-right  { text-align: right; }
.text-center { text-align: center; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; }
.mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 24px; }
.text-muted  { color: var(--txt3); font-size: .82rem; }
.text-sm     { font-size: .82rem; }
.fw-bold     { font-weight: 700; }
.text-danger { color: var(--red); }
.text-success{ color: var(--green); }
.w-full      { width: 100%; }

/* ════════════════════════════════════════════════════════════════════════════
   TOUR DETAIL — TWO-COLUMN LAYOUT
═══════════════════════════════════════════════════════════════════════════ */
/* Bus section: desktop — always open, show static title */
.bus-section-header { display: none; }
.bus-map-body { display: block; }
.bus-desktop-title { display: block; }

.tour-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  align-items: start;
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 900px)
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); width: 260px; }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: flex; }
  .main { margin-left: 0; }
  .page { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .tours-grid { grid-template-columns: 1fr; }
  .tour-layout { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════════════════════════════════════════
   RESPONSIVE — PHONE  (≤ 640px)
═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  html { font-size: 15px; }
  body { overflow-x: hidden; }
  .page { padding: 10px; overflow-x: hidden; }
  .main { overflow-x: hidden; }

  /* ── Topbar ─────────────────────────────────────────────────────────── */
  .topbar { padding: 10px 12px; gap: 8px; }
  .topbar-title { font-size: .92rem; }
  .topbar-sub { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn { padding: 7px 10px; font-size: .78rem; min-height: 38px; }
  .hide-sm { display: none; }

  /* ── Inputs — 16px prevents iOS auto-zoom ───────────────────────────── */
  input, select, textarea, .form-control { font-size: 16px !important; }

  /* ── Forms — 1 column ───────────────────────────────────────────────── */
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; gap: 10px; }
  .card { padding: 14px 12px; }

  /* ── Stat grid — 2 per row ──────────────────────────────────────────── */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-value { font-size: 1.3rem; }
  .stat-card { padding: 12px; }

  /* ── Tour header ────────────────────────────────────────────────────── */
  .tour-header { padding: 12px; }
  .tour-header-info h1 { font-size: 1.15rem; }
  .tour-header-info .meta { gap: 8px; }
  .tour-header-info .meta span { font-size: .78rem; }
  .tour-header-top { flex-direction: column; gap: 10px; }
  .tour-header-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }

  /* ── Tour layout: stack client list + bus map ───────────────────────── */
  .tour-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* ── Tour stat grid: 3 per row on mobile ───────────────────────────── */
  .tour-stat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }
  .tour-stat-grid .stat-card { padding: 8px 6px; }
  .tour-stat-grid .stat-label { font-size: .6rem; }
  .tour-stat-grid .stat-value { font-size: 1rem; }

  /* ── Bus map — collapsible on mobile ───────────────────────────────── */
  .bus-desktop-title { display: none; }
  .bus-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 10px 0;
    user-select: none;
  }
  .bus-quick-stat {
    font-size: .78rem;
    color: var(--txt2);
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 8px;
  }
  .bus-toggle-arrow {
    font-size: .8rem;
    color: var(--txt3);
    margin-left: auto;
  }
  .bus-map-body { display: none; }
  .bus-section.open .bus-map-body { display: block; }

  /* ── Client table → card view on mobile ────────────────────────────── */
  .client-table { border-radius: 0; }
  .client-table thead { display: none; }
  .client-table tbody tr {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
    gap: 0;
    border-bottom: 1px solid var(--border);
    padding: 12px 10px;
    position: relative;
    cursor: pointer;
  }
  .client-table tbody tr:last-child { border-bottom: none; }

  /* seat # — top left */
  .client-table td[data-label="#"] {
    grid-column: 1;
    grid-row: 1;
    padding: 0 10px 4px 0;
    font-size: 1.05rem;
    align-self: start;
    border: none;
  }
  /* client name — top center */
  .client-table td[data-label="Клиент"] {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 0 0 4px 0;
    border: none;
  }
  /* actions — top right */
  .client-table td[data-label=" "] {
    grid-column: 3;
    grid-row: 1;
    padding: 0 0 0 8px;
    border: none;
    align-self: start;
  }
  /* phone — second row */
  .client-table td[data-label="Телефон"] {
    grid-column: 1 / 3;
    grid-row: 3;
    padding: 3px 0 0;
    font-size: .82rem;
    color: var(--txt2);
    border: none;
  }
  .client-table td[data-label="Телефон"]::before {
    content: '📞 ';
  }
  /* status — right side second row */
  .client-table td[data-label="Статус"] {
    grid-column: 3;
    grid-row: 2 / 4;
    padding: 4px 0 0 8px;
    border: none;
    align-self: end;
    text-align: right;
  }
  /* remaining — shown as subtitle of phone row */
  .client-table td[data-label="Остаток"] {
    grid-column: 2;
    grid-row: 3;
    padding: 3px 0 0 8px;
    font-size: .82rem;
    border: none;
  }
  .client-table td[data-label="Остаток"]::before {
    content: 'Остаток: ';
    color: var(--txt3);
    font-size: .75rem;
  }
  /* hide desktop-only columns */
  .client-table .col-source,
  .client-table .col-money { display: none; }

  /* table-wrap: remove horizontal scroll on mobile (cards don't need it) */
  .table-wrap:has(.client-table) {
    overflow-x: visible;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  /* ── Bus map — compact on mobile ───────────────────────────────────── */
  .bus-wrap { padding: 8px; }
  .bus-body {
    min-width: 0;
    max-width: 240px;
    margin: 0 auto;
    padding: 8px 6px;
  }
  .bus-rows { gap: 3px; }
  .bus-row { gap: 3px; }
  .bus-aisle { border-left-width: 1px; }
  .seat {
    aspect-ratio: auto;
    height: 26px;
    font-size: .52rem;
    border-radius: 3px;
    border-width: 1px;
  }
  .seat:hover { transform: scale(1.08); }
  .driver-seat { width: 26px; height: 20px; font-size: .52rem; }
  .bus-driver { padding: 0 4px 8px; font-size: .65rem; }
  .bus-legend { gap: 5px; flex-wrap: wrap; }
  .legend-item { font-size: .65rem; }
  .legend-dot { width: 10px; height: 10px; }

  /* ── Modal — full bottom sheet ──────────────────────────────────────── */
  .modal { border-radius: var(--radius) var(--radius) 0 0; max-height: 96vh; }
  .modal-body { padding: 12px 14px; }
  .modal-header { padding: 12px 16px 10px; }
  .quick-actions { gap: 6px; padding: 10px; }
  .quick-actions .btn { min-height: 44px; font-size: .8rem; flex: 1; justify-content: center; }
  .fin-block { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; }

  /* ── Sections ───────────────────────────────────────────────────────── */
  .section-title { font-size: .7rem; }
  .section-title::after { display: none; }

  /* ── Charts ─────────────────────────────────────────────────────────── */
  .chart-bar-label { width: 90px; font-size: .73rem; }
  .chart-bar-val { width: 60px; font-size: .73rem; }

  /* ── Toast ──────────────────────────────────────────────────────────── */
  #toast-container { bottom: 12px; width: 95%; }

  /* ── Buttons ────────────────────────────────────────────────────────── */
  .btn-sm { min-height: 40px; padding: 8px 12px; }
  .btn-lg { padding: 13px 20px; }

  /* ── Search bar in tour ─────────────────────────────────────────────── */
  input[placeholder*="Поиск"] { max-width: 100% !important; width: 100%; }
  .flex.justify-between.items-center.mb-3 {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  /* ── Settings table → stacked ───────────────────────────────────────── */
  .table-wrap:not(:has(.client-table)) {
    overflow-x: auto;
  }
}

/* ─ Extra small (≤ 390px — iPhone SE) ─────────────────────────────────────── */
@media (max-width: 390px) {
  .topbar-actions .btn-sm { padding: 6px 8px; font-size: .72rem; }
  .stat-value { font-size: 1.15rem; }
  .tour-header-info h1 { font-size: 1rem; }
  .bus-row { gap: 3px; }
}

/* ════════════════════════════════════════════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  background: var(--side-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 40px rgba(0,0,0,.35);
}
.login-logo {
  text-align: center;
  margin-bottom: 28px;
}
.login-logo .logo-mark { font-size: 2.2rem; font-weight: 900; color: var(--accent); letter-spacing: -2px; }
.login-logo .logo-sub  { font-size: .72rem; color: var(--txt3); letter-spacing: 2px; text-transform: uppercase; margin-top: 4px; }

/* ════════════════════════════════════════════════════════════════════════════
   SIDEBAR USER CARD
═══════════════════════════════════════════════════════════════════════════ */
/* (defined above in sidebar section) */

/* =========================================================
   MOBILE FIX — TOUR DETAIL PAGE
   Fixes long title, tour header, client table and bus map
========================================================= */

@media (max-width: 640px) {

  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
  }

  .main,
  .page,
  .tour-header,
  .tour-layout,
  .card,
  .table-wrap,
  .bus-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  /* Topbar */
  .topbar {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .topbar-left {
    min-width: 0;
    overflow: hidden;
  }

  .topbar-title {
    max-width: calc(100vw - 95px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .9rem;
  }

  .topbar-actions {
    flex-shrink: 0;
  }

  /* Tour header */
  .tour-header {
    padding: 12px;
    margin-bottom: 14px;
  }

  .tour-header-top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tour-header-info {
    width: 100%;
    min-width: 0;
  }

  .tour-header-info h1 {
    font-size: 1.05rem;
    line-height: 1.25;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .tour-header-info .meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
  }

  .tour-header-info .meta span {
    font-size: .78rem;
    white-space: normal;
  }

  .tour-header-actions {
    width: 100%;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .tour-header-actions .btn,
  .tour-header-actions button {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 120px;
  }

  /* Status dropdown should not break screen */
  .tour-header-actions .dropdown,
  .tour-header-actions form {
    max-width: 100%;
  }

  /* Stats */
  .stat-grid,
  .tour-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .stat-card {
    min-width: 0;
    padding: 10px 8px;
  }

  .stat-label {
    font-size: .58rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .stat-value {
    font-size: 1.15rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  /* Client section */
  .section-title {
    margin-top: 14px;
  }

  .flex.justify-between.items-center.mb-3 {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  input[placeholder*="Поиск"],
  input[placeholder*="Поиск"] {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Force all client tables into mobile cards */
  table.client-table,
  .client-table table {
    width: 100% !important;
    min-width: 0 !important;
  }

  .client-table thead,
  table.client-table thead {
    display: none !important;
  }

  .client-table tbody,
  table.client-table tbody {
    display: block;
    width: 100%;
  }

  .client-table tbody tr,
  table.client-table tbody tr {
    display: grid !important;
    grid-template-columns: 24px 1fr auto;
    gap: 6px 8px;
    width: 100%;
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    background: var(--card);
  }

  .client-table tbody td,
  table.client-table tbody td {
    display: block;
    padding: 0 !important;
    border: none !important;
    min-width: 0;
    font-size: .82rem;
    overflow-wrap: anywhere;
  }

  /* Hide less important columns on phone */
  .client-table td[data-label="Источник"],
  .client-table td[data-label="Стоимость"],
  .client-table td[data-label="Предопл."],
  .client-table td[data-label="В авт."],
  .client-table .col-source,
  .client-table .col-money {
    display: none !important;
  }

  .client-table td[data-label="#"] {
    grid-column: 1;
    grid-row: 1 / 3;
    color: var(--accent);
    font-weight: 800;
  }

  .client-table td[data-label="Клиент"] {
    grid-column: 2;
    grid-row: 1;
    font-weight: 700;
  }

  .client-table td[data-label="Телефон"] {
    grid-column: 2;
    grid-row: 2;
    color: var(--txt2);
  }

  .client-table td[data-label="Остаток"] {
    grid-column: 2;
    grid-row: 3;
    color: var(--red);
    font-weight: 700;
  }

  .client-table td[data-label="Статус"] {
    grid-column: 3;
    grid-row: 1 / 3;
    align-self: center;
    text-align: right;
  }

  .client-table td[data-label=" "] {
    grid-column: 3;
    grid-row: 3;
    text-align: right;
  }

  /* Bus map */
  .bus-wrap {
    padding: 8px;
    overflow-x: hidden !important;
  }

  .bus-body {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
    padding: 8px 5px;
  }

  .bus-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 14px minmax(0, 1fr) minmax(0, 1fr);
    gap: 3px;
  }

  .seat {
    height: 34px;
    min-width: 0;
    font-size: .58rem;
  }

  .bus-legend {
    font-size: .62rem;
    gap: 6px;
  }
}

@media (max-width: 390px) {
  .stat-grid,
  .tour-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .tour-header-info h1 {
    font-size: .98rem;
  }

  .seat {
    height: 30px;
    font-size: .52rem;
  }

  .bus-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 12px minmax(0, 1fr) minmax(0, 1fr);
  }
}

/* TOUR PAGE MOBILE HARD FIX */
@media (max-width: 640px) {
  .tour-header,
  .tour-layout,
  .tour-layout > div,
  .table-wrap,
  .bus-section,
  .bus-wrap {
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
  }

  .tour-header-info h1 {
    display: block;
    max-width: 100%;
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    line-height: 1.25;
  }

  #tour-status-badge {
    margin-top: 6px;
    width: fit-content;
  }

  .tour-header-info .meta {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .tour-header-info .meta span {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .tour-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .tour-header-actions > div {
    min-width: 0;
  }

  .tour-header-actions .btn {
    width: 100%;
    justify-content: center;
  }

  #status-dd {
    left: 0 !important;
    right: auto !important;
    width: min(240px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    z-index: 100 !important;
  }

  .tour-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 0 !important;
  }

  .tour-stat-grid .stat-card {
    min-width: 0;
    padding: 10px 8px;
  }

  .tour-stat-grid .stat-label {
    font-size: .58rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .tour-stat-grid .stat-value {
    font-size: 1.08rem;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  .client-table {
    width: 100% !important;
    min-width: 0 !important;
  }

  .client-table tbody tr {
    grid-template-columns: 22px minmax(0, 1fr) auto !important;
  }

  .client-table tbody td {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .client-table td[data-label="Статус"] .badge {
    max-width: 115px;
    white-space: normal;
    text-align: center;
    line-height: 1.2;
  }

  .client-table td[data-label=" "] .flex {
    flex-direction: column;
    gap: 6px;
  }

  .client-table td[data-label=" "] .btn {
    min-width: 38px;
  }

  .bus-section {
    width: 100%;
  }

  .bus-map-body {
    width: 100%;
  }

  .bus-body {
    width: 100%;
    max-width: 100%;
    min-width: 0 !important;
  }

  .bus-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 14px minmax(0, 1fr) minmax(0, 1fr) !important;
  }

  .seat {
    height: 32px;
    min-width: 0;
    font-size: .56rem;
  }
}