/* 商户后台壳：与登录页同一套深蓝 + 橙色。挂在已编译页上，刷新即可。 */
.any_tanxing.head {
  background:
    linear-gradient(90deg, rgba(255, 108, 46, 0.22), transparent 32%),
    linear-gradient(165deg, #12141c 0%, #23283e 58%, #2d3348 100%) !important;
  background-size: auto !important;
  border-bottom: 2px solid #ff6c2e;
}

.head_nav_log a {
  display: flex !important;
  align-items: center !important;
}

.head_nav_log a p {
  display: flex !important;
  align-items: center !important;
  line-height: 1 !important;
  margin: 0;
}

.head_nav_log a p::before,
.brand-mark {
  content: "";
  display: inline-block;
  flex: none;
  width: 32px;
  height: 32px;
  margin-right: 10px;
  border-radius: 6px;
  background: url("/dowima-icon.png?v=20261127j") center / contain no-repeat !important;
  box-shadow: none !important;
}

#nav {
  background: #23283e !important;
}

.el-menu-vertical-demo,
.el-menu-vertical-demo.el-menu {
  background-color: #23283e !important;
  border-right: 0;
}

.el-menu-vertical-demo .el-menu-item,
.el-menu-vertical-demo .el-menu-item i {
  color: rgba(255, 255, 255, 0.72) !important;
  background-color: transparent !important;
}

.el-menu-vertical-demo .el-menu-item:hover,
.el-menu-vertical-demo .el-menu-item:hover i {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.06) !important;
}

.el-menu-vertical-demo .el-menu-item.is-active,
.el-menu-vertical-demo .el-menu-item.is-active i {
  color: #ff6c2e !important;
  background-color: rgba(255, 108, 46, 0.14) !important;
  box-shadow: inset 3px 0 0 #ff6c2e;
}

.user_list li:hover {
  color: #ff6c2e !important;
}

.index_box {
  background: #eef0f5;
}

/* 桌面：侧栏与内容分区；仅右侧内容纵向滚动 */
html,
body,
#app {
  height: 100%;
}

#app > .el-container.dwm-shell,
#app > .el-container {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

#app > .el-container > .el-header {
  flex-shrink: 0;
}

#app > .el-container > .el-container,
.dwm-shell-body {
  flex: 1;
  min-height: 0 !important;
  height: calc(100vh - 60px);
  overflow: hidden;
}

#app > .el-container .el-aside,
.dwm-shell-aside {
  height: 100% !important;
  overflow-x: hidden;
  overflow-y: auto;
  flex-shrink: 0;
  border-right: 1px solid #e6e8ef;
}

#app > .el-container .el-main,
.dwm-shell-main {
  height: 100% !important;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto !important;
  background: #f7f8f9;
}

#nav {
  min-height: 100%;
}

/* 商品筛选：价格区间横排 + 紧凑行 */
.search_prod .price-range-inline {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}
.search_prod .price-range-inline .el-input {
  width: 72px;
}
.search_prod .search-row .el-form-item__content,
.search_prod .search-row-filters .el-form-item__content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.search_prod.search_prod--compact .el-form-item {
  margin-bottom: 10px !important;
}
.search_prod.search_prod--compact .el-form-item:last-child {
  margin-bottom: 8px !important;
}
.search_prod .search-btn-right {
  margin-left: auto !important;
}
.search_prod .search-btn-inline {
  margin-left: 8px !important;
}

