@import './../../variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
@import './btn.scss';

body {
    height: 100%;
    text-rendering: optimizeLegibility;
    font-family: Arial, Microsoft YaHei, Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, SimSun, sans-serif;
    overflow: hidden;
}

label {
    font-weight: normal;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.no-padding {
    padding: 0px !important;
}

.fs-12 {
    font-size: 12px !important;
}

.fs-13 {
    font-size: 13px !important;
}

.fs-14 {
    font-size: 14px !important;
}

.fs-16 {
    font-size: 16px !important;
}

.fs-18 {
    font-size: 18px !important;
}

.fs-20 {
    font-size: 20px !important;
}

.ellipsis-one {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.padding-content {
    padding: 4px 0;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

ul {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

div:focus {
    outline: none;
}

.fr {
    float: right;
}

.fl {
    float: left;
}

.w-100 {
    width: 100% !important;
}

.w-50 {
    width: 50%;
}

.w-30 {
    width: 30%;
}

.w-100p {
    width: 100px;
}

.w-200p {
    width: 200px;
}

.w-300p {
    width: 300px;
}

.h-36 {
    height: 36px;
}

.pr-5 {
    padding-right: 5px;
}

.pr-30 {
    padding-right: 30px;
}

.info-color {
    color: #909399;
}

.pl-5 {
    padding-left: 5px;
}

.mr-5 {
    margin-right: 5px;
}

.ml-5 {
    margin-left: 5px;
}

.mr-15 {
    margin-right: 15px !important;
}

.mr-10 {
    margin-right: 10px !important;
}

.ml-20 {
    margin-left: 20px;
    margin-right: 20px !important;
}

.mb-20 {
    margin-bottom: 20px !important;
}

.mb-10 {
    margin-bottom: 10px !important;
}

.mb-15 {
    margin-bottom: 15px !important;
}

.ml-15 {
    margin-left: 15px !important;
}

.ml-10 {
    margin-left: 10px !important;
}

.mt-30 {
    margin-top: 30px !important;
}

.mt-10 {
    margin-top: 10px !important;
}

.mt-20 {
    margin-top: 20px !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.cursor-pointer {
    cursor: pointer;
}

.text-right {
    text-align: right;
}

.block {
    display: block;
}

.pointer {
    cursor: pointer;
}

#nprogress .bar {
    background-color: $danger !important;
}

.font-weight {
    font-weight: bold !important;
}

.el-input {
    .el-input__inner {
        border-radius: 2px;
    }
}

.el-input-group__append,
.el-input-group__prepend {
    border-radius: 2px;
}

.el-range-editor.el-input__inner {
    border-radius: 2px;
}

.bb-none {
    border-bottom: 0 !important;
}

.inlineBlock {
    display: block;
}

.danger-color {
    color: $danger;
}

.link-cursor {
    cursor: pointer;
}

.danger-link {
    color: $danger;
    cursor: pointer;

    &:hover {
        text-decoration: underline;
    }
}

.warning-color {
    color: $warning;
}

.success-color {
    color: $success;
}

.primary-color {
    color: #409EFF;
}

.link-span {
    color: $skyBlue;
    cursor: pointer;
    margin-right: 10px;

    &:hover {
        text-decoration: underline;
    }
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

code {
    background: #eef1f6;
    padding: 15px 16px;
    margin-bottom: 20px;
    display: block;
    line-height: 36px;
    font-size: 15px;
    font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;

    a {
        color: #337ab7;
        cursor: pointer;

        &:hover {
            color: rgb(32, 160, 255);
        }
    }
}

.warn-content {
    background: rgba(66, 185, 131, .1);
    border-radius: 2px;
    padding: 16px;
    padding: 1rem;
    line-height: 1.6rem;
    word-spacing: .05rem;

    a {
        color: #42b983;
        font-weight: 600;
    }
}

//main-container全局样式
.app-container {
    padding: 20px;
}

.components-container {
    margin: 30px 50px;
    position: relative;
}

.pagination-container {
    margin-top: 30px;
}

.text-center {
    text-align: center
}

.sub-navbar {
    height: 50px;
    line-height: 50px;
    position: relative;
    width: 100%;
    text-align: right;
    padding-right: 20px;
    transition: 600ms ease position;
    background: linear-gradient(90deg, rgba(32, 182, 249, 1) 0%, rgba(32, 182, 249, 1) 0%, rgba(33, 120, 241, 1) 100%, rgba(33, 120, 241, 1) 100%);

    .subtitle {
        font-size: 20px;
        color: #fff;
    }

    &.draft {
        background: #d0d0d0;
    }

    &.deleted {
        background: #d0d0d0;
    }
}

.link-type,
.link-type:focus {
    color: #337ab7;
    cursor: pointer;

    &:hover {
        color: rgb(32, 160, 255);
    }
}

.filter-container {
    padding-bottom: 10px;

    .filter-item {
        display: inline-block;
        vertical-align: middle;
        margin-bottom: 10px;
    }
}

//refine vue-multiselect plugin
.multiselect {
    line-height: 16px;
}

.multiselect--active {
    z-index: 1000 !important;
}

.transition-3 {
    transition: .3s ease all;
}


.el-input__inner {
    border-radius: 4px;
}

.el-textarea__inner {
    border-radius: 2px;
}

.flex-center {
    display: flex;
    align-items: center;
}

.el-dialog {
    border-radius: 4px;

    .el-dialog__header {
        height: 50px;
        display: flex;
        align-items: center;
        padding: 0 0 0 20px;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        border-bottom: 1px solid #dedede;

        .dialog-full-btn {
            position: absolute;
            right: 50px;
            top: 12px;
            cursor: pointer;

            &:hover {
                i {
                    color: $danger;
                }
            }

            i {
                font-size: 20px;
                color: $info;
            }
        }

        .el-dialog__headerbtn {
            top: 10px;
            right: 10px;
            font-size: 24px;
            font-weight: bold;
        }
    }

    .el-dialog__footer {
        padding: 30px 0 0 0;
        text-align: center;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;

        .dialog-footer {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 60px;
            width: 100%;
            border-top: 1px solid #dedede;
            box-sizing: border-box;

            &>.el-button {
                margin-right: 10px;

                &:last-child {
                    margin-right: 0;
                }
            }
        }
    }
}

.el-dialog__wrapper {
    padding-bottom: 20px;

    .el-full-dialog {
        transition: .3s ease all;
        width: 100% !important;
        height: 100% !important;
        margin-top: 0 !important;
        top: 0 !important;
        left: 0 !important;
    }
}

.edit-order-dialog {
    .el-dialog__body {
        padding: 10px 20px 20px 20px;
    }

    .order-edit-right {
        display: flex;
        justify-content: space-between;

        .el-form-item {
            width: 48%;
        }

        .info-item {
            width: 48%;
        }
    }

    .info-item {
        line-height: 30px;

        .top-title {
            color: $info;
        }

        .sub-value {
            color: $mainFontColor;
            // word-break: break-all;
            padding-right: 10px;
            height: 30px;
            line-height: 30px;
        }
    }
}

.el-table {
    th {
        padding: 0 !important;
        background-color: $lightBackground !important;
        color: $mainFontColor;
        font-weight: normal;
        //border-right-color: #5a6082;
        height: 40px !important;
        @include ellipsis-one;
        box-sizing: border-box;
        font-size: 13px;

        .cell {
            height: 40px;
            display: flex;
            align-items: center;

            &>div {
                padding: 0;
            }
        }
    }

    .el-table__empty-block {
        .el-table__empty-text {
            line-height: 24px;
        }

        .nodata {
            font-size: 80px;
        }
    }
}

.el-loading-mask {
    z-index: 1800;
}

.el-form-item {
    margin-bottom: 20px;

    // margin-right: 30px;
    &.manage {
        width: 160px;

        .el-form-item__content {
            width: 180px;
            position: relative;

            .order-ipt {

                // position: absolute;
                .el-textarea__inner {
                    transition: 0.3s ease all;
                }
            }
        }
    }
}

.select-w100 {
    width: 100px !important;
}

.select-w120 {
    width: 120px !important;

}

.select-w160 {
    width: 160px !important;
}

.order-type {
    margin-right: -6px !important;
}

.title-status {
    font-size: 12px;
    color: #fff;
    background: #1890ff;
    padding: 2px 10px;
    border-radius: 2px;
    vertical-align: middle;

    &.red {
        background: #ff4949;
    }
}

.el-dialog__body {
    padding: 20px 30px;
}

.el-dialog .el-dialog__footer {
    padding: 0;
}

.full-width {
    width: 100% !important;
}

.el-message {
    min-width: 80px;
    z-index: 9999 !important;
}

.el-input-number .el-input__inner {
    text-align: left;
}

/* 表格样式调整*/
.custom-theme .el-table--striped .el-table__body tr.el-table__row--striped td {
    background-color: #f5f7fa;
}

.el-table--striped .el-table__body tr.el-table__row--striped td {
    background-color: #f5f7fa;
}

.el-table__body tr.current-row>td,
.el-table--striped .el-table__body tr.el-table__row--striped.current-row td {
    background-color: #bddaf5;
}

.el-table--enable-row-transition .el-table__body td {
    -webkit-transition: background-color .1s ease;
    transition: background-color .1s ease;
}

.el-table--small th,
.el-table--small td {
    padding: 5px 0;
}

.el-table th .cell {
    font-weight: 600;
    line-height: 40px;
}

.el-table--striped .el-table__body tr.el-table__row--striped.selected-row td {
    background-color: #bddaf5;
}

.el-table tr.selected-row {
    background-color: #bddaf5;
}

/*按钮样式*/
.el-button.is-round {
    border-radius: 5px;
}

.iconfont.btn-icon {
    font-size: 12px;
    margin-right: 3px;
}

.iconfont.handle-icon {
    margin-right: 5px;
    font-size: 13px;
    color: #F56C6C;
}

[class^=el-icon-].handle-icon {
    margin-right: 5px;
    font-size: 13px;
    color: #F56C6C;
}

.my-el-custom-spinner {
    background: url(../../assets/images/j-loading.gif) no-repeat;
    background-size: 100% 100%;
    width: 180px;
    height: 120px;
    display: inline-block;
}

.el-loading-spinner .el-loading-text {
    color: rgb(238, 69, 97);
}

.el-dialog__wrapper {
    background-color: rgba(255, 255, 255, 0.3) !important;
}

.el-table__body-wrapper::-webkit-scrollbar {
    height: 8px; // 纵向滚动条 必写
    width: 8px;
}

.el-table__body-wrapper::-webkit-scrollbar-thumb {
    background-color: #999;
    border-radius: 5px;
}

.el-yl-checkbox {
    height: 34px;
}

.el-pager li.active {
    border-radius: 2px;
    border: 1px solid;
}

.el-dropdown-menu--small .el-dropdown-menu__item {
    line-height: 30px;
}

.el-form-item--mini.el-form-item,
.el-form-item--small.el-form-item {
    margin-bottom: 16px !important;
}

.yl-table-wrap {
    .table-handle-area {
        padding: 0 0 15px 0;
    }

    .search-form {
        padding-top: 10px;
        border-radius: 4px;
        border: 1px solid $border;
        margin-bottom: 10px;
        box-shadow: 0 1px 1px rgba(0, 0, 0, .05), 0 2px 6px 0 rgba(0, 0, 0, .045);

        .title-area {
            height: 30px;
            background-color: $lightBackground;
            color: $mainFontColor;
            line-height: 30px;
            font-size: 13px;
            padding: 0 10px;
            border-bottom: 1px solid $border;
        }

        .el-row {
            padding: 5px 10px 0 10px;
        }

        .el-col-24 {
            .el-form-item {
                margin-bottom: 10px !important;
            }

            .el-date-editor--daterange {
                border: 0;
                border-bottom: 1px solid $border;
                font-size: 14px;
            }
        }
    }

    .table-handle-area {
        padding-top: 0;

        .type-select {
            width: 100px;

            .el-input__inner {
                border-right: 0;
                border-radius: 0;
                border-color: $border !important;
                background-color: $lightBackground;
            }
        }
    }

}

.el-scrollbar__wrap {
    margin-bottom: -15px !important;
}

@include screen-1440 {
    #order-entry-wrap .el-form .el-form-item--small.el-form-item {
        margin-bottom: 25px;
    }
}

.table-btn {
    padding: 0;
}

.center-div {
    display: flex;
    align-items: center;

    a:hover {
        text-decoration: none !important;
    }
}
