.btn-link:hover .bg-primary-subtle {
    transform: scale(1.3);
    transition: transform 0.3s;
}

.btn-link:hover .bg-warning-subtle {
    transform: scale(1.3);
    transition: transform 0.3s;
}

.btn-link:hover .bg-success-subtle {
    transform: scale(1.3);
    transition: transform 0.3s;
}

.hover-scale {
    transition: transform 0.3s;
    /* Плавный переход */
}

.hover-scale:hover {
    transform: scale(1.3);
    /* Увеличение на 30% при наведении */
}

@keyframes jump {
    0% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }

    30% {
        transform: translate3d(0, -20%, 0) scale3d(1.1, 1.1, 1);
    }

    /* Подъем */
    50% {
        transform: translate3d(0, -10%, 0) scale3d(1.2, 0.9, 1);
    }

    /* Пик */
    70% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }

    /* Возврат */
    100% {
        transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
    }

    /* Завершение */
}

.jump {
    transform-origin: 50% 50%;
    animation: jump 0.8s ease-in-out infinite;
    /* Увеличено время анимации и изменена функция */
}

.form-switch {
    padding-left: 0;
}

.form-check {
    display: block;
    margin-bottom: .125rem;
    min-height: 1.5rem;

}

.switchable-block {
    opacity: 1;
    visibility: visible;
    height: auto;
    /* Для корректного перехода */
    transition: opacity 0.3s ease, visibility 0.3s ease, height 0.3s ease;
}

.switchable-block.hidden {
    opacity: 0;
    visibility: hidden;
    height: 0;
    /* Сворачивание высоты */
    overflow: hidden;
    display: none;

}

/* Общий контейнер */


/* Поле ввода */
.suggestions-input {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* Выпадающий список */
.suggestions-suggestions {
    max-height: 150px;
    width: 600px;
    /* Делаем ширину списка равной ширине контейнера */
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #ddd;
    background-color: #fff;
    list-style: none;
    /* Убираем маркеры списка */
    padding: 0;
    /* Убираем отступы */
    margin: 0;
    /* Убираем внешние отступы */
    border-radius: 8px;
    /* Округление углов */
    position: absolute;
    z-index: 9999;
}

/* Обычные элементы в списке */
.suggestions-suggestion {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
}

/* Выделенный (активный) элемент */
.suggestions-selected {
    background-color: rgb(248, 249, 250) !important;
    color: black !important;
    /* Устанавливаем черный цвет текста */
    max-width: 800px;
    max-height: 50px;
}

.bg-dark-back {
    background-color: #1F1B20;
}

.btn-primary {
    --bs-btn-color: #15141a;
    --bs-btn-bg: rgba(26, 88, 187, 1);
    --bs-btn-border-color: rgba(26, 88, 187, 1);
    --bs-btn-hover-color: #15141a;
    --bs-btn-hover-bg: #268fff;
    --bs-btn-hover-border-color: #1a88ff;
    --bs-btn-focus-shadow-rgb: 3, 108, 221;
    --bs-btn-active-color: #15141a;
    --bs-btn-active-bg: #3395ff;
    --bs-btn-active-border-color: #1a88ff;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(21, 20, 26, .125);
    --bs-btn-disabled-color: #15141a;
    --bs-btn-disabled-bg: rgba(26, 88, 187, 1);
    --bs-btn-disabled-border-color: rgba(26, 88, 187, 1)
}


.widget {
    position: relative;
}

.left-panel .temp {
    font-size: 81px;
    color: rgba(0, 0, 0, 0.9);
    font-weight: 100;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel {
    display: inline-block;
}

.right-panel {
    position: absolute;
    float: right;
    top: 0;
    margin-top: 35px;
    padding-left: 10px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.7);
}

.range-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
}

.range-container input[type="range"] {
    margin-bottom: 8px;
    align-self: flex-start;
}

.range-container output {
    font-size: 1rem;
    color: #333;
    align-self: flex-start;
}

.blurred {
    filter: blur(2px);
    opacity: 0.6;
}

.bonus-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    text-align: center;
    height: 100%;
    border: 1px solid #eaeaea;
}

.bonus-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    border-color: #007bff40;
}

