/* assets/css/print.css */

body {
    background: #fff !important;
    color: #222 !important;
    font-size: 12pt;
    line-height: 1.5;
    font-family: "Helvetica", "Arial", sans-serif;
    margin: 0;
    padding: 0;
}

#header,
#footer,
.image.avatar,
.icons {
    display: none !important;
}

/* Main content adjustments */
#main {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 1.5em !important;
}

section {
    page-break-inside: avoid;
}

/* For the headings and links */
h1, h2, h3, h4, h5, h6 {
    color: #111 !important;
    font-weight: 600;
}

p, li, span {
    color: #222 !important;
}

a {
    color: #003366 !important;
    text-decoration: underline;
}

a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #444;
}

/* For lists and tables */
ul, ol {
    margin-left: 1.2em;
}

table {
    width: 100% !important;
    border-collapse: collapse;
    margin-bottom: 1em;
}

table, th, td {
    border: 1px solid #999 !important;
    color: #222 !important;
}

th, td {
    padding: 0.4em;
    text-align: left;
}

/* For the buttons */
.button, .actions li a {
    display: inline-block;
    background: #ddd !important;
    color: #111 !important;
    padding: 0.4em 0.8em;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9em;
}

/* Page margins */
@page {
    margin: 1.5cm;
}

.print-note {
    display: block;
    font-size: 10pt;
    color: #555;
    margin-bottom: 1em;
}

@media screen {
    .print-note {
        display: none;
    }
}
