/* 锁企端 · 浅色管理后台主题
 * 覆盖官方酒店端深色玻璃风格，统一为白底卡片 + 蓝色主色的普通后台观感。
 */

:root {
  --cmh-bg: #f5f7fb;
  --cmh-card: #ffffff;
  --cmh-ink: #0f172a;
  --cmh-text: #334155;
  --cmh-sub: #64748b;
  --cmh-mute: #94a3b8;
  --cmh-line: #e2e8f0;
  --cmh-line-soft: #eef2f7;
  --cmh-primary: #2563eb;
  --cmh-primary-dark: #1d4ed8;
  --cmh-primary-soft: #eff6ff;
  --cmh-side-w: 248px;
  --cmh-top-h: 64px;
  --cmh-head-h: 76px;
  --cmh-radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  background-color: var(--cmh-bg) !important;
  color: var(--cmh-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.cmh-authed #app,
body.cmh-authed .app-wrapper,
body.cmh-authed .main-container {
  background: transparent !important;
  min-height: 100vh;
}

/* 官方旧布局（侧栏 / 顶栏 / 标签页）全部隐藏 */
body.cmh-authed .sidebar-container,
body.cmh-authed .navbar,
body.cmh-authed .fixed-header,
body.cmh-authed .tags-view-container,
body.cmh-authed .drawer-bg,
body.cmh-authed .hamburger-container {
  display: none !important;
}

body.cmh-authed .main-container {
  margin-left: var(--cmh-side-w) !important;
  padding: 0 !important;
  min-height: 100vh !important;
}

body.cmh-authed .app-main {
  min-height: 100vh !important;
  padding: calc(var(--cmh-top-h) + var(--cmh-head-h) + 24px) 28px 48px !important;
  background: transparent !important;
  overflow: visible !important;
}

@keyframes cmh-fadein {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: none; }
}
body.cmh-authed .app-main > div:not(#cmh-dash):not(#cmh-route-loading) {
  animation: cmh-fadein 0.26s ease both;
}
body.cmh-authed .app-main .el-table { width: 100% !important; }

/* 路由切换时的内容骨架，避免内容区短暂空白 */
#cmh-route-loading {
  max-width: 1240px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--cmh-line);
  border-radius: var(--cmh-radius);
  padding: 30px;
}
#cmh-route-loading .cmh-skeleton { display: block; }
#cmh-route-loading .cmh-skeleton span {
  display: block;
  height: 14px;
  border-radius: 7px;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #f1f5f9 25%, #e7eef8 37%, #f1f5f9 63%);
  background-size: 400% 100%;
  animation: cmh-shimmer 1.2s ease infinite;
}
#cmh-route-loading .cmh-skeleton span:nth-child(1) { width: 32%; height: 18px; margin-bottom: 24px; }
#cmh-route-loading .cmh-skeleton span:nth-child(2) { width: 100%; }
#cmh-route-loading .cmh-skeleton span:nth-child(3) { width: 82%; }
#cmh-route-loading .cmh-skeleton span:nth-child(4) { width: 64%; margin-bottom: 0; }
@keyframes cmh-shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------------- 左侧导航 ---------------- */

#cmh-sidebar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--cmh-side-w);
  z-index: 1400;
  background: #fff;
  border-right: 1px solid var(--cmh-line);
  flex-direction: column;
}

body.cmh-authed #cmh-sidebar { display: flex; }
body.cmh-login #cmh-sidebar,
body.cmh-login #cmh-topbar,
body.cmh-login #cmh-page-head,
body.cmh-login #cmh-mask { display: none !important; }

.cmh-side-brand {
  height: var(--cmh-top-h);
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--cmh-line-soft);
  flex: 0 0 auto;
}

.cmh-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--cmh-primary);
  flex: 0 0 auto;
}

.cmh-logo svg { width: 21px; height: 21px; }

.cmh-side-brand-text { display: flex; align-items: baseline; gap: 6px; }
.cmh-side-brand-text b { font-size: 16px; color: var(--cmh-ink); letter-spacing: 0.5px; }
.cmh-side-brand-text i {
  font-style: normal;
  font-size: 12px;
  color: var(--cmh-primary);
  background: var(--cmh-primary-soft);
  border-radius: 5px;
  padding: 1px 6px;
  font-weight: 600;
}

.cmh-side-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 12px;
}

.cmh-side-group { margin-bottom: 18px; }

.cmh-side-group-label {
  font-size: 11px;
  color: var(--cmh-mute);
  letter-spacing: 1.5px;
  padding: 0 10px 8px;
}

.cmh-side-item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 12px;
  margin-bottom: 2px;
  border-radius: 9px;
  color: var(--cmh-text);
  font-size: 14px;
  text-decoration: none;
  transition: background 0.16s, color 0.16s;
}

.cmh-side-item:hover { background: #f1f5f9; color: var(--cmh-ink); }

.cmh-side-item.is-active {
  background: var(--cmh-primary-soft);
  color: var(--cmh-primary);
  font-weight: 600;
}

.cmh-ic { width: 18px; height: 18px; flex: 0 0 auto; }

.cmh-side-dot {
  margin-left: auto;
  font-style: normal;
  font-size: 10px;
  color: var(--cmh-mute);
  border: 1px solid var(--cmh-line);
  border-radius: 999px;
  padding: 0 6px;
  line-height: 16px;
}
.cmh-side-item.is-active .cmh-side-dot { color: var(--cmh-primary); border-color: #bfdbfe; }

.cmh-side-foot {
  flex: 0 0 auto;
  border-top: 1px solid var(--cmh-line-soft);
  padding: 14px 16px 16px;
}

.cmh-side-quota {
  display: flex;
  align-items: baseline;
  gap: 5px;
  background: #f8fafc;
  border: 1px solid var(--cmh-line-soft);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.cmh-side-quota span { font-size: 12px; color: var(--cmh-sub); }
.cmh-side-quota b { font-size: 19px; color: var(--cmh-ink); margin-left: auto; }
.cmh-side-quota i { font-style: normal; font-size: 11px; color: var(--cmh-mute); }

.cmh-side-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 2px;
  font-size: 12px;
  color: var(--cmh-sub);
}

.cmh-type-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 6px;
  font-size: 12px;
  color: var(--cmh-sub);
  white-space: nowrap;
}

.cmh-type-select {
  appearance: none;
  -webkit-appearance: none;
  height: 30px;
  line-height: 30px;
  padding: 0 26px 0 10px;
  border: 1px solid var(--cmh-line);
  border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2010%2010'%3E%3Cpath%20d='M2%203.5%205%206.5%208%203.5'%20fill='none'%20stroke='%2364748b'%20stroke-width='1.4'%20stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center / 10px 10px;
  color: var(--cmh-ink);
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.cmh-type-select:hover { border-color: #b9c5d6; }
.cmh-type-select:focus {
  border-color: var(--cmh-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.cmh-hid-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  margin-right: 8px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--cmh-primary);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s, border-color 0.16s;
}
.cmh-hid-btn:hover { background: #dbeafe; border-color: #93c5fd; }
.cmh-hid-btn i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cmh-primary);
  flex: 0 0 auto;
}

.cmh-side-user, .cmh-top-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cmh-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e0e7ff;
  color: var(--cmh-primary);
  font-weight: 700;
  flex: 0 0 auto;
}
.cmh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cmh-avatar-fb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-size: 14px;
}
.cmh-avatar-sm { width: 32px; height: 32px; }
.cmh-avatar-lg { width: 56px; height: 56px; font-size: 20px; }

.cmh-user-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.cmh-user-meta b { font-size: 13px; color: var(--cmh-ink); font-weight: 600; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmh-user-meta i { font-style: normal; font-size: 11px; color: var(--cmh-mute); }

/* ---------------- 顶部栏 ---------------- */

#cmh-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: var(--cmh-side-w);
  right: 0;
  height: var(--cmh-top-h);
  z-index: 1300;
  background: #fff;
  border-bottom: 1px solid var(--cmh-line);
  align-items: center;
  padding: 0 28px;
  gap: 16px;
}

