/* Screen-only: receipts and label dimensions remain independent. */
/* The form sits between the modal content and body, so it must also shrink. */
html body #importModal .modal-dialog { height: calc(100vh - 2rem); height: calc(100dvh - 2rem); margin-block: 1rem; }
html body #importModal .modal-content { display: flex; flex-direction: column; max-height: 100%; overflow: hidden; }
html body #importModal .modal-content > form { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow: hidden; margin: 0; }
html body #importModal .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-gutter: stable; -webkit-overflow-scrolling: touch; }
html body #importModal :is(.modal-header, .modal-footer) { flex: 0 0 auto; }
@media (max-width: 575px) {
    html body #importModal .modal-dialog { height: calc(100vh - 1rem); height: calc(100dvh - 1rem); margin-block: .5rem; }
    html body #importModal .modal-footer { gap: .5rem; }
}
.gmt-local-sort { background: transparent; border: 0; padding: 0; color: inherit; font: inherit; width: 100%; display: flex; align-items: center; gap: 8px; text-align: inherit; cursor: pointer; }
.text-right > .gmt-local-sort, .text-end > .gmt-local-sort { justify-content: flex-end; }
.text-center > .gmt-local-sort { justify-content: center; }
html body.ui-modern {
    --ui-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-family-base: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-family: var(--ui-font) !important;
}
html body .global-listing-page.global-listing-page {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    min-width: 0;
}
html body .global-listing-page.global-listing-page .table-responsive.table-scroll-lock.pro-grid-wrapper {
    height: var(--listing-table-height, 65dvh) !important;
    min-height: 500px !important;
    max-height: var(--listing-table-height, 65dvh) !important;
    overflow: auto !important;
    scrollbar-gutter: stable;
}
html body .global-listing-page.global-listing-page .listing-table tbody tr { height: 44px !important; }
html body .global-listing-page.global-listing-page .listing-table tbody td,
html body .global-listing-page.global-listing-page .listing-table tbody td :is(a, span, div, small) {
    font-size: .9375rem !important;
    line-height: 1.35 !important;
}
html body .global-listing-page.global-listing-page .listing-table tbody td { padding: 5px 10px !important; }
html body .global-listing-page.global-listing-page .listing-table thead th { font-size: .875rem !important; }
.listing-insights { margin-top: 8px; border: 1px solid #dfe6ef; border-radius: 10px; background: var(--ui-surface, #fff); }
.listing-insights > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; color: var(--ui-ink, #17243b); }
.listing-insights > summary:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.listing-insights .bottom-summary-wrapper { margin: 0; padding: 12px; }
@media (max-width: 767px) {
    html body .global-listing-page.global-listing-page .table-responsive.table-scroll-lock.pro-grid-wrapper { min-height: 320px !important; }
    html body .global-listing-page :is(input, select, textarea) { font-size: 1rem !important; }
}
