/* =========================================================
   Закупочные накладные — дизайн поверх Bootstrap 5.3
   ========================================================= */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../vendor/inter/inter-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url('../vendor/inter/inter-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --c-bg: #f4f5f9;
    --c-surface: #ffffff;
    --c-border: #e6e8ef;
    --c-text: #101828;
    --c-muted: #667085;
    --c-faint: #98a2b3;
    --c-primary: #4f46e5;
    --c-primary-600: #4338ca;
    --c-primary-50: #eef2ff;
    --c-success: #059669;
    --c-success-600: #047857;
    --c-success-50: #ecfdf5;
    --c-danger: #dc2626;
    --c-danger-50: #fef2f2;
    --c-warning-50: #fffbeb;
    --c-warning: #d97706;
    --radius: 16px;
    --radius-sm: 11px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 4px 12px rgba(16, 24, 40, .05);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, .12);
    --tabbar-h: 62px;

    --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-color: var(--c-text);
    --bs-body-bg: #ffffff;
    --bs-secondary-color: var(--c-muted);
    --bs-border-color: var(--c-border);
    --bs-primary: #4f46e5;
    --bs-primary-rgb: 79, 70, 229;
    --bs-link-color-rgb: 79, 70, 229;
    --bs-link-hover-color-rgb: 67, 56, 202;
    --bs-border-radius: var(--radius-sm);
    --bs-focus-ring-color: rgba(79, 70, 229, .2);
}

body {
    background: var(--c-bg);
    font-feature-settings: 'cv11', 'ss01';
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    min-height: 100vh;
}
.icon { flex: none; vertical-align: -.2em; }
.text-muted, .text-secondary { color: var(--c-muted) !important; }
.tnum, .text-num { font-variant-numeric: tabular-nums; }
.text-num { text-align: right; white-space: nowrap; }
.fw-600 { font-weight: 600; }

/* ---------- кнопки ---------- */
.btn {
    --bs-btn-font-weight: 500;
    --bs-btn-border-radius: var(--radius-sm);
    --bs-btn-padding-y: .5rem;
    --bs-btn-padding-x: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --bs-btn-padding-y: .32rem; --bs-btn-padding-x: .7rem; --bs-btn-font-size: .85rem; --bs-btn-border-radius: 9px; }
