/* Equipo composition. Shared controls, cards, tables and status own their styling. */
.ws-team-workspace,.ws-team-detail .erp-printable{display:grid;gap:var(--ws-space-5);min-width:0}
.ws-team-workspace>.page-heading{margin-bottom:0}
.ws-team-filters{margin-bottom:var(--ws-space-3)}
.ws-team-basis{margin:0;font:var(--ws-type-small);color:var(--ws-color-muted)}
.ws-team-workspace .ws-surface>.ws-team-basis{margin-block:var(--ws-space-3)}
.ws-team-link,.ws-team-back{display:inline-flex;align-items:center;gap:var(--ws-space-2);min-height:var(--ws-control-height)}
.ws-team-back{justify-self:start}
.ws-team-row-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--ws-space-2);min-width:11rem}
.ws-team-more{display:flex;justify-content:center;margin-top:var(--ws-space-4)}
.ws-team-workspace .ws-table small{display:block;color:var(--ws-color-muted);font:var(--ws-type-small);margin-top:var(--ws-space-1)}
.ws-team-workspace .ws-table td:first-child{min-width:9rem}
.ws-team-workspace .ws-actions{flex-wrap:wrap}
.ws-team-workspace .ws-status{white-space:normal}
.ws-team-workspace .ws-table .ws-actions{min-width:10rem;align-items:flex-start}
@media(max-width:760px){.ws-team-workspace .ws-table-region{max-width:100%}.ws-team-row-actions{min-width:9rem}}
@media print{body.erp-printing .erp-page>.ws-team-detail{display:block!important}body.erp-printing .erp-page>.ws-team-detail>:not(.erp-printable){display:none!important}.ws-team-detail .erp-printable{display:block!important}.ws-team-detail .ws-table-region{overflow:visible!important}.ws-team-detail .ws-table-region[aria-label="Historial de liquidaciones"] :is(th,td):last-child{display:none}.ws-team-detail .ws-table tr,.ws-team-detail .ws-alert,.ws-team-detail .ws-metric-card,.ws-team-detail .ws-detail-card{break-inside:avoid}}
/* Option A: the directory is the wide work; pending settlements/advances sit beside it. */
.ws-team-workspace .ws-surface--flush #erp-count-team:empty{display:none}
.ws-team-workspace .ws-surface--flush #erp-count-team{padding:0 0 var(--ws-space-3)}
.ws-team-none{color:var(--ws-color-muted)}
.ws-team-history{display:grid;gap:var(--ws-space-2);min-width:0}
.ws-team-history>.ws-team-basis{margin:0}
.ws-team-workspace .ws-table .ws-team-link{min-height:0}
.ws-team-workspace .ws-table td>small{margin-top:0}
@media(max-width:760px),(pointer:coarse){.ws-team-workspace .ws-table .ws-team-link{min-height:44px}}
.ws-team-workspace .ws-pending .ws-actions{min-width:0}
.ws-team-workspace .ws-pending-detail .ws-actions{flex-wrap:nowrap}
