* { box-sizing: border-box; }
body { margin: 0; font-family: Segoe UI, Arial, sans-serif; color: #1f2937; background: #f4f6f9; }
.puntual-shell { min-height: 100vh; display: flex; }
.sidebar { width: 245px; background: #172033; color: #fff; padding: 28px 16px; }
.brand { font-size: 28px; font-weight: 500; letter-spacing: 2px; }
.brand-subtitle { color: #aeb8ca; font-size: 12px; margin: 2px 0 30px; }
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar a { color: #d8deea; text-decoration: none; padding: 11px 12px; border-radius: 7px; }
.sidebar a.active, .sidebar a:hover { background: #293750; color: white; }
.content { flex: 1; }
.topbar { height: 62px; background: #fff; border-bottom: 1px solid #e5e7eb; display: flex; justify-content: space-between; align-items: center; padding: 0 28px; }
.topbar a { margin-left: 18px; color: #b42318; text-decoration: none; }
.page-content { padding: 30px; }
h1 { margin-top: 0; font-size: 28px; }
.subtitle { color: #6b7280; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(160px, 1fr)); gap: 18px; margin: 25px 0; }
.card-stat, .panel { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 22px; box-shadow: 0 2px 7px rgba(0,0,0,.04); }
.card-stat span { display:block; color:#6b7280; font-size:14px; }
.card-stat strong { display:block; font-size:30px; margin-top:8px; }
.panel h2 { margin-top:0; font-size:19px; }
.login-body { min-height:100vh; display:flex; align-items:center; justify-content:center; background:#eef1f5; }
.login-card { width:390px; background:#fff; padding:38px; border-radius:14px; box-shadow:0 12px 35px rgba(0,0,0,.12); }
.login-logo { text-align:center; font-size:32px; font-weight:500; letter-spacing:3px; color:#172033; }
.login-subtitle { text-align:center; color:#7b8493; margin-bottom:30px; }
.login-card h1 { font-size:22px; text-align:center; margin-bottom:22px; }
.login-card label { display:block; font-size:14px; margin:14px 0 6px; font-weight:600; }
.login-card input { width:100%; padding:11px 12px; border:1px solid #cfd5dd; border-radius:7px; font-size:15px; }
.login-card button { width:100%; margin-top:22px; padding:12px; border:0; border-radius:7px; background:#172033; color:#fff; font-weight:700; cursor:pointer; }
.validation { color:#b42318; font-size:13px; margin-top:5px; }
.login-footer { text-align:center; color:#98a1af; font-size:12px; margin-top:25px; }
.back-link { color:#172033; }
@media (max-width: 850px) { .sidebar { width:190px; } .cards { grid-template-columns:repeat(2,1fr); } }

.menu { display:flex; flex-direction:column; gap:2px; max-height:calc(100vh - 115px); overflow-y:auto; padding-right:3px; }
.menu a { font-size:13px; padding:8px 10px; }
.menu .menu-main { font-weight:700; margin-top:5px; }
.menu-group { color:#8f9bb0; text-transform:uppercase; font-size:10px; font-weight:800; letter-spacing:.8px; margin:15px 10px 3px; padding-top:8px; border-top:1px solid rgba(255,255,255,.08); }
.current-user { color:#596273; margin-right:8px; }
.breadcrumb { color:#7b8493; font-size:13px; font-weight:600; margin-bottom:7px; }
.module-placeholder { display:flex; gap:18px; align-items:center; max-width:850px; margin-top:24px; }
.module-placeholder h2 { margin:0 0 7px; }
.module-placeholder p { margin:0; color:#6b7280; line-height:1.55; }
.module-icon { width:52px; height:52px; border-radius:12px; display:flex; align-items:center; justify-content:center; background:#172033; color:#fff; font-weight:800; font-size:22px; flex:none; }

/* ==========================================================
   PUNTUAL - ESTILO GENERAL DE CATÁLOGOS
   ========================================================== */


/* CONTENEDOR GENERAL */

.catalogo-contenedor {
    padding: 10px;
}


/* TÍTULO Y SUBTÍTULO */

.catalogo-titulo {
    color: #172238;
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 5px;
}

.catalogo-subtitulo {
    color: #667085;
    margin-bottom: 20px;
}


/* ==========================================================
   BOTONES
   ========================================================== */

.btn-puntual {
    background-color: #19253b;
    color: #ffffff;
    border: 1px solid #19253b;
    border-radius: 5px;
    padding: 8px 15px;
    margin-right: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .05s ease;
}

    .btn-puntual:hover:not(:disabled) {
        background-color: #293b5a;
        border-color: #293b5a;
        color: #ffffff;
    }

    .btn-puntual:active:not(:disabled) {
        transform: translateY(1px);
    }

    .btn-puntual:disabled {
        background-color: #8993a3;
        border-color: #8993a3;
        color: #eeeeee;
        cursor: not-allowed;
        opacity: .75;
    }


/* ==========================================================
   BARRA DE HERRAMIENTAS
   ========================================================== */

.catalogo-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    gap: 15px;
}

.catalogo-botones {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}


/* ==========================================================
   BUSCADOR
   ========================================================== */

.catalogo-buscador {
    width: 280px;
    padding: 8px 12px;
    border: 1px solid #cbd1d8;
    border-radius: 5px;
    outline: none;
    background-color: #ffffff;
    color: #1f2937;
}

    .catalogo-buscador::placeholder {
        color: #98a2b3;
    }

    .catalogo-buscador:focus {
        border-color: #19253b;
        box-shadow: 0 0 0 2px rgba(25, 37, 59, .15);
    }


/* ==========================================================
   TARJETA
   ========================================================== */

.catalogo-card {
    background-color: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}


/* ==========================================================
   CONTENEDOR DE TABLA
   ========================================================== */

.catalogo-tabla-contenedor {
    width: 100%;
    overflow-x: auto;
}


/* ==========================================================
   TABLA GENERAL
   ========================================================== */

.tabla-catalogo {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    border: 1px solid #d9dee5;
}

    .tabla-catalogo thead {
        background-color: #19253b;
        color: #ffffff;
    }

    .tabla-catalogo th {
        color: #ffffff;
        padding: 11px 14px;
        text-align: left;
        font-size: 14px;
        font-weight: 600;
        border-right: 1px solid #34425a;
        white-space: nowrap;
    }

        .tabla-catalogo th:last-child {
            border-right: none;
        }

    .tabla-catalogo td {
        padding: 10px 14px;
        color: #1f2937;
        border-right: 1px solid #e1e5ea;
        border-bottom: 1px solid #e1e5ea;
        font-size: 14px;
    }

        .tabla-catalogo td:last-child {
            border-right: none;
        }


    /* FILAS ALTERNADAS */

    .tabla-catalogo tbody tr:nth-child(even):not(.seleccionada) {
        background-color: #f8f9fb;
    }


/* ==========================================================
   FILA DEL CATÁLOGO
   ========================================================== */

.fila-catalogo {
    cursor: pointer;
    user-select: none;
    transition: background-color .1s ease;
}

    .fila-catalogo:hover:not(.seleccionada) {
        background-color: #e9eef5 !important;
    }


    /* ==========================================================
   SELECCIÓN TIPO EXCEL
   ========================================================== */

    .fila-catalogo.seleccionada {
        background-color: #cbdcf5 !important;
        outline: 2px solid #19253b;
        outline-offset: -2px;
    }

        .fila-catalogo.seleccionada td {
            background-color: #cbdcf5 !important;
            color: #111827;
            font-weight: 600;
        }


/* ==========================================================
   TOTAL DE REGISTROS
   ========================================================== */

.catalogo-total {
    margin-top: 12px;
    color: #667085;
    font-size: 13px;
}


/* ==========================================================
   CARGANDO
   ========================================================== */

.catalogo-cargando {
    padding: 30px;
    text-align: center;
    color: #667085;
}


/* ==========================================================
   EDITOR AGREGAR / EDITAR
   ========================================================== */

.catalogo-editor {
    margin-top: 20px;
    background-color: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    padding: 20px;
    max-width: 500px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
}

    .catalogo-editor h4 {
        color: #19253b;
        margin-top: 0;
        margin-bottom: 20px;
    }


/* CAMPOS DEL EDITOR */

.catalogo-campo {
    margin-bottom: 15px;
}

    .catalogo-campo label {
        display: block;
        margin-bottom: 5px;
        font-weight: 500;
        color: #1f2937;
    }

    .catalogo-campo input,
    .catalogo-campo select,
    .catalogo-campo textarea {
        width: 100%;
        box-sizing: border-box;
        padding: 8px 10px;
        border: 1px solid #cbd1d8;
        border-radius: 5px;
        outline: none;
        background-color: #ffffff;
        color: #1f2937;
        font-family: inherit;
        font-size: 14px;
    }

    .catalogo-campo textarea {
        resize: vertical;
        min-height: 80px;
    }

        .catalogo-campo input:focus,
        .catalogo-campo select:focus,
        .catalogo-campo textarea:focus {
            border-color: #19253b;
            box-shadow: 0 0 0 2px rgba(25, 37, 59, .15);
        }


/* BOTONES DEL EDITOR */

.catalogo-editor-botones {
    margin-top: 20px;
    display: flex;
    gap: 6px;
}


/* ==========================================================
   MENSAJES
   ========================================================== */

.mensaje-error {
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    padding: 10px 12px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.mensaje-exito {
    background-color: #dcfce7;
    border: 1px solid #bbf7d0;
    color: #166534;
    padding: 10px 12px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.mensaje-info {
    background-color: #dbeafe;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    padding: 10px 12px;
    border-radius: 5px;
    margin-bottom: 15px;
}


/* ==========================================================
   RESPONSIVO
   ========================================================== */

@media (max-width: 900px) {

    .catalogo-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .catalogo-buscador {
        width: 100%;
        box-sizing: border-box;
    }

    .catalogo-botones {
        width: 100%;
    }
}
    .empleado-editor {
        margin-top: 20px;
        background: #fff;
        border: 1px solid #dfe3e8;
        border-radius: 8px;
        padding: 22px;
        box-shadow: 0 2px 6px rgba(0,0,0,.06);
    }

        .empleado-editor h3 {
            margin-top: 0;
            color: #19253b;
            font-size: 22px;
        }

    .empleado-seccion {
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid #e5e7eb;
    }

        .empleado-seccion h4 {
            margin: 0 0 15px 0;
            color: #19253b;
            font-size: 17px;
        }

    .empleado-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(200px, 1fr));
        gap: 15px 20px;
    }

    .lectores-ayuda {
        color: #667085;
        margin-bottom: 12px;
        font-size: 14px;
    }

    .lectores-lista {
        display: grid;
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        gap: 8px;
    }

    .lector-item {
        display: flex;
        align-items: center;
        gap: 10px;
        border: 1px solid #d9dee5;
        border-radius: 5px;
        padding: 10px 12px;
        cursor: pointer;
        background: #fff;
    }

        .lector-item:hover {
            background: #f3f6fa;
        }

        .lector-item input {
            width: auto;
            margin: 0;
        }

    .horario-info {
        padding: 14px;
        background: #f8fafc;
        border: 1px solid #dfe3e8;
        border-radius: 6px;
        line-height: 1.8;
    }

    .horario-actual {
        margin-top: 8px;
        font-size: 16px;
        color: #19253b;
    }

    .horario-detalle {
        margin-top: 12px;
        margin-bottom: 0;
    }

    .horario-cambio {
        display: inline-block;
        margin-left: 7px;
        padding: 2px 6px;
        border-radius: 4px;
        background: #dbeafe;
        color: #1e40af;
        font-size: 11px;
        font-weight: 600;
    }

    .foto-empleado {
        display: flex;
        align-items: center;
        gap: 20px;
    }

    .foto-preview {
        width: 130px;
        height: 150px;
        object-fit: cover;
        border: 1px solid #cbd1d8;
        border-radius: 6px;
    }

    .foto-sin-imagen {
        width: 130px;
        height: 150px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        background: #f3f4f6;
        border: 1px dashed #aeb5bf;
        border-radius: 6px;
        color: #667085;
    }

    @media (max-width: 1100px) {

        .empleado-grid {
            grid-template-columns: repeat(2, minmax(200px, 1fr));
        }

        .lectores-lista {
            grid-template-columns: 1fr;
        }
    }

    @media (max-width: 700px) {

        .empleado-grid {
            grid-template-columns: 1fr;
        }
    }
    /* ============================================================
   HORARIOS
   ============================================================ */

    .horario-filtros {
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .horario-filtros select {
            height: 36px;
            min-width: 130px;
            padding: 5px 10px;
            border: 1px solid #c5cbd4;
            border-radius: 4px;
            background: white;
        }


    /* ============================================================
   EDITOR
   ============================================================ */

    .horario-editor {
        margin-top: 15px;
        padding: 18px;
        border: 1px solid #d4d9e1;
        border-radius: 6px;
        background: #f7f8fa;
    }

        .horario-editor h3 {
            margin-top: 0;
            margin-bottom: 18px;
        }


    /* ============================================================
   DATOS GENERALES DEL HORARIO
   ============================================================ */

    .horario-general-grid {
        display: grid;
        grid-template-columns: minmax(120px, 160px) minmax(280px, 2fr) minmax(150px, 220px);
        gap: 14px 18px;
        align-items: start;
        margin-bottom: 18px;
    }

    .catalogo-campo-ancho {
        min-width: 280px;
    }

    .horario-general-grid .catalogo-campo {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .horario-general-grid label {
        font-weight: 600;
    }

    .horario-general-grid input,
    .horario-general-grid select {
        box-sizing: border-box;
        width: 100%;
        height: 36px;
        padding: 6px 9px;
        border: 1px solid #c5cbd4;
        border-radius: 4px;
        background: white;
    }

    .horario-general-grid small {
        margin-top: 2px;
        color: #667085;
        font-size: 12px;
    }


    /* ============================================================
   REGLAS / TOLERANCIAS
   ============================================================ */

    .horario-reglas {
        margin: 12px 0 18px 0;
        padding: 14px 16px;
        border: 1px solid #d1d6de;
        border-radius: 5px;
        background: white;
    }

    .horario-reglas-titulo {
        margin-bottom: 12px;
        font-weight: 700;
        color: #19253b;
    }

    .horario-tolerancias {
        display: flex;
        flex-wrap: wrap;
        gap: 18px;
    }

        .horario-tolerancias .catalogo-campo {
            display: flex;
            flex-direction: column;
            gap: 5px;
            min-width: 150px;
        }

        .horario-tolerancias label {
            font-weight: 600;
        }

        .horario-tolerancias input {
            height: 34px;
            box-sizing: border-box;
            border: 1px solid #c5cbd4;
            border-radius: 4px;
            padding: 5px 8px;
        }


    /* ============================================================
   CAMPOS HH:mm
   ============================================================ */

    .campo-hora {
        width: 76px !important;
        min-width: 76px;
        height: 32px;
        box-sizing: border-box;
        padding: 4px 6px;
        text-align: center;
        font-family: inherit;
        font-size: 14px;
        border: 1px solid #bfc6d0;
        border-radius: 4px;
        background: white;
    }

        .campo-hora:focus {
            outline: 2px solid rgba(25, 37, 59, 0.18);
            border-color: #19253b;
        }


    /* ============================================================
   MENSAJE TIPO HORARIO
   ============================================================ */

    .horario-tipo-info {
        margin: 12px 0;
        padding: 10px 12px;
        border-left: 4px solid #19253b;
        background: #eef1f5;
    }


    /* ============================================================
   TABLA DE HORAS POR DÍA
   ============================================================ */

    .horario-tabla-contenedor {
        width: 100%;
        overflow-x: auto;
        margin-top: 10px;
        background: white;
        border: 1px solid #d5dae2;
        border-radius: 5px;
    }

    .horario-tabla {
        width: 100%;
        min-width: 700px;
        border-collapse: collapse;
    }

        .horario-tabla th {
            padding: 8px 7px;
            border-bottom: 1px solid #c7cdd6;
            background: #eef1f5;
            color: #19253b;
            text-align: center;
            white-space: nowrap;
        }

        .horario-tabla td {
            padding: 6px 7px;
            border-bottom: 1px solid #e1e4e9;
            vertical-align: middle;
            text-align: center;
        }

        .horario-tabla tbody tr:hover {
            background: #f7f8fa;
        }

    .horario-dia {
        min-width: 90px;
        font-weight: 600;
        text-align: left !important;
    }

    .horario-horas {
        min-width: 80px;
        font-weight: 700;
        white-space: nowrap;
    }


    /* ============================================================
   HORARIO NOCTURNO
   ============================================================ */

    .horario-nocturno {
        display: inline-block;
        margin-left: 5px;
        padding: 2px 5px;
        border-radius: 3px;
        background: #e7eaf0;
        color: #19253b;
        font-size: 10px;
        font-weight: 600;
    }


    /* ============================================================
   BOTÓN NO LABORA
   ============================================================ */

    .btn-horario-limpiar {
        padding: 5px 9px;
        border: 1px solid #19253b;
        border-radius: 4px;
        background: white;
        color: #19253b;
        cursor: pointer;
        white-space: nowrap;
    }

        .btn-horario-limpiar:hover {
            background: #19253b;
            color: white;
        }


    /* ============================================================
   TOTAL SEMANAL
   ============================================================ */

    .horario-total-label {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        font-weight: 700;
        text-align: right !important;
        background: #f1f3f6;
    }

    .horario-total-horas {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
        font-size: 16px;
        font-weight: 700;
        background: #f1f3f6;
    }


    /* ============================================================
   AYUDA
   ============================================================ */

    .horario-ayuda {
        margin-top: 12px;
        padding: 8px 10px;
        color: #475467;
        font-size: 13px;
    }


    /* ============================================================
   CONFIRMACIÓN BORRADO
   ============================================================ */

    .catalogo-confirmacion {
        margin: 12px 0;
        padding: 12px 14px;
        border: 1px solid #d2d6dc;
        border-radius: 5px;
        background: #f6f7f9;
    }

        .catalogo-confirmacion .btn-puntual {
            margin-left: 8px;
        }


    /* ============================================================
   RESPONSIVE
   ============================================================ */

    @media (max-width: 1050px) {

        .horario-general-grid {
            grid-template-columns: repeat(2, minmax(200px, 1fr));
        }
    }


    @media (max-width: 700px) {

        .horario-general-grid {
            grid-template-columns: 1fr;
        }

        .horario-tolerancias {
            flex-direction: column;
        }

            .horario-tolerancias .catalogo-campo {
                width: 100%;
            }

        .catalogo-campo-ancho {
            min-width: 0;
        }
    }
    /* ============================================================
   INCAPACIDADES
   ============================================================ */

    .disability-editor {
        margin-top: 15px;
        padding: 18px;
        border: 1px solid #d4d9e1;
        border-radius: 6px;
        background: #f7f8fa;
    }

        .disability-editor h3 {
            margin-top: 0;
            margin-bottom: 16px;
            color: #19253b;
        }


    /* ============================================================
   FOLIO
   ============================================================ */

    .disability-folio {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 18px;
        padding: 10px 12px;
        border-left: 4px solid #19253b;
        background: #eef1f5;
    }

        .disability-folio span {
            font-weight: 600;
        }

        .disability-folio strong {
            font-size: 15px;
            color: #19253b;
        }


    /* ============================================================
   DATOS GENERALES
   ============================================================ */

    .disability-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(180px, 1fr));
        gap: 15px 18px;
        margin-bottom: 16px;
    }

        .disability-grid .catalogo-campo {
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .disability-grid label {
            font-weight: 600;
        }

        .disability-grid input[type="text"],
        .disability-grid input[type="date"],
        .disability-grid select {
            box-sizing: border-box;
            width: 100%;
            height: 36px;
            padding: 6px 9px;
            border: 1px solid #c5cbd4;
            border-radius: 4px;
            background: white;
        }

        .disability-grid input:disabled {
            background: #eceff3;
            color: #7a8190;
        }


    /* ============================================================
   CHECK DÍA COMPLETO
   ============================================================ */
    .catalogo-campo label.disability-check-inline {
        display: inline-flex;
        align-items: center;
        justify-content: flex-start;
        gap: 7px;
        height: 36px;
        margin: 0;
        cursor: pointer;
        font-weight: 600;
    }

        .catalogo-campo label.disability-check-inline input[type="checkbox"] {
            width: 18px !important;
            height: 18px !important;
            margin: 0 !important;
            flex: 0 0 auto;
            cursor: pointer;
        }



    /* ============================================================
   CAMPO HH:mm
   Puede coexistir con el de Horarios
   ============================================================ */

    .disability-grid .campo-hora {
        width: 90px !important;
        max-width: 90px;
        text-align: center;
    }


    /* ============================================================
   VALORES CALCULADOS
   ============================================================ */

    .disability-calculado {
        display: flex;
        align-items: center;
        min-height: 36px;
        padding: 6px 10px;
        box-sizing: border-box;
        border: 1px solid #d5dae2;
        border-radius: 4px;
        background: #eef1f5;
        font-weight: 700;
        color: #19253b;
    }


    /* ============================================================
   OPCIONES
   ============================================================ */

    .disability-opciones {
        display: flex;
        flex-wrap: wrap;
        gap: 25px;
        margin: 12px 0 18px 0;
        padding: 12px 14px;
        border: 1px solid #d5dae2;
        border-radius: 5px;
        background: white;
    }

        .disability-opciones label {
            display: flex;
            align-items: center;
            gap: 7px;
            font-weight: 600;
            cursor: pointer;
        }

        .disability-opciones input[type="checkbox"] {
            width: 18px;
            height: 18px;
        }


    /* ============================================================
   RAZÓN
   ============================================================ */

    .disability-razon {
        display: flex;
        flex-direction: column;
        gap: 6px;
        margin-bottom: 20px;
    }

        .disability-razon label {
            font-weight: 600;
        }

        .disability-razon textarea {
            width: 100%;
            min-height: 85px;
            box-sizing: border-box;
            resize: vertical;
            padding: 8px 10px;
            border: 1px solid #c5cbd4;
            border-radius: 4px;
            font-family: inherit;
            background: white;
        }


    /* ============================================================
   ENCABEZADO EMPLEADOS
   ============================================================ */

    .disability-empleados-header {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 10px;
        margin-bottom: 8px;
    }

        .disability-empleados-header h4 {
            margin: 0;
            margin-right: auto;
            color: #19253b;
        }

        .disability-empleados-header .catalogo-buscador {
            min-width: 280px;
        }

            .disability-empleados-header .catalogo-buscador input {
                width: 100%;
                box-sizing: border-box;
            }

    .disability-seleccionados {
        padding: 5px 9px;
        border-radius: 4px;
        background: #eef1f5;
        color: #19253b;
        font-weight: 700;
    }


    /* ============================================================
   TABLA EMPLEADOS
   ============================================================ */

    .disability-empleados-contenedor {
        width: 100%;
        max-height: 350px;
        overflow: auto;
        border: 1px solid #d5dae2;
        border-radius: 5px;
        background: white;
    }

    .disability-empleados-tabla {
        width: 100%;
        min-width: 900px;
        border-collapse: collapse;
    }

        .disability-empleados-tabla thead {
            position: sticky;
            top: 0;
            z-index: 2;
        }

        .disability-empleados-tabla th {
            padding: 8px 7px;
            border-bottom: 1px solid #c7cdd6;
            background: #eef1f5;
            color: #19253b;
            text-align: left;
            white-space: nowrap;
        }

        .disability-empleados-tabla td {
            padding: 6px 7px;
            border-bottom: 1px solid #e1e4e9;
            vertical-align: middle;
        }

        .disability-empleados-tabla tbody tr:hover {
            background: #f5f7f9;
        }

        .disability-empleados-tabla input[type="checkbox"] {
            width: 17px;
            height: 17px;
            cursor: pointer;
        }

        .disability-empleados-tabla th:first-child,
        .disability-empleados-tabla td:first-child {
            width: 40px;
            text-align: center;
        }


        /* ============================================================
   EMPLEADO SELECCIONADO
   ============================================================ */

        .disability-empleados-tabla
        .empleado-seleccionado {
            background: #edf1f6;
        }

            .disability-empleados-tabla
            .empleado-seleccionado:hover {
                background: #e5eaf1;
            }


    /* ============================================================
   AYUDA
   ============================================================ */

    .disability-ayuda {
        margin-top: 12px;
        padding: 9px 11px;
        border-left: 3px solid #19253b;
        background: #eef1f5;
        color: #475467;
        font-size: 12px;
    }


    /* ============================================================
   RESPONSIVE
   ============================================================ */

    @media (max-width: 1050px) {

        .disability-grid {
            grid-template-columns: repeat(2, minmax(180px, 1fr));
        }
    }


    @media (max-width: 700px) {

        .disability-grid {
            grid-template-columns: 1fr;
        }

        .disability-opciones {
            flex-direction: column;
            gap: 10px;
        }

        .disability-empleados-header {
            align-items: stretch;
            flex-direction: column;
        }

            .disability-empleados-header h4 {
                margin-right: 0;
            }

            .disability-empleados-header
            .catalogo-buscador {
                width: 100%;
                min-width: 0;
            }
    }

/* ============================================================
   PERMISOS CON / SIN SUELDO
   ============================================================ */

.perm-editor {
    margin-top: 15px;
    padding: 18px;
    border: 1px solid #d4d9e1;
    border-radius: 6px;
    background: #f7f8fa;
}

    .perm-editor h3 {
        margin-top: 0;
        margin-bottom: 16px;
        color: #19253b;
    }


/* ============================================================
   FOLIO
   ============================================================ */

.perm-folio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 12px;
    border-left: 4px solid #19253b;
    background: #eef1f5;
}

    .perm-folio span {
        font-weight: 600;
    }

    .perm-folio strong {
        color: #19253b;
    }


/* ============================================================
   DATOS GENERALES
   ============================================================ */

.perm-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 15px 18px;
    align-items: start;
    margin-bottom: 15px;
}

    .perm-grid .catalogo-campo {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

        .perm-grid .catalogo-campo label {
            font-weight: 600;
        }

    .perm-grid input[type="text"],
    .perm-grid input[type="date"],
    .perm-grid select {
        width: 100%;
        height: 36px;
        box-sizing: border-box;
        padding: 6px 9px;
        border: 1px solid #c5cbd4;
        border-radius: 4px;
        background: white;
    }

    .perm-grid input:disabled {
        background: #eceff3;
        color: #7a8190;
    }


/* ============================================================
   CHECKBOX INLINE
   ============================================================ */

.catalogo-campo .perm-check-inline {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: auto !important;
    height: 36px;
    margin: 0 !important;
    cursor: pointer;
    font-weight: 600;
}

    .catalogo-campo
    .perm-check-inline
    input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto;
    }


/* ============================================================
   HORAS
   ============================================================ */

.perm-grid .campo-hora {
    width: 90px !important;
    min-width: 90px;
    max-width: 90px;
    text-align: center;
}


/* ============================================================
   JUSTIFICACIÓN
   ============================================================ */

.perm-justificacion {
    grid-column: span 2;
}


/* ============================================================
   RAZÓN
   ============================================================ */

.perm-razon {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

    .perm-razon label {
        font-weight: 600;
    }

    .perm-razon textarea {
        width: 100%;
        min-height: 90px;
        box-sizing: border-box;
        padding: 8px 10px;
        resize: vertical;
        border: 1px solid #c5cbd4;
        border-radius: 4px;
        background: white;
        font-family: inherit;
    }


/* ============================================================
   ENCABEZADO EMPLEADOS
   ============================================================ */

.perm-empleados-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0 8px 0;
}

    .perm-empleados-header h4 {
        margin: 0;
        margin-right: auto;
        color: #19253b;
    }

    .perm-empleados-header .catalogo-buscador {
        min-width: 280px;
    }

        .perm-empleados-header
        .catalogo-buscador input {
            width: 100%;
        }

.perm-seleccionados {
    padding: 5px 9px;
    border-radius: 4px;
    background: #eef1f5;
    color: #19253b;
    font-weight: 700;
}


/* ============================================================
   TABLA EMPLEADOS
   ============================================================ */

.perm-empleados-contenedor {
    width: 100%;
    max-height: 350px;
    overflow: auto;
    border: 1px solid #d5dae2;
    border-radius: 5px;
    background: white;
}

.perm-empleados-tabla {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
}

    .perm-empleados-tabla thead {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .perm-empleados-tabla th {
        padding: 8px 7px;
        border-bottom: 1px solid #c7cdd6;
        background: #eef1f5;
        color: #19253b;
        text-align: left;
        white-space: nowrap;
    }

    .perm-empleados-tabla td {
        padding: 6px 7px;
        border-bottom: 1px solid #e1e4e9;
        vertical-align: middle;
    }

    .perm-empleados-tabla tbody tr:hover {
        background: #f5f7f9;
    }

    .perm-empleados-tabla
    input[type="checkbox"] {
        width: 17px;
        height: 17px;
        cursor: pointer;
    }

    .perm-empleados-tabla th:first-child,
    .perm-empleados-tabla td:first-child {
        width: 40px;
        text-align: center;
    }

    .perm-empleados-tabla
    .empleado-seleccionado {
        background: #edf1f6;
    }


/* ============================================================
   RAZÓN EN LISTA
   ============================================================ */

.perm-reason-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1150px) {

    .perm-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}


@media (max-width: 700px) {

    .perm-grid {
        grid-template-columns: 1fr;
    }

    .perm-justificacion {
        grid-column: span 1;
    }

    .perm-empleados-header {
        flex-direction: column;
        align-items: stretch;
    }

        .perm-empleados-header h4 {
            margin-right: 0;
        }

        .perm-empleados-header
        .catalogo-buscador {
            width: 100%;
            min-width: 0;
        }
}
/* ============================================================
   RENGLÓN SELECCIONADO
   Incapacidades / Permisos con sueldo / Permisos sin sueldo
   ============================================================ */

.tabla-catalogo tbody tr {
    cursor: pointer;
}

    .tabla-catalogo tbody tr:hover td {
        background-color: #eef2f7 !important;
    }

    .tabla-catalogo tbody tr.seleccionado td,
    .tabla-catalogo tbody tr.seleccionado:hover td {
        background-color: #cbd6e6 !important;
        color: #19253b !important;
        font-weight: 600;
    }

        .tabla-catalogo tbody tr.seleccionado td:first-child {
            border-left: 5px solid #19253b !important;
        }

/* ============================================================
   AUTORIZACIÓN DE TIEMPO EXTRA
   ============================================================ */

.extra-editor {
    margin-top: 15px;
}

    .extra-editor h3 {
        margin-top: 0;
        color: #19253b;
    }

.extra-folio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 12px;
    background-color: #f3f5f8;
    border: 1px solid #d4d8df;
    border-radius: 4px;
}

    .extra-folio span {
        font-weight: 600;
    }

    .extra-folio strong {
        color: #19253b;
    }

.extra-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(140px, 1fr));
    gap: 14px;
    align-items: end;
    margin-bottom: 14px;
}

.extra-causa {
    grid-column: span 2;
}

.extra-calculado {
    display: flex;
    align-items: center;
    height: 36px;
    padding: 6px 10px;
    background-color: #f3f5f8;
    border: 1px solid #c8cdd5;
    border-radius: 4px;
    font-weight: 600;
    color: #19253b;
}

.extra-razon {
    margin-top: 10px;
    margin-bottom: 20px;
}

    .extra-razon textarea {
        width: 100%;
        resize: vertical;
        min-height: 80px;
    }

.extra-empleados-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 15px;
    margin-bottom: 8px;
}

    .extra-empleados-header h4 {
        margin: 0;
        color: #19253b;
    }

    .extra-empleados-header .catalogo-buscador {
        flex: 1;
        max-width: 400px;
    }

.extra-seleccionados {
    margin-left: auto;
    font-weight: 600;
    color: #19253b;
}

.extra-empleados-contenedor {
    width: 100%;
    overflow-x: auto;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #c8cdd5;
}

.extra-empleados-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .extra-empleados-tabla thead {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .extra-empleados-tabla th {
        padding: 8px;
        text-align: left;
        background-color: #19253b;
        color: white;
        border: 1px solid #35445c;
        white-space: nowrap;
    }

    .extra-empleados-tabla td {
        padding: 7px 8px;
        border: 1px solid #d8dce2;
    }

    .extra-empleados-tabla tbody tr {
        cursor: pointer;
    }

        .extra-empleados-tabla tbody tr:hover td {
            background-color: #eef2f7;
        }

        .extra-empleados-tabla tbody tr.empleado-seleccionado td {
            background-color: #cbd6e6 !important;
            color: #19253b;
            font-weight: 600;
        }

    .extra-empleados-tabla input[type="checkbox"] {
        width: 17px;
        height: 17px;
        cursor: pointer;
    }

@media (max-width: 1100px) {

    .extra-grid {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
    }

    .extra-causa {
        grid-column: span 2;
    }
}

@media (max-width: 700px) {

    .extra-grid {
        grid-template-columns: 1fr;
    }

    .extra-causa {
        grid-column: auto;
    }

    .extra-empleados-header {
        flex-direction: column;
        align-items: stretch;
    }

    .extra-seleccionados {
        margin-left: 0;
    }
}
/* ============================================================
   CAMBIO DE HORARIO
   ============================================================ */

.switch-editor {
    margin-top: 15px;
}

    .switch-editor h3 {
        margin-top: 0;
        color: #19253b;
    }

.switch-folio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 10px 12px;
    background-color: #f3f5f8;
    border: 1px solid #d4d8df;
    border-radius: 4px;
}

    .switch-folio span {
        font-weight: 600;
    }

    .switch-folio strong {
        color: #19253b;
    }

.switch-grid {
    display: grid;
    grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr) minmax(280px, 2fr);
    gap: 14px;
    align-items: end;
    margin-bottom: 16px;
}

.catalogo-campo .switch-check-inline {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: auto !important;
    height: 36px;
    margin: 0 !important;
    font-weight: 600;
    cursor: pointer;
}

    .catalogo-campo .switch-check-inline input[type="checkbox"] {
        width: 18px !important;
        height: 18px !important;
        margin: 0 !important;
        padding: 0 !important;
        flex: 0 0 auto;
        cursor: pointer;
    }

.switch-horario select {
    width: 100%;
}

.switch-razon {
    margin-top: 10px;
    margin-bottom: 20px;
}

    .switch-razon textarea {
        width: 100%;
        resize: vertical;
        min-height: 80px;
    }

.switch-empleados-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 15px;
    margin-bottom: 8px;
}

    .switch-empleados-header h4 {
        margin: 0;
        color: #19253b;
    }

    .switch-empleados-header .catalogo-buscador {
        flex: 1;
        max-width: 400px;
    }

.switch-seleccionados {
    margin-left: auto;
    font-weight: 600;
    color: #19253b;
}

.switch-empleados-contenedor {
    width: 100%;
    max-height: 350px;
    overflow: auto;
    border: 1px solid #c8cdd5;
}

.switch-empleados-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .switch-empleados-tabla thead {
        position: sticky;
        top: 0;
        z-index: 2;
    }

    .switch-empleados-tabla th {
        padding: 8px;
        text-align: left;
        background-color: #19253b;
        color: white;
        border: 1px solid #35445c;
        white-space: nowrap;
    }

    .switch-empleados-tabla td {
        padding: 7px 8px;
        border: 1px solid #d8dce2;
    }

    .switch-empleados-tabla tbody tr {
        cursor: pointer;
    }

        .switch-empleados-tabla tbody tr:hover td {
            background-color: #eef2f7;
        }

        .switch-empleados-tabla tbody tr.empleado-seleccionado td {
            background-color: #cbd6e6 !important;
            color: #19253b;
            font-weight: 600;
        }

    .switch-empleados-tabla input[type="checkbox"] {
        width: 17px;
        height: 17px;
        cursor: pointer;
    }

.switch-reason-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1050px) {

    .switch-grid {
        grid-template-columns: repeat(2, minmax(180px, 1fr));
    }
}

@media (max-width: 700px) {

    .switch-grid {
        grid-template-columns: 1fr;
    }

    .switch-empleados-header {
        flex-direction: column;
        align-items: stretch;
    }

    .switch-seleccionados {
        margin-left: 0;
    }
}
/* =========================================
   ROLES DE USUARIO
   ========================================= */

.roles-editor {
    background: #ffffff;
    border: 1px solid #d7dde6;
    border-radius: 8px;
    padding: 22px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.roles-editor-header {
    margin-bottom: 18px;
}

    .roles-editor-header h3 {
        margin: 0;
        font-size: 18px;
        color: #19253b;
    }

.roles-datos {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 18px;
    align-items: end;
}

.roles-campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .roles-campo label {
        font-size: 13px;
        font-weight: 600;
        color: #344054;
    }

    .roles-campo input[type="text"] {
        width: 100%;
        height: 36px;
        border: 1px solid #cbd3df;
        border-radius: 4px;
        padding: 6px 9px;
        font-size: 14px;
    }

        .roles-campo input[type="text"]:focus {
            outline: none;
            border-color: #19253b;
            box-shadow: 0 0 0 2px rgba(25, 37, 59, 0.10);
        }

.roles-campo-activo {
    justify-content: flex-end;
}

.roles-check-activo {
    height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .roles-check-activo input {
        width: 17px;
        height: 17px;
    }

.roles-separador {
    height: 1px;
    background: #d7dde6;
    margin: 24px 0;
}

.roles-privilegios-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 20px;
}

    .roles-privilegios-header h3 {
        margin: 0 0 4px 0;
        font-size: 18px;
        color: #19253b;
    }

    .roles-privilegios-header p {
        margin: 0;
        font-size: 13px;
        color: #667085;
    }

.roles-acciones-permisos {
    display: flex;
    gap: 8px;
}

.roles-grupos {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 16px;
}

.roles-grupo {
    border: 1px solid #d7dde6;
    border-radius: 6px;
    background: #ffffff;
    overflow: hidden;
}

.roles-grupo-header {
    background: #19253b;
    color: #ffffff;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 14px;
}

.roles-grupo-acciones {
    display: flex;
    gap: 6px;
}

    .roles-grupo-acciones button {
        border: 1px solid rgba(255,255,255,0.45);
        background: transparent;
        color: #ffffff;
        border-radius: 3px;
        padding: 2px 7px;
        font-size: 11px;
        cursor: pointer;
    }

        .roles-grupo-acciones button:hover {
            background: rgba(255,255,255,0.12);
        }

.roles-opciones {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 4px 14px;
    padding: 14px;
}

.roles-opcion {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 4px 6px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    color: #344054;
}

    .roles-opcion:hover {
        background: #f1f4f8;
    }

    .roles-opcion input[type="checkbox"] {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        cursor: pointer;
    }

@media (max-width: 1000px) {
    .roles-datos {
        grid-template-columns: 1fr 1fr;
    }

    .roles-grupos {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .roles-datos {
        grid-template-columns: 1fr;
    }

    .roles-privilegios-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .roles-opciones {
        grid-template-columns: 1fr;
    }
}
.catalogo-mensaje {
    margin-top: 12px;
    margin-bottom: 10px;
    padding: 10px 14px;
    border-radius: 6px;
    font-weight: 600;
}

.catalogo-mensaje-exito {
    background-color: #d1e7dd;
    color: #0f5132;
    border: 1px solid #badbcc;
}

.catalogo-mensaje-error {
    background-color: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
}
/* =========================================================
   CENTRO DE REPORTES
   ========================================================= */

.reportes-container {
    padding: 25px;
    width: 100%;
}

.reportes-header {
    margin-bottom: 25px;
}

    .reportes-header h2 {
        margin: 0;
        color: #172238;
        font-size: 28px;
        font-weight: 700;
    }

    .reportes-header p {
        margin: 6px 0 0 0;
        color: #6c757d;
        font-size: 14px;
    }


/* CONTENEDOR DE TARJETAS */

.reportes-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 1fr));
    gap: 22px;
    align-items: start;
}


/* TARJETA */

.reporte-card {
    background: #ffffff;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .reporte-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
    }


/* ENCABEZADO DE TARJETA */

.reporte-card-header {
    background-color: #172238;
    color: #ffffff;
    min-height: 58px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .reporte-card-header h3 {
        margin: 0;
        color: #ffffff;
        font-size: 18px;
        font-weight: 600;
    }

.reporte-icono {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}


/* CUERPO */

.reporte-card-body {
    padding: 5px 0;
}


/* OPCIONES DE REPORTE */

.reporte-opcion {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 20px;
    color: #26364f;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #eeeeee;
    transition: background-color 0.15s ease, padding-left 0.15s ease;
}

    .reporte-opcion:last-child {
        border-bottom: none;
    }

    .reporte-opcion::before {
        content: "›";
        margin-right: 10px;
        color: #172238;
        font-size: 20px;
        font-weight: bold;
    }

    .reporte-opcion:hover {
        background-color: #f3f6fa;
        color: #172238;
        padding-left: 25px;
    }


/* RESPONSIVE */

@media (max-width: 900px) {

    .reportes-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   REPORTES
   ========================================================= */

.report-page {
    padding: 24px;
    background: #f5f7fa;
    min-height: 100vh;
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .report-header h2 {
        margin: 0;
        font-size: 28px;
    }

    .report-header p {
        margin: 5px 0 0 0;
        color: #666;
    }


/* TARJETAS */

.report-card {
    background: white;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    margin-bottom: 18px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}

.report-card-title {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
    background: #f7f7f7;
}

.report-card-body {
    padding: 16px;
}


/* FILTROS */

.report-filter-row {
    display: flex;
    gap: 12px;
    align-items: end;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.report-filter-field {
    min-width: 190px;
    flex: 1;
}

.report-filter-operator {
    min-width: 150px;
}

.report-filter-value {
    min-width: 180px;
}

.report-filter-delete {
    width: 45px;
}

.report-filter-row label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.report-filter-buttons {
    margin-top: 10px;
    display: flex;
    gap: 8px;
}


/* CAMPOS */

.report-columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.report-column-check {
    display: flex;
    align-items: center;
    gap: 7px;
}

.report-column-actions {
    margin-top: 15px;
    display: flex;
    gap: 8px;
}


/* BOTONES */

.btn-report-primary,
.btn-report-secondary,
.btn-report-delete {
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

.btn-report-primary {
    padding: 9px 18px;
    border: none;
    background: #212529;
    color: white;
}

    .btn-report-primary:hover {
        background: #343a40;
    }

.btn-report-secondary {
    padding: 8px 14px;
    border: 1px solid #bbb;
    background: white;
    color: #222;
    text-decoration: none;
}

    .btn-report-secondary:hover {
        background: #eeeeee;
    }

.btn-report-delete {
    width: 36px;
    height: 36px;
    border: 1px solid #c6c6c6;
    background: white;
    font-size: 20px;
}

    .btn-report-delete:hover {
        background: #f1f1f1;
    }


/* ACCIONES */

.report-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}


/* TABLA */

.report-table-container {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

    .report-table th,
    .report-table td {
        padding: 9px 10px;
        border: 1px solid #d5d5d5;
        text-align: left;
        white-space: nowrap;
    }

    .report-table th {
        background: #2f343a;
        color: white;
        font-weight: 600;
    }

    .report-table tbody tr:nth-child(even) {
        background: #f8f8f8;
    }

    .report-table tbody tr:hover {
        background: #ececec;
    }


/* RESULTADOS */

.report-results-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.report-count {
    font-size: 13px;
    font-weight: normal;
    color: #666;
}

.report-no-results,
.report-empty-filter {
    padding: 12px;
    color: #666;
}


/* CONTROLES */

.report-page .form-control,
.report-page .form-select {
    width: 100%;
    padding: 7px 9px;
    border: 1px solid #bfc4c9;
    border-radius: 5px;
    background: white;
    font-size: 14px;
}
/* =========================================================
   SELECTOR MÚLTIPLE DE REPORTES
   ========================================================= */

.report-filter-container {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

    .report-filter-container:last-of-type {
        border-bottom: none;
    }

.report-filter-text {
    flex: 2;
}

.report-filter-summary {
    min-width: 180px;
}

.multi-summary {
    height: 38px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #bfc4c9;
    border-radius: 5px;
    background: #f8f9fa;
    font-size: 14px;
}

.multi-select-panel {
    margin-top: 8px;
    margin-left: 0;
    padding: 12px;
    border: 1px solid #d7dce1;
    border-radius: 6px;
    background: #fafbfc;
}

.multi-search {
    max-width: 500px;
    margin-bottom: 8px;
}

.multi-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.multi-action-button {
    padding: 5px 10px;
    border: 1px solid #bfc4c9;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 12px;
}

    .multi-action-button:hover {
        background: #eeeeee;
    }

.multi-options {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #d7dce1;
    background: white;
}

.multi-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    margin: 0;
    border-bottom: 1px solid #eeeeee;
    cursor: pointer;
    font-size: 13px;
}

    .multi-option:last-child {
        border-bottom: none;
    }

    .multi-option:hover {
        background: #f1f3f5;
    }

    .multi-option input {
        margin: 0;
    }

.multi-no-results {
    padding: 12px;
    color: #777;
    font-size: 13px;
}

.multi-selected {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 12px;
}

.multi-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 7px;
    border: 1px solid #c8ccd0;
    border-radius: 4px;
    background: white;
}

.multi-tag button {
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
}
/* =========================================================
   REPORTE ENTRADAS / SALIDAS
   SELECCION MULTIPLE
   ========================================================= */

.report-filter-container {
    margin-bottom: 16px;
}

    .report-filter-container + .report-filter-container {
        padding-top: 16px;
        border-top: 1px solid #e3e6e8;
    }


/* =========================================================
   MENSAJE EN LUGAR DEL OPERADOR
   ========================================================= */

.report-filter-message {
    min-width: 210px;
}

    .report-filter-message label {
        display: block;
        font-size: 13px;
        font-weight: 600;
        margin-bottom: 4px;
    }

.filter-help-text {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #d7dce1;
    border-radius: 5px;
    background: #f8f9fa;
    color: #666;
    font-size: 13px;
}


/* =========================================================
   RESUMEN DE SELECCION
   ========================================================= */

.multi-summary {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border: 1px solid #bfc4c9;
    border-radius: 5px;
    background: #f8f9fa;
    color: #333;
    font-size: 14px;
}


/* =========================================================
   PANEL DE SELECCION MULTIPLE
   ========================================================= */

.multi-select-panel {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid #d7dce1;
    border-radius: 6px;
    background: #fafbfc;
    box-sizing: border-box;
}


/* =========================================================
   BUSCADOR
   ========================================================= */

.multi-search {
    width: 100%;
    margin-bottom: 10px;
}

    .multi-search .form-control {
        width: 100%;
    }


/* =========================================================
   LISTA DE OPCIONES
   ========================================================= */

.multi-options {
    display: block;
    width: 100%;
    max-height: 260px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid #d7dce1;
    border-radius: 5px;
    background: white;
    box-sizing: border-box;
}


/* =========================================================
   CADA ELEMENTO DE LA LISTA
   ========================================================= */

.multi-option {
    display: flex !important;
    width: 100%;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    margin: 0;
    border-bottom: 1px solid #eeeeee;
    cursor: pointer;
    font-size: 13px;
    box-sizing: border-box;
}

    .multi-option:last-child {
        border-bottom: none;
    }

    .multi-option:hover {
        background: #f1f3f5;
    }

    .multi-option input[type="checkbox"] {
        flex: 0 0 auto;
        width: 16px;
        height: 16px;
        margin: 0;
        cursor: pointer;
    }

    .multi-option span {
        display: block;
        flex: 1;
        min-width: 0;
    }


/* =========================================================
   SIN RESULTADOS EN BUSQUEDA
   ========================================================= */

.multi-no-results {
    padding: 14px;
    color: #777;
    font-size: 13px;
    text-align: center;
}


/* =========================================================
   BOTONES DEL SELECTOR MULTIPLE
   ========================================================= */

.multi-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.multi-action-button {
    padding: 6px 12px;
    border: 1px solid #bfc4c9;
    border-radius: 5px;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 12px;
}

    .multi-action-button:hover {
        background: #eeeeee;
    }


/* =========================================================
   ELEMENTOS SELECCIONADOS
   ========================================================= */

.multi-selected {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e1e4e6;
    font-size: 12px;
}

    .multi-selected strong {
        margin-right: 4px;
    }


/* =========================================================
   ETIQUETAS DE ELEMENTOS SELECCIONADOS
   ========================================================= */

.multi-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 7px;
    border: 1px solid #c8ccd0;
    border-radius: 4px;
    background: white;
    color: #333;
}

    .multi-tag button {
        border: none;
        background: transparent;
        color: #666;
        padding: 0;
        margin: 0;
        cursor: pointer;
        font-size: 16px;
        line-height: 1;
    }

        .multi-tag button:hover {
            color: #000;
        }


/* =========================================================
   BOTON CONSULTAR DESHABILITADO
   ========================================================= */

.btn-report-primary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}


/* =========================================================
   EVITAR DOBLE CLICK MIENTRAS CONSULTA
   ========================================================= */

.report-actions .btn-report-primary:disabled {
    background: #6c757d;
}


/* =========================================================
   AJUSTE RESPONSIVO
   ========================================================= */

@media (max-width: 900px) {

    .report-filter-row {
        align-items: stretch;
    }

    .report-filter-field,
    .report-filter-operator,
    .report-filter-message,
    .report-filter-value {
        width: 100%;
        min-width: 100%;
    }

    .report-filter-delete {
        width: auto;
    }

    .multi-options {
        max-height: 220px;
    }
}
/* Botones secundarios deshabilitados */
.btn-report-secondary:disabled,
.btn-report-delete:disabled,
.multi-action-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.report-actions .btn-report-secondary:disabled {
    background: #e5e7eb;
    color: #8a8f98;
    border-color: #cfd3d8;
}
.dashboard-logo {
    margin-bottom: 5px;
}

    .dashboard-logo img {
        width: 96px;
        height: 96px;
        object-fit: contain;
        background: transparent;
        display: block;
    }
.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 2px;
}

.brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    background: transparent;
}
/* =========================================================
   AVISOS DE LICENCIA
   ========================================================= */

.license-warning {
    margin: 14px 10px;
    padding: 10px 11px;
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 9px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
}


/* =========================================================
   ICONO
   ========================================================= */

.license-warning-icon {
    font-size: 21px;
    font-weight: bold;
    line-height: 1;
    padding-top: 1px;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.license-warning-content {
    flex: 1;
    min-width: 0;
}


.license-warning-title {
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 3px;
}


.license-warning-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}


    .license-warning-text strong {
        font-weight: 800;
    }


.license-warning-subtext {
    font-size: 10px;
    margin-top: 4px;
    line-height: 1.3;
}


/* =========================================================
   30 - 8 DÍAS
   AMARILLO / ÁMBAR
   ========================================================= */

.license-warning-yellow {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-left: 5px solid #ffb300;
    color: #664d03;
}


    .license-warning-yellow .license-warning-icon {
        color: #ff9800;
    }


/* =========================================================
   7 - 1 DÍAS
   NARANJA FUERTE
   ========================================================= */

.license-warning-orange {
    background: #ffe0b2;
    border: 1px solid #ff9800;
    border-left: 5px solid #f57c00;
    color: #7a3500;
}


    .license-warning-orange .license-warning-icon {
        color: #f57c00;
    }


/* =========================================================
   PERIODO DE GRACIA
   ROJO
   ========================================================= */

.license-warning-red {
    background: #f8d7da;
    border: 1px solid #dc3545;
    border-left: 5px solid #b71c1c;
    color: #842029;
}


    .license-warning-red .license-warning-icon {
        color: #dc3545;
    }