.report-page {
    display: flex;
    flex-direction: column;
        flex: 1 0 auto;
    align-self: stretch;
    gap: 16px;
    width: 100%;
    min-width: 0;
    min-height: 100%;
    padding: 24px;
    background: var(--surface-200);
    color: #173550;
}

.contenido-shadow:has(.report-page) {
    background: var(--surface-200);
}

.report-hero,
.report-section-heading,
.report-downloads,
.report-validation-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.report-hero {
    flex-wrap: wrap;
    padding: 22px 25px;
    border-radius: 17px;
    background: #0d2e48;
    color: #fff;
}

.report-eyebrow {
    display: block;
    color: #448da2;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.report-hero .report-eyebrow {
    color: #80d9df;
}
.report-hero h1 {
    margin: 5px 0;
    font-size: clamp(1.55rem, 2.5vw, 2.25rem);
}
.report-hero p {
    margin: 0;
    color: #c4d9e2;
}
.report-downloads {
    flex-wrap: wrap;
}
.report-download {
    border: 1px solid #acdbe1;
    background: #fff;
    color: #0d5464;
    font-weight: 700;
}
.report-download svg {
    margin-right: 5px;
    vertical-align: middle;
}
.report-unsaved {
    margin: 0;
    padding: 11px 14px;
    border: 1px solid #d8b874;
    border-radius: 8px;
    background: #fff8e8;
    color: #6e5119;
}
.report-order-status {
    margin: 0;
    color: #246746;
}
.report-order-status.is-error {
    color: #a1282b;
}

