/* Project Configuration – Reports tab (ReportsTab.razor + reportsTab.js, plan 2026-09-20-configurable-reports).
   Prefijo prep-. Banner y modales reutilizan .pcfg-section-* / .pcfg-list-confirm-backdrop de projectConfig.css. */

.prep-root { display: flex; flex-direction: column; gap: var(--atlas-space-4); }

/* Banner: título a la izquierda, descargas a la derecha; en estrecho las descargas bajan. */
.prep-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--atlas-space-4); flex-wrap: wrap; }
.prep-head-actions { display: flex; flex-wrap: wrap; gap: var(--atlas-space-2); justify-content: flex-end; }

/* Secciones global / proyecto */
.prep-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--atlas-space-3); margin-bottom: var(--atlas-space-2); }
.prep-section-title { font-size: .95rem; font-weight: 700; color: var(--atlas-text); }
.prep-section-sub { font-size: .78rem; color: var(--atlas-text-muted); }

.prep-table th { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--atlas-text-muted); white-space: nowrap; }
.prep-table td { font-size: .85rem; vertical-align: middle; }
.prep-col-version, .prep-col-active { width: 5.5rem; }
.prep-col-actions { width: 9rem; }
.prep-name { font-weight: 600; color: var(--atlas-text); }
.prep-code { font-family: var(--atlas-font-mono); font-size: .7rem; color: var(--atlas-text-faint); }
.prep-version { font-family: var(--atlas-font-mono); font-size: .78rem; color: var(--atlas-text-secondary); }
.prep-tpl { font-size: .8rem; color: var(--atlas-text-secondary); max-width: 16rem; display: inline-block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.prep-updated { font-size: .78rem; color: var(--atlas-text-secondary); white-space: nowrap; }
.prep-row-off td { opacity: .55; }
.prep-empty { font-size: .85rem; }

.prep-actions { white-space: nowrap; }
.prep-act { padding: .1rem .35rem; color: var(--atlas-text-secondary); font-size: 1rem; line-height: 1; }
.prep-act:hover { color: var(--atlas-color-primary); }
.prep-act-danger:hover { color: var(--atlas-red-600); }

.prep-pill { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .04em; padding: .1rem .5rem; border-radius: var(--atlas-radius-full); background: var(--atlas-indigo-50); color: var(--atlas-indigo-800); vertical-align: middle; }
.prep-pill-admin { background: var(--atlas-amber-50); color: var(--atlas-amber-800); text-transform: uppercase; }

/* Manual corto (details) */
.prep-help { background: var(--atlas-surface); border: 1px solid var(--atlas-border); border-radius: var(--atlas-radius-lg); padding: var(--atlas-space-3) var(--atlas-space-4); }
.prep-help-summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--atlas-text); list-style: none; }
.prep-help-summary::-webkit-details-marker { display: none; }
.prep-help-summary::before { content: "▸"; display: inline-block; width: 1rem; color: var(--atlas-text-faint); transition: transform .15s; }
.prep-help[open] .prep-help-summary::before { transform: rotate(90deg); }
.prep-help-body { margin-top: var(--atlas-space-3); font-size: .82rem; color: var(--atlas-text-secondary); }
.prep-help-p { margin: 0 0 var(--atlas-space-2); }
.prep-help-p-last { margin-bottom: 0; }
.prep-help-body code { font-size: .78rem; }

/* Diálogo de subida */
.prep-dlg-sub { font-size: .78rem; color: var(--atlas-text-muted); margin-top: .1rem; }
.prep-dlg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--atlas-space-3); }
.prep-dlg-field { min-width: 0; }
.prep-dlg-hint { font-size: .75rem; color: var(--atlas-text-secondary); margin-top: .25rem; }
.prep-dlg-json-head { display: flex; justify-content: space-between; align-items: center; gap: var(--atlas-space-2); }
.prep-json-text { font-size: .78rem; resize: vertical; min-height: 10rem; }
.prep-dlg-msg { font-size: .8rem; color: var(--atlas-text-secondary); }
.prep-dlg-msg-ok { color: var(--atlas-sev-ok-text); }
.prep-dlg-msg-danger { color: var(--atlas-sev-danger-text); }

/* Resultado de Validate: verde (resumen) o rojo (lista path — message) */
.prep-result { margin-top: var(--atlas-space-3); padding: var(--atlas-space-3) var(--atlas-space-4); border-radius: var(--atlas-radius-md); font-size: .82rem; border: 1px solid transparent; }
.prep-result-ok { background: var(--atlas-sev-ok-bg); color: var(--atlas-sev-ok-text); border-color: var(--atlas-emerald-100); }
.prep-result-bad { background: var(--atlas-sev-danger-bg); color: var(--atlas-sev-danger-text); border-color: var(--atlas-red-100); }
.prep-result-title { font-weight: 600; margin-bottom: var(--atlas-space-1); }
.prep-result-facts { display: flex; flex-wrap: wrap; gap: var(--atlas-space-1) var(--atlas-space-4); }
.prep-fact-label { font-weight: 600; }
.prep-issues { margin: 0; padding-left: 1.1rem; max-height: 14rem; overflow-y: auto; }
.prep-issues li { margin-bottom: .15rem; }
.prep-issues code { color: inherit; font-size: .76rem; }

@media (max-width: 640px) {
    .prep-dlg-grid { grid-template-columns: 1fr; }
    .prep-head-actions { justify-content: flex-start; }
}
