/* ASVS Análisis — estilos de las pantallas
   Sin estilos inline en las vistas: la CSP usa style-src 'self'.
   Paleta y componentes: theme.css · Estructura: layout.css */

.auth-container { max-width: 440px; }

/* Tarjetas de métricas del panel */
.stat-card .stat-value { font-size: 1.9rem; font-weight: 600; line-height: 1.1; }
.stat-card .stat-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--bs-secondary-color); }

/* Barras de progreso por capítulo sin style inline: anchura por clase */
.progress-stack { height: .8rem; }
.w-pct-0 { width: 0; }
@supports (width: calc(1%)) {
    .progress-bar[data-pct] { width: 0; transition: width .4s ease; }
}

/* Catálogo */
.req-id { font-family: var(--bs-font-monospace); font-weight: 600; white-space: nowrap; }
.req-desc { max-width: 70ch; }
.table-catalog td { vertical-align: top; }

/* Guías renderizadas desde Markdown */
.guide h2 { font-size: 1.25rem; margin-top: 2rem; padding-bottom: .35rem; border-bottom: 1px solid var(--bs-border-color); }
.guide h3 { font-size: 1.05rem; margin-top: 1.25rem; }
.guide pre { background: var(--asvs-code-bg); color: #E2E8F0; padding: 1rem; border-radius: .5rem; overflow-x: auto; font-size: .85rem; }
.guide code { font-size: .875em; }
.guide pre code { color: inherit; }
.guide :not(pre) > code { background: var(--bs-tertiary-bg); padding: .1rem .3rem; border-radius: .25rem; color: var(--bs-emphasis-color); }
.guide table { width: 100%; margin-bottom: 1rem; }
.guide th, .guide td { border: 1px solid var(--bs-border-color); padding: .4rem .6rem; }

/* Checklist de evaluación */
.item-row.status-pass { border-left: 4px solid var(--bs-success); }
.item-row.status-fail { border-left: 4px solid var(--bs-danger); }
.item-row.status-review { border-left: 4px solid var(--bs-secondary); }
.item-row.status-na { border-left: 4px solid var(--bs-dark); opacity: .75; }
.item-row.status-pending { border-left: 4px solid var(--bs-border-color); }
.item-row .btn-group .btn { min-width: 2.6rem; }

/* Evidencias y hallazgos: texto de terceros, siempre monoespaciado y partido */
.evidence { font-family: var(--bs-font-monospace); font-size: .8rem; white-space: pre-wrap; word-break: break-all; max-height: 12rem; overflow: auto; }

/* Informe imprimible */
@media print {
    .navbar, footer, .no-print, .btn { display: none !important; }
    main { padding: 0 !important; }
    .card { border: 0; }
    a[href]::after { content: none; }
}

.org-logo-preview { max-height: 80px; max-width: 280px; }
