/* Report generator wizard styles.
   Global (not component-scoped) and linked AFTER site.css/mobile.css in index.html, so these rules win
   over the shared global styles — the scoped .razor.css versions were being overridden by site.css
   (which loads after the scoped WebUI.styles.css bundle). Colours use the OIG design-system CSS
   variables except where an exact hex is specified by design. Rail selectors are prefixed with
   .report-wizard for extra specificity. */

/* ---- Shell layout ---------------------------------------------------------------------------- */

/* Rail (left) + content (right), side by side. flex-direction is explicit because the global
   .oig-dialog-content lays its children out in a column. */
.report-wizard .report-wizard-content {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: stretch;
    height: 100%;
    min-height: 0;
}

/* Left sidebar rail of Rapportbasis substeps — a compact light-grey panel. */
.report-wizard .report-wizard-rail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 0 200px;
    padding: 16px 12px;
    background: var(--grey-100-color);
    border-radius: 10px;
}

.report-wizard .report-wizard-rail__heading {
    font-size: 14px;
    font-weight: normal;
    color: #2E3847;
    padding: 4px 8px 8px;
}

.report-wizard .report-wizard-rail__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: normal;
    color: #63738C;
    cursor: default;
    user-select: none;
    transition: color 0.15s ease;
}

.report-wizard .report-wizard-rail__label {
    font-size: 13px;
}

.report-wizard .report-wizard-rail__item.is-reached {
    cursor: pointer;
}

.report-wizard .report-wizard-rail__item.is-active {
    color: #2E3847;
    font-weight: 600;
}

/* Radio-dot indicator: empty grey ring by default, fully filled with the primary blue when active. */
.report-wizard .report-wizard-rail__dot {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--grey-400-color);
    background: transparent;
    box-sizing: border-box;
}

.report-wizard .report-wizard-rail__item.is-active .report-wizard-rail__dot {
    border-color: #33A8FC;
    background: #33A8FC;
}

/* Completed substep: a green checkmark in place of the dot. */
.report-wizard .report-wizard-rail__check {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--green-color);
}

.report-wizard .report-wizard-rail__check svg {
    width: 14px;
    height: 14px;
}

/* Main content column. */
.report-wizard .report-wizard-main {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* No horizontal inset on the dynamic-component so wizard content spans the full width. */
.report-wizard .oig-dynamic-component,
.report-wizard .oig-dynamic-component.active {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Non-interactive phase chips ("Inhoud & data", "Uitvoer") shown but greyed out. */
.report-wizard .oig-wizard-step.is-placeholder {
    opacity: 0.45;
}

/* Bottom action bar: Terug · progress · Volgende. */
.report-wizard .report-wizard-actionbar {
    display: flex;
    align-items: center;
    gap: 24px;
}

.report-wizard .report-wizard-progress {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.report-wizard .report-wizard-progress__bar {
    flex: 1 1 auto;
    height: 8px;
    background: var(--grey-200-color);
    border-radius: 999px;
    overflow: hidden;
}

.report-wizard .report-wizard-progress__fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 999px;
    transition: width 0.2s ease;
}

.report-wizard .report-wizard-progress__label {
    color: var(--grey-600-color);
    font-size: 16px;
    white-space: nowrap;
}

.report-wizard-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--grey-500-color);
    font-style: italic;
}

/* Success screen shown after the request is submitted. */
.report-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    flex: 1 1 auto;
    padding: 32px;
}

.report-success__badge {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #E7F6EC;
    color: var(--green-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.report-success__badge svg {
    width: 24px;
    height: 24px;
}

.report-success__title {
    font-size: 18px;
    font-weight: 600;
    color: #2E3847;
}

.report-success__text {
    color: #63738C;
    font-size: 13px;
}

.report-success__banner {
    margin-top: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background-color: #EAF4FE;
    color: var(--primary-dark-color);
    font-size: 13px;
    max-width: 520px;
}

/* ---- Shared substep bits --------------------------------------------------------------------- */

.report-radio-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--grey-300-color);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.report-radio-card:hover {
    border-color: var(--primary-lighter-color);
}

.report-radio-card.is-selected {
    border-color: var(--primary-color);
    background-color: var(--primary-lightest-color);
}

.report-radio-card__label {
    color: var(--grey-700-color);
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
}

.report-auto-applied {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--primary-lightest-color);
    color: var(--primary-dark-color);
    border: 1px solid var(--primary-lighter-color);
}

