/*  The faces and the chart colours this paper names. The @import lines must come before every rule. */
@import url("../../../assets/fonts/fonts.css");
@import url("../../../../fonts/emoji/emoji.css");
@import url("../../../assets/charts.css");

/*
 * ANY PAGE, TABLE OR WINDOW ON PAPER (TASK_PLAN_081). THE ONLY STYLESHEET ON A SHEET.
 *
 * Bootstrap and the theme apply on a screen alone, so nothing here competes with them and nothing here has to undo them.
 * The classes below are the ones the application's markup carries, written once more for paper. There are NO breakpoints:
 * the reader (src/print/paper.ts) resolves `col-md-6`, `d-lg-none` and the like to their largest breakpoint as it copies a
 * page, so a sheet is always the desktop shape, however narrow the window it was printed from.
 *
 * A flat file on purpose (G-38): an installation edits its own paper without a rebuild. The sheet's size, orientation and
 * margin are written by the reader into `@page`, from what the person chose and paper.json.
 */

:root {
  --bs-border-color: #bbb;
  --bs-body-color: #111;
  --bs-body-bg: #fff;
  --bs-secondary-color: #555;
  --bs-light: #f4f4f4;
  --bs-orange: #eb6834;
  --bs-success: #198754;
  --bs-warning: #b58100;
  --bs-danger: #c82333;
  --matrix-passed: #d8f0dc;
  --matrix-in-progress: #fff1c9;
  --matrix-failed: #f8d7da;
  --matrix-withdrawn: #e4e4e4;
  --matrix-open: #dcebfb;
  --matrix-header: #dce6f2;
  --matrix-band: #c5d5ea;
  --matrix-band-2: #d6e2f0;
  --matrix-stripe: rgba(90, 90, 90, 0.45);
  --timetable-lecture: #dcebfb;
  --timetable-practical: #d8f0dc;
  --timetable-exercise: #fff1c9;
  --timetable-exam: #e8dcf5;
  --timetable-clash: #f8d7da;
  --timetable-header: #dce6f2;
  --timetable-clash-edge: #dc3545;
  --timetable-pinned-edge: #6c757d;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  /* A bar, a status fill and a table's heading are backgrounds: a browser leaves those out of a print unless told. */
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

html,
body {
  background: #fff;
  color: #111;
}

body {
  margin: 0;
  font-family: "Academapro Emoji", "Academapro Sans", sans-serif;
  font-size: 9pt;
  line-height: 1.3;
}

/* ------------------------------------------------------------ the frame -- */

/*
 * A TABLE, because its heading is the one thing every browser repeats on every sheet by itself. That is the page header.
 * The one row runs on across the sheets, so nothing may keep it whole.
 */
.paper-frame {
  width: 100%;
  border-collapse: collapse;
  /* The sheet's width, whatever is inside: a wide table is zoomed to it, it never widens it. */
  table-layout: fixed;
}

.paper-frame > thead {
  display: table-header-group;
}

.paper-frame > tbody > tr {
  break-inside: auto;
}

.paper-frame > thead > tr > td,
.paper-frame > tbody > tr > td {
  padding: 0;
  border: 0;
}

/* The page header: one line, on every sheet. */
.paper-head {
  display: flex;
  align-items: baseline;
  gap: 3mm;
  padding-bottom: 0.8mm;
  margin-bottom: 2mm;
  border-bottom: 0.6pt solid #333;
  font-size: 8pt;
  color: #444;
}

.paper-head-title {
  font-weight: 700;
  color: #111;
}

.paper-head-printed {
  margin-inline-start: auto;
  white-space: nowrap;
}

/* ---------------------------------------------- what a scroll bar hides -- */

/* What the screen scrolls, the paper shows in full. */
.paper-body *,
.paper-body *::before,
.paper-body *::after {
  overflow: visible !important;
  position: static !important;
  max-height: none !important;
  box-shadow: none !important;
  animation: none !important;
  transition: none !important;
}

.paper-note {
  margin: 0 0 1mm;
  font-size: 8pt;
  color: #555;
}

.paper-tab {
  margin-bottom: 1.5mm;
  font-size: 11pt;
  font-weight: 700;
}

/* A control on the page reads as its label and what it holds: the filter the paper was printed under. */
.paper-body .form-label,
.paper-body label {
  display: block;
  margin: 0;
  font-size: 7.5pt;
  color: #555;
}

.paper-value {
  display: block;
  font-size: 9pt;
  font-weight: 600;
  white-space: pre-wrap;
}

/* --------------------------------------------------------------- tables -- */

.paper-body table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 8.5pt;
  line-height: 1.2;
}

