/* other_cost_records.css v1.0.0 */
.filter-bar {
    display: flex; align-items: flex-end; gap: 16px;
    margin-bottom: 16px; flex-wrap: wrap;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-group label { font-size: 13px; font-weight: 600; color: #555; }
.filter-input { width: 180px; }
.loader { text-align: center; padding: 40px; color: #999; }
.loader-spinner {
    width: 32px; height: 32px; border: 3px solid #e7eaec;
    border-top-color: #1ab394; border-radius: 50%;
    animation: spin 0.8s linear infinite; margin: 0 auto 10px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-tip { text-align: center; padding: 40px; color: #999; font-size: 14px; }

.record-table {
    width: 100%; border-collapse: collapse; font-size: 14px; min-width: 700px;
}
.record-table thead th {
    background: #f5f5f5; border-bottom: 2px solid #e7eaec;
    padding: 10px 8px; text-align: center; font-weight: 600; white-space: nowrap;
}
.record-table tbody td {
    padding: 8px; text-align: center; border-bottom: 1px solid #e7eaec;
}
.record-table tbody tr:nth-child(even) { background: #f9f9f9; }
.record-table tbody tr:hover { background: #f0f0f0; }

@media (max-width: 1024px) {
    .filter-bar { flex-direction: column; }
    .filter-input { width: 100%; box-sizing: border-box; }
    .table_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .record-table { min-width: 600px; font-size: 13px; }
}

/* ==================== 弹窗样式（精美版） ==================== */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.55); z-index: 9999;
    display: none; align-items: center; justify-content: center;
    animation: fadeInOverlay 0.2s ease;
}
@keyframes fadeInOverlay { from { opacity:0; } to { opacity:1; } }
@keyframes slideInBox { from { opacity:0; transform:translateY(-20px) scale(0.97); } to { opacity:1; transform:translateY(0) scale(1); } }

.modal-box {
    background: #fff; border-radius: 12px; max-width: 90%; max-height: 85%;
    overflow-y: auto; 
    box-shadow: 0 8px 40px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.08);
    animation: slideInBox 0.25s ease;
}
.modal-box::-webkit-scrollbar { width: 6px; }
.modal-box::-webkit-scrollbar-track { background: transparent; }
.modal-box::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 3px; }
.modal-box::-webkit-scrollbar-thumb:hover { background: #b0b0b0; }

.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px 12px 0 0;
}
.modal-title {
    font-size: 16px; font-weight: 700; color: #fff;
    letter-spacing: 0.5px;
    display: flex; align-items: center; gap: 8px;
}
.modal-title::before {
    content: '';
    display: inline-block;
    width: 4px; height: 18px;
    background: rgba(255,255,255,0.7);
    border-radius: 2px;
}
.modal-close {
    background: rgba(255,255,255,0.15);
    border: none; width: 32px; height: 32px; border-radius: 50%;
    cursor: pointer; color: #fff; padding: 0; line-height: 1;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.3); }
.modal-close svg { width: 18px; height: 18px; }

.modal-body { padding: 24px; }

.modal-footer {
    display: flex; justify-content: flex-end; gap: 10px;
    padding: 14px 24px; border-top: 1px solid #eee;
    background: #fafafa;
    border-radius: 0 0 12px 12px;
}

/* ==================== 详情表格样式 ==================== */
.detail-section {
    background: #fff;
}
.detail-table {
    width: 100%; border-collapse: separate; border-spacing: 0;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    overflow: hidden;
}
.detail-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: top; font-size: 14px;
    color: #333;
}
.detail-table tr:last-child td { border-bottom: none; }
.detail-table td:first-child {
    width: 90px; font-weight: 600; color: #666;
    white-space: nowrap; background: #f8f9fb;
}
.detail-table td:last-child {
    color: #333;
}

/* 详情表格内的订单卡片 */
.detail-table .order-card {
    border: 1px solid #e0e4ea;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #fafbfc;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.detail-table .order-card-header {
    background: #f0f2f5;
    padding: 8px 14px;
    font-size: 13px;
    color: #444;
    border-bottom: 1px solid #e0e4ea;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.detail-table .order-card-header span b {
    color: #333;
}
.detail-table .order-card-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.detail-table .order-card-table thead th {
    background: #f5f6f8;
    padding: 6px 10px;
    text-align: center;
    border-bottom: 1px solid #e0e4ea;
    font-weight: 600;
    color: #555;
    font-size: 12px;
}
.detail-table .order-card-table tbody td {
    padding: 6px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
    background: transparent;
    font-size: 13px;
}
.detail-table .order-card-table tbody tr:hover td {
    background: #f8f9fb;
}
.detail-table .order-card-table tbody tr:last-child td {
    border-bottom: none;
}

/* 详情标签标题 */
.detail-section-title {
    font-weight: 700;
    color: #444;
    font-size: 15px;
    margin-bottom: 10px;
    padding: 0 0 8px;
    border-bottom: 2px solid #667eea;
    display: inline-block;
}

/* 成本金额高亮 */
.cost-highlight {
    color: #e74c3c;
    font-weight: 700;
    font-size: 16px;
}

/* 样品图片 */
.detail-sample-img {
    max-width: 160px; max-height: 160px;
    border-radius: 6px;
    border: 1px solid #e8ecf1;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

/* 关闭按钮 */
.btn-default {
    display: inline-block;
    padding: 7px 18px;
    border: 1px solid #d0d5dd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    transition: all 0.15s;
}
.btn-default:hover {
    background: #f5f5f5;
    border-color: #b0b5bd;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
