/* ── Variables ────────────────────────────────── */
:root {
  --primary: #1a56db;
  --primary-light: #e1effe;
  --success: #059669;
  --success-light: #d1fae5;
  --danger: #dc2626;
  --danger-light: #fee2e2;
  --warning: #d97706;
  --warning-light: #fef3c7;
  --info: #0284c7;
  --info-light: #e0f2fe;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 0.75rem;
  --radius-sm: 0.5rem;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg: 0 10px 15px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
}

/* ── Reset ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }

/* ── Sidebar (desktop: always visible / mobile: drawer) ── */
.drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s;
}
.drawer-overlay.active { display: block; opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100dvh;
  background: var(--gray-900);
  color: #fff;
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.drawer-brand {
  font-weight: 800;
  font-size: 1.2rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.drawer-close {
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  color: rgba(255,255,255,.6);
  transition: background 0.15s, color 0.15s;
}
.drawer-close:hover { background: rgba(255,255,255,.18); color: #fff; }

.drawer-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.drawer-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.drawer-user-name { font-weight: 600; font-size: 0.92rem; color: #fff; }
.drawer-user-role {
  font-size: 0.75rem;
  color: rgba(255,255,255,.45);
  text-transform: capitalize;
}

.drawer-nav {
  flex: 1;
  padding: 0.75rem 0;
  overflow-y: auto;
}
.drawer-nav-label {
  padding: 0.5rem 1.25rem 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.3);
}
.drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  margin: 2px 0.6rem;
  color: rgba(255,255,255,.65);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.15s;
}
.drawer-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.drawer-link--active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(26,86,219,.35);
}
.drawer-link-icon { font-size: 1.1rem; width: 1.4rem; text-align: center; flex-shrink: 0; }
.drawer-link--danger { color: rgba(220,38,38,.8); }
.drawer-link--danger:hover { background: rgba(220,38,38,.15); color: #ef4444; }

.drawer-footer {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 0.5rem 0;
}


/* ── Nav bar (top) ────────────────────────────── */
.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand { font-weight: 700; font-size: 1.15rem; color: var(--gray-900); display: none; }
.nav-title { font-size: 1.1rem; font-weight: 700; color: var(--gray-900); margin: 0; white-space: nowrap; }
.nav-breadcrumb { color: var(--gray-400); margin: 0 0.35rem; font-size: 1.1rem; }
.nav-station { font-weight: 600; font-size: 0.95rem; color: var(--primary); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
.nav-register-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #dcfce7;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}
.nav-user { font-size: 0.9rem; color: var(--gray-500); }

/* ── Hamburger button ─────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s;
}
.nav-hamburger:hover { background: var(--gray-100); }
.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Desktop layout: sidebar always visible ───── */
@media (min-width: 769px) {
  .drawer { transform: translateX(0); box-shadow: none; border-right: 1px solid rgba(255,255,255,.06); }
  .main-content { margin-left: 260px; }
}

/* ── Mobile layout: drawer overlay mode ───────── */
@media (max-width: 768px) {
  .drawer { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
  .drawer.open { transform: translateX(0); }
  .drawer-close { display: flex; }
  .nav-hamburger { display: flex; }
  .nav-brand { display: block; }
  .nav-logout-btn { display: none; }
  .nav-user { display: none; }
}

/* ── Container ────────────────────────────────── */
.container { max-width: 100%; margin: 0 auto; padding: 1.25rem 1.5rem; }
@media (max-width: 768px) { .container { padding: 1rem; } }

/* ── Typography ───────────────────────────────── */
h1 { font-size: 1.5rem; font-weight: 700; }
h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.75rem; }
.text-muted { color: var(--gray-400); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-primary { color: var(--primary); }
.text-sm { font-size: 0.8rem; }
.text-center { text-align: center; }

/* ── Page header ──────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

/* ── Side panel (right drawer) ────────────────── */
.sidepanel-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 900;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.sidepanel-overlay.open { opacity: 1; pointer-events: auto; }
.sidepanel {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 90vw;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,.12);
  z-index: 910;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column;
}
.sidepanel.open { transform: translateX(0); }
.sidepanel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
}
.sidepanel-header h2 { margin: 0; font-size: 1.1rem; }
.sidepanel-close {
  background: none; border: none; font-size: 1.3rem;
  cursor: pointer; color: var(--gray-500); line-height: 1;
}
.sidepanel-close:hover { color: var(--gray-900); }
.sidepanel-body {
  padding: 1.5rem;
  overflow-y: auto; flex: 1;
  display: flex; flex-direction: column; gap: 1rem;
}

/* ── Tabs ─────────────────────────────────────── */
.tabs {
  display: flex; gap: 0;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 1.5rem;
}
.tab-btn {
  background: none; border: none;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .15s, border-color .15s;
}
.tab-btn:hover { color: var(--gray-700); }
.tab-btn--active {
  color: var(--primary, #2563eb);
  border-bottom-color: var(--primary, #2563eb);
}
.tab-content { display: none; }
.tab-content--active { display: block; }

/* ── Filters ───────────────────────────────────── */
.filters {
  display: flex; flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.5rem;
}
.filter-group {
  display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap;
}
.filter-label {
  font-size: 0.82rem; font-weight: 600; color: var(--gray-500);
  margin-right: 0.25rem; text-transform: uppercase; letter-spacing: 0.03em;
}
.chip {
  display: inline-block; padding: 0.3rem 0.75rem;
  font-size: 0.82rem; border-radius: 999px;
  border: 1px solid var(--gray-300); color: var(--gray-600);
  text-decoration: none; transition: all 0.15s;
  cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip--active {
  background: var(--primary); color: #fff;
  border-color: var(--primary);
}
.chip--active:hover { opacity: 0.9; color: #fff; }

/* ── Section header ───────────────────────────── */
.section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem;
}

/* ── Grid ─────────────────────────────────────── */
.grid { display: grid; gap: 1rem; }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

/* ── Helpers ──────────────────────────────────── */
.table-actions { white-space: nowrap; display: flex; gap: 0.4rem; align-items: center; }
.form-actions { display: flex; gap: 0.75rem; align-items: center; margin-top: 0.5rem; }

/* ── Card ─────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card--action {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  color: var(--gray-900);
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
}
.card--action:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card-icon { font-size: 2rem; }
.card-title { font-weight: 600; }
.card-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); }

/* ── Btn ──────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: #1e40af; }
.btn--success { background: var(--success); color: #fff; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--warning { background: var(--warning); color: #fff; }
.btn--outline {
  background: transparent;
  border: 1.5px solid var(--gray-300);
  color: var(--gray-700);
}
.btn--outline:hover { border-color: var(--gray-400); }
.btn--block { width: 100%; }
.btn--sm { padding: 0.35rem 0.75rem; font-size: 0.85rem; }
.btn--xs { padding: 0.2rem 0.5rem; font-size: 0.75rem; line-height: 1; }
.btn--danger { background: var(--red, #e74c3c); color: #fff; border-color: var(--red, #e74c3c); }
.btn--danger:hover { background: #c0392b; border-color: #c0392b; }
.btn--lg { padding: 0.85rem 1.5rem; font-size: 1.1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Form ─────────────────────────────────────── */
.form { display: flex; flex-direction: column; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.3rem; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--gray-700); }
.field input, .field select, .field textarea {
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  outline: none;
  transition: border-color .15s;
}
.field input:focus, .field select:focus { border-color: var(--primary); }
.field small { color: var(--gray-400); font-size: 0.8rem; }

/* ── Radio cards ──────────────────────────────── */
.radio-group { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.radio-card {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-size: 0.95rem;
}
.radio-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-light);
}
.radio-card input { accent-color: var(--primary); }

/* ── Alert ────────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.alert--danger { background: var(--danger-light); color: var(--danger); }
.alert--success { background: var(--success-light); color: var(--success); }
.alert--warning { background: var(--warning-light); color: var(--warning); }
.alert--info { background: var(--info-light); color: var(--info); }

/* ── Actions dropdown menu ────────────────────── */
.actions-menu { position: relative; display: inline-block; }
.actions-menu-trigger { cursor: pointer; font-size: 1rem; letter-spacing: 2px; min-width: 2rem; }
.actions-menu-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 100;
  min-width: 150px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 0.25rem 0;
  margin-top: 0.25rem;
}
.actions-menu.open .actions-menu-dropdown { display: block; }
.actions-menu-item {
  display: block;
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--gray-700);
  white-space: nowrap;
}
.actions-menu-item:hover { background: var(--gray-100); }
.actions-menu-item--danger { color: var(--danger); }
.actions-menu-item--danger:hover { background: var(--danger-light); }
.actions-menu-item--warning { color: var(--warning); }
.actions-menu-item--warning:hover { background: var(--warning-light); }

/* ── Ticket detail panel ─────────────────────── */
.detail-section { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0; }
.detail-label { font-size: 0.82rem; color: var(--gray-500); }
.detail-value { font-size: 0.9rem; font-weight: 500; color: var(--gray-900); text-align: right; }
.detail-value--big { font-size: 1.15rem; font-weight: 700; }
.detail-sep { border: none; border-top: 1px solid var(--gray-200); margin: 0.25rem 0; }

/* ── Badge ────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge--active, .badge--filling { background: var(--success-light); color: var(--success); }
.badge--inactive, .badge--departed { background: var(--gray-200); color: var(--gray-500); }
.badge--queued { background: var(--warning-light); color: var(--warning); }
.badge--full { background: var(--primary-light); color: var(--primary); }
.badge--admin { background: var(--danger-light); color: var(--danger); }
.badge--manager { background: var(--primary-light); color: var(--primary); }
.badge--cashier { background: var(--success-light); color: var(--success); }
.badge--driver { background: var(--warning-light); color: var(--warning); }
.badge--used { background: var(--gray-200); color: var(--gray-500); }
.badge--cancelled { background: var(--danger-light); color: var(--danger); }
.badge--refunded { background: var(--warning-light); color: var(--warning); }
.badge--new { background: #dbeafe; color: #1e40af; }
.badge--in_progress { background: var(--warning-light); color: var(--warning); }
.badge--resolved { background: var(--success-light); color: var(--success); }
.badge--closed { background: var(--gray-200); color: var(--gray-500); }
.badge--cash { background: var(--success-light); color: var(--success); }
.badge--wetaxi_card { background: var(--primary-light); color: var(--primary); }
.badge--bank_card { background: var(--info-light); color: var(--info); }

/* ── Table ────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 0.85rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9rem;
}
.table th { font-weight: 600; color: var(--gray-500); font-size: 0.8rem; text-transform: uppercase; }
.table tbody tr:nth-child(even) { background: #fff; }
.table tbody tr:nth-child(odd) { background: var(--gray-50); }
.table tr:hover { background: var(--gray-100); }

/* ── Stats ────────────────────────────────────── */
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-icon { font-size: 1.75rem; margin-bottom: 0.3rem; }
.stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-label { font-size: 0.8rem; color: var(--gray-400); text-transform: uppercase; }
.stat-card--primary { border-left: 4px solid var(--primary); }
.stat-card--success { border-left: 4px solid var(--success); }
.stat-card--warning { border-left: 4px solid var(--warning); }
.stat-card--info { border-left: 4px solid var(--info); }
.stat { text-align: center; }

/* ── Cards ────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card__header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}
.card__header h3 { font-size: 0.95rem; font-weight: 600; }
.card__body { padding: 0; }
.card__body .table { margin: 0; }
.table--compact th, .table--compact td { padding: 0.5rem 0.75rem; font-size: 0.85rem; }

/* ── Progress bar ─────────────────────────────── */
.progress-bar {
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
  min-width: 80px;
}
.progress-bar__fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 0.3s;
}
.progress-bar__label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 2px;
  display: inline-block;
}

