/* Billing screens: quotations, invoices, business details. Classes start bx-. */
.bx-pre { white-space: pre-wrap; word-break: break-word; }
.bx-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 8px 0; }
.bx-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.bx-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 6px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bx-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.bx-table a { color: var(--purple); font-weight: 600; text-decoration: none; white-space: nowrap; }
.bx-table .bx-num { text-align: right; white-space: nowrap; }
.bx-table tfoot td { border-bottom: 0; padding-top: 4px; padding-bottom: 4px; }
.bx-table tfoot tr:first-child td { border-top: 1px solid var(--line); padding-top: 8px; }
.bx-table tr.bx-total td { font-weight: 700; font-size: 15px; }

.bx-tag-ok { background: #e6f4ec; color: var(--good); }
.bx-tag-off { background: #eceaf2; color: var(--muted); }

.bx-warn { border-color: #e0a100; background: #fdf6e3; }
.bx-warn p { margin: 0 0 6px; }
.bx-warn p:last-child { margin-bottom: 0; }
.bx-warn a { color: var(--purple); font-weight: 600; }
.bx-good { border-color: #9fd3b4; background: #f1faf4; }
.bx-good p { margin: 0 0 6px; }
.bx-good p:last-child { margin-bottom: 0; }

.bx-summary { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.bx-stat { display: grid; gap: 2px; }
.bx-stat b { font-size: 20px; }
.bx-stat-warn b { color: var(--bad); }

.bx-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 8px 0 12px; font-size: 15px; }
.bx-facts dt { color: var(--muted); }
.bx-facts dd { margin: 0; word-break: break-word; }
.bx-facts a { color: var(--purple); font-weight: 600; }
.bx-signed { margin-top: 12px; padding-top: 4px; border-top: 1px solid var(--line); }

.bx-act { margin: 0 0 16px; display: grid; gap: 8px; justify-items: start; }
.bx-act > div { width: 100%; max-width: 420px; }
.bx-gap { margin: 12px 0 0; }
.bx-chip { display: inline-block; margin-right: 12px; }
.bx-chip a { color: var(--purple); font-weight: 600; }
.bx-history li { font-size: 14px; }
.bx-h3 { font-size: 15px; margin: 16px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.bx-h3:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
textarea.bx-tall { min-height: 160px; }

.bx-line { display: grid; grid-template-columns: 3fr 1fr 1fr; gap: 0 12px; }
.bx-lines { margin-bottom: 4px; }

@media (max-width: 520px) {
  .bx-line { grid-template-columns: 1fr 1fr; }
  .bx-line > div:first-child { grid-column: 1 / -1; }
  .bx-facts { grid-template-columns: 1fr; gap: 0; }
  .bx-facts dd { margin-bottom: 6px; }
}

/* Monthly plan card on a client's page. Classes start pl-. */
.pl-cancel { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
