/* =====================================================
   SISTEMA DE DISEÑO DE REPORTES ECO<SIGHT>
   ===================================================== */

/* 1. Elementos de Pantalla (Viewer) */
.report-viewer {
    background: #0f172a;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Secciones de Ley */
.ley-section-header {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 15px 25px;
  border-radius: 12px;
  margin: 40px 0 20px 0;
  font-weight: 700;
  font-size: 1.1rem;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 15px;
}

.ley-section-header span {
  font-size: 0.75rem;
  text-transform: uppercase;
  background: #00b894;
  color: #000;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 900;
}

/* Mensaje de Cumplimiento */
.compliance-msg {
  padding: 20px;
  background: rgba(0, 184, 148, 0.05);
  border-radius: 12px;
  border: 1px dashed #00b894;
  color: #00b894;
  font-weight: 600;
  margin-bottom: 25px;
}

/* Bloques de Observación */
.audit-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.audit-block:hover {
    background: rgba(255, 255, 255, 0.04);
}

.audit-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
}

.obs-num {
    background: #ff7675;
    color: #fff;
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 900;
    font-size: 0.75rem;
    white-space: nowrap;
}

.obs-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

/* Campos de Detalle */
.field-item {
    display: grid;
    grid-template-columns: 30px 150px 1fr;
    margin-bottom: 12px;
}

.field-label {
    font-size: 0.7rem;
    font-weight: 900;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-top: 4px;
}

.field-text {
    font-size: 0.95rem;
    color: #e2e8f0;
    line-height: 1.5;
    margin: 0 !important;
}

/* 2. DISEÑO PARA IMPRESIÓN (PDF OFICIAL) */
@media print {
    @page { margin: 2.5cm; size: A4; }
    
    body { background: #fff !important; color: #000 !important; }
    .sidebar, .glass-header, .report-header, .glow-bg, .btn-validate, .toast, .empty-state {
        display: none !important;
    }

    .main-content { padding: 0 !important; margin: 0 !important; overflow: visible !important; }
    .report-viewer { background: #fff !important; padding: 0 !important; border: none !important; box-shadow: none !important; }

    /* Encabezado Visual */
    .report-visual-header {
        display: block !important;
        border-bottom: 2px solid #000 !important;
        margin-bottom: 30px !important;
        padding-bottom: 20px !important;
    }

    .header-top { display: flex !important; justify-content: space-between !important; align-items: flex-end !important; }
    .header-brand h1 { font-size: 24pt !important; font-weight: 900 !important; color: #000 !important; margin: 0 !important; }
    .header-brand p { font-size: 9pt !important; color: #666 !important; font-weight: 700 !important; margin: 0 !important; }
    .header-meta { font-size: 9pt !important; text-align: right !important; font-weight: 800 !important; }
    
    .header-title-box { background: #000 !important; color: #fff !important; padding: 10pt !important; text-align: center !important; margin: 20pt 0 !important; }
    .header-title-box h2 { margin: 0 !important; font-size: 14pt !important; font-weight: 800 !important; letter-spacing: 2px !important; }

    .header-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 20pt !important; }
    .header-label { font-weight: 900 !important; min-width: 80pt !important; display: inline-block !important; }

    /* Normativas */
    .ley-section-header {
        background: #f8f9fa !important; border: 1px solid #ddd !important;
        color: #000 !important; margin: 30pt 0 15pt 0 !important;
        page-break-after: avoid;
    }
    .ley-section-header span { background: #000 !important; color: #fff !important; }

    /* Observaciones */
    .audit-block {
        background: #fff !important; border: 1px solid #eee !important;
        border-left: 6px solid #d63031 !important;
        page-break-inside: avoid;
        margin-bottom: 20pt !important;
        padding: 20pt !important;
    }
    .audit-header { border-bottom: 1px solid #eee !important; }
    .obs-num { background: #000 !important; color: #fff !important; }
    .obs-title { color: #000 !important; font-size: 13pt !important; }
    .field-label { color: #666 !important; font-size: 8pt !important; }
    .field-text { color: #000 !important; font-size: 11pt !important; }
}

.hidden { display: none !important; }
