
/* style.css ��� �����-������ */

/* :root ����� ����� ������� � ��������� ���� _variables.scss ��� ��������, ���� ������ ������������ ������������� */
:root {
    --cui-blue: #0d6efd;
    --cui-indigo: #6610f2;
    --cui-purple: #6f42c1;
    --cui-pink: #d63384;
    --cui-red: #dc3545;
    --cui-orange: #fd7e14;
    --cui-yellow: #ffc107;
    --cui-green: #198754; /* ����� ����������� ������� ��� success */
    --cui-teal: #20c997;
    --cui-cyan: #0dcaf0;
    --cui-black: #000015;
    --cui-white: #fff;
    --cui-gray-100: #f8f9fa; /* ������� ��� */
    --cui-gray-200: #ebedef; /* ������� �����������, ��� ��� ���������� ��������� */
    --cui-gray-300: #d8dbe0; /* ������� */
    --cui-gray-400: #c4c9d0;
    --cui-gray-500: #b1b7c1;
    --cui-gray-600: #8a93a2; /* ��������� ����� */
    --cui-gray-700: #768192;
    --cui-gray-800: #636f83;
    --cui-gray-900: #4f5d73; /* �������� ������ ����� */

    --cui-primary: #321fdb; /* �������� ����� CoreUI */
    --cui-secondary: #9da5b1;
    --cui-success: #2eb85c;  /* ����� ������� CoreUI */
    --cui-info: #39f;
    --cui-warning: #f9b115;
    --cui-danger: #e55353;
    --cui-light: var(--cui-gray-100); /* ������� ��� */
    --cui-dark: var(--cui-gray-900);

    --cui-font-sans-serif: 'Roboto', system-ui, -apple-system, "Segoe UI", "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --cui-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    --cui-body-bg: var(--cui-gray-100); /* ��� ���� �������� */
    --cui-body-color: var(--cui-gray-900);
    --cui-link-color: var(--cui-primary);
    --cui-link-hover-color: #2819af; /* ������ ��������� ������ */

    --cui-border-color: var(--cui-gray-300);
    --cui-border-radius: 0.375rem; /* 6px */
    --cui-border-radius-sm: 0.25rem; /* 4px */
    --cui-border-radius-lg: 0.5rem;  /* 8px */

    --cui-sidebar-width: 16rem; /* 256px */
    --cui-sidebar-bg: #3c4b64; /* �����-����� ������� CoreUI */
    --cui-sidebar-color: rgba(255, 255, 255, 0.8);
    --cui-sidebar-nav-link-color: rgba(255, 255, 255, 0.7);
    --cui-sidebar-nav-link-hover-color: #fff;
    --cui-sidebar-nav-link-hover-bg: rgba(255, 255, 255, 0.05);
    --cui-sidebar-nav-link-active-color: #fff;
    --cui-sidebar-nav-link-active-bg: var(--cui-primary); /* ����� ����� ��� ��������� ������ */
    --cui-sidebar-nav-icon-color: rgba(255, 255, 255, 0.6);
    --cui-sidebar-nav-group-bg: rgba(0, 0, 0, 0.2);
    --cui-sidebar-nav-group-toggle-indicator: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffffb3'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");


    --cui-header-bg: var(--cui-white);
    --cui-header-border-color: var(--cui-border-color);
    --cui-header-height: 4rem; /* 64px */

    --cui-card-bg: var(--cui-white);
    --cui-card-border-color: var(--cui-border-color);
    --cui-card-cap-bg: var(--cui-gray-100);
    --cui-card-cap-padding-y: 0.75rem; /* 12px */
    --cui-card-cap-padding-x: 1.25rem; /* 20px */
    --cui-card-spacer-y: 1.25rem;
    --cui-card-spacer-x: 1.25rem;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px; /* ������� ������ ��� rem */
}

body {
    margin: 0;
    font-family: var(--cui-font-sans-serif);
    font-size: 0.875rem; /* 14px, ���� ������� 16px */
    font-weight: 400;
    line-height: 1.5;
    color: var(--cui-body-color);
    background-color: var(--cui-body-bg);
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

#root {
    display: flex;
    min-height: 100vh;
}

