/* inter-300 - cyrillic_latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/inter-v20-cyrillic_latin-300.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-regular - cyrillic_latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/inter-v20-cyrillic_latin-regular.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* inter-600 - cyrillic_latin */
@font-face {
    font-display: swap;
    /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/inter-v20-cyrillic_latin-600.woff2') format('woff2');
    /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

body {
    font-family: 'Inter', sans-serif;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Скроллбар для красоты */
.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Базовое состояние */
.child-container {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition:
        max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.3s ease,
        margin 0.3s ease;
    pointer-events: none;
}

/* Состояние при раскрытии */
.child-container.active {
    max-height: 1000px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 4px;
    margin-bottom: 12px;
}

.child-container>div {
    overflow: hidden;
}

.toggle-btn svg {
    transition: transform 0.2s ease-in-out;
}

.rotate-90 {
    transform: rotate(90deg) !important;
}

/* Эффект при наведении на элемент */
.collapsible-item .flex {
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.collapsible-item .flex:active {
    transform: scale(0.98);
    /* Легкое нажатие */
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out forwards;
}

.highlight {
    background-color: yellow;
    font-weight: bold;
    border-radius: 2px;
    padding: 0 2px;
}

.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px;
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    /* rounded-2xl */
    transition: all 0.2s ease;
    gap: 12px;
}

.custom-select-trigger span {
    font-weight: 500;
    font-size: 14px;
    color: #475569;
    line-height: 1.4;
    text-align: left;
    white-space: normal;
    /* РАЗРЕШАЕМ ПЕРЕНОС */
    word-break: break-word;
}

.custom-select-trigger:hover {
    border-color: #3b82f6;
    background: #ffffff;
}

.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    min-width: 260px;
    background: #ffffff;
    border-radius: 1.5rem;
    /* rounded-3xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    z-index: 9999;
    overflow: hidden;
    /* Чтобы шапка не вылезала за скругления */
}

.custom-options-content {
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
}

/* Состояния открытия */
.custom-select-wrapper.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-select-wrapper.open .arrow {
    transform: rotate(180deg);
}

/* Умное позиционирование (фикс вылета) */
.custom-select-wrapper.drop-up .custom-options {
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateY(12px);
}

.custom-select-wrapper.align-right .custom-options {
    left: auto;
    right: 0;
}

/* Пункты списка */
.custom-option {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    line-height: 1.4;
    transition: all 0.15s;
    border-bottom: 1px solid #f8fafc;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: #eff6ff;
    color: #2563eb;
    padding-left: 25px;
    /* Небольшой сдвиг при наведении */
}

.custom-option.selected {
    background: #f1f5f9;
    color: #2563eb;
    border-left: 4px solid #2563eb;
}

#pc-dt-simple th:last-child,
#pc-dt-simple td:last-child {
    text-align: right !important;
}