/* ==========================================================================
   سامانه درخواست خودرو — طراحی تازه (زمردی + کهربایی/مرجانی)
   ========================================================================== */
:root {
  --green-950:#04231a; --green-900:#06382a; --green-800:#07523c; --green-700:#087a58;
  --green-600:#0a9d70; --green-500:#12b886; --green-400:#34d399; --green-300:#6ee7b7;
  --green-200:#a7f3d0; --green-100:#d7f7ea; --green-50:#ecfdf6;
  --amber-500:#f59e0b; --amber-400:#fbbf24; --amber-100:#fef3c7;
  --coral-600:#e11d48; --coral-500:#f43f5e; --coral-100:#ffe4e6;
  --sky-600:#0284c7; --sky-100:#e0f2fe; --violet-600:#7c3aed; --violet-100:#ede9fe;
  --ink:#0c231b; --body:#33473e; --muted:#6b7f76;
  --line:#e4ece8; --line-strong:#d3e1da; --bg:#f4f8f6; --surface:#fff; --surface-2:#f8fbf9;
  --radius-lg:22px; --radius:16px; --radius-sm:11px;
  --shadow-xs:0 1px 2px rgba(10,45,32,.05);
  --shadow:0 10px 30px -22px rgba(6,56,42,.55);
  --shadow-lg:0 30px 60px -38px rgba(6,56,42,.65);
  --ring:0 0 0 4px rgba(18,184,134,.16);
  --font:"Vazirmatn","Segoe UI",Tahoma,sans-serif;
  --mono:"JetBrains Mono",Consolas,"Courier New",monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin:0; padding:0; }
body {
  font-family:var(--font); color:var(--body);
  background:
    radial-gradient(1100px 460px at 92% -12%, rgba(52,211,153,.14), transparent 62%),
    radial-gradient(900px 420px at -10% 4%, rgba(251,191,36,.10), transparent 60%),
    var(--bg);
  font-size:15px; line-height:1.85; min-height:100vh;
  display:flex; flex-direction:column; -webkit-font-smoothing:antialiased;
}
a { color:var(--green-700); text-decoration:none; transition:color .16s; }
a:hover { color:var(--green-500); }
p { color:var(--body); }
h1, h2, h3, h4 { color:var(--ink); letter-spacing:-.2px; }
code, .num, .plate, input[dir="ltr"], td[dir="ltr"], dd[dir="ltr"] { font-family:var(--mono); }
code { background:var(--green-50); border:1px solid var(--green-100); padding:1px 7px; border-radius:7px; font-size:.88em; color:var(--green-800); }
.container { width:min(1240px,94%); margin-inline:auto; }
.page { flex:1; padding-block:28px 52px; }
.muted { color:var(--muted); }
.small { font-size:.84rem; }
.center { text-align:center; }
.mt-2 { margin-top:16px; }
.full-span { grid-column:1/-1; }
.nowrap { white-space:nowrap; }
.cell-strong { font-weight:700; color:var(--ink); }

