/* ========== 全局样式 ========== */
:root {
    --primary: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --primary-bg: #eff6ff;
    --sidebar-bg: #0f172a;
    --sidebar-bg2: #1e293b;
    --sidebar-hover: #334155;
    --sidebar-active: #2563eb;
    --body-bg: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --success: #16a34a;
    --success-bg: #dcfce7;
    --warning: #d97706;
    --warning-bg: #fef3c7;
    --danger: #dc2626;
    --danger-bg: #fee2e2;
    --info: #0284c7;
    --info-bg: #e0f2fe;
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow: 0 1px 3px 0 rgba(0,0,0,0.1), 0 1px 2px -1px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);
    --radius: 10px;
    --radius-sm: 6px;
    --radius-lg: 14px;
    --sidebar-w: 240px;
}

* { box-sizing: border-box; }

body {
    background-color: var(--body-bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Microsoft YaHei", sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

/* ========== 登录页 ========== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 40%, #1d4ed8 100%);
    position: relative;
    overflow: hidden;
}
.login-wrapper::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    border-radius: 50%;
}
.login-wrapper::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(14,165,233,0.1) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
}
.login-card {
    width: 420px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.login-header {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: #fff;
    padding: 36px 40px 28px;
    text-align: center;
}
.login-header .login-icon {
    font-size: 42px;
    margin-bottom: 8px;
    display: block;
}
.login-header h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: 1px; }
.login-header p { margin: 6px 0 0; font-size: 13px; opacity: 0.75; }
.login-body { padding: 32px 40px; }
.login-body .form-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; margin-bottom: 6px; }
.login-body .form-control { height: 44px; border-radius: var(--radius-sm); border: 1.5px solid var(--border-color); font-size: 14px; }
.login-body .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.login-body .btn-primary { height: 44px; font-size: 15px; font-weight: 600; border-radius: var(--radius-sm); }
.login-error {
    color: var(--danger);
    font-size: 13px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--danger-bg);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(220,38,38,0.2);
}

/* ========== 布局 ========== */
.app-layout { display: flex; min-height: 100vh; }

/* 侧边栏 */
.sidebar {
    width: var(--sidebar-w);
    background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg2) 100%);
    color: #94a3b8;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 1000;
    transition: width 0.3s ease;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.sidebar-header {
    padding: 22px 20px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,0,0,0.15);
}
.sidebar-header .icon { font-size: 20px; }

.sidebar-nav { padding: 10px 12px; }

/* ===== 统一导航项基础样式 ===== */
.sidebar-nav .nav-link,
.sidebar-nav .nav-group-title,
.sidebar-nav .nav-subgroup-title {
    display: flex;
    align-items: center;
    padding: 11px 14px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 8px;
    border-left: 3px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: background 0.18s, color 0.18s;
}
.sidebar-nav .nav-icon { width: 22px; text-align: center; margin-right: 10px; font-size: 15px; flex-shrink: 0; }
.sidebar-nav .nav-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== L1 标题：加粗、高亮色 ===== */
.sidebar-nav .nav-group-title,
.sidebar-nav .nav-l1 {
    color: #e2e8f0;
    font-weight: 600;
}

/* ===== L2 菜单项：与 L1 同字重，靠缩进+颜色区分层级 ===== */
.sidebar-nav .nav-group-items > .nav-link {
    color: #94a3b8;
    font-weight: 600;
    padding-left: 28px;
}
.sidebar-nav .nav-group-items > .nav-link .nav-icon {
    font-size: 13px;
    width: 18px;
    margin-right: 8px;
}

/* 悬停 */
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-group-title:hover,
.sidebar-nav .nav-subgroup-title:hover {
    background: rgba(255,255,255,0.06);
    color: #fff;
}

/* 箭头（可展开项） */
.sidebar-nav .nav-arrow {
    margin-left: auto;
    font-size: 9px;
    color: #64748b;
    transition: transform 0.25s ease, color 0.2s;
}
.sidebar-nav .nav-group.expanded > .nav-group-title > .nav-arrow,
.sidebar-nav .nav-subgroup.expanded > .nav-subgroup-title > .nav-arrow {
    transform: rotate(90deg);
    color: #93c5fd;
}

