﻿/****************************************************************/
/*                        Long Table                            */
/****************************************************************/
.tb-big .tb-row{
    display: block;
}

.tb-big .tb-row > div {
    display: inline-block;
    position: relative;
    z-index: 0;
    float: unset;
    padding: 2px;
    overflow-y: hidden;
}

.tb-body-block{
    overflow-y: scroll;
    overflow-x: hidden;
    width: 100%;
}

.tb-body .tb-row>div:nth-child(1){
    z-index: 1 !important;
    background-color: white;
}

.tb-body .tb-row:nth-child(even) {
    background-color: #F0F0F0;
}

.tb-body .tb-row:nth-child(even)>div:nth-child(1) {
    background-color: #F0F0F0 !important;
}

.tb-body .tb-row{
    border-bottom: 1px solid  silver;
    border-left: 1px solid silver;
}
.tb-body .tb-row>div{
    border-right: 1px solid  silver;
}

.tb-head{
    border-top: 1px solid  #00285f;
    font-weight: bold;
    border-bottom: 1px solid  #00285f;
    border-left: 1px solid  #00285f;
}

.tb-head .tb-row>div{
    text-align: center;
}


.tb-head div[sort]{
    cursor: pointer;
}
.tb-head div[sort-status='asc']:before{
    color: blue;
}
.tb-head div[sort-status='desc']:before{
    color: red;
}

.tb-head .tb-row>div:nth-child(1){
    z-index: 1 !important;
    background-color: white;
}

.tb-head .tb-row>div:before{
    font-size: 16px;
}
.tb-head .tb-row>div{
    border-right: 1px solid  #00285f;
}

.tb-head-block{
    overflow-x: hidden;
    overflow-y: hidden;
    width: 100%;
}

.tb-scroll-x{
    width: 100%;
    overflow-x: scroll;
    height: 24px;
    overflow-y: hidden;
}

.tb-scroll-x img{
    height: 0px;
}

.tb-search input{
    outline: none;
    margin: 0px 8px 0px 8px;
}

.tb-search select{
    outline: none;
    margin-left: 10px;
}


.tb-search {
    padding-bottom: 4px;
}

.tb-search:before{
    font-size: 18px !important;
}

.fixed-2 .tb-row>div:nth-child(2){
    z-index: 1 !important;
    background-color: white;
}

.fixed-2 .tb-body .tb-row:nth-child(even)>div:nth-child(2) {
    background-color: #F0F0F0 !important;
}

.fixed-3 .tb-row>div:nth-child(3){
    z-index: 1 !important;
    background-color: white;
}

.fixed-3 .tb-body .tb-row:nth-child(even)>div:nth-child(3) {
    background-color: #F0F0F0 !important;
}




/****************************************************************/
/*                        FindUser                              */
/****************************************************************/
.user-find-result{
    text-align: left;
    height: 300px;
    overflow-y: scroll;
    margin-top: 10px;
}
.user-find-result img{
    width: 80px;
    float: left;
    margin-right: 6px;
}

.user-find-result .go-user{
    cursor: pointer;
    font-weight: bold;
    content: 'FF';
    float: right;
}

.user-find-result>div{
    margin: 4px 0px 4px 0px;
    border-bottom: 1px dotted silver;
    height: 120px;
}
.user-find-result>div:last-child{
    border-bottom: 0px dotted silver;
}

.user-find-result :is(.user-guid, .user-login, .fio){
    margin-right: 8px;
    cursor: pointer;
}




.user-find-dialog q{
    display: inline-block;
    margin: 3px;
    padding: 2px;
    border: 1px solid silver;
}


/****************************************************************/
/*                        Tabs                                  */
/****************************************************************/

.tabs-off{
    text-align: left;
    border-bottom: 1px dotted silver;
    cursor: pointer;
    padding: 6px 2px 6px 2px;
}

.tabs-off:last-child{
    border-bottom: 0px dotted silver;
}