body.cmh-authed #cmh-topbar { display: flex; }

.cmh-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--cmh-line);
  background: #fff;
  border-radius: 9px;
  cursor: pointer;
  padding: 10px 9px;
  flex-direction: column;
  justify-content: space-between;
}
.cmh-menu-btn span { display: block; height: 2px; background: var(--cmh-text); border-radius: 2px; }

.cmh-crumb { display: flex; align-items: center; gap: 8px; font-size: 13px; min-width: 0; }
.cmh-crumb-root { color: var(--cmh-mute); }
.cmh-crumb i { color: #cbd5e1; font-style: normal; }
.cmh-crumb b { color: var(--cmh-ink); font-weight: 600; }

.cmh-top-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }

.cmh-quota-chip {
  font-size: 12px;
  color: var(--cmh-sub);
  background: #f8fafc;
  border: 1px solid var(--cmh-line);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}
.cmh-quota-chip b { color: var(--cmh-primary); font-size: 14px; margin: 0 2px; }

.cmh-ok-chip {
  font-size: 12px;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
}

.cmh-logout {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--cmh-line);
  background: #fff;
  color: var(--cmh-sub);
  border-radius: 9px;
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.16s;
}
.cmh-logout svg { width: 15px; height: 15px; }
.cmh-logout:hover { color: #dc2626; border-color: #fecaca; background: #fef2f2; }

/* ---------------- 页面说明条 ---------------- */

#cmh-page-head {
  display: none;
  position: fixed;
  top: var(--cmh-top-h);
  left: var(--cmh-side-w);
  right: 0;
  height: var(--cmh-head-h);
  z-index: 1250;
  background: #fff;
  border-bottom: 1px solid var(--cmh-line);
  padding: 0 28px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body.cmh-authed #cmh-page-head { display: flex; }

.cmh-page-head-main h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--cmh-ink);
  letter-spacing: 0.3px;
}
.cmh-page-head-main p { margin: 4px 0 0; font-size: 12.5px; color: var(--cmh-mute); }
.cmh-page-head-side { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.cmh-step { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--cmh-sub); white-space: nowrap; }
.cmh-step em {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cmh-primary-soft);
  color: var(--cmh-primary);
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cmh-step-line { width: 18px; height: 1px; background: var(--cmh-line); display: inline-block; }

/* ---------------- 工作台 ---------------- */

/* 官方工作台由自定义仪表盘替代，始终隐藏，避免切换路由时旧页面闪现 */
body.cmh-authed .dashboard-container { display: none !important; }

.cmh-dash { display: none; max-width: 1240px; margin: 0 auto; }
body.cmh-home .cmh-dash { display: block; }

.cmh-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(120deg, #eff6ff 0%, #ffffff 62%);
  border: 1px solid #dbeafe;
  border-radius: var(--cmh-radius);
  padding: 28px 30px;
  margin-bottom: 18px;
}

.cmh-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--cmh-primary);
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 12px;
}
.cmh-hero-tag svg { width: 13px; height: 13px; }

.cmh-hero-main h2 { margin: 0 0 6px; font-size: 23px; color: var(--cmh-ink); letter-spacing: 0.3px; }
.cmh-hero-main p { margin: 0; font-size: 13px; color: var(--cmh-sub); }

.cmh-hero-side { flex: 0 0 auto; text-align: right; }
.cmh-hero-num { display: flex; flex-direction: column; align-items: flex-end; }
.cmh-hero-num b { font-size: 42px; line-height: 1; color: var(--cmh-primary); font-variant-numeric: tabular-nums; }
.cmh-hero-num span { margin-top: 6px; font-size: 12px; color: var(--cmh-sub); }

.cmh-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 18px;
}

