@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #f4f7fa;
    color: #1f2933;
    height: 100%;
    overflow: hidden;
}

:root {
    --oakstone-text: #1f2933;
    --oakstone-text-strong: #102a43;
    --oakstone-text-muted: #52606d;
    --oakstone-surface: #ffffff;
    --oakstone-surface-muted: #f8fafc;
    --oakstone-border: #d7dce1;
    --neutral-foreground-rest: var(--oakstone-text);
    --neutral-foreground-hint: var(--oakstone-text-muted);
    --neutral-layer-1: var(--oakstone-surface);
    --neutral-layer-2: var(--oakstone-surface-muted);
    --oakstone-checkbox-border: #7a8795;
    --oakstone-checkbox-border-hover: #4f5f70;
    --oakstone-checkbox-checked-bg: #1b6ec2;
    --oakstone-checkbox-checked-border: #1861ac;
    --oakstone-checkbox-focus-ring: rgba(27, 110, 194, 0.22);
    --oakstone-checkbox-disabled-bg: #eef2f6;
    --oakstone-checkbox-disabled-border: #9aa8b6;
}

body,
.oakstone-layout-content,
.oakstone-workspace-container,
.card,
.card-body,
.bt-card,
.bt-card-body,
.modal,
.modal-content,
.dropdown-menu,
.bt-data-grid,
.app-data-grid,
.fluent-data-grid,
table,
td,
th,
label,
.label,
.field-label,
.field-body,
.form-control,
.form-select,
fluent-text-field,
fluent-text-area,
fluent-number-field,
fluent-select,
fluent-option,
fluent-datepicker,
fluent-autocomplete {
    color: var(--oakstone-text);
}

.card,
.bt-card,
.modal-content,
.dropdown-menu,
.bt-data-grid,
.app-data-grid,
.fluent-data-grid {
    background-color: var(--oakstone-surface);
}

.bt-text-primary {
    color: #1b6ec2 !important;
}

.bt-text-secondary,
.bt-text-muted {
    color: var(--oakstone-text-muted) !important;
}

.bt-text-success {
    color: #1f7a4d !important;
}

.bt-text-danger {
    color: #b32121 !important;
}

.bt-text-warning {
    color: #7a5410 !important;
}

.bt-text-info {
    color: #174a73 !important;
}

.bt-text-light,
.bt-text-white {
    color: #fff !important;
}

.bt-text-dark {
    color: var(--oakstone-text-strong) !important;
}

.bt-compat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    color: inherit;
    vertical-align:text-bottom;
}

.bt-compat-icon svg {
    display: block;
    width: 1.15rem;
    height: 1.15rem;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 10;
    padding: 10px 0px;
}

.print-only {
    display: none; /* Initially hide the content on the screen */
}

/* Styles for printing */
@media print {
    .print-only {
        display: block; /* Show the content only during printing */
        /* Add any other print-specific styles here */
    }
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.form-check-input {
    border-color: var(--oakstone-checkbox-border);
    border-width: 1.5px;
}

.form-check-input:not(:checked) {
    background-color: #fff;
    border-color: var(--oakstone-checkbox-border);
}

.form-check-input:not(:checked):hover:not(:disabled) {
    border-color: var(--oakstone-checkbox-border-hover);
}

.form-check-input:checked {
    background-color: var(--oakstone-checkbox-checked-bg);
    border-color: var(--oakstone-checkbox-checked-border);
}

.form-check-input:focus {
    border-color: var(--oakstone-checkbox-checked-border);
    box-shadow: 0 0 0 0.2rem var(--oakstone-checkbox-focus-ring);
}

.form-check-input:disabled {
    background-color: var(--oakstone-checkbox-disabled-bg);
    border-color: var(--oakstone-checkbox-disabled-border);
    opacity: 0.75;
}

input[type="checkbox"]:not(.form-check-input) {
    accent-color: var(--oakstone-checkbox-checked-bg);
    cursor: pointer;
}

input[type="checkbox"]:not(.form-check-input):not(:checked) {
    outline: 1.5px solid var(--oakstone-checkbox-border);
    outline-offset: -1px;
}

input[type="checkbox"]:not(.form-check-input):not(:checked):hover:not(:disabled) {
    outline-color: var(--oakstone-checkbox-border-hover);
}

input[type="checkbox"]:not(.form-check-input):disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.bg-colorful {
    background: rgb(167,90,219);
    background: linear-gradient(90deg, rgba(167,90,219,1) 0%, rgba(253,29,29,1) 25%, rgba(252,176,69,1) 50%, rgba(247,246,42,1) 75%, rgba(150,255,254,1) 100%);
}

.flatpickr-calendar.static {
    top: auto !important;
}

.report-enterprise-page,
.gl-enterprise-page {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.report-enterprise-page > *,
.gl-enterprise-page > *,
.report-enterprise-page .row,
.gl-enterprise-page .row,
.report-enterprise-page .col,
.gl-enterprise-page .col,
.report-enterprise-page .card,
.gl-enterprise-page .card,
.report-enterprise-page .card-body,
.gl-enterprise-page .card-body,
.gl-enterprise-shell,
.gl-enterprise-report-card {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.gl-enterprise-shell > .row,
.gl-enterprise-report-card > .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
}

.gl-enterprise-shell > .row > .col,
.gl-enterprise-report-card > .row > .col {
    padding-left: 0;
    padding-right: 0;
}

.report-enterprise-filter-bar,
.gl-enterprise-filter-bar {
    display: grid;
    gap: 1rem;
}

.report-enterprise-compact-filters .field.is-horizontal {
    display: block;
}

.report-enterprise-compact-filters .field.is-horizontal .field-label,
.report-enterprise-compact-filters .field.is-horizontal .field-body,
.report-enterprise-compact-filters .field.is-horizontal .control,
.report-enterprise-compact-filters .field.is-horizontal .select,
.report-enterprise-compact-filters .field.is-horizontal input,
.report-enterprise-compact-filters .field.is-horizontal textarea {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
}

.report-enterprise-compact-filters .field.is-horizontal .field-label,
.report-enterprise-compact-filters .field.is-horizontal .field-body {
    margin: 0;
    padding: 0;
}

.report-enterprise-compact-filters .field.is-horizontal .field-label {
    margin-bottom: 0.35rem;
}

.report-enterprise-compact-filters .field.is-horizontal .field-label label,
.report-enterprise-compact-filters .field.is-horizontal .label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #495057;
}

.report-enterprise-filter-grid {
    display: grid;
    gap: 1rem;
    align-items: end;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-enterprise-filter-grid > div {
    min-width: 0;
}

.report-enterprise-action-bar,
.gl-enterprise-action-bar {
    display: flex;
    gap: 0.75rem;
    row-gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    justify-content: flex-end;
}

.report-enterprise-action-bar > *,
.gl-enterprise-action-bar > * {
    white-space: nowrap;
}

.report-enterprise-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #d7dce1;
}

.report-enterprise-kicker {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
    font-weight: 700;
}

.report-enterprise-header h3 {
    margin: 0.25rem 0;
    font-size: 1.15rem;
    color: #212529;
}

.report-enterprise-header > div:first-child,
.report-enterprise-section-header > div:first-child,
.report-enterprise-subsection-header > div:first-child {
    min-width: 0;
}

.report-enterprise-header p {
    margin: 0;
    color: #6c757d;
}

.report-enterprise-header-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    min-width: 0;
    width: min(100%, 34rem);
}

