/* monitoring.css */
/* ПОЛНОЕ ОТКЛЮЧЕНИЕ ВСЕХ HOVER ЭФФЕКТОВ BOOTSTRAP */
.monitoring-table {
    --bs-table-hover-bg: transparent !important;
    --bs-table-hover-color: inherit !important;
    --bs-table-accent-bg: transparent !important;
    --bs-table-striped-bg: transparent !important;
    --bs-table-active-bg: transparent !important;
}

.monitoring-table tbody tr {
    background: inherit !important;
}

.monitoring-table tbody tr:hover {
    background: inherit !important;
    box-shadow: none !important;
}

.monitoring-table tbody tr:hover td {
    background: inherit !important;
    box-shadow: none !important;
    opacity: 1 !important;
    color: inherit !important;
}

/* Явное отключение всех эффектов */
.monitoring-table * {
    transition: none !important;
    animation: none !important;
}

/* Убираем любые hover эффекты */
.monitoring-table tr:hover,
.monitoring-table tr:focus,
.monitoring-table tr:active {
    background: inherit !important;
    transform: none !important;
}

/* Отключаем курсор изменения */
.monitoring-table {
    cursor: default !important;
}

.monitoring-table tr {
    cursor: default !important;
}

.monitoring-table td {
    cursor: default !important;
}

/* ===== БАЗОВЫЕ СТИЛИ ДЛЯ ВСЕХ ЯЧЕЕК ===== */
.monitoring-table tbody tr:nth-child(odd) td:not(.fixed-column) {
    background: #cbd0d4!important;
}

.monitoring-table tbody tr:nth-child(even) td:not(.fixed-column) {
    /* background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important; */
    background: #9d9fa0!important;
}


.fixed-column {
    color: #eef0f1; /* Темно-сине-серый */
}

