:root {
    --sidebar-bg: #1a1c23;
    --main-bg: #f4f7fe;
    --accent: #4318ff;
    --text-main: #2b3674;
}

body {
    font-family: 'DM Sans', sans-serif;
    margin: 0px;
    padding: 0px;
    background: var(--main-bg);
    color: var(--text-main);
    box-sizing: border-box;

}

.container{
    display: flex;
    /* height: 100dvh; */
    width: 100dvw;
    box-sizing: border-box;
}

/* Menú Lateral */
.nav-two{
    display: none;
}

#ver {
    background-color: #2d313e;
    width: 100%;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
nav {
    min-width: 260px;
    height: 100vh;
    background: var(--sidebar-bg);
    color: white;
    padding: 30px 20px;
    box-sizing: border-box;

}

nav h2 {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-align: center;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}

ul {
    list-style: none;
    padding: 0;
}

.menu-item {
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.menu-item-2 {
    padding: 15px;
    margin: 10px 0;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.menu-item-2 select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    background: #2d313e;
    color: white;
    border: none;
    outline: none;
    cursor: pointer;
}

select option {
    background: var(--sidebar-bg);
}

/* Contenido Principal */
main {
    box-sizing: border-box;
    flex-grow: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100vh;

}

/* Contenedor Principal */
.main-two {
    display: none;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box; /* Asegura que el padding no sume al ancho total */
}

/* Contenedor de la tabla para evitar desbordamiento */
.table-responsive {
    width: 100%;
    overflow-x: auto; /* Scroll horizontal si es necesario */
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Evita que las columnas se aplasten demasiado */
    font-size: 14px;
}

th, td {
    max-width: 100px;
    overflow: hidden;
    padding: 12px 15px;
    /* text-align: left; */
    border-bottom: 1px solid #eee;
    white-space: nowrap; /* Evita que el texto salte de línea y deforme la fila */
}

th {
    background-color: #2c3e50; /* Color profesional */
    color: white;
    position: sticky; /* Cabecera fija al hacer scroll vertical */
    top: 0;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #dce6f7;
}


/* Alineación de la última columna */
.col-indice {
    text-align: right; /* O 'center' si lo prefieres */
    padding-right: 30px; /* Espacio extra para que no pegue al borde */
    font-weight: bold;   /* Opcional: para resaltar el índice */
    color: #2c3e50;
}

/* También debemos alinear el encabezado de esa columna */
#tablaHead th:last-child {
    text-align: right;
    padding-right: 30px;
}

/* Estilo general para números (opcional pero recomendado) */
#tablaCody td:nth-child(n+2) {
    font-variant-numeric: tabular-nums; /* Mantiene los números alineados aunque varíe su ancho */
}

.num-col {
    text-align: right;
    padding-right: 10px;
}

.num-col-center {
    text-align: center;
}

/* Si quieres que la Entidad/Municipio/Parroquia (texto) se quede a la izquierda */
/* #tablaCody td:not(.num-col) {
    text-align: left;
    font-weight: 500;
} */

/*/////////////////////////////////////*/
.header h1{
    margin: 0px;
}

.card {
    flex-grow: 1;
    max-height: 42%;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0px 18px 40px rgba(112, 144, 176, 0.12);
}

#chartWrapper {
    width: 100%;
    height: 100%;
}