/* فونت وزیرمتن — لوکال */
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('fonts/Vazirmatn-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: #f1f5f9; color: #0f172a;
  min-height: 100vh; direction: rtl;
}
input, button, select { font-family: inherit; }
button { cursor: pointer; }

/* صفحه ورود — طراحی جدید */
.gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(45,212,191,.38), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(8,145,178,.55), transparent 55%),
    linear-gradient(160deg, #0f766e, #115e59 55%, #0f172a);
}
.gate::before, .gate::after {
  content: ""; position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.05); pointer-events: none;
}
.gate::before { width: 260px; height: 260px; top: -70px; right: -70px; }
.gate::after { width: 340px; height: 340px; bottom: -120px; left: -100px; }
.gate-card {
  background: rgba(255,255,255,.97); border-radius: 26px; padding: 30px 24px 24px;
  width: 100%; max-width: 360px; text-align: center; position: relative; z-index: 1;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 24px 60px rgba(0,0,0,.4), inset 0 1px 0 #fff;
}
.gate-logo {
  width: 76px; height: 76px; margin: 0 auto 12px; display: flex;
  align-items: center; justify-content: center; font-size: 2.1rem;
  background: linear-gradient(135deg, #14b8a6, #0e7490); border-radius: 24px;
  box-shadow: 0 12px 26px rgba(13,148,136,.4), inset 0 2px 3px rgba(255,255,255,.35);
}
.gate-card h1 { font-size: 1.3rem; font-weight: 800; margin: 2px 0 4px; color: #134e4a; letter-spacing: -.3px; }
.gate-sub { color: #64748b; font-size: .84rem; margin-bottom: 20px; }
.gate-card .field { margin: 0 0 12px; text-align: right; }
.gate-card .field label { display: block; font-size: .78rem; font-weight: 700; color: #334155; margin-bottom: 6px; }
.gate-card select {
  width: 100%; padding: 12px 14px; border: 1.5px solid #d3e3e3; border-radius: 14px;
  background: #f8fafc; font-size: 1rem; font-weight: 600; color: #0f172a;
}
.gate-card input {
  width: 100%; padding: 13px 12px; border: 1.5px solid #d3e3e3; border-radius: 14px;
  font-size: 1.25rem; font-weight: 700; text-align: center; letter-spacing: 8px;
  background: #f8fafc; color: #0f172a; margin-bottom: 12px;
  transition: border-color .15s, box-shadow .15s;
}
.gate-card input:focus, .gate-card select:focus {
  border-color: #14b8a6; box-shadow: 0 0 0 4px rgba(20,184,166,.15); outline: none;
}
.gate-card .btn.primary {
  background: linear-gradient(135deg, #14b8a6, #0e7490); color: #fff;
  border-radius: 15px; padding: 14px; font-size: 1.02rem; font-weight: 800;
  box-shadow: 0 10px 22px rgba(13,148,136,.38); margin-top: 2px;
  transition: transform .12s, box-shadow .12s;
}
.gate-card .btn.primary:active { transform: scale(.97); box-shadow: 0 5px 12px rgba(13,148,136,.3); }
.gate-card .hint { margin: 12px 0 0; }
.gate-err { color: #dc2626; font-size: .8rem; font-weight: 700; min-height: 18px; margin-top: 8px; }
/* نوار نرخ */
.rate-bar { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; margin: 10px 0; }
.rate-bar label { font-weight: 700; font-size: .85rem; }
.rate-bar input { flex: 1; padding: 9px 12px; border: 1.5px solid #cbd5e1; border-radius: 10px; font-size: 1rem; }

/* ساختار */
main { padding: 10px 12px 90px; max-width: 520px; margin: 0 auto; }
.topbar { background: #0e7490; color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 5; }
.topbar-title { font-weight: 700; font-size: .95rem; }
.topbar .mini-btn { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.section-title { font-size: .9rem; color: #0e7490; margin: 18px 0 8px; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; }
.stat .k { font-size: .72rem; color: #64748b; }
.stat .v { font-size: 1.05rem; font-weight: 700; margin-top: 4px; word-break: break-all; }
.stat.wide { grid-column: 1 / -1; }
.pos { color: #15803d; } .neg { color: #dc2626; } .amber { color: #b45309; }
.hedge-alert { margin-top: 8px; border-radius: 12px; padding: 12px 14px; font-size: .82rem; line-height: 1.9; }
.hedge-alert.bad { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.hedge-alert.good { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

.field { margin: 10px 0; }
.field label { display: block; font-size: .78rem; font-weight: 700; margin-bottom: 5px; color: #334155; }
.field input { width: 100%; padding: 11px 12px; border: 1.5px solid #cbd5e1; border-radius: 12px; font-size: 1rem; background: #fff; }
.hint { font-size: .72rem; color: #64748b; line-height: 1.8; margin: 8px 0 16px; }
.card-form { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 12px 14px; margin: 8px 0; }

.btn { border: none; border-radius: 12px; padding: 13px 16px; font-size: .95rem; font-weight: 700; width: 100%; background: #e2e8f0; color: #0f172a; margin: 4px 0 14px; }
.btn.primary { background: #0e7490; color: #fff; }
.btn.ghost { background: #fff; border: 1.5px dashed #94a3b8; color: #475569; }
.btn.slim { width: auto; padding: 9px 18px; margin: 0; }
.mini-btn { background: #fff; border: 1px solid #cbd5e1; border-radius: 10px; padding: 6px 10px; font-size: .75rem; font-weight: 700; }

/* ردیف فروش */
.sale-row { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 12px; margin: 8px 0; position: relative; }
.sale-row .field { margin: 6px 0; }
.sale-row .row-head { display: flex; justify-content: space-between; align-items: center; }
.sale-row .row-head b { font-size: .8rem; color: #0e7490; }
.sr-del { background: none; border: none; color: #dc2626; font-size: .8rem; font-weight: 700; }
.sr-profit { font-size: .75rem; font-weight: 700; margin-top: 4px; }
.sr-profit.pos { color: #15803d; } .sr-profit.neg { color: #dc2626; }

/* انتخابگر جستجودار */
.picker-wrap { position: relative; }
.picker { position: absolute; top: 100%; right: 0; left: 0; background: #fff; border: 1px solid #cbd5e1; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.15); max-height: 220px; overflow-y: auto; z-index: 20; margin-top: 4px; }
.picker-item { padding: 10px 14px; font-size: .85rem; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.picker-item:last-child { border-bottom: none; }
.picker-item:hover { background: #f0f9fa; }
.picker-item .pi-sub { font-size: .7rem; color: #64748b; }
.picker-empty { padding: 10px 14px; font-size: .8rem; color: #94a3b8; text-align: center; }

/* لیست کالاها */
.prod-row { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 14px; margin: 8px 0; display: flex; justify-content: space-between; align-items: center; }
.prod-row .p-name { font-weight: 700; font-size: .88rem; }
.prod-row .p-sub { font-size: .7rem; color: #64748b; margin-top: 3px; line-height: 1.8; }
.prod-row .p-actions { display: flex; gap: 6px; flex-shrink: 0; margin-right: 8px; }
.prod-row .p-actions button { background: #f1f5f9; border: none; border-radius: 10px; padding: 7px 10px; font-size: .75rem; font-weight: 700; }
.prod-row .p-actions .p-del { color: #dc2626; background: #fef2f2; }

/* رویدادها */
.event { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 10px 12px; margin: 8px 0; font-size: .8rem; }
.event .e-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.event .e-date { color: #64748b; font-size: .7rem; }
.event .e-badge { font-size: .68rem; padding: 2px 8px; border-radius: 20px; font-weight: 700; }
.e-badge.in { background: #dbeafe; color: #1d4ed8; }
.e-badge.sale { background: #dcfce7; color: #15803d; }
.e-badge.fx { background: #fef9c3; color: #a16207; }
.e-badge.freeze { background: #e0e7ff; color: #4338ca; }
.e-badge.rate { background: #f1f5f9; color: #475569; }
.e-badge.freight { background: #ffedd5; color: #c2410c; }
.e-badge.prod { background: #fae8ff; color: #a21caf; }
.e-del { background: none; border: none; color: #dc2626; font-size: .75rem; }

.bottom-nav { position: fixed; bottom: 0; right: 0; left: 0; background: #fff; border-top: 1px solid #e2e8f0; display: flex; z-index: 5; }
.nav-btn { flex: 1; background: none; border: none; padding: 13px 2px; font-size: .72rem; font-weight: 700; color: #64748b; }
.nav-btn.active { color: #0e7490; border-top: 3px solid #0e7490; padding-top: 10px; }

#toast { position: fixed; bottom: 84px; right: 50%; transform: translateX(50%); background: #1e293b; color: #fff; padding: 10px 20px; border-radius: 24px; font-size: .8rem; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 50; max-width: 88vw; text-align: center; }
#toast.show { opacity: 1; }


/* ---------- آکاردئون داشبورد ---------- */
.acc {
  background: #fff;
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 14px;
  background: none;
  border: none;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  color: #0f172a;
  cursor: pointer;
  text-align: right;
}
.acc-head .acc-sum {
  flex: 1;
  font-weight: 400;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acc-head .acc-arrow {
  color: #0e7490;
  font-size: 13px;
  transition: transform .2s;
}
.acc.open { border-right: 3px solid #0e7490; }
.acc-body { padding: 0 12px 12px; }
.acc-body .section-title { margin-top: 4px; }
.acc-body .rate-bar { margin-bottom: 8px; }

/* ---------- مودال‌ها (سبک anb) ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 100;
}
.modal-card {
  background: #fff;
  width: 100%;
  max-width: 420px;
  border-radius: 18px 18px 0 0;
  padding: 18px 16px 22px;
  position: relative;
  max-height: 88vh;
  overflow-y: auto;
}
.m-title { margin: 0 0 10px; font-size: 17px; color: #0f172a; }
.m-close {
  position: absolute;
  top: 12px; left: 12px;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: none;
  background: #f1f5f9;
  color: #475569;
  font-size: 14px;
  cursor: pointer;
}
.m-user {
  background: #f1f5f9;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 14px;
  color: #334155;
}
.m-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-bottom: 8px;
  border: none;
  border-radius: 12px;
  background: #0e7490;
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-align: right;
}
.m-btn:active { filter: brightness(.92); }
.m-btn.danger { background: #dc2626; }
.e-by { color: #94a3b8; font-size: 11px; }

/* گزارش بازه‌ای */
.range-box {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 12px; margin-bottom: 8px;
}
.range-box .btn { width: 100%; margin-top: 4px; }
.r-sel {
  flex: 1; min-width: 0; padding: 10px 6px; border: 1px solid #cbd5e1;
  border-radius: 10px; background: #f8fafc; font-family: inherit; font-size: 15px;
}
#range-result .stat-grid { margin-top: 8px; }

/* ---------- تقویم شمسی گرافیکی ---------- */
.date-btn {
  width: 100%; padding: 12px; border: 1.5px solid #cbd5e1; border-radius: 10px;
  background: #fff; font-family: inherit; font-size: 15px; font-weight: 600; color: #0f172a;
  cursor: pointer; text-align: center;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 10px; }
.cal-title { font-weight: 700; font-size: 16px; color: #0f172a; }
.cal-nav {
  width: 36px; height: 36px; border: none; border-radius: 10px; background: #e2f4f2;
  color: #0d9488; font-size: 18px; font-weight: 700; cursor: pointer;
}
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 12px; color: #64748b; margin-bottom: 4px; }
.cal-week span { padding: 4px 0; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-day {
  aspect-ratio: 1; border: none; border-radius: 9px; background: #f1f5f9;
  font-family: inherit; font-size: 14px; color: #0f172a; cursor: pointer;
}
.cal-day.today { background: #ccfbf1; color: #0d9488; font-weight: 700; }
.cal-day.sel { background: #0d9488; color: #fff; font-weight: 700; }
#modal-cal .cal-head { margin-top: 34px; }
.picker-new { color: #0d9488; font-weight: 700; border-top: 1px dashed #cbd5e1; }

/* ---------- نسخه ۱۲ ---------- */
.mch-row { display: flex; align-items: flex-end; justify-content: space-around; gap: 6px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 14px 10px 8px; margin: 10px 0; min-height: 150px; }
.mch-col { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; min-width: 0; }
.mch-bar { width: 70%; max-width: 34px; background: linear-gradient(180deg, #2dd4bf, #0d9488); border-radius: 6px 6px 2px 2px; }
.mch-bar.loss { background: linear-gradient(180deg, #fda4af, #e11d48); }
.mch-val { font-size: .58rem; font-weight: 700; white-space: nowrap; }
.mch-val.pos { color: #0d9488; }
.mch-val.neg { color: #e11d48; }
.mch-label { font-size: .62rem; color: #64748b; }
.mch-label.now { color: #0f172a; font-weight: 800; }
.p-rep { background: #f0fdfa; color: #0d9488; border: 1px solid #99f6e4; }
.rep-head { font-weight: 800; font-size: 1rem; margin: 4px 0 10px; color: #0f172a; }

/* ---------- نسخه ۱۳: حالت‌های فرم فروش ---------- */
.mode-switch { display: flex; gap: 8px; margin: 0 0 10px; }
.mode-btn { flex: 1; padding: 9px 10px; border: 1.5px solid #cbd5e1; background: #fff; color: #475569; border-radius: 12px; font-family: inherit; font-size: .82rem; font-weight: 700; }
.mode-btn.active { background: #0d9488; border-color: #0d9488; color: #fff; }
.check-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; cursor: pointer; }
.check-item.on { border-color: #0d9488; background: #f0fdfa; }
.check-item input[type=checkbox] { width: 20px; height: 20px; accent-color: #0d9488; flex-shrink: 0; }
.ci-wrap { display: flex; flex-direction: column; min-width: 0; }
.ci-name { font-weight: 800; color: #0f172a; }
.ci-sub { font-size: .7rem; color: #64748b; margin-top: 2px; }

/* ---------- نسخه ۱۴: سود/زیان زنده ردیف ---------- */
.p-ok { color: #059669; font-weight: 800; }
.p-bad { color: #dc2626; font-weight: 800; }

/* ---------- نسخه ۱۴b: چیدمان فیلدهای ردیف فروش ---------- */
.sr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sr-grid .price-f input { font-weight: 800; color: #0f766e; }


/* ============================================================
   نسخه ۱۵ — لایه گرافیکی جدید (فقط ظاهر، بدون تغییر منطق)
   ============================================================ */
:root {
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #14b8a6;
  --ink: #0f172a;
  --line: #e6eef0;
}
body {
  background: linear-gradient(180deg, #ecf7f5 0%, #f3f6fa 45%, #f1f5f9 100%);
  -webkit-font-smoothing: antialiased;
}

/* هدر گرادیانی */
.topbar {
  background: linear-gradient(135deg, #115e59, #0d9488 55%, #14b8a6);
  box-shadow: 0 4px 18px rgba(13, 148, 136, .35);
  padding: 14px 18px;
}
.topbar-title { font-size: 1.02rem; font-weight: 800; }
.topbar .mini-btn { background: rgba(255, 255, 255, .18); backdrop-filter: blur(4px); transition: background .2s; }
.topbar .mini-btn:active { background: rgba(255, 255, 255, .3); }

/* کارت‌ها: نرم و نفس‌دار */
.card-form, .rate-bar, .stat, .check-item, .event, .sale-row {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(15, 23, 42, .05);
}
.card-form { padding: 14px 16px; margin: 10px 0; }
.stat { padding: 13px 15px; }
.stat .k { font-size: .7rem; color: #64748b; font-weight: 600; }
.stat .v { font-size: 1.15rem; font-weight: 800; letter-spacing: -.2px; }

/* دکمه‌ها: گرادیان + افکت لمس */
.btn { border-radius: 14px; transition: transform .08s ease, box-shadow .2s ease, filter .2s; }
.btn.primary {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  box-shadow: 0 6px 16px rgba(13, 148, 136, .35);
}
.btn.primary:active { transform: translateY(2px) scale(.99); box-shadow: 0 2px 8px rgba(13, 148, 136, .3); }
.btn.ghost { background: #f7fdfc; border: 1.5px dashed #8fb8b3; color: var(--teal-dark); font-weight: 700; }
.btn.ghost:active { background: #e8f7f4; }
.btn.slim { border-radius: 12px; }

/* فیلدها: فوکوس فیروزه‌ای */
.field label { font-size: .72rem; color: #64748b; font-weight: 700; }
input:focus, select:focus, textarea:focus {
  border-color: var(--teal-light) !important;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, .16);
  outline: none;
}

/* منوی پایین: حبه رنگ زیر تب فعال */
.bottom-nav {
  border-top: none;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-btn { position: relative; transition: color .2s; padding: 13px 2px; }
.nav-btn.active { color: var(--teal-dark); border-top: none; padding-top: 13px; }
.nav-btn.active::before {
  content: "";
  position: absolute;
  top: 7px; right: 50%;
  transform: translateX(50%);
  width: 30px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}
.nav-btn.active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(13, 148, 136, .12), transparent 72%);
  pointer-events: none;
}

/* سوییچ حالت فروش */
.mode-btn { border-radius: 14px; transition: all .18s; }
.mode-btn.active {
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(13, 148, 136, .3);
}

/* لیست تیک: انیمیشن ریز */
.check-item { transition: border-color .15s, background .15s, box-shadow .15s; }
.check-item.on {
  background: linear-gradient(135deg, #f0fdfa, #e5f9f4);
  border-color: var(--teal-light);
  box-shadow: 0 2px 10px rgba(13, 148, 136, .13);
}
.check-item input[type="checkbox"] { transition: transform .15s; }
.check-item.on input[type="checkbox"] { transform: scale(1.12); }
.ci-name { font-weight: 800; }

/* توست و مودال شیک‌تر */
#toast {
  background: linear-gradient(135deg, #134e4a, var(--teal-dark));
  border-radius: 16px;
  padding: 12px 22px;
  font-size: .84rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.modal-card { border-radius: 20px; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }

/* تیتر بخش‌ها: خط فیروزه‌ای کوچک */
.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: .92rem;
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(270deg, var(--teal), transparent);
  opacity: .35;
}

/* صفحه ورود: پولیش */
.gate-card { border-radius: 22px; }
.gate-card input:focus { border-color: var(--teal-light) !important; box-shadow: 0 0 0 4px rgba(20, 184, 166, .18) !important; }

/* اعداد سود/زیان زنده ردیف کمی درشت‌تر */
.sr-profit { line-height: 1.9; }

/* پل انبار 💰 */
.bridge-card{display:none;background:#ecfeff;border:1px solid #14b8a6;border-radius:14px;padding:14px;margin-bottom:14px}
.bridge-card .br-head{display:flex;justify-content:space-between;font-weight:700;color:#0f766e;margin-bottom:8px}
.bridge-card .br-time{font-weight:400;font-size:.8rem;color:#5eead4}
.br-items{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.br-item{background:#fff;border:1px solid #99f6e4;border-radius:8px;padding:4px 8px;font-size:.85rem}
.bridge-card .btn{margin-top:6px}

/* ===== منوی پایین نسخه ۱۶: آیکون بالا + برچسب پایین ===== */
.bottom-nav {
  height: calc(66px + env(safe-area-inset-bottom, 0px));
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid rgba(226,232,240,.8);
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 2px 9px; font-size: .78rem; font-weight: 800; color: #64748b;
  border-top: none !important;
}
.nav-btn .nav-ico {
  font-size: 1.5rem; line-height: 1; filter: grayscale(.55) opacity(.75);
  transition: transform .18s, filter .18s;
}
.nav-btn.active { color: #0f766e; background: linear-gradient(0deg, rgba(13,148,136,.1), transparent 75%); }
.nav-btn.active .nav-ico { filter: none; transform: translateY(-2px) scale(1.15); }
.nav-btn.active::before { top: 4px; width: 34px; height: 4px; }
main { padding-bottom: 100px; }

/* ===== لیست بارهای رسیده (v17) ===== */
.in-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 11px 13px; margin: 8px 0; }
.in-item.editing { border-color: #14b8a6; box-shadow: 0 2px 12px rgba(13,148,136,.15); }
.in-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.in-name { font-weight: 800; font-size: .92rem; color: #134e4a; }
.in-qty { color: #0e7490; font-weight: 700; font-size: .8rem; }
.in-actions { display: flex; gap: 4px; }
.in-btn { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 9px; padding: 5px 9px; font-size: .85rem; line-height: 1; }
.in-btn:active { background: #e2e8f0; }
.in-del { color: #dc2626; }
.in-meta { font-size: .74rem; color: #64748b; margin-top: 5px; line-height: 1.8; }
.in-edit { border-top: 1.5px dashed #cbd5e1; margin-top: 10px; padding-top: 4px; }
