body.noscroll {
    overflow: hidden;
}

.sr {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


#schedulesearch {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25em;
    margin: 2em 0 0;
}
#schedulesearch div {
    position: relative;
}
#schedulesearch input {
    background: #FFF;
    border: 1px solid #EEE;
    border-radius: 0.25em;
    font-size: 1rem;
    font-family: Verdana, Arial, sans-serif;
    color: #222;
    padding: 0.25rem 1.5rem 0.25rem 0.25rem;
    max-width: 150px;
}
#schedulesearch .clearsearch {
    position: absolute;
    top: 0;
    right: 0;
    height: 1.75rem;
    width: 1.75rem;
    background: none;
    border: none;
    padding: none;
    color: #555;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-family: Verdana, Arial, sans-serif;
    cursor: pointer;
    z-index: 50;
}
#schedulesearch .clearsearch:hover {
    color: #222;
}
#schedulesearch .submitsearch {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}
#schedulesearch .submitsearch svg {
    width: 26px;
    height: 26px;
    fill: blue;
    transition: all 0.3s ease;
}
#schedulesearch .submitsearch:hover svg {
    fill: #222;
}
#schedulesearch-results {
    text-align: center;
    margin: 1em 0 2em;
}
#schedulesearch-results p {
    margin: 0;
}
.schedulesearch-list {
    margin: 0 auto;
    padding-left: 1em;
    max-width: 350px;
    text-align: left;
    line-height: 1;
}
.schedulesearch-list li {
    margin: 0.5em 0;
}


.consched-day-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin: 1em auto;
    max-width: 500px;
}
.consched-day-tabs .daybutton {
    cursor: pointer;
    font-size: 16px;
    background: none;
    border: none;
    font-weight: bold;
    border: 2px solid #000;
    border-right-width: 0;
    padding: 0.5em 1em;
}
.consched-day-tabs button:nth-of-type(2) {
    border-top-left-radius: 2em;
    border-bottom-left-radius: 2em;
}
.consched-day-tabs button:last-of-type {
    border-top-right-radius: 2em;
    border-bottom-right-radius: 2em;
    border-right-width: 2px;
}
.consched-day-tabs .daybutton.active {
    background: #000;
    color: #FFF;
    cursor: default;
}
.consched-day-tabs .daybutton .partday {
    display: none;
}
#toggleview {
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    opacity: 0.25;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5em;
    width: 100%;
}
#toggleview.visible {
    opacity: 1;
    cursor: pointer;
}
#toggleview .listviewsvg {
    display: block;
}
#toggleview .tableviewsvg,
#toggleview.table .listviewsvg {
    display: none;
}
#toggleview.table .tableviewsvg {
    display: block;
}
#toggleview svg {
    width: 15px;
    height: 15px;
    fill: #1A1A1A;
    vertical-align: text-bottom;
}


.daydesc {
    padding: 0.5em 1em;
}

.consched-panels {
    margin-bottom: 1em;
    padding: 0 2px;
}
.consched-panels.listview {
    padding: 0 0.5em;
}
.consched-panels.active {
    display: block!important;
}

.schedtableview {
    overflow-x: scroll;
}

.consched-panels.tableview::before,
.consched-panels.tableview::after {
    content: 'Scroll Horizontally to View More →';
    font-size: 12px;
    font-style: italic;
    display: none;
    line-height: 3em;
    padding-left: 1em;
}


.consched-panels.tableview .locations-grid {
    display: grid;
    grid-template-columns: 100px repeat(auto-fill, minmax(200px, 1fr));
    grid-template-rows: auto repeat(auto-fill, 1fr); 
    grid-auto-rows: 1fr;
    gap: 2px;
    text-align: center;
}
.consched-panels.tableview .locations-grid .header-column {
    font-weight: bold;
    padding: 5px;
    background: rgba(0,0,0,0.1);
    line-height: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.consched-panels.tableview .locations-grid .time-row {
    font-size: 0.8em;
    min-height: 30px;
    background: rgba(0,0,0,0.1);
    font-weight: bold;
}
.consched-panels.tableview .locations-grid div.panel-cel {
    padding: 5px;
    background: rgba(0,0,0,0.03);
    border: 2px solid rgba(0,0,0,0.3);
    line-height: 1;
    border-radius: 10px;
    overflow: hidden;
}
.consched-panels.tableview .panel-cel strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
    font-size: 16px;
}
.consched-panels.tableview .panel-cel > span {
    display: block;
    font-size: 14px;
    margin-top: 5px;
}