.cmh-stat {
  background: #fff;
  border: 1px solid var(--cmh-line);
  border-radius: var(--cmh-radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cmh-stat span { font-size: 12.5px; color: var(--cmh-sub); }
.cmh-stat b { font-size: 24px; color: var(--cmh-ink); font-weight: 700; line-height: 1.15; }
.cmh-stat b em { font-style: normal; font-size: 12px; color: var(--cmh-mute); font-weight: 400; margin-left: 3px; }
.cmh-stat b.is-ok { color: #16a34a; font-size: 20px; }
.cmh-stat b.is-link { color: var(--cmh-primary); font-size: 17px; cursor: pointer; }
.cmh-stat b.is-link:hover { text-decoration: underline; }
.cmh-stat i { font-style: normal; font-size: 11.5px; color: var(--cmh-mute); }

.cmh-block {
  background: #fff;
  border: 1px solid var(--cmh-line);
  border-radius: var(--cmh-radius);
  padding: 22px 24px 24px;
  margin-bottom: 18px;
}

.cmh-block-head { margin-bottom: 16px; }
.cmh-block-head h3 { margin: 0; font-size: 15px; color: var(--cmh-ink); font-weight: 600; }
.cmh-block-head p { margin: 4px 0 0; font-size: 12px; color: var(--cmh-mute); }

.cmh-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}

.cmh-action {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--cmh-line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.16s, box-shadow 0.16s, transform 0.16s;
  font-family: inherit;
}
.cmh-action:hover {
  border-color: #bfdbfe;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
  transform: translateY(-1px);
}

.cmh-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--cmh-primary-soft);
  color: var(--cmh-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.cmh-action-icon svg { width: 20px; height: 20px; }

.cmh-action-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cmh-action-body b { font-size: 14px; color: var(--cmh-ink); font-weight: 600; }
.cmh-action-body i { font-style: normal; font-size: 11.5px; color: var(--cmh-mute); }

.cmh-action-arrow { margin-left: auto; color: #cbd5e1; font-size: 16px; transition: color 0.16s, transform 0.16s; }
.cmh-action:hover .cmh-action-arrow { color: var(--cmh-primary); transform: translateX(2px); }

.cmh-account-body { display: flex; align-items: center; gap: 22px; }
.cmh-account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px 26px;
  flex: 1 1 auto;
}
.cmh-account-grid div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cmh-account-grid span { font-size: 11.5px; color: var(--cmh-mute); }
.cmh-account-grid b { font-size: 14px; color: var(--cmh-ink); font-weight: 500; word-break: break-all; }

/* ---------------- 列表页：客户 / 卡片 ---------------- */

body.cmh-authed .workerLists { max-width: 1240px; margin: 0 auto; }

body.cmh-authed .workerLists > .el-button.rightbtn {
  display: block !important;
  float: none !important;
  margin: 0 0 14px auto !important;
}
body.cmh-authed .workerLists > .el-divider { display: none !important; }
body.cmh-authed .workerLists .el-table__body-wrapper { background: #fff !important; }
body.cmh-route-cards .workerLists .el-table { height: auto !important; }
body.cmh-route-customer .workerLists .el-table {
  height: var(--cmh-cust-table-h, calc(100vh - 370px)) !important;
  min-height: 400px;
}

body.cmh-authed .search-container {
  background: #fff !important;
  border: 1px solid var(--cmh-line) !important;
  border-radius: var(--cmh-radius);
  padding: 16px 18px !important;
  margin-bottom: 16px !important;
}

/* 客户列表 */
body.cmh-authed .workerLists .search-container {
  padding: 14px 16px !important;
  gap: 10px !important;
}
body.cmh-authed .workerLists .search-container .el-input__inner {
  height: 36px !important;
  line-height: 36px !important;
}
body.cmh-authed .workerLists .search-container > div > span,
body.cmh-authed .workerLists .search-container > span {
  color: var(--cmh-sub) !important;
  font-size: 12.5px !important;
}
body.cmh-authed .workerLists .search-container .el-button {
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
}
body.cmh-authed .workerLists .search-container > span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #f8fafc;
  border: 1px solid var(--cmh-line-soft);
  border-radius: 999px;
}
body.cmh-authed .workerLists .search-container > span:last-child b {
  color: var(--cmh-primary) !important;
  font-size: 15px !important;
  line-height: 1;
}

body.cmh-authed .workerLists .el-table th .cell {
  font-size: 12px;
  letter-spacing: 0.2px;
}
body.cmh-authed .workerLists .el-table td {
  padding: 11px 0 !important;
}
body.cmh-authed .workerLists .el-table td .cell {
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
body.cmh-authed .workerLists .el-table__body-wrapper tr td:nth-child(1) .cell,
body.cmh-authed .workerLists .el-table__body-wrapper tr td:nth-child(3) .cell,
body.cmh-authed .workerLists .el-table__body-wrapper tr td:nth-child(6) .cell {
  white-space: nowrap;
}
body.cmh-authed .workerLists .el-table__body-wrapper tr td:nth-child(7) .cell {
  white-space: nowrap;
  font-size: 12px;
}
body.cmh-authed .workerLists .el-table__empty-block { min-height: 220px !important; }
body.cmh-authed .workerLists .el-table__fixed-right::before {
  box-shadow: -6px 0 14px rgba(15, 23, 42, 0.04) !important;
}

body.cmh-authed .workerLists .mr_button {
  height: 28px;
  line-height: 26px;
  padding: 0 8px !important;
  margin-left: 0 !important;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
}
body.cmh-authed .workerLists .el-button--mini.el-button--success {
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: var(--cmh-primary) !important;
}
body.cmh-authed .workerLists .el-button--mini.el-button--success:hover {
  background: #dbeafe !important;
}
body.cmh-authed .workerLists .el-button--mini.el-button--warning {
  background: #fff7ed !important;
  border-color: #fed7aa !important;
  color: #c2410c !important;
}
body.cmh-authed .workerLists .el-button--mini.el-button--warning:hover {
  background: #ffedd5 !important;
}
body.cmh-authed .workerLists .el-button--mini.el-button--danger {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}
body.cmh-authed .workerLists .el-button--mini.el-button--danger:hover {
  background: #fee2e2 !important;
}

/* 客户管理 - 设置备注按钮 */
body.cmh-authed .workerLists .el-table__body td:last-child .cmh-cust-op-sep {
  color: #d1d5db;
  font-size: 12px;
  margin: 0 4px;
}
body.cmh-authed .workerLists .el-table__body td:last-child .cmh-note-btn {
  height: 26px;
  line-height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: var(--cmh-primary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
body.cmh-authed .workerLists .el-table__body td:last-child .cmh-note-btn:hover {
  background: #dbeafe;
}
body.cmh-authed .workerLists .el-table__body td:last-child .cmh-note-btn:active {
  background: #bfdbfe;
}

body.cmh-authed .workerLists .el-table,
body.cmh-authed .el-table {
  background: #fff !important;
  border-radius: 12px;
  color: var(--cmh-text) !important;
  border: 1px solid var(--cmh-line);
  overflow: hidden;
}

body.cmh-authed .el-table::before,
body.cmh-authed .el-table::after { display: none; }

body.cmh-authed .el-table th,
body.cmh-authed .el-table th.el-table__cell {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 600;
  border-bottom: 1px solid var(--cmh-line) !important;
  padding: 10px 0;
}
body.cmh-authed .el-table th .cell { color: #475569 !important; font-weight: 600; }

body.cmh-authed .el-table td,
body.cmh-authed .el-table td.el-table__cell {
  background: #fff !important;
  color: var(--cmh-text) !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 10px 0;
}
body.cmh-authed .el-table td .cell { color: var(--cmh-text) !important; }

body.cmh-authed .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background: #fafcff !important;
}
body.cmh-authed .el-table--striped .el-table__body tr.el-table__row--striped td {
  background: #fafcff !important;
}

body.cmh-authed .el-table__body tr:hover > td.el-table__cell {
  background: #f8fbff !important;
}
body.cmh-authed .el-table__body tr:hover > td {
  background: #f8fbff !important;
}

body.cmh-authed .el-table__empty-text { color: var(--cmh-mute); }
body.cmh-authed .el-table__empty-block {
  width: 100% !important;
  min-width: 100% !important;
  background: #fff !important;
}

body.cmh-authed .el-divider {
  background-color: var(--cmh-line) !important;
  margin: 16px 0 !important;
}

body.cmh-authed .el-pagination {
  margin: 18px 0 0 auto;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--cmh-line);
  border-radius: 12px;
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px;
}
body.cmh-authed .el-pagination button,
body.cmh-authed .el-pagination .el-pager li {
  background: transparent !important;
  color: var(--cmh-sub) !important;
  border-radius: 7px;
}
body.cmh-authed .el-pagination .el-pager li.active {
  background: var(--cmh-primary) !important;
  color: #fff !important;
}
body.cmh-authed .el-pagination .el-pager li:hover { color: var(--cmh-primary) !important; }
body.cmh-authed .el-pagination__total,
body.cmh-authed .el-pagination__jump { color: var(--cmh-sub); }

/* ---------------- 发卡器绑定页 ---------------- */

body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--cmh-line);
  border-radius: 16px;
  padding: 0 32px 24px;
  overflow: hidden;
}

body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading)::before {
  content: "将发卡器插入电脑。首次使用请先点右上角「授权发卡器」并在弹窗中选择设备，再点「读取」；若提示“响应超时”，请确认右上角发卡器类型为 CRFD-03。";
  display: block;
  margin: 0 -32px 28px;
  padding: 16px 32px;
  background: linear-gradient(120deg, #eff6ff 0%, #ffffff 100%);
  border-bottom: 1px solid #dbeafe;
  color: var(--cmh-sub);
  font-size: 12.5px;
  line-height: 1.8;
}

body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .row {
  display: flex;
  align-items: center;
  line-height: normal !important;
  margin-bottom: 18px;
}
body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .el-col-3 {
  width: 136px !important;
  flex: 0 0 136px;
  float: none !important;
}
body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .el-col-12 {
  width: auto !important;
  flex: 1 1 auto;
  float: none !important;
}
body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .el-col-4 {
  width: 86px !important;
  flex: 0 0 86px;
  float: none !important;
  margin-left: 12px;
}
body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .center {
  text-align: left !important;
  color: var(--cmh-text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 38px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
}
body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .row:first-of-type .center::before,
body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .row:nth-of-type(2) .center::before {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cmh-primary-soft);
  color: var(--cmh-primary);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .row:first-of-type .center::before { content: "1"; }
body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .row:nth-of-type(2) .center::before { content: "2"; }

body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .input .el-input__inner {
  height: 40px !important;
  line-height: 40px !important;
}
body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .btnArea {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin: 26px -32px 0 !important;
  padding: 18px 32px 0;
  border-top: 1px solid var(--cmh-line-soft);
}
body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .btn {
  width: auto !important;
  min-width: 112px;
  margin: 0 !important;
}

/* ---------------- 加密卡管理 ---------------- */

body.cmh-authed .card-encryption-management {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

body.cmh-authed .card-encryption-management .search-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px !important;
  padding: 14px 16px !important;
  background: #fff;
  border: 1px solid var(--cmh-line);
  border-radius: 14px;
}
body.cmh-authed .card-encryption-management .search-form .el-form-item { margin: 0 !important; }
body.cmh-authed .card-encryption-management .search-form > .el-form-item > .el-form-item__content > .el-input { width: 220px; }
body.cmh-authed .card-encryption-management .search-form .el-select { width: 160px; }
body.cmh-authed .card-encryption-management .search-form .el-select .el-input { width: 100%; }
body.cmh-authed .card-encryption-management .search-form .el-input__inner {
  height: 36px !important;
  line-height: 36px !important;
}
body.cmh-authed .card-encryption-management .search-form .action-btn {
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--cmh-line);
  color: var(--cmh-sub);
}
body.cmh-authed .card-encryption-management .search-form .action-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--cmh-text);
}

