/* ============================================
   卡密投流系统 - 现代风格自定义样式
   Bootstrap 5 扩展
   ============================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --sidebar-bg: #1e1e2e;
  --sidebar-hover: #313244;
  --sidebar-active: #6366f1;
  --header-bg: #ffffff;
  --body-bg: #f5f6fa;
  --card-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --card-shadow-hover: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  background: var(--body-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1e293b;
}

/* ===== 顶部导航 ===== */
.navbar-top {
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  height: 60px;
  padding: 0 20px;
  position: fixed;
  top: 0;
  left: 240px;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-top .left-area {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.navbar-top .breadcrumb-area {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #334155;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mobile-menu-btn:hover { background: #f1f5f9; }
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
}
.navbar-top .breadcrumb-area i { color: #94a3b8; margin-right: 8px; }
.navbar-top .right-area { display: flex; align-items: center; gap: 16px; }
.navbar-top .user-info {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 8px; cursor: pointer;
  transition: background .2s;
}
.navbar-top .user-info:hover { background: #f1f5f9; }
.navbar-top .user-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.navbar-top .dropdown-menu { border: none; box-shadow: 0 10px 30px rgba(0,0,0,0.15); border-radius: 10px; }

/* ===== 侧边栏 ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 240px;
  background: var(--sidebar-bg);
  z-index: 200;
  overflow-y: auto;
  transition: width .25s;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: #45475a; border-radius: 4px; }

.sidebar .logo {
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid #313244;
  gap: 10px;
}
.sidebar .logo .logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.sidebar .logo .logo-text {
  color: #fff; font-size: 16px; font-weight: 700;
  letter-spacing: .5px;
}

.sidebar-menu { padding: 12px 0; }
.sidebar-menu .menu-item {
  display: flex;
  align-items: center;
  padding: 11px 20px;
  color: #a6adc8;
  text-decoration: none;
  font-size: 14px;
  transition: all .2s;
  gap: 12px;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.sidebar-menu .menu-item i { font-size: 18px; width: 20px; text-align: center; }
.sidebar-menu .menu-item:hover {
  background: var(--sidebar-hover);
  color: #fff;
}
.sidebar-menu .menu-item.active {
  background: var(--sidebar-hover);
  color: #fff;
  border-left-color: var(--sidebar-active);
}
.sidebar-menu .submenu {
  background: rgba(0,0,0,0.15);
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s;
}
.sidebar-menu .submenu.open { max-height: 500px; }
.sidebar-menu .submenu .menu-item {
  padding-left: 52px;
  font-size: 13px;
}

/* ===== 主内容区 ===== */
.main-content {
  margin-left: 240px;
  margin-top: 60px;
  padding: 24px;
  min-height: calc(100vh - 60px);
}

/* ===== 卡片 ===== */
.card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  transition: box-shadow .2s;
}
.card:hover { box-shadow: var(--card-shadow-hover); }
.card-header {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 20px;
  border-radius: var(--radius) var(--radius) 0 0 !important;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-body { padding: 20px; }

/* ===== 数据卡片 ===== */
.stat-card {
  border: none;
  border-radius: var(--radius);
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
  transition: transform .2s;
}
.stat-card:hover { transform: translateY(-3px); }
.stat-card .stat-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  opacity: 0.2;
}
.stat-card .stat-label { font-size: 13px; opacity: 0.9; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 28px; font-weight: 700; }
.stat-card .stat-sub { font-size: 12px; opacity: 0.8; margin-top: 4px; }

.bg-gradient-1 { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.bg-gradient-2 { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }
.bg-gradient-3 { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-gradient-4 { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }
.bg-gradient-5 { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }

/* ===== 表格 ===== */
.table { margin-bottom: 0; }
.table thead th {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 16px;
  white-space: nowrap;
}
.table tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 14px;
  border-color: #f1f5f9;
}
.table tbody tr:hover { background: #f8fafc; }

/* ===== 按钮 ===== */
.btn {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border: none;
  transition: all .2s;
}
.btn-primary {
  background: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-light {
  background: #f1f5f9;
  color: #475569;
}
.btn-light:hover { background: #e2e8f0; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; }

/* ===== 标签 ===== */
.badge {
  padding: 5px 10px;
  font-weight: 500;
  border-radius: 6px;
  font-size: 12px;
}
.badge-success { background: #dcfce7; color: #16a34a; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-info { background: #dbeafe; color: #2563eb; }
.badge-secondary { background: #f1f5f9; color: #64748b; }
.badge-primary { background: #e0e7ff; color: #4338ca; }

/* ===== 表单 ===== */
.form-control, .form-select {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  font-size: 14px;
  transition: border .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
.form-label { font-weight: 500; font-size: 14px; margin-bottom: 6px; }

/* ===== 弹窗 ===== */
.modal-content {
  border: none;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 16px 20px;
}
.modal-title { font-weight: 600; }
.modal-footer { border-top: 1px solid #f1f5f9; padding: 16px 20px; }

/* ===== 进度条 ===== */
.progress {
  height: 8px;
  border-radius: 4px;
  background: #e2e8f0;
  overflow: hidden;
}
.progress-bar {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 4px;
}

/* ===== 快捷入口 ===== */
.quick-entry {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--card-shadow);
}
.quick-entry:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}
.quick-entry .entry-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff;
  margin-bottom: 10px;
}
.quick-entry .entry-label { font-size: 13px; font-weight: 500; }

/* ===== 卡密管理左侧树 ===== */
.package-tree {
  background: #fff;
  border-radius: var(--radius);
  padding: 12px;
  box-shadow: var(--card-shadow);
}
.package-tree .tree-title {
  font-weight: 600;
  padding: 8px 12px;
  margin-bottom: 8px;
  color: #475569;
  font-size: 14px;
}
.package-tree .tree-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s;
  font-size: 14px;
}
.package-tree .tree-item:hover { background: #f1f5f9; }
.package-tree .tree-item.active {
  background: rgba(99,102,241,0.1);
  color: var(--primary);
  font-weight: 500;
}
.package-tree .tree-count {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  color: #64748b;
}

/* ===== 公告区 ===== */
.notice-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 20px;
  border-left: 4px solid #f59e0b;
}
.notice-box .notice-title {
  font-weight: 600;
  color: #92400e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.notice-box .notice-content {
  color: #78350f;
  font-size: 14px;
  line-height: 1.6;
}

/* ===== H5 前台 - 玻璃材质风格 ===== */
/* 卡密列表提交链接 */
.copy-link {
  cursor: pointer;
  transition: color .2s;
}
.copy-link:hover { color: #2563eb; }
.copy-link i { font-size: 11px; opacity: .55; margin-left: 2px; }

.h5-page {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(56,189,248,0.22) 0%, transparent 60%),
    linear-gradient(165deg, #020b1c 0%, #062552 38%, #0a3f86 68%, #061a3a 100%);
  padding-bottom: 30px;
  position: relative;
  overflow-x: hidden;
}
/* 背景装饰光斑 */
.h5-page::before {
  content: '';
  position: absolute;
  top: -100px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(56,189,248,0.38) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.h5-page::after {
  content: '';
  position: absolute;
  bottom: 18%; left: -110px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(37,99,235,0.4) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
/* 大标题 */
.h5-hero {
  margin: 0 16px 18px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #e0f2fe;
  text-shadow: 0 4px 20px rgba(37,99,235,0.35);
}
.h5-hero .h5-hero-code {
  background: linear-gradient(135deg, #bae6fd, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.h5-hero i {
  color: #38bdf8;
  font-size: 19px;
  vertical-align: -1px;
  margin: 0 2px;
}
/* 顶部横幅 */
.h5-banner {
  padding: 40px 24px 50px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.h5-banner .banner-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  padding: 10px 22px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}
.h5-banner .banner-platform {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.h5-banner .banner-divider {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.3);
}
.h5-banner .banner-action {
  font-size: 17px;
  font-weight: 700;
  color: #c4b5fd;
}
.h5-banner .banner-icons {
  font-size: 15px;
  color: #f9a8d4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.h5-banner .banner-icons .bi-eye { color: #93c5fd; }
.h5-banner .banner-icons .bi-heart { color: #f9a8d4; }
.h5-banner .banner-sys {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.h5-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.10) 0%, rgba(255,255,255,0.06) 100%);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid rgba(186,230,253,0.18);
  border-radius: 26px;
  padding: 22px;
  margin: 0 16px 16px;
  box-shadow: 0 20px 60px rgba(1,14,36,0.5), inset 0 1px 0 rgba(255,255,255,0.12);
  position: relative;
  z-index: 1;
}
.h5-package-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 16px 14px;
}
.h5-package-info.cols-1 { grid-template-columns: 1fr; }
.h5-package-info .info-item {
  background: rgba(186,230,253,0.06);
  border: 1px solid rgba(186,230,253,0.14);
  border-radius: 18px;
  padding: 16px 12px;
  text-align: center;
  transition: transform .2s, border-color .2s;
}
.h5-package-info .info-item:hover {
  transform: translateY(-2px);
  border-color: rgba(56,189,248,0.35);
}
.h5-package-info .info-item .num {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(135deg, #bae6fd, #38bdf8 45%, #2563eb);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.h5-package-info .info-item .label {
  font-size: 12px;
  color: rgba(255,255,255,0.62);
  margin-top: 6px;
  letter-spacing: 0.5px;
}
.h5-package-info .info-item .label i {
  color: #7dd3fc;
  margin-right: 4px;
  font-size: 12px;
}
/* 分享提交 */
.h5-share-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #e0f2fe;
  margin-bottom: 10px;
}
.h5-share-head i { color: #38bdf8; }
.h5-flow {
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255,255,255,0.72);
}
.h5-flow span {
  color: #38bdf8;
  font-weight: 600;
  margin: 0 4px;
}
.h5-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.h5-input {
  width: 100%;
  margin-top: 14px;
  padding: 15px 16px;
  background: rgba(186,230,253,0.06);
  border: 1.5px solid rgba(186,230,253,0.18);
  border-radius: 14px;
  font-size: 15px;
  color: #fff;
  outline: none;
  transition: all .2s;
}
.h5-input::placeholder { color: rgba(255,255,255,0.38); }
.h5-input:focus {
  border-color: rgba(56,189,248,0.65);
  background: rgba(186,230,253,0.09);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.18), 0 0 24px rgba(56,189,248,0.18);
}
.h5-btn {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
  color: #fff;
  border: 1px solid rgba(186,230,253,0.35);
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  margin-top: 16px;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 8px 28px rgba(37,99,235,0.42), inset 0 1px 0 rgba(255,255,255,0.35);
  letter-spacing: 1px;
}
.h5-btn:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(56,189,248,0.5), inset 0 1px 0 rgba(255,255,255,0.4); }
.h5-btn:active { transform: translateY(0); }
.h5-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.h5-tips {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 18px;
}
.h5-tips i { color: #7dd3fc; }
.h5-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(56,189,248,0.08);
  border: 1px solid rgba(56,189,248,0.22);
  border-radius: 18px;
  padding: 16px;
  margin: 16px 16px 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.h5-notice .notice-icon {
  color: #38bdf8;
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}
.h5-notice .notice-title {
  font-weight: 600;
  color: #7dd3fc;
  font-size: 14px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.h5-notice .notice-content {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  line-height: 1.8;
}
.h5-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.h5-step .step-num {
  min-width: 22px; height: 22px;
  background: linear-gradient(135deg, #38bdf8, #2563eb);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}
.h5-platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(56,189,248,0.14);
  border: 1px solid rgba(56,189,248,0.32);
  color: #bae6fd;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
}
/* 已提交状态 */
.h5-submitted {
  text-align: center;
  padding: 22px 16px 8px;
}
.h5-submitted-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #7dd3fc;
  background: rgba(56,189,248,0.14);
  border: 1px solid rgba(56,189,248,0.35);
  box-shadow: 0 0 30px rgba(56,189,248,0.25);
}
.h5-submitted-title {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff !important;
  letter-spacing: 1px;
  margin-bottom: 8px;
  text-shadow: 0 2px 14px rgba(37,99,235,0.55);
}
.h5-submitted-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}
.h5-submitted-note {
  margin-top: 10px;
  font-size: 12px;
  color: #7dd3fc;
  line-height: 1.6;
}
.h5-footer {
  text-align: center;
  color: rgba(255,255,255,0.35);
  font-size: 12px;
  padding: 24px 16px;
  position: relative;
  z-index: 1;
}

/* ===== 登录页 ===== */
.login-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-box {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-box .login-title {
  text-align: center;
  margin-bottom: 30px;
}
.login-box .login-title .logo-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px;
  margin: 0 auto 12px;
}
.login-box .login-title h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
}
.login-box .login-title p {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 4px;
}

/* ===== 分页 ===== */
.pagination { gap: 4px; }
.pagination .page-link {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #475569;
  margin: 0 2px;
}
.pagination .page-item.active .page-link {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== 工具 ===== */
.text-primary { color: var(--primary) !important; }
.cursor-pointer { cursor: pointer; }
.whitespace-nowrap { white-space: nowrap; }

/* Toast */
.toast-msg {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  z-index: 9999;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  animation: slideDown .3s;
}
@keyframes slideDown {
  from { transform: translate(-50%, -20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}
.toast-success { background: #16a34a; }
.toast-error { background: #dc2626; }
.toast-info { background: var(--primary); }

/* ===== 后台手机端适配 ===== */
@media (max-width: 768px) {
  .sidebar {
    width: 240px;
    transform: translateX(-100%);
    transition: transform .25s;
    box-shadow: none;
  }
  .sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 12px 0 40px rgba(0,0,0,0.35);
  }
  .sidebar-backdrop.show { display: block; }

  .navbar-top {
    left: 0;
    height: 56px;
    padding: 0 12px;
  }
  .navbar-top .left-area { flex: 1; overflow: hidden; }
  .navbar-top .right-area { gap: 8px; flex-shrink: 0; }
  .navbar-top .right-area > .btn { display: none; }
  .mobile-menu-btn { display: flex; }
  .navbar-top .breadcrumb-area { font-size: 14px; }

  .main-content {
    margin-left: 0;
    margin-top: 56px;
    padding: 12px;
  }
  .card-body { padding: 14px; }
  .card-header {
    padding: 12px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .card-header > div {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .main-content .row > .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
  .main-content .row.g-2 > .col-auto { flex: 0 0 auto; }

  .table-responsive { -webkit-overflow-scrolling: touch; }
  .table { white-space: nowrap; font-size: 13px; }
  .table > :not(caption) > * > * { padding: .55rem .5rem; }

  .stat-card { padding: 16px; }
  .stat-card .stat-value { font-size: 22px; }
  .stat-card .stat-icon { font-size: 34px; right: 10px; }

  .toast-msg {
    width: calc(100% - 32px);
    max-width: 420px;
    text-align: center;
  }
}
