*[hidden="hidden"] {
    display: none !important;
}

.z-row {
    text-rendering: optimizespeed;
    display: flex;
    align-items: stretch;
    flex-flow: row wrap
}

.z-row.gap .z-1,.z-row.gap .z-3,.z-row.gap .z-4,.z-row.gap .z-6,.z-row.gap .z-8,.z-row.gap .z-12,.z-row.gap .z-16,.z-row.gap .z-18,.z-row.gap .z-20,.z-row.gap .z-21,.z-row.gap .z-col {
    padding: .35rem .5rem
}

.z-row>.z-row {
    width: 100%
}

.z-1,.z-3,.z-4,.z-6,.z-8,.z-12,.z-16,.z-18,.z-20,.z-21,.z-col {
    display: inline-block;
    zoom: 1;
    box-sizing: border-box;
    vertical-align: top;
    text-rendering: auto
}

.z-1 {
    flex-grow: 1;
    flex-shrink: 1;
    flex-basis: 0;
    max-width: 100%
}

.z-3 {
    width: 12.5%;
    max-width: 12.5%
}

.z-4 {
    width: 16.6667%;
    max-width: 16.6667%
}

.z-6 {
    width: 25%
}

.z-8 {
    width: 33.3333%
}

.z-12 {
    width: 50%
}

.z-16 {
    width: 66.6667%
}

.z-18 {
    width: 75%
}

.z-20 {
    width: 83.3333%
}

.z-21 {
    width: 87.5%
}

.f-12 {
    font-size: 12px !important;
}

.f-14 {
    font-size: 14px !important;
}

.f-16 {
    font-size: 16px !important;
}

.w-box {
    -webkit-box-sizing: content-box;
    box-sizing: content-box;
    * {
        -webkit-box-sizing: content-box;
        box-sizing: content-box;
    }
}

.w-main {
    position: absolute;
    color: #000000;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    padding: 0;
    margin: 0;

    .w-nav {
        position: fixed;
        left: 0;
        right: 0;
        top: 40px;
        font-size: 14px;
        z-index: 12;
        color: #606266;
        height: 32px;
        line-height: 34px;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.1);

        .nav-row {
            margin: 0 32px;
            display: flex;
            flex-direction: row;
            align-items: center;
            &:before,
            &:after {
                display: table;
                content: "";
            }
            &:after {
                clear: both;
            }
            span {
                margin: 0 12px 0 0;
                cursor: pointer;
                &.active {
                    color: #0285d7;
                    font-weight: 500;
                }
            }
            span + span {
                padding-left: 12px;
                border-left: 1px solid #ccc;
            }
            .icon {
                font-size: 16px;
                margin-right: 2px;
            }
            .w-nav-left {
                white-space: nowrap;
                padding-right: 24px;
            }
            .w-nav-flex {
                flex: 1;
            }
            .w-nav-right {
                margin-top: -2px;
                white-space: nowrap;
                overflow: hidden;
                overflow-x: auto;
                -webkit-backface-visibility: hidden;
                -webkit-overflow-scrolling: touch;
            }
            .nav-sreach {
                .ivu-input-wrapper {
                    margin-top: -2px;
                    width: auto;
                    input {
                        padding: 0 26px 0 6px;
                        font-size: 14px;
                        width: 140px;
                        height: 24px;
                        line-height: 24px;
                        border: none;
                        box-shadow: none;
                        transition: all 0.2s;
                        transform: translateZ(0);
                        &:focus {
                            width: 180px;
                        }
                    }
                    &.substantial {
                        input {
                            width: 180px;
                            background-color: #eeeeee;
                        }
                    }
                    &.showclose {
                        input {
                            padding-right: 48px;
                        }
                    }
                }
                .ivu-input-suffix {
                    display: flex;
                    align-items: center;
                    margin: 0 6px 0 0;
                    width: auto;
                    .nav-sreach-loading {
                        display: flex;
                        align-items: center;
                        margin-right: 6px;
                        .w-loading {
                            width: 12px;
                            height: 12px;
                        }
                    }
                    i {
                        font-size: 16px;
                        &.suffix-close {
                            font-size: 22px;
                        }
                    }
                }
            }
            .page-nav-left {
                display: flex;
                flex-direction: row;
                align-items: center;
                min-width: 138px;
                &:hover {
                    .page-nav-refresh {
                        em {
                            display: block;
                        }
                    }
                }
                > span {
                    margin-right: 8px;
                    &.bold {
                        font-weight: bold;
                    }
                }
                .page-nav-loading {
                    width: 18px;
                    height: 18px;
                    display: flex;
                }
                .page-nav-refresh {
                    min-width: 36px;
                    height: 100%;
                    display: flex;
                    flex-direction: row;
                    align-items: center;
                    em {
                        display: none;
                        padding-left: 4px;
                        padding-right: 4px;
                        color: #048be0;
                        cursor: pointer;
                        &:hover {
                            text-decoration: underline;
                        }
                    }
                }
            }
            @media (max-width: 768px) {
                margin: 0 16px;
                span {
                    margin: 0 8px 0 0;
                }
                span + span {
                    margin: 0;
                    padding-left: 8px;
                }
                .w-nav-left {
                    padding-right: 12px;
                }
                .nav-sreach {
                    .ivu-input-wrapper {
                        input {
                            width: 140px;
                            &:focus {
                                width: 140px;
                            }
                        }
                        &.substantial {
                            input {
                                width: 140px;
                            }
                        }
                    }
                }
            }
        }
    }
}