/* 商品列表表头压矮 */
.product-list-table th.product-list-th {
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  height: 34px !important;
}
.product-list-table th.product-list-th > .cell {
  line-height: 18px !important;
  font-size: 12px !important;
}
.search_prod .inline-checks {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* 商品管理：免邮/置顶/红包券放标题行（采集/添加左侧） */
.product-title-actions {
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.product-title-actions .title-checks {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: 6px;
  white-space: nowrap;
}

/* 商品列表序号：保证数字可见 */
.sort-no-input {
  width: 56px !important;
}
.sort-no-input .el-input__inner {
  padding: 0 4px !important;
  text-align: center !important;
  font-size: 13px !important;
  color: #303133 !important;
}

.index_left_info,
.index_left_shop,
.index_right_item,
.index_right_new {
  border-radius: 12px !important;
  border-top: 3px solid #ff6c2e !important;
  box-shadow: 0 12px 28px rgba(35, 40, 62, 0.06);
}

.index_left_info_title > span,
.index_left_shop_title > span,
.index_right_new_title span:nth-of-type(2) {
  color: #ff6c2e !important;
}

.index_left_shop_item2 > div:hover {
  background: #fff7f3 !important;
}

.index_left_shop_url > span {
  background: #23283e !important;
  color: #fff !important;
  border-radius: 6px;
}

.el-button--primary,
.el-button--primary:focus,
.el-button--primary:hover {
  background: linear-gradient(90deg, #ff6c2e, #ed7b37) !important;
  border-color: #ff6c2e !important;
}

/* 商品管理缩略图：正方形，列表默认放大 */
.img_bor {
  width: 50px !important;
  height: 50px !important;
  padding: 0 !important;
  overflow: hidden;
  background: #fff;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1px solid #ebeef5;
  border-radius: 4px;
}

.img_bor > img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}

.img_bor.img_bor--lg,
.img_bor--lg {
  width: 88px !important;
  height: 88px !important;
}

.img_bor.img_bor--xl,
.img_bor--xl {
  width: 112px !important;
  height: 112px !important;
}

/* 图片列顶对齐，减少行内大块空白 */
.el-table .col-pic-top .cell {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
.el-table td.col-pic-top {
  vertical-align: top !important;
}

/* 企微手机：功能模块按双列卡片，品牌仍是深蓝 + 橙 */
@media (max-width: 820px) {
  html,
  body,
  #app {
    background: #e8eaef !important;
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow-x: hidden;
  }

  .el-header {
    height: 52px !important;
    padding: 0 !important;
  }

  .any_tanxing.head {
    height: 52px !important;
  }

  .head_nav_log {
    flex: 1 1 auto;
    width: auto !important;
    min-width: 0;
    padding-left: 10px !important;
    overflow: hidden;
  }

  .head_nav_log a p {
    font-size: 14px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .head_nav_log a p::before {
    width: 26px;
    height: 26px;
    margin-right: 8px;
  }

  .el-header + .el-container {
    display: flex !important;
    flex-direction: column !important;
    background: #e8eaef !important;
  }

  .el-aside {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  #nav {
    background: transparent !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 12px;
  }

  .el-menu-vertical-demo::before,
  .el-menu-vertical-demo::after,
  .el-menu::before,
  .el-menu::after {
    display: none !important;
    content: none !important;
  }

  .el-menu-vertical-demo,
  .el-menu-vertical-demo.el-menu {
    display: grid !important;
    width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px;
    background: transparent !important;
    border: 0 !important;
  }

  .el-menu-vertical-demo .el-menu-item {
    height: auto !important;
    min-height: 108px;
    line-height: 1.35 !important;
    white-space: normal !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #23283e !important;
    padding: 16px 14px !important;
    margin: 0 !important;
    box-shadow: 0 8px 22px rgba(35, 40, 62, 0.06) !important;
    display: flex !important;
    flex-direction: column;
    align-items: flex-start !important;
    justify-content: flex-start !important;
  }

  .el-menu-vertical-demo .el-menu-item i,
  .leftMenu-i {
    color: #ff6c2e !important;
    background: rgba(255, 108, 46, 0.12) !important;
    width: 36px !important;
    height: 36px !important;
    margin: 0 0 12px !important;
    border-radius: 10px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 18px !important;
  }

  .el-menu-vertical-demo .el-menu-item.is-active,
  .el-menu-vertical-demo .el-menu-item.is-active i {
    color: #23283e !important;
    background: #fff !important;
    box-shadow: 0 8px 22px rgba(35, 40, 62, 0.06) !important;
  }

  .el-menu-vertical-demo .el-menu-item.is-active {
    box-shadow: inset 0 0 0 1.5px #ff6c2e, 0 8px 22px rgba(35, 40, 62, 0.06) !important;
  }

  .el-menu-vertical-demo .el-menu-item.is-active i {
    color: #ff6c2e !important;
    background: rgba(255, 108, 46, 0.12) !important;
  }

  html[data-dwm="home"] .el-main {
    display: none !important;
  }

  html[data-dwm="page"] .el-aside {
    display: none !important;
  }

  .el-main {
    padding: 8px !important;
    background: #e8eaef !important;
    overflow-x: auto;
  }

  .search_prod .el-col {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
  }

  .search_prod .el-form-item__label,
  .search_prod .col_label {
    float: none !important;
    width: auto !important;
    text-align: left !important;
    white-space: nowrap !important;
    line-height: 28px !important;
  }

  .search_prod .el-form-item__content {
    margin-left: 0 !important;
  }

  /* 「功能」回首页条已废弃：全局隐藏，防旧缓存残留 */
  #dwm-back {
    display: none !important;
  }
}

/* 桌面也隐藏「功能」条 */
#dwm-back {
  display: none !important;
}
