
/* ═══════════════════════════════════════════════════════════════════════════
   DevFix PDF Report — SUPREME EDITION v2
   Design Editorial A4 — Zero Páginas em Branco
   ═══════════════════════════════════════════════════════════════════════════ */

.df-pdf-root {
    width: 794px;
    background: #f1f5f9;
    color: #0f172a;
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 10pt;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    --df-pdf-accent: #059669;
    --df-pdf-accent-soft: #ecfdf5;
    --df-pdf-border: #e2e8f0;
    --df-pdf-text: #334155;
    --df-pdf-dark: #0b0f19;
    --df-pdf-dark-surface: #141a2a;
    --df-pdf-dark-border: #1e293b;
}

/* ── PÁGINA A4 BASE ───────────────────────────────────────────────────────── */
.df-pdf-page {
    width: 794px;
    min-height: 1122px;
    position: relative;
    box-sizing: border-box;
    padding: 50px 60px 90px 60px;
    background: #F8F8FA;
    overflow: hidden;
}

/* Quebra exata entre as páginas */
.df-pdf-page + .df-pdf-page {
    page-break-before: always;
}

/* ── HEADER DE PÁGINA ─────────────────────────────────────────────────────── */
.df-pdf-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2.5px solid var(--df-pdf-accent);
    padding-bottom: 16px;
    margin-bottom: 28px;
}

.df-pdf-page-title {
    font-size: 17pt;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.df-pdf-page-brand {
    font-size: 11pt;
    font-weight: 900;
    color: var(--df-pdf-accent);
    letter-spacing: 0.05em;
}

/* ── FOOTER DE PÁGINA ─────────────────────────────────────────────────────── */
.df-pdf-footer {
    position: absolute;
    bottom: 30px;
    left: 60px;
    right: 60px;
    border-top: 1px solid var(--df-pdf-border);
    padding-top: 12px;
    display: flex;
    justify-content: space-between;
    font-size: 8.5pt;
    color: #94a3b8;
    font-weight: 600;
}

.df-pdf-footer span strong {
    color: var(--df-pdf-accent);
}

/* ── PÍLULA DE CONHECIMENTO ───────────────────────────────────────────────── */
.df-pdf-knowledge-pill {
    background: #f8fafc;
    border-left: 3px solid var(--df-pdf-accent);
    padding: 12px 18px;
    margin-bottom: 22px;
    font-size: 8.8pt;
    color: #475569;
    line-height: 1.55;
    border-radius: 0 6px 6px 0;
}

.df-pdf-knowledge-pill strong {
    color: #0f172a;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CAPA — DARK PREMIUM
   ═══════════════════════════════════════════════════════════════════════════ */
.df-pdf-cover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    min-height: 1122px;
    padding: 0;
    background: var(--df-pdf-dark);
    color: #f8fafc;
    overflow: hidden;
}

.df-pdf-cover-bg-glow {
    position: absolute;
    top: -180px;
    right: -180px;
    width: 560px;
    height: 560px;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.25) 0%, transparent 65%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.df-pdf-cover-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--df-pdf-dark-border) 1px, transparent 1px),
        linear-gradient(90deg, var(--df-pdf-dark-border) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.18;
    z-index: 0;
    pointer-events: none;
}

.df-pdf-cover-content {
    position: relative;
    z-index: 10;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 70px 70px 40px 70px;
}

.df-pdf-cover-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.df-pdf-cover-logo {
    font-size: 28pt;
    font-weight: 900;
    color: #f8fafc;
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.df-pdf-cover-logo-accent {
    color: var(--df-pdf-accent);
}

.df-pdf-cover-badge {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 8pt;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--df-pdf-accent);
    font-weight: 700;
}

.df-pdf-cover-hero {
    margin-bottom: 50px;
}

.df-pdf-cover-label {
    display: inline-block;
    padding: 7px 16px;
    background: rgba(5, 150, 105, 0.1);
    border: 1px solid rgba(5, 150, 105, 0.2);
    border-radius: 40px;
    font-size: 8pt;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--df-pdf-accent);
    margin-bottom: 20px;
    font-weight: 700;
}

