﻿:root {
    --default-background-color: #fff;
    --light-green-background-color: #e1eeea;
    --default-border-radius: 8px;
    --default-font-size: 12px;
    --default-padding: 8px;
    --default-font-family: IBM Plex Sans;
}


.subunitMenu {
    font-size: var(--default-font-size);
    font-family: var(--default-font-family);
    position: fixed;
    z-index: 100;
    top: 50%;
    left: 50%;
    /* margin: 50px 80px 389px 0; */
    box-shadow: 0 0 20px 0 rgba(0, 56, 43, 0.15);
    background-color: var(--default-background-color);
    border-radius: var(--default-border-radius);
    display: flex;
    flex-flow: column;
    /*height: 100%;*/
    height: auto;
}


    /*.subunitMenu {
    font-size: var(--default-font-size);
    font-family: var(--default-font-family);
    position: fixed;
    z-index: 100;
    top: 50%;
    left: 50%;*/
    /*margin: 50px 80px 389px 0;*/
    /*box-shadow: 0 0 20px 0 rgba(0, 56, 43, 0.15);
    background-color: var(--default-background-color);
    border-radius: var(--default-border-radius);
    display: flex;
    flex-flow: column;
    height: 100%;
}*/

    .subunitMenu #header {
        border-radius: var(--default-border-radius) var(--default-border-radius) 0 0;
        position: absolute;
        height: 34px;
        width: 100%;
        background-color: #f1f9f6;
        cursor: move;
        display: block;
    }

    .subunitMenu #propertyTabs {
        border: none;
    }

    .subunitMenu #codeAndActualizationPart {
        font-family: IBM Plex Sans Medium;
        font-size: 16px;
        display: flex;
        margin: 0 10px 0 38px;
        border-radius: var(--default-border-radius) var(--default-border-radius) 0 0;
        z-index: 1;
        pointer-events: none;
        cursor: pointer;
        align-items: center;
        height: 34px;
    }

    .subunitMenu #nameValue {
        font-family: IBM Plex Sans Medium;
        font-size: 12px;
        margin-left: 0;
        padding-left: 28px;
        max-height: 34px;
        overflow: hidden;
        font-weight: bold;
        min-height: 20px;
    }

    .subunitMenu #compactSize {
        flex: 1;
    }

    .subunitMenu #fullSize {
        border-top: 2px solid #dce7e3;
        flex: 1;
        padding: 0 10px 10px 10px;
        overflow: auto;
    }

    .subunitMenu input[data='cancel'] {
        background: url(../images/cancel2.png) no-repeat;
        background-position: center;
        height: 28px;
    }

    .subunitMenu #code {
        font-weight: bold;
    }


    .subunitMenu #description {
        margin-top: 4px;
        font-weight: bold;
    }


    .subunitMenu #actualizationStatusPart {
        margin-top: 2px;
        margin-left: 10px;
        width: auto;
        font-size: 11px;
    }

    .subunitMenu #topPanel #codeAndActualizationPart {
        display: flex;
    }

    .subunitMenu #topPanel {
        display: flex;
        flex-direction: column;
        padding: 6px 10px 9px 10px;
        flex: 0 1 auto;
        background-color: #f1f9f6;
    }

    .subunitMenu #middlePanel {
        display: flex;
        flex-direction: column;
        padding: 9px 10px 0 10px;
        flex: 1 1 auto;
    }

        .subunitMenu #middlePanel .row-part {
            /*margin: 4px 0;*/
        }

    .subunitMenu #bottomPanel {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding: 10px;
        background-color: var(--light-green-background-color);
        border-radius: 0 0 var(--default-border-radius) var(--default-border-radius);
    }

        .subunitMenu #bottomPanel #actionButtons {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex: 0 1 30px;
        }

    .subunitMenu .primary-button {
        border: none;
        height: 28px;
        background: rgb(1,131,103) !important;
        border-radius: 6px !important;
        color: #fff !important;
        font-family: IBM Plex Sans !important;
        font-style: normal !important;
        font-weight: 500 !important;
        font-size: 12px !important;
        text-transform: none !important;
    }

    .subunitMenu .group-line {
        /*        height: 2px;
        background-color: #dce7e3;
        margin: 10px 8px 4px 13px;
*/
        height: 3px;
        background-color: #dce7e3;
        margin: 10px 8px 4px 13px;
        border-radius: 3px;
    }


    .subunitMenu .line {
        /*width: 100%;*/
        height: 2px;
        margin: 4px 0;
        background-color: #dce7e3;
    }

    .subunitMenu #compactSize .line {
        margin: 4px 8px 4px 4px;
    }

    .subunitMenu .button-separator {
        margin: 0 2px;
        height: 23px;
        width: 2px;
        background-color: #c3dbd3;
    }


    .subunitMenu .row-part {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 5px 7px 5px 2px;
    }

    .subunitMenu #actualizationPart .row-part {
        padding-right: 0;
    }

    .subunitMenu #rockCompositionPart {
        /*        display: flex;
        align-items: center;
        justify-content: flex-start;
*/
    }

    .subunitMenu #agePart {
        /*      display: flex;
        align-items: center;
        justify-content: flex-start;*/
    }

    .subunitMenu #metallotectPart {
        /*        display: flex;
        align-items: center;
        justify-content: flex-start;
*/
    }

    .subunitMenu .label-large {
        margin-left: 14px;
        white-space: nowrap;
        font-size: 15px;
        font-weight: 600;
        font-stretch: normal;
        font-style: normal;
        line-height: normal;
        letter-spacing: normal;
    }


    .subunitMenu .label {
        font-family: IBM Plex Sans Bold;
        margin-left: var(--default-padding);
        white-space: nowrap;
        font-size: 12px;
        font-weight: 600;
        font-stretch: normal;
        font-style: normal;
        line-height: normal;
        letter-spacing: normal;
    }

    .subunitMenu .value {
        /*        top: -1px;
        position: relative;*/
        margin-left: var(--default-padding);
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        flex: 1;
        font-family: IBM Plex Sans Medium;
    }

    .subunitMenu .jqx-tabs-titleContentWrapper {
        font-size: 9pt;
    }

    .subunitMenu .icon {
        background-repeat: no-repeat;
        background-size: 20px 20px;
        height: 20px;
        width: 20px;
    }

    .subunitMenu .main-data-icon {
        background-image: url(../images/subunit-menu/main-data20.png);
    }

    #faciaMenuForm .main-data-icon {
        background-image: url(../images/subunit-menu/main-data20.png);
    }

    .subunitMenu .rock-composition-icon {
        background-image: url(../images/subunit-menu/rock-composition20.png);
    }

    .subunitMenu .age-icon {
        background-image: url(../images/subunit-menu/age20.png);
    }

    .subunitMenu .metallotect-icon {
        background-image: url(../images/subunit-menu/metallotect20.png);
    }

    .subunitMenu .taxon-region-icon {
        background-image: url(../images/subunit-menu/taxon-region20.png);
    }

    .subunitMenu .equivalent-icon {
        background-image: url(../images/subunit-menu/equivalent20.png);
    }

    .subunitMenu .bound-icon {
        background-image: url(../images/subunit-menu/bound20.png);
    }

    .subunitMenu .comment-icon {
        background-image: url(../images/subunit-menu/comment20.png);
        margin-left: 0;
    }

    .subunitMenu .binded-presentation-icon {
        background-image: url(../images/subunit-menu/binded-presentation20.png);
    }

    .subunitMenu .regional-scale-icon {
        background-image: url(../images/subunit-menu/regional-scale20.png);
    }

    .subunitMenu .file-icon {
        background-image: url(../images/subunit-menu/file20.png);
    }

    .subunitMenu .genesis-icon {
        background-image: url(../images/subunit-menu/genesis20.png);
    }

    .subunitMenu .thickness-icon {
        background-image: url(../images/subunit-menu/thickness20.png);
    }

    .subunitMenu .phases-icon {
        background-image: url(../images/subunit-menu/phases20.png);
    }

    .subunitMenu .complex-icon {
        background-image: url(../images/subunit-menu/complex20.png);
    }

    .subunitMenu .none-icon {
        background-image: url(../images/none.png);
    }


