/* =========================================
   VARIABLES DE DISEÑO PREMIUN (COLORES)
   ========================================= */
:root {
    --primary-color: #2B3088;
    /* Navy Blue */
    --primary-hover: #1F2366;
    /* Darker Navy */
    --accent-color: #C8102E;
    /* Red */
    --accent-hover: #9C0C24;
    /* Darker Red */
    --secondary-bg: #F5F6FA;
    /* Light Blueish Gray */
    --bg-color: #ffffff;
    --text-main: #111827;
    /* Gray 900 */
    --text-muted: #6b7280;
    /* Gray 500 */
    --border-color: #e5e7eb;
    /* Gray 200 */

    --card-bg: #ffffff;
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --card-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --transition: all 0.2s ease-in-out;
}

/* =========================================
   RESETEO BASE
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    background-color: var(--secondary-bg);
    color: var(--text-main);
    overflow: hidden;
    /* Prevent full body scroll, handle in main-content */
}

/* En mobile el body debe poder hacer scroll */
@media (max-width: 768px) {
    body {
        overflow-y: auto;
    }
}

/* =========================================
   LAYOUT PRINCIPAL
   ========================================= */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

/* SIDEBAR */
.sidebar {
    width: 280px;
    background-color: var(--bg-color);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 24px;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.logo h2 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 28px;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.nav-item i {
    font-size: 20px;
}

.nav-item:hover {
    background-color: var(--secondary-bg);
    color: var(--text-main);
}

.nav-item.active {
    background-color: #ebecf5;
    /* Light Navy */
    color: var(--primary-color);
    position: relative;
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 4px;
    background-color: var(--accent-color);
    border-radius: 0 4px 4px 0;
}

.sidebar-footer {
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

/* MAIN CONTENT */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 48px;
    background-color: var(--secondary-bg);
}

.view-section {
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeIn 0.3s ease-out;
}

#view-horario {
    max-width: 100%;
}

.view-section.hide {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
}

.header-titles h1 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.header-titles p {
    color: var(--text-muted);
    font-size: 15px;
}

/* =========================================
   COMPONENTES UI
   ========================================= */

/* BOTONES */
button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    outline: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    box-shadow: 0 2px 4px rgba(43, 48, 136, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(43, 48, 136, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
}

.btn-secondary:hover {
    background-color: var(--secondary-bg);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
}

.btn-ghost:hover {
    background-color: var(--secondary-bg);
    color: var(--text-main);
}

.btn-generate {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e44a1 100%);
    color: white;
    padding: 14px;
    border-radius: var(--radius-md);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(43, 48, 136, 0.3);
}

.btn-generate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(43, 48, 136, 0.4);
}

.btn-icon {
    background: transparent;
    color: var(--text-muted);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 20px;
}

.btn-icon:hover {
    background-color: var(--secondary-bg);
    color: var(--text-main);
}

.btn-delete {
    background: #fee2e2;
    color: #ef4444;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
}

.btn-delete:hover {
    background: #fca5a5;
    color: #b91c1c;
}

/* EMPTY STATE */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border-color);
}

.empty-state.hide {
    display: none;
}

.empty-icon {
    width: 64px;
    height: 64px;
    background-color: #eef2ff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 16px;
}

.empty-state h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.empty-state p {
    color: var(--text-muted);
}

.mt-15 {
    margin-top: 15px;
}

/* GRID CARDS (Tarjetas) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.cards-grid.hide {
    display: none;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
    border-color: #c7d2fe;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card.ph-fill {
    font-weight: 700;
}

/* ==========================================
   VISTAS DINÁMICAS (LISTA/GRILLA) Y TABLAS
   ========================================== */
.view-toggles {
    display: flex;
    background: #e5e7eb;
    border-radius: 8px;
    padding: 4px;
    gap: 2px;
}

