/*
>>>>> IMPORTANT !!! <<<<<
This file is ONLY meant to be referenced under the "styling" tab at:
<DOMAIN>/admin/sund-sites/sund-institutter/isim-sites/fcsc/booking/?mode=infoboard_overview&bare=1
In order to reference the file you must first create a doc of type "FileUpload" and upload the file there.
*/

/* Remove scroll function for body */
body, html {
    overflow: hidden;
    height: 100%;
}

.breadcrumbs ul {
    display: none;
}

/* Css for header updated */
#cfim-header {
/* Added display, justify-content and align-items */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#cfim-header-left {
    background-image: url("https://cfim.ku.dk/grafik/images/topgrafik/faelles.svg"); /* <-- Note pathway for KU-logo */
    flex: 1;
    height: 7vw;
    margin-top: 1em;
    padding-top: 2em;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

#cfim-header-left-name {
        font-size: 1.5vw;
    }

#cfim-header-left-name:first-line {
        font-size: 1.25vw;
    }

#cfim-header-center {
    flex: 5;
    display: inline-block;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
}

#cfim-header-center .time {
    font-size: 2.5vw;
    padding-bottom: 0.1em;
    font-weight: 600;
}
#cfim-header-center .date {
    font-size: 1.1vw;
}

#cfim-header-right-name {
    font-size: 1.25vw;
}

#cfim-header-right {
    flex: 0.5;
} 
/* --- End of header --- */



#cfim-infoboard #cfim-legend {
/* Added display for color explanations (previous was none) */
    display: inline-block;
    padding-top: 1em;
    font-size: 0.8vw;
}

#cfim-infoboard .booked,
#cfim-infoboard li {
    font-size: 0.7vw;
/* Added padding for each cell */
    padding: 1em;
}

#cfim-infoboard .weekday {
    font-size: 0.9vw;
    padding-top: 0.7em;
    padding-bottom: 0.4em;
}

#cbook_container {
/* Responsive width on main section surrounding booking section (previous width 3840px) */
    width: 100%;
/* Responsive height (previous 2135px) */
    height: 100%;
    padding: 0.5em;
    border: none;
}

#cfim-infoboard #cbook-body {
/* Responsive width on booking section surround booking table (previous width 3840px) */
    width: 100%;
    margin-top: 1em;
    box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.1), 0 0 8px 0 rgba(0, 0, 0, 0.1);
/* Added scroll function on booking section */
    max-height: 75vh;
    overflow-y: auto;
}

#cfim-infoboard #cbook_table {
/* Responsive width on booking table (previous width 2854px) */
    width: 100%;
    display: inline-block;
    border-collapse: collapse;
}

/* Added sticky function to top row */
#cfim-infoboard #cbook_table thead tr {
    position: sticky;
    z-index: 1;
    top: 0;
    background-color: white;
    box-shadow: 0 5px 6px -2px rgb(0, 0, 0, 0.1);
}

#cfim-infoboard #cbook_table td {
    vertical-align: top;
    padding-left: 0.1em;
    padding-right: 0.1em;
}

#cfim-infoboard #cbook-body > * {
    display: inline-block;
    vertical-align: top;
}


/* --- No changes to following code --- */
#cfim-infoboard #cbook_table td.highlight {
    border-style: solid;
    border-color: #666;
    border-width: 0;
}

/* #cfim-infoboard #cbook_table thead td.highlight {
    border-top-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px;
}

#cfim-infoboard #cbook_table tbody td.highlight {
    border-bottom-width: 1px;
    border-left-width: 1px;
    border-right-width: 1px; 
}*/

/* --- The following code is for the infobox on right, which currently should not appear --- */
 #cfim-infoboard #cbook-overview-right {
/* Make sure the right info-box does not display (previous was width: 939px; instead of display) */
    display: none;
}

/* --- No changes to following code --- */
#cfim-infoboard #cbook-overview-right > * {
    border: 2px solid #888;
    margin: 6px;
    padding: 0;
    box-shadow: 3px 3px 1px #aaa;
}

#cfim-infoboard #cbook-overview-right p {
    margin: 0;
}

#cfim-infoboard #cbook-overview-right h3 {
    margin: 0.5em;
}

#cfim-infoboard #cbook-overview-right #cbook-overview-picture {
    position: relative;
    text-align: left;
    padding: 0;
    height: 1285px;
    max-height: 1285px;
    overflow: hidden;
}

#cfim-infoboard #cbook-overview-right #cbook-overview-picture img {
    width: 100%;
    position: absolute;
    transition: opacity 1s linear;
}


#cfim-infoboard #cbook-overview-right #cbook-overview-picture img.hidden {
    opacity: 0;
}
#cfim-infoboard #cbook-overview-right #cbook-overview-picture img.visible {
    visibility: visible;
    opacity: 1;
}


#cfim-infoboard #cbook-overview-unavailable ul {
    column-count: 3;
    list-style-type: none;
    padding: 25px 4em;
    overflow-y: auto;
    height: 225px;
    margin: 5px;
}

#cfim-infoboard #cbook-overview-unavailable ul li {
    flex: 1 0 25%;
    text-align: left;
    margin: 5px;
}

#cfim-infoboard #cbook-overview-contact {
    height: 300px;
}

#cfim-infoboard #cbook-overview-contact img {
    width: 100%;
}

#cfim-infoboard #cbook-overview-contact .cbook-overview-contact-column {
    width: 100%;
    display: inline-block;
}
