/* 耗材推荐页面样式 */

/* 搜索区域样式 */
.box-recommendation-search-form {
    background: #ffffff;
    border: 1px solid #e5e6eb;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* 组合搜索框样式 */
.box-recommendation-search-field .box-recommendation-search-combined {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e6eb;
    width: 100%;
    min-width: 200px;
}

.box-recommendation-search-field .box-recommendation-search-type {
    width: 100px;
    height: 36px;
    border: none;
    border-right: 1px solid #e5e6eb;
    border-radius: 0;
    padding: 0 12px;
    cursor: pointer;
    margin: 0;
    background-color: #ffffff;
    font-size: 13px;
}

.box-recommendation-search-field .box-recommendation-search-value {
    flex: 1;
    border: none;
    border-radius: 0;
    height: 36px;
    background: #ffffff;
    padding: 0 12px;
    margin: 0;
    font-size: 13px;
}

.box-recommendation-search-field .box-recommendation-search-type:focus,
.box-recommendation-search-field .box-recommendation-search-value:focus {
    outline: none;
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.box-recommendation-search-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.box-recommendation-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.box-recommendation-search-label {
    font-size: 13px;
    font-weight: 500;
    color: #1d2129;
    min-width: 80px;
}

.box-recommendation-search-input {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
    box-sizing: border-box;
}

.box-recommendation-search-select {
    width: 100%;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    vertical-align: middle;
    box-sizing: border-box;
}

/* 范围搜索样式 */
.box-recommendation-search-range {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.box-recommendation-search-range-input {
    flex: 1;
    min-width: 80px;
}

.box-recommendation-range-separator {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

/* 列表区域样式 - 与出库单策略页面保持一致 */
.box-recommendation-list {
    height: calc(100vh - 300px);
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* 列表头部样式 */
.box-recommendation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e5e7eb;
}

.box-recommendation-title {
    font-size: 16px;
    font-weight: 500;
    color: #303133;
}

.box-recommendation-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 按钮样式 - 与出库单策略页面保持一致 */
.box-recommendation-btn {
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f5f5f5;
    color: #4e5969;
    border: 1px solid #d9d9d9;
}

.box-recommendation-btn:hover {
    background-color: #e6e6e6;
}

/* 主要按钮 */
.box-recommendation-btn-primary {
    background-color: #0052d9;
    color: white;
    border-color: #0052d9;
}

.box-recommendation-btn-primary:hover {
    background-color: #003bb3;
    border-color: #003bb3;
}

/* 图标样式 */
.box-recommendation-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 表格容器样式 */
.box-recommendation-table-container {
    flex: 1;
    overflow: auto;
    background: #fff;
}

/* 分页样式 - 与出库单策略页面保持一致 */
.box-recommendation-pagination {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-top: 1px solid #e5e7eb;
}

.box-recommendation-pagination-info {
    font-size: 14px;
    color: #4b5563;
}

.box-recommendation-pagination-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.box-recommendation-pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.box-recommendation-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.box-recommendation-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.box-recommendation-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #4b5563;
}

.box-recommendation-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.box-recommendation-page-size-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

/* 表格样式 - 与出库单策略页面保持一致 */
.box-recommendation-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.box-recommendation-table th {
    background: #f8f9fa;
    padding: 8px 12px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
    font-size: 13px;
}

.box-recommendation-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.box-recommendation-table tbody tr:hover {
    background: #f8f9fa;
}

.box-recommendation-table tbody tr:last-child td {
    border-bottom: none;
}

/* 表格行选中状态 */
.box-recommendation-table tbody tr {
    cursor: pointer;
}

.box-recommendation-table tbody tr:hover {
    background-color: #f8f9fa;
}

.box-recommendation-table tbody tr.selected {
    background-color: #e6f7ff !important;
    border-left: 4px solid #1890ff !important;
}

.box-recommendation-table tbody tr.selected:hover {
    background-color: #d1ecf1 !important;
}

/* 操作列样式 */
.box-recommendation-action-cell {
    display: flex;
    gap: 8px;
}

.box-recommendation-action-link {
    color: #0052d9;
    text-decoration: none;
    cursor: pointer;
    font-size: 12px;
}

.box-recommendation-action-link:hover {
    text-decoration: underline;
}

.box-recommendation-action-link.delete {
    color: #e34d59;
}

/* 确保表格单元格内的操作链接在选中行中正常显示 */
.box-recommendation-table tbody tr.selected .box-recommendation-action-link {
    position: relative;
    z-index: 1;
}

/* 排序表头样式 */
.box-recommendation-sortable {
    cursor: pointer;
    position: relative;
    user-select: none;
}

.box-recommendation-sortable:hover {
    background-color: #f5f5f5;
}

.box-recommendation-sort-asc {
    background-color: #e6f7ff;
}

.box-recommendation-sort-desc {
    background-color: #fff2e8;
}

.box-recommendation-sort-indicator {
    margin-left: 4px;
    color: #1890ff;
    font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .box-recommendation-table {
        font-size: 12px;
    }
    
    .box-recommendation-table th,
    .box-recommendation-table td {
        padding: 8px 12px;
    }
}

/* 表格自适应宽度优化 */
.box-recommendation-table {
    table-layout: auto; /* 自动列宽 */
    width: 100%;
}

.box-recommendation-table th,
.box-recommendation-table td {
    white-space: nowrap; /* 防止文字换行 */
    overflow: hidden; /* 隐藏溢出内容 */
    text-overflow: ellipsis; /* 显示省略号 */
    min-width: 80px; /* 最小宽度 */
    max-width: 200px; /* 最大宽度 */
}

/* 特定列宽设置 */
.box-recommendation-table th:nth-child(1),
.box-recommendation-table td:nth-child(1) {
    width: 12%; /* 推荐编码 */
}

.box-recommendation-table th:nth-child(2),
.box-recommendation-table td:nth-child(2) {
    width: 8%; /* 使用次数 */
}

.box-recommendation-table th:nth-child(3),
.box-recommendation-table td:nth-child(3) {
    width: 10%; /* 耗材编码 */
}

.box-recommendation-table th:nth-child(4),
.box-recommendation-table td:nth-child(4) {
    width: 12%; /* 耗材名称 */
}

.box-recommendation-table th:nth-child(5),
.box-recommendation-table td:nth-child(5) {
    width: 8%; /* 耗材重量 */
}

.box-recommendation-table th:nth-child(6),
.box-recommendation-table td:nth-child(6) {
    width: 8%; /* 耗材体积 */
}

.box-recommendation-table th:nth-child(7),
.box-recommendation-table td:nth-child(7) {
    width: 8%; /* 货品体积 */
}

.box-recommendation-table th:nth-child(8),
.box-recommendation-table td:nth-child(8) {
    width: 10%; /* 货品信息 */
}

.box-recommendation-table th:nth-child(9),
.box-recommendation-table td:nth-child(9) {
    width: 10%; /* 关联出库单 */
}

.box-recommendation-table th:nth-child(10),
.box-recommendation-table td:nth-child(10) {
    width: 8%; /* 指定耗材 */
}

.box-recommendation-table th:nth-child(11),
.box-recommendation-table td:nth-child(11) {
    width: 6%; /* 数据来源 */
}

/* 字段居中：使用次数(2)、耗材重量(5)、耗材体积(6)、货品体积(7)、货品信息(8)、关联出库单(9)、指定耗材(10)、数据来源(11) */
.box-recommendation-table th:nth-child(2),
.box-recommendation-table td:nth-child(2),
.box-recommendation-table th:nth-child(5),
.box-recommendation-table td:nth-child(5),
.box-recommendation-table th:nth-child(6),
.box-recommendation-table td:nth-child(6),
.box-recommendation-table th:nth-child(7),
.box-recommendation-table td:nth-child(7),
.box-recommendation-table th:nth-child(8),
.box-recommendation-table td:nth-child(8),
.box-recommendation-table th:nth-child(9),
.box-recommendation-table td:nth-child(9),
.box-recommendation-table th:nth-child(10),
.box-recommendation-table td:nth-child(10),
.box-recommendation-table th:nth-child(11),
.box-recommendation-table td:nth-child(11) {
    text-align: center;
}

/* 弹窗基础样式 - 统一使用 box-recommendation-modal 前缀 */
.box-recommendation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.box-recommendation-modal-container {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 1200px;
    height: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 弹窗头部 */
.box-recommendation-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.box-recommendation-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.box-recommendation-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.box-recommendation-modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

/* 弹窗主体 */
.box-recommendation-modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

/* 列表固定高度容器 */
.box-recommendation-modal-list-wrapper {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
}

/* 表格容器 */
.box-recommendation-modal-table-container {
    flex: 1;
    overflow: auto;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fff;
}

/* 弹窗表格样式 */
.box-recommendation-modal-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.box-recommendation-modal-data-table th,
.box-recommendation-modal-data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}

.box-recommendation-modal-data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.box-recommendation-modal-data-table tbody tr:hover {
    background: #f8f9fa;
}

.box-recommendation-modal-data-table tbody tr:last-child td {
    border-bottom: none;
}

/* 弹窗分页样式 */
.box-recommendation-modal-pagination {
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #f8f9fa;
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-recommendation-modal-pagination .box-recommendation-modal-pagination-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.box-recommendation-modal-pagination-btn {
    padding: 6px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    color: #374151;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.box-recommendation-modal-pagination-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.box-recommendation-modal-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.box-recommendation-modal-page-info {
    font-size: 14px;
    color: #666;
}

.box-recommendation-modal-page-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
}

.box-recommendation-modal-page-size-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 13px;
    cursor: pointer;
    outline: none;
}

.box-recommendation-modal-page-size-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.box-recommendation-modal-table-summary {
    font-size: 14px;
    color: #666;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .box-recommendation-modal-container {
        width: 95%;
        height: 500px;
        max-height: 90vh;
    }
    
    .box-recommendation-modal-list-wrapper {
        padding: 12px 16px;
    }
    
    .box-recommendation-modal-data-table {
        font-size: 12px;
    }
    
    .box-recommendation-modal-data-table th,
    .box-recommendation-modal-data-table td {
        padding: 8px 12px;
    }
    
    .box-recommendation-modal-pagination-inner {
        flex-direction: column;
        gap: 8px;
    }
    
    .box-recommendation-modal-table-summary {
        margin-left: 0;
    }
}

/* 手动指定耗材弹窗样式 */
.box-recommendation-manual-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
}

