﻿:root {
    --colorMenu: #5DADE2;
    --plomo: #707070;
    --plomo-bg: #efefef;
    --bgCabTable: linear-gradient(rgb(42, 63, 84) 0%, rgb(42, 63, 84) 44%, rgb(42, 63, 84) 100%);
}
/* ======================
   GENERAL
====================== */
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    background: #f5f6fa;
    color: #333;
}

.nav_title {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 65px;
    padding: 0 15px;
}

.site_title {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
    color: #fff;
    transition: transform 0.2s ease, color 0.3s ease;
}

    .site_title:hover {
        transform: scale(1.05);
        color: #e0f7f4;
    }

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background: #fff;
    padding: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.brand-name {
    font-size: 18px;
    letter-spacing: 0.5px;
}


/* ======================
   MENU LATERAL
====================== */
.left_col {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100%;
    background: var(--colorMenu);
    transition: left 0.3s ease;
    z-index: 2000;
    /* Agregar scroll vertical cuando sea necesario */
    overflow-y: auto;
    overflow-x: hidden;
}

    .left_col.active {
        left: -220px;
    }

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    display: none;
    z-index: 1500;
}

    .overlay.show {
        display: block;
    }

.main_container.full {
    margin-left: 0 !important;
}

.left_col .profile_pic img {
    width: 180px;
    height: 120px;
    /* object-fit: cover;*/
    margin: 20px auto;
    display: block;
    border-radius: 10%;
    border: 3px solid #0078d7;
}

.left_col .profile_info {
    text-align: center;
    color: #fff;
    font-size: 14px;
}

.left_col .profile_pic img:hover {
    transform: scale(1.20);
    color: #e0f7f4;
}

/* ======================
   CONTENIDO
====================== */
.top_nav {
    background: #EDEDED;
    padding: 10px 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
    position: fixed;
    width: 100%;
    z-index: 999;
}

    .top_nav .nav_menu {
        display: flex;
        /*justify-content: space-between;*/
        align-items: center;
    }

        .top_nav .nav_menu .navbar-right {
            list-style: none;
            display: flex;
            gap: 15px;
            margin: 0;
            padding: 0;
        }

            .top_nav .nav_menu .navbar-right li {
                cursor: pointer;
            }

.main_container {
    margin-left: 220px;
    transition: margin-left 0.3s ease, width 0.3s ease;
}

    .main_container.full {
        margin-left: 0 !important;
    }

.right_col {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    transition: width 0.3s ease;
    padding-top: 42px;
}

/* ======================
   TABLAS
====================== */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    border-color: var(--colorMenu);
}

    table th {
        background: var(--colorMenu);
        color: #fff;
        padding: 8px;
        text-align: left;
    }

    table td {
        border: 1px solid #ddd;
        padding: 6px 10px;
    }

.table-responsive {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

    .table-responsive table {
        width: 100%;
        border-collapse: collapse;
        font-size: 14px;
        table-layout: auto;
    }

    .table-responsive th,
    .table-responsive td {
        border: 1px solid #ddd;
        padding: 6px 10px;
        word-wrap: break-word;
        white-space: nowrap;
    }

/* ======================
   RESPONSIVE
====================== */
@media (min-width: 992px) {
    .left_col {
        left: 0;
    }

    .main_container.full {
        margin-left: 0;
    }
}

@media (max-width: 991px) {
    .left_col {
        left: -220px;
    }

        .left_col.active {
            left: 0;
        }

    .main_container {
        margin-left: 0;
    }

    .overlay.show {
        display: block;
    }
}

/* ========================
    SIDEBAR MENU
======================== */
.nav.side-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--colorMenu);
    font-family: Arial, sans-serif;
    /* Asegurar que el menú ocupe el espacio disponible */
    min-height: calc(100% - 200px); /* Ajusta según la altura de tu header */
}

    .nav.side-menu:hover {
        transform: scale(1.05);
    }

    .nav.side-menu > li {
        position: relative;
    }

        .nav.side-menu > li > a {
            display: flex;
            align-items: center;
            padding: 12px 15px;
            color: #E7E7E7;
            text-decoration: none;
            font-size: 14px;
            cursor: pointer;
            transition: background 0.3s;
        }

            .nav.side-menu > li > a:hover {
                background: rgba(255,255,255,.06);
                color: #fff;
            }

    .nav.side-menu i {
        margin-right: 8px;
    }