/* ������� CoreUI (����� ���������, ��� �������) */
.d-flex { display: flex !important; }
.d-none { display: none !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-center { justify-content: center !important; }
.ms-auto { margin-left: auto !important; }
.me-2 { margin-right: 0.5rem !important; }
.ps-1 { padding-left: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.min-vh-100 { min-height: 100vh !important; }
.flex-column { flex-direction: column !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.bg-light { background-color: var(--cui-light) !important; }
.text-white { color: var(--cui-white) !important; }
.cursor-pointer { cursor: pointer !important; }
.nowrap-space { white-space: nowrap !important; }


/* === Sidebar === */
.sidebar {
    background-color: var(--cui-sidebar-bg);
    color: var(--cui-sidebar-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* ����� ������� �� �������� */
    order: -1;
    position: relative;
    transition: margin-left .15s, margin-right .15s, width .15s, box-shadow 75ms, transform .15s;
    z-index: 1030; /* ������ ��������� ��������, �� ���� ������� */
}

.sidebar-fixed {
    height: 100vh;
    position: sticky; /* ��������� � ����� */
    top: 0;
}

.sidebar-lg {
    width: var(--cui-sidebar-width);
}

.sidebar-brand {
    align-items: center;
    background: var(--cui-sidebar-brand-bg, rgba(0, 0, 0, 0.2));
    color: var(--cui-sidebar-brand-color, var(--cui-sidebar-color));
    display: flex;
    flex: 0 0 var(--cui-header-height); /* ���������� ������ ������ ��� ��������������� */
    font-weight: 700;
    justify-content: center;
    padding: 0 1rem;
    text-decoration: none;
}
.sidebar-brand-full {
    /* ����� ��� ������� ���� */
}
.sidebar-brand-narrow {
    display: none; /* ������������, ����� ������� ������� */
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden; /* ��� .scrollable-content */
    position: relative;
}

/* admin_style.css или твой основной CSS для админки */

.sidebar-nav .scrollable-content {
    height: 100%; /* Важно для правильной работы overflow-y */
    overflow-y: auto;
    /* Стилизация скроллбара для Webkit (Chrome, Safari, Edge) */
}

.sidebar-nav .scrollable-content::-webkit-scrollbar {
    width: 6px; /* Ширина скроллбара */
}

.sidebar-nav .scrollable-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1); /* Цвет фона дорожки скроллбара */
    border-radius: 3px;
}

.sidebar-nav .scrollable-content::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3); /* Цвет бегунка */
    border-radius: 3px;
}

/* Стиль бегунка при наведении на сам контейнер .scrollable-content */
.sidebar-nav .scrollable-content:hover::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.5); /* Более яркий бегунок при наведении */
}

/* Для Firefox */
.sidebar-nav .scrollable-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) rgba(0,0,0,0.1); /* thumb track */
}

.sidebar-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-nav .nav-item {
    position: relative;
}

.sidebar-nav .nav-link {
    color: var(--cui-sidebar-nav-link-color);
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem; /* ��������� ������� */
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}
.sidebar-nav .nav-link:hover {
    color: var(--cui-sidebar-nav-link-hover-color);
    background-color: var(--cui-sidebar-nav-link-hover-bg);
}
.sidebar-nav .nav-item.active > .nav-link {
    color: var(--cui-sidebar-nav-link-active-color);
    background-color: var(--cui-sidebar-nav-link-active-bg);
}
.sidebar-nav .nav-link .nav-icon {
    color: var(--cui-sidebar-nav-icon-color);
    flex-shrink: 0;
    font-size: 1.125rem; /* ������ ������ */
    height: 1.25rem;
    line-height: 1;
    margin-right: 0.75rem;
    text-align: center;
    width: 1.25rem;
    transition: color 0.15s ease;
}
.sidebar-nav .nav-link:hover .nav-icon,
.sidebar-nav .nav-item.active > .nav-link .nav-icon {
    color: var(--cui-sidebar-nav-link-active-color); /* ��� hover-icon-color */
}
.sidebar-nav .nav-link .nav-name {
    flex-grow: 1;
}

/* ����� ��� ����� ���� */
.sidebar-nav .nav-group .nav-link.nav-group-toggle {
    position: relative;
}
.sidebar-nav .nav-group .nav-link.nav-group-toggle::after {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.8em;
    margin-left: auto;
    background-image: var(--cui-sidebar-nav-group-indicator);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 0.8em;
    transition: transform 0.15s ease-in-out;
}
.sidebar-nav .nav-group.show > .nav-link.nav-group-toggle::after {
    transform: rotate(-180deg);
}

