.calendar {
    width: 100%;
    border-collapse: collapse;
}
body {
    background-color: #FFFFFF;
    color: #000000;
    font-family: Verdana, arial, sans-serif;
    font-size: 0.9em;
    margin: 0em;
    padding: 0em;
}
table {
    background-color: #FFFFFF;
    color: #000000;
}
th.blank {
    background-color: #FFFFFF;
}
td.blank {
    background-color: #FFFFFF;
    border: none !important;
}
h1 {
    font-size: 1.4em;
    font-weight: bold;
}
h2 {
    color: #738ea8;
}
h3 {
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 0.3em;
    margin-bottom: 0.3em;
}
p {
    margin-top: 0px;
    margin-bottom: 5px;
}
.col1 {
    text-align: right;
    white-space: nowrap;
}
.col2 {
    white-space: nowrap;
}
.rCnt {
    width: 100%;
    margin: 0;
    padding: 0;
}
td .r2 {
    margin-left: 4px;
    float: left;
    clear: both;
    font-size: 0.8em;
    /* margin-top: -0.5em; */
    z-index: 500;
}
td .rw {
    font-family: Arial, Verdana, sans-serif;
    /* font-size: 3.6em; */
    font-size: 1.2em;
    font-weight: bold;
    float: right;
    text-align: right;
    margin: 0;
    padding: 0;
    color: #3C444D;
    /* margin-top: -0.35em; */
    vertical-align: top;
    z-index: 1000;
    overflow: auto;
    margin-right: 25px;
}
.calendar {
    border-collapse: collapse;
}
.calendar td, .calendar th {
    padding: 2px;
}
.calendar td {
    border-bottom: solid black 1px;
    position: relative;
}
.no-border {
    border-bottom: solid white 1px !important;
}
.workdays {
    font-size: 0.9em;
    margin-top: 0.5em;
}

th {
    background-color: #82B2E0;
    color: #FFFFFF;
    font-size: 1.2em;
    font-weight: bold;
}
td.sunday {
    background-color:#b8d4f0;
    color: #000000;
}
td.saturday {
    background-color: #b8d4f0;
}
.hlg {
    background-color: #b8d4f0;
    color: #000000;
}

#content {
    padding: 0.5em;
}
th.blank {
    white-space: nowrap;
}
th.header {
    white-space: nowrap;
}
#top {
    padding: 0.4em;
    background-color: #738ea8;
    color: #FFFFFF;
    font-size: 1em;
    position: sticky;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
}

#top a {
    color: white;
    text-decoration: none;
}

#year_txt {
    font-size: 0.8em;
}

td.col1 {
    width: 0.5%;
}
td.col2 {
    width: 0.5%;
}
td.col3 {
    width: 14.83%;
}
td.blank {
    width: 1%;
}
th.header {
    width: 16.67%; /* 6 columns per row */
}

/* Mobile: 3 columns layout */
@media (max-width: 768px) {
    th.header {
        width: 33.33%; /* 3 columns per row */
    }
    td.col1, td.col2 {
        width: 1%;   /* slightly larger so they remain visible */
    }
    td.col3 {
        width: 31%;  /* ~ 3 columns per row */
    }
    td.blank {
        display: none; /* usually spacer columns should vanish on mobile */
    }
}


@media print {
    #form, .box_footer {
        display : none;
    }
    body {
        background-color: transparent;
        color: #000000;
    }
    #top, h1, h2, .adslot_1, #bottom {
        display: none;
    }
    body {
        margin: 0;
        padding: 0;
    }
    #content, h3 {
        padding: 0em;
        margin-top: 0em;
    }
    .workdays {
        font-size: 0.9em;
        margin-top: 0em;
    }
}


.adslot_1 { display:inline-block; width: 320px; height: 50px; }
@media (max-width: 400px) {
    .adslot_1 {
        display: none;
    }
}
@media (min-width: 500px) {
    .adslot_1 {
        width: 468px;
        height: 60px;
    }
}
@media (min-width: 800px) {
    .adslot_1 {
        width: 728px;
        height: 90px;
    }
}
.btn {
    display: inline-block;
    cursor: pointer;
    border: 1px solid #1f4fa3;
    border-radius: 4px;
    background: #2c6ed5;
    padding: 2px 2px;
    color: #fff;
    text-decoration: none;
    font-size: small;
}

.btn:hover {
    background: #1f4fa3;
}

.current-year {
    font-weight: bold;
}
/* Default = large screens */
.responsive-break .small {
    display: none;
}

.calendar-wrapper {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1em;
    height: 100%;
}

@media (max-width: 1024px) {
    .calendar-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5em;
    }
    .responsive-break .large {
        display: none;
    }
    .responsive-break .small {
        display: inline;
    }
    html, body {
        margin: 0;
        padding: 0;
    }
}

