#collectionsWorkspace { background:#fff; color:#29425e; border:1px solid #dbe5f0; border-radius:4px; padding:0 16px 12px; font-size:13px; min-width:0; }
#collectionsLegacy[hidden], #collectionsWorkspace [hidden], .cw-dialog [hidden] { display:none!important; }
.is-collections-workspace #collectionCommand, .is-collections-workspace #roleNotice, .is-collections-workspace #workbenchStatusBar { display:none!important; }
.is-collections-workspace #invoiceLedgerSearch { display:none!important; }
#collectionsWorkspace *, .cw-dialog * { box-sizing:border-box; letter-spacing:0; }
#collectionsWorkspace h2, .cw-dialog h2 { font-size:20px; margin:0; line-height:1.4; }
#collectionsWorkspace h3, .cw-dialog h3 { font-size:14px; margin:0; line-height:1.4; }
#collectionsWorkspace button, #collectionsWorkspace input, #collectionsWorkspace select, .cw-dialog button, .cw-dialog input, .cw-dialog select, .cw-dialog textarea { font:inherit; box-shadow:none; }
#collectionsWorkspace button, .cw-dialog button { cursor:pointer; }
#collectionsWorkspace button:disabled, .cw-dialog button:disabled { opacity:.45; cursor:default; }
#collectionsWorkspace :focus-visible, .cw-dialog :focus-visible { outline:2px solid #267dcc; outline-offset:2px; }
.cw-heading, .cw-heading>div, .cw-filters, .cw-actions, .cw-section-heading, .cw-pager, .cw-pager>div, .cw-period { display:flex; align-items:center; gap:10px; }
.cw-heading { justify-content:space-between; padding:14px 0 12px; }.cw-heading>div { align-items:baseline; flex-wrap:wrap; }
.cw-muted, #collectionsWorkspace small, .cw-dialog small { color:#78899d; font-size:12px; font-weight:400; }
.cw-tabs { display:flex; gap:25px; border-bottom:1px solid #dbe5f0; }.cw-tabs button { border:0; border-bottom:2px solid transparent; padding:10px 0; background:none; color:#63788e; }.cw-tabs button[aria-current=page] { border-bottom-color:#247bd0; color:#1466bb; font-weight:650; }
.cw-filters { flex-wrap:wrap; padding:12px 0; }.cw-filters label, .cw-period label { display:flex; align-items:center; gap:8px; }
.cw-filters label>span, .cw-period label { white-space:nowrap; }
#collectionsWorkspace input, #collectionsWorkspace select { height:32px; min-height:32px; border:1px solid #d8e3ef; border-radius:4px; padding:4px 8px; color:#29425e; background:#fff; }
#collectionsWorkspace select { max-width:205px; padding-right:26px; }
.cw-search { position:relative; flex:0 1 320px; }.cw-search>svg { width:16px; position:absolute; left:10px; color:#8499af; }#collectionsWorkspace .cw-search input { padding-left:34px; width:100%; }.cw-filters>#cwScope { margin-left:auto; }
#collectionsWorkspace .cw-icon, .cw-dialog .cw-icon { width:30px; min-width:30px; height:30px; padding:6px; display:inline-flex; align-items:center; justify-content:center; background:#fff; border:1px solid #dbe5f0; border-radius:4px; color:#2875bd; }
#collectionsWorkspace svg, .cw-dialog button svg { width:15px; height:15px; flex-shrink:0; }
#collectionsWorkspace .ghost-button, .cw-dialog .ghost-button, .cw-dialog .primary-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:6px 10px; min-height:32px; border-radius:4px; }
.cw-dialog .primary-button { border:1px solid #176be0; background:#176be0; color:#fff; }
.cw-active-filters { display:flex; gap:8px; padding:0 0 10px; }.cw-active-filters button { display:flex; align-items:center; gap:6px; border:0; background:#edf5ff; color:#176bbb; border-radius:3px; padding:5px 8px; }
.cw-kpis { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); border-block:1px solid #e3eaf2; padding:13px 0; }
.cw-kpis button { text-align:left; background:none; border:0; border-right:1px solid #e3eaf2; display:flex; flex-direction:column; gap:5px; padding:0 18px; color:#3c5672; }.cw-kpis button:first-child { padding-left:0; }.cw-kpis button:last-child { border-right:0; }
.cw-kpis strong { font-size:24px; line-height:1.2; color:#217ac4; font-variant-numeric:tabular-nums; }.cw-kpis button:nth-child(2) strong, .cw-kpis button:nth-child(4) strong { color:#d95555; }.cw-kpis button:nth-child(3) strong { color:#15958a; }.cw-kpis button:nth-child(5) strong { color:#a36e1d; }
.cw-charts { display:grid; grid-template-columns:1fr 1fr; gap:22px; padding:13px 0; border-bottom:1px solid #e3eaf2; }.cw-charts>section { min-width:0; }.cw-charts>section+section { border-left:1px solid #e3eaf2; padding-left:22px; }
.cw-charts header { display:flex; align-items:center; justify-content:space-between; padding-bottom:8px; }.cw-charts p { margin:8px 0 0; }.cw-chart-bars { max-height:184px; overflow-y:auto; }
.cw-chart-bars button { display:grid; grid-template-columns:90px minmax(50px,1fr) 100px 34px; align-items:center; gap:10px; width:100%; min-height:30px; padding:4px 2px; background:none; border:0; text-align:left; color:#38536e; }.cw-chart-bars button:hover { background:#f1f7fd; }.cw-chart-bars strong { text-align:right; font-size:13px; font-variant-numeric:tabular-nums; }
.cw-track { display:block; height:10px; background:#f0f4f8; overflow:hidden; }.cw-track i { display:block; height:100%; background:#327fc2; }.cw-charts>section+section .cw-track i { background:#159b91; }.cw-track .is-unknown { background:#98a8b8!important; }
.cw-section-heading { justify-content:space-between; padding:12px 0; min-height:52px; }.cw-section-heading>div:first-child { display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.cw-segment { display:flex; border:1px solid #dbe5f0; border-radius:4px; overflow:hidden; flex-shrink:0; }.cw-segment button { border:0; padding:6px 10px; background:#f5f8fc; color:#61758e; }.cw-segment button[aria-pressed=true] { background:#e7f1ff; color:#156bc2; font-weight:650; }
.cw-period { padding:12px 0; border-bottom:1px solid #e3eaf2; flex-wrap:wrap; }.cw-table-scroll { max-height:570px; overflow:auto; }
.cw-table { width:100%; table-layout:fixed; border-collapse:collapse; min-width:960px; }.cw-table th { position:sticky; top:0; background:#f3f7fb; color:#5e7390; font-weight:600; padding:10px 9px; z-index:1; text-align:left; }
.cw-table th:nth-child(1) { width:20%; }.cw-table th:nth-child(2) { width:9%; }.cw-table th:nth-child(3) { width:12%; }.cw-table th:nth-child(4) { width:16%; }.cw-table th:nth-child(5) { width:17%; }.cw-table th:nth-child(6) { width:19%; }.cw-table th:nth-child(7) { width:7%; }
.cw-activity-table th:nth-child(1) { width:11%; }.cw-activity-table th:nth-child(2) { width:16%; }.cw-activity-table th:nth-child(3) { width:10%; }.cw-activity-table th:nth-child(4) { width:23%; }.cw-activity-table th:nth-child(5) { width:22%; }.cw-activity-table th:nth-child(6) { width:12%; }.cw-activity-table th:nth-child(7) { width:6%; }
.cw-table td { padding:9px; border-bottom:1px solid #e6edf5; line-height:1.5; vertical-align:middle; overflow-wrap:anywhere; }.cw-table td small { display:block; margin-top:2px; }.cw-table .cw-money { text-align:right; font-variant-numeric:tabular-nums; }.cw-money strong { color:#224b72; }
.cw-group-row { background:#fff; }.cw-child-row { background:#f7faff; }.cw-child-row td:first-child { padding-left:28px; }.cw-clamp { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }.cw-wrap { white-space:pre-wrap; }
.cw-text-button { color:#146fbd; font-weight:600!important; border:0; background:none; padding:0; text-align:left; overflow-wrap:anywhere; }.cw-text-button svg { vertical-align:middle; margin-right:4px; }.cw-row-actions { white-space:nowrap; }.cw-row-actions button+button { margin-left:3px; }
.cw-tag { display:inline-block; font-size:12px; border-radius:3px; background:#edf3fa; padding:2px 5px; color:#527395; }.cw-tag.is-danger { background:#fff0f0; color:#c94444; }.cw-tag.is-warn { background:#fff6e5; color:#a7751f; }.cw-tag.is-good { background:#eaf7f3; color:#158c78; }
.cw-empty { text-align:center; height:110px; color:#8190a4; }.cw-pager { justify-content:space-between; padding-top:10px; }
.cw-dialog { width:min(920px,calc(100vw - 50px)); max-height:90vh; padding:0; border:1px solid #d6e1ed; border-radius:6px; color:#29425e; font:13px/1.5 Arial,'Microsoft YaHei',sans-serif; }.cw-dialog::backdrop { background:#162a4090; }
.cw-dialog>header { display:flex; justify-content:space-between; align-items:center; padding:15px 20px; border-bottom:1px solid #dce6f0; }.cw-detail-body { max-height:calc(90vh - 85px); overflow:auto; padding:14px 20px; }
.cw-related { display:flex; gap:8px; flex-wrap:wrap; padding-bottom:12px; }.cw-related button { border:0; background:#f3f6fa; color:#5a7694; padding:5px 10px; border-radius:3px; }.cw-related button[aria-pressed=true] { background:#e6f1ff; color:#186cbb; }
.cw-detail-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; padding:12px 0; border-block:1px solid #e5edf5; }.cw-detail-metrics span { display:flex; flex-direction:column; gap:5px; color:#7186a0; }.cw-detail-metrics strong { font-size:21px; color:#2678bd; }
.cw-detail-fields { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:14px 0; }.cw-detail-fields dt { color:#8292a6; }.cw-detail-fields dd { margin:4px 0 0; overflow-wrap:anywhere; }.cw-detail-copy p { margin:4px 0 12px; white-space:pre-wrap; overflow-wrap:anywhere; }
.cw-dialog form { border-top:1px solid #e2eaf3; margin-top:15px; padding-top:14px; }.cw-dialog form h3 { padding-bottom:10px; }.cw-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px 18px; }.cw-form-grid label { display:flex; flex-direction:column; gap:6px; min-width:0; }
.cw-form-grid input, .cw-form-grid select, .cw-form-grid textarea { width:100%; border:1px solid #d3e0ee; border-radius:4px; padding:7px 9px; color:#29425e; min-height:34px; background:#fff; }.cw-wide { grid-column:1 / -1; }.cw-dialog footer { display:flex; justify-content:flex-end; padding:12px 0; }.cw-form-error { color:#c74444; background:#fff2f2; padding:8px; }
.cw-history { margin-top:12px; padding-top:14px; border-top:1px solid #e3ebf4; }.cw-history article { border-bottom:1px solid #e8eef5; padding:12px 0; }.cw-history article header { display:flex; gap:12px; align-items:center; }.cw-history p { margin:5px 0; white-space:pre-wrap; overflow-wrap:anywhere; }
#cwOwnerForm fieldset { display:flex; flex-wrap:wrap; gap:12px; border:1px solid #dbe5f0; }#cwOwnerForm input { width:auto; }
@media (max-width:1400px) { .cw-chart-bars button { grid-template-columns:85px minmax(30px,1fr) 85px 30px; gap:7px; }.cw-table-scroll { max-height:530px; }.cw-kpis strong { font-size:21px; }.cw-table { min-width:1030px; } }
@media (max-width:1000px) { .cw-charts { grid-template-columns:1fr; }.cw-charts>section+section { border-left:0; padding-left:0; }.cw-heading { flex-wrap:wrap; }.cw-kpis { grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 0; }.cw-tabs { gap:14px; flex-wrap:wrap; }.cw-section-heading { flex-wrap:wrap; }.cw-detail-fields { grid-template-columns:1fr 1fr; } }
