/* ======================================================
 * 宜荣财达智慧物流大数据监控看板样式
 * www.yrcdw.com | 2026-8
 ========================================================= */
/* ===== 面板头部 ===== */
.section-monitor .panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
}

/* ===== 状态筛选标签（单选模式） ===== */
.monitor-status {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}
.status-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    transition: all 0.25s ease;
    color: #94a3b8;
    user-select: none;
    font-size: 13px;
}
.status-tag:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.2);
}
.status-tag.active {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 0 15px rgba(0,0,0,0.4);
}
.status-tag.active.run {
    border-color: rgba(34,197,94,0.6);
    color: #4ade80;
}
.status-tag.active.arrived {
    border-color: rgba(59,130,246,0.6);
    color: #60a5fa;
}
.status-tag.active.waiting {
    border-color: rgba(245,158,11,0.6);
    color: #fbbf24;
}
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.status-dot.run { background: #22c55e; box-shadow: 0 0 8px rgba(34,197,94,0.7); }
.status-dot.arrived { background: #3b82f6; box-shadow: 0 0 8px rgba(59,130,246,0.7); }
.status-dot.waiting { background: #f59e0b; box-shadow: 0 0 8px rgba(245,158,11,0.7); }

/* ===== 搜索按钮 ===== */
.monitor-search-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #22d3ee;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
    margin-left: 6px;
}
.monitor-search-btn:hover {
    background: rgba(34, 211, 238, 0.25);
    transform: translateY(-1px);
}

/* ===== 搜索弹窗 ===== */
.search-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: none;
}
.search-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 420px;
    max-width: 90%;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.7);
    z-index: 9999;
    display: none;
}
.search-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(34, 211, 238, 0.12);
}
.search-popup-title {
    color: #22d3ee;
    font-size: 15px;
    font-weight: 700;
}
.popup-close-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.popup-close-btn:hover {
    background: rgba(239, 68, 68, 0.25);
}
.search-popup-body {
    padding: 20px;
}
.search-field {
    margin-bottom: 16px;
}
.search-field label {
    display: block;
    color: #94a3b8;
    font-size: 13px;
    margin-bottom: 6px;
}
.search-field input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}
.search-field input:focus {
    border-color: rgba(34, 211, 238, 0.5);
}
.search-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}
.search-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-search-submit {
    background: linear-gradient(135deg, #0891b2, #22d3ee);
    color: #fff;
}
.btn-search-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.btn-search-reset {
    background: rgba(255,255,255,0.08);
    color: #94a3b8;
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-search-reset:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== 路线跟踪模态框（浅色主题，匹配图6） ===== */
.yrc-route-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}
.yrc-route-modal.active {
    display: flex !important;
}
.yrc-route-box {
    width: 1100px;
    max-width: 95%;
    height: 650px;
    max-height: 90vh;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 25px 80px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.yrc-route-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    background: #fff;
    flex-shrink: 0;
}
.yrc-route-title {
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}
.yrc-route-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    font-size: 18px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}
.yrc-route-close:hover {
    background: rgba(239, 68, 68, 0.2);
}
.yrc-route-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}
.yrc-route-map-wrap {
    flex: 1;
    position: relative;
    min-width: 0;
}
#yrcMapRoute {
    width: 100%;
    height: 100%;
}
.yrc-route-info {
    width: 340px;
    min-width: 340px;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
    padding: 20px;
    overflow-y: auto;
    box-sizing: border-box;
}
.yrc-info-section {
    margin-bottom: 18px;
}
.yrc-info-section-title {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 6px;
}
.yrc-info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px dashed #e5e7eb;
}
.yrc-info-label {
    color: #6b7280;
    font-size: 13px;
    flex-shrink: 0;
}
.yrc-info-value {
    color: #111827;
    font-size: 13px;
    text-align: right;
    word-break: break-all;
}
.yrc-info-value.plate {
    color: #111827;
    font-weight: 800;
    font-size: 16px;
}
.yrc-info-value.driver {
    color: #111827;
    font-size: 14px;
}
.yrc-route-city-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    margin-bottom: 10px;
}
.yrc-city-box {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    text-align: center;
    border: 1px solid #e5e7eb;
}
.yrc-city-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 4px;
}
.yrc-city-dot.start { background: #22c55e; box-shadow: 0 0 6px rgba(34,197,94,0.5); }
.yrc-city-dot.end { background: #ef4444; box-shadow: 0 0 6px rgba(239,68,68,0.5); }
.yrc-city-name {
    color: #111827;
    font-size: 14px;
    font-weight: 600;
}
.yrc-city-arrow {
    color: #3b82f6;
    font-size: 18px;
}
.yrc-addr-box {
    background: #fff;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid #e5e7eb;
}
.yrc-addr-label {
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 4px;
}
.yrc-addr-text {
    color: #111827;
    font-size: 13px;
    line-height: 1.5;
}
.yrc-stat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
.yrc-stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 14px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.yrc-stat-value {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
}
.yrc-stat-value.blue { color: #3b82f6; }
.yrc-stat-value.orange { color: #f59e0b; }
.yrc-stat-label {
    color: #6b7280;
    font-size: 12px;
}
.yrc-coords-box {
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 10px;
}
.yrc-coords-text {
    color: #15803d;
    font-size: 13px;
    font-family: monospace;
}

/* ===== 脉冲动画 ===== */
@keyframes yrcPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.6); opacity: 0; }
    100% { transform: scale(1); opacity: 0; }
}

/* ===== 地图空状态提示 ===== */
.yrc-map-empty-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 12px;
    padding: 24px 36px;
    color: #94a3b8;
    font-size: 14px;
    text-align: center;
    z-index: 10;
    display: none;
}
.yrc-map-empty-tip.show {
    display: block;
}
.yrc-map-empty-tip .empty-icon {
    font-size: 36px;
    margin-bottom: 10px;
}
.yrc-map-empty-tip .empty-title {
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}
.yrc-map-empty-tip .empty-desc {
    font-size: 13px;
    color: #64748b;
}

@media (max-width: 768px) {
    .yrc-route-box { width: 100%; height: 100%; max-height: 100vh; border-radius: 0; }
    .yrc-route-body { flex-direction: column; }
    .yrc-route-info { width: 100%; min-width: auto; border-left: none; border-top: 1px solid rgba(34, 211, 238, 0.1); max-height: 40vh; }
    .monitor-status { width: 100%; margin-left: 0; margin-top: 8px; justify-content: flex-start; }
    #monitorMap { height: 400px !important; }
}