/* ------------------------------- هدر */
.topbar {
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.86);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--line);
}
.topbar-inner { display:flex; align-items:center; gap:8px 16px; padding:10px 0; flex-wrap:wrap; }
.brand { order:0; }
.nav-toggle { order:1; }
.topbar-user { order:2; margin-inline-start:auto; }
.nav { order:3; }
.brand { display:flex; align-items:center; gap:11px; }
.brand-logo {
  width:44px; height:44px; display:grid; place-items:center; border-radius:14px;
  background:linear-gradient(145deg,var(--green-700),var(--green-500));
  color:#fff; box-shadow:0 10px 20px -12px rgba(10,157,112,.9);
}
.brand-logo svg { width:24px; height:24px; display:block; }
.brand-text { display:flex; flex-direction:column; line-height:1.3; }
.brand-text strong { font-size:1rem; font-weight:800; color:var(--ink); }
.brand-text small { color:var(--muted); font-size:.73rem; letter-spacing:.2px; }
.nav { display:flex; align-items:center; gap:2px; flex-wrap:wrap; width:100%; margin:0; padding-top:8px; border-top:1px solid var(--line); }
.nav-link {
  color:#4b6157; padding:8px 12px; border-radius:10px; font-size:.89rem;
  font-weight:600; display:inline-flex; align-items:center; gap:6px;
  transition:background .16s,color .16s;
}
.nav-link:hover { background:var(--surface-2); color:var(--green-700); }
.nav-link.active { background:var(--green-50); color:var(--green-800); box-shadow:inset 0 0 0 1px var(--green-100); }
.nav-sep { width:1px; height:22px; background:var(--line-strong); margin-inline:7px; }
.topbar-user { display:flex; align-items:center; gap:8px; }
.bell {
  position:relative; padding:8px 9px; border-radius:11px; color:var(--green-800);
  background:var(--surface-2); border:1px solid var(--line); line-height:1;
  display:inline-flex; align-items:center;
}
.bell svg { width:19px; height:19px; display:block; }
.bell:hover { background:#fff; border-color:var(--green-300); }
.bell-badge {
  position:absolute; top:-6px; inset-inline-start:-6px; background:var(--coral-600); color:#fff;
  font-size:.66rem; font-weight:800; border-radius:999px; min-width:18px; height:18px;
  display:grid; place-items:center; padding:0 4px; border:2px solid #fff;
}
.user-chip { display:flex; align-items:center; gap:9px; padding:3px 6px 3px 10px; border-radius:999px; }
.user-chip:hover { background:var(--surface-2); }
.avatar {
  width:36px; height:36px; border-radius:50%; display:grid; place-items:center;
  background:linear-gradient(140deg,var(--amber-400),#f97316); color:#431407; font-weight:800; font-size:1rem;
}
.user-meta { display:flex; flex-direction:column; line-height:1.35; }
.user-meta strong { font-size:.86rem; color:var(--ink); font-weight:700; }
.user-meta small { color:var(--muted); font-size:.71rem; }
.logout-form { margin:0; }
.nav-toggle {
  display:none; margin-inline-start:auto; width:42px; height:42px; border:1px solid var(--line);
  border-radius:12px; background:#fff; cursor:pointer; padding:10px;
  flex-direction:column; justify-content:space-between;
}
.nav-toggle span { display:block; height:2px; border-radius:2px; background:var(--green-800); }

/* ------------------------------ دکمه‌ها */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:10px 17px; border-radius:11px; border:1px solid transparent;
  font-family:inherit; font-size:.9rem; font-weight:700; cursor:pointer;
  transition:transform .14s,box-shadow .16s,background .16s,border-color .16s;
  background:var(--surface-2); color:var(--ink); white-space:nowrap; text-decoration:none;
}
.btn:hover { transform:translateY(-1px); }
.btn:active { transform:translateY(0); }
.btn:focus-visible { outline:none; box-shadow:var(--ring); }
.btn-sm { padding:6px 12px; font-size:.81rem; border-radius:9px; }
.btn-lg { padding:13px 24px; font-size:.98rem; border-radius:13px; }
.btn-block { width:100%; }
.btn-primary { background:linear-gradient(135deg,var(--green-600),var(--green-800)); color:#fff; box-shadow:0 12px 22px -14px rgba(8,122,88,.95); }
.btn-primary:hover { color:#fff; filter:brightness(1.07); }
.btn-accent { background:linear-gradient(135deg,var(--amber-400),#f97316); color:#431407; box-shadow:0 12px 22px -14px rgba(245,158,11,.9); }
.btn-accent:hover { color:#431407; filter:brightness(1.04); }
.btn-danger { background:linear-gradient(135deg,var(--coral-500),#be123c); color:#fff; }
.btn-danger:hover { color:#fff; filter:brightness(1.06); }
.btn-outline { background:#fff; border-color:var(--line-strong); color:var(--green-800); }
.btn-outline:hover { border-color:var(--green-400); background:var(--green-50); }
.btn-ghost { background:transparent; border-color:transparent; color:var(--muted); }
.btn-ghost:hover { background:var(--surface-2); color:var(--ink); }
.btn-light { background:#fff; color:var(--green-800); border-color:rgba(255,255,255,.6); }
.btn-light:hover { background:var(--green-50); color:var(--green-900); }

/* ------------------------------- پیام‌ها */
.alert {
  display:flex; align-items:flex-start; gap:12px; justify-content:space-between;
  padding:13px 16px; border-radius:var(--radius-sm); margin-bottom:18px;
  border:1px solid; font-size:.92rem; box-shadow:var(--shadow-xs); animation:slide .22s ease;
}
@keyframes slide { from { opacity:0; transform:translateY(-6px); } to { opacity:1; transform:none; } }
.alert-success { background:var(--green-50); border-color:var(--green-200); color:var(--green-800); }
.alert-error { background:var(--coral-100); border-color:#fecdd3; color:#9f1239; }
.alert-warning { background:var(--amber-100); border-color:#fde68a; color:#92400e; }
.alert-icon {
  flex:0 0 auto; width:20px; height:20px; margin-top:3px; display:grid; place-items:center;
  border-radius:50%; border:1.4px solid currentColor; font-size:.74rem; font-weight:800; line-height:1;
}
.alert-text { flex:1; }
.alert-close { background:none; border:none; font-size:1.2rem; cursor:pointer; color:inherit; opacity:.55; line-height:1; }
.alert-close:hover { opacity:1; }
.err-list { margin:6px 0 0; padding-inline-start:18px; }
.err { color:var(--coral-600); font-size:.79rem; display:block; margin-top:4px; }

/* --------------------------------- هیرو */
.hero {
  position:relative; overflow:hidden; display:flex; align-items:center; justify-content:space-between;
  gap:26px; padding:36px 38px; margin-bottom:24px; border-radius:var(--radius-lg); color:#eafff6;
  background:
    radial-gradient(600px 260px at 100% 0%, rgba(251,191,36,.30), transparent 62%),
    radial-gradient(500px 300px at 0% 110%, rgba(52,211,153,.30), transparent 60%),
    linear-gradient(125deg,#052e22,#07523c 55%,#0a7a5a);
  box-shadow:var(--shadow-lg);
}
.hero::before {
  content:""; position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:34px 34px; mask-image:linear-gradient(90deg,rgba(0,0,0,.65),transparent 75%);
}
.hero > * { position:relative; z-index:1; }
.hero-kicker { margin:0 0 6px; color:var(--green-300); font-size:.82rem; letter-spacing:.6px; font-weight:600; }
.hero h1 { margin:0 0 8px; font-size:1.9rem; font-weight:800; color:#fff; }
.hero-sub { margin:0; color:#c8f5e3; max-width:64ch; font-size:.96rem; }
.hero-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:22px; }
.hero-art { font-size:5rem; line-height:1; filter:drop-shadow(0 16px 26px rgba(0,0,0,.35)); }

/* ---------------------------- کارت و آمار */
.card { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow); margin-bottom:20px; }
.card-flush { padding:0; overflow:hidden; }
.card-highlight { border-color:#fde68a; background:#fffdf5; }
.card-head { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-bottom:16px; padding-bottom:12px; border-bottom:1px solid var(--line); }
.card-head h2 { margin:0; font-size:1rem; font-weight:800; color:var(--ink); display:flex; align-items:center; gap:8px; }
.card-head-pad { padding:18px 22px 14px; margin-bottom:0; }
.card-flush .table-wrap { margin:0; }
.step { display:inline-grid; place-items:center; width:27px; height:27px; background:var(--green-50); border:1px solid var(--green-100); color:var(--green-700); border-radius:9px; font-size:.8rem; margin-inline-end:6px; }
.stats-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(158px,1fr)); gap:14px; margin-bottom:24px; }
.stat-card {
  position:relative; overflow:hidden; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius); padding:18px 16px; text-align:center; box-shadow:var(--shadow-xs);
  transition:transform .18s,box-shadow .18s,border-color .18s;
}
.stat-card::before { content:""; position:absolute; inset-inline:0; top:0; height:4px; background:var(--green-400); }
.stat-card:hover { transform:translateY(-2px); box-shadow:var(--shadow); border-color:var(--line-strong); }
.stat-ico { display:block; font-size:1.35rem; line-height:1.4; }
.stat-num { display:block; font-size:1.9rem; font-weight:800; color:var(--green-800); line-height:1.35; }
.stat-label { color:var(--muted); font-size:.82rem; }
.stat-pending::before { background:var(--amber-400); }
.stat-pending .stat-num { color:#b45309; }
.stat-info::before { background:var(--sky-600); }
.stat-info .stat-num { color:var(--sky-600); }
.stat-approved::before { background:var(--green-500); }
.stat-completed::before { background:var(--violet-600); }
.stat-completed .stat-num { color:var(--violet-600); }
.stat-month::before { background:var(--coral-500); }
.stat-month .stat-num { color:var(--coral-600); }
.stat-total::before { background:var(--green-800); }
.stat-cancelled::before { background:var(--coral-500); }
.stat-cancelled .stat-num { color:var(--coral-600); }
a.stat-link { text-decoration:none; cursor:pointer; }
a.stat-link:hover { transform:translateY(-2px); box-shadow:var(--shadow); }

/* ------------------------------- جدول‌ها */
.table-wrap { overflow-x:auto; margin:0 -2px; }
table { width:100%; border-collapse:separate; border-spacing:0; font-size:.89rem; }
thead th { text-align:start; background:var(--surface-2); color:#566b61; padding:11px 14px; font-weight:700; font-size:.78rem; letter-spacing:.2px; border-bottom:1px solid var(--line); white-space:nowrap; }
tbody td { padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:middle; color:var(--body); }
tbody tr:hover { background:#f9fdfb; }
tbody tr:last-child td { border-bottom:none; }
.row-off { opacity:.58; background:#fafafa; }
.code { font-weight:700; color:var(--green-700); font-family:var(--mono); font-size:.85rem; letter-spacing:.2px; }
.chip { display:inline-block; background:var(--surface-2); border:1px solid var(--line); color:#3e574c; border-radius:999px; padding:2px 10px; font-size:.75rem; font-weight:600; margin:2px; white-space:nowrap; }
.chip-soft { background:var(--green-50); border-color:var(--green-100); color:var(--green-800); }
.table-foot { padding:11px 20px; border-top:1px solid var(--line); font-size:.82rem; background:var(--surface-2); }
.th-action { width:1%; }
.td-action { white-space:nowrap; }
.action-row { display:flex; gap:6px; flex-wrap:wrap; align-items:center; }

/* ---------------------------- نشان وضعیت */
.badge { display:inline-flex; align-items:center; gap:5px; padding:4px 11px; border-radius:999px; font-size:.77rem; font-weight:700; white-space:nowrap; border:1px solid transparent; }
.badge-lg { font-size:.87rem; padding:6px 14px; }
.badge-pending { background:var(--amber-100); border-color:#fde68a; color:#92400e; }
.badge-info { background:var(--sky-100); border-color:#bae6fd; color:#075985; }
.badge-approved { background:var(--green-100); border-color:var(--green-200); color:var(--green-800); }
.badge-rejected { background:var(--coral-100); border-color:#fecdd3; color:#9f1239; }
.badge-completed { background:var(--violet-100); border-color:#ddd6fe; color:#5b21b6; }
.badge-cancelled { background:#f1f5f9; border-color:#e2e8f0; color:#475569; }

/* ---------------------------------- فرم */
.form-stack { display:flex; flex-direction:column; gap:6px; }
.form { display:flex; flex-direction:column; gap:15px; }
.grid-2 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
.grid-3 { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.field { display:flex; flex-direction:column; gap:6px; margin:0; min-width:0; }
.field > span { font-size:.84rem; font-weight:700; color:#2b4037; }
.field input, .field select, .field textarea, .filter-row input, .filter-row select, .inline-form select {
  font-family:inherit; font-size:.92rem; color:var(--ink); padding:10px 13px;
  border:1.5px solid var(--line-strong); border-radius:var(--radius-sm); background:#fff;
  transition:border-color .16s,box-shadow .16s; width:100%;
}
.field input::placeholder, .field textarea::placeholder { color:#9aaba3; }
.field textarea { resize:vertical; min-height:86px; line-height:1.8; }
.field input:focus, .field select:focus, .field textarea:focus,
.filter-row input:focus, .filter-row select:focus, .inline-form select:focus {
  outline:none; border-color:var(--green-400); box-shadow:var(--ring);
}
.form-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-top:16px; padding-top:16px; border-top:1px solid var(--line); }
.divider { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:.8rem; margin-top:4px; }
.divider::before, .divider::after { content:""; flex:1; height:1px; background:var(--line); }
.inline-form { display:inline-flex; gap:6px; margin:0; }
.inline-form select { padding:6px 9px; font-size:.83rem; width:auto; }
.check-row { display:flex; gap:9px; align-items:center; font-size:.89rem; cursor:pointer; }
.check-row input { width:17px; height:17px; accent-color:var(--green-600); }
.hint { color:var(--muted); font-size:.77rem; display:block; margin-top:3px; }
.hint.has-error { color:var(--coral-600); font-weight:600; }
.vehicle-box { border:1.5px solid var(--line); background:var(--surface-2); border-radius:var(--radius-sm); padding:16px 17px; margin:0; }
.vehicle-box legend { font-weight:800; color:var(--green-800); font-size:.88rem; padding:0 8px; }
.vehicle-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(215px,1fr)); gap:10px; }
.vehicle-item { display:flex; align-items:center; gap:10px; background:#fff; border:1.5px solid var(--line); border-radius:var(--radius-sm); padding:9px 12px; transition:border-color .16s,background .16s; }
.vehicle-item:has(input:checked) { border-color:var(--green-400); background:var(--green-50); }
.vehicle-check { display:flex; align-items:center; gap:8px; flex:1; cursor:pointer; margin:0; font-size:.89rem; font-weight:600; }
.vehicle-check input { width:18px; height:18px; accent-color:var(--green-600); cursor:pointer; }
.veh-count { width:74px; padding:6px 8px; text-align:center; }
.notes-card { background:linear-gradient(180deg,#f7fffb,#fff 60%); border-color:var(--green-200); }
.notes-list { margin:0; padding:0; list-style:none; counter-reset:note; display:grid; gap:8px; }
.notes-list li { counter-increment:note; position:relative; padding:11px 46px 11px 14px; background:#fff; border:1px solid var(--line); border-radius:10px; font-size:.9rem; }
.notes-list li::before {
  content:counter(note,decimal); position:absolute; inset-inline-start:12px; top:11px;
  width:24px; height:24px; display:grid; place-items:center;
  background:var(--green-50); border:1px solid var(--green-100); color:var(--green-700);
  border-radius:8px; font-size:.75rem; font-weight:800;
}
.accept-box { display:flex; align-items:center; gap:10px; margin-top:16px; background:#fffbeb; border:1.5px dashed var(--amber-500); border-radius:var(--radius-sm); padding:13px 16px; cursor:pointer; font-weight:600; color:#92400e; font-size:.89rem; }
.accept-box input { width:19px; height:19px; accent-color:var(--green-600); }
.accept-box.has-error { border-color:var(--coral-600); background:var(--coral-100); color:#9f1239; }

/* -------------------------------- فیلترها */
.filters { margin-bottom:16px; }
.filter-row { display:flex; gap:10px; flex-wrap:wrap; }
.filter-row input { flex:1; min-width:220px; }
.filter-row select { width:auto; min-width:170px; }
.search-box { position:relative; flex:1; min-width:220px; }
.search-box input { padding-inline-start:38px; }
.search-ico {
  position:absolute; inset-inline-start:13px; top:50%; transform:translateY(-50%);
  width:11px; height:11px; border:1.6px solid currentColor; border-radius:50%; opacity:.45;
}
.search-ico::after {
  content:""; position:absolute; width:5px; height:1.6px; border-radius:2px;
  background:currentColor; inset-inline-start:9px; top:9px; transform:rotate(45deg);
}
.tabs-chips { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:16px; }
.chip-tab { display:inline-flex; align-items:center; gap:6px; background:#fff; border:1.5px solid var(--line); color:var(--muted); padding:7px 14px; border-radius:999px; font-size:.84rem; font-weight:600; transition:.16s; }
.chip-tab b { font-weight:800; color:inherit; }
.chip-tab:hover { border-color:var(--green-300); color:var(--green-700); }
.chip-tab.active { background:var(--green-800); border-color:var(--green-800); color:#fff; box-shadow:0 10px 18px -14px rgba(6,56,42,.9); }

/* --------------------------- سرصفحه داخلی */
.page-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.page-head h1 { margin:0 0 4px; font-size:1.5rem; font-weight:800; display:flex; align-items:center; gap:8px; }
.page-head p { margin:0; font-size:.9rem; }
.head-ico { font-size:1.3rem; }
.head-actions { display:flex; gap:9px; flex-wrap:wrap; align-items:center; }
.crumbs { font-size:.78rem; color:var(--muted); margin-bottom:6px; }
.crumbs a { color:var(--green-700); }
.crumbs span { margin-inline:4px; opacity:.5; }
.pill { display:inline-flex; align-items:center; padding:6px 13px; border-radius:999px; font-size:.8rem; font-weight:700; background:var(--surface-2); border:1px solid var(--line); color:var(--body); }
.pill-accent { background:var(--amber-100); border-color:#fde68a; color:#92400e; }
.detail-code { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.detail-code h1 { margin:0; font-size:1.4rem; }
.detail-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.detail-grid .card { margin-bottom:0; }
.dl { display:grid; grid-template-columns:minmax(130px,auto) 1fr; gap:10px 16px; margin:0; }
.dl dt { color:var(--muted); font-size:.84rem; font-weight:600; }
.dl dd { margin:0; font-weight:600; font-size:.92rem; color:var(--ink); }
.plate { letter-spacing:1px; background:#fffbeb; border:1px dashed var(--amber-500); padding:2px 10px; border-radius:8px; display:inline-block; }
.vehicle-list { display:flex; flex-direction:column; gap:8px; }
.vehicle-row { display:flex; align-items:center; gap:10px; justify-content:space-between; background:var(--surface-2); border:1px solid var(--line); padding:9px 14px; border-radius:var(--radius-sm); }
.vehicle-name { font-weight:700; color:var(--green-800); }
.vehicle-count { background:#fff; border-radius:999px; padding:2px 12px; font-size:.8rem; font-weight:700; color:var(--green-700); border:1px solid var(--line); }
.sub-note { margin-top:13px; background:#fffbeb; border:1px dashed var(--amber-500); border-radius:var(--radius-sm); padding:11px 14px; font-size:.89rem; }
.sub-note p { margin:5px 0 0; }
.transport-comment { background:var(--green-50); border-inline-start:4px solid var(--green-500); padding:12px 15px; border-radius:10px; margin:0; white-space:pre-wrap; }
.empty-inline { margin:4px 0 0; font-size:.9rem; }
.route { display:inline-flex; align-items:center; gap:5px; white-space:nowrap; }
.route-dot { width:7px; height:7px; border-radius:50%; display:inline-block; }
.route-from { background:var(--green-500); }
.route-to { background:var(--amber-500); }
.route-arrow { color:var(--muted); opacity:.65; }

/* ------------------------------ تایم‌لاین */
.timeline { list-style:none; margin:0; padding:8px 0 0; position:relative; }
.timeline::before { content:""; position:absolute; inset-inline-start:11px; top:18px; bottom:18px; width:2px; background:linear-gradient(var(--green-300),var(--green-100)); }
.tl-item { position:relative; padding:0 42px 18px 0; }
.tl-dot { position:absolute; inset-inline-start:3px; top:6px; width:18px; height:18px; border-radius:50%; background:#fff; border:3px solid var(--green-500); z-index:1; }
.tl-reject .tl-dot { border-color:var(--coral-600); }
.tl-need_info .tl-dot { border-color:var(--sky-600); }
.tl-cancel .tl-dot { border-color:#94a3b8; }
.tl-complete .tl-dot { border-color:var(--violet-600); }
.tl-head { display:flex; gap:8px; flex-wrap:wrap; align-items:baseline; }
.tl-date { margin-inline-start:auto; }
.tl-comment { margin:6px 0 0; background:var(--surface-2); border:1px solid var(--line); border-radius:9px; padding:9px 13px; font-size:.88rem; white-space:pre-wrap; }

/* --------------------------- تب اقدام‌ها */
.tabs { display:flex; gap:6px; margin-bottom:16px; flex-wrap:wrap; padding:5px; background:var(--surface-2); border:1px solid var(--line); border-radius:13px; }
.tab { font-family:inherit; font-size:.86rem; font-weight:700; cursor:pointer; background:transparent; border:1px solid transparent; color:var(--muted); padding:8px 16px; border-radius:9px; transition:.16s; }
.tab:hover { color:var(--green-700); background:#fff; }
.tab.active { background:#fff; border-color:var(--line); color:var(--ink); box-shadow:var(--shadow-xs); }
.tab-panel { display:none; }
.tab-panel.active { display:block; animation:slide .22s ease; }
.decision-card { border-top:4px solid var(--amber-500); }

/* ---------------------------- آمار/نمودار */
.bars { display:flex; flex-direction:column; gap:13px; }
.bar-row { display:grid; grid-template-columns:130px 1fr 46px; align-items:center; gap:11px; }
.bar-label { font-size:.84rem; color:var(--muted); font-weight:600; }
.bar-track { background:var(--surface-2); height:13px; border-radius:999px; overflow:hidden; border:1px solid var(--line); }
.bar-fill { height:100%; border-radius:999px; background:linear-gradient(90deg,var(--green-400),var(--green-600)); transition:width .5s ease; }
.bar-pending { background:linear-gradient(90deg,#fcd34d,var(--amber-500)); }
.bar-need_info { background:linear-gradient(90deg,#7dd3fc,var(--sky-600)); }
.bar-rejected { background:linear-gradient(90deg,#fda4af,var(--coral-600)); }
.bar-completed { background:linear-gradient(90deg,#c4b5fd,var(--violet-600)); }
.bar-cancelled { background:linear-gradient(90deg,#cbd5e1,#64748b); }
.bar-accent { background:linear-gradient(90deg,#fcd34d,#f97316); }
.bar-value { font-weight:800; color:var(--green-800); font-size:.88rem; text-align:center; }
.column-chart { display:flex; align-items:flex-end; justify-content:space-around; gap:12px; height:210px; padding-top:12px; }
.col { display:flex; flex-direction:column; align-items:center; justify-content:flex-end; height:100%; flex:1; gap:6px; }
.col-value { font-size:.76rem; font-weight:800; color:var(--green-800); }
.col-bar { width:min(44px,70%); min-height:6px; border-radius:9px 9px 4px 4px; background:linear-gradient(180deg,var(--green-400),var(--green-600)); transition:height .5s ease; }
.col-label { font-size:.76rem; color:var(--muted); font-weight:600; }

/* ------------------------------- اعلان‌ها */
.notif-list { list-style:none; margin:0; padding:0; }
.notif { display:flex; align-items:center; gap:13px; padding:14px 10px; border-bottom:1px solid var(--line); }
.notif:last-child { border-bottom:none; }
.notif.unread { background:var(--green-50); border-inline-start:4px solid var(--green-500); padding-inline-start:14px; border-radius:10px; }
.notif-body { flex:1; }
.notif-body p { margin:0; font-size:.91rem; }
.notif-icon {
  flex:0 0 auto; width:9px; height:9px; margin-top:9px; border-radius:50%;
  background:#c9d6d0;
}
.notif-icon.unread { background:var(--sky-600); box-shadow:0 0 0 3px rgba(2,132,199,.14); }

/* ------------------------ حالت خالی و ورود */
.empty { text-align:center; padding:44px 16px; }
.empty.big { padding:76px 16px; }
.empty-icon { display:none; }
.empty h3 { margin:4px 0; }
.empty p { color:var(--muted); margin:6px 0 16px; }
.empty h1 { color:var(--ink); }
.auth-wrap { display:grid; place-items:center; padding:40px 0; }
.auth-shell {
  display:grid; grid-template-columns:1.05fr .95fr; width:min(940px,100%);
  background:#fff; border:1px solid var(--line); border-radius:26px;
  box-shadow:var(--shadow-lg); overflow:hidden;
}
.auth-aside {
  position:relative; overflow:hidden; padding:38px 34px; color:#d9fff0;
  background:
    radial-gradient(520px 260px at 100% 0%, rgba(251,191,36,.32), transparent 60%),
    linear-gradient(150deg,#04231a,#07523c 65%,#0a7a5a);
  display:flex; flex-direction:column;
}
.auth-aside::after {
  content:""; position:absolute; inset:0;
  background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:30px 30px; mask-image:radial-gradient(360px 360px at 80% 20%,#000,transparent);
}
.auth-aside > * { position:relative; z-index:1; }
.auth-brand { display:flex; align-items:center; gap:11px; }
.auth-brand .brand-logo { background:rgba(255,255,255,.14); box-shadow:none; border:1px solid rgba(255,255,255,.2); }
.auth-brand strong { color:#fff; font-size:.98rem; display:block; }
.auth-brand small { color:var(--green-300); font-size:.74rem; }
.auth-aside h2 { margin:42px 0 10px; font-size:1.5rem; color:#fff; line-height:1.6; }
.auth-aside p { margin:0; color:#bdf0db; font-size:.9rem; }
.auth-points { list-style:none; margin:24px 0 0; padding:0; display:grid; gap:12px; }
.auth-points li { position:relative; padding-inline-start:16px; font-size:.87rem; color:#d9fff0; }
.auth-points li::before {
  content:""; position:absolute; inset-inline-start:0; top:.72em; width:6px; height:6px;
  border-radius:50%; background:var(--green-300);
}
.auth-aside-foot { margin-top:auto; padding-top:30px; font-size:.76rem; color:rgba(217,255,240,.65); }
.auth-card { padding:40px 36px 30px; display:flex; flex-direction:column; justify-content:center; }
.auth-head { text-align:center; margin-bottom:22px; }
.auth-logo { width:58px; height:58px; margin:0 auto 12px; display:grid; place-items:center; background:var(--green-50); border:1px solid var(--green-100); border-radius:18px; color:var(--green-700); }
.auth-logo svg { width:27px; height:27px; display:block; }
.auth-head h1 { margin:0 0 4px; font-size:1.24rem; font-weight:800; }
.auth-head p { margin:0; color:var(--muted); font-size:.86rem; }
.auth-foot { text-align:center; font-size:.84rem; color:var(--muted); margin:18px 0 0; }
.auth-note { background:var(--green-50); border:1px dashed var(--green-300); border-radius:11px; padding:11px 14px; margin-top:16px; font-size:.83rem; color:var(--green-800); text-align:center; }


/* ==========================================================================
   ناوگان: نقشه شماتیک نئونی + پلاک
   ========================================================================== */
.split-2 { display:grid; grid-template-columns:minmax(340px,400px) 1fr; gap:18px; align-items:start; margin-block:18px; }
.plate-inputs { display:flex; gap:6px; align-items:center; justify-content:center; }
.plate-box { border:2px solid var(--line-strong); background:#fff; border-radius:10px; text-align:center; font-family:var(--mono); font-weight:700; font-size:1.05rem; padding:9px 6px; transition:border-color .15s,box-shadow .15s; }
.plate-box:focus { outline:none; border-color:var(--green-500); box-shadow:var(--ring); }
.plate-num { width:62px; letter-spacing:1px; }
.plate-wide { width:78px; }
.plate-letter { width:52px; font-size:1.2rem; }
.plate-sep { font-size:.72rem; color:var(--muted); border:1px dashed var(--line-strong); border-radius:8px; padding:3px 7px; background:var(--surface-2); user-select:none; }
.plate-tag, .plate-mini { display:inline-block; border:2px solid var(--ink); border-radius:7px; background:linear-gradient(#fff,#f1f5f0); padding:2px 9px; font-family:var(--mono); font-weight:700; font-size:.84rem; letter-spacing:.5px; white-space:nowrap; }
.plate-mini { font-size:.76rem; border-width:1px; padding:1px 6px; }

/* پلاک بخش‌بخش (همان شکل ثبت) */
.plate-view {
  display:inline-flex; align-items:center; gap:2px; direction:ltr;
  border:1px solid #1b2a22; background:linear-gradient(#fff,#eef2ee);
  border-radius:7px; padding:2px 4px; font-family:var(--mono); font-weight:700;
  font-size:.8rem; line-height:1.25; white-space:nowrap; color:#0b2b20; vertical-align:middle;
}
.plate-view .pv { padding:1px 3px; min-width:1.1em; text-align:center; }
.plate-view .pv-letter { border-inline:1px solid #c8d3cb; padding-inline:5px; }
.plate-view .pv-prov { border-inline-start:1px solid #c8d3cb; padding-inline-start:5px; }
.plate-view .pv-iran { font-family:inherit; font-size:.54rem; font-weight:500; letter-spacing:.4px; color:#3f5a4c; padding:0 2px; }
.plate-view-sm { font-size:.74rem; padding:1px 3px; }
.plate-view-xs { font-size:.66rem; padding:1px 3px; }
.map-unlocated .plate-view { background:transparent; border-color:rgba(167,243,208,.35); color:#a7f3d0; }
.map-unlocated .plate-view .pv-letter, .map-unlocated .plate-view .pv-prov { border-color:rgba(167,243,208,.25); }
.map-unlocated .plate-view .pv-iran { color:rgba(167,243,208,.7); }
.mp-plate-view { border-color:rgba(167,243,208,.45); background:rgba(217,255,240,.1); color:#eafff6; }
.mp-plate-view .pv-letter, .mp-plate-view .pv-prov { border-color:rgba(167,243,208,.3); }
.mp-plate-view .pv-iran { color:rgba(167,243,208,.8); }
.loc-pin { color:var(--green-700); font-weight:600; font-size:.88rem; }
.card-map { padding:18px; }
.card-map .card-head { margin-bottom:12px; }
.map-legend { display:flex; gap:12px; align-items:center; font-size:.76rem; color:var(--muted); flex-wrap:wrap; }
.map-legend .lg { width:9px; height:9px; border-radius:50%; display:inline-block; margin-inline-end:4px; box-shadow:0 0 8px currentColor; }
.lg-free { background:#34d399; color:#34d399; }
.lg-use { background:#fbbf24; color:#fbbf24; }
.lg-off { background:#94a3b8; color:#94a3b8; }
.map-shell {
  position:relative; border-radius:16px; overflow:hidden; border:1px solid #0d3b2c;
  background:
    radial-gradient(700px 380px at 70% 10%, rgba(16,185,129,.16), transparent 65%),
    radial-gradient(560px 320px at 10% 90%, rgba(251,191,36,.08), transparent 60%),
    #04170f;
  box-shadow:inset 0 0 80px rgba(0,0,0,.55);
}
.card-map #fleet-map { height:520px; width:100%; border-radius:14px; background:#061512; }
.iran-map svg { width:100%; height:100%; display:block; }

/* نقشه برداری ایران — استان‌ها به‌صورت برداری (بدون کاشی و نام شهر) */
.iran-map .map-sea { fill:#04120d; }
.iran-map .province-layer { filter:drop-shadow(0 3px 14px rgba(0,0,0,.6)); }
.iran-map .province {
  fill:#0c261e; stroke:rgba(125,235,205,.46); stroke-width:1;
  stroke-linejoin:round; vector-effect:non-scaling-stroke;
  transition:fill .25s ease, stroke .2s ease;
}
.iran-map .province.st-free { fill:#123a2c; stroke:rgba(52,211,153,.62); }
.iran-map .province.st-in_use { fill:#43320f; stroke:rgba(251,191,36,.82); }
.iran-map .province.st-inactive { fill:#1b2530; stroke:rgba(148,163,184,.5); }
.iran-map .province:hover { stroke:#eafff6; stroke-width:1.7; }
.iran-map .prov-dot { fill:rgba(167,243,208,.7); pointer-events:none; }
.iran-map .prov-name {
  fill:#d9fff0; text-anchor:middle; pointer-events:none;
  opacity:0; transition:opacity .2s ease; paint-order:stroke;
  stroke:#04120d; stroke-width:2px; stroke-linejoin:round; letter-spacing:.2px;
}
.iran-map.is-zoomed .prov-name { opacity:.92; }
.iran-map .province-layer, .iran-map .province-labels { pointer-events:auto; }

/* نقاط خودروها */
.iran-map .veh-marker { cursor:pointer; }
.iran-map .veh-marker:focus { outline:none; }
.iran-map .veh-halo { opacity:.2; animation:neonPulse 2.6s ease-in-out infinite; transform-origin:center; transform-box:fill-box; }
.iran-map .veh-marker.st-in_use .veh-halo { animation-duration:1.4s; }
.iran-map .veh-marker.st-inactive { opacity:.6; }
.iran-map .veh-core { transition:transform .15s; transform-origin:center; transform-box:fill-box; }
.iran-map .veh-marker:hover .veh-core { transform:scale(1.28); }
.iran-map .veh-marker.is-selected .veh-core { transform:scale(1.3); }
.iran-map .veh-marker.is-selected .veh-ring { stroke-width:2.6; }
@keyframes neonPulse { 0%,100% { opacity:.14; transform:scale(.9); } 50% { opacity:.42; transform:scale(1.35); } }

/* پنل مشخصات خودرو (با کلیک روی نقطه) */
.map-popup {
  position:absolute; z-index:6; inset-block-end:12px; inset-inline-start:12px;
  width:min(272px,80%); padding:13px 14px 12px; border-radius:14px;
  background:rgba(4,23,15,.93); border:1px solid rgba(52,211,153,.45);
  box-shadow:0 22px 46px -26px #000; color:#d9fff0; font-size:.8rem; line-height:1.7;
  backdrop-filter:blur(7px);
}
.map-popup[hidden] { display:none; }
.map-popup-close {
  position:absolute; top:5px; inset-inline-end:8px; background:none; border:none;
  color:#a7f3d0; font-size:1.15rem; line-height:1; cursor:pointer; opacity:.65;
}
.map-popup-close:hover { opacity:1; }
.mp-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:8px; padding-bottom:8px; border-bottom:1px solid rgba(167,243,208,.2); padding-inline-end:16px; }
.mp-plate { font-family:var(--mono); font-weight:700; letter-spacing:.6px; font-size:.9rem; color:#fff; }
.mp-status { font-size:.71rem; font-weight:700; border:1px solid; border-radius:999px; padding:1px 8px; }
.mp-rows { display:grid; grid-template-columns:auto 1fr; gap:3px 10px; margin:0; }
.mp-rows dt { color:rgba(167,243,208,.7); font-size:.75rem; }
.mp-rows dd { margin:0; color:#eafff6; }

.map-empty { position:absolute; inset:0; display:grid; place-content:center; text-align:center; gap:4px; color:#a7f3d0; background:rgba(4,23,15,.45); font-size:.9rem; }
.map-empty[hidden] { display:none; }
.map-empty small { color:rgba(167,243,208,.7); font-size:.78rem; }
/* ابزارهای بزرگ‌نمایی */
.map-tools { position:absolute; z-index:5; top:10px; inset-inline-end:10px; display:flex; flex-direction:column; gap:5px; }
.map-tools button {
  width:30px; height:30px; border-radius:9px; border:1px solid rgba(167,243,208,.35);
  background:rgba(4,23,15,.82); color:#d9fff0; font-size:1.05rem; font-weight:700;
  line-height:1; cursor:pointer; backdrop-filter:blur(4px); font-family:inherit; padding:0;
}
.map-tools button:hover, .map-tools button:focus-visible { background:rgba(16,185,129,.28); outline:none; border-color:rgba(52,211,153,.75); }
.map-tools .map-reset { width:auto; height:26px; padding:0 8px; font-size:.68rem; }
.iran-map { touch-action:none; }
.iran-map.is-zoomed { cursor:grab; }
.iran-map.is-zoomed:active { cursor:grabbing; }
.map-credit {
  position:absolute; z-index:5; inset-block-end:4px; inset-inline-end:8px;
  font:400 10px/1.4 system-ui,sans-serif; color:rgba(217,255,240,.78);
  background:rgba(4,23,15,.6); padding:1px 5px; border-radius:4px; text-decoration:none;
}
.map-credit:hover { color:#fff; text-decoration:underline; }
.map-unlocated { display:flex; flex-wrap:wrap; gap:6px; align-items:center; padding:4px 4px 0; font-size:.78rem; }
.map-unlocated .plate-mini { background:#0b2b20; color:#a7f3d0; border-color:rgba(167,243,208,.35); }
.stats-fleet { grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); }
.nav-badge { background:var(--coral-600); color:#fff; font-size:.69rem; font-weight:800; border-radius:999px; padding:1px 7px; margin-inline-start:2px; box-shadow:0 3px 8px rgba(225,29,72,.35); }
.btn-badge { background:var(--coral-600); color:#fff; font-size:.72rem; font-weight:800; border-radius:999px; padding:1px 8px; margin-inline-start:2px; }
.jalali-date { letter-spacing:1px; text-align:center; font-weight:600; }
.card-form .form { padding-top:2px; }

/* ---------------------------- مدیریت کاربران */
.user-password-box { margin-top:18px; }
.password-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
.password-row { display:flex; gap:10px; flex:1; min-width:270px; margin:0; }
.password-row input {
  font-family:inherit; font-size:.9rem; padding:9px 12px; border:1.5px solid var(--line-strong);
  border-radius:var(--radius-sm); background:#fff; flex:1; min-width:180px;
}
.password-row input:focus { outline:none; border-color:var(--green-400); box-shadow:var(--ring); }

/* ---------------------------- تقویم شمسی */
.jp-input { cursor:pointer; }
.jp-pop {
  position:fixed; z-index:140; width:280px; padding:10px;
  background:#fff; border:1px solid var(--line-strong); border-radius:14px;
  box-shadow:var(--shadow-lg); font-size:.84rem; direction:rtl;
}
.jp-pop[hidden] { display:none; }
.jp-head { display:flex; align-items:center; gap:6px; margin-bottom:6px; }
.jp-nav {
  width:28px; height:28px; border:1px solid var(--line); background:var(--surface-2);
  border-radius:8px; cursor:pointer; font-size:1.05rem; color:var(--ink); line-height:1; font-family:inherit;
}
.jp-nav:hover { border-color:var(--green-400); color:var(--green-700); }
.jp-title { flex:1; display:flex; gap:5px; }
.jp-title select {
  flex:1; min-width:0; border:1px solid var(--line); border-radius:8px; padding:4px 5px;
  background:#fff; font-family:inherit; font-size:.82rem; color:var(--ink);
}
.jp-week { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; margin-bottom:4px; color:var(--muted); font-size:.7rem; text-align:center; }
.jp-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:2px; }
.jp-day {
  height:30px; border:1px solid transparent; background:transparent; border-radius:7px;
  cursor:pointer; font-family:inherit; font-size:.83rem; color:var(--ink);
}
.jp-day:hover { background:var(--green-50); }
.jp-day.is-today { border-color:var(--green-400); font-weight:700; }
.jp-day.is-selected { background:var(--green-600); color:#fff; font-weight:700; }
.jp-day.is-disabled { color:#c3ccc6; cursor:not-allowed; background:transparent; }
.jp-empty { height:30px; }
.jp-foot { display:flex; justify-content:space-between; margin-top:8px; border-top:1px solid var(--line); padding-top:7px; }
.jp-foot button { border:0; background:none; color:var(--green-700); font-family:inherit; font-size:.78rem; cursor:pointer; padding:2px 4px; }
.jp-foot .jp-clear { color:var(--coral-600); }

/* ----------------------------- واکنش‌گرا */
@media (max-width:1080px) {
  .split-2 { grid-template-columns:1fr; }
}
@media (max-width:980px) {
  .detail-grid, .grid-3 { grid-template-columns:1fr; }
  .hero-art { display:none; }
  .auth-shell { grid-template-columns:1fr; }
  .auth-aside { display:none; }
  .nav-toggle { display:flex; }
    .nav {
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:2px;
    padding:8px 0 4px;
    border-top:1px solid var(--line);
  }
  .topbar-user { order:2; }
  .nav.open { display:flex; }
  .nav-link { padding:10px 12px; }
  .nav-sep { display:none; }
  .topbar-user { margin-inline-start:auto; }
}
@media (max-width:720px) {
  .grid-2 { grid-template-columns:1fr; }
  body { font-size:14.5px; }
  .hero { padding:26px 22px; }
  .hero h1 { font-size:1.45rem; }
  .bar-row { grid-template-columns:92px 1fr 40px; }
  .user-meta { display:none; }
  .page-head { flex-direction:column; }
  .dl { grid-template-columns:1fr; gap:2px 0; }
  .dl dt { margin-top:9px; }
  .card-map #fleet-map { height:400px; }
  .auth-card { padding:30px 22px 24px; }
  .brand-text strong { font-size:.93rem; }
  .brand-text small { display:none; }
  .topbar-inner { gap:10px; }
}

/* --------------------------------- چاپ */
@media print {
  body { background:#fff; font-size:12px; }
  .no-print, .topbar, .footer, .tabs, .tab-panel, .form-actions, .alert { display:none !important; }
  .card { box-shadow:none; border:1px solid #999; break-inside:avoid; }
  .detail-grid { grid-template-columns:1fr 1fr; }
  .hero { background:#fff; border:1px solid #999; color:#000; }
  a { color:inherit; text-decoration:none; }
}

/* تخصیص چند خودرو به یک درخواست */
.assign-lead { margin:0 0 10px; }
.assign-grid {
  display:grid; grid-template-columns:repeat(auto-fit, minmax(230px, 1fr));
  gap:10px 14px; margin-bottom:8px;
}
.assign-slot { min-width:0; }
.assign-slot select { width:100%; }
.assigned-row { align-items:center; gap:8px; flex-wrap:wrap; }

/* ---------------------------- انتخاب شهر با جست‌وجو */
.cp-wrap { position:relative; }
.cp-list {
  position:absolute; z-index:70; top:calc(100% + 4px); inset-inline:0;
  max-height:230px; overflow:auto; padding:4px; margin:0;
  background:#fff; border:1px solid var(--line-strong); border-radius:11px;
  box-shadow:var(--shadow-lg); list-style:none;
}
.cp-list[hidden] { display:none; }
.cp-item {
  display:block; width:100%; text-align:start; padding:7px 10px; border:0;
  background:none; border-radius:7px; cursor:pointer;
  font-family:inherit; font-size:.86rem; color:var(--ink); line-height:1.6;
}
.cp-item:hover, .cp-item.is-active { background:var(--surface-2, #f1f5f3); color:var(--green-800, #065f46); }
.cp-item mark { background:transparent; color:var(--green-700, #047857); font-weight:700; }
.cp-empty { padding:8px 10px; color:var(--muted); font-size:.8rem; }
.cp-clear { font-size:.72rem; color:var(--muted); }

/* لایه خشکی و مرز ملی روی نقشه برداری */
.iran-map .map-land { fill:#0a211a; stroke:none; }
.iran-map .map-country {
  fill:none; stroke:rgba(125,235,205,.78); stroke-width:1.6;
  stroke-linejoin:round; vector-effect:non-scaling-stroke; pointer-events:none;
}