/* ── Rank badges ──────────────────────────────── */
.rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}
.rank--top { background: var(--success); }
.rank--flop { background: var(--danger); }

/* ── Section ──────────────────────────────────── */
.section { margin-top: 2rem; }

/* ── Seats ────────────────────────────────────── */
.taxi-seats { display: flex; gap: 0.5rem; margin: 0.75rem 0; }
.seat {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
}
.seat--free { background: var(--success-light); color: var(--success); border: 2px solid var(--success); cursor: pointer; transition: all 0.15s ease; }
.seat--free:hover { transform: scale(1.1); box-shadow: 0 0 0 2px rgba(59,130,246,.3); }
.seat--taken { background: var(--gray-200); color: var(--gray-400); border: 2px solid var(--gray-300); cursor: not-allowed; opacity: 0.6; }
.seat--selected { background: rgba(59,130,246,.12); color: #2563eb; border: 2px solid #2563eb; cursor: pointer; transition: all 0.15s ease; }
.seat--selected:hover { transform: scale(1.1); }

.taxi-seats-mini { display: flex; gap: 0.25rem; align-items: center; }
.seat-mini {
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: var(--success);
}
.seat-mini--taken { background: var(--gray-300); }

/* ── Taxi info ────────────────────────────────── */
.taxi-info { text-align: center; }
.taxi-plate { font-size: 1.5rem; font-weight: 700; }

/* ── Queue ────────────────────────────────────── */
.queue-list { display: flex; flex-direction: column; gap: 0.5rem; }
.queue-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.queue-item--filling { border-left: 4px solid var(--success); }
.queue-item--queued { border-left: 4px solid var(--warning); }
.queue-pos { font-size: 1.25rem; font-weight: 700; color: var(--gray-400); min-width: 2rem; }
.queue-info { flex: 1; }
.queue-plate { font-weight: 700; }
.queue-badge { margin-left: auto; }

/* ── Pipeline Kanban (manager /taxis) ────────── */
.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}
.pipeline-col {
  background: var(--gray-50, #fafafa);
  border-radius: var(--radius);
  min-height: 200px;
}
.pipeline-col__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-bottom: 2px solid var(--gray-200);
}
.pipeline-col--queued  .pipeline-col__header { border-bottom-color: var(--warning); }
.pipeline-col--filling .pipeline-col__header { border-bottom-color: var(--success); }
.pipeline-col--full    .pipeline-col__header { border-bottom-color: var(--primary); }

