.mainColor {
    background-color: #303845 !important;
    color: white !important;
}


#btnZoomAdd {
    position: absolute;
    top: 30px;
    left: 20px;
    height: 40px !important;
    width: 40px !important;
    border: 1px solid white !important;
}

#btnZoomLess {
    position: absolute;
    top: 290px;
    left: 20px;
    height: 40px !important;
    width: 40px !important;
    border: 1px solid white !important;
}

#zoomContainer {
    position: absolute;
    top: 140px;
    left: -60px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 10;
}

#sliderZoom {
    width: 180px;
    transform: rotate(-90deg);
    margin: 10px auto;
}

.contenido-mapa{
    width: 100% !important;
    height: 100% !important;
}

.btns-capa{
    position: absolute;
    top: 10px;
    right: 10px;
}

/* ======================================================= */
/* 1. TABLAS: ESTILO TÉCNICO Y SOBRIO (Dark Mode)          */
/* ======================================================= */

/* Contenedor y base de la tabla */
.tab-content table {
    width: 100%;
    margin-bottom: 1rem;
    color: #e0e0e0;             /* Texto gris claro para leer bien */
    border-color: #373b3e;      /* Bordes gris oscuro sutiles */
    border-collapse: collapse;
    background-color: transparent; /* Sin fondo blanco */
}

/* Celdas generales (Cuerpo) */
.tab-content table tbody td,
.tab-content table tbody th {
    background-color: #212529 !important; /* Fondo oscuro estándar */
    color: #e0e0e0 !important;
    border: 1px solid #373b3e !important; /* Borde muy sutil */
    padding: 0.75rem;
    vertical-align: top;
}

/* Encabezado (HEAD): El cambio clave para la armonía */
.tab-content table thead th,
.tab-content table thead tr {
    background-color: #1a1d20 !important; /* Un poco más oscuro que el cuerpo */
    color: #ffffff !important;            /* Blanco puro */
    border: none !important;              /* Quitamos bordes laterales */
    
    /* ACENTO: Usamos el VERDE del botón Descargar, y más fino (2px) */
    border-bottom: 2px solid #198754 !important; 
    
    font-weight: 600;
    text-transform: uppercase;            /* Le da un toque más "oficial" */
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Efecto Zebra (Filas alternas) - Muy sutil */
.tab-content table tbody tr:nth-of-type(odd) td {
    background-color: #2c3034 !important; /* Diferencia mínima para no rayar la vista */
}

/* Efecto Hover (Al pasar el mouse) */
.tab-content table tbody tr:hover td {
    background-color: #323539 !important;
    color: #ffffff !important;            /* Texto se ilumina a blanco */
    border-left: 2px solid #198754 !important; /* Pequeño detalle verde a la izquierda al pasar el mouse */
}

/* Responsividad de la tabla */
.tab-content .tab-pane { overflow-x: auto; }

/* Barras de scroll discretas (Gris oscuro) */
.tab-content div[style*="overflow-x:auto"]::-webkit-scrollbar { height: 8px; }
.tab-content div[style*="overflow-x:auto"]::-webkit-scrollbar-track { background: #2c3034; }
.tab-content div[style*="overflow-x:auto"]::-webkit-scrollbar-thumb { background: #495057; border-radius: 4px; }

/* ======================================================= */
/* 2. DIAGRAMA MERMAID: NEUTRO Y PROFESIONAL               */
/* ======================================================= */

.mermaid {
    background-color: rgba(255, 255, 255, 0.02); /* Casi transparente */
    border: 1px solid #373b3e;
    border-radius: 8px;
    padding: 20px;
    display: flex; justify-content: center; align-items: center;
}

/* Nodos: Cajas Gris Oscuro con Borde Verde Institucional */
.mermaid .node rect, .mermaid .node circle, .mermaid .node polygon {
    fill: #212529 !important;
    stroke: #198754 !important; /* El mismo verde del botón */
    stroke-width: 1.5px !important;
}

/* Texto del diagrama: Blanco */
.mermaid .node .label, .mermaid .node text {
    fill: #f8f9fa !important;
    font-family: sans-serif !important;
    font-size: 13px !important;
}

/* Líneas conectoras: Gris neutro (No usamos color aquí para no saturar) */
.mermaid .edgePath path {
    stroke: #adb5bd !important; 
    stroke-width: 1.5px !important;
}
.mermaid .marker, .mermaid marker path {
    fill: #adb5bd !important;
    stroke: #adb5bd !important;
}

.mermaid svg { max-width: 100% !important; height: auto !important; }

/* ======================================================= */
/* 3. TEXTOS Y LISTAS: LIMPIEZA VISUAL                     */
/* ======================================================= */

/* Títulos: Eliminamos la barra lateral gruesa. Usamos solo borde inferior sutil */
.tab-content h1, .tab-content h2, .tab-content h3, .tab-content h4 {
    color: #ffffff !important;
    border-left: none;              /* Quitamos la barra lateral */
    border-bottom: 1px solid #373b3e; /* Línea gris muy fina abajo para separar secciones */
    padding-bottom: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Párrafos */
.tab-content p {
    color: #ced4da !important; /* Gris "acero" claro */
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Listas: Puntos redondos pequeños en VERDE o GRIS (Tu elección) */
.tab-content ul {
    list-style: none;
    padding-left: 0.5rem;
}
.tab-content ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: #ced4da;
}

/* El punto de la lista */
.tab-content ul li::before {
    content: "";
    width: 6px;
    height: 6px;
    /* Usamos el verde del botón para conectar acciones, pero es pequeño */
    background-color: #198754; 
    border-radius: 50%;
    position: absolute;
    left: 0;
    top: 10px;
}

/* Negritas */
.tab-content strong, .tab-content b {
    color: #ffffff !important;
    font-weight: 700;
}