@iconDayin: #45ACF7;
@iconDaochu: #00B38A;
@iconBorder: 1px solid #D9D9D9;
@btnHeight: 26px;
@hoverBackground: #E3FEF9;
@fontColorGrey: #333;
@fontColorGrey2: #666666;
@fontColorGrey3: #999999;
@gridBorder: 1px solid #D9D9D9;
@gridBorderColor: #D9D9D9;
@moneyBoder1: 1px solid #D7D7D7;
@montyBoder2: 1px solid #7ABCFF;
@montyBoder3: 1px solid #FA6B6B;
@accountSelectItemColor: #515151;
@accountAddBackground: #F5F5F5;
@accountAddFontColor: #00B38A;
.ttk-voucher-app-document {
    width: 100%;
    height: 100%;
    padding: 0 10px 10px 0;
    background: transparent !important;
    h1, h2, h3, h4, h5, h6 {
        color: #666666;
        font-weight: 400;
    }

    .mkicon {
        font-size: 22px;
    }
    .accountQuantityEdit{
        padding: 13px;
        font-size: 12px;
    }

    .mk-datagrid-cellContent{
        overflow-y: auto;
        word-break: break-all;
        white-space: pre-wrap;
    }

    // .ant-popover-open {
    //   width: 100%;
    //   height: 100%;
    //   padding-top: 5px;
    //   padding-left: 8px;
    // }

    .summaryleft{
        justify-content: flex-start !important;
        font-size: 12px;
        color: #333333;
        letter-spacing: 0.45px;
    }

    &-audited-icon {
      position: absolute;
      display: block;
      top: 200px;
      left: 400px;
      width: 138px;
      height: 80px;
    }

    .accountQuantity {
      overflow: auto;
      padding: 3px 6px;
      width: 100%;
      height: 100%;

      span {
        height: 15px;
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
    }
    &-showCell {
      padding-right: 50px!important;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
    &-cell-left {
        padding-left: 8px;
        justify-content: flex-start;
    }
    &-cell-right {
        padding-right: 8px;
        justify-content: flex-end;
    }
    &-cell {
        width: 100%;
        height: 100%;
        display: flex;
        // justify-content: center;
        // align-items: left;
        text-align: right;
        &>div {
            width: 100%;
            height: 100%;
            input {
                height: 100%;
            }
        }
        .ant-select-selection {
            height: 100%;
        }
        .ant-select-selection__rendered {
            height: 100%;
        }
        .ant-select-selection-selected-value {
            line-height: 60px;
        }
    }
    &-cell-disabled {
        cursor: not-allowed;
    }
    .ant-tabs-bar {
        margin-bottom: 0px;
    }

    .mk-datagrid-cellContent label {
        font-size:14px;
    }
    .mk-datagrid {
        // height: 410px;
        // flex: initial;

        .ant-select{
          overflow-y: hidden !important;
        }
    }
    .mk-datagrid{
        .fixedDataTableRowLayout_rowWrapper:hover{
            .public_fixedDataTableRow_highlighted, .fixedDataTableCellGroupLayout_cellGroup{
                background: #fff;
            }
            .public_fixedDataTableCell_main {
                background-color: @item-hover-bg !important;
            }
        }
    }
    .mk-datagrid .public_fixedDataTableCell_main {
        background-color: #fff !important;
        border-color: @gridBorderColor !important;
        font-size: 12px;
        .ant-input, .ant-select-selection {
            border-radius: 0;
        }
    }
    .mk-datagrid .fixedDataTableCellGroupLayout_cellGroupWrapper:first-child .public_fixedDataTableCell_main {
        border: 0 !important;
    }
    .mk-datagrid .public_fixedDataTable_header, .mk-datagrid .public_fixedDataTable_header .public_fixedDataTableCell_main {
        background-image: linear-gradient(#F6F7F8, #F6F7F8) !important;
        color:#333333;
    }
    .mk-datagrid border {
        border-color: @gridBorderColor;
    }
    .fixedDataTableLayout_footer .public_fixedDataTableCell_main {
        border-top-width: 0px;
    }
    .public_fixedDataTable_main {
        border-left: @gridBorder;
        border-right: @gridBorder;
    }
    .fixedDataTableLayout_rowsContainer>div:nth-child(2) .fixedDataTableCellGroupLayout_cellGroupWrapper {
        background-color: #f8f8f8;
    }

    .fixedDataTableLayout_rowsContainer>div:nth-child(2) {
        border-top: @gridBorder;
        border-bottom: @gridBorder;
        border-right: @gridBorder;
    }

    .fixedDataTableLayout_rowsContainer>div:nth-child(4) {
        border-top: @gridBorder;
        border-bottom: @gridBorder;
        border-right: @gridBorder;
    }

    .fixedDataTableLayout_rowsContainer>div:nth-child(3) {
        .public_fixedDataTableCell_main{
            border-top: 1px solid @gridBorderColor;
        }
    }

    // .fixedDataTableLayout_rowsContainer>div:nth-child(3)>div:nth-child(1) {
    //     .public_fixedDataTableCell_main{
    //         border-top: none;
    //     }
    // }

    .public_fixedDataTableCell_main {
        border-bottom: 0;
    }

    .public_Scrollbar_main.ScrollbarLayout_mainVertical {
        width: 17px;
        border-right: @gridBorder;
        border-left: @gridBorder;
        right: -2px;
    }
    .public_fixedDataTable_horizontalScrollbar {
        height: 17px !important;
        background: #fff;
    }
    div.mk-datagrid-cellContent {
        margin-left: 0;
        padding-left: 8px;
        > div {
            text-overflow: ellipsis;
            overflow: hidden;
        }
    }
    &-money-cell-header {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        label {
            font-size: 14px;
        }
        &-top {
            flex: 1;
            display: flex;
            flex-direction: row;
            justify-content: center;
            padding-bottom: 2px;
            align-items: center;
            color: #333333;
        }
        &-bottom {
            flex: 1;
            display: flex;
            flex-direction: row;
            justify-content: space-around;
            border-top: @gridBorder;
            // &>div {
            //     flex: 1;
            //     display: flex;
            //     flex-direction: row;
            //     justify-content: center;
            //     align-items: center;
            //     border-top: #797979 1px solid;
            //     border-right: #eee 1px solid;
            // }
            // &>div:nth-child(1) {
            //     border-right-color: #A5D9F6
            // }
            // &>div:nth-child(4) {
            //     border-right-color: #A5D9F6
            // }
            // &>div:nth-child(7) {
            //     border-right-color: #A5D9F6
            // }
            // &>div:nth-child(10) {
            //     border-right-color: #EEB9B9
            // }
            // &>div:last-child {
            //     border-right-width: 0px;
            // }
        }
    }
    &-money-cell {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        &>div {
            flex: 1;
            display: flex;
            flex-direction: row;
            justify-content: center;
            align-items: center;
            border-top: #eee 1px solid;
            border-right: #eee 1px solid;
            font-weight: bold;
            font-size: large;
        }
        &>div:nth-child(1) {
            border-right: @montyBoder2;
        }
        &>div:nth-child(4) {
            border-right: @montyBoder2;
        }
        &>div:nth-child(7) {
            border-right: @montyBoder2;
        }
        &>div:nth-child(10) {
            border-right: @montyBoder3;
        }
        &>div:last-child {
            border-right-width: 0px;
        }
    }
    //.public_fixedDataTable_footer .fixedDataTableCellLayout_wrap3:nth-child(1) {
        //border-right-width: 0px;
        //font-weight: bold;
        //font-size: large;
        //line-height: 47px;
    //}
    .public_fixedDataTable_footer .public_fixedDataTableCell_main:nth-child(1) {
        border-right-width: 0px;
        font-weight: bold;
        font-size: 14px;
        line-height: 60px;
    }
    &-header {
        flex-direction: row;
        height: 32px;
        flex: 0 0 32px;
        overflow: hidden;
        margin-bottom: 10px;
        &-left {
            flex-direction: row;
            align-items: center;
            overflow: hidden;
            &>.mk-btn {
                margin-right: 8px;
            }
            &-useCommon, &-more{
                span{
                    display: table-cell;
                    vertical-align: middle;
                }
                .anticon{
                    margin-left: 0;
                    font-size: 20px;
                    display: table-cell;
                }
            }
            img{
                zoom: 50%;
                padding: 0 8px 0 8px;
            }
            &-dayin {
                font-size: 26px;
                color: @iconDayin;
                display: block;
                width: 30px;
                height: 26px;
                text-align: center;
                box-sizing: border-box;
                background: #FFFFFF;
                border: @iconBorder;
                border-radius: 2px;
                margin-right: 8px;
                cursor: pointer;
            }
        }
        &-right {
            flex-direction: row;
            justify-content: flex-end;
            align-items: center;
            overflow: hidden;
            .mk-btn {
                margin-left: 8px
            }
            .page-prev-next {
                margin-left: 8px;
                button:first-child{
                    margin-right: 8px;
                }
                button{
                    border-radius: 5px !important;
                }
            }

            &-iconbutton {
                padding: 0 4px !important;
                font-size: 45px !important;
                color: @primary-color;
            }
        }
    }
    &-title {
        flex: 0 0 auto;
        flex-direction: row;
        justify-content: space-between;
        background: #fff;
        padding: 10px 25px 0 25px;
        border: @iconBorder ;
        border-bottom: none;
        overflow: hidden;
        h1 {
            font-size: 18px;
            color: #333333;
        }
        &-left {
            flex: 0 0 200px;
            flex-direction: row;
            justify-content: flex-start;
            align-items: center;
            /*
            &-tag {
                border: 1px solid red;
                padding: 4px 8px;
                font-style: italic;
                font-weight: bold;
                color: red;
                position: absolute;
                display: block;
                top: 200px;
                left: 400px;
                width: 138px;
                height: 80px;

            }*/
        }
        &-center{
            font-family:MicrosoftYaHei;
        }
        &-right {
            flex: 0 0 200px;
            flex-direction: row;
            justify-content: flex-end;
            /*align-items: center;*/
            padding-right: 200px;

            &-tag {
                transform: scale(0.5);
                overflow: hidden;
                position: absolute;
                margin-top: -15px;
                right: 233px;
            }

        }
    }
    &-form-header {
        background: #fff;
        flex: 0 0 auto;
        flex-direction: row;
        padding: 0 25px 8px;
        border-right: @iconBorder ;
        border-left: @iconBorder ;
        .ant-input {
            height: 30px;
            color: @fontColorGrey2;
            font-size: 12px;
        }
        &-titleshow{
            // text-indent: 153px;
            font-size: 12px;
            color: #999999;
            position: absolute;
            left: 50%;
            overflow: visible;
            span{
                position: relative;
                left: -58%;
            }
        }
        &-code {
            flex-direction: row;
            align-items: center;
            flex: 0 0 130px;
            font-size: 12px;
            color: @fontColorGrey;
            .mk-input {
                width: 60px;
                margin: 0px 4px;
                text-align: right;
                color: @fontColorGrey2;
                font-size: 12px;
            }
        }
        &-date {
            flex-direction: row;
            align-items: center;
            flex: 1;
            font-size: 12px;
            color: @fontColorGrey;
            .mk-datepicker {
                margin: 0px 4px;
                width: 110px;
            }
        }
        &-attachment {
            flex-direction: row;
            align-items: center;
            flex: 0 0 300px;
            justify-content: flex-end;
            font-size: 12px;
            color: @fontColorGrey;
            .mk-input-number {
                width: 60px;
                margin: 0px 8px;
                font-size: 12px;
                color: @fontColorGrey2;
                text-align: right;
            }
            // a {
            //     margin: 0px 0px 0px 20px;
            // }
        }
    }
    &-form-details {
        background: #fff;
        // flex: initial;
        // height: 410px;
        border-right: @iconBorder ;
        border-left: @iconBorder ;
        &.ttk-voucher-app-document-form-details-audited{
           .fixedDataTableLayout_main{
               overflow: hidden;
           }
        }
        &-account{
            font-size: 14px;
            height: 45px;
            color: @accountSelectItemColor;
            line-height: 35px;
            //&:hover{
                //color: @primary-color;
            //}
        }
        &-account-add{
            height: 50px;
            line-height: 40px;
            font-size: 16px;
            color: @accountSelectItemColor;
            background: @accountAddBackground;
            border: none;
            &:hover{
                color: @link-color;
                border: none;
                // span{
                //     text-decoration: underline;
                // }
            }
            &-icon{
                font-size: 25px;
                /*display: inline-block;
                vertical-align: middle;*/
            }
            i{
                vertical-align: middle;
            }
            span{
                display: inline-block;
                vertical-align: middle;
            }
        }
        .ttk-voucher-app-document-money-cell-header-top{
            font-size: 12px !important;
            color: @fontColorGrey;
            font-weight: bold;
        }

        .ttk-voucher-app-document-money-cell > div{
            border-top: 0;
        }
        &-label{
            font-size: 12px !important;
            color: @fontColorGrey;
            font-weight: bold;
        }
        &-accountingSubject {
            .ant-select-search--inline {
                width: 85%
            }
            a {
                height: 100%;
                line-height: 22px;
            }
        }

        .total-footer {
            padding-left: 10px;
            width: 500px;
            display: block;
        }
        .ant-input{
          font-size: large;
          font-weight: bold;
        }
    }
    &-footer {
        padding: 10px 20px 10px 25px;
        height: 70px;
        line-height: 70px;
        flex: 0 0 auto;
        flex-direction: row;
        background: #fff;
        border: @iconBorder;
        border-top: none;
        h3 {
            font-size: 14px;
        }
        &-left {
            flex-direction: row;
            align-items: stretch;
            overflow: hidden;
            h3{
                line-height: 30px;
                font-size: 12px;
                color: @fontColorGrey3;
            }
            &>.mk-btn {
                margin-left: 10px;
            }
        }
        &-right {
            flex-direction: row;
            justify-content: flex-end;
            align-items: center;
            overflow: hidden;
            .mk-btn {
                margin-left: 10px
            }
        }
    }

      .moneyColumn {  //借方金额 , 及分隔线的颜色
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 22px;
        color: #999999;
      }

      .columnRed {
        border-right: 1px solid #eeb9b9;
        color: #999999;
      }

      .columnBlue {
        border-right: 1px solid #a5d9f6;
        color: #999999;
      }

      .columnGrey {
        border-right: 1px solid #e6e6e6;
        color: #999999;
      }

      .columnLast {
        border: none;
        color: #999999;
      }

      .columnRedNegative {//贷方金额 , 及分隔线的颜色
        border-right: 1px solid #eeb9b9;
        color: red;
      }

      .columnBlueNegative {
        border-right: 1px solid #a5d9f6;
        color: red;
      }

      .columnGreyNegative {
        border-right: 1px solid #e6e6e6;
        color: red;
      }

      .columnLastNegative {
        border: none;
        color: red;
      }
      .columnNegative{
        color: red;
      }
}
// .ant-dropdown {
//     .ttk-voucher-app-document-header-left-useCommon {
//         border-radius: 0;
//         li{
//             &:hover{
//                 color: @primary-color;
//                 background: @hoverBackground;
//             }
//         }
//     }
// }
.ttk-voucher-app-document-header-right-jianpan{
    top: 131.5px !important;
}

.summary-select {
    .ant-select-dropdown-menu{
      z-index: 0;
    }
}


.Popover-ttk-voucher-app-document{
    top: 127px !important;
    &-useCommon{
        width: 86px;
        height: auto;
        left: -35px;
        overflow: hidden;
        .common{
            width: 100%;
            height: 36px;
            text-align: center;
            line-height: 26px;
            font-size: 12px;
            line-height: 34px;
            &:hover{
                background: tint(@primary-color, 90%);
				cursor: pointer;
            }
        }
    }
}

.print-modal-container{
    .ant-modal-body{
        padding: 0;
    }
    .mk-app-proof-of-list-sort{
        padding: 10px 15px;
    }
}