.pipeline-col__count {
  font-size: 0.75rem;
  background: var(--gray-200);
  padding: 0.1rem 0.5rem;
  border-radius: 20px;
  font-weight: 600;
}
.pipeline-col__body {
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pipeline-empty {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  padding: 1rem 0;
}
.pipeline-card {
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.pipeline-card__toprow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.pipeline-card__toprow .pipeline-card__number {
  margin-bottom: 0;
}
.pipeline-card__seats-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.pipeline-card__seats-block .pipeline-card__price {
  margin-top: 0.35rem;
}
.pipeline-card__price {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary);
  margin-top: 0.3rem;
}
.pipeline-card__number {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.35rem;
}
.pipeline-card__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.8rem;
  color: var(--gray-500, #666);
  margin-bottom: 0.4rem;
}
.pipeline-card__btn { width: 100%; font-size: 0.8rem; }

/* ── Kebab menu ─────────────────────────────── */
.kebab-menu { position: relative; }
.kebab-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.2rem; line-height: 1; padding: 0.15rem 0.35rem;
  border-radius: 4px; color: var(--gray-500, #666);
}
.kebab-btn:hover { background: var(--gray-100, #f3f3f3); }
.kebab-dropdown {
  display: none; position: absolute; right: 0; top: 100%;
  background: #fff; border: 1px solid var(--gray-200, #e5e5e5);
  border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.12);
  min-width: 140px; z-index: 50; overflow: hidden;
}
.kebab-dropdown.open { display: block; }
.kebab-item {
  display: block; width: 100%; text-align: left; padding: 0.5rem 0.75rem;
  font-size: 0.82rem; border: none; background: none; cursor: pointer;
}
.kebab-item:hover { background: var(--gray-100, #f5f5f5); }
.kebab-item--warn { color: var(--danger, #e74c3c); }
.kebab-item--success { color: var(--success, #27ae60); }

@media (max-width: 900px) {
  .pipeline { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pipeline { grid-template-columns: 1fr; }
}

/* ── Queue public (client view) — Grid ─────────── */

/* Header */
.station-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}
.station-header-logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  text-decoration: none;
}
.station-header-logo:hover { opacity: 0.8; }

/* Two-column layout */
.station-layout {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  padding: 1.25rem;
  min-height: calc(100vh - 56px);
}
.station-main {
  flex: 1;
  min-width: 0;
}
.station-title {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

/* Sidebar */
.station-sidebar {
  width: 260px;
  flex-shrink: 0;
}
.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--gray-700);
}
.sidebar-stations {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.sidebar-station-link {
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--gray-900);
  transition: background 0.15s, box-shadow 0.15s;
}
.sidebar-station-link:hover {
  box-shadow: var(--shadow-md);
}
.sidebar-station-link--active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(26, 86, 219, 0.3);
}
.sidebar-station-link--active .sidebar-station-city {
  color: rgba(255,255,255,0.8);
}
.sidebar-station-name {
  font-weight: 600;
  font-size: 0.92rem;
}
.sidebar-station-city {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 0.15rem;
}

/* Line sections */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  align-items: start;
}
.line-column {
  background: var(--gray-50);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--gray-200);
}
.line-column-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gray-200);
}
.line-column-title {
  font-size: 0.95rem;
  margin: 0;
  flex: 1;
}
.line-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.line-section-header h2 { margin-bottom: 0; }
.line-price-badge {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  white-space: nowrap;
}
.line-column-taxis {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.queue-grid-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  border: 2px solid transparent;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.queue-grid-card:hover { box-shadow: var(--shadow-md); }
.queue-grid-card--filling { border-color: var(--success); }
.queue-grid-pos {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary);
}
.queue-grid-plate {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gray-900);
}
.queue-grid-seats {
  display: flex;
  gap: 0.3rem;
  justify-content: center;
  margin: 0.2rem 0;
}
.seat-dot {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
}
.seat-dot--free { background: var(--success); }
.seat-dot--taken { background: var(--gray-300); }
.pipeline-card__seats {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.25rem;
}
.seat-count {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gray-600);
  margin-left: 0.2rem;
}
.queue-grid-places {
  font-size: 0.78rem;
  color: var(--gray-500);
  font-weight: 500;
}