.bonus-card-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.bonus-card-description {
    color: #666;
    font-size: 0.95rem;
}

.custom-select-language {
    position: relative;
    display: inline-block;
    cursor: pointer;
    min-width: 120px;
}

.selected-option-language {
    padding: 0.375rem 1rem;
    background: #f8f9fa;
    border-radius: 50rem;
    transition: all 0.2s ease;
}

.select-arrow-language {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    color: #6c757d;
}

.select-options-language {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    margin-top: 0.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
}

.option-language {
    padding: 0.5rem 1rem;
}

.option-language:hover {
    background-color: #d3d4d5;
    border-color: #c6c7c8;
}

.custom-select-language:hover .selected-option-language {
    background-color: #d3d4d5;
    border-color: #c6c7c8;
}

.custom-select-language.active .select-options-language {
    display: block;
}

.time-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    height: 550px;
    border-radius: 12px;
    overflow: hidden;
    background-clip: padding-box;
}

.time-table thead th {
    background-color: #f8fafc;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 8px 4px;
    border-bottom: 1px solid #e2e8f0;
}

.time-table tbody td:first-child {
    background-color: #f8fafc;
    font-weight: 600;
    position: sticky;
    left: 0;
    z-index: 5;
    border-right: 1px solid #e2e8f0;
}

.time-table th,
.time-table td {
    padding: 6px 4px;
    line-height: 1.2;
    white-space: nowrap;
    vertical-align: middle;
}

/* Закругленные углы */
.time-table thead tr:first-child th:first-child {
    border-top-left-radius: 12px;
}

.time-table thead tr:first-child th:last-child {
    border-top-right-radius: 12px;
}

.time-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;
}

.time-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;
}

/* Цвета ячеек */
.time-table td[style*="background-color: #ffffff"],
.time-table td[style*="background-color: #d7d7d7"] {
    color: #000000 !important;
}

.time-table td[style*="background-color: #a52019"],
.time-table td[style*="background-color: #310062"],
.time-table td[style*="background-color: #6600ff"],
.time-table td[style*="background-color: #71bc78"] {
    color: #ffffff !important;
}

/* Мобильная адаптация */
@media (max-width: 1199px) {
    .time-table {
        display: block;
        height: auto !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .time-table thead,
    .time-table tbody {
        display: table;
        width: 100%;
    }

    .widget-content {
        height: auto;
        padding: 8px;
    }

    .time-table tbody td:first-child {
        position: static;
        border-right: none;
    }

    .time-table th,
    .time-table td {
        padding: 12px 8px;
        font-size: 0.9rem;
        min-width: 60px;
        height: 36px !important;
    }
}

/* Скролл */
[data-controller="drag-scroll"] {
    scroll-behavior: smooth;
}

[data-controller="drag-scroll"]::-webkit-scrollbar {
    height: 6px;
}

[data-controller="drag-scroll"]::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

/* Связанные объекты (редактирование клиента */
.client-card {
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.client-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.action-card {
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    height: 100%;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.card-header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px 16px 0 0;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.info-item:last-child {
    border-bottom: none;
}

.icon-container {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-box {
    padding: 10px;
}

.stat-value {
    font-size: 28px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.stat-label {
    font-size: 14px !important;
    color: #6c757d !important;
    margin-top: 5px !important;
}

.client-btn {
    align-items: center;
    border-radius: .2rem;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    font-weight: 400;
    outline: 0 !important;
}

.client-btn-hover-effect {
    border-radius: 10px;
    padding: 12px 20px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
}

.client-btn-hover-effect:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.client-btn-hover-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.client-btn-hover-effect:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(50, 50);
        opacity: 0;
    }
}

.client-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #007bff !important;
    color: #fff !important;
}

.client-btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff !important;

}

.client-btn-info {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff !important;

}

.client-btn-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    color: #212529;

}

.client-btn-warning:hover {
    color: #212529;
}

.client-stats-container {
    background: #f8f9fa !important;
    border-radius: 12px !important;
    padding: 15px !important;
}

@media (max-width: 768px) {

    .stat-value {
        font-size: 24px;
    }

    .client-btn-hover-effect {
        padding: 10px 16px;
    }
}