.version-apparatus-entry {
    margin:0;
    margin-bottom: 10px;
    position: relative;
    z-index:0;
    background: $critical-apparatus-entry-background-color;
    color: $base-color-dark;
    font-size: 90%;
    border-left: 1px solid $critical-apparatus-entry-border-color;
    border-right: 1px solid $critical-apparatus-entry-border-color;
    
    cursor: text !important;

    span {
        background: transparent;
        display: inline-block;
    }

    &.blurred {
        border: none;
        color: transparent !important;
        text-shadow: 0 0 5px #000;
    }

    &_tools{
        padding: 0;
        float: right;
        display: block;
        position: relative;
        bottom: 6px;
        right: -2px;
        background: transparent;
        text-align: center;
        button-switch{
            margin-right: 0;
            font-size: 70%;
            .buttonSwitch {
                box-shadow: none;
                border: 1px solid $critical-apparatus-entry-background-color;
            }
            &.active, &:hover {
                .buttonSwitch {
                    @include set(box-shadow, inset 0 1px 2px 0 rgba(0,0,0,.1));
                    background-color: $critical-apparatus-entry-background-color-darker;
                    border: 1px solid $critical-apparatus-entry-border-color;
                }
            }
        }
    }
    
    &_main-content {
        padding: 5px;
        font-size:105%;
        border-top: 1px solid $critical-apparatus-entry-border-color;
    }

    &_other-content{
        border-top: 3px double $critical-apparatus-entry-border-color;
        border-bottom: 1px solid $critical-apparatus-entry-border-color;
        // width:90%;
        p {
            padding: 0 10px;
        }

        &_headers {
            &:not(.closed){
                @include set(box-shadow, 0px 9px 5px -4px $critical-apparatus-entry-background-color-darker);
            }
            z-index: 2;
            position: relative;
            span {
                padding: 5px;
                display: inline-block;
                font-size: 90%;
                cursor: pointer;
                border-left: 1px solid $critical-apparatus-entry-background-color-darker;
                &:first-child {
                    border-left: none;
                }
                &:hover {
                    text-shadow: 0px 0px 1px rgba(0,0,0,.7);
                }
                &.active{
                    @include set(box-shadow, inset 0 2px 2px -1px $critical-apparatus-entry-border-color);
                    background-color: $critical-apparatus-entry-background-color-darker;
                    border-right: 1px solid $critical-apparatus-entry-background-color-darker;
                    &:not(:first-child) {
                        border-left: 1px solid $critical-apparatus-entry-background-color-darker;
                    }
                    + span {
                        border-left: none;
                    }
                }
            }
        }

        &_panels{
            &:not(.closed){
                padding: 10px 15px;
            }
            max-height: 150px;
            overflow-x: hidden;
            overflow-y: auto;
            background-color: $critical-apparatus-entry-background-color-darker;

        }

        &_panel {
            display: none;
            &.active {
                display: block;
                margin-bottom: 10px;
            }
            ul {
                padding-left: 10px;
                list-style-type: none;
                margin: 5px 0px;
            }
            .app_version {
                em {
                    font-weight: bold;
                }
                &::after {
                    content: "";
                }
                .witnesses {
                    display: none;
                }
            }
            .app_reading {
                font-weight: bold;
                .witnesses {
                    display: none;
                }
            }
            &_orthographic_title{
                text-align: center;
                width: 100%;
                font-variant: small-caps;
                font-size: 95%;
                margin-top: 10px;
                margin-bottom: 10px;
            }
        }
    }

    .witnesses {
        display: inline;
        .wit {
            margin: 0 3px;
            cursor: pointer;
            text-decoration: underline;

            &:hover {
                text-shadow: 0px 0px 1px rgba(0,0,0,.7);
            }
            &::after {
                text-decoration: none !important;
            }
            &.selected {
                cursor: default;
                text-shadow: 0px 0px 1px rgba(0,0,0,.7);
                text-decoration: none;
            }
        }
    }
    
    .attributes {
        &::before {
            content: " – ";
        }
        &::after {
            content: "";
        }
        span {
            font-style: italic;
            &::after {
                content:", ";
            }
            &:last-child {
                &::after {
                    content:"";
                }
            }
        }
    }
}
.version-apparatus-entry.noTools{
    .version-apparatus-entry_main-content, .version-apparatus-entry_other-content {
        width: 100%;
    }
    border-right: 1px solid $critical-apparatus-entry-border-color;
}
.in_version_apparatus {
    .version-apparatus-entry {
        cursor: pointer !important;
        border: 0;
        background: transparent;
        &:hover{
            background: $critical-apparatus-entry-background-color;
            > * {
                background: $critical-apparatus-entry-background-color;
            }
        }
        &_tools{
            border: 0;
            padding-left: 0;
            button-switch  {
                .buttonSwitch {
                    border: 1px solid transparent;
                }
            }
        }
        &_main-content{
            border: 0;
        }
        &_other-content {
            display: none;   
        }
    }
    &.active {
        .version-apparatus-entry {
            background: $critical-apparatus-entry-background-color;
        }
    }
}
.blurred .version-apparatus-entry, .blurred .version-apparatus-entry * {
    border: none !important;
    @include set(box-shadow, 'none');
    color: transparent !important;
    text-shadow: 0 0 5px #000 !important;
    background: transparent !important
}

//Temp
.moreInfo{
    &-label{
        font-weight: bold;
        font-variant: small-caps;
        &:after {
            content: ": ";
        }
    }
    &-metadataTitle{
        border-top: 1px solid #999;
        padding-top: 10px;
        text-align: center;
        width: 100%;
        font-variant: small-caps;
        font-size: 95%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
}

.app_reading_content {
    margin-bottom: 20px !important;
}

/* VERSION REF */
.evt-version-ref {
    margin: 0 3px;
    cursor: pointer;
    text-decoration: underline !important;

    &:hover {
        text-shadow: 0px 0px 1px rgba(0,0,0,.7);
    }
    &::after {
        text-decoration: none !important;
    }
    &.selected {
        cursor: default;
        text-shadow: 0px 0px 1px rgba(0,0,0,.7);
        text-decoration: none;
    }
    &_text {
        &:not(.selected):not( .not-select) {
            text-decoration: underline !important;
        }
        &.not-select {
            font-weight: bold;
            cursor: default;
        }
    }
}