/* ── Airport Departure Board ──────────────────── */
body:has(.board) {
  background: #0a0e17;
  margin: 0;
  padding: 0;
  overflow: hidden;
}
.board {
  background: #0a0e17;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  color: #e2e8f0;
}
.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, #1a237e 0%, #0d47a1 100%);
  border-bottom: 3px solid #ffc107;
}
.board-brand {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.board-clock {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffc107;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}

/* ── Board Table ── */
.board-lines {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
}
.board-card {
  background: #0f1525;
  border: 1px solid #1e3a5f;
  border-radius: 10px;
  flex-shrink: 0;
}
.board-card-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(90deg, #131a2e 0%, #162040 100%);
  border-bottom: 2px solid #ffc107;
}
.board-card-dest {
  font-size: 1.6rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.03em;
  flex: 1;
}
.board-card-count {
  font-size: 0.95rem;
  font-weight: 600;
  color: #90caf9;
  background: #1a2540;
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  white-space: nowrap;
}
.board-card-body {
  padding: 0.6rem 1.2rem;
}
.board-pin {
  width: 1.5em;
  height: 1.5em;
  color: #ffc107;
  flex-shrink: 0;
}

/* ── Taxis row inside board ── */
.board-taxis-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.board-taxi {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #1a2540;
  border: 1px solid #2a3a5c;
  border-radius: 8px;
  padding: 0.35rem 0.7rem;
  transition: background 0.15s, border-color 0.15s;
}
.board-taxi--filling {
  background: #1b3a20;
  border-color: #4caf50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
  animation: taxi-blink 1.8s ease-in-out infinite;
}
@keyframes taxi-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.board-taxi-pos {
  background: #141a2a;
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.board-taxi-plate {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffc107;
  letter-spacing: 0.04em;
}
.board-taxi-seats {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.board-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}
.board-dot--free {
  background: #4caf50;
  box-shadow: 0 0 4px rgba(76, 175, 80, 0.5);
}
.board-dot--taken { background: #555; }
.board-taxi-count {
  font-size: 0.85rem;
  color: #90caf9;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.board-empty {
  font-size: 1rem;
  color: #555;
  font-style: italic;
}

/* ── Board footer ── */
.board-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 2rem;
  background: #131a2e;
  border-top: 2px solid #1e3a5f;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* ── Register ─────────────────────────────────── */
.register-status {
  display: flex; align-items: center; gap: 0.5rem;
  margin-bottom: 1rem;
}
.status-dot {
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
.register-stats { margin: 1rem 0; }

/* ── Tickets list ─────────────────────────────── */
.tickets-list { display: flex; flex-direction: column; gap: 0.3rem; }
.ticket-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--gray-700);
}
.ticket-row:hover { background: var(--gray-100); }
.ticket-code { font-weight: 600; font-family: monospace; }

/* ── Ticket print ─────────────────────────────── */
.ticket-print {
  max-width: 360px;
  margin: 2rem auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ticket-header {
  background: var(--primary);
  color: #fff;
  padding: 1.25rem;
  text-align: center;
}
.ticket-header h1 { font-size: 1.3rem; }
.ticket-code-big {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: monospace;
  margin-top: 0.5rem;
  letter-spacing: 2px;
}
.ticket-body { padding: 1.25rem; }
.ticket-route {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.ticket-arrow { color: var(--primary); font-size: 1.5rem; }
.ticket-details { display: flex; flex-direction: column; gap: 0.5rem; }
.ticket-detail {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--gray-200);
}
.ticket-detail .label { color: var(--gray-400); font-size: 0.85rem; }
.ticket-detail .value { font-weight: 600; }
.ticket-qr { text-align: center; margin: 1rem 0; }
.ticket-qr img { width: 150px; }
.ticket-footer { text-align: center; font-size: 0.85rem; color: var(--gray-400); margin-top: 1rem; }

/* ── Auth ─────────────────────────────────────── */
.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
}
.auth-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.auth-logo { font-size: 3rem; margin-bottom: 0.5rem; }
.auth-sub { color: var(--gray-400); margin-bottom: 1.5rem; }

/* ── Client page ──────────────────────────────── */
.client-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.25rem;
}
.client-page--centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  background: #1a56db;
}
html:has(.client-page--centered),
html:has(.client-page--centered) body {
  background: #1a56db;
}
.client-center-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem;
}
.client-hero-logo {
  height: 150px;
  max-height: 30vh;
  max-width: 90vw;
  object-fit: contain;
  margin-bottom: 2rem;
}
.client-baseline {
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
  letter-spacing: 0.05em;
  text-align: center;
}
.client-footer {
  padding: 1.5rem 1rem;
  text-align: center;
  width: 100%;
}
.client-signature {
  font-size: 0.7rem;
  color: #fff;
  margin: 0;
}
.client-hero {
  text-align: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, #7c3aed 100%);
  color: #fff;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}
.client-hero h1 { font-size: 1.75rem; }
.client-hero p { opacity: 0.85; margin-top: 0.5rem; }

.stations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.75rem; }
.station-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 0.75rem;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  color: var(--gray-900);
  transition: transform .15s;
}
.station-card:hover { transform: translateY(-2px); }
.station-icon { font-size: 2rem; margin-bottom: 0.3rem; }
.station-card h2 { font-size: 1rem; }
.station-card p { font-size: 0.85rem; color: var(--gray-400); }
.client-search { margin-top: 2rem; }

