@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

body {
    background-color: #F1F4F6 !important;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

app {
    position: relative;
    display: flex;
    flex-direction: column;
}

.top-row {
    height: 3.5rem;
    display: flex;
    align-items: center;
}

.main {
    flex: 1;
}

    .main .top-row {
        background-color: #f7f7f7;
        border-bottom: 1px solid #d6d5d5;
        justify-content: flex-end;
    }

        .main .top-row > a, .main .top-row .btn-link {
            white-space: nowrap;
            margin-left: 1.5rem;
        }

.main .top-row a:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

    .sidebar .top-row {
        background-color: rgba(0,0,0,0.4);
    }

    .sidebar .navbar-brand {
        font-size: 1.1rem;
    }

    .sidebar .oi {
        width: 2rem;
        font-size: 1.1rem;
        vertical-align: text-top;
        top: -2px;
    }

    .sidebar .nav-item {
        font-size: 0.9rem;
        padding-bottom: 0.5rem;
    }

        .sidebar .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .sidebar .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .sidebar .nav-item a {
            color: #d7d7d7;
            border-radius: 4px;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
        }

            .sidebar .nav-item a.active {
                background-color: rgba(255,255,255,0.25);
                color: white;
            }

            .sidebar .nav-item a:hover {
                background-color: rgba(255,255,255,0.1);
                color: white;
            }

.content {
    padding-top: 1.1rem;
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.hide {display: none !important;}
.show {display: block !important;}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.btnDelete {color: red; font-size: 16px; cursor: pointer; margin: 0 2px;}
.btnDeleteSm {color: red; font-size: 12px; cursor: pointer; margin: 0 0 0 2px;}
.btnEdit {color: green; font-size: 16px; cursor: pointer; margin: 0 2px;}
.btnUp, .btnDown {color: blue; font-size: 16px; cursor: pointer;}
.btnOk {color: green; font-size: 16px; cursor: pointer; margin: 0 2px;}
.btnCancel {color: red; font-size: 16px; cursor: pointer; margin: 0 2px;}
.btnClear {font-size: 16px; color: orange; padding-top: 4px; cursor: pointer;}
.btnDelete:hover, .btnEdit:hover, .btnUp:hover, .btnDown:hover, .btnOk:hover, .btnCancel:hover, .btnClear:hover {opacity: 0.5;}

.smart-menu {background-color: #fafbfc !important; border-color: #fafbfc !important; }
.smart-menu-items-group { color: #6c757d !important;}
.smart-menu-items-group .smart-menu-item-label-element a {color: #6c757d; text-decoration: unset;}

.smart-menu-items-group .smart-menu-items-group-arrow {margin-left: 3px !important; }
.smart-menu-items-group .smart-menu-item-label-container{padding: 5px !important; }

.smart-menu .nav-link-icon {    padding-right: 5px;}

.smart-menu-item {    color: #6c757d !important;}

.app-main .app-main__inner{padding-top: 5px !important;}
.estimatedUnitOfMeasurement .list-group-item{padding: 2px 8px;}
.vertical-nav-menu .app-sidebar__heading {white-space: unset;}
.estimatedUnitOfMeasurementBlock{border: solid 1px #E2E2E2; margin-left: 15px !important; margin-right: 30px !important;
                                 padding: 10px 3px !important; border-radius: 5px;}
.estimatedUnitOfMeasurementBlock > div {padding-left: 5px; padding-right: 5px;}
.btnRemoveBlockUnitOfMeasurement, .btnAddBlockUnitOfMeasurement{height: max-content;margin: 15px 5px;}

.checkCompositionOfWorks {    height: 18px;    width: 18px;   }
.checkCompositionOfWorksAll{    height: 15px;    width: 15px;    margin-left: -30px !important;    margin-top: 15px !important;}
.trColor, .trColor:hover {
    background-color: lightskyblue !important;
}

#nav-estimatedProperties .rz-cell-data, #nav-additionalOperations .rz-cell-data {display: flex;}

.editPropertyOfWorksEnable {
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: lightgray;
    margin: 2px 5px 2px 0;
    border-radius: 2px;
}
.editPropertyOfWorksDisable {
    padding-top: 2px;
    padding-bottom: 2px;
    background-color: lightgray;
    margin: 2px 5px 2px 0;
    opacity: 0.3;
    border-radius: 2px;
}

.editPropertyLaborIntensityDisable {
    background-color: lightgray;
    border-radius: 2px;
    padding: 5px;
    margin: 5px 0 0 10px !important;
    opacity: 0.3;
}

.editPropertyLaborIntensityEnable {
    background-color: lightgray;
    border-radius: 2px;
    padding: 5px;
    margin: 5px 0 0 10px !important;
}

.displayNone {
    display: none !important;
}

.checkboxDisplayLaborIntensity > i {position: relative; top: -10px;}
.ganttFormCheck {    background-color: white;    padding: 3px 15px;}

.btnLoadVORListFromExcel { width: 110px; }

.BtnsForWorkModal span {cursor: pointer;}
.BtnsForWorkModal span:hover {color: gray; text-decoration: underline;}

.btnEditRidding, .btnDeleteRidding, .btnDuplicateRidding {cursor: pointer;}
.btnEditRidding:hover, .btnDeleteRidding:hover, .btnDuplicateRidding:hover {color: gray; text-decoration: underline;}

/*@-moz-document url-prefix() {
    .btnLoadVORListFromExcel { width: 75px; }
}*/
/*@supports (-webkit-appearance:none){ 
    .btnLoadVORListFromExcel { width: 120px; }
}*/
/*@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution: .001dpcm) {
    .btnLoadVORListFromExcel { width: 120px; }
}*/
.ConstructionClassifierMain > div {
    border: solid 2px;
    padding: 3px;
}
.ConstructionClassifierMain > div span {border: solid 1px; padding: 2px;}

.activeItemMenu { color: darkblue;    margin-top: 2px;    text-decoration: underline;}

.btnExitProject { border: 1px #C2CACF solid;    border-radius: 3px;    background-color: #E0E9EF;    padding: 2px 5px; 
                     position: absolute; right: 20px; top: 60px; z-index: 99;}

.btnExitProject a {color: gray;}
.btnExitProject a:hover {text-decoration: none;}

.btnExitProject:hover {opacity: 0.6;}

.wrapNavMenuShow { background-color: #343A40;    width: 280px; color: #979CA4;}
.wrapNavMenuShow hr, .wrapNavMenuHide hr {background-color: #4B545C; margin: 5px 0;}

.wrapNavMenuShow .navMenuTop{padding-top: 5px;}
.wrapNavMenuShow .navMenuTop > div a {color: #9583AE; font-family: "Source Sans Pro"; font-size: 16px; font-weight: 400; padding: 7px 7px; display: block; margin: 0 10px;}
.wrapNavMenuShow .navMenuTop > div a:hover {color: lightgray; text-decoration: none;}
.wrapNavMenuShow .navMenuTop > div a:hover .bi {color: lightgray !important;}

.wrapNavMenuShow .navMenuMidle{}
.wrapNavMenuShow .navMenuMidle a:hover {background-color: #3F474E; color: white; text-decoration: none;}
.wrapNavMenuShow .navMenuMidle a:hover .bi {color: white !important;}
.wrapNavMenuShow .navMenuMidle a{ color: #979CA4; font-family: "Source Sans Pro"; font-size: 16px; font-weight: 400; padding: 7px 7px; display: block; margin: 0 10px;
                border-radius: 3px;}

.wrapNavMenuShow .navMenuBottom{padding-top: 5px;}
.wrapNavMenuShow .navMenuBottom > div a {color: #9583AE; font-family: "Source Sans Pro"; font-size: 16px; font-weight: 400; padding: 7px 7px; display: block; margin: 0 10px;}
.wrapNavMenuShow .navMenuBottom > div a:hover {color: lightgray; text-decoration: none;}
.wrapNavMenuShow .navMenuBottom > div a:hover .bi {color: lightgray !important;}
.wrapNavMenuShow .navMenuTop i, .wrapNavMenuShow .navMenuMidle i, .wrapNavMenuShow .navMenuBottom i {padding-right: 7px; font-size: 16px !important;}

.wrapNavMenuHide { background-color: #343A40;    width: 55px; color: #979CA4;}
.wrapNavMenuHide .navMenuTop a, .wrapNavMenuHide .navMenuMidle a, .wrapNavMenuHide .navMenuBottom a {overflow: hidden; display: flex; align-items: center;}
.wrapNavMenuHide .navMenuTop i, .wrapNavMenuHide .navMenuMidle i, .wrapNavMenuHide .navMenuBottom i {margin-left: 14px; padding-right: 15px; font-size: 26px !important;}
.wrapNavMenuHide .navMenuTop span, .wrapNavMenuHide .navMenuMidle span, .wrapNavMenuHide .navMenuBottom span {display: none;}


.wrapNavMenuHide .navMenuTop a:hover, .wrapNavMenuHide .navMenuMidle a:hover, .wrapNavMenuHide .navMenuBottom a:hover
{background-color: #3F474E; color: white; text-decoration: none; display: flex; width: max-content; 
 z-index: 99; position: relative;  padding: 0 20px 0 5px; font-family: "Source Sans Pro"; font-size: 20px; border-radius: 3px;}
.wrapNavMenuHide .navMenuMidle a:hover .bi {color: white !important;}
.wrapNavMenuHide .navMenuTop a:hover span, .wrapNavMenuHide .navMenuMidle a:hover span, .wrapNavMenuHide .navMenuBottom a:hover span {display: unset;}

.BtnsInFirstCollRowWork{display: flex;}
.BtnsInFirstCollRowWork{pa}
.TdBtnsInFirstCollRowWork {padding-left: 0 !important; padding-right: 0 !important;}

.logoMenuShow, .logoMenuHide { background-color: white; height: 30px; text-align: center; padding-top: 4px; display: flex;}
.logoMenuShow .imgLogo{width: 90%;}
.logoMenuShow .btnHideNavMenu {width: 10%; text-align: right;}
.logoMenuHide .imgLogo{display: none;}
.logoMenuHide .btnHideNavMenu {position: relative; left: 262px; }

.btnHideNavMenu:hover {    cursor: pointer;    color: lightgray;}

.topBlock {height: 30px; background-color: white; display: flex;}
.topBlockLogo {width: 280px;}
.topBlockHead {margin: 0 auto;}
.topBlockAuth {width: 200px; color: gray; font-weight: 600; padding-right: 5px; text-align: right;}

.BlockSearchRigging, .BlockSearchMechanism, .BlockSearchInstrument {
    background-color: lightgray;
    width: 500px;
    height: 120px;
    position: absolute;
    overflow: auto;
    z-index: 9;
}
.BlockSearchRigging p, .BlockSearchMechanism p, .BlockSearchInstrument p {
    padding: 3px 10px;
    margin: 0;
}
.BlockSearchRigging p:hover, .BlockSearchMechanism p:hover, .BlockSearchInstrument p:hover {
    cursor: pointer;
    background-color: gray;
    color: white;
}

.BtnsRiggingVOR, .BtnsMechanismVOR, .BtnsInstrumentVOR {
    padding: 10px;
    border: 1px solid lightgray;
    margin-bottom: 5px;
    width: max-content;
    border-radius: 2px;
}
.BtnsRiggingVOR input, .BtnsMechanismVOR input, .BtnsInstrumentVOR input {
    width: 15px;
    height: 15px;
    margin-right: 10px;
}

.SearchRiggingIdenticalRiggingModal, .SearchMechanismIdenticalMechanismModal, .SearchInstrumentIdenticalInstrumentModal {
    background-color: lightgray;
    padding: 10px;
    border-radius: 2px;
}

.generalSettingStr {    border: 1px solid lightgray;    border-radius: 2px;    background-color: lightcyan;    display: flex;
    width: 90%;    padding: 5px;    margin: 5px;}
.generalSettingStr p {width: 80%;}
.generalSettingStr input {width: 65px;}

.tableRiggingVOR .rz-grid-table, .tableMechanismVOR .rz-grid-table, .tableInstrumentVOR .rz-grid-table {
    position: unset !important;
}

.tableEstimate > table{width: 97%; margin: 0 auto;}
.tableEstimate > table td {padding: 1px;}

.app-main {
    padding-top: 0px !important;
}

.scrollbar-sidebar {background-color: #343A40; margin-top: -30px;}
.app-sidebar {
    background-color: #343A40 !important;
    height: 115% !important;
}
.vertical-nav-menu {background-color: black !important;}
.vertical-nav-menu li a {color: white !important; padding: 0 0 0 10px !important;}
.app-sidebar__inner {padding-right: 0 !important;}
/*.app-main__outer{z-index: 15 !important;}*/


.vertical-nav-menu li a:hover {
    background: none !important;
    text-decoration: underline !important;
    color: lightgray !important;
}

.app-sidebar{box-shadow: none !important;}

.colorForSynchWithEstimateTrue {color: green;}
.colorForEstimateSynchSuccess {background-color: #1fc11f; }
.colorForEstimateSynchError {background-color: #e67145;}
.styleForEstimateSynchError {background-color: #e67145;border: 4px solid red;font-weight: bold;color: orange;}

@media (max-width: 767.98px) {
    .main .top-row:not(.auth) {
        display: none;
    }

    .main .top-row.auth {
        justify-content: space-between;
    }

    .main .top-row a, .main .top-row .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 768px) {
    app {
        /*flex-direction: row;*/
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .main .top-row {
        position: sticky;
        top: 0;
    }

    .main > div {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }

    .navbar-toggler {
        display: none;
    }

    .sidebar .collapse {
        /* Never collapse the sidebar for wide screens */
        display: block;
    }
}
