/* ============================================================
   CarCargo Logistic — Dealer Cabinet Redesign
   Design: "Ocean Freight Editorial"
   - Deep Navy #0B1E38 sidebar/login (trust, ocean depth)
   - Light background #F4F6FA
   - Amber accent #F2A93B (lighthouse, actions only)
   - Statuses: green issued, blue transit, amber pending, red debt/blocked
   - Fonts: Manrope (headings) + Inter (UI/tables)
   ============================================================ */

:root {
  color-scheme: light;
  --navy: #0B1E38;
  --navy-2: #122A4C;
  --navy-3: #1A3660;
  --ink: #16233A;
  --ink-soft: #4A5A77;
  --line: #E3E8F0;
  --bg: #F4F6FA;
  --card: #FFFFFF;
  --amber: #F2A93B;
  --amber-hover: #E09620;
  --green: #1E9E6D;
  --green-bg: #E6F5EF;
  --blue: #2B78C9;
  --blue-bg: #E7F1FB;
  --amber-bg: #FDF1DC;
  --amber-txt: #A96A0C;
  --red: #D64545;
  --red-bg: #FBEAEA;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 30, 56, .06);
  --shadow: 0 4px 18px rgba(11, 30, 56, .08);
  --shadow-lg: 0 12px 40px rgba(11, 30, 56, .14);
  --font-head: "Manrope", sans-serif;
  --font-body: "Inter", sans-serif;
  --sidebar-w: 250px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #E7ECF5;
  --ink-soft: #93A2BC;
  --line: #253451;
  --bg: #0B1626;
  --card: #101E33;
  --amber-bg: rgba(242, 169, 59, .16);
  --amber-txt: #F0B85B;
  --green-bg: rgba(30, 158, 109, .18);
  --blue-bg: rgba(43, 120, 201, .2);
  --red-bg: rgba(214, 69, 69, .18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 4px 18px rgba(0, 0, 0, .35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .5);
}
html[data-theme="dark"] #langSwitch { border-color: #2A3B58 !important; background: #101E33 !important; }
html[data-theme="dark"] #langSwitch button[data-lang-btn]:not([style*="var(--navy)"]) { background: transparent !important; }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 800; color: var(--ink); }

a { color: inherit; text-decoration: none; }

/* ---------------- Shared header bar (mobile) ---------------- */

/* ================= Layout: sidebar + main ================= */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  color: #CBD5E4;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  display: flex; flex-direction: column;
  z-index: 50;
}