/* ── Print ────────────────────────────────────── */
@media print {
  .no-print, .nav { display: none !important; }
  body { background: #fff; }
  .ticket-print { box-shadow: none; margin: 0 auto; }
}

/* ══════════════════════════════════════════════════
   POS LAYOUT
   ══════════════════════════════════════════════════ */
.pos {
  display: grid;
  grid-template-columns: 1fr 300px 340px;
  gap: 1.25rem;
  min-height: calc(100vh - 80px);
}
.pos-left {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pos-right {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.pos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pos-register-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--success-light);
  color: var(--success);
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* POS ticket placeholder */
.pos-ticket--empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius);
  min-height: 200px;
}
.pos-ticket-placeholder {
  text-align: center;
  color: var(--gray-400);
}
.pos-ticket-placeholder-icon { font-size: 3rem; margin-bottom: 0.5rem; }

/* POS form */
.pos-form {
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.pos-summary-card {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200);
}
.pos-summary-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.pos-summary-left {
  text-align: left;
  flex: 1;
  min-width: 0;
}
.pos-line-label {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-900);
}
.pos-taxi-info {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-top: 0.35rem;
}
.pos-seats {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
}
.pos-fields {
  display: flex;
  gap: 0.75rem;
}
.pos-field-row {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pos-field-row label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
}
.pos-field-row input {
  padding: 0.5rem 0.75rem;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: border-color .15s;
}
.pos-field-row input:focus { border-color: var(--primary); }

