/* other_application.css v1.0.0 - 其他申请页面 */

/* ===== 顶部操作栏 ===== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

/* ===== 状态标签 ===== */
.status-tabs {
    display: flex;
    gap: 4px;
}
.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;
}

/* ===== 申请表格 ===== */
.app-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 600px;
}
.app-table thead th {
    background: #f5f5f5;
    border-bottom: 2px solid #e7eaec;
    padding: 10px 8px;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
}
.app-table tbody td {
    padding: 8px;
    text-align: center;
    border-bottom: 1px solid #e7eaec;
}
.app-table tbody tr:nth-child(even) { background: #f9f9f9; }
.app-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; }
.status-withdrawn { color: #95a5a6; font-weight: 600; }

/* ===== 表格操作按钮 ===== */
.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; }

/* ===== 弹窗表单 ===== */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: #555; margin-bottom: 4px; }
.form-group .required { color: #e74c3c; }
.form-control {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e5e6e7;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.15s;
}
.form-control:focus { border-color: #1ab394; outline: none; }
textarea.form-control { resize: vertical; }

.radio-group { display: flex; gap: 16px; padding-top: 4px; }
.radio-inline { font-size: 14px; font-weight: 400; color: #333; cursor: pointer; }

/* ===== 订单选择列表 ===== */
.order-list {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e7eaec;
    border-radius: 4px;
    padding: 8px;
    background: #fafafa;
}
.order-list label {
    display: block;
    padding: 6px 8px;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.1s;
}
.order-list label:hover { background: #f0f0f0; }
.order-list input[type="checkbox"], .order-list input[type="radio"] {
    margin-right: 4px;
}

.total-display {
    text-align: right;
    padding: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background: #f9f9f9;
    border-radius: 4px;
    margin-top: 8px;
}
.total-display .highlight { color: #e74c3c; font-size: 17px; }

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

/* ==================== 弹窗（精美版） ==================== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeInOverlay 0.2s ease;
}
.modal-overlay[style*="display: flex"] { display: flex !important; }
@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: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    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;
    overflow: hidden;
}
.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%);
}
.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;
    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; overflow-y: auto; flex: 1; }

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

/* ===== 详情表格 ===== */
.detail-section { background: #fff; }
.detail-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e8ecf1;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 14px;
}
.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: 100px;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    background: #f8f9fb;
}

/* 详情表格内的订单卡片 */
.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;
    margin-bottom: 12px;
    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;
}

/* 关闭按钮 */
.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);
}

/* ===== 移动端 ===== */
@media (max-width: 1024px) {
    .top-bar { flex-direction: column; align-items: stretch; }
    .status-tabs { justify-content: center; }
    .table_wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .app-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; }
}