.sidebar-nav .nav-group-items {
    list-style: none;
    padding-left: 0; /* ������� ��������� ������� ul */
    background-color: var(--cui-sidebar-nav-group-bg);
    overflow: hidden;
    max-height: 0; /* ��������� ��������� ��� �������� */
    transition: max-height 0.2s ease-out; /* �������� ��������� */
}
.sidebar-nav .nav-group.show > .nav-group-items {
    max-height: 500px; /* ���������� ������� ������ ��� ����������� */
    /* height: auto; - ���� ��� �������� */
}
.sidebar-nav .nav-group-items .nav-link {
    padding-left: 2.5rem; /* ������ ��� ��������� ��������� (������ + �����) */
    font-size: 0.8125rem; /* ���� ������ */
}
.sidebar-nav .nav-group-items .nav-link .nav-icon {
    margin-right: 0.5rem; /* ������� ������ ��� ������ ������� */
    font-size: 1rem;
}
/* ���� � ���������� ��� ����� ������, � ������ ������ span ��� ������������ */
.sidebar-nav .nav-group-items .nav-link .nav-icon:empty {
    width: 1rem; /* ����� ��������� ������, ���� ������ ��� */
    margin-right: 0.25rem;
}


.sidebar-toggler {
    background-color: var(--cui-sidebar-toggler-bg, rgba(0,0,0,0.2));
    border: 0;
    cursor: pointer;
    display: flex; /* �� ��������� ����� ��� ���������, �� d-lg-flex ��� ������� */
    flex: 0 0 var(--cui-sidebar-toggler-height, 3rem);
    justify-content: flex-end;
    align-items: center; /* ���������� ������ */
    padding: 0;
    width: 100%;
}
.sidebar-toggler::before { /* ������ ��� ������������� */
    content: "";
    display: block;
    width: var(--cui-sidebar-toggler-indicator-width, 4rem);
    height: var(--cui-sidebar-toggler-indicator-height, 3rem);
    background-image: var(--cui-sidebar-toggler-indicator);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1rem;
    transition: transform .15s;
}
.sidebar.sidebar-narrow .sidebar-toggler::before { /* ������ ��� ������������ ��������� */
    transform: rotate(-180deg);
}

@media (max-width: 991.98px) { /* LG breakpoint CoreUI */
    .sidebar {
        margin-left: calc(var(--cui-sidebar-width) * -1);
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 1032; /* ���� ������ ��� �������� */
    }
    .sidebar.show {
        margin-left: 0;
    }
    .sidebar-toggler.d-lg-flex { /* �������� ���������� ������� */
        display: none !important;
    }
}

/* === Header === */
.wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    min-height: 100vh;
    background-color: var(--cui-body-bg);
}

.header {
    align-items: center;
    background: var(--cui-header-bg);
    border-bottom: 1px solid var(--cui-header-border-color);
    display: flex;
    flex-wrap: wrap;
    height: var(--cui-header-height);
    justify-content: space-between;
    padding: 0; /* ������� ��������� ��������, ���� ��� �� ����� */
    position: relative;
    z-index: 1020; /* ����� ��� ��� �������� ���������, �� ��� ��������� ��� ������� */
}
.header-sticky {
    position: sticky;
    top: 0;
}
.header .container-fluid {
    align-items: center;
    display: flex;
    flex-wrap: inherit;
    justify-content: space-between;
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.header-toggler {
    background-color: transparent;
    border: 0;
    color: var(--cui-gray-600);
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
}
.header-toggler .icon {
    height: 1.5rem;
    width: 1.5rem;
}
.header-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav .nav-item {
    /* ����� ��� ���������, ���� ����� */
}
.header-nav .nav-item + .nav-item {
    margin-left: 0.5rem;
}
.header-nav .btn {
    font-size: 0.875rem; /* 14px */
}
.header-nav .btn-info {
    background-color: var(--cui-info);
    border-color: var(--cui-info);
}
.header-nav .dropdown-toggle::after { /* �������� ����������� �������, ���� ������������ ��������� */
    /* display: none; */
}
.header-nav .dropdown-menu {
    font-size: 0.875rem;
    border-radius: var(--cui-border-radius);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,.15);
}
.header-nav .dropdown-menu.show {
    display: block;
}

/* === Body Content === */
.body {
    flex-grow: 1;
    padding: 1.5rem 1rem; /* ��������� ������� ��� ��������� �������� */
}
.body .container-fluid {
    width: 100%;
    padding-right: var(--cui-gutter-x, 0.75rem);
    padding-left: var(--cui-gutter-x, 0.75rem);
    margin-right: auto;
    margin-left: auto;
}

