/* ═══════════════════════════════════════════════
   成都众帆行 · 车队管理系统
   设计参考：3.png（登录页国风水墨）
           4.png（仪表盘深色侧栏）
   ═══════════════════════════════════════════════ */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; color: #1e293b; }

/* ═══ 登录页 ═══ */
.login-body {
    overflow: hidden;
    height: 100vh;
}
.login-wrapper {
    display: flex;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}
.login-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 50%, rgba(0,0,0,0.45) 100%);
    z-index: 1;
}

/* 左侧品牌区 */
.login-brand-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}
.brand-content {
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}
.brand-title {
    font-size: 56px;
    font-weight: 700;
    letter-spacing: 12px;
    margin-bottom: 12px;
}
.brand-subtitle {
    font-size: 20px;
    letter-spacing: 6px;
    opacity: 0.9;
    font-weight: 300;
}

/* 右侧玻璃拟态登录卡 */
.login-form-area {
    width: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    z-index: 2;
}
.login-glass-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.login-glass-card .form-title {
    font-size: 26px;
    color: #fff;
    font-weight: 600;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.login-glass-card .form-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 28px;
}
.error-msg {
    background: rgba(254, 202, 202, 0.3);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    border: 1px solid rgba(254, 202, 202, 0.3);
    backdrop-filter: blur(4px);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 6px;
    font-weight: 500;
}
.form-group input {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 10px;
    font-size: 15px;
    color: #fff;
    outline: none;
    transition: all 0.2s;
}
.form-group input::placeholder {
    color: rgba(255,255,255,0.4);
}
.form-group input:focus {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.1);
}
.login-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #b8860b 0%, #daa520 50%, #b8860b 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 6px;
    box-shadow: 0 4px 16px rgba(184, 134, 11, 0.3);
}
.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}
.login-btn:active {
    transform: translateY(0);
}
.form-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* ═══ 仪表盘 ═══ */
.dashboard {
    display: flex;
    min-height: 100vh;
    background: #f1f5f9;
}

/* 侧栏 */
.sidebar {
    width: 240px;
    background: #1e293b;
    color: #fff;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
}
.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid #334155;
}
.sidebar-logo svg { width: 28px; height: auto; }
.sidebar-brand { font-size: 18px; font-weight: 600; letter-spacing: 3px; }

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
}
.nav-section {
    margin-bottom: 6px;
}
.nav-label {
    padding: 12px 20px 6px;
    font-size: 11px;
    color: #64748b;
    letter-spacing: 2px;
    font-weight: 600;
    text-transform: uppercase;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s;
    border-left: 3px solid transparent;
    cursor: pointer;
}
.nav-item:hover {
    background: #334155;
    color: #e2e8f0;
}
.nav-item.active {
    background: #334155;
    color: #60a5fa;
    border-left-color: #60a5fa;
}
.nav-icon { font-size: 16px; }

