.reports-shell {
    height: 100%;
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px 0;
    background: #f4f6f8;
    color: #07152f;
    overflow: hidden;
}

.reports-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    border: 1px solid #dce4ee;
    box-shadow: 0 8px 18px rgba(13, 28, 53, 0.06);
    padding: 14px 16px;
}

.reports-title-block {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.reports-accent {
    width: 4px;
    height: 48px;
    background: #ff9f2a;
    border-radius: 3px;
    flex: 0 0 auto;
}

.reports-title-block h1,
.reports-panel-header h2,
.reports-command-header h2,
.reports-card-header h3 {
    margin: 0;
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: 0;
}

.reports-title-block p {
    margin: 4px 0 0;
    color: #506483;
    font-size: 0.86rem;
}

.reports-actions,
.reports-panel-header,
.reports-command-header,
.reports-card-header,
.reports-preview-footer,
.reports-job-row,
.reports-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.reports-btn,
.reports-page-btn {
    min-height: 34px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.reports-btn-primary {
    background: #2f86b7;
    border-color: #2f86b7;
    color: #fff;
}

.reports-btn-secondary,
.reports-page-btn {
    background: #fff;
    border: 1px solid #cfd9e6;
    color: #10213f;
}

.reports-layout {
    min-height: 0;
    display: flex;
    flex: 1 1 0;
    overflow: hidden;
}

.reports-workspace,
.reports-panel,
.reports-preview-panel,
.reports-command-card {
    background: #fff;
    border: 1px solid #dce4ee;
    box-shadow: 0 8px 18px rgba(13, 28, 53, 0.05);
}

.reports-filter span,
.reports-panel-header span,
.reports-command-header span,
.reports-card-header span,
.reports-metric span {
    color: #46607f;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reports-workspace {
    min-width: 0;
    min-height: 0;
    height: 100%;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reports-tabs {
    flex: 0 0 auto;
    display: flex;
    gap: 22px;
    padding: 0 18px;
    border-bottom: 1px solid #e4ebf3;
}

.reports-tab {
    position: relative;
    border: 0;
    background: #fff;
    color: #253a59;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 0;
    border-radius: 0;
    font-size: 0.82rem;
    font-weight: 900;
}

.reports-tab em {
    font-style: normal;
    min-width: 20px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #e7f1ff;
    color: #1f6fb2;
}

.reports-tab-active {
    color: #0d3760;
}

.reports-tab-active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #257cc0;
    content: "";
}

.reports-command-panel {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reports-command-header {
    position: relative;
    justify-content: space-between;
    padding: 14px;
    border-bottom: 1px solid #e4ebf3;
    gap: 14px;
}

.reports-command-header p {
    margin: 4px 0 0;
    color: #506483;
    font-size: 0.84rem;
}

.reports-create-menu {
    position: relative;
    flex: 0 0 auto;
}

.reports-create-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 10;
    width: 320px;
    max-height: 360px;
    overflow: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid #cfdae7;
    box-shadow: 0 14px 34px rgba(13, 28, 53, 0.16);
}

.reports-create-option {
    width: 100%;
    border: 1px solid transparent;
    background: #fff;
    color: #10213f;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px;
    text-align: left;
    border-radius: 6px;
}

.reports-create-option:hover {
    border-color: #bad6ea;
    background: #f4f9fd;
}

.reports-create-option i,
.reports-report-cell i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #eef5fb;
    color: #2f86b7;
    flex: 0 0 auto;
}

.reports-create-option strong,
.reports-report-cell strong {
    display: block;
    font-size: 0.88rem;
}

.reports-create-option small,
.reports-report-cell small,
.reports-command-table small {
    display: block;
    color: #667894;
    font-size: 0.76rem;
    white-space: normal;
}

.reports-command-card-full {
    min-height: 0;
    flex: 1;
    margin: 12px;
}

.reports-command-card {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reports-card-header {
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e4ebf3;
}

.reports-report-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
}

.reports-actions-col {
    width: 1%;
}

.reports-row-actions {
    justify-content: flex-end;
}

.reports-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #cfd9e6;
    color: #10213f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.reports-icon-btn-danger {
    background: #fff;
    border: 1px solid #e5c7c7;
    color: #9d2d2d;
}

.reports-icon-btn-danger:hover {
    background: #fff5f5;
    border-color: #f0b4b4;
}

.reports-scope-badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #edf5ff;
    color: #1f6fb2;
    font-size: 0.72rem;
    font-weight: 900;
}

.reports-scope-badge-system {
    background: #eef2f7;
    color: #425875;
}

.reports-schedule-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    min-height: 24px;
    border-radius: 999px;
    background: #eef2f7;
    color: #425875;
    font-size: 0.72rem;
    font-weight: 900;
}

