html,
body {
    position: relative;
    height: 100%;
    width: 100%;
}

.page-body-content,
.form-body-content {
    margin: 3rem;
    min-height: calc(100vh - 6rem);
}

.window-layer-alone-layer-iframe .page-body-content,
.window-layer-alone-layer-iframe .form-body-content {
    margin: 0rem;
    min-height: 100vh;
    border-radius: 0;
}

.iframe-popup-page .page-body-content,
.iframe-popup-page .form-body-content {
    margin: 0rem;
}

form.am-form a {
    text-decoration: none;
}


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

.am-table-scrollable-horizontal>.am-table tr .am-operate-grid-more-list .am-dropdown-content .am-badge i,
.temp-operate-more-item-width-container a i {
    display: none;
}

.am-form-table-data-container .am-pagination-container {
    margin-top: 1rem;
    margin-bottom: 0;
}

/**
 * 产品数据表格
 */
.product-container {
    min-height: 25rem;
    max-height: 47rem;
    height: auto;
}

.product-container .product-table {
    position: relative;
    height: auto;
    max-height: 45rem;
}

.product-container table tbody tr td select,
.product-container table tbody tr td textarea,
.product-container table tbody tr td input[type="text"],
.product-container table tbody tr td input[type="password"],
.product-container table tbody tr td input[type="datetime"],
.product-container table tbody tr td input[type="datetime-local"],
.product-container table tbody tr td input[type="date"],
.product-container table tbody tr td input[type="month"],
.product-container table tbody tr td input[type="time"],
.product-container table tbody tr td input[type="week"],
.product-container table tbody tr td input[type="number"],
.product-container table tbody tr td input[type="email"],
.product-container table tbody tr td input[type="url"],
.product-container table tbody tr td input[type="search"],
.product-container table tbody tr td input[type="tel"],
.product-container table tbody tr td input[type="color"],
.product-container table tbody tr td .chosen-container-single .chosen-single,
.product-container table tbody tr td .chosen-container .chosen-drop {
    border-color: #f5f5f5;
}

/**
 * 地区
 */
.region-linkage-code input {
    height: 1.8rem !important;
}

.region-linkage-code button {
    line-height: 1.8rem !important;
    height: 1.8rem !important;
}

/**
 * 录入表单搜索条件容器
 */
.form-entry-search-container {
    max-width: 160rem;
}

.form-entry-search-container ul.am-thumbnails>li {
    padding-bottom: 0;
}

.form-entry-search-container ul.am-thumbnails>li.width-col2 {
    width: 100%;
}

@media only screen and (min-width: 641px) {
    .form-entry-search-container ul.am-thumbnails>li.width-col2 {
        width: calc(100% - 100%/3);
    }
}

@media only screen and (min-width: 1024px) {
    .form-entry-search-container ul.am-thumbnails>li.width-col2 {
        width: 50%;
    }
}

@media only screen and (max-width: 640px) {
    form.am-form .form-entry-search-container .am-form-group {
        padding: 0 0 1rem 0;
        margin-bottom: 0;
    }

    form.am-form .form-entry-search-container .am-form-group.row>label {
        min-width: 60px;
        font-size: 1.2rem;
    }

    form.am-form .form-entry-search-container .am-form-group.row>label a {
        display: none;
    }
}

/**
 * 基础产品表格
 */
.product-container .product-table tbody tr td.input-value-number input,
.product-container .product-table tbody tr td.input-value-price input {
    display: -webkit-inline-box;
    width: calc(100% - 2.8rem);
}

.product-container .product-table tbody tr>td.unit-id input {
    position: absolute;
    left: -99999999.9rem;
}

.product-container .product-table th,
.product-container .product-table td {
    min-width: 14rem;
}

.product-container .product-table thead tr th:first-child,
.product-container .product-table tbody tr td:first-child {
    min-width: 20rem;
}

.product-container .product-table a {
    text-decoration: none;
}