.tabs-on{
    /*background: transparent url('/Design/Ico/hd8.png') repeat-y 0px 0px;*/
    background: linear-gradient(90deg, rgb(55,171,175), rgb(39,214,182));
    background-size: 100%;
    cursor: default;
    color: white;
} 



 .tabs-toolbar{
     display: inline-block;
 }

 .tabs-toolbar>*{
     display: inline-block;
     padding: 6px 8px 6px 8px;
     border-radius: 4px;
}


/****************************************************************/
/*                              ToolBar                              */
/****************************************************************/
.toolbar-menu, .toolbar-dop, .toolbar-dop-2{
    background-color: #CFD6E5;
    padding: 2px 2px 2px 2px;
    border-bottom: 1px solid #00285f;
    width: 100%;
    display:  block;
    height: 38px;
}

:is(.toolbar-menu, .toolbar-dop, .toolbar-dop-2) .disabled {
    opacity: 0.4;
}



.toolbar-null .button,
.toolbar-menu .button,
.toolbar-menu .button-label,
.toolbar-menu .button-mdi,
.toolbar-menu .button-ico{
    padding: 4px 6px 0px 6px;
    display: inline-block;
    text-align: center;
    
    height: 32px;
    /*background-color: #F0F0F0;*/

    margin-right: 4px;

    white-space: nowrap;   
    float: left;
}

.toolbar-null .button,
.toolbar-menu .button{
    cursor: pointer;
    border: 1px solid silver;
    border-radius: 4px;
}

.toolbar-menu .button-label{
    text-align: left;
    background-color: inherit;
    padding-top: 6px !important;
}

.toolbar-menu .button-separator{
    display: inline-block;
    height: 32px;
    margin-right: 4px;
    border-right: 1px solid white;
    border-left: 1px solid silver;
    float: left;
}

.toolbar-menu .separator{
    border-right: 1px solid white !important;
}


.toolbar-menu .button-ico{
    cursor: pointer;
    border: 1px solid silver;
    border-radius: 4px;

    font-family: 'Glyphicons Halflings';
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-weight: normal;
    float: left;
    font-size: 16px;
}


.toolbar-menu .button-mdi{
    cursor: pointer;
    border-width: 1px;
    border-style: solid;
    border-color: #CFD6E5;

    padding-top: 2px;
}


.toolbar-menu .button-mdi .tt{ /*подпсь к иконке*/
    display: inline-block;
}

.toolbar-menu .button-mdi:before{
    font: normal normal normal 24px/1 "Material Design Icons";
    text-rendering: auto;
    line-height: inherit;
    font-size: 20px;
}

.toolbar-menu .button-mdi>span{
    padding: 3px 0px 0px 2px;
    float: right;
}


.toolbar-menu .button-mdi:hover {
    border-color: darkgray;
}

.toolbar-menu .button-mdi .sub{
    position: absolute;
    z-index: 100;
    border-left: 1px solid darkgray;
    border-right: 1px solid darkgray;
    border-bottom: 1px solid darkgray;
    border-radius: 0px 0px 4px 4px;
    padding: 4px;
    display: none;
    background-color: #CFD6E5;
    margin: 0px 0px 0px -7px;
    width: 42px;
    font-size: 20px;
}


.toolbar-menu .button-menu .sub{
    width: auto;
    font-size: 16px;
    text-align: left;
}

.toolbar-menu .button-menu .sub>*{
    padding: 8px;
}



.toolbar-menu .button-mdi .sub>div:hover{
    background-color: silver;
}
.toolbar-menu .button-mdi .sub .active{
    color: blue;
}
.toolbar-menu .button-select::after{
    content: "\F1D9";
    color: darkgray;
    font-size: 18px;
    font-family: "Material Design Icons";
}


.toolbar-menu select{
    font-size: 14px;
    padding: 2px 6px 2px 6px;
    outline: none;
    float: left;
    margin: 4px 4px 0px 0px;
}

.right-block-toolbar{
    float: right !important;
}

.toolbar-menu .mdi-file-pdf{
    color: red;
}
.toolbar-menu .mdi-file-excel{
    color: darkgreen;
}
.toolbar-menu .mdi-settings{
    color: blue;
}
.toolbar-menu .mdi-content-save{
    color: blue;
}



















