:root {
    --client-header-height: 56px;
    --client-sidebar-width: 218px;
    --client-sidebar-collapse-width: 218px;
    --client-bg: #f4f6fb;
    --client-panel: #ffffff;
    --client-ink: #1f2329;
    --client-muted: #5f6b7a;
    --client-subtle: #8a94a6;
    --client-line: #e4e9f2;
    --client-line-strong: #d7dfeb;
    --client-primary: #006eff;
    --client-primary-dark: #0052d9;
    --client-primary-light: #eef5ff;
    --client-primary-soft: #f5f9ff;
    --client-header-bg: #ffffff;
    --client-header-hover: #f4f7fb;
    --client-sidebar-bg: #ffffff;
    --client-sidebar-hover: #f4f7fc;
    --client-sidebar-active: #eef5ff;
    --el-color-primary: #006eff;
    --el-color-primary-light-3: #3d91ff;
    --el-color-primary-light-5: #7ab4ff;
    --el-color-primary-light-7: #b8d7ff;
    --el-color-primary-light-8: #d1e5ff;
    --el-color-primary-light-9: #eef5ff;
    --el-color-primary-dark-2: #0052d9;
    --el-border-radius-base: 2px;
    --el-border-radius-small: 2px;
    --el-font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100vh;
    margin: 0;
}

body {
    color: var(--client-ink);
    font-family: var(--el-font-family);
    font-size: 14px;
    background: var(--client-bg);
}

button,
a {
    font: inherit;
}

a {
    color: var(--client-primary);
}

#client_center {
    min-height: 100vh;
}

.client-layout,
.client-layout.is-sidebar-collapse {
    min-height: 100vh;
    padding-top: var(--client-header-height);
    padding-left: var(--client-sidebar-width);
}

.client-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    height: var(--client-header-height);
    padding: 0 18px 0 18px;
    color: #1f2329;
    background: var(--client-header-bg);
    border-bottom: 1px solid #e5e8ef;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .04);
}

.client-brand,
.client-layout.is-sidebar-collapse .client-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 199px;
    height: 100%;
    padding-right: 16px;
    border-right: 1px solid #edf1f7;
    flex: 0 0 auto;
}

.client-layout.is-sidebar-collapse .client-brand-text {
    display: block;
}

.client-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 3px;
    color: #fff;
    text-decoration: none;
    background: linear-gradient(135deg, #006eff 0%, #0a86ff 100%);
    box-shadow: 0 4px 10px rgba(0, 110, 255, .18);
}

.client-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 15px;
    line-height: 1;
    font-weight: 700;
}

.client-brand-title {
    color: #1f2329;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0;
}

.client-brand-sub {
    margin-top: 4px;
    color: #86909c;
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
}

.client-top-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    min-width: 0;
    height: 100%;
    margin-left: 10px;
    overflow: hidden;
}

.client-top-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: var(--client-header-height);
    padding: 0 15px;
    color: #4e5969;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.client-top-nav a:hover,
.client-top-nav a:focus,
.client-top-nav a.is-active {
    color: var(--client-primary);
    background: var(--client-header-hover);
}

.client-top-nav a.is-active {
    border-bottom-color: var(--client-primary);
    font-weight: 500;
}

.client-top-nav .el-icon {
    color: #6b778a;
    font-size: 17px;
}

.client-top-nav a.is-active .el-icon,
.client-top-nav a:hover .el-icon {
    color: var(--client-primary);
}

.client-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.client-header-action,
.client-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 0;
    height: 32px;
    padding: 0 10px;
    border: 1px solid #d8dee8;
    border-radius: 2px;
    color: #4e5969;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}

.client-header-action:hover,
.client-header-icon:hover {
    color: var(--client-primary);
    background: var(--client-header-hover);
    border-color: #b8d7ff;
}

.client-header-action .el-icon,
.client-header-icon .el-icon {
    font-size: 16px;
}

.client-user {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 36px;
    padding: 0 7px 0 11px;
    border: 1px solid #d8dee8;
    border-radius: 2px;
    background: #fff;
    outline: none;
    cursor: pointer;
}

.client-user:hover {
    background: var(--client-header-hover);
    border-color: #b8d7ff;
}

