.document-source{min-width:0}.document-source-fieldset{border:0;padding:0;margin:0;min-width:0}.local-accountant .document-source-fieldset{border:0;padding:0;margin:0;background:transparent}.document-source-drop{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:164px;padding:24px;border:1.5px dashed #9fb8ad;border-radius:12px;background:linear-gradient(180deg,#f9fcfa,#f2f8f5);text-align:center;cursor:pointer;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}.document-source-drop.is-dragging,.document-source-drop:hover{border-color:#15604a;background:#eaf4ef;box-shadow:0 2px 8px rgba(21,96,74,.08)}.document-source-drop.has-files{min-height:86px;padding:16px;gap:5px}.document-source-drop.has-files .document-source-drop-icon{display:none}.document-source-drop:focus-within{outline:3px solid #76b59f;outline-offset:2px}.document-source-drop.is-disabled{opacity:.65;cursor:wait}.document-source-drop strong{font-size:16px;font-weight:650;color:#112b22}.document-source-drop>span:last-of-type{color:#5b6e65;font-size:13px}.document-source-drop-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#dff0e7;border:1px solid #c5dfd1;color:#15604a;font-size:22px;font-weight:600;line-height:1;box-shadow:0 1px 2px rgba(21,96,74,.08)}.document-source-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:inherit}.document-source-files{margin-top:14px}.document-source-count{margin:0 0 6px;color:#5b6d64;font-size:12px;font-weight:600;letter-spacing:.01em}.document-source-card{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 12px;margin-bottom:6px;border:1px solid #e4ece7;border-radius:10px;background:#fbfdfc;transition:opacity .15s ease,background .15s ease}.document-source-card:hover{background:#f4f9f6;border-color:#d2e0d8}.document-source-card.is-inactive{opacity:.55;background:#f7f9f8}.document-source-card.is-inactive .document-source-file-copy>strong{text-decoration:line-through}.document-source-thumbnail{display:grid;place-items:center;width:40px;height:42px;overflow:hidden;border:1px solid #d5e2db;border-radius:8px;background:#eef4f1}.document-source-thumbnail img{width:100%;height:100%;object-fit:cover}.document-source-thumbnail span{color:#15604a;font-size:11px;font-weight:700;letter-spacing:.03em}.document-source-file-copy{min-width:0}.document-source-file-copy>strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#11241c;font-size:13.5px;font-weight:600}.document-source-file-copy p{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin:3px 0 0;color:#64766d;font-size:12px}.document-source-badge{background:#e8f1ec;color:#1c5340;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:600}.document-source-card-actions{display:flex;align-items:center;gap:6px}.document-source-edit{padding:4px 11px!important;white-space:nowrap;border-radius:8px!important}.document-source-cancel-btn,.document-source-edit{min-height:32px!important;font-size:12.5px!important}.document-source-cancel-btn{min-width:32px;padding:4px 9px!important;border:1px solid transparent!important;background:transparent!important;color:#6c7d74!important;border-radius:8px!important;box-shadow:none!important}.document-source-cancel-btn:hover:not(:disabled){background:#feeceb!important;border-color:#f6c9c6!important;color:#b42318!important}.document-source-dialog-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.document-btn-ghost{background:transparent!important;border:1px solid #cdd9d2!important;color:#3c5147!important;box-shadow:none!important}.document-btn-ghost:hover:not(:disabled){background:#f2f6f4!important}.document-source-upload-status{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #e2ebe6}.document-source-upload-status>div:first-child{flex:1 1 160px;min-width:0;overflow-wrap:anywhere}.document-source-upload-status strong{display:block;font-size:14px}.document-source-upload-status p,.document-source-upload-status span{color:#5f7169;font-size:12px;margin:4px 0 0}.document-source-upload-status[data-upload-state=failed] p,.document-source-upload-status[data-upload-state=needs_file] p{color:#a53136}.document-source-upload-actions{display:flex;gap:8px}.document-source-upload-actions button{min-height:40px;padding:7px 10px;font-size:12px}.document-source-feedback>p{margin:12px 0 0;color:#546a5f;font-size:13px}.document-source-dialog{box-sizing:border-box;width:min(1040px,calc(100vw - 40px));max-height:calc(100dvh - 40px);margin:auto;padding:26px;border:1px solid #ceddd5;border-radius:16px;box-shadow:0 24px 60px -12px rgba(15,33,27,.22),0 4px 14px -4px rgba(15,33,27,.08);color:#142b22;background:#fff}.document-source-dialog::backdrop{background:rgba(15,33,27,.52);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.document-source-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.document-source-dialog-heading h3{margin:4px 0;min-width:0;overflow-wrap:anywhere;font-size:20px;font-weight:650;line-height:1.4}.document-source-dialog-heading button{flex-shrink:0;min-height:40px;padding:8px 14px}.document-source-draft-hint{margin:10px 0 22px;color:#5e7068;font-size:13px;line-height:1.7}.document-source-dialog-body{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,.8fr);gap:24px;align-items:start}.document-source-preview-panel{min-width:0;padding:16px;border-radius:12px;background:#f2f6f4;border:1px solid #dfe8e3}.document-source-preview img{display:block;width:auto;max-height:58dvh;margin:auto;object-fit:contain;border-radius:6px}.document-source-preview>p:last-child{margin:14px 0 0;font-size:13px}.document-source-preview a{color:#15604a;text-underline-offset:3px;font-weight:550}.document-source-preview .local-table-scroll{max-width:100%;overflow:auto}.document-source-editor-fields{display:grid;gap:14px;min-width:0;margin:0;border:0;padding:0;background:transparent}.document-source-editor-fields label{display:grid;gap:8px;color:#1e362c;font-size:14px;font-weight:600}.document-source-editor-fields select,.document-source-editor-fields textarea{box-sizing:border-box;width:100%;min-height:44px;border:1px solid #bfd0c7;border-radius:8px;padding:10px 12px;background:white;color:#142b22;font:inherit;font-weight:400;box-shadow:0 1px 2px rgba(15,33,27,.03)}.document-source-editor-fields textarea{min-height:148px;resize:vertical;line-height:1.6}.document-source-editor-fields select:focus,.document-source-editor-fields textarea:focus{outline:3px solid #88c2ab;outline-offset:2px;border-color:#15604a}.document-source-purpose-hint{margin:-4px 0 2px;font-size:12px;line-height:1.6;color:#5e7068}@media (max-width:600px){.document-source-drop{min-height:146px;padding:22px 14px}.document-source-drop>span:last-of-type{font-size:12px}.document-source-card{grid-template-columns:38px minmax(0,1fr);gap:8px 10px;padding:12px}.document-source-thumbnail{width:38px;height:42px;grid-row:1/3;align-self:start}.document-source-card-actions{grid-column:2;justify-self:start}.document-source-file-copy p{gap:3px 8px;font-size:11px}.document-source-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);padding:18px;border-radius:12px}.document-source-dialog-heading h3{font-size:17px}.document-source-dialog-body{grid-template-columns:minmax(0,1fr);gap:20px}.document-source-preview-panel{padding:12px}.document-source-preview img{max-height:36dvh}}.invoice-identity{margin:14px 0 8px;color:#1e362c}.invoice-identity summary{cursor:pointer;font-weight:600}.local-accountant .invoice-identity-controls{min-width:0;margin:0;padding:0;border:0;background:transparent}.local-accountant .invoice-identity-fields{display:grid;gap:10px;min-width:0;margin:12px 0;padding:12px;border:1px solid #d2e0d8;border-radius:8px}.invoice-identity-fields legend{font-weight:600}.invoice-identity-fields label{display:grid;gap:4px;overflow-wrap:anywhere}.invoice-identity-fields select,.invoice-identity-fields textarea{width:100%;min-width:0}.invoice-identity-fields label.invoice-identity-choice{display:flex;align-items:baseline;gap:8px}.invoice-identity-choice input[type=checkbox]{flex:0 0 auto;width:auto}.invoice-identity-fields p{margin:0}.invoice-identity-totals{overflow-wrap:anywhere}.invoice-identity-totals h4,.invoice-identity-totals h5{margin:12px 0 6px}.invoice-identity-totals dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:6px 12px;margin:0}.invoice-identity-totals dt{color:#52675c;font-size:.85rem}.invoice-identity-totals dd{margin:0;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.invoice-pending-items{display:grid;gap:10px;padding:0;margin:0;list-style:none}.invoice-pending-items li{overflow-wrap:anywhere;padding-top:8px;border-top:1px solid #d2e0d8}.invoice-pending-items a{display:inline-block;margin-top:4px}.invoice-pending-pages{display:flex;flex-wrap:wrap;gap:0 12px}