main:has(#page-finance.ap-ledger-active:not([hidden])){max-width:none}
#page-finance.ap-ledger-active{max-width:none;width:100%;min-width:0}
.ap-page-heading{display:flex;align-items:baseline;gap:18px;margin-bottom:17px}.ap-page-heading h1{font-size:25px;margin:0;color:#243d32}.ap-page-heading p{font-size:12px;color:#84967d;margin:0;line-height:1.8}
.ap-ledger{min-width:0}.ap-button{display:inline-flex;justify-content:center;align-items:center;gap:7px;margin:0;width:auto;min-height:36px;padding:8px 13px;border:1px solid #ccdcd0;border-radius:8px;background:#fff;color:#34694f;font:inherit;font-size:12px;line-height:1.45;white-space:nowrap;cursor:pointer}.ap-button:hover:not(:disabled){background:#eef5eb;border-color:#aac5af}.ap-button:disabled{opacity:.45;cursor:not-allowed}.ap-button.ap-primary{background:#2c664f;border-color:#2c664f;color:#fff}.ap-button:focus-visible{outline:2px solid #598e6e;outline-offset:3px}
.ap-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#fff;border:1px solid #e0e8dc;border-radius:11px;padding:13px 16px}.ap-upload{position:relative;overflow:hidden;flex-shrink:0}.ap-upload input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.ap-dataset-label{display:flex;align-items:center;gap:10px;flex:1;min-width:210px}.ap-dataset-label>span{font-size:12px;flex-shrink:0;color:#7c8e76}.ap-dataset-label select{flex:1;min-width:0;max-width:600px}.ap-toolbar-actions{display:flex;gap:10px;margin-left:auto;flex-wrap:wrap}
.ap-ledger select,.ap-ledger input:not([type=file]),.ap-review-dialog input:not([type=checkbox]){min-height:34px;min-width:0;max-width:100%;border:1px solid #d2dfce;border-radius:7px;background:#fff;color:#355b43;padding:6px 9px;font:inherit;font-size:12px;line-height:1.5;box-shadow:none}.ap-message{font-size:12px;line-height:1.7;color:#60815b;margin:10px 1px;overflow-wrap:anywhere}.ap-message:empty{margin:7px 0}.ap-message.is-error,.ap-review-notice.is-error{color:#ad503d}
.ap-caption{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:16px 0 8px;scroll-margin-top:14px}.ap-caption>div:first-child{min-width:0;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.ap-caption strong{font-size:13px;font-weight:500;color:#466b4d;overflow-wrap:anywhere}.ap-caption span{font-size:11px;color:#8b9a80}.ap-filters{display:flex;align-items:center;gap:12px;flex-shrink:0;flex-wrap:wrap}.ap-filters label{display:flex;align-items:center;gap:6px}.ap-filters select{max-width:150px}.ap-source-note{font-size:11px;color:#8c9b82;line-height:1.8;margin:8px 0 12px}.ap-hint{font-size:12px;color:#82957a;line-height:1.8;overflow-wrap:anywhere}
.ap-table-scroll{width:100%;overflow-x:auto;border:1px solid #d9e4d2;border-radius:11px;scrollbar-width:thin;scrollbar-color:#adc3a1 #f2f6ed}.ap-table{width:max-content;min-width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;background:#fff;font-size:12px;color:#587253}.ap-table th,.ap-table td{box-sizing:border-box;border-right:1px solid #e6ece0;border-bottom:1px solid #e7ede1;vertical-align:middle;overflow-wrap:anywhere;white-space:pre-wrap}.ap-table th:last-child,.ap-table td:last-child{border-right:0}.ap-table thead tr:first-child th{padding:12px 11px;background:#315f4c;color:#f2f7ec;text-align:left;font-size:12px;font-weight:500}.ap-table thead tr:first-child th>span{display:inline-block;max-width:calc(100% - 30px);vertical-align:middle}.ap-table th:first-child,.ap-table td:first-child{position:sticky;left:0;z-index:1;background:#fff}.ap-table thead th:first-child{z-index:3}.ap-table td{padding:13px 12px;min-height:54px;line-height:1.8}.ap-table tbody tr:nth-child(even) td{background:#fbfdf7}.ap-table tbody tr:hover td{background:#f0f6eb}.ap-table td.ap-numeric{text-align:right;font-variant-numeric:tabular-nums;color:#527849;font-weight:500}.ap-table td a{color:#43836b;text-decoration:underline;text-underline-offset:3px}.ap-sort{margin:0 0 0 5px;padding:3px 6px;border:0;border-radius:5px;color:#e2eddf;background:transparent;min-width:25px;cursor:pointer}.ap-sort:hover{background:#ffffff17}.ap-filter-row th{padding:7px;background:#edf4e6}.ap-table .ap-filter-row th:first-child{background:#edf4e6}.ap-filter-row input{width:100%;height:30px;min-height:30px!important;padding:4px 7px!important;font-size:11px!important}.ap-number-filter{display:flex;align-items:center;gap:4px}.ap-number-filter input{width:calc(50% - 6px)}.ap-number-filter>span{color:#a3b297}.ap-cell-warning{color:#ae7540;font-size:11px}.ap-formula-missing{background:#fffbf2!important}.ap-table td.ap-empty-cell{padding:36px;text-align:center;color:#8a9c81;position:static}.ap-empty{padding:60px 25px;text-align:center;border:1px dashed #d6e2cc;border-radius:12px;background:#fbfdf7;color:#879b7a;margin-top:18px}.ap-empty h2{font-size:17px;font-weight:500;color:#52704a;margin:0 0 12px}.ap-empty p{font-size:12px;line-height:1.9;max-width:590px;margin:0 auto 12px}
.ap-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding:17px 0;color:#7e9273;font-size:12px}.ap-page-summary{margin-right:auto}.ap-page-buttons{display:flex;align-items:center;gap:5px}.ap-page-buttons .ap-button{min-width:33px;padding:6px 9px}.ap-page-buttons [aria-current=page]{background:#315f4c;border-color:#315f4c;color:#fff}.ap-page-size,.ap-page-jump{display:flex;gap:7px;align-items:center}.ap-page-size select{width:85px}.ap-page-jump input{width:55px;text-align:center}.ap-page-error{margin:0;flex-basis:100%;text-align:right;color:#ad503d}.ap-page-error:empty{display:none}
dialog.ap-review-dialog{padding:0;width:min(980px,calc(100vw - 30px));max-width:980px;max-height:calc(100dvh - 40px);border:1px solid #d5e1cc;border-radius:15px;background:#fff;color:#3a583f;overflow:hidden;box-shadow:0 20px 80px #15372b33}dialog.ap-review-dialog[open]{display:flex;flex-direction:column}dialog.ap-review-dialog::backdrop{background:#17392d66;backdrop-filter:blur(2px)}.ap-review-dialog>header{display:flex;justify-content:space-between;gap:14px;padding:21px 24px;border-bottom:1px solid #e5eddf;flex-shrink:0}.ap-review-dialog h2{font-size:20px;line-height:1.6;margin:0;color:#294737}.ap-review-dialog header p{font-size:12px;color:#879a7b;margin:6px 0 0;overflow-wrap:anywhere}.ap-review-dialog [data-ap-review-close]{width:31px;height:31px;padding:0;margin:0;border:0;background:transparent;color:#839a7a;font-size:25px;flex-shrink:0}.ap-review-body{min-height:0;overflow:auto;padding:22px 24px;scrollbar-width:thin}.ap-review-counts{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:16px}.ap-review-counts .ap-button{padding:12px 14px;background:#f5f9ef;flex:1}.ap-review-counts [aria-pressed=true]{border-color:#578769;background:#e7f1e3;color:#2d6145}.ap-review-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.ap-review-tools>span{margin-left:auto;font-size:12px;color:#7f9475}.ap-review-row{border:1px solid #e1ead8;border-radius:9px;padding:16px;margin-top:11px}.ap-review-row-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.ap-review-row-heading strong{font-size:13px;font-weight:500;color:#557747}.ap-review-row-heading small{font-size:11px;color:#8b9c80}.ap-review-row-heading input{width:17px;height:17px;margin:0;accent-color:#2b7050;cursor:pointer}.ap-review-status{display:inline-flex;border-radius:5px;padding:4px 7px;color:#6f8d5d;font-size:11px;background:#edf5e6}.ap-review-review{background:#fffcf5;border-color:#eedfc9}.ap-review-review .ap-review-status{color:#ac7345;background:#fff0dd}.ap-review-unsupported{background:#f9faf7}.ap-review-row p{font-size:12px;line-height:1.8;overflow-wrap:anywhere;margin:9px 0 0;color:#839677}.ap-review-row .ap-review-fields{font-size:11px;color:#93a485}.ap-review-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-top:1px solid #e5eddf;background:#fbfdf8;flex-shrink:0}.ap-review-notice{font-size:12px;line-height:1.8;color:#7f9671;margin:0;overflow-wrap:anywhere}.ap-review-dialog footer>div{display:flex;flex-shrink:0;gap:9px}.ap-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:900px){.ap-caption{align-items:flex-start;flex-direction:column}.ap-filters{width:100%}.ap-page-heading{flex-wrap:wrap;gap:8px}}
@media(max-width:700px){.ap-toolbar{gap:12px;padding:12px}.ap-dataset-label{order:-1;flex-basis:100%;flex-wrap:wrap}.ap-dataset-label select{flex-basis:100%;width:100%}.ap-toolbar-actions{gap:7px}.ap-button{font-size:11px;padding:8px 10px}.ap-filters{gap:9px}.ap-filters label{flex:1 1 130px}.ap-filters select{flex:1;max-width:none}.ap-page-summary{flex-basis:100%;text-align:center;margin:0}.ap-pagination{justify-content:center}.ap-page-buttons{flex-wrap:wrap;justify-content:center}.ap-review-dialog>header{padding:17px}.ap-review-body{padding:16px}.ap-review-dialog>footer{padding:15px 17px;flex-wrap:wrap}.ap-review-dialog footer>div{margin-left:auto;flex-wrap:wrap;justify-content:flex-end}.ap-review-notice{flex-basis:100%}.ap-review-counts .ap-button{flex:1 1 120px}.ap-review-tools>span{flex-basis:100%;margin:2px 0}.ap-review-row{padding:13px}.ap-review-dialog h2{font-size:18px}}
.ap-link-warning{display:block;margin-top:5px}
.ap-filters label>span{white-space:nowrap;flex-shrink:0}
.ap-account-name{display:inline;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:#346e55;font:inherit;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;cursor:pointer;width:auto;min-height:0}.ap-account-name:hover{text-decoration:underline;text-underline-offset:3px}.ap-account-name:focus-visible{outline:2px solid #598e6e;outline-offset:3px}

/* Purchase ledger editing and manual account reconciliation */
.ap-ledger{position:relative}.ap-compact-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:-54px;margin-bottom:16px;min-height:38px}.ap-ledger .ap-caption{margin-top:10px}.ap-sheet-choice{max-width:60%}.ap-sheet-choice select{max-width:min(520px,45vw)}.ap-sheet-choice>span{white-space:nowrap}
.ap-table thead tr:first-child th{position:relative;padding-right:15px}.ap-table thead tr:first-child .ap-heading-label{cursor:grab;user-select:none;max-width:calc(100% - 30px)}.ap-table .ap-heading-label[draggable=false]{cursor:default}.ap-table th .ap-resize{position:absolute;display:block;max-width:none;width:8px;right:-1px;top:0;bottom:0;height:100%;cursor:col-resize;z-index:5;touch-action:none}.ap-resize:hover{background:#8bb99b99}.ap-drag-target{box-shadow:inset 3px 0 #91bd8e!important}.ap-resizing,.ap-resizing *{cursor:col-resize!important;user-select:none!important}.ap-table .ap-ordinal{text-align:center;color:#8a9b80;font-variant-numeric:tabular-nums}.ap-table thead .ap-ordinal{color:#f2f7ec}.ap-table td[data-ap-cell]:hover{box-shadow:inset 0 0 0 1px #b3c8ac}.ap-url-open{margin-left:7px;display:inline-block;text-decoration:none!important}.ap-ledger-changed{display:block;color:#a97a40;font-size:10px;margin-top:4px}
dialog.ap-editor-dialog,dialog.ap-reconcile-dialog{padding:0;width:min(960px,calc(100vw - 32px));max-width:1280px;max-height:calc(100dvh - 36px);border:1px solid #d5e1cc;border-radius:15px;background:#fff;color:#3a583f;overflow:hidden;box-shadow:0 20px 80px #15372b33}
dialog.ap-reconcile-dialog{width:min(1240px,calc(100vw - 32px))}
dialog.ap-editor-dialog[open],dialog.ap-reconcile-dialog[open]{display:flex;flex-direction:column}
.ap-editor-dialog::backdrop,.ap-reconcile-dialog::backdrop{background:#17392d66;backdrop-filter:blur(2px)}
.ap-editor-dialog>header,.ap-reconcile-dialog>header{display:flex;justify-content:space-between;align-items:flex-start;padding:20px 24px;border-bottom:1px solid #e1eadb;gap:20px;flex-shrink:0}
.ap-editor-dialog h2,.ap-reconcile-dialog h2{font-size:20px;margin:0;line-height:1.6;color:#294737}.ap-reconcile-dialog header p{font-size:12px;margin:6px 0 0;color:#879a7b}
[data-editor-close],[data-reconcile-close]{background:transparent!important;border:0!important;padding:0!important;width:30px!important;height:30px;font-size:26px!important;color:#7f9575;flex-shrink:0}
.ap-editor-body,.ap-reconcile-body{padding:20px 24px;overflow:auto;min-height:0;scrollbar-width:thin}
.ap-editor-dialog>footer,.ap-reconcile-dialog>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 24px;border-top:1px solid #e1eadb;background:#fbfdf8;flex-shrink:0}
.ap-editor-dialog footer>div{display:flex;gap:8px;flex-shrink:0}
.ap-editor-notice,.ap-reconcile-notice{font-size:12px;line-height:1.7;margin:0;overflow-wrap:anywhere;color:#759166}.ap-editor-notice.is-error,.ap-reconcile-notice.is-error{color:#ad503d}
.ap-editor-dialog input:not([type=checkbox]),.ap-editor-dialog select,.ap-editor-dialog textarea,.ap-reconcile-dialog input:not([type=checkbox]){min-width:0;width:100%;border:1px solid #d2dfce;border-radius:7px;background:#fff;color:#355b43;padding:9px 11px;font:inherit;font-size:13px;line-height:1.6;box-shadow:none}
.ap-editor-dialog textarea{resize:vertical}.ap-edit-field{display:flex;flex-direction:column;gap:7px;min-width:0}.ap-edit-field>span{font-size:12px;color:#829579}.ap-edit-field b{color:#b66c50}.ap-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 22px}.ap-historical{margin-top:20px;border-top:1px solid #e1eadb;padding-top:15px}.ap-historical summary{font-size:13px;cursor:pointer;color:#718d64;margin-bottom:15px}.ap-column-actions{display:flex;justify-content:flex-end;margin-bottom:14px}.ap-column-list{display:flex;flex-direction:column;gap:10px}.ap-column-item{display:flex;gap:12px;align-items:center;border:1px solid #dde8d5;background:#fafcf6;border-radius:9px;padding:12px}.ap-column-item>label{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}.ap-column-item label>span{font-size:11px;color:#879b78}.ap-column-item .ap-column-width{flex:0 0 86px}.ap-column-item.is-hidden{opacity:.6;background:#f3f4f0}.ap-column-handle{cursor:grab;font-size:24px;color:#71926a;user-select:none}.ap-column-handle[draggable=false]{cursor:default;font-size:11px}.ap-column-item .ap-button{flex-shrink:0}
.ap-reconcile-sides{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.ap-reconcile-sides>section{border:1px solid #e0e9d9;border-radius:10px;padding:18px;min-width:0;background:#fcfef9}.ap-reconcile-dialog h3{font-size:15px;margin:0 0 15px;color:#355b40}.ap-reconcile-dialog h4{font-size:13px;margin:16px 0 12px;color:#355b40}.ap-identity{margin:0;display:grid;gap:12px}.ap-identity-field{display:grid;grid-template-columns:128px minmax(0,1fr);gap:10px;padding-bottom:10px;border-bottom:1px solid #e6eddc;line-height:1.7;font-size:12px}.ap-identity-field dt{color:#8b9c7e}.ap-identity-field dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;color:#4e7047}.ap-identity-field a{color:#397759}.ap-source-details{margin-top:15px}.ap-source-details summary{cursor:pointer;color:#68865d;font-size:12px}.ap-source-details dl{margin-top:15px}.ap-candidate-search{display:flex;gap:8px}.ap-candidate-search input{flex:1}.ap-candidates{max-height:210px;overflow:auto;display:flex;flex-direction:column;gap:7px;scrollbar-width:thin}.ap-candidate{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:5px;flex-shrink:0;border:1px solid #dce6d4;background:#fff;border-radius:8px;padding:10px 12px;color:#56764a;width:100%;margin:0;white-space:normal;font:inherit;cursor:pointer}.ap-candidate strong{font-size:13px;font-weight:500}.ap-candidate span{font-size:11px}.ap-candidate small{font-size:10px;color:#8a9a7d;overflow-wrap:anywhere;word-break:break-all}.ap-candidate.is-selected{border:2px solid #527e5c;background:#edf5e7;padding:9px 11px}.ap-financial-compare{margin-top:24px}.ap-financial-compare:empty{display:none}.ap-financial-compare table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:12px}.ap-financial-compare th,.ap-financial-compare td{border:1px solid #dfe9d6;padding:11px;overflow-wrap:anywhere;text-align:left;white-space:pre-wrap}.ap-financial-compare thead th{background:#edf4e6;color:#52754a}.ap-financial-compare tbody th{font-weight:400;color:#8a9d7a;width:22%}.ap-finance-fill{color:#2d7851}.ap-finance-keep{color:#b18046}.ap-reconcile-dialog>footer{align-items:flex-end;flex-wrap:wrap}.ap-reconcile-confirm{flex:1 1 310px;display:flex;flex-direction:column;gap:8px}.ap-reconcile-confirm label{font-size:12px;display:flex;align-items:center;gap:7px;color:#4c7044}.ap-reconcile-confirm input{accent-color:#357b55}.ap-reconcile-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:1000px){.ap-compact-actions{margin-top:10px}.ap-sheet-choice{max-width:none}.ap-sheet-choice select{max-width:min(520px,80vw)}.ap-identity-field{grid-template-columns:100px minmax(0,1fr)}}
@media(max-width:720px){.ap-compact-actions{flex-wrap:wrap}.ap-reconcile-sides,.ap-edit-grid{grid-template-columns:1fr}.ap-editor-body,.ap-reconcile-body{padding:16px}.ap-editor-dialog>footer,.ap-reconcile-dialog>footer{padding:14px 16px;flex-wrap:wrap}.ap-editor-dialog footer>div{margin-left:auto}.ap-reconcile-actions{width:100%}.ap-column-item{flex-wrap:wrap}.ap-column-item>label{flex-basis:55%}.ap-column-item .ap-column-width{flex-basis:80px}.ap-reconcile-sides{gap:15px}.ap-financial-compare th,.ap-financial-compare td{padding:8px}.ap-sheet-choice select{max-width:100%;width:100%}}
.ap-table tbody .ap-highlight-row td{background:#e7f2df;box-shadow:inset 0 1px #a5c591,inset 0 -1px #a5c591}
.ap-column-item .ap-column-kind{flex:0 0 90px}
.ap-heading-label:focus-visible,.ap-column-handle:focus-visible{outline:2px solid #9cbe91;outline-offset:3px;border-radius:3px}
.ap-source-summary{padding:14px;margin-top:16px;border-radius:8px;background:#eef5e8}.ap-source-summary .ap-identity-field:last-child{border-bottom:0;padding-bottom:0}
.ap-match-reasons{display:flex;flex-wrap:wrap;gap:5px;margin-top:3px}.ap-match-reasons>span{display:inline-flex;padding:2px 6px;background:#edf4e7;border-radius:4px;font-size:10px;color:#6b875c}.ap-candidate-search [data-candidate-recommend][aria-pressed=true]{background:#edf5e7;border-color:#aac59c}.ap-reconcile-complete{padding:45px 20px;text-align:center}.ap-reconcile-complete>div{display:grid;place-items:center;margin:0 auto 18px;border-radius:50%;width:52px;height:52px;background:#e9f3e2;color:#47815a;font-size:28px}.ap-reconcile-complete p{font-size:13px;line-height:1.8;color:#819675}.ap-candidate-search input{width:0}
@media(max-width:480px){.ap-candidate-search{flex-wrap:wrap}.ap-candidate-search input{width:100%;flex-basis:100%}}
.ap-candidate-warning{margin:7px 0;padding:8px 10px;border:1px solid #eddec5;border-radius:6px;background:#fffaf0;color:#a27640;font-size:11px;line-height:1.7;overflow-wrap:anywhere}.ap-candidate-warnings:not(:empty){margin-bottom:10px}
.ap-create-entry{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 13px;padding-bottom:13px;border-bottom:1px solid #e1eadb}.ap-create-entry p{font-size:11px;color:#84967b;margin:0}.ap-create-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.ap-create-heading h4{margin:0}.ap-create-fields{display:grid;gap:13px}.ap-create-fields label{display:flex;flex-direction:column;gap:6px;font-size:12px;color:#829777}.ap-create-fields input,.ap-create-fields textarea,.ap-create-fields select{width:100%;max-width:100%;min-width:0;box-sizing:border-box;border:1px solid #d2dfce;border-radius:7px;background:#fff;color:#355b43;padding:9px 11px;font:inherit;font-size:13px;line-height:1.6}.ap-create-fields textarea{resize:vertical}.ap-create-fields input:disabled{background:#f1f5eb;color:#8b9d7b}.ap-create-preview-action{display:flex;justify-content:flex-end;margin-top:15px}.ap-create-preview-state{font-size:11px;line-height:1.7;color:#7d9570}.ap-new-account-summary{display:grid;grid-template-columns:1fr 1fr;gap:12px 20px;padding:14px;background:#f5f9ef;border:1px solid #e1ebd8;border-radius:8px}.ap-create-link-choice{padding:12px;background:#fffaf0;border-radius:8px}.ap-create-mode[hidden],.ap-existing-mode[hidden]{display:none}
@media(max-width:720px){.ap-new-account-summary{grid-template-columns:1fr}.ap-create-entry,.ap-create-heading{flex-wrap:wrap}}

.ap-review-dialog [data-ap="review-commit"][hidden]{display:none}