.view-toggle-btn {
    background: transparent;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-toggle-btn:hover {
    color: var(--text-color);
}

.view-toggle-btn.active {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.data-table th {
    background-color: #f8fafc;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-color);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: background-color 0.2s;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.card-title {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 4px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f3f4f6;
    color: #4b5563;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.tag.Laboratorio {
    background-color: #dbeafe;
    color: #1e40af;
}

.tag.Taller {
    background-color: #ffedd5;
    color: #9a3412;
}

.tag.SUM {
    background-color: #dcfce7;
    color: #166534;
}

/* =========================================
   MODAL (Ventana Emergente)
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(17, 24, 39, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--card-bg);
    width: 100%;
    max-width: 500px;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding-top: 24px;
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* FORMULARIOS */
.form-group {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.form-group-row {
    display: flex;
    gap: 16px;
}

label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-main);
}

input,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    background-color: white;
    transition: border-color 0.2s;
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43, 48, 136, 0.1);
}

/* =========================================
   GRILLA DE DISPONIBILIDAD (Docentes)
   ========================================= */
.modal-lg {
    max-width: 650px;
}

.availability-grid {
    display: grid;
    grid-template-columns: 60px repeat(5, 1fr);
    gap: 4px;
    margin-top: 8px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow-x: auto;
    min-width: 100%;
}

.availability-grid>* {
    min-width: 60px;
    /* Evita que las celdas se compriman demasiado */
}

.av-header {
    background: var(--secondary-bg);
    padding: 8px 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.av-row-label {
    background: var(--secondary-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 2px 0;
}

.av-recreo {
    background: #e2e8f0;
    /* Slate 200 */
    color: #64748b;
    /* Slate 500 */
    font-size: 10px;
    letter-spacing: 2px;
    height: 24px;
}

.av-cell {
    background: white;
    height: 42px;
    /* Un poquito más alto para que entren las letras */
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1.1;
    font-weight: 600;
    color: #9ca3af;
    /* Gris claro cuando está deseleccionado */
}

.av-cell:hover {
    background: #f8fafc;
    /* Slate 50 */
    color: #6b7280;
}

.av-cell.selected {
    background: #10b981;
    /* Emerald 500 */
    border: inset 2px #059669;
    /* Emerald 600 */
    color: #ecfdf5;
    /* Blanco verdoso para el texto, para que resalte sobre el verde */
}

.av-cell.selected:hover {
    background: #059669;
}

.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Separador visual de sección dentro de formularios */
.form-seccion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--primary-color);
    border-bottom: 2px solid #ebecf5;
    padding-bottom: 8px;
    margin-bottom: 14px;
}

/* =========================================
   BUSCADOR (Search Box)
   ========================================= */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 18px;
}

.search-box input {
    padding-left: 38px;
    width: 260px;
    border-radius: 20px;
}

/* =========================================
   IMPRESIÓN (Exportar a PDF)
   ========================================= */
