/* =============================================================================
   components.css — مكتبة المكوّنات المشتركة
   ============================================================================= */

/* ---------------------------- شريط الخطر العلوي ---------------------------- */
.hazard-bar {
  height: 5px; flex: none;
  background: repeating-linear-gradient(45deg, var(--brand) 0 12px, #1B2436 12px 24px);
}

/* ---------------------------- الشريط العلوي ---------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40; flex: none;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; gap: var(--sp-3);
  height: 60px; padding-inline: var(--sp-4);
  max-width: 1280px; margin-inline: auto;
}
.brand { display: flex; align-items: center; gap: var(--sp-3); font-family: var(--font-display);
  font-weight: 800; font-size: 1.05rem; color: var(--text); min-width: 0; }
.brand-mark { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center;
  flex: none; background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: var(--on-brand); box-shadow: var(--shadow-brand); }
.brand-mark svg { width: 22px; height: 22px; }
.brand small { display: block; font-family: var(--font-body); font-weight: 500;
  font-size: .72rem; color: var(--text-muted); }
.grow { flex: 1; }

.topbar-nav { display: flex; gap: var(--sp-1); margin-inline-start: var(--sp-3); }
.topbar-nav a { padding: 8px 14px; border-radius: var(--r-pill); font-weight: 700;
  font-size: .9rem; color: var(--text-2); }
.topbar-nav a:hover { background: var(--surface-2); color: var(--text); }
.topbar-nav a.active { background: var(--brand); color: var(--on-brand); }

.theme-toggle, .icon-btn {
  width: 42px; height: 42px; border-radius: var(--r-sm); flex: none;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.theme-toggle:hover, .icon-btn:hover { background: var(--surface-3); color: var(--text); }
.theme-toggle svg, .icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.logout-btn { color: var(--danger); }
.logout-btn:hover { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }

.user-chip {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px;
  border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border);
  font-weight: 700; font-size: .85rem; min-width: 0;
}
.user-chip .av { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--brand); color: var(--on-brand); font-size: .75rem; font-weight: 800; }
.user-chip .who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.user-chip .who span { font-weight: 500; font-size: .7rem; color: var(--text-muted); }

/* ---------------------------- الحاويات ---------------------------- */
.container { max-width: 1280px; margin-inline: auto; padding: var(--sp-5) var(--sp-4); width: 100%; }
.stack { display: flex; flex-direction: column; }
.gap-3 { gap: var(--sp-3); } .gap-4 { gap: var(--sp-4); }
.mt-4 { margin-top: var(--sp-4); } .mt-6 { margin-top: var(--sp-6); }
.text-muted { color: var(--text-muted); }
.tnum, .km, .num { font-variant-numeric: tabular-nums; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.page-head h1 { font-size: 1.5rem; }
.page-head p { color: var(--text-muted); font-size: .9rem; margin-top: 2px; }

/* ---------------------------- البطاقات ---------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-4); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h3 { font-size: 1.02rem; }
.card-pad { padding: var(--sp-4); }
.card-title-eyebrow { font-size: .78rem; color: var(--text-muted); font-weight: 700; }

/* ---------------------------- الأزرار ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding-inline: 18px; border-radius: var(--r-sm); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: .92rem; border: 1px solid transparent;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: var(--shadow-brand); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ghost { background: var(--surface-2); color: var(--text-2); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { filter: brightness(1.08); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-sm { height: 36px; padding-inline: 12px; font-size: .84rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------------------------- الحقول ---------------------------- */
.select, .input {
  height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); padding-inline: 12px; width: 100%;
  font-family: var(--font-body); font-size: .95rem;
}
.select:focus, .input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; }
.field-row { display: grid; gap: var(--sp-3); }
.field-2 { grid-template-columns: 1fr 1fr; }
.field label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
.field { margin-bottom: var(--sp-3); }
.hint { font-size: .78rem; color: var(--text-muted); margin-top: 5px; }

.search { position: relative; display: flex; align-items: center; min-width: 0; }
.search svg { position: absolute; inset-inline-start: 12px; width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.search input {
  width: 100%; height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text); padding-inline: 38px 12px; font-size: .92rem;
}
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