.sidebar-footer {
    border-top: 1px solid #334155;
    padding: 0;
    position: relative;
}
.user-dropdown {
    position: relative;
}
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    cursor: pointer;
    transition: background 0.15s;
    border-radius: 0;
}
.user-profile:hover {
    background: #334155;
}
.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.user-meta { display: flex; flex-direction: column; flex: 1; }
.user-name { font-size: 14px; color: #e2e8f0; }
.user-role { font-size: 11px; color: #64748b; }
.dropdown-arrow {
    font-size: 10px;
    color: #64748b;
    transition: transform 0.2s;
}
.user-dropdown .show .dropdown-arrow { transform: rotate(180deg); }

/* 下拉菜单 */
.dropdown-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 8px;
    right: 8px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    overflow: hidden;
    z-index: 200;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s;
}
.dropdown-item:hover {
    background: #334155;
    color: #e2e8f0;
}
.dropdown-icon { font-size: 15px; }
.dropdown-divider {
    height: 1px;
    background: #334155;
    margin: 0;
}

/* 主内容 */
.content {
    margin-left: 240px;
    flex: 1;
    padding: 40px 50px;
    min-height: 100vh;
}
.page { display: none; max-width: 1400px; width: 100%; }
.page.active { display: block; }

/* 表格全宽 */
.page table { width: 100%; }

/* 车辆表格固定列宽 */
#vehicleTable { table-layout: fixed; }
#vehicleTable th, #vehicleTable td { 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
    padding: 10px 8px;
    text-align: left;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.page-header h2 {
    font-size: 22px;
    color: #1e293b;
    font-weight: 600;
}
.page-date {
    color: #94a3b8;
    font-size: 14px;
}

/* 统计卡片行 */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.2s;
}
.stat-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.stat-icon { font-size: 32px; }
.stat-body { display: flex; flex-direction: column; }
.stat-value { font-size: 28px; font-weight: 700; color: #1e293b; }
.stat-label { font-size: 13px; color: #94a3b8; margin-top: 2px; }

/* 模块卡片网格 */
.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.module-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
}
.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #93c5fd;
}
.module-emoji { font-size: 36px; }
.module-body { flex: 1; }
.module-body h3 { font-size: 16px; color: #1e293b; margin-bottom: 4px; }
.module-body p { font-size: 13px; color: #94a3b8; }
.module-arrow { color: #2563eb; font-size: 18px; font-weight: 500; }

/* 占位内容 */
.placeholder {
    background: #fff;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    border: 1px solid #e2e8f0;
}
.placeholder p { color: #94a3b8; font-size: 18px; }

/* ═══ 修改密码 Modal ═══ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-card {
    background: #fff;
    border-radius: 14px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.2s ease;
}
@keyframes modalSlideIn {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 0;
}
.modal-header h3 { font-size: 18px; color: #1e293b; }
.modal-close {
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover { color: #475569; }
.modal-body { padding: 20px 24px; }
.modal-body .form-group { margin-bottom: 16px; }
.modal-body .form-group label {
    display: block;
    font-size: 13px;
    color: #475569;
    margin-bottom: 6px;
    font-weight: 500;
}
.modal-body .form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.2s;
    background: #f8fafc;
    box-sizing: border-box;
}
.modal-body .form-group input:focus {
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.modal-msg {
    margin-top: 8px;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    display: none;
}
.modal-msg.error {
    display: block;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}
.modal-msg.success {
    display: block;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 0 24px 20px;
}
.btn-cancel, .btn-submit {
    padding: 10px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}
.btn-cancel {
    background: #f1f5f9;
    color: #64748b;
}
.btn-cancel:hover { background: #e2e8f0; }
.btn-submit {
    background: #2563eb;
    color: #fff;
}
.btn-submit:hover { background: #1d4ed8; }
.btn-submit:disabled {
    background: #93c5fd;
    cursor: not-allowed;
}

/* ═══ 响应式 ═══ */
@media (max-width: 900px) {
    .login-form-area { width: 360px; }
    .brand-title { font-size: 38px; letter-spacing: 8px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .module-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .login-wrapper { flex-direction: column; }
    .login-brand-area { display: none; }
    .login-form-area { width: 100%; padding: 40px 20px; }
    .stats-row { grid-template-columns: 1fr; }
    .module-grid { grid-template-columns: 1fr; }
    .sidebar { width: 180px; }
    .content { margin-left: 180px; padding: 20px; }
}

/* ═══ 总览页面样式 ═══ */
.month-picker {
    display: inline-flex; align-items: center;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 8px; padding: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.mp-btn {
    width: 32px; height: 32px;
    border: none; background: transparent;
    cursor: pointer; border-radius: 6px;
    font-size: 18px; color: #64748b;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}
.mp-btn:hover { background: #f1f5f9; color: #1e293b; }
.mp-display {
    padding: 0 14px; font-size: 15px; font-weight: 600;
    color: #1e293b; cursor: pointer; user-select: none;
}
.mp-display:hover { color: #3b82f6; }

.sync-badge {
    font-size: 12px; color: #059669;
    background: #ecfdf5; padding: 4px 10px;
    border-radius: 12px;
}

/* 加载动画 */
.loading-area {
    display: flex; align-items: center; gap: 10px;
    padding: 60px 0; justify-content: center;
    color: #94a3b8; font-size: 14px;
}
.loading-spinner {
    width: 20px; height: 20px;
    border: 2px solid #e2e8f0; border-top-color: #3b82f6;
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 按钮 loading 状态 — 用于 AI 识别等异步操作 */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}
.btn-loading::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    margin-left: 6px;
    border: 2px solid rgba(59,130,246,0.3);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}

/* KPI 卡片 */
.kpi-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-bottom: 28px;
}
.kpi-card {
    background: #fff; border-radius: 10px;
    padding: 20px 22px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}
.kpi-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.kpi-label { font-size: 13px; color: #64748b; font-weight: 500; margin-bottom: 8px; }
.kpi-value {
    font-size: 26px; font-weight: 700; color: #111827;
    line-height: 1.2; margin-bottom: 6px;
}
.kpi-comp { font-size: 12px; color: #94a3b8; line-height: 1.6; }
.comp-label { color: #94a3b8; font-size: 11px; }
.pct-up { color: #059669; font-weight: 600; }
.pct-down { color: #dc2626; font-weight: 600; }

/* KPI 区域容器 */
.kpi-section {
    margin-bottom: 28px;
}
.kpi-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.kpi-section-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    letter-spacing: 1px;
}
.kpi-section-badge.monthly {
    background: #d1fae5;
    color: #065f46;
}
.kpi-section-badge.yearly {
    background: #dbeafe;
    color: #1e40af;
}
.kpi-section-date {
    font-size: 12px;
    color: #94a3b8;
}
.kpi-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.est-badge {
    display: inline-block; background: #d1fae5; color: #065f46;
    font-size: 10px; font-weight: 700; padding: 1px 7px;
    border-radius: 8px; vertical-align: middle; margin-left: 6px;
}
.est-badge-sm {
    display: inline-block; background: #d1fae5; color: #065f46;
    font-size: 9px; font-weight: 700; padding: 0 5px;
    border-radius: 6px; vertical-align: middle; margin-left: 4px;
}

/* 表格 */
.table-section { margin-top: 8px; }
.table-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.table-title { font-size: 16px; font-weight: 600; color: #1e293b; }
.table-meta { font-size: 11px; color: #94a3b8; }

.table-wrapper {
    background: #fff; border-radius: 10px;
    border: 1px solid #e2e8f0; overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.table-wrapper table { width: 100%; border-collapse: collapse; }
.table-wrapper thead th {
    background: #f8fafc; color: #475569;
    font-size: 12px; font-weight: 600;
    padding: 12px 16px; text-align: right;
    border-bottom: 1px solid #e2e8f0;
}
.table-wrapper thead th:first-child { text-align: left; }
.table-wrapper tbody td {
    padding: 12px 16px; font-size: 13px; text-align: right;
    border-bottom: 1px solid #f1f5f9; color: #1e293b;
}
.table-wrapper tbody td:first-child { text-align: left; font-weight: 500; }
.table-wrapper tbody tr:nth-child(even) { background: #fafbfc; }
.table-wrapper tbody tr:hover { background: #f1f5f9; }
.table-wrapper tbody tr:last-child td { border-bottom: none; }
.table-wrapper tbody tr.row-scrapped td { padding: 10px 16px; }

.cell-negative { color: #dc2626 !important; font-weight: 600; }
.cell-positive { color: #059669 !important; }

.comp-row { font-size: 10px; color: #94a3b8; margin-top: 2px; }

.plate-loan {
    display: inline-block; background: #fef3c7; color: #92400e;
    font-size: 9px; padding: 0 5px; border-radius: 3px;
    margin-left: 4px; font-weight: 700; vertical-align: middle;
}

/* 驾驶员数量徽标 */
.driver-badge {
    display: inline-block; background: #e0f2fe; color: #0369a1;
    font-size: 10px; padding: 1px 7px; border-radius: 10px;
    margin-left: 4px; font-weight: 500; vertical-align: middle;
}

/* 总览同步时间 */
.sync-info { font-size: 11px; color: #94a3b8; }

/* KPI 小字标注 */
.kpi-sub { font-size: 12px; font-weight: 400; color: #94a3b8; }

/* 利润对比块 */
.profit-comp { line-height: 1.6; }
.profit-comp .comp-label { font-size: 11px; color: #94a3b8; }
.profit-comp .comp-value { font-weight: 600; color: #1e293b; }
.profit-comp .comp-vs { font-size: 11px; color: #94a3b8; }
.profit-comp .comp-note { font-size: 10px; color: #a0aec0; margin-top: 2px; }

/* 月初波动提示 */
.early-note { font-size: 10px; color: #d97706; margin-top: 4px; }

/* ── 月份选择器dropdown ── */
.picker-dropdown {
    position: absolute; top: 100%; left: 0; z-index: 100;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
    padding: 8px 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 4px; min-width: 170px;
}
.picker-row {
    display: flex; align-items: center; gap: 6px;
}
.picker-row select {
    padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 6px;
    font-size: 14px; color: #1e293b; background: #fff;
    cursor: pointer; outline: none; min-width: 60px;
}
.picker-row select:focus {
    border-color: #3b82f6; box-shadow: 0 0 0 2px rgba(59,130,246,0.15);
}
.picker-label { font-size: 13px; color: #64748b; }

@media (max-width: 900px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════
   车辆信息模块
   ═══════════════════════════════════════════════ */

/* 统计卡片 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.stat-card .num { font-size: 28px; font-weight: 700; margin-top: 4px; }
.stat-card .label { font-size: 13px; color: #888; }
.stat-card.red .num { color: #e74c3c; }
.stat-card.orange .num { color: #e67e22; }
.stat-card.green .num { color: #27ae60; }
.stat-card.blue .num { color: #3498db; }

/* 状态标签 */
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-active { background: #e8f5e9; color: #27ae60; }
.badge-retired { background: #fce4ec; color: #e74c3c; }
.badge-loan { background: #fff3e0; color: #e67e22; }
.badge-expired { background: #fce4ec; color: #e74c3c; }
.badge-expiring { background: #fff3e0; color: #e67e22; }
.badge-ok { background: #e8f5e9; color: #27ae60; }

/* 证件状态小图标 */
.expiry { font-size: 12px; white-space: nowrap; }
.expiry-safe { color: #27ae60; }
.expiry-warn { color: #e67e22; }
.expiry-danger { color: #e74c3c; }

/* 弹窗遮罩 */
.modal-overlay {
    display: none; position: fixed; z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
    align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal-card {
    background: #fff; border-radius: 16px; width: 90%; max-width: 800px;
    max-height: 85vh; overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 24px; border-bottom: 1px solid #eee;
}
.modal-header h3 { font-size: 18px; }
.modal-close {
    width: 32px; height: 32px; border: none; background: #f5f5f5;
    border-radius: 50%; font-size: 18px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #e0e0e0; }
.modal-body { padding: 24px; }

/* 表单组 */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: #888; margin-bottom: 4px; }
.form-group .value { font-size: 15px; font-weight: 500; }

/* 分块卡片 */
.section-card {
    background: #f8f9fa; border-radius: 12px; padding: 16px;
    margin-bottom: 16px;
}
.section-card h4 {
    font-size: 14px; font-weight: 600; color: #333;
    margin-bottom: 12px; display: flex; align-items: center; gap: 8px;
}

/* 文档列表 */
.doc-list { display: flex; flex-direction: column; gap: 8px; }
.doc-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: #fff; border-radius: 8px;
    border: 1px solid #eee;
}
.doc-item .doc-name { font-weight: 500; font-size: 14px; }
.doc-item .doc-date { font-size: 12px; color: #888; }
.doc-actions { display: flex; gap: 8px; }
.doc-actions button {
    padding: 4px 12px; border: 1px solid #d9d9d9; border-radius: 6px;
    font-size: 12px; background: #fff; cursor: pointer;
}
.doc-actions button:hover { background: #f5f5f5; }
.doc-actions .btn-danger { color: #e74c3c; border-color: #e74c3c; }

/* 车牌匹配状态 */
.plate-unmatched-badge {
    display: inline-block; margin-top: 4px; font-size: 12px;
    color: #e67e22; background: #fef3e2; padding: 2px 8px;
    border-radius: 4px; border: 1px solid #f0c27a;
}
.plate-unmatched-badge button { margin-left: 6px; font-size: 11px; padding: 1px 6px; }
.plate-matched-badge {
    display: inline-block; margin-top: 4px; font-size: 12px;
    color: #27ae60; background: #e8f5e9; padding: 2px 8px;
    border-radius: 4px; border: 1px solid #a5d6a7;
}
.btn-sm { font-size: 11px; padding: 2px 8px; border-radius: 4px; border: 1px solid #d9d9d9; cursor: pointer; }
.btn-primary { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; }

/* 驾驶员列表 */
.driver-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; background: #fff; border-radius: 8px;
    border: 1px solid #eee; margin-bottom: 6px;
}
.driver-item .driver-name { font-weight: 500; }
.driver-item .driver-phone { font-size: 13px; color: #888; margin-left: 12px; }
.driver-primary { background: #e8f5e9; border-color: #a5d6a7; font-size: 11px; padding: 2px 8px; border-radius: 10px; color: #27ae60; margin-left: 8px; }

/* 标签组 */
.v-tabs { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid #eee; }
.v-tab {
    padding: 10px 20px; cursor: pointer; font-size: 14px; color: #888;
    border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.2s;
}
.v-tab:hover { color: #333; }
.v-tab.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }
.v-tab-content { display: none; }
.v-tab-content.active { display: block; }

/* 工具类 */
.text-center { text-align: center; }
.text-muted { color: #999; font-size: 13px; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-16 { margin-bottom: 16px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }

/* 上传区域 */
.upload-zone {
    border: 2px dashed #d9d9d9; border-radius: 12px; padding: 30px;
    text-align: center; cursor: pointer; transition: all 0.3s;
    margin-bottom: 16px;
}
.upload-zone:hover { border-color: #2563eb; background: #f0f5ff; }
.upload-zone p { color: #888; font-size: 14px; }
.upload-zone .icon { font-size: 36px; margin-bottom: 8px; }

/* 总览页多驾驶员展开子行 */
.expand-icon { font-size: 11px; color: #64748b; margin-right: 4px; transition: transform 0.2s; }
.expand-icon.expanded { transform: rotate(90deg); }
.row-main { background: #fff; }
.row-main:hover { background: #f8fafc; }
.row-subdriver { background: #f8fafc; }
.row-subdriver:hover { background: #f1f5f9; }
.subdriver-cell { font-size: 13px; color: #64748b; }
.fuel-note { font-size: 11px; color: #94a3b8; margin-left: 2px; }

/* ═══ 驾驶员绑定 ═══ */
.driver-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 12px; border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s;
}
.driver-item:hover { background: #f8fafc; }
.driver-name { font-weight: 600; font-size: 14px; color: #1e293b; }
.driver-primary {
    display: inline-block; margin-left: 6px; padding: 1px 8px;
    background: #dbeafe; color: #2563eb; border-radius: 10px;
    font-size: 11px; font-weight: 500;
}
.driver-phone { font-size: 12px; color: #94a3b8; margin-left: 8px; }
#bindDialog { margin-top: 8px; padding: 12px; border: 1px solid #d9d9d9; border-radius: 8px; background: #f9fafb; }

/* ═══ 统一到期提醒 ═══ */
#alertsBanner {
    background: #fff; border-radius: 12px; padding: 14px 18px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06); cursor: pointer;
    transition: box-shadow 0.2s;
}
#alertsBanner:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
#alertsDetail { max-height: 300px; overflow-y: auto; }

/* ═══ 证件编辑小表单 ═══ */
.edit-doc-form {
    margin: 8px 0 8px 14px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}
.edit-doc-header {
    font-weight: 500;
    font-size: 13px;
    color: #1e293b;
    margin-bottom: 10px;
}
.edit-doc-field {
    margin-bottom: 10px;
}
.edit-doc-field label {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
}
.edit-doc-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}