.client-user-meta {
    min-width: 0;
    text-align: right;
}

.client-user-name {
    color: #1f2329;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.client-user-balance {
    margin-top: 3px;
    color: #6b778a;
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}

.client-user-sub,
.client-user-arrow {
    display: none;
}

.client-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: #006eff;
    font-size: 18px;
    background: #edf5ff;
    border: 1px solid #d1e5ff;
}

.client-mobile-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #d8dee8;
    border-radius: 2px;
    color: #4e5969;
    background: #fff;
    cursor: pointer;
}

.client-mobile-btn:hover {
    color: var(--client-primary);
    border-color: #b8d7ff;
    background: var(--client-header-hover);
}

.client-sidebar,
.client-layout.is-sidebar-collapse .client-sidebar {
    position: fixed;
    top: var(--client-header-height);
    bottom: 0;
    left: 0;
    z-index: 999;
    width: var(--client-sidebar-width);
    padding: 10px 0 16px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #3f4856;
    background: var(--client-sidebar-bg);
    border-right: 1px solid var(--client-line);
    box-shadow: 2px 0 8px rgba(15, 23, 42, .04);
}

.client-sidebar::-webkit-scrollbar {
    width: 8px;
}

.client-sidebar::-webkit-scrollbar-thumb {
    background: #d7dfeb;
}

.client-side-menu {
    border-right: 0 !important;
    background: transparent !important;
}

.client-side-menu.el-menu--collapse {
    width: 100%;
}

.client-side-menu .el-menu-item,
.client-side-menu .el-sub-menu__title {
    position: relative;
    height: 49px;
    margin: 0;
    padding: 0 20px !important;
    border-radius: 0;
    color: #2f3540 !important;
    font-size: 15px;
    font-weight: 500;
    background: transparent !important;
    transition: color .16s ease, background .16s ease;
}

.client-side-menu .el-menu-item::before,
.client-side-menu .el-sub-menu__title::before {
    display: none;
}

.client-side-menu .el-menu-item:hover,
.client-side-menu .el-sub-menu__title:hover {
    color: var(--client-primary) !important;
    background: #f5f8ff !important;
}

.client-side-menu .el-menu-item.is-active {
    color: #fff !important;
    background: var(--client-primary-dark) !important;
    font-weight: 600;
}

.client-side-menu .el-menu-item.is-active::before {
    display: none;
}

.client-side-menu .el-sub-menu.is-active > .el-sub-menu__title {
    color: var(--client-primary) !important;
}

.client-side-menu .el-sub-menu .el-menu-item {
    min-width: 0;
    height: 44px;
    padding-left: 52px !important;
    color: #566273 !important;
    font-size: 14px;
    font-weight: 400;
}

.client-side-menu .el-sub-menu .el-menu-item.is-active {
    color: #fff !important;
    background: var(--client-primary-dark) !important;
    font-weight: 600;
}

.client-side-menu .el-sub-menu__icon-arrow {
    color: #9aa6b8;
}

.client-nav-icon {
    min-width: 20px;
    margin-right: 12px;
    color: currentColor;
    font-size: 19px;
}

.client-nav-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-side-popper {
    border: 1px solid var(--client-line-strong) !important;
    border-radius: 2px !important;
    box-shadow: 0 8px 18px rgba(31, 35, 41, .12) !important;
    overflow: hidden;
}

.client-main {
    min-height: calc(100vh - var(--client-header-height));
    padding: 16px;
    background: var(--client-bg);
}

.client-page-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 34px;
    margin-bottom: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.client-page-kicker {
    display: none;
}

.client-page-title {
    margin: 0;
    color: var(--client-ink);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 600;
}

.client-breadcrumb {
    flex: 0 0 auto;
}

.client-breadcrumb .el-breadcrumb__inner,
.client-breadcrumb .el-breadcrumb__separator {
    color: var(--client-subtle);
    font-size: 12px;
    font-weight: 400;
}

.client-breadcrumb-node {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.client-content-card {
    min-height: calc(100vh - 134px);
}

.client-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 12px 2px 0;
    color: #9aa6b8;
    font-size: 12px;
}

.client-mobile-mask {
    display: none;
}