.reports-schedule-badge-on {
    background: #dff8eb;
    color: #08753f;
}

.reports-command-table td small {
    display: block;
    margin-top: 3px;
    color: #667894;
    font-size: 0.72rem;
}

.reports-builder,
.reports-command-panel,
.reports-jobs-panel {
    min-height: 0;
    height: 100%;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.reports-builder-commandbar {
    flex: 0 0 auto;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #e4ebf3;
    background: #fff;
}

.reports-builder-commandbar span {
    display: block;
    color: #46607f;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reports-builder-commandbar strong {
    display: block;
    margin-top: 2px;
    color: #10213f;
    font-size: 0.94rem;
    font-weight: 850;
}

.reports-setup-grid {
    min-height: 0;
    flex: 1 1 0;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    border-bottom: 1px solid #e4ebf3;
    overflow: hidden;
}

.reports-builder-rail {
    min-height: 0;
    height: 100%;
    padding: 10px 0;
    border-right: 1px solid #e4ebf3;
    background: #fbfcfe;
    overflow: auto;
}

.reports-builder-section-tab {
    width: 100%;
    min-height: 50px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    color: #304761;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 900;
}

.reports-builder-section-tab i {
    color: #52708f;
    font-size: 0.95rem;
}

.reports-builder-section-tab small {
    min-width: 22px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #eef4fb;
    color: #46607f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 900;
}

.reports-builder-section-tab-active {
    border-left-color: #257cc0;
    background: #eef6fd;
    color: #0c3764;
}

.reports-builder-section-tab-active i {
    color: #257cc0;
}

.reports-setup-main {
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 16px 18px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

.reports-setup-section {
    min-height: 100%;
    max-width: 820px;
}

.reports-section-heading {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e4ebf3;
}

.reports-section-heading span {
    color: #46607f;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reports-section-heading h2 {
    margin: 4px 0 0;
    font-size: 0.94rem;
    font-weight: 800;
}

.reports-general-grid,
.reports-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
}

.reports-filter .form-control,
.reports-filter .form-select {
    min-height: 34px;
    border-radius: 6px;
    border-color: #cfd9e6;
    font-size: 0.84rem;
}

.reports-filter {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.reports-filter small {
    color: #667894;
    font-size: 0.72rem;
}

.reports-filter-wide {
    min-width: min(360px, 100%);
    flex: 1;
}

.reports-filter-full {
    grid-column: 1 / -1;
}

.reports-description {
    min-height: 72px;
    resize: none;
}

.reports-date-range-section {
    border-top: 1px solid #dce5ef;
    padding-top: 14px;
}

.reports-inline-section-heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.reports-inline-section-heading span {
    color: #2d4b72;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reports-inline-section-heading small {
    color: #667894;
    font-size: 0.72rem;
}

.reports-date-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.reports-date-preset {
    border: 1px solid #cfd9e6;
    background: #fff;
    color: #263d5c;
    min-height: 32px;
    border-radius: 999px;
    padding: 0 13px;
    font-size: 0.78rem;
    font-weight: 800;
}

.reports-date-preset-active {
    border-color: #2c86b8;
    background: #eaf5fb;
    color: #0d5e91;
}

.reports-date-custom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    margin-top: 12px;
}

.reports-field-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.reports-field-list-panel {
    align-content: flex-start;
    padding-top: 2px;
}

.reports-field-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #d8e2ee;
    background: #f9fbfd;
    min-height: 30px;
    border-radius: 999px;
    padding: 0 10px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #233a59;
}

.reports-field-toggle input {
    accent-color: #2c86b8;
}