/* ===== ФИКСИРОВАННАЯ КОЛОНКА - СТИКЕР ===== */
.monitoring-table .fixed-column {
    position: sticky;
    left: 0;
    z-index: 20;
    min-width: 200px;
    /* background: linear-gradient(135deg, #fafafa 0%, #f0f2f4 100%) !important; */
        background: linear-gradient(135deg, #01080f 0%, #754701 100%) !important;
    color: #ffd900 !important;
    border: 2px solid #dee2e6;
    /* border-left: 3px solid #6c757d; */
    border-radius: 0 0 24px 24px !important;
    /* box-shadow: 
        4px 0 8px rgba(0, 0, 0, 0.15),
        2px 0 4px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.0) !important;  */
    box-shadow: 
    4px 0 8px rgba(0, 0, 0, 0.4),
    2px 0 4px rgba(0, 0, 0, 0.4) !important;

    margin: 4px 0;
    padding: 14px 18px !important;
    font-weight: 700;
    display: flex;
    align-items: center;
    min-height: 64px;
}

/* Четные строки - фиксированная колонка */
.monitoring-table tbody tr:nth-child(even) .fixed-column {
    background: linear-gradient(135deg, #01080f 0%, #754701 100%) !important;
    color: #ffd900 !important;
    /* border-left: 3px solid #4a5568; */
}

/* ЯВНО УКАЗЫВАЕМ ФОН ДЛЯ HOVER СОСТОЯНИЯ С ОСВЕТЛЕНИЕМ Активная-нечетная*/
.monitoring-table tr:hover .fixed-column {
    background: linear-gradient(135deg, #683832 0%, #7c571f 100%) !important;
    color: #ffec80 !important;
    opacity: 1 !important;
    box-shadow: 
        4px 0 8px rgba(0, 0, 0, 0.4),
        2px 0 4px rgba(0, 0, 0, 0.4)!important;

}
        /* inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05)  */
/* И для четных строк тоже явно указываем с осветлением Активная-четная*/
.monitoring-table tbody tr:nth-child(even):hover .fixed-column {
    background: linear-gradient(135deg, #683832 0%, #7c571f 100%) !important;
     color: #ffec80 !important;
    opacity: 1 !important;
    box-shadow: 
        8px 0 8px rgba(0, 0, 0, 0.4),
        4px 0 4px rgba(0, 0, 0, 0.4)!important;

}
        /* inset 0 2px 4px rgba(255, 255, 255, 0.9),
        inset 0 -2px 4px rgba(0, 0, 0, 0.05)  */
/* ===== ОСНОВНЫЕ СТИЛИ ТАБЛИЦЫ ===== */
.monitoring-wrapper {
    max-height: 70vh;
    overflow: auto;
    position: relative;
    background: white;
    border-radius: 8px;
}

.monitoring-table {
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-bottom: 0;
}

.monitoring-table th,
.monitoring-table td {
    border: 1px solid #dee2e6;
    padding: 12px 8px;
    vertical-align: middle;
}

/* ===== ФИКСИРОВАННЫЕ ЗАГОЛОВКИ ВРЕМЕННЫХ ИНТЕРВАЛОВ ===== */
.monitoring-table thead {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(5px);
}

.monitoring-table thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    z-index: 101;
    border-bottom: 2px solid #495057 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    will-change: transform;
    backface-visibility: hidden;
}

.monitoring-table thead .fixed-column {
    z-index: 102 !important;
    left: 0;
    background: linear-gradient(135deg, #2a3b4d, #324457) !important;
}

.monitoring-table tbody .fixed-column {
    z-index: 51 !important;
    left: 0;
}

.monitoring-table thead th.time-header {
    position: sticky;
    top: 0;
    z-index: 101;
}

.monitoring-table thead th.today-current-interval {
    z-index: 103 !important;
}

/* Стили для текущего интервала в заголовке */
.monitoring-table thead th.today-current-interval {
    transform: scale(1.08) translateZ(0) !important;
    border-top: 3px solid #ffffff !important;
    border-bottom: 3px solid #ffffff !important;
    border-left: 1px solid #495057 !important;
    border-right: 1px solid #495057 !important;
    z-index: 25 !important;
    position: relative !important;
    box-shadow: 
        0 4px 12px rgba(255, 193, 7, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: none !important;
    background: linear-gradient(135deg, #ffedb3, #ffdf7e) !important;
    color: #000000 !important;
    font-weight: bold !important;
}

/* HOVER СТИЛИ ДЛЯ ЗАГОЛОВКА ТАБЛИЦЫ */
.monitoring-table thead tr:hover .fixed-column {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    opacity: 1 !important;
    box-shadow: 
        4px 0 8px rgba(0, 0, 0, 0.15),
        2px 0 4px rgba(0, 0, 0, 0.1),
        inset 0 2px 4px rgba(255, 255, 255, 0.3),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2) !important;
    color: white !important;
}

/* ===== НЕАКТИВНЫЕ ИНТЕРВАЛЫ ===== */
.monitoring-table tbody tr td.interval-inactive {
    background: repeating-linear-gradient(
        135deg,
        rgba(240, 241, 242, 0.7),
        rgba(240, 241, 242, 0.7) 2px,
        rgba(84, 91, 98, 0.4) 2px,
        rgba(84, 91, 98, 0.4) 4px
    ) !important;
    opacity: 0.8 !important;
    box-shadow: none !important;
    pointer-events: auto !important;
}

.monitoring-table tbody tr:nth-child(odd) td.interval-inactive:not(.fixed-column),
.monitoring-table tbody tr:nth-child(even) td.interval-inactive:not(.fixed-column) {
    background: repeating-linear-gradient(
        135deg,
        rgba(240, 241, 242, 0.7),
        rgba(240, 241, 242, 0.7) 2px,
        rgba(84, 91, 98, 0.4) 2px,
        rgba(84, 91, 98, 0.4) 4px
    ) !important;
}

.monitoring-table td.interval-inactive.today-past-interval-cell {
    background: repeating-linear-gradient(
        135deg,
        rgba(240, 241, 242, 0.7),
        rgba(240, 241, 242, 0.7) 2px,
        rgba(84, 91, 98, 0.4) 2px,
        rgba(84, 91, 98, 0.4) 4px
    ) !important;
    opacity: 0.8 !important;
}

.monitoring-table td.interval-inactive .badge {
    opacity: 0.9 !important;
    background-color: rgba(84, 91, 98, 0.9) !important;
    color: white !important;
}

/* ===== СТИЛИ ДЛЯ РАЗНЫХ ТИПОВ ИНТЕРВАЛОВ ===== */
.today-past-interval {
    opacity: 0.7;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef) !important;
    color: #6c757d !important;
}

.today-current-interval {
    background: linear-gradient(135deg, #ffc107, #ff9800) !important;
    color: #000 !important;
    font-weight: bold;
}

.today-future-interval {
    background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
}

.today-past-interval-cell {
    background: #f8f9fa !important;
    opacity: 0.7;
}

.today-current-interval-cell {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
    border: 2px solid #ffc107 !important;
}

.today-future-interval-cell {
    background: linear-gradient(135deg, #f8fff9, #e8f5e8) !important;
}

/* ===== СТИЛИ ДЛЯ БЕЙДЖЕЙ СТАТУСОВ ===== */
.monitoring-table td.text-center .d-flex .badge {
    font-size: 12px !important;
    padding: 6px 8px !important;
    min-width: 30px !important;
    height: 28px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
}

.badge-status-pending {
    background-color: white !important;
    border: 2px solid #6c757d !important;
    color: #6c757d !important;
}

.badge-status-confirmed {
    background-color: white !important;
    border: 2px solid #fd7e14 !important;
    color: #fd7e14 !important;
}

.badge-status-pay-first {
    background-color: #198754 !important;
    border: 2px solid #198754 !important;
    color: white !important;
}

.badge-status-pay-middle {
    background-color: #ffc107 !important;
    border: 2px solid #ffc107 !important;
    color: black !important;
}

.badge-status-pay-last {
    background-color: #dc3545 !important;
    border: 2px solid #dc3545 !important;
    color: white !important;
}

.badge-status-uses-first {
    background-color: #198754 !important;
    border: 3px solid #28a745 !important;
    color: white !important;
}

.badge-status-uses-middle {
    background-color: #ffc107 !important;
    border: 3px solid #28a745 !important;
    color: black !important;
}

.badge-status-uses-last {
    background-color: #dc3545 !important;
    border: 3px solid #28a745 !important;
    color: white !important;
}

/* ===== ВЫРАВНИВАНИЕ ПО ВЕРХНЕМУ КРАЮ ===== */
.monitoring-table td.text-center {
    vertical-align: top !important;
}

.monitoring-table td {
    min-height: 60px;
    padding-top: 8px !important;
}

.monitoring-table td .d-flex {
    align-items: flex-start !important;
    min-height: 40px;
}

/* ===== СТИЛИ ДЛЯ ТЕКУЩЕГО ИНТЕРВАЛА ===== */
.monitoring-table td.today-current-interval-cell {
    border-top: 3px solid #ffffff !important;
    border-bottom: 3px solid #ffffff !important;
    border-left: 1px solid #dee2e6 !important;
    border-right: 1px solid #dee2e6 !important;
    z-index: 15 !important;
    position: relative !important;
    box-shadow: 
        0 4px 12px rgba(255, 193, 7, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.1) !important;
    transition: none !important;
    background: linear-gradient(135deg, #ffedb3, #ffdf7e) !important;
}

.monitoring-table tbody tr:hover td.today-current-interval-cell {
    box-shadow: 
        0 4px 12px rgba(255, 193, 7, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.1) !important;
    opacity: 1 !important;
    background: linear-gradient(135deg, #ffedb3, #ffdf7e) !important;
}

/* АБСОЛЮТНОЕ ОТКЛЮЧЕНИЕ BOOTSTRAP EFFECTS */
.monitoring-table tbody tr td {
    box-shadow: none !important;
    background: inherit !important;
    opacity: 1 !important;
    color: inherit !important;
    transition: none !important;
    animation: none !important;
    pointer-events: auto !important;
}

.monitoring-table tbody tr:hover td,
.monitoring-table tbody tr:focus td,
.monitoring-table tbody tr:active td {
    box-shadow: none !important;
    background: inherit !important;
    opacity: 1 !important;
    color: inherit !important;
    transform: none !important;
}

.table > :not(caption) > * > * {
    box-shadow: none !important;
}

.monitoring-table tr:hover .fixed-column {
    opacity: 1 !important;
}

.monitoring-table tbody tr:hover td {
    opacity: 1 !important;
}

/* СТИЛЬ ДЛЯ ЧАСОВ - ЗАМЕТНЫЙ И СТИЛЬНЫЙ */
#localTimeDisplay {
    background: linear-gradient(135deg, #2c3e50, #34495e) !important;
    color: white !important;
    border: 2px solid #1abc9c !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 30px !important;
    padding: 8px 16px !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
    min-width: 180px !important;
    text-align: center !important;
}

/* Эффект при hover (опционально) */
#localTimeDisplay:hover {
    background: linear-gradient(135deg, #34495e, #2c3e50) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25) !important;
}

/* Для disabled состояния сохраняем стиль */
#localTimeDisplay.disabled {
    opacity: 1 !important;
    cursor: default !important;
}

/* СТИЛИ ДЛЯ КАРТОЧКИ ТИКЕТА - ВЫЕЗД СПРАВА */
.ticket-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    display: none;
}

.ticket-card {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1050;
    transition: right 0.3s ease-in-out;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.ticket-card.show {
    right: 0;
}

.ticket-card-header {
    padding: 20px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    flex-shrink: 0;
}

.ticket-card-body {
    padding: 20px;
    flex-grow: 1;
    overflow-y: auto;
}

.ticket-card-footer {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    background: #f8f9fa;
    flex-shrink: 0;
}

.ticket-field {
    margin-bottom: 15px;
}

.ticket-field label {
    font-weight: 600;
    color: #495057;
    display: block;
    margin-bottom: 5px;
}

.ticket-field span {
    display: block;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    min-height: 38px;
}

/* Подсветка одинаковых ticket_id */
.badge-highlight {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.8);
    z-index: 5;
    position: relative;
}

/* Адаптивность */
@media (max-width: 768px) {
    .monitoring-table thead th {
        font-size: 11px;
        padding: 8px 4px;
    }
    
    .monitoring-wrapper {
        max-height: 60vh;
    }
    
    .monitoring-table .fixed-column {
        min-width: 150px;
        padding: 10px 12px !important;
    }
    
    .ticket-card {
        width: 100%;
        right: -100%;
    }
}

/* СТИЛИ ДЛЯ ПОЛОСЫ ПРОКРУТКИ */
.monitoring-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.monitoring-wrapper::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.monitoring-wrapper::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.monitoring-wrapper::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}









/* ВЫСОКАЯ СПЕЦИФИЧНОСТЬ ДЛЯ ВИДИМОСТИ БЕЙДЖЕЙ */
.monitoring-table td.text-center .d-flex .badge.badge-status-pay,
.monitoring-table td.text-center .d-flex .badge.badge-status-uses {
    background-color: initial !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* СТИЛИ ДЛЯ PAY */
.monitoring-table td.text-center .d-flex .badge.badge-status-pay {
    background-color: #ffc107 !important;
    border: 2px solid #ffc107 !important;
    color: black !important;
}

/* .monitoring-table td.text-center .d-flex .badge.badge-status-pay.badge-first {
    background-color: #198754 !important;
    border-color: #198754 !important;
    color: white !important;
} 
   .monitoring-table td.text-center .d-flex .badge.badge-status-pay.badge-middle {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    color: black !important;
}

.monitoring-table td.text-center .d-flex .badge.badge-status-pay.badge-last {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
} */

/* СТИЛИ ДЛЯ USES */
.monitoring-table td.text-center .d-flex .badge.badge-status-uses {
    background-color: #28a745 !important;
    border: 2px solid #28a745 !important;
    color: white !important;
}

/* .monitoring-table td.text-center .d-flex .badge.badge-status-uses.badge-first {
    background-color: #198754 !important;
    border: 3px solid #28a745 !important;
    color: white !important;
}

.monitoring-table td.text-center .d-flex .badge.badge-status-uses.badge-middle {
    background-color: #ffc107 !important;
    border: 3px solid #28a745 !important;
    color: black !important;
}

.monitoring-table td.text-center .d-flex .badge.badge-status-uses.badge-last {
    background-color: #dc3545 !important;
    border: 3px solid #28a745 !important;
    color: white !important;
} */

/* ЯВНОЕ ОТКЛЮЧЕНИЕ ПРОЗРАЧНОСТИ ДЛЯ ВСЕХ БЕЙДЖЕЙ */
.monitoring-table td.text-center .d-flex .badge {
    background-color: initial !important;
    opacity: 1 !important;
    visibility: visible !important;
}








/* УЛУЧШЕННЫЕ СТИЛИ КАРТОЧКИ ТИКЕТА */
.ticket-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1040;
    display: none;
    animation: fadeIn 0.3s ease;
}

.ticket-card {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100vh;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.25);
    z-index: 1050;
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e9ecef;
}

.ticket-card.show {
    right: 0;
}

.ticket-card-header {
    padding: 25px;
    border-bottom: 1px solid #e9ecef;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.ticket-card-header h5 {
    margin: 0;
    font-weight: 600;
    font-size: 1.4rem;
}

.ticket-card-body {
    padding: 25px;
    flex-grow: 1;
    overflow-y: auto;
    background: white;
}

.ticket-card-footer {
    padding: 20px 25px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    flex-shrink: 0;
}

.ticket-field {
    margin-bottom: 20px;
    position: relative;
}

.ticket-field label {
    font-weight: 600;
    color: #2c3e50;
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ticket-field span {
    display: block;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c757d;
    font-size: 1rem;
    min-height: 44px;
    transition: all 0.2s ease;
}

.ticket-field span:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

/* Специфичные стили для разных типов полей */
.ticket-field[data-field-type="status"] span {
    border-left-color: #17a2b8;
    font-weight: 600;
}

.ticket-field[data-field-type="client"] span {
    border-left-color: #28a745;
}

.ticket-field[data-field-type="bathhouse"] span {
    border-left-color: #fd7e14;
}

.ticket-field[data-field-type="time"] span {
    border-left-color: #6f42c1;
    font-family: 'Courier New', monospace;
}

.ticket-field[data-field-type="price"] span {
    border-left-color: #20c997;
    font-weight: 600;
    color: #198754;
}

/* Стили для select и textarea */
#ticketStatus {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.2s ease;
}

#ticketStatus:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

#ticketComment {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
}

#ticketComment:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

/* Кнопки */
#saveTicket {
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

#saveTicket:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

#closeTicketCardBtn {
    padding: 12px 24px;
    background: #6c757d;
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.2s ease;
}

#closeTicketCardBtn:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .ticket-card {
        width: 100%;
        right: -100%;
    }
    
    .ticket-card-header {
        padding: 20px;
    }
    
    .ticket-card-body {
        padding: 20px;
    }
}







