/* Shared workspace layout. Full client data remains available in Complete view. */
:root{--workspace-ink:#213d49;--workspace-muted:#607480;--workspace-accent:#155e68;--workspace-line:#dce5e9;background:#f4f6f8;color:var(--workspace-ink);font-size:14px}
body>main{max-width:1500px;padding:20px 24px;margin:auto}
body header{margin:0 0 14px;min-height:48px;gap:16px;flex-wrap:wrap}
.brand{display:flex;align-items:baseline;gap:12px}.brand h1{font-size:22px;letter-spacing:-.6px;margin:0}.brand>span{font-size:13px;color:var(--workspace-muted)}
header .connection{margin-left:auto;gap:4px}.header-actions{display:flex;gap:8px}.header-actions button{font-size:12px;padding:7px 10px}
#local-profile-context{margin:0 0 8px;padding:5px 8px;border:0;background:transparent;font-size:12px}
main>p:has(a[href*="/panel/"]){margin:0 0 12px;font-size:12px}
body .panel-tabs{display:flex;gap:24px;border:0;border-bottom:1px solid var(--workspace-line);border-radius:0;padding:0;margin:0 0 20px;background:transparent;position:static}
body .panel-tabs button{flex:0 0 auto;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--workspace-muted);padding:12px 2px;box-shadow:none}
body .panel-tabs button[aria-selected=true]{color:var(--workspace-accent);background:transparent;border-bottom-color:var(--workspace-accent);box-shadow:none}
body .card{border-radius:10px;border-color:var(--workspace-line);padding:20px;margin:16px 0;box-shadow:none}
body button.primary{background:var(--workspace-accent);border-color:var(--workspace-accent)}
body button.primary:hover{background:#104c55}
body .section-head{margin-bottom:16px;gap:12px}.section-head h2{margin-bottom:5px}
button,input,select,textarea{max-width:100%}
button:focus-visible,summary:focus-visible{outline:2px solid #238b94;outline-offset:3px}
summary{cursor:pointer}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.workspace-heading h2{font-size:24px;margin:0}.workspace-heading p{margin:4px 0 0}
.search-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background:white;border:1px solid var(--workspace-line);border-radius:10px;overflow:hidden;margin-bottom:14px}
.search-kpis button{border:0;border-radius:0;text-align:left;padding:14px 18px;background:transparent;white-space:normal}.search-kpis button+button{border-left:1px solid var(--workspace-line)}
.search-kpis strong{display:block;font-size:28px;font-weight:650;font-variant-numeric:tabular-nums;line-height:1.2}.search-kpis span{font-size:12px;color:var(--workspace-muted)}
.search-kpis button:hover{background:#edf5f5}.monitor-alert{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;background:#fff3dd;color:#805315;border-radius:7px;margin-bottom:16px;font-size:13px}.monitor-alert button{border:0;background:transparent;color:inherit;padding:6px 10px}
.remote-search-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
body .remote-search-column{min-width:0;margin:0;padding:14px}.remote-search-column>.section-head{flex-direction:row;align-items:center;margin-bottom:8px}.remote-search-column h2{font-size:16px;line-height:1.3;margin:0}.remote-search-column>.muted{font-size:12px;margin:0 0 10px}
body .remote-jobs-wrap{overflow-x:hidden!important;max-height:60vh!important;scrollbar-gutter:auto!important}
body .data-grid.remote-jobs-table{table-layout:fixed;width:100%;min-width:100%;font-size:13px}
body .remote-jobs-table :is(th,td){border-right:0;padding:9px 6px}
body .remote-jobs-table th{font-size:12px;letter-spacing:0;text-transform:none;background:#f4f7f8;white-space:nowrap}
body .remote-jobs-table th:first-child{width:108px}body .remote-jobs-table th:nth-child(2){width:auto}body .remote-jobs-table th:nth-child(3){width:24%}body .remote-jobs-table th:nth-child(4){width:22%}
body .remote-jobs-table :is(th,td):nth-child(5){display:none}
.remote-jobs-table td{overflow:hidden;text-overflow:ellipsis}.remote-job-value{display:block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
body .remote-job-controls{display:flex;align-items:center;gap:3px;flex-wrap:nowrap}
body .remote-job-controls button,#monitor-queue-items button{min-width:30px;min-height:34px;padding:3px;font:600 14px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body .remote-job-state{font-size:12px;color:var(--workspace-muted)}body .remote-job-state.running,body .remote-job-state.ok{color:#176844}body .remote-job-state.loading{color:#1d6393}body .remote-job-state.attention,body .remote-job-state.offline{color:#9c4141}
body .remote-job-state.paused,body .remote-job-state.queued,body .remote-job-state.pending{color:#89571a}
.remote-jobs-empty td{white-space:normal!important;color:var(--workspace-muted);padding:16px!important;font-size:13px}
#remote-running-title,#remote-pending-title{scroll-margin-top:20px}
.order-shortcut{margin:18px 0}.order-shortcut #quick-order-form{display:flex;gap:8px}.order-shortcut #quick-order-command{flex:1;min-width:0;width:100%}
.order-shortcut .order-favorite-head{display:none}.order-shortcut .order-favorites{display:inline-flex;margin:8px 8px 0 0;gap:6px;flex-wrap:wrap}.order-shortcut .order-favorites:empty{display:none}.order-shortcut .order-favorites button,#schedule-order{padding:6px 10px;font-size:12px;background:transparent;white-space:normal}#schedule-order{margin-top:8px}
.workspace-details{background:#fff;border:1px solid var(--workspace-line);border-radius:10px;margin:14px 0;padding:0 16px}.workspace-details>summary{font-size:14px;font-weight:600;padding:15px 0;color:var(--workspace-ink)}.workspace-details>summary .badge{margin-left:6px}.workspace-details[open]{padding-bottom:16px}.workspace-details .overview-heading{margin:10px 0}.workspace-details .overview-heading h2{font-size:16px}.workspace-details .overview-heading p{display:none}.workspace-details .card{margin:12px 0}
#connection-diagnostics .overview-stats strong{font-size:23px}.workspace-details .order-run{border:0;border-top:1px solid var(--workspace-line);border-radius:0;padding:12px 0}.order-run-head{align-items:flex-start}.order-run-head>strong{font-size:14px}.order-run-head>small{font-size:12px}.order-run-items{font-size:13px}
#order-composer{width:660px;max-width:calc(100vw - 24px);max-height:92dvh;padding:22px;overflow:auto;border-radius:12px}#order-composer .order-center{background:white;margin:0;padding:0}#order-composer .section-head{align-items:center}#order-composer .eyebrow{margin:0 0 5px}#order-composer .section-head h2{font-size:22px}#order-composer .order-actions{margin:14px 0}#order-composer .order-actions button{font-size:13px;padding:10px 6px}#order-composer .order-target{grid-template-columns:1fr 1.5fr}#order-composer .order-quick button{max-width:100%;overflow:hidden;text-overflow:ellipsis}#order-composer .order-schedule{padding:10px;background:#f6f8f9;border:0}#order-composer .order-schedule label{font-size:13px}#order-composer .order-submit{margin-top:14px}
body dialog::backdrop{background:#173e5330}body dialog{border:1px solid var(--workspace-line);box-shadow:0 16px 55px #173e5329}
body #customer-editor,body #remote-job-dialog,body #profile-identity-editor,body #remote-profile-tools{position:fixed;inset:0 0 0 auto;margin:0;width:min(680px,90vw);max-width:none;max-height:100dvh;height:100dvh;border-radius:0;padding:24px;overflow:auto}
body #customer-editor .dialog-actions,body #profile-identity-editor .dialog-actions{position:sticky;bottom:-24px;background:#fff;padding:14px 0;margin-bottom:0;border-top:1px solid var(--workspace-line)}
body #remote-profile-tools{width:min(480px,90vw)}#remote-profile-tools .remote-target{margin:0!important;padding:0!important;background:transparent;border:0;display:grid;gap:14px}#remote-profile-tools .remote-target-actions{display:grid;gap:16px}#remote-profile-tools #remote-view-profiles{width:fit-content}.remote-panel .local-customer-tools{display:none}.remote-panel #customer-status{font-size:12px}
.local-customer-tools{margin:12px 0;color:var(--workspace-muted);font-size:12px}.local-customer-tools>.profile{margin-top:10px}.toolbar-menu{position:relative;align-self:center}.toolbar-menu>summary{padding:9px 12px;border:1px solid #cedce6;border-radius:7px;color:#254c67;font-weight:600;font-size:13px;white-space:nowrap}.toolbar-menu>div{position:absolute;right:0;top:100%;z-index:5;min-width:240px;background:white;border:1px solid var(--workspace-line);border-radius:8px;padding:8px;box-shadow:0 8px 24px #173e531a}.toolbar-menu button{width:100%;font-size:13px;text-align:left}
.category-group-label{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--workspace-muted);align-self:center;padding-right:2px}.status-group-label{border-left:1px solid var(--workspace-line);margin-left:6px;padding-left:14px}
body .customer-categories{display:flex;align-items:center;gap:6px;margin:14px 0 12px}.customer-categories button{padding:7px 10px;white-space:normal;min-height:34px}.customer-toolbar{flex-wrap:wrap;gap:12px}.customer-toolbar label{min-width:0}.customer-toolbar .search-label{min-width:180px;flex:1}.customer-toolbar select{max-width:100%}
body .data-grid.fit-grid{font-size:13px}.data-grid.fit-grid th{font-size:12px;letter-spacing:0;overflow-wrap:normal;white-space:nowrap;background:#f0f4f6;padding:10px 8px;font-weight:600}.data-grid.fit-grid td{padding:9px 8px;border-right:0}.data-grid.fit-grid .client-name-link strong{font-size:13px}.data-grid.fit-grid .client-state{font-size:12px}.data-grid.fit-grid .row-action-result{font-size:11px}.data-grid.fit-grid .row-action-controls{gap:4px}.data-grid.fit-grid .row-action-controls button{min-width:32px;min-height:34px;padding:4px}.data-grid.fit-grid .row-action-menu button{font-size:13px;padding:10px 12px;min-height:40px}.client-context{display:none}
html[data-client-layout=operational] .customers-table colgroup{display:none}
html[data-client-layout=operational] .customers-table :is(th,td):not(:nth-child(1),:nth-child(2),:nth-child(4),:nth-child(5),:nth-child(8),:nth-child(9),:nth-child(14)){display:none}
html[data-client-layout=complete] .customer-table-wrap{overflow-x:auto}html[data-client-layout=complete] .customers-table{min-width:1320px;font-size:12px}html[data-client-layout=complete] .customers-table :is(th,td){display:table-cell;width:auto}html[data-client-layout=complete] .customers-table th{white-space:normal;font-size:12px;overflow-wrap:normal}html[data-client-layout=complete] .customers-table colgroup{display:table-column-group}html[data-client-layout=complete] .customers-table .client-name-link strong{font-size:12px}
.profile-team-row td{padding:0!important;background:#f0f5f6}.profile-team-row button{border:0;background:transparent;text-align:left;width:100%;padding:10px 12px;font-size:13px;color:var(--workspace-ink)}.profile-team-row button span{float:right;color:var(--workspace-muted);font-weight:400}.profile-team-row button:hover{background:#eaf2f3}
body .profiles-table.fit-grid :is(th,td):nth-child(10){display:none}body .profiles-table.fit-grid th:first-child{width:100px}body .profiles-table.fit-grid th:nth-child(2){width:15%}body .profiles-table.fit-grid th:nth-child(3){width:13%}body .profiles-table.fit-grid th:nth-child(5){width:18%}body .profiles-table.fit-grid td strong{font-size:13px}body .profiles-table.fit-grid .badge{font-size:12px;padding:3px 5px}body .profiles-table.fit-grid .profile-row-actions button{min-height:34px;min-width:32px;font-size:14px}body .profiles-table.fit-grid .remote-profile-actions{margin-left:4px}
#view-proxies .stats article{padding:12px 16px}.data-grid td.actions button{min-height:34px}body .data-grid th{border-right:0}.data-grid tbody tr:hover{background:#f7fafb}.data-grid td:first-child{background:inherit}
#message{position:sticky;top:8px;z-index:6;max-width:100%;overflow-wrap:anywhere;background:#edf6f4;border:1px solid #b7dacf;border-radius:8px;padding:12px;color:#1d6050}#message.error{background:#fff0ee;border-color:#e7c4c0;color:#943f36}
.remote-jobs-table td>.remote-job-context,.data-grid td>.client-context{display:none}
html[data-client-layout=complete] .customers-table.fit-grid :is(th,td){display:table-cell!important}
.remote-jobs-table:has(.remote-jobs-empty):not(:has(.remote-job)):not(:has(#monitor-queue-items tr)) thead{display:none}
body .profiles-table.fit-grid th{white-space:normal;overflow:hidden;text-overflow:ellipsis}
@media(min-width:761px) and (max-width:1100px){body .profiles-table.fit-grid th:nth-child(1){width:100px}body .profiles-table.fit-grid th:nth-child(3){width:14%}body .profiles-table.fit-grid th:nth-child(4){width:12%}body .profiles-table.fit-grid th:nth-child(6),body .profiles-table.fit-grid th:nth-child(7){width:8%}}
body .remote-jobs-table:has(.remote-jobs-empty):not(:has(.remote-job)) th:nth-child(2){width:38%}
@media(max-width:1100px){.remote-search-columns{grid-template-columns:1fr}body .remote-jobs-table th:first-child{width:112px}.customer-toolbar .search-label{flex-basis:100%}body .profiles-table.fit-grid :is(th,td):nth-child(n+8){display:none}body .profiles-table.fit-grid th:nth-child(5){width:23%}body .profiles-table.fit-grid th:nth-child(2){width:18%}}
 @media(max-width:760px){
 #customers-section>.section-head p{display:none}.status-group-label{font-size:0;color:transparent}body .customer-categories{gap:5px;margin:10px 0}body .customer-categories button{padding:6px;font-size:11px;min-height:36px}
 body .data-grid td>.client-context{display:block;margin:3px 0 0}
 body .remote-jobs-table td>.remote-job-context{display:block;margin:3px 0 0}
 body>main{padding:12px}body header{margin-bottom:10px;gap:8px}.brand{gap:5px;flex-direction:column}.brand h1{font-size:20px}.brand>span{font-size:12px}header .connection{font-size:12px}.connection small{font-size:11px}.header-actions{gap:5px;margin-left:auto}
 body .panel-tabs{gap:0;justify-content:space-between;margin:0 0 14px;position:static;display:flex;background:transparent}body .panel-tabs button{font-size:12px;padding:12px 3px;min-height:44px;white-space:nowrap;overflow-wrap:normal}
 body .card{padding:14px}.workspace-heading h2{font-size:21px}.workspace-heading .primary{padding:9px 12px;min-height:44px}.workspace-heading p{font-size:11px}.search-kpis button{padding:10px 8px}.search-kpis strong{font-size:24px}.search-kpis span{font-size:11px}.search-kpis{margin-bottom:12px}.monitor-alert{font-size:12px;padding:7px 9px}.monitor-alert button{min-height:40px}
 body .remote-search-column{padding:12px;margin:0}body .remote-search-column h2{font-size:15px}.remote-search-column>.muted{display:none}body .remote-jobs-table th{font-size:11px}body .remote-jobs-table :is(th,td){padding:7px 4px}body .remote-jobs-table th:first-child{width:100px}body .remote-jobs-table th:nth-child(3){width:25%}body .remote-jobs-table th:nth-child(4){width:23%}body .remote-job-controls{gap:2px}body .remote-job-controls button{min-width:30px;min-height:44px;font-size:14px}
 body .section-head{flex-direction:row;flex-wrap:wrap;align-items:center;gap:10px}.customer-head-actions{flex-direction:row;align-items:center;gap:6px}.customer-head-actions>button{width:auto!important;font-size:12px;padding:9px 10px;min-height:44px}.toolbar-menu{font-size:12px}.toolbar-menu>summary{padding:10px;font-size:12px}.customer-categories{display:flex!important}.category-group-label{display:none}.status-group-label{display:block;flex-basis:100%;height:0;border:0;margin:0;padding:0}.customer-categories button{font-size:12px;padding:8px;min-height:40px}
 .customer-toolbar{gap:8px}.customer-toolbar label{flex:1 1 30%;min-width:0;font-size:12px}.customer-toolbar select{width:100%;font-size:13px!important;min-height:44px}.customer-toolbar .search-label{flex-basis:100%}.customer-toolbar input{font-size:16px}.client-list-help{font-size:11px}.customer-table-wrap{max-height:65dvh}
 html[data-client-layout=operational] .customers-table :is(th,td):nth-child(4),html[data-client-layout=operational] .customers-table :is(th,td):nth-child(8){display:none}
 html[data-client-layout=operational] .customers-table :is(th,td):nth-child(5){display:none}html[data-client-layout=operational] .customers-table :is(th,td):nth-child(1){width:88px}html[data-client-layout=operational] .customers-table :is(th,td):nth-child(2){width:25%}html[data-client-layout=operational] .customers-table :is(th,td):nth-child(9){width:auto}
 body .data-grid.fit-grid th{padding:8px 4px;font-size:11px;white-space:normal}body .data-grid.fit-grid td{padding:6px 4px;font-size:12px}body .data-grid.fit-grid .client-name-link{min-height:36px}body .data-grid.fit-grid .client-name-link strong{font-size:13px}.client-context{display:block;font-size:11px;color:var(--workspace-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.client-state{display:none!important}body .data-grid.fit-grid .row-action-controls{gap:3px}body .data-grid.fit-grid .row-action-controls button{min-width:36px;min-height:44px}body .data-grid.fit-grid .row-action-controls>.client-edit-action{display:none}
 body .profiles-table.fit-grid :is(th,td):nth-child(n+6){display:none}body .profiles-table.fit-grid :is(th,td):nth-child(3){display:none}body .profiles-table.fit-grid th:first-child{width:90px}body .profiles-table.fit-grid th:nth-child(2){width:26%}body .profiles-table.fit-grid th:nth-child(4){width:25%}body .profiles-table.fit-grid th:nth-child(5){width:auto}body .profiles-table.fit-grid .profile-row-actions button{min-width:36px;min-height:44px}body .profiles-table.fit-grid .badge{font-size:11px}
 .order-shortcut #quick-order-form{gap:6px}.order-shortcut #quick-order-command{font-size:16px}.order-shortcut #quick-order-form button{padding:8px;font-size:12px}.order-shortcut .order-favorites{display:flex}.order-shortcut .order-favorites button{font-size:12px;min-height:40px}
 body #order-composer{width:calc(100vw - 16px)!important;padding:16px!important;max-width:calc(100vw - 16px)!important;max-height:94dvh}#order-composer .order-target{grid-template-columns:1fr}#order-composer .order-actions{grid-template-columns:repeat(2,1fr)}#order-composer .order-submit{display:flex;flex-wrap:wrap}#order-composer .order-schedule input{font-size:16px!important}
 body #customer-editor,body #remote-job-dialog,body #profile-identity-editor,body #remote-profile-tools{inset:0;margin:0;width:100%!important;max-width:100%!important;height:100dvh;max-height:100dvh;padding:18px!important}.customer-fields{grid-template-columns:1fr!important}.dialog-actions button{min-height:44px}
 #view-proxies .stats{display:grid;grid-template-columns:repeat(3,1fr);overflow:visible}#view-proxies .stats article{padding:10px;font-size:12px;white-space:normal}#view-proxies .stats strong{font-size:18px;margin-left:6px}.bulk-toolbar{flex-wrap:wrap}.bulk-toolbar button{font-size:12px;white-space:normal}
 footer{font-size:11px;padding:16px 0}.remote-panel .local-customer-tools{display:none}
}
@media(max-width:760px){
 body.remote-panel header{display:grid;grid-template-columns:1fr auto;align-items:start}.remote-panel .brand{grid-column:1;grid-row:1/3}.remote-panel header .connection{grid-column:2;width:auto;margin:0}.remote-panel .header-actions{grid-column:2;margin:0;justify-content:flex-end}
 body .remote-jobs-table :is(th,td):nth-child(3){display:none}body .remote-jobs-table th:nth-child(4){width:25%}body .remote-jobs-table th:nth-child(2){width:auto!important}.remote-job-context{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;color:var(--workspace-muted);margin-top:3px}
}
@media(max-width:380px){.brand>span{display:none}body .panel-tabs button{font-size:11px;padding:10px 1px}.search-kpis button{padding:10px 6px}.search-kpis strong{font-size:22px}.search-kpis span{font-size:10px}body .remote-jobs-table th:first-child{width:92px}body .remote-job-controls button{min-width:28px}.header-actions button{padding:7px}.customer-toolbar select{font-size:12px!important}}
@media(min-width:761px) and (max-width:1100px){body .profiles-table.fit-grid th:nth-child(5){width:auto}}

/* Certificate batches share the compact table layout. */
.certificate-toolbar{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:16px}.certificate-toolbar label{flex:1 1 240px;min-width:0}.certificate-toolbar select{width:100%}.certificate-profiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;max-height:280px;overflow:auto}.certificate-profiles label{display:flex;align-items:center;gap:8px;min-width:0}.certificate-profiles input{width:auto}.certificate-table td{white-space:nowrap}#certificate-review-list{max-height:50vh;overflow:auto;padding-left:22px}#certificate-status{overflow-wrap:anywhere}@media(max-width:600px){.certificate-toolbar{align-items:stretch}.certificate-toolbar button{flex:1 1 140px}.certificate-profiles{grid-template-columns:1fr}}

.certificate-toolbar label{display:flex;flex-direction:column;gap:6px}.certificate-toolbar input{width:100%;box-sizing:border-box}#view-certificates .certificate-table{width:100%;min-width:0;table-layout:fixed}#view-certificates .certificate-table :is(th,td){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.certificate-detail{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0;border:0;background:none;color:#17667a;text-align:left;font:inherit;text-decoration:underline}#view-certificates .certificate-table :is(th,td):nth-child(1){width:36px}#view-certificates .certificate-table :is(th,td):nth-child(2){width:18%}#view-certificates .certificate-table :is(th,td):nth-child(3){width:16%}#view-certificates .certificate-table :is(th,td):nth-child(4){width:12%}#view-certificates .certificate-table :is(th,td):nth-child(5){width:10%}#view-certificates .certificate-table :is(th,td):nth-child(6){width:13%}#view-certificates .certificate-table :is(th,td):nth-child(7){width:14%}#view-certificates .certificate-table :is(th,td):nth-child(8){width:14%}.certificate-bulk{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.certificate-table input[type=checkbox]{width:18px;height:18px;margin:0;vertical-align:middle}@media(max-width:600px){#view-certificates .certificate-table :is(th,td){padding:8px 4px;font-size:11px}#view-certificates .certificate-table :is(th,td):nth-child(3),#view-certificates .certificate-table :is(th,td):nth-child(4),#view-certificates .certificate-table :is(th,td):nth-child(5),#view-certificates .certificate-table :is(th,td):nth-child(6){display:none}#view-certificates .certificate-table :is(th,td):nth-child(1){width:28px}#view-certificates .certificate-table :is(th,td):nth-child(2){width:32%}#view-certificates .certificate-table :is(th,td):nth-child(7){width:28%}#view-certificates .certificate-table :is(th,td):nth-child(8){width:30%}}


#certificate-review-list label{display:grid;gap:.35rem;min-width:0}#certificate-review-list select{width:100%;max-width:100%;min-width:0}#certificate-review-list li{margin-bottom:.75rem}

.certificate-profiles label>span{display:flex;flex-direction:column;gap:4px;min-width:0}.certificate-profiles small{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.certificate-profile-busy{opacity:.7}#certificate-review-list label{display:flex;flex-direction:column;gap:6px}

.certificate-profile-table{width:100%;table-layout:fixed}.certificate-profile-table td{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.certificate-profile-table th:nth-child(1){width:15%}.certificate-profile-table th:nth-child(2){width:17%}.certificate-profile-table th:nth-child(3){width:36%}@media(max-width:600px){.certificate-profile-table{font-size:11px}.certificate-profile-table th,.certificate-profile-table td{padding:8px 4px}}

/* Proxy diagnostics keep the shared grid compact; details stay inside the row. */
#view-proxies .stats{grid-template-columns:repeat(auto-fit,minmax(125px,1fr))}
.proxy-quality-table{font-size:12px}.proxy-quality-table td,.proxy-quality-table th{white-space:nowrap}
.proxy-quality-table td small{display:none}.proxy-quality-table td.actions{min-width:90px}
.proxy-row-tools summary{cursor:pointer;padding:8px;border:1px solid #d4e0e6;border-radius:8px;list-style:none}
.proxy-row-tools[open]{min-width:130px}.proxy-row-tools button{display:block;width:100%;margin-top:4px}
.badge.fast,.badge.acceptable{background:#e3f4eb;color:#236a48}.badge.suspect,.badge.slow,.badge.excluded{background:#fff0da;color:#925411}.badge.unavailable{background:#fbe8e8;color:#a43434}.badge.checking{background:#e8eff9;color:#315a90}
.proxy-policy{margin:12px 0;color:var(--workspace-muted);font-size:13px}.proxy-policy summary{cursor:pointer}.proxy-policy p{max-width:1000px}
#proxy-check-progress{font-size:13px}
@media(max-width:760px){.proxy-quality-table th:nth-child(7),.proxy-quality-table td:nth-child(7),.proxy-quality-table th:nth-child(8),.proxy-quality-table td:nth-child(8){display:none}}

body .data-grid.proxy-quality-table{table-layout:fixed;width:100%;min-width:100%}
.proxy-quality-table th{font-size:11px;padding:10px 6px;white-space:normal}
.proxy-quality-table td{overflow:hidden;text-overflow:ellipsis;padding:8px 6px}
.proxy-quality-table th:nth-child(1){width:4%}.proxy-quality-table th:nth-child(2){width:9%}.proxy-quality-table th:nth-child(3){width:21%}.proxy-quality-table th:nth-child(4){width:15%}.proxy-quality-table th:nth-child(5){width:16%}.proxy-quality-table th:nth-child(6){width:11%}.proxy-quality-table th:nth-child(7){width:10%}.proxy-quality-table th:nth-child(8){width:14%}
.proxy-quality-table .badge{max-width:100%;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.proxy-quality-table .proxy-row-tools[open]{min-width:0}.proxy-quality-table .proxy-row-tools button{white-space:normal;font-size:11px;padding:6px 2px}
.proxy-quality-table .proxy-row-tools summary{padding:6px 2px;font-size:11px}
@media(max-width:760px){.proxy-quality-table th:nth-child(1){width:7%}.proxy-quality-table th:nth-child(2){width:15%}.proxy-quality-table th:nth-child(3){width:26%}.proxy-quality-table th:nth-child(4){width:20%}.proxy-quality-table th:nth-child(5){width:17%}.proxy-quality-table th:nth-child(6){width:15%}}

body .data-grid.proxy-quality-table th{font-size:11px;padding:10px 6px;white-space:normal;overflow:hidden;overflow-wrap:anywhere}
body .data-grid.proxy-quality-table td{padding:8px 6px}
@media(max-width:760px){
 body .data-grid.proxy-quality-table th{font-size:10px;padding:8px 3px}
 body .data-grid.proxy-quality-table td{padding:8px 3px}
 .proxy-quality-table th:nth-child(5),.proxy-quality-table td:nth-child(5){display:none}
 .proxy-quality-table th:nth-child(1){width:7%}.proxy-quality-table th:nth-child(2){width:18%}.proxy-quality-table th:nth-child(3){width:31%}.proxy-quality-table th:nth-child(4){width:27%}.proxy-quality-table th:nth-child(6){width:17%}
}

/* Compact search monitor: procedure and origin stay visible on every screen. */
body .remote-search-columns{gap:10px}
body .remote-search-column{padding:10px}
body .remote-search-column>.section-head{margin-bottom:8px}
body .remote-search-column>.muted{display:none}
body .remote-jobs-table :is(th,td){padding:5px 5px;vertical-align:middle}
body .remote-jobs-table th{font-size:10px}
body .remote-jobs-table th:first-child{width:92px}
body .remote-jobs-table th:nth-child(2){width:auto}
body .remote-jobs-table th:nth-child(3){width:23%}
body .remote-jobs-table th:nth-child(4){width:100px}
body .remote-job-controls{gap:2px}
body .remote-job-controls button{min-width:27px;min-height:30px;padding:2px}
body .remote-job-customer{font-size:12px;font-weight:650}
body .remote-jobs-table .search-procedure{display:block;font-size:11px;color:#526771;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.35;margin:2px 0 0}
body .remote-jobs-table .search-profile-cell{font-size:11px}
body .remote-job-state{font-size:11px;line-height:1.3}
.search-origin{display:inline-block;font-size:9px;font-weight:650;line-height:1.5;border-radius:3px;padding:0 4px;margin-top:2px;background:#edf0f3;color:#51606d}
.search-origin.local{background:#e6f2ff;color:#185b93;border:1px solid #c1dcf4}
.remote-job[data-origin=local]>.remote-job-actions{box-shadow:inset 3px 0 #478bc0}
@media(max-width:600px){
 body .remote-search-column{padding:8px}
 body .remote-jobs-table :is(th,td){padding:5px 3px}
 body .remote-jobs-table th:first-child{width:96px}
 body .remote-jobs-table th:nth-child(4){width:89px}
 body .remote-jobs-table th:nth-child(2){width:auto!important}
 body .remote-job-controls button{min-width:29px;min-height:40px}
 body .remote-jobs-table td>.remote-job-context{display:block;font-size:10px;margin:1px 0 0;line-height:1.2}
 body .remote-job-customer{font-size:12px}
}

body .data-grid.remote-jobs-table td>.remote-job-value{display:block;margin:0}
body .data-grid.remote-jobs-table td>.search-origin{display:inline-block;margin:2px 0 0;max-width:100%;overflow:visible}

.certificate-rule-table table{table-layout:fixed}.certificate-rule-table th:nth-child(1){width:27%}.certificate-rule-table th:last-child{width:85px}.certificate-rule-table select{width:100%;min-width:0;font-size:12px;padding:8px 3px}.certificate-rule-table td{padding:5px}.certificate-rule-table button{padding:7px;font-size:12px}

/* Client lists use the same compact row rhythm as the staff panel. */
body .data-grid.customers-table td{padding:4px 8px;height:40px;line-height:1.3}
body .data-grid.customers-table .row-action-controls{gap:3px}
body .data-grid.customers-table .row-action-controls>button{min-width:28px;min-height:28px;height:28px;padding:3px}
body .data-grid.customers-table .client-name-link{min-height:0;padding:0;line-height:1.3}
body .data-grid.customers-table .client-state{font-size:11px;line-height:1.2;margin-top:1px}
body .data-grid.customers-table .client-context{line-height:1.2;margin-top:1px}
@media(max-width:760px){
 body .data-grid.customers-table td{padding:4px}
 body .data-grid.customers-table .row-action-controls>button{min-width:32px;min-height:32px;height:32px}
}

.intermediary-table{width:100%;font-size:12px}.intermediary-table td{padding:5px 8px;height:40px}.intermediary-actions{white-space:nowrap}.intermediary-actions button{font-size:11px;padding:5px;margin-right:4px;min-height:28px}#intermediary-form{display:grid;gap:12px;max-width:460px}#intermediary-form label{display:grid;gap:5px}#intermediary-enabled{display:flex!important;align-items:center}#intermediary-editor,#intermediary-credentials-dialog{max-width:min(560px,94vw);width:100%}#intermediary-credentials{width:100%;margin-top:14px}#intermediary-error{color:#a33f36}.intermediary-origin{display:block;font-size:10px;color:#50617b;line-height:1.3}

/* Shared column proportions: short identifiers leave room for names and contact. */
html[data-client-layout] .customers-table{table-layout:fixed;width:100%}
html[data-client-layout] .customers-table th{white-space:normal;overflow-wrap:normal;line-height:1.3}
html[data-client-layout] .customers-table td{vertical-align:middle}
html[data-client-layout] .customers-table .client-name-link{white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip}
html[data-client-layout] .customers-table td:nth-child(14) .cell-value{white-space:normal;overflow-wrap:anywhere;line-height:1.3}
html[data-client-layout=operational] .customers-table :is(th,td):nth-child(1){width:80px}
html[data-client-layout=operational] .customers-table :is(th,td):nth-child(2){width:9%}
html[data-client-layout=operational] .customers-table :is(th,td):nth-child(4){width:8%}
html[data-client-layout=operational] .customers-table :is(th,td):nth-child(5){width:17%}
html[data-client-layout=operational] .customers-table :is(th,td):nth-child(8){width:11%}
html[data-client-layout=operational] .customers-table :is(th,td):nth-child(9){width:25%}
html[data-client-layout=operational] .customers-table :is(th,td):nth-child(14){display:table-cell;width:auto}
@media(max-width:760px){
 html[data-client-layout=operational] .customers-table :is(th,td):nth-child(1){width:76px}
 html[data-client-layout=operational] .customers-table :is(th,td):nth-child(2){width:60px}
 html[data-client-layout=operational] .customers-table :is(th,td):nth-child(9){width:auto}
 html[data-client-layout=operational] .customers-table :is(th,td):nth-child(14){width:27%}
 html[data-client-layout=operational] .customers-table th{font-size:10px;padding:8px 4px}
 html[data-client-layout=operational] .customers-table td:nth-child(2) .cell-value{white-space:normal;overflow-wrap:anywhere}
}
html[data-client-layout=complete] .customers-table col:nth-child(1){width:6%}
html[data-client-layout=complete] .customers-table col:nth-child(2){width:6%}
html[data-client-layout=complete] .customers-table col:nth-child(3){width:6%}
html[data-client-layout=complete] .customers-table col:nth-child(4){width:5%}
html[data-client-layout=complete] .customers-table col:nth-child(5){width:10%}
html[data-client-layout=complete] .customers-table col:nth-child(6){width:7%}
html[data-client-layout=complete] .customers-table col:nth-child(7){width:3%}
html[data-client-layout=complete] .customers-table col:nth-child(8){width:7%}
html[data-client-layout=complete] .customers-table col:nth-child(9){width:13%}
html[data-client-layout=complete] .customers-table col:nth-child(10){width:7%}
html[data-client-layout=complete] .customers-table col:nth-child(11){width:10%}
html[data-client-layout=complete] .customers-table col:nth-child(12){width:6%}
html[data-client-layout=complete] .customers-table col:nth-child(13){width:4%}
html[data-client-layout=complete] .customers-table col:nth-child(14){width:10%}

@media(min-width:761px) and (max-width:1100px){
 html[data-client-layout=operational] .customers-table :is(th,td){padding-left:4px;padding-right:4px;font-size:12px}
 html[data-client-layout=operational] .customers-table th{font-size:11px}
 html[data-client-layout=operational] .customers-table :is(th,td):nth-child(4){width:10%}
 html[data-client-layout=operational] .customers-table :is(th,td):nth-child(9){width:23%}
 html[data-client-layout=operational] .customers-table :is(td:nth-child(2),td:nth-child(4)) .cell-value{white-space:normal;overflow-wrap:anywhere}
}
