#cw-collections-work{--ar-bg:#f7f9f5;--ar-panel:#fff;--ar-soft:#f1f5ee;--ar-header:#edf3e9;--ar-grid:#dbe4d7;--ar-text:#253228;--ar-muted:#69766d;--ar-green:#2f7d24;--ar-blue:#e9f2f8;--ar-amber:#fff4d8;--ar-red:#fbe5e3;color:var(--ar-text);background:var(--ar-bg);min-height:calc(100vh - 52px);padding:22px}#cw-collections-work *{box-sizing:border-box}#cw-collections-work button,#cw-collections-work input,#cw-collections-work select{font:inherit}.ar-sheet-page{position:relative;min-height:680px}.ar-loading,.ar-error{padding:24px}.ar-error{color:#a33c32}.ar-sheet-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:15px}.ar-sheet-heading h1{font-size:24px;line-height:1.2;margin:0 0 4px;font-weight:600}.ar-sheet-heading p{color:var(--ar-muted);font-size:13px;margin:0}.ar-sheet-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.ar-sheet-actions button,.ar-side-panel button,.ar-column-tools button{min-height:36px;border:1px solid var(--ar-grid);border-radius:7px;background:var(--ar-panel);color:var(--ar-text);padding:0 12px;display:inline-flex;gap:7px;align-items:center;justify-content:center}.ar-sheet-actions button:hover,.ar-side-panel button:hover,.ar-column-tools button:hover{background:var(--ar-soft)}.ar-sheet-actions svg,.ar-side-panel svg{width:15px;height:15px}.ar-primary{background:var(--ar-green)!important;color:#fff!important;border-color:var(--ar-green)!important}.ar-aging-strip{background:var(--ar-panel);border:1px solid var(--ar-grid);border-radius:9px;padding:10px 14px;margin-bottom:12px;display:flex;align-items:center;overflow-x:auto}.ar-aging-strip>div{min-width:142px;padding:2px 18px 2px 0;margin-right:18px;border-right:1px solid var(--ar-grid)}.ar-aging-strip>div:last-child{border-right:0;margin-right:0}.ar-aging-strip small{display:block;color:var(--ar-muted);font-size:11px;margin-bottom:3px;white-space:nowrap}.ar-aging-strip strong{display:block;font-size:16px;font-weight:600;white-space:nowrap}.ar-aging-strip strong.alert{color:#a33c32}.ar-sheet-shell{background:var(--ar-panel);border:1px solid var(--ar-grid);border-radius:9px;overflow:hidden}.ar-sheet-toolbar{min-height:50px;padding:8px 10px;border-bottom:1px solid var(--ar-grid);display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.ar-filters{display:flex;align-items:center;gap:8px;flex:1 1 520px;min-width:0}.ar-filters input,.ar-filters select{min-height:34px;border:1px solid var(--ar-grid);border-radius:6px;background:var(--ar-bg);color:var(--ar-text);padding:0 9px}.ar-filters input{min-width:220px;max-width:360px;flex:1 1 260px}.ar-sheet-toolbar small{color:var(--ar-muted);font-size:11px;white-space:nowrap}.ar-grid-wrap{overflow:auto;max-width:100%;background:var(--ar-panel);max-height:calc(100vh - 315px);min-height:330px}.ar-grid-wrap table{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;table-layout:fixed;font-size:12px}.ar-grid-wrap th,.ar-grid-wrap td{border-right:1px solid var(--ar-grid);border-bottom:1px solid var(--ar-grid);padding:8px 9px;height:44px;vertical-align:middle;background:var(--ar-panel);overflow:hidden}.ar-grid-wrap th{position:sticky;top:0;z-index:12;background:var(--ar-header);color:var(--ar-muted);text-align:left;font-size:11px;font-weight:600;line-height:1.25}.ar-grid-wrap tbody tr:hover td{background:var(--ar-soft)}.ar-grid-wrap .ar-sticky{position:sticky;left:var(--ar-left);z-index:8}.ar-grid-wrap th.ar-sticky{z-index:16;background:var(--ar-header)}.ar-grid-wrap tbody tr:hover td.ar-sticky{background:var(--ar-soft)}.ar-grid-wrap td.ar-sticky:nth-child(3){box-shadow:3px 0 0 rgba(166,180,161,.45)}.ar-editable{background:var(--ar-blue)!important}.ar-computed{color:var(--ar-text)}.ar-computed::after{content:"fx";color:var(--ar-muted);font-size:9px;margin-left:5px;opacity:.72}.ar-computed.ar-number,.ar-computed.ar-invoice,.ar-computed:has(.ar-rank){white-space:nowrap}.ar-number{text-align:right;font-variant-numeric:tabular-nums}.ar-invoice{color:#245f1c;font-weight:600}.ar-editable input:not([type=checkbox]),.ar-editable select{width:100%;height:30px;border:0;background:transparent;color:var(--ar-text);padding:0;outline:0;min-width:0}.ar-editable input:focus,.ar-editable select:focus{outline:2px solid var(--ar-green);outline-offset:3px}.ar-editable input[type=checkbox]{width:17px;height:17px;accent-color:var(--ar-green);display:block;margin:auto}.ar-rank{display:inline-flex;align-items:center;justify-content:center;min-width:25px;min-height:24px;border-radius:5px;font-weight:600}.ar-rank-1{background:var(--ar-red)}.ar-rank-2{background:var(--ar-amber)}.ar-rank-3{background:var(--ar-soft)}.ar-empty{text-align:center;color:var(--ar-muted);height:160px!important}.ar-formula-bar{min-height:34px;display:flex;align-items:center;gap:10px;padding:7px 12px;color:var(--ar-muted);font-size:11px;background:var(--ar-soft)}.ar-formula-bar strong{color:var(--ar-text);font-weight:500}.ar-saved{margin-left:auto;color:#245f1c}.ar-scrim{position:fixed;inset:0;background:rgba(15,27,16,.26);z-index:80;display:none}.ar-scrim.open{display:block}.ar-side-panel{position:fixed;top:0;right:0;bottom:0;width:min(430px,92vw);z-index:81;background:var(--ar-panel);border-left:1px solid var(--ar-grid);box-shadow:0 12px 34px rgba(30,55,30,.18);transform:translateX(102%);transition:transform .18s ease;display:flex;flex-direction:column}.ar-side-panel.open{transform:translateX(0)}.ar-side-panel header{padding:18px 20px;border-bottom:1px solid var(--ar-grid);display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.ar-side-panel header h2{font-size:18px;margin:0 0 4px;font-weight:600}.ar-side-panel header p{color:var(--ar-muted);font-size:12px;line-height:1.45;margin:0}.ar-side-panel header button{width:34px;height:34px;padding:0}.ar-side-panel form{display:flex;min-height:0;flex:1;flex-direction:column}.ar-panel-body{padding:18px 20px;overflow:auto;flex:1}.ar-panel-body h3{font-size:13px;margin:0 0 10px;font-weight:600}.ar-panel-body h3:not(:first-child){margin-top:24px}.ar-panel-body>label{display:grid;grid-template-columns:1fr 130px;gap:10px;align-items:center;margin:9px 0;font-size:12px}.ar-panel-body>label span{display:flex;align-items:center;border:1px solid var(--ar-grid);border-radius:6px;background:var(--ar-bg);min-height:34px;padding:0 8px}.ar-panel-body>label input{width:100%;border:0;background:transparent;text-align:right;outline:0;color:var(--ar-text)}.ar-panel-body>label b{font-weight:500;color:var(--ar-muted)}.ar-logic-note{background:var(--ar-soft);padding:12px;border-radius:7px;color:var(--ar-muted);font-size:12px;line-height:1.5;margin-top:20px}.ar-side-panel footer{display:flex;gap:8px;justify-content:flex-end;padding:14px 20px;border-top:1px solid var(--ar-grid)}.ar-columns-panel{width:min(470px,94vw)}.ar-column-tools{display:flex;gap:8px;margin-bottom:12px}.ar-column-tools input{flex:1;min-height:34px;border:1px solid var(--ar-grid);border-radius:6px;padding:0 9px;background:var(--ar-bg);color:var(--ar-text)}.ar-column-list{display:grid;grid-template-columns:1fr 1fr;gap:3px 14px}.ar-column-list label{display:flex;align-items:center;gap:8px;min-height:31px;font-size:12px}.ar-column-list input{accent-color:var(--ar-green)}.ar-sheet-toast{position:fixed;right:24px;bottom:24px;z-index:100;background:#253228;color:#fff;border-radius:7px;padding:10px 14px;box-shadow:0 8px 24px rgba(0,0,0,.18);font-size:13px}.ar-sheet-toast.error{background:#a33c32}@media(max-width:720px){#cw-collections-work{padding:16px 12px}.ar-sheet-heading{flex-direction:column}.ar-sheet-actions{justify-content:flex-start}.ar-aging-strip>div{min-width:126px}.ar-column-list{grid-template-columns:1fr}.ar-grid-wrap{max-height:calc(100vh - 370px)}}
#cw-collections-work .ar-computed::after{content:none}
#cw-collections-work .ar-grid-wrap th.ar-draggable{cursor:grab;user-select:none}
#cw-collections-work .ar-grid-wrap th.ar-draggable.dragging{opacity:.45}
#cw-collections-work .ar-grid-wrap th.ar-draggable.drag-target{box-shadow:inset 3px 0 var(--ar-green)}
#cw-collections-work .ar-column-list label[draggable=true]{cursor:grab;border-radius:5px;padding:0 4px}
#cw-collections-work .ar-column-list label.dragging{opacity:.45}
#cw-collections-work .ar-column-list label.drag-target{background:var(--ar-soft);outline:1px solid var(--ar-green)}
#cw-collections-work .ar-column-grip{display:inline-flex;color:var(--ar-muted)}
#cw-collections-work .ar-column-grip svg{width:13px;height:13px}