/* Добавить в monitoring.css */
#deleteTicket {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    transition: all 0.2s ease;
}

#deleteTicket:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

/* Стили для модального окна удаления */
#deleteConfirmModal .modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

#deleteConfirmModal .alert-warning {
    border-left: 4px solid #ffc107;
}

/* Стили для модального окна подтверждения удаления */
#deleteConfirmModal .modal-dialog {
    z-index: 1060; /* Выше чем карточка тикета (1050) */
}

#deleteConfirmModal .modal-backdrop {
    z-index: 1055; /* Между карточкой и модальным окном */
}

/* Или более надежное решение - увеличить z-index для всех bootstrap модальных окон */
.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1055 !important;
}

/* Дополнительно: убедитесь, что карточка тикета не перекрывает модальные окна */
.ticket-card {
    z-index: 1040; /* Уменьшаем z-index карточки */
}

.ticket-overlay {
    z-index: 1030; /* Уменьшаем z-index затемнения */
}

/* Стили для модального окна удаления
/* Добавьте в CSS */
.custom-delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 1060;
    justify-content: center;
    align-items: center;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.custom-modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    z-index: 1070;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.custom-modal-header {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-modal-body {
    padding: 20px;
}

.custom-modal-footer {
    padding: 20px;
    border-top: 1px solid #dee2e6;
    text-align: right;
}

.custom-alert-warning {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 15px 0;
    border-radius: 4px;
}

.custom-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}






