/* Shared table controls: compact white rail, immediately above records. */
#screen-app .page .clinic-table-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;box-sizing:border-box;width:100%;min-width:0;margin:0 0 0!important;padding:8px 12px!important;min-height:46px;border:1px solid #e3e8ee!important;border-bottom:0!important;border-radius:10px 10px 0 0!important;background:var(--appearance-panel,#fff)!important;box-shadow:none!important}
#screen-app .page .clinic-table-tools[hidden],#screen-app .page .clinic-table-tools-empty{display:none!important}
#screen-app .page .clinic-table-tools .clinic-table-tools-content{width:100%!important;min-width:0;max-width:100%;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
#screen-app .page .clinic-table-tools :is(.management-toolbar-actions,.lab-table-search){gap:8px!important;align-items:center!important;flex-wrap:wrap!important;padding:0!important;overflow:visible!important}
#screen-app .page .clinic-table-tools :is(button:not([id$="-clear"]),.btn-fp,summary,select,input:not([type="hidden"])){box-sizing:border-box;font:500 13px/1.3 Roboto,sans-serif!important;min-height:40px!important;height:40px!important;border-radius:6px!important;box-shadow:none!important}
#screen-app .page .clinic-table-tools :is(button:not([id$="-clear"]),.btn-fp,summary){padding:6px 9px!important;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent!important;background:transparent!important;color:var(--appearance-ink,#475467)!important}
#screen-app .page .clinic-table-tools button:hover,#screen-app .page .clinic-table-tools summary:hover{background:#f1f5f9!important}
#screen-app .page .clinic-table-tools :is(input:not([type="hidden"]),select){padding:5px 9px!important;border:1px solid #e3e8ee!important;background:var(--appearance-panel,#fff)!important;color:var(--appearance-ink,#344054)!important;max-width:100%}
#screen-app .page .clinic-table-tools svg{width:15px;height:15px;flex-shrink:0}
#screen-app .page .clinic-table-tools :is(#patients-search,#os-search-wrap,.lab-table-search input){width:230px!important;flex:0 1 230px!important}
#screen-app .page .clinic-table-tools .lab-table-filters{flex-wrap:wrap!important}
#screen-app .page .clinic-table-tools+.card{border-top-left-radius:0!important;border-top-right-radius:0!important}
#screen-app .page .clinic-table-tools details{position:relative}
#screen-app .page .clinic-table-tools :is(button,input,select,summary):focus-visible{outline:2px solid #1976d2;outline-offset:2px}
@media(max-width:768px){#screen-app .page .clinic-table-tools{padding:8px!important;gap:6px}#screen-app .page .clinic-table-tools :is(#patients-search,#os-search-wrap,.lab-table-search input){width:100%!important;flex:1 1 180px!important}}

#screen-app .page .clinic-table-tools button.is-active{background:#e8f2ff!important;color:#1565a7!important;font-weight:600!important}
#screen-app .page .clinic-table-tools a.btn{min-height:40px;padding:6px 9px;font-size:12px;border:0;background:transparent;box-shadow:none}

#screen-app .page .clinic-table-tools .clinic-table-tools-content{min-height:0!important;height:auto!important}
#screen-app .page .clinic-table-tools :is(#pat-actions,#os-actions,.lab-table-search){min-height:40px!important;height:auto!important}

/* Join tools and records without residual card padding or shell gaps. */
#screen-app #page-lab-orders .clinic-table-tools+.card{padding:0!important;margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}
#screen-app .rad-table-section{display:flex;flex-direction:column;gap:0;min-width:0}
#screen-app .rad-table-section .rad-table-card{margin-top:0!important;border-top-left-radius:0!important;border-top-right-radius:0!important}
#screen-app .clinic-table-tools .clinic-group-control{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font:400 12px Roboto,sans-serif;color:#475467}
#screen-app .clinic-table-tools .clinic-group-control[hidden]{display:none!important}
#screen-app .clinic-table-tools #os-group{display:inline-block!important;width:auto;max-width:170px}

#screen-app #page-service-orders #os-actions #os-group-tools{width:auto!important;min-width:0!important;flex:0 0 auto!important;height:40px!important;padding:0!important;overflow:visible!important;position:static!important}
#screen-app #page-service-orders #os-actions #os-group{position:static!important;width:132px!important;min-width:132px!important;flex:0 0 132px!important;height:40px!important;opacity:1!important;color:var(--appearance-ink,#344054)!important}
