/* 微企存壳层样式（移植自 微企存会话存档/admin/src/styles/layout.css） */

.wqc-layout,
.wx-app {
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  grid-template-rows: none !important;
  overflow: hidden;
  background: #f0f2f5;
}

.wqc-header,
.wx-top {
  height: 56px !important;
  flex-shrink: 0;
  background: #fff !important;
  border-bottom: 1px solid #e8e8e8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  padding: 0 20px !important;
  gap: 16px;
  z-index: 99;
}

.wqc-logo {
  font-weight: 700;
  font-size: 18px;
  color: #1677ff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}
.wqc-logo span { color: #333; font-weight: 600; }

.wx-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wx-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1677ff;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.wx-product {
  font-weight: 700;
  font-size: 18px;
  color: #1677ff;
}
.wx-corp {
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid #f0f0f0;
  color: #8c8c8c;
  font-size: 13px;
  font-weight: 400;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wqc-header-right,
.wx-top-right {
  margin-left: auto !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 14px;
  color: #333;
}

.wqc-user-tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  background: #e6f4ff;
  color: #1677ff;
  font-size: 12px;
}

.wqc-body,
.wx-body {
  flex: 1 !important;
  min-height: 0 !important;
  display: flex !important;
  grid-template-columns: none !important;
  overflow: hidden;
}

.wqc-sidebar,
.wx-rail {
  width: 208px !important;
  flex-shrink: 0;
  align-self: stretch;
  background: #001529 !important;
  border-right: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  padding: 12px 0 !important;
}

.wqc-menu-item,
.wx-nav {
  width: calc(100% - 16px) !important;
  margin: 2px 8px !important;
  text-align: left;
  border: 0;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.65) !important;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  cursor: pointer;
  font-size: 14px !important;
  font-weight: 400 !important;
}
.wqc-menu-item:hover,
.wx-nav:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #fff !important;
}
.wqc-menu-item.active,
.wx-nav.active {
  background: #1677ff !important;
  color: #fff !important;
  font-weight: 500 !important;
}

.wqc-menu-group,
.wx-nav-group {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 0 !important;
}
.wqc-menu-group-title,
.wx-nav-group-title {
  padding: 8px 24px 6px !important;
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.35) !important;
}
.wqc-menu-sub,
.wx-nav-sub {
  padding-left: 28px !important;
  font-size: 13px !important;
}

.wqc-content,
.wx-main {
  flex: 1 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 16px !important;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f0f2f5 !important;
  max-width: none !important;
}

.page-head h1 { font-size: 18px !important; font-weight: 600; color: #1f1f1f; }
.page-head .desc { color: #8c8c8c !important; font-size: 13px !important; }

.panel {
  background: #fff !important;
  border: 1px solid #f0f0f0 !important;
  border-radius: 8px !important;
  padding: 16px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}
.panel h3 { font-size: 15px !important; font-weight: 600; color: #1f1f1f; }

.stat {
  border-radius: 8px !important;
  border: 1px solid #f0f0f0 !important;
  background: #fff !important;
  padding: 16px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.stat .label { font-size: 12px !important; color: #8c8c8c !important; }
.stat .value { font-size: 22px !important; font-weight: 600 !important; color: #262626; }
.stat .value.accent { color: #1677ff !important; }

.table th {
  background: #fafafa !important;
  font-weight: 500 !important;
  color: rgba(0, 0, 0, 0.88);
  border-bottom: 1px solid #f0f0f0 !important;
}
.table td { border-bottom: 1px solid #f0f0f0 !important; }
.table tr:hover td { background: #f5f9ff !important; }

/* 运营端侧栏深色 */
.app-shell {
  height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  overflow: hidden;
}
.app-shell-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
}
.app-shell .rail {
  width: 208px !important;
  height: auto !important;
  position: static !important;
  background: #001529 !important;
  border-right: 0 !important;
  padding: 12px 0 !important;
  overflow-y: auto;
}
.app-shell .rail-brand { color: #fff !important; padding: 8px 24px 4px; }
.app-shell .rail-tag { color: rgba(255,255,255,0.35) !important; padding: 0 24px 12px; }
.app-shell .nav-btn {
  width: calc(100% - 16px) !important;
  margin: 2px 8px;
  color: rgba(255,255,255,0.65) !important;
  border-radius: 6px;
}
.app-shell .nav-btn:hover { background: rgba(255,255,255,0.08) !important; color: #fff !important; }
.app-shell .nav-btn.active {
  background: #1677ff !important;
  color: #fff !important;
}
.app-shell .rail-foot {
  position: static !important;
  margin-top: 24px;
  padding: 12px 16px;
  color: rgba(255,255,255,0.45);
}
.app-shell .main {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 16px !important;
  max-width: none !important;
  background: #f0f2f5;
}

@media (max-width: 900px) {
  html, body, #app {
    height: auto !important;
    max-height: none !important;
    overflow: auto !important;
  }
  .wqc-body, .wx-body { flex-direction: column !important; }
  .wqc-sidebar, .wx-rail {
    width: 100% !important;
    display: flex !important;
    overflow-x: auto;
    padding: 8px !important;
  }
  .wqc-menu-item, .wx-nav {
    white-space: nowrap;
    width: auto !important;
    margin: 0 2px !important;
  }
  .wqc-menu-group, .wx-nav-group {
    display: flex;
    align-items: center;
    border-left: 1px solid rgba(255,255,255,0.12);
    padding-left: 8px;
    margin-left: 4px;
  }
}
