/* Client account and team console; shared tokens come from main.css. */
.portal .crumbs { color: #c8d5e2; font-size: .8rem; margin: 0 0 14px; }
.portal .crumbs a { color: var(--gold); text-decoration: none; }
.acct-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.acct-month { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--bg); }
.acct-month h3 { font-size: .95rem; margin: 0 0 6px; }
.acct-month p { margin: 0; font-size: .82rem; }
.acct-month--used { border-color: var(--teal); background: #eaf6f4; }
.acct-month--ended { opacity: .68; }
.acct-slot-group { margin: 16px 0 0; }
.acct-slot-group h3 { font-size: .88rem; margin: 0 0 8px; color: var(--muted); }
.acct-slots { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-slot { display: inline-flex; gap: 7px; align-items: center; border: 1px solid var(--line); border-radius: 30px; padding: 7px 13px; font-size: .82rem; background: #fff; cursor: pointer; }
.acct-slot input { accent-color: var(--teal-700); margin: 0; }
.acct-slot:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.acct-item { display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.acct-item:last-child { border-bottom: 0; }
.acct-item h3 { margin: 0 0 4px; font-size: 1rem; }
.acct-item p { margin: 2px 0; font-size: .85rem; }
.acct-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.acct-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.acct-form-grid .field { margin: 0; }
.acct-field--wide { grid-column: 1 / -1; }
.acct-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.25rem; letter-spacing: .12em; background: var(--navy); color: var(--gold); padding: 14px 18px; border-radius: 10px; display: inline-block; overflow-wrap: anywhere; user-select: all; }
.acct-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.acct-table th, .acct-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.acct-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.acct-scroll { overflow-x: auto; }
.acct-empty { padding: 18px; background: var(--bg); border-radius: 10px; font-size: .88rem; }
.acct-sub { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.acct-sub h2 { margin: 0; }
.acct-note { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.acct-code-panel { border: 1px solid #ddc690; background: #fff8e8; border-radius: 10px; padding: 16px; margin-top: 14px; }
.acct-code-panel p { margin: 6px 0; }
.portal .portal-badge--booked { background: #e7eef7; color: #163a5f; }
#acct-error .portal-status { margin-top: 12px; }

/* Billing: purchase, invoices, slip review */
.bill-subhead { font-size: .9rem; margin: 10px 0 0; color: var(--navy); }
.bill-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; font-size: .86rem; line-height: 1.5; cursor: pointer; }
.bill-check input { margin-top: 4px; accent-color: var(--teal-700); flex: none; }
.bill-summary { margin: 14px 0 6px; }
.bill-amounts { width: 100%; max-width: 460px; border-collapse: collapse; font-size: .88rem; }
.bill-amounts th { text-align: left; font-weight: 400; padding: 6px 0; color: var(--muted); }
.bill-amounts td { text-align: right; padding: 6px 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bill-amounts__total th, .bill-amounts__total td { border-top: 1px solid var(--line); font-weight: 700; color: var(--navy); font-size: 1rem; }
.bill-invoice { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 14px 0; background: #fff; }
.bill-invoice h3 { margin: 0 0 4px; font-size: 1rem; }
.bill-invoice--paid { border-color: var(--teal); }
.bill-invoice--void { opacity: .7; }
.bill-invoice--unpaid { border-color: #ddc690; }
.bill-payto { border: 1px dashed #ddc690; background: #fffaf0; border-radius: 10px; padding: 14px 16px; margin: 14px 0; }
.bill-payto .portal-dl { margin: 6px 0 0; }
.bill-sample { background: #fdecea; color: #8a1c12; border-radius: 8px; padding: 8px 12px; font-size: .82rem; font-weight: 600; margin: 0 0 8px; }
.bill-payform { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 6px; }
.bill-payform h3 { margin: 10px 0 0; }
.bill-payments { margin: 6px 0 0; }
.bill-payment { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.bill-payment p { margin: 2px 0; }
.bill-buy { margin-top: 14px; }
.bill-issue { margin: 16px 0; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; background: var(--bg); }
.bill-issue summary { cursor: pointer; font-weight: 600; }

/* Override broad marketing-table defaults for money summaries and documents. */
.bill-amounts { min-width: 0; }
.bill-amounts th { background: transparent; text-transform: none; letter-spacing: normal; }
.doc-sheet table { min-width: 0; }
.doc-sheet .doc-meta { width: auto; }
.doc-meta th, .doc-totals th { background: transparent; letter-spacing: normal; color: var(--muted); }
.doc-meta td, .doc-meta th { border-bottom: 0; }
.doc-totals__strong th { background: transparent; color: var(--navy); }
.doc-toolbar .lang button { color: var(--navy); }

/* Printable document */
.docpage { background: #e9edf2; }
.doc-toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; max-width: 210mm; margin: 18px auto 0; padding: 0 4px; }
.doc-status { max-width: 210mm; margin: 24px auto; background: #fff; padding: 24px; border-radius: 10px; }
.doc-sheet { position: relative; overflow: hidden; max-width: 210mm; min-height: 270mm; margin: 14px auto 40px; background: #fff; padding: 16mm 15mm; box-shadow: 0 6px 24px rgba(10, 30, 60, .12); font-size: 10.5pt; color: #1b2733; }
.doc-sheet p { margin: 2px 0; }
.doc-watermark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; transform: rotate(-28deg); font-size: 34pt; font-weight: 700; color: rgba(190, 40, 30, .1); pointer-events: none; text-align: center; white-space: nowrap; }
.doc-head { display: flex; justify-content: space-between; gap: 18px; border-bottom: 2px solid var(--gold); padding-bottom: 12px; }
.doc-brand { display: flex; gap: 12px; align-items: flex-start; max-width: 58%; }
.doc-brand img { width: 120px; height: auto; flex: none; }
.doc-brand strong { display: block; margin-bottom: 2px; }
.doc-title { text-align: right; }
.doc-title h1 { font-size: 17pt; margin: 0; color: var(--navy); }
.doc-copy { font-size: 9pt; color: var(--muted); }
.doc-copy--paid { color: var(--teal-700); font-weight: 700; }
.doc-meta { margin: 8px 0 0 auto; border-collapse: collapse; font-size: 9.5pt; }
.doc-meta th { text-align: left; font-weight: 400; color: var(--muted); padding: 1px 10px 1px 0; }
.doc-meta td { text-align: right; font-weight: 600; }
.doc-parties { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; margin: 14px 0; }
.doc-party { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.doc-party h3 { font-size: 9pt; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 4px; }
.doc-items { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.doc-items th { background: var(--navy); color: #fff; font-weight: 600; font-size: 9pt; padding: 7px 8px; text-align: left; }
.doc-items td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-items th:nth-child(n+3), .doc-items td:nth-child(n+3) { text-align: right; white-space: nowrap; }
.doc-muted { color: var(--muted); font-size: 9pt; }
.doc-sums { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.doc-words { flex: 1; background: var(--bg); border-radius: 8px; padding: 10px 12px; }
.doc-totals { border-collapse: collapse; min-width: 300px; }
.doc-totals th { text-align: left; font-weight: 400; padding: 4px 14px 4px 0; }
.doc-totals td { text-align: right; padding: 4px 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc-totals__strong th, .doc-totals__strong td { font-weight: 700; border-top: 2px solid var(--navy); color: var(--navy); }
.doc-foot { margin-top: 18px; display: grid; gap: 14px; }
.doc-box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.doc-box h3 { margin: 0 0 4px; font-size: 10.5pt; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 34px; text-align: center; }
.doc-sign__line { display: block; border-bottom: 1px dotted #555; height: 34px; margin-bottom: 4px; }
.doc-disclaimer { margin-top: 18px !important; font-size: 8.5pt; color: #8a1c12; border-top: 1px solid var(--line); padding-top: 8px; }
@media (max-width: 760px) {
  .doc-sheet { padding: 18px; min-height: 0; }
  .doc-head, .doc-sums { flex-direction: column; }
  .doc-title { text-align: left; }
  .doc-meta { margin-left: 0; }
  .doc-parties { grid-template-columns: 1fr; }
  .doc-totals { min-width: 0; width: 100%; }
}
@media print {
  @page { size: A4; margin: 0; }
  .docpage { background: #fff; }
  .doc-toolbar, .cookies, .skip { display: none !important; }
  .doc-sheet { margin: 0; box-shadow: none; max-width: none; min-height: 0; }
  .doc-watermark { color: rgba(190, 40, 30, .12); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc-items th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 760px) {
  .acct-months { grid-template-columns: 1fr; }
  .acct-form-grid { grid-template-columns: 1fr; }
}
