/* Customer management uses the existing Blue Ocean shell and semantic tokens. */
.cm-main{min-width:0;padding:24px 28px 72px;font-size:13px;color:var(--bo-ink)}
.cm-breadcrumb{display:flex;align-items:center;gap:8px;color:#596b80;font-size:12px;margin-bottom:16px}.cm-breadcrumb>span{color:#9aa8b8}.cm-demo-link{display:flex;align-items:center;gap:5px;margin-left:auto;border:0;background:transparent;color:#596b80;font:inherit;cursor:pointer}.cm-demo-link svg{width:14px;height:14px}
.cm-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:20px}.cm-head h1{font-size:24px;line-height:1.3;margin:0 0 6px;font-weight:600;letter-spacing:-.5px}.cm-head p{color:#596b80;margin:0;font-size:13px}.cm-head-actions,.cm-inline-actions,.cm-row-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.cm-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 12px;border:1px solid var(--bo-border-strong);border-radius:6px;background:#fff;color:#33465d;font:inherit;line-height:1.4;cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s}.cm-btn svg{width:15px;height:15px;flex-shrink:0}.cm-btn:hover{background:#f0f5f8;border-color:#a7b8c8}.cm-btn.primary{background:var(--bo-teal-700);border-color:var(--bo-teal-700);color:white}.cm-btn.primary:hover{background:#086b7b}.cm-btn.danger{color:#af2a3d;border-color:#e8b8c0;background:#fff}.cm-btn.danger:hover{background:#fff1f2}.cm-btn.ghost{border-color:transparent;background:transparent}.cm-btn.link{min-height:30px;padding:4px 5px;color:#0a7082;border:0;background:transparent}.cm-btn.icon-only{font-size:0;width:34px;padding:0}.cm-btn:disabled,.cm-action-card:disabled{opacity:.45;cursor:not-allowed}.cm-btn:focus-visible,.cm-tab:focus-visible,.cm-link:focus-visible,.cm-main input:focus-visible,.cm-main select:focus-visible,.cm-dialog input:focus-visible,.cm-dialog select:focus-visible,.cm-dialog textarea:focus-visible,.cm-drawer button:focus-visible,.cm-demo-link:focus-visible{outline:2px solid var(--bo-teal-700);outline-offset:3px}
.cm-tabs{display:flex;gap:4px;border-bottom:1px solid var(--bo-border);margin-bottom:20px;overflow-x:auto}.cm-tab{display:flex;align-items:center;gap:7px;white-space:nowrap;padding:10px 13px;border:0;border-bottom:2px solid transparent;background:transparent;color:#53667c;font:inherit;font-weight:500;cursor:pointer}.cm-tab.active{border-color:var(--bo-teal-700);color:var(--bo-teal-700)}.cm-tab:hover{background:#edf3f7}.cm-count{font-variant-numeric:tabular-nums;padding:1px 6px;border-radius:4px;background:#e7eef3;color:#52667c;font-size:11px;line-height:16px}.cm-tab.active .cm-count{background:#dff2f4;color:#0a7082}
.cm-filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:18px}.cm-field{display:flex;flex-direction:column;gap:7px;min-width:0;margin:0}.cm-field>span{color:#4c6076;font-size:12px;font-weight:500}.cm-field input,.cm-field select,.cm-field textarea,.cm-scheme-table select{min-height:35px;border:1px solid var(--bo-border-strong);border-radius:6px;padding:7px 10px;background:white;color:var(--bo-ink);font:inherit;max-width:100%;width:100%}.cm-field textarea{line-height:1.6;resize:vertical;min-height:84px}.cm-filters>.cm-field{width:156px}.cm-filters>.cm-field:first-child{width:260px}.cm-filters>.cm-filter-customer{width:240px}.cm-filters>.cm-btn{min-height:35px}.cm-panel{border:1px solid var(--bo-border);border-radius:8px;background:#fff;overflow:hidden}.cm-table-heading,.cm-selection{display:flex;align-items:center;gap:12px;padding:11px 16px;min-height:48px;border-bottom:1px solid var(--bo-border)}.cm-table-heading{justify-content:space-between}.cm-selection{background:#eef8fa}.cm-selection strong{color:#0a7082;font-weight:500}.cm-table-wrap{overflow-x:auto}.cm-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px;text-align:left}.cm-table th{background:#f5f7fa;color:#596b80;font-weight:500;font-size:12px;padding:11px 14px;border-bottom:1px solid var(--bo-border)}.cm-table td{padding:12px 14px;border-bottom:1px solid #ebeff4;vertical-align:middle;line-height:1.5}.cm-table tbody>tr:last-child>td{border-bottom:0}.cm-table tbody>tr:hover{background:#f9fcfd}.cm-table th:first-child:has(input),.cm-table td:first-child:has(input){width:42px;padding-left:16px;padding-right:8px}.cm-table input[type=checkbox],.cm-check input{width:15px;height:15px;accent-color:var(--bo-teal-700);cursor:pointer;margin:0;vertical-align:middle}.cm-money{font-variant-numeric:tabular-nums;font-feature-settings:"tnum";font-weight:500}.cm-negative{color:#b32d3e}.cm-sub{display:block;color:#60738a;font-size:11px;font-weight:400;margin-top:3px;line-height:1.5;overflow-wrap:anywhere}.cm-link{border:0;padding:0;background:transparent;color:#0a7082;font:inherit;font-weight:500;cursor:pointer;text-align:left}.cm-link:hover{text-decoration:underline}.cm-customer-name{font-weight:600;color:#253f59}.cm-muted{color:#60738a;font-weight:400}.cm-row-actions{gap:5px;flex-wrap:nowrap}.cm-risk{display:inline-flex;align-items:center;gap:5px;font-size:11px;white-space:nowrap}.cm-risk svg{width:14px;height:14px}.cm-risk.danger{color:#af2a3d}.cm-risk.warn{color:#995514}.cm-risk.muted{color:#60738a}.cm-tag{display:inline-flex;align-items:center;gap:5px;padding:3px 7px;border-radius:4px;font-size:11px;line-height:1.4;white-space:nowrap}.cm-tag.ok{background:#edf8f3;color:#187557}.cm-tag.warn{background:#fff6e8;color:#995514}.cm-tag.danger{background:#fff0f2;color:#af2a3d}.cm-tag.neutral{background:#eef2f6;color:#53667c}.cm-dot{width:4px;height:4px;border-radius:50%;background:currentColor}.cm-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;color:#60738a;font-size:12px;border-top:1px solid var(--bo-border)}.cm-pagination>div{display:flex;align-items:center;gap:12px}.cm-pagination select{height:28px;margin-left:5px;border:1px solid var(--bo-border);border-radius:4px;background:white;color:#53667c}.cm-switch{display:flex;gap:6px;margin-bottom:18px}.cm-switch-btn{display:flex;gap:8px;align-items:center;border:1px solid var(--bo-border);background:white;color:#53667c;padding:8px 12px;border-radius:6px;font:inherit;cursor:pointer}.cm-switch-btn.active{border-color:#8ebec7;background:#eef8fa;color:#0a7082}.cm-notice{display:flex;gap:9px;align-items:flex-start;padding:11px 13px;border:1px solid #d8e6ed;background:#f0f6fa;border-radius:6px;color:#496175;line-height:1.65;font-size:12px;margin:0 0 18px}.cm-notice svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}.cm-notice.warn{border-color:#efd9b4;background:#fff8eb;color:#8b521d}.cm-related{padding:16px 0;color:#596b80;font-size:12px;line-height:1.6}.cm-related p{margin:5px 0 10px;max-width:900px}.cm-footnote{display:flex;align-items:center;gap:6px;color:#60738a;font-size:11px;margin-top:16px}.cm-footnote svg{width:13px;height:13px}.cm-footnote span{margin-left:auto}.cm-empty{padding:54px 16px;text-align:center;white-space:normal}.cm-empty>svg{width:28px;height:28px;color:#60738a;margin-bottom:12px}.cm-empty strong{display:block;font-size:14px;color:#3c5369}.cm-empty p{color:#60738a;margin:8px 0 16px}
.cm-overlay-open{overflow:hidden}.cm-overlay{position:fixed;inset:0;background:rgba(11,32,58,.36);z-index:180;display:flex;align-items:center;justify-content:center;padding:24px;font-size:13px;color:var(--bo-ink)}.cm-dialog{width:min(520px,100%);max-height:calc(100dvh - 48px);border-radius:10px;background:white;box-shadow:0 24px 72px #07182c33;overflow:hidden}.cm-dialog.wide{width:min(740px,100%)}.cm-dialog form{display:flex;flex-direction:column;max-height:calc(100dvh - 48px)}.cm-dialog header,.cm-drawer header{padding:18px 24px;border-bottom:1px solid var(--bo-border);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-shrink:0}.cm-dialog h2,.cm-drawer h2{margin:0;font-size:18px;line-height:1.5;font-weight:600}.cm-dialog-body{padding:22px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.cm-dialog-body>.cm-field{margin-bottom:16px}.cm-dialog-body>p{margin:0 0 16px;line-height:1.6;overflow-wrap:anywhere}.cm-dialog h3,.cm-drawer h3{font-size:13px;margin:22px 0 12px;font-weight:600}.cm-dialog footer,.cm-drawer footer{display:flex;justify-content:flex-end;align-items:center;gap:8px;padding:14px 24px;border-top:1px solid var(--bo-border);background:#fbfcfd;flex-shrink:0}.cm-dialog .cm-inline-actions{margin-bottom:16px}.cm-dialog-customer{color:#53667c}.cm-dialog .cm-table td,.cm-dialog .cm-table th{padding:9px 12px}.cm-scheme-table select{min-width:170px;font-size:12px}.cm-account-summary{display:grid;grid-template-columns:repeat(3,1fr);padding:16px;background:#f5f8fa;border-radius:6px;margin:0 0 8px;gap:16px}.cm-fact{min-width:0}.cm-fact dt{color:#60738a;font-size:11px;margin-bottom:6px;font-weight:400}.cm-fact dd{margin:0;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.cm-account-summary dd{font-size:18px;font-weight:600;letter-spacing:-.3px;font-variant-numeric:tabular-nums}.cm-account-risk{margin:10px 0 18px}.cm-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px;margin:20px 0}.cm-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.cm-action-card{display:flex;align-items:center;gap:9px;text-align:left;font:inherit;border:1px solid var(--bo-border);border-radius:6px;background:white;color:#334b60;min-height:48px;padding:10px 12px;cursor:pointer}.cm-action-card:hover{background:#f2f8fa;border-color:#9cbcc5}.cm-action-card svg{width:17px;height:17px;color:#0a7082;flex-shrink:0}.cm-review-buttons{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.cm-error{display:flex;align-items:center;gap:8px;padding:12px;background:#fff0f2;color:#af2a3d;border:1px solid #e9bdc3;border-radius:6px;margin-bottom:16px;line-height:1.5}.cm-error svg{width:16px;height:16px;flex-shrink:0}.cm-name-list{line-height:1.8;color:#53667c;padding:12px;border-radius:6px;background:#f5f8fa;margin-bottom:20px}.cm-check{display:flex;align-items:center;gap:8px;padding:8px 0;line-height:1.5}.cm-check+.cm-field{margin-top:12px}.cm-payment-values{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:0;padding:16px;background:#f5f8fa;border-radius:6px}.cm-payment-values dd{font-size:16px;font-weight:600;font-variant-numeric:tabular-nums}.cm-timeline{list-style:none;padding:0;margin:18px 0 0}.cm-timeline li{display:flex;gap:14px;padding-bottom:20px;position:relative}.cm-timeline-point{width:8px;height:8px;flex-shrink:0;margin-top:6px;border-radius:50%;background:#a2bec6}.cm-timeline li:not(:last-child)::after{content:"";position:absolute;left:3px;top:18px;bottom:4px;border-left:1px solid var(--bo-border)}.cm-timeline strong{font-weight:500}.cm-timeline p{color:#52667c;margin:5px 0;line-height:1.65}.cm-change-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cm-change-grid section{min-width:0;padding:12px;background:#f5f8fa;border-radius:6px}.cm-change-grid pre{font:11px/1.6 monospace;overflow:auto;max-height:220px;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:0}
.cm-drawer{margin-left:auto;width:min(660px,100%);height:100dvh;display:flex;flex-direction:column;background:white;box-shadow:-12px 0 40px #07182c22}.cm-overlay:has(.cm-drawer){padding:0}.cm-drawer header{padding:20px 24px}.cm-drawer header h2{font-size:20px}.cm-drawer-tabs{display:flex;gap:6px;padding:0 12px;border-bottom:1px solid var(--bo-border);overflow-x:auto;flex-shrink:0}.cm-drawer-body{padding:22px 24px;overflow-y:auto;overscroll-behavior:contain;min-height:0;flex:1}.cm-drawer footer{justify-content:space-between}.cm-drawer .cm-inline-actions{margin:12px 0}.cm-note-content{padding:12px;background:#f6f8fa;color:#52667c;line-height:1.65;border-radius:6px;white-space:pre-wrap}.cm-store-row{display:flex;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid var(--bo-border)}.cm-store-row>svg{width:24px;color:#0a7082}.cm-store-row .cm-tag{margin-left:auto}.cm-store-row+.cm-notice{margin-top:20px}.cm-dialog hr{border:0;border-top:1px solid var(--bo-border);margin:18px 0}
@media(min-width:1800px){.cm-main{padding:28px 36px 72px}.cm-table td{padding-top:14px;padding-bottom:14px}}
@media(max-width:1100px){.cm-main{padding:22px 20px 72px}.cm-tabs{gap:0}.cm-tab{padding:10px}.cm-head{align-items:flex-start}.cm-head-actions{justify-content:flex-end}}
@media(max-width:700px){.cm-main{padding:20px 16px 80px}.cm-head{display:block}.cm-head-actions{margin-top:16px;justify-content:flex-start}.cm-head h1{font-size:22px}.cm-head p{line-height:1.6}.cm-filters{gap:10px}.cm-filters>.cm-field,.cm-filters>.cm-field:first-child{width:calc(50% - 5px)}.cm-filters>.cm-field:first-child{width:100%}.cm-switch{overflow-x:auto}.cm-switch-btn{white-space:nowrap}.cm-table-heading{font-size:11px;align-items:flex-start;gap:10px}.cm-table-heading>.cm-muted{max-width:45%;text-align:right}.cm-overlay{padding:12px}.cm-dialog,.cm-dialog form{max-height:calc(100dvh - 24px)}.cm-dialog header,.cm-dialog footer{padding:14px 16px}.cm-dialog-body{padding:18px 16px}.cm-account-summary{gap:10px;padding:12px}.cm-account-summary dd{font-size:15px}.cm-facts{gap:16px}.cm-payment-values{grid-template-columns:1fr 1fr}.cm-action-grid{grid-template-columns:1fr}.cm-pagination{flex-wrap:wrap;gap:8px}.cm-drawer-body{padding:18px 16px}.cm-drawer header{padding:16px}.cm-drawer h2{font-size:18px}.cm-drawer footer{padding:12px 16px}.cm-change-grid{grid-template-columns:1fr}.cm-demo-link{font-size:11px}.cm-selection{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.cm-btn{transition:none}}

/* Consistent, contextual Lucide icons added for customer-management navigation and sections. */
.cm-title-row{display:flex;align-items:center;gap:10px;margin-bottom:6px}.cm-title-row h1{margin:0}.cm-page-symbol{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;border-radius:7px;background:var(--bo-teal-100);color:var(--bo-teal-700)}.cm-page-symbol svg{width:20px;height:20px;stroke-width:1.8}.cm-head:has(.cm-title-row)>div:first-child>p{padding-left:42px}
.cm-tab>svg,.cm-switch-btn>svg{width:15px;height:15px;flex-shrink:0;stroke-width:1.8}.cm-tabs .cm-tab{padding-left:11px;padding-right:11px}.cm-drawer-tabs .cm-tab{padding-left:10px;padding-right:10px}.cm-switch-btn>svg{color:var(--bo-teal-700)}
.cm-section-title{display:flex;align-items:center;gap:8px}.cm-section-title svg{width:16px;height:16px;flex-shrink:0;color:var(--bo-teal-700);stroke-width:1.8}.cm-label-icon{display:inline-flex;align-items:center;gap:5px;vertical-align:middle}.cm-label-icon svg{width:14px;height:14px;flex-shrink:0;stroke-width:1.7;color:#60738a}.cm-account-summary .cm-label-icon{align-items:flex-start}.cm-account-summary .cm-label-icon svg{color:var(--bo-teal-700);margin-top:1px}.cm-account-summary .cm-fact{display:flex;flex-direction:column}.cm-account-summary dd{margin-top:auto}
@media(max-width:700px){.cm-tab>svg{width:14px;height:14px}.cm-drawer-tabs{gap:0}.cm-drawer-tabs .cm-tab{gap:5px;padding:10px}.cm-head:has(.cm-title-row)>div:first-child>p{padding-left:0}.cm-account-summary .cm-label-icon{gap:4px}.cm-account-summary .cm-label-icon svg{width:12px;height:12px}}

/* Customer / finance modules share the existing expandable sidebar. */
.workspace-layout:has(.cm-main)>.sidebar{position:sticky;top:var(--bo-workspace-header-height);height:calc(100dvh - var(--bo-workspace-header-height));align-self:start;display:flex;flex-direction:column}.workspace-layout:has(.cm-main)>.sidebar .sidebar-tools{flex-shrink:0}.workspace-layout:has(.cm-main)>.sidebar .sidebar-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;padding-bottom:8px}.workspace-layout:has(.cm-main) .side-section{margin-bottom:18px}.workspace-layout:has(.cm-main) .side-subnav{gap:2px;margin-left:12px;padding-left:10px}.workspace-layout:has(.cm-main) .side-subnav-wrap{padding-top:4px;padding-bottom:8px}.workspace-layout:has(.cm-main) .side-nav-group:not(.is-open) .side-subnav-wrap{padding-top:0;padding-bottom:0}.workspace-layout:has(.cm-main) .side-sublink{min-height:36px;font-size:12px;border-radius:6px;gap:7px}.workspace-layout:has(.cm-main) .side-sublink>svg{width:15px;height:15px;stroke-width:1.8}.workspace-layout:has(.cm-main) .side-link-label{white-space:nowrap}.workspace-layout:has(.cm-main) .side-link-parent>svg:first-child{width:18px;height:18px;flex-shrink:0}.workspace-layout:has(.cm-main) .side-link-parent .side-chevron{width:14px;height:14px;flex-shrink:0}.sidebar.is-collapsed .side-link-parent.active-parent{background:#e9f5f7}
@media(max-width:780px){.workspace-layout:has(.cm-main)>.sidebar{position:fixed;top:var(--bo-workspace-header-height);height:calc(100dvh - var(--bo-workspace-header-height))}.workspace-layout:has(.cm-main) .side-sublink{min-height:44px}}

/* Read submitted application materials before making a customer-review decision. */
.cm-review-summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px;margin:0 0 18px}.cm-review-summary h2{font-size:20px;margin:0 0 5px}.cm-review-identity{min-width:0}.cm-review-identity h2,.cm-review-identity>.cm-muted{overflow-wrap:anywhere}.cm-review-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}.cm-review-back{justify-self:start}.cm-review-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:18px;align-items:start}.cm-review-materials,.cm-review-decision{min-width:0;display:grid;gap:16px}.cm-review-decision{position:static}.cm-review-section{border:1px solid var(--bo-border);border-radius:8px;padding:18px 20px;background:white;min-width:0}.cm-review-section>.cm-section-title{margin:0 0 16px;font-size:14px}.cm-review-section>.cm-facts{margin:0 0 16px}.cm-review-section .cm-notice:last-child{margin-bottom:0}.cm-review-section .cm-facts{grid-template-columns:repeat(2,minmax(0,1fr))}.cm-review-decision .cm-facts{grid-template-columns:1fr}.cm-review-decision .cm-review-buttons{flex-wrap:wrap;margin-top:16px}.cm-review-decision .cm-review-buttons>.cm-btn{flex:1}.cm-review-detail .cm-table{white-space:normal}.cm-review-detail .cm-table td{overflow-wrap:anywhere}.cm-review-new{color:var(--bo-teal-700);background:#eef8fa}.cm-review-file{display:flex;gap:10px;align-items:center;padding:12px 0;border-bottom:1px solid var(--bo-border)}.cm-review-file:last-child{border-bottom:0}.cm-review-file>svg{width:22px;height:22px;color:var(--bo-teal-700);flex-shrink:0}.cm-review-file>div{flex:1;min-width:0}.cm-review-file strong{font-weight:500}.cm-review-file .cm-sub{overflow-wrap:anywhere}.cm-document-preview{border:1px solid var(--bo-border-strong);background:#fafcfb;padding:22px;margin-top:10px}.cm-document-preview h3{font-size:20px;margin:16px 0}.cm-document-watermark{color:#997238;font-size:11px;font-weight:600;letter-spacing:1px}.cm-document-preview p{color:#60738a;font-size:12px;line-height:1.6}.cm-review-detail .cm-timeline{margin:0}.cm-review-detail .cm-timeline li:last-child{padding-bottom:0}
@media(max-width:1050px){.cm-review-layout{grid-template-columns:minmax(0,1fr) 260px}.cm-review-section{padding:16px}.cm-review-file{flex-wrap:wrap}.cm-review-file>div{flex-basis:calc(100% - 38px)}}
@media(max-width:780px){.cm-review-layout{grid-template-columns:1fr}.cm-review-decision{position:static}.cm-review-summary{flex-wrap:wrap;gap:10px}.cm-review-summary>.cm-btn{flex-basis:100%;justify-content:flex-start}.cm-review-section .cm-facts{grid-template-columns:1fr}.cm-review-file>.cm-btn{min-height:44px}.cm-review-summary h2{font-size:18px}}

@media(max-width:780px){.cm-review-detail .cm-review-buttons>.cm-btn,.cm-review-detail .cm-review-summary>.cm-btn{min-height:44px}}

/* Text links never inherit unbounded operation icons. */
.cm-link{display:inline-flex;align-items:center;gap:6px;vertical-align:middle;max-width:100%;line-height:1.5}.cm-link>svg{width:15px;height:15px;flex:0 0 15px;vertical-align:middle}
/* Keep the prototype utility outside warehouse/customer/finance business rows. */
body:has(.cm-main)>#prototype-trigger{position:static;display:flex;width:max-content;max-width:calc(100% - 32px);margin:0 28px 20px auto;box-shadow:none}
body.cm-overlay-open:has(.cm-main)>#prototype-trigger{visibility:hidden}
@media(max-width:700px){body:has(.cm-main)>#prototype-trigger{margin-right:16px;min-height:44px}}

/* Reserve the actual 15px icon width so longer menu translations stay readable. */
.workspace-layout:has(.cm-main) .side-subnav{margin-left:10px;margin-right:0;padding-left:8px}
.workspace-layout:has(.cm-main) .side-sublink{grid-template-columns:15px minmax(0,1fr) auto;gap:5px;padding-left:7px;padding-right:7px}

/* Finance shortcuts stay beside their customer; only the selected task opens a dialog. */
.cm-finance-menu{position:fixed;inset:auto;margin:0;width:248px;max-width:calc(100dvw - 24px);max-height:calc(100dvh - 24px);overflow-y:auto;padding:6px;border:1px solid var(--bo-border-strong);border-radius:8px;background:white;color:var(--bo-ink);box-shadow:0 8px 24px #07182c26;font-size:13px}
.cm-finance-menu::backdrop{background:transparent}
.cm-finance-owner{display:flex;align-items:center;gap:8px;padding:8px 10px 10px;color:#60738a;font-size:11px}
.cm-finance-owner strong{font-size:12px;font-weight:500;color:#33465d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cm-finance-owner span{margin-left:auto;flex-shrink:0}
.cm-finance-item{display:flex;align-items:center;gap:9px;width:100%;min-height:38px;border:0;border-radius:4px;padding:8px 10px;background:transparent;color:#33465d;text-align:left;white-space:nowrap;font:inherit;cursor:pointer}
.cm-finance-item svg{width:16px;height:16px;flex-shrink:0;color:var(--bo-teal-700)}
.cm-finance-item:hover,.cm-finance-item:focus-visible{background:#eef8fa;outline:none}
.cm-finance-item:disabled{color:#7e8e9e;opacity:.55;cursor:not-allowed;background:transparent}
.cm-finance-divider{border-top:1px solid var(--bo-border);margin:5px 8px}
.cm-row-actions [data-cm="finance"][aria-expanded="true"]{background:#eef8fa}
.cm-row-actions [data-cm="finance"]>svg:last-child{width:12px;height:12px}
#cm-demo-outbound-customer{margin-bottom:12px}
@media(max-width:700px){.cm-finance-item{min-height:44px}}

/* Business-readable audit differences, including long notes and warehouse names. */
.cm-business-change-table .cm-table{white-space:normal;table-layout:fixed}.cm-business-change-table th:first-child{width:30%}.cm-business-change-table td{white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top}.cm-business-change-table td:first-child{font-weight:500;color:#4c6076}

/* A single row menu groups finance and customer settings without another navigation dialog. */
.cm-action-menu-group{padding:5px 10px 3px;color:#60738a;font-size:11px;font-weight:600}
.cm-finance-item.danger{color:#af2a3d}.cm-finance-item.danger svg{color:currentColor}.cm-finance-item.danger:not(:disabled):hover,.cm-finance-item.danger:not(:disabled):focus-visible{background:#fff0f2}

/* Keep compact controls legible and usable across list, drawer and dialog states. */
.cm-switch-btn:focus-visible{outline:2px solid var(--bo-teal-700);outline-offset:3px}.cm-table-wrap:focus-visible{outline:2px solid var(--bo-teal-700);outline-offset:-2px}.cm-dialog h2,.cm-drawer h2{min-width:0;overflow-wrap:anywhere}.cm-dialog header>.cm-btn,.cm-drawer header>.cm-btn{flex-shrink:0}
@media(max-width:700px){.cm-dialog .cm-btn,.cm-drawer .cm-btn,.cm-main .cm-switch-btn{min-height:44px}.cm-dialog .cm-btn.icon-only,.cm-drawer .cm-btn.icon-only{width:44px}.cm-pagination>div{gap:5px}.cm-pagination .cm-btn{min-height:40px;padding-left:8px;padding-right:8px}.cm-dialog .cm-scheme-table select{min-width:120px}.cm-dialog .cm-review-buttons{flex-wrap:wrap}.cm-dialog .cm-review-buttons>.cm-btn{flex:1;min-width:0}}

/* Quiet close controls retain a generous hit target without competing with the title. */
.cm-dialog header>button.cm-btn.icon-only.cm-close,.cm-drawer header>button.cm-btn.icon-only.cm-close{width:36px;min-height:36px;height:36px;padding:0;border:1px solid transparent;background:transparent;color:#617187;box-shadow:none;transition:color .15s,background .15s}
.cm-dialog header .cm-close svg,.cm-drawer header .cm-close svg{width:18px;height:18px;stroke-width:1.7}
.cm-dialog header>button.cm-btn.icon-only.cm-close:hover,.cm-drawer header>button.cm-btn.icon-only.cm-close:hover{border-color:transparent;background:#f2f5f8;color:#253b52}
.cm-dialog header>button.cm-btn.icon-only.cm-close:focus-visible,.cm-drawer header>button.cm-btn.icon-only.cm-close:focus-visible{outline:2px solid var(--bo-teal-700);outline-offset:2px;background:#f2f5f8}
@media(max-width:700px){.cm-dialog header>button.cm-btn.icon-only.cm-close,.cm-drawer header>button.cm-btn.icon-only.cm-close{width:44px;min-height:44px;height:44px}}

/* Registration configuration belongs beside the review decision, not below long submitted materials. */
.cm-review-detail.is-registration .cm-review-layout{grid-template-columns:minmax(0,1fr) 360px}
.cm-review-scheme-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);gap:12px;color:#60738a;font-size:11px;padding-bottom:6px;border-bottom:1px solid var(--bo-border)}
.cm-review-scheme-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);align-items:center;gap:12px;padding:8px 0;border-bottom:1px solid #ebeff4}
.cm-review-scheme-row:last-child{border-bottom:0}.cm-review-scheme-row .cm-check{padding:0;min-height:35px;font-size:12px}.cm-review-scheme-row .cm-check input{flex:0 0 15px}.cm-review-scheme-row .cm-check span{overflow-wrap:anywhere}
.cm-review-scheme-row select{width:100%;min-width:0;min-height:35px;border:1px solid var(--bo-border-strong);border-radius:6px;padding:6px 8px;background:#fff;color:var(--bo-ink);font:inherit;font-size:12px}
.cm-review-scheme-value{font-size:12px;line-height:1.5;overflow-wrap:anywhere}.cm-review-scheme-help{margin:10px 0 0;color:#60738a;font-size:11px;line-height:1.65}
@media(min-width:781px) and (max-width:1050px){.cm-review-detail.is-registration .cm-review-layout{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:780px){.cm-review-detail.is-registration .cm-review-layout{grid-template-columns:1fr}.cm-review-scheme-row .cm-check,.cm-review-scheme-row select{min-height:44px}}

/* Dialog polish: neutral header, aligned controls and a stable action footer. */
.cm-dialog header{padding:12px 24px}
.cm-dialog header>button.cm-btn.icon-only.cm-close,.cm-drawer header>button.cm-btn.icon-only.cm-close{display:inline-flex;align-items:center;justify-content:center;gap:0;line-height:1;min-width:44px;width:44px;min-height:44px;height:44px}
.cm-dialog-body>.cm-sub+.cm-field{margin-top:14px}
.cm-dialog-body>.cm-field:last-child,.cm-dialog-body>.cm-notice:last-child{margin-bottom:0}
.cm-dialog-body>.cm-inline-actions{gap:8px}
.cm-dialog .cm-table th,.cm-dialog .cm-table td{white-space:normal;overflow-wrap:anywhere}
.cm-dialog footer{flex-wrap:wrap;gap:8px}
.cm-dialog footer>.cm-btn{flex-shrink:0}
.cm-dialog .cm-payment-values{grid-template-columns:repeat(4,minmax(0,1fr))}
.cm-dialog .cm-payment-values dd{overflow-wrap:anywhere}
@media(max-width:700px){.cm-dialog header{padding:10px 16px}.cm-dialog .cm-payment-values{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.cm-dialog .cm-facts,.cm-drawer .cm-facts{grid-template-columns:1fr}.cm-dialog .cm-account-summary,.cm-drawer .cm-account-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.cm-dialog footer>.cm-btn{flex:1 1 auto}.cm-dialog .cm-scheme-table th,.cm-dialog .cm-scheme-table td{padding:9px 8px}.cm-dialog .cm-scheme-table select{min-width:120px}}

/* Warehouse setup and decision share one review card. */
.cm-review-setup{margin-bottom:20px}.cm-review-setup>.cm-section-title{font-size:12px;font-weight:500;color:#4c6076;margin:0 0 12px}.cm-review-setup>.cm-section-title svg{width:14px;height:14px}

/* Read-only reviews must not suggest that an unprivileged user can edit a decision. */
.cm-dialog textarea[readonly],.cm-review-detail textarea[readonly]{background:#f5f7fa;color:#60738a;cursor:default}
.cm-review-summary>.cm-btn{flex-shrink:0}
.cm-review-decision .cm-note-content{white-space:pre-wrap;overflow-wrap:anywhere}
.cm-registration-archive{padding:12px 0;border-top:1px solid #e1e8f0}
.cm-registration-archive>summary{display:flex;align-items:center;flex-wrap:wrap;gap:10px;cursor:pointer;padding:8px 0;color:#31485f;font-weight:600;font-size:13px}
.cm-registration-archive[open]>summary{margin-bottom:14px}
.cm-registration-archive .cm-review-section{padding:12px 0;border:0;box-shadow:none}
.cm-registration-archive .cm-review-file{flex-wrap:wrap}
.cm-local-file-preview{margin-top:12px;padding:12px;background:#f5f8fb;border:1px solid #dce5ee;border-radius:8px}
.cm-local-file-preview img{display:block;max-width:100%;height:auto;margin:auto}
.cm-local-file-preview iframe{display:block;width:100%;height:520px;border:0;background:white}
@media(max-width:640px){.cm-review-summary{grid-template-columns:minmax(0,1fr);gap:10px}.cm-review-actions{justify-content:flex-start;flex-wrap:wrap}.cm-review-actions>.cm-btn{min-height:44px}.cm-local-file-preview iframe{height:360px}}

.cm-sales-handover {display:flex;align-items:center;gap:4px;color:#ad650e;font-size:11px;margin-top:5px;white-space:nowrap;}.cm-sales-handover svg {width:13px;height:13px;flex:none;}

/* First customer review owns the initial internal sales assignment. */
.cm-review-sales {padding-top:0;}
.cm-review-sales+.cm-review-setup {padding-top:16px;border-top:1px solid var(--bo-border);}
.cm-review-sales>.cm-field {margin-bottom:0;}
.cm-review-sales select {width:100%;min-width:0;}
.cm-review-sales-warning {margin:10px 0 0;color:#995514;font-size:12px;line-height:1.6;}
.cm-review-sales-source {margin:8px 0 0;color:#60738a;font-size:11px;line-height:1.6;}
.cm-review-sales-value {font-size:13px;font-weight:600;color:var(--bo-ink);}

/* Shared return control remains adjacent to the detail title at every width. */
.cm-heading{min-width:0}.cm-head.cm-head-with-back{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center}.cm-page-back{justify-self:start;align-self:center}.cm-head-with-back>.cm-head-actions:empty{display:none}.cm-head-with-back .cm-page-symbol{display:none}
@media(max-width:780px){.cm-review-summary{grid-template-columns:auto minmax(0,1fr);gap:10px 12px}.cm-review-back{grid-column:1;grid-row:1;align-self:center}.cm-review-identity{grid-column:2;grid-row:1}.cm-review-actions{grid-column:2;justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:700px){.cm-head.cm-head-with-back{grid-template-columns:auto minmax(0,1fr);gap:12px}.cm-head-with-back>.cm-head-actions{grid-column:2;margin-top:0;justify-content:flex-start}}

@media(max-width:700px){.cm-breadcrumb{flex-wrap:wrap;row-gap:6px}}
.cm-adjustment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.cm-adjustment-hint{margin:6px 0 16px!important}.cm-adjustment-grid select:disabled{background:#f5f7fa;color:#53667c;opacity:1}.cm-adjustment-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 16px;margin:12px 0;padding:12px;border:1px solid var(--bo-border);border-radius:6px}.cm-adjustment-history dd{font-size:12px}.cm-adjustment-overlay{justify-content:flex-end;padding:0}.cm-dialog.cm-adjustment-drawer{width:min(640px,100%);height:100dvh;max-height:100dvh;border-radius:0}.cm-adjustment-drawer form{height:100%;max-height:100dvh}.cm-adjustment-drawer .cm-dialog-body{flex:1}.cm-adjustment-drawer .cm-account-summary dd{font-size:16px}@media(max-width:520px){.cm-adjustment-grid{grid-template-columns:1fr}.cm-adjustment-history{grid-template-columns:1fr}.cm-adjustment-drawer footer{padding-bottom:max(14px,env(safe-area-inset-bottom))}}
.cm-traffic{display:block;white-space:nowrap}.cm-traffic-main{display:flex;align-items:baseline;gap:6px}.cm-traffic-main strong{font-size:13px;font-weight:600;color:var(--bo-ink);font-variant-numeric:tabular-nums}.cm-traffic .cm-traffic-over{color:#995514;font-weight:500}
.cm-traffic-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px;margin:16px 0}
.cm-dialog .cm-table.cm-tier-table,.cm-dialog .cm-table.cm-traffic-table{table-layout:fixed;width:100%}
.cm-dialog .cm-table.cm-tier-table th,.cm-dialog .cm-table.cm-tier-table td{white-space:nowrap;vertical-align:middle;height:52px;padding-top:8px;padding-bottom:8px}
.cm-tier-table input{width:100%;max-width:140px;min-height:35px;border:1px solid var(--bo-border-strong);border-radius:6px;padding:6px 10px;font:inherit;box-sizing:border-box}
.cm-dialog .cm-table .cm-col-action{text-align:right}.cm-dialog .cm-table .cm-num{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.cm-dialog .cm-table .cm-col-detail{padding-left:24px}.cm-dialog .cm-table .cm-col-status{text-align:center}
.cm-traffic-tier-actions{display:flex;align-items:center;gap:12px;margin:12px 0 16px}.cm-traffic-tier-actions .cm-sub{margin:0}
.cm-traffic-settle{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;margin:0 0 4px}.cm-traffic-settle>.cm-field{width:180px}.cm-traffic-settle>.cm-btn{min-height:35px}
.cm-traffic-result{margin-top:14px}.cm-dialog .cm-table.cm-traffic-table th{white-space:nowrap}.cm-dialog .cm-table.cm-traffic-table td{white-space:normal;vertical-align:middle}.cm-traffic-seg{display:block;white-space:nowrap;font-variant-numeric:tabular-nums}
.cm-traffic-total{display:flex;justify-content:flex-end;gap:8px;margin:10px 0 0;color:#60738a;font-size:12px}.cm-traffic-total strong{color:var(--bo-ink);font-weight:600}
@media (max-width:640px){.cm-traffic-fields{grid-template-columns:1fr}.cm-dialog .cm-table.cm-traffic-table,.cm-dialog .cm-table.cm-tier-table{table-layout:auto;min-width:520px}}
.cm-dialog .cm-table-wrap+.cm-notice{margin-top:14px}.cm-dialog .cm-section-title+.cm-table-wrap{margin-top:4px}
.cm-tag.cm-tag-custom{background:#eef8fa;color:#0a7082}.cm-traffic-main .cm-tag{margin-left:2px;padding:1px 6px}.cm-traffic-fields-2{grid-template-columns:repeat(2,minmax(0,1fr))}.cm-static{min-height:35px;display:flex;align-items:center;padding:0 10px;border-radius:6px;background:#f5f7fa;color:#53667c}.cm-title-sub{display:inline;margin:0 0 0 10px}.cm-traffic-inherit{margin:8px 0 16px}.cm-dialog .cm-check+.cm-table-wrap{margin-top:12px}
.cm-src-icon{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin-left:6px;border-radius:50%;background:#eef2f6;color:#53667c;cursor:help;vertical-align:middle}.cm-src-icon svg{width:13px;height:13px}.cm-src-icon.is-customer{background:#eef8fa;color:#0a7082}.cm-src-icon:focus-visible{outline:2px solid var(--bo-teal-600);outline-offset:2px}.cm-traffic-fields-2{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.cm-dialog .cm-section-title.cm-sub-title{font-size:13px;margin:4px 0 10px}
.cm-traffic-switch{display:flex;align-items:center;gap:14px;padding:14px 16px;margin:0 0 18px;border:1px solid var(--bo-border);border-radius:8px;background:#f6f8fa}.cm-traffic-switch>div{flex:1;min-width:0}.cm-traffic-switch strong{font-size:14px;font-weight:600;color:var(--bo-ink)}.cm-traffic-switch.is-on{border-color:#a9d6dd;background:#eef8fa}.cm-traffic-switch-state{width:28px;font-size:12px;font-weight:600;color:#53667c}.cm-traffic-switch.is-on .cm-traffic-switch-state{color:#0a7082}
.cm-switch-toggle{position:relative;flex-shrink:0;width:44px;height:24px;border:0;border-radius:12px;background:#c5cfda;cursor:pointer;padding:0;transition:background .15s}.cm-switch-toggle span{position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0003;transition:left .15s}.cm-switch-toggle[aria-checked=true]{background:var(--bo-teal-600)}.cm-switch-toggle[aria-checked=true] span{left:23px}.cm-switch-toggle:focus-visible{outline:2px solid var(--bo-teal-600);outline-offset:2px}.cm-switch-toggle:disabled{opacity:.5;cursor:not-allowed}
.cm-btn-tag{margin-left:6px;padding:1px 6px}