/* .user-booking-group {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 2px;
    padding: 3px 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-booking-group::before {
    content: '👤';
    margin-right: 4px;
    font-size: 12px;
    opacity: 0.7;
}

.user-booking-group:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #90caf9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.user-booking-group .badge {
    margin: 1px;
    transition: all 0.2s ease;
}

.user-booking-group .badge:hover {
    transform: scale(1.05);
    z-index: 2;
} */



.user-booking-group {
    position: relative;
    display: block;
    margin: 4px 0;
    padding: 6px 8px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-booking-group::before {
    content: '👤';
    margin-right: 6px;
    font-size: 12px;
    opacity: 0.7;
}

.user-booking-group:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #90caf9;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.user-booking-group .badge {
    display: inline-block;
    margin: 2px;
    transition: all 0.2s ease;
}

.user-booking-group .badge:hover {
    transform: scale(1.05);
    z-index: 2;
}

/* Обновляем контейнер для вертикального расположения */
.d-flex.flex-wrap.gap-1.justify-content-center {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px !important;
}




#userCard {
    z-index: 1080;
    position: fixed;
    top: 0;
    right: -400px; /* Скрыто за правым краем */
    width: 380px;
    height: 100vh;
    border-radius: 0;
    transition: right 0.3s ease;
    overflow-y: auto;
}

