/* Портал РУЗНАК — единая дизайн-система кабинетов. */

:root {
    --brand: #ffcc00;
    --brand-dark: #e5b700;
    --brand-soft: #fff4b8;
    --ink: #111216;
    --ink-muted: #69727f;
    --ink-soft: #9299a3;
    --line: #e3e5e8;
    --surface: #ffffff;
    --surface-2: #f5f6f7;
    --surface-3: #eceef1;
    --ok: #23a574;
    --ok-soft: #e5f7ef;
    --warn: #b77900;
    --warn-soft: #fff4d6;
    --danger: #df3b4b;
    --danger-soft: #fdebed;
    --info: #3473e6;
    --info-soft: #eaf1ff;
    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 2px 8px rgba(17, 18, 22, .06), 0 12px 30px rgba(17, 18, 22, .04);
    --shadow-lg: 0 18px 48px rgba(17, 18, 22, .16);
    --font: "Manrope", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--surface-2);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.25; font-weight: 650; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
small { font-size: 12px; }

/* --- Каркас --------------------------------------------------------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: 264px;
    flex: 0 0 264px;
    background: var(--ink);
    color: var(--surface);
    border-right: 0;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 20px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.sidebar__logo {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 11px;
    background: var(--brand);
    font-weight: 800;
    letter-spacing: .04em;
    font-size: 13px;
}

.sidebar__title { font-weight: 750; font-size: 15px; color: var(--surface); }
.sidebar__subtitle { color: #9da3ad; font-size: 11.5px; }

.brand-wordmark {
    display: inline-flex; align-items: center; gap: 1px;
    color: var(--ink); font-size: 21px; font-weight: 800;
    letter-spacing: -.055em; line-height: 1;
}
.brand-wordmark__z {
    display: inline-grid; place-items: center;
    width: 23px; height: 25px; margin: 0 1px;
    border-radius: 6px; background: var(--ink); color: var(--brand);
    font-size: 16px; letter-spacing: 0;
}
.sidebar .brand-wordmark { color: #fff; }
.sidebar .brand-wordmark__z { background: var(--brand); color: var(--ink); }
.brand-role {
    display: inline-flex; margin-left: 8px; padding: 3px 7px;
    border-radius: 999px; background: rgba(255,255,255,.10);
    color: #c9cdd4; font-size: 10px; font-weight: 700;
    letter-spacing: .04em; text-transform: uppercase;
}

.sidebar__nav { padding: 14px 12px; overflow-y: auto; flex: 1; }
.sidebar__group-title {
    font-size: 11px; text-transform: uppercase; letter-spacing: .07em;
    color: #737b87; padding: 12px 10px 6px; font-weight: 700;
}

.nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: var(--radius-sm);
    color: #b8bdc6; font-weight: 600; margin-bottom: 3px;
}
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.nav-link.is-active { background: var(--brand); color: var(--ink); font-weight: 750; }
.nav-link__badge {
    margin-left: auto; background: var(--surface-3); color: var(--ink-muted);
    border-radius: 20px; padding: 1px 8px; font-size: 11.5px; font-weight: 600;
}
.nav-link.is-active .nav-link__badge { background: #fff; }

.sidebar__footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar__footer .button { background: transparent; color: #fff; border-color: rgba(255,255,255,.2); }
.sidebar__footer .button:hover { background: rgba(255,255,255,.08); }
.sidebar__footer .mono { color: #8d949f !important; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 14px 28px;
    display: flex; align-items: center; gap: 16px;
    position: sticky; top: 0; z-index: 20;
}
.topbar__title { font-size: 19px; font-weight: 750; letter-spacing: -.015em; }
.topbar__meta { color: var(--ink-soft); font-size: 12.5px; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.content { padding: 24px 28px 60px; max-width: 1440px; width: 100%; }

/* --- Элементы ------------------------------------------------------- */
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    margin-bottom: 18px;
}
.card--flat { box-shadow: none; }
.card__header {
    display: flex; align-items: center; gap: 12px;
    margin: -4px 0 14px;
}
.card__header h2, .card__header h3 { margin: 0; }
.card__header .spacer { margin-left: auto; }
.card__hint { color: var(--ink-muted); font-size: 12.5px; margin: -6px 0 14px; }

