:root {
    --body-bg-color: #F4F3F7 !important;
    --color-main: #2A94FF !important;
    --color-main-light: #EDF4FF !important;
    --color-main-hover: #1677FF !important;
    --color-main-disabled: #7B94AE !important;
    --color-button-primary: #2A94FF !important;
    --color-button-primary-disabled: #7B94AE !important;
    --color-button-primary-disabled-border: #7B94AE !important;
}

body {
    background: var(--body-bg-color);
    font-size: 1.2rem;
}

/**
 * 数据表格
 */
.am-table-scrollable-horizontal {
    max-height: calc(100% - 5rem);
    overflow-x: auto;
    overflow-y: auto;
}

.am-search-delete-show a.input-clearout-submit {
    display: block !important;
}

/**
 * 加载动画图标
 */

.table-no {
    font-size: 1.4rem;
}

.table-no,
.table-no>i {
    color: #999;
}

.table-no>i.am-icon-spinner {
    font-size: 4.8rem;
}

#address-popup .table-no>i.am-icon-spinner {
    font-size: 1.8rem;
}

/**
 * 公共编辑
 */
.saveinfo-btn-list .am-btn {
    width: 48%;
}

/**
 * 按钮
 */
.am-btn-primary {
    border: 0.1rem solid var(--color-main);
    background: var(--color-main);
    color: #fff;
}

.am-btn-primary:hover,
.am-btn-primary:focus,
.am-btn-primary:active,
.am-btn-primary.am-active,
.am-dropdown.am-active .am-btn-primary.am-dropdown-toggle {
    color: #fff !important;
    background: var(--color-main-hover);
    border-color: var(--color-main-hover);
}

/**
 * 表单公共底部浮动
 */
.am-form-popup-fixed .am-form-popup-submit .am-btn.am-btn-warning,
form.am-form-popup-sticky .am-form-popup-submit .am-btn.am-btn-warning {
    border: 1px solid #DCDFE6;
    background-color: transparent;
    color: #666;
}

.am-form-popup-fixed .am-form-popup-submit .am-btn.am-btn-warning:hover,
.am-form-popup-fixed .am-form-popup-submit .am-btn.am-btn-warning:focus,
.am-form-popup-fixed .am-form-popup-submit .am-btn.am-btn-warning:active,
form.am-form-popup-sticky .am-form-popup-submit .am-btn.am-btn-warning:hover,
form.am-form-popup-sticky .am-form-popup-submit .am-btn.am-btn-warning:focus,
form.am-form-popup-sticky .am-form-popup-submit .am-btn.am-btn-warning:active {
    border: 1px solid var(--color-main-hover);
    background-color: transparent;
    color: var(--color-main-hover);
}

/**
* 后台页面布局
*/
.plugins-view-save-container {
    background-color: #f8f8f8;
    padding: 2.3rem 2.8rem 0 2.8rem;
    border-radius: var(--border-radius-lg);
}

.am-form-group .am-tagsinput {
    border-radius: var(--border-radius);
    display: flex;
    flex-flow: row wrap;
    gap: 0.5rem;
}

.am-tagsinput .tag {
    font-size: 1.2rem;
}

.am-tagsinput .tag [data-role="remove"] {
    font-family: "iconfont" !important;
    font-size: 1rem !important;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    color: #999;
}

.am-tagsinput .tag [data-role="remove"]:after {
    content: '\e729';
    padding: 0;
}

.am-tagsinput .tag.am-badge-primary {
    background: #F3F3F3;
    color: #333;
    border: 0.1rem solid #F3F3F3;
}

.more-download {
    position: absolute;
    right: 0;
    top: 0.5rem;
    font-size: 1.4rem;
    display: flex;
}

/* 灰色背景卡片 */
.card-grey {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 1.6rem;
    display: flex;
    flex-flow: column;
    gap: 2rem;
}

/**
* 复选框，单选框的默认颜色修改
*/
.am-ucheck-checkbox:checked+.am-ucheck-icons,
.am-ucheck-radio:checked+.am-ucheck-icons,
.am-ucheck-checkbox:hover:not(.am-nohover):not(:disabled)+.am-ucheck-icons,
.am-ucheck-radio:hover:not(.am-nohover):not(:disabled)+.am-ucheck-icons {
    color: #1677FF;
}