/* ---------------------------- التبويبات ---------------------------- */
.tabs {
  display: flex; gap: 6px; padding: 5px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none; max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: 1 0 auto; min-height: 40px; padding-inline: 16px; border-radius: var(--r-pill);
  border: none; background: transparent; color: var(--text-2); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: .88rem; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.tabs button svg { width: 17px; height: 17px; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand-700); box-shadow: var(--shadow-sm); }
[data-theme="dark"] .tabs button[aria-selected="true"] { color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .18s var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------------------------- المقسّم (seg) ---------------------------- */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-pill);
  background: var(--surface-2); border: 1px solid var(--border); }
.seg button { min-height: 34px; padding-inline: 12px; border-radius: var(--r-pill); border: none;
  background: transparent; color: var(--text-2); cursor: pointer; font-family: var(--font-body);
  font-weight: 700; font-size: .82rem; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--on-brand); }

/* ---------------------------- شارة الحالة ---------------------------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px;
  border-radius: var(--r-pill); font-weight: 700; font-size: .78rem; white-space: nowrap;
  background: color-mix(in srgb, var(--pill) 15%, transparent); color: var(--pill);
  border: 1px solid color-mix(in srgb, var(--pill) 30%, transparent);
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pill); flex: none; }
.status-pill.live .dot { animation: beat 1.6s var(--ease) infinite; }
@keyframes beat { 0%,100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--pill) 60%, transparent); } 60% { box-shadow: 0 0 0 6px transparent; } }
.status-pill[data-status="idle"]        { --pill: var(--st-idle); }
.status-pill[data-status="loading"]     { --pill: var(--st-loading); }
.status-pill[data-status="enroute"]     { --pill: var(--st-enroute); }
.status-pill[data-status="arrived"]     { --pill: var(--st-arrived); }
.status-pill[data-status="returning"]   { --pill: var(--st-returning); }
.status-pill[data-status="maintenance"] { --pill: var(--danger); }
.status-pill[data-status="completed"]   { --pill: var(--ok); }

/* ---------------------------- الشرائح ---------------------------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: var(--r-pill);
  font-size: .76rem; font-weight: 700; white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.overdue { background: var(--danger-soft); color: var(--danger); }
.chip.info { background: var(--info-soft); color: var(--info); }

/* ---------------------------- مقياس الصيانة ---------------------------- */
.gauge { --g: var(--ok); padding: 12px; border-radius: var(--r-sm); background: var(--surface-2);
  border: 1px solid var(--border); }