.grid { display: grid; gap: 16px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--sidebar { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }

.stat {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow);
}
.stat__label { color: var(--ink-muted); font-size: 12.5px; font-weight: 500; }
.stat__value { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 2px; }
.stat__meta { color: var(--ink-soft); font-size: 12px; }
.stat--accent { background: var(--brand); border-color: var(--brand); box-shadow: none; }
.stat--accent .stat__label, .stat--accent .stat__meta { color: rgba(17,18,22,.68); }

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 2px 9px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
    background: var(--surface-3); color: var(--ink-muted);
}
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--info { background: var(--info-soft); color: var(--info); }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    border: 1px solid var(--line); background: var(--surface); color: var(--ink);
    border-radius: var(--radius-sm); padding: 9px 16px;
    font-family: var(--font); font-size: 13.5px; font-weight: 600;
    cursor: pointer; transition: .15s ease;
    text-decoration: none;
}
.button:hover { background: var(--surface-2); text-decoration: none; }
.button--primary { background: var(--brand); border-color: var(--brand); }
.button--primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.button--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.button--dark:hover { background: #000; }
.button--danger { color: var(--danger); border-color: #f0c4c4; background: var(--danger-soft); }
.button--danger:hover { background: #fbdada; }
.button--ghost { background: transparent; border-color: transparent; color: var(--ink-muted); }
.button--ghost:hover { background: var(--surface-2); }
.button--sm { padding: 5px 11px; font-size: 12.5px; }
.button--block { width: 100%; }
.button[disabled] { opacity: .55; cursor: not-allowed; }

/* --- Формы ---------------------------------------------------------- */
.field { margin-bottom: 14px; }
.field__label {
    display: block; font-size: 12.5px; font-weight: 600;
    color: var(--ink-muted); margin-bottom: 5px;
}
.field__label .req { color: var(--danger); }
.field__hint { color: var(--ink-soft); font-size: 11.5px; margin-top: 4px; }
.field__error { color: var(--danger); font-size: 12px; margin-top: 4px; display: none; }
.field.has-error .field__error { display: block; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=search], select, textarea {
    width: 100%; padding: 9px 11px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-family: var(--font); font-size: 13.5px; color: var(--ink);
    background: var(--surface); transition: .15s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none; border-color: var(--brand-dark);
    box-shadow: 0 0 0 3px rgba(251, 212, 0, .25);
}
input[readonly], input[disabled] { background: var(--surface-2); color: var(--ink-muted); }
textarea { min-height: 86px; resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238a92a3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }

.form-row { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; }
.checkbox input { width: auto; margin-top: 2px; }

/* Комбо-поле: выбор из списка + свободный ввод */
.combo { position: relative; }
.combo__input-wrap { display: flex; gap: 6px; }
.combo__toggle {
    flex: 0 0 36px; border: 1px solid var(--line); background: var(--surface);
    border-radius: var(--radius-sm); cursor: pointer; color: var(--ink-muted);
}
.combo__toggle:hover { background: var(--surface-2); }
.combo__list {
    position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0;
    max-height: 260px; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: 4px; display: none;
}
.combo__list.is-open { display: block; }
.combo__option { padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.combo__option:hover, .combo__option.is-active { background: var(--brand-soft); }
.combo__option small { display: block; color: var(--ink-soft); }
.combo__empty { padding: 10px; color: var(--ink-soft); font-size: 12.5px; }
.combo__free { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 6px; }

/* --- Таблицы -------------------------------------------------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
    text-align: left; font-weight: 700; color: var(--ink-muted);
    background: var(--surface-2); padding: 11px 12px; white-space: nowrap;
    border-bottom: 1px solid var(--line); font-size: 11.5px;
    letter-spacing: .01em;
}
table.data thead { position: sticky; top: 0; z-index: 2; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--surface-2); }
.table-empty { padding: 34px; text-align: center; color: var(--ink-soft); }

.mono { font-family: "JetBrains Mono", "SF Mono", Consolas, monospace; font-size: 12.5px; }

/* --- Уведомления ---------------------------------------------------- */
.alert {
    border-radius: var(--radius-sm); padding: 11px 14px; margin-bottom: 14px;
    font-size: 13.5px; border: 1px solid transparent;
}
.alert--success { background: var(--ok-soft); border-color: #bfe5cd; color: #14532d; }
.alert--danger { background: var(--danger-soft); border-color: #f3c9c9; color: #7f1d1d; }
.alert--warning { background: var(--warn-soft); border-color: #f3ddb5; color: #7c4a03; }
.alert--info { background: var(--info-soft); border-color: #c6dcf3; color: #1e3a8a; }

.toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: grid; gap: 10px; width: 380px; max-width: calc(100vw - 36px); }
.toast {
    background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--info);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 12px 14px;
    animation: toast-in .2s ease;
}
.toast--success { border-left-color: var(--ok); }
.toast--danger { border-left-color: var(--danger); }
.toast--warning { border-left-color: var(--warn); }
.toast__title { font-weight: 650; margin-bottom: 2px; }
.toast__text { color: var(--ink-muted); font-size: 13px; }
.toast__code { color: var(--ink-soft); font-size: 11.5px; margin-top: 5px; }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* --- Модальные окна -------------------------------------------------- */
.modal {
    position: fixed; inset: 0; background: rgba(16, 24, 40, .5);
    display: none; align-items: center; justify-content: center; z-index: 150; padding: 24px;
}
.modal.is-open { display: flex; }
.modal__box {
    background: var(--surface); border-radius: var(--radius); width: 100%;
    max-width: 720px; max-height: 88vh; display: flex; flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.modal__head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.modal__body { padding: 18px 20px; overflow-y: auto; }
.modal__foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
.modal__close { margin-left: auto; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--ink-soft); line-height: 1; }

/* --- Страницы входа -------------------------------------------------- */
.auth {
    min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
    background: var(--surface);
}
.auth__promo {
    background: var(--ink);
    color: #fff; padding: 56px 52px; display: flex; flex-direction: column; justify-content: center;
}
.auth__promo h1 { font-size: 32px; color: #fff; }
.auth__promo p { color: #c7ccd8; max-width: 460px; }
.auth__features { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.auth__features li { display: flex; gap: 11px; align-items: flex-start; color: #e5e8ef; font-size: 13.5px; }
.auth__features .dot { flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 7px; }
.auth__form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth__form-inner { width: 100%; max-width: 380px; }
.auth__logo { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; }

/* --- Конструктор заявки ---------------------------------------------- */
.group-picker { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.group-card {
    border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px;
    background: var(--surface); cursor: pointer; text-align: left; transition: .15s ease;
    font-family: var(--font);
}
.group-card:hover { border-color: var(--brand-dark); }
.group-card.is-active { border-color: var(--brand-dark); background: var(--brand-soft); }
.group-card__title { font-weight: 650; margin-bottom: 3px; }
.group-card__desc { color: var(--ink-muted); font-size: 12px; }

.position {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); margin-bottom: 14px; overflow: hidden;
}
.position__head {
    display: flex; align-items: center; gap: 12px; padding: 12px 16px;
    background: var(--surface-2); border-bottom: 1px solid var(--line); cursor: pointer;
}
.position__index {
    width: 26px; height: 26px; border-radius: 8px; background: var(--brand);
    display: grid; place-items: center; font-weight: 700; font-size: 12.5px;
}
.position__title { font-weight: 600; }
.position__meta { color: var(--ink-soft); font-size: 12px; }
.position__actions { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.position__body { padding: 16px; }
.position.is-collapsed .position__body { display: none; }

.section-title {
    font-size: 12px; text-transform: uppercase; letter-spacing: .06em;
    color: var(--ink-soft); font-weight: 700; margin: 18px 0 10px;
    padding-bottom: 6px; border-bottom: 1px solid var(--line);
}
.section-title:first-child { margin-top: 0; }

.variants { display: grid; gap: 8px; }
.variant-row { display: grid; grid-template-columns: 1fr 150px 40px; gap: 8px; align-items: center; }
.variant-row__total { color: var(--ink-soft); font-size: 12px; }

.summary-list { list-style: none; padding: 0; margin: 0; }
.summary-list li {
    display: flex; justify-content: space-between; gap: 12px;
    padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.summary-list li:last-child { border-bottom: none; }
.summary-list .value { font-weight: 650; }

.label-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.label-option {
    border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 10px;
    cursor: pointer; text-align: center; background: var(--surface);
}
.label-option:hover { border-color: var(--brand-dark); }
.label-option.is-active { border-color: var(--brand-dark); background: var(--brand-soft); }
.label-option img { width: 100%; height: 96px; object-fit: contain; }
.label-option__name { font-weight: 600; font-size: 12.5px; margin-top: 6px; }
.label-option__size { color: var(--ink-soft); font-size: 11.5px; }

.tnved-result { padding: 9px 11px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; }
.tnved-result:hover { background: var(--brand-soft); }
.tnved-result__code { font-weight: 700; font-family: "JetBrains Mono", Consolas, monospace; }
.tnved-result__name { color: var(--ink-muted); font-size: 12.5px; }

/* --- Виджеты поддержки ----------------------------------------------- */
.support-launcher {
    position: fixed; right: 22px; bottom: 22px; z-index: 120;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.support-fab {
    width: 54px; height: 54px; border-radius: 50%; border: none;
    background: var(--brand); box-shadow: var(--shadow-lg); cursor: pointer;
    display: grid; place-items: center; font-size: 22px;
}
.support-fab:hover { background: var(--brand-dark); }
.support-panel {
    width: 340px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; display: none;
}
.support-panel.is-open { display: block; }
.support-panel__head { padding: 14px 16px; background: var(--ink); color: #fff; }
.support-panel__body { padding: 14px 16px; }
.support-panel__contacts { display: grid; gap: 6px; font-size: 13px; color: var(--ink-muted); margin-bottom: 12px; }

/* --- Диаграммы ------------------------------------------------------- */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 150px; padding-top: 8px; }
.chart__bar { flex: 1; background: var(--brand); border-radius: 5px 5px 0 0; min-height: 3px; position: relative; }
.chart__bar span {
    position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%);
    font-size: 10px; color: var(--ink-soft); white-space: nowrap;
}
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 26px; font-size: 12.5px; color: var(--ink-muted); }

.breakdown-row {
    display: flex; justify-content: space-between; gap: 10px;
    font-size: 13.5px; margin-bottom: 5px;
}

.progress { height: 7px; background: var(--surface-3); border-radius: 20px; overflow: hidden; }
.progress__bar { height: 100%; background: var(--brand); border-radius: 20px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 9px 0 9px 18px; border-left: 2px solid var(--line); position: relative; }
.timeline li::before {
    content: ''; position: absolute; left: -5px; top: 15px;
    width: 8px; height: 8px; border-radius: 50%; background: var(--brand); border: 2px solid #fff;
}
.timeline__title { font-size: 13.5px; font-weight: 550; }
.timeline__meta { color: var(--ink-soft); font-size: 11.5px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-muted); }
.empty-state h3 { color: var(--ink); }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .field { margin-bottom: 0; min-width: 180px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tab {
    padding: 9px 14px; border: none; background: none; cursor: pointer;
    font-family: var(--font); font-size: 13.5px; font-weight: 600; color: var(--ink-muted);
    border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); border-bottom-color: var(--brand); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

.kv { display: grid; grid-template-columns: 190px 1fr; gap: 8px 16px; font-size: 13.5px; }
.kv dt { color: var(--ink-muted); }
.kv dd { margin: 0; font-weight: 500; word-break: break-word; }

.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.sticky-summary { position: sticky; top: 84px; }

@media (max-width: 1180px) {
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--sidebar { grid-template-columns: minmax(0, 1fr); }
    .group-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .auth { grid-template-columns: 1fr; }
    .auth__promo { display: none; }
}

@media (max-width: 860px) {
    .app { flex-direction: column; }
    .sidebar { width: 100%; flex: none; height: auto; position: static; flex-direction: column; }
    .sidebar__nav { display: flex; overflow-x: auto; gap: 6px; padding: 10px; }
    .sidebar__group-title { display: none; }
    .nav-link { white-space: nowrap; }
    .content { padding: 16px; }
    .topbar { padding: 12px 16px; }
    .grid--2, .grid--3, .grid--4, .form-row, .form-row--3 { grid-template-columns: minmax(0, 1fr); }
    .label-grid { grid-template-columns: repeat(2, 1fr); }
    .breakdown-row { flex-direction: column; gap: 2px; }
    .kv { grid-template-columns: 1fr; gap: 2px 0; }
    .kv dd { margin-bottom: 8px; }
}

@media print {
    .sidebar, .topbar, .support-launcher, .button { display: none !important; }
    body { background: #fff; }
}


/* --- Каталог и текущий заказ ---------------------------------------- */
.catalog-actions {
    display: flex; align-items: center; gap: 12px;
    position: sticky; top: 76px; z-index: 8;
    padding: 10px 12px; margin-bottom: 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: rgba(255,255,255,.96); box-shadow: var(--shadow);
}
.catalog-actions .spacer { margin-left: auto; }
.catalog-check { width: 42px; text-align: center !important; }
.catalog-check input { width: 17px; height: 17px; accent-color: var(--brand); cursor: pointer; }
.catalog-row-selected { background: var(--brand-soft) !important; }
.order-cart-button {
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 40px; padding: 7px 10px;
    border: 1px solid var(--ink); border-radius: var(--radius-sm);
    background: var(--ink); color: #fff; cursor: pointer;
    font-family: var(--font); font-size: 13px; font-weight: 700;
}
.order-cart-button:hover { background: #000; }
.order-cart-button__icon { color: var(--brand); font-size: 16px; }
.order-cart-button__count {
    display: inline-grid; place-items: center; min-width: 22px; height: 22px;
    padding: 0 6px; border-radius: 999px; background: var(--brand); color: var(--ink);
    font-size: 11px; font-weight: 800;
}
.order-cart-modal { max-width: 620px; }
.order-cart-list { display: grid; gap: 8px; }
.order-cart-item {
    display: flex; justify-content: space-between; gap: 16px;
    padding: 11px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.order-cart-item__meta { color: var(--ink-muted); font-size: 12px; margin-top: 3px; }
.position.is-collapsed .position__head { border-bottom: 0; }
@media (max-width: 860px) {
    .order-cart-button > span:nth-child(2) { display: none; }
    .catalog-actions { top: 8px; }
}

.catalog-page-summary { margin: 2px 0 0; }
.catalog-table-wrap { max-height: calc(100vh - 260px); min-height: 360px; }
.catalog-table { min-width: 1900px; }
.catalog-table thead { top: 0; }
.catalog-filter-row th { padding: 7px 6px !important; background: #fff !important; }
.catalog-filter-row input,
.catalog-filter-row select {
    min-width: 108px; padding: 6px 8px; border-radius: 7px;
    font-size: 11.5px; font-weight: 500; background-color: #fff;
}
.catalog-filter-row select { min-width: 155px; padding-right: 24px; }
.catalog-filter-result { color: var(--ink-muted); font-size: 12px; }
.catalog-pagination {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    margin-top: 16px; flex-wrap: wrap;
}
.catalog-pagination__pages { display: flex; align-items: center; gap: 5px; }
.catalog-page-link {
    display: inline-grid; place-items: center; min-width: 34px; height: 34px;
    padding: 0 8px; border: 1px solid var(--line); border-radius: 8px;
    color: var(--ink); font-size: 12.5px; font-weight: 650; background: #fff;
}
.catalog-page-link:hover { text-decoration: none; border-color: var(--brand-dark); }
.catalog-page-link.is-active { background: var(--brand); border-color: var(--brand); }
.catalog-pagination__ellipsis { padding: 0 3px; color: var(--ink-soft); }
.button.is-disabled { opacity: .45; pointer-events: none; }
.catalog-filter-hint { margin: 10px 0 0; text-align: center; }

@media (max-width: 860px) {
    .catalog-table-wrap { max-height: none; }
    .catalog-pagination { gap: 8px; }
    .catalog-actions { flex-wrap: wrap; }
}