/* === Card === */
.card {
    margin-bottom: 1.5rem;
    word-wrap: break-word;
    background-clip: border-box;
    background-color: var(--cui-card-bg);
    border: 1px solid var(--cui-card-border-color);
    border-radius: var(--cui-border-radius);
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}
.card-header {
    background-color: var(--cui-card-cap-bg);
    border-bottom: 1px solid var(--cui-card-border-color);
    margin-bottom: 0;
    padding: var(--cui-card-cap-padding-y) var(--cui-card-cap-padding-x);
}
.card-header:first-child {
    border-radius: calc(var(--cui-border-radius) - 1px) calc(var(--cui-border-radius) - 1px) 0 0;
}
.card-body {
    flex: 1 1 auto;
    padding: var(--cui-card-spacer-y) var(--cui-card-spacer-x);
}
.card-footer {
    background-color: var(--cui-card-cap-bg);
    border-top: 1px solid var(--cui-card-border-color);
    padding: var(--cui-card-cap-padding-y) var(--cui-card-cap-padding-x);
}
.card-footer:last-child {
    border-radius: 0 0 calc(var(--cui-border-radius) - 1px) calc(var(--cui-border-radius) - 1px);
}

/* === Forms & Inputs === */
.form-control, .form-select {
    display: block;
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem; /* 14px */
    font-weight: 400;
    line-height: 1.5;
    color: var(--cui-gray-900);
    background-color: var(--cui-white);
    background-clip: padding-box;
    border: 1px solid var(--cui-gray-400);
    appearance: none;
    border-radius: var(--cui-border-radius-sm);
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.form-control:focus, .form-select:focus {
    border-color: #998fed; /* ���� ��� ������ */
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(var(--cui-primary-rgb), 0.25);
}
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}
.form-label, label.d-inline-block {
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.form-check {
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: 0.125rem;
}
.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: var(--cui-white);
    border: 1px solid rgba(0,0,0,.25);
    appearance: none;
}
.form-check-input[type=checkbox] { border-radius: 0.25em; }
.form-check-input:checked {
    background-color: var(--cui-primary);
    border-color: var(--cui-primary);
}
.form-check-input:checked[type=checkbox] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.form-check-label { margin-bottom: 0; }


/* === Buttons === */
.btn {
    display: inline-block;
    font-weight: 400;
    line-height: 1.5;
    color: var(--cui-gray-900);
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: var(--cui-border-radius-sm);
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem; /* 12px */
    border-radius: var(--cui-border-radius-sm);
}
.btn-info {
    color: #fff;
    background-color: var(--cui-info);
    border-color: var(--cui-info);
}
.btn-info:hover {
    background-color: #2982cc; /* ������ info */
    border-color: #267ac0;
}
.btn-primary {
    color: #fff;
    background-color: var(--cui-primary);
    border-color: var(--cui-primary);
}
.btn-primary:hover {
    background-color: #2819af;
    border-color: #25179c;
}
.btn-warning {
    color: var(--cui-black);
    background-color: var(--cui-warning);
    border-color: var(--cui-warning);
}
.btn-warning:hover {
    color: var(--cui-black);
    background-color: #f7a200;
    border-color: #eba000;
}
.btn-danger {
    color: #fff;
    background-color: var(--cui-danger);
    border-color: var(--cui-danger);
}
.btn-danger:hover {
    background-color: #d93737;
    border-color: #ce3232;
}

.btn-outline-success {
    color: var(--cui-success);
    border-color: var(--cui-success);
}
.btn-outline-success:hover {
    color: #fff;
    background-color: var(--cui-success);
    border-color: var(--cui-success);
}
.btn-outline-danger {
    color: var(--cui-danger);
    border-color: var(--cui-danger);
}
.btn-outline-danger:hover {
    color: #fff;
    background-color: var(--cui-danger);
    border-color: var(--cui-danger);
}

.btn .icon { /* ������ ������ ������ */
    height: 1em;
    width: 1em;
    vertical-align: -0.125em; /* ��������� �������� ��� ������� ������������ */
}

