.report-hub {
    max-width: 1320px;
}

.report-generator .report-generator-type {
    grid-column: 1 / -1;
    max-width: 420px;
}

.report-generator .report-store-selector {
    grid-column: 1 / -1;
}

.report-generator-more {
    grid-column: 1 / -1;
    border-top: 1px solid var(--palette-53);
    padding-top: 12px;
}

.report-generator-more summary {
    cursor: pointer;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.report-generator-more-fields {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

@media (max-width: 900px) {
    .report-generator-more-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {
    .report-generator-more-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.report-generator-table table {
    min-width: 1000px;
}

.report-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--palette-53);
    border-radius: 12px;
    box-shadow: 0 1px 2px var(--palette-60);
}

.report-filters label {
    font-size: 13px;
    font-weight: 600;
    color: var(--palette-17);
}

.report-filters input,
.report-filters select {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 9px 10px;
    background: var(--surface);
    border: 1px solid var(--palette-5);
    border-radius: 7px;
}

.report-filters input:focus,
.report-filters select:focus {
    border-color: var(--primary-focus);
    outline: 3px solid var(--palette-61);
}

.report-filters select[multiple] {
    height: 82px;
}

.report-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.report-actions .secondary {
    background: var(--palette-14);
}

.report-format-panel {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding: 18px;
    background: var(--primary-soft);
    border: 1px solid var(--palette-53);
    border-radius: 10px;
}

.report-format-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.report-format-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--palette-53);
    border-radius: 9px;
}

.report-format-card strong,
.report-format-card span {
    display: block;
}

.report-format-card strong {
    margin-bottom: 4px;
    color: var(--primary);
    font-size: 14px;
}

.report-format-card span {
    color: var(--palette-1);
    font-size: 12px;
    line-height: 1.4;
}

.report-format-card button {
    flex: 0 0 auto;
    white-space: nowrap;
}

.report-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.report-summary span {
    min-width: 180px;
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--palette-53);
    border-radius: 10px;
}

.report-summary strong {
    font-size: 19px;
    margin-right: 5px;
}

.report-table table {
    min-width: 1900px;
}

.report-table th,
.report-table td {
    padding: 10px 11px;
    font-size: 12px;
}

.report-table small {
    color: var(--palette-1);
}

.report-table tfoot th {
    background: var(--palette-16);
}

.report-table tfoot {
    position: sticky;
    bottom: 0;
}

@media (max-width: 900px) {
    .report-filters {
        grid-template-columns: 1fr 1fr;
    }

    .report-format-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 650px) {
    .report-filters {
        grid-template-columns: 1fr;
    }

    .report-hub-option {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .report-hub-number {
        width: 36px;
        height: 36px;
    }

    .report-hub-action {
        grid-column: 2;
        white-space: normal;
    }

    .report-hub-variance-body {
        padding: 16px;
    }

    .report-summary {
        flex-direction: column;
    }

    .report-summary span {
        min-width: 0;
    }

    .report-actions {
        justify-content: flex-start;
    }

    .report-format-card {
        align-items: stretch;
        flex-direction: column;
    }

    .report-format-card button {
        align-self: flex-start;
    }

    .page-head.report-title {
        align-items: flex-start;
        gap: 12px;
    }
}

@media print {
    body {
        background: var(--surface);
    }

    .sidebar,
    .no-print,
    .toast-stack {
        display: none !important;
    }

    .content {
        margin: 0;
        padding: 0;
    }

    .report-title {
        margin-bottom: 12px;
    }

    .report-table {
        overflow: visible;
        border: 0;
    }

    .report-table table {
        min-width: 0;
        font-size: 8px;
    }

    .report-table th,
    .report-table td {
        padding: 4px;
        font-size: 8px;
    }

    .report-summary {
        padding: 0;
        border-radius: 0;
    }

    @page {
        size: landscape;
        margin: 8mm;
    }
}

/* Keep the selected stores even when the option list is searched. */
.report-store-selector .multi-store-options label[hidden]{display:none!important}
.report-store-selector [data-store-search]{margin:6px 0 8px}
