/**
 * SF Flow UI - 流程页面专用样式
 * 覆盖所有发货方/承运方操作流程页面
 */

/* ── 流程导航条 ── */
.sf-flow-nav {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: none;
    margin-bottom: 12px;
    overflow-x: auto;
    gap: 0;
}
.sf-flow-step {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}
.sf-flow-step .step-circle {
    width: 22px; height: 22px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700;
    flex-shrink: 0;
}
.sf-flow-step.active .step-circle {
    background: #2563eb;
    color: #fff;
    box-shadow: none;
}
.sf-flow-step.done .step-circle {
    background: #2563eb;
    color: #fff;
}
.sf-flow-step .step-label {
    font-size: 10px;
    color: #64748b;
    margin-left: 6px;
    white-space: nowrap;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: .01em;
}
.sf-flow-step.active .step-label { color: #111827; font-weight: 700; }
.sf-flow-step.done .step-label   { color: #111827; }
.sf-flow-line {
    width: 18px;
    height: 1px;
    background: #d1d5db;
    margin: 0 8px;
    min-width: 18px;
    flex: 0 0 auto;
}
.sf-flow-line.done { background: #93c5fd; }

/* ── 信息卡片 ── */
.sf-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 16px;
}
.sf-info-card .sf-info-title {
    font-size: 11px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 4px;
}
.sf-info-card .sf-info-value {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

/* ── 路线显示 ── */
.sf-route-card {
    background: linear-gradient(135deg, #1b4066 0%, #2563a8 100%);
    border-radius: 14px;
    padding: 18px 20px;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(27,64,102,0.3);
}
.sf-route-card .from-to {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}
.sf-route-card .from-to .arrow {
    font-size: 20px;
    opacity: 0.7;
}
.sf-route-card .route-meta {
    font-size: 12px;
    opacity: 0.75;
    display: flex;
    gap: 16px;
}

/* ── 报价卡片 ── */
.sf-quote-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 12px;
    border-left: 4px solid #1b4066;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}
.sf-quote-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.sf-quote-card.selected {
    border-left-color: #FF6B35;
    background: #fff8f5;
}
.sf-quote-card .quote-price {
    font-size: 22px;
    font-weight: 800;
    color: #1b4066;
}
.sf-quote-card .quote-transporter {
    font-size: 13px;
    color: #555;
    margin-top: 4px;
}
.sf-quote-card .quote-meta {
    font-size: 11px;
    color: #aaa;
    margin-top: 6px;
}

/* ── 司机卡片 ── */
.sf-driver-card {
    background: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: background 0.15s;
}
.sf-driver-card:hover { background: #f0f4ff; }
.sf-driver-card.selected { border: 2px solid #1b4066; background: #EEF2F7; }
.sf-driver-card .driver-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: #EEF2F7;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #1b4066;
    flex-shrink: 0;
}
.sf-driver-card .driver-info { flex: 1; }
.sf-driver-card .driver-name { font-weight: 700; font-size: 14px; color: #222; }
.sf-driver-card .driver-meta { font-size: 12px; color: #888; margin-top: 2px; }

/* ── 追踪状态 ── */
.sf-track-timeline {
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.sf-track-item {
    display: flex;
    gap: 14px;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    align-items: flex-start;
}
.sf-track-item:last-child { border-bottom: none; }
.sf-track-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #ccc;
    margin-top: 4px;
    flex-shrink: 0;
}
.sf-track-dot.done  { background: #28a745; }
.sf-track-dot.curr  { background: #1b4066; box-shadow: 0 0 0 3px rgba(27,64,102,0.2); }
.sf-track-content .track-label { font-size: 13px; font-weight: 600; color: #222; }
.sf-track-content .track-time  { font-size: 11px; color: #aaa; margin-top: 2px; }

/* ── 评分星星 ── */
.sf-rating-star {
    font-size: 36px;
    cursor: pointer;
    transition: transform 0.1s;
    user-select: none;
}
.sf-rating-star:hover { transform: scale(1.2); }
.sf-rating-row {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 12px 0;
}

/* ── 提交按钮区 ── */
.sf-submit-bar {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding: 14px 20px;
    border-top: 1px solid #f0f0f0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.06);
    display: flex;
    gap: 10px;
    z-index: 100;
    margin: 0 -20px -20px;
}
.sf-submit-bar .btn-main {
    flex: 1;
    background: #1b4066;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.sf-submit-bar .btn-main:hover { background: #153356; }
.sf-submit-bar .btn-back {
    background: #F5F7FA;
    color: #555;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ── 必填标记 ── */
.required-mark { color: #dc3545; font-weight: 700; margin-left: 2px; }

/* ── 成功状态 ── */
.sf-success-banner {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border-radius: 14px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}
.sf-success-banner .success-icon { font-size: 48px; margin-bottom: 12px; }
.sf-success-banner .success-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.sf-success-banner .success-sub   { font-size: 14px; opacity: 0.85; }

/* ── 空状态 ── */
.sf-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #aaa;
}
.sf-empty-state .empty-icon { font-size: 56px; margin-bottom: 16px; }
.sf-empty-state .empty-title { font-size: 18px; font-weight: 700; color: #333; margin-bottom: 8px; }
.sf-empty-state .empty-sub   { font-size: 14px; margin-bottom: 24px; }
