/* ============================================================
   ДЕСКТОПНАЯ ВЕРСИЯ ТАБЛИЦЫ РАСПИСАНИЯ
   ============================================================ */


/* ============================================================
   СЕЛЕКТОРЫ МЕСЯЦА / ГОДА
   ============================================================ */
.controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.control-group {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.controls label {
    font-weight: 600;
    color: #2d3436;
    font-size: 14px;
    white-space: nowrap;
}

.controls select {
    padding: 6px 12px;
    border: 2px solid #dfe6e9;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s;
    min-width: 80px;
}

.controls select:hover {
    border-color: #6c5ce7;
}

.controls select:focus {
    border-color: #6c5ce7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}


/* ============================================================
   ЗАГОЛОВОК МЕСЯЦА
   ============================================================ */
.month-title {
    text-align: center;
    font-size: 24px;
    color: #2d3436;
    margin-bottom: 20px;
}

.month-title span {
    color: #6c5ce7;
    font-weight: 700;
}


/* ============================================================
   ДЕСКТОПНАЯ ТАБЛИЦА РАСПИСАНИЯ
   ============================================================ */
.table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
}

.table-wrapper table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
    table-layout: fixed;
}

.table-wrapper thead {
    background: #6c5ce7;
    color: white;
}

.table-wrapper th {
    padding: 6px 2px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    border: 1px solid #5f4dd0;
    width: 40px;
    min-width: 35px;
    max-width: 45px;
    vertical-align: middle;
    line-height: 1.2;
}

.table-wrapper td {
    padding: 3px;
    text-align: center;
    border: 1px solid #dfe6e9;
    width: 40px;
    min-width: 35px;
    max-width: 45px;
    height: 40px;
    min-height: 35px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    vertical-align: middle;
}

.table-wrapper td:hover:not(:first-child) {
    background: #e8f0fe;
}


/* ============================================================
   ПЕРВАЯ КОЛОНКА (типы смен) — sticky
   ============================================================ */
.table-wrapper td:first-child,
.table-wrapper th:first-child {
    background: #f8f9fa;
    font-weight: 600;
    color: #2d3436;
    width: 150px;
    min-width: 100px;
    max-width: 150px;
    font-size: 13px;
    position: sticky;
    left: 0;
    z-index: 2;
    padding: 6px 8px;
    cursor: default;
}

.table-wrapper th:first-child {
    background: #f8f9fa;
    position: sticky;
    color: #2d3436;
    left: 0;
    z-index: 3;
    font-size: 14px;
}

.table-wrapper td:first-child:hover {
    background: #f8f9fa;
}


/* ============================================================
   ВЫХОДНЫЕ ДНИ
   ============================================================ */
.weekend-header {
    background: #fdcb6e;
    color: #2d3436;
}

.weekend {
    background: #fff3cd;
}

.weekend:hover:not(:first-child) {
    background: #ffe8a0;
}


/* ============================================================
   КОМПАКТНЫЙ ЗАГОЛОВОК ДАТ (день + день недели)
   ============================================================ */
.compact-header {
    font-size: 11px;
    padding: 4px 1px;
    line-height: 1.1;
}

.compact-header .day-number {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.compact-header .day-weekday {
    display: block;
    font-size: 9px;
    opacity: 0.9;
    font-weight: 400;
}


/* ============================================================
   ЯЧЕЙКИ — выделение и hover
   ============================================================ */
.clickable-cell {
    cursor: pointer;
    transition: all 0.15s ease;
}

.clickable-cell:hover .cell-content {
    background: #e3ecfa;
}

.clickable-cell.selected .cell-content {
    background: #6c5ce7 !important;
    color: white;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

.clickable-cell.selected.weekend .cell-content {
    background: #e155d3 !important;
    color: white;
    box-shadow: 0 2px 8px rgba(225, 112, 85, 0.3);
}


/* ============================================================
   ИНФОРМАЦИЯ О ВЫБРАННОЙ ЯЧЕЙКЕ
   ============================================================ */
.selection-info {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #6c5ce7;
    display: none;
}

.selection-info.active {
    display: block;
}

.selection-info .info-label {
    font-weight: 600;
    color: #2d3436;
}

.selection-info .info-value {
    color: #6c5ce7;
    font-weight: 700;
}


/* ============================================================
   🆕 СКРЫТИЕ МОБИЛЬНОЙ ТАБЛИЦЫ НА ДЕСКТОПЕ
   ============================================================
   По умолчанию (широкий экран) — показываем десктопную,
   скрываем мобильную. На узком (< 768px) — наоборот,
   см. style_schedule_mobile.css.
   ============================================================ */
.mobile-table-wrapper {
    display: none;
}