.brand>div:last-child{min-width:0}.brand b{display:block;overflow-wrap:anywhere}.brand-logo{width:40px;height:40px;object-fit:contain;background:#fff;border-radius:8px;padding:3px;flex-shrink:0}
.business-identity{display:flex;align-items:center;gap:18px;overflow-wrap:anywhere;line-height:1.6}.business-identity>div{min-width:0}.business-identity h2{font-size:22px;line-height:1.3;margin:0 0 8px}.business-identity p{margin:4px 0;color:var(--muted);font-size:13px}.business-address{white-space:pre-line}.business-logo{max-width:110px;width:auto;max-height:90px;object-fit:contain;flex-shrink:0}
.form textarea{font:inherit;line-height:1.6;border:1px solid var(--line2);border-radius:9px;padding:11px;width:100%;resize:vertical;background:#fff}.form input[type=file]{max-width:100%;padding:10px}.form .logo-remove{display:flex;align-items:center;gap:8px}.form .logo-remove input{width:auto}.preview-rule{border-top:1px solid var(--line);margin:24px 0}.invoice-actions{justify-content:space-between}.invoice-layout .invoice-document{min-width:0}
@media(max-width:600px){.business-identity{align-items:flex-start;gap:12px;flex-wrap:wrap}.business-identity h2{font-size:20px}.business-logo{max-width:85px;max-height:70px}.invoice-actions{flex-wrap:wrap;gap:10px}}
@media print{
 @page{margin:15mm}
 html,body{height:auto;background:#fff!important;color:#000}
 .side,.top,.overlay,.invoice-actions,.invoice-journal,.flash,.alert{display:none!important}
 .shell,.main,.view,.invoice-layout{display:block!important;margin:0!important;padding:0!important;width:100%!important;min-height:0!important}
 .invoice-document{border:0!important;box-shadow:none!important;width:100%!important;margin:0!important}
 .invoice-document .pb{padding:10px 0!important}.invoice-document .ph{padding:12px 0!important}
 .invoice-document .tablewrap{overflow:visible!important}.invoice-document table{width:100%;font-size:11pt}
 .invoice-document thead{display:table-header-group}.invoice-document tr,.business-identity{break-inside:avoid}
 .business-identity p{color:#222}.invoice-document .badge{border:1px solid #aaa;color:#000!important;background:transparent!important}
}

.form input[type="checkbox"]{width:auto;display:inline-block;margin-right:6px}.form .login-remember{display:flex;align-items:center;gap:6px;margin:14px 0}
