/* Shared presentation for staff access, customer invoices and invoice payment. */
:root { color-scheme: dark; --bg: #080e1c; --panel: #111d30; --text: #f3f6fc; --muted: #adbbcf; --line: #2c3d56; --accent: #c5f568; --blue: #82adff; }
body { font-family: "Segoe UI", system-ui, sans-serif; color: var(--text); background: radial-gradient(ellipse at 80% 0%, #18355d, transparent 60%), var(--bg); line-height: 1.6; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
a, .links a { color: var(--blue); text-underline-offset: 4px; }
.access-page { padding: 36px 20px; }
.card, .invoice { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 24px 80px #0004; }
.access-page .card { padding: 32px; width: min(520px, 100%); max-width: 520px; }
.logo-lockup { background: #142642; border-radius: 5px; padding: 14px; box-shadow: none; }
.logo { max-height: 110px; object-fit: contain; }
.pay-logo, .portal-logo { background: #142642; border-radius: 5px; padding: 10px 16px; max-height: 110px; object-fit: contain; }
h1 { font-size: clamp(1.8rem, 5vw, 2.4rem); line-height: 1.12; letter-spacing: -.04em; }
h2 { letter-spacing: -.025em; }
p, label, .muted, .invoice small, .invoice span { color: var(--muted); }
label { font-size: 12px; font-weight: 600; }
input { min-width: 0; background: #0b1425; color: var(--text); border: 1px solid #3b506f; border-radius: 5px; }
input::placeholder { color: #93a4bc; }
button, .pay-link { background: var(--accent); color: var(--bg); font-size: 13px; font-weight: 750; border-radius: 5px; min-height: 46px; }
button:hover, .pay-link:hover { background: #d4ff8a; }
.links { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; font-size: 12px; }
.message { background: #f5ca7b17; color: #f5ca7b; border: 1px solid #665139; }
.error { color: #ff9c9c; }
.success { color: #9de7b3; }
.pdf-link { background: transparent; color: var(--blue); border: 1px solid #3b506f; border-radius: 5px; }
.amount { color: var(--accent); font-size: 2.8rem; letter-spacing: -.04em; }
.customer-portal header { background: #0b1425; border-bottom: 1px solid var(--line); padding: 22px max(20px, calc((100vw - 920px) / 2)); }
.customer-portal main { margin-block: 40px; }
.customer-portal .card { padding: 28px; }
.customer-portal .invoice { padding: 24px; overflow-x: auto; box-shadow: none; }
.line-items th, .line-items td { border-color: var(--line); }
.line-items th { color: var(--muted); font-size: 11px; }
@media (max-width: 620px) { .access-page .card { padding: 24px; } .invoice { grid-template-columns: minmax(0, 1fr); } .invoice-actions { justify-items: stretch; } .customer-portal .card, .customer-portal .invoice { padding: 20px; } }
@media print { :root { color-scheme: light; } body, .card, .invoice, .customer-portal header { background: #fff; color: #111; box-shadow: none; } p, label, .invoice small, .invoice span { color: #444; } button, .invoice-actions, form { display: none; } .amount { color: #111; } }

.invoice .paid { color: #9de7b3; }
.invoice .overdue { color: #ff9c9c; }

button, input, select, textarea { font-family: inherit; }
@media print { .line-items th, .line-items td, .invoice .paid, .invoice .overdue { color: #111; } }