.df-pdf-cover-title {
    font-size: 42pt;
    font-weight: 900;
    color: #f8fafc;
    line-height: 1.05;
    margin-bottom: 16px;
    font-family: 'Outfit', 'Inter', sans-serif;
    letter-spacing: -0.03em;
}

.df-pdf-cover-url {
    font-size: 13pt;
    color: #94a3b8;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    padding: 10px 20px;
    border-radius: 10px;
    display: inline-block;
}

/* Bloco de Score na Capa */
.df-pdf-cover-score-block {
    display: flex;
    align-items: center;
    gap: 40px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    padding: 30px 40px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.df-pdf-cover-score-circle {
    position: relative;
    width: 130px;
    height: 130px;
    flex-shrink: 0;
}

.df-pdf-cover-score-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.df-pdf-cover-score-circle .circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.06);
    stroke-width: 8;
}

.df-pdf-cover-score-circle .circle-prog {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
}

.df-pdf-cover-score-circle .circle-prog.green { stroke: #10b981; }
.df-pdf-cover-score-circle .circle-prog.silver { stroke: #94a3b8; }
.df-pdf-cover-score-circle .circle-prog.gold { stroke: #eab308; }
.df-pdf-cover-score-circle .circle-prog.diamond { stroke: #8AC0AF; }
.df-pdf-cover-score-circle .circle-prog.bronze { stroke: #b45309; }
.df-pdf-cover-score-circle .circle-prog.red { stroke: #e11d48; }

.df-pdf-cover-score-val {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-size: 36pt;
    font-weight: 900;
}

.df-pdf-cover-score-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18pt;
    font-weight: 800;
    margin-bottom: 8px;
    color: #f8fafc;
}

.df-pdf-cover-score-info p {
    color: #94a3b8;
    font-size: 10pt;
    line-height: 1.6;
    max-width: 320px;
}

/* Meta da Capa (Data + Login) */
.df-pdf-cover-meta {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9pt;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

.df-pdf-cover-meta-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.df-pdf-cover-meta-label {
    font-size: 7pt;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #475569;
    font-weight: 700;
}

.df-pdf-cover-meta-value {
    color: #94a3b8;
    font-weight: 500;
}

.df-pdf-cover-meta-value strong {
    color: var(--df-pdf-accent);
}

/* ── TABELAS ──────────────────────────────────────────────────────────────── */
.df-pdf-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 22px;
    font-size: 9pt;
}

.df-pdf-table th {
    text-align: left;
    padding: 11px 12px;
    background: #f8fafc;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--df-pdf-border);
    font-size: 8pt;
}

.df-pdf-table td {
    padding: 12px;
    border-bottom: 1px solid var(--df-pdf-border);
    color: #334155;
    vertical-align: top;
    word-break: break-word;
}

.df-pdf-table tr:last-child td {
    border-bottom: none;
}

.df-pdf-table .prop {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9pt;
    color: #0f172a;
    font-weight: 600;
    width: 25%;
}

.df-pdf-table .val { width: 45%; }
.df-pdf-table .status { width: 15%; }

.df-pdf-table .len {
    width: 15%;
    color: #64748b;
    font-family: 'JetBrains Mono', monospace;
}

/* ── CHECKLIST ────────────────────────────────────────────────────────────── */
.df-pdf-checklist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 24px;
}

.df-pdf-check-card {
    display: flex;
    align-items: center;
    padding: 14px;
    background: #F8F8FA;
    border: 1px solid var(--df-pdf-border);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.df-pdf-check-icon {
    font-size: 22pt;
    margin-right: 14px;
    line-height: 1;
}

.df-pdf-check-content h4 {
    margin: 0 0 3px 0;
    font-size: 9.5pt;
    color: #0f172a;
}

.df-pdf-check-content p {
    margin: 0;
    font-size: 8.5pt;
    color: #64748b;
}

/* ── ALERTAS ──────────────────────────────────────────────────────────────── */
.df-pdf-alert-box {
    padding: 18px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.df-pdf-alert-box.success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
}

.df-pdf-alert-box.success h3 { color: #065f46; margin: 0 0 8px 0; font-size: 11pt; }
.df-pdf-alert-box.success p { color: #047857; margin: 0; font-size: 9pt; }

.df-pdf-alert-box.warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.df-pdf-alert-box.warning h3 { color: #92400e; margin: 0 0 10px 0; font-size: 11pt; }

.df-pdf-alert-box.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.df-pdf-alert-box.error h3 { color: #991b1b; margin: 0 0 10px 0; font-size: 11pt; }

.df-pdf-list {
    margin: 0;
    padding-left: 16px;
    font-size: 9pt;
}

.df-pdf-list li { margin-bottom: 6px; }
.df-pdf-alert-box.error .df-pdf-list { color: #7f1d1d; }
.df-pdf-alert-box.warning .df-pdf-list { color: #78350f; }

/* ── INSPETORES ───────────────────────────────────────────────────────────── */
.df-pdf-inspector {
    border: 1px solid var(--df-pdf-border);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
}

.df-pdf-inspector h3 {
    margin: 0 0 14px 0;
    font-size: 11pt;
    color: #0f172a;
    border-bottom: 1px solid var(--df-pdf-border);
    padding-bottom: 8px;
}

.df-pdf-kv-row {
    display: flex;
    margin-bottom: 10px;
    font-size: 9pt;
}

.df-pdf-kv-row:last-child { margin-bottom: 0; }
.df-pdf-kv-row .k { width: 150px; font-weight: 700; color: #64748b; flex-shrink: 0; }
.df-pdf-kv-row .v { flex: 1; color: #0f172a; font-weight: 500; word-break: break-word; }


/* ── BADGES ───────────────────────────────────────────────────────────────── */
.badge-table {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 7.5pt;
    font-weight: 800;
    text-transform: uppercase;
}

.badge-table.pass { background: #dcfce7; color: #059669; }
.badge-table.fail { background: #fef2f2; color: #e11d48; }
.badge-table.neutral { background: #f1f5f9; color: #475569; }

/* ── LIGHTHOUSE ───────────────────────────────────────────────────────────── */
.df-pdf-lh-scores {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0 30px 0;
    padding: 18px;
    background-color: #f8fafc !important;
    border: 1px solid var(--df-pdf-border);
    border-radius: 12px;
}

.df-pdf-lh-score-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.df-pdf-lh-score-col span {
    margin-top: 8px;
    font-size: 9pt;
    font-weight: 700;
    color: #475569;
}

.df-pdf-svg-chart {
    width: 80px;
    height: 80px;
}

.df-pdf-svg-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 3.5;
}

.df-pdf-svg-circle {
    fill: none;
    stroke-width: 3.5;
    stroke-linecap: round;
}

.df-pdf-svg-circle.red { stroke: #e11d48; }
.df-pdf-svg-circle.orange { stroke: #d97706; }
.df-pdf-svg-circle.green { stroke: #059669; }

.df-pdf-svg-text {
    fill: #0f172a;
    font-size: 10px;
    font-weight: 800;
    text-anchor: middle;
    font-family: 'Outfit', 'Inter', sans-serif;
}

/* ── CAIXAS DE INFORMAÇÃO ───────────────────────────────────────────────────────────── */
.df-pdf-locked-box {
    background-color: #f8fafc !important;
    border: 1px solid var(--df-pdf-border);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 20px;
    position: relative;
}

.df-pdf-locked-box h4 {
    margin: 0 0 10px 0;
    color: #0f172a;
    font-size: 10pt;
    border-bottom: 1px solid var(--df-pdf-border);
    padding-bottom: 6px;
}

.df-pdf-locked-list {
    margin: 0;
    padding-left: 16px;
    font-size: 8.5pt;
    color: #334155;
}

.df-pdf-locked-list li { margin-bottom: 5px; }

/* ── GRID DE MÉTRICAS ─────────────────────────────────────────────────────── */
.df-pdf-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 20px;
}
