﻿td{
    vertical-align: top;
    padding: 0px !important;
    margin: 0px !important;
}
html, body{
    height: 100%;
    width: 100%;
    margin: 0px !important;
    padding: 0px !important;
    overflow: hidden;
}
.mdi:before{
    font-size: 20px !important;
    line-height: normal !important;
    padding-right: 4px;
}
.mdi{
    line-height: normal !important ;
}

textarea, input{
    outline: none;
    resize: none;
}

.small-button{
    display: inline-block;
    border: 2px solid silver;
    border-radius: 4px;
    padding: 2px 4px 2px 4px;
    cursor: pointer;
    margin: 2px;
}

/****************************************************************/
/*                        table-input                         */
/****************************************************************/
.table-input{
    width: 100%;
    max-width: 1000px;
    margin: 0px auto 0px auto;
}
.table-input>tbody>tr>td:first-child{
    width: 30%;
    text-align: right;
}

.table-input td{
    padding: 4px !important;
    margin: 4px !important;
}    
/****************************************************************/
/*                        Главный блок                         */
/****************************************************************/
.cms{
    width: 100%;
    height: 100%;
    background-color:  #F0F0F0;
}

.cms td{
    padding: 8px !important;
}
/***** левая панель ***************/
.base-toolbar{
    width: 30px;
    background-color: black;
    text-align: center;
    padding: 0px !important;
}
.base-toolbar .mdi{
    display: inline-block;
    padding: 4px;
    margin-bottom: 4px ;
    color: white;
    cursor: pointer;
    border-radius: 4px;
}


.base-toolbar .mdi:before{
    font-size: 22px !important;
    padding-right: 0px;
}
.base-toolbar .mdi-active{
    background-color: white;
    color: black;
    cursor: default;
}

/***** верхнее меню ***************/
.top-menu{
    padding: 4px;
    font-size: 16px;
    border-bottom: 1px solid #A0A0A0;
}

.top-menu a,
.top-menu a:hover,
.top-menu a:visited{
    color: black;
    text-decoration: none;
}

.top-menu span{
    cursor: pointer;
}
.top-menu .active-lang{
    cursor: default;
}
.top-menu .active-lang:before{
    content: '[';
}
.top-menu .active-lang:after{
    content: ']';
}
.top-menu .block{
    border-right: 1px solid black;
    display: inline-block;
    margin-right: 10px;
    padding-right: 10px;
}

.top-menu .go-home{
    float: right;
    margin-right: 0px !important;
}

/***** содержимое ***************/

.left-content,
.right-content{
    width: 100%;
    height: 100%;
    background-color:  white;
    overflow-y: scroll;
    border: 1px solid #A0A0A0;
}
.right-toolbar,
.left-toolbar{
    width: 28px;
}

/***** попа ***************/

.dialog-save-button{
    position: fixed;
    color: blue;
    display: none;
    bottom: 4px;
    left: 48px;
    border: 1px solid blue;
    border-radius: 4px;
    background-color: white;
    padding: 4px;
    z-index: 80000;
}


.timer_session{
    position: fixed;
    color: white;
    bottom: 4px;
    display: inline-block;
    left: 2px;
    text-align: center;
    width: 40px;
}

.timer_session span{
    display: block;
    height: 2px;
    border-bottom: 1px solid white;
    margin: 0px 10px 0px 10px;
}

/****************************************************************/
/*                         Tollbar                              */
/****************************************************************/

.toolbar-td{
    padding-left: 0px !important;
}
.toolbar .button{
    display: inline-block;
    overflow: hidden;
    cursor: pointer;
    border-radius: 2px;
    margin-bottom: 2px;
}

.toolbar .button a,
.toolbar .button a:visited
{
    color: black;
}

.toolbar .disabled{
    display: none;
    opacity: 0.2;
    cursor: default;
}

.toolbar .sep{
    display: block;
    border-top: 1px solid #A0A0A0;
    margin: 0px 6px 6px 6px;
}

.toolbar .mdi:before{
    font-size: 28px !important;
}