.reports-scope-picker {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.reports-item-scope-search {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reports-scope-location-filter {
    max-width: 390px;
}

.reports-scope-mode {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.reports-scope-mode-option {
    min-width: 0;
    min-height: 54px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border: 1px solid #dce4ee;
    border-radius: 6px;
    background: #fff;
    color: #263c5b;
    text-align: left;
}

.reports-scope-mode-option:hover {
    border-color: #9fc8e4;
    background: #f7fbfe;
}

.reports-scope-mode-option > i:first-child {
    color: #2c82b6;
    font-size: 1rem;
    text-align: center;
}

.reports-scope-mode-option > i:last-child {
    color: #86a0bd;
}

.reports-scope-mode-option strong,
.reports-scope-mode-option small {
    display: block;
}

.reports-scope-mode-option strong {
    color: #10213f;
    font-size: 0.8rem;
    font-weight: 850;
}

.reports-scope-mode-option small {
    margin-top: 2px;
    color: #667894;
    font-size: 0.7rem;
}

.reports-scope-mode-option-active {
    border-color: #2c82b6;
    background: #eef7fd;
    box-shadow: 0 0 0 1px rgba(44, 130, 182, 0.12);
}

.reports-scope-mode-option-active > i:last-child {
    color: #237db2;
}

.reports-scope-count {
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e7f0fa;
    color: #31577b;
    font-size: 0.7rem;
    font-weight: 900;
}

.reports-scope-all-state,
.reports-scope-selection-required,
.reports-scope-results-state {
    display: flex;
    align-items: center;
    gap: 9px;
}

.reports-scope-all-state {
    min-height: 44px;
    padding: 8px 11px;
    border: 1px solid #cdebdc;
    border-radius: 6px;
    background: #f3fbf7;
}

.reports-scope-all-state > i {
    color: #178653;
}

.reports-scope-all-state strong,
.reports-scope-all-state small {
    display: block;
}

.reports-scope-all-state strong {
    color: #154d35;
    font-size: 0.78rem;
}

.reports-scope-all-state small {
    margin-top: 2px;
    color: #567565;
    font-size: 0.7rem;
}

.reports-item-picker {
    display: grid;
    gap: 8px;
    min-height: 0;
    padding: 10px;
    border: 1px solid #dce4ee;
    border-radius: 6px;
    background: #fbfcfe;
}

.reports-item-scope-search {
    align-items: flex-end;
}

.reports-search-control {
    position: relative;
}

.reports-search-control > i {
    position: absolute;
    top: 50%;
    left: 10px;
    z-index: 1;
    color: #6f829d;
    transform: translateY(-50%);
}

.reports-search-control .form-control {
    padding-left: 32px;
}

.reports-btn-quiet {
    border-color: transparent;
    background: transparent;
    color: #506483;
}

.reports-btn-quiet:hover {
    border-color: #d3dee9;
    background: #fff;
    color: #183a62;
}

.reports-selected-items {
    max-height: 70px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    overflow: auto;
    padding: 1px;
}

.reports-selected-item {
    max-width: 100%;
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 5px 3px 9px;
    border: 1px solid #bcd8eb;
    border-radius: 999px;
    background: #eef7fd;
    color: #184f78;
    font-size: 0.72rem;
    font-weight: 800;
}

.reports-selected-item > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reports-selected-item button {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #426b8b;
}

.reports-selected-item button:hover {
    background: #d8ebf8;
    color: #123f63;
}

.reports-scope-selection-required {
    min-height: 34px;
    padding: 6px 9px;
    border-left: 3px solid #f29a2e;
    background: #fff8ed;
    color: #81531f;
    font-size: 0.72rem;
}

.reports-scope-results {
    height: clamp(128px, 23vh, 190px);
    overflow-y: auto;
    border: 1px solid #dce4ee;
    border-radius: 6px;
    background: #fff;
}

.reports-scope-results-state {
    min-height: 74px;
    justify-content: center;
    color: #667894;
    font-size: 0.76rem;
}

.reports-scope-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    color: #667894;
    font-size: 0.72rem;
    font-weight: 700;
}

.reports-scope-pagination > div {
    display: inline-flex;
    gap: 6px;
}

.reports-scope-pagination .reports-page-btn {
    min-height: 30px;
    padding: 0 8px;
}

.reports-scope-table th,
.reports-scope-table td {
    position: static;
}

.reports-scope-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7f9fc;
}

.reports-scope-table td strong,
.reports-scope-table td small {
    display: block;
}

.reports-scope-table td strong {
    color: #10213f;
    font-size: 0.8rem;
    font-weight: 850;
}

.reports-scope-table td small {
    margin-top: 2px;
    color: #667894;
    font-size: 0.7rem;
    white-space: normal;
}

.reports-scope-check-col {
    width: 68px;
    text-align: center;
}

.reports-scope-row-selected td {
    background: #f2f8fd;
}

.reports-scope-filter-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 14px 0 10px;
    padding-top: 12px;
    border-top: 1px solid #e4ebf3;
}

.reports-scope-filter-heading span {
    color: #46607f;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.reports-scope-filter-heading small {
    color: #71829a;
    font-size: 0.7rem;
}

.reports-schedule-workspace,
.reports-preview-tab-panel {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-width: 0;
    box-shadow: none;
}

.reports-schedule-save-row {
    padding: 12px 14px;
    border-bottom: 1px solid #e4ebf3;
}

.reports-schedule-panel {
    display: grid;
    gap: 12px;
    padding: 12px 14px;
}

.reports-schedule-panel-wide {
    max-width: 920px;
}