@media print {
    /* Hide all unnecessary UI elements */
    .sidebar, 
    .session-bar,
    .login-overlay,
    .modal-overlay,
    #toast-container,
    #view-aulas,
    #view-docentes,
    #view-cursos,
    #view-configuracion,
    #view-mi-disponibilidad,
    #view-mi-horario {
        display: none !important;
    }

    /* Within view-horario, hide the header and the "sin asignar" panel */
    #view-horario > .view-header,
    #view-horario > div > div:nth-child(2) {
        display: none !important;
    }

    /* Reset layouts to use full page width and remove margins/shadows */
    body, html, .app-container, .main-content, #view-horario, #view-horario > div, #master-grid-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        background: white !important;
        box-shadow: none !important;
        border: none !important;
        position: static !important;
        display: block !important;
    }

    /* Page Setup */
    @page {
        size: A4 landscape;
        margin: 10mm;
    }

    /* Ensure each grid forces a new page after it, fitting into one page */
    .curso-grid-container {
        page-break-after: always;
        break-after: page;
        page-break-inside: avoid;
        break-inside: avoid;
        margin: 0 !important;
        border: none !important;
        width: 100% !important;
    }

    .curso-grid-container:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    /* Use zoom to scale down the entire grid while preserving original proportions and aesthetics */
    .curso-grid-container {
        zoom: 0.6; /* Shrinks the element and its layout space by 40% */
        /* Fallback for browsers that don't support zoom in print (like Firefox), though Chrome is primary here */
        transform-origin: top left;
    }

    /* Hide action buttons inside the grids for printing */
    .clase-asignada button, 
    .clase-asignada .btn-icon {
        display: none !important;
    }

    /* Force background colors rendering in print */
    * {
        -webkit-print-color-adjust: exact !important;
        color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

/* =========================================
   DASHBOARD DEL DIRECTOR
   ========================================= */

/* Welcome Banner */
.dashboard-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3e44b8 60%, #5a3e9e 100%);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    margin-bottom: 28px;
    color: white;
    box-shadow: 0 8px 24px rgba(43, 48, 136, 0.35);
    position: relative;
    overflow: hidden;
}

.dashboard-welcome::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.dashboard-welcome::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: 80px;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.dashboard-welcome-left {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.dashboard-welcome-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.25);
}

.dashboard-welcome h1 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.dashboard-fecha {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
    margin: 0 !important;
}

.dashboard-btn-generar {
    z-index: 1;
    border: 1px solid rgba(255,255,255,0.3) !important;
    background: rgba(255,255,255,0.15) !important;
    backdrop-filter: blur(4px);
    box-shadow: none !important;
}

.dashboard-btn-generar:hover {
    background: rgba(255,255,255,0.28) !important;
    transform: translateY(-2px);
}

/* KPI Cards */
.dashboard-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.kpi-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
}

.kpi-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

/* Colores de acento lateral */
.kpi-blue::before   { background: #3b82f6; }
.kpi-indigo::before { background: var(--primary-color); }
.kpi-violet::before { background: #7c3aed; }
.kpi-amber::before  { background: #f59e0b; }

.kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.kpi-blue   .kpi-icon { background: #eff6ff; color: #3b82f6; }
.kpi-indigo .kpi-icon { background: #eef2ff; color: var(--primary-color); }
.kpi-violet .kpi-icon { background: #f5f3ff; color: #7c3aed; }
.kpi-amber  .kpi-icon { background: #fffbeb; color: #f59e0b; }

.kpi-data {
    flex: 1;
}

.kpi-value {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    color: var(--text-main);
}

.kpi-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.kpi-arrow {
    font-size: 18px;
    color: var(--border-color);
    transition: var(--transition);
}

.kpi-card:hover .kpi-arrow {
    color: var(--text-muted);
    transform: translateX(3px);
}

.kpi-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    background: #fef3c7;
    color: #92400e;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.kpi-badge.generado {
    background: #d1fae5;
    color: #065f46;
}

/* Panels row */
.dashboard-panels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboard-panel {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.dashboard-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}

.dashboard-panel-header i {
    font-size: 18px;
    color: var(--primary-color);
}

.dashboard-panel-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
}

/* Accesos Rápidos */
.accesos-rapidos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
}

.acceso-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.acceso-btn i {
    font-size: 22px;
    color: var(--text-muted);
    transition: var(--transition);
}

.acceso-btn:hover {
    background: #f0f2ff;
    border-color: #c7d2fe;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(43,48,136,0.1);
}

.acceso-btn:hover i {
    color: var(--primary-color);
}

.acceso-btn.acceso-primary {
    grid-column: 1 / -1;
    flex-direction: row;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--primary-color), #3e44b8);
    color: white;
    border: none;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(43,48,136,0.3);
}

.acceso-btn.acceso-primary i {
    font-size: 20px;
    color: white;
}

.acceso-btn.acceso-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover), #333ba0);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(43,48,136,0.4);
}

/* Estado del Sistema */
.estado-sistema {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.estado-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 13px;
    transition: var(--transition);
}

.estado-item:hover {
    background: #f8fafc;
}

.estado-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 500;
}