.nav.child_menu {
    display: none;
    list-style: none;
    margin: 0;
}

    .nav.child_menu:hover {
        transform: scale(1.05);
    }

    .nav.child_menu li a {
        display: block;
        padding: 8px 15px;
        font-size: 13px;
        color: #fff;
        text-decoration: none;
        transition: background 0.3s;
    }

        .nav.child_menu li a:hover {
            background: rgba(255,255,255,.06);
            color: #fff;
        }

.nav-parent.open > .child_menu {
    display: block;
}

.nav-parent > a .fa-chevron-down {
    transition: transform 0.3s;
}

.nav-parent.open > a .fa-chevron-down {
    transform: rotate(-180deg);
}

* {
    box-sizing: border-box;
}

/* ====== BOTONES ====== */
.btn {
    display: inline-block;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: #1ABB9C;
    border-color: #1ABB9C;
    color: #fff;
}

    .btn-success:hover {
        background-color: #16A085;
        border-color: #16A085;
    }

.btn-danger {
    background-color: #E74C3C;
    border-color: #E74C3C;
    color: #fff;
}

    .btn-danger:hover {
        background-color: #C0392B;
        border-color: #C0392B;
    }

.btn-primary {
    background-color: #3498DB;
    border-color: #3498DB;
    color: #fff;
}

    .btn-primary:hover {
        background-color: #2980B9;
        border-color: #2980B9;
    }

.btn-warning {
    background-color: #F39C12;
    border-color: #F39C12;
    color: #fff;
}

    .btn-warning:hover {
        background-color: #D68910;
        border-color: #D68910;
    }

.btn-secondary {
    background-color: #7F8C8D;
    border-color: #7F8C8D;
    color: #fff;
}

    .btn-secondary:hover {
        background-color: #626E70;
        border-color: #626E70;
    }

.btn-default {
    color: #333;
    background-color: #fff;
    border-color: #444;
}

    .btn-default:hover,
    .btn-default:focus {
        color: #333;
        background-color: #e6e6e6;
        border-color: #444;
    }

.btn-xs {
    padding: 2px 6px;
    font-size: 12px;
    border-radius: 3px;
}

/* ====== INPUTS & SELECT ====== */
.form-control-s {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 3px;
    transition: border 0.3s, box-shadow 0.3s;
    background-color: #fff;
    color: #444;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    transition: border 0.3s, box-shadow 0.3s;
    background-color: #fff;
    color: #444;
    box-sizing: border-box;
}

    .form-control:focus {
        border-color: var(--colorMenu);
        box-shadow: 0 0 4px rgba(26, 187, 156, 0.4);
        outline: none;
    }

input[type="checkbox"].form-control,
input[type="radio"].form-control {
    width: auto;
    padding: 0;
    margin-right: 8px;
    accent-color: var(--colorMenu);
    transform: scale(1.2);
    box-shadow: none;
    border: none;
}

/* Ajuste especial para input[type=date] */
input[type="date"].form-control {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    background-image: none;
    background-color: #fff;
    color: #444;
}

    input[type="date"].form-control::-webkit-calendar-picker-indicator {
        /*  display: none;
        -webkit-appearance: none;*/
        filter: invert(0.4);
        opacity: 0.8;
        cursor: pointer;
        display: inline-block;
    }