body.cmh-authed .card-encryption-management .el-table {
  height: var(--cmh-enc-table-h, calc(100vh - 380px)) !important;
  min-height: 360px;
  border: 1px solid var(--cmh-line) !important;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
body.cmh-authed .card-encryption-management .el-table::before,
body.cmh-authed .card-encryption-management .el-table::after { display: none !important; }
body.cmh-authed .card-encryption-management .el-table th.el-table__cell {
  height: 44px;
  padding: 0 !important;
  background: #f8fafc !important;
  border-right: 0 !important;
  border-bottom: 1px solid var(--cmh-line-soft) !important;
  color: var(--cmh-sub) !important;
  font-size: 12px;
  font-weight: 500;
}
body.cmh-authed .card-encryption-management .el-table td.el-table__cell {
  padding: 12px 0 !important;
  border-right: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: var(--cmh-text);
  font-size: 13px;
}
body.cmh-authed .card-encryption-management .el-table .cell { padding: 0 16px; }
body.cmh-authed .card-encryption-management .el-table--striped .el-table__body tr.el-table__row--striped td {
  background: #fff !important;
}
body.cmh-authed .card-encryption-management .el-table__body tr:hover > td {
  background: #f8fafc !important;
}
body.cmh-authed .card-encryption-management .el-table__empty-block { min-height: 260px !important; }
body.cmh-authed .card-encryption-management .el-table__empty-text {
  color: var(--cmh-mute) !important;
  font-size: 13px;
}

/* 状态标签 */
body.cmh-authed .card-encryption-management .el-tag {
  height: 24px;
  line-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid transparent;
}
body.cmh-authed .card-encryption-management .el-tag--success {
  background: #ecfdf5 !important;
  border-color: #bbf7d0 !important;
  color: #059669 !important;
}
body.cmh-authed .card-encryption-management .el-tag--danger {
  background: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}

/* 操作按钮 */
body.cmh-authed .card-encryption-management .el-table .el-button--text {
  height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 12.5px;
  border: 1px solid transparent;
}
body.cmh-authed .card-encryption-management .el-table .el-button--text:not(.is-disabled) {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: var(--cmh-primary) !important;
}
body.cmh-authed .card-encryption-management .el-table .el-button--text:not(.is-disabled):hover {
  background: #dbeafe;
}
body.cmh-authed .card-encryption-management .el-table .el-button--text.is-disabled {
  background: transparent;
  border-color: transparent;
  color: #9aa7b8 !important;
  cursor: default;
}

/* 分页 */
body.cmh-authed .card-encryption-management .pagination-container {
  display: flex !important;
  justify-content: flex-end !important;
  margin-top: 12px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
body.cmh-authed .card-encryption-management .pagination-container .el-pagination {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--cmh-line);
  border-radius: 12px;
}

/* ---------------- 扇区加密页 ---------------- */

body.cmh-authed .encryption-management {
  padding: 0 !important;
  max-width: 1240px !important;
  margin: 0 auto;
}

body.cmh-authed .encryption-management .sector-status-section,
body.cmh-authed .encryption-management .sector-contents-section {
  border: 1px solid var(--cmh-line) !important;
  border-radius: var(--cmh-radius) !important;
  background: #fff !important;
  padding: 24px 26px !important;
  box-shadow: none !important;
  margin: 0 !important;
}

body.cmh-authed .encryption-management .sector-contents-section {
  margin-top: 16px !important;
}

body.cmh-authed .encryption-management h3 {
  position: relative;
  padding-left: 12px;
  margin: 0 0 18px !important;
  color: var(--cmh-ink) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4;
}
body.cmh-authed .encryption-management h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--cmh-primary);
  transform: translateY(-50%);
}