.product-container .product-table tbody tr.search-input td:first-child {
    position: sticky;
    top: 0;
    left: 0;
}

/**
 * 浮动表格 - 抬头
 */
.product-container-fixed {
    border: 0.1rem solid rgba(0, 0, 0, .06);
    resize: none;
}

.product-container-fixed.am-border-0 {
    border: 0;
}

.product-container-fixed table {
    border: 0px;
}

.product-container-fixed table thead tr>th:first-child,
.product-container-fixed table tbody tr>td:first-child {
    border-left: 0px;
}

.product-container-fixed table thead tr>th {
    position: sticky;
    top: 0;
    z-index: 2 !important;
}

.product-container-fixed table tbody tr:first-child td {
    border-top: 0px !important;
}

.product-container-fixed .am-table-bordered>thead>tr>th,
.product-container-fixed .am-table-bordered>tbody>tr>th,
.am-table-bordered>tfoot>tr>th,
.product-container-fixed .am-table-bordered>thead>tr>td,
.am-table-bordered>tbody>tr>td,
.product-container-fixed .am-table-bordered>tfoot>tr>td {
    border-left: 0;
    text-align: left;
}

/**
 * 浮动表格 - 操作
 */
.product-container-fixed-operate table thead tr>th:last-child,
.product-container-fixed-operate table tbody tr>td:last-child {
    position: sticky;
    text-align: center;
    z-index: 1;
    right: 0px;
    background: rgb(255, 255, 255);
    box-shadow: rgb(136 136 136 / 20%) -0.5rem 0px 1rem;
}

.product-container-fixed-operate table thead tr>th:last-child {
    background: rgb(245, 247, 250);
}

.product-container-fixed-operate table thead tr th:last-child,
.product-container-fixed-operate table tbody tr td:last-child {
    min-width: 6rem;
}

.product-container-fixed-operate table tbody tr td:last-child {
    padding-top: 0.5rem;
}

.product-container-fixed-operate table tbody tr.search-input td:last-child {
    box-shadow: rgb(136 136 136 / 2%) -0.5rem 0px 0.3rem;
}

/**
 * 列表批量设置
 */
.product-container .product-table thead tr th .am-dropdown .am-dropdown-content {
    width: 33rem;
}

.product-container .product-table thead tr th .am-dropdown label.am-checkbox .am-ucheck-icons,
.product-container .product-table thead tr th .am-dropdown label.am-checkbox input {
    top: 0.4rem;
    left: 1rem;
}

/**
 * 产品详情列表空数据占位
 */
.not-product-detail-list-tips {
    margin-top: 4rem;
    position: sticky;
    width: 100%;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.not-product-detail-list-tips .bg-slides-item {
    width: 18rem;
    height: 16.4rem;
    background: no-repeat 50% 50%;
    background-size: cover;
}

.not-product-detail-list-tips i {
    color: #e8e8e8;
    font-size: 1.8rem;
}

.not-product-detail-list-tips p {
    display: flex;
    gap: 2rem;
}

.not-product-detail-list-tips p a,
.not-product-detail-list-tips p span {
    font-weight: 500;
    color: var(--color-main);
    text-decoration: none;
}

.not-product-detail-list-tips p a {
    text-decoration: underline;
}

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

    /**
    * table底部操作
    */
    .inventory-style-management .product-table-bottom-stats {
        margin-top: 1rem;
    }

    .not-product-detail-list-tips .bg-slides-item {
        width: 10rem;
        height: 9rem;
        background: no-repeat 50% 50%;
        background-size: cover;
    }
}

/**
 * 计量单位选择
 */
#modal-unit-list .am-btn-default,
#modal-unit-list .am-dropdown-content:before,
#modal-unit-list .am-dropdown-content:after {
    display: none;
}

#modal-unit-list .am-dropdown-content {
    position: relative;
    display: block;
    width: 100%;
    border: 0;
}

