/* ==================== 多价配置管理弹窗独立样式 ==================== */
/* 命名空间: mpm- (multi-price-modal) 避免样式冲突 */

/* ========== 主弹窗容器 ========== */
.multi-price-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.multi-price-modal-container {
    width: 95%;
    max-width: 1300px;
    height: 85vh;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    animation: mpm-fade-in 0.3s ease-out;
    border: 1px solid #f0f0f0;
}

@keyframes mpm-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ========== 弹窗头部 ========== */
.multi-price-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #ffffff;
    flex-shrink: 0;
}

.multi-price-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #1d2129;
    display: flex;
    align-items: center;
    line-height: 1.5;
    margin: 0;
}

.multi-price-modal-close {
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #86909c;
    transition: all 0.2s ease;
    font-size: 20px;
    line-height: 1;
    padding: 0;
}

.multi-price-modal-close:hover {
    background: #f5f7fa;
    color: #4e5969;
}

/* ========== 弹窗主体 ========== */
.multi-price-modal-body {
    flex: 1;
    padding: 20px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 多价配置管理工具栏 - TDesign 风格 */
.multi-price-toolbar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 16px;
    background: #ffffff;
    padding: 16px;
    border-radius: 4px;
    flex-shrink: 0;
}

.multi-price-toolbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    width: 100%;
}

.multi-price-search-area {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    flex: 1;
}

.multi-price-search-select {
    height: 36px;
    border: 1px solid #c9cdd4;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    background-color: white;
    min-width: 120px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%2386909c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

.multi-price-search-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.multi-price-search-select:hover {
    border-color: #a6adb9;
}

.multi-price-search-input {
    height: 36px;
    border: 1px solid #c9cdd4;
    border-radius: 4px;
    padding: 0 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    min-width: 200px;
    color: #1d2129;
    background: #ffffff;
}

.multi-price-search-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.multi-price-search-input:hover {
    border-color: #a6adb9;
}

.multi-price-search-btn {
    height: 32px;
    background-color: #0052d9;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.multi-price-search-btn:hover {
    background-color: #0046c4;
}

.multi-price-add-btn {
    height: 32px;
    background-color: #0052d9;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.multi-price-add-btn:hover {
    background-color: #0046c4;
}

/* 多价配置管理表格容器 - TDesign 风格 */
.multi-price-table-container {
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    background: #ffffff;
    margin-top: 0;
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* 表格包装器，支持竖向滚动 */
.multi-price-table-wrapper {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
    /* 为滚动条预留空间，避免布局偏移 */
    padding-right: 6px;
    margin-right: -6px;
}

/* 隐形滚动条样式 - 完全隐藏但保持功能 */
.multi-price-table-wrapper::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

.multi-price-table-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.multi-price-table-wrapper::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

/* 鼠标悬停时才显示滚动条 */
.multi-price-table-wrapper:hover::-webkit-scrollbar-thumb {
    background: rgba(201, 205, 212, 0.3);
}

.multi-price-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(166, 173, 185, 0.5);
}

/* Firefox 隐形滚动条 */
.multi-price-table-wrapper {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.multi-price-table-wrapper:hover {
    scrollbar-color: rgba(201, 205, 212, 0.3) transparent;
}

.multi-price-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    table-layout: fixed;
}

/* 表格头部固定 */
.multi-price-data-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fafbfc;
}

.multi-price-data-table tbody {
    background: #ffffff;
}

.multi-price-data-table th {
    background-color: #fafbfc;
    color: #1d2129;
    font-weight: 600;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    line-height: 1.5;
}

.multi-price-data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f7f8fa;
    color: #4e5969;
    font-size: 14px;
    line-height: 1.5;
}

.multi-price-data-table tr:last-child td {
    border-bottom: none;
}

.multi-price-data-table tr:hover {
    background-color: #f5f7fa;
}

