/* 创建盘点订单页面样式 */

/* 订单详情查看模态框样式 */
.order-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.order-info-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.order-info-section h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
}

.order-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.order-info-item {
    display: flex;
    flex-direction: column;
}

.order-info-label {
    font-weight: bold;
    color: #6c757d;
    font-size: 14px;
    margin-bottom: 5px;
}

.order-info-value {
    color: #495057;
    font-size: 16px;
    padding: 8px 12px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    min-height: 38px;
    display: flex;
    align-items: center;
}

.pandian-detail-section {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
}

.pandian-detail-section h3 {
    margin-top: 0;
    color: #495057;
    border-bottom: 2px solid #28a745;
    padding-bottom: 10px;
}

.pandian-detail-content {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.pandian-detail-content.loading {
    color: #6c757d;
    font-style: italic;
}

.pandian-detail-content.empty {
    color: #dc3545;
    font-weight: bold;
}

.pandian-detail-content.success {
    color: #28a745;
}

/* 表格容器样式 */
.pandian-table-container {
    width: 100%;
    overflow-x: auto;
    margin-top: 15px;
}

.pandian-table-container table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.pandian-table-container th,
.pandian-table-container td {
    border: 1px solid #dee2e6;
    padding: 12px;
    text-align: left;
}

.pandian-table-container th {
    background: #f8f9fa;
    font-weight: bold;
    color: #495057;
}

.pandian-table-container tr:nth-child(even) {
    background: #f8f9fa;
}

.pandian-table-container tr:hover {
    background: #e9ecef;
}

/* 差异数量样式 */
.difference-positive {
    color: #28a745;
    font-weight: bold;
}

.difference-negative {
    color: #dc3545;
    font-weight: bold;
}

.difference-zero {
    color: #6c757d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .order-detail-container {
        padding: 10px;
    }
    
    .order-info-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .order-info-section,
    .pandian-detail-section {
        padding: 15px;
    }
}