#modal-unit-list .am-dropdown-content,
#modal-unit-list .am-selected-search .am-form-field {
    border-radius: var(--border-radius);
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
}

#modal-unit-list .am-selected-list li {
    padding: 1rem;
}

#modal-unit-list .am-selected-list li:not(:last-child) {
    border-bottom: 0.1rem solid #f5f5f5;
}

#modal-unit-list .am-selected-list .am-icon-check {
    top: 1rem;
}

/**
 * 产品选择添加-搜索列表
 */
#plugins-erp-product-choice-popup .product-add-container {
    height: 100%;
}

#plugins-erp-product-choice-popup .forth-selection-container select.forth-selection-form-category,
#plugins-erp-product-choice-popup .forth-selection-container select.forth-selection-form-brand {
    display: -webkit-inline-box;
}

#plugins-erp-product-choice-popup .forth-selection-container .chosen-container,
#plugins-erp-product-choice-popup .forth-selection-container .forth-selection-form-keywords {
    display: -webkit-inline-box !important;
}

#plugins-erp-product-choice-popup .forth-selection-container .chosen-single {
    width: 100%;
}

#plugins-erp-product-choice-popup .forth-selection-container .search-submit {
    width: 8.7rem;
}

#plugins-erp-product-choice-popup .product-search-list-container {
    height: calc(100% - 8.8rem);
    max-height: 100%;
}

#plugins-erp-product-choice-popup .product-search-table thead tr th:first-child,
#plugins-erp-product-choice-popup .product-search-table tbody tr td:first-child {
    min-width: 3rem;
    max-width: 3rem;
    padding-left: 1.2rem !important;
}

#plugins-erp-product-choice-popup .product-search-table thead tr th:nth-child(2),
#plugins-erp-product-choice-popup .product-search-table tbody tr td:nth-child(2) {
    min-width: 20rem;
    max-width: 20rem;
}

#plugins-erp-product-choice-popup .product-search-table thead tr th:nth-child(3),
#plugins-erp-product-choice-popup .product-search-table tbody tr td:nth-child(3) {
    min-width: 18.5rem;
    max-width: 18.5rem;
}

#plugins-erp-product-choice-popup .product-search-table tbody tr .text-title {
    width: 100%;
}

#plugins-erp-product-choice-popup .product-search-table tbody tr .input-number {
    width: 8rem;
}

#plugins-erp-product-choice-popup .product-search-table tbody tr .am-selected-content {
    padding: 0;
    border-radius: var(--border-radius);
}

#plugins-erp-product-choice-popup .product-search-table tbody tr .am-selected .am-btn {
    border-radius: var(--border-radius);
    font-size: 1.2rem;
}

#plugins-erp-product-choice-popup .product-search-table tbody tr .am-selected .am-btn i.am-selected-icon {
    margin-left: -0.4rem;
}

#plugins-erp-product-choice-popup .product-search-table tbody tr .product-choice-submit {
    cursor: pointer;
}

#plugins-erp-product-choice-popup .product-page-container ul.am-pagination {
    margin: 0;
}

#plugins-erp-product-choice-popup .table-no {
    position: sticky;
    left: 0;
    top: 0;
}

@media only screen and (max-width: 640px) {
    #plugins-erp-product-choice-popup .am-form-popup-submit>.am-flex {
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 1rem;
    }

    #plugins-erp-product-choice-popup .am-form-popup-submit .product-btn {
        align-self: flex-start;
    }
}

/**
 * 扫码枪
 */
.scan-input {
    display: inline-block !important;
    width: 20rem !important;
    vertical-align: middle;
}

.scan-input i.common-scan-submit {
    padding: 1.5rem 0.5rem;
    left: 0 !important;
    top: 0 !important;
}

.scan-input input {
    padding: 0.5rem !important;
}

@media only screen and (max-width: 640px) {
    .scan-input {
        width: calc(100% - 196px) !important;
    }
}

/**
 * 产品列表参考价格弹出列表
 */
