.ec-category-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;padding:7px;background:#eef3fc;border-radius:14px;margin:0 0 22px}.ec-category-tabs button{border:0;background:transparent;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:8px;padding:14px 8px;color:#7d8fa9;font:500 13px inherit;cursor:pointer;line-height:1.5}.ec-category-tabs .icon{width:18px;height:18px;flex-shrink:0}.ec-category-tabs small{font-size:11px;color:#9baac1}.ec-category-tabs [aria-selected=true]{background:#fff;color:#3264dc;box-shadow:0 3px 12px #2f5ec10b}.ec-category-tabs [aria-selected=true] small{color:#6c95e5}.ec-four{grid-template-columns:repeat(4,minmax(0,1fr))}.ec-special-query .ec-filter-grid{grid-template-columns:1.2fr 1fr 1fr .75fr 1fr 1fr}.ec-special-query .ec-query-actions{grid-column:1/-1;justify-content:flex-end;grid-row:auto}.ec-special-query .ec-field{min-width:0}.ec-category-warning{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:12px 18px;background:#fff8e9;color:#ab7d37;border:1px solid #f7edd3;border-radius:10px;margin:-8px 0 20px;font-size:12px}.ec-methods{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}.ec-methods button{position:relative;border:1px solid #e9eef8;background:#fff;border-radius:12px;padding:17px 17px 16px;text-align:left;display:grid;gap:9px;cursor:pointer;color:#627c9d;min-width:0}.ec-methods button:hover{border-color:#c9dbfb}.ec-methods button[aria-selected=true]{border-color:#92b4fc;background:linear-gradient(120deg,#f2f6ff,#fafcff);box-shadow:0 5px 15px #386ded08}.ec-method-number{display:flex;align-items:center;justify-content:center;width:25px;height:25px;border-radius:8px;background:#eff4fc;color:#8aa7ce;font-size:11px}.ec-methods [aria-selected=true] .ec-method-number{background:#3b70ed;color:#fff}.ec-methods b{font-size:13px;line-height:1.7;font-weight:600}.ec-methods small{font-size:11px;color:#9aacbf;line-height:1.7}.ec-methods .icon{position:absolute;right:14px;top:17px;width:17px;height:17px;color:#99b1d4}.ec-methods [aria-selected=true] .icon{color:#497bf0}.ec-calculation-note{display:flex;gap:11px;padding:16px 20px;border:1px solid #e8effa;background:#f5f9ff;border-radius:12px;margin:0 0 18px}.ec-calculation-note>.icon{width:20px;height:20px;flex-shrink:0;color:#6092ee;margin-top:1px}.ec-calculation-note b{font-size:12px;color:#5980b5}.ec-calculation-note p{font-size:12px;line-height:1.8;color:#8198b6;margin:4px 0}.ec-calculation-note small{font-size:11px;color:#9bacc2}.ec-slim-links{display:flex;gap:18px;justify-content:flex-end;margin:0 0 18px;font-size:12px}.ec-slim-links .btn{background:transparent;border:0;padding:0;color:#6d93c7}.ec-labor-detail{padding:24px;background:#f8fbff;overflow:auto}.ec-labor-summary{display:flex;justify-content:space-between;align-items:center;gap:18px}.ec-labor-summary>b{font-size:14px;color:#3d608c}.ec-labor-detail>p{font-size:12px;color:#859bb8}.ec-labor-detail .ec-table{min-width:920px;background:#fff}.ec-labor-actions{display:flex;justify-content:flex-end;margin-top:16px}.ec-direct-editor{border-top:1px solid #edf2f8;padding-top:16px;display:grid;grid-template-columns:1fr 1fr;gap:16px}.ec-direct-editor h3,.ec-direct-editor>.ec-note{grid-column:1/-1}.ec-direct-fields{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:15px}.ec-import-scope{background:#f1f6ff;color:#6087c3;padding:12px 16px;border-radius:8px;font-size:13px}.ec-table small:empty{display:none}.ec-category-tabs button:focus-visible,.ec-methods button:focus-visible{outline:3px solid #bed2fc;outline-offset:2px}
@container expenses (max-width:1100px){.ec-category-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.ec-special-query .ec-filter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.ec-methods{grid-template-columns:repeat(2,minmax(0,1fr))}.ec-four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container expenses (max-width:550px){.ec-category-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.ec-category-tabs button{justify-content:flex-start;font-size:12px;padding:11px 8px}.ec-category-tabs small{margin-left:auto}.ec-special-query .ec-filter-grid{grid-template-columns:1fr 1fr}.ec-four .ec-metric:last-child{grid-column:auto}.ec-methods{gap:8px}.ec-methods button{padding:13px 11px}.ec-methods b{font-size:12px}.ec-calculation-note{padding:13px}.ec-labor-detail{padding:14px}.ec-labor-summary{display:block}.ec-category-warning{flex-wrap:wrap}.ec-slim-links{gap:10px;flex-wrap:wrap}}
@media(max-width:550px){.ec-direct-fields,.ec-direct-editor{grid-template-columns:1fr}.ec-direct-editor h3,.ec-direct-fields,.ec-direct-editor>.ec-note{grid-column:auto}}

.ec-table:has(.ec-sticky-amount) .ec-sticky{min-width:115px;max-width:115px;width:115px}.ec-table .ec-sticky-amount{position:sticky;right:115px;min-width:145px;width:145px;background:#f8fbff;z-index:1;box-shadow:-5px 0 10px #3a5d8705;border-left:1px solid #edf2fa;font-weight:600;color:#396bc0}.ec-table th.ec-sticky-amount{background:#eff5ff}@container expenses (max-width:550px){.ec-table .ec-sticky-amount{position:static;box-shadow:none}}

/* Keep expanded evidence readable inside a horizontally scrolling ledger. */
.ec-ledger .ec-expanded,.ec-ledger .ec-labor-detail{width:calc(100cqw - 26px);max-width:calc(100cqw - 26px);position:sticky;left:0;box-sizing:border-box;white-space:normal}
.ec-ledger .ec-expanded{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}
.ec-expanded dd,.ec-expanded p{overflow-wrap:anywhere;white-space:normal}
@container expenses (max-width:550px){.ec-ledger .ec-expanded{grid-template-columns:minmax(0,1fr);gap:18px}.ec-ledger .ec-expanded dl{grid-template-columns:1fr}.ec-ledger .ec-labor-summary{overflow-wrap:anywhere}}
