﻿.aksa-vat-report { min-width: 0; max-width: 100%; }
.aksa-report-control-panel--search .aksa-report-control-panel__title-block { display: flex; align-items: center; gap: .4rem; }
.aksa-report-searchbox { width: min(42rem, 100%); margin-inline: auto; }
.aksa-report-searchbox .aksa-report-filter-chip { display: inline-flex; align-items: center; min-width: 0; max-width: 100%; min-height: 26px; padding: 0; border: 0; border-radius: .2rem; overflow: hidden; background: var(--bs-secondary-bg, #e9ecef); color: var(--bs-body-color); }
.aksa-report-searchbox .aksa-report-filter-chip__label { align-self: stretch; display: flex; align-items: center; padding: .2rem .4rem; background: var(--bs-primary); color: white; }
.aksa-report-searchbox .aksa-report-filter-chip__value { min-width: 0; padding: .2rem .4rem; overflow: hidden; text-overflow: ellipsis; }
[data-aksa-layout="admin"] .aksa-report-page.aksa-report-shell .aksa-report-search-menu { position: fixed; inset: auto; inset-inline-start: auto; top: 0; left: 0; right: auto; bottom: auto; visibility: hidden; width: min(30rem, calc(100vw - 16px)); max-width: calc(100vw - 16px); transform: none; }
[data-aksa-layout="admin"] .aksa-report-page.aksa-report-shell .aksa-report-search-menu.has-columns { width: min(60rem, calc(100vw - 16px)); }
.aksa-report-search-menu .aksa-report-control-panel__filter-heading { display: none; }
.aksa-report-search-menu .aksa-report-control-panel__filter-header { justify-content: flex-end; min-height: 0; padding: .15rem .35rem; border: 0; }
.aksa-report-search-menu__columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: .75rem; }
.aksa-report-search-menu__column { min-width: 0; }
.aksa-report-search-menu__column + .aksa-report-search-menu__column { padding-inline-start: .75rem; border-inline-start: 1px solid var(--bs-border-color); }
.aksa-report-search-menu__heading { display: flex; align-items: center; gap: .4rem; margin-block-end: .4rem; font-weight: 700; }
.aksa-report-search-menu__empty { display: none; color: var(--bs-secondary-color); padding: .5rem; }
.aksa-report-search-menu__criteria:not(:has(.aksa-report-filter-group)) + .aksa-report-search-menu__empty { display: block; }
.aksa-report-filter-group { min-width: 0; }
.aksa-report-filter-group__trigger { display: flex; align-items: center; gap: .45rem; width: 100%; min-height: 32px; padding: .4rem .5rem; border: 0; border-radius: .2rem; color: var(--bs-body-color); background: transparent; font-size: .85rem; text-align: start; }
.aksa-report-filter-group__trigger:hover { background: var(--bs-tertiary-bg, #f4f6f8); }
.aksa-report-filter-group__trigger > span { flex: 1 1 auto; }
.aksa-report-filter-group__trigger > small { max-width: 65%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bs-secondary-color); }
.aksa-report-filter-group__fields { min-width: 0; padding: .4rem .5rem .7rem; }
.aksa-report-filter-group__fields .aksa-enum-options { display: grid; gap: .2rem; }
.aksa-report-filter-group__fields .aksa-enum-option { display: flex; align-items: center; gap: .6rem; width: 100%; min-height: 32px; padding: .4rem .5rem; border: 0; border-radius: .25rem; background: transparent; color: var(--bs-body-color); text-align: start; }
.aksa-report-filter-group__fields .aksa-enum-option:hover, .aksa-report-filter-group__fields .aksa-enum-option[aria-selected="true"] { background: var(--bs-tertiary-bg, #f4f6f8); }
.aksa-report-filter-group__fields .aksa-enum-option[aria-selected="false"] > i { visibility: hidden; }
.aksa-report-filter-group__fields .aksa-filter-row, .aksa-report-filter-group__fields .aksa-vat-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.aksa-report-filter-group__fields .aksa-filter-field { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: .25rem; align-content: start; }
.aksa-report-filter-group__fields .form-label { margin-block-end: .25rem; }
.aksa-report-filter-group__fields .rz-dropdown, .aksa-report-filter-group__fields .rz-datepicker, .aksa-report-filter-group__fields .rz-numeric { width: 100%; max-width: 100%; }
.aksa-report-filter-group__fields > .row { --bs-gutter-x: 0; margin-inline: 0; }
.aksa-report-filter-group__fields > .row > [class*="col-"] { min-width: 0; max-width: 100%; }
@media (max-width: 767.98px) {
    [data-aksa-layout="admin"] .aksa-report-control-panel--search .aksa-report-control-panel__topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: .35rem; }
    .aksa-report-control-panel--search .aksa-report-control-panel__identity { flex: 1 1 100%; min-width: 0; }
    [data-aksa-layout="admin"] .aksa-report-control-panel--search .aksa-report-control-panel__context { grid-column: 3; grid-row: 2; order: 0; margin-inline-start: 0; }
    [data-aksa-layout="admin"] .aksa-report-control-panel--search .aksa-report-control-panel__navigation { grid-column: 1 / -1; grid-row: 1; width: 100%; min-width: 0; }
    [data-aksa-layout="admin"] .aksa-report-control-panel--search .aksa-report-control-panel__primary-commands { grid-column: 1; grid-row: 2; width: auto; min-width: 0; }
    [data-aksa-layout="admin"] .aksa-report-control-panel--search .aksa-report-control-panel__actions { grid-column: 2; grid-row: 2; width: auto; min-width: 0; }
    .aksa-report-search-menu__columns { grid-template-columns: minmax(0, 1fr); }
    .aksa-report-search-menu__column + .aksa-report-search-menu__column { padding-inline-start: 0; padding-block-start: .65rem; border-inline-start: 0; border-block-start: 1px solid var(--bs-border-color); }
    .aksa-report-filter-group__fields .aksa-filter-row, .aksa-report-filter-group__fields .aksa-vat-filters { grid-template-columns: minmax(0, 1fr); }
}
.aksa-vat-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 155px), 1fr)); gap: .65rem; min-width: 0; }
.aksa-vat-filters > div { min-width: 0; }
.aksa-vat-filters .rz-datepicker, .aksa-vat-filters .rz-dropdown { max-width: 100%; }
.aksa-vat-table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--bs-border-color, #dfe3e8); border-radius: .5rem; }
.aksa-vat-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .9rem; }
.aksa-vat-table th, .aksa-vat-table td { padding: .7rem .8rem; border-block-end: 1px solid var(--bs-border-color, #dfe3e8); vertical-align: middle; }
.aksa-vat-table th:first-child, .aksa-vat-table td:first-child { width: 40%; text-align: start; overflow-wrap: anywhere; }
.aksa-vat-table td:not(:first-child), .aksa-vat-table th:not(:first-child) { text-align: end; }
.aksa-vat-table thead { color: var(--bs-secondary-color, #6b7280); background: var(--bs-tertiary-bg, #f4f6f8); font-size: .85rem; }
.aksa-vat-table .aksa-vat-section-title th { padding-block: .55rem; background: var(--bs-primary-bg-subtle, #eef4ff); color: var(--bs-primary-text-emphasis, #24466f); font-weight: 700; }
.aksa-vat-table .aksa-vat-subtotal { background: var(--bs-tertiary-bg, #f4f6f8); font-weight: 600; }
.aksa-vat-table tbody:last-child tr:last-child > * { border-block-end: 0; }
.aksa-vat-table td[dir="ltr"], .aksa-vat-totals dd { font-variant-numeric: tabular-nums; white-space: nowrap; }
.aksa-vat-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; margin: 0 0 .9rem; }
.aksa-vat-totals > div { padding: .8rem 1rem; border: 1px solid var(--bs-border-color, #dfe3e8); border-radius: .5rem; min-width: 0; }
.aksa-vat-totals dt { font-size: .85rem; font-weight: 500; color: var(--bs-secondary-color, #6b7280); }
.aksa-vat-totals dd { font-size: 1.25rem; font-weight: 700; margin: .4rem 0 0; }
.aksa-vat-totals .aksa-vat-net { background: var(--bs-primary-bg-subtle, #eef4ff); border-color: var(--bs-primary-border-subtle, #ccd9ef); }
.aksa-vat-totals .aksa-vat-net dd { color: var(--bs-primary-text-emphasis, #24466f); }
.aksa-vat-review { display: inline-block; margin-inline-start: .5rem; padding: .15rem .4rem; border-radius: .25rem; background: var(--bs-warning-bg-subtle, #fff4d6); color: var(--bs-warning-text-emphasis, #805e00); font-size: .75rem; white-space: nowrap; }
.aksa-vat-issue { color: var(--bs-warning-text-emphasis, #805e00); white-space: normal; }
.aksa-vat-exceptions { margin-block-start: .8rem; border: 1px solid var(--bs-border-color, #dfe3e8); border-radius: .5rem; font-size: .85rem; }
.aksa-vat-exceptions summary { padding: .65rem .8rem; cursor: pointer; font-weight: 600; }
.aksa-vat-exceptions ul { margin: 0; padding: 0 .8rem .65rem; list-style: none; }
.aksa-vat-exceptions li { display: flex; flex-wrap: wrap; gap: .25rem .8rem; padding-block: .45rem; border-block-start: 1px solid var(--bs-border-color, #dfe3e8); }
.aksa-vat-exceptions li span { color: var(--bs-secondary-color, #6b7280); }
.aksa-vat-detail-grid { width: 100%; min-width: 0; max-width: 100%; }
@media (max-width: 575.98px) {
    .aksa-vat-table { font-size: .8rem; }
    .aksa-vat-table th, .aksa-vat-table td { padding: .55rem .3rem; }
    .aksa-vat-table th:first-child, .aksa-vat-table td:first-child { width: 35%; }
    .aksa-vat-table thead { font-size: .75rem; }
    .aksa-vat-review { margin-inline-start: 0; margin-block-start: .25rem; }
    .aksa-vat-totals { grid-template-columns: 1fr; }
    .aksa-vat-totals > div { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
    .aksa-vat-totals dd { margin: 0; }
}

.aksa-report-page {
    --aksa-report-border: var(--bs-border-color, #dfe3e8);
    --aksa-report-surface: var(--bs-body-bg, #fff);
    --aksa-report-soft: var(--bs-tertiary-bg, #f7f8fa);
    --aksa-report-muted: var(--bs-secondary-color, #6b7280);
    width: 100%;
    min-width: 0;
    padding: .75rem;
    color: var(--bs-body-color, #374151);
    font-family: Tahoma, Arial, sans-serif;
}

.aksa-report-page.aksa-report-shell,
.aksa-report-page.aksa-unified-report-page {
    padding: 0;
}

.aksa-report-titlebar,
.aksa-unified-report-selector {
    position: sticky;
    z-index: 80;
    top: var(--aksa-sticky-header-offset, 0px);
    min-height: 4rem;
    margin-bottom: .65rem !important;
    overflow: visible;
    border: 1px solid var(--aksa-report-border);
    border-radius: .5rem;
    background: var(--aksa-report-surface);
    box-shadow: none;
}

.aksa-report-titlebar > div,
.aksa-unified-report-selector__header {
    min-height: 3.875rem;
    padding: .625rem .75rem !important;
}

.aksa-report-titlebar h5,
.aksa-unified-report-selector .fs-4 {
    margin: 0;
    overflow: hidden;
    color: var(--bs-heading-color, #212529);
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aksa-report-action-strip {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .3rem;
}

.aksa-report-page .aksa-report-action-strip .aksa-accounting-report-actions-inline {
    gap: .25rem;
}

.aksa-report-page .aksa-report-action-strip .aksa-accounting-report-actions-btn {
    width: 2.15rem;
    min-width: 2.15rem;
    height: 2.15rem;
    border-radius: .34rem;
}

.aksa-report-page .card,
.aksa-report-page .rz-card,
.aksa-report-card,
.aksa-report-page > form > .border.rounded-3,
.aksa-inventory-report-launcher > form > .border.rounded-3 {
    border: 1px solid var(--aksa-report-border) !important;
    border-radius: .5rem !important;
    background: var(--aksa-report-surface) !important;
    box-shadow: none !important;
}

.aksa-report-page > form > .border.rounded-3,
.aksa-inventory-report-launcher > form > .border.rounded-3 {
    overflow: visible;
}

.aksa-report-page > form > .border.rounded-3 > .p-3,
.aksa-inventory-report-launcher > form > .border.rounded-3 > .p-3 {
    padding: 0 !important;
}

.aksa-report-page > form .rz-tabview,
.aksa-inventory-report-launcher > form .rz-tabview {
    overflow: visible;
    border: 0;
    border-radius: .5rem;
}

.aksa-report-page .rz-tabview-nav {
    gap: .15rem;
    padding: 0 .5rem;
    background: var(--aksa-report-surface);
    border-bottom: 1px solid var(--aksa-report-border);
    border-radius: .5rem .5rem 0 0;
}

.aksa-report-page .rz-tabview-nav li a {
    min-height: 2.6rem;
    padding: .55rem .75rem;
    color: var(--aksa-report-muted);
    border-radius: .35rem .35rem 0 0;
    font-size: .78rem;
    font-weight: 650;
}

.aksa-report-page .rz-tabview-nav li.rz-tabview-selected a,
.aksa-report-page .rz-tabview-nav li a:hover {
    color: var(--bs-primary, #714b67);
    background: color-mix(in srgb, var(--bs-primary, #714b67) 7%, transparent);
}

.aksa-report-page .rz-tabview-panels,
.aksa-report-page > form .rz-tabview-panels,
.aksa-inventory-report-launcher > form .rz-tabview-panels {
    overflow: visible;
    padding: .875rem;
    background: var(--aksa-report-surface);
    border-radius: 0 0 .5rem .5rem;
}

.aksa-report-page .rz-fieldset {
    height: 100%;
    padding: .75rem;
    border: 1px solid var(--aksa-report-border);
    border-radius: .42rem;
    background: var(--aksa-report-surface);
}

.aksa-report-page .rz-fieldset-legend {
    padding-inline: .4rem;
    color: var(--bs-heading-color, #212529);
    font-size: .78rem;
    font-weight: 750;
}

.aksa-report-page .form-label,
.aksa-report-page .rz-form-field-label {
    color: var(--bs-body-color, #374151);
    font-size: .75rem;
    font-weight: 650;
}

.aksa-report-page .form-control,
.aksa-report-page .form-select,
.aksa-report-page .rz-dropdown,
.aksa-report-page .rz-numeric,
.aksa-report-page .rz-datepicker,
.aksa-report-page .rz-textbox {
    min-width: 0;
    min-height: 2.25rem;
    border-radius: .34rem !important;
    font-size: .8rem;
}

.aksa-report-page .rz-button {
    min-height: 2.25rem;
    border-radius: .34rem;
    box-shadow: none !important;
}

.aksa-report-page .rz-data-grid {
    min-width: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.aksa-report-page .rz-grid-table thead > tr > th,
.aksa-report-page .rz-datatable-thead > tr > th {
    height: 2.6rem;
    padding: .5rem .7rem;
    color: var(--aksa-report-muted);
    border-top: 0;
    border-inline: 0;
    border-bottom: 1px solid var(--aksa-report-border);
    background: var(--aksa-report-soft);
    font-size: .71rem;
    font-weight: 750;
    text-align: center;
    white-space: nowrap;
}

.aksa-report-page .rz-grid-table tbody > tr > td,
.aksa-report-page .rz-datatable-data > tr > td {
    min-height: 2.7rem;
    padding: .48rem .7rem;
    border-inline: 0;
    border-bottom: 1px solid var(--aksa-report-border);
    font-size: .78rem;
    vertical-align: middle;
}

.aksa-report-page .rz-grid-table tbody > tr:hover > td,
.aksa-report-page .rz-datatable-data > tr:hover > td {
    background: color-mix(in srgb, var(--bs-primary, #714b67) 7%, transparent);
}

.aksa-report-page .rz-paginator {
    min-height: 3rem;
    padding: .45rem .6rem;
    border-top: 1px solid var(--aksa-report-border);
    background: var(--aksa-report-surface);
    box-shadow: none;
}

.aksa-unified-report-page .row.g-4 {
    --bs-gutter-x: .75rem;
    --bs-gutter-y: .75rem;
}

.aksa-unified-report-selector__identity {
    flex: 0 0 auto;
    min-width: 13.75rem;
}

.aksa-unified-report-selector__controls {
    flex: 0 1 38.75rem;
    width: min(100%, 38.75rem);
    margin-inline-start: auto;
}

.aksa-unified-report-selector__field {
    min-width: 0;
}

.aksa-unified-report-selector__catalog-button {
    min-height: 2.25rem;
    white-space: nowrap;
}

.aksa-unified-report-selector--selected .aksa-unified-report-selector__identity {
    align-self: center;
}

.aksa-unified-report-selector--selected .aksa-unified-report-selector__field {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.aksa-unified-report-selector--selected .aksa-unified-report-selector__field .form-label {
    flex: 0 0 auto;
    margin: 0 !important;
    white-space: nowrap;
}

.aksa-unified-report-selector--selected .aksa-unified-report-selector__field .form-select {
    flex: 1 1 auto;
    min-width: 0;
}

.aksa-unified-report-host,
.aksa-inventory-report-launcher {
    position: relative;
    min-width: 0;
}

.aksa-unified-report-host > .aksa-report-page {
    padding: 0;
}

@media (max-width: 1399.98px) {
    .aksa-unified-report-selector__controls {
        width: 100%;
        max-width: none;
        margin-inline-start: 0;
    }
}

@media (max-width: 767.98px) {
    .aksa-report-page {
        padding: .5rem 0;
    }

    .aksa-report-page.aksa-report-shell,
    .aksa-report-page.aksa-unified-report-page {
        padding: 0;
    }

    .aksa-report-titlebar,
    .aksa-unified-report-selector,
    .aksa-report-page .card,
    .aksa-report-page .rz-card,
    .aksa-report-page > form > .border.rounded-3,
    .aksa-inventory-report-launcher > form > .border.rounded-3 {
        border-inline: 0 !important;
        border-radius: 0 !important;
    }

    .aksa-report-titlebar > div,
    .aksa-unified-report-selector__header {
        align-items: stretch !important;
        padding: .55rem !important;
    }

    .aksa-report-titlebar .aksa-report-action-strip,
    .aksa-unified-report-selector__identity,
    .aksa-unified-report-selector__controls,
    .aksa-unified-report-selector__field,
    .aksa-unified-report-selector__catalog-button {
        width: 100%;
    }

    .aksa-unified-report-selector__catalog-button {
        justify-content: center;
    }

    .aksa-unified-report-selector--selected .aksa-unified-report-selector__field {
        align-items: stretch;
        flex-direction: column;
    }

    .aksa-report-page .rz-tabview-panels,
    .aksa-report-page > form .rz-tabview-panels,
    .aksa-inventory-report-launcher > form .rz-tabview-panels {
        padding: .625rem;
    }
}

/* Finance uses the existing report filter groups in a compact search menu. */
.aksa-report-page.aksa-report-shell .aksa-report-control-panel__filter-panel {
    left: auto;
    right: auto;
    inset-inline-start: .55rem;
    width: min(68rem, calc(100vw - 2rem));
    max-width: calc(100% - 1.1rem);
    transform: none;
}

.aksa-report-page.aksa-report-shell .aksa-report-control-panel__backdrop {
    background: transparent;
}

.aksa-report-page.aksa-report-shell .aksa-report-control-panel .aksa-report-control-panel__filter-content {
    display: block;
    padding: .85rem;
    background: var(--aksa-report-surface);
}

.aksa-accounting-filter-menu,
.aksa-accounting-filter-menu__criteria {
    display: grid;
    min-width: 0;
    align-items: start;
    gap: .85rem;
}

.aksa-accounting-filter-menu--with-options {
    grid-template-columns: minmax(0, 2fr) minmax(13rem, 1fr);
}

.aksa-accounting-filter-menu__criteria {
    grid-template-columns: repeat(auto-fit, minmax(min(17rem, 100%), 1fr));
}

.aksa-report-page.aksa-report-shell .aksa-accounting-filter-menu .aksa-filter-group {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.aksa-report-page.aksa-report-shell .aksa-accounting-filter-menu .aksa-filter-group__label,
.aksa-report-page.aksa-report-shell .aksa-accounting-filter-menu .aksa-filter-group__summary {
    min-height: 2rem;
    padding: .15rem 0 .5rem;
    border: 0;
    background: transparent;
}

.aksa-report-page.aksa-report-shell .aksa-accounting-filter-menu .aksa-filter-group__body {
    padding: 0;
    gap: .55rem;
}

.aksa-report-page.aksa-report-shell .aksa-accounting-filter-menu .aksa-filter-field,
.aksa-report-page.aksa-report-shell .aksa-accounting-filter-menu .aksa-filter-group__body > div:not(.aksa-filter-row):not(.aksa-report-context-banner) {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: .25rem;
}

.aksa-report-page.aksa-report-shell .aksa-accounting-filter-menu .aksa-filter-group__body .form-label {
    margin: 0;
    line-height: 1.4;
}

.aksa-report-page.aksa-report-shell .aksa-report-control-panel .aksa-accounting-filter-menu .rz-dropdown,
.aksa-report-page.aksa-report-shell .aksa-report-control-panel .aksa-accounting-filter-menu .rz-numeric {
    min-height: var(--ak-rz-control-height);
    height: var(--ak-rz-control-height);
    padding-block: 0;
}

.aksa-report-page.aksa-report-shell .aksa-accounting-filter-menu .rz-numeric {
    padding: 0;
}

.aksa-report-page.aksa-report-shell .aksa-accounting-filter-menu .rz-numeric-input {
    min-height: 0;
    height: 100%;
}

.aksa-accounting-filter-menu__options {
    display: grid;
    align-content: start;
    min-width: 0;
    gap: .85rem;
    padding-inline-start: .85rem;
    border-inline-start: 1px solid var(--aksa-report-border);
}

.aksa-report-page.aksa-report-shell .aksa-accounting-filter-menu__options .aksa-unified-quick-filter {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: none;
    padding: 0;
    border: 0;
    background: transparent;
}

.aksa-report-page.aksa-report-shell .aksa-accounting-filter-menu__options .form-label {
    font-weight: 750;
}

.aksa-report-page.aksa-report-shell .aksa-accounting-filter-menu__options .aksa-filter-field {
    display: grid;
    width: 100%;
    max-width: none;
}

.aksa-report-page.aksa-report-shell .aksa-report-control-panel__filter-heading > div > span,
.aksa-report-page.aksa-report-shell .aksa-report-control-panel__filter-footer-context {
    display: none;
}

.aksa-report-page.aksa-report-shell .aksa-report-control-panel__filter-footer {
    flex-direction: row;
    justify-content: flex-end;
    min-height: 2.8rem;
}

.aksa-report-page.aksa-report-shell .aksa-report-control-panel__filter-footer-actions {
    justify-content: flex-end;
    width: auto;
}

.aksa-report-page.aksa-report-shell .aksa-report-control-panel__filter-footer-actions .btn {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .aksa-report-page.aksa-report-shell .aksa-report-control-panel__filter-panel {
        position: fixed;
        inset: max(5.5rem, var(--aksa-sticky-header-offset, 0px)) .5rem .5rem;
        width: auto;
        max-width: none;
        max-height: none;
    }

    .aksa-accounting-filter-menu--with-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .aksa-accounting-filter-menu__options {
        padding-inline-start: 0;
        padding-block-start: .75rem;
        border-inline-start: 0;
        border-block-start: 1px solid var(--aksa-report-border);
    }
}

.sales-report-list-view .sales-report-list-sheet {
    min-height: 0;
}

.sales-report-list-view .sales-report-result-header {
    gap: .5rem;
    min-height: 2.3rem;
    padding: .35rem .65rem;
}

.sales-report-list-view .sales-report-dashboard-view {
    gap: .5rem;
    padding: .5rem;
}

.sales-report-list-view .sales-report-control-panel .aksa-report-control-panel__topbar.is-standalone,
.sales-report-list-view .sales-report-control-panel .aksa-report-control-panel__querybar {
    min-height: 0;
    gap: .35rem;
    padding: .3rem .55rem;
}

.sales-report-list-view .sales-report-control-panel .aksa-report-control-panel__topbar.is-standalone {
    display: flex;
    flex-wrap: wrap;
}

.sales-report-list-view .sales-report-control-panel .is-standalone .aksa-report-control-panel__identity {
    flex: 0 0 auto;
    min-width: 0;
}

.sales-report-list-view .sales-report-control-panel .aksa-report-control-panel__primary-commands {
    flex: 1 1 10.5rem;
    min-width: 0;
}

.sales-report-list-view .sales-report-variant-selector {
    width: min(14rem, 100%);
    margin-inline-start: .35rem;
}

.sales-report-list-view .sales-report-control-panel .aksa-report-control-panel__actions {
    flex-wrap: wrap;
    margin-inline-start: auto;
}

.sales-report-list-view .sales-report-control-panel .aksa-report-control-panel__context:empty {
    display: none;
}

.sales-report-list-view .sales-report-view-button {
    width: auto;
    min-width: 2rem;
    gap: .25rem;
    padding-inline: .5rem;
    font-size: .72rem;
    white-space: nowrap;
}

.sales-report-list-view .sales-report-control-panel .aksa-report-searchbox {
    width: 100%;
    margin: 0;
}

[data-aksa-layout="admin"] .aksa-report-page.aksa-report-shell .aksa-report-search-menu:has(.sales-report-filters) {
    width: min(38rem, calc(100vw - 1rem));
    max-width: calc(100vw - 1rem);
}

.aksa-report-search-menu:has(.sales-report-filters) .aksa-report-search-menu__heading {
    display: none;
}

.sales-report-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem .75rem;
}

.sales-report-filter-grid .aksa-unified-filter-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    align-content: start;
    gap: .25rem;
}

.sales-report-filter-grid .aksa-unified-filter-field .form-label {
    margin: 0;
    line-height: 1.2;
}

.sales-report-filter-grid:has(.ak-date-picker--datetime) .sales-report-period-selector,
.sales-report-filter-grid .aksa-unified-filter-field--span-2 {
    grid-column: 1 / -1;
}

.sales-report-filter-grid .sales-report-period-selector .rz-dropdown {
    max-width: 16rem;
}

.sales-report-list-view .sales-report-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    background: var(--sales-report-border);
}

.sales-report-list-view .sales-report-kpi-strip article:nth-child(n) {
    border: 0;
    gap: .12rem;
    padding: .45rem .65rem;
    background: var(--sales-report-surface);
}

.sales-report-totals {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border-bottom: 1px solid var(--sales-report-border);
    background: var(--sales-report-border);
}

.sales-report-totals > div {
    display: grid;
    gap: .1rem;
    min-width: 0;
    padding: .5rem .65rem;
    background: var(--sales-report-surface);
}

.sales-report-totals > div > span {
    color: var(--sales-report-muted);
    font-size: .72rem;
}

.sales-report-totals > div > strong {
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.sales-report-totals > div:last-child > strong {
    color: var(--bs-primary);
}

@media (max-width: 575.98px) {
    .sales-report-list-view .sales-report-control-panel .aksa-report-control-panel__actions {
        flex: 1 1 100%;
        justify-content: flex-start;
    }

    .sales-report-list-view .sales-report-view-label {
        display: none;
    }

    .sales-report-list-view .sales-report-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sales-report-totals > div {
        padding-inline: .4rem;
    }
}

@media (max-width: 479.98px) {
    .sales-report-filter-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sales-report-list-view .sales-report-control-panel .aksa-report-searchbox__facets {
        flex-basis: 100%;
    }
}

@media print {
    .aksa-report-page {
        padding: 0;
    }

    .aksa-report-titlebar,
    .aksa-unified-report-selector {
        position: static;
    }

    .no-print {
        display: none !important;
    }
}
