/* Screen-only list chrome. Does not change forms, permissions, report workbooks or print tables. */
@media screen {
body.sandu-admin .sandu-list-pagination,
body.sandu-admin .sandu-list-page-size,
body.sandu-admin .sandu-list-page-links,
body.sandu-admin .sandu-list-page-jump {display:flex;align-items:center;gap:8px;margin:0}
body.sandu-admin .sandu-list-pagination {justify-content:flex-end;flex-wrap:wrap;width:100%;padding:10px 0;color:#606266;font-size:13px;border-top:1px solid #ebeef5;background:#fff}
body.sandu-admin .sandu-grid-pagination .sandu-list-pagination {padding:0;border:0}
body.sandu-admin .sandu-list-total,body.sandu-admin .sandu-list-page-capacity {white-space:nowrap}
body.sandu-admin .sandu-list-page-jump label {display:flex;align-items:center;gap:8px;margin:0;font-weight:400}
body.sandu-admin .sandu-list-pagination select,body.sandu-admin .sandu-list-pagination input,body.sandu-admin .sandu-list-pagination button {height:32px;min-width:0;border:1px solid #dcdfe6;border-radius:3px;background:#fff;color:#606266;font-size:13px;padding:4px 10px;box-sizing:border-box}
body.sandu-admin .sandu-list-pagination select {width:110px}
body.sandu-admin .sandu-list-page-jump input {width:56px;text-align:center;padding:4px}
body.sandu-admin .sandu-list-page-links {gap:4px}
body.sandu-admin .sandu-list-page-links>a,body.sandu-admin .sandu-list-page-links>span {display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:32px;padding:0 6px;border-radius:3px;color:#606266;text-decoration:none}
body.sandu-admin .sandu-list-page-links>a:hover {color:#409eff;background:#ecf5ff}
body.sandu-admin .sandu-list-page-links>.active {background:#409eff;color:#fff}
body.sandu-admin .sandu-list-page-links>.disabled {color:#c0c4cc;background:#f5f7fa}
body.sandu-admin .sandu-list-pagination :focus-visible {outline:2px solid #409eff;outline-offset:2px}
/* Consistent grid chrome, without selecting nested editable form tables. */
body.sandu-admin .dcat-box:has(.sandu-unified-table) {box-shadow:none;border-radius:3px}
body.sandu-admin .sandu-unified-table.table thead th {background:#f8f8f9;color:#606266;font-size:13px;line-height:20px;font-weight:500;vertical-align:middle;padding:8px 10px}
body.sandu-admin .sandu-unified-table.table tbody td {height:50px;box-sizing:border-box;vertical-align:middle;padding:8px 10px;font-size:13px;border-bottom:1px solid #ebeef5}
body.sandu-admin .sandu-unified-table.table tbody tr:nth-child(even) {background:#fafafa}
body.sandu-admin .sandu-unified-table.table tbody tr:hover {background:#f5f7fa}
body.sandu-admin .dcat-box:has(.sandu-unified-table)>.box-footer {padding:10px 14px;border-top:1px solid #ebeef5}
body.sandu-admin .dcat-box:has(.sandu-unified-table) .custom-data-table-header .btn {min-height:32px;border-radius:3px;padding:5px 12px;font-size:13px;box-shadow:none}
body.sandu-admin .dcat-box:has(.sandu-unified-table) .table-fixed-right {background:#fff;box-shadow:-3px 0 8px #00000008}
/* Only pages with an explicit query header move it ahead of their business tools. */
body.sandu-admin .dcat-box:has(.sandu-list-toolbar,.sandu-student-toolbar,.sandu-plan-toolbar,.sandu-refund-query-bar) {display:flex;flex-direction:column}
body.sandu-admin .dcat-box:has(.sandu-list-toolbar,.sandu-student-toolbar,.sandu-plan-toolbar,.sandu-refund-query-bar)>.card-header {order:0;padding:0!important}
body.sandu-admin .dcat-box:has(.sandu-list-toolbar,.sandu-student-toolbar,.sandu-plan-toolbar,.sandu-refund-query-bar)>.custom-data-table-header {order:1;padding:8px 12px;border:0}
body.sandu-admin .dcat-box:has(.sandu-list-toolbar,.sandu-student-toolbar,.sandu-plan-toolbar,.sandu-refund-query-bar)>.filter-box {order:2}
body.sandu-admin .dcat-box:has(.sandu-list-toolbar,.sandu-student-toolbar,.sandu-plan-toolbar,.sandu-refund-query-bar)>.table-wrapper {order:3}
body.sandu-admin .dcat-box:has(.sandu-list-toolbar,.sandu-student-toolbar,.sandu-plan-toolbar,.sandu-refund-query-bar)>.box-footer {order:4}
body.sandu-admin .sandu-list-toolbar,body.sandu-admin .sandu-student-toolbar,body.sandu-admin .sandu-plan-toolbar {padding:10px 12px;gap:8px;background:#f0f3f8}
body.sandu-admin .sandu-list-tabs {gap:0;border:0;margin-bottom:10px;flex-wrap:wrap}
body.sandu-admin .sandu-list-tabs a {padding:5px 12px;height:32px;line-height:20px;border:1px solid #dcdfe6;background:#fff;margin-left:-1px;color:#606266}
body.sandu-admin .sandu-list-tabs a.active {color:white;border-color:#409eff;background:#409eff}
body.sandu-admin .sandu-list-filter button[type=submit],body.sandu-admin .fee-filters button[type=submit],body.sandu-admin .refund-history-filters button[type=submit] {color:#409eff!important;border:1px solid #a0cfff!important;background:#ecf5ff!important}
/* Custom administrative lists: keep their summaries, actions and controller page-size limits. */
body.sandu-admin .fee-card:has(.sandu-list-pagination) {padding:16px;border-radius:3px}
body.sandu-admin .fee-card:has(.sandu-list-pagination)>.d-flex {gap:10px;flex-wrap:wrap}
body.sandu-admin .fee-filters {gap:8px;align-items:center}
body.sandu-admin .fee-filters .form-control {height:32px;font-size:13px;padding:4px 10px;border-radius:3px}
body.sandu-admin .fee-card:has(.sandu-list-pagination) .btn {min-height:32px;font-size:13px;padding:5px 12px;border-radius:3px;box-shadow:none}
body.sandu-admin .fee-table th,body.sandu-admin .sd-stop-list th {background:#f8f8f9;color:#606266;font-weight:500}
body.sandu-admin .fee-table td,body.sandu-admin .sd-stop-list td {height:50px;padding:8px 10px;box-sizing:border-box}
body.sandu-admin .fee-table tbody tr:nth-child(even),body.sandu-admin .sd-stop-list tbody tr:nth-child(even) {background:#fafafa}
/* Existing financial review pagers retain their special controls but share compact square links. */
body.sandu-admin :is(.refund-record-pager,.refund-batch-preview-pager,.refund-batch-detail-pager,.refund-preview-pagination) {display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
body.sandu-admin :is(.refund-record-pager,.refund-batch-preview-pager,.refund-batch-detail-pager,.refund-preview-pagination) .pagination {margin:0;float:none!important}
}
@media screen and (max-width:760px) {
body.sandu-admin .sandu-list-pagination {gap:6px}
body.sandu-admin .sandu-list-page-links {gap:2px}
body.sandu-admin .fee-filters .form-control {max-width:100%;min-width:0}
}
@media screen {
/* Wide lists scroll inside their panel; they must not widen the whole school/sidebar layout. */
body.sandu-admin .dcat-box:has(.sandu-unified-table)>.table-wrapper:not(:has(.tables-container)) {overflow:auto!important;max-height:max(240px,calc(100vh - 280px));min-width:0}
body.sandu-admin .dcat-box:has(.sandu-unified-table)>.table-wrapper:not(:has(.tables-container))>.table {min-width:100%;width:100%}
body.sandu-admin .dcat-box:has(.sandu-unified-table)>.table-wrapper:not(:has(.tables-container))>.table th,
body.sandu-admin .dcat-box:has(.sandu-unified-table)>.table-wrapper:not(:has(.tables-container))>.table td {white-space:nowrap}
body.sandu-admin .dcat-box:has(.sandu-unified-table)>.table-wrapper:not(:has(.tables-container))>.table thead th {position:sticky;top:0;z-index:2}
body.sandu-admin .custom-data-table-header .top>.order-inline-filter {order:-1;flex-basis:100%;margin:0 0 8px}
body.sandu-admin .custom-data-table-header .grid-refresh,
body.sandu-admin .custom-data-table-header .filter-button-group>.btn {background:#fff!important;border-color:#dcdfe6!important;color:#606266!important}
body.sandu-admin .sandu-unified-table .label[style*="#21b978"] {background:#f0f9eb!important;color:#67a33d!important;border:1px solid #e1eed8;font-weight:400}
body.sandu-admin .sandu-unified-table .label[style*="#ea5455"] {background:#fef0f0!important;color:#e46c6c!important;border:1px solid #fde2e2;font-weight:400}
body.sandu-admin .sandu-scroll-menu {top:var(--sandu-menu-top)!important;left:var(--sandu-menu-left)!important;bottom:auto!important;right:auto!important;transform:none!important;margin:0!important;max-height:var(--sandu-menu-height);overflow-y:auto}
}