.btn-lg { --bs-btn-padding-y: .7rem; --bs-btn-padding-x: 1.4rem; --bs-btn-font-size: 1rem; }
.btn-primary {
    --bs-btn-bg: var(--c-primary); --bs-btn-border-color: var(--c-primary);
    --bs-btn-hover-bg: var(--c-primary-600); --bs-btn-hover-border-color: var(--c-primary-600);
    --bs-btn-active-bg: var(--c-primary-600); --bs-btn-active-border-color: var(--c-primary-600);
    --bs-btn-disabled-bg: var(--c-primary); --bs-btn-disabled-border-color: var(--c-primary);
    box-shadow: 0 1px 2px rgba(79, 70, 229, .25);
}
.btn-success {
    --bs-btn-bg: var(--c-success); --bs-btn-border-color: var(--c-success);
    --bs-btn-hover-bg: var(--c-success-600); --bs-btn-hover-border-color: var(--c-success-600);
    --bs-btn-active-bg: var(--c-success-600); --bs-btn-active-border-color: var(--c-success-600);
    --bs-btn-disabled-bg: var(--c-success); --bs-btn-disabled-border-color: var(--c-success);
    box-shadow: 0 1px 2px rgba(5, 150, 105, .25);
}
.btn-white {
    --bs-btn-bg: #fff; --bs-btn-border-color: var(--c-border); --bs-btn-color: var(--c-text);
    --bs-btn-hover-bg: #f9fafb; --bs-btn-hover-border-color: #d0d5dd; --bs-btn-hover-color: var(--c-text);
    --bs-btn-active-bg: #f2f4f7; --bs-btn-active-border-color: #d0d5dd;
    box-shadow: var(--shadow-sm);
}
.btn-soft {
    --bs-btn-bg: var(--c-primary-50); --bs-btn-border-color: transparent; --bs-btn-color: var(--c-primary);
    --bs-btn-hover-bg: #e0e7ff; --bs-btn-hover-border-color: transparent; --bs-btn-hover-color: var(--c-primary-600);
    --bs-btn-active-bg: #e0e7ff; --bs-btn-active-border-color: transparent;
}
.btn-soft-success {
    --bs-btn-bg: var(--c-success-50); --bs-btn-border-color: transparent; --bs-btn-color: var(--c-success);
    --bs-btn-hover-bg: #d1fae5; --bs-btn-hover-border-color: transparent; --bs-btn-hover-color: var(--c-success-600);
    --bs-btn-active-bg: #d1fae5; --bs-btn-active-border-color: transparent;
}
.btn-soft-danger {
    --bs-btn-bg: var(--c-danger-50); --bs-btn-border-color: transparent; --bs-btn-color: var(--c-danger);
    --bs-btn-hover-bg: #fee2e2; --bs-btn-hover-border-color: transparent; --bs-btn-hover-color: #b91c1c;
    --bs-btn-active-bg: #fee2e2; --bs-btn-active-border-color: transparent;
}
.btn-ghost {
    --bs-btn-bg: transparent; --bs-btn-border-color: transparent; --bs-btn-color: var(--c-muted);
    --bs-btn-hover-bg: #f2f4f7; --bs-btn-hover-border-color: transparent; --bs-btn-hover-color: var(--c-text);
    --bs-btn-active-bg: #eaecf0; --bs-btn-active-border-color: transparent;
}
.btn-icon { --bs-btn-padding-x: 0; width: 2.4rem; height: 2.4rem; }
.btn-icon.btn-sm { width: 2rem; height: 2rem; }

/* ---------- поля ---------- */
.form-control, .form-select {
    border-color: var(--c-border);
    border-radius: var(--radius-sm);
    padding: .55rem .8rem;
    box-shadow: var(--shadow-sm);
    transition: border-color .15s, box-shadow .15s;
}
.form-control::placeholder { color: var(--c-faint); }
.form-control:focus, .form-select:focus {
    border-color: #a5b4fc;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, .12);
}
.form-label { font-size: .8rem; font-weight: 500; color: var(--c-muted); margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--c-primary); border-color: var(--c-primary); }
.input-group > .form-control, .input-group > .form-select { box-shadow: none; }
.input-group { box-shadow: var(--shadow-sm); border-radius: var(--radius-sm); }
@media (max-width: 767.98px) {
    /* iOS не увеличивает страницу при фокусе, если шрифт полей ≥ 16px */
    .form-control, .form-select { font-size: 16px; }
}

/* ---------- верхняя панель ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--c-border);
}
.topbar-inner {
    height: 58px;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--c-text);
    text-decoration: none;
    letter-spacing: -.01em;
}
.brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    box-shadow: 0 4px 10px rgba(79, 70, 229, .3);
}
.topnav { display: flex; gap: .25rem; margin-left: 1rem; }
.topnav a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .45rem .8rem;
    border-radius: 10px;
    color: var(--c-muted);
    font-weight: 500;
    font-size: .92rem;
    text-decoration: none;
}
.topnav a:hover { background: #f2f4f7; color: var(--c-text); }
.topnav a.active { background: var(--c-primary-50); color: var(--c-primary); }
.user-chip {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .88rem;
    color: var(--c-muted);
}
.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--c-primary-50);
    color: var(--c-primary);
    font-weight: 600;
    font-size: .85rem;
}
.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: -.4rem;
    border-radius: 10px;
    color: var(--c-text);
}
.back-link:hover { background: #f2f4f7; }

/* ---------- нижние вкладки (телефон) ---------- */
.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-top: 1px solid var(--c-border);
    display: flex;
}
.tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .2rem;
    font-size: .7rem;
    font-weight: 500;
    color: var(--c-faint);
    text-decoration: none;
}
.tabbar a.active { color: var(--c-primary); }
.has-tabbar { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); }
@media (min-width: 768px) {
    .tabbar { display: none; }
    .has-tabbar { padding-bottom: 0; }
}

