/* path: office-kazcb/public/assets/style.css */

/* =========================================================
   1. TOKENS / DESIGN SYSTEM
   ========================================================= */

:root {
    --font-base: Inter, "Segoe UI", Arial, sans-serif;

    --page-bg: #efefef;
    --shell-bg: linear-gradient(135deg, #efefef 0%, #ecebed 45%, #e6ece8 100%);
    --panel-bg: rgba(255, 255, 255, 0.30);
    --panel-border: rgba(255, 255, 255, 0.46);
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: rgba(255, 255, 255, 0.88);
    --surface-soft: rgba(255, 255, 255, 0.56);
    --surface-muted: rgba(255, 255, 255, 0.42);

    --text-main: #3b3b3b;
    --text-body: #6e6e6e;
    --text-soft: #959595;
    --text-faint: #b0b0b0;
    --text-white: #ffffff;

    --line-soft: rgba(70, 70, 70, 0.08);
    --line-strong: rgba(70, 70, 70, 0.12);

    --accent: #d9ef6a;
    --accent-hover: #d0e85d;
    --accent-text: #495216;

    --danger: #cb6969;
    --danger-bg: #fff0f0;
    --warning: #d6a24d;
    --warning-bg: #fff7e7;
    --success: #41ba97;
    --success-bg: #edfdf7;
    --info: #7b8ee6;
    --info-bg: #f0f3ff;

    --kpi-beige: #f4ecde;
    --kpi-lilac: #e8dff7;
    --kpi-cyan: #d9f2f7;
    --kpi-white: #f8f8f8;
    --kpi-peach: #f8eadf;
    --kpi-mint: #dff4ea;

    --shadow-shell: 0 24px 60px rgba(40, 40, 40, 0.08);
    --shadow-soft: 0 10px 30px rgba(40, 40, 40, 0.05);
    --shadow-card: 0 8px 22px rgba(40, 40, 40, 0.04);

    --radius-shell: 30px;
    --radius-2xl: 28px;
    --radius-xl: 24px;
    --radius-lg: 20px;
    --radius-md: 16px;
    --radius-sm: 14px;
    --radius-pill: 999px;

    --sidebar-width: 232px;
    --container-max: 1320px;
    --auth-card-width: 430px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
}

/* =========================================================
   2. RESET
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    margin: 0;
    font-family: var(--font-base);
    color: var(--text-main);
    background: var(--page-bg);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================================
   3. GLOBAL PAGE LAYERS
   ========================================================= */

.page-bg {
    min-height: 100vh;
    padding: 28px;
    background:
        radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 24%),
        radial-gradient(circle at 74% 84%, rgba(176, 216, 255, 0.24) 0%, rgba(176, 216, 255, 0) 24%),
        radial-gradient(circle at 92% 82%, rgba(220, 241, 191, 0.22) 0%, rgba(220, 241, 191, 0) 22%),
        var(--shell-bg);
}

.page-center {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.container-soft {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.app-frame {
    background: var(--panel-bg);
    border: 1px solid var(--panel-border);
    border-radius: var(--radius-shell);
    box-shadow: var(--shadow-shell);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.surface {
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.62);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
}

.surface-strong {
    background: var(--surface-strong);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.surface-soft {
    background: var(--surface-soft);
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: var(--radius-lg);
}

.surface-muted {
    background: var(--surface-muted);
    border: 1px solid rgba(255, 255, 255, 0.50);
    border-radius: var(--radius-lg);
}

/* =========================================================
   4. TYPOGRAPHY
   ========================================================= */

.display-title {
    margin: 0;
    font-size: 42px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.page-title {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-main);
}

.section-title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
    color: var(--text-main);
}

.card-title {
    margin: 0;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 600;
    color: var(--text-main);
}

.text-lead {
    margin: 0;
    font-size: 14px;
    color: var(--text-body);
}

.text-soft {
    color: var(--text-soft);
}

.text-faint {
    color: var(--text-faint);
}

.text-center {
    text-align: center;
}

.small {
    font-size: 12px;
}

.medium {
    font-size: 14px;
}

/* =========================================================
   5. BUTTONS
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background: var(--surface-strong);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
    box-shadow: var(--shadow-card);
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:focus-visible {
    outline: 2px solid rgba(123, 142, 230, 0.28);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-text);
    border-color: rgba(198, 224, 88, 0.72);
}

.btn-primary:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-main);
    border-color: var(--line-soft);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.52);
    color: var(--text-body);
    border-color: rgba(70, 70, 70, 0.08);
    box-shadow: none;
}

.btn-block {
    width: 100%;
}

/* =========================================================
   6. FORM CONTROLS
   ========================================================= */

.field {
    display: grid;
    gap: 8px;
}

.field-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
}

.input,
.select,
.textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--text-main);
    padding: 0 16px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.textarea {
    min-height: 120px;
    padding: 14px 16px;
    resize: vertical;
}

.input::placeholder,
.textarea::placeholder {
    color: #aaaaaa;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: rgba(123, 142, 230, 0.28);
    box-shadow: 0 0 0 4px rgba(123, 142, 230, 0.10);
}