#userCard.show {
    right: 0; /* Показываем */
}

#userOverlay {
    z-index: 1070;
}





.list-group-item {
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    border-left-color: #007bff;
}

.ticket-status-select {
    font-size: 0.75rem;
    padding: 0.2rem 0.4rem;
    height: 24px;
    display: inline-block;
}

.list-group-item {
    padding: 0.5rem 0.75rem;
}

.badge {
    font-size: 0.7rem;
}








.selected-interval {
    border: 3px solid #007bff !important;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25) !important;
    position: relative;
    z-index: 5;
}

.selected-interval::after {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 2px solid #007bff;
    border-radius: 4px;
    pointer-events: none;
}






/* .add-booking-btn {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    border: 2px solid white;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
}

.add-booking-btn:hover {
    background: #218838;
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
} */



.add-booking-btn {
    position: absolute;
    top: 5px;  /* ← ИЗМЕНИЛИ С -15px на 5px */
    right: 5px; /* ← ИЗМЕНИЛИ С -15px на 5px */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    border: 2px solid white;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.add-booking-btn:hover {
    background: #218838;
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
}

/* Добавляем отступ для ячеек, чтобы кнопка не выходила за границы */
.monitoring-table td[data-time-slot] {
    position: relative;
    padding: 8px 4px !important; /* ← ДОБАВИЛИ ОТСТУП */
    min-height: 40px;
}






/* Делаем прошедшие интервалы некликабельными */
.today-past-interval-cell,
.past-date-interval-cell {
    cursor: not-allowed !important;
    opacity: 0.7;
}

.today-past-interval-cell:hover,
.past-date-interval-cell:hover {
    background-color: inherit !important;
}







/* ШИРОКИЕ стилизованные скроллбары для таблицы мониторинга */
.monitoring-wrapper::-webkit-scrollbar {
    width: 20px;    /* ШИРИНА вертикального скроллбара */
    height: 20px;   /* ВЫСОТА горизонтального скроллбара */
}

.monitoring-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 12px;
    border: 4px solid transparent;
    background-clip: content-box;
}

