.import-section{padding:18px;border:1px solid #ccd6df;border-radius:6px;background:white;margin-bottom:14px}.import-section h2{margin:0 0 12px;font-size:18px}.import-section p{max-width:85ch;font-size:13px;color:#52677b;margin:8px 0}.import-fields{display:flex;flex-wrap:wrap;align-items:end;gap:12px}.import-fields label{display:grid;gap:5px;font-size:12px}.import-fields input,.import-fields select{min-height:36px;min-width:145px;max-width:100%;padding:6px;border:1px solid #becbda;border-radius:4px;background:#fff}.import-section textarea{display:block;width:100%;min-height:100px;border:1px solid #becbda;margin:10px 0;padding:10px;font-size:13px}.import-section .tw{max-height:470px;overflow:auto}.import-section table{min-width:950px;font-size:12px}.import-section th{position:sticky;top:0;background:#e9ebee;z-index:1;color:#1e3a5f;white-space:nowrap}.import-section td,.import-section th{padding:6px 8px;border-bottom:1px solid #d7e0e8}.import-section td input,.import-section td select{border:1px solid #ccd6df;background:#fff;padding:5px;min-width:110px;width:100%;font-variant-numeric:tabular-nums}.import-section td input[type=number]{min-width:80px}.import-section .import-amount{text-align:right}.import-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px;align-items:center}.import-errors{color:#9a342c!important;white-space:pre-line}.import-section [aria-invalid=true]{border-color:#b82929}.import-section ol{padding-left:20px;font-size:13px;line-height:1.7}.import-check{display:flex!important;align-items:center;gap:8px;margin:10px 0;font-size:13px}.import-section input[type=checkbox]{min-width:0}.import-batches button{border:0;background:none;color:#245f9e;text-decoration:underline}.import-stage{color:#164c79;font-weight:600;font-size:14px}.import-section .import-blank{color:#9a342c}.import-mapping{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin:12px 0}.import-mapping label{display:grid;font-size:12px;gap:5px}.import-mapping select{padding:7px;border:1px solid #aebfcf;border-radius:4px}#import-status{position:sticky;bottom:0;padding:10px;background:#fff4d8;border:1px solid #e3c889;white-space:pre-line;z-index:3}#import-status:empty{display:none}@media(max-width:700px){.import-fields label{flex:1;min-width:140px}.accounting-main{padding:16px}.import-section{padding:12px}}
.import-context{max-width:1536px;margin:14px auto 0;padding:0 20px}
.import-simple #import-workbench{display:flex;flex-direction:column;gap:14px}.import-simple #import-workbench>[hidden]{display:none}.import-simple .page-head{order:0;margin-bottom:0}.import-mode{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.import-simple .import-upload{order:1}.import-simple #import-queue{order:2}.import-simple .import-assistant,.import-simple .import-788{order:3}.import-simple .import-draft{order:4}.import-simple .import-confirm{order:5}.import-simple .import-map-options{order:6}.import-simple .import-auto{order:7}.import-simple .import-batches{order:8}.import-simple .import-route{order:9}.import-simple #import-workbench>details:not([class]){order:10}.import-simple #import-status{order:11}.import-simple .import-section{margin:0}.import-simple #import-workbench>.accounting-notice{display:none}.import-simple #import-workbench>.import-section>p:not(.import-errors):not(.import-context-version){display:none}.import-simple .import-upload>p,.import-simple .import-draft>p,.import-simple .import-confirm>p{display:none}.import-simple .import-assistant-heading p,.import-simple .import-file-focus{display:none}.import-simple .import-assistant-heading{align-items:center}.import-simple .import-assistant-heading h2{font-size:18px}.import-simple .import-assistant-heading>button[data-import-help=refresh]{display:none}.import-simple .import-chat-box>summary{font-weight:600;cursor:pointer}.import-simple .import-native-preview{margin-top:14px}.import-simple .import-auto>.import-collection{margin-top:12px}.import-simple .import-788-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.import-788-roles span{padding:0 12px}.import-788-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.import-788-board{min-width:0;border:1px solid #d7e0e8;border-radius:6px;padding:12px}.import-788-board h3{margin:0 0 10px}.import-788-board h3 small{display:block;font-size:12px;font-weight:400;color:#52677b}.import-788-board .tw{max-height:420px;overflow:auto}.import-788-board table{border-collapse:collapse;min-width:640px;width:100%;font-size:12px}.import-788-board th,.import-788-board td{border:1px solid #d7e0e8;padding:7px;text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.import-788-board thead th{background:#f3f6fa}.import-788-board th[scope=row]{text-align:left;background:#ffffff}.import-788-blank{background:#ffffff}.import-788-board button{margin-top:12px}.import-788-note{font-size:12px;color:#52677b}
.import-simple:not(.import-advanced-open) .import-upload .import-fields>label:not(:first-child),.import-simple:not(.import-advanced-open) #read-sheet,.import-simple:not(.import-advanced-open) .import-upload>label,.import-simple:not(.import-advanced-open) .import-upload>details,.import-simple:not(.import-advanced-open) #import-paste,.import-simple:not(.import-advanced-open) #parse-paste{display:none}.import-simple:not(.import-advanced-open) #import-queue>p,.import-simple:not(.import-advanced-open) #import-queue>.import-check,.import-simple:not(.import-advanced-open) #analyse-queue,.import-simple:not(.import-advanced-open) #import-queue [data-queue-ai],.import-simple:not(.import-advanced-open) #import-queue th:nth-child(5),.import-simple:not(.import-advanced-open) #import-queue td:nth-child(5){display:none}.import-simple:not(.import-advanced-open) .import-draft>.import-fields,.import-simple:not(.import-advanced-open) .import-draft>label,.import-simple:not(.import-advanced-open) .import-draft>.import-actions,.import-simple:not(.import-advanced-open) #provider-suggestion{display:none}.import-simple:not(.import-advanced-open) #draft-grid th:nth-child(3),.import-simple:not(.import-advanced-open) #draft-grid td:nth-child(3),.import-simple:not(.import-advanced-open) #draft-grid th:nth-child(5),.import-simple:not(.import-advanced-open) #draft-grid td:nth-child(5),.import-simple:not(.import-advanced-open) #draft-grid th:nth-child(7),.import-simple:not(.import-advanced-open) #draft-grid td:nth-child(7),.import-simple:not(.import-advanced-open) #draft-grid th:nth-child(8),.import-simple:not(.import-advanced-open) #draft-grid td:nth-child(8),.import-simple:not(.import-advanced-open) #draft-grid th:nth-child(11),.import-simple:not(.import-advanced-open) #draft-grid td:nth-child(11),.import-simple:not(.import-advanced-open) #draft-grid th:nth-child(12),.import-simple:not(.import-advanced-open) #draft-grid td:nth-child(12){display:none}.import-simple #draft-grid table{min-width:650px}.import-simple:not(.import-advanced-open) .import-confirm label:has(#confirm-map),.import-simple:not(.import-advanced-open) .import-confirm label:has(#confirm-accounts){display:none}.import-simple .import-upload #import-file{width:100%;padding:16px;background:#f3f6fa;border:1px dashed #9fb4ca;border-radius:6px}.import-simple .import-upload summary{font-size:18px}.import-simple .import-confirm h2{font-size:18px}.import-simple .import-context-version{font-size:12px}.import-simple .import-context-version strong{font-size:12px}.import-simple .import-map-options:not([open]){padding:12px 16px}@media(max-width:1100px){.import-788-pairs{grid-template-columns:1fr}}@media(max-width:600px){.import-simple .import-assistant-heading{flex-wrap:wrap}.import-simple .import-section{padding:12px}.import-simple .import-788-head{display:block}.import-simple .page-head h1{font-size:24px}}
.import-assistant{border-top:3px solid #244e81}.import-assistant-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.import-assistant-heading h2{margin:0}.import-assistant-heading p{max-width:72ch}.import-file-focus{display:flex;flex-wrap:wrap;gap:8px 20px;padding:12px;background:#f3f6fa;margin:12px 0}.import-file-focus span{color:#52677b}.import-context-version{font-size:12px;color:#52677b;overflow-wrap:anywhere}.import-context-version strong{display:block;color:#825008;margin-top:5px}.import-native-preview .tw{max-height:360px;overflow:auto}.import-native-preview table{width:100%;min-width:620px;border-collapse:collapse;font-size:13px}.import-native-preview th,.import-native-preview td{padding:9px 10px;border-bottom:1px solid #d7e0e8;text-align:left;vertical-align:top}.import-native-preview small{display:block}.import-native-preview code{white-space:normal;overflow-wrap:anywhere}.import-chat-box{margin-top:20px;padding-top:16px;border-top:1px solid #d7e0e8}.import-chat-box>p{max-width:75ch}.import-chat-box>label{display:grid;gap:6px;font-size:13px}.import-chat-box select,#import-queue select{min-height:38px;max-width:100%;padding:7px;border:1px solid #aebfcf;border-radius:4px;background:white;color:#1d354c}.import-chat-messages{max-height:420px;overflow:auto;overscroll-behavior:contain}.import-chat-message{padding:12px 14px;margin:12px 0;background:#f3f6fa;max-width:85ch}.import-chat-message.user{margin-left:32px;background:#e9eff7}.import-chat-message p{white-space:pre-wrap;margin:6px 0;overflow-wrap:anywhere}.import-chat-message small{display:block;color:#52677b;margin-top:5px;overflow-wrap:anywhere}.import-chat-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.import-chat-form label{display:grid;gap:6px;font-size:13px}.import-chat-form textarea{width:100%;min-height:80px;resize:vertical;padding:10px;border:1px solid #aebfcf;border-radius:4px;font:inherit}.import-assistant button{min-height:38px}.import-assistant .import-actions{flex-wrap:wrap}.import-assistant :focus-visible,#import-queue select:focus-visible{outline:2px solid #245f9e;outline-offset:2px}.import-assistant-status{color:#245f9e}.import-assistant .import-empty{padding:16px 0;color:#52677b}@media(max-width:700px){.import-assistant-heading{display:block}.import-assistant-heading>button{margin-bottom:8px}.import-chat-form{grid-template-columns:1fr}.import-chat-form button{justify-self:start}.import-chat-message.user{margin-left:12px}.import-assistant .import-fields label{min-width:100%;width:100%}#import-queue select{min-width:180px}}
.collection-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}.collection-heading h2{margin:0}.collection-counts{display:flex;flex-wrap:wrap;gap:8px 20px;font-size:12px;margin:12px 0}.collection-counts label{display:flex;align-items:center;gap:4px}.import-collection .tw{max-height:270px;border:1px solid #d7e0e8}.import-collection table{min-width:680px;width:100%;border-collapse:collapse}.import-collection th[scope=row]{position:static;white-space:normal;text-align:left;background:#fff;font-weight:600}.import-collection small{display:block;color:#607188;font-weight:400}.import-collection .btn{min-height:32px;padding:5px 9px;white-space:nowrap}.import-collection .collection-foot{font-size:12px}.import-collection .import-actions{font-size:12px}.import-collection .tw:focus-visible{outline:2px solid #2865c7;outline-offset:2px}@media(max-width:600px){.collection-heading .import-fields{width:100%}.collection-counts>*{flex-basis:100%}.import-collection .tw{max-height:230px}}
#import-workbench{border:0;margin:0;padding:0;min-width:0}#import-app[aria-busy=true]{cursor:progress}
.collection-book{display:flex;gap:10px;align-items:center;justify-content:space-between}.import-collection th[scope=row]{position:sticky;left:0;z-index:1}.import-collection thead th:first-child{left:0;z-index:2}@media(max-width:600px){.collection-book{width:130px;flex-direction:column;align-items:flex-start;gap:4px}.collection-book .btn{font-size:12px;min-height:32px}}
.import-section>summary{font-size:18px;font-weight:650;cursor:pointer}.import-section[open]>summary{margin-bottom:12px}
#import-rule{width:min(760px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:90vh;overflow:auto;border:1px solid #b7c8dc;border-radius:8px;padding:18px}
#import-rule::backdrop{background:#15283c70}
#import-rule h2{font-size:18px;margin:0 0 10px}#import-rule p{font-size:13px;line-height:1.6;color:#52677b}#rule-error{color:#9a342c!important}
#import-rule .import-check{display:grid!important}#import-rule .import-check input{width:100%;padding:8px;border:1px solid #becbda;border-radius:4px}
#rule-body>label,#rule-formulas>label,#rule-formulas details label{display:grid;gap:5px;margin:10px 0;font-size:12px}#rule-body>label select,#rule-formulas input{width:100%;padding:8px;min-height:36px;border:1px solid #becbda;border-radius:4px}#rule-formulas>label input{font-family:ui-monospace,monospace}
#rule-body [hidden]{display:none}
.import-ct8-reference{border:1px solid #ccd6df;background:#f3f6fa;padding:10px;margin:12px 0}
.import-ct8-reference summary{font-weight:600;cursor:pointer}.import-ct8-reference .tw{max-height:240px;overflow:auto}.import-ct8-reference table{min-width:620px;font-size:12px}.import-ct8-reference th{background:#e9ebee;color:#1e3a5f}.import-ct8-reference th,.import-ct8-reference td{padding:5px 7px;border-bottom:1px solid #d7e0e8;white-space:nowrap}.import-ct8-reference td.r{text-align:right}.import-ct8-reference code{white-space:normal;overflow-wrap:anywhere}
.import-section td small{display:block;color:#607188;font-size:12px;margin-top:3px}.import-section details .tw{max-height:380px}
.import-section table td.r,.import-section table th.r{text-align:right}
.import-route a.btn{display:inline-flex}.import-preview table{min-width:660px}.import-preview td{vertical-align:top}.import-preview td span{display:block;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.import-preview td:nth-child(3){min-width:150px}
.import-extract{border-left:3px solid #2c6297}.import-original{display:block;max-width:100%;max-height:240px;object-fit:contain;border:1px solid #ccd6df;margin:10px 0}.import-source-note{padding:10px 12px;background:#fff4d8;border:1px solid #e3c889;margin-bottom:12px;font-size:13px}.import-evidence{min-width:145px;max-width:220px}.import-evidence summary{cursor:pointer;color:#245f9e}.import-evidence blockquote{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;padding-left:8px;border-left:2px solid #ccd6df;font-size:12px}.import-section td .import-check{white-space:nowrap;font-size:12px}.import-section td input[type=checkbox]{width:auto;min-width:18px;min-height:18px}.import-extract .btn{min-height:40px}
@media(max-width:700px){.import-context{padding:0 16px}.import-actions .btn,#import-rule button{min-height:44px}.import-section td:first-child,.import-section th:first-child{position:sticky;left:0;background:#f3f6fa;z-index:1}.import-section th:first-child{z-index:2}.import-fields select,.import-fields input,.import-mapping select{min-height:44px}#import-rule .import-fields label{min-width:100%;box-sizing:border-box}}
.import-upload{border-top:3px solid #245f9e}.import-upload input[type=file]{max-width:100%;min-width:0}
#import-queue h2 small{font-size:12px;font-weight:400;color:#52677b}#import-queue .tw{max-height:280px}#import-queue table{min-width:720px;width:100%;table-layout:auto}#import-queue td{vertical-align:top}#import-queue td:first-child{width:32%;min-width:190px;max-width:360px}#import-queue td small{display:block;overflow-wrap:anywhere}.import-queue-open{border:0;background:none;color:#164c79;text-align:left;font:inherit;width:100%;padding:4px 0;cursor:pointer;overflow-wrap:anywhere}.import-queue-open small{color:#607188}.import-queue-active td{background:#e9eff7}#import-queue td:last-child{white-space:nowrap}.import-suggestion{margin:12px 0;padding:12px;border-left:3px solid #aa781d;background:#fff7e7}.import-suggestion strong{font-size:13px}.import-queue-open:focus-visible,#import-queue .btn:focus-visible{outline:2px solid #245f9e;outline-offset:2px}
@media(max-width:700px){#import-queue td:first-child{max-width:180px;min-width:160px}.import-queue-open,#import-queue .btn{min-height:44px}.import-suggestion .import-fields label{min-width:100%}.import-upload .import-fields{align-items:stretch}.import-upload .import-fields label{min-width:0;flex-basis:100%}}

.import-simple:not(.import-advanced-open) .import-upload>div.import-fields~.import-fields,.import-simple:not(.import-advanced-open) .import-upload #import-range{display:none}.import-simple .import-788>.import-788-roles,.import-simple .import-788>.import-788-note{display:block!important}.import-mode{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.import-mode [aria-pressed=true]{background:#244e81;color:#fff}.import-simple .import-source-kind{margin-top:12px;font-size:12px}.import-simple .import-source-kind>label{display:grid;gap:6px;margin-top:8px}.import-simple .import-source-kind select{padding:8px;border:1px solid #becbda;border-radius:4px}

.import-simple #import-workbench>[hidden]{display:none!important}.import-simple:not(.import-advanced-open) #import-queue>.import-check,.import-simple:not(.import-advanced-open) .import-confirm label:has(#confirm-map),.import-simple:not(.import-advanced-open) .import-confirm label:has(#confirm-accounts),.import-simple:not(.import-advanced-open) .import-draft label:has(#summary-consent),.import-simple:not(.import-advanced-open) .import-draft label:has(#import-date-basis){display:none!important}.import-simple.import-native:not(.import-advanced-open) #draft-grid th:nth-child(10),.import-simple.import-native:not(.import-advanced-open) #draft-grid td:nth-child(10){display:none}.import-native-preview details{margin-top:12px}.import-simple .import-upload label:has(#import-range){display:none}.import-simple.import-advanced-open .import-upload label:has(#import-range){display:block}

.import-788-head label{display:grid;gap:4px;font-size:12px}.import-788-head select{padding:8px;border:1px solid #becbda;border-radius:4px;background:white}.import-788-board table{min-width:550px;font-size:12px}.import-788-board th,.import-788-board td{padding:6px 5px}

.import-simple:not(.import-advanced-open) .import-upload label:has(#import-range){display:none!important}

.import-simple #import-workbench>details:not(.import-upload){order:8;margin-bottom:0}.import-simple #import-workbench>.import-extract{order:7}.import-simple #import-workbench>.import-auto{order:9}.import-simple #import-workbench>.import-upload,.import-simple #import-workbench>.import-draft,.import-simple #import-workbench>.import-confirm{margin-bottom:0}

.import-simple:not(.import-advanced-open) #import-workbench>details:not(.import-upload):not(.import-extract){display:none!important}

.import-simple .import-batches table{min-width:0;width:100%}