/* The heading on every sheet, and a row whole on one. */
.paper-body thead {
  display: table-header-group;
}

.paper-body tfoot {
  display: table-footer-group;
}

.paper-body tr {
  break-inside: avoid;
}

.paper-body th,
.paper-body td {
  padding: 0.4mm 0.9mm;
  border: 0.4pt solid #bbb;
  vertical-align: top;
  text-align: start;
}

.paper-body th {
  background: #eee;
  font-weight: 600;
  vertical-align: middle;
}

.data-table-heading,
.data-table-band {
  white-space: pre-line;
}

.data-table-heading--nowrap {
  white-space: pre;
}

.data-table-band {
  text-align: center !important;
}

/* ---------------------------------------------------------------- cards -- */

.paper-body .card {
  margin-bottom: 1.5mm;
  border: 0.4pt solid #bbb;
  background: #fff;
}

.paper-body .card-header,
.paper-body .card-footer {
  padding: 0.8mm 1.5mm;
  font-weight: 600;
  background: #f4f4f4;
  border-bottom: 0.4pt solid #bbb;
}

.paper-body .card-body {
  padding: 1.2mm 1.5mm;
}

/* A table's card holds nothing but the table; the table draws its own edge. */
.paper-body .card:has(> table) {
  border: 0;
}

/* What fits on a sheet stays on one; a table is the one thing that runs on. */
.paper-body .card:not(:has(table)),
.paper-body .alert,
.paper-body .list-group-item,
.paper-body .viz-card,
.paper-body svg {
  break-inside: avoid;
}

/* One sheet: nothing may push to a second one. */
.paper-one-sheet .card,
.paper-one-sheet .viz-card,
.paper-one-sheet svg,
.paper-one-sheet tr {
  break-inside: auto !important;
}

/* ----------------------------------------------------------------- grid -- */

.row {
  display: flex;
  flex-wrap: wrap;
}

.row > * {
  min-width: 0;
  padding-inline: 0.75mm;
}

.col { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-1 { flex: 0 0 8.3333%; width: 8.3333%; }
.col-2 { flex: 0 0 16.6667%; width: 16.6667%; }
.col-3 { flex: 0 0 25%; width: 25%; }
.col-4 { flex: 0 0 33.3333%; width: 33.3333%; }
.col-5 { flex: 0 0 41.6667%; width: 41.6667%; }
.col-6 { flex: 0 0 50%; width: 50%; }
.col-7 { flex: 0 0 58.3333%; width: 58.3333%; }
.col-8 { flex: 0 0 66.6667%; width: 66.6667%; }
.col-9 { flex: 0 0 75%; width: 75%; }
.col-10 { flex: 0 0 83.3333%; width: 83.3333%; }
.col-11 { flex: 0 0 91.6667%; width: 91.6667%; }
.col-12 { flex: 0 0 100%; width: 100%; }
.row-cols-1 > * { flex: 0 0 100%; width: 100%; }
.row-cols-2 > * { flex: 0 0 50%; width: 50%; }
.row-cols-3 > * { flex: 0 0 33.3333%; width: 33.3333%; }
.row-cols-4 > * { flex: 0 0 25%; width: 25%; }
.row-cols-5 > * { flex: 0 0 20%; width: 20%; }
.row-cols-6 > * { flex: 0 0 16.6667%; width: 16.6667%; }

.g-1, .g-2, .g-3, .g-4, .g-5 { row-gap: 1mm; }

/* ------------------------------------------------------ the chart layout -- */

.viz-grid {
  display: grid;
  gap: 2mm;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  /* A card is as tall as what it holds: stretched to its row's tallest it is white space on a sheet. */
  align-items: start;
}

.viz-card {
  min-width: 0;
  grid-column: span var(--viz-span-cols, 2);
}

.viz-card--wide {
  grid-column: span 6;
}

.viz-tile {
  min-width: 0;
}

.viz-tile-figure,
.viz-tile-icon {
  font-size: 13pt;
}

.viz-svg svg,
.paper-body svg {
  max-width: 100%;
}

.viz-svg svg {
  height: auto;
}

/* -------------------------------------------------- the registration matrix -- */

.matrix-cell,
.matrix-count {
  display: block;
  margin: -0.4mm -0.9mm;
  padding: 0.4mm 0.9mm;
  text-align: center;
  white-space: nowrap;
}

.matrix-cell--passed { background-color: var(--matrix-passed); }
.matrix-cell--in-progress { background-color: var(--matrix-in-progress); }
.matrix-cell--failed { background-color: var(--matrix-failed); }
.matrix-cell--withdrawn { background-color: var(--matrix-withdrawn); }
.matrix-cell--open { background-color: var(--matrix-open); }

.matrix-cell--outside {
  background-image: repeating-linear-gradient(45deg, var(--matrix-stripe) 0, var(--matrix-stripe) 1px, transparent 1px, transparent 5px);
}

.matrix-legend,
.timetable-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5mm 3mm;
  align-items: center;
}