/**
 * 小徽章
 */
.am-badge {
    padding: 0 0.6rem;
    height: 2.2rem;
    line-height: 2.2rem;
}

.am-badge-success {
    background: #F2FFF4;
    color: #52C41A;
    border: 1px solid #C9F4B4;
}

/**
 * 顶部导航
 */
body {
    --header-height: 4.8rem;
}

header.realstore-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    min-height: var(--header-height);
    margin: 0;
    z-index: 1000;
    border: 0;
    background-color: #333333 !important;
}

header.realstore-header .am-topbar-brand {
    height: var(--header-height);
    line-height: var(--header-height);
}

header.realstore-header .am-topbar-brand a {
    text-decoration: none;
}

.am-topbar-inverse .am-topbar-nav>li.am-active>a {
    color: #fff !important;
}

header.realstore-header .am-topbar-btn {
    margin: 0.8rem 1rem 0 0;
}

header.realstore-header .am-topbar-brand h2 {
    font-size: 1.8rem;
    line-height: var(--header-height);
}

header.realstore-header .admin-site-vice-name {
    font-size: 1.2rem;
    color: #eaeaea;
}

header.realstore-header .shop-home {
    margin-left: 0;
}

@media only screen and (min-width: 641px) {

    header.realstore-header .am-topbar-brand,
    .am-topbar-nav>li>a {
        line-height: var(--header-height);
    }

    header.realstore-header .shop-home>a>span {
        display: none;
    }
}

/**
 * 右侧内容
 */
.right-content-body {
    min-height: calc(100vh - 3rem);
    margin: 1.5rem 1.5rem 1.5rem 1.5rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: var(--border-radius-lg);
}

.right-content-body:not(.not-header-nav) {
    min-height: calc(100vh - var(--header-height) - 3rem);
    margin: calc(var(--header-height) + 1.5rem) 1.5rem 1.5rem 1.5rem;
}

/**
 * 框架基础样式覆盖
 */
.am-btn.am-radius,
.am-badge.am-radius {
    border-radius: var(--border-radius);
}

.am-radius,
.am-table-scrollable-horizontal,
.am-img-thumbnail.am-radius,
.am-modal-dialog,
.am-popup .am-popup-inner,
.chosen-container .chosen-single,
.chosen-container .chosen-search input[type="text"],
.form-table-search td select[multiple],
.form-table-search td select[size],
.form-table-search td .chosen-container-multi .chosen-choices,
.am-alert,
.pagination-input,
ul.plug-file-upload-view li,
ul.plug-file-upload-view li img,
ul.plug-file-upload-view-video li video,
.plug-file-upload-submit,
.am-popover,
.am-input-group-label,
.am-table,
.am-panel {
    border-radius: var(--border-radius);
}

.am-list li:first-child,
.am-modal-dialog .am-modal-hd {
    border-top-left-radius: var(--border-radius) !important;
    border-top-right-radius: var(--border-radius) !important;
}

.am-list li:last-child {
    border-bottom-left-radius: var(--border-radius) !important;
    border-bottom-right-radius: var(--border-radius) !important;
}

