/* list_product_for_select.css - 选择产品页面的样式 */

/* 产品选择表格样式 */
.product-select-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0;
}

.product-select-table th,
.product-select-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.product-select-table th {
    background-color: #f2f2f2;
    font-weight: bold;
}

/* 产品选择项样式 */
.product-item {
    cursor: pointer;
    transition: background-color 0.3s;
}

.product-item:hover {
    background-color: #f5f5f5;
}

.product-item.selected {
    background-color: #e6f7ff;
    border-left: 3px solid #1890ff;
}

/* 搜索框样式 */
.search-container {
    margin: 15px 0;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.search-input {
    width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 仓库选择器样式 */
.warehouse-selector {
    margin: 10px 0;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.warehouse-select {
    width: 250px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* 分页样式 */
.pagination-container {
    margin: 20px 0;
    text-align: center;
}

.pagination {
    display: inline-block;
}

.pagination a {
    color: #333;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
    border-radius: 4px;
}

.pagination a.active {
    background-color: #1890ff;
    color: white;
    border: 1px solid #1890ff;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-input {
        width: 100%;
    }
    
    .warehouse-select {
        width: 100%;
    }
    
    .product-select-table {
        font-size: 12px;
    }
    
    .product-select-table th,
    .product-select-table td {
        padding: 6px 4px;
    }
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误提示样式 */
.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    border: 1px solid #f44336;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* 成功提示样式 */
.success-message {
    color: #388e3c;
    background-color: #e8f5e8;
    border: 1px solid #4caf50;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}

/* 页面主体样式 */
body {
    margin: 0;
    padding: 20px;
    background-color: #f5f7fa;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.container {
    margin: 0 auto;
}

/* 搜索面板样式 */
.search-panel {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 300px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: #4a90e2;
}

/* 表格容器样式 */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
    overflow-x: auto;
}

/* 数据表格样式 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background-color: #f8f9fa;
    color: #333;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
    white-space: nowrap;
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #e9ecef;
    color: #555;
    vertical-align: middle;
    white-space: nowrap;
}

.data-table tr:hover {
    background-color: #f8f9fa;
}

/* 分页样式 */
#div_Page {
    margin-top: 20px;
    text-align: center;
}