.report-info-banner {
    padding: 12px 16px;
    border-radius: 8px;
    background-color: var(--orange-lightest-color);
    color: var(--orange-darker-color);
    border: 1px solid var(--orange-color);
}

.report-wizard-hint {
    color: var(--grey-500-color);
    font-style: italic;
}

/* ---- Organisaties substep -------------------------------------------------------------------- */

.report-org-step {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.report-org-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* The step's content area is white; only the org-table section below gets the grey background. The
   global site.css forces .oig-dialog-data grey (!important) when it holds no grid, so override it here. */
.report-wizard .oig-dialog-content .oig-dialog-data {
    background-color: transparent !important;
}

/* Grey box around the "Organisaties in dit rapport" section only. */
.report-org-table {
    background-color: #F3F7FA;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 12px 16px;
}

.report-org-table__title {
    font-weight: 600;
    color: var(--grey-800-color);
}

.report-org-table__subtitle {
    color: var(--grey-600-color);
    font-size: 13px;
    margin: 4px 0 12px;
}

/* Only the table scrolls when there are many organisations; the header stays pinned. */
.report-org-table__scroll {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 8px;
}

.report-identification-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #F3F7FA;
}

.report-identification-table thead th {
    position: sticky;
    top: 0;
    text-align: left;
    padding: 10px 14px;
    background-color: #edf2f7;
    color: #64748B;
    font-weight: 600;
}

.report-identification-table td {
    text-align: left;
    padding: 10px 14px;
    color: var(--grey-800-color);
    border-top: 1px solid #E2E8F0;
}

/* ---- Periode substep ------------------------------------------------------------------------- */

.report-period-step {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 480px;
}

.report-period-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.report-period-label {
    font-weight: 600;
    color: var(--grey-700-color);
}

.report-period-radios {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.report-wizard .report-period-radio {
    display: flex;
    align-items: baseline;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: var(--grey-700-color);
}

/* The label text sits in a span; set the size on it directly so a global site.css span rule
   (which inflates text inside .oig-dialog-data) can't override the inherited size. */
.report-wizard .report-period-radio span {
    font-size: 14px;
}

/* ---- Vragenlijsten substep ------------------------------------------------------------------- */

.report-survey-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.report-survey-modes {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Manual survey-selection substep: info banner above the shared grid, which fills the remaining height. */
.report-survey-select-step {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    min-height: 0;
}

/* ---- Controleren substep --------------------------------------------------------------------- */

/* Empty states (no report templates / no surveys) */
.report-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    flex: 1 1 auto;
    min-height: 300px;
    padding: 32px;
}

.report-empty__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--grey-100-color);
    color: var(--grey-500-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.report-empty__icon svg {
    width: 22px;
    height: 22px;
}

.report-empty__title {
    font-size: 18px;
    font-weight: 600;
    color: #2E3847;
}

.report-empty__context,
.report-empty__hint {
    font-size: 13px;
    color: #63738C;
}

.report-empty__actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.report-review-step {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Delivery selector (top of the step) */
.report-delivery__title {
    font-weight: 600;
    font-size: 14px;
    color: #2E3847;
    margin-bottom: 12px;
}

.report-delivery__options {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}

.report-delivery__options .e-radio-wrapper,
.report-delivery__options .e-label {
    font-size: 14px !important;
    color: #2E3847;
}

.report-review-divider {
    border-top: 1px solid var(--grey-200-color);
}

.report-review-heading {
    font-weight: 600;
    font-size: 14px;
    color: #2E3847;
}

/* Summary cards */
.report-review-card {
    border: 1px solid var(--grey-200-color);
    border-radius: 8px;
    overflow: hidden;
}

.report-review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background-color: #F3F7FA;
    border-bottom: 1px solid var(--grey-200-color);
}

.report-review-card__title {
    font-weight: 600;
    font-size: 13px;
    color: #2E3847;
}

.report-review-card__badge {
    font-size: 12px;
    color: #63738C;
}

.report-review-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 48px;
    row-gap: 12px;
    padding: 16px;
}

.report-review-item {
    display: flex;
    gap: 16px;
    align-items: baseline;
}

.report-review-item__label {
    flex: 0 0 120px;
    font-size: 13px;
    color: var(--primary-color);
}

.report-review-item__value {
    font-size: 13px;
    color: #2E3847;
}

.report-review-card__note {
    padding: 12px 16px;
    font-size: 13px;
    color: #63738C;
}

@media (max-width: 720px) {
    .report-review-grid {
        grid-template-columns: 1fr;
    }
}