div.chosen-container-multi.chosen-with-drop .chosen-choices,
div.chosen-container.chosen-with-drop .chosen-single {
    border-bottom-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.chosen-container .chosen-drop {
    border-bottom-left-radius: var(--border-radius) !important;
    border-bottom-right-radius: var(--border-radius) !important;
}

.am-input-group .am-form-field:first-child,
.am-input-group-label:first-child,
.am-input-group-btn:first-child>.am-btn,
.am-input-group-btn:first-child>.am-btn-group>.am-btn,
.am-input-group-btn:first-child>.am-dropdown-toggle,
.am-input-group-btn:last-child>.am-btn:not(:last-child):not(.dropdown-toggle),
.am-input-group-btn:last-child>.am-btn-group:not(:last-child)>.am-btn {
    border-bottom-right-radius: 0 !important;
    border-top-right-radius: 0 !important;
}

.am-input-group .am-form-field:last-child,
.am-input-group-label:last-child,
.am-input-group-btn:last-child>.am-btn,
.am-input-group-btn:last-child>.am-btn-group>.am-btn,
.am-input-group-btn:last-child>.am-dropdown-toggle,
.am-input-group-btn:first-child>.am-btn:not(:first-child),
.am-input-group-btn:first-child>.am-btn-group:not(:first-child)>.am-btn {
    border-bottom-left-radius: 0 !important;
    border-top-left-radius: 0 !important;
}

.am-panel .am-panel-hd {
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.am-table thead tr th:first-child {
    border-top-left-radius: var(--border-radius);
}

.am-input-group .am-form-field:first-child {
    border-top-left-radius: var(--border-radius) !important;
    border-bottom-left-radius: var(--border-radius) !important;
}

.am-input-group-btn:last-child>.am-btn {
    border-top-right-radius: var(--border-radius) !important;
    border-bottom-right-radius: var(--border-radius) !important;
}

/**
 * 左侧菜单
 */
.realstore-menu-sidebar::-webkit-scrollbar {
    display: none;
    scrollbar-width: none;
}

.realstore-menu-sidebar {
    position: fixed;
    z-index: 1020;
    bottom: 7rem;
    right: 1rem;
    -webkit-box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 1.5rem rgba(0, 0, 0, 0.5);
}

.realstore-menu-sidebar {
    width: 14.5rem;
    min-height: 100%;
    float: left;
}

.realstore-menu-sidebar-list li a:hover {
    background: rgba(118, 119, 120, 0.45);
    text-decoration: none !important;
}

.realstore-menu-sidebar .am-active a {
    background: var(--color-main) !important;
    color: #fff !important;
    border-color: var(--color-main) !important;
}

.realstore-menu-sidebar-list li a {
    color: #fff;
    padding: 0.8rem 1rem;
    text-decoration: none !important;
    font-size: 1.4rem;

}

.realstore-menu-sidebar-list li a i {
    width: 1.4rem;
}

.realstore-menu-sidebar-list li:first-child {
    border-top: none;
}

.realstore-menu-offcanvas-bar .am-list>li {
    border-color: #2e2e31;
    border-style: solid;
    border-width: 0 0 0.1rem 0;
    background-color: transparent;
}

.user-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    background: #fff;
}

.realstore-menu-offcanvas-bar {
    z-index: 900;
}

@media only screen and (min-width: 641px) {
    .realstore-menu-sidebar {
        display: block;
        position: fixed;
        left: 28rem;
        bottom: unset;
        height: auto;
        min-height: auto;
        overflow-x: scroll;
        width: calc(100% - 500px);
        box-shadow: none;
        background-color: transparent;
    }

    .realstore-menu-sidebar ::-webkit-scrollbar {
        height: 0;
    }

    .realstore-menu-offcanvas-bar {
        position: static;
        width: auto;
        background: none;
        -webkit-transform: translate3d(0, 0, 0);
        -ms-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        overflow-y: hidden;
    }

    .realstore-menu-offcanvas-bar:after {
        content: none;
    }

    .realstore-menu-offcanvas-bar ul.realstore-menu-sidebar-list {
        margin: 0;
        display: flex;
        flex-flow: row nowrap;
    }

    .realstore-menu-sidebar-list li {
        margin: 0;
        border: 0 !important;
        border-radius: 0 !important;
    }

    .am-list li:last-child {
        border-radius: 0 !important;
    }

    .realstore-menu-sidebar-list li a {
        white-space: nowrap;
        padding: 1.2rem 1rem;
    }

    .realstore-menu-sidebar-list li a:hover {
        background: transparent;
    }

    .realstore-menu-sidebar .am-active a {
        background: transparent !important;
        color: var(--color-main) !important;
        border-bottom: 0.2rem solid var(--color-main) !important;
    }

    .realstore-menu-sidebar-list li a i {
        display: none;
    }
}

@media only screen and (max-width: 640px) {
    .realstore-menu-sidebar {
        position: relative;
        z-index: 1000;
        height: 100%;
        position: fixed;
        left: 0;
        top: 1rem;
        overflow-y: scroll;
        width: inherit;
    }

    .realstore-menu-offcanvas-bar:after {
        background: #BABABA;
    }

    .realstore-menu-sidebar-list a:hover,
    .realstore-menu-sidebar-list a:active {
        -webkit-transition: background-color .3s ease;
        -moz-transition: background-color .3s ease;
        -ms-transition: background-color .3s ease;
        -o-transition: background-color .3s ease;
        transition: background-color .3s ease;
        background: #E4E4E4;
    }

    .realstore-menu-offcanvas-bar ul {
        margin-bottom: 0;
    }
}

/**
 * 模块数据列表
 */
.module-data-list li {
    padding: 0.5rem 0;
}

.module-data-list li:not(:last-child) {
    border-bottom: 0.1rem solid #eee;
}

.module-data-list li:first-child {
    padding-top: 0px;
}

.module-data-list li:last-child {
    padding-bottom: 0px;
}

/**
 * 支付信息
 */
.payment-list ul li .am-inline-block {
    vertical-align: middle;
}

.bus-ext-item {
    padding: 1.5rem 0;
    border-top: 0.1rem dashed #eee;
}

.bus-ext-item input {
    line-height: 2.8rem !important;
    font-size: 1.6rem !important;
}

.charge-data p {
    width: calc(100% - 10.5rem);
}

.charge-data * {
    vertical-align: middle;
}

.pay-submit i {
    font-size: 24px;
    position: relative;
    top: 3px;
}

/**
 * 支付状态校验提示弹层
 */
.progress-container {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    padding-top: 12rem;
    background: rgb(0 0 0 / 80%);
    color: #fff;
    font-weight: bold;
}

/**
 * 弹窗搜使用户
 */
#popup-appoint-user .am-scrollable-vertical {
    border: 0.1rem solid #eee;
    height: calc(100% - 12rem);
}

