/* Делаем затемнение заднего плана */
.dialog_back{
    z-index: 1001;
    width:100%;
    min-height:100%;
    background-color: rgba(0,0,0,0.1);
    overflow:hidden;
    position:fixed;
    top:0;
    user-select: none;
}
/* Позиционируем окно */
.dialog_frame{

    position: absolute;
    margin-top: 5%;

    padding: 0 10px 0 10px;
    min-height: 100px;
    height: auto;
    /*max-height: 80%;*/
    /*height: 1px;*/

    background-color: #ffffff;
}
.dialog_frame[layout="normal"]{
    left: 35%;
    width: 30%;
    overflow: hidden;
    /*overflow-y: auto;*/
}
.dialog_frame[layout="half_screen"]{
    position: absolute;
    margin-top: 0;
    top: 25%;


    left: 25%;
    width: 50%;
    height: 50%;

    /*max-height: 60%;*/
}
.dialog_content {
     position: relative;
     padding: 10px;
     width: 95%;
     /*max-height: 10%;*/
     height: auto;
     margin: auto;
     font-size: 18px;
     overflow: hidden;
 }
.dialog_frame[layout="half_screen"] .dialog_content{
    /*height: 135%;*/
}
.dialog_frame[layout="normal"] .dialog_content{
    /*height: 95%;*/
}

/* Позиционируем верхний бар*/
.dialog_header{
    margin: 0 -10px 0 -10px;
    text-align: center;
    position: relative;
    vertical-align: middle;
    height: 25px;
    background-color: #faf5e6;
    color: dimgray;
    overflow: hidden;
    font-size: 18px;
    /*cursor: move;*/
}


/*.dialog_title{*/
    /*font-size: 18px;*/
/*}*/
/* Делаем кнопку закрытия окна*/
.dialog_close{
    position: absolute;
    right: 0;
    top: 0;
    color: #2c3524;
    background-color: #f6f1e2;
    height: 25px;
    width: 25px;
    border:0;
    text-decoration: none;
}

.dialog_close:hover{
    cursor: pointer;
}
/* Позиционируем блок с контентом*/


.dialog_content select{
    font-size: 18px;
}
.dialog_content input{
    font-size: 18px;
}
.dialog_content input[type="checkbox"]{
    margin: 0 ;
    /*display: inline-block;*/
    width:15px;
    height:15px;

}
.dialog_content textarea{
    height: 5em;
}
.dialog_content p{
    text-indent: 0.5em;
}

.dialog_item_block{
    display: block;
    width: 85%;
    overflow: auto;
    
    /*margin: 0 auto 5px;*/
    /*border: 1px dashed blue;*/
    /*margin-bottom: ;*/
}
.dialog_item_block.tree{
    /*position: relative;*/
    /*display: flex;*/
    height: auto;
    max-height: 500px;
    overflow-y: auto;
    /*margin-bottom: 30px;*/






}
/*.dialog_item_block.dialog_yes_no{*/
/*    width: 95%;*/
/*    text-align: center;*/
/*    align-content: center;*/
/*    */

/*}*/
.dialog_item_inline{
    display: inline-block;
    /*width: 98%;*/
    margin: 0  10px  5px 0;
    /*margin-bottom: ;*/
}

.dialog_yes_no {
    display: inline-block;
    margin-top: 5px;
    width: 100%;
}

.dialog_yes_no button {
    /*display: block;*/
    margin: 2%;
    height: 30px;
    width: 45%;
}

.href_btn {
    background: none;
    border: none;
    color: blue;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1em;
    font-family: serif;
}

.href_btn:active {
    color:red;
}
.dialog_content .dialog_container{
    overflow-y: auto;
}

