.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Fondo oscuro semitransparente */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background: #ebfbfb; /* Fondo blanco */
    padding: 20px; /* Espaciado interno */
    border-radius: 10px; /* Bordes redondeados */
    max-width: 600px; /* Ancho máximo */
    width: 90%; /* Ajuste automático en pantallas pequeñas */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Sombra para destacar */
    font-family: Arial, sans-serif; /* Fuente limpia */
    color: #333; /* Texto oscuro */
}

.popup-content h3 {
    margin-top: 0;
    color: #800080; /* Título en púrpura */
    font-size: 20px; /* Tamaño de fuente para el título */
    border-bottom: 2px solid #800080; /* Línea decorativa */
    padding-bottom: 5px; /* Espaciado bajo el título */
}

.popup-content p {
    margin: 10px 0; /* Espaciado entre párrafos */
    font-size: 14px; /* Tamaño legible */
    line-height: 1.6; /* Espaciado entre líneas */
}

.popup-content p span {
    font-weight: bold; /* Destacar las etiquetas */
    color: #555; /* Texto de etiquetas en gris */
}

.popup-close {
    margin-top: 10px;
    padding: 8px 15px;
    background: #800080; /* Botón púrpura */
    color: white; /* Texto blanco */
    border: none;
    cursor: pointer;
    border-radius: 5px; /* Bordes redondeados */
    transition: background-color 0.3s ease; /* Suavizar el cambio de color */
}

.popup-close:hover {
    background: #5a005a; /* Color más oscuro en hover */
}



.calendario-navegacion {
    text-align: center;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    min-height:50px;
}

.calendario-navegacion .calendario-nav {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.calendario-navegacion .calendario-nav:hover {
    background-color: #005f87;
}

/* General Styles for the Calendar */
.calendario-actividades {
    max-width: 100%;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
}

.calendario-actividades table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    table-layout: fixed;
}

.calendario-actividades th,
.calendario-actividades td {
    border: 1px solid #ddd;
    padding: 5px;
    vertical-align: top;
    font-size: 14px;
    word-wrap: break-word; /* Evitar superposición de contenido */
    overflow: hidden;
}

.calendario-actividades td {
    height: 80px;
    position: relative;
}

.calendario-actividades .calendario-nav {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.calendario-actividades .calendario-nav:hover {
    background-color: #005f87;
}

.calendario-actividades .calendario-mes-actual {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

/* Activities Styles */
.calendario-actividades .actividad {
    margin-top: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendario-actividades a.actividad-popup {
    display: block;
    color: #0073aa;
    text-decoration: none;
    cursor: pointer;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Truncate long titles */
    padding: 1px 3px; /* Espaciado interno */
    border-radius: 15px; /* Bordes redondeados */
    white-space: nowrap; /* Prevenir el salto de línea */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .calendario-actividades th {
        font-size: 12px;
    }

    .calendario-actividades td {
        font-size: 11px;
        height: 70px;
        padding: 3px;
    }

    .calendario-actividades a.actividad-popup {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    /* Simplify calendar for mobile */
    .calendario-actividades table {
        font-size: 10px;
    }

    .calendario-actividades th {
        font-size: 10px;
        padding: 2px;
    }

    /* Show abbreviated day names */
    .calendario-actividades th {
        text-indent: 0;
        line-height: 1; /* Ensure correct alignment */
    }

    .calendario-actividades th:nth-child(1)::after { content: 'L'; }
    .calendario-actividades th:nth-child(2)::after { content: 'M'; }
    .calendario-actividades th:nth-child(3)::after { content: 'X'; }
    .calendario-actividades th:nth-child(4)::after { content: 'J'; }
    .calendario-actividades th:nth-child(5)::after { content: 'V'; }
    .calendario-actividades th:nth-child(6)::after { content: 'S'; }
    .calendario-actividades th:nth-child(7)::after { content: 'D'; }
    .calendario-actividades th {
        font-size: 10px;
    }

    .calendario-actividades td {
        height: 60px;
        padding: 2px;
        font-size: 9px;
    }

    /* Simplify activity display */
    .calendario-actividades .actividad {
        background-color: #0073aa;
        color: #fff;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        display: inline-flex;
        justify-content: center;
        align-items: center;
        font-size: 10px;
        margin: 5px auto 0;
        cursor: pointer;
    }

    .calendario-actividades .actividad:after {
        content: '•';
        font-size: 20px;
    }

    .calendario-actividades a.actividad-popup {
        display: none; /* Hide activity titles */
    }
}

/* Estilo damero para las filas del calendario */
.calendario-actividades tbody tr:nth-child(odd) td {
    background-color: #f9f9f9; /* Gris claro */
}

.calendario-actividades tbody tr:nth-child(even) td {
    background-color: #fffaf0; /* Amarillo pastel */
}
/* Estilo para las celdas del encabezado con los nombres de los días */
.calendario-actividades th {
    background-color: #defbfb; /* Color de fondo turquesa claro */
    color: #333; /* Color del texto */
    font-weight: bold; /* Negrita */
    font-size: 16px; /* Tamaño de fuente */
    text-align: center; /* Centrado del texto */
    padding: 8px; /* Espaciado interno */
}

/* Estilo general para los checkboxes */
.filtro-autoridad {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 3px;
    background-color: green;
    cursor: pointer;
    margin-right: 2px;
}

/* Estilos para categorías específicas */
.filtro-autoridad.ministra:checked {
    background-color: #4A90E2; /* Azul */
    border-color: #4A90E2;
}

.filtro-autoridad.subsecretario:checked {
    background-color: #2ECC71; /* Verde */
    border-color: #2ECC71;
}

.filtro-autoridad.seremi:checked {
    background-color: #FFA500; /* Naranja */
    border-color: #FFA500;
}

.filtro-autoridad.director-regional:checked {
    background-color: #800080; /* Púrpura */
    border-color: #800080;
}



#categoria-indicadores {
    margin: 8px 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.categoria-indicador {
    display: none;
    align-items: center;
    padding: 5px 8px;
    color: white;
    font-size: 13px;
    font-weight: bold;
    border-radius: 5px;
}

.categoria-indicador[data-categoria="ministra"] {
    background-color: #4A90E2;
}

.categoria-indicador[data-categoria="subsecretario"] {
    background-color: #2ECC71;
}

.categoria-indicador[data-categoria="vialidad"] {
    background-color: #FFA500;
}

.categoria-indicador[data-categoria="dga"] {
    background-color: #800080;

}

.categoria-indicador[data-categoria="dop"] {
    background-color: #E23066;
}


.calendario-filtros label{
display:inline-block;
border:1px solid #eee;
background-color:#eee;
height:30px;
padding-right:5px;
}
