/* ServerPACS v701: mesa de trabajo profesional, compacta y sin solapamientos. */
.table-box{padding:8px!important;overflow:hidden}
.table-box>.toolbar{gap:6px!important;padding:2px 0 6px!important;align-items:center!important}
.table-box .toolbar-left,.table-box .bulk-actions,.table-box .pager{gap:5px!important}
.table-box .selection-summary{font-size:11px;line-height:1.2}
.table-box .page-numbers{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;min-width:0}
.table-box .page-numbers button,.table-box .page-numbers .page-gap{min-width:30px;min-height:30px;padding:3px 6px;border-radius:7px;font-size:10px;display:grid;place-items:center}
.table-box .page-numbers .page-gap{min-width:18px}
.sp-table-quick-actions{position:static!important;inset:auto!important;z-index:auto!important;display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap;width:100%;max-width:none!important;padding:5px 0 7px;border-top:1px solid rgba(71,85,105,.55);pointer-events:auto}
.sp-table-quick-actions>*{position:static!important;inset:auto!important;transform:none!important;margin:0!important;max-width:none!important;pointer-events:auto}
.sp-table-quick-actions button{min-height:30px!important;padding:4px 8px!important;border-radius:7px!important;font-size:10px!important;line-height:1.1!important}
.sp-table-quick-actions #sp-proxy-cancel-panel{padding:3px 4px!important;gap:5px!important;border-radius:8px!important;box-shadow:none!important}
.sp-table-quick-actions .sp-proxy-cancel-title{font-size:10px!important}

@media(min-width:901px){
  body.compact .table-box button,body.ultra .table-box button{min-height:30px;padding:4px 8px;font-size:10px;line-height:1.1;border-radius:7px}
  body.compact .table-box select,body.ultra .table-box select{min-height:30px;padding:3px 24px 3px 7px;font-size:10px}
  #studiesTable{width:100%;min-width:1040px;table-layout:fixed;border-collapse:collapse}
  #studiesTable th,#studiesTable td{height:auto!important;padding:5px 6px!important;font-size:10px!important;line-height:1.18!important;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #studiesTable th{height:32px!important;font-size:9px!important;letter-spacing:.01em}
  #studiesTable td[data-col="patient_name"]{font-weight:600}
  #studiesTable th[data-col="select"],#studiesTable td[data-col="select"]{width:34px;text-align:center}
  #studiesTable th[data-col="patient_name"],#studiesTable td[data-col="patient_name"]{width:19%}
  #studiesTable th[data-col="patient_id"],#studiesTable td[data-col="patient_id"]{width:7%}
  #studiesTable th[data-col="accession_number"],#studiesTable td[data-col="accession_number"]{width:9%}
  #studiesTable th[data-col="study_date"],#studiesTable td[data-col="study_date"]{width:7%}
  #studiesTable th[data-col="study_time"],#studiesTable td[data-col="study_time"]{width:5%}
  #studiesTable th[data-col="modality"],#studiesTable td[data-col="modality"]{width:6%}
  #studiesTable th[data-col="num_series"],#studiesTable td[data-col="num_series"]{width:4%}
  #studiesTable th[data-col="num_instances"],#studiesTable td[data-col="num_instances"]{width:5%}
  #studiesTable th[data-col="updated_at"],#studiesTable td[data-col="updated_at"]{width:10%}
  #studiesTable th[data-col="compression"],#studiesTable td[data-col="compression"]{width:10%}
  #studiesTable th[data-col="actions"],#studiesTable td[data-col="actions"]{width:17%;white-space:nowrap}
  #studiesTable td[data-col="actions"] button{min-height:28px!important;padding:3px 6px!important;margin:0 2px 0 0!important;font-size:9px!important;border-radius:6px!important}
  #studiesTable input[type="checkbox"]{width:14px;height:14px;min-height:0!important;margin:0}
  .tablewrap{max-height:calc(100dvh - 280px);scrollbar-gutter:stable}
}

@media(max-width:900px){
  .table-box{padding:6px!important}
  .sp-table-quick-actions{justify-content:stretch;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .sp-table-quick-actions>*{width:100%!important;min-width:0!important}
  .sp-table-quick-actions button{min-height:44px!important;font-size:12px!important}
  .sp-table-quick-actions #sp-proxy-cancel-panel{grid-column:1/-1;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .sp-table-quick-actions .sp-proxy-cancel-title{grid-column:1/-1;text-align:center}
}
@media(max-width:480px){.sp-table-quick-actions{grid-template-columns:1fr}}
