/* Lists share their page or dialog scroll area; only horizontal overflow stays local. */
.admin-main .admin-table-scroll,
.admin-main .logbook-records .admin-table-scroll,
#portalModal #portalModalBody .admin-table-scroll{
 max-height:none;height:auto;overflow-x:auto;overflow-y:visible;overscroll-behavior:auto;scrollbar-gutter:auto;
}
.admin-browse-toolbar{position:sticky;top:76px;z-index:6;background:var(--adm-surface,#fff);padding:14px 0 12px;margin-top:-14px;margin-bottom:14px;border-bottom:1px solid var(--adm-line,#e0e7f2);box-shadow:0 8px 10px -10px #1e355947}
.admin-browse-toolbar .admin-card-heading{margin-bottom:12px}.admin-browse-toolbar .history-toolbar{margin-bottom:0}.admin-browse-toolbar .admin-bulk-toolbar{margin:12px 0 0}.admin-browse-toolbar .admin-category-search{margin-bottom:0}.admin-browse-toolbar .history-search{box-sizing:border-box;width:100%}
.admin-modal-toolbar{position:sticky;top:0;z-index:5;background:var(--adm-surface,#fff);padding:0 0 12px;border-bottom:1px solid var(--adm-line,#e0e7f2);margin-bottom:12px}.admin-modal-toolbar .admin-bulk-toolbar{margin:10px 0 0}.admin-modal-toolbar p{margin:8px 0}.admin-modal-toolbar input:not([type=checkbox]){min-width:0;max-width:100%;box-sizing:border-box}.admin-modal-toolbar #sourceProductSearch{width:100%}
/* Sidebar lists can hand the wheel back to the document at either end. */
.admin-navigation,.category-sidebar,.detail-nav-list{overscroll-behavior:auto}
/* The order table scrolls sideways on narrow screens. Let vertical wheel input
   chain to the page when the table itself has no vertical scroll range. */
.history-table-shell,.history-batch-scroll{overscroll-behavior-y:auto}
/* Keep the product search visible while the service list scrolls. */
#catalog .catalog-switcher{position:static;display:flex;justify-content:center;align-items:center;margin:0 0 16px}
#catalog .catalog-switcher .catalog-tabs{margin:0 auto}
#catalog .category-sidebar{top:76px;max-height:calc(100vh - 100px)}
#catalog .catalog-sidebar-head{flex:none;padding:1px 0 4px;margin-bottom:8px;border-bottom:1px solid #e7edf4;background:#fff}
#catalog #catalogGroups{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:auto}
#catalog .catalog-group-search{box-sizing:border-box;width:100%;min-width:0;padding:9px 10px;margin:0 0 9px;border:1px solid #d9e2ed;border-radius:8px;background:#f8fafc;color:#25364a;font-size:12px}
#catalog .catalog-group-search:focus{outline:2px solid #7da9ed;outline-offset:1px}
#catalogGroups button[hidden],#catalogGroupEmpty[hidden]{display:none}
#catalogGroupEmpty{margin:12px 8px;color:#84909d;font-size:12px}
#catalog .catalog-filters{position:sticky;top:76px;z-index:9;padding:10px 0;margin-top:-10px;background:#f6f7f9f5;backdrop-filter:blur(8px);box-shadow:0 12px 16px -17px #20334b66}
#catalog .catalog-filters input{width:100%}
@media(min-width:801px){#catalog .category-sidebar{display:flex;flex-direction:column;overflow:hidden}#catalog .catalog-filters select{display:none!important}}
#catalog .catalog-filters select{display:none}
@media(max-width:800px){#catalog .catalog-filters{top:66px}#catalog .catalog-switcher .catalog-tabs{flex-wrap:nowrap;gap:2px}#catalog .catalog-switcher .catalog-tabs button{white-space:nowrap;padding:9px 13px}#catalog .catalog-filters select{display:block!important}}
@media(max-width:390px){#catalog .catalog-switcher .catalog-tabs button{padding:8px 9px;font-size:11px}}
html[data-theme=dark] #catalog .catalog-filters{background:#101722f5}
html[data-theme=dark] #catalog .catalog-sidebar-head{background:#1a2738}
html[data-theme=dark] #catalog .catalog-sidebar-head{border-bottom-color:#334357}
html[data-theme=dark] #catalog .catalog-group-search{background:#202f42;border-color:#334357;color:#e3edfa}
.order-history-page .history-pagination{justify-content:center;gap:14px;min-height:50px}.order-history-page .history-pagination button{border:1px solid #cbd9f2;background:#edf2ff;color:#3673dc;font-weight:600}.order-history-page .history-pagination button:hover{background:#dfe9ff}
/* Keep order search and both filters below the site header while rows scroll. */
.order-history-page .history-controls{position:sticky;top:76px;z-index:9;padding:10px 0 9px;margin:-10px 0 14px;background:#f6f7f9f5;backdrop-filter:blur(8px);box-shadow:0 12px 16px -17px #20334b66}
.order-history-page .history-controls .history-search{margin-bottom:8px}
.order-history-page .history-controls .history-toolbar{margin-bottom:0;gap:10px}
.order-history-page .history-controls .history-filters{gap:2px;flex-wrap:nowrap}
.order-history-page .history-controls .history-filters>span{margin-right:3px;white-space:nowrap}
.order-history-page .history-controls .history-filters button{padding:8px 10px;font-size:12px;white-space:nowrap}
.order-history-page .history-controls .history-actions{gap:9px;flex-wrap:nowrap}
.history-type-filter{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#65717d;font-size:12px;font-weight:600}
.history-type-filter select{max-width:190px;min-width:158px;padding:8px 29px 8px 10px;border:1px solid #d9e0e8;border-radius:9px;background:#fff;color:#29384a;font:600 12px 'Segoe UI','Microsoft YaHei',sans-serif;cursor:pointer}
.history-type-filter select:focus-visible{outline:2px solid #6190ed;outline-offset:2px}
html[data-theme=dark] .order-history-page .history-controls{background:#101722f5}
html[data-theme=dark] .history-type-filter{color:#a9bacd}
html[data-theme=dark] .history-type-filter select{background:#1a2738;border-color:#334357;color:#e3edfa}
@media(max-width:950px){.order-history-page .history-controls .history-toolbar{align-items:flex-start;flex-direction:column}.order-history-page .history-controls .history-filters{flex-wrap:wrap}.order-history-page .history-controls .history-actions{width:100%;justify-content:space-between}}
@media(max-width:600px){.order-history-page .history-controls .history-filters button{padding:7px 9px;font-size:11px}.order-history-page .history-controls .history-actions{flex-wrap:wrap}.history-type-filter select{min-width:145px}}
@media(max-width:650px){.admin-browse-toolbar{top:66px;padding:10px 0}.admin-browse-toolbar .admin-card-heading p{display:none}.admin-browse-toolbar .admin-card-heading{margin-bottom:8px}.admin-browse-toolbar .history-toolbar{gap:8px}.admin-browse-toolbar .history-filters{display:flex;flex-wrap:wrap;gap:5px}.admin-browse-toolbar .history-filters button{padding:7px 9px;min-height:32px}.admin-modal-toolbar h3{font-size:17px}.admin-modal-toolbar .admin-bulk-toolbar{gap:6px}}

.admin-main .admin-source-info{max-height:none;overflow:visible}
