/* V443 — compact custom paper and private brand font manager. UI only. */
.invoice-edit-paper{height:29px;min-height:29px;padding:0 9px;font-size:10px}
.invoice-custom-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0}
.invoice-custom-grid label{display:grid;gap:5px;font-size:11px;font-weight:650}
.invoice-custom-grid input{width:100%;min-width:0}
.invoice-font-list{display:grid;gap:8px;margin-top:12px}
.invoice-font-item{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;border:1px solid var(--border,#83917a);border-radius:7px;padding:9px}
.invoice-font-item-name{flex:1;min-width:0;display:grid;gap:2px}
.invoice-font-item-name b{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.invoice-font-item-name small{font-size:10px;opacity:.8}
.invoice-font-item .btn{flex:none}
@media(max-width:520px){.invoice-edit-paper{padding-inline:6px;font-size:10px}.canvas-toolbar #paper-size{max-width:95px}.invoice-font-item{flex-wrap:wrap}.invoice-custom-grid{gap:7px}}

#edit-custom-paper[hidden]{display:none!important}