/* 多价配置管理操作按钮 - TDesign 风格 */
.multi-price-action-btn {
    background: none;
    border: none;
    color: #0052d9;
    cursor: pointer;
    margin-right: 12px;
    font-size: 14px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.multi-price-action-btn:hover {
    background-color: #f0f5ff;
    color: #0046c4;
}

.multi-price-action-btn.edit {
    color: #0052d9;
}

.multi-price-action-btn.edit:hover {
    background-color: #f0f5ff;
    color: #0046c4;
}

.multi-price-action-btn.delete {
    color: #e34d59;
}

.multi-price-action-btn.delete:hover {
    background-color: #fff2f0;
    color: #c9353f;
}

.multi-price-action-btn::before {
    font-size: 14px;
}

.multi-price-action-btn.edit::before {
    content: "✏️";
}

.multi-price-action-btn.delete::before {
    content: "🗑️";
}

/* 多价配置管理空状态 */
.multi-price-empty-state {
    text-align: center;
    padding: 40px 0;
    color: #86909c;
    background: #ffffff;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.multi-price-empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #dcdcdc;
    display: block;
}

.multi-price-empty-state div {
    font-size: 14px;
    color: #86909c;
}

/* 多价配置管理分页样式 - TDesign 风格 */
.multi-price-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    background: #ffffff;
    flex-shrink: 0;
}

.multi-price-pagination-info {
    font-size: 14px;
    color: #4e5969;
}

.multi-price-pagination-info span {
    font-weight: 500;
    color: #1d2129;
}

.multi-price-pagination-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.multi-price-pagination-btn {
    padding: 6px 16px;
    border: 1px solid #c9cdd4;
    background: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #1d2129;
    transition: all 0.2s ease;
}

.multi-price-pagination-btn:hover:not(:disabled) {
    background: #f5f7fa;
    border-color: #0052d9;
    color: #0052d9;
}

.multi-price-pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
    background: #f5f7fa;
    color: #c9cdd4;
}

.multi-price-page-size {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #4e5969;
}

.multi-price-page-size-select {
    padding: 4px 8px;
    border: 1px solid #c9cdd4;
    border-radius: 4px;
    background: #ffffff;
    font-size: 14px;
    color: #1d2129;
    cursor: pointer;
    transition: all 0.2s ease;
}

.multi-price-page-size-select:hover {
    border-color: #0052d9;
}

.multi-price-page-size-select:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* ========== 表单弹窗 ========== */
.multi-price-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2100;
}

.multi-price-form-modal .multi-price-modal-container {
    width: 90%;
    max-width: 600px;
    height: auto;
    max-height: 90vh;
}

/* 表单主体 */
.multi-price-form-modal .multi-price-modal-body {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 表单分组 */
.multi-price-form-group {
    margin-bottom: 20px;
}

.multi-price-form-group:last-child {
    margin-bottom: 0;
}

/* 表单标签 */
.multi-price-form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1d2129;
    margin-bottom: 8px;
    line-height: 1.5;
}

.multi-price-form-label .required {
    color: #e34d59;
    margin-left: 2px;
    font-weight: 600;
}

/* 表单输入框 */
.multi-price-form-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #c9cdd4;
    border-radius: 4px;
    font-size: 14px;
    color: #1d2129;
    background: #ffffff;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.multi-price-form-input:hover {
    border-color: #a6adb9;
}

.multi-price-form-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.multi-price-form-input::placeholder {
    color: #86909c;
}

.multi-price-form-input:disabled {
    background: #f5f7fa;
    color: #86909c;
    cursor: not-allowed;
}

/* 表单底部 */
.multi-price-form-footer {
    padding: 16px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
    background: #ffffff;
}

/* 表单按钮 */
.multi-price-form-btn {
    height: 32px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #c9cdd4;
    background-color: #ffffff;
    color: #1d2129;
    transition: all 0.2s ease;
    font-weight: 500;
    line-height: 30px;
    outline: none;
}

.multi-price-form-btn:hover {
    background-color: #f5f7fa;
    border-color: #a6adb9;
}

.multi-price-form-btn.primary {
    background-color: #0052d9;
    color: #ffffff;
    border-color: #0052d9;
}

.multi-price-form-btn.primary:hover {
    background-color: #0046c4;
    border-color: #0046c4;
}

.multi-price-form-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 选择器样式 - 统一风格 */
.multi-price-selector-container {
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    position: relative;
    margin-bottom: 0;
    max-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 280px;
}

.multi-price-selector-search {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding: 10px;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
    border-bottom: 1px solid #f0f0f0;
}

.multi-price-selector-search-input {
    flex: 1;
    height: 30px;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 0 10px;
    font-size: 13px;
    outline: none;
}

.multi-price-selector-search-input:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.multi-price-selector-table-wrapper {
    max-height: 320px;
    overflow-y: auto;
    flex: 1;
}

