/* Shared data tables. Document layout tables retain their own styles. */
@media screen {
/* Operational tables must scroll inside their own card.  Wide data stays
   readable instead of escaping the page or being clipped by an ancestor. */
body :is(.smart-table-scroll,.table-wrap,.glass-table-wrap,.wide-table,.reg-table-wrap-v3253,.gs-table-wrap,.perm-table-wrap,.sub-table-wrap,.inline360-tablewrap,.recent-table-wrap-v410,.inspection-table,.p52-table,.sp-table-wrap){position:relative;min-width:0;max-width:100%;overflow-x:auto!important;overflow-y:auto;overscroll-behavior-inline:contain;scrollbar-gutter:stable both-edges;-webkit-overflow-scrolling:touch;scrollbar-color:#91abc0 #edf3f7;scrollbar-width:auto}
body :is(.smart-table-scroll,.table-wrap,.glass-table-wrap,.wide-table,.reg-table-wrap-v3253,.gs-table-wrap,.perm-table-wrap,.sub-table-wrap,.inline360-tablewrap,.recent-table-wrap-v410,.inspection-table,.p52-table,.sp-table-wrap)>table{width:max-content;min-width:100%}
body :is(.smart-table-scroll,.table-wrap,.glass-table-wrap,.wide-table,.reg-table-wrap-v3253,.gs-table-wrap,.perm-table-wrap,.sub-table-wrap,.inline360-tablewrap,.recent-table-wrap-v410,.inspection-table,.p52-table,.sp-table-wrap)::-webkit-scrollbar{height:12px}
body :is(.smart-table-scroll,.table-wrap,.glass-table-wrap,.wide-table,.reg-table-wrap-v3253,.gs-table-wrap,.perm-table-wrap,.sub-table-wrap,.inline360-tablewrap,.recent-table-wrap-v410,.inspection-table,.p52-table,.sp-table-wrap)::-webkit-scrollbar-track{background:#edf3f7;border-radius:999px}
body :is(.smart-table-scroll,.table-wrap,.glass-table-wrap,.wide-table,.reg-table-wrap-v3253,.gs-table-wrap,.perm-table-wrap,.sub-table-wrap,.inline360-tablewrap,.recent-table-wrap-v410,.inspection-table,.p52-table,.sp-table-wrap)::-webkit-scrollbar-thumb{min-width:48px;background:#91abc0;border:3px solid #edf3f7;border-radius:999px}
body .smart-table-scroll{border-radius:10px}
body table.smart-table{border-collapse:collapse;font-size:13px;line-height:1.4}
body table.smart-table>thead>tr>th{background:#eef5fa;color:#31566e;padding:8px 7px;vertical-align:middle;white-space:nowrap;overflow-wrap:normal}
body table.smart-table>tbody>tr>td{padding:8px 7px;vertical-align:middle;border-bottom:1px solid #e5edf2;line-height:1.4}
body table.smart-table>tbody>tr:hover>td{background-color:#f8fbfe}
body table.smart-table .smart-th-inner{gap:3px;min-width:max-content}
body table.smart-table .smart-sort-btn{gap:3px;font-size:12px;white-space:nowrap;flex:none}
body table.smart-table .smart-th-text{white-space:nowrap;overflow:visible;text-overflow:clip;overflow-wrap:normal}
body table.smart-table .smart-sort-icon{font-size:9px;min-width:9px}
body table.smart-table .smart-filter-btn{width:16px;min-width:16px;height:22px;padding:0;flex:none;font-size:9px}
body table.smart-table td :is(.row-actions,.actions,.action-buttons,.reg-actions-v3253,.table-actions,.btn-group){display:flex;flex-flow:row nowrap;align-items:center;gap:5px;width:max-content;max-width:none}
body table.smart-table td :is(a.btn,button,.mini-action,.reg-actions-v3253 a,.actions a,.row-actions a,.action-buttons a,.table-actions a){display:inline-flex;align-items:center;justify-content:center;gap:4px;flex-shrink:0;min-height:30px;box-sizing:border-box;padding:5px 8px;border-radius:7px;font-size:12px;line-height:1.2;white-space:nowrap;overflow-wrap:normal}
body table.smart-table td :is(.row-actions,.actions,.action-buttons,.reg-actions-v3253,.table-actions,.btn-group)>form{margin:0;flex-shrink:0}
body table.smart-table td :is(a.btn,button,.mini-action,.reg-actions-v3253 a) .ui-icon{width:14px;height:14px;flex:none}
}

@media(max-width:768px){
  body .smart-table-toolbar{gap:8px;margin-bottom:6px}
  body .smart-table-counter{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body table.smart-table{font-size:12px}
  body table.smart-table>thead>tr>th,body table.smart-table>tbody>tr>td{padding:8px 9px}
}

