svg.icon {
    width: 1em;
    height: 1em;
}

.loading-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 10;
}

.loading {
    content: '';
    width: 0.7em;
    height: 0.7em;
    display: inline-block;
    border: 0.1em solid transparent;
    border-radius: 50%;
    border-top-color: var(--this-color);
    border-bottom-color: var(--this-color);
    -webkit-animation: huan-rotate 1s cubic-bezier(0.7, 0.1, 0.31, 0.9) infinite;
    animation: huan-rotate 1s cubic-bezier(0.7, 0.1, 0.31, 0.9) infinite;
}

.loading-mask .loading {
    font-size: 2em;
    opacity: 0.5;
}

@-webkit-keyframes huan-rotate {
    0% {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes huan-rotate {
    0% {
        transform: rotate(0);
    }

    to {
        transform: rotate(360deg);
    }
}

.float-right {
    float: right;
}

.container {
    max-width: 100% !important;
    width: 100% !important;
}

.admin-container {
    margin: 20px;
    margin-left: 0;
}

.table-box {
    width: 100%;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.table-box > table {
    min-width: 1300px;
}

.table-box > table * {
    word-wrap: break-word !important;
    transition: 0.3s;
}

.table-box tbody tr:hover,
.table-box thead th:hover {
    background-color: #fbf0f3;
}

tr {
    position: relative;
}

tr .td-edit {
    position: absolute;
    visibility: hidden;
    padding: 5px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 0 10px #ddd;
    transform: translateY(-10px);
    opacity: 0;
    transition: 0.3s;
}

tr .td-edit a {
    padding: 4px 8px;
    background: #edf8ff;
    border-radius: 4px;
    margin: 2px 5px;
    color: #079ef7;
    display: inline-block;
    text-decoration: none;
}

.orderby-but {
    position: relative;
}

.orderby-but > a {
    opacity: 0.4;
    position: absolute;
    transform: translateY(-3px);
    transition: 0.3s;
    padding-right: 1em;
}

.orderby-but > a + a {
    transform: translateY(6px);
}

.orderby-but:hover a {
    opacity: 0.6;
}

.orderby-but > a:hover {
    opacity: 1;
}

.table-box thead th:hover .td-edit,
.table-box tbody tr:hover .td-edit {
    opacity: 1;
    visibility: unset;
}

.order-header {
    margin: 10px 0;
}

.order-header .form-order {
    text-align: right;
}

.pay-container {
    font-size: 14px;
    color: #4e697d;
    line-height: 1.4;
    overflow: hidden;
    margin: 10px 20px 0 2px;
}

.pay-container .row-3 {
    margin: 5px;
    display: inline-block;
    width: calc(25% - 10px);
}

.pay-container .row-6 {
    margin: 5px;
    display: inline-block;
    width: calc(50% - 12px);
}

.pay-container .box-panel {
    padding: 10px 17px;
    min-height: 50px;
    background: #fff;
    border: 1px solid #e6e9ed;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.box-panel .count {
    font-size: 2.4em;
    color: #ff70b7;
}

.box-panel .count_top {
    font-size: 1.2em;
}

.box-panel .count_bottom {
    font-size: 0.9em;
    opacity: 0.8;
}

.highcharts.box-panel {
    padding: 15px 0 0 10px;
}

.highcharts-title {
    font-size: 1.2em;
    margin-bottom: 10px;
    margin-left: 6px;
}

.pay-dashboard-widget .pay-container {
    font-size: 12px;
    margin: -3px;
}

.pay-dashboard-widget .pay-container .row-3 {
    width: calc(50% - 4px);
    margin: 2px;
}

.pay-dashboard-widget .pay-container .row-6 {
    margin: 2px;
    width: calc(100% - 4px);
}

.pay-dashboard-widget .pay-container .box-panel {
    padding: 6px 0 0 8px;
}

.pay-dashboard-widget .highcharts-title {
    margin-top: 6px;
}

.el-button:focus {
    color: var(--el-button-text-color);
    background-color: var(--el-button-bg-color);
}

.el-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.el-form-item__label {
    opacity: 0.5;
}

.overflow-hidden{
    overflow: hidden;
}

.card-box {
    background: #fff;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.card-box .card-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
    margin-top: -5px;
}

.card-box .card-header.flex .box-title ~ * {
    margin-top: -10px;
    margin-bottom: -10px;
}

.card-box.mb10 {
    margin-bottom: 10px;
}

.muted-box,
.text-box {
    white-space: break-spaces;
    background: #fbfbfb;
    border: 1px solid #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    line-height: 1.4;
}

.muted-box {
    white-space: normal;
}

.box-title {
    padding-left: 20px;
    color: #3c9bff;
    text-shadow: 1px 1px 3px rgb(134 198 255 / 53%);
    position: relative;
    line-height: 1.4;
    font-weight: 700;
    font-size: 15px;
}

.box-title::before {
    position: absolute;
    content: '';
    width: 4px;
    background: #3c9bff;
    top: 2px;
    left: 2px;
    bottom: 2px;
    border-radius: 5px;
    box-shadow: 1px 1px 3px -1px #47a3f4;
}
.min-chart-box {
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.todo-box .but {
    padding: 5px 5px 5px 10px;
}

.order-chart-box .header .el-date-editor--daterange {
    max-width: 208px;
}

.order-chart-box .header .el-date-editor--monthrange {
    max-width: 160px;
}

.mini-card-box .val {
    font-size: 1.5em;
}

.text-right {
    text-align: right;
}

.discount-card.muted-box {
    background: rgba(252, 69, 69, 0.03);
    color: #fc4545;
    position: relative;
    padding-top: 25px;
    white-space: normal;
}

.small-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: rgb(255, 243, 243);
    color: #fc4545;
    padding: 4px 8px;
    border-radius: 6px 0 6px 0;
    font-size: 12px;
    line-height: 1;
    transform: scale(0.9);
    transform-origin: left top;
}

.gift-card-info {
    padding: 12px 0 8px;
    border-bottom: 1px dashed #dedede;
}
.gift-name {
    flex-basis: 30%;
}
.el-table .small-badge {
    background: rgb(243 243 243);
}

input.el-input__inner {
    background: 0 0 !important;
    color: var(--el-input-text-color, var(--el-text-color-regular)) !important;
    border: none !important;
    padding: 0;
    line-height: var(--el-input-inner-height);
    min-height: unset;
}

input.el-input__inner:focus {
    border-color: transparent;
    box-shadow: unset;
    outline: 0;
}

.order-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    background: #f6f6f6;
}

.order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-thumb svg{
    opacity: 0;
} 

.el-table .no-border td.el-table__cell {
    border-bottom: none;
}

.el-timeline-item {
    margin-bottom: 0;
}
.el-table .cell {
    line-height: 1.3;
}
.el-radio-group badge {
    margin-top: -5px;
    margin-bottom: -5px;
}

.el-overlay-dialog {
    overflow: hidden;
    display: flex;
}
.el-dialog {
    margin: auto;
}
.el-dialog__header {
    border-bottom: 1px solid rgba(234, 234, 234, 0.6);
    padding-top: 13px;
    margin: 0;
}

.el-dialog__title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.el-dialog__headerbtn {
    top: -1px;
}

.el-dialog__body {
    max-height: 70vh;
    max-height: 70dvh;
    padding: 20px;
    overflow-y: auto;
    -ms-overflow-style: none;
}

.el-drawer__header {
    font-weight: 700;
    padding-bottom: 18px;
    margin-bottom: 5px;
    border-bottom: 1px solid rgba(234, 234, 234, 0.6);
}

.el-form--default.el-form--label-top .el-form-item .el-form-item__label {
    line-height: 1.2;
}

.el-form-item__content {
    line-height: 1.4;
}

.el-date-editor .el-range__icon {
    margin-right: 6px;
}

.el-date-editor .el-range-separator {
    opacity: 0.5;
}

.tooltip-link-box > * {
    margin: 0 -10px;
    padding: 5px 15px;
    display: block;
    color: #535353;
    text-decoration: none;
    line-height: 1.4;
    text-align: center;
}

.tooltip-link-box.flex > * {
    margin: 0;
}

.tooltip-link-box > a:hover {
    background: rgba(116, 185, 232, 0.1);
}

.is-dark .tooltip-link-box > * {
    color: #c1c1c1;
}

.is-dark .tooltip-link-box > a,
.tooltip-link-box > a {
    color: rgb(85, 165, 251);
}

.el-tooltip__trigger:hover {
    background-color: rgba(126, 204, 238, 0.1);
    border-radius: 6px;
}

.el-tag {
    border-color: var(--el-tag-bg-color) !important;
    padding: 0 6px !important;
}

.el-menu.menu-tabs > .el-menu-item {
    font-weight: bold;
}

.el-menu--horizontal > .el-menu-item.is-active {
    border-bottom-width: 3px;
}

.el-date-editor--daterange.el-input__inner {
    width: 220px;
    padding-right: 2px;
}

.el-date-editor--monthrange.el-input__inner {
    width: 180px;
}

.el-date-editor .el-range-separator {
    padding: 0 0;
}

.el-date-range-picker {
    width: 480px;
}

.el-date-range-picker.has-sidebar {
    width: 590px;
}

.el-date-range-picker .el-picker-panel__body {
    min-width: 480px;
}

.el-date-range-picker__content {
    padding: 6px;
}

.el-date-table td {
    height: unset;
    padding: 1px 0;
}

.el-date-table td div {
    height: 24px;
    padding: 0;
}

.el-date-editor.el-input {
    width: 140px;
}

.el-month-table td {
    padding: 2px 0;
}

.el-month-table td div {
    height: unset;
    padding: 2px 0;
}

.el-month-table td .cell {
    width: 50px;
    height: 25px;
    line-height: 25px;
}

/**vue 动画效果**/
.slide-down-leave-active {
    transition: all 0.2s;
}

.slide-down-enter-active {
    transition: all 0.2s;
}

.slide-down-enter-from,
.slide-down-leave-to {
    opacity: 0;
    transform: translateY(10px);
}

.slide-right-leave-active {
    transition: all 0.3s ease-in;
}

.slide-right-enter-active {
    transition: all 0.3s ease-out;
}

.slide-right-enter-from,
.slide-right-leave-to {
    transform: translateX(20px);
    opacity: 0;
}

@media (max-width: 991px) {
    .pay-container .row-3 {
        width: calc(50% - 10px);
    }

    .pay-container .row-6 {
        display: inline-block;
        width: calc(100% - 10px);
    }
}

@media (max-width: 767px) {
    .admin-container {
        margin: 10px;
        margin-left: 0;
    }
    .card-box {
        padding: 12px;
        margin-bottom: 10px;
    }

    .card-box .card-header {
        margin-bottom: 12px;
        padding-bottom: 12px;
        margin-top: 2px;
    }

    .mini-card-box .val {
        font-size: 1.2em;
    }

    .pay-container {
        font-size: 12px;
        margin-left: -2px;
        margin-right: 8px;
    }

    .pay-container .row-3 {
        width: calc(50% - 4px);
        margin: 2px;
    }

    .pay-container .row-6 {
        margin: 2px;
        width: calc(100% - 4px);
    }

    .pay-container .box-panel {
        padding: 6px 0 0 8px;
    }

    .highcharts-title {
        margin-top: 6px;
    }

    .el-pagination {
        position: relative;
        padding-top: 35px;
        justify-content: end;
        width: 100%;
    }

    .el-pagination .el-pagination__total {
        position: absolute;
        left: 4px;
        top: 0;
    }

    .el-pagination .el-pagination__sizes {
        position: absolute;
        right: 0;
        top: 0;
    }

    .el-menu.menu-tabs {
        position: fixed;
        left: 0;
        right: 0;
        bottom: -2px;
        z-index: 100;
        border-radius: 0;
        box-shadow: 0px -5px 10px rgba(92, 92, 92, 0.15);
        height: auto;
        justify-content: space-evenly;
        padding-bottom: constant(safe-area-inset-bottom);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .el-menu.menu-tabs > .el-menu-item {
        height: 50px;
    }

    .el-table .cell .text-ellipsis {
        white-space: normal;
        max-height: 1.3em;
    }

    .el-dialog {
        margin-bottom: -1px;
        border-radius: 16px 16px 0 0;
    }

    @keyframes dialog-fade-in {
        0% {
            transform: translate3d(0, 20px, 0);
            opacity: 0.8;
        }
        100% {
            transform: translate3d(0, 0, 0);
            opacity: 1;
        }
    }
}
