/* Parkovka egasi paneli — Global Logistics green palette */
:root {
  --side-1: #0d4a31;
  --side-2: #06291b;
  --green: #17964a;
  --green-d: #0b6b34;
  --green-t: #0a8a43;
  --green-l: #e8f6ee;
  --green-ll: #f3fbf6;
  --red: #e5484d;
  --red-l: #fdeceb;
  --yellow: #e9a800;
  --yellow-l: #fff5d6;
  --blue: #2f7be5;
  --gray: #98a39e;
  --gray-l: #eef1ef;
  --bg: #f3f6f4;
  --card: #ffffff;
  --line: #e4ebe7;
  --ink: #10231a;
  --ink-2: #5c6670;
  --ink-3: #8a948f;
  --shadow: 0 1px 2px rgba(16, 35, 26, 0.04), 0 6px 18px rgba(16, 35, 26, 0.05);
  --r: 16px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-t); text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); }
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
.muted-3 { color: var(--ink-3); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.up { color: var(--green-t); font-weight: 600; }
.down { color: var(--red); font-weight: 600; }

/* ---------- layout ---------- */
.app { display: flex; min-height: 100vh; }
.side {
  width: 272px; flex: none; color: #fff; position: sticky; top: 0; height: 100vh;
  background: linear-gradient(180deg, var(--side-1), var(--side-2));
  display: flex; flex-direction: column; padding: 18px 14px;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; }
.brand-logo {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 4px var(--green);
  color: var(--green); font: 800 30px/1 system-ui, sans-serif;
}
.brand b { display: block; font-size: 19px; font-weight: 800; }
.brand span { font-size: 13px; opacity: 0.85; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; color: #eaf5ef;
  font-size: 15.5px; font-weight: 500;
}
.nav a:hover { background: rgba(255, 255, 255, 0.07); }
.nav a.on { background: linear-gradient(135deg, #1fab57, var(--green)); color: #fff; font-weight: 700; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); }
.nav a .badge { margin-left: auto; background: var(--red); color: #fff; border-radius: 999px; min-width: 22px; height: 22px; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.help {
  margin-top: auto; border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06);
  border-radius: 16px; padding: 16px;
}
.help-top { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.help b { display: block; font-size: 16px; }
.help span { font-size: 12.5px; opacity: 0.85; }
.help button { width: 100%; height: 44px; border: 0; border-radius: 12px; background: #fff; color: var(--green-d); font-weight: 700; font-size: 14.5px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top {
  height: 84px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center;
  padding: 0 26px; gap: 16px; position: sticky; top: 0; z-index: 20;
}
.lot-pick { display: flex; align-items: center; gap: 14px; cursor: pointer; position: relative; padding: 6px 8px; border-radius: 12px; }
.lot-pick:hover { background: var(--green-ll); }
.lot-pick img { width: 84px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--gray-l); }
.lot-pick b { font-size: 19px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.lot-pick small { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }
.top .grow { flex: 1; }
.bell { position: relative; width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: flex; align-items: center; justify-content: center; }
.bell:hover { background: var(--green-ll); }
.bell .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); border: 2px solid #fff; }
.me { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 8px; border-radius: 12px; }
.me:hover { background: var(--green-ll); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: #e7ece9; color: var(--ink); display: flex; align-items: center; justify-content: center; overflow: hidden; flex: none; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.me b { display: block; font-size: 15.5px; }
.me span { font-size: 13px; color: var(--ink-2); }

.content { padding: 24px 26px 40px; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -0.3px; }
.page-head p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }
.page-head .grow { flex: 1; }

.grid { display: grid; gap: 18px; }
.cols-main { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: start; }
.kpis { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.kpis.k5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid #edf2ef; }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 18px; font-weight: 800; }
.card-head .grow { flex: 1; }
.kpi { display: flex; align-items: center; gap: 12px; padding: 16px; }
.kpi-ic { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; }
.kpi-ic.g { background: var(--green-l); color: var(--green-t); }
.kpi-ic.r { background: var(--red-l); color: var(--red); }
.kpi-ic.y { background: var(--yellow-l); color: var(--yellow); }
.kpi-ic.gr { background: var(--gray-l); color: var(--ink-2); }
.kpi small { display: block; color: var(--ink-2); font-size: 13px; }
.kpi b { display: block; font-size: clamp(20px, 1.45vw, 26px); font-weight: 800; margin: 3px 0 2px; line-height: 1.15; letter-spacing: -0.3px; }
.kpi b .u { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; white-space: nowrap; }
.kpi > div:last-child { min-width: 0; }
.kpi em { font-style: normal; font-size: 13.5px; color: var(--ink-2); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.g { background: var(--green-l); color: var(--green-t); }
.pill.r { background: var(--red-l); color: var(--red); }
.pill.y { background: var(--yellow-l); color: #a87a00; }
.pill.gr { background: var(--gray-l); color: var(--ink-2); }
.pill.b { background: #e9f1fd; color: var(--blue); }

/* ---------- buttons & inputs ---------- */
.btn {
  height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap;
}
.btn:hover { border-color: #cfdcd5; background: var(--green-ll); }
.btn.pri { background: linear-gradient(135deg, #1aa554, var(--green-d)); border: 0; color: #fff; box-shadow: 0 6px 16px rgba(14, 122, 61, 0.22); }
.btn.pri:hover { filter: brightness(1.05); }
.btn.sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-l); border-color: #f3c3c3; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.on { background: var(--green); color: #fff; border-color: var(--green); }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.icon-btn:hover { background: var(--green-ll); color: var(--green-t); }
.icon-btn.danger:hover { background: var(--red-l); color: var(--red); }
.seg { display: inline-flex; gap: 6px; background: var(--gray-l); padding: 4px; border-radius: 12px; }
.seg button { border: 0; background: transparent; height: 36px; padding: 0 14px; border-radius: 9px; font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.seg button.on { background: var(--green); color: #fff; box-shadow: 0 4px 10px rgba(14, 122, 61, 0.2); }
.input, .select {
  height: 42px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; width: 100%; outline: none;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 150, 74, 0.12); }
textarea.input { height: auto; min-height: 90px; padding: 10px 14px; resize: vertical; }
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 12px; color: var(--ink-3); }
.search .input { padding-left: 40px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.check input { width: 18px; height: 18px; accent-color: var(--green); }
.toggle { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; vertical-align: middle; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: #cfd8d3; border-radius: 999px; transition: 0.2s; cursor: pointer; }
.toggle span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: 0.2s; }
.toggle input:checked + span { background: var(--green); }
.toggle input:checked + span::after { transform: translateX(20px); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 13px; font-weight: 700; color: var(--ink-2); background: #f6f9f7; padding: 11px 14px; white-space: nowrap; }
table.t td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
table.t tr:hover td { background: #fafcfb; }
table.t td .sub { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 2px; }
.truck-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; white-space: nowrap; }
.act { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-weight: 600; font-size: 13px; }
.act.in { background: var(--green-l); color: var(--green-t); }
.act.out { background: var(--red-l); color: var(--red); }
.empty { text-align: center; padding: 34px 10px; color: var(--ink-3); }
.empty b { display: block; color: var(--ink-2); font-size: 15px; margin: 8px 0 4px; }
.pager { display: flex; align-items: center; gap: 8px; padding: 14px 4px 2px; flex-wrap: wrap; }
.pager .grow { flex: 1; }
.pager button { min-width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 600; }
.pager button.on { background: var(--green); border-color: var(--green); color: #fff; }
.pager button:disabled { opacity: 0.45; cursor: default; }
.bar-mini { height: 8px; border-radius: 999px; background: #e6ece9; overflow: hidden; min-width: 90px; }
.bar-mini i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #1fb25c, var(--green-d)); }

/* ---------- charts ---------- */
.chart { width: 100%; display: block; }
.chart text { font-size: 12px; fill: var(--ink-2); font-family: inherit; }
.donut-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; justify-content: center; }
.legend { display: flex; flex-direction: column; gap: 14px; }
.legend div { display: flex; gap: 10px; align-items: flex-start; }
.legend i { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; flex: none; }
.legend b { display: block; font-weight: 600; }
.legend span { color: var(--ink-2); }
.tip { position: fixed; z-index: 90; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 10px; padding: 8px 12px; pointer-events: none; font-size: 12.5px; }
.tip b { display: block; font-size: 14px; }

/* ---------- lot card (right column) ---------- */
.hero { position: relative; border-radius: var(--r); overflow: hidden; height: 214px; box-shadow: var(--shadow); background: var(--gray-l); }
.hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.62)); }
.hero .cap { position: absolute; left: 18px; bottom: 14px; color: #fff; z-index: 1; }
.hero .cap b { font-size: 20px; display: block; }
.hero .cap span { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; }
.hero .edit { position: absolute; right: 12px; top: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 10px; background: #fff; border: 0; color: var(--green-t); display: flex; align-items: center; justify-content: center; }
.info-list { display: flex; flex-direction: column; }
.info-list div { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.info-list div:first-child { border-top: 0; }
.info-list svg { color: var(--green-t); flex: none; }
.info-list span { color: var(--ink-2); flex: 1; }
.info-list b { font-weight: 600; text-align: right; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.quick button {
  border: 1px solid var(--line); background: #fff; border-radius: 14px; min-height: 96px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink); padding: 10px;
}
.quick button svg { color: var(--green-t); }
.quick button:hover { background: var(--green-ll); border-color: #cde6d6; }
.quick button.warn svg { color: var(--red); }

/* ---------- spot map ---------- */
.map-legend { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; color: var(--ink-2); font-size: 13.5px; }
.map-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 8px; vertical-align: -2px; }
.lot-map { display: flex; gap: 14px; align-items: stretch; }
.gate { width: 96px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 8px 0; gap: 10px; }
.gate .tag { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 12.5px; font-weight: 700; background: #fff; display: inline-flex; gap: 6px; align-items: center; }
.gate .tag.in { color: var(--green-t); }
.gate .tag.out { color: var(--red); }
.gate .booth { width: 70px; height: 54px; }
.yard { flex: 1; min-width: 0; background: #d9dfdc; border-radius: 18px; padding: 14px 18px; position: relative; overflow-x: auto; box-shadow: inset 0 0 0 6px #cfd6d2; }
.sector { display: flex; align-items: center; gap: 10px; }
.sector-name { width: 34px; height: 34px; flex: none; border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--green-d); box-shadow: var(--shadow); }
.spots { display: flex; gap: 6px; padding: 8px 10px; background: #f6f7f6; border-radius: 12px; flex: 1; flex-wrap: wrap; }
.road { height: 34px; display: flex; align-items: center; justify-content: space-around; color: #fff; opacity: 0.95; border-top: 2px dashed rgba(255, 255, 255, 0.7); border-bottom: 2px dashed rgba(255, 255, 255, 0.7); margin: 8px 0 8px 44px; background: #b7c0bb; border-radius: 6px; }
.spot {
  width: 64px; height: 70px; border-radius: 10px; border: 2px solid; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4px; font-weight: 700; font-size: 13px; cursor: pointer; position: relative; background: #fff; flex: none;
  transition: transform 0.08s;
}
.spot:hover { transform: translateY(-2px); }
.spot.free { background: #e9f8ee; border-color: #8fdcab; color: #0b6b34; }
.spot.occupied { background: #fdeceb; border-color: #f3a5a5; color: #c22f34; }
.spot.reserved { background: #fff4d2; border-color: #f2c94c; color: #a87a00; }
.spot.blocked { background: #eceeed; border-color: #c4cbc7; color: #7b8580; }
.spot.sel { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--green); }
.spot .pi { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.occ-line { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13.5px; }
.occ-line .bar-mini { width: 190px; }
.spot-panel .big-code { display: inline-flex; padding: 6px 16px; border-radius: 12px; background: var(--green-d); color: #fff; font-size: 24px; font-weight: 800; }
.activity { display: flex; flex-direction: column; }
.activity div { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.activity div:first-child { border-top: 0; }
.activity .ai { width: 40px; height: 40px; border-radius: 50%; background: var(--green-l); color: var(--green-t); display: flex; align-items: center; justify-content: center; flex: none; }
.activity .ai.r { background: var(--red-l); color: var(--red); }
.activity p { margin: 0; flex: 1; }
.activity p b { font-weight: 700; }
.activity p small { display: block; color: var(--ink-3); }
.activity em { font-style: normal; color: var(--green-t); font-weight: 700; white-space: nowrap; }

/* ---------- tariffs ---------- */
.tcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.tcard { border-radius: var(--r); padding: 18px 20px; position: relative; overflow: hidden; min-height: 196px; border: 1px solid #e1eee6; }
.tcard.c1 { background: linear-gradient(135deg, #eaf7f0, #d6f0e1); }
.tcard.c2 { background: linear-gradient(135deg, #eef8e8, #dbf0cd); }
.tcard.c3 { background: linear-gradient(135deg, #e6f5f1, #cdeee4); }
.tcard .th { display: flex; gap: 12px; align-items: center; }
.tcard .ti { width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; }
.tcard h4 { margin: 0; font-size: 18px; }
.tcard p { margin: 2px 0 0; color: var(--ink-2); font-size: 13px; }
.tcard .price { font-size: 30px; font-weight: 800; margin: 18px 0 10px; }
.tcard .price small { font-size: 18px; font-weight: 500; color: var(--ink-2); }
.tcard .edit { position: absolute; right: 14px; top: 14px; }
.tcard .art { position: absolute; right: -6px; bottom: -8px; opacity: 0.85; color: var(--green); }
.tcard.none { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 10px; color: var(--ink-2); background: #f8fbf9; border-style: dashed; }
.checks { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.checks div { display: flex; gap: 10px; align-items: center; }
.checks svg { color: var(--green); flex: none; }
.promo-card { border-radius: var(--r); padding: 18px 20px; color: #fff; background: linear-gradient(135deg, #1aa554, var(--green-d)); display: flex; gap: 14px; align-items: center; cursor: pointer; }
.promo-card b { font-size: 17px; display: block; }
.promo-card span { font-size: 13.5px; opacity: 0.9; }

/* ---------- payments ---------- */
.methods { display: flex; flex-direction: column; gap: 16px; }
.methods .m { display: flex; gap: 12px; align-items: center; }
.methods .mi { width: 40px; height: 40px; border-radius: 12px; background: var(--green-ll); color: var(--green-t); display: flex; align-items: center; justify-content: center; flex: none; font-weight: 800; }
.methods .m > div { flex: 1; }
.methods .mt { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.bylot { display: flex; flex-direction: column; gap: 16px; }
.bylot .l { display: flex; gap: 12px; align-items: center; }
.bylot .p { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; flex: none; }
.bylot .l > div { flex: 1; }
.bylot .lt { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; gap: 10px; }
.quick-range { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- settings ---------- */
.tabs { display: flex; gap: 6px; background: #fff; padding: 6px; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; height: 42px; padding: 0 20px; border-radius: 10px; font-weight: 600; color: var(--ink-2); }
.tabs button.on { background: var(--green); color: #fff; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.photos .ph { width: 140px; height: 92px; border-radius: 12px; overflow: hidden; position: relative; background: var(--gray-l); }
.photos .ph img { width: 100%; height: 100%; object-fit: cover; }
.photos .ph button { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(0, 0, 0, 0.55); color: #fff; }
.photos .add { width: 140px; height: 92px; border-radius: 12px; border: 2px dashed #c8d6ce; background: #f8fbf9; color: var(--green-t); display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; font-weight: 600; }

/* ---------- overlays ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(8, 24, 16, 0.45); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 60px 16px; overflow-y: auto; }
.modal { background: #fff; border-radius: 20px; width: 100%; max-width: 560px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25); }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 19px; flex: 1; }
.modal-body { padding: 20px 22px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; }
.dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.14); min-width: 240px; z-index: 50; padding: 6px; }
.dropdown.left { left: 0; right: auto; }
.dropdown button, .dropdown a { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: transparent; padding: 10px 12px; border-radius: 10px; text-align: left; color: var(--ink); font-weight: 500; }
.dropdown button:hover, .dropdown a:hover { background: var(--green-ll); }
.dropdown .on { background: var(--green-l); font-weight: 700; }
.notif-list { width: 380px; max-height: 440px; overflow-y: auto; }
.notif { padding: 10px 12px; border-radius: 10px; }
.notif.unread { background: var(--green-ll); }
.notif b { display: block; font-size: 14px; }
.notif span { font-size: 13px; color: var(--ink-2); }
.notif small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.toast-box { position: fixed; right: 22px; bottom: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); max-width: 380px; font-weight: 500; }
.toast.err { background: #b3261e; }
.toast.ok { background: var(--green-d); }
.loading { padding: 50px; text-align: center; color: var(--ink-3); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--green-l); border-top-color: var(--green); animation: spin 0.8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-art { background: linear-gradient(160deg, var(--side-1), var(--side-2)); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h2 { font-size: 38px; line-height: 1.15; margin: 0 0 14px; max-width: 480px; }
.login-art p { opacity: 0.85; font-size: 16px; max-width: 460px; }
.login-art img { width: 100%; max-width: 520px; border-radius: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-box { width: 100%; max-width: 420px; }
.login-box h1 { font-size: 30px; margin: 0 0 6px; }
.login-box p { color: var(--ink-2); margin: 0 0 24px; }
.login-box .btn { width: 100%; height: 48px; font-size: 15.5px; }
.code-row { display: flex; gap: 10px; }
.code-row .input { text-align: center; font-size: 22px; letter-spacing: 8px; font-weight: 700; }
.err-msg { color: var(--red); font-size: 13.5px; margin: -4px 0 12px; min-height: 18px; }

@media (max-width: 1280px) {
  .cols-main { grid-template-columns: 1fr; }
  .kpis.k5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .side { width: 84px; padding: 14px 10px; }
  .side .brand div, .side .nav a span, .side .help, .side .nav a .badge { display: none; }
  .nav a { justify-content: center; }
  .kpis, .kpis.k5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcards { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .top .me div, .lot-pick img { display: none; }
}