.estado-item-left i {
    font-size: 18px;
}

.estado-chip {
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.chip-ok    { background: #d1fae5; color: #065f46; }
.chip-warn  { background: #fef3c7; color: #92400e; }
.chip-error { background: #fee2e2; color: #991b1b; }
.chip-info  { background: #eff6ff; color: #1e40af; }

/* Responsive dashboard */
@media (max-width: 1100px) {
    .dashboard-kpis {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dashboard-welcome {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 20px;
    }

    .dashboard-kpis {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .dashboard-panels {
        grid-template-columns: 1fr;
    }

    .kpi-value {
        font-size: 22px;
    }
}

/* =========================================
   PANTALLA DE LOGIN
   ========================================= */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1f6e 0%, #2B3088 45%, #C8102E 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.login-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-card {
    background: white;
    border-radius: 24px;
    padding: 48px 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.3);
    animation: loginSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes loginSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
}

.login-logo img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.login-logo h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 12px;
    letter-spacing: -0.3px;
}

.login-logo p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.login-role-selector {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}

.login-role-btn {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 12px;
    background: white;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.login-role-btn i {
    font-size: 28px;
}

.login-role-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f0f1ff;
}

.login-role-btn.active {
    border-color: var(--primary-color);
    background: #eef0ff;
    color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43,48,136,0.12);
}

.login-role-btn.active-red {
    border-color: var(--accent-color);
    background: #fff0f2;
    color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(200,16,46,0.12);
}

.login-field-group {
    margin-bottom: 20px;
}

.login-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.login-field-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    letter-spacing: 1px;
    transition: border-color 0.2s;
    outline: none;
}

.login-field-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(43,48,136,0.1);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary-color), #3e44a1);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(43,48,136,0.35);
}