.report-enterprise-header-meta > div,
.report-enterprise-kpi {
    border: 1px solid #d7dce1;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.75rem 0.9rem;
}

.report-enterprise-header-meta span,
.report-enterprise-kpi span,
.report-enterprise-kpi .report-summary-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
    font-weight: 700;
}

.report-enterprise-header-meta strong,
.report-enterprise-kpi strong,
.report-enterprise-kpi .report-summary-value {
    display: block;
    margin-top: 0.3rem;
    color: #212529;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.report-enterprise-kpi-strip {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.report-enterprise-kpi-emphasis {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.report-enterprise-kpi .report-summary-label,
.report-enterprise-kpi .report-summary-value {
    margin-bottom: 0;
}

.report-enterprise-footer-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: #6c757d;
}

.report-enterprise-section {
    margin-top: 1rem;
    border: 1px solid #d7dce1;
    border-radius: 0.75rem;
    background: #fff;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
}

.report-enterprise-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.95rem 1rem;
    border-bottom: 1px solid #d7dce1;
    background: #f8f9fa;
}

.report-enterprise-section-header h4,
.report-enterprise-subsection-header h5 {
    margin: 0.2rem 0 0;
    color: #212529;
}

.report-enterprise-section-header p,
.report-enterprise-subsection-header p {
    margin: 0.3rem 0 0;
    color: #6c757d;
}

.report-enterprise-section-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    min-width: 0;
    width: min(100%, 34rem);
}

.report-enterprise-section-meta > div {
    border: 1px solid #d7dce1;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.75rem 0.9rem;
}

.report-enterprise-section-meta span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
    font-weight: 700;
}

.report-enterprise-section-meta strong {
    display: block;
    margin-top: 0.3rem;
    color: #212529;
    font-size: 1rem;
    font-variant-numeric: tabular-nums;
}

.report-enterprise-section-body {
    padding: 1rem;
    min-width: 0;
}

.report-enterprise-subsection + .report-enterprise-subsection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #d7dce1;
}

