/* 保留您原有的样式 */
.red-line {
    position: relative;
    padding-left: 8px;
    font-size: 14px;
    color: #343940;
    line-height: 20px;
    font-weight: 500;
    vertical-align: middle;
    display: inline-block;
}

.red-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 4px;
    height: 16px;
    margin-top: -8px;
    background-color: #d32f2f;
}

.classify-list.calculater-container {
    margin: 0 auto;
    width: 73%;
    max-width: 1400px;
    min-width: 1200px;
    padding-right: 0.375rem;
    padding-left: 0.375rem;
    padding-top: 2rem;
    padding-bottom: 2rem
}

/* 表格按钮 */
.btns-box {
    display: flex;
    justify-content: space-between;
    margin-top: 17px;
    margin-bottom: 12px
}

.normal-text {
    color: #343940;
    font-size: 14px;
    line-height: 20px;
}

.normal-text #rowCount.row-count {
    margin: 0px 5px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.action-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 1;
    height: 20px;
    white-space: nowrap;
    cursor: pointer;
    border: none;
    background-color: transparent;
}

.action-button [class*=icon]+span {
    margin-left: 2px;
}

.action-button>span {
    display: inline-flex;
    align-items: center;
}

.action-button:hover {
    color: #E70012;
}

.action-button:disabled {
    color: #CACACA;
}

.action-button i.icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    vertical-align: middle;
}

.action-button i.icon.add-icon {
    background: url(../image/add.png) center no-repeat;
}

.action-button:hover i.icon.add-icon {
    background: url(../image/add-red.png) center no-repeat;
}

.action-button:disabled i.icon.add-icon {
    background: url(../image/add-disabled.png) center no-repeat;
}

.action-button i.icon.delete-icon {
    background: url(../image/delete.png) center no-repeat;
}

.action-button:hover i.icon.delete-icon {
    background: url(../image/delete-red.png) center no-repeat;
}

.action-button:disabled i.icon.delete-icon {
    background: url(../image/delete-disabled.png) center no-repeat;
}

h2 {
    color: #d32f2f;
}

/* 修改后的表格容器
.table-container {
    position: relative;
    max-height: 400px;
    border: 1px solid #ddd;
    overflow: hidden;
    margin-bottom:20px
} */
.table-container {
    position: relative;
    border: 1px solid #ddd;
    overflow: hidden;
    margin-bottom: 20px;
}

/* 表头固定 */
.table-header-fixed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    background: #F6F6F6;
}

/* 表体容器 */
/* .table-body-container {
    height: 100%;
    overflow-y: auto;
    padding-top: 52px;
    box-sizing: border-box;
} */
/* 表体容器 */
.table-body-container {
    max-height: 400px;
    overflow-y: auto;
    padding-top: 52px;
    /* 表头高度 */
    box-sizing: border-box;
}

/* 表格样式 */
.table-box {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

/* 表头样式 */
.table-header-fixed thead tr {
    height: 52px;
}

.table-header-fixed th {
    padding: 11px 0;
    border-bottom: 1px solid #ddd;
    position: relative
}

/* 表体样式 */
.table-body-container tbody tr {
    border-top: 1px solid #ddd;
}

.table-body-container td {
    padding: 11px 0;
}

.table-body-container td:last-child {
    border-right: none;
}

/* 列宽设置 */
.checkbox-column {
    width: 60px;
}

.table-box th:nth-child(2),
.table-box td:nth-child(2) {
    width: 150px;
}

.table-box th:nth-child(3),
.table-box td:nth-child(3) {
    width: 160px;
}

.table-box th:nth-child(4),
.table-box td:nth-child(4) {
    width: 180px;
}

.table-box th:nth-child(5),
.table-box td:nth-child(5) {
    width: 120px;
}

.table-box th:nth-child(6),
.table-box td:nth-child(6) {
    width: 120px;
}

.action-column {
    width: 144px;
}

/* 单元格样式 */
.table-cell {
    padding: 0 11px;
}

/* 表头竖线分隔 */
.table-box thead tr th:not(:first-child)>.table-cell:after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 1px;
    height: 16px;
    margin-top: -8px;
    background-color: #DCDCDC;
}