/* 图例 */
body.cmh-authed .encryption-management .legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px !important;
}
body.cmh-authed .encryption-management .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid var(--cmh-line-soft);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--cmh-sub);
  font-size: 12px;
}
body.cmh-authed .encryption-management .legend .color-box {
  width: 8px;
  height: 8px;
  border-radius: 3px;
  margin: 0 !important;
}
body.cmh-authed .encryption-management .legend .not-detected { background: #cbd5e1 !important; }
body.cmh-authed .encryption-management .legend .unencrypted { background: #60a5fa !important; }
body.cmh-authed .encryption-management .legend .encrypted { background: #22c55e !important; }
body.cmh-authed .encryption-management .legend .other-encrypted { background: #f59e0b !important; }
body.cmh-authed .encryption-management .legend .selected-encrypt { background: #2563eb !important; }
body.cmh-authed .encryption-management .legend .selected-decrypt { background: #ef4444 !important; }

/* 扇区网格 */
body.cmh-authed .encryption-management .sectors-container {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
  margin: 0 0 18px !important;
}
body.cmh-authed .encryption-management .sector-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  min-height: 74px;
  padding: 13px 14px !important;
  border: 1px solid var(--cmh-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  cursor: pointer;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s, transform 0.16s;
}
body.cmh-authed .encryption-management .sector-item:hover {
  border-color: #93c5fd !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
body.cmh-authed .encryption-management .sector-item .sector-number {
  color: var(--cmh-ink) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
body.cmh-authed .encryption-management .sector-item .sector-status {
  color: var(--cmh-mute) !important;
  font-size: 11px;
  line-height: 1.3;
}

body.cmh-authed .encryption-management .sector-item.readonly {
  background: #f8fafc !important;
  border-style: dashed !important;
  cursor: not-allowed;
  opacity: 0.85;
}
body.cmh-authed .encryption-management .sector-item.readonly:hover { transform: none; box-shadow: none; }

body.cmh-authed .encryption-management .sector-item.encrypted {
  background: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}
body.cmh-authed .encryption-management .sector-item.encrypted .sector-number { color: #15803d !important; }
body.cmh-authed .encryption-management .sector-item.encrypted .sector-status { color: #16a34a !important; }

body.cmh-authed .encryption-management .sector-item.other-encrypted {
  background: #fffbeb !important;
  border-color: #fde68a !important;
}
body.cmh-authed .encryption-management .sector-item.other-encrypted .sector-number { color: #b45309 !important; }
body.cmh-authed .encryption-management .sector-item.other-encrypted .sector-status { color: #d97706 !important; }

body.cmh-authed .encryption-management .sector-item.selected-encrypt {
  background: #eff6ff !important;
  border-color: var(--cmh-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
body.cmh-authed .encryption-management .sector-item.selected-encrypt .sector-number { color: var(--cmh-primary) !important; }
body.cmh-authed .encryption-management .sector-item.selected-encrypt .sector-status { color: var(--cmh-primary) !important; }

body.cmh-authed .encryption-management .sector-item.selected-decrypt {
  background: #fef2f2 !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
body.cmh-authed .encryption-management .sector-item.selected-decrypt .sector-number { color: #dc2626 !important; }
body.cmh-authed .encryption-management .sector-item.selected-decrypt .sector-status { color: #dc2626 !important; }

body.cmh-authed .encryption-management .sector-item.selected-encrypt::after,
body.cmh-authed .encryption-management .sector-item.selected-decrypt::after {
  content: "✓";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
body.cmh-authed .encryption-management .sector-item.selected-encrypt::after { background: var(--cmh-primary); }
body.cmh-authed .encryption-management .sector-item.selected-decrypt::after { background: #ef4444; }

/* 已选提示 */
body.cmh-authed .encryption-management .selection-info {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #f8fafc !important;
  border: 1px dashed #d7dee9;
  border-radius: 10px;
  color: var(--cmh-sub) !important;
  font-size: 12.5px;
}
body.cmh-authed .encryption-management .selection-info::before {
  content: "i";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cmh-primary-soft);
  color: var(--cmh-primary);
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

/* 操作栏 */
body.cmh-authed .encryption-management .action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-start !important;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px !important;
  padding: 14px 18px !important;
  background: #fff !important;
  border: 1px solid var(--cmh-line) !important;
  border-radius: 14px !important;
}
body.cmh-authed .encryption-management .action-buttons::before {
  content: "扇区操作";
  margin-right: 6px;
  color: var(--cmh-ink);
  font-size: 13.5px;
  font-weight: 600;
}
body.cmh-authed .encryption-management .action-buttons .el-button {
  height: 38px;
  padding: 0 18px;
  margin: 0 !important;
  border-radius: 9px;
  font-size: 13px;
}
body.cmh-authed .encryption-management .action-buttons .el-button--primary {
  background: #fff !important;
  border: 1px solid #bfdbfe !important;
  color: var(--cmh-primary) !important;
}
body.cmh-authed .encryption-management .action-buttons .el-button--primary:hover {
  background: #eff6ff !important;
}
body.cmh-authed .encryption-management .action-buttons .el-button--success {
  background: var(--cmh-primary) !important;
  border: 1px solid var(--cmh-primary) !important;
  color: #fff !important;
}
body.cmh-authed .encryption-management .action-buttons .el-button--success:hover {
  background: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}
body.cmh-authed .encryption-management .action-buttons .el-button--success.is-disabled {
  background: #e8edf5 !important;
  border-color: #e8edf5 !important;
  color: #94a3b8 !important;
}
body.cmh-authed .encryption-management .action-buttons .el-button--warning {
  background: #fff !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
}
body.cmh-authed .encryption-management .action-buttons .el-button--warning:hover {
  background: #fef2f2 !important;
}
body.cmh-authed .encryption-management .action-buttons .el-button--info {
  background: #f8fafc !important;
  border: 1px solid var(--cmh-line) !important;
  color: var(--cmh-sub) !important;
}
body.cmh-authed .encryption-management .action-buttons .el-button--info:hover {
  background: #f1f5f9 !important;
  color: var(--cmh-text) !important;
}

/* 扇区内容表 */
body.cmh-authed .encryption-management .sector-contents-table {
  margin-top: 14px;
  border: 1px solid var(--cmh-line) !important;
  border-radius: 12px;
  overflow: hidden;
  background: #fff !important;
}
body.cmh-authed .encryption-management .sc-table-header,
body.cmh-authed .encryption-management .sc-row {
  display: grid !important;
  grid-template-columns: 72px 72px 100px 120px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
}
body.cmh-authed .encryption-management .sc-table-header {
  background: #f8fafc !important;
  border-bottom: 1px solid var(--cmh-line-soft);
  color: var(--cmh-sub) !important;
  font-size: 12px;
  font-weight: 500;
}
body.cmh-authed .encryption-management .sc-row {
  border-top: 1px solid #f1f5f9;
  color: var(--cmh-text) !important;
  font-size: 13px;
  transition: background 0.14s;
}
body.cmh-authed .encryption-management .sc-row:first-of-type { border-top: 0; }
body.cmh-authed .encryption-management .sc-row:hover { background: #f8fafc !important; }
body.cmh-authed .encryption-management .sc-row.error { background: #fef2f2 !important; }
body.cmh-authed .encryption-management .sc-hex {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: #475569 !important;
  font-size: 12px;
  letter-spacing: 0.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------- 表单 / 输入 / 按钮 ---------------- */

body.cmh-authed .el-form-item__label,
body.cmh-authed .el-form-item__label-wrap > .el-form-item__label {
  color: var(--cmh-sub) !important;
  font-weight: 500;
}

body.cmh-authed .el-input__inner,
body.cmh-authed .el-textarea__inner,
body.cmh-authed .el-select .el-input__inner {
  background: #fff !important;
  border: 1px solid #d7dee9 !important;
  color: var(--cmh-ink) !important;
  border-radius: 8px !important;
  height: 38px !important;
  line-height: 38px !important;
  box-shadow: none !important;
}

body.cmh-authed .el-textarea__inner { height: auto !important; line-height: 1.6 !important; padding: 8px 12px !important; }

body.cmh-authed .el-input__inner::placeholder,
body.cmh-authed .el-textarea__inner::placeholder { color: var(--cmh-mute) !important; }

body.cmh-authed .el-input__inner:hover,
body.cmh-authed .el-textarea__inner:hover { border-color: #b9c5d6 !important; }

body.cmh-authed .el-input__inner:focus,
body.cmh-authed .el-textarea__inner:focus,
body.cmh-authed .el-select .el-input.is-focus .el-input__inner {
  border-color: var(--cmh-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

body.cmh-authed .el-input__prefix,
body.cmh-authed .el-input__suffix,
body.cmh-authed .el-input__icon { color: var(--cmh-mute) !important; }

body.cmh-authed .el-input.is-disabled .el-input__inner {
  background: #f8fafc !important;
  color: var(--cmh-mute) !important;
}

body.cmh-authed .el-button {
  border-radius: 8px;
  font-weight: 500;
}

body.cmh-authed .el-button--primary,
body.cmh-authed .dashboard-container .el-button--primary {
  background: var(--cmh-primary) !important;
  border-color: var(--cmh-primary) !important;
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
body.cmh-authed .el-button--primary:hover,
body.cmh-authed .dashboard-container .el-button--primary:hover {
  background: var(--cmh-primary-dark) !important;
  border-color: var(--cmh-primary-dark) !important;
}

body.cmh-authed .el-button--default,
body.cmh-authed .dashboard-container .el-button--default {
  background: #fff !important;
  border: 1px solid #d7dee9 !important;
  color: var(--cmh-text) !important;
  backdrop-filter: none !important;
}
body.cmh-authed .el-button--default:hover { color: var(--cmh-primary) !important; border-color: #bfdbfe !important; }

body.cmh-authed .el-button--info {
  background: #fff !important;
  border: 1px solid #d7dee9 !important;
  color: var(--cmh-text) !important;
}
body.cmh-authed .el-button--info:hover { color: var(--cmh-ink) !important; border-color: #b9c5d6 !important; }

body.cmh-authed .el-button--danger {
  background: #ef4444 !important;
  border-color: #ef4444 !important;
  color: #fff !important;
}

body.cmh-authed .el-button--text { color: var(--cmh-primary) !important; }
body.cmh-authed .el-button--text:hover { color: var(--cmh-primary-dark) !important; }

body.cmh-authed .el-button--mini,
body.cmh-authed .el-button--small { padding: 7px 13px; font-size: 12.5px; }

body.cmh-authed .el-checkbox__label,
body.cmh-authed .el-radio__label { color: var(--cmh-text) !important; }
body.cmh-authed .el-checkbox__input.is-checked + .el-checkbox__label,
body.cmh-authed .el-radio__input.is-checked + .el-radio__label { color: var(--cmh-primary) !important; }
body.cmh-authed .el-checkbox__input.is-checked .el-checkbox__inner,
body.cmh-authed .el-radio__input.is-checked .el-radio__inner {
  background: var(--cmh-primary) !important;
  border-color: var(--cmh-primary) !important;
}

body.cmh-authed .el-tag {
  background: var(--cmh-primary-soft) !important;
  border-color: #dbeafe !important;
  color: var(--cmh-primary) !important;
  border-radius: 6px;
}

body.cmh-authed .el-card {
  background: #fff !important;
  border: 1px solid var(--cmh-line) !important;
  border-radius: var(--cmh-radius) !important;
  box-shadow: none !important;
  color: var(--cmh-text) !important;
}

body.cmh-authed .el-tabs__item { color: var(--cmh-sub) !important; }
body.cmh-authed .el-tabs__item.is-active { color: var(--cmh-primary) !important; }
body.cmh-authed .el-tabs__active-bar { background-color: var(--cmh-primary) !important; }
body.cmh-authed .el-tabs__nav-wrap::after { background-color: var(--cmh-line) !important; }

/* ---------------- 弹窗 / 消息 ---------------- */

body.cmh-authed .el-dialog {
  background: #fff !important;
  border: 0 !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: hidden;
}

body.cmh-authed .el-dialog__header {
  padding: 20px 24px 14px !important;
  border-bottom: 1px solid var(--cmh-line-soft) !important;
}
body.cmh-authed .el-dialog__title { color: var(--cmh-ink) !important; font-size: 17px; font-weight: 600; }
body.cmh-authed .el-dialog__headerbtn { top: 18px; right: 18px; }
body.cmh-authed .el-dialog__close { color: var(--cmh-mute) !important; }
body.cmh-authed .el-dialog__close:hover { color: var(--cmh-ink) !important; }

body.cmh-authed .el-dialog__body {
  background: #fff !important;
  color: var(--cmh-text) !important;
  padding: 20px 24px !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
}

body.cmh-authed .el-dialog__footer { padding: 0 24px 20px !important; }

body.cmh-authed .dialog .el-dialog__body,
body.cmh-authed .dialog1 .el-dialog__body { background: #fff !important; }
body.cmh-authed .dialog .el-form-item__label,
body.cmh-authed .dialog1 .el-form-item__label { color: var(--cmh-sub) !important; }
body.cmh-authed .dialog .el-form-item__content,
body.cmh-authed .dialog1 .el-form-item__content,
body.cmh-authed .dialog .el-radio__label,
body.cmh-authed .dialog1 .el-radio__label { color: var(--cmh-text) !important; }

body.cmh-authed .el-dialog__body .el-input__inner { color: var(--cmh-ink) !important; background: #fff !important; }

body.cmh-authed .el-message-box {
  background: #fff !important;
  border: 1px solid var(--cmh-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18) !important;
  backdrop-filter: none !important;
}
body.cmh-authed .el-message-box__header { border-bottom: 1px solid var(--cmh-line-soft) !important; }
body.cmh-authed .el-message-box__title { color: var(--cmh-ink) !important; }
body.cmh-authed .el-message-box__content { color: var(--cmh-text) !important; }
body.cmh-authed .el-message-box__close { color: var(--cmh-mute) !important; }
body.cmh-authed .el-message-box__btns .el-button--default {
  background: #fff !important;
  border: 1px solid #d7dee9 !important;
  color: var(--cmh-text) !important;
}
body.cmh-authed .el-message-box__btns .el-button--primary {
  background: var(--cmh-primary) !important;
  border-color: var(--cmh-primary) !important;
  color: #fff !important;
}

/* ---------------- 房卡加密 / 取消加密弹窗 ---------------- */

body.cmh-authed .cmh-encrypt-dialog,
body.cmh-authed .cmh-decrypt-dialog {
  width: 560px !important;
  max-width: calc(100vw - 28px) !important;
  border-radius: 20px !important;
  overflow: hidden;
}

body.cmh-authed .cmh-encrypt-dialog .el-dialog__header,
body.cmh-authed .cmh-decrypt-dialog .el-dialog__header {
  padding: 24px 28px 18px !important;
  border-bottom: 1px solid var(--cmh-line-soft) !important;
}

body.cmh-authed .cmh-encrypt-dialog .el-dialog__title,
body.cmh-authed .cmh-decrypt-dialog .el-dialog__title {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 18px;
  font-weight: 600;
  color: var(--cmh-ink) !important;
  line-height: 36px;
}

body.cmh-authed .cmh-encrypt-dialog .el-dialog__title::before,
body.cmh-authed .cmh-decrypt-dialog .el-dialog__title::before {
  content: "";
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--cmh-primary-soft) url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%232563eb'%20stroke-width='1.8'%20stroke-linecap='round'%3E%3Crect%20x='4.5'%20y='10.5'%20width='15'%20height='10.5'%20rx='3'/%3E%3Cpath%20d='M8%2010.5V8a4%204%200%200%201%208%200v2.5'/%3E%3C/svg%3E") center / 19px 19px no-repeat;
  border: 1px solid #dbeafe;
  flex: 0 0 auto;
}

body.cmh-authed .cmh-encrypt-dialog .el-dialog__header::after,
body.cmh-authed .cmh-decrypt-dialog .el-dialog__header::after {
  display: block;
  margin: 10px 0 0 47px;
  font-size: 12.5px;
  color: var(--cmh-mute);
  line-height: 1.5;
}

body.cmh-authed .cmh-encrypt-dialog .el-dialog__header::after {
  content: "将卡片放入发卡器感应区，系统会自动完成加密写入";
}
body.cmh-authed .cmh-decrypt-dialog .el-dialog__header::after {
  content: "将卡片放入发卡器感应区，系统会自动完成取消加密";
}

body.cmh-authed .cmh-encrypt-dialog .el-dialog__body,
body.cmh-authed .cmh-decrypt-dialog .el-dialog__body {
  padding: 22px 28px 8px !important;
  background: #fff !important;
}

body.cmh-authed .cmh-encrypt-dialog .cardencrypt-body,
body.cmh-authed .cmh-decrypt-dialog .cardencrypt-body { padding: 0 !important; }

body.cmh-authed .cmh-encrypt-dialog .encrypt-hero,
body.cmh-authed .cmh-decrypt-dialog .encrypt-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 !important;
  padding: 18px 22px !important;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%) !important;
  border: 1px solid #dbeafe !important;
  border-radius: 16px !important;
}

body.cmh-authed .cmh-encrypt-dialog .encrypt-hero-label,
body.cmh-authed .cmh-decrypt-dialog .encrypt-hero-label {
  color: var(--cmh-sub) !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

body.cmh-authed .cmh-encrypt-dialog .encrypt-hero-num,
body.cmh-authed .cmh-decrypt-dialog .encrypt-hero-num {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

body.cmh-authed .cmh-encrypt-dialog .encrypt-hero-count,
body.cmh-authed .cmh-decrypt-dialog .encrypt-hero-count {
  color: var(--cmh-primary) !important;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: none !important;
}

body.cmh-authed .cmh-encrypt-dialog .encrypt-hero-unit,
body.cmh-authed .cmh-decrypt-dialog .encrypt-hero-unit {
  color: var(--cmh-mute) !important;
  font-size: 13px;
}

body.cmh-authed .cmh-encrypt-dialog .encrypt-total,
body.cmh-authed .cmh-decrypt-dialog .encrypt-total {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding: 7px 14px;
  background: #f8fafc !important;
  border: 1px solid var(--cmh-line-soft);
  border-radius: 999px;
  color: var(--cmh-sub) !important;
  font-size: 12px;
}
body.cmh-authed .cmh-encrypt-dialog .encrypt-total b,
body.cmh-authed .cmh-decrypt-dialog .encrypt-total b {
  color: var(--cmh-primary) !important;
  font-size: 14px;
}

body.cmh-authed .cmh-encrypt-dialog .encrypt-status,
body.cmh-authed .cmh-decrypt-dialog .encrypt-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  padding: 12px 14px;
  background: #f8fafc !important;
  border: 1px solid var(--cmh-line-soft);
  border-radius: 11px;
  color: var(--cmh-text) !important;
  font-size: 13px;
  line-height: 1.5;
}
body.cmh-authed .cmh-encrypt-dialog .encrypt-status::before,
body.cmh-authed .cmh-decrypt-dialog .encrypt-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  flex: 0 0 auto;
}
body.cmh-authed .cmh-encrypt-dialog .encrypt-status.is-encrypting,
body.cmh-authed .cmh-decrypt-dialog .encrypt-status.is-encrypting {
  background: var(--cmh-primary-soft) !important;
  border-color: #bfdbfe;
  color: var(--cmh-primary) !important;
}
body.cmh-authed .cmh-encrypt-dialog .encrypt-status.is-encrypting::before,
body.cmh-authed .cmh-decrypt-dialog .encrypt-status.is-encrypting::before {
  background: var(--cmh-primary);
  animation: cmh-pulse 1.1s ease infinite;
}
@keyframes cmh-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.35); }
  70% { box-shadow: 0 0 0 7px rgba(37, 99, 235, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
body.cmh-authed .cmh-encrypt-dialog .encrypt-status .el-icon-loading,
body.cmh-authed .cmh-decrypt-dialog .encrypt-status .el-icon-loading {
  color: var(--cmh-primary) !important;
}

body.cmh-authed .cmh-encrypt-dialog .encrypt-hint,
body.cmh-authed .cmh-decrypt-dialog .encrypt-hint {
  position: relative;
  margin-top: 12px;
  padding: 12px 16px 12px 38px;
  background: #fff !important;
  border: 1px dashed #dbe4f0;
  border-radius: 11px;
  color: var(--cmh-sub) !important;
  font-size: 12px;
  line-height: 1.75;
  text-align: left;
}
body.cmh-authed .cmh-encrypt-dialog .encrypt-hint::before,
body.cmh-authed .cmh-decrypt-dialog .encrypt-hint::before {
  content: "i";
  position: absolute;
  left: 14px;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--cmh-primary-soft);
  color: var(--cmh-primary);
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.cmh-authed .cmh-encrypt-dialog .el-dialog__footer,
body.cmh-authed .cmh-decrypt-dialog .el-dialog__footer {
  padding: 12px 28px 24px !important;
  border-top: 0 !important;
}
body.cmh-authed .cmh-encrypt-dialog .dialog-footer,
body.cmh-authed .cmh-decrypt-dialog .dialog-footer {
  display: flex;
  justify-content: flex-end;
}
body.cmh-authed .cmh-encrypt-dialog .dialog-footer .el-button,
body.cmh-authed .cmh-decrypt-dialog .dialog-footer .el-button {
  min-width: 132px;
  height: 42px;
  border-radius: 10px;
  font-size: 14px;
}

body.cmh-authed .more-card-dialog .el-dialog__body,
body.cmh-authed .more-card-dialog .el-dialog__body *,
body.cmh-authed .more-card-dialog .el-dialog__title { color: var(--cmh-text) !important; }
body.cmh-authed .more-card-dialog .el-tag {
  background: var(--cmh-primary-soft) !important;
  border: 1px solid #dbeafe !important;
  color: var(--cmh-primary) !important;
}
body.cmh-authed .more-card-dialog .dialog-footer .el-button--default {
  background: #fff !important;
  border: 1px solid #d7dee9 !important;
  color: var(--cmh-text) !important;
}
body.cmh-authed .more-card-dialog .dialog-footer .el-button--primary {
  background: var(--cmh-primary) !important;
  border-color: var(--cmh-primary) !important;
  color: #fff !important;
}

/* 下拉 / 日期面板（挂载在 body 上） */
.el-select-dropdown,
.el-dropdown-menu,
.el-picker-panel,
.el-popper {
  background: #fff !important;
  border: 1px solid var(--cmh-line) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
  color: var(--cmh-text) !important;
}
.el-select-dropdown__item { color: var(--cmh-text) !important; }
.el-select-dropdown__item.hover,
.el-select-dropdown__item:hover { background: #f8fafc !important; }
.el-select-dropdown__item.selected { color: var(--cmh-primary) !important; font-weight: 600; }
.el-dropdown-menu__item { color: var(--cmh-text) !important; }
.el-dropdown-menu__item:hover { background: #f8fafc !important; color: var(--cmh-primary) !important; }
.el-popper[x-placement^="bottom"] .popper__arrow::after { border-bottom-color: #fff !important; }
.el-popper[x-placement^="top"] .popper__arrow::after { border-top-color: #fff !important; }

.el-message {
  background: #fff !important;
  border: 1px solid var(--cmh-line) !important;
  border-radius: 10px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
}
.el-message .el-message__content { color: var(--cmh-text) !important; }
.el-message--success { border-color: #bbf7d0 !important; }
.el-message--error { border-color: #fecaca !important; }
.el-message--warning { border-color: #fde68a !important; }

.el-loading-mask { background-color: rgba(255, 255, 255, 0.72) !important; }
.el-loading-spinner .path { stroke: var(--cmh-primary) !important; }

/* ---------------- 登录页（浅色） ---------------- */

body.cmh-login .page-container {
  height: auto !important;
  min-height: 100vh !important;
  overflow-y: auto !important;
  background: #f1f5f9 !important;
}

body.cmh-login .page-container::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 380px at 12% 6%, rgba(37, 99, 235, 0.08), transparent 62%),
    radial-gradient(620px 420px at 92% 92%, rgba(37, 99, 235, 0.06), transparent 60%);
}

body.cmh-login .content-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  height: auto !important;
  padding: 28px 18px;
}

body.cmh-login .contanttt {
  width: 100%;
  min-height: 100vh;
  height: auto !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.cmh-login .login-container {
  width: 100% !important;
  max-width: 100%;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: none;
  position: relative;
  z-index: 1;
}

body.cmh-login .login-form {
  width: 408px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 36px 34px 30px !important;
  border-radius: 18px !important;
  background: #fff !important;
  border: 1px solid var(--cmh-line) !important;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07) !important;
  box-sizing: border-box;
  animation: cmh-rise 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.cmh-login .languageBox { display: none !important; }
body.cmh-login .login-container .title-container { display: none !important; }

@keyframes cmh-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.cmh-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
}

.cmh-login-logo {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--cmh-primary);
  margin-bottom: 14px;
}
.cmh-login-logo svg { width: 30px; height: 30px; }

.cmh-login-word { display: flex; flex-direction: column; gap: 6px; }
.cmh-login-word strong { font-size: 21px; letter-spacing: 0.5px; color: var(--cmh-ink); font-weight: 700; }
.cmh-login-word span { font-size: 12px; letter-spacing: 2px; color: var(--cmh-mute); }

.cmh-login-badge {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--cmh-sub);
  border: 1px solid var(--cmh-line);
  background: #f8fafc;
  padding: 4px 12px;
  border-radius: 999px;
}

body.cmh-login .login-form .el-form-item {
  border: 1px solid #d7dee9 !important;
  background: #fff !important;
  border-radius: 10px !important;
  margin-bottom: 16px !important;
  transition: border-color 0.18s, box-shadow 0.18s;
}
body.cmh-login .login-form .el-form-item:focus-within {
  border-color: var(--cmh-primary) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
body.cmh-login .login-form .el-input__inner {
  height: 46px !important;
  line-height: 46px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--cmh-ink) !important;
  padding-left: 0 !important;
}
body.cmh-login .login-form .el-input__inner:focus { border: 0 !important; background: transparent !important; box-shadow: none !important; }
body.cmh-login .login-form .el-input__inner::placeholder { color: var(--cmh-mute) !important; }
body.cmh-login .login-form .svg-container { color: var(--cmh-mute) !important; padding-left: 14px !important; }
body.cmh-login .login-form .el-form-item__error { color: #dc2626; }

body.cmh-login .login-container .el-button,
body.cmh-login .login-container .el-button--primary {
  width: 100%;
  height: 46px;
  margin-bottom: 16px !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #fff !important;
  background: var(--cmh-primary) !important;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22) !important;
  transition: background 0.16s, box-shadow 0.16s;
}
body.cmh-login .login-container .el-button:hover { background: var(--cmh-primary-dark) !important; }

body.cmh-login .login-container .el-checkbox__label,
body.cmh-login .login-container .forget,
body.cmh-login .login-container .el-link { color: var(--cmh-sub) !important; }
body.cmh-login .login-container .forget:hover { color: var(--cmh-primary) !important; }

body.cmh-login .beian-wrapper,
body.cmh-login .footerBeian { color: var(--cmh-mute) !important; background: transparent !important; }
body.cmh-login .beian-wrapper a,
body.cmh-login .footerBeian a { color: var(--cmh-mute) !important; }

/* ---------------- 无商家权限拦截 ---------------- */

#cmh-block-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.cmh-block-card {
  width: 450px;
  max-width: 100%;
  border-radius: 18px;
  padding: 34px 32px 28px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--cmh-line);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
  animation: cmh-rise 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cmh-block-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cmh-primary);
  background: var(--cmh-primary-soft);
  border: 1px solid #dbeafe;
}
.cmh-block-icon svg { width: 30px; height: 30px; }

.cmh-block-card h2 { margin: 0 0 12px; color: var(--cmh-ink); font-size: 21px; letter-spacing: 0.5px; }
.cmh-block-card p { margin: 0 0 10px; color: var(--cmh-text); font-size: 14px; line-height: 1.75; }
.cmh-block-card p b { color: var(--cmh-primary); }
.cmh-block-tip { color: var(--cmh-mute) !important; font-size: 13px !important; }
.cmh-block-user { margin: 16px 0 20px; color: var(--cmh-mute); font-size: 12px; }

.cmh-block-actions { display: flex; gap: 12px; justify-content: center; }

.cmh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s;
}
.cmh-btn-primary {
  border: 0;
  color: #fff;
  background: var(--cmh-primary);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}
.cmh-btn-primary:hover { background: var(--cmh-primary-dark); }
.cmh-btn-ghost {
  color: var(--cmh-text);
  border: 1px solid #d7dee9;
  background: #fff;
}
.cmh-btn-ghost:hover { color: var(--cmh-primary); border-color: #bfdbfe; }

/* ---------------- 轻提示 ---------------- */

#cmh-toast {
  position: fixed;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 16px);
  z-index: 99998;
  padding: 11px 18px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--cmh-line);
  color: var(--cmh-text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
}
#cmh-toast.cmh-toast-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- 响应式 ---------------- */

@media (max-width: 1100px) {
  #cmh-sidebar { transform: translateX(-100%); transition: transform 0.24s ease; box-shadow: 0 0 40px rgba(15, 23, 42, 0.12); }
  body.cmh-drawer-open #cmh-sidebar { transform: none; }
  #cmh-topbar, #cmh-page-head { left: 0; }
  .cmh-menu-btn { display: inline-flex; }
  body.cmh-authed .main-container { margin-left: 0 !important; }
  #cmh-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1350;
    background: rgba(15, 23, 42, 0.36);
  }
  body.cmh-drawer-open #cmh-mask { display: block; }
}

@media (max-width: 900px) {
  :root { --cmh-head-h: 84px; }
  #cmh-topbar { padding: 0 16px; gap: 10px; }
  #cmh-page-head { padding: 0 16px; }
  body.cmh-authed .app-main { padding: calc(var(--cmh-top-h) + var(--cmh-head-h) + 16px) 16px 32px !important; }
  .cmh-hero { flex-direction: column; align-items: flex-start; padding: 22px; }
  .cmh-hero-side { text-align: left; }
  .cmh-hero-num { align-items: flex-start; }
  .cmh-stats { grid-template-columns: 1fr; }
  .cmh-account-body { flex-direction: column; align-items: flex-start; }
  .cmh-page-head-side .cmh-step { display: none; }
  .cmh-page-head-side .cmh-step-line { display: none; }
  .cmh-top-user .cmh-user-meta { display: none; }
  .cmh-quota-chip { display: none; }
}

@media (max-width: 640px) {
  .cmh-page-head-side { display: none; }
  .cmh-actions { grid-template-columns: 1fr; }
  .cmh-dash { padding: 0; }
  .cmh-account-grid { grid-template-columns: 1fr 1fr; }
  .cmh-logout span { display: none; }
  .cmh-logout { padding: 0 9px; }
  .cmh-crumb { display: none; }
  body.cmh-login .login-form { padding: 28px 22px 24px !important; border-radius: 16px !important; }
  .cmh-login-word strong { font-size: 19px; }
  .cmh-block-card { padding: 28px 20px 22px; }
  .cmh-block-card h2 { font-size: 19px; }
  body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) { padding: 0 18px 18px; border-radius: 14px; }
  body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading)::before { margin: 0 -18px 20px; padding: 14px 18px; }
  body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .row { flex-wrap: wrap; margin-bottom: 14px; }
  body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .el-col-3 { width: 100% !important; flex: 1 1 100%; }
  body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .el-col-12 { width: 100% !important; flex: 1 1 100%; margin-top: 8px; }
  body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .el-col-4 { width: 100% !important; flex: 1 1 100%; margin: 10px 0 0; }
  body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .center { line-height: 1.6; }
  body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .btnArea { margin: 22px -18px 0 !important; padding: 16px 18px 0; flex-direction: column-reverse; }
  body.cmh-route-bind .app-main > div:not(#cmh-dash):not(#cmh-route-loading) .btn { width: 100% !important; }

  body.cmh-authed .cmh-encrypt-dialog,
  body.cmh-authed .cmh-decrypt-dialog {
    width: calc(100vw - 24px) !important;
    border-radius: 16px !important;
  }
  body.cmh-authed .cmh-encrypt-dialog .el-dialog__header,
  body.cmh-authed .cmh-decrypt-dialog .el-dialog__header { padding: 20px 20px 14px !important; }
  body.cmh-authed .cmh-encrypt-dialog .el-dialog__header::after,
  body.cmh-authed .cmh-decrypt-dialog .el-dialog__header::after { margin-left: 0; }
  body.cmh-authed .cmh-encrypt-dialog .el-dialog__body,
  body.cmh-authed .cmh-decrypt-dialog .el-dialog__body { padding: 18px 20px 6px !important; }
  body.cmh-authed .cmh-encrypt-dialog .encrypt-hero,
  body.cmh-authed .cmh-decrypt-dialog .encrypt-hero { padding: 14px 16px !important; }
  body.cmh-authed .cmh-encrypt-dialog .encrypt-hero-count,
  body.cmh-authed .cmh-decrypt-dialog .encrypt-hero-count { font-size: 38px; }
  body.cmh-authed .cmh-encrypt-dialog .el-dialog__footer,
  body.cmh-authed .cmh-decrypt-dialog .el-dialog__footer { padding: 10px 20px 18px !important; }
  body.cmh-authed .cmh-encrypt-dialog .dialog-footer,
  body.cmh-authed .cmh-decrypt-dialog .dialog-footer { width: 100%; }
  body.cmh-authed .cmh-encrypt-dialog .dialog-footer .el-button,
  body.cmh-authed .cmh-decrypt-dialog .dialog-footer .el-button { width: 100%; }

  body.cmh-authed .encryption-management .sector-status-section,
  body.cmh-authed .encryption-management .sector-contents-section { padding: 18px !important; }
  body.cmh-authed .encryption-management .legend { gap: 6px; }
  body.cmh-authed .encryption-management .legend-item { padding: 4px 8px; font-size: 11px; }
  body.cmh-authed .encryption-management .sectors-container {
    grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    gap: 8px;
  }
  body.cmh-authed .encryption-management .sector-item {
    min-height: 64px;
    padding: 10px 11px !important;
  }
  body.cmh-authed .encryption-management .action-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px !important;
  }
  body.cmh-authed .encryption-management .action-buttons::before { grid-column: 1 / -1; }
  body.cmh-authed .encryption-management .action-buttons .el-button { width: 100%; padding: 0 10px; }
  body.cmh-authed .encryption-management .sector-contents-table { overflow-x: auto; }
  body.cmh-authed .encryption-management .sc-table-header,
  body.cmh-authed .encryption-management .sc-row { min-width: 640px; }

  body.cmh-authed .workerLists .el-table__fixed-right,
  body.cmh-authed .workerLists .el-table__fixed-right-patch { display: none !important; }
  body.cmh-authed .workerLists .search-container > .el-input { flex: 1 1 100%; width: auto !important; }
  body.cmh-authed .workerLists .el-table__empty-block { min-height: 160px !important; }
  body.cmh-route-customer .workerLists .el-table {
    height: var(--cmh-cust-table-h, calc(100vh - 470px)) !important;
    min-height: 320px;
  }

  body.cmh-authed .card-encryption-management .search-form .el-form-item { flex: 1 1 100%; }
  body.cmh-authed .card-encryption-management .search-form .el-input,
  body.cmh-authed .card-encryption-management .search-form .el-select { width: 100%; }
  body.cmh-authed .card-encryption-management .el-table {
    height: var(--cmh-enc-table-h, calc(100vh - 540px)) !important;
    min-height: 300px;
  }
  body.cmh-authed .card-encryption-management .pagination-container { justify-content: center !important; }
  body.cmh-authed .card-encryption-management .pagination-container .el-pagination { padding: 6px 8px; }
}