.report-enterprise-subsection-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.report-enterprise-inline-metrics {
    display: flex;
    gap: 0.75rem;
    row-gap: 0.5rem;
    flex-wrap: wrap;
    color: #495057;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

.report-enterprise-mini-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.report-enterprise-table-wrap {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

.report-enterprise-table,
.report-enterprise-statement-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
    --bs-table-bg: transparent;
}

.report-enterprise-table thead th,
.report-enterprise-statement-table thead th {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #495057;
    border-bottom: 1px solid #adb5bd;
    white-space: nowrap;
    background: #f8f9fa;
}

.report-enterprise-table tbody td,
.report-enterprise-table tfoot td,
.report-enterprise-statement-table tbody td,
.report-enterprise-statement-table tfoot td {
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.report-enterprise-table tfoot td,
.report-enterprise-statement-table tfoot td {
    font-weight: 700;
    background: #eef1f4;
    border-top: 2px solid #adb5bd;
}

.report-enterprise-numeric,
.report-enterprise-table .text-end,
.report-enterprise-statement-table .text-end {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.app-table-numeric,
.app-data-grid .text-end,
.app-data-grid .app-table-numeric,
.app-data-grid td:has(.app-table-numeric),
.app-data-grid th:has(.app-table-numeric),
table .app-table-numeric,
table .text-end,
table td:has(.app-table-numeric),
table th:has(.app-table-numeric),
table td:has(input.app-table-numeric),
table td input.app-table-numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.receipt-row-actions {
    align-items: center;
    display: inline-flex;
    gap: 0.6rem;
    min-width: 7rem;
    white-space: nowrap;
}

.document-print-split {
    display: inline-flex;
    position: relative;
    vertical-align: middle;
}

.document-print-split > .bt-compat-button:first-child {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.document-print-split > .bt-compat-button.document-print-split-toggle {
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    margin-left: -1px;
}

.document-print-split > .bt-compat-button:focus {
    position: relative;
    z-index: 1;
}

.document-print-split-toggle {
    min-width: 2rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.document-print-template-menu {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    min-width: 14rem;
    padding: 0.25rem 0;
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 1060;
}

.document-print-template-item {
    background: transparent;
    border: 0;
    color: #212529;
    display: block;
    padding: 0.35rem 0.75rem;
    text-align: left;
    width: 100%;
}

.document-print-template-item:hover,
.document-print-template-item:focus {
    background: #f1f5f9;
    outline: 0;
}

.report-enterprise-status-banner {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #d7dce1;
    border-radius: 0.75rem;
    background: #f8f9fa;
}

.report-enterprise-status-banner strong {
    color: #212529;
}

.report-enterprise-status-list {
    display: flex;
    gap: 0.5rem;
    row-gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.report-enterprise-status-item {
    border: 1px solid #d7dce1;
    border-radius: 999px;
    padding: 0.3rem 0.7rem;
    background: #fff;
    color: #495057;
    font-size: 0.82rem;
    font-weight: 600;
}

.report-enterprise-disclosure-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.report-enterprise-disclosure-item {
    padding: 0.95rem 1rem;
    border: 1px solid #d7dce1;
    border-radius: 0.75rem;
    background: #f8f9fa;
}

.report-enterprise-disclosure-item span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
    font-weight: 700;
}

.report-enterprise-disclosure-item strong {
    display: block;
    margin-top: 0.35rem;
    color: #212529;
    font-size: 1rem;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 991.98px) {
    .report-enterprise-filter-grid,
    .report-enterprise-kpi-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-enterprise-header {
        flex-direction: column;
    }

    .report-enterprise-header-meta {
        min-width: 0;
    }

    .report-enterprise-section-header,
    .report-enterprise-subsection-header {
        flex-direction: column;
    }

    .report-enterprise-section-meta {
        min-width: 0;
    }
}

@media (max-width: 1240px) {
    .report-enterprise-filter-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .report-enterprise-header,
    .report-enterprise-section-header,
    .report-enterprise-subsection-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .report-enterprise-header-meta,
    .report-enterprise-section-meta {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .report-enterprise-filter-grid,
    .report-enterprise-kpi-strip,
    .report-enterprise-header-meta,
    .report-enterprise-section-meta {
        grid-template-columns: 1fr;
    }

    .report-enterprise-action-bar,
    .gl-enterprise-action-bar {
        justify-content: flex-end;
    }

    .report-enterprise-status-banner {
        align-items: flex-start;
    }
}

:root {
    --oakstone-header-height: 4.75rem;
    --oakstone-content-top-gap: 1rem;
}

.oakstone-layout-header {
    position: relative;
    top: 0;
    display: block;
    min-height: var(--oakstone-header-height);
    z-index: 1100;
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    background-image: none !important;
    border-bottom: 1px solid #d7dce1;
    box-shadow: 0 1px 0 rgba(15, 34, 54, 0.06);
    isolation: isolate;
    overflow: visible;
}

.oakstone-topbar {
    position: relative;
    width: 100%;
    height: auto;
    min-height: var(--oakstone-header-height);
    background: #f8fafc !important;
    background-color: #f8fafc !important;
    background-image: none !important;
    color: #243b53;
    z-index: 1;
}

.oakstone-topbar .bar-brand,
.oakstone-topbar .bar-menu,
.oakstone-topbar .bar-item,
.oakstone-topbar .bar-link,
.oakstone-topbar .dropdown-toggle,
.oakstone-topbar .bar-toggler {
    color: #243b53;
}

.oakstone-layout-content {
    min-height: calc(100vh - var(--oakstone-header-height));
    background: #f4f7fa;
}

.oakstone-workspace-container {
    padding-top: var(--oakstone-content-top-gap);
    padding-bottom: 2rem;
}

.oakstone-workspace-container > .row:first-child,
.oakstone-workspace-container > .row:first-child > .col:first-child,
.oakstone-workspace-container > .row:first-child > .column:first-child {
    min-width: 0;
}

.oakstone-workspace-container > .row:first-child > *:first-child > :first-child {
    margin-top: 0 !important;
}

@media (max-width: 640.98px) {
    :root {
        --oakstone-header-height: 4.25rem;
        --oakstone-content-top-gap: 0.75rem;
    }
}

/* Blaxtron compatibility shell/layout after the Fluent UI migration. */
.bt-layout {
    box-sizing: border-box;
    min-width: 0;
}

.bt-layout.oakstone-shell {
    --oakstone-sidebar-expanded-width: 280px;
    --oakstone-sidebar-collapsed-width: 72px;
    --oakstone-sidebar-track-width: var(--oakstone-sidebar-expanded-width);
    --oakstone-sidebar-rail-width: var(--oakstone-sidebar-expanded-width);
    display: grid;
    grid-template-columns: var(--oakstone-sidebar-track-width) minmax(0, 1fr);
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
    width: 100%;
    background: #f4f7fa;
}

.bt-layout.oakstone-shell.oakstone-shell-sidebar-collapsed {
    --oakstone-sidebar-track-width: var(--oakstone-sidebar-collapsed-width);
    --oakstone-sidebar-rail-width: var(--oakstone-sidebar-collapsed-width);
}

.oakstone-shell > .bt-layout-sider {
    position: sticky;
    top: 0;
    align-self: start;
    width: var(--oakstone-sidebar-track-width);
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 1200;
    background: #f4f7fa;
}

.oakstone-shell > .bt-layout {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

.bt-layout:not(.oakstone-shell) {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.bt-layout-sider-content {
    min-height: 100%;
}

.oakstone-shell .oakstone-side-menu {
    width: var(--oakstone-sidebar-rail-width);
    max-width: var(--oakstone-sidebar-rail-width);
}

.oakstone-layout-content {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

@media (min-width: 992px) {
    .oakstone-shell-sidebar-collapsed .oakstone-side-menu {
        overflow-x: hidden;
    }

    .oakstone-shell-sidebar-collapsed .oakstone-side-menu-header,
    .oakstone-shell-sidebar-collapsed .oakstone-side-menu-item {
        display: flex;
        justify-content: center;
    }

    .oakstone-shell-sidebar-collapsed .oakstone-side-menu-brand {
        width: 100%;
        padding: 1rem 0 0.5rem;
    }

    .oakstone-shell-sidebar-collapsed .oakstone-brand-link {
        justify-content: center;
        gap: 0;
        padding: 0.35rem 0;
    }

    .oakstone-shell-sidebar-collapsed .oakstone-brand-copy,
    .oakstone-shell-sidebar-collapsed .oakstone-menu-label,
    .oakstone-shell-sidebar-collapsed .oakstone-side-menu-group.is-collapsed-dropdown,
    .oakstone-shell-sidebar-collapsed .oakstone-side-menu-submenu {
        display: none;
    }

    .oakstone-shell-sidebar-collapsed .oakstone-side-menu-items {
        padding: 0 0.5rem 1rem;
    }

    .oakstone-shell-sidebar-collapsed .oakstone-side-menu-link,
    .oakstone-shell-sidebar-collapsed .oakstone-side-menu-toggle {
        box-sizing: border-box;
        justify-content: center;
        width: 2.75rem;
        min-height: 2.75rem;
        gap: 0;
        padding: 0.35rem;
    }

    .oakstone-shell-sidebar-collapsed .oakstone-side-menu-toggle::after {
        display: none;
    }
}

.bar {
    box-sizing: border-box;
}

.bar a {
    text-decoration: none;
}

.bar-horizontal {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bar-vertical {
    display: flex;
    flex-direction: column;
}

.bar-brand,
.bar-menu,
.bar-start,
.bar-end,
.bar-item {
    min-width: 0;
}

.bar-horizontal .bar-brand {
    flex: 0 1 auto;
}

.bar-horizontal .bar-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
}

.bar-horizontal .bar-end,
.bar-horizontal .bar-start {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bar-vertical .bar-menu,
.bar-vertical .bar-start {
    display: block;
    width: 100%;
}

.bar-link,
.dropdown-item,
.dropdown-toggle {
    color: inherit;
}

.dropdown-toggle {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bt-bar-dropdown {
    position: relative;
}

.oakstone-topbar .dropdown-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 1300;
    display: none;
    min-width: 12rem;
    padding: 0.35rem;
    border-radius: 0.5rem;
    background: #fff;
}

.oakstone-topbar .bt-bar-dropdown.is-open > .dropdown-menu {
    display: grid;
    gap: 0.15rem;
}

.oakstone-topbar .dropdown-item {
    display: block;
    padding: 0.55rem 0.7rem;
    border-radius: 0.35rem;
}

.oakstone-topbar .dropdown-divider {
    width: 100%;
    margin: 0.25rem 0;
}

.oakstone-side-menu .bar-toggler {
    display: none;
}

.oakstone-side-menu-header {
    min-width: 0;
}

.oakstone-side-menu {
    min-height: 100vh;
    background: linear-gradient(180deg, #0f2236 0%, #122b42 55%, #17344d 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
    color: #f8fbff;
}

.oakstone-side-menu,
.oakstone-side-menu .bar-link,
.oakstone-side-menu .dropdown-item,
.oakstone-side-menu .dropdown-toggle,
.oakstone-side-menu .bt-compat-icon,
.oakstone-side-menu fluent-icon {
    color: #f8fbff;
}

.oakstone-side-menu-brand {
    padding: 1rem 0.85rem 0.5rem;
}

.oakstone-brand-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.35rem 0.25rem;
    color: #f8fbff;
    text-decoration: none;
}

.oakstone-brand-mark {
    display: block;
    width: 2.35rem;
    height: 2.35rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    flex: 0 0 auto;
}

.oakstone-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.oakstone-brand-title {
    color: #f8fbff;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.oakstone-brand-subtitle {
    margin-top: 0.14rem;
    color: rgba(225, 235, 244, 0.72);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.oakstone-side-menu-items {
    padding: 0 0.65rem 1rem;
}

.oakstone-side-menu-item {
    margin-bottom: 0.25rem;
}

.oakstone-side-menu .dropdown-toggle {
    width: 100%;
    text-align: left;
}

.oakstone-side-menu .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    display: none;
    gap: 0.15rem;
    min-width: 0;
    padding: 0;
    margin: 0 0 0.5rem 1.5rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.oakstone-side-menu .bt-bar-dropdown.is-open > .dropdown-menu,
.oakstone-side-menu .dropdown-menu.is-open,
.oakstone-side-menu .dropdown-menu[data-open="true"] {
    display: grid;
}

.oakstone-side-menu .dropdown-item {
    width: 100%;
    color: rgba(236, 245, 252, 0.9);
    background: transparent;
    white-space: normal;
}

.oakstone-side-menu .dropdown-item:hover,
.oakstone-side-menu .dropdown-item:focus-visible {
    color: #fff;
    background: transparent;
}

.oakstone-side-menu .oakstone-side-menu-link,
.oakstone-side-menu .oakstone-side-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 2.8rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.85rem;
    color: rgba(248, 251, 255, 0.94);
    font-weight: 600;
}

.oakstone-side-menu .oakstone-side-menu-link:hover,
.oakstone-side-menu .oakstone-side-menu-link:focus-visible,
.oakstone-side-menu .oakstone-side-menu-toggle:hover,
.oakstone-side-menu .oakstone-side-menu-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.oakstone-side-menu-third-level,
.oakstone-side-menu .oakstone-side-menu-subitem {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.4rem 0.2rem;
    color: rgba(236, 245, 252, 0.9);
    font-size: 0.9rem;
}



.oakstone-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    background: rgba(255, 255, 255, 0.08);
    color: #f2c14e;
    flex: 0 0 auto;
}

.oakstone-menu-label {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oakstone-subitem-dot {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: rgba(242, 193, 78, 0.85);
    flex: 0 0 auto;
}


.bt-row {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.bt-column {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.bt-column.col-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.bt-column.col-6,
.bt-column.col-half {
    flex: 0 0 50%;
    max-width: 50%;
}

.bt-column.col-12,
.bt-column.col-full {
    flex: 0 0 100%;
    max-width: 100%;
}

.bt-card {
    margin-bottom: 1rem;
    border: 1px solid #d7dce1;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(31, 41, 51, 0.04);
}

.bt-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #d7dce1;
    background: #f8fafc;
}

.bt-card-header-sticky {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #f8fafc;
    box-shadow: 0 1px 0 rgba(15, 34, 54, 0.08);
}

.bt-card-header > .bt-row {
    width: 100%;
    flex: 1 1 auto;
    align-items: center;
}

.bt-card-header h2,
.bt-card-header h3 {
    margin: 0;
}

.bt-card-header h2 {
    font-size: 1.25rem;
    line-height: 1.2;
}

.bt-card-header .bt-heading-is6 {
    margin-top: 0.2rem;
    color: #52606d;
    font-size: 0.95rem;
    font-weight: 500;
}

.justify.end {
    display: flex;
    justify-content: flex-end;
}

.bt-card-body {
    padding: 1rem;
}

.bt-field {
    margin-bottom: 0.85rem;
}

.bt-field-horizontal {
    display: grid;
    grid-template-columns: minmax(9rem, 30%) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.bt-field-horizontal > .bt-field-label,
.bt-field-horizontal > .bt-field-body {
    width: auto;
    max-width: none;
    flex: none;
}

@media (min-width: 768px) {
    .bt-field-horizontal > .bt-field-label {
        white-space: nowrap;
    }
}

.report-enterprise-filter-grid .bt-field-horizontal,
.gl-enterprise-filter-bar .bt-field-horizontal,
.report-enterprise-filter-bar .bt-field-horizontal {
    display: block;
}

.report-enterprise-filter-grid .bt-field-label,
.gl-enterprise-filter-bar .bt-field-label,
.report-enterprise-filter-bar .bt-field-label {
    padding-top: 0;
    margin-bottom: 0.35rem;
}

.bt-field-label {
    padding-top: 0.35rem;
    font-weight: 600;
    color: #34495e;
}

.bt-field-body {
    min-width: 0;
}

.bt-input,
.bt-field-body input,
.bt-field-body select,
.bt-field-body textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 2.25rem;
    padding: 0.38rem 0.55rem;
    border: 1px solid #b8c2cc;
    border-radius: 0.35rem;
    background: #fff;
    color: #1f2933;
}

.bt-input:focus,
.bt-field-body input:focus,
.bt-field-body select:focus,
.bt-field-body textarea:focus {
    border-color: #1b6ec2;
    outline: 0;
    box-shadow: 0 0 0 0.18rem rgba(27, 110, 194, 0.18);
}

.bt-tabs {
    display: block;
    width: 100%;
    min-width: 0;
}

.bt-tabs-list {
    display: block;
    width: 100%;
    min-width: 0;
    border-bottom: 1px solid #d7dce1;
    overflow-x: auto;
    overflow-y: hidden;
}

.bt-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.35rem;
    max-width: 100%;
    padding: 0.45rem 0.9rem;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #34495e;
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    box-shadow: none;
}

.bt-tab:hover:not(:disabled),
.bt-tab:focus-visible:not(:disabled) {
    border-bottom-color: #8ca4bc;
    background: transparent;
    color: #0f3558;
}

.bt-tab:focus-visible {
    outline: 0;
    box-shadow: 0 0 0 0.18rem rgba(27, 110, 194, 0.18);
}

.bt-tab.active,
.bt-tab[aria-selected="true"] {
    border-bottom-color: #1b6ec2;
    background: transparent;
    color: #1b6ec2;
}

.bt-tab:disabled,
.bt-tab.disabled,
.bt-tab[aria-disabled="true"] {
    color: var(--oakstone-text-muted);
    cursor: not-allowed;
    opacity: 0.62;
}

.bt-tabs-content {
    min-width: 0;
    padding-top: 0.85rem;
}

.bt-tab-panel {
    min-width: 0;
}

.bt-check,
.bt-radio {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 1.5rem;
    margin: 5px 0;
    color: var(--oakstone-text);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.25;
    cursor: pointer;
}

.bt-check-inline,
.bt-radio-group .bt-radio {
    margin-right: 0.75rem;
}

.bt-check input[type="checkbox"],
.bt-radio input[type="radio"],
.bt-field-body .bt-check input[type="checkbox"],
.bt-field-body .bt-radio input[type="radio"] {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 1rem;
    max-width: 1rem;
    height: 1rem;
    min-height: 1rem;
    margin: 0;
    padding: 0;
    border: 1.5px solid var(--oakstone-checkbox-border);
    background-color: #fff;
    accent-color: var(--oakstone-checkbox-checked-bg);
    cursor: pointer;
}

.bt-radio-group {
    display: flex;
    gap: 0.75rem;
    row-gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

.bt-radio input[type="radio"],
.bt-field-body .bt-radio input[type="radio"] {
    border-radius: 999px;
}

.bt-check input[type="checkbox"]:hover:not(:disabled),
.bt-radio input[type="radio"]:hover:not(:disabled) {
    border-color: var(--oakstone-checkbox-border-hover);
}

.bt-check input[type="checkbox"]:focus,
.bt-radio input[type="radio"]:focus,
.bt-field-body .bt-check input[type="checkbox"]:focus,
.bt-field-body .bt-radio input[type="radio"]:focus {
    outline: 0;
    box-shadow: 0 0 0 0.18rem var(--oakstone-checkbox-focus-ring);
}

.bt-check input[type="checkbox"]:disabled,
.bt-radio input[type="radio"]:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.bt-check:has(input:disabled),
.bt-radio:has(input:disabled) {
    cursor: not-allowed;
    color: var(--oakstone-text-muted);
}

.bt-tree,
.bt-tree-children {
    list-style: none;
}

.role-permission-node-row {
    display: grid;
    grid-template-columns: 1.8rem minmax(10rem, 1.1fr) auto minmax(14rem, 2fr);
    gap: 0.65rem;
    align-items: center;
    min-width: 0;
    padding: 0.48rem 0.6rem;
    border-bottom: 1px solid #edf1f5;
}

.role-permission-node-row.level-0 {
    background: #fff;
    font-weight: 700;
}

.role-permission-node-row.level-1 {
    background: #fbfdff;
}

.role-permission-node-row.level-2,
.role-permission-node-row.level-3,
.role-permission-node-row.level-4 {
    background: #fff;
}

.role-permission-node-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.45rem;
    height: 1.45rem;
    border: 1px solid #c5ced8;
    border-radius: 0.35rem;
    background: #fff;
    color: #34495e;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.role-permission-node-toggle.placeholder {
    visibility: hidden;
}

.role-permission-node-code {
    overflow: hidden;
    max-width: 10rem;
    padding: 0.16rem 0.45rem;
    border-radius: 999px;
    background: #eef6ff;
    color: #174a73;
    font-size: 0.72rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.role-permission-tag-list {
    display: flex;
    gap: 0.45rem;
    row-gap: 0.35rem;
    align-items: center;
    flex-wrap: wrap;
    min-width: 0;
}

@media (max-width: 991.98px) {
    .role-permission-node-row {
        grid-template-columns: 1.8rem minmax(0, 1fr);
    }

    .role-permission-node-code,
    .role-permission-tag-list {
        grid-column: 2;
    }
}

.bt-input-invalid {
    border-color: #b32121;
}

.bt-input.bt-inactive-selected-option,
.bt-autocomplete-option.bt-inactive-selected-option {
    color: #b32121 !important;
}

.custom-select.bt-inactive-selected-option {
    color: #b32121 !important;
}

.custom-select.bt-inactive-selected-option option:not(:checked) {
    color: var(--oakstone-text) !important;
}

.custom-select.bt-inactive-selected-option option:checked {
    color: #b32121 !important;
}

.bt-autocomplete {
    position: relative;
    width: 100%;
}

.bt-autocomplete-menu {
    position: absolute;
    top: calc(100% + 0.2rem);
    left: 0;
    right: 0;
    z-index: 1350;
    max-height: 16rem;
    overflow-y: auto;
    padding: 0.25rem;
    border: 1px solid #b8c2cc;
    border-radius: 0.35rem;
    background: #fff;
    box-shadow: 0 16px 36px rgba(31, 41, 51, 0.14);
}

.bt-autocomplete-option {
    display: block;
    width: 100%;
    padding: 0.45rem 0.55rem;
    border: 0;
    border-radius: 0.25rem;
    background: transparent;
    color: #1f2933;
    text-align: left;
}

.bt-autocomplete-option:hover,
.bt-autocomplete-option:focus-visible {
    background: #eef6ff;
    color: #102a43;
}

.bt-autocomplete-empty {
    padding: 0.55rem 0.65rem;
    color: #52606d;
}

.bt-validation-message,
.validation-message {
    margin-top: 0.25rem;
    color: #b32121;
    font-size: 0.82rem;
}

.bt-input-field-label {
    white-space: nowrap;
}

.bt-compat-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.bt-compat-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.38rem 0.75rem;
    border: 1px solid #1b6ec2;
    border-radius: 0.35rem;
    background: #1b6ec2;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

.bt-compat-button.bt-secondary,
.bt-compat-button.bt-light {
    border-color: #b8c2cc;
    background: #fff;
    color: #243b53;
}

.bt-compat-button.bt-danger {
    border-color: #b32121;
    background: #b32121;
}

.bt-compat-button.bt-warning {
    border-color: #c27a00;
    background: #fff8ea;
    color: #7a5410;
}

.bt-compat-button.bt-success {
    border-color: #1f7a4d;
    background: #1f7a4d;
}

.bt-compat-button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.bt-button-content {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.bt-anchor-button {
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1b6ec2;
    cursor: pointer;
}

.bt-anchor-button:disabled {
    color: #9ca3af;
    cursor: not-allowed;
}

.bt-compat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1em;
    font-size: 0.85em;
    font-weight: 700;
    line-height: 1;
}

.bt-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.bt-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.bt-table th,
.bt-table td {
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e1e7ec;
    vertical-align: middle;
}

.bt-table th {
    color: #34495e;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background: #f8fafc;
}

.bt-pager {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.85rem 0 0;
}

.bt-pager .bt-compat-button {
    min-width: 6.75rem;
}

.bt-pager-status {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    padding: 0 0.5rem;
    color: var(--oakstone-text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .bt-pager {
        justify-content: center;
    }

    .bt-pager .bt-compat-button {
        flex: 1 1 0;
        min-width: 0;
    }

    .bt-pager-status {
        order: -1;
        justify-content: center;
        width: 100%;
        padding: 0;
    }
}

.bt-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(15, 34, 54, 0.42);
}

.bt-modal {
    position: fixed;
    inset: 0;
    z-index: 1510;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    overflow: auto;
}

.bt-modal.modal {
    position: fixed;
    inset: 0;
    display: flex;
    overflow: auto;
}

.bt-modal-content {
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border-radius: 0.5rem;
    background: #fff;
    opacity: 1;
    box-shadow: 0 24px 70px rgba(15, 34, 54, 0.28);
}

.bt-modal-small {
    max-width: 420px;
}

.bt-modal-large {
    max-width: 880px;
}

.bt-modal-extralarge {
    max-width: 1120px;
}

.bt-modal-header,
.bt-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #d7dce1;
}

.bt-modal-footer {
    justify-content: flex-end;
    border-top: 1px solid #d7dce1;
    border-bottom: 0;
}

.bt-modal-body {
    padding: 1rem;
}

.bt-modal-title {
    margin: 0;
    font-size: 1.15rem;
}

.bt-close-button.bt-compat-button {
    flex: 0 0 auto;
    width: 2.25rem;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border-color: #d7dce1;
    background: #fff;
    color: var(--oakstone-text-muted);
}

.bt-close-button.bt-compat-button:hover,
.bt-close-button.bt-compat-button:focus {
    border-color: #b8c2cc;
    background: #f8fafc;
    color: var(--oakstone-text-strong);
}

@media (max-width: 991.98px) {
    html {
        height: auto !important;
        min-height: 100%;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        touch-action: pan-y;
    }

    body {
        height: auto !important;
        min-height: 100%;
        overflow: visible !important;
        touch-action: pan-y;
    }

    .bt-layout.oakstone-shell {
        --oakstone-sidebar-track-width: 100%;
        --oakstone-sidebar-rail-width: 100%;
        display: block;
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        overflow: visible;
        touch-action: pan-y;
    }

    .bt-layout.oakstone-shell.oakstone-shell-sidebar-collapsed,
    .bt-layout.oakstone-shell.oakstone-theme-compact.oakstone-shell-sidebar-collapsed {
        --oakstone-sidebar-track-width: 100%;
        --oakstone-sidebar-rail-width: 100%;
    }

    .oakstone-shell > .bt-layout-sider {
        position: sticky;
        top: 0;
        align-self: stretch;
        width: 100%;
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        z-index: 1400;
        flex: 0 0 auto;
    }

    .oakstone-shell-sidebar-collapsed .oakstone-brand-copy {
        display: flex;
    }

    .oakstone-shell-sidebar-collapsed .oakstone-menu-label {
        display: inline;
    }

    .oakstone-shell-sidebar-collapsed .oakstone-collapsed-parent-button {
        display: none;
    }

    .oakstone-shell-sidebar-collapsed .oakstone-side-menu-group.is-collapsed-dropdown {
        display: block;
    }

    .oakstone-header-sidebar-toggle-item,
    .oakstone-sidebar-toggle {
        display: none !important;
    }

    .bt-layout-sider-content {
        min-height: 0;
    }

    .oakstone-shell > .bt-layout {
        height: auto;
        min-height: 0;
        overflow: visible;
        touch-action: pan-y;
    }

    .oakstone-layout-content {
        height: auto;
        min-height: 0;
        overflow: visible;
        overscroll-behavior: auto;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    .oakstone-workspace-container {
        touch-action: pan-y;
    }

    .oakstone-side-menu {
        height: auto;
        min-height: auto;
        overflow: visible;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 12px 24px rgba(15, 34, 54, 0.16);
    }

    .oakstone-side-menu-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        height: 4.25rem;
        min-height: 4.25rem;
        padding: 0 0.85rem;
    }

    .oakstone-side-menu-brand {
        min-width: 0;
        padding: 0;
    }

    .oakstone-side-menu .bar-toggler {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        margin: 0;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 0.5rem;
        background: rgba(255, 255, 255, 0.08);
        color: #f8fbff;
        flex: 0 0 auto;
    }

    .bt-bar-toggler-lines,
    .bt-bar-toggler-lines::before,
    .bt-bar-toggler-lines::after {
        display: block;
        width: 1.05rem;
        height: 0.12rem;
        border-radius: 999px;
        background: currentColor;
        content: "";
    }

    .bt-bar-toggler-lines {
        position: relative;
    }

    .bt-bar-toggler-lines::before,
    .bt-bar-toggler-lines::after {
        position: absolute;
        left: 0;
    }

    .bt-bar-toggler-lines::before {
        top: -0.36rem;
    }

    .bt-bar-toggler-lines::after {
        top: 0.36rem;
    }

    .oakstone-side-menu .oakstone-side-menu-items {
        display: none;
        max-height: calc(100dvh - 4.25rem);
        margin-top: 0 !important;
        padding: 0.5rem 0.65rem 0.85rem;
        overflow-y: auto;
        overscroll-behavior: contain;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .oakstone-side-menu .oakstone-side-menu-items.is-open {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .bar-horizontal {
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0.5rem;
    }

    .bar-horizontal .bar-menu,
    .bar-horizontal .bar-end {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .bt-column,
    .bt-column.col-4,
    .bt-column.col-6,
    .bt-column.col-12,
    .bt-column.col-half,
    .bt-column.col-full {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .bt-field-horizontal {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .bt-field-horizontal > .bt-field-label {
        white-space: normal;
    }
}

.bt-layout.oakstone-shell.oakstone-theme-compact {
    --oakstone-sidebar-expanded-width: 224px;
    --oakstone-sidebar-collapsed-width: 60px;
    --oakstone-sidebar-track-width: var(--oakstone-sidebar-expanded-width);
    --oakstone-sidebar-rail-width: var(--oakstone-sidebar-expanded-width);
    --oakstone-header-height: 3.95rem;
    --oakstone-content-top-gap: 1rem;
    grid-template-columns: var(--oakstone-sidebar-track-width) minmax(0, 1fr);
    font-size: 0.84rem;
}

.bt-layout.oakstone-shell.oakstone-theme-compact.oakstone-shell-sidebar-collapsed {
    --oakstone-sidebar-track-width: var(--oakstone-sidebar-collapsed-width);
    --oakstone-sidebar-rail-width: var(--oakstone-sidebar-collapsed-width);
}

.oakstone-theme-compact .oakstone-layout-header,
.oakstone-theme-compact .oakstone-topbar {
    min-height: var(--oakstone-header-height);
}

.oakstone-theme-compact .oakstone-topbar {
    gap: 0.5rem;
}

.oakstone-theme-compact .oakstone-workspace-container {
    padding-top: var(--oakstone-content-top-gap);
    padding-bottom: 0.75rem;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}

.oakstone-theme-compact .oakstone-header-module,
.oakstone-theme-compact .workspace-bar-item,
.oakstone-theme-compact .oakstone-header-user {
    font-size: 0.8rem;
}

.oakstone-theme-compact .oakstone-sidebar-toggle,
.oakstone-theme-compact .oakstone-user-toggle {
    min-height: 1.9rem !important;
    padding: 0.25rem 0.45rem !important;
}

.oakstone-theme-compact .oakstone-sidebar-toggle {
    width: 1.9rem !important;
    height: 1.9rem !important;
    margin-right: 0.42rem !important;
}

.oakstone-theme-compact .workspace-chip {
    gap: 0.45rem !important;
    min-width: 13rem !important;
    min-height: 2rem !important;
    padding: 0.25rem 0.5rem !important;
}

.oakstone-theme-compact .workspace-chip-icon {
    width: 1.45rem !important;
    height: 1.45rem !important;
}

.oakstone-theme-compact .workspace-chip-company {
    font-size: 0.8rem !important;
}

.oakstone-theme-compact .workspace-chip-counter,
.oakstone-theme-compact .oakstone-brand-subtitle {
    font-size: 0.66rem !important;
}

.oakstone-theme-compact .oakstone-topbar .dropdown-menu {
    min-width: 11rem;
    padding: 0.2rem;
}

.oakstone-theme-compact .oakstone-topbar .dropdown-item {
    min-height: 1.75rem;
    padding: 0.32rem 0.45rem;
    font-size: 0.78rem;
}

.oakstone-user-menu-section {
    padding: 0.3rem 0.45rem 0.1rem;
    color: var(--oakstone-text-muted);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

.oakstone-theme-menu-item {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.oakstone-theme-menu-item.active {
    color: #174a73;
    background: #eef6ff;
    font-weight: 700;
}

.oakstone-theme-compact .oakstone-side-menu-brand {
    padding: 0.55rem 0.55rem 0.3rem;
}

.oakstone-theme-compact .oakstone-brand-link {
    gap: 0.55rem;
    padding: 0.2rem;
}

.oakstone-theme-compact .oakstone-brand-mark {
    width: 1.85rem;
    height: 1.85rem;
}

.oakstone-theme-compact .oakstone-brand-title {
    font-size: 0.84rem;
}

.oakstone-theme-compact .oakstone-side-menu-items {
    padding: 0 0.42rem 0.6rem;
}

.oakstone-theme-compact .oakstone-side-menu-item {
    margin-bottom: 0.12rem;
}

.oakstone-theme-compact .oakstone-side-menu .oakstone-side-menu-link,
.oakstone-theme-compact .oakstone-side-menu .oakstone-side-menu-toggle {
    gap: 0.5rem;
    min-height: 2.05rem;
    padding: 0.38rem 0.48rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
}

.oakstone-theme-compact .oakstone-menu-icon {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.45rem;
}

.oakstone-theme-compact .oakstone-side-menu .dropdown-menu {
    gap: 0.05rem;
    margin: 0.12rem 0 0.28rem 2rem;
}

.oakstone-theme-compact .oakstone-side-menu .oakstone-side-menu-subitem {
    gap: 0.38rem;
    padding: 0.24rem 0.12rem;
    font-size: 0.74rem;
}

.oakstone-theme-compact .bt-row {
    margin-right: -0.25rem;
    margin-left: -0.25rem;
}

.oakstone-theme-compact .bt-column {
    padding-right: 0.25rem;
    padding-left: 0.25rem;
}

.oakstone-theme-compact .bt-card {
    margin-bottom: 0.48rem;
    border-radius: 0.35rem;
    box-shadow: 0 4px 12px rgba(31, 41, 51, 0.035);
}

.oakstone-theme-compact .bt-card-header {
    gap: 0.5rem;
    padding: 0.45rem 0.55rem;
}

.oakstone-theme-compact .bt-card-header-sticky {
    top: 0.35rem;
}

.oakstone-theme-compact .bt-card-header h2 {
    font-size: 0.98rem;
}

.oakstone-theme-compact .bt-card-header .bt-heading-is6 {
    margin-top: 0.1rem;
    font-size: 0.76rem;
}

.oakstone-theme-compact .bt-card-body {
    padding: 0.52rem;
}

.oakstone-theme-compact .bt-field {
    margin-bottom: 0.38rem;
}

.oakstone-theme-compact .bt-field-horizontal {
    grid-template-columns: minmax(7rem, 25%) minmax(0, 1fr);
    gap: 0.35rem;
}

.oakstone-theme-compact .bt-field-label,
.oakstone-theme-compact .bt-input-field-label,
.oakstone-theme-compact label,
.oakstone-theme-compact .label {
    padding-top: 0.18rem;
    font-size: 0.76rem;
    line-height: 1.15;
}

.oakstone-theme-compact .bt-input,
.oakstone-theme-compact .bt-field-body input,
.oakstone-theme-compact .bt-field-body select,
.oakstone-theme-compact .bt-field-body textarea,
.oakstone-theme-compact .form-control,
.oakstone-theme-compact .form-select {
    min-height: 1.75rem;
    padding: 0.2rem 0.38rem;
    border-radius: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.2;
}

.oakstone-theme-compact textarea.bt-input,
.oakstone-theme-compact .bt-field-body textarea {
    min-height: 3rem;
}

.oakstone-theme-compact .bt-validation-message,
.oakstone-theme-compact .validation-message {
    margin-top: 0.12rem;
    font-size: 0.7rem;
}

.oakstone-theme-compact .bt-compat-buttons {
    gap: 0.25rem;
}

.oakstone-theme-compact .bt-compat-button {
    min-height: 1.75rem;
    gap: 0.25rem;
    padding: 0.2rem 0.48rem;
    border-radius: 0.25rem;
    font-size: 0.76rem;
}

.oakstone-theme-compact .bt-close-button.bt-compat-button {
    width: 1.75rem;
    min-width: 1.75rem;
    height: 1.75rem;
}

.oakstone-theme-compact .bt-tabs-content {
    padding-top: 0.42rem;
}

.oakstone-theme-compact .bt-tab {
    min-height: 1.85rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.76rem;
}

.oakstone-theme-compact .bt-radio-group {
    gap: 0.35rem;
    row-gap: 0.22rem;
}

.oakstone-theme-compact .bt-check,
.oakstone-theme-compact .bt-radio {
    gap: 0.3rem;
    min-height: 1.2rem;
    font-size: 0.76rem;
}

.oakstone-theme-compact .bt-check input[type="checkbox"],
.oakstone-theme-compact .bt-radio input[type="radio"],
.oakstone-theme-compact .bt-field-body .bt-check input[type="checkbox"],
.oakstone-theme-compact .bt-field-body .bt-radio input[type="radio"] {
    width: 0.86rem;
    max-width: 0.86rem;
    height: 0.86rem;
    min-height: 0.86rem;
}

.oakstone-theme-compact .bt-table th,
.oakstone-theme-compact .bt-table td,
.oakstone-theme-compact table th,
.oakstone-theme-compact table td {
    padding: 0.3rem 0.42rem;
    font-size: 0.76rem;
    line-height: 1.2;
}

.oakstone-theme-compact .bt-table th,
.oakstone-theme-compact table th {
    font-size: 0.68rem;
}

.oakstone-theme-compact .bt-pager {
    gap: 0.28rem;
    padding: 0.45rem 0 0;
}

.oakstone-theme-compact .bt-pager .bt-compat-button {
    min-width: 5.2rem;
}

.oakstone-theme-compact .bt-pager-status {
    min-height: 1.75rem;
    padding: 0 0.3rem;
    font-size: 0.74rem;
}

.oakstone-theme-compact .bt-autocomplete-menu {
    max-height: 12rem;
    padding: 0.15rem;
    border-radius: 0.25rem;
}

.oakstone-theme-compact .bt-autocomplete-option,
.oakstone-theme-compact .bt-autocomplete-empty {
    padding: 0.28rem 0.38rem;
    font-size: 0.76rem;
}

.oakstone-theme-compact .bt-modal {
    padding: 0.5rem;
}

.oakstone-theme-compact .bt-modal-content {
    max-height: calc(100vh - 1rem);
    border-radius: 0.35rem;
}

.oakstone-theme-compact .bt-modal-header,
.oakstone-theme-compact .bt-modal-footer,
.oakstone-theme-compact .bt-modal-body {
    padding: 0.55rem;
}

.oakstone-theme-compact .bt-modal-title {
    font-size: 0.96rem;
}

@media screen {
    .oakstone-theme-compact .report-enterprise-filter-bar,
    .oakstone-theme-compact .gl-enterprise-filter-bar,
    .oakstone-theme-compact .report-enterprise-filter-grid,
    .oakstone-theme-compact .report-enterprise-action-bar,
    .oakstone-theme-compact .gl-enterprise-action-bar {
        gap: 0.42rem;
        row-gap: 0.38rem;
    }

    .oakstone-theme-compact .report-enterprise-header,
    .oakstone-theme-compact .report-enterprise-section-header,
    .oakstone-theme-compact .report-enterprise-subsection-header {
        gap: 0.55rem;
        padding-bottom: 0.55rem;
        margin-bottom: 0.55rem;
    }

    .oakstone-theme-compact .report-enterprise-header h3 {
        font-size: 0.96rem;
    }

    .oakstone-theme-compact .report-enterprise-header p,
    .oakstone-theme-compact .report-enterprise-section-header p,
    .oakstone-theme-compact .report-enterprise-subsection-header p,
    .oakstone-theme-compact .report-enterprise-inline-metrics {
        font-size: 0.76rem;
    }

    .oakstone-theme-compact .report-enterprise-kicker,
    .oakstone-theme-compact .report-enterprise-header-meta span,
    .oakstone-theme-compact .report-enterprise-kpi span,
    .oakstone-theme-compact .report-enterprise-kpi .report-summary-label,
    .oakstone-theme-compact .report-enterprise-section-meta span {
        font-size: 0.64rem;
    }

    .oakstone-theme-compact .report-enterprise-header-meta,
    .oakstone-theme-compact .report-enterprise-section-meta,
    .oakstone-theme-compact .report-enterprise-kpi-strip,
    .oakstone-theme-compact .report-enterprise-mini-kpis {
        gap: 0.4rem;
    }

    .oakstone-theme-compact .report-enterprise-header-meta > div,
    .oakstone-theme-compact .report-enterprise-kpi,
    .oakstone-theme-compact .report-enterprise-section-meta > div,
    .oakstone-theme-compact .report-enterprise-disclosure-item {
        padding: 0.45rem 0.55rem;
        border-radius: 0.35rem;
    }

    .oakstone-theme-compact .report-enterprise-header-meta strong,
    .oakstone-theme-compact .report-enterprise-kpi strong,
    .oakstone-theme-compact .report-enterprise-kpi .report-summary-value,
    .oakstone-theme-compact .report-enterprise-section-meta strong {
        margin-top: 0.16rem;
        font-size: 0.84rem;
    }

    .oakstone-theme-compact .report-enterprise-section {
        margin-top: 0.5rem;
        border-radius: 0.45rem;
    }

    .oakstone-theme-compact .report-enterprise-section-header {
        padding: 0.52rem 0.6rem;
    }

    .oakstone-theme-compact .report-enterprise-section-body {
        padding: 0.55rem;
    }

    .oakstone-theme-compact .report-enterprise-subsection + .report-enterprise-subsection {
        margin-top: 0.55rem;
        padding-top: 0.55rem;
    }

    .oakstone-theme-compact .report-enterprise-status-banner {
        gap: 0.4rem;
        margin-bottom: 0.55rem;
        padding: 0.45rem 0.55rem;
        border-radius: 0.45rem;
        font-size: 0.76rem;
    }

    .oakstone-theme-compact .report-enterprise-status-list {
        gap: 0.25rem;
    }

    .oakstone-theme-compact .report-enterprise-status-item {
        padding: 0.18rem 0.42rem;
        font-size: 0.7rem;
    }

    .oakstone-theme-compact .report-enterprise-table thead th,
    .oakstone-theme-compact .report-enterprise-statement-table thead th {
        font-size: 0.66rem;
    }

    .oakstone-theme-compact .report-enterprise-table tbody td,
    .oakstone-theme-compact .report-enterprise-table tfoot td,
    .oakstone-theme-compact .report-enterprise-statement-table tbody td,
    .oakstone-theme-compact .report-enterprise-statement-table tfoot td {
        padding-top: 0.28rem;
        padding-bottom: 0.28rem;
    }
}

@media (max-width: 991.98px) {
    .bt-layout.oakstone-shell.oakstone-theme-compact {
        --oakstone-sidebar-track-width: 100%;
        --oakstone-sidebar-rail-width: 100%;
        grid-template-columns: 1fr;
    }

    .bt-layout.oakstone-shell.oakstone-theme-compact.oakstone-shell-sidebar-collapsed {
        --oakstone-sidebar-track-width: 100%;
        --oakstone-sidebar-rail-width: 100%;
    }

    .oakstone-theme-compact > .bt-layout-sider {
        width: 100%;
    }

    .oakstone-theme-compact .oakstone-side-menu-header {
        height: 3.25rem;
        min-height: 3.25rem;
        padding: 0 0.55rem;
    }

    .oakstone-theme-compact .oakstone-side-menu .oakstone-side-menu-items {
        max-height: calc(100dvh - 3.25rem);
        padding: 0.35rem 0.45rem 0.6rem;
    }
}