input[type="date"]::-webkit-calendar-picker-indicator {
    display: inline-block;
    filter: invert(0.5); /* tono gris oscuro */
    opacity: 0.8;
    cursor: pointer;
}
/* Ícono solo para móviles y tablets */
@media (hover: none) and (pointer: coarse) {
    input[type="date"].form-control::after {
        content: "📅";
        position: absolute;
        right: 12px;
        color: #888;
        pointer-events: none;
    }
}

input:disabled,
textarea:disabled,
select:disabled {
    background-color: var(--plomo-bg);
    color: var(--plomo);
    border-color: #cfcfcf;
    cursor: not-allowed;
    opacity: 1; /* evita que navegadores reduzcan la opacidad por defecto */
    box-shadow: none;
}

input[type="date"]:disabled {
    background-color: #e9ecef; /* plomo claro */
    color: #6c757d; /* plomo oscuro para texto */
    border: 1px solid #ccc;
    cursor: not-allowed;
    opacity: 1; /* importante: evita el gris translúcido */
}

/* ====== LABELS ====== */
label {
    font-weight: 500;
    margin-bottom: 5px;
    display: inline-block;
    color: #444;
}

/* ====== FORM CONTAINER ====== */
.form-group {
    margin-bottom: 16px;
}

/* ====== RESPONSIVE GRID PARA FORMULARIOS ====== */
.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.form-col {
    flex: 1;
    min-width: 220px;
}

/* ====== ROW ====== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px; /* compensa el padding de las columnas */
    margin-left: -10px;
    /*align-items: flex-start;  evita desalineos verticales
    box-sizing: border-box; */
}

/* ====== GUTTER y BOX-SIZING ====== */
[class^="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    /*min-width: 0;  CRUCIAL: permite que los hijos se encojan dentro de la columna */
}

/* ====== COLUMNAS (1 a 12) ====== */
.col-md-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-md-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.col-md-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ====== MD BREAKPOINT (si usas col-md-*) ====== */
/* Small (sm) ≥576px */
@media (min-width: 576px) {
    .col-sm-1 {
        flex: 0 0 8.333%;
        max-width: 8.333%;
    }

    .col-sm-2 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }

    .col-sm-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-sm-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-sm-5 {
        flex: 0 0 41.666%;
        max-width: 41.666%;
    }

    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-sm-7 {
        flex: 0 0 58.333%;
        max-width: 58.333%;
    }

    .col-sm-8 {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }

    .col-sm-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-sm-10 {
        flex: 0 0 83.333%;
        max-width: 83.333%;
    }

    .col-sm-11 {
        flex: 0 0 91.666%;
        max-width: 91.666%;
    }

    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Medium (md) ≥768px */