.consched-panels.listview .consched-time-panels {
    display: flex;
    gap: 1em;
    margin: 0.5em 0;
}
.consched-panels.listview .consched-time-panels .cs-time {
    font-weight: bold;
    width: 90px;
    flex-shrink: 0;
    text-align: center;
    font-size: 0.8em;
}
.consched-panels.listview .consched-time-panels .cs-panels {
    flex-grow: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
}
.consched-panels.listview .consched-time-panels .cs-panels .cs-panel {
    background: rgba(0,0,0,0.03);
    border: 2px solid rgba(0,0,0,0.3);
    line-height: 1;
    padding: 8px 10px;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
    font-size: 16px;
}
.consched-panels.listview .consched-time-panels .cs-panels .cs-panel .openpanelinfo {
    display: block;
}
.consched-panels.listview .consched-time-panels .cs-panels .cs-panel > span {
    display: block;
    font-size: 14px;
    margin-top: 5px;
}
.consched-panels .panel-cats {
    font-weight: bold;
}


.consched-panel-info {
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0,0,0,0.35)!important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px;
    z-index: 999;
}
.consched-panel-info.active {
    display: flex;
}
.consched-panel-info .cspi {
    background: #FFF;
    border-radius: 1em;
    padding: 1em;
    box-shadow: 0 0 1em 0 rgba(0,0,0,0.35);
    text-align: left;
    max-width: 500px;
    position: relative;
}
.consched-panel-info .cspi h3 {
    text-align: center;
    margin-top: 0;
    color: #000!important;
}
.consched-panel-info .cspi p {
    color: #000!important;
}
.consched-panel-info .cspi .cats, .consched-panel-info .cspi .calics {
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 5px;
}
.consched-panel-info .cspi .calics {
    font-size: 0.8em;
}
.consched-panel-info .cspi .calics a {
    text-decoration: none;
}
.consched-panel-info .cspi .cats svg, .consched-panel-info .cspi .calics svg {
    height: 1em;
}
.consched-panel-info .cspi p:last-of-type {
    margin-bottom: 0;
}
.consched-panel-info .cspi p.pd {
    max-height: 100px;
    border: 1px solid #CCC;
    overflow: scroll;
    line-height: 1.3;
    margin: 0.5em 0;
    padding: 0.25em;
}

.consched-panel-info .cspi .closepanelinfo {
    background: none;
    border: none;
    width: 50px;
    height: 50px;
    padding: 10px;
    position: absolute;
    top: -35px;
    right: -35px;
    cursor: pointer;
}
.consched-panel-info .cspi .closepanelinfo svg {
    display: block;
    fill: #FFF;
    width: 30px;
    height: 30px;
}


.conschedlegend {
    max-width: 215px;
    margin: 0 auto;
}
.conschedlegend div {
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 5px;
    padding: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-weight: bold;
    line-height: 1;
}
.conschedlegend div svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 1100px) {
    .consched-day-tabs .daybutton {
        width: 70px;
    }
    .consched-day-tabs .daybutton .fullday {
        display: none;
    }
    .consched-day-tabs .daybutton .partday {
        display: inline;
    }
    .consched-panels.tableview::before,
    .consched-panels.tableview::after {
        display: block;
    }
}
@media (max-width: 500px) {
    .consched-day-tabs .daybutton {
        width: 20%;
    }
    .consched-panels.listview .consched-time-panels {
        flex-direction: column;
        gap: 0.25em;
    }
    .consched-panels.listview .consched-time-panels .cs-time {
        width: auto;
        flex-basis: 100%;
        text-align: left;
    }
    .consched-panels.listview .consched-time-panels .cs-panels {
        flex-direction: column;
        gap: 0.25em;
    }
    .consched-panels.listview .consched-time-panels .cs-panels .cs-panel {
        flex-basis: 100%;
    }

    .consched-panel-info {
        padding: 1em 30px;
    }
    .consched-panel-info .cspi p strong,
    .consched-panel-info .cspi p .ptime {
        display: block;
    }
}