.user-list-container .user-list .am-gallery-item {
    position: relative;
    overflow: hidden;
}

.user-list-container .user-list .am-gallery-item a {
    text-decoration: none;
}

.user-list-container .user-list .am-gallery-item i {
    position: absolute;
    bottom: -1.9rem;
    right: -1.7rem;
    font-size: 3.4rem;
    color: var(--color-main);
    display: none;
}

.user-list-container .user-list .am-gallery-item.selected i {
    display: block;
}

.user-list-container .user-list .am-gallery-item:hover,
.user-list-container .user-list .am-gallery-item.selected {
    border: 0.2rem solid #d2364c;
}

/**
 * 用户搜索下拉选择
 */
.user-search-select-container {
    position: fixed;
    top: 0;
    left: 0;
    border: 0.1rem solid #eee;
    z-index: 11;
    background: #fff;
    -webkit-box-shadow: 0px 0px 1rem rgb(136 136 136 / 40%);
    -moz-box-shadow: 0px 0px 1rem rgb(136 136 136 / 0.4);
    box-shadow: 0px 0px 1rem rgb(136 136 136 / 40%);
    width: calc(23.3% - 0.7rem);
    min-width: 41.3rem;
    max-height: 50rem;
    display: none;
    overflow-y: auto;
}

.user-search-select-container ul li:first-child {
    border-top: 0;
}

.user-search-select-container ul li .user-choice-submit {
    cursor: pointer;
    padding: 0 1.6rem;
}

/**
 * 二级导航
 */
.second-nav {
    position: absolute;
    left: 0;
    top: var(--header-height);
    width: 100%;
}

@media only screen and (max-width:640px) {
    .second-nav {
        left: 0;
    }
}

.right-content-body-second-nav {
    padding-top: calc(var(--header-height) * 2) !important;
}

/**
 * legend标题
 */
legend {
    border: 0;
}

legend a.am-fr {
    color: #666;
    font-size: 1.8rem;
    margin: 0;
}

legend a.am-fr i {
    font-size: 1.8rem;
}

legend a:hover {
    color: var(--color-blue);
}

/**
 * 身份证
 */
.user-idcard-images ul li {
    margin: 0;
    padding: 0;
    border-radius: var(--border-radius-lg);
}

@media only screen and (min-width: 641px) {

    .user-idcard-images ul li,
    .user-idcard-images .plug-file-upload-submit {
        width: 15.6rem;
    }

    .user-idcard-images ul li {
        height: 13.6rem;
    }
}

@media only screen and (max-width: 640px) {

    .user-idcard-images ul li,
    .user-idcard-images .plug-file-upload-submit {
        width: 12.8rem;
    }

    .user-idcard-images ul li {
        height: 11.2rem;
    }
}