#complexMenuForm .create-by-sampler-icon,
#faciaMenuForm .create-by-sampler-icon {
    margin: 0;
}


#complexMenuForm .create-by-sampler-icon,
#faciaMenuForm .create-by-sampler-icon,
.subunitMenu .create-by-sampler-icon {
    background-image: url(../images/subunit-menu/create-by-sampler20.png);
    height: 23px !important;
    width: 23px !important;
    background-repeat: no-repeat;
    background-size: 20px 20px;
}

.subunitMenu .clone-icon {
    background-image: url(../images/subunit-menu/clone20.png);
    height: 23px !important;
    width: 23px !important;
    background-repeat: no-repeat;
    background-size: 20px 20px;
}

.subunitMenu .link-icon {
    background-image: url(../images/subunit-menu/link20.png);
    height: 23px !important;
    width: 23px !important;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position-x: 2px;
}

.subunitMenu .add-to-union-icon {
    background-image: url(../images/subunit-menu/add16.png);
    height: 23px !important;
    width: 23px !important;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position-x: 2px;
}

.subunitMenu .synchronize-icon {
    background-image: url(../images/subunit-menu/synchronize20.svg);
    height: 23px !important;
    width: 23px !important;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position-x: 2px;
}

.subunitMenu [data='addBound'] {
    top: 2px;
    position: relative;
    background-size: 16px 16px;
    background-position-x: 0;
}