.product-table-reference-price-list-dropdown .am-dropdown-content {
    width: 30rem;
    z-index: 1;
}

.product-table-reference-price-list-dropdown ul li {
    padding: 0.5rem;
}

.product-table-reference-price-list-dropdown ul li:not(:first-child) {
    border-top: 0.1rem dashed #f5f5f5;
}

.product-table-reference-price-list-dropdown ul li .name {
    width: 40%;
    color: #666;
}

.product-table-reference-price-list-dropdown ul li .reference-price-submit:hover {
    opacity: 0.8;
}


/**
 * 订单输入ID和扫码录入
 */
.order-created-input-container {
    --height: 8rem;
    --size: 2.4rem;
    --pl: 7.5rem;
    --icon-size: 3.8rem;
    --icon-left: 1.5rem;
    --icon-p: 1rem 0.8rem;
    max-width: 50rem;
    margin: 0 auto;
    margin-top: 10%;
}

.order-created-input-container input.am-form-field {
    height: var(--height);
    line-height: var(--height) !important;
    font-size: var(--size) !important;
    padding-left: var(--pl) !important;
    box-shadow: unset !important;
    width: 100% !important;
    max-width: 100%;
    border: 0.1rem solid #ddd;
}

.order-created-input-container button.am-btn {
    height: var(--height);
    line-height: calc(var(--height) - var(--size));
    font-size: var(--size);
}

.order-created-input-container .common-scan-submit {
    line-height: inherit !important;
    margin-top: 0 !important;
    position: absolute;
    padding: var(--icon-p);
    left: var(--icon-left) !important;
    top: 0 !important;
    font-size: var(--icon-size);
    color: #333;
}


@media only screen and (max-width: 1024px) {
    .order-created-input-container {
        --height: 6rem;
        --size: 2rem;
        --pl: 6.5rem;
        --icon-size: 3rem;
        --icon-left: 1.5rem;
        --icon-p: 0.6rem 0.8rem;
    }
}

@media only screen and (max-width: 640px) {
    .order-created-input-container {
        --height: 5rem;
        --size: 1.6rem;
        --pl: 5rem;
        --icon-size: 2.4rem;
        --icon-left: 1rem;
        --icon-p: 6px 0.8rem;
    }
}


/**
 * 二级导航
 */
.table-nav {
    border-bottom: 0.2rem solid #2362fb;
}

.second-nav {
    background: #fff;
}

.second-nav li a {
    color: #666;
}

.second-nav li.am-active a,
.second-nav li.am-active a:hover {
    color: #2362fb !important;
    font-weight: bold;
    background-color: transparent !important;
}

/**
 * 页面产品列表js固定辅助
 */
.page-product-form-enter-container .product-container {
    max-height: none;
    min-height: auto;
}

.page-product-form-enter-container .not-product-detail-list-tips {
    margin-top: 0;
    height: calc(100% - 10rem);
}

.page-product-form-enter-container form.am-form .am-form-group {
    padding-bottom: 2rem;
}

/**
 * 混合业务列表选择
 */
.business-item ul li .rotate {
    background-color: #2362fb;
}

.business-item ul li:hover {
    border: 0.1rem solid #2362fb;
    box-shadow: 0px 0 0px 0.1rem #2362fb;
}

.business-item ul li.selected {
    border-color: #2362fb;
    box-shadow: 0px 0 0px 0.1rem #2362fb;
}

/**
 * 页面禁止输入操作、隐藏操作项
 */
.page-body-content-forbid-input table tbody tr td .reference-price-submit,
.page-body-content-forbid-input table thead th>.am-dropdown,
.page-body-content-forbid-input table tbody tr td .line-remove,
.page-body-content-forbid-input .product-container-fixed-operate table thead tr th:last-child,
.page-body-content-forbid-input .product-container-fixed-operate table tbody tr td:last-child {
    display: none;
}

/**
 * 公共输入搜索
 */