/******************************************************************/
/*                              CheckBox Block                      */
/******************************************************************/
.checkbox-block{
    border: 1px solid #e3e3e3;
    border-radius: 6px;
    background-image: -webkit-gradient(linear, left 0%, left 100%, from(#e8e8e8), to(#f5f5f5));
    padding: 6px 10px 10px 10px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 0 rgba(255, 255, 255, 0.1);
    text-align: left;
    margin-bottom: 10px;
}

.checkbox-block .select-top{
    background-color: white;
    padding: 2px 0px 2px 24px;
    background-position-y: 2px;
    border-radius: 6px 0px 0px 6px;
}

.checkbox-block .select-top .info{
    display: inline-block;
    float: right;
    margin-right: 4px;
}

/****************************************************************/
/*                              Radio                           */
/****************************************************************/
.radio-off{
    display: block;
    /*background: transparent url('/Design/Ico/radio-off.png') no-repeat 0px 0px;*/
    background-size: 24px;
    padding-left: 28px;
    min-height: 28px;
    cursor: pointer;
    text-align: left;
}

.radio-on{
/*    background: transparent url('/Design/Ico/radio-on.png') no-repeat 0px 0px;*/
    background-size: 24px;
}


/******************************************************************/
/*                              ContentToolbar                    */
/******************************************************************/

.table-toolbar thead tr{
    background-color: #F0F0F0;
}

/*
 .table-toolbar tr[read-only]{
     font-style: italic;
 }*/

 .table-toolbar .tool-item{
     visibility: hidden;
     float: right;
     font-size: 18px;
     display: inline-block;
     margin: 0px 2px 0px 2px;
     cursor: pointer;
     color: silver;
 }

 .table-toolbar tr:hover .tool-item{
     visibility: visible;
 }
 .table-toolbar .select{
     background-color: #B7D8FF;
 }
.table-toolbar .select .tool-item{
     visibility: visible;
 }

/******************************************************************/
/*                              Big Table                         */
/******************************************************************/
.bt-main{
 }
.bt-main-scroll{
      overflow-x: auto;
 }

.bt-main th{
    border: 1px solid black;
    padding: 2px !important;
}
.bt-main th img{
    height: 1px;
    display:  block;
    visibility: hidden;
}



.bt-main td{
    border: 1px solid silver;
    padding: 2px !important;
}


 .bt-header{
  }

 .bt-header th{
     font-size: 14px;
 }
 
 .bt-header th[sort]{
    background-size: 20px;
    background-position-x: 1px;
    background-position-y: 1px;
    background-repeat: no-repeat;
    cursor: pointer;
    padding-left: 22px !important;
 }

 .bt-header .sort{
    background-image: url('/Design/Ico/sort.png');
 }
 .bt-header .sort-up{
    background-image: url('/Design/Ico/sort-up.png');
 }
 .bt-header .sort-down{
    background-image: url('/Design/Ico/sort-down.png');
 }


 .bt-search{
     padding: 4px 4px 4px 4px;
     text-align: left;
  }

 .bt-search .info{
     display: inline-block;
     border: 1px solid silver;
     border-radius: 8px;
     padding: 0px 8px 0px 8px;
 }
 
 .bt-search input{
     width: 280px;
     display: inline-block;
     border-left: 3px solid silver;
     border-right: 3px solid silver;
     border-top: 0px solid silver;
     border-bottom: 0px solid silver;
     outline: none;
     text-align: center;
     padding: 0px 4px 0px 4px;
     margin: 0px 4px 0px 4px;
  }

 .bt-search .col{
     cursor: pointer;
  }

 .colums-dialog .checkbox-off{
     text-align: left !important;
 }

 .bt-body{
     overflow-y: scroll;
  }
 .bt-body thead{
     visibility: hidden;
     line-height: 0.2 !important;
  }
.bt-body tr:nth-child(even){
    background-color: #F0F0F0;
  }

/******************************************************************/
/*                              select-tree-dialog                */
/******************************************************************/

 .select-tree-dialog {
     width: 100%;
 }
  .select-tree-dialog span{
     display: inline-block;
     min-height: 18px;
     width: 100%;
     cursor: pointer;
 }