/**
 * 收银台左侧列表
 */
.cashier-menu-container {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 8rem;
    background: #2A3040;
    color: #fff;
    z-index: 2;
    height: 100vh;
}

.cashier-menu-container ::-webkit-scrollbar {
    display: none;
}

.cashier-logo {
    display: block;
    width: 100%;
    padding: 2rem 5rem;
}

.cashier-menu {
    height: calc(100% - 22rem);
    overflow-y: auto;
}

.cashier-menu ul {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}

.cashier-menu ul li {
    margin: 1.2rem 0;
}

.cashier-menu ul li,
.cashier-menu ul li a {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    border-radius: var(--border-radius-lg);
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}

.cashier-set ul li a,
.cashier-menu ul li a {
    color: #fff;
}

.cashier-menu ul li.am-active {
    background-color: var(--color-main);
}

.cashier-set ul li i,
.cashier-menu ul li i {
    font-size: 2rem;
}

.cashier-set {
    /* height: 30rem; */
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2A3040;
    font-size: 1.4rem;
    padding-top: 1rem;
}

.cashier-set ul {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
}

.cashier-set ul li {
    margin-bottom: 1.5rem;
}

.cashier-set ul li,
.cashier-set ul li a,
.cashier-set ul li div {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    border-radius: var(--border-radius-lg);
    font-size: 1.4rem;
    transition: all 0.3s ease-in-out;
}

.cashier-set ul li a:hover {
    color: var(--color-main);
}

.cashier-right-content,
.cashier-content {
    min-height: 100vh;
}

.cashier-right-content {
    width: 100%;
    padding-left: 8rem;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.cashier-content {
    padding-left: 1.4rem;
}

.cashier-content .left-data-page-container .am-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0px -3px 4px 0px rgba(0, 0, 0, 0.03);
    padding: 1rem 1rem 0.5rem 1rem;
    margin: 0;
}

.cashier-content .am-pagination>li>a {
    padding: 1rem 2rem !important;
    border-color: #ddd;
}

.cashier-content .am-pagination>li.am-active>a {
    border-color: var(--color-main);
}

.cashier-content .pagination-input {
    padding: 1rem 0.5rem !important;
}

@media only screen and (max-width: 1600px) {

    .cashier-content .current-page-input,
    .cashier-content .to-page-input {
        display: none;
    }
}


/**
 * 收银台右侧分页
 */
.cashier-content .user-base-page-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1.7rem 1.4rem 1.2rem 0;
}

.cashier-content .user-base-page-container .am-pagination {
    margin: 0;
}

/**
 * 收银台支付样式
 */
.cashier-modal .pay-submit {
    border-radius: 100rem;
}

/**
 * 收银台表单边框颜色加深
 */
.cashier-container .am-form textarea,
.cashier-container .am-form input,
.cashier-container .chosen-container-single .chosen-single,
.cashier-container .am-input-group-btn > .am-btn.am-btn-default {
    border-color: #ddd !important;
}

.cashier-container .am-ucheck-icons {
    color: #ddd;
}

.cashier-container .am-ucheck-radio:checked+.am-ucheck-icons {
    color: var(--color-main);
}

/**
 * 收银台弹窗样式flex布局调整
 */
.cashier-container form .am-form-group.row,
.cashier-container form .am-form-group:not(:has(.am-radio-inline, .am-checkbox-inline)) {
    gap: 0;
}

.am-form-popup-container.no-flex-gap form .am-form-group {
    gap: 0;
}

.am-form-popup-container.no-flex-gap form .am-form-group>* {
    margin-bottom: 1rem;
}

.am-form-popup-container.no-flex-gap form .am-form-group.row {
    gap: 0;
}

.am-form-popup-container.no-flex-gap form .am-form-group.row label {
    margin-right: 1rem;
}

/**
 * 收银台表格
 */
.cashier-container .am-table-scrollable-horizontal>.am-table>thead>tr th {
    background-color: #eee;
}

/**
 * 收银台会员码
 */
.vip-code {
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius);
    background: linear-gradient(90deg, #FFE3DC 0%, #FEB88F 100%);
}