.cb-workspace { color:var(--text); width:100%; min-width:0; font-size:13px; line-height:1.5; letter-spacing:0; }
.cb-workspace *, .cb-dialog * { box-sizing:border-box; letter-spacing:0; }
#clientsView:has(#clientWorkspace)>.client-layout { display:none; }
#billingView:not(.cb-forecast-active)>.billing-layout { display:none; }
#billingView.cb-forecast-active>.billing-layout>:not(.program-lines-panel):not(.program-line-detail-panel) { display:none; }
.cb-workspace button, .cb-dialog button, .cb-workspace input, .cb-workspace select, .cb-dialog input, .cb-dialog select, .cb-dialog textarea { font:inherit; }
.cb-workspace button, .cb-dialog button { cursor:pointer; }
.cb-workspace button:disabled { cursor:default; opacity:.5; }
.cb-workspace h2 { font-size:25px; line-height:1.3; margin:0; }
.cb-workspace h3 { font-size:14px; margin:0 0 16px; }
.cb-heading { display:flex; justify-content:space-between; align-items:center; gap:20px; margin:12px 0 24px; }
.cb-heading>div { min-width:0; max-width:100%; }.cb-heading h2, .cb-dialog h2 { overflow-wrap:anywhere; }
.cb-heading p { color:var(--muted); font-size:12px; margin:7px 0 0; }
.cb-eyebrow { font-size:10px; color:var(--accent); font-weight:700; display:block; margin-bottom:6px; }
.cb-actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.cb-command { display:inline-flex; gap:7px; align-items:center; justify-content:center; min-height:34px; border-radius:4px; padding:7px 11px; }
.cb-icon { display:inline-block; flex:none; width:17px; height:17px; background:currentColor; mask:var(--cb-icon) center/contain no-repeat; -webkit-mask:var(--cb-icon) center/contain no-repeat; }
.cb-tabs { display:flex; gap:22px; border-bottom:1px solid var(--line); overflow:auto; margin-bottom:22px; }
.cb-tabs button { border:0; border-bottom:2px solid transparent; background:none; color:var(--muted); padding:12px 0; white-space:nowrap; border-radius:0; font-size:12px; }
.cb-tabs button[aria-current=page] { border-color:var(--accent); color:var(--accent); font-weight:650; }
.cb-filters { display:flex; gap:16px; justify-content:space-between; align-items:end; flex-wrap:wrap; margin:16px 0; }
.cb-field { display:flex; flex-direction:column; gap:6px; min-width:0; font-size:12px; }
.cb-field>span { color:var(--muted); }
.cb-field input, .cb-field select, .cb-field textarea { width:100%; min-width:0; background-color:var(--control); border:1px solid var(--line-strong); border-radius:4px; color:var(--text); padding:8px 10px; }
.cb-field select { min-width:155px; padding-right:30px; }
.cb-search { display:flex; align-items:center; gap:9px; width:min(430px,100%); background:var(--control); border:1px solid var(--line-strong); border-radius:4px; padding:0 11px; color:var(--muted); min-height:36px; }
.cb-search input { border:0; padding:8px 0; color:var(--text); background:none; width:100%; min-width:0; outline:none; box-shadow:none; }
.cb-search:focus-within { outline:2px solid var(--accent); outline-offset:1px; }
.cb-scope { justify-content:flex-end; }
.cb-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); padding:20px 0 26px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); margin:20px 0 10px; }
.cb-summary button { display:flex; flex-direction:column; align-items:flex-start; gap:10px; color:var(--text); padding:0 22px; background:none; border:0; border-right:1px solid var(--line); border-radius:0; text-align:left; min-width:0; }
.cb-summary button:first-child { padding-left:0; }.cb-summary button:last-child { border-right:0; }
.cb-summary button span { font-size:12px; color:var(--muted); }.cb-summary strong { font-size:25px; overflow-wrap:anywhere; }
.cb-table-scroll { overflow:auto; max-width:100%; border:1px solid var(--line); border-radius:5px; }
.cb-workspace table { width:100%; border-collapse:collapse; font-size:12px; margin:0; background:var(--panel); }
.cb-workspace th { text-align:left; padding:12px 14px; background:var(--panel-soft); color:var(--muted); font-size:11px; font-weight:650; white-space:nowrap; border:0; border-bottom:1px solid var(--line); }
.cb-workspace td { padding:15px 14px; border:0; border-bottom:1px solid var(--line); vertical-align:middle; color:var(--text); }
.cb-workspace tr:last-child td { border-bottom:0; }.cb-workspace tbody tr:hover { background:var(--hover); }
.cb-workspace td small { display:block; color:var(--muted); font-size:10px; margin-top:4px; max-width:240px; overflow-wrap:anywhere; }
.cb-workspace td .cb-link { display:block; }.cb-workspace .cb-description { min-width:180px; max-width:320px; overflow-wrap:anywhere; }
.cb-workspace input[type=checkbox] { width:15px; height:15px; accent-color:var(--accent); }
.cb-select-cell { width:36px; }.cb-link { color:var(--accent); background:none; border:0; text-align:left; padding:0; font:inherit; text-decoration:none; line-height:1.5; overflow-wrap:anywhere; }
.cb-link:hover { text-decoration:underline; }.cb-back { display:flex; align-items:center; gap:7px; margin-bottom:16px; }.cb-back .cb-icon { transform:rotate(180deg); }
.cb-account { display:flex; gap:12px; align-items:center; min-width:180px; }.cb-account .cb-link { font-weight:650; }.cb-initials { width:36px; height:36px; display:grid; place-items:center; border-radius:5px; background:var(--panel-soft); color:var(--accent); font-size:13px; flex:none; }
.cb-badge { display:inline-flex; align-items:center; font-size:10px; padding:3px 7px; border-radius:4px; white-space:nowrap; margin:2px 3px 2px 0; background:var(--panel-soft); color:var(--muted); font-weight:600; }
.cb-aging { display:grid; gap:18px; }.cb-aging>div { display:grid; grid-template-columns:1fr auto; gap:7px; font-size:12px; }.cb-aging span { color:var(--muted); }.cb-aging progress { grid-column:1/-1; width:100%; height:6px; accent-color:var(--accent); }
.cb-green { background:#e7f5ed; color:#17613c; }.cb-amber { background:#fff2d5; color:#805600; }.cb-red { background:#fcebed; color:#ad263f; }.cb-danger { color:#b4233c; }
:root[data-theme=dark] .cb-green { background:#19372d; color:#8cd5ae; }:root[data-theme=dark] .cb-amber { background:#3c3220; color:#efd086; }:root[data-theme=dark] .cb-red { background:#40232d; color:#f0a2b2; }:root[data-theme=dark] .cb-danger { color:#f0a2b2; }
.cb-empty { padding:42px 18px; color:var(--muted); text-align:center; font-size:13px; }.cb-empty button { margin-top:14px; }
.cb-detail-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:32px; }.cb-section { padding:22px 0; border-bottom:1px solid var(--line); min-width:0; }.cb-section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.cb-facts { margin:0; display:grid; gap:16px; }.cb-facts>div { display:grid; grid-template-columns:140px 1fr; gap:16px; }.cb-facts dt { color:var(--muted); font-size:12px; }.cb-facts dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; }
.cb-activity { list-style:none; padding:0; margin:0; }.cb-activity li { display:flex; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }.cb-activity .cb-icon { color:var(--accent); margin-top:2px; }.cb-activity strong,.cb-activity span,.cb-activity small { display:block; }.cb-activity strong { font-size:12px; }.cb-activity span,.cb-activity small { font-size:11px; color:var(--muted); margin-top:3px; }
.cb-bars { height:230px; display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:20px; border-bottom:1px solid var(--line); margin-top:20px; }.cb-bars>div { display:flex; flex-direction:column; min-width:0; }.cb-bar-pair { height:195px; display:flex; align-items:end; justify-content:center; gap:5px; }.cb-bar-pair i,.cb-bar-pair b { display:block; width:24px; max-width:42%; background:#4a86e8; min-height:1px; }.cb-bar-pair b { background:#32a587; }.cb-bars span { font-size:10px; color:var(--muted); margin-top:12px; text-align:center; }.cb-chart-legend { display:flex; gap:20px; font-size:11px; color:var(--muted); }.cb-chart-legend span:before { content:""; display:inline-block; width:7px; height:7px; background:#4a86e8; margin-right:6px; }.cb-chart-legend span:last-child:before { background:#32a587; }.cb-chart-data { margin-top:12px; font-size:11px; }
.cb-notice:empty { display:none; }.cb-notice { padding:10px 0; }.cb-refresh { margin-top:20px; font-size:11px!important; }
.cb-form { display:flex; flex-direction:column; gap:20px; }.cb-form fieldset { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding:18px 0; border:0; border-top:1px solid var(--line); margin:0; min-width:0; }.cb-form legend { font-size:13px; font-weight:650; padding:0 12px 0 0; }.cb-wide { grid-column:1/-1; }
.cb-dialog { width:min(720px,calc(100% - 24px)); max-height:90dvh; overflow:auto; background:var(--panel); color:var(--text); border:1px solid var(--line-strong); border-radius:6px; padding:24px; font-size:13px; }.cb-dialog::backdrop { background:#0008; }.cb-dialog header { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }.cb-dialog h2 { font-size:20px; margin:0; }.cb-dialog-footer,.cb-editor-footer { display:flex; align-items:center; justify-content:flex-end; gap:16px; border-top:1px solid var(--line); padding-top:20px; }.cb-editor-footer { position:sticky; bottom:0; background:var(--bg); padding:16px 0; margin-top:20px; }.cb-editor-footer>span { margin-right:auto; color:var(--muted); }
.cb-paper { background:#fff; color:#172033; border:1px solid #dfe3ea; border-top:3px solid #4775b5; max-width:1050px; margin:24px auto; padding:34px; font-size:12px; }.cb-paper header { display:flex; justify-content:space-between; gap:30px; border-bottom:1px solid #dfe3ea; padding-bottom:24px; }.cb-paper header>div:last-child { text-align:right; }.cb-paper h2 { font-size:22px; }.cb-paper h3 { font-size:17px; margin:6px 0; }.cb-paper p { white-space:pre-wrap; overflow-wrap:anywhere; color:#596579; margin:6px 0; }.cb-paper-details { display:grid; grid-template-columns:1fr 1fr; gap:24px; padding:25px 0; }.cb-paper-details strong { display:block; margin-top:8px; }.cb-paper dl { display:grid; grid-template-columns:110px 1fr; gap:7px; margin:0; }.cb-paper dd { margin:0; text-align:right; }.cb-paper dt,.cb-paper small { color:#596579; }.cb-paper .cb-table-scroll { border:0; }.cb-paper table { background:white; min-width:570px; }.cb-paper th { background:#edf1f6; color:#596579; border-color:#dfe3ea; }.cb-paper td { color:#172033; border-color:#dfe3ea; font-size:11px; }.cb-paper td small { color:#596579; }.cb-paper tbody tr:hover { background:#f8fafc; }.cb-paper-total { display:flex; flex-direction:column; margin:25px 0 20px auto; gap:10px; width:min(320px,100%); }.cb-paper-total>span,.cb-paper-total>strong { display:flex; justify-content:space-between; gap:16px; }.cb-paper-total>strong { border-top:1px solid #dfe3ea; padding-top:12px; font-size:15px; }.cb-paper footer { border-top:1px solid #dfe3ea; padding-top:16px; }.cb-balance { display:flex; flex-wrap:wrap; gap:24px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line); }
@media(max-width:1000px) { .cb-detail-grid { grid-template-columns:minmax(0,1fr); gap:0; }.cb-summary strong { font-size:21px; }.cb-summary button { padding:0 12px; } }
.cb-paper header>div { min-width:0; }.cb-paper h2, .cb-paper h3, .cb-paper dd { overflow-wrap:anywhere; }
.cb-chart-data { overflow:auto; max-width:100%; }
.cb-dialog[open] { display:flex; flex-direction:column; padding:0; overflow:hidden; }
.cb-dialog .cb-dialog-heading { flex:none; margin:0; padding:18px 24px; border-bottom:1px solid var(--line); background:var(--panel); }
.cb-dialog-body { min-height:0; overflow:auto; padding:18px 24px 24px; overscroll-behavior:contain; }
.cb-close { display:grid; place-items:center; flex:none; width:36px; height:36px; padding:0; border:1px solid var(--line-strong); border-radius:4px; background:var(--control); color:var(--text); }
.cb-close:hover { background:var(--hover); }.cb-close:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.cb-dialog [data-cb-dialog-error]:not(:empty) { padding:0 0 16px; }
@media(max-width:650px) { .cb-workspace .cb-filters>.cb-field { flex:1 1 155px; }.cb-bars { gap:8px; } }
@media(max-width:650px) { .cb-heading { align-items:flex-start; flex-direction:column; gap:12px; }.cb-heading h2 { font-size:23px; }.cb-summary { grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }.cb-summary button { border:0; padding:0; }.cb-filters { align-items:stretch; }.cb-filters>.cb-field { flex:1; }.cb-scope { justify-content:flex-start; }.cb-search { width:100%; }.cb-table-scroll table { min-width:660px; }.cb-tabs { gap:18px; }.cb-form fieldset { grid-template-columns:minmax(0,1fr); }.cb-paper { padding:20px 16px; }.cb-paper header,.cb-paper-details { display:block; }.cb-paper header>div:last-child { text-align:left; margin-top:20px; }.cb-paper dl { margin-top:20px; }.cb-editor-footer { flex-wrap:wrap; }.cb-dialog { padding:18px; }.cb-facts>div { grid-template-columns:115px minmax(0,1fr); } }
