.accounting-entry-layout{min-width:0}.accounting-entry-layout.with-preview{display:grid;grid-template-columns:minmax(240px,.8fr) minmax(0,1.4fr);gap:24px;align-items:start}.accounting-entry-layout form{min-width:0}.accounting-document-preview{position:sticky;top:8px;min-width:0;padding:16px;border:1px solid #dce2ec;border-radius:12px;background:#f7f9fc}.accounting-document-preview h3{font-size:16px;margin:0 0 12px}.accounting-document-preview iframe{width:100%;height:560px;border:0;background:#fff;border-radius:8px}.accounting-document-preview img{display:block;width:100%;height:auto;max-height:620px;object-fit:contain;margin-bottom:12px}.accounting-document-preview a{display:inline-flex;margin-top:12px}.accounting-invoice-line{display:grid!important;grid-template-columns:minmax(100px,1fr) minmax(85px,.8fr) minmax(95px,.9fr);gap:12px;padding:16px 0;border-bottom:1px solid #dce2ec}.accounting-invoice-line .accounting-line-category{grid-column:1/-1}.accounting-invoice-line label{min-width:0}.accounting-invoice-line select{max-width:100%;width:100%}.accounting-invoice-line .invoice-vat-remove{grid-column:1/-1;justify-self:start}.accounting-rule-origin{color:#42506b;background:#f1f5fc;padding:12px 16px;border-radius:8px;line-height:1.6}.accounting-save-status{font-size:14px;color:#42506b;line-height:1.6;min-height:22px}.accounting-paste summary,.accounting-archive summary{cursor:pointer;font-weight:650;padding:12px 0;min-height:44px}.accounting-paste p{font-size:14px;color:#42506b;line-height:1.6}.accounting-drop-zone{display:flex;flex-direction:column;gap:14px;padding:24px;border:1px dashed #8190aa;border-radius:12px;background:#f7f9fc}.accounting-drop-zone input{max-width:100%;min-height:44px}.accounting-drop-zone small{color:#42506b;font-size:14px;line-height:1.6}.accounting-inbox>.form-actions{padding:16px 0;flex-wrap:wrap}.accounting-inbox table td:first-child input{width:24px;height:24px;min-width:24px}.accounting-inbox table td:first-child{padding:12px 16px}.accounting-inbox table small{display:block;color:#42506b;font-size:14px;margin-top:6px}.accounting-archive{margin-top:20px}.accounting-document-actions{min-width:180px}.accounting-document-actions button{display:block;white-space:normal;width:100%;margin:4px 0;min-height:44px}.accounting-inbox .empty{padding:30px 20px}.accounting-electronic{margin-top:20px}.accounting-electronic .notice{margin:16px 0}.accounting-electronic .form-actions{flex-wrap:wrap}.accounting-document-preview p{font-size:14px;line-height:1.6;color:#42506b}
@media(max-width:1100px){.accounting-entry-layout.with-preview{grid-template-columns:1fr}.accounting-document-preview{position:static}.accounting-document-preview iframe{height:320px}.accounting-document-preview img{max-height:320px}}@media(max-width:600px){.accounting-invoice-line{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.accounting-invoice-line label:nth-child(3),.accounting-invoice-line .accounting-line-category{grid-column:1/-1}.accounting-drop-zone{padding:18px 14px}.accounting-invoice-line .invoice-vat-remove{width:100%}.accounting-entry-layout .form-actions button{flex:1 1 100%}.accounting-entry-layout .invoice-vat-footer{display:flex;flex-direction:column;align-items:stretch;gap:12px}}
.accounting-source-mismatch{color:#9b2536;background:#fff3f4;border:1px solid #efb9c0;border-radius:8px;padding:12px;line-height:1.6}.accounting-field-source{display:block!important;color:#42506b;font-size:14px;line-height:1.6;margin-top:6px}
.accounting-line-tax{grid-column:1/-1}.accounting-special-tax p{margin:0 0 12px;line-height:1.6}
#invoice-vat-total{font-size:16px;line-height:1.5;font-weight:700}

.accounting-rule-save{justify-self:start;white-space:normal;text-align:left;min-height:44px}
@media(max-width:600px){#invoice-form>.form-actions{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;padding-top:12px}#invoice-form>.form-actions button{min-width:0;min-height:44px;white-space:normal;order:1;font-size:14px}#invoice-form>.form-actions .primary{grid-column:1/-1;order:0}#invoice-form>.form-actions .modal-cancel{display:none}#invoice-form>.form-actions button[name="saveNext"]{font-size:14px}}
