dialog.customer-workspace{width:min(1440px,96vw)!important;max-width:96vw!important;height:min(900px,94dvh)!important;max-height:94dvh!important;padding:0;overflow:hidden;display:none}
dialog.customer-workspace[open]{display:flex;flex-direction:column}
.customer-workspace .dialog-top{flex:0 0 auto;padding:20px 26px!important;background:#fff;border-bottom:1px solid #e6edf5}
.customer-workspace #dialog-body{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden!important;padding:0!important;width:100%!important;max-width:none!important}
.customer-workspace #cTabs{flex:none;display:flex;gap:6px;overflow:auto;margin:0;padding:12px 24px;background:#fff;border-bottom:1px solid #e6edf5}
.customer-workspace #cTabs button{white-space:nowrap;border-radius:8px;padding:10px 15px}
.customer-workspace #cBody{flex:1;min-height:0;overflow:auto;padding:24px;background:#f5f7fb}
.cw-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}
.cw-summary h2{margin:4px 0 6px;font-size:23px;color:#142744}.cw-summary p{margin:0;color:#63748a}
.cw-kicker{font-size:11px;letter-spacing:1.3px;text-transform:uppercase;color:#547599;font-weight:700}
.cw-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,235px),1fr));gap:16px;margin:16px 0}
.cw-card{background:#fff;border:1px solid #e2e9f2;border-radius:14px;padding:22px;min-width:0;box-shadow:0 3px 10px #14274404}
.cw-card h3{font-size:16px;margin:0 0 18px}.cw-card p{color:#63748a;line-height:1.65}.cw-card small{display:block;color:#64748b;margin:0 0 8px}
.cw-card strong{overflow-wrap:anywhere;color:#172b49}.cw-value{display:block;font-size:29px;font-weight:700;line-height:1.3}.cw-card dl{margin:0}.cw-card dt{color:#718096;font-size:12px;margin:16px 0 4px}.cw-card dd{margin:0;line-height:1.5;color:#172b49;overflow-wrap:anywhere}
.cw-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:16px 0}.cw-toolbar .button{min-height:40px}
.cw-notice{background:#ecf4ff;border:1px solid #d9e8fc;border-radius:10px;padding:14px 18px;line-height:1.6;color:#385577;margin:14px 0}.cw-error{background:#fff0f0;border-color:#f4caca;color:#a42424}
.cw-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cw-form label{display:flex;flex-direction:column;gap:8px;font-size:13px;color:#42546e}.cw-form input,.cw-form select{width:100%;min-width:0;min-height:42px;border:1px solid #d8e2ee;border-radius:8px;padding:9px 12px;background:#fff;color:#172b49}
.cw-form .cw-wide{grid-column:1/-1}.cw-form label.cw-check{flex-direction:row;align-items:center}.cw-check input{width:18px;min-height:18px}.cw-sectors{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px}.cw-sectors label{display:flex;align-items:center;gap:9px;border:1px solid #e4ebf4;border-radius:8px;padding:12px}.cw-sectors input{width:17px;min-height:17px}
.cw-empty{text-align:center;padding:60px 20px;color:#6b7e96}.cw-history{max-width:100%;padding:10px;border:1px solid #d8e2ee;border-radius:8px}.cw-status{display:inline-flex;padding:7px 12px;border-radius:20px;background:#edf4ff;color:#265d98;font-size:12px}.cw-good{background:#e5f7ef;color:#137549}
.cw-form .cw-sectors label{flex-direction:row}.cw-card:has([data-integration]){align-self:start}
@media(max-width:700px){.customer-workspace #cBody{padding:14px}.customer-workspace #cTabs{padding:10px}.cw-summary{align-items:flex-start;flex-direction:column}.cw-form{grid-template-columns:1fr}.cw-card{padding:16px}.customer-workspace .dialog-top{padding:14px!important}}

/* Shared DataTable inside the customer detail dialog. */
.customer-workspace .cw-data-table{min-width:0;overflow:hidden;border:1px solid #e2e9f2;border-radius:14px;background:var(--card,#fff)}
.customer-workspace .cw-data-table .card-heading{padding:20px 22px;gap:16px;flex-wrap:wrap}
.customer-workspace .cw-data-table .card-heading h2{margin:0 0 6px;font-size:18px}
.customer-workspace .cw-data-table .card-heading p{margin:0;line-height:1.5}
.customer-workspace .cw-data-table .table-toolbar{padding:14px 20px;flex-wrap:wrap;gap:12px}
.customer-workspace .cw-data-table .table-controls{flex-wrap:wrap;gap:8px}
.customer-workspace .cw-data-table .table-search{flex:1;min-width:180px;max-width:320px}
.customer-workspace .cw-data-table .table-scroll{width:100%;min-width:0;overflow:auto}
.customer-workspace .cw-data-table .datagrid{width:100%;table-layout:fixed;min-width:720px}
.customer-workspace .cw-data-table .datagrid td{white-space:normal;overflow-wrap:anywhere;line-height:1.5;padding:15px 14px;vertical-align:middle}
.customer-workspace .cw-data-table .datagrid th{padding:13px 14px;white-space:normal;cursor:pointer}
.customer-workspace .cw-data-table .datagrid th:last-child{width:85px}
.customer-workspace .cw-data-table .table-footer{padding:14px 20px;gap:12px;flex-wrap:wrap}
.customer-workspace .cw-column-picker{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 20px;background:#f6f9fd;border-bottom:1px solid #e2e9f2}
.customer-workspace .cw-column-picker label{display:flex;gap:6px;align-items:center}
.customer-workspace .cw-audit-detail{margin-top:18px}.cw-audit-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.cw-audit-values pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:12px/1.6 Consolas,monospace;padding:16px;background:#f5f7fb;border:1px solid #e2e9f2;border-radius:10px;max-height:360px;overflow:auto}.cw-event-id{overflow-wrap:anywhere;font-size:12px}
@media(max-width:700px){.customer-workspace .cw-data-table .card-heading,.customer-workspace .cw-data-table .table-toolbar{padding:14px}.customer-workspace .cw-data-table .table-search{max-width:none}.cw-audit-values{grid-template-columns:1fr}}
.customer-workspace .cw-data-table [hidden]{display:none!important}
.customer-workspace .cw-data-table .datagrid th:last-child{width:110px}
.customer-workspace .cw-data-table .text-button{white-space:nowrap;padding:7px 13px;min-width:64px}
