/* other_application_audit.css v1.0.0 */

/* ===== 状态筛选 ===== */
.status-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.status-tabs .tab-item {
    padding: 6px 16px;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    color: #555;
    background: #f5f5f5;
    border: 1px solid #e7eaec;
    transition: all 0.15s;
}
.status-tabs .tab-item:hover { background: #e8e8e8; }
.status-tabs .tab-item.active { background: #1ab394; color: #fff; border-color: #1ab394; }

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

/* ===== 状态 ===== */
.status-pending { color: #f39c12; font-weight: 600; }
.status-approved { color: #1ab394; font-weight: 600; }
.status-rejected { color: #e74c3c; font-weight: 600; }

.btn-audit {
    background-color: #f39c12;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-audit:hover { background-color: #e67e22; }
.btn-view {
    background-color: #1ab394;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 5px 12px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-view:hover { background-color: #169c7d; }

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.15s ease;
}
.modal-overlay[style*="display: flex"] { display: flex !important; }
.modal-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    animation: modalSlideUp 0.2s ease;
    overflow: hidden;
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #e7eaec;
}
.modal-title { font-size: 16px; font-weight: 600; color: #333; }
.modal-close {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border: none; background: transparent;
    border-radius: 50%; cursor: pointer; color: #999;
}
.modal-close:hover { background: #f0f0f0; color: #333; }
.modal-close svg { width: 16px; height: 16px; }
.modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.modal-footer {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 8px; padding: 12px 20px; border-top: 1px solid #e7eaec;
}

.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 4px; }
.form-control {
    width: 100%; padding: 8px 10px;
    border: 1px solid #e5e6e7; border-radius: 4px;
    font-size: 14px; box-sizing: border-box;
}
.form-control:focus { border-color: #1ab394; outline: none; }
textarea.form-control { resize: vertical; }

/* ===== 详情 ===== */
.detail-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; }
.detail-table td {
    padding: 8px 10px; border-bottom: 1px solid #eee;
    font-size: 14px;
}
.detail-table td:first-child { font-weight: 600; color: #555; width: 100px; }
.detail-table .content-cell { text-align: left; color: #333; }

/* ===== 订单卡片样式（与 other_application.css 统一） ===== */
.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);
}
.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;
}
.order-card-header span b { color: #333; }
.order-card-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.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;
}
.order-card-table tbody td {
    padding: 6px 10px;
    text-align: center;
    border-bottom: 1px solid #f0f2f5;
    background: transparent;
    font-size: 13px;
}
.order-card-table tbody tr:hover td { background: #f8f9fb; }
.order-card-table tbody tr:last-child td { border-bottom: none; }

.detail-section-title {
    font-weight: 700;
    color: #444;
    font-size: 15px;
    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);
    cursor: pointer;
}

/* ===== 加载器 ===== */
.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; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== 移动端 ===== */
@media (max-width: 1024px) {
    .table_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .audit-table { min-width: 600px; font-size: 13px; }
    .modal-overlay { align-items: flex-end; }
    .modal-box {
        max-width: 100vw; max-height: 90vh; width: 100%;
        border-radius: 12px 12px 0 0;
    }
    .modal-body { padding: 14px; }
}