.box-recommendation-manual-modal-container {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.box-recommendation-manual-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.box-recommendation-manual-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.box-recommendation-manual-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.box-recommendation-manual-modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

.box-recommendation-manual-modal-body {
    flex: 1;
    padding: 24px;
    overflow: auto;
    background: #fff;
}

.box-recommendation-manual-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.box-recommendation-manual-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fafafa;
    border-radius: 8px;
    padding: 16px;
    border: 1px solid #f0f0f0;
}

.box-recommendation-manual-label {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    margin-bottom: 8px;
}

.box-recommendation-manual-display {
    padding: 12px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    font-size: 14px;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.box-recommendation-manual-select {
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    outline: none;
    cursor: pointer;
}

.box-recommendation-manual-select:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.box-recommendation-manual-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}

.box-recommendation-manual-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.box-recommendation-manual-btn.cancel {
    background: #fff;
    color: #333;
    border: 1px solid #d9d9d9;
}

.box-recommendation-manual-btn.cancel:hover {
    background: #f5f5f5;
    border-color: #b8b8b8;
}

.box-recommendation-manual-btn.primary {
    background: #0052d9;
    color: #fff;
}

.box-recommendation-manual-btn.primary:hover {
    background: #0046c0;
}

/* 优化手动指定耗材选择器样式 */
.box-recommendation-manual-selector {
    position: relative;
}