.sidebar-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 26px 22px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.sidebar-brand .logo-mark {
  width: 100%; height: 56px; border-radius: 10px;
  background: #FFFFFF;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sidebar-brand .logo-mark svg { width: 70%; height: 32px; }
.sidebar-brand .brand-name { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: #fff; line-height: 1.2; }
.sidebar-brand .brand-name span { display: block; font-weight: 600; font-size: 11px; color: #8FA3C2; letter-spacing: .08em; text-transform: uppercase; }

.sidebar-nav { flex: 1; padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }

.nav-label {
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  color: #5B7090; padding: 14px 12px 6px; font-weight: 700;
}

.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-radius: 9px;
  color: #CBD5E4; font-weight: 500; font-size: 14.5px;
  transition: background .18s, color .18s;
  position: relative;
}
.nav-item svg { width: 19px; height: 19px; opacity: .85; flex-shrink: 0; }
.nav-item:hover { background: var(--navy-2); color: #fff; }
.nav-item.active { background: var(--navy-3); color: #fff; font-weight: 700; }
.nav-item.active::before {
  content: ""; position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 4px; height: 18px; border-radius: 2px; background: var(--amber);
}

.sidebar-footer { padding: 18px; border-top: 1px solid rgba(255, 255, 255, .08); }
.user-chip {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy-2); border-radius: 10px; padding: 10px 12px;
  cursor: pointer; transition: background .18s;
}
.user-chip:hover { background: var(--navy-3); }
.user-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), #C97A1B);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 13px;
  flex-shrink: 0;
}
.user-chip .u-name { font-size: 13px; color: #fff; font-weight: 700; line-height: 1.25; }
.user-chip .u-role { font-size: 11px; color: #8FA3C2; }
.user-chip svg { margin-left: auto; opacity: .6; width: 16px; height: 16px; }

.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 16px 32px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; row-gap: 10px;
  position: sticky; top: 0; z-index: 30;
}
.topbar .page-title { font-size: 19px; font-weight: 800; color: var(--ink); }
.topbar .crumbs { font-size: 12.5px; color: var(--ink-soft); margin-left: auto; }
.balance-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-left: auto;
  background: var(--navy); color: #fff;
  padding: 9px 18px; border-radius: 10px;
  font-weight: 700; font-size: 14px;
  cursor: pointer; transition: background .18s, transform .18s, box-shadow .18s;
}
.balance-btn:hover { background: var(--navy-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.balance-btn .amt { color: var(--amber); font-family: var(--font-head); }
.balance-btn svg { width: 16px; height: 16px; }

.content { padding: 28px 32px 56px; flex: 1; }

.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--ink-soft); font-size: 14.5px; max-width: 640px; }

/* ---------------- Cards ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-hd {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.card-hd h3 { font-size: 15.5px; font-weight: 800; }
.card-hd .tag {
  margin-left: auto; font-size: 11.5px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; background: var(--bg); color: var(--ink-soft);
}
.card-bd { padding: 14px 18px; }

.wave {
  height: 4px; border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 26px, transparent 26px 34px);
  opacity: .55;
}

/* ---------------- KPI grid ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.kpi:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.kpi .kpi-label { font-size: 12px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.kpi .kpi-value { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.kpi .kpi-sub { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; }
.kpi .kpi-icon {
  position: absolute; right: 18px; top: 18px;
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
}
.kpi .kpi-icon svg { width: 20px; height: 20px; }
.kpi .kpi-link {
  display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700;
  color: var(--blue); text-decoration: none;
}
.kpi .kpi-link:hover { text-decoration: underline; }
.kpi.amber .kpi-value { color: #C97A1B; }
.kpi.amber .kpi-icon { background: var(--amber-bg); }
.kpi.amber .kpi-icon svg { stroke: #C97A1B; }
.kpi.green .kpi-icon { background: var(--green-bg); }
.kpi.green .kpi-icon svg { stroke: var(--green); }
.kpi.blue .kpi-icon { background: var(--blue-bg); }
.kpi.blue .kpi-icon svg { stroke: var(--blue); }
.kpi.red .kpi-value { color: var(--red); }
.kpi.red .kpi-icon { background: var(--red-bg); }
.kpi.red .kpi-icon svg { stroke: var(--red); }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data thead th {
  text-align: left; padding: 11px 14px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); background: #FAFBFD;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.data tbody td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tbody tr { transition: background .15s; }
table.data tbody tr:hover { background: rgba(242, 169, 59, .08); }
table.data tbody tr:last-child td { border-bottom: none; }
.vin { font-family: "SF Mono", ui-monospace, monospace; font-size: 13px; color: var(--ink); font-weight: 600; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; padding: 4px 11px;
  border-radius: 999px; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.green { color: var(--green); background: var(--green-bg); }
.badge.blue { color: var(--blue); background: var(--blue-bg); }
.badge.amber { color: var(--amber-txt); background: var(--amber-bg); }
.badge.red { color: var(--red); background: var(--red-bg); }
.badge.grey { color: #6B7890; background: #EEF1F6; }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.field { display: flex; flex-direction: column; gap: 4px; border-radius: 8px; transition: background .15s; }
.field:hover { background: rgba(242, 169, 59, .07); }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 11px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .04em; }
.field input, .field select {
  height: 32px; padding: 0 11px;
  border: 1px solid #D5DCE6; border-radius: 8px;
  font-family: var(--font-body); font-size: 13.5px; color: var(--ink);
  background: var(--card); transition: border-color .18s, box-shadow .18s;
  appearance: none;
}
.field select option { background: var(--card); color: var(--ink); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A5A77' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.field input:hover, .field select:hover { border-color: var(--amber); background: var(--card); box-shadow: 0 2px 6px rgba(11, 30, 56, .08); }
.field input:focus, .field select:focus {
  outline: none; border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(242, 169, 59, .18);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 20px; border-radius: 9px; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14px; font-weight: 700;
  transition: transform .12s, box-shadow .18s, background .18s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--amber); color: #fff; }
.btn-primary:hover { background: var(--amber-hover); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-outline {
  background: var(--card); color: var(--ink);
  border: 1px solid var(--line);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber); }
.btn-ghost { background: transparent; color: var(--blue); padding: 0 8px; height: 32px; }

/* ---------------- Filter bar ---------------- */
.filter-bar {
  display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap;
}
.filter-chip {
  height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid #D5DCE6; background: #fff; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  transition: all .18s;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.search-box {
  margin-left: auto; display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 13px; border: 1px solid #D5DCE6;
  border-radius: 999px; background: #fff;
}
.search-box input { border: none; outline: none; font-size: 13.5px; width: 200px; background: transparent; }
.search-box svg { width: 16px; height: 16px; color: var(--ink-soft); }

/* ---------------- Details row (expandable) ---------------- */
.details-toggle td { text-align: right; }
.cars-pager { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.photo-grid a { display: block; }
.photo-grid img, .photo-grid video { width: 100%; height: 140px; object-fit: cover; border-radius: 10px; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); display: block; }
.details-row.hidden { display: none; }
.details-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; }
.details-head-vin { font-weight: 700; font-size: 12px; letter-spacing: .06em; color: var(--ink-soft); }
.details-head .btn { padding: 8px 14px; }
.details-row td { padding: 0 !important; background: #FBFCFE; }
.details-inner {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.details-inner h4 { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.detail-list { list-style: none; }
.detail-list li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--line);
}
.detail-list li:last-child { border-bottom: none; }
.detail-list li .k { color: var(--ink-soft); }
.detail-list li .v { font-weight: 600; color: var(--navy); text-align: right; }

/* ---------------- Titles directory ---------------- */
.title-legend { display: flex; gap: 18px; margin-bottom: 18px; flex-wrap: wrap; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.ok { background: var(--navy); }
.legend-dot.ask { background: #9AA7BD; }
.legend-dot.no { background: var(--red); }

/* ================= Login page ================= */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(242, 169, 59, .16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(43, 120, 201, .22), transparent 60%),
    var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 24px; position: relative; overflow: hidden;
}
/* ocean waves decoration */
.wave-deco { position: absolute; left: 0; right: 0; bottom: -1px; }
.wave-deco svg { display: block; width: 100%; height: 120px; }

.login-card {
  width: 100%; max-width: 420px;
  background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-lg);
  padding: 40px 36px 36px;
  position: relative; z-index: 2;
}
.login-logo {
  width: 56px; height: 56px; border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.login-logo svg { width: 30px; height: 30px; }
.login-card h1, .login-card .sub, .login-card .login-logo { text-align: center; margin-left: auto; margin-right: auto; }
.login-card h1 {
  font-size: 27px; letter-spacing: -.01em; margin-bottom: 6px;
  background: linear-gradient(135deg, var(--navy), var(--navy-3) 60%, var(--amber-hover));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.login-card .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 26px; }
.login-card .field { margin-bottom: 16px; }
.login-card .btn { width: 100%; margin-top: 6px; }
.login-footer { text-align: center; margin-top: 22px; font-size: 12.5px; color: var(--ink-soft); }
.login-footer a { color: var(--blue); font-weight: 600; }

/* ---------------- Result panel ---------------- */
.result-panel {
  background: linear-gradient(135deg, var(--navy), var(--navy-3));
  border-radius: var(--radius); color: #fff; padding: 20px 22px;
  display: flex; align-items: center; gap: 18px;
}
.result-panel .total-label { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8FA3C2; font-weight: 700; }
.result-panel .total-value { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--amber); line-height: 1.1; }
.result-panel .total-sub { font-size: 12.5px; color: #8FA3C2; }
.result-items { margin-left: auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 22px; text-align: right; }
.result-items div { font-size: 13px; color: #C9D6E8; }
.result-items div b { color: #fff; font-weight: 700; }

/* ---------------- Calculator compact mode ---------------- */
.calc-compact { max-width: none; }
.two-col.calc-compact { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); max-width: 100%; }
.calc-compact .data { font-size: 10px; }
.calc-compact .data th, .calc-compact .data td { padding: 5px 7px; }
.calc-compact .table-wrap { overflow-x: auto; }
.two-col.calc-compact > .card { min-width: 0; }
.calc-compact .card-bd { padding: 10px 14px; }
.calc-compact .form-grid { gap: 8px; }
.calc-compact .field { gap: 3px; }
.calc-compact .field label { font-size: 10px; }
.calc-compact .field input, .calc-compact .field select { height: 30px; font-size: 13px; }
.calc-compact .btn { height: 34px; padding: 0 14px; }
.calc-compact .result-panel { padding: 14px 16px; gap: 14px; }
.calc-compact .result-panel .total-value { font-size: 26px; }
.calc-compact .result-items { gap: 4px 18px; }
.calc-compact .result-items div { font-size: 12px; }

/* ---------------- Sublot places ---------------- */
.places-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.place-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; transition: box-shadow .2s, transform .2s; cursor: default;
  display: flex; flex-direction: column; gap: 10px;
}
.place-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.place-card .p-name { font-family: var(--font-head); font-weight: 800; font-size: 15px; color: var(--navy); }
.place-card .p-addr { font-size: 12.5px; color: var(--ink-soft); }
.place-card .p-price {
  align-self: flex-end;
  font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--green);
}
.place-card .p-price.free { color: var(--ink-soft); }
.place-card .p-row { display: flex; align-items: flex-end; gap: 6px; margin-top: auto; }
.place-card .p-btn { margin-top: 12px; }
.place-card .p-btn {
  align-self: flex-start; font-size: 12.5px; font-weight: 700;
  color: var(--blue); display: inline-flex; align-items: center; gap: 5px;
}
.place-card .p-btn svg { width: 14px; height: 14px; }

/* ---------------- Modal ---------------- */
.modal-bg {
  position: fixed; inset: 0; background: rgba(11, 30, 56, .55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 24px;
  opacity: 1; transition: opacity .2s;
}
.modal-bg.hidden { opacity: 0; pointer-events: none; }
.modal {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 85vh; overflow-y: auto;
}
.modal-hd {
  padding: 18px 22px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.modal-hd h3 { font-size: 16px; }
.modal-hd .close { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--ink-soft); }
.modal-hd .close svg { width: 20px; height: 20px; }
.modal-bd { padding: 22px; }
.modal-ft { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }

/* ---------------- Misc ---------------- */
.two-col { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.empty-note { text-align: center; padding: 40px 20px; color: var(--ink-soft); font-size: 14px; }
.mt-18 { margin-top: 18px; }
.mb-24 { margin-bottom: 24px; }
.small { font-size: 12px; color: var(--ink-soft); }
.divider { height: 1px; background: var(--line); margin: 20px 0; }
.amber-line { height: 3px; width: 46px; border-radius: 2px; background: var(--amber); margin-bottom: 10px; }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .places-grid { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .content { padding: 20px 16px 48px; }
  .topbar { padding: 14px 16px; }
  .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .details-inner { grid-template-columns: 1fr; }
  .places-grid { grid-template-columns: 1fr; }
  .menu-toggle { display: inline-flex !important; }
}
.menu-toggle {
  display: none; background: none; border: 1px solid var(--line);
  width: 40px; height: 40px; border-radius: 10px; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; color: var(--navy); }

.addcar-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.addcar-cols > .card { min-width: 0; }
.addcar-cols .form-grid, .addcar-cols .form-grid.cols-3 { grid-template-columns: 1fr; }
.addcar-cols .field.full { grid-column: 1 / -1; }
@media (max-width: 1000px) { .addcar-cols { grid-template-columns: 1fr; } }
.addcar-cols { gap: 12px; }
.addcar-cols .card-hd { padding: 8px 12px; }
.addcar-cols .card-hd h3 { font-size: 13px; }
.addcar-cols .card-bd { padding: 8px 12px; }
.addcar-cols .form-grid { gap: 6px; }
.addcar-cols .field { gap: 2px; }
.addcar-cols .field label { font-size: 9.5px; }
.addcar-cols .field input, .addcar-cols .field select { height: 28px; font-size: 12px; }
.addcar-cols .card-bd { padding: 6px 10px; }
.addcar-cols .form-grid { gap: 4px; }
.addcar-cols .field label { font-size: 9px; letter-spacing: .02em; }
.addcar-cols .field input, .addcar-cols .field select { height: 24px; font-size: 11px; padding: 0 8px; }
.addcar-cols .card-hd h3 { font-size: 12px; }