.matrix-legend__item,
.timetable-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 1mm;
}

.matrix-legend__sample,
.timetable-legend__sample {
  display: inline-block;
  min-width: 6mm;
  padding: 0 1mm;
  border: 0.4pt solid #bbb;
  text-align: center;
}

.paper-body .matrix-table thead th { background-color: var(--matrix-header); }
.paper-body .matrix-table thead th.data-table-band { background-color: var(--matrix-band); }
.paper-body .matrix-table thead tr:nth-child(2) th.data-table-band { background-color: var(--matrix-band-2); }
.paper-body .matrix-table thead .data-table-summary th { background-color: var(--bs-light); }

/* --------------------------------------------------------- the timetable -- */

.timetable-grid {
  table-layout: fixed;
}

.paper-body .timetable-grid thead th,
.paper-body .timetable-grid__period {
  background-color: var(--timetable-header);
}

.timetable-session {
  margin-bottom: 0.3mm;
  padding: 0.3mm 0.6mm;
  border: 0.4pt solid #bbb;
  overflow-wrap: anywhere;
}

.timetable-session--lecture { background-color: var(--timetable-lecture); }
.timetable-session--practical { background-color: var(--timetable-practical); }
.timetable-session--exercise { background-color: var(--timetable-exercise); }
.timetable-session--exam { background-color: var(--timetable-exam); }
.timetable-session--clash { border-color: var(--timetable-clash-edge); border-inline-start-width: 1mm; }
.timetable-session--pinned { border-style: dashed; border-color: var(--timetable-pinned-edge); }
.timetable-kind { border: 0.4pt solid #bbb; }

.timetable-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1mm;
}

.timetable-stat {
  flex: 1 1 25mm;
  padding: 0.6mm 1mm;
  border: 0.4pt solid #bbb;
  background-color: var(--bs-light);
}

.timetable-stat--success { border-color: var(--bs-success); }
.timetable-stat--warning { border-color: var(--bs-warning); }
.timetable-stat--danger { border-color: var(--bs-danger); }

/* ------------------------------------------------------------ components -- */

.alert {
  margin-bottom: 1.5mm;
  padding: 0.8mm 1.5mm;
  border: 0.4pt solid #bbb;
}

