.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;
    }
}

@media print {
    .aksa-report-page {
        padding: 0;
    }

    .aksa-report-titlebar,
    .aksa-unified-report-selector {
        position: static;
    }

    .no-print {
        display: none !important;
    }
}
