.companyCardLookupField{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:4px}.companyCardLookupField button{border:1px solid var(--border,#bbc5d0);background:var(--surface,#fff);border-radius:3px;min-height:34px}.companyCardEditor input[inputmode=decimal]{text-align:right;font-variant-numeric:tabular-nums}.companyCardEditor .movementRelatedFooter{display:flex;justify-content:space-between;margin-top:18px}.companyCardEditor .bankCardFields{grid-template-columns:repeat(2,minmax(180px,1fr))}.companyCardDetailGrid{height:280px;flex:none;margin-top:12px}@media(max-width:600px){.companyCardEditor .bankCardFields{grid-template-columns:1fr}}

/* Voucher workspace: common document tabs own navigation and close guards. */
.companyCardVoucherPage{height:100%;min-height:0;padding:0;background:var(--surface-alt,#f4f7fa);color:var(--text,#182535);overflow:hidden}
.companyCardVoucherPage[hidden]{display:none}
.companyCardVoucherPage>form{height:100%;min-height:0;display:flex;flex-direction:column;overflow:auto;padding:20px 24px 0;gap:16px}
.companyCardVoucherPage h2{font-size:21px;margin:0;padding:0 0 4px;font-weight:600}
.companyCardVoucherSections{display:grid;grid-template-columns:minmax(240px,.85fr) minmax(320px,1.3fr) minmax(320px,1.25fr);gap:16px}
.companyCardVoucherSection{min-width:0;margin:0;border:1px solid var(--border,#ccd4df);border-radius:8px;background:var(--surface,#fff);padding:16px}
.companyCardVoucherSection legend{font-weight:600;font-size:14px;padding:0 8px;color:var(--text,#182535)}
.companyCardVoucherSection .bankCardFields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
.companyCardVoucherSection:first-child .bankCardFields{grid-template-columns:1fr}
.companyCardVoucherSection label>span:first-child{font-size:12px;color:var(--text-muted,#64748b)}
.companyCardVoucherSection input,.companyCardVoucherSection textarea,.companyCardVoucherSection select{min-width:0;max-width:100%;border:1px solid var(--border,#bbc5d0);border-radius:4px;background:var(--surface,#fff);color:inherit;padding:7px 9px;font:inherit}
.companyCardVoucherSection input[readonly]{background:var(--surface-alt,#f4f7fa)}
.companyCardVoucherSection input[inputmode=decimal]{text-align:right;font-variant-numeric:tabular-nums}
.companyCardVoucherSection .companyCardField-cardId,.companyCardVoucherSection .companyCardField-customerId,.companyCardVoucherSection .companyCardField-projectId,.companyCardVoucherSection .companyCardField-accountingId,.companyCardVoucherSection .companyCardField-description{grid-column:1/-1}
.companyCardVoucherSection textarea{width:100%;min-height:86px;resize:vertical}
.companyCardNumberButton{align-self:flex-start;font-size:12px}
.companyCardVoucherPlan{flex:1 0 230px;min-height:230px;border:1px solid var(--border,#ccd4df);border-radius:8px;background:var(--surface,#fff);overflow:hidden;display:flex;flex-direction:column}
.companyCardPlanHeading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid var(--border,#ccd4df)}
.companyCardPlanHeading h3{font-size:15px;margin:0}.companyCardPlanHeading .bankStatus{padding:0;margin:0}
.companyCardPlanBody{overflow:auto;flex:1;max-height:42vh}
.companyCardPlanBody table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:13px}
.companyCardPlanBody th{position:sticky;top:0;background:var(--surface-alt,#f4f7fa);font-weight:600;text-align:left}
.companyCardPlanBody td,.companyCardPlanBody th{padding:10px 16px;border-bottom:1px solid var(--border,#e3e8ef)}
.companyCardPlanBody td:nth-child(3),.companyCardPlanBody th:nth-child(3){text-align:right}
.companyCardPlanBody tbody tr:nth-child(even){background:var(--surface-alt,#f8fafc)}
.companyCardPlanBody caption{padding:8px 16px;text-align:left;color:var(--text-muted,#64748b)}
.companyCardVoucherPage .bankError:empty{display:none}.companyCardVoucherPage .bankError{margin:0}
.companyCardVoucherPage .movementRelatedFooter{position:sticky;bottom:0;z-index:2;display:flex;align-items:center;justify-content:flex-end;background:var(--surface,#fff);border-top:1px solid var(--border,#ccd4df);padding:12px 24px;margin:0 -24px;flex-shrink:0}
@media(max-width:1100px){.companyCardVoucherSections{grid-template-columns:1fr 1fr}.companyCardVoucherSection:first-child{grid-column:1/-1}.companyCardVoucherSection:first-child .bankCardFields{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.companyCardVoucherPage>form{padding:12px 12px 0}.companyCardVoucherSections{grid-template-columns:1fr}.companyCardVoucherSection:first-child .bankCardFields{grid-template-columns:1fr 1fr}.companyCardVoucherPage .movementRelatedFooter{margin:0 -12px;padding:12px}.companyCardPlanHeading{align-items:flex-start;flex-direction:column}.companyCardPlanBody td,.companyCardPlanBody th{padding:10px 8px}}

@media(max-width:480px){.companyCardVoucherSection:first-child .bankCardFields{grid-template-columns:minmax(0,1fr)}}