.report-indicators {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.report-indicators article,
.report-summary,
.report-table-card,
.report-chart-card,
.report-validation {
    min-width: 0;
    border: 1px solid #d9e5eb;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(18, 47, 65, 0.055);
}
.report-indicators article {
    padding: 17px;
    border-left: 3px solid #138fa1;
}
.report-indicators span {
    display: block;
    min-height: 2.5em;
    color: #526d80;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}
.report-indicators strong {
    display: block;
    margin: 8px 0 4px;
    color: #0c2b48;
    font-size: 2rem;
}
.report-indicators small {
    display: block;
    color: #617a90;
}
.report-summary {
    padding: 22px 25px;
}
.report-summary h2,
.report-validation h2 {
    margin: 4px 0 10px;
    font-size: 1.28rem;
    color: #0c2b48;
}
.report-summary p {
    max-width: 85ch;
}
.report-summary ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    padding: 0;
    margin: 17px 0 0;
    list-style: none;
}
.report-summary li {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 13px;
    border-radius: 9px;
    background: #f0f6f8;
}
.report-summary li strong {
    overflow-wrap: anywhere;
}

.report-analysis {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    min-width: 0;
}
.report-table-card,
.report-chart-card {
    padding: 18px;
    overflow: hidden;
}
.report-chart-card,
.report-table-card {
    width: 100%;
}
.report-section-heading {
    align-items: end;
    margin-bottom: 14px;
}
.report-section-heading h2 {
    margin: 3px 0 0;
    font-size: 1.08rem;
    color: #0c2b48;
}
.report-section-heading small {
    color: #70899c;
}
.report-table-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}
.report-table {
    width: 100%;
    min-width: 980px;
    margin: 0;
    table-layout: fixed;
}
.report-column-order {
    width: 11%;
}
.report-column-opportunity {
    width: 22%;
}
.report-column-score {
    width: 8%;
}
.report-column-priority {
    width: 8%;
}
.report-column-quadrant {
    width: 16%;
}
.report-column-note {
    width: 27%;
}
.report-table th,
.report-table td {
    padding: 10px;
    vertical-align: middle;
    overflow-wrap: anywhere;
}
.report-table th {
    text-align: start;
}
.report-table td:nth-child(2) {
    min-width: 0;
    max-width: none;
}
.report-table td:nth-child(2) strong,
.report-table td:nth-child(2) small {
    display: block;
    overflow-wrap: anywhere;
}
.report-table td:nth-child(2) small {
    margin-top: 4px;
    color: #617a90;
}
.report-table td:last-child {
    min-width: 0;
}
.report-table textarea {
    min-width: 0;
    width: 100%;
    min-height: 76px;
    overflow-y: hidden;
    resize: none;
    font-size: 0.85rem;
}
.report-field-limit {
    display: block;
    margin-top: 3px;
    color: #617a90;
    font-size: 0.72rem;
}
.report-order-cell,
.report-order-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.report-order-actions form {
    margin: 0;
}
.report-order-button {
    min-width: 27px;
    min-height: 27px;
    padding: 0;
    border: 1px solid #b9d5dc;
    background: #f2f9fa;
    color: #0a6981;
}
.report-order-button:disabled {
    opacity: 0.4;
}
.report-primary-action {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: #fff;
    font-weight: 700;
}
.report-primary-action:hover,
.report-primary-action:focus-visible {
    background: var(--primary-700);
    border-color: var(--primary-700);
    color: #fff;
}
.report-print-text {
    display: none;
}
[data-report-feedback] {
    display: block;
    min-height: 1.1em;
    margin-top: 4px;
    color: #246746;
}
[data-report-feedback].is-error {
    color: #a1282b;
}
.report-chart-card .matrix-chart-frame {
    grid-template-rows: minmax(340px, 40vh) 18px;
}
.report-chart-card .matrix-chart {
    min-height: 340px;
}
.report-chart-card .matrix-quadrant strong,
.report-chart-card .matrix-quadrant small {
    overflow-wrap: anywhere;
}
.report-validation {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    padding: 26px;
    border-top: 4px solid #0d8da0;
}
.report-validation p {
    color: #526e82;
    line-height: 1.55;
}
.report-validation > div p {
    margin-bottom: 0;
}
.report-validation form {
    width: 100%;
}
.report-validation textarea {
    width: 100%;
    min-height: 270px;
    overflow-y: hidden;
    resize: none;
}
.report-read-note {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 1200px) {
    .report-indicators {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .report-summary ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media print {
    @page {
        size: A4 landscape;
        margin: 12mm;
    }
    html,
    body.app-shell,
    body.app-shell > .d-flex,
    .app-main,
    .contenido-shadow:has(.report-page) {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }
    .app-nav,
    .header,
    .nav-overlay,
    .skip-link,
    .report-downloads,
    .report-unsaved,
    .report-order-status,
    .report-order-actions,
    .report-field-limit,
    [data-report-feedback],
    .report-validation-actions,
    .report-page > .edia_oportunidad-steps,
    .report-page > .opportunity-steps {
        display: none !important;
    }
    .report-page {
        display: block;
        min-height: 0;
        padding: 0;
        background: #fff;
        color: #142f43;
    }
    .report-page > * {
        margin-bottom: 8mm;
    }
    .report-hero {
        padding: 6mm;
        color: #fff;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .report-indicators {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .report-indicators article,
    .report-summary,
    .report-chart-card,
    .report-table-card,
    .report-validation {
        box-shadow: none;
        break-inside: avoid;
    }
    .report-analysis {
        display: block;
    }
    .report-chart-card {
        margin-bottom: 8mm;
    }
    .report-chart-card .matrix-chart-frame {
        grid-template-rows: 100mm 6mm;
    }
    .report-chart-card .matrix-chart {
        min-height: 100mm;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .report-chart-card .matrix-point,
    .report-chart-card .matrix-quadrant {
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .report-table-scroll {
        overflow: visible;
    }
    .report-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
        font-size: 8pt;
    }
    .report-table th,
    .report-table td {
        padding: 2mm;
        overflow-wrap: anywhere;
    }
    .report-table td:nth-child(2),
    .report-table td:last-child {
        min-width: 0;
        max-width: none;
    }
    .report-table tr {
        break-inside: avoid;
    }
    .report-table thead {
        display: table-header-group;
    }
    .report-table textarea,
    .report-validation textarea,
    .report-table form label {
        display: none !important;
    }
    .report-print-text {
        display: block;
        margin: 0;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
    }
    .report-validation {
        display: block;
    }
}
@media (max-width: 600px) {
    .report-page {
        padding: 14px;
    }
    .report-hero,
    .report-summary,
    .report-table-card,
    .report-chart-card,
    .report-validation {
        padding: 16px;
    }
    .report-indicators {
        grid-template-columns: minmax(0, 1fr);
    }
    .report-downloads {
        width: 100%;
    }
    .report-downloads .btn {
        flex: 1 1 auto;
    }
}