/* 激活态 */
.sidebar-nav .nav-link.active {
    background: linear-gradient(90deg, rgba(37,99,235,0.22), rgba(37,99,235,0.05));
    color: #fff;
    border-left-color: var(--sidebar-active);
    box-shadow: inset 0 0 0 1px rgba(37,99,235,0.15);
}

/* ===== L1 分组容器 ===== */
.sidebar-nav .nav-group { margin-bottom: 2px; }

/* 子菜单容器：折叠动画 */
.sidebar-nav .nav-group-items,
.sidebar-nav .nav-subgroup-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.sidebar-nav .nav-group.expanded > .nav-group-items { max-height: 600px; }
.sidebar-nav .nav-subgroup.expanded > .nav-subgroup-items { max-height: 400px; }

/* ===== 参数管理：菜单式布局（左侧竖排菜单 + 右侧内容） ===== */
.param-menu-layout { display: flex; gap: 20px; align-items: flex-start; }
.param-menu {
    width: 200px;
    flex: 0 0 200px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 10px;
    position: sticky;
    top: 76px;
}
.param-menu-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 6px 10px 10px;
}
.param-menu-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-size: 14px;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}
.param-menu-item:hover { background: #f1f5f9; color: #1e293b; }
.param-menu-item.active {
    background: rgba(37,99,235,0.10);
    color: #2563eb;
    border-left-color: var(--sidebar-active, #2563eb);
    font-weight: 600;
}
.menu-count {
    margin-left: auto;
    background: #e2e8f0;
    color: #475569;
    border-radius: 10px;
    padding: 1px 8px;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    line-height: 18px;
}
.param-menu-item.active .menu-count {
    background: rgba(37,99,235,0.15);
    color: #2563eb;
}
.stat-summary {
    margin-bottom: 12px;
    padding: 10px 16px;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bae6fd;
    font-size: 13px;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-summary strong { font-size: 16px; }
.param-menu-content { flex: 1; min-width: 0; }
@media (max-width: 768px) {
    .param-menu-layout { flex-direction: column; }
    .param-menu { width: 100%; flex: none; position: static; }
}

/* 主内容区 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* 顶栏 */
.topbar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: var(--shadow-sm);
}
.topbar-breadcrumb {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.topbar-breadcrumb .topbar-sub {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 8px;
}
.topbar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar-user .user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}
.topbar-user .user-name { font-size: 14px; color: var(--text-secondary); font-weight: 500; }
.topbar-user .btn-logout {
    margin-left: 8px;
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.topbar-user .btn-logout:hover { color: var(--danger); background: var(--danger-bg); }

/* 内容容器 */
.content-area {
    padding: 28px;
    flex: 1;
}

/* ========== 页面标题区 ========== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}
.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.page-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ========== 卡片 ========== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}
.card-header .card-title { display: flex; align-items: center; gap: 8px; }
.card-header .card-title .dot {
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}
.card-body { padding: 20px; }

/* ========== 统计卡片 ========== */
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card.stat-blue::before { background: var(--primary); }
.stat-card.stat-green::before { background: var(--success); }
.stat-card.stat-orange::before { background: var(--warning); }
.stat-card.stat-red::before { background: var(--danger); }
.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.stat-icon.bg-blue { background: var(--primary-bg); color: var(--primary); }
.stat-icon.bg-green { background: var(--success-bg); color: var(--success); }
.stat-icon.bg-orange { background: var(--warning-bg); color: var(--warning); }
.stat-icon.bg-red { background: var(--danger-bg); color: var(--danger); }
.stat-info h3 { margin: 0; font-size: 30px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.stat-info p { margin: 4px 0 0; font-size: 13px; color: var(--text-muted); }

/* ========== 表格 ========== */
.table-wrapper { overflow-x: auto; }
table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
table.data-table th {
    background: #f8fafc;
    padding: 12px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
table.data-table td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-primary);
    white-space: nowrap;
}
table.data-table tbody tr { transition: background 0.15s; }
table.data-table tbody tr:hover { background: #f8fafc; }
table.data-table tbody tr:last-child td { border-bottom: none; }

/* ========== 状态标签 ========== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.badge-pending { background: var(--warning-bg); color: var(--warning); }
.badge-checked { background: var(--success-bg); color: var(--success); }
.badge-flagged { background: var(--danger-bg); color: var(--danger); }
.badge-normal { background: var(--info-bg); color: var(--info); }
.badge-abnormal { background: var(--danger-bg); color: var(--danger); }
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-failed { background: var(--danger-bg); color: var(--danger); }
.badge-admin { background: var(--primary-bg); color: var(--primary); }
.badge-user { background: #f1f5f9; color: var(--text-secondary); }

/* ========== 筛选栏 ========== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 20px;
    padding: 20px 24px;
    background: #fff;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}
.filter-bar .form-group { display: flex; flex-direction: column; gap: 5px; }
.filter-bar label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.filter-bar .form-control, .filter-bar .form-select {
    height: 36px;
    font-size: 13px;
    min-width: 140px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.filter-bar .form-control:focus, .filter-bar .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}

/* 日期快捷按钮组 */
.date-range-btns {
    display: inline-flex;
    gap: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.date-range-btns button {
    padding: 6px 14px;
    font-size: 12px;
    border: none;
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border-right: 1px solid var(--border-color);
}
.date-range-btns button:last-child { border-right: none; }
.date-range-btns button:hover { background: var(--primary-bg); color: var(--primary); }
.date-range-btns button.active { background: var(--primary); color: #fff; font-weight: 600; }

/* ========== 分页 ========== */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding: 0 4px;
}
.pagination-info { font-size: 13px; color: var(--text-muted); }
.pagination .page-link {
    font-size: 13px;
    padding: 7px 13px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-sm) !important;
    margin: 0 2px;
    transition: all 0.2s;
}
.pagination .page-link:hover { background: var(--primary-bg); color: var(--primary); border-color: var(--primary); }
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* ========== 按钮 ========== */
.btn { font-size: 13px; padding: 7px 18px; border-radius: var(--radius-sm); font-weight: 500; transition: all 0.2s; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); box-shadow: 0 4px 12px rgba(37,99,235,0.25); }
.btn-success { background: var(--success); border-color: var(--success); }
.btn-success:hover { background: #15803d; border-color: #15803d; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.btn-secondary { background: #f1f5f9; border-color: var(--border-color); color: var(--text-secondary); }
.btn-secondary:hover { background: #e2e8f0; }
.btn-sm { font-size: 12px; padding: 4px 12px; }
.btn-outline-primary { border-color: var(--primary); color: var(--primary); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }
.btn-outline-success { border-color: var(--success); color: var(--success); }
.btn-outline-success:hover { background: var(--success); color: #fff; }
.btn-outline-danger { border-color: var(--danger); color: var(--danger); }
.btn-outline-danger:hover { background: var(--danger); color: #fff; }

/* ========== 模态框 ========== */
.modal-backdrop { z-index: 1050; }
.modal-content { border-radius: var(--radius); border: none; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border-color); padding: 16px 20px; }
.modal-title { font-size: 16px; font-weight: 600; }
.modal-body { padding: 20px; }
.modal-footer { border-top: 1px solid var(--border-color); padding: 12px 20px; }

/* ========== 进度条 ========== */
.progress { border-radius: 20px; background: #e2e8f0; }
.progress-bar { border-radius: 20px; transition: width 0.5s ease; }

/* ========== 快捷入口卡片 ========== */
.quick-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.quick-card .card {
    transition: all 0.25s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
}
.quick-card .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.quick-card .card-body { text-align: center; padding: 28px 20px; }
.quick-card .quick-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 12px;
}
.quick-card .quick-icon.bg-blue { background: var(--primary-bg); color: var(--primary); }
.quick-card .quick-icon.bg-green { background: var(--success-bg); color: var(--success); }
.quick-card .quick-icon.bg-orange { background: var(--warning-bg); color: var(--warning); }
.quick-card h5 { margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.quick-card p { margin: 0; font-size: 12px; color: var(--text-muted); }

/* ========== 日期选择栏 ========== */
.date-picker-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.date-picker-bar label { font-size: 13px; color: var(--text-secondary); font-weight: 500; white-space: nowrap; }
.date-picker-bar .form-control {
    height: 34px;
    font-size: 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    max-width: 160px;
}
.date-picker-bar .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }

/* ========== 工具类 ========== */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mt-3 { margin-top: 16px; }
.mb-3 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 24px; }
.mt-1 { margin-top: 8px; }
.font-bold { font-weight: 600; }
.cursor-pointer { cursor: pointer; }
.text-muted { color: var(--text-muted) !important; }
.g-3 { gap: 16px; }

/* 文字颜色（避免依赖 Bootstrap CDN） */
.text-primary { color: var(--primary) !important; }
.text-success { color: var(--success) !important; }
.text-warning { color: var(--warning) !important; }
.text-danger { color: var(--danger) !important; }
.text-info { color: var(--info) !important; }

/* ========== 看板：分组柱状图（各地区 × 业务类型） ========== */
.dash-chart {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed var(--border);
}
.dash-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}
.rc-legend { display: flex; gap: 14px; align-items: center; }
.rc-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.rc-dot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.rc-dot.pay { background: #3b7bf0; }
.rc-dot.nontax { background: #19b39a; }
.rc-scroll {
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 6px;
    padding-top: 22px;
}
.rc-row {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 72px;
    vertical-align: top;
}
.rc-bars {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
}
.rc-bar {
    position: relative;
    width: 26px;
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height .3s ease;
}
.rc-bar.pay { background: #3b7bf0; }
.rc-bar.nontax { background: #19b39a; }
.rc-val {
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    background: #fff;
    padding: 0 3px;
    border-radius: 3px;
}
.rc-x {
    margin-top: 8px;
    text-align: center;
    width: 100%;
}
.rc-region {
    display: block;
    font-size: 10px;
    line-height: 1.25;
    color: var(--text-muted);
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    min-height: 24px;
}
.rc-total {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}
.rc-foot {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
}


/* ========== 监管看板（分块结果分析） ========== */
.dash-overview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 22px 26px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-md);
    flex-wrap: wrap;
}
.dash-overview-text h2 { margin: 0 0 4px; font-size: 22px; font-weight: 700; }
.dash-overview-text p { margin: 0; font-size: 13px; opacity: 0.82; }
.dash-overview-time {
    font-size: 13px;
    background: rgba(255,255,255,0.12);
    padding: 7px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.dot-live {
    width: 8px; height: 8px; border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74,222,128,0.6); }
    70% { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
    100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

.dash-section { margin-bottom: 28px; }
.dash-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 14px;
    padding-left: 4px;
}
.dash-section-icon {
    width: 30px; height: 30px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary-bg); color: var(--primary);
    border-radius: 8px; font-size: 16px;
}

.dash-block {
    border: 1px solid var(--border-color);
    height: 100%;
    transition: all 0.25s ease;
}
.dash-block:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.dash-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}
.dash-block-title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.dash-block-ico {
    width: 32px; height: 32px;
    border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 16px; flex-shrink: 0;
}
.ico-blue { background: var(--primary-bg); color: var(--primary); }
.ico-orange { background: var(--warning-bg); color: var(--warning); }
.ico-purple { background: #ede9fe; color: #7c3aed; }
.ico-green { background: var(--success-bg); color: var(--success); }
.dash-block-enter {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.15s;
}
.dash-block-enter:hover { color: var(--primary-dark); text-decoration: underline; }
.dash-block-body { padding: 18px; }

.mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.mini-stat {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    background: #fbfdff;
    text-align: left;
}
.mini-stat .num { display: block; font-size: 24px; font-weight: 700; color: var(--text-primary); line-height: 1.1; }
.mini-stat .lbl { display: block; margin-top: 3px; font-size: 12px; color: var(--text-muted); }

.reason-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin: 14px 0 10px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
}
.analysis-list { display: flex; flex-direction: column; gap: 9px; }
.analysis-row { display: flex; align-items: center; gap: 10px; }
.analysis-row.sm { gap: 8px; }
.a-lbl { font-size: 12px; color: var(--text-secondary); flex: 0 0 84px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.analysis-row.sm .a-lbl { flex: 0 0 76px; font-size: 11.5px; }
.a-bar { flex: 1; min-width: 0; }
.analysis-row .progress { background: #e2e8f0; border-radius: 20px; }
.a-val { font-size: 12px; font-weight: 600; color: var(--text-primary); flex: 0 0 auto; min-width: 34px; text-align: right; }

.dash-block-cols { display: flex; gap: 28px; flex-wrap: wrap; }
.dash-col { flex: 1; min-width: 260px; }
.dash-col .mini-grid { margin-bottom: 14px; }

@media (max-width: 768px) {
    .dash-block-cols { flex-direction: column; gap: 16px; }
    .dash-overview { flex-direction: column; align-items: flex-start; }
}

/* ========== 行政许可管理：工具栏 + 新增按钮（重设计） ========== */
.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}
.btn-add {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    padding: 9px 18px;
    border-radius: 9px;
    font-weight: 600;
    font-size: 13.5px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    white-space: nowrap;
}
.btn-add:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(37, 99, 235, .42); filter: brightness(1.04); color: #fff; }
.btn-add:active { transform: translateY(0); box-shadow: 0 3px 10px rgba(37, 99, 235, .3); }
.btn-add .plus { font-size: 17px; line-height: 1; font-weight: 700; }

/* ========== 多标签页导航 ========== */
.mt-tab-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    padding: 0 8px;
    min-height: 42px;
    position: relative;
    z-index: 998;
}

.mt-scroll-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 32px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    color: #64748b;
    border-radius: 6px;
    transition: background 0.15s;
    flex-shrink: 0;
}
.mt-scroll-btn:hover { background: #e2e8f0; color: #1e293b; }

.mt-tab-bar {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scroll-behavior: smooth;
    flex: 1;
    padding: 5px 0;
}
.mt-tab-bar::-webkit-scrollbar { height: 0; }

.mt-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    background: transparent;
    border: 1px solid transparent;
    border-bottom: none;
    transition: all 0.15s;
    user-select: none;
}
.mt-tab:hover { background: #e2e8f0; color: #1e293b; }
.mt-tab.active {
    background: #fff;
    color: #2563eb;
    border-color: #e2e8f0;
    font-weight: 600;
}
.mt-tab-title { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.mt-tab-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 15px;
    line-height: 1;
    color: #94a3b8;
    transition: all 0.15s;
}
.mt-tab-close:hover { background: #fee2e2; color: #dc2626; }

.mt-tab-content {
    flex: 1;
    position: relative;
    overflow: hidden;
}
.mt-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: none;
    background: var(--body-bg);
}
.mt-iframe.active { display: block; }

/* 框架页面：让 main-content 填满剩余空间 */
body > .app-layout > .main-content {
    height: 100vh;
    overflow: hidden;
}
body > .app-layout > .main-content > .mt-tab-content {
    flex: 1;
    height: calc(100vh - 60px - 42px);
}

/* ========== iframe内嵌模式：隐藏侧边栏和顶栏 ========== */
body.iframe-mode > .app-layout > .sidebar,
body.iframe-mode > .app-layout > .main-content > .topbar,
body.iframe-mode > .app-layout > .main-content > .mt-tab-wrapper {
    display: none !important;
}
body.iframe-mode > .app-layout > .main-content {
    margin-left: 0 !important;
    height: 100vh;
    overflow: auto;
}
body.iframe-mode > .app-layout > .main-content > .content-area {
    padding: 20px;
}
.search-form { display: flex; align-items: center; gap: 8px; }
.search-form .form-control { width: 280px; max-width: 60vw; }
.search-form .form-control[type="search"] { border-radius: 8px; }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.btn-export {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #1d7a46;
    border: 1px solid #1d7a46;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease;
}
.btn-export:hover { background: #1d7a46; color: #fff; text-decoration: none; }
.btn-export .ei { font-size: 14px; line-height: 1; }

/* 看板：业务核查卡片等高布局 */
.dash-block { display: flex; flex-direction: column; }
.dash-block .dash-block-body { flex: 1 1 auto; }

/* 看板：提前 6 个月到期提醒 */
.expire-remind {
    margin-top: 12px;
    padding: 10px 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
}
.expire-remind-title { font-size: 12.5px; font-weight: 700; color: #c2410c; margin-bottom: 6px; }
.expire-remind ul { margin: 0; padding-left: 0; list-style: none; }
.expire-remind li {
    display: flex; gap: 8px; align-items: baseline;
    font-size: 12px; padding: 3px 0; border-bottom: 1px dashed #fde4cf;
}
.expire-remind li:last-child { border-bottom: none; }
.expire-remind .er-name { font-weight: 600; color: var(--text); }
.expire-remind .er-doc { color: var(--text-muted); }
.expire-remind .er-date { margin-left: auto; color: #c2410c; font-weight: 600; white-space: nowrap; }