.gauge[data-level="warn"] { --g: var(--warn); }
.gauge[data-level="overdue"] { --g: var(--danger); }
.gauge-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.gauge-label { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .84rem; }
.gauge-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--g) 16%, transparent); color: var(--g); flex: none; }
.gauge-ico svg { width: 15px; height: 15px; }
.gauge-remaining { font-size: .76rem; font-weight: 700; color: var(--g); font-variant-numeric: tabular-nums; }
.gauge-track { height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.gauge-fill { height: 100%; border-radius: 99px; background: var(--g); transition: width .5s var(--ease-out); }

/* ---------------------------- الجداول ---------------------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th, table.data td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.data th { font-weight: 700; font-size: .78rem; color: var(--text-muted); background: var(--surface-2); position: sticky; top: 0; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-2); }
.cell-strong { font-weight: 700; color: var(--text); }

/* ---------------------------- الصفوف (قوائم) ---------------------------- */
.list { display: flex; flex-direction: column; }
.list-row {
  display: flex; align-items: center; gap: var(--sp-3); padding: 12px var(--sp-4);
  border-bottom: 1px solid var(--border); min-width: 0;
}
.list-row:last-child { border-bottom: none; }
.list-row .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.list-row .meta strong { font-size: .92rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .meta span { font-size: .78rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .acts { display: flex; gap: 6px; flex: none; }
.row-ico { width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none;
  background: var(--surface-2); color: var(--text-2); }
.row-ico svg { width: 18px; height: 18px; }
.row-ico.warn { background: var(--warn-soft); color: var(--warn); }
.row-ico.overdue { background: var(--danger-soft); color: var(--danger); }
.row-ico.brand { background: var(--brand-soft); color: var(--brand-700); }

/* زر إظهار المزيد */
.more-btn { width: 100%; height: 44px; border: none; border-top: 1px solid var(--border);
  background: var(--surface-2); color: var(--brand-700); font-family: var(--font-body);
  font-weight: 700; font-size: .86rem; cursor: pointer; border-radius: 0 0 var(--r-md) var(--r-md); }
.more-btn:hover { background: var(--surface-3); }
[data-theme="dark"] .more-btn { color: var(--brand); }

/* ---------------------------- بطاقة الرحلة (مصغّرة) ---------------------------- */
.trip-card {
  display: flex; align-items: center; gap: var(--sp-3); padding: 12px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-sm);
  cursor: pointer; position: relative; overflow: hidden; min-width: 0;
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease-out);
}
.trip-card::before { content: ""; position: absolute; inset-inline-start: 0; top: 0; bottom: 0; width: 4px; background: var(--tc, var(--st-idle)); }
/* سهم الدخول: حجم ثابت — بدون هذا يتمدّد ويبتلع البطاقة */
.trip-card > svg { width: 18px; height: 18px; flex: none; color: var(--text-muted); }
.trip-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.trip-card[data-status="loading"]   { --tc: var(--st-loading); }
.trip-card[data-status="enroute"]   { --tc: var(--st-enroute); }
.trip-card[data-status="arrived"]   { --tc: var(--st-arrived); }
.trip-card[data-status="returning"] { --tc: var(--st-returning); }
.trip-card[data-status="completed"] { --tc: var(--ok); }
.trip-card .tc-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.trip-card .tc-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.trip-card .tc-driver { font-weight: 800; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-card .tc-route { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-2); min-width: 0; }
.trip-card .tc-route b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-card .tc-route .arw { color: var(--text-muted); flex: none; }
.trip-card .tc-foot { display: flex; align-items: center; gap: 10px; font-size: .76rem; color: var(--text-muted); flex-wrap: wrap; }
.trip-card .tc-foot span { display: inline-flex; align-items: center; gap: 4px; }
.trip-card .tc-foot svg { width: 12px; height: 12px; }

/* ---------------------------- شبكة اختيار (شاحنة/سائق) ---------------------------- */
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pick {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px;
  border-radius: var(--r-sm); border: 1.5px solid var(--border); background: var(--surface-2);
  cursor: pointer; text-align: right; transition: all var(--dur) var(--ease); min-width: 0; width: 100%;
}
.pick:hover { border-color: var(--brand); }
.pick[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px var(--brand-soft); }
[data-theme="dark"] .pick[aria-pressed="true"] { background: color-mix(in srgb, var(--brand) 18%, transparent); }
.pick strong { font-size: .92rem; font-weight: 800; }
.pick span { font-size: .76rem; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pick[disabled] { opacity: .45; pointer-events: none; }

/* ---------------------------- مؤشرات KPI ---------------------------- */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--sp-3); }
.kpi { --k: var(--brand); padding: var(--sp-4); border-radius: var(--r-md); background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; inset-inline-end: -18px; top: -18px; width: 70px; height: 70px;
  border-radius: 50%; background: color-mix(in srgb, var(--k) 12%, transparent); }
.kpi.brand { --k: var(--brand); } .kpi.info { --k: var(--info); }
.kpi.warn { --k: var(--warn); } .kpi.danger { --k: var(--danger); } .kpi.ok { --k: var(--ok); }
.kpi-ico { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center;
  background: color-mix(in srgb, var(--k) 15%, transparent); color: var(--k); margin-bottom: 10px; }
.kpi-ico svg { width: 19px; height: 19px; }
.kpi-val { font-family: var(--font-display); font-weight: 900; font-size: 1.7rem; line-height: 1; color: var(--text); }
.kpi-lbl { font-size: .8rem; color: var(--text-muted); margin-top: 4px; font-weight: 600; }

/* ---------------------------- فراغ ---------------------------- */
.empty { padding: var(--sp-8) var(--sp-4); text-align: center; color: var(--text-muted); }
.empty svg { width: 34px; height: 34px; margin-bottom: 10px; opacity: .5; }
.empty strong { display: block; color: var(--text-2); margin-bottom: 4px; }
.empty p { font-size: .85rem; }