/* 表体hover效果 */
.table-body-container tbody tr:hover {
    background-color: #F6F6F6;
}

/* 空行提示 */
.empty-row td {
    width: 100%;
    text-align: center;
    color:#343940
}

/* 表单元素样式 */
.table-box input,
.table-box select {
    height: 30px;
    border: 1px solid #DCDCDC;
    border-radius: 2px;
    font-size: 14px;
    padding: 0 8px;
    transition: border-color 0.3s;
}

.table-box input:focus,
.table-box select:focus {
    outline: none;
}

.table-box input {
    width: 60%
}

.table-box select {
    width: 90%
}

/* 复选框样式 */
.custom-checkbox input {
    display: none;
}

label.custom-checkbox {
    margin-bottom: 0;
    margin-left: 19px;
}

.custom-checkbox .checkmark {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 1px solid #E5E5E5;
    background-color: white;
    border-radius: 4px;
    position: relative;
    cursor: pointer;
    vertical-align: middle;
}

.custom-checkbox input:checked+.checkmark {
    border-color: #E70012;
}

.custom-checkbox .checkmark::after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: 1px solid #E70012;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked+.checkmark::after {
    display: block;
}

/* 计算区域样式 */
#calculater-classify {
    width: 100%;
    margin-top: 20px;
    margin-bottom: 0;
}

.last-classify#calculater-classify li {
    transition: none !important;
}

#calculater-classify .container {
    width: 100%;
    padding-right: 0;
    padding-left: 0
}

.calculater-box {
    background-color: white;
    height: 446px;
    border: 1px solid #E5E5E5;
    text-align: center;
}

.calculate-form {
    display: block;
    margin: 50px auto 0;
    width: 600px;
    color: #343940;
    font-size: 14px;
    position: relative;
}

.form-floor {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.form-floor.index {
    align-items: flex-start
}

.form-floor .title {
    letter-spacing: 0;
    line-height: 20px;
    min-width: 90px;
    width: 90px;
    text-align: right;
    margin-right: 12px;
    flex-shrink: 0;
}

.calculate-form input,
.calculate-form select {
    width: 160px;
    height: 30px;
    box-sizing: border-box;
}

.calculate-form .display-caculate-index {
    vertical-align: top;
    min-width: auto;
    display: inline-block;
    vertical-align: top;
    background: #F6F6F6;
    padding: 32px 24px;
    box-sizing: border-box;
    white-space: nowrap;
}

.calculate-form .display-caculate-index .num,
.calculate-form .display-caculate-index .unit {
    font-size: 40px;
    letter-spacing: 0;
    line-height: 56px;
    font-weight: 600;
    text-align: right;
}

.calculate-form .display-caculate-index .unit {
    margin-left: 6px;
}

/* 弹窗样式 */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

#myModal .delete-dialog.modal {
    position: fixed !important;
    color: #343940;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    background-color: #fff !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
    z-index: 1001 !important;
    display: block;
    width: 440px;
    height: 180px;
    padding: 32px 30px 30px 36px;
}

#myModal .delete-dialog.modal .title {
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    text-align: left;
    margin-bottom: 12px;
}

#myModal .delete-dialog.modal .content {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    text-align: left;
    margin-bottom: 34px;
}

#myModal .delete-dialog.modal .btn-box {
    text-align: right;
}

.btn-box .button {
    padding: 5px 21px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    box-sizing: content-box;
}

.btn-box .button .text {
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
}

.btn-box .button+.button {
    margin-left: 8px;
}

.button.cancel {
    padding: 4px 20px;
    background: #FFFFFF;
    border: 1px solid #DCDCDC;
}

.button.confirm {
    background: linear-gradient(270deg, #FC6704 0%, #EA150E 100%);
    color: white;
}

/* 解决滚动条抖动问题 */
.table-body-container::-webkit-scrollbar {
    width: 8px;
}

.table-body-container::-webkit-scrollbar-track {
    background: transparent;
}

.table-body-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-body-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}