/* Console refinement layer for product navigation and operational surfaces. */
:root {
  --console-refine-ink: #493b4c;
  --console-refine-muted: #8d7b8d;
  --console-refine-line: #eee1eb;
  --console-refine-pink: #c55d95;
  --console-refine-pink-soft: #fff3f8;
  --console-refine-lilac-soft: #f4f0ff;
  --console-refine-shadow: 0 14px 30px rgba(132, 82, 120, .075);
}

/* Make dynamic menu groups scan as a hierarchy without changing their data. */
.el-aside,
.drawer-menu {
  background: linear-gradient(180deg, rgba(255, 253, 255, .98), rgba(252, 246, 253, .96)) !important;
}

.el-aside .el-menu-item,
.el-aside .el-submenu__title,
.drawer-menu .el-menu-item,
.drawer-menu .el-submenu__title {
  position: relative;
  min-height: 46px;
  border: 1px solid transparent !important;
  color: #806e7f !important;
  font-weight: 600;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.el-aside .el-menu-item::before,
.el-aside .el-submenu__title::before,
.drawer-menu .el-menu-item::before,
.drawer-menu .el-submenu__title::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(180deg, #e889b3, #9b87e6);
  content: "";
  opacity: 0;
  transform: scaleY(.45);
  transition: opacity .2s ease, transform .2s ease;
}

.el-aside .el-menu-item:hover,
.el-aside .el-submenu__title:hover,
.drawer-menu .el-menu-item:hover,
.drawer-menu .el-submenu__title:hover {
  border-color: #f1dce8 !important;
  background: linear-gradient(100deg, #fff4f8, #f8f5ff) !important;
  color: #b34e83 !important;
  transform: translateX(2px);
}

.el-aside .el-menu-item.is-active,
.el-aside .el-submenu.is-active > .el-submenu__title,
.drawer-menu .el-menu-item.is-active,
.drawer-menu .el-submenu.is-active > .el-submenu__title {
  border-color: #eed6e4 !important;
  background: linear-gradient(105deg, #ffeaf3, #f0edff) !important;
  color: #b3487f !important;
  box-shadow: 0 8px 18px rgba(198, 73, 132, .075);
}

.el-aside .el-menu-item.is-active::before,
.el-aside .el-submenu.is-active > .el-submenu__title::before,
.drawer-menu .el-menu-item.is-active::before,
.drawer-menu .el-submenu.is-active > .el-submenu__title::before {
  opacity: 1;
  transform: scaleY(1);
}

.el-aside .el-submenu.is-opened > .el-submenu__title,
.drawer-menu .el-submenu.is-opened > .el-submenu__title {
  background: rgba(255, 247, 251, .72) !important;
  color: #a4517d !important;
}

.el-aside .el-submenu .el-menu,
.drawer-menu .el-submenu .el-menu {
  margin: 4px 0 8px;
  border: 1px solid #f1e3ec !important;
  background: rgba(255, 250, 253, .84) !important;
  box-shadow: inset 0 1px rgba(255, 255, 255, .82);
}

.el-aside .el-submenu .el-menu-item,
.drawer-menu .el-submenu .el-menu-item {
  min-height: 38px;
  height: 38px !important;
  color: #958396 !important;
  font-weight: 500;
}

.el-aside .el-submenu .el-menu-item:hover,
.drawer-menu .el-submenu .el-menu-item:hover,
.el-aside .el-submenu .el-menu-item.is-active,
.drawer-menu .el-submenu .el-menu-item.is-active {
  color: #b34e83 !important;
  transform: none;
}

/* The product list is a work surface: title, filters and table read as one card. */
.product .main-card {
  max-width: 1480px;
  box-sizing: border-box;
  padding: 26px 28px 30px !important;
  border: 1px solid rgba(238, 220, 233, .9);
  border-radius: 20px;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--console-refine-shadow);
  backdrop-filter: blur(12px);
}

.product .main-card-title {
  min-height: 42px;
  justify-content: space-between;
}

.product .main-card-title .title-text {
  color: var(--console-refine-ink) !important;
  font-size: 23px !important;
  font-weight: 800;
  letter-spacing: 0;
}

.product .product-tab-list {
  margin-top: 19px;
  padding: 0 10px;
  border: 1px solid var(--console-refine-line);
  border-radius: 14px;
  background: linear-gradient(105deg, rgba(255, 247, 251, .88), rgba(247, 245, 255, .86));
}

.product .product-tab-list .el-tabs__header {
  margin: 0;
}

.product .product-tab-list .el-tabs__nav-wrap::after {
  height: 1px;
  background-color: #f0e4ec;
}

.product .product-tab-list .el-tabs__item {
  height: 46px;
  padding: 0 15px;
  color: #8b788b;
  font-size: 13px;
  font-weight: 600;
  line-height: 46px;
  transition: color .2s ease;
}

.product .product-tab-list .el-tabs__item:hover,
.product .product-tab-list .el-tabs__item.is-active {
  color: var(--console-refine-pink);
}

.product .product-tab-list .el-tabs__active-bar {
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(90deg, #e58bb5, #9c87e6);
}

.product .main-card-search {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 16px !important;
  border: 1px solid #f0e2eb;
  border-radius: 14px;
  background: linear-gradient(105deg, rgba(255, 252, 254, .96), rgba(249, 247, 255, .92));
}

.product .main-card-search .right-search {
  gap: 10px;
}

.product .main-card-search .right-search .el-select,
.product .main-card-search .right-search .el-input {
  width: clamp(150px, 18vw, 220px);
}

.product .main-card-search .el-input__inner,
.product .main-card-search .el-select .el-input__inner {
  height: 40px;
  border-color: #eadde7;
  border-radius: 10px;
  background: rgba(255, 255, 255, .8);
  color: #59495a;
}

.product .main-card-search .el-input__inner:focus {
  border-color: #d69ab8;
  box-shadow: 0 0 0 3px rgba(214, 154, 184, .12);
}

.product .main-card-search .search-btn {
  min-width: 76px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(125deg, #e991b8, #9b87e5);
  box-shadow: 0 7px 15px rgba(155, 135, 229, .16);
  font-size: 13px;
  font-weight: 700;
  transition: transform .2s ease, filter .2s ease;
}

.product .main-card-search .search-btn:hover {
  filter: saturate(1.06) brightness(1.03);
  transform: translateY(-1px);
}

.product .table {
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid #eee2eb;
  border-radius: 15px;
  background: rgba(255, 255, 255, .66);
}

.product .list-table-border {
  border: 0 !important;
}

.product .el-table th {
  height: 46px;
  background: #fff6fa !important;
  color: #927d90 !important;
  font-size: 12px;
  font-weight: 700;
}

.product .el-table td {
  height: 56px;
  background: rgba(255, 255, 255, .42) !important;
  color: #665668;
  font-size: 12px;
}

.product .el-table td,
.product .el-table th.is-leaf {
  border-bottom-color: #f1e5ed !important;
}

.product .el-table--enable-row-hover .el-table__body tr:hover > td {
  background: #fff5fa !important;
}

.product .cloud-name {
  gap: 3px;
  cursor: pointer;
}

.product .cloud-name .packge-name {
  color: #574357;
  font-weight: 700;
}

.product .cloud-name .name {
  color: #a08c9e;
  font-size: 11px;
}

.product .column-id,
.product .base-color,
.product .product-name {
  color: var(--console-refine-pink) !important;
  font-weight: 700;
}

.product .status {
  width: auto;
  min-width: 62px;
  height: 28px;
  box-sizing: border-box;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .68);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.product .page {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

/* The dashboard stat tiles share the same restrained surface language. */
.home-main .order-box .order-item {
  position: relative;
  align-items: flex-start;
  box-sizing: border-box;
  padding: 18px !important;
  border: 1px solid #efdfeb;
  background: linear-gradient(145deg, #fff9fc, #f7f3ff) !important;
  color: #574357;
}

.home-main .order-box .order-item::after {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(213, 157, 194, .24);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.home-main .order-box .order-type-img {
  display: grid;
  width: 42px !important;
  height: 42px !important;
  margin: 0 !important;
  place-items: center;
  border: 1px solid rgba(222, 177, 205, .46);
  border-radius: 13px !important;
  background: rgba(255, 255, 255, .74);
}

.home-main .order-box .order-type-img img {
  width: 27px !important;
  height: 27px !important;
  object-fit: contain;
}

.home-main .order-box .order-title {
  margin-top: 16px;
  color: #8b788b !important;
  font-size: 12px !important;
  font-weight: 700;
}

.home-main .order-box .order-nums {
  margin-top: auto;
  margin-bottom: 0 !important;
  color: #4b3a4d !important;
  font-size: 29px !important;
}

.home-main .order-box .order-box-1 .order-type-img {
  border-color: transparent;
  background: linear-gradient(135deg, #d98fb7, #aa8bd7) !important;
  box-shadow: 0 7px 13px rgba(170, 139, 215, .2);
}

.home-main .order-box .order-box-2 .order-type-img {
  border-color: transparent;
  background: linear-gradient(135deg, #82c7d7, #7b9fe2) !important;
  box-shadow: 0 7px 13px rgba(123, 159, 226, .18);
}

.home-main .order-box .order-box-3 .order-type-img {
  border-color: transparent;
  background: linear-gradient(135deg, #df9ab8, #bd91dd) !important;
  box-shadow: 0 7px 13px rgba(189, 145, 221, .18);
}

@media (max-width: 750px) {
  .drawer-menu {
    width: min(86vw, 360px) !important;
  }

  .drawer-menu .el-drawer__body {
    overflow-y: auto;
    padding: 10px 8px 22px;
  }

  .product .main-card {
    margin: 0;
    padding: 17px 13px 22px !important;
    border-radius: 18px;
  }

  .product .main-card-title .title-text {
    font-size: 20px !important;
  }

  .product .product-tab-list {
    margin-top: 14px;
    padding: 0 4px;
    overflow: hidden;
  }

  .product .product-tab-list .el-tabs__nav {
    min-width: max-content;
  }

  .product .product-tab-list .el-tabs__item {
    height: 42px;
    padding: 0 10px;
    font-size: 12px;
    line-height: 42px;
  }

  .product .main-card-search {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px !important;
  }

  .product .main-card-search .right-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 9px;
  }

  .product .main-card-search .right-search .el-select,
  .product .main-card-search .right-search .el-input {
    width: 100%;
  }

  .product .main-card-search .search-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .product .table {
    overflow-x: auto;
  }

  .product .table .el-table {
    min-width: 920px;
  }

  .home-main .order-box .order-item {
    min-height: 124px !important;
    padding: 13px !important;
  }

  .home-main .order-box .order-type-img {
    width: 34px !important;
    height: 34px !important;
    border-radius: 11px !important;
  }

  .home-main .order-box .order-type-img img {
    width: 23px !important;
    height: 23px !important;
  }

  .home-main .order-box .order-title {
    margin-top: 11px;
    font-size: 11px !important;
  }

  .home-main .order-box .order-nums {
    font-size: 24px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .el-aside .el-menu-item,
  .el-aside .el-submenu__title,
  .drawer-menu .el-menu-item,
  .drawer-menu .el-submenu__title,
  .product .main-card-search .search-btn,
  .product .product-tab-list .el-tabs__item {
    transition: none !important;
  }
}

/* Product pages use .product instead of .template, so they need the same
   reserved column as the fixed desktop sidebar. */
@media (min-width: 751px) {
  .product > .el-container {
    position: relative;
    min-height: 100vh;
  }

  .product > .el-container > .el-container {
    width: calc(100% - 236px) !important;
    margin-left: 236px;
  }

  .product > .el-container > .el-container > .el-header {
    left: 236px !important;
    width: calc(100% - 236px) !important;
  }

  .product > .el-container > .el-container > .el-main,
  .product > .el-container > .el-container > .el-container > .el-main {
    min-height: calc(100vh - 74px) !important;
    margin-top: 74px !important;
  }
}

@media (min-width: 751px) and (max-width: 1100px) {
  .product > .el-container > .el-container {
    width: calc(100% - 204px) !important;
    margin-left: 204px;
  }

  .product > .el-container > .el-container > .el-header {
    left: 204px !important;
    width: calc(100% - 204px) !important;
  }
}

@media (max-width: 750px) {
  .product > .el-container > .el-container {
    width: 100% !important;
    margin-left: 0;
  }

  .product > .el-container > .el-container > .el-header {
    left: 0 !important;
    width: 100% !important;
  }

  .product > .el-container > .el-container > .el-main,
  .product > .el-container > .el-container > .el-container > .el-main {
    min-height: calc(100vh - 62px) !important;
    margin-top: 62px !important;
  }
}