.subunitMenu .delete-icon {
    background-image: url(../images/subunit-menu/trash20.png);
    height: 23px !important;
    width: 23px !important;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    background-position-x: 2px;
}

.subunitMenu .add-icon {
    background-image: url(../images/subunit-menu/add16.png);
    background-repeat: no-repeat;
    background-size: 16px 16px;
}

.subunitMenu .button-separator:not(:first-child),
.subunitMenu .secondary-button:not(:first-child) {
    margin-left: 8px;
}


.subunitMenu input[data=addRockComponent] {
    display: flex;
    align-items: center;
    justify-content: center;
    background-position-y: 7px;
    text-transform: none !important;
    font-weight: bold !important;
}


#subunitMenu.compact-size {
    width: 320px;
    /*height: auto;*/
    position: absolute;
}

#subunitMenu.full-size {
    width: 700px;
    height: 680px;
    position: absolute;
}

.subunitMenu #codeAndActualizationPart * {
    pointer-events: none;
    cursor: pointer;
}

.subunitMenu .headerButtons {
    border-radius: 0 var(--default-border-radius) 0 var(--default-border-radius);
    background-color: var(--light-green-background-color);
    padding: 2px;
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 2;
}

.subunitMenu .compact-size-button {
    cursor: pointer;
    background-image: url(../images/subunit-menu/compact-size16.png);
    background-repeat: no-repeat;
    background-size: 8px 8px;
    background-position: 2px;
    height: 12px;
    width: 12px;
    margin: 2px;
}

.subunitMenu .full-size-button {
    cursor: pointer;
    background-image: url(../images/subunit-menu/full-size8.png);
    background-repeat: no-repeat;
    background-size: 8px 8px;
    background-position: 2px;
    height: 12px;
    width: 12px;
    margin: 2px;
}

.subunitMenu .close-button {
    cursor: pointer;
    background-image: url(../images/subunit-menu/close8.png);
    background-repeat: no-repeat;
    background-size: 8px 8px;
    background-position: 2px;
    height: 12px;
    width: 12px;
    margin: 2px;
}


.subunitMenu #fullSize #subunitPropertyPart,
.subunitMenu #fullSize #subunitPresentationPropertyPart {
    display: flex;
    /*height: 100%;*/
}

.subunitMenu #fullSize .leftColumn,
.subunitMenu #fullSize .rightColumn {
    width: 321px;
    padding: 10px;
}

.subunitMenu #fullSize .vertical-separator {
    margin: 15px 10px 10px 10px;
    background-color: #dce7e3;
    width: 2px;
}

