/* Compact client rows for the staff panel. Keep the existing fields and actions. */
.bs-workspace body.management .workspace-heading{margin-bottom:18px;gap:14px}
.bs-workspace body.management .workspace-heading h1{font-size:28px;margin-top:6px}
.bs-workspace body.management .filters{padding-bottom:12px;gap:4px}
.bs-workspace body.management .filters button{padding:9px 10px}
.bs-workspace body.management .list-toolbar{margin:14px 0;gap:12px}
.bs-workspace body.management #workspace th{padding:10px 8px}
.bs-workspace body.management #workspace td{padding:6px 8px;height:40px;white-space:nowrap;line-height:1.3}
.bs-workspace body.management #workspace th:first-child{width:166px}
.bs-workspace body.management #workspace .row-actions{white-space:nowrap}
.bs-workspace body.management #workspace .row-actions button{display:inline-block;vertical-align:middle;min-height:28px;padding:5px 4px;margin:0 1px 0 0;font-size:10px;line-height:18px;border:1px solid #e1e5eb;border-radius:5px}
.bs-workspace body.management #workspace .row-actions button:hover{background:#edf1f7;border-color:#bac8da}
.bs-workspace body.management #workspace .client-name strong{display:inline;font-size:12px;line-height:inherit}
.bs-workspace body.management #workspace .badge{padding:4px 6px;line-height:16px}
@media(max-width:700px){
 .bs-workspace body.management .workspace-heading{gap:12px;margin-bottom:16px}
 .bs-workspace body.management #workspace th,.bs-workspace body.management #workspace td{padding-left:5px;padding-right:5px}
 .bs-workspace body.management #workspace th:first-child{width:150px}
 .bs-workspace body.management #workspace th:nth-child(2){width:82px}
 .bs-workspace body.management #workspace .row-actions button{min-height:32px;padding:6px 3px}
 .bs-workspace body.management #workspace .client-name small{display:inline;font-size:10px;margin:0;line-height:inherit}
 .bs-workspace body.management #workspace .client-name small:before{content:' · '}
 .bs-workspace body.management #workspace .client-name strong{font-size:11px}
 .bs-workspace body.management #workspace .badge{padding:4px;font-size:9px}
}
/* Let short columns fit their content; give long contact fields the spare room. */
.bs-workspace body.management #workspace .table-wrap{overflow:visible}
.bs-workspace body.management #workspace table{table-layout:auto}
.bs-workspace body.management #workspace :is(th,td){display:table-cell;padding-left:6px;padding-right:6px}
.bs-workspace body.management #workspace th{width:1%}
.bs-workspace body.management #workspace th:nth-child(1){width:1%}
.bs-workspace body.management #workspace th:nth-child(5){width:25%}
.bs-workspace body.management #workspace th:nth-child(6){width:30%}
.bs-workspace body.management #workspace th:nth-child(7){width:45%}
.bs-workspace body.management #workspace th:nth-child(10){width:1%}
.bs-workspace body.management #workspace td{font-size:11px;position:relative;overflow:visible}
.bs-workspace body.management #workspace td:is(:nth-child(5),:nth-child(6),:nth-child(7),:nth-child(10)){max-width:0}
.bs-workspace body.management #workspace td:nth-child(10){min-width:0;max-width:none}
.bs-workspace body.management #workspace td:last-child{text-align:left;font-variant-numeric:tabular-nums}
.bs-workspace body.management #workspace .cell-value{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4}
.bs-workspace body.management #workspace .badge{display:inline-block;max-width:154px}
.bs-workspace body.management #workspace .row-actions button{width:26px;font-size:0;padding:0}
.bs-workspace body.management #workspace .row-actions button:before{font-size:15px}
.bs-workspace body.management #workspace .row-actions .receipt-download:before{content:none}
.bs-workspace body.management #workspace .row-actions .state-action:before{content:none}
.bs-workspace body.management #workspace .row-actions .danger-link:before{content:'×'}
@media(max-width:1150px){
 .bs-workspace body.management #workspace :is(th,td):is(:nth-child(5),:nth-child(6)){display:none}
 .bs-workspace body.management #workspace th:nth-child(7){width:100%}
 .bs-workspace body.management #workspace th:nth-child(10){width:1%}
 .bs-workspace body.management #workspace .badge{max-width:125px}
}
@media(max-width:700px){
 .bs-workspace body.management #workspace table{table-layout:fixed}
 .bs-workspace body.management #workspace :is(th,td):is(:nth-child(3),:nth-child(4),:nth-child(8),:nth-child(9),:nth-child(10)){display:none}
 .bs-workspace body.management #workspace th:nth-child(1){width:99px}
 .bs-workspace body.management #workspace th:nth-child(2){width:83px}
 .bs-workspace body.management #workspace th:nth-child(7){width:auto}
 .bs-workspace body.management #workspace th:nth-child(11){width:62px}
 .bs-workspace body.management #workspace .row-actions button{width:28px}
}

.bs-workspace body.management #workspace .client-name .cell-value{display:block;font-size:inherit}
.bs-workspace body.management #workspace .client-name small{display:none}
@media(max-width:700px){.bs-workspace body.management #workspace .badge{max-width:100%}}

/* Consistent cell spacing; a full name may wrap but is never truncated. */
.bs-workspace body.management #workspace .row-actions .state-action svg{display:block;margin:auto}
.bs-workspace body.management #workspace .client-name .cell-value{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.45}
.bs-workspace body.management #workspace th:last-child{text-align:left}

.bs-workspace body.management #workspace td:nth-child(10) .cell-value{width:max-content;max-width:clamp(145px,22vw,340px);white-space:normal;overflow-wrap:anywhere;overflow:visible}

.intermediary-origin{display:block;font-size:10px;color:#50617b;white-space:normal;line-height:1.3}

.bs-workspace body.management #workspace .client-name-link{display:block;width:100%;min-height:0;text-align:left;border:0;background:transparent;box-shadow:none;padding:0;margin:0;color:inherit;font:inherit;cursor:pointer}.bs-workspace body.management #workspace .client-name-link:hover{text-decoration:underline}.bs-workspace body.management #workspace .client-name-link:focus-visible{outline:2px solid #1b2e4c;outline-offset:3px}

.bs-workspace body.management #workspace .row-actions .receipt-download svg{display:block;margin:auto}
.bs-workspace body.management #workspace th:nth-child(12){width:15%;white-space:normal}
.bs-workspace body.management #workspace td:nth-child(12){min-width:0;max-width:0}
.bs-workspace body.management #workspace td:nth-child(12) .cell-value{white-space:normal;overflow-wrap:anywhere;overflow:visible}
@media(max-width:700px){.bs-workspace body.management #workspace th:nth-child(1){width:94px}.bs-workspace body.management #workspace th:nth-child(2){width:62px}.bs-workspace body.management #workspace th:nth-child(11){width:48px}.bs-workspace body.management #workspace th:nth-child(12){width:82px}}
@media(min-width:1151px){.bs-workspace body.management #workspace th:nth-child(5){width:17%}.bs-workspace body.management #workspace th:nth-child(6){width:23%}.bs-workspace body.management #workspace th:nth-child(7){width:35%}.bs-workspace body.management #workspace th:nth-child(12){width:25%}}
@media(min-width:701px){.bs-workspace body.management #workspace td:nth-child(12){min-width:130px}}
@media(max-width:700px){.bs-workspace body.management #workspace th:nth-child(11){width:60px}.bs-workspace body.management #workspace th:nth-child(12){width:76px}.bs-workspace body.management #workspace td:nth-child(11) .cell-value{white-space:normal;overflow:visible}}