/* =========================================================
   7. AUTH
   ========================================================= */

.auth-shell {
    width: 100%;
    max-width: var(--auth-card-width);
    padding: 20px;
}

.auth-card {
    padding: 30px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--accent);
    color: var(--accent-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: var(--shadow-card);
}

.auth-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.auth-header {
    margin-bottom: 24px;
}

.auth-title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.12;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0;
    font-size: 14px;
    color: var(--text-body);
}

.auth-form {
    display: grid;
    gap: 16px;
}

.auth-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: var(--text-soft);
}

/* =========================================================
   8. ALERTS / STATUS
   ========================================================= */

.alert {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    font-size: 14px;
}

.alert-danger {
    background: var(--danger-bg);
    color: #8f4545;
    border-color: rgba(203, 105, 105, 0.18);
}

.alert-warning {
    background: var(--warning-bg);
    color: #8a6520;
    border-color: rgba(214, 162, 77, 0.18);
}

.alert-success {
    background: var(--success-bg);
    color: #17795f;
    border-color: rgba(65, 186, 151, 0.18);
}

.alert-info {
    background: var(--info-bg);
    color: #485fbe;
    border-color: rgba(123, 142, 230, 0.18);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    font-weight: 700;
}

.badge-success {
    background: var(--success-bg);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-bg);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-bg);
    color: var(--danger);
}

.badge-info {
    background: var(--info-bg);
    color: var(--info);
}

/* =========================================================
   9. ERROR PAGES
   ========================================================= */

.error-shell {
    width: 100%;
    max-width: 760px;
    padding: 20px;
}

.error-card {
    padding: 40px;
}

.error-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    height: 38px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    color: var(--accent-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.error-title {
    margin: 0 0 12px;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.error-text {
    margin: 0 0 24px;
    font-size: 15px;
    color: var(--text-body);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* =========================================================
   10. MAIN APP LAYOUT
   ========================================================= */

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
    gap: 22px;
    min-height: calc(100vh - 56px);
    padding: 22px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 18px 14px;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 10px 14px;
}

.sidebar-brand-mark {
    min-width: 46px;
    height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    background: var(--accent);
    color: var(--accent-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: var(--shadow-card);
}

.sidebar-brand-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-main);
}

.sidebar-nav {
    display: grid;
    gap: 8px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 46px;
    padding: 0 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.40);
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    transition:
        background-color 0.18s ease,
        transform 0.18s ease,
        color 0.18s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.64);
    transform: translateY(-1px);
}

.sidebar-link.is-active {
    background: var(--accent);
    color: var(--accent-text);
}

.sidebar-link-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 18px;
    font-size: 16px;
    line-height: 1;
}

.app-main {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 18px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.44);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.topbar-welcome {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.topbar-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.topbar-subtitle {
    margin: 0;
    font-size: 13px;
    color: var(--text-soft);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.topbar-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(70, 70, 70, 0.08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-body);
    box-shadow: var(--shadow-card);
}

.topbar-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f4d24d 0%, #f5b54d 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: #7a4e00;
    box-shadow: var(--shadow-card);
}

/* =========================================================
   11. TABS / FILTERS / PAGINATION
   ========================================================= */

.tabs-soft,
.filters-soft,
.pagination-soft {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tabs-bar,
.filters-bar,
.toolbar-bar {
    padding: 12px 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.48);
}

.tab-soft,
.filter-chip,
.page-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: var(--radius-pill);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-body);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.tab-soft.is-active,
.filter-chip.is-active,
.page-soft.is-active {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-main);
    box-shadow: var(--shadow-card);
}

.page-soft.is-current {
    background: var(--accent);
    color: var(--accent-text);
}

/* =========================================================
   12. TOOLBARS
   ========================================================= */

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line-soft);
    color: var(--text-soft);
}

/* =========================================================
   13. TABLES
   ========================================================= */

.table-card {
    padding: 12px 0 0;
    overflow: hidden;
}

.table-scroll {
    overflow-x: auto;
}

.table-soft {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0;
}

.table-soft thead th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-body);
    background: rgba(0, 0, 0, 0.04);
}

.table-soft thead th:first-child {
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.table-soft thead th:last-child {
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}

.table-soft tbody td {
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-main);
    border-bottom: 1px solid rgba(70, 70, 70, 0.08);
}

.table-soft tbody tr:last-child td {
    border-bottom: none;
}

/* =========================================================
   14. KPI / DASHBOARD CARDS
   ========================================================= */

.cards-grid {
    display: grid;
    gap: 14px;
}

.cards-grid.cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cards-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.kpi-card {
    padding: 18px;
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.52);
}

.kpi-card.beige {
    background: var(--kpi-beige);
}

.kpi-card.lilac {
    background: var(--kpi-lilac);
}

.kpi-card.cyan {
    background: var(--kpi-cyan);
}

.kpi-card.white {
    background: var(--kpi-white);
}

.kpi-card.peach {
    background: var(--kpi-peach);
}

.kpi-card.mint {
    background: var(--kpi-mint);
}

.kpi-value {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.kpi-label {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--text-body);
}