.el-button {
    font-weight: 400;
}

.el-button--primary {
    --el-button-bg-color: var(--client-primary);
    --el-button-border-color: var(--client-primary);
    --el-button-hover-bg-color: #2684ff;
    --el-button-hover-border-color: #2684ff;
    --el-button-active-bg-color: var(--client-primary-dark);
    --el-button-active-border-color: var(--client-primary-dark);
}

.el-button--primary.is-plain {
    --el-button-bg-color: var(--client-primary-light);
    --el-button-border-color: #b8d7ff;
    --el-button-text-color: var(--client-primary-dark);
}

.el-button.is-link {
    --el-button-text-color: var(--client-primary);
    --el-button-hover-link-text-color: var(--client-primary-dark);
}

.el-input__wrapper,
.el-select__wrapper,
.el-textarea__inner,
.el-input-number,
.el-input-number .el-input__wrapper {
    border-radius: 2px !important;
    box-shadow: 0 0 0 1px var(--client-line-strong) inset !important;
}

.el-input__wrapper:hover,
.el-select__wrapper:hover,
.el-textarea__inner:hover {
    box-shadow: 0 0 0 1px #bcc8d8 inset !important;
}

.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused,
.el-textarea__inner:focus {
    box-shadow: 0 0 0 1px var(--client-primary) inset !important;
}

.el-table {
    --el-table-header-bg-color: #f6f8fb;
    --el-table-header-text-color: #3f4856;
    --el-table-border-color: #edf1f6;
    --el-table-row-hover-bg-color: #f5f9ff;
    color: var(--client-ink);
    font-size: 13px;
}

.el-table th.el-table__cell {
    font-weight: 600;
}

.el-table .cell {
    line-height: 1.5;
}

.el-pagination.is-background .el-pager li.is-active {
    background-color: var(--client-primary);
}

.el-dialog {
    border-radius: 2px;
}

.el-dialog__header {
    margin-right: 0;
    padding: 16px 20px 12px;
    border-bottom: 1px solid var(--client-line);
}

.el-dialog__title {
    color: var(--client-ink);
    font-size: 16px;
    font-weight: 600;
}

.el-dialog__body {
    padding: 18px 20px;
}

.el-dialog__footer {
    padding: 12px 20px 16px;
    border-top: 1px solid var(--client-line);
}

.el-tag {
    border-radius: 2px;
}

@media (max-width: 1024px) {
    .client-mobile-btn {
        display: inline-flex;
    }

    .client-layout,
    .client-layout.is-sidebar-collapse {
        padding-left: 0;
    }

    .client-brand,
    .client-layout.is-sidebar-collapse .client-brand {
        width: auto;
        margin-right: auto;
        padding-right: 0;
        border-right: 0;
    }

    .client-sidebar,
    .client-layout.is-sidebar-collapse .client-sidebar {
        width: var(--client-sidebar-width);
        transform: translateX(-100%);
        transition: transform .22s ease;
        z-index: 1200;
    }

    .client-sidebar.is-mobile-open {
        transform: translateX(0);
    }

    .client-mobile-mask {
        position: fixed;
        inset: var(--client-header-height) 0 0 0;
        z-index: 1100;
        display: block;
        background: rgba(15, 23, 42, .42);
    }

    .client-top-nav {
        display: none;
    }
}

@media (max-width: 760px) {
    :root {
        --client-header-height: 56px;
        --client-sidebar-width: 218px;
    }

    .client-header {
        padding: 0 10px;
    }

    .client-logo {
        width: 32px;
        height: 32px;
    }

    .client-brand-title {
        font-size: 15px;
    }

    .client-brand-sub,
    .client-user-name,
    .client-user-balance {
        display: none;
    }

    .client-header-right {
        gap: 6px;
    }

    .client-header-action,
    .client-header-icon {
        width: 32px;
        padding: 0;
    }

    .client-header-action span,
    .client-header-icon span {
        display: none;
    }

    .client-user {
        padding: 0;
        border: 0;
        background: transparent;
    }

    .client-user-avatar {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .client-main {
        padding: 12px;
    }

    .client-page-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .client-footer {
        display: block;
        line-height: 1.8;
    }
}