/* ---------------------------- النوافذ (Modals) ---------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4); background: rgba(8, 13, 23, .55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 460px; max-height: 88dvh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); transform: translateY(14px) scale(.98); opacity: 0;
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-2) var(--ease);
}
.modal.wide { max-width: 700px; }
.modal-backdrop.open .modal { transform: none; opacity: 1; }
.modal.dragging { transition: none; }
.modal-grip { display: none; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-4); border-bottom: 1px solid var(--border); flex: none; }
.modal-head h3 { font-size: 1.05rem; }
.modal-head p { font-size: .82rem; color: var(--text-muted); margin-top: 2px; }
.modal-close { width: 34px; height: 34px; border-radius: var(--r-xs); border: none; cursor: pointer;
  background: var(--surface-2); color: var(--text-2); display: grid; place-items: center; flex: none; }
.modal-close:hover { background: var(--surface-3); color: var(--text); }
.modal-close svg { width: 17px; height: 17px; }
.modal-body { padding: var(--sp-4); overflow-y: auto; overflow-x: hidden; flex: 1; }
.modal-foot { padding: var(--sp-4); border-top: 1px solid var(--border); display: flex; gap: var(--sp-3); flex: none; }
.modal-foot .btn { flex: 1; }

body.scroll-locked { position: fixed; inset: 0; width: 100%; overflow: hidden; }

@media (max-width: 640px) {
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { max-width: 100%; max-height: 92dvh; border-radius: var(--r-lg) var(--r-lg) 0 0;
    transform: translateY(100%); }
  .modal-backdrop.open .modal { transform: none; }
  .modal-grip { display: block; width: 42px; height: 4px; border-radius: 99px; background: var(--border-strong);
    margin: 10px auto 2px; flex: none; }
}

/* ---------------------------- الإشعارات ---------------------------- */
.toast-wrap { position: fixed; inset-block-end: 16px; inset-inline: 16px; z-index: 200;
  display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { --t: var(--info); display: flex; gap: 10px; align-items: center; width: 100%; max-width: 380px;
  padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: all var(--dur-2) var(--ease-out); }
.toast.show { opacity: 1; transform: none; }
.toast .bar { width: 3px; align-self: stretch; border-radius: 99px; background: var(--t); flex: none; }
.toast strong { display: block; font-size: .88rem; }
.toast span { display: block; font-size: .78rem; color: var(--text-muted); }
.toast.ok { --t: var(--ok); } .toast.warn { --t: var(--warn); }
.toast.danger { --t: var(--danger); } .toast.info { --t: var(--info); }

/* ---------------------------- أهداف اللمس على الجوال ---------------------------- */
@media (max-width: 640px) {
  .btn, .theme-toggle, .icon-btn, .select, .input, .search input, .tabs button, .more-btn { min-height: 48px; }
  .btn-sm { min-height: 40px; }
  .seg button { min-height: 40px; }
}

/* =============================================================================
   إصلاح الشريط العلوي على الجوال — منع التزاحم و الخروج عن الشاشة
   ============================================================================= */
@media (max-width: 640px) {
  .topbar-inner { gap: 6px; padding-inline: 10px; height: 56px; }

  /* الشعار: أيقونة فقط (النص يزاحم على الشاشات الصغيرة) */
  .brand > span:last-child { display: none; }
  .brand-mark { width: 34px; height: 34px; }

  /* شارة المستخدم: الحرف الأول فقط */
  .user-chip { padding: 4px; gap: 0; border: 0; background: transparent; }
  .user-chip .who { display: none; }

  /* روابط التنقّل: أصغر و بلا التفاف */
  .topbar-nav { margin-inline-start: 0; gap: 4px; }
  .topbar-nav a { padding: 6px 10px; font-size: .8rem; white-space: nowrap; }

  /* الأزرار: مربّعة و مضغوطة */
  .theme-toggle, .logout-btn { width: 40px; height: 40px; min-height: 40px; padding: 0; flex: none; }
  .theme-toggle svg, .logout-btn svg { width: 18px; height: 18px; }

  /* التبويبات: تمرير أفقي داخلي فقط (الصفحة تبقى بلا تمرير أفقي) */
  .tabs { flex-wrap: nowrap; }
  .tabs button { white-space: nowrap; flex: none; padding-inline: 12px; font-size: .85rem; }
}

/* أزرار داخل بطاقة الرحلة (المجدولة) */
.trip-card .tc-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.trip-card[data-status="scheduled"] { --tc: #0EA5E9; }
