﻿/* Used for printing pages */

header, footer, .test-warning, .nav, .print-hide, #floater {
    display: none !important;
}

body {
    background-color: white;
    color: black;
    zoom: 95%;
    margin-left:auto;
    margin-right:auto;  
}

:root, [data-bs-theme="light"] { /*Change the off-white to white for printing*/
    --bs-light-rgb: 255,255,255;
}

@page {
    margin: 2cm; /* 2cm margins on all sides */
}

/* NOTE: The row class sets "display: table", but this messes up the printability of the page */

/* When there is a scoresheet, the scoresheet-print class will be added to these classes so it can be printed and stay on the same page */
.container.scoresheet-print, .tab-content.scoresheet-print, .tab-pane.scoresheet-print {
    width: max-content;
    margin-left: 0px;
    padding-left: 0px;
}

.col-sm-12.scoresheet-print {
    width: max-content;
    margin-left: 0px;
    padding-left: 2px;
}

.bg-dark {
    background-color: white;
    border: 2px solid gray
}

.table-dark {
    background-color: white;
    --bs-table-bg: white;
    --bs-table-color: black;
    color: black;
}

table, tbody {
    page-break-inside: auto;
    break-inside: auto;
}

tr, thead {
    page-break-inside: avoid;
    break-inside: avoid;
    page-break-after: auto;
    break-after: auto;
}