/* Payment methods */
.pos-payment-methods {
  display: flex;
  gap: 0.5rem;
}
.pos-pay-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.6rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  font-size: 0.9rem;
  font-weight: 600;
}
.pos-pay-btn input { display: none; }
.pos-pay-btn--active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
}

/* POS calculator */
.pos-calc {
  background: var(--gray-50);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.pos-calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}
.pos-calc-value {
  font-weight: 700;
  font-size: 1.1rem;
}
.pos-calc-value--total {
  font-size: 1.5rem;
  color: var(--primary);
}
.pos-calc-row--input {
  padding: 0.5rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.pos-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: #fff;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  transition: border-color .15s;
}
.pos-input-wrap:focus-within { border-color: var(--primary); }
.pos-input-wrap input {
  border: none;
  outline: none;
  font-size: 1.25rem;
  font-weight: 700;
  width: 80px;
  text-align: right;
  background: transparent;
}
.pos-input-wrap input::-webkit-outer-spin-button,
.pos-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.pos-input-unit { color: var(--gray-400); font-weight: 600; }
.pos-calc-row--change {
  padding-top: 0.5rem;
}
.pos-calc-row--change .pos-calc-value {
  color: var(--success);
  font-size: 1.3rem;
}
.pos-change--negative { color: var(--danger) !important; }

