/* =====================================================================
   PiknikKids — дизайн-система
   Палитра: фиолетовый → малиновый → оранжевый (детский, «сочный»),
   тёмно-сливовая боковая панель, мягкие карточки, крупные цифры.
   ===================================================================== */
:root {
  --brand: #7c3aed;
  --brand-600: #6d28d9;
  --brand-50: #f3eefe;
  --brand-100: #e9dffd;
  --pink: #e11d74;
  --pink-50: #fde8f1;
  --orange: #f97316;
  --orange-50: #fff1e6;
  --green: #0ea371;
  --green-50: #e3f7ef;
  --red: #e5383b;
  --red-50: #fde9ea;
  --amber: #f0a000;
  --amber-50: #fff5da;
  --blue: #2f6fed;
  --blue-50: #e6eefe;
  --teal: #0f9fb0;
  --teal-50: #e0f6f8;

  --grad: linear-gradient(135deg, #7c3aed 0%, #c026d3 48%, #f97316 100%);
  --grad-soft: linear-gradient(135deg, #f3eefe 0%, #fde8f1 60%, #fff1e6 100%);
  --grad-dark: linear-gradient(180deg, #1d1433 0%, #2a1747 100%);

  --ink: #1c1631;
  --ink-2: #3b3453;
  --muted: #787189;
  --line: #ebe6f3;
  --line-2: #ddd5ea;
  --bg: #f6f3fb;
  --card: #ffffff;
  --input: #ffffff;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --sh-1: 0 1px 2px rgba(var(--shade-rgb), .06), 0 1px 3px rgba(var(--shade-rgb), .05);
  --sh-2: 0 6px 18px rgba(var(--shade-rgb), .08), 0 2px 6px rgba(var(--shade-rgb), .05);
  --sh-3: 0 18px 50px rgba(var(--shade-rgb), .18);
  --focus: 0 0 0 3px rgba(var(--brand-rgb), .25);

  /* производные цвета темы (см. theme.css) */
  --brand-rgb: 124, 58, 237;
  --grad2-rgb: 192, 38, 211;
  --glow-rgb: 160, 40, 200;
  --accent-rgb: 249, 115, 22;
  --shade-rgb: 52, 23, 110;
  --backdrop-rgb: 22, 12, 42;
  --grad-card: linear-gradient(135deg, #6d28d9 0%, #c026d3 52%, #f97316 100%);
  --tint: #faf8fd;
  --tint-2: #fcfaff;
  --tint-3: #f7f3fd;
  --track: #efeaf6;
  --muted-2: #b3abc3;
  --dark: #1f1834;
  --side-text: #d9cfee;
  --side-muted: #a898c8;
  --side-title: #8a7aab;
  --side-scroll: #4b3a6b;
  --topbar-bg: rgba(246, 243, 251, .85);

  --font: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --sidebar-w: 264px;
  --topbar-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1, "cv11" 1;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
code, kbd { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; font-size: .92em; }
kbd { background: #fff; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; color: var(--ink-2); }
[hidden] { display: none !important; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ic-lg { width: 22px; height: 22px; }
.ic-xl { width: 30px; height: 30px; }

/* ---------- утилиты ---------- */
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.xs { font-size: 11.5px; }
.b { font-weight: 700; }
.bb { font-weight: 800; }
.num, .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.c { text-align: center; }
.nowrap { white-space: nowrap; }
.t-green { color: var(--green); } .t-red { color: var(--red); } .t-amber { color: #b77400; } .t-brand { color: var(--brand); } .t-blue { color: var(--blue); }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1 1 auto; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.gap-s { gap: 6px; } .gap-l { gap: 18px; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mt-l { margin-top: 28px; } .mb { margin-bottom: 16px; } .mb-s { margin-bottom: 8px; } .m0 { margin: 0; }
.w100 { width: 100%; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.hide-sm { } @media (max-width: 700px) { .hide-sm { display: none !important; } }

/* ---------- кнопки ---------- */
.btn {
  --bg: #fff; --fg: var(--ink); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--bd);
  background: var(--bg); color: var(--fg); font: inherit; font-weight: 700; font-size: 14px;
  cursor: pointer; white-space: nowrap; user-select: none; text-decoration: none;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease, border-color .15s;
}
.btn:hover { color: var(--fg); border-color: var(--brand-100); box-shadow: var(--sh-1); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-primary { --bg: var(--grad); --fg: #fff; --bd: transparent; background: var(--grad); box-shadow: 0 6px 16px rgba(var(--glow-rgb), .25); }
.btn-primary:hover { --fg: #fff; box-shadow: 0 8px 22px rgba(var(--glow-rgb), .35); filter: saturate(1.1); }
.btn-brand { --bg: var(--brand); --fg: #fff; --bd: var(--brand); }
.btn-brand:hover { --bg: var(--brand-600); }
.btn-success { --bg: var(--green); --fg: #fff; --bd: var(--green); }
.btn-danger { --bg: var(--red); --fg: #fff; --bd: var(--red); }
.btn-warning { --bg: var(--amber); --fg: #1c1631; --bd: var(--amber); }
.btn-soft { --bg: var(--brand-50); --fg: var(--brand-600); --bd: transparent; }
.btn-soft:hover { --bg: var(--brand-100); }
.btn-ghost { --bg: transparent; --bd: transparent; --fg: var(--ink-2); }
.btn-ghost:hover { --bg: var(--brand-50); box-shadow: none; }
.btn-outline-danger { --fg: var(--red); --bd: #f3c3c4; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn-sm .ic { width: 16px; height: 16px; }
.btn-lg { height: 52px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn-xl { height: 64px; padding: 0 26px; font-size: 19px; border-radius: 16px; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 32px; }
.btn-block { width: 100%; }

/* ---------- формы ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.field .err { font-size: 12px; color: var(--red); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--input); color: var(--ink); font: inherit; font-size: 14px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 90px; padding: 10px 13px; resize: vertical; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23787189' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--focus); }
.input::placeholder { color: var(--muted-2); }
.input-sm, .select.input-sm { height: 34px; font-size: 13px; border-radius: 10px; }
.input-lg { height: 54px; font-size: 18px; border-radius: 14px; }
.input.is-invalid { border-color: var(--red); }
.input-group { display: flex; align-items: stretch; }
.input-group > .input { border-radius: var(--r) 0 0 var(--r); }
.input-group > .btn { border-radius: 0 var(--r) var(--r) 0; height: auto; }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon > .input { padding-left: 40px; }
.form-grid { display: grid; gap: 14px 16px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 600; user-select: none; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; }
.switch .sw { width: 42px; height: 24px; border-radius: 99px; background: var(--muted-2); position: relative; transition: background .2s; flex: none; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--sh-1); transition: transform .2s; }
.switch input:checked + .sw { background: var(--brand); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:focus-visible + .sw { box-shadow: var(--focus); }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin: 0; }
legend { font-weight: 800; padding: 0 6px; }

/* ---------- карточки ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-b { padding: 18px 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-h h2, .card-h h3 { margin: 0; }
.card-f { padding: 12px 20px; border-top: 1px solid var(--line); background: var(--tint); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.card + .card { margin-top: 16px; }

/* ---------- плитки показателей ---------- */
.stat { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--sh-1); }
.stat .stat-l { font-size: 12.5px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.stat .stat-v { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .stat-s { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat .stat-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.stat.s-green .stat-ic { background: var(--green-50); color: var(--green); }
.stat.s-pink .stat-ic { background: var(--pink-50); color: var(--pink); }
.stat.s-orange .stat-ic { background: var(--orange-50); color: var(--orange); }
.stat.s-blue .stat-ic { background: var(--blue-50); color: var(--blue); }
.stat.s-red .stat-ic { background: var(--red-50); color: var(--red); }
.stat.s-teal .stat-ic { background: var(--teal-50); color: var(--teal); }
.stat.hero { background: var(--grad); color: #fff; border: 0; box-shadow: 0 12px 30px rgba(var(--glow-rgb), .28); }
.stat.hero .stat-l, .stat.hero .stat-s { color: rgba(255, 255, 255, .85); }
.stat.hero .stat-ic { background: rgba(255, 255, 255, .2); color: #fff; }
.stat.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255, 255, 255, .12); }

/* ---------- таблицы ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.table th { position: sticky; top: 0; z-index: 1; background: var(--tint); color: var(--muted); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover td { background: var(--tint); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { font-weight: 800; background: var(--tint); border-top: 2px solid var(--line-2); }
.table .actions { text-align: right; white-space: nowrap; }
.table-sm td, .table-sm th { padding: 7px 10px; }
.table tr.row-return td { background: var(--red-50); }
.table tr.row-muted td { color: var(--muted); }
.table tr.row-ok td { background: var(--green-50); }
.table tr.row-warn td { background: var(--amber-50); }
.table a.row-link { color: inherit; font-weight: 700; }
.table a.row-link:hover { color: var(--brand); }

/* ---------- бейджи, чипы ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; white-space: nowrap; background: #efedf3; color: #5b546b; }
.badge-green { background: var(--green-50); color: #06794f; }
.badge-red { background: var(--red-50); color: #b91c1f; }
.badge-amber { background: var(--amber-50); color: #8a5b00; }
.badge-blue { background: var(--blue-50); color: #1d4fc0; }
.badge-brand, .badge-violet { background: var(--brand-50); color: var(--brand-600); }
.badge-pink { background: var(--pink-50); color: #b0125a; }
.badge-orange { background: var(--orange-50); color: #c2530a; }
.badge-teal { background: var(--teal-50); color: #0b7482; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; background: #fff; border: 1px solid var(--line-2); font-weight: 700; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.chip.active, .chip:hover { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-600); }

/* ---------- уведомления ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-radius: var(--r); border: 1px solid; font-weight: 600; margin-bottom: 14px; }
.alert .ic { margin-top: 1px; }
.alert-success { background: var(--green-50); border-color: #bfe8d6; color: #075c3d; }
.alert-error, .alert-danger { background: var(--red-50); border-color: #f5c2c3; color: #97181b; }
.alert-warning { background: var(--amber-50); border-color: #f3dc9d; color: #6e4a00; }
.alert-info { background: var(--blue-50); border-color: #c7d8fb; color: #1a3f97; }

.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; min-width: 260px; max-width: 420px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--dark); color: #fff; box-shadow: var(--sh-3); font-weight: 600; animation: toastIn .25s ease; }
.toast.t-success { background: linear-gradient(135deg, #0a8f63, #0ea371); }
.toast.t-error { background: linear-gradient(135deg, #c42b2e, #e5383b); }
.toast.t-warning { background: linear-gradient(135deg, #d98e00, #f0a000); color: #1c1631; }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- модальные окна ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 900; background: rgba(var(--backdrop-rgb), .5); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fadeIn .15s ease; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--r-xl); box-shadow: var(--sh-3); animation: popIn .18s ease; }
.modal-lg { max-width: 820px; }
.modal-xl { max-width: 1100px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px 10px; }
.modal-h h3 { margin: 0; font-size: 18px; }
.modal-b { padding: 8px 22px 18px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px 20px; flex-wrap: wrap; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(.96) translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- вкладки, фильтры, пустые состояния ---------- */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--track); border-radius: 13px; width: max-content; max-width: 100%; overflow-x: auto; }
.tabs a, .tabs button { padding: 7px 14px; border-radius: 10px; font-weight: 700; color: var(--ink-2); border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; white-space: nowrap; }
.tabs a.active, .tabs button.active { background: #fff; color: var(--brand-600); box-shadow: var(--sh-1); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.filters .field { min-width: 150px; }
.filters .field.wide { min-width: 240px; flex: 1; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty > .ic { width: 44px; height: 44px; color: var(--muted-2); margin-bottom: 8px; stroke-width: 1.5; }
.empty h3 { color: var(--ink-2); }
.pager { display: flex; gap: 4px; justify-content: center; padding: 14px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 34px; height: 34px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 10px; font-weight: 700; color: var(--ink-2); }
.pager a:hover { background: var(--brand-50); }
.pager .cur { background: var(--grad); color: #fff; }
.progress { height: 8px; background: var(--track); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.avatar { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--grad); flex: none; }
.avatar-sm { width: 28px; height: 28px; border-radius: 9px; font-size: 11px; }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; font-weight: 700; }
.sep-dot::before { content: "·"; margin: 0 6px; color: var(--muted); }

/* ---------- мини-графики ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding: 10px 4px 0; }
.bars .bar { flex: 1; min-width: 6px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.bars .bar i { display: block; width: 100%; max-width: 38px; border-radius: 8px 8px 3px 3px; background: var(--grad); min-height: 2px; transition: filter .15s; }
.bars .bar:hover i { filter: brightness(1.12); }
.bars .bar span { font-size: 10.5px; color: var(--muted); margin-top: 6px; white-space: nowrap; }
.bars .bar .tip { position: absolute; bottom: calc(100% + 4px); background: var(--ink); color: #fff; font-size: 11.5px; padding: 3px 7px; border-radius: 7px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; font-weight: 700; }
.bars .bar:hover .tip { opacity: 1; }
.hbar { display: grid; grid-template-columns: minmax(90px, 36%) 1fr max-content; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.hbar .track { height: 10px; background: var(--track); border-radius: 99px; overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 99px; background: var(--grad); }

/* =====================================================================
   Раскладка админки
   ===================================================================== */
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none; position: fixed; inset: 0 auto 0 0; z-index: 60;
  background: var(--grad-dark); color: var(--side-text); display: flex; flex-direction: column;
  transition: transform .25s ease;
}
.sidebar .brand { display: flex; align-items: center; gap: 11px; height: var(--topbar-h); padding: 0 20px; color: #fff; font-weight: 800; font-size: 18px; letter-spacing: -.02em; flex: none; }
.brand-logo { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(var(--accent-rgb), .3); flex: none; }
.brand-logo svg { width: 24px; height: 24px; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--side-muted); letter-spacing: 0; margin-top: -2px; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 6px 12px 16px; scrollbar-width: thin; scrollbar-color: var(--side-scroll) transparent; }
.nav-group { margin-top: 14px; }
.nav-group > .nav-title { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--side-title); padding: 0 10px 6px; }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 9px 11px; margin: 1px 0; border-radius: 11px; color: var(--side-text); font-weight: 600; font-size: 14px; }
.nav-link .ic { color: var(--side-muted); }
.nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-link.active { background: linear-gradient(135deg, rgba(var(--brand-rgb), .95), rgba(var(--grad2-rgb), .9)); color: #fff; box-shadow: 0 6px 16px rgba(var(--brand-rgb), .35); }
.nav-link.active .ic { color: #fff; }
.nav-link .cnt { margin-left: auto; background: var(--orange); color: #fff; border-radius: 99px; font-size: 11px; padding: 0 7px; font-weight: 800; }
.sidebar .side-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .07); }
.side-kassa { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 13px; background: var(--grad); color: #fff; font-weight: 800; box-shadow: 0 8px 20px rgba(var(--accent-rgb), .25); }
.side-kassa:hover { color: #fff; filter: brightness(1.06); }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 50; height: var(--topbar-h); display: flex; align-items: center; gap: 12px; padding: 0 24px; background: var(--topbar-bg); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .burger { display: none; }
.topbar .crumbs { font-weight: 700; color: var(--muted); font-size: 13px; }
.topbar .user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 14px; border: 1px solid transparent; background: none; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.topbar .user-btn:hover { background: #fff; border-color: var(--line); }
.topbar .user-btn .nm { font-weight: 800; font-size: 13.5px; line-height: 1.2; }
.topbar .user-btn .rl { font-size: 11.5px; color: var(--muted); }
.content { padding: 24px; max-width: 1600px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--muted); margin-top: 4px; font-weight: 600; }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dropdown { position: relative; }
.dropdown-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px; z-index: 100; }
.dropdown-menu a, .dropdown-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; color: var(--ink-2); font-weight: 600; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--brand-50); color: var(--brand-600); }
.side-overlay { display: none; }

@media (max-width: 1020px) {
  .sidebar { transform: translateX(-100%); box-shadow: var(--sh-3); }
  body.side-open .sidebar { transform: none; }
  body.side-open .side-overlay { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(var(--backdrop-rgb), .45); }
  .main { margin-left: 0; }
  .topbar { padding: 0 14px; }
  .topbar .burger { display: inline-flex; }
  .content { padding: 16px; }
  .topbar .user-btn .nm, .topbar .user-btn .rl { display: none; }
}

/* =====================================================================
   Экран входа
   ===================================================================== */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth-art { position: relative; overflow: hidden; background: var(--grad); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art h1 { color: #fff; font-size: 40px; line-height: 1.1; max-width: 460px; }
.auth-art p { font-size: 17px; max-width: 420px; color: rgba(255, 255, 255, .88); font-weight: 600; }
.auth-art .blob { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.auth-art .brand { display: flex; gap: 12px; align-items: center; font-weight: 800; font-size: 22px; position: relative; }
.auth-art .brand .brand-logo { background: rgba(255, 255, 255, .2); box-shadow: none; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h2 { font-size: 28px; }
.auth-feats { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.auth-feats span { background: rgba(255, 255, 255, .16); padding: 7px 13px; border-radius: 99px; font-weight: 700; font-size: 13px; display: inline-flex; gap: 7px; align-items: center; }
@media (max-width: 900px) { .auth-page { grid-template-columns: 1fr; } .auth-art { display: none; } }
.pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); }
.rel { position: relative; }

/* печать */
@media print {
  .sidebar, .topbar, .no-print, .toasts, .page-head .actions, .filters { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; max-width: none; }
  .card { box-shadow: none; border: 0; }
  body { background: #fff; }
}
