.pre { white-space: pre-line; }
.stat { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.company-logo { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid #e5e7eb; padding: 3px; }
.placeholder-logo { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; background: #eef2ff; color: #4338ca; }
.invoice-preview { background: #fff; border-radius: 6px; overflow-x: auto; }
.invoice-preview .inv { min-width: 640px; }
.totals-box > div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals-box .grand { font-weight: 700; font-size: 1.1rem; border-top: 2px solid #111; margin-top: 6px; padding-top: 6px; }
.tpl-option { cursor: pointer; }
.tpl-option:has(input:checked) { border-color: #2563eb !important; background: #eff6ff; }

.plan-card { position: relative; }
.plan-ribbon { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: #2563eb; color: #fff; font-size: .75rem; font-weight: 600; padding: 2px 14px; border-radius: 20px; }
.plan-features li { padding: 3px 0; }
.gw-btn:hover { background: #f1f5f9; }
