.report-screen {
    width: min(100% - 32px, 1040px);
    margin-inline: auto;
}

.report-controls {
    margin: 20px 0 26px;
    padding: 18px 0;
    border-block: 1px solid var(--border);
}

.report-controls .form-row {
    max-width: 520px;
}

.report-controls label[for="reportRecipient"] {
    display: block;
    margin-bottom: 7px;
    color: var(--text);
    font-weight: 650;
}

.report-controls input[type="email"] {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
}

.report-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 760px;
    margin: 14px 0;
    color: var(--muted);
    line-height: 1.45;
}

.report-consent input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    accent-color: #167d87;
}

.report-actions {
    align-items: center;
}

.report-actions button:disabled {
    cursor: not-allowed;
    opacity: .52;
}

.report-actions .button-link {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid #167d87;
    border-radius: 6px;
    background: #fff;
    color: #125a63;
    font-weight: 650;
    text-decoration: none;
}

.report-status {
    min-height: 22px;
    margin: 8px 0 0;
    color: #315b62;
}

.report-status.is-error {
    color: #b42318;
}

.report-preview {
    overflow-x: auto;
    margin-bottom: 24px;
}

.report-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
    margin: 14px 0 22px;
}

.report-summary > div {
    min-width: 0;
    padding: 12px 14px;
    border-left: 3px solid #167d87;
    background: #f2f7f7;
}

.report-summary dt {
    color: var(--muted);
    font-size: 13px;
}

.report-summary dd {
    margin: 5px 0 0;
    color: #183b43;
    font-size: 20px;
    font-weight: 700;
}

.report-preview-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.report-preview-table th,
.report-preview-table td {
    padding: 9px 10px;
    border-bottom: 1px solid #dce6e8;
    vertical-align: top;
}

.report-preview-table th {
    background: #edf4f5;
    color: #24434c;
    font-size: 13px;
}

.report-preview-table td {
    color: #24373c;
    font-size: 14px;
}

.report-approval-preview {
    margin-top: 18px;
    color: #315b62;
    font-size: 13px;
}

.report-demo-notice {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-left: 3px solid #c28a16;
    background: #fff8e8;
    color: #6f541b;
    font-size: 13px;
    line-height: 1.45;
}

@media (max-width: 640px) {
    .report-screen {
        width: min(100% - 20px, 1040px);
    }

    .report-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .report-actions button,
    .report-actions .button-link {
        width: 100%;
    }
}