@media print {
    #layoutSidenav_nav {
        display: none !important;
        width: 0em;
    }
    #layoutSidenav_content {
        padding-left: 0em !important;
    }
}

/* Paper is white whatever the screen theme is. dark.css is a media="screen"
   sheet, so its inks do not reach print; this is the belt to those braces: a
   dark rule that slips through still cannot leave near-white text on white
   paper. */
@media print {
    html[data-theme="dark"] body,
    html[data-theme="dark"] .card,
    html[data-theme="dark"] .table,
    html[data-theme="dark"] pre,
    html[data-theme="dark"] .text-muted,
    html[data-theme="dark"] .text-secondary {
        background-color: #ffffff !important;
        color: #000000 !important;
    }
    html[data-theme="dark"] a { color: #000000 !important; }
    /* A badge's meaning is its colour; print the outline so it survives the
       background-drop browsers apply by default. */
    html[data-theme="dark"] .badge {
        color: #000000 !important;
        border: 1px solid #000000;
    }
}
