@media print {
/* Minimize padding and margins for all paragraphs, headings, lists, and list items */
p, h1, h2, h3, h4, h5, h6, ul, ol, li {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}


html, body {
    width: 1024px;
}

body {
    margin: 0 auto;
    line-height: 1em;
    word-spacing: 1px;
    letter-spacing: 0.2px;
    font: 14px "Times New Roman", Times, serif;
    background: white;
    color: black;
    width: 100%;
    float: none;
    font-size: 12pt;
    background: #fff !important;
}

.accordion .active,
.accordion div,
.tabaccordion .tab-active,
.tabaccordion div {
    display: block !important;
    width: 100% !important;
}

#main-content div.tabaccordion ul.list-tab-accordian > li > div {
    height: auto !important;
    width: 100% !important;
    margin-left: 0px;
    border: none !important;
    padding: 10px 10px 20px !important;
    position: static !important;
    display: block;
}

.accordion h3, .accordion h4, .accordion h5 {
    font-size: 1.25em;
    font-weight: bold;
    margin: 1em 0 0.5em 0;
}

.accordion div {
    margin-bottom: 1em;
}

.no-print, .footer, footer, .nav-wrapper, header, #banner-image > .image-centered, 
.back-to-top, .nav-sidebar, #ocelot_ai, #chatbot-chat {
    display: none !important;
}

a:after {
    content: " (" attr(href) ")";
}

.container, .container-fluid {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.row, .col-xs-*, .col-sm-*, .col-md-*, .col-lg-* {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

table {
    width: 100% !important;
    border-collapse: collapse !important;
}

th, td {
    border: 1px solid #000 !important;
    padding: 0 !important;
    margin: 0 !important;
}

* {
    -webkit-print-color-adjust: exact !important;
    color-adjust: exact !important;
}

.box-shadow, .no-border {
    box-shadow: none !important;
    border: none !important;
}

.tabaccordion {
    margin: 0;
    padding: 0;
    border: none;
}

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

.list-tab-accordian li {
    margin-bottom: 1em;
    width: 100% !important;
}

.list-tab-accordian h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 0 0.5em 0;
}

.list-tab-accordian h4 {
    font-size: 1.25em;
    font-weight: bold;
    margin: 1em 0 0.5em 0;
}

.list-tab-accordian h5 {
    font-size: 1.1em;
    font-weight: bold;
    margin: 1em 0 0.5em 0;
}

.list-tab-accordian p, .list-tab-accordian ul, .list-tab-accordian ol {
    margin: 0 0 1em 0;
}

.list-tab-accordian ul, .list-tab-accordian ol {
    padding-left: 1.5em;
}

.list-tab-accordian ul li, .list-tab-accordian ol li {
    margin-bottom: 0.5em;
}

/* Ensure both tabs are visible for print */
.tabaccordion .list-tab-accordian > li {
    display: block !important;
    page-break-after: always !important;
}

/* Avoid page breaks inside table rows */
tr, td, th {
    page-break-inside: avoid !important;
}

/* Add page break after tab accordion */
#main-content > div > div > div > div.col-xs-12.col-lg-9.l-content.pull-right.full-width > div.tabaccordion.acc.left {
    margin-bottom: 20px !important;
    clear: both !important;
}

/* Reset overlapping issues */
h1, h2, h3, h4, h5, h6, p, div {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}

/* Ensure no floating elements */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* Additional rules for specific elements */
.prevent-overflow {
    overflow: visible !important;
}

.meeting-date, .meeting-time, .meeting-location {
    display: inline-block;
    margin: 0;
    padding: 0;
}

/* Prevent margin collapse in Chrome */
#main-content > div > div > div > div.col-xs-12.col-lg-9.l-content.pull-right.full-width::before,
#main-content > div > div > div > div.col-xs-12.col-lg-9.l-content.pull-right.full-width::after,  {
    content: " ";
    display: table;
    clear: both;
    width: 100% !important;
}

/* Specific adjustments for Chrome */
.tabaccordion .list-tab-accordian > li > div {
    break-inside: avoid-column !important; /* Ensure content does not break inside columns */
}

.tabaccordion .list-tab-accordian > li {
    height: auto !important;
    overflow: hidden !important; /* Prevent overflow issues */
    clear: both !important; /* Ensure no floating elements */
}

.tabaccordion > ul + li {
    page-break-after: always !important;
}

div.tabaccordion ul.list-tab-accordian {
    float: none !important;
}
}