.crm-workspace-active #crmTabsNav,.crm-workspace-active #crmClientWorkMenu,.crm-workspace-active #crmReportsMenu,.crm-workspace-active #crmPanel,.crm-workspace-active .crm-title-row{display:none!important}
#crmWorkspace{--cw-ink:#183b53;--cw-muted:#647c8e;--cw-line:#d4e7f2;--cw-blue:#117bbb;--cw-glass:#edf7fdf2;color:var(--cw-ink);font:14px/1.5 'DM Sans',system-ui,sans-serif;margin:0 auto;max-width:1600px}
#crmWorkspace *{box-sizing:border-box}#crmWorkspace[hidden],#crmWorkspace [hidden]{display:none!important}#crmWorkspace h1,#crmWorkspace h2,#crmWorkspace h3,#crmWorkspace p{margin:0}#crmWorkspace h1{font-size:26px;letter-spacing:-.6px}#crmWorkspace h2{font-size:21px;letter-spacing:-.35px}#crmWorkspace h3{font-size:16px}#crmWorkspace button,#crmWorkspace input,#crmWorkspace select,#crmWorkspace textarea{font:inherit;text-shadow:none!important}#crmWorkspace button{cursor:pointer}#crmWorkspace .cw-top{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:18px}#crmWorkspace .cw-eyebrow{color:var(--cw-muted);font-size:11px;letter-spacing:.1em;font-weight:600}#crmWorkspace .cw-subtle{color:var(--cw-muted);font-size:12px}#crmWorkspace .cw-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}#crmWorkspace .cw-button{min-height:38px;border:1px solid var(--cw-line);border-radius:999px;padding:8px 15px;background:#f6fbff;color:var(--cw-ink);font-weight:500;box-shadow:0 2px 6px #193c5610;white-space:normal}#crmWorkspace .cw-button.cw-primary,#crmWorkspace .cw-button[aria-current="page"]{background:var(--cw-blue);color:#fff;border-color:var(--cw-blue)}#crmWorkspace .cw-button:disabled{cursor:wait;opacity:.55}#crmWorkspace .cw-nav{display:flex;gap:5px;flex-wrap:wrap;border:1px solid #cce4f4;background:var(--cw-glass);border-radius:30px;padding:7px;margin-bottom:20px;box-shadow:inset 0 1px 0 #fff,0 8px 25px #173b5310}#crmWorkspace .cw-nav .cw-button{border-color:transparent;box-shadow:none;background:transparent}#crmWorkspace .cw-nav .cw-button[aria-current="page"]{background:var(--cw-blue)}#crmWorkspace .cw-card{background:#fff;border:1px solid var(--cw-line);border-radius:24px;padding:18px;margin-bottom:14px}#crmWorkspace .cw-empty{color:var(--cw-muted);padding:32px 20px;text-align:center}#crmWorkspace .cw-error{color:#a23e3c}#crmWorkspace .cw-notice:empty{display:none}#crmWorkspace .cw-notice{border-radius:18px;padding:10px 15px;background:#eafaef;color:#246b45;margin-bottom:14px}#crmWorkspace .cw-notice.cw-error{background:#fff1ef;color:#a23e3c}#crmWorkspace :focus-visible{outline:3px solid #5dafe6;outline-offset:3px}
@media(max-width:650px){#crmWorkspace{font-size:13px}#crmWorkspace h1{font-size:23px}#crmWorkspace .cw-nav .cw-button{flex:1 1 auto;padding-inline:10px}#crmWorkspace .cw-top{gap:10px}#crmWorkspace .cw-card{padding:14px;border-radius:21px}}
@media(pointer:coarse){#crmWorkspace .cw-button{min-height:44px}#crmWorkspace input,#crmWorkspace select,#crmWorkspace textarea{font-size:16px!important}}
#crmWorkspace .cw-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:15px}#crmWorkspace .cw-heading .cw-subtle{margin-top:3px}#crmWorkspace .cw-filters,#crmWorkspace .cw-space{margin-top:14px;margin-bottom:14px}#crmWorkspace .cw-row .cw-button[aria-pressed=true]{background:#dcefff;color:#126ea7;border-color:#9fcce8}#crmWorkspace .cw-saved{margin:0 0 14px}#crmWorkspace .cw-saved:empty{display:none}#crmWorkspace .cw-filter-form{display:flex;gap:9px;align-items:flex-end;flex-wrap:wrap;background:#eef7fd;border:1px solid var(--cw-line);border-radius:23px;padding:13px;margin-bottom:14px}#crmWorkspace label{display:grid;gap:5px;font-size:12px;color:var(--cw-muted);font-weight:500}#crmWorkspace input,#crmWorkspace select,#crmWorkspace textarea{border:1px solid #c6dfef;border-radius:20px;min-height:39px;background:#fff;color:var(--cw-ink);padding:9px 13px;max-width:100%;box-shadow:none}#crmWorkspace input[type=checkbox]{min-height:18px;height:18px;width:18px;margin:0;accent-color:var(--cw-blue);padding:0;flex-shrink:0}#crmWorkspace select{padding-right:30px;min-width:130px}#crmWorkspace textarea{border-radius:17px;resize:vertical;width:100%;min-height:75px}#crmWorkspace .cw-filter-form label:first-child{flex:1 1 230px}#crmWorkspace .cw-filter-form input[type=date]{width:148px}#crmWorkspace .cw-search{display:flex;gap:9px;padding:8px;background:#eef7fd;border:1px solid var(--cw-line);border-radius:999px;margin-bottom:15px}#crmWorkspace .cw-search input{min-width:0;flex:1;border-color:transparent;background:transparent}#crmWorkspace .cw-table-card{padding:3px 14px}#crmWorkspace .cw-table-wrap{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}#crmWorkspace .cw-table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}#crmWorkspace .cw-table th{font-size:11px;font-weight:500;color:var(--cw-muted);padding:11px 9px;background:transparent;vertical-align:bottom}#crmWorkspace .cw-table td{padding:13px 9px;border-top:1px solid #e0edf5;vertical-align:top;color:var(--cw-ink)}#crmWorkspace .cw-table tr:hover td{background:#f8fcff}#crmWorkspace .cw-table small,#crmWorkspace .cw-task small{display:block;color:var(--cw-muted);font-size:11px;margin-top:3px}#crmWorkspace .cw-table .cw-button{font-size:12px;padding:6px 11px;min-height:33px}#crmWorkspace .cw-table .cw-row{gap:5px}#crmWorkspace .cw-link{padding:0;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;color:#1178b7;font:inherit;text-align:left;text-decoration:underline;text-decoration-color:#b5d8ed;text-underline-offset:3px;text-shadow:none!important}#crmWorkspace .cw-link:hover{text-decoration-color:currentColor}#crmWorkspace .cw-badge{display:inline-block;padding:4px 9px;font-size:11px;line-height:1.4;font-weight:500;border-radius:999px;background:#eaf4fb;color:#375d75}#crmWorkspace .cw-badge.cw-good{color:#267046;background:#edf8f0}#crmWorkspace .cw-badge.cw-warning{color:#885918;background:#fff4df}#crmWorkspace .cw-badge.cw-danger{color:#a23e3c;background:#fff0ee}#crmWorkspace .cw-danger-text{color:#aa3d3b!important}#crmWorkspace .cw-metrics{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0}#crmWorkspace .cw-metrics>div{flex:1 1 145px;min-width:0;border:1px solid var(--cw-line);border-radius:22px;padding:13px 16px;background:#f5fbff}#crmWorkspace .cw-metrics dt{font-size:11px;color:var(--cw-muted)}#crmWorkspace .cw-metrics dd{margin:5px 0 0;font-weight:600;font-size:20px;letter-spacing:-.4px;font-variant-numeric:tabular-nums}#crmWorkspace .cw-metrics .cw-warning{background:#fffbf1;border-color:#f0dfb7}#crmWorkspace .cw-metrics .cw-good{background:#f0faf2;border-color:#c9e5d2}#crmWorkspace .cw-task{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 0;border-bottom:1px solid #e0edf5}#crmWorkspace .cw-task:last-child{border-bottom:0}#crmWorkspace .cw-task>div:first-child{flex:1;min-width:0}#crmWorkspace .cw-task p{margin-top:3px}#crmWorkspace .cw-task h3{font-size:14px;font-weight:600}#crmWorkspace .cw-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:14px 0}#crmWorkspace .cw-stale{background:#fff5e1;color:#805517;border:1px solid #ebd59f;border-radius:17px;padding:11px 15px;margin-bottom:14px;font-size:12px}#crmWorkspace .cw-section{border-top:1px solid var(--cw-line);padding-top:17px;margin-top:18px}#crmWorkspace .cw-section>h3{margin-bottom:10px}#crmWorkspace .cw-states{display:flex;flex-wrap:wrap;gap:6px;margin:13px 0}#crmWorkspace .cw-modal{position:fixed;z-index:1500;inset:0;background:#16364b60;backdrop-filter:blur(7px);display:flex;align-items:center;justify-content:center;padding:24px;overflow:auto;overscroll-behavior:contain}#crmWorkspace .cw-dialog{width:min(100%,650px);max-height:calc(100dvh - 48px);overflow:auto;overscroll-behavior:contain;border:1px solid #e5f4ff;border-radius:29px;background:#f6fbfff5;backdrop-filter:blur(20px);box-shadow:0 25px 80px #12334b33;padding:23px;color:var(--cw-ink)}#crmWorkspace .cw-dialog-wide{width:min(100%,1050px)}#crmWorkspace .cw-dialog-top{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}#crmWorkspace .cw-close{padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#56768a!important;text-shadow:none!important;min-width:38px;min-height:38px;font-size:30px!important;line-height:1!important;flex-shrink:0;transform:none!important}#crmWorkspace .cw-close::before,#crmWorkspace .cw-close::after{display:none!important}#crmWorkspace .cw-close:hover{color:#057bc1!important}#crmWorkspace .cw-dialog h2{font-size:22px}#crmWorkspace .cw-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}#crmWorkspace .cw-form-grid>label input,#crmWorkspace .cw-form-grid>label select{width:100%}#crmWorkspace .cw-wide{grid-column:1/-1}#crmWorkspace .cw-form-actions{margin-top:18px;padding-top:14px;border-top:1px solid var(--cw-line)}#crmWorkspace .cw-form-status{margin-top:12px;font-size:12px;white-space:pre-line}#crmWorkspace .cw-dialog form>label{margin-top:14px}#crmWorkspace .cw-line-table input{width:100px}#crmWorkspace .cw-line-table td:last-child{width:130px}#crmWorkspace .cw-check{display:flex;align-items:center;gap:8px;color:var(--cw-ink);font-size:13px}#crmWorkspace .cw-align-end{align-self:end}#crmWorkspace .cw-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}#crmWorkspace .cw-timeline article{display:grid;grid-template-columns:110px 1fr;gap:14px;border-bottom:1px solid #e0edf5;padding:13px 0}#crmWorkspace .cw-timeline article:last-child{border-bottom:0}#crmWorkspace .cw-timeline time{font-size:11px;color:var(--cw-muted)}#crmWorkspace .cw-timeline strong{font-size:13px;font-weight:500}#crmWorkspace .cw-timeline p{font-size:12px;margin:3px 0}#crmWorkspace .cw-timeline small{font-size:11px;color:var(--cw-muted)}#crmWorkspace pre{white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--cw-line);padding:14px;border-radius:16px;font-size:11px;background:#fff}#crmWorkspace .cw-proposal-line,#crmWorkspace .cw-permission-row{border:1px solid var(--cw-line);border-radius:19px;margin:14px 0;padding:13px}#crmWorkspace legend{font-size:12px;color:var(--cw-muted);padding:0 6px}#crmWorkspace .cw-permission-row .cw-check{margin:9px 0}body.cw-modal-open{overflow:hidden}
@media(max-width:850px){#crmWorkspace .cw-filter-form{gap:8px}#crmWorkspace .cw-filter-form label{flex:1 1 140px}#crmWorkspace .cw-filter-form label:first-child{flex-basis:100%}#crmWorkspace .cw-task{flex-wrap:wrap}#crmWorkspace .cw-task>.cw-row{width:100%}#crmWorkspace .cw-metrics>div{flex-basis:130px}#crmWorkspace .cw-metrics dd{font-size:18px}}
@media(max-width:650px){#crmWorkspace .cw-orders thead,#crmWorkspace .cw-customers thead,#crmWorkspace .cw-purchases thead{display:none}#crmWorkspace .cw-orders tr,#crmWorkspace .cw-customers tr,#crmWorkspace .cw-purchases tr{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;padding:15px 0;border-bottom:1px solid var(--cw-line)}#crmWorkspace .cw-orders tr:last-child,#crmWorkspace .cw-customers tr:last-child,#crmWorkspace .cw-purchases tr:last-child{border-bottom:0}#crmWorkspace .cw-orders td,#crmWorkspace .cw-customers td,#crmWorkspace .cw-purchases td{display:block;padding:0;border:0;min-width:0;overflow-wrap:anywhere}#crmWorkspace .cw-orders td:first-child,#crmWorkspace .cw-orders td:nth-child(4),#crmWorkspace .cw-customers td:first-child,#crmWorkspace .cw-purchases td:first-child,#crmWorkspace .cw-purchases td:last-child{grid-column:1/-1}#crmWorkspace .cw-orders td::before,#crmWorkspace .cw-customers td::before,#crmWorkspace .cw-purchases td::before{content:attr(data-label);display:block;font-size:10px;color:var(--cw-muted);margin-bottom:3px}#crmWorkspace .cw-orders tr:hover td,#crmWorkspace .cw-customers tr:hover td,#crmWorkspace .cw-purchases tr:hover td{background:transparent}#crmWorkspace .cw-table-card{padding:0 13px}#crmWorkspace .cw-filter-form{border-radius:21px;padding:11px}#crmWorkspace .cw-filter-form input[type=date]{width:100%}#crmWorkspace .cw-search{border-radius:22px}#crmWorkspace .cw-search .cw-button{padding-inline:12px}#crmWorkspace .cw-metrics{gap:7px}#crmWorkspace .cw-metrics>div{flex-basis:calc(50% - 7px);border-radius:20px;padding:11px 13px}#crmWorkspace .cw-metrics dd{font-size:17px}#crmWorkspace .cw-modal{padding:9px;align-items:flex-start}#crmWorkspace .cw-dialog{max-height:calc(100dvh - 18px);border-radius:24px;padding:17px 14px;margin:auto 0}#crmWorkspace .cw-dialog h2{font-size:20px}#crmWorkspace .cw-form-grid{grid-template-columns:1fr;gap:12px}#crmWorkspace .cw-wide{grid-column:auto}#crmWorkspace .cw-line-table{font-size:12px}#crmWorkspace .cw-line-table input{width:82px;padding-inline:9px}#crmWorkspace .cw-timeline article{grid-template-columns:75px 1fr;gap:10px}#crmWorkspace .cw-menu-grid{grid-template-columns:1fr}#crmWorkspace .cw-pagination{align-items:flex-start}}
@media(prefers-reduced-motion:reduce){#crmWorkspace *,#crmWorkspace *::before,#crmWorkspace *::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media print{body.crm-workspace-active>*{visibility:hidden}#crmWorkspace,#crmWorkspace .cw-modal,#crmWorkspace .cw-dialog,#crmWorkspace .cw-print-document,#crmWorkspace .cw-print-document *{visibility:visible!important}#crmWorkspace .cw-modal{position:absolute;inset:0;display:block;background:#fff;padding:0;backdrop-filter:none}#crmWorkspace .cw-dialog{width:100%;max-height:none;overflow:visible;box-shadow:none;background:#fff;border:0;padding:15mm}#crmWorkspace .cw-dialog-top .cw-close,#crmWorkspace .cw-dialog>.cw-row,#crmWorkspace details{display:none!important}#crmWorkspace .cw-top,#crmWorkspace .cw-nav,#crmWorkspace [data-cw-content],#crmWorkspace .cw-notice{display:none!important}}

/* Density is personal, while touch controls retain their minimum hit area. */
#crmWorkspace[data-cw-density="compact"] .cw-table td{padding-block:8px}
#crmWorkspace[data-cw-density="compact"] .cw-table th{padding-block:8px}
#crmWorkspace[data-cw-density="compact"] .cw-task{padding-block:9px}
#crmWorkspace[data-cw-density="compact"] .cw-table .cw-button{min-height:31px;padding-block:5px}
#crmWorkspace[data-cw-density="comfortable"] .cw-table td{padding-block:16px}
#crmWorkspace[data-cw-density="comfortable"] .cw-task{padding-block:17px}
#crmWorkspace .cw-customer-picker>label input{width:100%}
#crmWorkspace .cw-customer-picker [data-cw-customer-results]:empty{display:none}
#crmWorkspace .cw-report-basis,#crmWorkspace .cw-audit-details{font-size:12px;color:var(--cw-muted)}
#crmWorkspace details>summary{cursor:pointer;color:#1178b7;font-weight:500;padding-block:7px}
#crmWorkspace .cw-report-basis dl{margin:9px 0;padding:14px 18px;background:#f7fbff;border:1px solid var(--cw-line);border-radius:20px}
#crmWorkspace .cw-report-basis dt{font-weight:600;color:var(--cw-ink);margin-top:10px}
#crmWorkspace .cw-report-basis dt:first-child{margin-top:0}
#crmWorkspace .cw-report-basis dd{margin:3px 0 0;max-width:95ch}
#crmWorkspace .cw-audit-details pre{max-height:300px;overflow:auto;margin-block:6px 12px}
#crmWorkspace .cw-table{font-variant-numeric:tabular-nums}
@media(max-width:650px){
 #crmWorkspace .cw-orders td:nth-child(n){grid-column:auto;padding:0}
 #crmWorkspace .cw-orders td.cw-order-head,#crmWorkspace .cw-orders td.cw-order-next{grid-column:1/-1}
 #crmWorkspace[data-cw-density="compact"] .cw-orders tr{padding-block:11px}
 #crmWorkspace[data-cw-density="comfortable"] .cw-orders tr{padding-block:18px}
 #crmWorkspace[data-cw-density="compact"] .cw-orders td,#crmWorkspace[data-cw-density="comfortable"] .cw-orders td{padding:0}
}
@media(pointer:coarse){#crmWorkspace[data-cw-density] .cw-table .cw-button{min-height:44px}}

#crmWorkspace{width:100%;min-width:0}#crmWorkspace .cw-heading>*{min-width:0}
