/* ============================================
   企业销售CRM管理系统 - 响应式管理后台样式
   基于 CSS 变量主题引擎
   ============================================ */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;
    --success: #16a34a;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #0891b2;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --sidebar-bg: #1e293b;
    --sidebar-text: #cbd5e1;
    --sidebar-active: #2563eb;
    --body-bg: #f1f5f9;
    --card-bg: #ffffff;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,.12);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
}

/* 浅色侧边栏主题 */
[data-sidebar="light"] {
    --sidebar-bg: #ffffff;
    --sidebar-text: #475569;
    --sidebar-active: #eff6ff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font);
    font-size: 14px;
    color: var(--gray-700);
    background: var(--body-bg);
    line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
ul { list-style: none; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 230px;
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    position: fixed;
    top: 0; bottom: 0; left: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform .25s ease, width .25s ease;
    display: flex;
    flex-direction: column;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.15); border-radius: 2px; }

.brand {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 18px;
    color: #fff;
    font-size: 16px; font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
[data-sidebar="light"] .brand { color: var(--gray-800); border-bottom-color: var(--gray-200); }
.brand .logo { width: 32px; height: 32px; border-radius: 8px; background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex-shrink: 0; }

.nav { padding: 10px 0; flex: 1; }
.nav-section {
    position: relative;
    margin: 8px 10px 2px;
    padding: 8px 10px 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
    background: rgba(255,255,255,.06);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    letter-spacing: .5px;
    width: calc(100% - 20px);
    box-sizing: border-box;
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer; text-align: left;
    font-family: inherit;
    transition: color .15s, background .15s;
}
.nav-section:hover { color: #fff; background: rgba(255,255,255,.1); }
[data-sidebar="light"] .nav-section { color: var(--gray-600); background: var(--gray-100); }
[data-sidebar="light"] .nav-section:hover { color: var(--gray-800); background: var(--gray-200); }
.nav-arrow { font-size: 10px; transition: transform .2s ease; opacity: .8; }
.nav-group.collapsed .nav-arrow { transform: rotate(-90deg); }
.nav-group-body { overflow: hidden; }
.nav-group.collapsed .nav-group-body { display: none; }
.nav-item { position: relative; }
.nav-item > a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px;
    color: var(--sidebar-text);
    font-size: 14px;
    transition: background .15s;
}
.nav-item > a:hover { background: rgba(255,255,255,.06); color: #fff; }
[data-sidebar="light"] .nav-item > a:hover { background: var(--gray-100); color: var(--gray-800); }
.nav-item.active > a { background: var(--sidebar-active); color: #fff; }
[data-sidebar="light"] .nav-item.active > a { color: var(--primary); font-weight: 600; }
.nav-item .icon { width: 18px; text-align: center; font-size: 16px; flex-shrink: 0; }
.nav-item .badge { margin-left: auto; }
.nav-sub { display: none; padding-left: 12px; }
.nav-item.open .nav-sub { display: block; }
.nav-sub a { display: block; padding: 8px 18px 8px 28px; color: var(--sidebar-text); font-size: 13px; }
.nav-sub a:hover, .nav-sub a.active { color: #fff; }
[data-sidebar="light"] .nav-sub a:hover, [data-sidebar="light"] .nav-sub a.active { color: var(--primary); }

.sidebar-footer { padding: 14px 18px; font-size: 11px; color: var(--gray-500); border-top: 1px solid rgba(255,255,255,.08); }
[data-sidebar="light"] .sidebar-footer { border-top-color: var(--gray-200); }

.main {
    flex: 1;
    margin-left: 230px;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left .25s ease;
}

/* 侧边栏整体收起（桌面端）：只显示图标 */
@media (min-width: 993px) {
    .topbar .menu-btn { display: inline-flex; }
    body.sidebar-collapsed .sidebar { width: 64px; }
    body.sidebar-collapsed .main { margin-left: 64px; }
    body.sidebar-collapsed .brand { padding: 16px 14px; justify-content: center; }
    body.sidebar-collapsed .brand .min-w-0 { display: none; }
    body.sidebar-collapsed .nav-section { justify-content: center; padding: 10px 0 6px; margin: 8px 6px 2px; font-size: 0; width: calc(100% - 12px); }
    body.sidebar-collapsed .nav-arrow { display: none; }
    body.sidebar-collapsed .nav-item > a { justify-content: center; padding: 12px 0; }
    body.sidebar-collapsed .nav-item .icon { margin: 0; }
    body.sidebar-collapsed .nav-item .nav-text { display: none; }
    body.sidebar-collapsed .nav-item .badge { display: none; }
    body.sidebar-collapsed .nav-group-body { display: block !important; }
    body.sidebar-collapsed .nav-group.collapsed .nav-group-body { display: block !important; }
    body.sidebar-collapsed .sidebar-footer { display: none; }
}

.topbar {
    background: var(--card-bg);
    border-bottom: 1px solid var(--gray-200);
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 90;
}
.topbar .menu-btn { display: none; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray-600); padding: 4px 8px; border-radius: 6px; }
.topbar .menu-btn:hover { background: var(--gray-100); }
.topbar .page-title { font-size: 16px; font-weight: 600; color: var(--gray-800); }
.topbar .spacer { flex: 1; }
.topbar .icon-btn { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--gray-600); padding: 6px 10px; border-radius: 6px; position: relative; }
.topbar .icon-btn:hover { background: var(--gray-100); }
.topbar .icon-btn .dot { position: absolute; top: 2px; right: 2px; background: var(--danger); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.user-menu { position: relative; }
.user-menu .trigger { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 10px; border-radius: 8px; }
.user-menu .trigger:hover { background: var(--gray-100); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
.user-menu .dropdown {
    display: none;
    position: absolute; right: 0; top: 110%;
    background: var(--card-bg);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 160px;
    z-index: 200;
}
.user-menu.open .dropdown { display: block; }
.user-menu .dropdown a { display: block; padding: 9px 16px; color: var(--gray-700); font-size: 13px; }
.user-menu .dropdown a:hover { background: var(--gray-100); }
.user-menu .dropdown .sep { border-top: 1px solid var(--gray-200); margin: 4px 0; }

.content { padding: 20px; flex: 1; }

/* ---------- 网格 ---------- */
.row { display: flex; flex-wrap: wrap; margin: 0 -10px; }
.row > [class*="col-"] { padding: 0 10px; margin-bottom: 16px; }
.col-1 { width: 8.333% } .col-2 { width: 16.666% } .col-3 { width: 25% }
.col-4 { width: 33.333% } .col-5 { width: 41.666% } .col-6 { width: 50% }
.col-7 { width: 58.333% } .col-8 { width: 66.666% } .col-9 { width: 75% }
.col-10 { width: 83.333% } .col-11 { width: 91.666% } .col-12 { width: 100% }
/* 自适应铺满行：卡片按可用宽度拉伸，放不下再换行（仪表盘磁条卡/待办卡片等） */
.row.flex-fill > [class*="col-"] { flex: 1 1 240px; width: auto; }
@media (max-width: 992px) {
    .col-md-6 { width: 50% } .col-md-12 { width: 100% }
    .col-4, .col-3 { width: 50% }
}
@media (max-width: 576px) {
    .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 { width: 100% }
    .col-md-6 { width: 100% }
}

/* ---------- 卡片 ---------- */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.card-header h3 { font-size: 15px; font-weight: 600; color: var(--gray-800); }
.card-header .spacer { flex: 1; }
.card-body { padding: 18px; }
.card-footer { padding: 12px 18px; border-top: 1px solid var(--gray-200); }

/* 统计卡片 */
.stat-card { display: flex; align-items: center; gap: 14px; padding: 18px; }
.stat-card .icon { width: 46px; height: 46px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; flex-shrink: 0; }
.stat-card .num { font-size: 22px; font-weight: 700; color: var(--gray-800); line-height: 1.2; }
.stat-card .label { font-size: 13px; color: var(--gray-500); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--gray-200); white-space: nowrap; }
.table th { background: var(--gray-50); color: var(--gray-600); font-weight: 600; font-size: 12px; }
.table tbody tr:hover { background: var(--gray-50); }
.table .actions { display: flex; gap: 6px; }
.table .actions a, .table .actions button { white-space: nowrap; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 13px;
    font-family: var(--font);
    cursor: pointer;
    transition: all .15s;
    text-decoration: none;
    line-height: 1.4;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { background: transparent; border-color: var(--gray-300); color: var(--gray-600); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { opacity: .9; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .9; color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-warning:hover { opacity: .9; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-weight: 500; color: var(--gray-700); font-size: 13px; }
.form-label .required { color: var(--danger); }
.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 14px;
    font-family: var(--font);
    background: #fff;
    color: var(--gray-800);
    transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
textarea.form-control { min-height: 80px; resize: vertical; }
select.form-control {
    cursor: pointer;
    height: 38px;
    padding-top: 0;
    padding-bottom: 0;
    text-overflow: ellipsis;
}
select.form-control option { font-size: 14px; padding: 6px 8px; }
input.form-control, textarea.form-control { height: auto; }
.form-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 180px; }
.form-check { display: flex; align-items: center; gap: 6px; font-size: 13px; cursor: pointer; }
.form-check input { width: 16px; height: 16px; accent-color: var(--primary); }

/* ---------- 徽章 ---------- */
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; line-height: 1.6; font-weight: 500; }
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #cffafe; color: #155e75; }
.badge-secondary { background: var(--gray-200); color: var(--gray-600); }

/* ---------- 提示消息 ---------- */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 13px; display: flex; gap: 8px; align-items: center; }
.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #bfdbfe; }

/* Toast */
#toast-wrap { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--gray-800); color: #fff;
    padding: 12px 20px; border-radius: 8px;
    font-size: 13px;
    box-shadow: var(--shadow-lg);
    animation: toast-in .3s ease;
    min-width: 200px; max-width: 360px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
@keyframes toast-in { from { transform: translateX(30px); } to { transform: translateX(0); } }

/* ---------- 模态框 ---------- */
.modal-mask {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15,23,42,.5);
    z-index: 1000;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal-mask.show { display: flex; }
.modal {
    background: #fff;
    border-radius: 12px;
    width: 100%; max-width: 520px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
}
.modal.lg { max-width: 760px; }
.modal.sm { max-width: 380px; }
@keyframes modal-in { from { transform: scale(.95); } to { transform: scale(1); } }
.modal-header { padding: 16px 20px; border-bottom: 1px solid var(--gray-200); display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 16px; color: var(--gray-800); }
.modal-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--gray-400); padding: 4px; }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 分页 ---------- */
.pagination-wrap { display: flex; justify-content: center; padding: 14px 0; }
.pagination { display: flex; gap: 4px; }
.pagination li a {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 8px;
    border: 1px solid var(--gray-300); border-radius: 6px;
    color: var(--gray-600); font-size: 13px;
}
.pagination li.active a { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination li.disabled span { color: var(--gray-400); padding: 6px 8px; }

/* ---------- 工具类 ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--gray-400); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-primary { color: var(--primary); }
.text-lg { font-size: 18px; }
.text-sm { font-size: 12px; }
.fw-600 { font-weight: 600; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-10 { gap: 10px; }
.gap-6 { gap: 6px; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.d-none { display: none; }
.flex-wrap { flex-wrap: wrap; }
.min-w-0 { min-width: 0; }
.avatar-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }

/* 打印工单 */
.print-area { background: #fff; padding: 30px; max-width: 900px; margin: 0 auto; }
@media print {
    body { background: #fff; }
    .sidebar, .topbar, .no-print { display: none !important; }
    .main { margin-left: 0; }
    .content { padding: 0; }
    .print-area { box-shadow: none; padding: 0; }
    .card { box-shadow: none; border: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .topbar .menu-btn { display: block; }
    .content { padding: 14px; }
    /* 移动端侧栏遮罩 */
    .sidebar-backdrop {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 99;
    }
    body.sidebar-open .sidebar-backdrop { display: block; }
    body.sidebar-open { overflow: hidden; }
}
@media (max-width: 576px) {
    .content { padding: 10px; }
    .table th, .table td { padding: 8px 10px; font-size: 12px; }
    .card-header { padding: 12px 14px; }
    .card-body { padding: 14px; }
    .topbar { padding: 0 12px; }
    .hide-sm { display: none; }
    .topbar .page-title { font-size: 14px; }
}
/* 移动端表格横向滚动（自动包裹所有表格，避免撑破布局） */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 登录页 */
.login-page {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #2563eb 100%);
    padding: 20px;
}
.login-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: 100%; max-width: 400px;
    padding: 36px 32px;
}
.login-box .brand-lg { text-align: center; margin-bottom: 24px; }
.login-box .brand-lg .logo { width: 52px; height: 52px; border-radius: 14px; background: var(--primary); color: #fff; font-size: 26px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.login-box .brand-lg h1 { font-size: 19px; color: var(--gray-800); }

/* 空状态 */
.empty { text-align: center; padding: 50px 20px; color: var(--gray-400); }
.empty .icon { font-size: 40px; margin-bottom: 10px; }

/* 加载遮罩 */
.loading { position: relative; opacity: .6; pointer-events: none; }

/* ============================================
   美化增强 v1.1 —— 布局排版优化
   ============================================ */

/* ---- 统计卡片（财务总览 / 仪表盘共用） ---- */
.stat-card { position: relative; overflow: hidden; }
.stat-card::after {
    content: ''; position: absolute; right: -26px; top: -26px;
    width: 120px; height: 120px; border-radius: 50%;
    background: linear-gradient(135deg, rgba(37,99,235,.07), transparent);
    pointer-events: none;
}
.stat-card .stat-label { font-size: 13px; color: var(--gray-500); margin-bottom: 4px; }
.stat-card .stat-value { font-size: 24px; font-weight: 700; color: var(--gray-800); line-height: 1.25; letter-spacing: -.5px; }
.stat-card .stat-sub { font-size: 12px; color: var(--gray-400); margin-top: 6px; }

/* 统计卡图标（财务总览） */
.stat-card .icon-lg {
    width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.stat-card .icon-lg + div { min-width: 0; }

/* ---- 进度条 ---- */
.progress { background: var(--gray-100); border-radius: 999px; overflow: hidden; flex: 1; }
.progress-bar {
    height: 100%; border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transition: width .4s ease;
}
.progress-bar.success { background: linear-gradient(90deg, #16a34a, #4ade80); }
.progress-bar.warning { background: linear-gradient(90deg, #d97706, #fbbf24); }
.progress-bar.danger { background: linear-gradient(90deg, #dc2626, #f87171); }

/* ---- 排行徽章 ---- */
.rank-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 7px; flex-shrink: 0;
    background: var(--gray-100); color: var(--gray-500);
    font-size: 12px; font-weight: 700;
}
.rank-top { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; box-shadow: 0 2px 6px rgba(245,158,11,.4); }

/* ---- 列表页搜索工具条 ---- */
.search-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 12px 18px;
    border-bottom: 1px solid var(--gray-100);
    background: linear-gradient(180deg, var(--gray-50), #fff);
    border-radius: var(--radius) var(--radius) 0 0;
}
.search-bar .form-control { height: 32px; font-size: 13px; }
.search-bar .btn { height: 32px; }

/* ---- 卡片细节增强 ---- */
.card { transition: box-shadow .2s ease; }
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.card-header { background: linear-gradient(180deg, #fff, var(--gray-50)); border-radius: var(--radius) var(--radius) 0 0; }
.card-header h3 { display: flex; align-items: center; gap: 6px; }
/* 卡片头部工具区：下拉框与按钮统一 34px 高、垂直居中，文字完整显示 */
.card-header .flex,
.card-header .search-bar,
.card-header form { align-items: center; }
.card-header .btn,
.card-header .btn-sm { height: 34px; display: inline-flex; align-items: center; }
.card-header select.form-control {
    height: 34px;
    padding: 0 30px 0 12px;
    font-size: 13px;
    line-height: 32px;
    white-space: nowrap;
    text-overflow: clip;
}

/* ---- 表格增强 ---- */
.table { border-collapse: separate; border-spacing: 0; }
.table th {
    background: var(--gray-50);
    font-size: 12px; letter-spacing: .2px;
    border-bottom: 1px solid var(--gray-200);
}
.table td { border-bottom: 1px solid var(--gray-100); }
.table tbody tr { transition: background .12s ease; }
.table tbody tr:hover { background: #f8fafc; }
.table .amount { font-variant-numeric: tabular-nums; }

/* ---- 操作按钮组 ---- */
.actions { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
.actions .btn { white-space: nowrap; }

/* ---- 分页细节 ---- */
.pagination li a:hover { border-color: var(--primary); color: var(--primary); }
.pagination li.active a { box-shadow: 0 2px 8px rgba(37,99,235,.35); }

/* ---- 空状态 ---- */
.empty .icon { font-size: 46px; }
.empty p { margin-top: 6px; font-size: 13px; }

/* ---- 模态框遮罩 ---- */
.modal-mask { backdrop-filter: blur(2px); }
.modal { border: 1px solid var(--gray-200); }
.modal-header { background: linear-gradient(180deg, #fff, var(--gray-50)); border-radius: 12px 12px 0 0; }

/* ---- 待办/消息时间轴式列表 ---- */
.mini-list { padding: 6px 0; }
.mini-list .mini-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 18px;
    border-bottom: 1px solid var(--gray-100);
    transition: background .12s ease;
}
.mini-list .mini-item:last-child { border-bottom: none; }
.mini-list .mini-item:hover { background: var(--gray-50); }
.mini-list .mini-icon { width: 30px; height: 30px; border-radius: 8px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.mini-list .mini-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; color: var(--gray-700); }
.mini-list .mini-time { font-size: 12px; color: var(--gray-400); flex-shrink: 0; }

/* ---- 详情信息表 ---- */
.info-table td:first-child { color: var(--gray-400); font-size: 12px; }
.info-table td { padding: 7px 12px; }
.info-table tr:last-child td { border-bottom: none; }
/* 信息表标签列：给足最小宽度并单行不折行，避免把「业务类型/客户来源/合同编号/签约日期」等压成两行；值列自然占满剩余宽度 */
.info-table td:first-child { min-width: 140px; white-space: nowrap; }

/* ---- 按钮图标间距 ---- */
.btn .icon { margin-right: 2px; }

/* ---- 消息列表 ---- */
.msg-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--gray-100);
    transition: background .12s ease;
}
.msg-item:last-child { border-bottom: none; }
.msg-item:hover { background: var(--gray-50); }
.msg-item.unread { background: var(--primary-soft); }
.msg-item.unread:hover { background: #dbeafe; }
.msg-item .msg-icon { flex-shrink: 0; margin-top: 2px; }
.msg-item .msg-body { flex: 1; min-width: 0; }
.msg-item .msg-body .fw-600 { font-size: 13px; color: var(--gray-800); }
.msg-item .msg-actions { flex-shrink: 0; }
.dot-new { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-left: 6px; vertical-align: middle; }

/* ---- 表单卡片大屏自适应 ---- */
.form-card { width: 100%; }
/* 单列字段在大屏下限宽，避免输入框拉得过宽 */
.form-card .form-group > .form-control,
.form-card .form-group > textarea.form-control { max-width: 460px; }
/* 栅格（form-row）内字段跟随栅格均分，不受单列限宽影响 */
.form-card .form-row .form-group > .form-control { max-width: none; }
.form-card .form-row { gap: 14px 20px; }
@media (min-width: 1280px) {
    .form-card .form-row .form-group { flex: 1 1 240px; }
}
/* 设置页系数表随卡片自适应 */
.form-card .table-wrap { overflow-x: auto; }
.form-card table.table { max-width: none; width: 100%; }

/* ===== 员工表单（.emp-form）：网格均分，避免第4项掉整行；章节标题统一 ===== */
.emp-form .card-body { max-width: 960px; margin: 0 auto; }
.emp-form .form-row { display: grid; gap: 14px 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); flex-wrap: nowrap; }
.emp-form .form-row .form-group { min-width: 0; flex: none; margin-bottom: 16px; }
.emp-form .form-row .form-group > .form-control { max-width: none; width: 100%; }
.emp-form h4 { font-size: 15px; font-weight: 600; margin: 22px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #eef2f7; }
.emp-form .form-check { margin-bottom: 8px; }

/* ===== 订单详情页：统一自适应双栏 ===== */
.order-detail-grid { display: flex; flex-wrap: wrap; align-items: flex-start; margin: 0 -10px; }
.order-detail-grid > .od-left,
.order-detail-grid > .od-right { padding: 0 10px; box-sizing: border-box; margin-bottom: 16px; min-width: 0; }
.order-detail-grid > .od-left { flex: 1 1 360px; max-width: 42%; }
.order-detail-grid > .od-right { flex: 1 1 460px; max-width: 100%; }
@media (max-width: 1400px) {
    .order-detail-grid > .od-left { max-width: 44%; }
}
@media (max-width: 1024px) {
    .order-detail-grid > .od-left,
    .order-detail-grid > .od-right { flex: 1 1 100%; max-width: 100%; }
}
/* 信息表标签列：宽度由内容自适应，不写死 */
.order-detail-grid .info-table td.td-label { width: 1%; white-space: nowrap; }
/* 交付进度条自适应 */
.order-detail-grid .progress { width: 100%; max-width: 140px; }
/* 表格内长文本允许换行，随屏宽伸缩 */
.order-detail-grid .table th,
.order-detail-grid .table td { white-space: normal; }
.order-detail-grid .table .actions,
.order-detail-grid .table .actions a,
.order-detail-grid .table .actions button { white-space: nowrap; }

/* 订单详情卡片统一内边距（信息卡与表格卡一致） */
.order-detail-grid .card-body { padding: 8px 18px; }

/* ============================================
   AdminLTE 风格皮肤层（阶段1·纯视觉覆盖）
   不改变任何结构/类名/尺寸断点；保留主题变量 --primary/--sidebar/--radius。
   如需回滚，删除本段即可，原规则全部保留。
   ============================================ */

/* ---- 内容背景（AdminLTE 经典浅灰 #f4f6f9） ---- */
body { background: #f4f6f9; }
.content { background: #f4f6f9; }

/* ---- Font Awesome 图标对齐 ---- */
.nav-item .icon { display: inline-flex; align-items: center; justify-content: center; }
.nav-item .icon .fa-solid,
.nav-item .icon i { width: 16px; font-size: 14px; text-align: center; }
.btn .fa-solid, .btn i { font-size: 13px; }
.icon-btn .fa-solid, .icon-btn i { font-size: 17px; }
.user-menu .dropdown .fa-solid { width: 18px; font-size: 13px; opacity: .8; }

/* ---- 深色侧边栏（AdminLTE #343a40 质感，light 主题不受影响） ---- */
.sidebar { background: var(--sidebar-bg); }
.nav { padding: 8px 0 16px; }
.nav-section {
    margin: 14px 12px 4px; padding: 6px 12px;
    font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase;
    color: #86909c; background: transparent; border-left: none; border-radius: 4px;
}
.nav-section:hover { background: rgba(255,255,255,.05); color: #cbd5e1; }
.nav-item > a {
    margin: 1px 10px; padding: 9px 12px; border-radius: 6px; gap: 12px;
    font-size: 14px; color: var(--sidebar-text);
}
.nav-item > a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active > a {
    background: var(--sidebar-active); color: #fff; font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
[data-sidebar="light"] .nav-section { color: var(--gray-500); background: transparent; }
[data-sidebar="light"] .nav-item > a { margin: 1px 10px; }
[data-sidebar="light"] .nav-item.active > a {
    background: var(--primary-soft); color: var(--primary); box-shadow: none;
}

/* ---- 顶栏（白色 + 底部轻阴影，AdminLTE navbar） ---- */
.topbar {
    background: #fff; border-bottom: 1px solid #e6e8ec;
    box-shadow: 0 1px 3px rgba(0,0,0,.05);
    height: 58px;
}
.topbar .page-title { font-size: 17px; font-weight: 600; color: var(--gray-800); }
.topbar .icon-btn {
    width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; color: var(--gray-600);
}
.topbar .icon-btn:hover { background: var(--gray-100); color: var(--gray-800); }
.user-menu .trigger { border-radius: 20px; }
.user-menu .avatar {
    width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px;
}
.user-menu .dropdown { border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); border: 1px solid var(--gray-200); overflow: hidden; padding: 6px; min-width: 180px; }
.user-menu .dropdown a { border-radius: 6px; }

/* ---- 卡片（AdminLTE：细边框 + 轻阴影 + 标题主色竖条） ---- */
.card {
    background: #fff; border: 1px solid #e6e8ec; border-radius: var(--radius);
    box-shadow: 0 1px 2px rgba(0,0,0,.04); margin-bottom: 18px; overflow: hidden;
}
.card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.card-header { background: #fff; padding: 14px 18px; border-bottom: 1px solid #eef0f3; }
.card-header h3 { border-left: 3px solid var(--primary); padding-left: 10px; }
.card-body { padding: 18px; }

/* ---- 表格（AdminLTE 表头浅灰 + 斑马纹 + hover） ---- */
.table th { background: #f8f9fa; color: var(--gray-600); border-bottom: 1px solid #e6e8ec; font-weight: 600; }
.table td { border-bottom: 1px solid #eef0f3; }
.table tbody tr:nth-child(even) { background: #fafbfc; }
.table tbody tr:hover { background: #eef3fb; }
.table { border-radius: 6px; }

/* ---- 按钮（AdminLTE 36px / 小圆角） ---- */
.btn { border-radius: 6px; font-weight: 500; padding: 8px 16px; }
.btn-primary { box-shadow: 0 2px 6px rgba(37,99,235,.25); }
.btn-sm { padding: 5px 12px; border-radius: 6px; }

/* ---- 徽章（小圆角胶囊） ---- */
.badge { border-radius: 4px; font-weight: 600; padding: 3px 9px; }

/* ---- 分页（AdminLTE 方块圆角） ---- */
.pagination li a { border-radius: 6px; border: 1px solid #e6e8ec; color: var(--gray-600); }
.pagination li.active a { background: var(--primary); border-color: var(--primary); }
.pagination-wrap { padding: 16px 0 6px; }

/* ---- 统计小部件（AdminLTE small-box 观感，不改结构） ---- */
.stat-card .icon, .stat-card .icon-lg { border-radius: 10px; }

/* ---- 模态框圆角统一 ---- */
.modal { border-radius: 10px; }

/* ---- 响应式：移动端顶栏图标 ---- */
@media (max-width: 992px) {
    .topbar .icon-btn { width: 36px; height: 36px; }
}

/* ---- 侧栏折叠态（64px）：重置项外边距，保证图标居中 ---- */
@media (min-width: 993px) {
    body.sidebar-collapsed .nav-item > a { margin: 1px 0; padding: 12px 0; justify-content: center; }
    body.sidebar-collapsed .nav-section { margin: 8px 6px 2px; }
}

/* ============================================
   阶段2 共性增强（纯视觉，不改结构/类名/事件）
   ============================================ */

/* FA 图标在按钮/标题/徽章内的对齐与尺寸 */
.btn .fa-solid, .card-header h3 .fa-solid, .search-bar .fa-solid { line-height: 1; }
.btn .fa-solid { font-size: 13px; }
.card-header h3 .fa-solid { color: var(--primary); font-size: 15px; }

/* 表格横向滚动：触摸平滑 + 阴影提示可滑 */
.table-wrap, .table-responsive { -webkit-overflow-scrolling: touch; }

/* 操作列：按钮紧凑、永不换行、纵向在窄屏堆叠 */
.table .actions { gap: 5px; flex-wrap: wrap; }
.table .actions .btn-sm { padding: 4px 10px; }

/* 窄屏：搜索工具条控件全宽换行 */
@media (max-width: 768px) {
    .search-bar { padding: 12px 14px; gap: 8px; }
    .search-bar .form-control,
    .search-bar .btn { width: 100%; height: 38px; }
    .search-bar .spacer { display: none; }
    .card-body { padding: 12px; }
    .content { padding: 14px; }
}

/* 表单页：控件统一垂直对齐 */
.form-row .form-control { height: 38px; }
textarea.form-control { height: auto; }

/* 空状态图标与文字间距统一 */
.empty { color: var(--gray-400); }

/* ================= 阶段3：交互组件统一（Toast / 模态框 / 确认框 / 加载态 / 校验） ================= */
/* Toast：白底卡片 + 左侧类型色条 + 类型图标，右上角堆叠，可手动关闭 */
#toast-wrap { top: 18px; right: 18px; gap: 10px; }
.toast {
    display: flex; align-items: center; gap: 10px;
    background: #fff; color: var(--gray-800);
    padding: 11px 14px; border-radius: 10px;
    font-size: 13.5px; line-height: 1.5;
    min-width: 240px; max-width: 380px;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--gray-400);
    box-shadow: 0 8px 24px rgba(15,23,42,.14);
}
.toast .t-ico { font-size: 18px; flex: 0 0 auto; }
.toast .t-msg { flex: 1; }
.toast .t-x { cursor: pointer; color: var(--gray-400); font-size: 15px; padding: 2px 4px; line-height: 1; }
.toast .t-x:hover { color: var(--gray-700); }
.toast.success { background:#fff; color:var(--gray-800); border-left-color:#16a34a; }
.toast.success .t-ico { color:#16a34a; }
.toast.error { background:#fff; color:var(--gray-800); border-left-color:#dc2626; }
.toast.error .t-ico { color:#dc2626; }
.toast.warning { background:#fff; color:var(--gray-800); border-left-color:#d97706; }
.toast.warning .t-ico { color:#d97706; }
.toast.info { background:#fff; color:var(--gray-800); border-left-color:#2563eb; }
.toast.info .t-ico { color:#2563eb; }

/* 模态框：遮罩淡入、关闭按钮圆形 hover、头部图标对齐 */
.modal-mask { background: rgba(15,23,42,.55); opacity: 1; }
.modal-mask.show { opacity: 1; }
.modal { box-shadow: 0 18px 50px rgba(15,23,42,.25); opacity: 1; }
.modal-close { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; transition: background .15s,color .15s; }
.modal-close:hover { background: var(--gray-100); color: var(--gray-800); }
.modal-header h3 { display:flex; align-items:center; gap:8px; }

/* 自定义确认框（复用模态框，居中图标 + 标题 + 说明） */
.confirm-body { text-align:center; padding:26px 26px 10px; }
.confirm-icon { width:58px; height:58px; border-radius:50%; margin:0 auto 14px; display:flex; align-items:center; justify-content:center; font-size:26px; }
.confirm-icon.danger { background:#fee2e2; color:#dc2626; }
.confirm-icon.warn { background:#fef3c7; color:#d97706; }
.confirm-icon.info { background:#dbeafe; color:#2563eb; }
.confirm-title { font-size:16px; font-weight:600; color:var(--gray-800); margin-bottom:6px; }
.confirm-msg { font-size:13.5px; color:var(--gray-600); line-height:1.6; }
.modal-footer.justify-center { justify-content:center; }

/* 按钮加载态：内联 spinner 图标旋转，禁用点击，保留按钮尺寸 */
.btn.is-loading { position:relative; pointer-events:none; opacity:.85; }
.btn.is-loading .fa-spinner { font-size:15px; }
.btn.is-loading .btn-label { visibility:hidden; }

/* 表单校验错误统一样式 */
.form-control.is-invalid { border-color:#dc2626 !important; }
.invalid-feedback { color:#dc2626; font-size:12px; margin-top:4px; display:block; }

/* ============================================================
 * v1.4.58 弹窗统一补丁：.modal-mask 始终屏幕居中、可滚动、关闭可靠
 * ============================================================ */
.modal-mask {
    display: none;
    position: fixed; inset: 0;
    align-items: center; justify-content: center;
    padding: 20px; overflow-y: auto;
    background: rgba(15,23,42,.55);
    z-index: 1000;
}
.modal-mask.show { display: flex !important; }
.modal-mask > .modal { display: block !important; margin: auto; flex: 0 1 auto; }
/* 修复 vendor/AL 把 .modal 设为 position:fixed;left:0 导致弹窗贴左、被侧栏遮挡：
   显示时回到遮罩 flex 流内，由遮罩 justify/align 居中（仅作用于 .modal-mask 内弹窗，不影响 #__ov） */
.modal-mask.show > .modal {
    position: static !important;
    left: auto !important;
    top: auto !important;
    margin: auto !important;
    /* 高度随内容自适应：短弹窗（审核意见/确认框）贴合内容，不被撑到 max-height 留下大片空白；
       高弹窗才限高并内部滚动。仅作用于 .modal-mask 内弹窗，不影响 #__ov */
    height: auto !important;
    max-height: 88vh;
    overflow-y: auto;
}
@media (max-width: 576px) {
    .modal-mask { padding: 12px; overflow-y: auto; }
    .modal-mask > .modal { max-width: 100% !important; max-height: 94vh; overflow-y: auto; }
    #__ov { overflow-y: auto; }
    #__ov > .modal { max-height: 94vh; overflow-y: auto; }
}

/* 兜底：所有可见弹窗卡片高度随内容、限高、内部可滚，避免短弹窗被撑到最大高度留下大片空白 */
#__ov > .modal,
.modal-mask.show > .modal {
    height: auto !important;
    max-height: 88vh;
    overflow-y: auto;
}

/* 页面级横向溢出防护：正常状态不出现底部横向滚动条，宽表格由 .table-wrap/.table-responsive 内部滚动 */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* confirmDialog 确认框：全屏遮罩 + flex 居中（修复左上角贴边） */
.confirm-modal { display: none !important; }
.confirm-modal.show {
    display: flex !important;
    position: fixed;
    inset: 0;
    z-index: 1050;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.5);
}
.confirm-modal .modal-dialog { margin: 0; }

/* 弹窗浮层：默认隐藏；显示/居中由 JS 内联控制，避免 !important 压住关闭时的 display:none */
#__ov {
    align-items: center;
    justify-content: center;
}
#__ov > .modal {
    height: auto !important;
    min-height: 0 !important;
    flex: none !important;
    align-self: auto !important;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 18px 50px rgba(15,23,42,.35);
}

/* 待办列表项：左状态 / 中内容 / 右操作，横向排布，避免堆叠挤压 */
.todo-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-bottom: 1px solid #eef0f3;
}
.todo-item:last-child { border-bottom: 0; }
.todo-check { flex: 0 0 auto; display: flex; align-items: center; min-width: 60px; padding-top: 2px; }
.todo-body { flex: 1 1 auto; min-width: 0; }
.todo-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding-top: 2px; }
.todo-item.done .todo-body { color: #8a94a6; }

/* 侧边分组菜单：默认收起子级，.menu-open 时展开（不依赖 vendor 脚本，桌面/移动通用）。
   折叠态 body.sidebar-collapse 的 !important 规则优先级更高，不受影响。 */
.nav-sidebar > .nav-item.has-treeview > .nav-treeview { display: none; }
.nav-sidebar > .nav-item.has-treeview.menu-open > .nav-treeview { display: block; }

/* ---------- 个人中心：顶部横向信息条 ---------- */
.profile-banner { margin-bottom: 16px; }
.profile-banner-inner { display: flex; align-items: center; gap: 18px; padding: 18px; }
.profile-avatar {
    flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700;
}
.profile-id { flex: 1 1 auto; min-width: 0; }
.profile-id-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.profile-name { font-size: 19px; font-weight: 700; color: #1f2937; }
.profile-badge { font-size: 12.5px; color: #2563eb; background: #e8eefc; padding: 3px 10px; border-radius: 999px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 8px; font-size: 13px; color: #6b7280; }
.profile-meta b { font-weight: 600; color: #374151; margin-right: 6px; }
@media (max-width: 576px) {
    .profile-banner-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
    .profile-meta { gap: 6px 18px; }
}

/* ---------- 个人中心：账号安全面板 ---------- */
.sec-progress { margin-bottom: 16px; }
.sec-progress-head { display: flex; justify-content: space-between; font-size: 13px; color: var(--gray-600, #4b5563); margin-bottom: 8px; }
.sec-progress-pct { font-weight: 700; color: var(--primary, #2563eb); }
.sec-progress-bar { height: 8px; border-radius: 6px; background: #eef0f3; overflow: hidden; }
.sec-progress-bar > span { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #3b82f6, #2563eb); transition: width .3s ease; }
.sec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sec-list li { display: flex; align-items: flex-start; gap: 12px; }
.sec-dot { flex: 0 0 10px; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.sec-dot.ok { background: #16a34a; }
.sec-dot.miss { background: #d1d5db; }
.sec-item-title { font-size: 14px; font-weight: 600; color: #1f2937; }
.sec-item-sub { font-size: 12.5px; color: #6b7280; margin-top: 2px; }

/* ---------- 窄屏响应式：指标条(stat-card)由四列改为两列，避免 col-3 固定25%挤压溢出 ---------- */
@media (max-width: 767px) {
    .row:has(> .col-3 > .stat-card) > .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 10px;
    }
    .stat-card { padding: 12px; gap: 10px; min-width: 0; }
    .stat-card > div { min-width: 0; flex: 1 1 auto; }
    .stat-card .icon { width: 36px; height: 36px; font-size: 17px; }
    .stat-card .icon-lg { width: 40px; height: 40px; font-size: 19px; }
    .stat-card .num, .stat-card .stat-value {
        font-size: 18px; white-space: nowrap; overflow: hidden;
        text-overflow: ellipsis; max-width: 100%;
    }
    .stat-card .label, .stat-card .stat-label { font-size: 12px; }
    .stat-card .stat-sub { font-size: 11px; }
}

/* ---------- 列表表格横向滚动条可见化 ----------
   宽表（订单/报价/客户/合同等）内容超出容器时，在表格区底部给出可见的横向滚动条，
   避免右侧列被误认为被裁切；不改变表格内部布局与纵向滚动。 */
.table-responsive,
.table-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #c3cad6 #eef1f5;
}
.table-responsive::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar { height: 9px; }
.table-responsive::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track { background: #eef1f5; border-radius: 9px; }
.table-responsive::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb { background: #c3cad6; border-radius: 9px; }
.table-responsive::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover { background: #9aa6b8; }