.monitoring-wrapper::-webkit-scrollbar-thumb {
    background: #8a8a8a;
    border-radius: 12px;
    border: 5px solid #f1f1f1; /* Увеличиваем отступ */
    min-height: 40px; /* Минимальная высота ползунка */
}

.monitoring-wrapper::-webkit-scrollbar-thumb:hover {
    background: #6b6b6b;
    border: 4px solid #f1f1f1; /* Уменьшаем отступ при наведении */
}

.monitoring-wrapper::-webkit-scrollbar-thumb:active {
    background: #5a5a5a;
    border: 3px solid #f1f1f1; /* Еще меньше отступ при активации */
}

.monitoring-wrapper::-webkit-scrollbar-corner {
    background: #f1f1f1;
}

/* Увеличиваем область наведения */
.monitoring-wrapper::-webkit-scrollbar-thumb:vertical {
    min-height: 60px;
}

.monitoring-wrapper::-webkit-scrollbar-thumb:horizontal {
    min-width: 60px;
}

/* Для Firefox - увеличиваем ширину */
/* .monitoring-wrapper {
    scrollbar-width: auto; 
    scrollbar-color: #8a8a8a #f1f1f1;
} */

/* Дополнительные стили для контейнера */
.monitoring-wrapper {
    border-radius: 10px;
    padding: 5px;
    margin: 2px;
}

/* Увеличиваем отступы при наведении на весь контейнер */
.monitoring-wrapper:hover::-webkit-scrollbar-thumb {
    border: 4px solid #f1f1f1;
}