.multi-price-selector-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    table-layout: fixed;
}

.multi-price-selector-table th {
    background-color: #fafbfc;
    color: #1d2129;
    font-weight: 600;
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 1;
    font-size: 13px;
    line-height: 1.2;
}

.multi-price-selector-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #f7f8fa;
    color: #4e5969;
    font-size: 13px;
    line-height: 1.2;
}

.multi-price-selector-table tr:last-child td {
    border-bottom: none;
}

.multi-price-selector-table tr:hover {
    background-color: #f5f7fa;
}

.multi-price-selector-table tr.multi-price-selected-row {
    background-color: #ecf2fe;
}

/* 已选标签容器样式 - 统一风格 */
.multi-price-selected-container {
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    padding: 16px;
    background-color: #fafbfc;
    min-height: 80px;
    margin-top: 12px;
    flex: 0 0 auto;
    max-height: 150px;
    overflow-y: auto;
}

.multi-price-selected-label {
    font-size: 14px;
    font-weight: 600;
    color: #1d2129;
    margin-bottom: 8px;
}

.multi-price-selected-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    min-height: 40px;
}

.multi-price-selected-item {
    display: inline-flex;
    align-items: center;
    background-color: #ecf2fe;
    color: #0052d9;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.multi-price-selected-item-remove {
    margin-left: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #0052d9;
}

.multi-price-selected-item-remove:hover {
    color: #0046c4;
}

/* 多价配置表单新增样式 - TDesign 风格 */
.multi-price-form-input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.multi-price-form-input-container .multi-price-form-input {
    width: 100%;
    padding-right: 40px;
}

.multi-price-form-unit {
    position: absolute;
    right: 12px;
    color: #86909c;
    font-size: 13px;
}

/* 多价配置表单 - 选择字段样式 */
.multi-price-form-select-field {
    position: relative;
    min-height: 36px;
    border: 1px solid #c9cdd4;
    border-radius: 4px;
    padding: 8px 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
}

.multi-price-form-select-field:hover {
    border-color: #a6adb9;
}

.multi-price-form-select-field:focus-within {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.multi-price-form-placeholder {
    color: #86909c;
    font-size: 14px;
}

.multi-price-form-selected {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.multi-price-form-selected-text {
    flex: 1;
    color: #1d2129;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.multi-price-form-selected-remove {
    margin-left: 8px;
    font-size: 18px;
    color: #86909c;
    cursor: pointer;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.multi-price-form-selected-remove:hover {
    background: #f5f7fa;
    color: #4e5969;
}

/* ========== 选择字段样式 ========== */
.multi-price-form-select-field {
    position: relative;
    min-height: 36px;
    border: 1px solid #c9cdd4;
    border-radius: 4px;
    padding: 8px 12px;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.multi-price-form-select-field:hover {
    border-color: #a6adb9;
}

.multi-price-form-select-field:active {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.multi-price-form-placeholder {
    color: #86909c;
    font-size: 14px;
    user-select: none;
}

.multi-price-form-selected {
    display: none;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.multi-price-form-selected-text {
    flex: 1;
    color: #1d2129;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    user-select: none;
}

.multi-price-form-selected-remove {
    margin-left: 8px;
    font-size: 18px;
    color: #86909c;
    cursor: pointer;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.multi-price-form-selected-remove:hover {
    background: #f5f7fa;
    color: #4e5969;
}
@media (max-width: 768px) {
    .multi-price-modal-container {
        width: 95vw !important;
        margin: 20px;
    }
    
    .multi-price-toolbar-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .multi-price-search-area {
        width: 100%;
        margin-bottom: 12px;
    }
    
    .multi-price-search-select,
    .multi-price-search-input {
        min-width: 100%;
        width: 100%;
    }
    
    .multi-price-add-btn {
        width: 100%;
        justify-content: center;
    }
    
    .multi-price-modal-header {
        padding: 16px 20px;
    }
    
    .multi-price-modal-body {
        padding: 20px;
    }
    
    .multi-price-data-table th,
    .multi-price-data-table td {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .multi-price-action-btn {
        margin-right: 8px;
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .multi-price-form-modal     .multi-price-form-modal     .multi-price-form-modal .multi-price-form-container {
        width: 95vw;
        margin: 20px;
    }
    

}