.w-sreach-main {
    position: fixed;
    top: 76px;
    right: 6px;
    left: 0;
    bottom: 0;
    z-index: 20;

    .w-sreach-box {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
    }

    .sreach-none,
    .sreach-ul {
        background: #ffffff;
        border-radius: 4px;
        box-shadow: 0 1px 6px rgba(0,0,0,.2);
    }

    .sreach-none {
        text-align: center;
        color: #666;
        padding: 16px 32px;
    }

    .sreach-ul {
        width: 480px;
        max-width: 96%;
        max-height: 100%;
        padding: 16px 12px;
        margin: 0 0 6px 0;
        overflow: auto;
        opacity: 0;
        transform: translate(50%, 0);
        transition: all 0.2s;

        &.sreach-enter {
            opacity: 1;
            transform: translate(0, 0);
        }

        > li {
            list-style-type: none;
            padding: 6px 12px;
            margin: 0;

            &.sreach-result {
                font-size: 12px;
                color: #999;
            }

            &:last-child {
                border-bottom: 0;
            }

            .sreach-title {
                font-size: 14px;
                color: #555555;
                font-weight: 400;
                cursor: pointer;
                border-bottom: 1px solid #eeeeee;
                padding-bottom: 6px;

                .sreach-tag {
                    background-color: #cccccc;
                    display: inline-block;
                    padding: 0 3px;
                    color: #ffffff;
                    border-radius: 2px;
                    transform: scale(0.96);
                    font-size: 12px;
                    &.p1 {
                        background: rgba(248, 14, 21, 0.6);
                    }
                    &.p2 {
                        background: rgba(236, 196, 2, 0.5);
                    }
                    &.p3 {
                        background: rgba(0, 159, 227, 0.7);
                    }
                    &.p4 {
                        background: rgba(121, 170, 28, 0.7);
                    }
                    &.overdue {
                        background: #ff0000;
                    }
                }

                &:hover {
                    color: #333333;
                }
            }

            .sreach-text {
                font-size: 13px;
                color: #888888;
                font-weight: 400;
                cursor: pointer;
                padding-top: 4px;

                &:hover {
                    color: #333333;
                }
            }

            > ul {
                padding-top: 3px;
                padding-left: 24px;

                > li {
                    padding: 6px 0;
                    border-bottom: 1px dotted #eeeeee;

                    .sreach-title {
                        font-size: 13px;
                        border-bottom: 0;
                        padding-bottom: 0;
                    }
                }
            }
        }
    }
}

