
/* ---------------------------------------------------
    SIDEBAR STYLE
----------------------------------------------------- */
.clickme {
    background-color: #EEEEEE;
    padding: 8px 8px;
    width: 45%;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    justify-content: center;
}

.priority {
    background-color: #00578e;
    color: #ffffff;
}

    .priority:hover {
        background-color: #5790b5;
        color: #ffffff;
    }

.wrapper {
    display: flex;
    width: 100%;
}

#sidebar {
    width: 195px;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 999;
    background: #00578e;
    color: #fff;
    transition: all 0.3s;
}

    #sidebar.active {
        margin-left: -195px;
    }

#sidebarCollapse {
    width: 30px;
    height: 25px;
    background: rgba(0,0,0,0.00) !important;
    border: #5790b5 !important;
    position: fixed;
    bottom: 200px;
    margin-left: -20px;
    z-index: 55;
    text-align: center;
    padding-left: 10px;
}

    #sidebarCollapse:active {
        width: 25px;
        height: 25px;
        background: rgba(0,0,0,0.00) !important;
        border: #5790b5 !important;
        position: fixed;
        bottom: 200px;
        margin-left: -20px;
        z-index: 55;
        text-align: center;
    }


    #sidebarCollapse span {
        width: 100%;
        height: 2px;
        margin: 2 auto;
        display: block;
        background: #fff;
        border: #5790b5 !important;
        transition: all 0.4s cubic-bezier(0.810, -0.330, 0.345, 1.375);
    }

        #sidebarCollapse span:first-of-type {
            /* rotate first one */
            transform: rotate(45deg) translate(2px, 2px);
        }

        #sidebarCollapse span:nth-of-type(2) {
            /* second one is not visible */
            opacity: 0;
        }

        #sidebarCollapse span:last-of-type {
            /* rotate third one */
            transform: rotate(-45deg) translate(1px, -1px);
        }

    #sidebarCollapse.active span {
        /* no rotation */
        transform: none;
        /* all bars are visible */
        opacity: 1;
        margin: 3px auto;
    }

.favorites_button {
    color: #fff;
    background-color: #5790b5;
    border-radius: 0 0 6px 6px;
    font-family: 'Avenir Next LT Pro';
    font-weight: normal;
    font-size: 14px;
    transform: rotate(270deg);
    width: auto;
    height: 30px;
    position: fixed;
    bottom: 150px;
    margin-left: -55px;
    z-index: -1 !important;
    letter-spacing: .08em;
    padding-right: 30px;
    padding-left: 10px;
    padding-top: 5px;
}

/* ---------------------------------------------------
    CONTENT STYLE
----------------------------------------------------- */

#content {
    width: calc(100% - 195px);
    min-height: 100vh;
    transition: all 0.3s;
    position: absolute;
    top: 0;
    right: 0;
}

    #content.active {
        width: 100%;
    }

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- 

@media (max-width: 768px) {
    #sidebar {
        margin-left: -195px;
    }
    #sidebar.active {
        margin-left: 0;
    }
    #content {
        width: 100%;
    }
    #content.active {
        width: calc(100% - 195px);
    }
    #sidebarCollapse span {
        display: none;
    }
}*/

@media (max-width: 768px) {
    /* Reversing the behavior of the sidebar: 
       it'll be rotated vertically and off canvas by default, 
       collapsing in on toggle button click with removal of 
       the vertical rotation.   */
    #sidebar {
        margin-left: -195px;
        transform: rotateY(100deg);
    }

        #sidebar.active {
            margin-left: 0;
            transform: none;
        }

    /* Reversing the behavior of the bars: 
       Removing the rotation from the first,
       last bars and reappear the second bar on default state, 
       and giving them a vertical margin */
    #sidebarCollapse span:first-of-type,
    #sidebarCollapse span:nth-of-type(2),
    #sidebarCollapse span:last-of-type {
        transform: none;
        opacity: 1;
        margin: 2px auto;
    }

    /* Removing the vertical margin and make the first and last bars rotate again when the sidebar is open, hiding the second bar */
    #sidebarCollapse.active span {
        margin: 0 auto;
    }

        #sidebarCollapse.active span:first-of-type {
            transform: rotate(45deg) translate(2px, 2px);
        }

        #sidebarCollapse.active span:nth-of-type(2) {
            opacity: 0;
        }

        #sidebarCollapse.active span:last-of-type {
            transform: rotate(-45deg) translate(1px, -1px);
        }

    #content {
        width: 100%;
    }

        #content.active {
            width: calc(100% - 195px);
        }
}


/* Page loading overlay*/
.loading-overlay {
    display: none;
    background: rgba( 26, 26, 26, 0.7 );
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 5;
    top: 0;
}

.loading-overlay-image-container {
    display: none;
    position: fixed;
    z-index: 7;
    top: 50%;
    left: 50%;
    transform: translate( -50%, -50% );
}

.loading-overlay-img {
    width: 50px;
    height: 50px;
    border-radius: 5px;
}


/*normal mode - desktop */
@media (min-width: 992px) {
    #desk-table,
    #desktop-table {
        display: block;
    }

    #phone-table {
        display: none;
    }

    #desk-controls {
        display: block;
    }

    #phone-controls {
        display: none;
    }
}

/* mobile */
@media (max-width: 991.98px) {
    #desk-table,
    #desktop-table {
        display: none;
    }

    #phone-table {
        display: block;
    }

    #desk-controls {
        display: none;
    }

    #phone-controls {
        display: block;
    }
}
