@charset "utf-8";
/* CSS Document */
/*

    gama_lac_standards.css

    Estándar visual y de componentes UI para los dashboards de Gama Lac (ISO 15189)

    Homogéneo con document_management.php y la línea gráfica corporativa. */

/* Contenedor Flex para Encabezados de Sección */ 
.content-header-flex { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }

.section-main-title { font-size: 1.35rem; font-weight: 700; color: #1e293b; margin: 0 0 4px 0; }

.text-muted { font-size: 0.85rem; color: #64748b; margin: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Tarjetas de Indicadores Rápidos (KPI Grid) */ .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }

.kpi-card { background: #ffffff; border-radius: 12px; padding: 1.25rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); border-left: 4px solid #3b82f6; display: flex; align-items: center; justify-content: space-between; transition: transform 0.2s ease, box-shadow 0.2s ease; }

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

.kpi-card.kpi-success { border-left-color: #10b981; } .kpi-card.kpi-warning { border-left-color: #f59e0b; } .kpi-card.kpi-danger { border-left-color: #ef4444; }

.kpi-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #64748b; margin-bottom: 0.25rem; }

.kpi-value { font-size: 1.5rem; font-weight: 700; color: #1e293b; }

.kpi-icon { font-size: 2.2rem; color: #cbd5e1; }

/* Pestañas de Filtro Rápido */ .phase-tabs { display: flex; gap: 8px; margin-bottom: 1rem; border-bottom: 1px solid #e2e8f0; padding-bottom: 8px; overflow-x: auto; }

.phase-tab-btn { background: #f8fafc; border: 1px solid #e2e8f0; padding: 6px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 600; color: #64748b; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s; }

.phase-tab-btn:hover { background: #f1f5f9; color: #1e293b; }

.phase-tab-btn.active { background: #2563eb; color: white; border-color: #2563eb; }

/* Estructura de Tarjeta de Contenedor General */ .card-box { background: #ffffff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); padding: 1.5rem; }

/* Botones y Componentes Interactivos */ .btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; border: none; text-decoration: none; transition: background 0.2s; }

.btn.is-primary, .btn-primary { background: #2563eb; color: #ffffff; }

.btn.is-primary:hover, .btn-primary:hover { background: #1d4ed8; }

.btn-secondary { background: #e2e8f0; color: #334155; }

.btn-secondary:hover { background: #cbd5e1; }

.btn-sync { background: #f8fafc; border: 1px solid #cbd5e1; color: #475569; }

.btn-sync:hover { background: #f1f5f9; }

/* Píldoras de Estado (Status Badges) */ .badge, .status-pill { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; }

.status-active, .badge.status-active { background: #dcfce7; color: #15803d; }

.status-warning, .badge.status-warning { background: #fef3c7; color: #b45309; }

.status-blocked, .status-danger, .badge.status-blocked { background: #fee2e2; color: #b91c1c; }

/* Modales corporativos */ .modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(15, 23, 42, 0.6); backdrop-filter: blur(2px); align-items: center; justify-content: center; z-index: 1050; }

.modal-content { background: #ffffff; border-radius: 12px; width: 100%; max-width: 600px; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); overflow: hidden; animation: modalFadeIn 0.25s ease-out; }

@keyframes modalFadeIn { from { opacity: 0; transform: translateY(-15px); } to { opacity: 1; transform: translateY(0); } }

.form-control { width: 100%; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.85rem; color: #1e293b; box-sizing: border-box; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }

.form-control:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }

.input-label { display: block; font-size: 0.8rem; font-weight: 600; color: #475569; margin-bottom: 6px; }


.kpi-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 1.25rem;
        margin-bottom: 1.5rem;
    }
    .kpi-card {
        background: #ffffff;
        border-radius: 12px;
        padding: 1.25rem;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        border-left: 4px solid #3b82f6;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
    .kpi-card.kpi-success { border-left-color: #10b981; }
    .kpi-card.kpi-warning { border-left-color: #f59e0b; }
    .kpi-card.kpi-danger { border-left-color: #ef4444; }
    .kpi-title {
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        color: #64748b;
        margin-bottom: 0.25rem;
    }
    .kpi-value {
        font-size: 1.5rem;
        font-weight: 700;
        color: #1e293b;
    }
    .kpi-icon {
        font-size: 2.2rem;
        color: #cbd5e1;
    }
    .phase-tabs {
        display: flex;
        gap: 8px;
        margin-bottom: 1rem;
        border-bottom: 1px solid #e2e8f0;
        padding-bottom: 8px;
    }
    .phase-tab-btn {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        padding: 6px 14px;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        color: #64748b;
        cursor: pointer;
        text-decoration: none;
    }
    .phase-tab-btn.active {
        background: #2563eb;
        color: white;
        border-color: #2563eb;
    }
    .history-timeline {
        border-left: 2px solid #e2e8f0;
        padding-left: 16px;
        margin-left: 10px;
    }
    .history-item {
        position: relative;
        margin-bottom: 20px;
    }
    .history-item::before {
        content: '';
        position: absolute;
        left: -21px;
        top: 4px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #2563eb;
    }