/* Альтернативный вариант с еще БОЛЬШЕЙ шириной */
.monitoring-wrapper.wide-scrollbars::-webkit-scrollbar {
    width: 24px;
    height: 24px;
}

.monitoring-wrapper.wide-scrollbars::-webkit-scrollbar-thumb {
    border: 6px solid #f1f1f1;
    border-radius: 15px;
}


.monitoring-wrapper.extreme-wide::-webkit-scrollbar {
    width: 28px;
    height: 28px;
}

.monitoring-wrapper.extreme-wide::-webkit-scrollbar-thumb {
    border: 8px solid #f1f1f1;
    border-radius: 18px;
}













/* Стили для блока управления бронированием */
.booking-controls {
    background: #f8f9fa;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.booking-toggle {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.booking-options {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-left: 16px;
    border-left: 2px solid #dee2e6;
}

.booking-option-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Стили для переключателя */
.form-switch .form-check-input {
    width: 3em;
    height: 1.5em;
}

.form-switch .form-check-input:checked {
    background-color: #28a745;
    border-color: #28a745;
}

.toggle-status {
    font-weight: 500;
    margin-left: 8px;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 992px) {
    .booking-controls .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 12px !important;
    }
    
    .booking-options {
        border-left: none;
        border-top: 2px solid #dee2e6;
        padding-left: 0;
        padding-top: 12px;
        width: 100%;
        justify-content: space-between;
    }
}









.monitoring-table tbody tr td.available-interval {
    background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
    cursor: pointer;
    /* border: 2px solid #28a745 !important; */
}

.monitoring-table tbody tr td.unavailable-interval {
    background: linear-gradient(135deg, #d8c3c4, #f5c6cb) !important;
    cursor: not-allowed;
    opacity: 0.7;
}


.badge-first::after {
    content: "▶" !important;
    margin-left: 3px !important;
    font-size: 10px !important;
    color: #28a745 !important;
    font-weight: bold !important;
    filter: hue-rotate(120deg) saturate(120%) brightness(1.0) !important;
}  


.badge-last::before {
    content: "◀" !important;
    margin-right: 3px !important;
    font-size: 10px !important;
    color: #dc3545 !important;
    font-weight: bold !important;
    filter: hue-rotate(-30deg) saturate(400%) brightness(0.9) !important;

}







/* Стили для выезжающего окна */
.slide-out-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1050;
    display: flex;
}

.modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    width: 400px;
    background: white;
    margin-left: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-content.show {
    transform: translateX(0);
}

.modal-header {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1rem;
    flex: 1;
    overflow-y: auto;
}

.modal-footer {
    padding: 1rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}



#userSelect {
    height: auto;
    min-height: 120px;
}

#userSelect option {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    white-space: normal;
    word-wrap: break-word;
}

#userSelect option:hover {
    background-color: #f8f9fa;
}




#userSelect option {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    white-space: normal;
    word-wrap: break-word;
    color: #000 !important; /* Черный цвет текста */
    font-size: 14px !important; /* Размер шрифта */
    background-color: #fff !important; /* Белый фон */
}

#userSelect option:hover {
    background-color: #f8f9fa !important;
    color: #000 !important;
}


/* Увеличиваем ширину модального окна */
.slide-out-modal .modal-content {
    width: 1000px; /* Увеличиваем ширину */
    max-width: 90vw; /* Ограничиваем максимальную ширину */
}




.sortable {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.sortable:hover {
    background-color: #f8f9fa;
}

.sortable::after {
    content: ' ▼';
    font-size: 0.8em;
    opacity: 0.5;
}

.sortable[data-sort].asc::after {
    content: ' ▲';
    opacity: 1;
}

.sortable[data-sort].desc::after {
    content: ' ▼';
    opacity: 1;
}



.btn-group {
    display: flex;
    gap: 5px;
}





.booking-confirmation {
    padding: 20px;
    border: 1px solid #dee2e6;
    border-radius: 5px;
    background-color: #f8f9fa;
}

.confirmation-header {
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 15px;
    padding-bottom: 10px;
}

.booking-details {
    background-color: white;
    padding: 15px;
    border-radius: 5px;
    margin: 10px 0;
}

.confirmation-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}