.tableFill {
    .ivu-table {
        table {
            width: 100% !important;
            .ivu-table-cell {
                display: block;
                overflow: hidden;
                white-space: nowrap;
                text-overflow: ellipsis;
                padding-left: 12px;
                padding-right: 12px;
                > div {
                    max-width: 100%;
                    overflow: hidden;
                    white-space: nowrap;
                    text-overflow: ellipsis;
                    vertical-align: middle;
                    .ivu-tooltip-rel {
                        vertical-align: middle;
                    }
                }
            }
        }
        &:before {
            background-color: #efefef;
        }
    }
}
.tableFlex {
    .ivu-table {
        display: flex;
        flex-direction: column;
        .ivu-table-header {
            flex-grow: 0;
            flex-shrink: 0;
        }
        .ivu-table-body {
            overflow-y: auto;
        }
    }
}
.tableSelection {
    .ivu-table {
        .ivu-table-cell {
            padding-left: 12px;
            padding-right: 12px;
            &.ivu-table-cell-with-selection {
                padding-right: 2px;
            }
        }
    }
}
.pageBox {
    text-align: center;
    margin-bottom: 12px;
}
.sreachBox {
    > .item {
        margin-bottom: 8px;
    }
    .item {
        > div {
            display: block;
            float: left;
            padding-right: 10px;
            &:last-child {
                padding-right: 0;
            }
            .ivu-input-wrapper,.ivu-select {
                margin-top: 2px;
            }
            input,.ivu-select-placeholder {
                font-weight: normal;
            }
        }
        .item-1 {
            width: 100%;
        }
        .item-2 {
            width: 50%;
        }
        .item-3 {
            width: 33.33%;
        }
        .item-4 {
            width: 25%;
        }
        .item-5 {
            width: 20%;
        }
        &:after {
            content: '';
            display: block;
            height: 0;
            clear: both;
            visibility: hidden;
        }
    }
    .item-title,
    .item-title-active {
        display: block;
        overflow: hidden;
        text-overflow:ellipsis;
        white-space: nowrap;
        font-weight: 600;
    }
    .item-title-active {
        color: #ff0000;
    }
    .item-button {
        text-align: right;
        margin-top: 10px;
        margin-bottom: 0;
        .ivu-input-wrapper {
            float: none;
            width: 150px;
            display:inline-block;
        }
    }
    .ivu-date-picker {
        width: 100%;
        position: relative;
        vertical-align: middle;
    }
    .item-button {
        .ivu-btn {
            margin-left: 8px;
        }
        .left-btn {
            float: left;
            margin-right: 8px;
            margin-left: 0;
        }
    }
}

.sreach-highlight {
    color: #c00;
}

.drawer-tabs {
    .ivu-tabs-tabpane {
        position: relative;
    }
}

.drawer-box {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    .drawer-content {
        flex: 1;
        width: 100%;
        overflow: auto;
        padding: 16px;
        position: relative;
        transform: translateZ(0);
    }
    .drawer-footer{
        width: 100%;
        border-top: 1px solid #e8e8e8;
        padding: 10px 16px;
        text-align: right;
        background: #fff;
    }
}

.ivu-drawer-body {
    .ivu-tabs-bar {
        padding-right: 32px;
    }
}

.ivu-select-dropdown-max {
    max-height: 300px;
}

.ivu-modal-wrap {
    &.simple-modal {
        .ivu-modal-header,
        .ivu-modal-footer {
            border-color: transparent;
        }
    }
}

.ivu-dropdown-item {
    &.dropdown-active {
        color: #058ce4;
    }
}

.upload-control-spin-icon-load {
    font-size: 18px;
    animation: upload-control-spin-icon-animation 1s linear infinite;
}

@keyframes upload-control-spin-icon-animation {
    from { transform: rotate(0deg);}
    50%  { transform: rotate(180deg);}
    to   { transform: rotate(360deg);}
}

.m768-show,
.m768-show-i,
.m768-show-ib {
    display: none;
}
.m768-hide {
    display: block;
}
.m768-hide-i {
    display: inline;
}
.m768-hide-ib {
    display: inline-block;
}

@media (max-width: 768px) {
    .m768-show {
        display: block;
    }
    .m768-show-i {
        display: inline;
    }
    .m768-show-ib {
        display: inline-block;
    }
    .m768-hide,
    .m768-hide-i,
    .m768-hide-ib {
        display: none;
    }
}