/* === Table === */
.table-base-root .card-body {
    padding: 0; /* ������� ���������� ������� � body, ���� ������� ����� � ��� */
}
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--cui-body-color);
    vertical-align: top;
    border-color: var(--cui-border-color);
}
.table > :not(caption) > * > * {
    padding: 0.75rem; /* ������� ����� */
    background-color: var(--cui-table-bg, transparent);
    border-bottom-width: 1px;
    box-shadow: inset 0 0 0 9999px var(--cui-table-accent-bg, transparent);
}
.table > thead {
    vertical-align: bottom;
}
.table th {
    font-weight: 600;
    color: var(--cui-gray-700);
    text-transform: uppercase;
    font-size: 0.75rem; /* 12px */
    letter-spacing: 0.05em;
}
.table-hover > tbody > tr:hover > * {
    --cui-table-accent-bg: rgba(0,0,0,0.04); /* ������ ��� ��� ��������� */
}
.table-striped > tbody > tr:nth-of-type(odd) > * {
    --cui-table-accent-bg: rgba(0,0,0,0.02); /* ����������� ����� */
}
.table-th .d-flex {
    align-items: center;
}
.table-th .icon {
    margin-left: 0.3rem;
    opacity: 0.5;
    width: 0.8em;
    height: 0.8em;
}
.table-th[data-sort-order="asc"] .icon,
.table-th[data-sort-order="desc"] .icon {
    opacity: 1;
}
.table-th[data-sort-order="desc"] .icon {
    transform: rotate(180deg);
}

/* === Pagination === */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem; /* ������� ��� � card-body */
    border-top: 1px solid var(--cui-border-color);
}
.rc-pagination {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
}
.rc-pagination li {
    margin: 0 2px;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--cui-gray-300);
    border-radius: var(--cui-border-radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--cui-primary);
    transition: background-color 0.2s, color 0.2s;
}
.rc-pagination li:hover {
    background-color: var(--cui-gray-200);
}
.rc-pagination li.rc-pagination-item-active {
    background-color: var(--cui-primary);
    color: var(--cui-white);
    border-color: var(--cui-primary);
}
.rc-pagination li.rc-pagination-disabled {
    color: var(--cui-gray-500);
    cursor: not-allowed;
    border-color: var(--cui-gray-200);
}
.rc-pagination li.rc-pagination-disabled:hover {
    background-color: transparent;
}
.pagination-select {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
}
.pagination-select .custom-select-wrapper {
    position: relative;
    margin-left: 0.5rem;
}
.pagination-select .select-control {
    border: 1px solid var(--cui-gray-300);
    border-radius: var(--cui-border-radius-sm);
    padding: 0.3rem 0.6rem;
    min-width: 60px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.pagination-select .select-single-value {
    margin-right: 0.5rem;
}
.pagination-select .select-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    cursor: pointer;
}

/* ����� ��� �������� */
.filters-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end; /* ����������� �������� �� ������ �������, ���� ��� ������ ������ */
}
.filters-wrapper > div {
    display: flex;
    flex-direction: column;
}
.filters-wrapper .form-label, .filters-wrapper label.d-inline-block {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
    color: var(--cui-gray-700);
}
.filters-wrapper .form-control, .filters-wrapper .select-wrapper {
    font-size: 0.875rem;
}
.filters-amount-wrapper {
    display: flex;
    gap: 0.5rem;
}
.filters-amount-wrapper .filters-amount-select {
    flex-basis: 100px; /* ������������� ������ ��� ������� "������/������" */
    flex-shrink: 0;
}
.filters-amount-wrapper input.form-control {
    flex-grow: 1;
}
.checkbox-wrapper {
    padding-top: 1.2rem; /* ����� ������� ��� �������� �� ������ ������� */
}

/* ����� ��� �������� � �������� (���� ������������ div-based) */
.select-wrapper {
    position: relative;
}
.select-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border: 1px solid var(--cui-gray-400);
    border-radius: var(--cui-border-radius-sm);
    background-color: var(--cui-white);
    cursor: pointer;
    min-height: calc(1.5em + 0.75rem + 2px); /* ������������� .form-control */
}
.select-value-container { flex-grow: 1; }
.select-single-value { color: var(--cui-gray-900); }
.select-placeholder { color: var(--cui-gray-600); }
.select-input-container { display: none; } /* �������� �������� ������, ���� ���������� div ��� ����������� */
.select-indicator-separator { display: none; }
.select-indicator svg { fill: var(--cui-gray-600); }

/* ����� ��� �����-������, ���������� ������� */
.sidebar-narrow .sidebar-nav .nav-name,
.sidebar-narrow .sidebar-nav .nav-group-toggle::after {
    display: none;
}
.sidebar-narrow .sidebar-nav .nav-link {
    justify-content: center;
}
.sidebar-narrow .sidebar-nav .nav-icon {
    margin-right: 0;
    font-size: 1.5rem; /* ����������� ������ � ��������� ���� */
}
.sidebar-narrow {
    width: 4.5rem; /* ������ ���������� �������� */
}
.sidebar-narrow ~ .wrapper {
    padding-left: 4.5rem; /* �������� ������� */
}
html[dir="rtl"] .sidebar-narrow ~ .wrapper {
    padding-left: 0;
    padding-right: 4.5rem;
}
.sidebar-narrow .sidebar-brand-full { display: none !important; }
/* .sidebar-narrow .sidebar-brand-narrow { display: block !important; } - ���� ���� ����� ���� */
.sidebar-narrow .sidebar-toggler::before {
    transform: rotate(-180deg);
}
html[dir="rtl"] .sidebar-narrow .sidebar-toggler::before {
    transform: rotate(0deg);
}

