/* Titulo de seccion */
.dashboard-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 15px;
}

/* Grid Responsivo para Tarjetas KPI */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* Tarjeta Base */
.kpi-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.kpi-info {
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.3px;
}

.kpi-value {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    line-height: 1.2;
}

/* Indicadores de Borde/Estilo por Estado */
.kpi-total       { border-left: 4px solid #009688; } /* Verde By-Dayo */
.kpi-proceso     { border-left: 4px solid #3b82f6; } /* Azul */
.kpi-planificado { border-left: 4px solid #6366f1; } /* Índigo */
.kpi-pendiente   { border-left: 4px solid #f59e0b; } /* Ambar/Naranja */
.kpi-pausado     { border-left: 4px solid #8b5cf6; } /* Púrpura */
.kpi-completado  { border-left: 4px solid #10b981; } /* Verde Éxito */
.kpi-cancelado   { border-left: 4px solid #ef4444; } /* Rojo */

/* Limitar la altura del cuerpo del modal y permitir scroll vertical */
.modal-dialog {
    max-height: 90vh; /* Máximo 90% de la altura de la pantalla */
}

.modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-body {
    overflow-y: auto; /* Scroll vertical cuando el contenido sobrepasa */
    max-height: calc(90vh - 120px); /* Resta espacio disponible para header y footer */
}

/* Controlar el tamaño máximo de la vista previa de las imágenes */
.img-preview-thumb {
    max-height: 80px !important; /* Mantiene la foto compacta */
    width: auto;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}