.product-table-input-search-input {
    min-width: 26rem;
    margin-right: 2rem;
}

.product-table-input-search-question-icon {
    position: absolute;
    top: 1.18rem;
    right: 1rem;
}

.product-table-input-search-list {
    width: 56rem;
}

.product-table-input-search-list {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 101;
    background: #fff;
    -webkit-box-shadow: var(--box-shadow);
    -moz-box-shadow: var(--box-shadow);
    box-shadow: var(--box-shadow);
    border-radius: 1.2rem;
    padding: 1.2rem;
    display: none;
}

.product-table-input-search-list li {
    padding: 0.5rem 1rem;
    line-height: 2.8rem;
}

.product-table-input-search-list li .search-product-title {
    width: calc(100% - 29rem);
}

.product-table-input-search-list li .input-number {
    width: 8rem;
}

.product-table-input-search-list li .search-unit-select {
    width: 7rem;
}

.product-table-input-search-list li .product-choice-submit {
    cursor: pointer;
}

@media only screen and (max-width: 640px) {
    .product-table-input-search-input {
        width: 18rem;
        min-width: 18rem;
    }

    .product-table-input-search-list {
        width: calc(100% - 3.2rem);
    }
}

/* 过期 */
.expire-time {
    padding: 0 0.6rem;
    background: #e1e1e1;
    color: #666;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 2.4rem;
    line-height: 2.5rem;
}

.expire-time-active {
    background: linear-gradient(90deg, #EBC38B 0%, #FFE6C7 52%, #EECBA4 100%);
    color: #38290C;
}

.already-expire-time {
    background: #ffe6c1;
    color: #ff9800;
}

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

    /**
    * table底部操作
    */
    .inventory-style-management .product-table-bottom-stats {
        margin-top: 1rem;
    }
}

/* 表格中的文字垂直居中显示 等同于amazeui中的am-text-middle */
.product-container .am-table>tbody>tr>td {
    vertical-align: middle !important;
}

/**
 * icon图标 公共样式覆盖
**/
.am-form-icon [class*='icon-camera'] {
    position: absolute;
    left: 0.5em;
    top: 50%;
    display: block;
    margin-top: -0.5em;
    line-height: 1;
    z-index: 2;
    color: #888;
}

/* 表格内的搜索添加背景色 */
.product-container .am-table>tbody>.search-input>td {
    background: #fff;
}

/**
 * table表格颜色更新
 */
.am-table>thead>tr>td.am-primary,
.am-table>tbody>tr>td.am-primary,
.am-table>tfoot>tr>td.am-primary,
.am-table>thead>tr>th.am-primary,
.am-table>tbody>tr>th.am-primary,
.am-table>tfoot>tr>th.am-primary,
.am-table>thead>tr.am-primary>td,
.am-table>tbody>tr.am-primary>td,
.am-table>tfoot>tr.am-primary>td,
.am-table>thead>tr.am-primary>th,
.am-table>tbody>tr.am-primary>th,
.am-table>tfoot>tr.am-primary>th {
    color: var(--color-main);
    background-color: var(--color-main-light);
}

/* 表格下的选择产品和数据统计的样式 */
.products-statistics-style {
    padding: 1.2rem 0;
}

.products-statistics-style.am-padding-top-0 {
    padding-top: 0;
}

@media only screen and (max-width: 640px) {
    .products-statistics-style {
        margin-top: 1rem;
    }

    .products-statistics-style .business-operations-submit {
        font-size: 1.2rem;
    }
}

/* 详情内弹窗的表格表头背景颜色 */
.am-form-table-data-detail .am-table tr>th {
    background-color: #f8f8f8;
}

/* 弹出框中的下载模版的颜色 */
.am-popup .am-text-right.am-margin-top-xs a {
    color: var(--color-blue);
}

.am-popup .am-upload-file .am-form-file .tips {
    color: #999999;
    font-weight: 400;
}

/**
 * 输入框光标颜色覆盖
 **/