/* ����� ����� ��� ��������� �������, ���� ����� */
.admin-page-section {
    /* ... */
}

/* �������������� ����� ��� �������� ��������, ���� ����������� */
#page-admin-settings .card {
    margin-bottom: 1.5rem;
}
#page-admin-settings .card-header {
    font-weight: 600;
}

/* Badge (���� ����� ��������������) */
.badge {
    display: inline-block;
    padding: .35em .65em;
    font-size: .75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: var(--cui-border-radius);
}
.bg-success { background-color: var(--cui-success) !important; }
.bg-danger { background-color: var(--cui-danger) !important; }
.bg-warning { background-color: var(--cui-warning) !important; color: var(--cui-black) !important; }
.bg-info { background-color: var(--cui-info) !important; }
.bg-secondary { background-color: var(--cui-secondary) !important; }

/* ����� ��� �������� �� �������� "�����" */
.filters-wrapper .form-check.checkbox-wrapper {
    padding-top: 1.8rem; /* ������� ������, ����� ��������� � �������� */
}

/* ������ ��������� ��� �������� ����� - ��������� �������� */
.cashpoints-fee-changes-brand-name {
    font-weight: 500;
}
.cashpoints-fee-changes-brand-project {
    font-size: 0.8em;
    color: var(--cui-gray-600);
}
#fee-changes-table-body .badge.cursor-pointer:hover {
    opacity: 0.8;
}

/* ��� ��������� ������� � ������� "��������" */
.table-base-root .card-header .title-root {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.table-base-root .card-header .title-actions {
    margin-left: auto;
}

/* ��� ������ � ������� ����� (������ - ����� ������) */
.input-with-icons-wrapper {
    position: relative;
}
.input-with-icons-left-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--cui-gray-600);
}
.input-with-icons-left-icon img,
.input-with-icons-left-icon svg {
    width: 16px;
    height: 16px;
}
.input-with-icons-with-left-icon {
    padding-left: 35px !important;
}
.filters-button {
    align-self: flex-end;
    height: calc(1.5em + 0.75rem + 2px);
}

#adminActionLogDetailsJson {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    max-height: 400px; /* Ограничение высоты, если JSON большой */
    overflow: auto;
    white-space: pre-wrap; /* Для переноса длинных строк без разрыва слов */
    word-break: break-all; /* Для очень длинных строк без пробелов */
}
.sidebar-nav .nav-item.active > .nav-link .nav-icon,
.sidebar-nav .nav-group.show > .nav-link .nav-icon { /* Добавил .show для иконки открытой группы */
    color: var(--cui-sidebar-nav-link-active-color); /* Обычно это #fff или переменная CoreUI */
}
/* Если иконки SVG и используется fill, то: */
.sidebar-nav .nav-item.active > .nav-link .nav-icon path,
.sidebar-nav .nav-group.show > .nav-link .nav-icon path {
    fill: var(--cui-sidebar-nav-link-active-color);
}

/* Стили для графика на странице статистики */
.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    padding: 20px;
    border: 1px solid var(--cui-border-color);
    border-radius: var(--cui-border-radius);
    background-color: #fdfdfd;
}

.chart-bar-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
    height: 100%;
    justify-content: flex-end;
}

.chart-bar {
    width: 50%;
    background-color: var(--cui-info);
    transition: height 0.3s ease-out;
    border-radius: 4px 4px 0 0;
    position: relative;
}

.chart-bar:hover {
    opacity: 0.85;
}

.chart-bar-value {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--cui-gray-700);
    margin-bottom: 5px;
}

.chart-bar-label {
    font-size: 0.8rem;
    margin-top: 8px;
    color: var(--cui-gray-800);
    white-space: nowrap;
}

#whitelist-search-results .list-group-item {
    padding: .5rem 1rem;
    font-size: .875rem;
}

#whitelist-search-results .btn {
    padding: .25rem .5rem;
    font-size: .75rem;
}
