﻿/*General CSS*/
#htmlSidePanelRow {
    max-height: 90vh;
}

#htmlSidePanelColumn {
    max-height: inherit;
    /*overflow-y: auto;*/
}

/*Error CSS for PDF page*/
#pdfErrorContainer {
    background-color: #CCC;
}

#pdfErrorIcon {
    font-size: 300px;
    color: #6c6c6c;
}

#pdfErrorSegment {
    border-radius: 0px;
}

/*PDF Container*/
#the-canvas {
    height: 90vh;
}

/*Used to hide table of contents smoothly*/
#tocColumn {
    transition: 0.4s linear all;
}

.errorLink {
    color: white;
}

/*----------------------------------*/
/*_TableOfContentsPartialView Styles*/
/*----------------------------------*/
/*Container for the button used to hide TOC*/
#tocToggleBtnContainer {
    font-size: 0.5em !important;
    margin-top: 4em;
    margin-left: -98%;
    transition: 0.4s linear all;
    z-index: 1;
}

    /*CSS used when the TOC is hidden*/
    #tocToggleBtnContainer.toggled {
        font-size: 0.5em !important;
        margin-top: 4em;
        margin-left: -38%;
    }

#htmlTocToggleBtnContainer {
    z-index: 2;
}

/*Toggle button*/
#htmlTocToggleBtn {
    margin-left: -2em;
}

    #htmlTocToggleBtn.closedState {
        margin-left: 0em;
    }

#htmlTocToggleBtn {
    cursor: pointer;
    color: #716e6e;
    font-size: 12px !important;
    transition: 0.2s linear all;
}

    #htmlTocToggleBtn:hover {
        color: #222020;
    }

/*Make cursor turn to a pointer when hovering over button*/
#tocToggleBtn {
    cursor: pointer;
}

/*Give TOC max height and slightly less than max width*/
#htmlTOC {
    height: 100%;
    max-height: 100%;
    width: 100%;
    max-width: 100%;
}

    /*Make each TOC item unselectable*/
    #htmlTOC .item {
        cursor: default;
        -webkit-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
        
        /*Each item header must use up full width of its container*/
        #htmlTOC .item .header {
            width: 100%;
            max-width: 100%;
            cursor: pointer !important;
        }

/*Used for TOC items with no children*/
.arrowLess {
    margin-left: 1em;
}

/*Header for the entire TOC*/
#tocHeader {
    cursor: default;
    border-radius: 0;
}

.tocHiddenState {
    margin-left: -16.666667%;
}


/*-----------------------*/
/*_HTMLPartialView Styles*/
/*-----------------------*/
/*Set max width for item headers in html view*/
.ui.list .header {
    max-width: 120px;
}

/*Icon used to open html items*/
.htmlPlus {
    cursor: pointer;
}

/*Used for article, subarticle, etc text*/
#htmlView .description {
    margin-left: 1em;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}


/*----------------------------*/
/*_InfopanelPartialView Styles*/
/*----------------------------*/
/*Wrap text contents within container*/
.keywordColSpace {
    white-space: normal;
}

/*Set position for button that toggles the side panel visibility*/
#infoPanelToggleBtnContainer {
    margin-top: -13px !important;
}

/*CSS for button that toggles the side panel visibility*/
#infoPanelToggleBtn {
    cursor: pointer;
    color: #716e6e;
    font-size: 12px !important;
    transition: 0.2s linear all;
}
    /*Change button colour on mouse-hover*/
    #infoPanelToggleBtn:hover {
        color: #222020;
    }

.raisedCustom {
    max-width: max-content;
}

.openCurrentBadge {
    vertical-align: text-top;
}

.ribbon.label {
    cursor: default !important;
}

#openLatestDocumentSpan {
    cursor: pointer;
}

/*----------------------------*/
/*_SidePanelPartialView Styles*/
/*----------------------------*/
/*Set CSS for side panel container*/
#sidePanelListContainer {
    height: 95%;
    max-height: 95%;
    overflow-x: auto;
    white-space: nowrap;
}

/*Used to make sidepanel scrollable at certain height. Rest is set by JS*/
.wrapper {
    position: relative;
    flex: 1 1 auto;
}

.scroll {
    position: absolute;
    top: 0;
    overflow-y: auto;
    width: 100%;
}

    @media (max-width: 767.98px) {
        .scroll {
            position: relative;
        }
    }

/*Buttons at the top of the side panel*/
/*#sidePanelList_Index, #sidePanelList_Relations {
    overflow-y: auto;
    max-height: 50em;
}*/

/*Make item transitions smooth*/
.sidePanelList .item {
    transition: 0.3s all linear;
}
    /*Change item colour on hover*/
    .sidePanelList .item:hover {
        background-color: #f3f4f5;
    }

/*Give max-width to all of the below*/
#sidePanelOptions {
    width: 100%;
    max-width: 100%;
}

    #sidePanelOptions .button {
        width: 50%;
        max-width: 100%;
        border-radius: 0px;
    }

.sidePanelList {
    max-width: 100% !important;
}

    .sidePanelList .header {
        width: 100% !important;
        max-width: 100% !important;
    }

    .sidePanelList .description {
        width: 100% !important;
        max-width: 100% !important;
    }

    .inactiveLink {
        pointer-events: none;
        cursor: default;
    }

/*Sidepnale hide styles*/
#htmlSidePanelToggleBtnContainer {
    z-index: 2;
    transition: all 0.4s linear;
}

#htmlSidePanelToggleBtn {
    font-size: 12px;
    cursor: pointer;
    margin-left: -1em !important;
    transition: all 0.4s linear;
}

    #htmlSidePanelToggleBtn.sideContainerHide {
        margin-left: -60px !important;
    }

#htmlSidePanelColumn {
    transition: 0.4s linear all;
    min-width: 220px;
}

#htmlSidePanelColumn.hidePanel {
    margin-right: -16.666667%;
    min-width:0px;
}

#sidePanelList_Index a.header {
    cursor: default !important;
}


/*----------------------------*/
/*_TimelinePartialView Styles*/
/*----------------------------*/
/*Default style for timeline item*/
.vis-item {
    color: #FFFFFF;
    background-color: #4682AC;
}

/*Background color for timeline groups*/
.vis-group {
    background-color: #DCE2E8;
}

/*Only second group of vis-items will get this style (related acts)*/
.vis-group .vis-item {
    cursor: pointer;
}

    .vis-group .vis-item.vis-no-click {
        cursor: default;
    }

/*Text colour for the bottom part of the timeline, where the year/month values are shown*/
.vis-text {
    color: #808080 !important;
}

/*Used to vertically centre the group-text on the left side of the timeline ("Consolidated"/"Related Acts")*/
.vis-group-level-0 {
    display: flex;
}

/*Used with above*/
.vis-inner {
    margin: auto;
}