.alert-info { background: #e3f4f8; border-color: #9fd6e2; }
.alert-success { background: #e4f4ea; border-color: #a6d8b8; }
.alert-warning { background: #fff5d6; border-color: #e6cf85; }
.alert-danger { background: #fae3e5; border-color: #e6aab0; }
.alert-secondary, .alert-light { background: #f1f1f1; }

.badge {
  display: inline-block;
  padding: 0 0.8mm;
  border: 0.3pt solid #999;
  border-radius: 0.6mm;
  font-size: 0.88em;
  font-weight: 600;
}

.text-bg-primary { background: #cfe2ff; color: #052c65; }
.text-bg-secondary { background: #e2e3e5; color: #2b2f32; }
.text-bg-success { background: #d1e7dd; color: #0a3622; }
.text-bg-danger { background: #f8d7da; color: #58151c; }
.text-bg-warning { background: #fff3cd; color: #664d03; }
.text-bg-info { background: #cff4fc; color: #055160; }
.text-bg-light { background: #f8f9fa; color: #111; }
.text-bg-dark { background: #dcdcdc; color: #111; }

.list-group {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-group-item {
  padding: 0.5mm 1mm;
  border: 0.4pt solid #ccc;
  border-top-width: 0;
}

.list-group-item:first-child {
  border-top-width: 0.4pt;
}

.accordion-item {
  margin-bottom: 1mm;
  border: 0.4pt solid #bbb;
}

.accordion-header {
  margin: 0;
  padding: 0.6mm 1mm;
  font-weight: 600;
  background: #f4f4f4;
}

.accordion-body {
  padding: 1mm;
}

.progress {
  display: flex;
  height: 2mm;
  background: var(--viz-track, #e9ecef);
}

.progress-bar {
  background: #2a78d6;
}

.input-group {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 1mm;
}

.form-check {
  display: flex;
  align-items: baseline;
  gap: 1mm;
}

a {
  color: inherit;
  text-decoration: none;
}

p { margin: 0 0 1mm; }
ul, ol { margin: 0 0 1mm; padding-inline-start: 4mm; }
dl { margin: 0 0 1mm; }
dt { font-weight: 600; }
dd { margin: 0; }
hr { margin: 1mm 0; border: 0; border-top: 0.4pt solid #bbb; }
img { max-width: 100%; }

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  margin: 0 0 1mm;
  font-weight: 700;
  line-height: 1.2;
}

h1, .h1 { font-size: 14pt; }
h2, .h2 { font-size: 13pt; }
h3, .h3 { font-size: 12pt; }
h4, .h4 { font-size: 11pt; }
h5, .h5 { font-size: 10pt; }
h6, .h6 { font-size: 9.5pt; }
.fs-1 { font-size: 16pt; }
.fs-2 { font-size: 14pt; }
.fs-3 { font-size: 12pt; }
.fs-4 { font-size: 11pt; }
.fs-5 { font-size: 10pt; }
.fs-6 { font-size: 9pt; }

small, .small { font-size: 0.875em; }

/* ------------------------------------------------------------- utilities -- */

.d-none, .d-print-none, .visually-hidden { display: none !important; }
.d-block, .d-print-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
.d-table { display: table !important; }
.d-table-cell { display: table-cell !important; }
.d-table-row { display: table-row !important; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.vstack { display: flex; flex-direction: column; }
.hstack { display: flex; align-items: center; }
.min-w-0 { min-width: 0; }

.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }
.align-items-center { align-items: center; }
.align-items-baseline { align-items: baseline; }
.align-self-center { align-self: center; }
.align-middle { vertical-align: middle; }

.gap-1 { gap: 0.5mm; }
.gap-2 { gap: 1mm; }
.gap-3 { gap: 1.5mm; }
.gap-4 { gap: 2mm; }
.gap-5 { gap: 3mm; }

/* The screen's spacing, tightened for paper: the room a touch target needs is not room a sheet can spare. */
.m-0 { margin: 0; } .m-1 { margin: 0.5mm; } .m-2 { margin: 1mm; } .m-3 { margin: 1.5mm; } .m-auto { margin: auto; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 0.5mm; } .mt-2 { margin-top: 1mm; } .mt-3 { margin-top: 1.5mm; } .mt-4 { margin-top: 2mm; } .mt-5 { margin-top: 3mm; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 0.5mm; } .mb-2 { margin-bottom: 1mm; } .mb-3 { margin-bottom: 1.5mm; } .mb-4 { margin-bottom: 2mm; } .mb-5 { margin-bottom: 3mm; }
.my-0 { margin-block: 0; } .my-1 { margin-block: 0.5mm; } .my-2 { margin-block: 1mm; } .my-3 { margin-block: 1.5mm; } .my-4 { margin-block: 2mm; }
.mx-0 { margin-inline: 0; } .mx-1 { margin-inline: 0.5mm; } .mx-2 { margin-inline: 1mm; } .mx-auto { margin-inline: auto; }
.ms-0 { margin-inline-start: 0; } .ms-1 { margin-inline-start: 0.5mm; } .ms-2 { margin-inline-start: 1mm; } .ms-3 { margin-inline-start: 1.5mm; } .ms-auto { margin-inline-start: auto; }
.me-0 { margin-inline-end: 0; } .me-1 { margin-inline-end: 0.5mm; } .me-2 { margin-inline-end: 1mm; } .me-3 { margin-inline-end: 1.5mm; } .me-auto { margin-inline-end: auto; }
.p-0 { padding: 0; } .p-1 { padding: 0.5mm; } .p-2 { padding: 1mm; } .p-3 { padding: 1.5mm; } .p-4 { padding: 2mm; } .p-5 { padding: 3mm; }
.pt-0 { padding-top: 0; } .pt-1 { padding-top: 0.5mm; } .pt-2 { padding-top: 1mm; } .pt-3 { padding-top: 1.5mm; } .pt-4 { padding-top: 2mm; }
.pb-0 { padding-bottom: 0; } .pb-1 { padding-bottom: 0.5mm; } .pb-2 { padding-bottom: 1mm; } .pb-3 { padding-bottom: 1.5mm; } .pb-4 { padding-bottom: 2mm; }
.py-0 { padding-block: 0; } .py-1 { padding-block: 0.3mm; } .py-2 { padding-block: 0.6mm; } .py-3 { padding-block: 1mm; } .py-4 { padding-block: 1.5mm; } .py-5 { padding-block: 2mm; }
.px-0 { padding-inline: 0; } .px-1 { padding-inline: 0.5mm; } .px-2 { padding-inline: 1mm; } .px-3 { padding-inline: 1.5mm; } .px-4 { padding-inline: 2mm; }
.ps-0 { padding-inline-start: 0; } .ps-1 { padding-inline-start: 0.5mm; } .ps-2 { padding-inline-start: 1mm; } .ps-3 { padding-inline-start: 1.5mm; }
.pe-0 { padding-inline-end: 0; } .pe-1 { padding-inline-end: 0.5mm; } .pe-2 { padding-inline-end: 1mm; } .pe-3 { padding-inline-end: 1.5mm; }

.fw-normal { font-weight: 400; }
.fw-medium, .fw-semibold { font-weight: 600; }
.fw-bold, .fw-bolder { font-weight: 700; }
.fst-italic { font-style: italic; }
.text-uppercase { text-transform: uppercase; }
.lh-1 { line-height: 1; }
.font-monospace { font-family: "Academapro Mono", monospace; }
.text-start { text-align: start !important; }
.text-end { text-align: end !important; }
.text-center { text-align: center !important; }
.text-nowrap { white-space: nowrap; }
.text-wrap { white-space: normal; }
.text-break { overflow-wrap: anywhere; }
/* On a screen an ellipsis protects the layout; on paper a cut value is missing information. */
.text-truncate { white-space: normal; }

.text-muted, .text-body-secondary, .text-secondary { color: #555; }
.text-body-tertiary { color: #777; }
.text-body, .text-dark, .text-reset { color: #111; }
.text-white { color: #fff; }
.text-primary { color: #0a58ca; }
.text-success { color: #146c43; }
.text-danger { color: #b02a37; }
.text-warning { color: #997404; }
.text-info { color: #087990; }
.text-danger-emphasis { color: #58151c; }
.text-warning-emphasis { color: #664d03; }
.text-success-emphasis { color: #0a3622; }

.bg-light, .bg-body-tertiary { background: #f4f4f4; }
.bg-white, .bg-body { background: #fff; }
.bg-warning-subtle { background: #fff3cd; }
.bg-danger-subtle { background: #f8d7da; }
.bg-success-subtle { background: #d1e7dd; }
.bg-info-subtle { background: #cff4fc; }
.bg-primary-subtle { background: #cfe2ff; }
.bg-secondary-subtle { background: #e2e3e5; }
.bg-primary { background: rgba(13, 110, 253, var(--bs-bg-opacity, 1)); }
.bg-secondary { background: rgba(108, 117, 125, var(--bs-bg-opacity, 1)); }
.bg-success { background: rgba(25, 135, 84, var(--bs-bg-opacity, 1)); }
.bg-danger { background: rgba(220, 53, 69, var(--bs-bg-opacity, 1)); }
.bg-warning { background: rgba(255, 193, 7, var(--bs-bg-opacity, 1)); }
.bg-info { background: rgba(13, 202, 240, var(--bs-bg-opacity, 1)); }
.bg-opacity-10 { --bs-bg-opacity: 0.1; }
.bg-opacity-25 { --bs-bg-opacity: 0.25; }
.bg-opacity-50 { --bs-bg-opacity: 0.5; }
.bg-opacity-75 { --bs-bg-opacity: 0.75; }

.border { border: 0.4pt solid #bbb; }
.border-top { border-top: 0.4pt solid #bbb; }
.border-bottom { border-bottom: 0.4pt solid #bbb; }
.border-start { border-inline-start: 0.4pt solid #bbb; }
.border-end { border-inline-end: 0.4pt solid #bbb; }
.border-0 { border: 0; }
.border-2 { border-width: 0.8pt; }
.border-3 { border-width: 1.2pt; }
.border-4 { border-width: 1.6pt; }
.border-primary { border-color: #0d6efd; }
.border-success { border-color: #198754; }
.border-warning { border-color: #ffc107; }
.border-danger { border-color: #dc3545; }
.rounded-0 { border-radius: 0; }
.opacity-75 { opacity: 0.75; }
.object-fit-cover { object-fit: cover; }
.text-decoration-none { text-decoration: none; }
.list-group-flush .list-group-item { border-inline: 0; }
.paper-body .table-light th,
.paper-body .table-light td { background: #f4f4f4; }
.rounded, .rounded-1, .rounded-2, .rounded-3, .rounded-top { border-radius: 0.6mm; }
.rounded-pill { border-radius: 10mm; }

.w-100 { width: 100%; }
/* A chart's bar is a block of this class inside its track: without it the fill has no height and only the track prints. */
.h-100 { height: 100%; }
.w-auto { width: auto; }
.list-unstyled, .list-inline { padding-inline-start: 0; list-style: none; }
.list-inline-item { display: inline-block; margin-inline-end: 2mm; }
.float-none { float: none; }
.vr { display: none; }

/* ------------------------------------------------- the browser's own Print -- */

/*
 * A print button prints a frame holding a copy of the page, which needs none of this. The browser's own Print (its menu, or `window.print()`; Ctrl+P presses the print button) takes the live page as it
 * is, with no question and no copy, so here the application's chrome is put away and a table keeps its table form.
 */
.sidebar,
.toggle-button,
.sitemap,
.content-actions,
.app-footer-brand,
.unsupported-screen,
.modal-backdrop,
.nav-tabs,
.dropdown-menu,
.collapse:not(.show),
#mainContent button,
#mainContent .btn,
.app-container > footer,
.d-sm-none,
.d-md-none,
.d-lg-none,
.d-xl-none,
.d-xxl-none {
  display: none !important;
}

.d-lg-table { display: table !important; }
.d-xxl-table-cell { display: table-cell !important; }

/* The screen's frame is gone with its stylesheet, but a height written on an element is still there: what it scrolled, the paper shows. */
#mainContent,
#mainContent * {
  overflow: visible !important;
  max-height: none !important;
}

#mainContent div[style*="height"] {
  height: auto !important;
}

#mainContent table {
  width: 100%;
  border-collapse: collapse;
  font-size: 8.5pt;
}

#mainContent thead {
  display: table-header-group;
}

#mainContent tr {
  break-inside: avoid;
}

#mainContent th,
#mainContent td {
  padding: 0.4mm 0.9mm;
  border: 0.4pt solid #bbb;
  text-align: start;
}