.subunitMenu #fullSize .column-part {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.subunitMenu .field-label {
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
}

.subunitMenu .dropDownButtonTitle,
.subunitMenu #dropdownlistContentbottomBoundType,
.subunitMenu #dropdownlistContentbottomBoundSubunit,
.subunitMenu #dropdownlistContentmetallotectType,
.subunitMenu #dropdownlistContentgeneticType,
.subunitMenu #dropdownlistContentquaternaryFormationsType_ForFullSize,
.subunitMenu #dropdownlistContentstatus {
    font-family: IBM Plex Mono Medium;
    font-size: 12px;
}

.subunitMenu #ageFrom input,
.subunitMenu #ageTo input {
    text-indent: 4px;
}

.subunitMenu textarea,
.subunitMenu input[type=textarea] {
    font-family: IBM Plex Sans;
    /*font-weight: 600;*/
    font-size: 12px;
    color: #333333;
    text-overflow: ellipsis;
    padding-right: 6px;
}


/*.subunitMenu #itemsHeader {
        display: flex;
    }

.subunitMenu #itemsHeader .rockType {
        border: 1px solid #dcf7f1;
        flex: 1;
        padding: 4px 2px 4px 10px;
        font-family: IBM Plex Sans;
        font-weight: normal;
        font-size: 11px;
    }

.subunitMenu #itemsHeader .rockProportion {
        border: 1px solid #dcf7f1;
        padding: 4px 2px 4px 10px;
        font-family: IBM Plex Sans;
        font-weight: normal;
        font-size: 11px;
        width: 100%;
    }

.subunitMenu #items {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 131px;
        overflow-y: auto;
        border-bottom: 1px solid #dcf7f1;
    }*/

.subunitMenu #items .noDataRow {
    background: #fff;
    border: 1px solid #dcf7f1;
    width: 100%;
    font-family: IBM Plex Sans;
    font-weight: normal;
    font-size: 11px;
    font-family: IBM Plex Sans;
    font-weight: normal;
    font-size: 11px;
    height: 21px;
    color: #aeacac;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*.subunitMenu #items .item {
        display: flex;
    }

    .subunitMenu #items .item .rockType {
        border: 1px solid #dcf7f1;
        width: 100%;
    }

        .subunitMenu #items .item .rockType input {
            font-family: IBM Plex Sans;
            font-weight: 600;
            font-size: 11px;
            color: #333333;
            text-overflow: ellipsis;
            padding-right: 6px;
        }

    .subunitMenu #items .item .rockProportion {
        border: 1px solid #dcf7f1;
        width: 100%;
        max-width: 140px;
    }

    .subunitMenu #items .item .buttons {
        border: 1px solid #dcf7f1;
        min-width: 32px;
        display: flex;
    }*/

.actualizationPart .status-name,
.subunitMenu .status-name {
    text-transform: lowercase;
}

.actualizationPart .status-icon,
.subunitMenu .status-icon {
    background-size: 14px 14px;
    height: 14px;
    width: 14px;
}

.actualizationPart .status-nonactualized,
.subunitMenu .status-nonactualized {
    background-image: url(../images/status_nonactualized.png);
}

.actualizationPart .status-inwork,
.subunitMenu .status-inwork {
    background-image: url(/images/status_inwork.png);
}

.actualizationPart .status-actualized,
.subunitMenu .status-actualized {
    background-color: rgb(255,253,225);
}

.actualizationPart .status-accepted,
.subunitMenu .status-accepted {
    background-color: var(--green-background-color) !important;
    color: #fff;
}

.actualizationPart .status-rejected,
.subunitMenu .status-rejected {
    background-color: #b84401 !important;
    color: #fff;
}

.subunitMenu #codeValue {
    /*max-width: 65px;*/
    line-height: 11px;
    /*font-weight: bold;*/
}

.subunitMenu #bottomBoundPart {
    align-items: flex-start;
}

.subunitMenu #bottomBoundTypeValue,
.subunitMenu #relatedSubunitValue {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 176px;
}

