/* ==========================================================================
   Маллаев Обувь — панель администратора
   ========================================================================== */
body.is-admin .topbar,
body.is-admin .header,
body.is-admin .footer { display: none; }
body.is-admin { background: #f3f0eb; }
body.is-admin main { min-height: 100vh; }

.adm { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }

/* ---------- боковое меню ---------- */
.adm-side { position: sticky; top: 0; height: 100vh; background: var(--ink); color: rgba(246,243,238,.72); display: flex; flex-direction: column; padding: 24px 14px 18px; }
.adm-logo { display: grid; gap: 4px; padding: 0 10px 22px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 14px; }
.adm-logo .logo__name { font-family: var(--f-display); font-weight: 600; font-size: 36px; line-height: .85; color: var(--paper); }
.adm-logo .logo__dot { color: var(--gold); }
.adm-logo small { font-size: 10px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.adm-logo--dark { padding: 0 0 6px; border: 0; justify-items: center; text-align: center; }
.adm-logo--dark .logo__name { color: var(--ink); font-size: 44px; }
.adm-logo--dark .logo__dot { color: var(--accent); }
.adm-logo--dark small { color: var(--accent); }
.adm-nav { display: grid; gap: 2px; }
.adm-nav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: background .2s, color .2s; }
.adm-nav a:hover { background: rgba(255,255,255,.06); color: var(--paper); }
.adm-nav a.is-active { background: rgba(200,162,115,.14); color: var(--paper); }
.adm-nav a.is-active .i { color: var(--gold); }
.adm-nav a b { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--gold); color: var(--ink); font-size: 12px; display: grid; place-items: center; }
.adm-side__foot { margin-top: auto; display: grid; gap: 12px; }
.adm-site { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; border: 1px solid rgba(255,255,255,.12); }
.adm-site:hover { color: var(--paper); border-color: rgba(255,255,255,.3); }
.adm-me { display: flex; align-items: center; gap: 10px; padding: 12px 6px 0 6px; border-top: 1px solid rgba(255,255,255,.08); }
.adm-me div { flex: 1; min-width: 0; }
.adm-me b { display: block; font-size: 13px; color: var(--paper); }
.adm-me span:not(.a-ava) { display: block; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-me .icon-btn { color: rgba(246,243,238,.6); width: 36px; height: 36px; }
.adm-me .icon-btn:hover { background: rgba(255,255,255,.08); color: var(--paper); }

/* ---------- верхняя панель ---------- */
.adm-top { position: sticky; top: 0; z-index: 20; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; background: rgba(243,240,235,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.adm-search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; width: min(460px, 100%); border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.adm-search input { flex: 1; border: 0; outline: none; background: none; font-size: 14px; color: var(--ink); min-width: 0; }
.adm-search--sm { height: 40px; width: 300px; }
.adm-top__right { display: flex; align-items: center; gap: 10px; }
.adm-bell i { position: absolute; top: 10px; right: 11px; width: 8px; height: 8px; border-radius: 50%; background: var(--sale); border: 2px solid #f3f0eb; }

/* ---------- контент ---------- */
.adm-content { padding: 28px 32px 56px; display: grid; gap: 22px; align-content: start; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.adm-head h1 { font-family: var(--f-display); font-size: 38px; font-weight: 600; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.adm-head h1 .pill { font-family: var(--f-body); }
.adm-head p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.adm-head__actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.adm-back { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: -10px; }
.adm-back:hover { color: var(--ink); }
.adm-grid { display: grid; gap: 22px; align-items: start; }
.adm-grid--2-1 { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); }
.adm-stack { display: grid; gap: 22px; align-content: start; }

.a-select { height: 40px; width: auto; border-radius: 10px; font-size: 13px; font-weight: 600; padding-left: 14px; }
.a-select--dark { background-color: var(--ink); color: #fff; border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23fff' stroke-width='1.6'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); }

/* ---------- карточки ---------- */
.a-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.a-card--flush { padding: 0; overflow: hidden; }
.a-card--flush > .a-card__head { padding: 20px 22px 6px; }
.a-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.a-card__head h3 { font-size: 16px; font-weight: 700; }
.a-card__total { font-size: 22px; }
.a-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: #eef5f0; color: #285b40; font-size: 13px; margin-top: 16px; }
.a-note .i { flex: none; margin-top: 1px; }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 18px 16px; display: grid; gap: 6px; align-content: start; }
.kpi > span { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi > b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.kpi small { font-size: 12px; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; justify-self: start; padding: 2px 8px; border-radius: 6px; }
.delta.is-up { color: var(--ok); background: #e8f3ed; }
.delta.is-down { color: var(--sale); background: #fbeceb; }

/* ---------- график (одна серия: выручка) ---------- */
.chart { display: grid; gap: 8px; }
.chart__plot { position: relative; height: 250px; margin-left: 46px; }
.chart__tick { position: absolute; left: 0; right: 0; height: 0; border-top: 1px dashed #e9e3d9; }
.chart__tick span { position: absolute; right: calc(100% + 10px); top: -8px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.chart__tick:first-child { border-top: 1px solid var(--line-2); }
.chart__bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.chart__col { position: relative; flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; outline: none; cursor: default; }
.chart__bar { width: min(100%, 18px); background: var(--accent); border-radius: 4px 4px 0 0; transition: background .15s; }
.chart__col:hover .chart__bar, .chart__col:focus .chart__bar { background: var(--ink); }
.chart__tip { position: absolute; bottom: calc(100% - 4px); left: 50%; transform: translate(-50%, 4px); background: var(--ink); color: var(--paper); border-radius: 10px; padding: 8px 10px; font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; z-index: 3; display: grid; gap: 2px; }
.chart__tip b { font-size: 14px; }
.chart__tip span { color: rgba(246,243,238,.7); }
.chart__col:hover .chart__tip, .chart__col:focus .chart__tip { opacity: 1; transform: translate(-50%, 0); }
.chart__col:nth-child(-n+4) .chart__tip { left: 0; transform: translate(0, 4px); }
.chart__col:nth-child(-n+4):hover .chart__tip { transform: none; }
.chart__col:nth-last-child(-n+4) .chart__tip { left: auto; right: 0; transform: translate(0, 4px); }
.chart__col:nth-last-child(-n+4):hover .chart__tip { transform: none; }
.chart__x { display: flex; gap: 2px; margin-left: 46px; font-size: 11px; color: var(--muted); }
.chart__x span { flex: 1; text-align: center; white-space: nowrap; }

/* ---------- доли входа ---------- */
.share { display: grid; gap: 8px; }
.share__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; margin-top: 6px; }
.share__label { display: inline-flex; align-items: center; gap: 8px; }
.share__label svg { width: 20px; height: 20px; }
.share__ico { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.share__row b { font-size: 18px; }
.meter { height: 8px; border-radius: 4px; background: var(--paper); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.statuses { display: grid; gap: 4px; }
.statuses__row { display: flex; justify-content: space-between; align-items: center; padding: 8px 4px; border-bottom: 1px dashed var(--line); }
.statuses__row:last-child { border-bottom: 0; }

/* ---------- статусы ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-new { background: #ebeafb; color: #4740a8; }
.st-pack { background: #fff2e2; color: #9a5a12; }
.st-ship { background: #e6f1fb; color: #1f5f99; }
.st-done { background: #e6f3ec; color: #2a6646; }
.st-cancel { background: #fbeceb; color: #a63a2f; }
.st-muted { background: #efede9; color: var(--muted); }

/* ---------- таблицы ---------- */
.a-table-wrap { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.a-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fbfaf7; white-space: nowrap; }
.a-table td { padding: 14px; border-bottom: 1px solid #f0ebe3; vertical-align: middle; }
.a-table tr:last-child td { border-bottom: 0; }
.a-table th:first-child, .a-table td:first-child { padding-left: 22px; }
.a-table th:last-child, .a-table td:last-child { padding-right: 22px; }
.a-table tbody tr { transition: background .15s; }
.a-table tbody tr[data-href] { cursor: pointer; }
.a-table tbody tr:hover { background: #fcfaf6; }
.a-table td > small, .a-table td b + small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.a-table td .pill + small { display: block; margin-top: 4px; }
.a-table input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ink); }
.a-table__go { color: var(--line-2); width: 30px; }
tr:hover .a-table__go { color: var(--ink); }
.a-user { display: flex; align-items: center; gap: 12px; }
.a-user b { display: block; font-size: 14px; }
.a-user small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.a-user--lg .a-ava { width: 52px; height: 52px; font-size: 17px; }
.a-user--lg b { font-size: 16px; }
.a-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); color: var(--accent-d); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.a-ava--gold { background: var(--gold); color: var(--ink); }
.ya-dot svg { width: 14px; height: 14px; display: block; }
.a-thumbs { display: flex; gap: 6px; }
.a-thumbs img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.a-prod { display: flex; align-items: center; gap: 14px; min-width: 260px; }
.a-prod img { width: 48px; height: 60px; border-radius: 8px; object-fit: cover; }
.a-prod b { display: block; }
.a-prod small { font-size: 12px; color: var(--muted); }
.tx-accent { color: var(--accent); font-weight: 700; }
.tx-warn { color: var(--warn); }
.stock { display: flex; gap: 3px; }
.stock span { width: 30px; text-align: center; border-radius: 6px; background: #f2efe9; font-size: 12px; font-weight: 700; padding: 3px 0 4px; line-height: 1.1; }
.stock span i { display: block; font-style: normal; font-size: 9px; font-weight: 600; color: var(--muted); }
.stock span.is-low { background: #fff2e2; color: #9a5a12; }
.stock span.is-zero { background: #fbeceb; color: #a63a2f; }
.via { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px 0 6px; border-radius: 999px; background: #f2efe9; font-size: 12px; font-weight: 700; white-space: nowrap; }
.via svg { width: 16px; height: 16px; }
.via .i { margin-left: 2px; }
.via--ya { background: #fff1ee; color: #b3321a; }
.code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-weight: 700; font-size: 13px; padding: 4px 8px; border-radius: 6px; background: var(--paper); border: 1px dashed var(--line-2); }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; }

.a-tabs { display: flex; gap: 4px; padding: 12px 16px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.a-tab { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; font-weight: 600; font-size: 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.a-tab span { font-size: 12px; background: #f2efe9; color: var(--ink-3); border-radius: 10px; padding: 1px 7px; }
.a-tab:hover { color: var(--ink); }
.a-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.a-tabs--pills { padding: 4px; border: 1px solid var(--line); background: #fff; border-radius: 14px; justify-self: start; max-width: 100%; }
.a-tabs--pills .a-tab { height: 38px; border: 0; border-radius: 10px; margin: 0; padding: 0 14px; }
.a-tabs--pills .a-tab.is-active { background: var(--ink); color: #fff; }
.a-filters { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.a-pager { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); }
.a-pager div { display: flex; gap: 4px; }
.a-page { min-width: 34px; height: 34px; border-radius: 8px; font-size: 13px; font-weight: 700; display: inline-grid; place-items: center; border: 1px solid var(--line); background: #fff; }
.a-page.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- списки ---------- */
.toplist { display: grid; gap: 2px; }
.toplist__row { display: grid; grid-template-columns: auto 44px 1fr auto; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 10px; font-size: 13px; }
.toplist__row:not(:has(.toplist__n)) { grid-template-columns: 44px 1fr auto; }
.toplist__row:hover { background: #faf8f4; }
.toplist__n { width: 22px; font-weight: 800; color: var(--muted); text-align: center; }
.toplist__row img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.toplist__t { min-width: 0; }
.toplist__t b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toplist__t small { font-size: 12px; color: var(--muted); }

/* ---------- заказ ---------- */
.o-items { display: grid; }
.o-item { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid #f0ebe3; }
.o-item:first-child { padding-top: 0; }
.o-item img { width: 64px; height: 80px; border-radius: 10px; object-fit: cover; }
.o-item b { display: block; }
.o-item small { font-size: 12px; color: var(--muted); display: block; }
.o-size { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 6px; background: var(--paper); font-size: 12px; font-weight: 700; }
.o-item__price { text-align: right; }
.o-sum { display: grid; gap: 8px; padding-top: 16px; font-size: 14px; }
.o-sum div { display: flex; justify-content: space-between; }
.o-sum div span:first-child { color: var(--muted); }
.o-sum .is-disc span:last-child { color: var(--sale); font-weight: 700; }
.o-sum__total { padding-top: 12px; border-top: 1px solid var(--line); align-items: baseline; }
.o-sum__total b { font-size: 22px; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; }
.timeline li { position: relative; padding: 0 0 18px 28px; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; }
.timeline li::after { content: ''; position: absolute; left: 6px; top: 18px; bottom: 2px; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li.is-on::before { background: var(--ok); border-color: var(--ok); }
.timeline b { display: block; font-size: 14px; font-weight: 600; }
.timeline li:not(.is-on) b { color: var(--muted); font-weight: 500; }
.timeline small { font-size: 12px; color: var(--muted); }
.a-dl { display: grid; gap: 0; margin: 16px 0 0; }
.a-dl div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.a-dl div:last-child { border-bottom: 0; }
.a-dl dt { color: var(--muted); }
.a-dl dd { margin: 0; font-weight: 600; }
.a-card__head + .a-dl { margin-top: 0; }

/* ---------- редактор товара ---------- */
.a-prefix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: #fff; }
.a-prefix span { display: flex; align-items: center; padding: 0 4px 0 16px; color: var(--muted); font-size: 14px; background: #fbfaf7; white-space: nowrap; }
.a-prefix .input { border: 0; border-radius: 0; box-shadow: none !important; }
.a-prefix--copy { border: 0; gap: 8px; background: none; }
.a-prefix--copy .input { border: 1px solid var(--line-2); border-radius: 12px; background: #fbfaf7; }
.a-prefix--copy .btn { height: 52px; }
.a-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.a-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--paper); }
.a-photo img { width: 100%; height: 100%; object-fit: cover; }
.a-photo__main { position: absolute; left: 8px; top: 8px; z-index: 2; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.a-photo__del { position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; }
.a-photo--add { display: grid; place-items: center; align-content: center; gap: 6px; border: 2px dashed var(--line-2); background: #fbfaf7; color: var(--muted); text-align: center; }
.a-photo--add b { color: var(--ink); font-size: 13px; }
.a-photo--add small { font-size: 11px; }
.a-photo--add:hover { border-color: var(--ink); }
.sizes-edit { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.sizes-edit label { display: grid; gap: 6px; text-align: center; }
.sizes-edit span { font-size: 13px; font-weight: 800; }
.sizes-edit .input { height: 46px; text-align: center; padding: 0 6px; font-weight: 700; }
.sizes-edit label.is-zero .input { border-color: #eab9b3; background: #fdf6f5; color: var(--sale); }
.serp { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line); display: grid; gap: 4px; }
.serp__url { font-size: 12px; color: #2a7d4f; }
.serp b { color: #1a0dab; font-weight: 500; font-size: 17px; }
.serp p { font-size: 13px; color: var(--ink-3); }
.a-toggles { display: grid; }
.a-toggle { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.a-toggle:last-child { border-bottom: 0; }
.a-toggle b { display: block; font-size: 14px; }
.a-toggle small { font-size: 12px; color: var(--muted); }
.switch { position: relative; display: inline-block; width: 42px; height: 24px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch span { position: absolute; inset: 0; border-radius: 12px; background: var(--line-2); transition: background .2s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::after { transform: translateX(18px); }
.a-color { display: flex; gap: 10px; align-items: center; }
.a-color span { width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line-2); flex: none; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-stats div { padding: 14px; border-radius: 12px; background: #faf8f4; }
.mini-stats b { display: block; font-size: 20px; }
.mini-stats span { font-size: 12px; color: var(--muted); }
.a-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.a-input-sm { height: 38px; width: 110px; }
.ya-head { display: flex; align-items: center; gap: 14px; }
.ya-head svg { width: 40px; height: 40px; flex: none; }

/* ---------- вход в админку ---------- */
.adm-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 30% 20%, #3a2c20, var(--ink) 60%); }
.adm-login__card { width: min(420px, 100%); background: #fff; border-radius: 24px; padding: 40px 36px; display: grid; gap: 16px; box-shadow: var(--shadow-lg); }

/* ---------- адаптив ---------- */
@media (max-width: 1280px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .adm-grid--2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 992px) {
  .adm { grid-template-columns: 1fr; }
  .adm-logo .logo__name { font-size: 28px; }
  .adm-side { position: static; height: auto; flex-direction: row; align-items: center; gap: 12px; padding: 12px 16px; overflow-x: auto; }
  .adm-logo { border: 0; padding: 0; margin: 0; }
  .adm-logo small { display: none; }
  .adm-nav { grid-auto-flow: column; }
  .adm-nav a span { display: none; }
  .adm-side__foot { display: none; }
  .adm-top { padding: 0 16px; top: 0; }
  .adm-content { padding: 20px 16px 40px; }
  .kpis, .kpis--3 { grid-template-columns: 1fr 1fr; }
  .sizes-edit { grid-template-columns: repeat(4, 1fr); }
  .a-checks { grid-template-columns: 1fr; }
  .adm-top .btn { display: none; }
}

/* ---------- Рабочая админка: фото, промокоды, поиск ---------- */
.a-photo__star { position: absolute; left: 8px; top: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: var(--ink); }
.a-photo__star:hover, .a-photo__del:hover { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.a-color__pick { width: 52px; height: 52px; padding: 4px; border-radius: 12px; border: 1px solid var(--line-2); background: #fff; flex: none; cursor: pointer; }
.a-color__pick::-webkit-color-swatch-wrapper { padding: 0; }
.a-color__pick::-webkit-color-swatch { border: 0; border-radius: 8px; }
.a-row-actions { display: inline-flex; gap: 4px; }
.adm-search input:focus { outline: none; }
.a-table td small + small { margin-top: 2px; }
@media print {
  .adm-side, .adm-top, .adm-back, .adm-head__actions, #mgrComment, [data-action="a-order-comment"], [data-action="a-track"] { display: none !important; }
  .adm-main { margin: 0 !important; }
}