select:hover,
textarea:hover,
input[type="text"]:hover,
input[type="password"]:hover,
input[type="datetime"]:hover,
input[type="datetime-local"]:hover,
input[type="date"]:hover,
input[type="month"]:hover,
input[type="time"]:hover,
input[type="week"]:hover,
input[type="number"]:hover,
input[type="email"]:hover,
input[type="url"]:hover,
input[type="search"]:hover,
input[type="tel"]:hover,
input[type="color"]:hover,
.chosen-choices:hover,
.chosen-single:hover,
.am-tagsinput:hover,
button.colorpicker-submit:hover,
.am-cascader .am-cascader-suffix .input-model:hover {
    border-style: solid;
    border-width: 0.1rem;
    border-color: var(--color-main) !important;
    -webkit-box-shadow: 0 0 0.5rem var(--color-main);
    box-shadow: 0 0 0.5rem var(--color-main);
}

/**
 * 输入框获取焦点
 */
select:focus,
textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.chosen-choices:focus,
.chosen-container-active .chosen-choices,
.chosen-single:focus,
.am-tagsinput:focus,
button.colorpicker-submit:focus,
.am-cascader .am-cascader-suffix .input-model:focus {
    border: 0.1rem solid var(--color-main) !important;
}

/**
 * 下拉选择组件
 */
.chosen-container .chosen-results li.highlighted {
    background-color: var(--color-main-light);
    color: var(--color-main);
}

.chosen-container-active .chosen-single {
    border-color: var(--color-main);
}

/**
 * 表单页面底部按钮手机端大小
 */
form.am-form-popup-sticky .am-form-popup-submit .am-btn {
    min-width: 6rem;
    margin-right: 1rem;
}

@media only screen and (max-width: 710px) {
    .am-form-popup-submit>.am-form-erp-purchase-sales-btn {
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 1rem;
    }

    .am-form-popup-submit>.am-flex>.am-flex {
        align-self: flex-start;
    }
}

.page-product-form-enter-container .am-form-popup-fixed .am-form-popup-submit,
.page-product-form-enter-container form.am-form-popup-sticky .am-form-popup-submit {
    min-height: 4.5rem;
    padding-bottom: 0;
}

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

    .page-product-form-enter-container .am-form-popup-fixed .am-form-popup-submit,
    .page-product-form-enter-container form.am-form-popup-sticky .am-form-popup-submit {
        min-height: 6rem;
        padding-bottom: 1.5rem;
    }

    .header-top .am-color-main {
        color: var(--color-main);
    }
}

/**
 * 小屏下布局
 */
@media (min-width: 730px) and (max-width: 1701px) {

    .page-body-content,
    .form-body-content {
        margin: 2rem;
        min-height: calc(100vh - 4rem);
    }
}

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

    .page-body-content,
    .form-body-content {
        margin: 1rem;
        min-height: calc(100vh - 2rem);
    }
}

@media only screen and (max-width: 1700px) {
    .not-product-detail-list-tips .bg-slides-item {
        width: 12rem;
        height: 10.98rem;
        background: no-repeat 50% 50%;
        background-size: cover;
    }
}

/**
* 统计列表样式 
*/
.report-swiper-container {
    margin-bottom: 2rem;
}

.report-swiper {
    position: relative;
    box-shadow: none;
    margin: 0;
    width: 100%;
}

.report-swiper li {
    margin: 0;
}

.report-swiper-item {
    padding: 1rem;
    border: 0.2rem dashed #e5e5e5;
}

.report-more {
    font-size: 1.2rem;
    width: 3.2rem;
    text-align: center;
    /* 字体竖着排 */
    writing-mode: vertical-rl;
    padding: 1rem 0.5rem;
    border: 0.2rem dashed #e5e5e5;
    margin-left: 1.2rem;
}
.report-more:hover {
    color: var(--color-main);
}

.report-more i {
    font-size: 1.2rem;
    padding-top: 0.4rem;
}