*{
    box-sizing:border-box;
}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:#eef1f6;
    color:#1f2933;
}

/* TOPBAR */

.topbar{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    align-items:center;
    background:#2d2c73;
    padding:14px 25px;
    border-bottom:1px solid rgba(255,255,255,0.08);
}

.topbar-izquierda{
    text-align:left;
}

.topbar-centro{
    display:flex;
    justify-content:center;
    align-items:center;
}

.topbar-derecha{
    display:flex;
    justify-content:flex-end;
    align-items:center;
}

.titulo-app{
    color:#ffffff;
    font-size:32px;
    font-weight:900;
    letter-spacing:1px;
    line-height:1.1;
}

.subtitulo-app{
    color:#dfe4ff;
    font-size:14px;
    margin-top:4px;
    font-weight:500;
}

.logo-portal{
    height:80px;
    max-width:300px;
    object-fit:contain;
}

.usuario-top{
    background:rgba(255,255,255,0.15);
    color:white;
    padding:10px 18px;
    border-radius:10px;
    min-width:180px;
    text-align:center;
    font-weight:700;
}

.usuario-top span{
    display:block;
    margin-top:4px;
    color:#dfe4ff;
    font-size:12px;
}

/* MENU */

.menu{
    background:#ffffff;
    padding:0 28px;
    border-bottom:1px solid #d7dce5;
    box-shadow:0 2px 4px rgba(0,0,0,0.05);
}

.menu a{
    display:inline-block;
    padding:16px 14px;
    color:#1f3268;
    text-decoration:none;
    font-weight:bold;
    border-bottom:3px solid transparent;
}

.menu a:hover{
    background:#f3f5fa;
    border-bottom:3px solid #1f3268;
}

.menu .salir{
    color:#b00020;
}

/* ESTRUCTURA */

.contenedor{
    max-width:1500px;
    margin:25px auto;
    padding:20px 30px;
}

.footer{
    background:white;
    border-top:1px solid #dfe3ea;
    padding:12px 25px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    color:#666;
    font-size:12px;
    margin-top:40px;
    position:static;
    width:auto;
}

.footer-izquierda{
    font-weight:bold;
}

.footer-derecha{
    color:#888;
}

/* LOGIN */

.login-container{
    min-height:100vh;
    box-sizing:border-box;
    padding:40px 20px;
}

.login-card{
    box-sizing:border-box;
    max-width:380px;
    margin:0 auto;
    text-align:center;
}

.login-card form{
    box-sizing:border-box;
    text-align:left;
}

/* CARDS */

.card{
    background:white;
    border-radius:10px;
    padding:22px;
    margin-bottom:22px;
    box-shadow:0 3px 12px rgba(0,0,0,0.08);
    border:1px solid #e1e5ee;
}

.card-mini{
    background:white;
    border-radius:10px;
    padding:22px;
    margin:10px;
    display:inline-block;
    min-width:240px;
    vertical-align:top;
    box-shadow:0 3px 12px rgba(0,0,0,0.08);
    border:1px solid #e1e5ee;
}

.numero{
    font-size:38px;
    font-weight:bold;
    color:#1f3268;
}

h1,h2,h3{
    color:#1f3268;
}

/* TABLAS */

table{
    width:100%;
    border-collapse:collapse;
    background:white;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 3px 12px rgba(0,0,0,0.08);
}

th{
    background:#1f3268;
    color:white;
    padding:12px;
    text-align:left;
    font-size:14px;
}

td{
    padding:11px;
    border-bottom:1px solid #e5e7eb;
    font-size:14px;
}

tr:hover{
    background:#f5f7fb;
}

/* BOTONES */

button,
.boton{
    background:#1f3268;
    color:white !important;
    padding:10px 16px;
    border:0;
    border-radius:6px;
    cursor:pointer;
    text-decoration:none;
    display:inline-block;
    font-weight:bold;
}

button:hover,
.boton:hover{
    background:#314b99;
}

.boton-secundario{
    background:#6b7280;
}

.boton-peligro{
    background:#b00020;
}

.boton-verde{
    background:#198754;
}

.botonera{
    margin-top:20px;
}

.botonera a{
    margin-left:10px;
}

/* FORMULARIOS */

input,
select,
textarea{
    width:100%;
    max-width:100%;
    padding:10px;
    margin-top:6px;
    border:1px solid #cfd6e4;
    border-radius:6px;
    background:white;
}