.reports-schedule-top,
.reports-schedule-notify {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.reports-schedule-top small {
    color: #667894;
    font-size: 0.78rem;
}

.reports-switch,
.reports-schedule-day {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: #10213f;
    font-size: 0.82rem;
    font-weight: 850;
}

.reports-switch input,
.reports-schedule-day input {
    width: 15px;
    height: 15px;
    accent-color: #2c86b8;
}

.reports-schedule-grid {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(260px, 1fr);
    gap: 10px;
}

.reports-schedule-days {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.reports-schedule-day {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #d8e2ee;
    border-radius: 999px;
    background: #f9fbfd;
}

.reports-preview-panel {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    border-width: 0;
    box-shadow: none;
}

.reports-panel-header {
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid #e4ebf3;
}

.reports-panel-header p {
    margin: 4px 0 0;
    color: #667894;
    font-size: 0.8rem;
}

.reports-metrics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.reports-preview-metrics {
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 10px 14px;
    border-bottom: 1px solid #e4ebf3;
}

.reports-metric {
    min-width: 96px;
    border: 1px solid #dce4ee;
    background: #fbfcfe;
    padding: 7px 10px;
    border-radius: 6px;
}

.reports-metric strong {
    display: block;
    font-size: 0.95rem;
    margin-top: 2px;
}

.reports-metric-warning {
    border-color: #ffd99b;
    background: #fff9ee;
}

.reports-metric-danger {
    border-color: #ffc9c9;
    background: #fff4f4;
}

.reports-metric-success {
    border-color: #bce8d0;
    background: #f1fbf6;
}

.reports-metric-info {
    border-color: #b9d8f4;
    background: #f2f8fd;
}

.reports-table-wrap {
    min-height: 0;
    flex: 1;
    overflow: auto;
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.reports-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f7f9fb;
    color: #506483;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 12px;
    border-bottom: 1px solid #e0e8f1;
}

.reports-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #ebf0f5;
    color: #10213f;
    vertical-align: top;
    white-space: nowrap;
}

.reports-row-danger td {
    background: #fff7f7;
}

.reports-row-warning td {
    background: #fffaf0;
}

.reports-row-success td {
    background: #f7fcf9;
}

.reports-preview-footer {
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid #e4ebf3;
    color: #506483;
    font-size: 0.8rem;
}

.reports-jobs-panel {
    border-width: 0;
    box-shadow: none;
}

.reports-job-list {
    overflow: auto;
    min-height: 0;
}

.reports-job-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 110px 100px minmax(160px, 1fr) auto;
    padding: 10px 14px;
    border-bottom: 1px solid #ebf0f5;
    font-size: 0.82rem;
}

.reports-job-row strong,
.reports-job-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.reports-job-row > div span {
    display: block;
    color: #667894;
    margin-top: 2px;
}

.reports-status {
    justify-self: start;
    border-radius: 999px;
    padding: 3px 9px;
    background: #eef2f7;
    color: #425875;
    font-size: 0.72rem;
    font-weight: 900;
}

.reports-status-success {
    background: #dff8eb;
    color: #08753f;
}

.reports-status-danger {
    background: #ffe0e0;
    color: #a32727;
}

.reports-status-info {
    background: #e3f1ff;
    color: #176aa7;
}

.reports-empty {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #667894;
    text-align: center;
}

.reports-empty i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #fff4e2;
    color: #f28b1d;
}

.reports-empty-compact {
    min-height: 72px;
    font-size: 0.82rem;
}

@media (max-width: 980px) {
    .reports-shell {
        height: 100%;
        min-height: 0;
        overflow: hidden;
    }

    .reports-header,
    .reports-layout,
    .reports-setup-grid,
    .reports-general-grid,
    .reports-filter-grid,
    .reports-schedule-grid {
        grid-template-columns: 1fr;
    }

    .reports-header {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-layout,
    .reports-workspace,
    .reports-command-panel,
    .reports-builder,
    .reports-setup-grid,
    .reports-schedule-workspace,
    .reports-preview-tab-panel {
        min-height: 0;
        overflow: hidden;
    }

    .reports-setup-grid {
        grid-template-rows: auto minmax(0, 1fr);
    }

    .reports-command-header {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-builder-commandbar,
    .reports-item-scope-search,
    .reports-scope-filter-heading,
    .reports-scope-pagination {
        flex-direction: column;
        align-items: stretch;
    }

    .reports-scope-pagination > div {
        justify-content: flex-end;
    }

    .reports-scope-mode {
        grid-template-columns: 1fr;
    }

    .reports-tabs {
        gap: 14px;
        overflow-x: auto;
    }

    .reports-builder-rail {
        border-right: 0;
        border-left: 0;
        border-bottom: 1px solid #e4ebf3;
    }

    .reports-builder-section-tab {
        grid-template-columns: 22px minmax(0, 1fr) auto;
    }

    .reports-create-dropdown {
        left: 0;
        right: auto;
        width: min(320px, calc(100vw - 64px));
    }

    .reports-job-row {
        grid-template-columns: 1fr;
        align-items: start;
    }
}