@media (min-width: 768px) {
    .col-md-1 {
        flex: 0 0 8.333%;
        max-width: 8.333%;
    }

    .col-md-2 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-md-5 {
        flex: 0 0 41.666%;
        max-width: 41.666%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-7 {
        flex: 0 0 58.333%;
        max-width: 58.333%;
    }

    .col-md-8 {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }

    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-md-10 {
        flex: 0 0 83.333%;
        max-width: 83.333%;
    }

    .col-md-11 {
        flex: 0 0 91.666%;
        max-width: 91.666%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Large (lg) ≥992px */
@media (min-width: 992px) {
    .col-lg-1 {
        flex: 0 0 8.333%;
        max-width: 8.333%;
    }

    .col-lg-2 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }

    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-lg-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-lg-5 {
        flex: 0 0 41.666%;
        max-width: 41.666%;
    }

    .col-lg-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-lg-7 {
        flex: 0 0 58.333%;
        max-width: 58.333%;
    }

    .col-lg-8 {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }

    .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-lg-10 {
        flex: 0 0 83.333%;
        max-width: 83.333%;
    }

    .col-lg-11 {
        flex: 0 0 91.666%;
        max-width: 91.666%;
    }

    .col-lg-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ====== En móviles: apilar columnas ====== */
@media (max-width: 767px) {
    [class^="col-"], [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
/* ====== ROW ====== */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px; /* compensa el padding de las columnas */
    margin-left: -10px;
    /*align-items: flex-start;  evita desalineos verticales
    box-sizing: border-box; */
}

/* ====== GUTTER y BOX-SIZING ====== */
[class^="col-"] {
    padding-left: 10px;
    padding-right: 10px;
    box-sizing: border-box;
    /*min-width: 0;  CRUCIAL: permite que los hijos se encojan dentro de la columna */
}

/* ====== COLUMNAS (1 a 12) ====== */
.col-md-1 {
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
}

.col-md-2 {
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.col-md-5 {
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
}

.col-md-7 {
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
}

.col-md-8 {
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

.col-md-9 {
    flex: 0 0 75%;
    max-width: 75%;
}

.col-md-10 {
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
}

.col-md-11 {
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* ====== MD BREAKPOINT (si usas col-md-*) ====== */
/* Small (sm) ≥576px */
@media (min-width: 576px) {
    .col-xs-1 {
        flex: 0 0 8.333%;
        max-width: 8.333%;
    }

    .col-xs-2 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }

    .col-xs-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-xs-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-xs-5 {
        flex: 0 0 41.666%;
        max-width: 41.666%;
    }

    .col-xs-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-xs-7 {
        flex: 0 0 58.333%;
        max-width: 58.333%;
    }

    .col-xs-8 {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }

    .col-xs-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-xs-10 {
        flex: 0 0 83.333%;
        max-width: 83.333%;
    }

    .col-xs-11 {
        flex: 0 0 91.666%;
        max-width: 91.666%;
    }

    .col-xs-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Medium (md) ≥768px */
@media (min-width: 768px) {
    .col-sm-1 {
        flex: 0 0 8.333%;
        max-width: 8.333%;
    }

    .col-sm-2 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }

    .col-sm-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-sm-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-sm-5 {
        flex: 0 0 41.666%;
        max-width: 41.666%;
    }

    .col-sm-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-sm-7 {
        flex: 0 0 58.333%;
        max-width: 58.333%;
    }

    .col-sm-8 {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }

    .col-sm-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-sm-10 {
        flex: 0 0 83.333%;
        max-width: 83.333%;
    }

    .col-sm-11 {
        flex: 0 0 91.666%;
        max-width: 91.666%;
    }

    .col-sm-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Large (lg) ≥992px */
@media (min-width: 992px) {
    .col-md-1 {
        flex: 0 0 8.333%;
        max-width: 8.333%;
    }

    .col-md-2 {
        flex: 0 0 16.666%;
        max-width: 16.666%;
    }

    .col-md-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    .col-md-4 {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }

    .col-md-5 {
        flex: 0 0 41.666%;
        max-width: 41.666%;
    }

    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-md-7 {
        flex: 0 0 58.333%;
        max-width: 58.333%;
    }

    .col-md-8 {
        flex: 0 0 66.666%;
        max-width: 66.666%;
    }

    .col-md-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }

    .col-md-10 {
        flex: 0 0 83.333%;
        max-width: 83.333%;
    }

    .col-md-11 {
        flex: 0 0 91.666%;
        max-width: 91.666%;
    }

    .col-md-12 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ====== En móviles: apilar columnas ====== */
@media (max-width: 767px) {
    [class^="col-"], [class*="col-md-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* ====== Fix para inputs y elementos dentro de columnas (evitar overflow) ====== */
.form-control,
.input-group,
.table-responsive,
.dropdown,
.btn {
    min-width: 0; /* permite que estos hijos se encojan si la columna es estrecha */
    box-sizing: border-box;
}



.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

    .modal.show {
        display: flex;
    }

.modal-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
    width: 90%;
    max-width: 600px;
    opacity: 0;
    transform: scale(0.7);
}

.modal-sm {
    max-width: 350px;
    width: 95%;
}

.modal-md {
    max-width: 600px;
    width: 95%;
}

.modal-lg {
    max-width: 1800px;
    width: 95%;
}

.modal-xl {
    width: 95%;
    height: 95%;
    max-width: none; /* quita el límite de 600px */
    display: flex;
    flex-direction: column;
}



.modal-header {
    background: var(--colorMenu);
    color: #fff;
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .modal-header h2 {
        margin: 0;
        font-size: 18px;
    }

    .modal-header .close {
        color: #fff;
        font-size: 22px;
        font-weight: bold;
        cursor: pointer;
    }

        .modal-header .close:hover {
            color: #ffdddd;
        }

.modal-body {
    padding: 20px;
    max-height: 65vh;
    overflow-y: auto;
}

.modal-xl .modal-body {
    max-height: none;
    height: calc(100vh - 100px);
    overflow-y: auto;
}

.modal.show .modal-dialog {
    animation: abrir 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.modal.closing .modal-dialog {
    animation: cerrar 0.3s ease forwards;
}

@keyframes abrir {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes cerrar {
    from {
        transform: scale(1);
        opacity: 1;
    }

    to {
        transform: scale(0.7);
        opacity: 0;
    }
}

/* ====== FIX para input[type=date] ====== */
input[type="date"] {
    background-color: #fff;
    color: #444;
    -webkit-appearance: none;
    appearance: none;
}

    input[type="date"]::-webkit-datetime-edit {
        color: inherit;
        font: inherit;
    }

    input[type="date"]::-webkit-calendar-picker-indicator {
        filter: invert(0.4);
        opacity: 0.7;
        cursor: pointer;
    }
/* ==== Fieldset estilizado ==== */
fieldset {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    background: #fafafa;
}

legend {
    font-weight: bold;
    padding: 0 10px;
    font-size: 15px;
    color: var(--colorMenu);
}

.toggle-btn {
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    line-height: 18px;
    text-align: center;
    transition: background 0.3s ease;
    cursor: pointer;
    font-weight: bold;
    background: none;
    border: none;
    font-size: 16px;
    margin-left: 10px;
}

    .toggle-btn:hover {
        background: var(--colorMenu);
    }
/* Contenedor de tabs */
.tabs-container {
    padding: 15px;
    display: flex;
    flex-direction: column;
    width: 99%;
    height: 95%;
    background: #fafafa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Barra de pestañas arriba */
.tabs-list {
    display: flex;
    justify-content: flex-start; /* <-- alineación a la izquierda */
    background: #f0f0f0;
    border-bottom: 1px solid #ccc;
    padding-left: 10px; /* un poco de aire */
}

    .tabs-list button {
        padding: 12px 20px;
        border: none;
        outline: none;
        cursor: pointer;
        background: #f0f0f0;
        font-size: 15px;
        transition: all 0.3s ease;
        border-radius: 6px 6px 0 0;
        margin-right: 4px;
    }

        .tabs-list button:hover {
            background: #e6e6e6;
        }

        .tabs-list button.active {
            background: #fff;
            border: 1px solid #ccc;
            border-bottom: 3px solid #0078d7;
            font-weight: bold;
            color: #0078d7;
        }

/* Contenido */
.tab-content {
    flex-grow: 1;
    padding: 20px;
    display: none;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

    .tab-content.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}




.list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-group-item {
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-bottom: 8px;
    padding: 14px 18px;
    background: #fafafa;
    cursor: pointer;
    transition: background 0.3s ease;
}

    .list-group-item:hover {
        background: #f0f0f0;
    }

    .list-group-item.active {
        background: #2A3F54;
        color: #fff;
        font-weight: bold;
    }

/* contenido oculto */
.list-content {
    display: none;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 6px 6px;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.list-group-item.active + .list-content {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-addon {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    font-size: 14px;
    font-weight: 400;
    color: #555;
    text-align: center;
    background-color: #eee;
    border: 1px solid #ccc;
    border-radius: 4px;
    white-space: nowrap;
}

    .input-group-addon:first-child {
        border-right: 0;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .input-group-addon:last-child {
        border-left: 0;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

.input-group .form-control {
    flex: 1 1 auto;
    margin: 0;
    border-radius: 0;
}




/* Css para graficos */
.grafico-container {
    overflow-x: auto;
    width: 100%;
    border: 1px solid #ccc;
}

canvas {
    display: block;
}

.leyenda {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-family: Arial, sans-serif;
}

.leyenda-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.color-box {
    width: 15px;
    height: 15px;
    border: 1px solid #999;
}

.Pagina {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    color: white;
    font-weight: normal;
    font-size: 11px;
    background-color: var(--colorMenu)
    /*  background-image: var(--bgCabTable);*/
}

    .Pagina:hover {
        color: var(--colorMenu);
        background: white;
    }

.PaginaSeleccionada {
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    font-weight: normal;
    font-size: 11px;
    color: var(--bgCabTable);
    background: white;
}

/* === ALERTAS PERSONALIZADAS === */
.alerta {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    padding: 25px 30px;
    text-align: center;
    width: 500px;
    max-width: 90%;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    font-family: sans-serif;
}

    .alerta.show {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    .alerta h3 {
        margin-top: 10px;
        font-size: 20px;
    }

    .alerta p {
        margin: 10px 0 20px;
        font-size: 14px;
    }

    .alerta button {
        background: var(--colorMenu);
        color: #fff;
        border: none;
        border-radius: 6px;
        padding: 8px 14px;
        cursor: pointer;
        font-size: 14px;
        transition: background 0.3s;
    }

        .alerta button:hover {
            background: #2471a3;
        }

/* Colores por tipo */
.alerta-success .icono {
    color: #27ae60;
}

.alerta-warning .icono {
    color: #f39c12;
}

.alerta-danger .icono {
    color: #e74c3c;
}

/* Íconos circulares */
.icono {
    font-size: 40px;
    margin-bottom: 10px;
}

.alerta-confirm {
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .alerta-confirm .botones {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 15px;
    }

    .alerta-confirm button {
        min-width: 90px;
    }

/* ====== SELECT PERSONALIZADO ====== */
.select-buscable-wrapper {
    position: relative;
    width: 100%;
    display: inline-block;
    font-family: Arial, sans-serif;
}

    .select-buscable-wrapper input {
        width: 100%;
        padding: 6px 30px 6px 10px; /* espacio para la flecha */
        box-sizing: border-box;
        cursor: pointer;
    }

    .select-buscable-wrapper::after {
        content: "▼";
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: #555;
    }

.select-buscable-lista {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 6px;
    z-index: 9999;
    display: none;
}

    .select-buscable-lista div {
        padding: 8px 10px;
        cursor: pointer;
    }

        .select-buscable-lista div:hover,
        .select-buscable-lista div.focused {
            background: var(--colorMenu, #007bff);
            color: #fff;
        }


#btnSalirSesion {
    position: fixed;
    top: 10px; /* distancia desde la parte superior */
    right: 20px; /* distancia desde el borde derecho */
    z-index: 2000; /* que quede encima de todo */
    background: none; /* sin fondo, opcional */
    border: none;
    color: #333;
    font-size: 18px;
    cursor: pointer;
}

    #btnSalirSesion:hover {
        color: #000;
    }


#loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.4); /* semitransparente */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none; /* por defecto oculto */
}

.spinner {
    border: 6px solid #f3f3f3; /* gris claro */
    border-top: 6px solid #3498db; /* azul */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin-bottom: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#loadingOverlay p {
    color: white;
    font-size: 16px;
}

small {
    font-size: 12px;
    color: gray
}