form{
    background:white;
    padding:24px;
    border-radius:10px;
    box-shadow:0 3px 12px rgba(0,0,0,0.08);
    border:1px solid #e1e5ee;
}

/* Mini-formularios de un solo botón dentro de filas de tabla (activar/desactivar,
   eliminar): sin la tarjeta del form de página, solo el botón en línea. */
.form-accion-tabla{
    display:inline;
    background:none;
    padding:0;
    margin:0;
    border-radius:0;
    box-shadow:none;
    border:none;
}

.form-grupo{
    margin-bottom:16px;
}

.seccion-formulario{
    background:white;
    border-radius:10px;
    padding:20px;
    margin-bottom:25px;
    box-shadow:0 3px 12px rgba(0,0,0,0.08);
}

.seccion-formulario h3{
    margin-top:0;
    border-bottom:1px solid #e5e7eb;
    padding-bottom:10px;
}

/* UTILIDADES */

.acciones a{
    margin-right:8px;
    margin-bottom:5px;
}

.badge{
    display:inline-block;
    padding:5px 9px;
    border-radius:20px;
    background:#e5e7eb;
    font-size:12px;
    font-weight:bold;
}

.badge-ok{
    background:#d1e7dd;
    color:#0f5132;
}

.badge-pendiente{
    background:#fff3cd;
    color:#664d03;
}

.badge-error{
    background:#f8d7da;
    color:#842029;
}

.grid-3{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:20px;
}

.barra-superior{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.buscador{
    background:white;
    padding:20px;
    border-radius:10px;
    box-shadow:0 3px 12px rgba(0,0,0,0.08);
    margin-bottom:20px;
}

.form-filtro{
    box-shadow:none;
    border:0;
    padding:0;
}

.resumen{
    background:#e8f0fe;
    padding:12px;
    border-radius:8px;
    margin-bottom:20px;
    font-weight:bold;
}

/* RESPONSIVE */

@media(max-width:900px){
    .topbar{
        grid-template-columns:1fr;
        gap:15px;
        text-align:center;
    }

    .topbar-izquierda,
    .topbar-derecha{
        justify-content:center;
        text-align:center;
    }

    .menu a{
        display:block;
    }

    .card-mini{
        display:block;
        margin:12px 0;
    }

    .grid-2,
    .form-grid{
        grid-template-columns:1fr;
    }

    table{
        font-size:12px;
        display:block;
        overflow-x:auto;
    }
}.kpi-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:18px;
    margin-bottom:30px;
}

.kpi-card{
    background:white;
    border-radius:14px;
    padding:22px;
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
    border:1px solid #e1e5ee;
}

.kpi-card h3{
    margin:0 0 12px 0;
    font-size:15px;
    color:#1f3268;
}

.kpi-numero{
    font-size:42px;
    font-weight:900;
    color:#2d2c73;
}

/* Variante para importes en euros que pueden crecer mucho (sumas de varios
   meses/empresas) — el tamaño fijo de .kpi-numero desborda la tarjeta con
   cifras de 7+ dígitos. */
