/* Print / PDF layout (ROADMAP F109): loaded on every page with media="print" (base.html). White paper, black text,
   only the page's content: no menu bar, price strip, phone tab bar, footer, buttons, option panels or forms. Tables
   at full width with all their rows (headers repeated on each page); rows, cards and charts are not split. The header
   / footer lines (.print-only) come from static/js/print_page.js. Up / down keep their arrows for a black-and-white
   printer. Checked by tests/www/test_print.py. */

@page { margin: 14mm 12mm; }

:root,
[data-bs-theme="dark"],
[data-bs-theme="light"] {
    --surface: #ffffff;
    --panel: #ffffff;
    --panel-2: #ffffff;
    --panel-3: #f1f1f1;
    --ink: #000000;
    --ink-dim: #222222;
    --ink-faint: #444444;
    --border: #9a9a9a;
    --border-soft: #cfcfcf;
    --up-ink: #06603f;
    --down-ink: #9b1c1c;
    --link: #000000;
    --row-alt: transparent;
    --row-hover: transparent;
    --shadow-sm: none;
    --shadow-md: none;
}

html,
body,
body.chart-body {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
    color: #000000;
    background: #ffffff !important;
}

.skip-link,
nav.navbar,
nav.tabbar,
.site-footer,
.access-banner,
.toast-stack,
.page-progress,
.bar-actions,
.control-bar,
.options-panel,
.row-actions,
.si-intervals,
.bt-head-actions,
.readout:empty,
form,
button,
select,
input,
.modal,
[data-no-print] { display: none !important; }

.print-only { display: block !important; }
.print-head { margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid #000000; }
.print-head-title { font-size: 16pt; font-weight: 700; }
.print-head-subject { font-size: 11pt; }
.print-head-printed,
.print-foot { font-size: 9pt; color: #444444; }
.print-foot { margin-top: 14px; padding-top: 6px; border-top: 1px solid #9a9a9a; }

.page { max-width: none !important; padding: 0 !important; }
.table-wrap { overflow: visible !important; max-height: none !important; }
table { width: 100% !important; }
thead { display: table-header-group; }
tr,
.card-panel,
.si-chart-card,
.si-tile,
.perf-tiles > li,
.home-card { break-inside: avoid; }
h1, h2, h3 { break-after: avoid; }
.card-panel,
.si-chart-card,
.si-tile { box-shadow: none !important; border: 1px solid #bbbbbb !important; }
a { color: #000000 !important; text-decoration: none !important; }