.subunitMenu #relatedSubunitValue {
    font-style: italic;
}

.subunitMenu .closed-button {
    background-image: url(/images/subunit-menu/arrow-right.png);
    background-size: 12px 12px;
    height: 12px;
    width: 12px;
}



.subunitMenu .opened-button {
    background-image: url(/images/subunit-menu/arrow-left-white.png);
    background-size: 12px 12px;
    height: 20px;
    width: 20px;
    background-position: 3px;
    background-color: var(--green-background-color);
    border-radius: 13px;
    padding: 4px;
    left: 4px;
}

.subunitMenu #bottomBoundPart .opened-button {
    left: 10px;
}


.subunitMenu #unionsPart {
    /*padding-right: 0;*/
}

.subunitMenu #subunitBoundsLinePart,
.subunitMenu #unionsLinePart {
    /*display: flex;
    align-items: center;*/
    /*justify-content: end;*/
    /*width: 100%;*/
    margin-left: 30px;
    margin-top: -4px;
}

    .subunitMenu #subunitBoundsLinePart .closed-button,
    .subunitMenu #unionsLinePart .closed-button {
        background-repeat: no-repeat;
        background-image: url(/images/subunit-menu/arrow-right.png);
        background-size: 12px 12px;
        height: 12px;
        width: 12px;
        padding: 0;
        color: #212529;
        text-decoration: none;
        cursor: pointer;
        position: relative;
        left: 0;
    }

    .subunitMenu #subunitBoundsLinePart .opened-button,
    .subunitMenu #unionsLinePart .opened-button {
        background-image: url(/images/subunit-menu/arrow-left-white.png);
        background-size: 12px 12px;
        height: 16px;
        width: 16px;
        background-position: 1px;
        background-color: var(--green-background-color);
        /*border-radius: 13px;*/
        /*padding: 4px;*/
        left: 0;
    }

    .subunitMenu #unionsLinePart .valueEx {
    }

.subunitMenu .selected-attribute {
    /*border-radius: 8px;*/
    /*box-shadow: inset 0 0 0 1px rgb(1 131 103);*/
}


.subunitMenu .overlay {
    /*        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        text-align: center;
        background-color: #000;
        filter: alpha(opacity=50);
        -moz-opacity: 0.5;
        opacity: 0.5;*/
}

    .subunitMenu .overlay .message {
        padding: 5px;
        border-radius: 5px;
        color: #f35252;
        font-size: 32pt;
        position: absolute;
        top: 300px;
        left: 200px;
        transform: rotate(-45deg);
    }


.subunitMenu .label {
    font-size: 14px;
}

.subunitMenu #bottomBoundTypeValue, .subunitMenu #relatedSubunitValue {
    width: 167px;
    font-size: 12px;
}

.subunitMenu .value {
    font-family: 'IBM Plex Sans';
    font-size: 12px;
}

.subunitMenu #codeAndActualizationPart {
    font-family: 'IBM Plex Sans';
}

.subunitMenu #nameValue {
    font-weight: normal;
}

.subunitMenu #ageFrom input, .subunitMenu #ageTo input {
    text-indent: 6px;
    /*font-family: IBM Plex Mono Medium;*/
    font-size: 12px;
    color: var(--black-color);
    font-weight: normal;
}

.subunitMenu + .jqx-listbox-container .jqx-listitem-state-normal,
subunitMenu + .jqx-listbox-container .jqx-listitem-state-selected {
    font-family: IBM Plex Mono Medium;
    font-size: 12px;
}


/*#complexSubunitMenu {
    font-size: var(--default-font-size);
    font-family: var(--default-font-family);
    position: fixed;
    z-index: 100;
    top: 50%;
    left: 50%;
     margin: 50px 80px 389px 0; 
    box-shadow: 0 0 20px 0 rgba(0, 56, 43, 0.15);
    background-color: var(--default-background-color);
    border-radius: var(--default-border-radius);
    display: flex;
    flex-flow: column;
    height: 100%;
}
*/

#phaseMenu {
    width: 320px;
    position: absolute;
}