/* Sell button */
.pos-sell-btn {
  font-size: 1.1rem;
  padding: 1rem;
  margin-top: 0.5rem;
}

/* Shortcuts */
.pos-shortcuts {
  display: flex;
  gap: 0.5rem;
}
.pos-shortcut {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-700);
  transition: transform .1s, box-shadow .15s;
}
.pos-shortcut:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Register summary */
.pos-register-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.pos-reg-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  box-shadow: var(--shadow);
}
.pos-reg-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gray-400);
}
.pos-reg-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
}

/* Queue panel (centre) */
.pos-queue {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: #fff;
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 80px);
  overflow-y: auto;
}
.pos-queue-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  text-align: center;
  min-height: 200px;
}
.pos-queue-list {
  flex-direction: column;
  gap: 0.5rem;
}
.pos-queue-empty {
  text-align: center;
  color: var(--gray-400);
  padding: 2rem 1rem;
}

/* Queue taxi cards */
.queue-taxi {
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  transition: all .15s;
}
.queue-taxi--current {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: 0 0 0 1px var(--primary);
}
.queue-taxi--filling { border-left: 4px solid var(--success); }
.queue-taxi--queued { border-left: 4px solid var(--warning); }
.queue-taxi--full { border-left: 4px solid var(--danger); opacity: 0.6; }
.queue-taxi-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}
.queue-taxi-pos {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--primary);
  min-width: 1.5rem;
}
.queue-taxi-plate {
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
}
.queue-taxi-number {
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
}
.queue-taxi-details {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 0.2rem;
}
.queue-taxi-permit {
  font-size: 0.75rem;
  color: var(--gray-400);
  margin-left: 0.5rem;
}
.queue-taxi-status {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.queue-taxi-driver {
  font-size: 0.8rem;
  color: var(--gray-500);
  margin-bottom: 0.35rem;
}
.queue-taxi-seats {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 0.4rem;
}
.queue-taxi-seats .seat {
  width: 26px; height: 26px;
  font-size: 0.7rem;
}
.queue-taxi-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--gray-500);
}
.queue-taxi-avail {
  font-weight: 600;
  white-space: nowrap;
}
.queue-taxi-bar {
  flex: 1;
  height: 6px;
  background: var(--gray-200);
  border-radius: 3px;
  overflow: hidden;
}
.queue-taxi-bar-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width .3s;
}
.queue-taxi-time {
  white-space: nowrap;
  font-size: 0.7rem;
}

