body {
    font-family: "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
    background:
        radial-gradient(circle at top, rgba(148, 163, 184, 0.18), transparent 28%),
        linear-gradient(180deg, #e2e8f0 0%, #f8fafc 28%, #f8fafc 100%);
    color: #0f172a;
}

.portal-title {
    font-family: "Palatino Linotype", "Book Antiqua", Palatino, "Times New Roman", serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portal-copy {
    font-size: 0.975rem;
    line-height: 1.75;
    color: #334155;
}

.portal-label {
    display: inline-block;
    min-width: 6.5rem;
    margin-right: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #64748b;
}

.portal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    color: #1e293b;
}

.portal-table th {
    border-bottom: 1px solid #cbd5e1;
    background: #e2e8f0;
    padding: 0.85rem 0.65rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #475569;
}

.portal-th-vertical {
    width: 2.5rem;
    min-width: 2.5rem;
    padding: 0.35rem 0.2rem !important;
}

.portal-th-vertical span {
    display: inline-block;
    transform: rotate(-90deg);
    transform-origin: center center;
    white-space: nowrap;
    line-height: 1;
}

.portal-section-cell {
    text-align: center;
    vertical-align: middle;
}

.portal-status {
    display: inline-flex;
    min-width: 3.35rem;
    justify-content: center;
    border-radius: 9999px;
    padding: 0.18rem 0.38rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 0.72rem;
    line-height: 1.1;
}

.portal-status-pass {
    background: #dcfce7;
    color: #166534;
}

.portal-status-fail {
    background: #fee2e2;
    color: #991b1b;
}

.portal-muted-dash {
    color: #94a3b8;
    font-weight: 700;
    font-size: 0.78rem;
}

.portal-table td {
    border-bottom: 1px solid #cbd5e1;
    padding: 0.8rem 0.65rem;
    vertical-align: top;
    background: #ffffff;
}

.portal-table tbody tr:nth-child(even),
.portal-table tr:nth-child(even) {
    background: rgba(241, 245, 249, 0.92);
}

.portal-table-compact td,
.portal-table-compact th {
    font-size: 0.76rem;
}

#receipt-document .portal-table-compact th {
    padding: 0.42rem 0.36rem;
    font-size: 0.69rem;
}

#receipt-document .portal-table-compact td {
    padding: 0.36rem 0.36rem;
    font-size: 0.72rem;
}

@media print {
    @page {
        size: letter;
        margin: 0.35in;
    }

    body {
        background: #fff !important;
    }

    .oculto-impresion,
    .oculto-impresion * {
        display: none !important;
    }
}
