/* public/css/schedule-style.css */
/* Минимальные стили, чтобы не ломалась верстка */

.spo-schedule-container {
    font-family: Arial, sans-serif;
    max-width: 100%;
    overflow-x: auto;
}

.spo-schedule-container table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 10px 0;
}

.spo-schedule-container th {
    border: 1px solid #ddd;
    padding: 8px 10px;
    background: #f5f5f5;
    text-align: center;
    font-weight: bold;
}

.spo-schedule-container td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: center;
    vertical-align: middle;
}

.spo-schedule-container .time-cell {
    background: #f9f9f9;
    font-weight: bold;
    white-space: nowrap;
}

.spo-schedule-container .empty {
    color: #ccc;
}

.spo-schedule-container .week-title {
    font-weight: bold;
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: #2c3e50;
}

.spo-schedule-container .building-info {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 15px;
    padding: 10px 0;
    border-bottom: 2px solid #3498db;
}
/* ===== БЛОК ОБЪЯВЛЕНИЙ (для шорткода) ===== */
.spo-announcements-wrapper {
    margin: 20px 0;
}

.spo-announcements-title {
    font-size: 20px;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 3px solid #2271b1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.spo-announcement {
    background: #f8f9fa;
    border-left: 4px solid #2271b1;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: all 0.2s ease;
}

.spo-announcement:hover {
    background: #f1f3f5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.spo-announcement-important {
    background: #fff3cd;
    border-left-color: #dc3232;
}

.spo-announcement-important:hover {
    background: #ffe69b;
}

.spo-announcement h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #1d2327;
}

.spo-announcement-important h4 {
    color: #b32d2d;
}

.spo-announcement-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 8px;
}

.spo-announcement-meta {
    font-size: 12px;
    color: #6c757d;
    border-top: 1px dashed #dee2e6;
    padding-top: 8px;
    margin-top: 0px;
}

.spo-announcements-empty {
    background: #f8f9fa;
    padding: 30px;
    text-align: center;
    color: #6c757d;
    border-radius: 6px;
    border: 1px dashed #dee2e6;
}
.spo-announcements::-webkit-scrollbar {
    width: 6px;
}
.spo-announcements::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}
.spo-announcements::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}
.spo-announcements::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


/* ============================================
   АДАПТАЦИЯ ДЛЯ ТЕЛЕФОНОВ
   ============================================ */

@media (max-width: 768px) {
    /* Форма выбора */
    .spo-schedule form {
        padding: 12px !important;
    }
    
    /* Радиокнопки */
    .spo-schedule form label {
        font-size: 16px !important;
        padding: 6px 0;
    }
    
    .spo-schedule form input[type="radio"] {
        width: 18px !important;
        height: 18px !important;
        margin-right: 6px !important;
    }
    
    /* Выпадающие списки */
    .spo-schedule form select {
        font-size: 18px !important;
        padding: 12px 14px !important;
        min-width: 100% !important;
        width: 100% !important;
        margin-bottom: 8px !important;
        border-radius: 6px !important;
        background: #fff;
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
        background-repeat: no-repeat;
        background-position: right 12px center;
        background-size: 20px;
        padding-right: 40px !important;
    }
    
    /* Кнопки (если есть) */
    .spo-schedule form button,
    .spo-schedule form input[type="submit"] {
        font-size: 18px !important;
        padding: 14px 24px !important;
        width: 100% !important;
        border-radius: 6px !important;
    }
    
    /* Радиокнопки в ряд, но с отступами */
    .spo-schedule form .spo-radio-group {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 20px;
        margin-bottom: 12px;
    }
    
    .spo-schedule form .spo-radio-group label {
        font-size: 16px !important;
        flex: 0 0 auto;
    }
    
    /* Комбобоксы друг под другом */
    .spo-schedule form .spo-select-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .spo-schedule form .spo-select-group select {
        width: 100% !important;
        min-width: unset !important;
    }
}