/* Dealer Orders - small additions on top of Bootstrap 5.3 */
body { font-size: 0.95rem; }
.cp-login-card { max-width: 440px; margin: 3rem auto; }
.cp-qr svg { max-width: 220px; height: auto; border: 1px solid #dee2e6; border-radius: .25rem; background: #fff; }
.cp-secret { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; word-break: break-all; }
.cp-acting-banner { border-radius: 0; margin: 0; }
.table-sm td, .table-sm th { vertical-align: middle; }

/* ---- My Account screen (modelled on the old portal page) ---- */
.cp-tab-content { border: 1px solid #dee2e6; border-top: 0; border-radius: 0 0 .25rem .25rem; }
.cp-scroll { max-height: 300px; overflow-y: auto; overflow-x: hidden; }
.cp-scroll-tall { max-height: 580px; }
.cp-invoices th { position: sticky; top: 0; background-color: #fff; }
.cp-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; user-select: all; }
.cp-chevron { display: inline-block; width: 1rem; margin-right: .25rem; transition: transform .15s; }
.cp-toggle:not(.collapsed) .cp-chevron { transform: rotate(90deg); }
@media print {
    .cp-noprint, header, .nav-tabs { display: none !important; }
    body { background: #fff !important; }
    .card { border: 0 !important; box-shadow: none !important; }
}

/* ---- Invoice page (BobCAD invoice layout) ---- */
.cp-invoice { max-width: 8.5in; margin: 0 auto; font-size: .9rem; }
.cp-inv-label { font-weight: 700; font-size: .8rem; letter-spacing: .03em; }
.cp-inv-table thead th { background-color: #e6e6e6; font-size: .75rem; letter-spacing: .02em; }
.cp-inv-table td, .cp-inv-totals td { font-size: .85rem; }
.cp-inv-totals { width: 17rem; }
.cp-inv-licenses { max-width: 22rem; }
.cp-inv-footer { color: #444; }
/* margin 0 removes the browser's own date/URL header and footer; the invoice carries its own .5in padding when printed */
@page { size: letter; margin: 0; }
@media print {
    main.container { padding: 0 !important; max-width: none !important; }
    .cp-invoice { box-shadow: none !important; padding: .5in !important; max-width: none; font-size: .8rem; }
    .cp-invoice-logo { margin-bottom: .5rem !important; }
    .cp-inv-footer { margin-top: .75rem !important; }
    .cp-inv-table thead th { background-color: #e6e6e6 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