.kpi-numero-money{
    font-size:26px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.kpi-texto{
    margin-top:8px;
    color:#6b7280;
    font-size:13px;
}
.calendario-mes{
    width:100%;
    max-width:none;
    display:grid;
    grid-template-columns:repeat(7, minmax(120px, 1fr));
    background:#d7dce5;
    border:1px solid #d7dce5;
    border-radius:10px;
    overflow:hidden;
    margin:20px 0 35px 0;
    box-shadow:0 3px 12px rgba(0,0,0,0.08);
}

.cal-dia-header{
    background:#1f3268;
    color:white;
    text-align:center;
    padding:10px;
    font-weight:bold;
    font-size:13px;
}

.cal-dia,
.cal-dia-vacio{
    background:white;
    min-height:135px;
    padding:8px;
    border-right:1px solid #d7dce5;
    border-bottom:1px solid #d7dce5;
}

.cal-dia-vacio{
    background:#d9dce6;
}

.cal-finde{
    background:#f4f6fb;
}

.cal-hoy{
    outline:3px solid #1f3268;
    outline-offset:-3px;
}

.cal-numero{
    font-size:14px;
    font-weight:800;
    color:#1f3268;
    margin-bottom:8px;
}

.evento-vacaciones,
.evento-vacaciones-pendiente,
.evento-permiso,
.evento-permiso-pendiente,
.evento-it,
.evento-at,
.evento-otro,
.evento-festivo{
    display:block;
    width:100%;
    padding:4px 6px;
    margin-bottom:4px;
    border-radius:5px;
    font-size:11px;
    font-weight:600;
    overflow:hidden;
    white-space:nowrap;
    text-overflow:ellipsis;
}

.evento-vacaciones{
    background:#d1e7dd;
    color:#0f5132;
}

.evento-vacaciones-pendiente{
    background:repeating-linear-gradient(
        45deg,
        #d1e7dd,
        #d1e7dd 5px,
        #a3cfbb 5px,
        #a3cfbb 10px
    );
    color:#0f5132;
}

.evento-permiso{
    background:#fff3cd;
    color:#664d03;
}

.evento-permiso-pendiente{
    background:repeating-linear-gradient(
        45deg,
        #fff3cd,
        #fff3cd 5px,
        #ffe69c 5px,
        #ffe69c 10px
    );
    color:#664d03;
}

.evento-it{
    background:#f8d7da;
    color:#842029;
}

.evento-it-pendiente{
    background:repeating-linear-gradient(
        45deg,
        #f8d7da,
        #f8d7da 5px,
        #f1aeb5 5px,
        #f1aeb5 10px
    );
    color:#842029;
}

.evento-at{
    background:#f5c2c7;
    color:#842029;
}

.evento-at-pendiente{
    background:repeating-linear-gradient(
        45deg,
        #f5c2c7,
        #f5c2c7 5px,
        #ea868f 5px,
        #ea868f 10px
    );
    color:#842029;
}

.evento-festivo{
    background:#cfe2ff;
    color:#084298;
    border-left:4px solid #084298;
}

.evento-otro{
    background:#e5e7eb;
    color:#374151;
}
.cal-hoy{
    border:3px solid #1f3268;
}
.cal-dia:hover{
    background:#f8fafc;
}

.cal-numero{
    font-size:14px;
    font-weight:800;
    color:#1f3268;
    margin-bottom:8px;
}.cal-finde{
    background:#f4f6fb;
}

.evento-festivo{
    background:#cfe2ff;
    color:#084298;
    font-weight:700;
    border-left:4px solid #084298;
}

.cal-dia:hover{
    background:#f8fafc;
}

.cal-numero{
    font-size:14px;
    font-weight:800;
    color:#1f3268;
    margin-bottom:8px;
}.calendario-mes{
    width:100%;
    min-width:100%;
}

.cal-dia-header{
    min-width:120px;
}

.cal-dia,
.cal-dia-vacio{
    min-height:220px;
}
/* AJUSTE FINAL CALENDARIO GENERAL */

.calendario-mes{
    width:100% !important;
    max-width:1100px !important;
    min-width:0 !important;
    margin:20px auto 35px auto !important;
    display:grid !important;
    grid-template-columns:repeat(7, minmax(0, 1fr)) !important;
    overflow:hidden !important;
}

.cal-dia-header,
.cal-dia,
.cal-dia-vacio{
    min-width:0 !important;
    width:auto !important;
}

.cal-dia,
.cal-dia-vacio{
    min-height:130px !important;
}

.evento-vacaciones,
.evento-vacaciones-pendiente,
.evento-permiso,
.evento-permiso-pendiente,
.evento-it,
.evento-at,
.evento-otro,
.evento-festivo{
    max-width:100% !important;
    overflow:hidden !important;
    white-space:nowrap !important;
    text-overflow:ellipsis !important;
    font-size:10px !important;
}

/* Grid multimes: trimestre, semestre y año */
.cal-multimes-grid{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:24px;
    margin:20px 0 35px 0;
    user-select:none;
    -webkit-user-select:none;
    -ms-user-select:none;
}

.cal-mes-bloque{
    min-width:0;
}

.cal-mes-titulo{
    font-size:15px;
    font-weight:700;
    color:#1f3268;
    margin:0 0 8px 0;
    padding-bottom:4px;
    border-bottom:2px solid #e5e7eb;
}

/* Calendario compacto dentro de cada celda del grid */
.calendario-mes-compacto{
    max-width:none !important;
    margin:0 !important;
}

.calendario-mes-compacto .cal-dia-header{
    font-size:10px !important;
    padding:4px 2px !important;
}

.calendario-mes-compacto .cal-dia,
.calendario-mes-compacto .cal-dia-vacio{
    min-height:65px !important;
    padding:3px !important;
}

.calendario-mes-compacto .cal-numero{
    font-size:11px !important;
    margin-bottom:3px !important;
}

.cal-dia-sel{
    background:#eef2ff !important;
    box-shadow:inset 0 0 0 3px #4f46e5;
}

.calendario-mes-compacto .evento-vacaciones,
.calendario-mes-compacto .evento-vacaciones-pendiente,
.calendario-mes-compacto .evento-permiso,
.calendario-mes-compacto .evento-permiso-pendiente,
.calendario-mes-compacto .evento-it,
.calendario-mes-compacto .evento-it-pendiente,
.calendario-mes-compacto .evento-at,
.calendario-mes-compacto .evento-at-pendiente,
.calendario-mes-compacto .evento-otro,
.calendario-mes-compacto .evento-festivo,
.calendario-mes-compacto .evento-cumple{
    font-size:8px !important;
    padding:2px 3px !important;
    margin-bottom:2px !important;
}

@media(max-width:1100px){
    .cal-multimes-grid{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media(max-width:650px){
    .cal-multimes-grid{
        grid-template-columns:1fr;
    }
}
/* =========================
   MENÚ GESTIÓN / MI ÁREA
========================= */

.menu-separador{
    margin-left:20px;
    padding:8px 12px;
    background:#2f296b;
    color:#fff;
    border-radius:6px;
    font-size:12px;
    font-weight:700;
}

.menu-separador-personal{
    margin-left:20px;
    padding:8px 12px;
    background:#2c7a4b;
    color:#fff;
    border-radius:6px;
    font-size:12px;
    font-weight:700;
}
/* FILAS MENU */

.menu{
    padding:0;
}

.menu-fila{
    display:flex;
    align-items:center;
    gap:25px;
    padding:12px 25px;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
}

.menu-titulo-gestion{
    background:#2f296b;
    color:#fff;
    font-weight:700;
    padding:8px 25px;
    font-size:12px;
    letter-spacing:1px;
}

.menu-titulo-personal{
    background:#2c7a4b;
    color:#fff;
    font-weight:700;
    padding:8px 25px;
    font-size:12px;
    letter-spacing:1px;
}

.menu-fila a{
    text-decoration:none;
    font-weight:600;
}

.salir{
    margin-left:auto;
    color:#c62828 !important;
}
/* MENU COMPACTO */

.menu{
    padding:0;
    background:#fff;
}

.menu-fila{
    display:flex;
    align-items:center;
    gap:18px;
    padding:8px 25px;
    background:#fff;
    border-bottom:1px solid #e5e7eb;
    min-height:42px;
}

.menu-fila a{
    padding:8px 0;
    font-size:14px;
}

.menu-titulo-gestion,
.menu-titulo-personal{
    padding:5px 25px;
    font-size:11px;
    line-height:1.2;
}

.menu-titulo-gestion{
    background:#7c75ce;
    color:white;
    font-weight:700;
    letter-spacing:1px;
}

.menu-titulo-personal{
    background:#4b7f50;
    color:white;
    font-weight:700;
    letter-spacing:1px;
}

.salir{
    margin-left:auto;
    color:#b00020 !important;
}
/* TOPBAR Y MENU MAS COMPACTOS */

.topbar{
    padding:6px 25px !important;
    min-height:70px !important;
}

.titulo-app{
    font-size:26px !important;
    line-height:1 !important;
}

.subtitulo-app{
    font-size:12px !important;
    margin-top:3px !important;
}

.logo-portal{
    height:105px !important;
}

.usuario-top{
    padding:8px 14px !important;
    font-size:13px !important;
}

.menu-fila{
    padding:6px 25px !important;
    min-height:34px !important;
}

.menu-fila a{
    padding:5px 0 !important;
    font-size:13px !important;
}

.menu-titulo-gestion,
.menu-titulo-personal{
    padding:4px 25px !important;
    font-size:10px !important;
}
.logout-top{
    color:#fff;
    text-decoration:none;
    font-size:11px;
    opacity:.9;
}

.logout-top:hover{
    opacity:1;
    text-decoration:underline;
}
.menu-fila{
    padding:4px 25px !important;
    min-height:30px !important;
    flex-wrap:wrap;
}

.inicio-2col{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:20px;
    align-items:start;
}

@media(max-width:700px){
    .inicio-2col{
        grid-template-columns:1fr;
    }
}

.menu-titulo-gestion,
.menu-titulo-personal{
    padding:3px 25px !important;
}
.kpi-rojo{
    border-left:6px solid #d32f2f;
}

.kpi-naranja{
    border-left:6px solid #f57c00;
}
.panel-alertas{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-bottom:20px;
}

.alerta-dashboard{
    text-decoration:none;
    padding:10px 15px;
    border-radius:8px;
    font-weight:600;
    color:#fff;
}

.alerta-rojo{
    background:#d32f2f;
}

.alerta-naranja{
    background:#f57c00;
}

.alerta-verde{
    background:#2e7d32;
}

.alerta-azul{
    background:#1565c0;
}

.alerta-gris{
    background:#616161;
}
.jornada-card{
    text-align:center;
}

.estado-jornada{
    display:inline-block;
    padding:15px 35px;
    border-radius:8px;
    color:white;
    font-size:22px;
    font-weight:bold;
    margin:15px 0;
}

.estado-verde{
    background:#2e7d32;
}

.estado-naranja{
    background:#ef6c00;
}

.estado-azul{
    background:#1565c0;
}

.estado-gris{
    background:#757575;
}

.resumen-jornada{
    display:flex;
    justify-content:center;
    gap:80px;
    margin-top:20px;
    font-size:18px;
}
.boton-fichaje-entrada,
.boton-fichaje-pausa,
.boton-fichaje-salida{

    width:100%;
    padding:25px;
    font-size:24px;
    font-weight:bold;
    border:none;
    border-radius:8px;
    cursor:pointer;
    margin-bottom:15px;
}

.boton-fichaje-entrada{
    background:#2e7d32;
    color:white;
}

.boton-fichaje-pausa{
    background:#ef6c00;
    color:white;
}

.boton-fichaje-salida{
    background:#c62828;
    color:white;
}
.jornada-resumen{
    text-align:center;
    padding:40px;
}

.estado-grande{
    display:inline-block;
    padding:15px 40px;
    border-radius:10px;
    color:white;
    font-size:24px;
    font-weight:bold;
    margin:20px 0;
}

.verde{
    background:#2e7d32;
}

.naranja{
    background:#ef6c00;
}

.azul{
    background:#1565c0;
}

.gris{
    background:#757575;
}

.horas-grandes{
    font-size:48px;
    font-weight:bold;
    color:#2c2c7a;
}

.texto-secundario{
    color:#666;
    margin-top:10px;
}
.datos-jornada{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:30px 80px;
    margin-top:20px;
    margin-bottom:20px;
}

.datos-jornada div{
    text-align:center;
    min-width:120px;
}
.grid-3 select{
    width:100%;
}
.kpi-link{
    text-decoration:none;
    color:inherit;
    display:block;
    transition:all .2s ease;
}

.kpi-link:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,.15);
}
.evento-cumple{
    background:#ffcdfb;
    color:#85047a;
    border-radius:4px;
    padding:2px 5px;
    margin-top:2px;
    font-size:11px;
    font-weight:bold;
}
.evento-vacaciones,
.evento-vacaciones-pendiente,
.evento-permiso,
.evento-permiso-pendiente,
.evento-it,
.evento-at,
.evento-festivo,
.evento-cumple{
    margin-bottom:4px;
    padding:3px 6px;
    border-radius:4px;
    font-size:11px;
    overflow:hidden;
}.badge{
    display:inline-block;
    padding:4px 10px;
    border-radius:999px;
    font-size:12px;
    font-weight:700;
    white-space:nowrap;
}

.badge-pendiente{
    background:#fff3cd;
    color:#856404;
}

.badge-ok{
    background:#d4edda;
    color:#155724;
}

.badge-error{
    background:#f8d7da;
    color:#721c24;
}

/* Badges de estado activo/inactivo */
.badge-verde{
    background:#d4edda;
    color:#155724;
}
.badge-gris{
    background:#e2e3e5;
    color:#383d41;
}

/* Botón pequeño para acciones en tabla */
.boton-xs{
    display:inline-block;
    padding:4px 8px;
    font-size:12px;
    border-radius:4px;
    cursor:pointer;
    border:none;
    background:#2c3e7b;
    color:#fff;
    text-decoration:none;
    margin:1px;
    line-height:1.4;
}
.boton-xs.boton-secundario{ background:#6b7280; }
.boton-xs.boton-peligro{ background:#b00020; }

/* Alertas de feedback (ok / error) en páginas CRUD */
.alerta{
    padding:10px 16px;
    border-radius:6px;
    margin-bottom:16px;
    font-weight:600;
}
.alerta-ok{
    background:#d4edda;
    color:#155724;
    border-left:4px solid #28a745;
}
.alerta-error{
    background:#f8d7da;
    color:#721c24;
    border-left:4px solid #dc3545;
}

/* ══════════════════════════════════════════════
   EXPEDIENTE — Ficha con pestañas
══════════════════════════════════════════════ */
.expediente-header{
    background:linear-gradient(135deg,#2c3e7b 0%,#1a2550 100%);
    color:#fff;
    padding:20px 28px;
    border-radius:10px 10px 0 0;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:12px;
    margin-bottom:0;
}
.exp-nombre{
    font-size:22px;
    font-weight:800;
    letter-spacing:.3px;
}
.exp-meta{
    font-size:13px;
    opacity:.85;
    margin-top:4px;
}
.exp-badges{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:6px;
}
.exp-badge{
    background:rgba(255,255,255,.15);
    border-radius:20px;
    padding:3px 10px;
    font-size:12px;
    font-weight:600;
}
.exp-badge-verde{ background:#27ae60; }
.exp-badge-rojo{  background:#c0392b; }
.tabs-nav{
    display:flex;
    background:#f1f3f8;
    border-bottom:3px solid #1f3268;
    overflow-x:auto;
    scrollbar-width:none;
    margin-bottom:24px;
    gap:4px;
    padding:6px 6px 0;
    border-radius:8px 8px 0 0;
}
.tabs-nav::-webkit-scrollbar{ display:none; }
.tabs-nav .tab-btn{
    padding:10px 18px !important;
    cursor:pointer;
    border:1px solid transparent !important;
    border-bottom:none !important;
    background:#e2e6f0 !important;
    font-size:13px !important;
    font-weight:600 !important;
    color:#4b5563 !important;
    white-space:nowrap;
    transition:background .15s, color .15s;
    border-radius:6px 6px 0 0 !important;
    box-shadow:none !important;
    margin-bottom:0 !important;
    position:relative;
    bottom:-1px;
}
.tabs-nav .tab-btn:hover{
    color:#1f3268 !important;
    background:#d0d6e8 !important;
}
.tabs-nav .tab-btn.active{
    background:#ffffff !important;
    color:#1f3268 !important;
    border-color:#1f3268 transparent #ffffff !important;
    border-top:3px solid #1f3268 !important;
    border-left:1px solid #1f3268 !important;
    border-right:1px solid #1f3268 !important;
    border-bottom:none !important;
    font-weight:700 !important;
}
.tab-panel{ display:none; }
.tab-panel.active{ display:block; }

.exp-form-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:14px;
    margin-bottom:20px;
}
.exp-form-grid label{
    display:block;
    font-size:12px;
    color:#6b7280;
    margin-bottom:3px;
    font-weight:600;
}
.exp-section-title{
    font-size:13px;
    font-weight:700;
    color:#2c3e7b;
    text-transform:uppercase;
    letter-spacing:.5px;
    border-bottom:1px solid #e5e7eb;
    padding-bottom:6px;
    margin:20px 0 14px;
    grid-column:1/-1;
}
.exp-save-bar{
    display:flex;
    justify-content:flex-end;
    gap:10px;
    padding:16px 0 0;
    border-top:1px solid #e5e7eb;
    margin-top:20px;
}
.exp-tab-empty{
    padding:40px;
    text-align:center;
    color:#9ca3af;
    font-size:15px;
}
.badge-estado-vac{
    display:inline-block;
    padding:2px 8px;
    border-radius:12px;
    font-size:11px;
    font-weight:700;
}
.be-aprobada    { background:#d4edda; color:#155724; }
.be-pendiente   { background:#fff3cd; color:#664d03; }
.be-rechazada   { background:#f8d7da; color:#721c24; }
.be-cancelada   { background:#e2e3e5; color:#383d41; }
.be-activa      { background:#cce5ff; color:#004085; }
.be-cerrada     { background:#e2e3e5; color:#383d41; }
.be-vigente     { background:#d4edda; color:#155724; }
.be-vencido     { background:#f8d7da; color:#721c24; }
.be-pendiente-doc { background:#fff3cd; color:#664d03; }
.be-no_aplica   { background:#e2e3e5; color:#383d41; }

