.container-header {
    display: flex;
    width: 70%;
    margin: 15px auto;
    align-items: center;
    justify-content: space-evenly;
    padding: 20px;

    h2 {
        text-align: center;
    }

    button {
        background-color: rgb(148, 196, 136);
        border: none;
        padding: 10px 20px;
        cursor: pointer;
        border-radius: 5px;
    }
}

.dashboard-cards {
    display: flex;
    gap: 20px;
    margin: auto;
    margin-bottom: 25px;
    justify-content: space-between;
    width: 75%;
}

.card-stat {
    flex: 1;
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid rgb(152, 191, 126);
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Estilos base para CUALQUIER tarjeta activa (sombra y borde) */
.card-stat.active {
    border-color: #cbd5e1;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}

/* Colores de fondo ESPECÍFICOS para cada tarjeta cuando está activa */
#btn-tab-nuevos.active {
    background-color: rgb(224, 224, 224);
    /* El gris original */
}

#btn-tab-proceso.active {
    background-color: rgb(255, 237, 166);
    /* Amarillo suave */
}

#btn-tab-resueltos.active {
    background-color: rgb(232, 237, 229);
    /* Verde suave */
}

.card-stat h3 {
    font-size: 2rem;
    font-weight: 800;
    margin: 5px 0;
    color: #1e293b;
}

.card-stat p {
    margin: 0;
    color: #64748b;
    font-weight: 600;
    font-size: 0.95rem;
}

.cabecera_busqueda {
    border: 1px solid rgb(152, 191, 126);
    border-radius: 12px;
    width: 75%;
    margin: auto;
}

/* Contenedores de tablas ocultos por defecto */
.tab-content-incidentes {
    display: none;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 20px;
}

.tab-content-incidentes.active {
    display: block;
}

.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

/* Estilo base del círculo */
.circle-prioridad {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #6c757d;
    /* Gris por defecto por si viene otro valor */
}

/* Modificadores de color exactos para cada letra */
.prioridad-V {
    background-color: #28a745;
}

/* Verde */
.prioridad-R {
    background-color: #dc3545;
}

/* Rojo */
.prioridad-A {
    background-color: #ffc107;
}

/* Amarillo */

/* Estilo unificado y blindado para los botones de las tablas */
.btn-borde-verde {
    background-color: #ffffff !important;
    /* Fuerza el fondo blanco */
    color: #000000 !important;
    /* Fuerza el texto negro */
    border: 1px solid rgb(148, 196, 136) !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    padding: 6px 12px !important;

    /* Ancho fijo para que todos midan lo mismo, y auto para anular los 27px viejos */
    width: 105px !important;
    height: auto !important;

    /* Flexbox para alinear la imagen y el texto perfectamente */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
}

.btn-borde-verde:hover {
    background-color: #dedede !important;
    color: #000000 !important;
    border-color: rgb(120, 170, 110) !important;
    text-decoration: none !important;
}

/* Estilo para la imagencita de descarga */
.icon-flecha {
    width: 14px !important;
    height: auto !important;
    margin-right: 6px !important;
}

/* Botones de acción generales (Derivar, Imp. OT, Pre.Resu) */
.btn-accion-proceso {
    background-color: rgb(190, 202, 180) !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 8px 10px !important;
    width: 150px !important;
    /* Mismo tamaño para todos */
    height: 35px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: uppercase;
    text-decoration: none !important;
    cursor: pointer;
    transition: opacity 0.2s;
}

.btn-accion-proceso:hover {
    opacity: 0.8;
    color: #000000 !important;
    text-decoration: none !important;
}

/* Color específico para el botón de Cerrar */
.btn-cerrar-verde-oscuro {
    background-color: rgb(148, 196, 136) !important;
    color: #ffffff !important;
    /* Letra blanca para que contraste mejor con el verde oscuro */
}

.btn-cerrar-verde-oscuro:hover {
    color: #ffffff !important;
}

/* Botones de texto estilo minimalista */
.btn-minimalista {
    background: transparent !important;
    border: none !important;
    color: #000000 !important;
    font-weight: 800 !important;
    /* Negrita fuerte para igualar la imagen */
    font-size: 13px !important;
    display: inline-flex;
    align-items: center;
    text-decoration: none !important;
    padding: 0;
    cursor: pointer;
    outline: none;
    transition: opacity 0.2s;
}

.btn-minimalista:hover {
    opacity: 0.7;
    color: #000000 !important;
}

/* El círculo gris contenedor del icono */
.circle-icon {
    background-color: #e2e8f0;
    /* Gris clarito */
    color: #ffffff;
    /* Icono en blanco */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    /* Espacio con el texto */
}

/* Forzamos el tamaño del icono de Bootstrap dentro del círculo */
.circle-icon i {
    font-size: 16px;
}

@media (max-width: 992px) {

    .dashboard-cards {
        width: 95%;
    }

    .cabecera_busqueda {
        width: 95%;
    }
}

@media (max-width: 768px) {
    .container-header {
        flex-direction: column;
        text-align: center;
        width: 90%;
        padding: 5px;

        img {
            display: none;
        }
    }

    .container-header div {
        margin-bottom: 10px;
    }
}