.sidebar,
.material-search input,
.subtext-result-search,
.after-form-tips {
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

.sidebar {
    background-color: #cedcea;
    color: #333;
    width: 280px;
    border-right: 1px solid #dbe3ea;
}

.sidebar-nav .nav-group .nav-link span {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    word-break: break-word;
    display: inline-block;
    padding-right: 5px;
    line-height: 1.2;
}

.sidebar-nav .nav-link {
    padding: 4px;
}

.sidebar-nav .nav-title {
    color: black !important;
}

@media (min-width: 768px) {
    .sidebar,
    .sidebar {
        width: 30% !important;
    }

    .sidebar.hide,
    .sidebar.hide .sidebar-nav {
        width: 60px !important;
        overflow: hidden;
    }
}

.sidebar-nav .nav-group-toggle::after {
    content: '';
    display: inline-block;
    width: 0.75rem;  /* или 12px */
    height: 0.75rem;
    margin-left: auto;
    background-image: var(--cui-sidebar-nav-group-indicator);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    flex-shrink: 0;
    transform: rotate(0deg);
    transition: transform 0.15s;
    align-self: center;
}
.sidebar-nav .nav-group-toggle::after {
    filter: invert(0%) sepia(100%) saturate(0%) hue-rotate(0deg) brightness(0) contrast(100%);
}

.nav-link.nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar:not(.sidebar-end)~* {
    --cui-sidebar-occupy-start: 30%;
    @media (max-width: 767.98px) {
        --cui-sidebar-occupy-start: 0.5rem !important;
    }
}

.sidebar.hide:not(.sidebar-end)~* {
    --cui-sidebar-occupy-start: 1rem;
}

.custom-greeting {
    font-family: 'Times New Roman', serif;
    font-size: 1rem;
    text-align: center;

    p {
        margin-bottom: 0 !important;
    }
}

.sidebar .nav-link,
.sidebar .nav-link span {
    color: #000 !important;
}

.sidebar .nav-link i {
    color: #000 !important;
}

/* --- Подменю --- */
.sidebar-nav .nav-group.show {
    background: #cedcea;;
}

.sidebar .nav-dropdown-items {
    background-color: #f3f9fd !important;
}

.sidebar .nav-dropdown-items .nav-link {
    color: #000 !important;
    background: #f5faff;
    padding-left: 35px;
}

/* Выбранный пункт — выделить другим фоном*/
.sidebar .nav-link.active {
    font-weight: bold;
}

.btn-primary {
    background-color: rgba(0, 0, 21, 0.2) !important;
    border-color: rgba(0, 0, 21, 0.04) !important;
    color: black !important;
}

.btn-primary:hover {
    background-color: #9fb7cf !important;
    border-color: #9fb7cf !important;
}

.btn-outline-primary {
    color: #bad9ff !important;
    border-color: #bad9ff !important;
}

.btn-outline-primary:hover {
    background-color: #bad9ff !important;
    color: #fff !important;
}

#crudTable.table {
    border: 0.5px solid #ccc;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
}

#crudTable.table td,
#crudTable.table th {
    border: 0.5px solid #ccc !important;
    vertical-align: middle;
    text-align: left;
}

#crudTable.table thead th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.card-table {
    box-shadow: none !important;
    border-radius: 0 !important;
}

#crudTable.table thead th {
    background-color: #f5f5f5;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
}

#crudTable thead th:first-child {
    display: table-cell !important;
}

.btn:disabled {
    opacity: 0.2 !important;
    pointer-events: none !important;
    cursor: not-allowed !important;
}

.ck-content p {
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}

.description img,
.description figure img {
    max-width: 100%;
    height: auto;
}

.nav-group.show > .nav-link,
.nav-group.show .nav-dropdown-items .nav-group .nav-link {
    background: var(--dropdown-open-bg) !important;
}

.nav-group.show .serie-color {
    background: transparent !important;
}

.serie-color {
    width: 35px;
    height: 6px;
    filter: saturate(6) brightness(0.85);
}

.material-search input,
.subtext-result-search,
.after-form-tips {
    font-size: 0.9rem;
}

.material-search input:focus {
    box-shadow: none;
}