.toolbar .mdi:hover,
.toolbar a:hover{
    color: blue !important;
}


/****************************************************************/
/*                         Дерево                              */
/****************************************************************/
.tree-view div{
    margin-left: 16px;
}
.tree-view>div{
    margin-left: 0px !important;
}
.tree-view span[vl]{
    cursor: pointer;
}
.tree-view .active{
    font-weight: bold;
    color:blue;
    cursor: default !important;
}
.tree-view .not-move{
    text-decoration: line-through;
}

/****************************************************************/
/*                        Диалог для переноса                   */
/****************************************************************/

.dialog-move {
    height: 300px;
    overflow-y: scroll;
    text-align: left;
}


/****************************************************************/
/*                        Список файлов                      */
/****************************************************************/

.file-list{
    overflow-y: scroll;
    height: 100%;
}


   .file-list .item{
        width: 160px;
        height: 150px;
        padding: 6px;
        margin: 6px;
        border: 1px solid silver;
        display: inline-block;
        float: left;
        text-align: center;
    }
    .file-list .select{
        background-color: silver;
    }



    .file-list .item>img{
        max-width: 120px;
        max-height: 100px;
    }

      .file-list .item>span{
          display: block;
          overflow: hidden;
          height: 22px;
    }

    .file-list .item div.fon{
        border: 1px solid silver;
        width: 160px;
        height: 140px;
        position: fixed;
        float: left;
        margin: -12px 0px 0px -12px;
    }

/****************************************************************/
/*                        Список элементов                      */
/****************************************************************/

.container-list .item{
    padding: 14px;
    border-bottom: 1px dotted silver;
}

.container-list .select{
    background-color: silver;
}

.container-list div[show="0"]{
    text-decoration: line-through;
}


/****************************************************************/
/*                        Диалог редактирования                 */
/****************************************************************/
.data-table{
    width: 100%;
    height: 100%;
}
.data-table-toolbar{
    width: 30px;
    background-color: black;
    text-align: center;
}
.data-table-toolbar .mdi{
    padding: 0px 4px 0px 4px;
    margin: 0px  4px 4px 4px ;
    color: white;
    cursor: pointer;
}


.data-table-toolbar .mdi:before{
    font-size: 22px !important;
}
.data-table-toolbar .mdi-active{
    background-color: white;
    color: black;
    cursor: default;
    border-radius: 4px;
}

.data-table-content{
    width: 100%;
}

.data-table-content>div{
    width: 100%;
    height: 100%;
    overflow-y: auto;
}
/****************************************************************/
/*                          OffOn                             */
/****************************************************************/
.off-on{
    display: inline-block;
    border: 2px solid silver;
    border-radius: 66px;
    padding: 2px 4px 2px 4px;
    cursor: pointer;
    width: 50px;
}
.off-on>span{
    display: inline-block;
    width: 20px;
    height: 20px; 
    border-radius: 66px;
}


.off-on[vl="0"]>span{
    border: 1px solid silver;
    float: left;
}
.off-on[vl="1"]>span{
    border: 1px solid green;
    background-color: green;
    float: right;
}



/****************************************************************/
/*                          Radio                             */
/****************************************************************/
.radio{
    padding-left: 0px !important; 
    margin-top: 0px !important;
}
.radio>*{
    border: 1px solid silver;
    border-radius: 4px;
    padding: 2px 4px 2px 10px;
    cursor: pointer;
    margin-bottom: 4px;
}

.radio .checked{
    border: 1px solid green;
    background-color: green;
    cursor: default;
    color: white;
}



/****************************************************************/
/*                        Главная картинка                         */
/****************************************************************/

    .img-view  td:first-child{
        border: 1px solid silver;
        width: 320px;
        height: 220px;
        vertical-align: middle !important;
        text-align: center;
    }
    .img-view img{
        max-width: 300px;
        max-height: 200px;
    }
    .img-view span{
        display: inline-block;
        width: 80px;
        text-align: center;
        border: 1px solid silver;
        padding: 2px;
        border-radius: 3px;
        margin: 0px 0px 10px 6px;
    }