.fab {
    position: fixed;
    right: 16px;
    bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
    z-index: 1031;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    box-shadow: 0 10px 24px rgba(79, 70, 229, .4);
}
.fab:hover, .fab:active { color: #fff; }
@media (min-width: 768px) { .fab { display: none; } }

/* ---------- страница ---------- */
.page { padding-top: 1rem; padding-bottom: 1.5rem; }
.page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1rem;
}
.page-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.page-sub { color: var(--c-muted); font-size: .9rem; margin-top: .1rem; }

.panel {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.panel-body { padding: 1rem; }
@media (min-width: 768px) { .panel-body { padding: 1.25rem; } }

.flash-msg {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .7rem 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: .92rem;
    font-weight: 500;
}
.flash-msg.ok { background: var(--c-success-50); color: var(--c-success-600); }
.flash-msg.err { background: var(--c-danger-50); color: #b91c1c; }

.empty {
    text-align: center;
    color: var(--c-muted);
    padding: 3rem 1rem;
}
.empty .empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto .8rem;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: var(--c-primary-50);
    color: var(--c-primary);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    background: #f2f4f7;
    color: var(--c-muted);
    font-size: .78rem;
    font-weight: 500;
}

/* ---------- сканер ---------- */
.scan-panel {
    position: sticky;
    top: 58px;
    z-index: 20;
    background: var(--c-bg);
    padding: .6rem 0 .3rem;
}
.scan-field {
    position: relative;
    display: flex;
    gap: .5rem;
}
.scan-field .scan-icon {
    position: absolute;
    left: .9rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--c-primary);
    pointer-events: none;
}
.scan-field .form-control {
    padding-left: 2.8rem;
    height: 52px;
    font-size: 1.1rem;
    border-radius: 14px;
    border: 1.5px solid #c7d2fe;
    background: #fff;
}
.scan-field .form-control:focus { border-color: var(--c-primary); }
.scan-field .btn { height: 52px; border-radius: 14px; padding: 0 1.2rem; }
.scan-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    min-height: 1.9rem;
    font-size: .85rem;
    padding: 0 .2rem;
}
.scan-status #scan-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scan-status .text-success { color: var(--c-success) !important; font-weight: 500; }
.scan-status .text-danger { font-weight: 500; }
.scan-status .text-warning-emphasis { color: var(--c-warning) !important; font-weight: 500; }

