.bas-main{max-width:1500px}.bas-workspace{min-width:0;color:#202123}.bas-workspace h1,.bas-workspace h2{margin:0}.bas-workspace p{margin:5px 0 0;color:#6b6b6b}.bas-topbar{display:grid;grid-template-columns:minmax(210px,1fr) auto minmax(520px,1.5fr);gap:20px;align-items:center;margin-bottom:22px}.bas-add{width:44px;height:44px;border:1px solid #d5d5d5;border-radius:10px;display:grid;place-items:center;font-size:27px;font-weight:300;cursor:pointer;background:#fff}.bas-add:hover{background:#f7f7f8}.bas-add input{display:none}.bas-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.bas-metrics div{padding:8px 12px;border-left:1px solid #e5e5e5}.bas-metrics span{display:block;font-size:11px;color:#6b6b6b;line-height:1.2}.bas-metrics strong{display:block;font-size:21px;margin-top:3px}.bas-import-notes{display:flex;gap:18px;flex-wrap:wrap;color:#6b6b6b;font-size:12px;margin-bottom:26px}.bas-progress{height:34px;background:#f2f2f2;border-radius:8px;overflow:hidden;position:relative;margin:0 0 12px}.bas-progress.hidden,.bas-workspace .hidden{display:none!important}.bas-progress>div{height:100%;width:0;background:#202123;transition:width .15s}.bas-progress span{position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:12px;mix-blend-mode:difference}.bas-section{border-top:1px solid #d8d8d8;padding:24px 0;margin-top:18px;min-width:0}.bas-section-head{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:14px}.bas-section-head h2{font-size:20px}.bas-table-wrap{max-width:100%;overflow-x:hidden}.bas-workspace table{width:100%;table-layout:fixed;border-collapse:collapse}.bas-workspace th,.bas-workspace td{padding:10px 7px;border-bottom:1px solid #e5e5e5;vertical-align:top;overflow-wrap:anywhere;font-size:12px}.bas-workspace th{color:#6b6b6b;font-weight:600}.bas-transaction-tools{display:grid;grid-template-columns:auto minmax(180px,1fr) auto;gap:10px;align-items:center;margin-bottom:12px}.bas-filters{display:flex;gap:5px}.bas-filters button{border:1px solid #d5d5d5;background:#fff;border-radius:7px;padding:9px 11px;cursor:pointer}.bas-filters button.active{background:#202123;color:#fff;border-color:#202123}.sort-heading{padding:0;border:0;background:transparent;color:inherit;font:inherit;font-weight:600;cursor:pointer;text-align:left}.sort-heading.active:after{content:' ↑';font-size:10px}.sort-heading.active[data-direction=desc]:after{content:' ↓'}.bas-transactions th:nth-child(1){width:8%}.bas-transactions th:nth-child(2){width:24%}.bas-transactions th:nth-child(3){width:12%}.bas-transactions th:nth-child(4){width:13%}.bas-transactions th:nth-child(5),.bas-transactions th:nth-child(6),.bas-transactions th:nth-child(7){width:8%}.bas-transactions th:nth-child(8){width:19%}.bas-workspace select,.bas-workspace input{max-width:100%;font-size:12px;padding:8px}.small-action{display:inline-block;max-width:100%;border:1px solid #d5d5d5;background:#fff;border-radius:6px;padding:6px 7px;font-size:11px;white-space:normal;cursor:pointer}.invoice-actions{display:flex;gap:4px;flex-wrap:wrap}.muted-action{color:#6b6b6b;background:#f7f7f8}.bas-tools-row{display:flex;gap:8px;padding:18px 0;border-top:1px solid #d8d8d8}.bas-tool-button.active{background:#202123;color:#fff;border-color:#202123}.bas-summary-top{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.bas-summary-top div{background:#f7f7f8;border-radius:8px;padding:14px}.bas-summary-top span{display:block;color:#6b6b6b;font-size:12px}.bas-summary-top strong{display:block;font-size:23px;margin-top:4px}.bas-controls{display:grid;gap:6px;margin-top:18px}.control-row{display:flex;justify-content:space-between;border-bottom:1px solid #eee;padding:8px 0}#toast{position:fixed;right:22px;bottom:22px;background:#202123;color:#fff;padding:10px 14px;border-radius:8px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:20}#toast.show{opacity:1}.needs-review{color:#9a6700}.document-ok{color:#1a7f37}.bas-loading{padding:40px;color:#6b6b6b}
@media(max-width:1000px){.bas-topbar{grid-template-columns:1fr auto}.bas-metrics{grid-column:1/-1}.bas-transactions{font-size:10px}.bas-workspace th,.bas-workspace td{padding:8px 4px}.bas-transaction-tools{grid-template-columns:auto 1fr}.bas-transaction-tools>#export{grid-column:1/-1}.bas-main{padding-inline:16px}}
@media(max-width:650px){.bas-metrics{grid-template-columns:repeat(2,1fr)}.bas-summary-top{grid-template-columns:1fr}.bas-transaction-tools{grid-template-columns:1fr}.bas-transactions th:nth-child(2){width:20%}.bas-transactions th:nth-child(8){width:22%}}
.bas-transactions th:nth-child(1){width:8%}.bas-transactions th:nth-child(2){width:20%}.bas-transactions th:nth-child(3){width:11%}.bas-transactions th:nth-child(4){width:11%}.bas-transactions th:nth-child(5),.bas-transactions th:nth-child(6),.bas-transactions th:nth-child(7){width:8%}.bas-transactions th:nth-child(8){width:19%}.bas-transactions th:nth-child(9){width:5%}.tx-cell{display:flex;align-items:flex-start;gap:3px;min-width:0}.tx-copy{border:0;background:transparent;padding:1px 0;color:inherit;font:inherit;text-align:left;cursor:pointer;min-width:0;overflow-wrap:anywhere}.tx-copy:hover{background:#f1f1f1}.tx-edit,.icon-action{flex:0 0 auto;width:22px;height:22px;border:0;background:transparent;border-radius:5px;display:grid;place-items:center;cursor:pointer;color:#666;padding:3px}.tx-edit:hover,.icon-action:hover{background:#ededee;color:#202123}.tx-edit svg,.icon-action svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.invoice-copy{font-size:10px;color:#1a7f37}.tx-row-actions{display:flex;align-items:flex-start;gap:2px}.tx-editing td{background:#fafafa}.tx-editing input,.tx-editing select,.tx-editing textarea{width:100%;min-width:0;padding:6px;font-size:11px;border:1px solid #cfcfcf;border-radius:5px}.tx-editing textarea{min-height:58px;resize:vertical}.tx-save-row{color:#147a42;font-size:17px}.tx-cancel-row{color:#b42318;font-size:18px}.tx-more{position:relative}.tx-more summary{list-style:none;cursor:pointer;font-size:16px;line-height:18px;letter-spacing:1px;text-align:center;border-radius:5px}.tx-more summary::-webkit-details-marker{display:none}.tx-more summary:hover{background:#ededee}.tx-more-panel{position:absolute;z-index:12;right:0;top:24px;width:300px;padding:12px;background:#fff;border:1px solid #d5d5d5;border-radius:8px;box-shadow:0 10px 30px #0002;display:grid;gap:8px}.tx-more-panel>b{font-size:12px}.tx-more-panel>div{display:grid;grid-template-columns:95px minmax(0,1fr);gap:8px}.tx-more-panel span:first-child{color:#6b6b6b}.tx-more-panel .tx-long{max-height:70px;overflow:auto}
.bas-topbar{grid-template-columns:auto minmax(520px,1fr)}.bas-file-buttons{display:grid;gap:5px}.bas-folder{width:44px;height:44px;border:1px solid #d5d5d5;border-radius:10px;display:grid;place-items:center;cursor:pointer;background:#fff}.bas-folder:hover{background:#f7f7f8}.bas-folder svg,.bas-filters svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.bas-filters #refresh-transactions{width:34px;padding:6px;display:grid;place-items:center}.symbol-action{font-size:17px;line-height:1;padding:1px;width:25px;height:25px}.invoice-preview{width:min(1000px,calc(100% - 30px));height:min(820px,calc(100vh - 30px));overflow:hidden}.preview-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-bottom:1px solid #e5e5e5}.invoice-preview iframe{width:100%;height:calc(100% - 58px);border:0}.stored-files-list{display:grid;gap:5px;max-height:60vh;overflow:auto}.stored-file{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:9px;text-align:left;border:1px solid #e1e1e1;background:#fff;border-radius:7px;padding:9px;cursor:pointer}.stored-file:hover{background:#f7f7f8}.stored-file svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7}.stored-file small{color:#6b6b6b}.tx-more summary{font-size:14px;letter-spacing:0;word-spacing:-2px;white-space:nowrap;width:24px}
#auto-filters{display:flex;gap:5px;flex-wrap:wrap}.summary-filter{border:0;background:transparent;color:inherit;font:inherit;font-weight:600;text-align:left;padding:0;cursor:pointer}.summary-filter:hover{text-decoration:underline;text-underline-offset:3px}
.bas-transaction-tools{grid-template-columns:minmax(0,1fr) auto}.bas-filters{min-width:0;overflow-x:auto;flex-wrap:nowrap;align-items:center;padding-bottom:3px;scrollbar-width:thin}.bas-filters button{flex:0 0 auto;padding:5px 8px!important;border-radius:999px!important;font-size:11px;line-height:1.2;white-space:nowrap}#auto-filters{flex:0 0 auto;flex-wrap:nowrap;gap:5px}.bas-filters #refresh-transactions{width:27px;height:27px;border-radius:50%!important;padding:4px!important}.bas-filters #refresh-transactions svg{width:15px;height:15px}.bas-search{display:flex;justify-content:flex-end;align-items:center;gap:5px}.bas-search button{width:30px;height:30px;display:grid;place-items:center;border:1px solid #d5d5d5;background:#fff;border-radius:7px;cursor:pointer}.bas-search button:hover{background:#f7f7f8}.bas-search svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8}.bas-search input{width:0!important;opacity:0;padding-inline:0!important;border-width:0!important;transition:width .16s,opacity .16s}.bas-search.open input{width:190px!important;opacity:1;padding-inline:9px!important;border-width:1px!important}
.bas-filter-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;margin-bottom:12px}.base-filters,.filter-actions{display:flex;gap:5px;align-items:center}.base-filters button,.supplier-filter,.filter-actions>button{border:1px solid #d5d5d5;background:#fff;border-radius:999px;padding:5px 8px;font-size:11px;line-height:1.2;white-space:nowrap;cursor:pointer}.base-filters button.active,.supplier-filter.active{background:#202123;color:#fff;border-color:#202123}.supplier-scroll{min-width:0;overflow-x:auto;padding-bottom:3px;scrollbar-width:thin}.supplier-scroll #auto-filters{display:flex;flex-wrap:nowrap;width:max-content}.filter-actions>button{width:30px;height:30px;padding:5px;display:grid;place-items:center}.filter-actions svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.sorted-block{margin-top:18px}.sorted-block h3{font-size:15px;margin:0 0 8px}.sorted-block+ .sorted-block{padding-top:18px;border-top:1px solid #e5e5e5}@media(max-width:700px){.bas-filter-bar{grid-template-columns:auto minmax(0,1fr)}.filter-actions{grid-column:1/-1;justify-content:flex-end}}
.bas-tabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid #d8d8d8;margin-top:6px}.bas-tabs button{flex:0 0 auto;border:0;background:transparent;color:#6b6b6b;padding:9px 11px;border-bottom:2px solid transparent;font-size:12px;font-weight:600;cursor:pointer}.bas-tabs button:hover{color:#202123}.bas-tabs button.active{color:#202123;border-bottom-color:#202123}.bas-tab-panel{display:none}.bas-tab-panel.active{display:block}
.income-total th{font-weight:700;color:#202123;background:#f7f7f8}.rule-delete{font-size:17px;color:#b42318}.registered-row td{background:#edf8f0}.pending-registration td{background:#fffdf5}.registration-toggle{width:25px;height:25px;border:1px solid #cfcfcf;border-radius:50%;background:#fff;color:#777;display:grid;place-items:center;cursor:pointer;font-weight:700}.registration-toggle.done{background:#18794e;border-color:#18794e;color:#fff}.invoice-unmatch{color:#b42318!important}.active-ignore{background:#202123!important;color:#fff!important}.ignored-summary-row td{opacity:.48;background:#f5f5f5}.selected-invoice-row td{background:#eef5ff}.invoice-highlight-bar{display:flex;align-items:end;gap:10px;padding:9px 14px;background:#fff8c5;border-bottom:1px solid #e5d56b}.invoice-highlight-bar label{font-size:10px;font-weight:700}.invoice-highlight-bar input{display:block;width:120px;margin-top:3px;background:#ffea70!important;border:1px solid #cfb900!important;font-size:14px!important;font-weight:700}.invoice-preview:has(.invoice-highlight-bar:not(.hidden)) iframe{height:calc(100% - 116px)}
.recurring-edit-list{list-style:none;margin:0;padding:0;max-height:42vh;overflow:auto;border-top:1px solid var(--line,#ddd)}.recurring-edit-list li{display:grid;grid-template-columns:7rem 1fr auto;gap:.75rem;padding:.7rem 0;border-bottom:1px solid var(--line,#ddd);align-items:start}.recurring-edit-list span{min-width:0;overflow-wrap:anywhere}.recurring-edit-list strong{white-space:nowrap}
.invoice-highlight-help{padding:8px 14px;background:#fff8c5;border-bottom:1px solid #e5d56b;font-size:11px}.invoice-pdf-pages{height:calc(100% - 92px);overflow:auto;background:#5f6368;padding:18px;display:grid;justify-items:center;gap:18px}.pdf-preview-loading{color:#fff;padding:40px}.pdf-page{position:relative;background:#fff;box-shadow:0 2px 12px #0005;flex:none}.pdf-page canvas{position:absolute;inset:0}.pdf-text-layer{position:absolute;inset:0;overflow:hidden;line-height:1;text-size-adjust:none;transform-origin:0 0}.pdf-text-layer span{position:absolute;white-space:pre;transform-origin:0 0;color:transparent;cursor:pointer;pointer-events:auto}.pdf-text-layer .pdf-amount-highlight{background:rgba(255,225,0,.58);outline:2px solid rgba(210,165,0,.45);border-radius:2px}.pdf-text-layer .manual{background:rgba(255,193,7,.72)}#categories-body input,#categories-body select{width:100%}
.invoice-highlight-help{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.amount-marker{height:28px;border:1px solid #c8c8c8;border-radius:6px;background:#fff;display:inline-flex;align-items:center;gap:4px;padding:4px 8px;cursor:pointer}.amount-marker svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8}.amount-marker.gst{background:#fff4a8}.amount-marker.total{background:#bff0c9}.amount-marker.active.armed{outline:2px solid #202123;outline-offset:1px}.pdf-text-layer .gst-highlight{background:rgba(255,225,0,.62)!important;outline:2px solid rgba(210,165,0,.52)!important}.pdf-text-layer .total-highlight{background:rgba(52,199,89,.42)!important;outline:2px solid rgba(28,140,58,.55)!important}
.summary-registration-filters{display:flex;align-items:center;gap:5px;margin:0 0 12px}.summary-registration-filters span{font-size:11px;color:#6b6b6b;margin-right:3px}.summary-registration-filters button{border:1px solid #d5d5d5;background:#fff;border-radius:999px;padding:5px 9px;font-size:11px;cursor:pointer}.summary-registration-filters button.active{background:#202123;color:#fff;border-color:#202123}#bas-tab-summary[data-registration-view="registered"] .pending-registration,#bas-tab-summary[data-registration-view="unregistered"] .registered-row{display:none}
.summary-registration-filters .export-registered{margin-left:auto;border-radius:7px;padding:7px 11px;font-weight:600;color:#202123}.summary-registration-filters .export-registered:hover{background:#f1f1f1}
.invoice-image-preview{display:block;max-width:min(1100px,100%);height:auto;background:#fff;box-shadow:0 2px 12px #0005;object-fit:contain}
.invoice-stack{display:flex;flex-direction:column;align-items:flex-start;gap:4px}.invoice-stack .invoice-actions{display:flex;align-items:center;gap:3px;white-space:nowrap}.invoice-add-another{margin-top:1px}
.registered-log-row td{background:#eef6ff;box-shadow:inset 0 1px 0 #d6e8fb,inset 0 -1px 0 #d6e8fb}.registered-log-row td:first-child{box-shadow:inset 3px 0 0 #78ade0,inset 0 1px 0 #d6e8fb,inset 0 -1px 0 #d6e8fb}.ignored-summary-row.registered-log-row td{opacity:.48;background:#f5f5f5;box-shadow:none}
.bas-tabs{border-bottom:0}.bas-global-filters{margin:12px 0 2px}.bas-section{border-top:0;margin-top:0;padding-top:18px}.supplier-scroll{scrollbar-width:none;padding-bottom:0}.supplier-scroll::-webkit-scrollbar,.bas-tabs::-webkit-scrollbar{display:none}.base-filters button,.supplier-filter{height:30px;box-sizing:border-box;display:inline-flex;align-items:center;gap:3px}.supplier-scroll #auto-filters{align-items:center;height:30px}.bas-import-notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}.import-card{border:1px solid #e5e5e5;border-radius:9px;padding:9px 11px;display:grid;gap:2px;min-width:0}.import-card b{font-size:11px;color:#202123}.import-card span{font-size:11px;color:#6b6b6b;overflow-wrap:anywhere}.bas-statistics{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(250px,1fr);gap:14px;margin:18px 0 28px}.stat-card{border:1px solid #e5e5e5;border-radius:10px;padding:14px;min-width:0}.stat-card h3{font-size:14px;margin:0}.stat-card p{font-size:11px;margin-bottom:12px}.stat-card svg{display:block;width:100%;height:auto;overflow:visible}.stat-legend{display:flex;gap:14px;font-size:10px;color:#6b6b6b;margin-top:8px}.stat-legend i{display:inline-block;width:8px;height:8px;border-radius:2px;margin-right:4px}.category-bars{display:grid;gap:8px;margin-top:14px}.category-bar-label{display:flex;justify-content:space-between;gap:8px;font-size:10px}.category-bar-track{height:7px;background:#ededee;border-radius:999px;overflow:hidden}.category-bar-fill{height:100%;background:#202123;border-radius:inherit}@media(max-width:760px){.bas-import-notes,.bas-statistics{grid-template-columns:1fr}.bas-global-filters{grid-template-columns:auto minmax(0,1fr)}.filter-actions{grid-column:1/-1;justify-content:flex-end}}
.sanity-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:14px}.sanity-upload-card{border:1px solid #dedede;border-radius:10px;padding:12px;display:flex;justify-content:space-between;gap:12px;align-items:center;background:#fafafa}.sanity-upload-card>div:first-child{display:grid;gap:3px}.sanity-upload-card span{font-size:11px;color:#6b6b6b}.sanity-upload-card label.btn{cursor:pointer}.sanity-upload-card input{display:none}.sanity-metrics{grid-template-columns:repeat(4,1fr);margin-bottom:14px}.sanity-found td{background:#edf8f0}.sanity-found td:last-child{color:#18794e}.sanity-missing td{background:#fff1f0}.sanity-missing td:last-child{color:#b42318}@media(max-width:700px){.sanity-upload-grid{grid-template-columns:1fr}.sanity-metrics{grid-template-columns:repeat(2,1fr)}}