.box-recommendation-manual-select-display {
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
}

.box-recommendation-manual-select-display:hover {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.1);
}

.box-recommendation-manual-select-display:focus {
    border-color: #0052d9;
    box-shadow: 0 0 0 2px rgba(0, 82, 217, 0.2);
}

.box-recommendation-manual-selected-text {
    font-size: 14px;
    color: #666;
    flex: 1;
}

.box-recommendation-manual-selected-text:not(:empty) {
    color: #333;
    font-weight: 500;
}

.box-recommendation-manual-select-icon {
    color: #999;
    font-size: 12px;
}

.box-recommendation-manual-select-display:hover .box-recommendation-manual-select-icon {
    color: #0052d9;
}

/* 响应式适配 */
@media (max-width: 768px) {
    .box-recommendation-manual-modal-container {
        width: 95%;
        max-height: 90vh;
        margin: 20px;
    }
    
    .box-recommendation-manual-modal-body {
        padding: 16px;
    }
    
    .box-recommendation-manual-modal-footer {
        padding: 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .box-recommendation-manual-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== 新增耗材推荐弹窗样式 ==================== */
/* 弹窗基础样式 */
.box-recommendation-add-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.box-recommendation-add-modal-container {
    background: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 弹窗头部 */
.box-recommendation-add-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.box-recommendation-add-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.box-recommendation-add-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.box-recommendation-add-modal-close:hover {
    background: #f5f5f5;
    color: #666;
}

/* 弹窗主体 */
.box-recommendation-add-modal-body {
    flex: 1;
    overflow: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 货品选择区域 */
.box-recommendation-add-product-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.box-recommendation-add-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.box-recommendation-add-section-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.box-recommendation-add-clear-btn {
    padding: 4px 12px;
    background: #fff;
    border: 1px solid #e34d59;
    color: #e34d59;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.box-recommendation-add-clear-btn:hover {
    background: #fcebec;
}

/* 列表固定高度容器 */
.box-recommendation-add-list-container {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    height: 280px;
    display: flex;
    flex-direction: column;
}

/* 表格样式 */
.box-recommendation-add-table-wrapper {
    flex: 1;
    overflow-y: auto;
}

.box-recommendation-add-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.box-recommendation-add-data-table thead {
    position: sticky;
    top: 0;
    z-index: 1;
}

.box-recommendation-add-data-table th {
    background: #f5f5f5;
    padding: 10px 8px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    white-space: nowrap;
}

.box-recommendation-add-data-table td {
    padding: 8px;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.box-recommendation-add-data-table tbody tr:hover {
    background: #f8f9fa;
}

.box-recommendation-add-empty-row {
    background: #fafafa;
}

.box-recommendation-add-empty-cell {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 数量控制 */
.box-recommendation-add-quantity-control {
    display: flex;
    align-items: center;
    gap: 4px;
}

.box-recommendation-add-quantity-btn {
    width: 24px;
    height: 24px;
    border: 1px solid #d9d9d9;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
    transition: all 0.2s ease;
}

.box-recommendation-add-quantity-btn:hover {
    border-color: #0052d9;
    color: #0052d9;
}

.box-recommendation-add-quantity-input {
    width: 50px;
    height: 24px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
    padding: 0 4px;
}

.box-recommendation-add-quantity-input:focus {
    outline: none;
    border-color: #0052d9;
}

/* 删除按钮 */
.box-recommendation-add-btn-delete {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.box-recommendation-add-btn-delete:hover {
    opacity: 1;
}

/* 列表底部工具栏 - 统计与操作融合 */
.box-recommendation-add-list-toolbar {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* 内联选择货品按钮 */
.box-recommendation-add-select-btn-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #fff;
    color: #0052d9;
    border: 1px solid #0052d9;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.box-recommendation-add-select-btn-inline:hover {
    background: #0052d9;
    color: #fff;
}

.box-recommendation-add-select-btn-inline .btn-icon {
    font-size: 14px;
    font-weight: 600;
}

/* 工具栏分隔线 */
.box-recommendation-add-toolbar-divider {
    width: 1px;
    height: 20px;
    background: #d9d9d9;
}

/* 统计项 */
.box-recommendation-add-list-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.box-recommendation-add-list-stat-label {
    font-size: 13px;
    color: #666;
}

.box-recommendation-add-list-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: #0052d9;
}

.box-recommendation-add-list-stat-unit {
    font-size: 12px;
    color: #999;
}

/* 商品总数 - 靠右显示 */
.box-recommendation-add-list-stat-total {
    margin-left: auto;
    font-size: 13px;
    color: #666;
    padding-left: 12px;
    border-left: 1px solid #e0e0e0;
}

.box-recommendation-add-list-stat-total span {
    color: #0052d9;
    font-weight: 600;
}

/* 耗材选择区域 */
.box-recommendation-add-consumable-section {
    background: #fff;
    border-radius: 6px;
    padding: 16px;
    border: 1px solid #e0e0e0;
}

.box-recommendation-add-consumable-form {
    margin-top: 12px;
}

.box-recommendation-add-form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.box-recommendation-add-form-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

.box-recommendation-add-required {
    color: #e34d59;
}

.box-recommendation-add-consumable-selector {
    position: relative;
}

.box-recommendation-add-selector-display {
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 40px;
    transition: all 0.2s ease;
}

.box-recommendation-add-selector-display:hover {
    border-color: #0052d9;
}

.box-recommendation-add-selector-text {
    font-size: 14px;
    color: #999;
    flex: 1;
}

.box-recommendation-add-selector-display.has-selection .box-recommendation-add-selector-text {
    color: #333;
}

.box-recommendation-add-selector-icon {
    color: #999;
    font-size: 12px;
}

.box-recommendation-add-consumable-info {
    margin-top: 8px;
    padding: 8px 12px;
    background: #e6f7ff;
    border-radius: 4px;
    font-size: 13px;
    color: #0052d9;
}

.box-recommendation-add-consumable-name {
    font-weight: 600;
}

.box-recommendation-add-consumable-specs {
    margin-left: 8px;
    color: #666;
}

/* 弹窗底部 */
.box-recommendation-add-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
    border-radius: 0 0 8px 8px;
}

.box-recommendation-add-modal-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.box-recommendation-add-modal-btn.cancel {
    background: #fff;
    color: #333;
    border-color: #d9d9d9;
}

.box-recommendation-add-modal-btn.cancel:hover {
    background: #f5f5f5;
    border-color: #b8b8b8;
}

.box-recommendation-add-modal-btn.primary {
    background: #0052d9;
    color: #fff;
}

.box-recommendation-add-modal-btn.primary:hover {
    background: #0046c0;
}

.box-recommendation-add-modal-btn.primary:disabled {
    background: #d9d9d9;
    cursor: not-allowed;
}


/* 响应式适配 */
@media (max-width: 768px) {
    .box-recommendation-add-modal-container {
        width: 95%;
        max-height: 90vh;
    }
    
    .box-recommendation-add-modal-body {
        padding: 16px;
    }

    .box-recommendation-add-stats-content {
        flex-direction: column;
        gap: 8px;
    }

    .box-recommendation-add-data-table {
        font-size: 12px;
    }
    .box-recommendation-add-data-table th,
    .box-recommendation-add-data-table td {
        padding: 6px 4px;
    }
    .box-recommendation-add-modal-footer {
        flex-direction: column;
        padding: 16px;
    }

    .box-recommendation-add-modal-btn {
        width: 100%;
        justify-content: center;
    }
}