.btn-login.director-mode {
    background: linear-gradient(135deg, var(--accent-color), #9C0C24);
}

.login-error {
    background: #fff0f2;
    border: 1px solid #fecdd3;
    color: #be123c;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-top: 12px;
    display: none;
    align-items: center;
    gap: 8px;
}

.login-error.show {
    display: flex;
}

.login-bloqueado {
    text-align: center;
    padding: 24px;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 12px;
    margin-top: 16px;
    display: none;
}

.login-bloqueado.show {
    display: block;
}

/* =========================================
   HEADER CON INFO DE SESION
   ========================================= */
.session-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 44px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    gap: 16px;
    font-size: 13px;
    z-index: 50;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.session-bar.docente-bar {
    background: linear-gradient(90deg, #1a1f6e, #2B3088);
}

.session-bar .session-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.session-bar .session-role-badge {
    background: rgba(255,255,255,0.2);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-logout {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-logout:hover {
    background: rgba(255,255,255,0.25);
}

/* Adjust body when session bar is present */
body.sesion-activa .app-container {
    padding-top: 44px;
}

/* =========================================
   VISTA DOCENTE (Mi Disponibilidad / Mi Horario)
   ========================================= */
.docente-view-container {
    max-width: 900px;
    margin: 0 auto;
}

.docente-welcome-banner {
    background: linear-gradient(135deg, var(--primary-color), #3e44a1);
    color: white;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.docente-welcome-banner i {
    font-size: 40px;
    opacity: 0.9;
}

.docente-welcome-banner h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.docente-welcome-banner p {
    font-size: 13px;
    opacity: 0.8;
}

.aviso-institucional {
    background: linear-gradient(135deg, #fef3c7, #fef9ee);
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 24px;
    font-size: 13px;
    color: #78350f;
    line-height: 1.6;
}

.aviso-institucional strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #92400e;
}

.horario-en-proceso {
    text-align: center;
    padding: 60px 24px;
    background: white;
    border-radius: 16px;
    border: 2px dashed var(--border-color);
}

.horario-en-proceso i {
    font-size: 56px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
}

.horario-en-proceso h3 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.horario-en-proceso p {
    color: var(--text-muted);
    font-size: 14px;
}

/* =========================================
   CONFIGURACION DIRECTOR
   ========================================= */
.config-section {
    background: white;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--card-shadow);
}

.config-section-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, #f8faff, #f0f1ff);
    display: flex;
    align-items: center;
    gap: 12px;
}

.config-section-header i {
    font-size: 22px;
    color: var(--primary-color);
}

.config-section-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}

.config-section-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.config-section-body {
    padding: 24px;
}

.toggle-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.toggle-control:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.toggle-info {
    flex: 1;
}

.toggle-info strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 3px;
}

.toggle-info span {
    font-size: 12px;
    color: var(--text-muted);
}

.toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
    margin-left: 16px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #e5e7eb;
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.toggle-switch input:checked + .toggle-slider {
    background: #10b981;
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(24px);
}

.config-password-form {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    margin-top: 16px;
}

.config-password-form .form-group {
    flex: 1;
    margin-bottom: 0;
}

.recovery-code {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 16px;
    font-size: 13px;
    color: #166534;
}

.recovery-code strong {
    display: block;
    font-weight: 700;
    margin-bottom: 4px;
}

.recovery-code code {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    background: #dcfce7;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: monospace;
}

/* =========================================
   CRÉDITO EN SIDEBAR
   ========================================= */
.sidebar-credit {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.6;
}

.sidebar-credit strong {
    color: var(--primary-color);
    font-weight: 600;
}

/* =========================================
   BUSCADOR DE DOCENTE EN MODAL ASIGNAR
   ========================================= */
.asignar-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    max-height: 200px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.asignar-dropdown-item {
    padding: 9px 14px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-main);
    transition: background 0.15s;
}

.asignar-dropdown-item:hover {
    background-color: #eef2ff;
    color: var(--primary-color);
}

/* =========================================
   BOTÓN HAMBURGUESA (oculto en desktop)
   ========================================= */
.btn-hamburger {
    display: none;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Overlay del sidebar en mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 999;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block;
}

/* =========================================
   RESPONSIVE — MÓVIL (≤ 768px)
   ========================================= */
@media (max-width: 768px) {

    /* ── Session bar ── */
    .session-bar {
        justify-content: space-between;
        padding: 0 10px;
        gap: 8px;
    }

    .btn-hamburger {
        display: flex;
        flex-shrink: 0;
    }

    .session-bar .session-info {
        flex: 1;
        overflow: hidden;
        min-width: 0;
    }

    #session-nombre {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100px;
        display: inline-block;
        vertical-align: middle;
    }

    .logout-texto {
        display: none;
    }

    .btn-logout {
        padding: 5px 10px;
        flex-shrink: 0;
    }

    /* ── Sidebar como drawer ── */
    .sidebar {
        position: fixed;
        top: 0;
        left: -290px;
        width: 270px;
        height: 100%;
        z-index: 1000;
        transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        box-shadow: none;
        padding-top: 60px; /* espacio para la session-bar */
    }

    .sidebar.mobile-open {
        left: 0;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
    }

    /* ── App container: sin altura fija, sin overflow ── */
    .app-container {
        height: auto;
        min-height: calc(100vh - 44px);
        overflow: visible;
        flex-direction: column;
    }

    /* ── Main content ancho completo ── */
    .main-content {
        padding: 16px 12px 32px;
        width: 100%;
        overflow-y: visible;
        flex: 1;
    }

    /* ── Headers de vistas apilados verticalmente ── */
    .view-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px;
        margin-bottom: 16px;
    }

    /* Todos los controles del header apilados */
    .view-header > div {
        width: 100%;
        flex-wrap: wrap !important;
        gap: 8px !important;
        display: flex;
        align-items: center;
    }

    .header-titles h1 {
        font-size: 20px;
    }

    .header-titles p {
        font-size: 13px;
    }

    /* ── View toggles (grid/lista) ── */
    .view-toggles {
        flex-shrink: 0;
    }

    /* ── Buscadores full width ── */
    .search-box {
        width: 100%;
        flex: 1;
        min-width: 0;
    }

    .search-box input {
        width: 100%;
    }

    /* ── Selects full width ── */
    select {
        width: 100%;
        flex: 1;
    }

    /* ── Botones de acción full width en header ── */
    .view-header .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* ── Grilla de cards 1 columna ── */
    .cards-grid {
        grid-template-columns: 1fr;
    }

    /* ── Grilla de disponibilidad: scroll horizontal ── */
    .availability-grid {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ── Modales ── */
    .modal {
        max-width: 96vw;
        max-height: 90vh;
        margin: 16px;
        overflow-y: auto;
    }

    .modal-body {
        padding: 16px;
    }

    .form-group-row {
        flex-direction: column;
        gap: 0;
    }

    /* ── Vista docente ── */
    .docente-view-container {
        max-width: 100%;
    }

    .docente-welcome-banner {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 10px;
    }

    .docente-welcome-banner i {
        font-size: 36px;
    }

    /* ── Botón guardar disponibilidad ── */
    #btn-guardar-mi-disp {
        width: 100%;
        margin-top: 8px;
    }
    
    /* Fix flex wrapper para disponibilidad ── */
    #view-mi-disponibilidad > .docente-view-container > div:last-child > div:first-child {
        flex-direction: column;
        align-items: flex-start;
    }

    /* ── Botón generar horario en sidebar ── */
    .btn-generate {
        padding: 12px;
        font-size: 14px;
    }

    /* ── Config section ── */
    .config-section-body {
        padding: 16px;
    }

    .config-password-form {
        flex-direction: column;
        align-items: stretch;
    }

    .config-password-form .form-group {
        margin-bottom: 12px;
    }

    /* Info sistema: 1 columna */
    #config-info-sistema {
        grid-template-columns: 1fr !important;
    }

    /* ── Horario resultado: panel de alertas abajo ── */
    #view-horario > div {
        flex-direction: column !important;
    }

    #master-grid-container {
        padding: 10px !important;
    }

    /* View horario header: botones apilados */
    #view-horario .view-header > div:last-child {
        flex-direction: column !important;
    }

    /* ── Tabs de cursos ── */
    .tabs-container {
        gap: 10px;
    }
}