/* ---------- строки товаров в форме ---------- */
.item {
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: .6rem .6rem .65rem;
    margin-bottom: .5rem;
    display: grid;
    grid-template-columns: 1.6rem 1fr auto;
    grid-template-areas:
        "num  name del"
        ".    sub  sub"
        ".    calc calc";
    column-gap: .45rem;
    row-gap: .3rem;
    align-items: center;
}
.item.flash { animation: flash 1.2s ease-out; }
@keyframes flash {
    from { background: #eef2ff; border-color: #a5b4fc; }
    to { background: var(--c-surface); border-color: var(--c-border); }
}
.item-num {
    grid-area: num;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 8px;
    background: #f2f4f7;
    color: var(--c-muted);
    font-size: .75rem;
    font-weight: 600;
    display: grid;
    place-items: center;
}
.item .f-name { grid-area: name; font-weight: 500; }
.item .btn-del { grid-area: del; }
.item-sub {
    grid-area: sub;
    font-size: .78rem;
    color: var(--c-faint);
    display: flex;
    flex-wrap: wrap;
    gap: .15rem .6rem;
    padding-left: .15rem;
}
.item-sub:has(.item-barcode:empty):has(.item-meta:empty) { display: none; }
.item-barcode { font-family: var(--bs-font-monospace); letter-spacing: .02em; }
.item-meta { color: var(--c-warning); font-weight: 500; }
.item-calc { grid-area: calc; display: flex; align-items: center; gap: .4rem; }
.item-calc .f-qty { width: 4.8rem; flex: none; }
.item-calc .f-price { flex: 1 1 6rem; min-width: 0; }
.item-calc .op { color: var(--c-faint); font-size: .9rem; }
.item-sum {
    min-width: 6.5rem;
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.item .form-control { padding: .4rem .6rem; box-shadow: none; }
.item .f-qty, .item .f-price { text-align: right; font-variant-numeric: tabular-nums; }
.btn-del {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--c-faint);
    display: grid;
    place-items: center;
}
.btn-del:hover { color: var(--c-danger); background: var(--c-danger-50); }
.items-head { display: none; }

.price-approx {
    background: var(--c-warning-50) !important;
    border-color: #fcd34d !important;
}

@media (min-width: 768px) {
    .items-head, .item {
        display: grid;
        grid-template-columns: 2rem 9.5rem 1fr 6rem 8.5rem 8.5rem 2rem;
        grid-template-areas: "num bc name qty price sum del";
        column-gap: .6rem;
    }
    .items-head {
        padding: 0 .7rem .4rem;
        font-size: .75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: var(--c-faint);
    }
    .item { padding: .45rem .7rem; margin-bottom: .4rem; row-gap: 0; }
    .item-sub, .item-calc { display: contents; }
    .item-barcode { grid-area: bc; font-size: .82rem; color: var(--c-muted); }
    .item-meta { grid-column: 3 / 4; grid-row: 2; font-size: .75rem; padding-top: .15rem; }
    .item .f-qty { grid-area: qty; width: auto; }
    .item .f-price { grid-area: price; }
    .item-sum { grid-area: sum; min-width: 0; }
    .item-calc .op { display: none; }
}

/* ---------- итог внизу ---------- */
.total-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin: 1rem -12px 0;
    padding: .75rem 16px calc(.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -8px 24px rgba(16, 24, 40, .06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.total-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--c-faint); }
.total-sum { font-size: 1.5rem; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.total-info { font-size: .8rem; color: var(--c-muted); }
@media (min-width: 768px) {
    .total-bar { margin: 1.25rem 0 0; border: 1px solid var(--c-border); border-radius: var(--radius); }
}

/* ---------- карточки списков ---------- */
.list-card {
    display: flex;
    align-items: center;
    gap: .8rem;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: .75rem .85rem;
    margin-bottom: .5rem;
    color: inherit;
    text-decoration: none;
    transition: border-color .15s, box-shadow .15s;
}
a.list-card:hover { border-color: #c7d2fe; box-shadow: var(--shadow); }
a.list-card:active { background: #fafaff; }
.list-card .lc-body { flex: 1; min-width: 0; }
.list-card .lc-row { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.list-card .lc-title { font-weight: 600; }
.list-card .lc-sub { font-size: .82rem; color: var(--c-muted); }
.list-card.flash { animation: flash 2s ease-out; }

.date-tile {
    flex: none;
    width: 46px;
    height: 50px;
    border-radius: 12px;
    background: var(--c-primary-50);
    color: var(--c-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.05;
}
.date-tile .d { font-size: 1.15rem; font-weight: 700; }
.date-tile .m { font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- таблицы ---------- */
.table-app {
    --bs-table-bg: transparent;
    margin: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
.table-app > :not(caption) > * > * { padding: .7rem 1rem; border-bottom-color: #f0f1f5; }
.table-app tbody tr:last-child > * { border-bottom: 0; }
.table-app thead th {
    font-size: .72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--c-faint);
    background: #fafbfc;
    border-bottom-color: var(--c-border);
}
.table-app.table-hover tbody tr:hover > * { background: #fafaff; }
.table-app tr.flash td { animation: flashrow 2s ease-out; }
@keyframes flashrow { from { background: #eef2ff; } to { background: transparent; } }

@media (max-width: 767.98px) {
    .table-cards thead { display: none; }
    .table-cards, .table-cards tbody, .table-cards tfoot {
        display: block;
        background: transparent;
        border: 0;
        box-shadow: none;
    }
    .table-cards tr {
        display: block;
        background: var(--c-surface);
        border: 1px solid var(--c-border);
        border-radius: 14px;
        box-shadow: var(--shadow-sm);
        margin-bottom: .5rem;
        padding: .5rem .85rem;
    }
    .table-cards td {
        display: flex;
        justify-content: space-between;
        gap: 1rem;
        border: 0 !important;
        padding: .25rem 0 !important;
        text-align: right;
    }
    .table-cards td::before {
        content: attr(data-label);
        color: var(--c-muted);
        text-align: left;
        font-size: .85rem;
    }
    .table-cards td[data-label=""]::before { content: none; }
}

/* ---------- картинки штрихкодов ---------- */
.barcode-box {
    display: inline-block;
    background: #fff;               /* белый фон и поля по бокам — сканеру нужна «тихая зона» */
    padding: .45rem 1.1rem .25rem;
    border-radius: 10px;
    line-height: 1;
}
.barcode-img svg {
    display: block;
    width: calc(var(--bcw, 190) * 1px);   /* 2 px на модуль */
    max-width: 100%;
    height: 3.5rem;
}
.barcode-text {
    font-family: var(--bs-font-monospace);
    font-size: .8rem;
    letter-spacing: .12em;
    text-align: center;
    margin-top: .2rem;
    color: #000;
}
.barcode-plain { display: none; }
.hide-barcodes .barcode-box { display: none; }
.hide-barcodes .barcode-plain { display: inline; }
#items-mobile .barcode-box {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: .5rem auto .3rem;
    border: 1px solid #f0f1f5;
}
#items-mobile .barcode-img svg { width: calc(var(--bcw, 190) * 1.5px); height: 4.5rem; }  /* 3 px на модуль */
.hide-barcodes #items-mobile .barcode-box { display: none; }
.table-app .barcode-img svg { height: 2.75rem; max-width: none; }
.table-app .barcode-box { padding: .25rem .9rem .1rem; }

/* ---------- вход ---------- */
.auth-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem 1rem;
    background:
        radial-gradient(60rem 30rem at 10% -10%, #e0e7ff 0%, transparent 60%),
        radial-gradient(50rem 30rem at 110% 110%, #d1fae5 0%, transparent 55%),
        var(--c-bg);
}
.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    padding: 2rem 1.5rem;
}
@media (min-width: 576px) { .auth-card { padding: 2.25rem 2rem; } }
.auth-card .brand-logo { width: 52px; height: 52px; border-radius: 16px; margin: 0 auto 1rem; }
.auth-card .form-control { height: 48px; }

/* ---------- модальные окна, пагинация ---------- */
.modal-content { border: 0; border-radius: 20px; box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { border: 0; }
.pagination { --bs-pagination-border-radius: 10px; --bs-pagination-active-bg: var(--c-primary); --bs-pagination-active-border-color: var(--c-primary); gap: .25rem; }
.pagination .page-link { border-radius: 10px !important; border-color: var(--c-border); }
.dropdown-menu { border: 1px solid var(--c-border); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .35rem; }
.dropdown-item { border-radius: 8px; padding: .5rem .75rem; display: flex; align-items: center; gap: .5rem; }
.flex-none { flex: none; }
.min-w-0 { min-width: 0; }
.inline-edit {
    border-color: transparent;
    box-shadow: none;
    padding-left: .35rem;
    margin-left: -.35rem;
    font-weight: 500;
    background: transparent;
}
.inline-edit:hover { border-color: var(--c-border); background: #fff; }
.inline-edit:focus { background: #fff; }
