/*
 * Bolsa de horas. Mismo aire que el Inicio (home.css): tarjetas redondas con
 * sombra morada suave y el icono de la cabecera en su cuadradito.
 */
.bolsa {
    --k-morado: #6F3D94;
    --k-morado-oscuro: #452e80;
    --k-suave: #f4effa;
    --k-texto: #2c2540;
    --k-gris: #6e6880;
    --k-verde: #1f8a5b;
    --k-rojo: #c0392b;
}

/* La plantilla pone los botones a todo el ancho: aquí van a su tamaño. */
.bolsa .btn,
.bolsa-modal .btn {
    width: auto;
}

.bolsa-card {
    border: 0;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(69, 46, 128, 0.08);
    padding: 1.25rem;
}

.bolsa-card-cab {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.bolsa-card-cab h6 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--k-texto);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.bolsa-card-cab h6 i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--k-suave);
    color: var(--k-morado);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.bolsa-ayuda {
    color: var(--k-gris);
    font-size: 0.9rem;
}

.bolsa-boton,
.bolsa-modal .bolsa-boton {
    background: var(--k-morado, #6F3D94);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
}

.bolsa-boton:hover,
.bolsa-boton:focus {
    background: var(--k-morado-oscuro, #452e80);
    color: #fff;
}

.bolsa-boton-suave {
    background: var(--k-suave);
    color: var(--k-morado);
    border: 0;
    border-radius: 12px;
    font-weight: 600;
}

.bolsa-boton-suave:hover {
    background: #ebe0f7;
    color: var(--k-morado-oscuro);
}

#dt_bolsa thead th {
    color: var(--k-gris);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom-color: #efe9f6;
}

.bolsa-horas {
    font-weight: 700;
    color: var(--k-texto);
}

.bolsa-horas.positivo { color: var(--k-verde); }
.bolsa-horas.negativo { color: var(--k-rojo); }
.bolsa-horas.cero { color: var(--k-gris); font-weight: 500; }

/* Modales */
.bolsa-modal {
    border: 0;
    border-radius: 18px;
}

.bolsa-modal .modal-title {
    font-weight: 700;
    color: #2c2540;
}

.bolsa-opcion {
    border: 1px solid #e3d8f0;
    color: #6F3D94;
    font-weight: 600;
}

.btn-check:checked + .bolsa-opcion {
    background: #6F3D94;
    border-color: #6F3D94;
    color: #fff;
}

.bolsa-resumen {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.bolsa-resumen > div {
    background: #f4effa;
    border-radius: 14px;
    padding: 0.75rem;
    text-align: center;
}

.bolsa-resumen small {
    display: block;
    color: #6e6880;
    font-size: 0.8rem;
}

.bolsa-resumen strong {
    font-size: 1.15rem;
    color: #2c2540;
}

.bolsa-mov {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid #efe9f6;
}

.bolsa-mov:last-child { border-bottom: 0; }

.bolsa-mov-icono {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f4effa;
    color: #6F3D94;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.bolsa-mov-texto { flex: 1 1 auto; min-width: 0; }
.bolsa-mov-texto small { color: #6e6880; }

/* Horas del mes */
#tabla_propuestas thead th {
    color: var(--k-gris);
    font-weight: 600;
    font-size: 0.85rem;
    border-bottom-color: #efe9f6;
}

#tabla_propuestas td { vertical-align: middle; }

.bolsa-estado {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.bolsa-estado.pending { background: #fff4e0; color: #8a4b00; }
.bolsa-estado.approved { background: #eaf3de; color: #27500a; }
.bolsa-estado.rejected { background: #fcebeb; color: #791f1f; }

.bolsa-nota {
    display: block;
    font-size: 0.78rem;
    color: #6e6880;
    max-width: 260px;
}

.bolsa-ratio {
    display: block;
    font-size: 0.78rem;
    color: #6e6880;
}

.bolsa-dia-aviso { color: #a3570b; }

/* Caducidad, lotes e historial */
.bolsa-caduca {
    font-weight: 600;
    color: #2c2540;
}

.bolsa-caduca small {
    display: block;
    font-weight: 400;
    font-size: 0.78rem;
    color: #6e6880;
}

.bolsa-caduca.pronto,
.bolsa-caduca.pronto small { color: #a3570b; }

.bolsa-subtitulo {
    font-weight: 700;
    font-size: 0.95rem;
    color: #2c2540;
    margin: 0.25rem 0 0.5rem;
}

.bolsa-lotes th {
    color: #6e6880;
    font-weight: 600;
    font-size: 0.8rem;
}

.bolsa-lotes td { font-size: 0.88rem; vertical-align: middle; }
.bolsa-lote-cerrado td { color: #a29db0; }

.bolsa-mov-anulado .bolsa-mov-texto > div,
.bolsa-mov-anulado .bolsa-horas { text-decoration: line-through; opacity: 0.7; }

@media (max-width: 575.98px) {
    .bolsa-resumen { grid-template-columns: 1fr; }
}