/* ── Extra pequeño (< 380px) ── */
@media (max-width: 380px) {
    .session-bar {
        padding: 0 8px;
        gap: 6px;
    }

    #session-nombre {
        max-width: 70px;
    }

    .session-role-badge {
        display: none;
    }
}

/* =========================================
   MODAL EXTRA ANCHO (xl)
   ========================================= */
.modal-xl {
    max-width: 900px;
    width: 95vw;
}

/* =========================================
   BOTÓN "VER OCUPACIÓN" EN TARJETAS AULA
   ========================================= */
.btn-occ-aula {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    color: #6d28d9;
    border: 1px solid #c4b5fd;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-occ-aula:hover {
    background: linear-gradient(135deg, #ddd6fe, #c4b5fd);
    color: #4c1d95;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(109, 40, 217, 0.25);
}

/* =========================================
   PANEL DE ASIGNACIÓN MASIVA
   ========================================= */
.occ-panel-masivo {
    background: linear-gradient(135deg, #faf5ff, #f3e8ff);
    border: 1px solid #e9d5ff;
    border-radius: 14px;
    padding: 18px 20px;
}

/* =========================================
   GRILLA SEMANAL DE OCUPACIÓN
   ========================================= */
.occ-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.occ-th-hora {
    background: #f8fafc;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-color);
    width: 80px;
    text-align: center;
}

.occ-th-dia {
    background: #f8fafc;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    text-align: center;
    min-width: 130px;
}

.occ-td-hora {
    background: #f8fafc;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

.occ-td {
    padding: 6px;
    border: 1px solid var(--border-color);
    vertical-align: top;
    text-align: center;
    transition: background 0.15s;
}

/* Estados de celda */
.occ-libre {
    background: #f0fdf4;
}

.occ-ocupada {
    background: #eff6ff;
}

.occ-ocupada:hover {
    background: #dbeafe;
}

.occ-contraturno {
    background: #fffbeb;
}

/* Contenido dentro de celda ocupada */
.occ-cell-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 2px 0;
}

.occ-curso {
    font-size: 11px;
    font-weight: 700;
    color: #1e40af;
}

.occ-materia {
    font-size: 10px;
    color: #374151;
    line-height: 1.3;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.occ-docente {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
}

/* Badges de estado */
.occ-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.occ-badge-libre {
    background: #bbf7d0;
    color: #065f46;
}

.occ-badge-ocupada {
    background: #bfdbfe;
    color: #1e3a8a;
}

.occ-badge-contraturno {
    background: #fde68a;
    color: #78350f;
}

/* Botón expulsar dentro de celda */
.occ-btn-expulsar {
    margin-top: 4px;
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.15s;
}

.occ-btn-expulsar:hover {
    background: #fca5a5;
    color: #7f1d1d;
    transform: translateY(-1px);
}

/* =========================================
   PILLS DEL PREVIEW MASIVO
   ========================================= */
.occ-preview-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pill-green  { background: #d1fae5; color: #065f46; }
.pill-amber  { background: #fef3c7; color: #92400e; }
.pill-violet { background: #ede9fe; color: #5b21b6; }
.pill-gray   { background: #f3f4f6; color: #6b7280; }

/* =========================================
   MINI GRILLA DE DISPONIBILIDAD (modal mover clase)
   ========================================= */
.mini-disp-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 11px;
}

.mini-hora-th {
    width: 48px;
    padding: 2px 4px;
}

.mini-dia-th {
    padding: 3px 6px;
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.mini-dia-activo {
    color: var(--primary-color) !important;
    font-weight: 800 !important;
}

.mini-hora {
    font-size: 9px;
    color: var(--text-muted);
    padding: 1px 4px;
    white-space: nowrap;
    text-align: right;
}

.mini-hora-activa {
    color: #3b82f6;
    font-weight: 700;
}

.mini-cell {
    min-width: 22px;
    height: auto;
    min-height: 14px;
    border: 1px solid #f3f4f6;
    border-radius: 2px;
    transition: transform 0.1s;
    vertical-align: top;
    padding: 0;
}

.mini-cell-label {
    display: flex;
    flex-direction: column;
    padding: 2px 4px;
    min-width: 80px;
    max-width: 120px;
}

.mini-cell-materia {
    font-size: 9px;
    font-weight: 700;
    color: #78350f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.mini-cell-curso {
    font-size: 8px;
    font-weight: 500;
    color: #92400e;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
    opacity: 0.85;
}


.mini-cell-libre          { background: #bbf7d0; }
.mini-cell-nodisponible   { background: #e5e7eb; }
.mini-cell-ocupada        { background: #fde68a; }
.mini-cell-sel            {
    background: #bfdbfe !important;
    outline: 2px solid #3b82f6;
    outline-offset: -1px;
    border-radius: 2px;
}

/* =========================================
   ALERTAS DE SLOT EN MODAL MOVER CLASE
   ========================================= */
.mc-alerta {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
}

.mc-alerta i {
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.mc-alerta-ok {
    background: #f0fdf4;
    color: #065f46;
    border: 1px solid #bbf7d0;
}

.mc-alerta-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.mc-alerta-error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}