.kpi-meta {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-soft);
}

/* =========================================================
   15. DASHBOARD PANELS / CHART PLACEHOLDERS
   ========================================================= */

.panel {
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: var(--shadow-card);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.chart-placeholder {
    min-height: 260px;
    border-radius: 20px;
    background:
        linear-gradient(to bottom, rgba(0,0,0,0.04) 1px, transparent 1px) 0 0 / 100% 52px,
        linear-gradient(to right, rgba(0,0,0,0.04) 1px, transparent 1px) 0 0 / 46px 100%,
        rgba(255, 255, 255, 0.42);
}

/* =========================================================
   16. MACHINE / TILE CARDS
   ========================================================= */

.tile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.machine-card {
    position: relative;
    min-height: 110px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow: var(--shadow-card);
}

.machine-card.beige {
    background: var(--kpi-beige);
}

.machine-card.lilac {
    background: var(--kpi-lilac);
}

.machine-card.cyan {
    background: var(--kpi-cyan);
}

.machine-card.white {
    background: #f8f8f8;
}

.machine-title {
    margin: 0 0 16px;
    font-size: 16px;
    font-weight: 700;
}

.machine-meta {
    display: grid;
    gap: 4px;
    font-size: 13px;
    color: var(--text-body);
}

.machine-action {
    position: absolute;
    right: 16px;
    bottom: 14px;
    color: var(--text-body);
}

/* =========================================================
   17. HELPERS / LAYOUT UTILS
   ========================================================= */

.stack-8 {
    display: grid;
    gap: 8px;
}

.stack-12 {
    display: grid;
    gap: 12px;
}

.stack-16 {
    display: grid;
    gap: 16px;
}

.stack-20 {
    display: grid;
    gap: 20px;
}

.stack-24 {
    display: grid;
    gap: 24px;
}

.row-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.row-start {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.w-full {
    width: 100%;
}

/* =========================================================
   18. RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
    .cards-grid.cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar-nav {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }

    .sidebar {
        padding: 16px;
    }
}

@media (max-width: 860px) {
    .tile-grid,
    .cards-grid.cols-2,
    .cards-grid.cols-3,
    .cards-grid.cols-4 {
        grid-template-columns: 1fr;
    }

    .topbar {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    .page-bg {
        padding: 16px;
    }

    .auth-shell,
    .error-shell {
        padding: 10px;
    }

    .auth-card,
    .error-card {
        padding: 24px;
    }

    .display-title {
        font-size: 34px;
    }

    .error-title {
        font-size: 28px;
    }

    .app-shell {
        padding: 16px;
    }

    .topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .topbar-actions {
        justify-content: flex-end;
    }
}

/* =========================
   ICONS SYSTEM
========================= */

/* Общие иконки */
.sidebar-link-icon img,
.topbar-icon img {
    width: 18px;
    height: 18px;
    display: block;
    opacity: 0.6;
    transition: all 0.2s ease;
}

/* Sidebar — обычное состояние */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    color: var(--text-body);
    transition: all 0.2s ease;
}

/* Hover */
.sidebar-link:hover {
    background: rgba(0, 0, 0, 0.04);
}

.sidebar-link:hover img {
    opacity: 0.9;
}

/* Активный пункт */
.sidebar-link.is-active {
    background: #cde06f;
    color: #1f2a37;
    font-weight: 600;
}

.sidebar-link.is-active img {
    opacity: 1;
}

/* Topbar */
.topbar-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.topbar-icon:hover {
    background: rgba(0, 0, 0, 0.05);
}

.topbar-icon:hover img {
    opacity: 1;
}

/* Аватар */
.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #cde06f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #1f2a37;
}

/* =========================
   VISUAL POLISH
========================= */

.sidebar {
    width: 220px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.sidebar-brand-mark {
    background: #cde06f;
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
}

/* Чтобы текст не прыгал */
.sidebar-link span {
    font-size: 14px;
}

.table-soft tbody tr {
    cursor: pointer;
    transition: background 0.2s ease;
}

.table-soft tbody tr:hover {
    background: rgba(0, 0, 0, 0.03);
}

.table-soft td:first-child {
    font-weight: 600;
}

/* =========================
   Upload (file input) FIX
   ========================= */

.file-upload {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* 🔥 ВАЖНО: делаем кнопку реально видимой */
.file-upload-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 40px;
    padding: 0 18px;

    border-radius: 12px;

    background: #1f2a37; /* темный фон */
    border: 1px solid rgba(255,255,255,0.12);

    color: #fff;

    font-size: 14px;
    font-weight: 500;

    transition: all 0.2s ease;
}

/* hover */
.file-upload-button:hover {
    background: #273244;
    border-color: rgba(255,255,255,0.2);
}

/* active */
.file-upload-button:active {
    transform: scale(0.97);
}

/* имя файла */
.file-upload-name {
    font-size: 13px;
    color: rgba(255,255,255,0.85); /* было 0.6 → стало читаемо */
    font-weight: 500;
}

.file-upload-name.is-selected {
    color: #4ade80; /* зеленый как success */
}