/* Right panel — Lines */
.pos-right-title {
  margin-bottom: 0.25rem;
  font-size: 1rem;
}
.pos-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.pos-line-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--gray-50);
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .15s;
  text-align: left;
  font-family: inherit;
  font-size: inherit;
  width: 100%;
}
.pos-line-card:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}
.pos-line-card--active {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}
.pos-line-dest {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}
.pos-line-arrow {
  color: var(--primary);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.pos-line-price {
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  font-size: 1rem;
}
.pos-line-taxis {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin-left: auto;
}
.pos-taxi-badge {
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
}
.pos-taxi-badge--filling { color: var(--success); }
.pos-taxi-badge--queued { color: var(--warning); }
.pos-taxi-badge--empty { color: var(--gray-400); }

/* Right panel — Recent tickets */
.pos-recent { margin-top: 1rem; }
.pos-recent h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}
.pos-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pos-recent-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--gray-700);
}
.pos-recent-item:hover { background: var(--gray-50); }
.pos-recent-code {
  font-family: monospace;
  font-weight: 600;
  font-size: 0.75rem;
}
.pos-recent-route { flex: 1; }
.pos-recent-price { font-weight: 700; white-space: nowrap; }

/* ── Mobile adjustments ───────────────────────── */
@media (max-width: 640px) {
  .pos {
    grid-template-columns: 1fr;
  }
  .pos-right {
    max-height: none;
    order: -1;
  }
  .pos-queue {
    max-height: none;
    order: 1;
  }
  .pos-fields { flex-direction: column; }
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr 1fr;
  }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .queue-item { flex-wrap: wrap; }
  h1 { font-size: 1.25rem; }
  .btn--lg { padding: 0.75rem 1.25rem; font-size: 1rem; }
}
@media (max-width: 400px) {
  .grid--2, .grid--3, .grid--4 {
    grid-template-columns: 1fr;
  }
  .radio-group { flex-direction: column; }
  .pos-payment-methods { flex-direction: column; }
  .pos-register-summary { grid-template-columns: 1fr; }
}

/* ── Station page responsive ──────────────────── */
@media (max-width: 768px) {
  .station-layout {
    flex-direction: column;
  }
  .station-sidebar {
    width: 100%;
    order: -1;
  }
  .sidebar-stations {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }
  .sidebar-station-link {
    padding: 0.45rem 0.7rem;
  }
  .sidebar-station-city { display: none; }
}

/* ═══════ Commande groupée — Sélecteur sièges ═══════ */
.pos-group-order {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  flex-shrink: 0;
}
.pos-group-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pos-group-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  white-space: nowrap;
}
.pos-group-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border-radius: 8px;
  border: none;
}
.pos-group-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--color-primary-light, #e8f0fe);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--color-primary);
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.pos-group-btn:hover:not(:disabled) {
  background: var(--color-primary);
  color: #fff;
}
.pos-group-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.pos-group-count {
  min-width: 40px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
}
.pos-group-hint {
  font-size: 0.78rem;
  color: var(--color-text-light);
  white-space: nowrap;
  font-weight: 400;
}