/* Стили для компактной строки управления */
.compact-controls-row {
    transition: all 0.3s ease;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 991.98px) {
    .compact-controls-row .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .compact-controls-row .ms-auto {
        margin-left: 0 !important;
        margin-top: 10px;
    }
    
    .date-navigation {
        flex-wrap: wrap;
    }
    
    .booking-toggle {
        order: 1;
    }
    
    .date-navigation {
        order: 2;
    }
    
    .local-time {
        order: 3;
    }
}

/* Автоматическое обновление при изменении даты */
#dateSelector {
    cursor: pointer;
}

#dateSelector:hover {
    border-color: #0d6efd;
}








@media (max-width: 991.98px) {
    .compact-controls-row .d-flex {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
        min-height: auto;
    }
    
    .compact-controls-row .ms-auto {
        margin-left: 0 !important;
        margin-top: 5px;
    }
    
    .vr {
        display: none !important;
    }
}


/* Принудительное уменьшение */
.table-dark th {
    padding: 1px 4px !important;
    height: 25px !important;
    line-height: 1 !important;
    font-size: 0.75em !important;
}

.monitoring-table th {
    min-height: 25px !important;
    vertical-align: middle !important;
}



/* Сверхкомпактные badge */
.user-booking-group .badge {
    padding: 0.5px 0.5px !important;
    margin: 0.5 0px !important;
    font-size: 0.7em !important;
    min-width: 18px !important;
    line-height: 0 !important;
}

.user-booking-group {
    gap: 0.5px !important;
}




/* Будущие - синие */
/* .today-future-interval-cell, .interval-inactive.future-date-interval-cell { */
td[class*="future"] {
    border: 1px solid #bee5eb !important;
    /* border-left: 4px solid #17a2b8 !important; */
    border-right: 1px solid #00ccff !important;
}
/* Прошедшие - серые с штриховкой */

/* .today-past-interval-cell { */
td[class*="past"] {
    border: 1px solid #ced4da !important;
    border-left: 1px solid #6c757d !important;
    border-style: dashed !important; /* Пунктирная рамка */
}

/* Текущие - выделенные желтые */
.today-current-interval-cell {
    border: 3px solid #ffd700 !important;
    border-left: 5px solid #ffa500 !important;
    border-right: 5px solid #ffa500 !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5) !important;
}



#usersTable thead th {
    font-size: 0.85em;
    white-space: nowrap;
}

#usersTable {
    /* border: 2px solid #68696b !important; */
    border-radius: 8px;
    overflow: hidden;
}


/* Подсветка всех элементов с одинаковым ticket-id при наведении */
.badge[data-ticket-id]:hover {
    transform: scale(1.1);
    z-index: 100;
    box-shadow: 0 0 8px 2px currentColor;
    transition: all 0.2s ease;
}

/* Подсветка связанных элементов */
.badge.highlight-related {
    transform: scale(1.05);
    box-shadow: 0 0 6px 2px currentColor;
    z-index: 50;
}





       /* Стили для деталей бронирования */
    .booking-details {
        background: #f8f9fa;
        border-radius: 8px;
        padding: 15px;
        margin: 15px 0;
    }
    
    .booking-detail-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 8px 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .booking-detail-row:last-child {
        border-bottom: none;
    }
    
    .detail-label {
        color: #6c757d;
        font-size: 14px;
        flex: 1;
    }
    
    .detail-value {
        font-weight: 700;
        font-size: 16px;
        color: #212529;
        text-align: right;
        flex: 1;
        margin-left: 15px;
    }
    
    .date-value,
    .phone-value {
        font-weight: 400 !important; /* Обычный шрифт для даты и телефона */
    }
    
    .detail-value-time {
        text-align: right;
        flex: 1;
        margin-left: 15px;
    }
    
    .time-range {
        font-weight: 700;
        font-size: 16px;
        color: #212529;
        margin-bottom: 4px;
    }
    
    .duration {
        font-weight: 600;
        font-size: 14px;
        color: #28a745;
        font-style: italic;
    }
    
    .confirmation-content p {
        margin-bottom: 15px;
        color: #495057;
    }






    

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    color: #000;
}

/* Стили для модального окна */
.custom-delete-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1060;
    align-items: center;
    justify-content: center;
}

.custom-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.custom-modal-content {
    position: relative;
    background: white;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.custom-modal-body {
    margin-bottom: 20px;
}

.custom-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.custom-alert-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}

.custom-close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
} 