/* =========================================================
   Sidebar Layout
   專門給左側 sidebar 使用
========================================================= */

.sidebar {
  position: relative;
  width: 273px;
  flex: 0 0 273px;
  align-self: stretch;
  padding: 24px 20px 32px;
  padding-top: 110px;
  background: rgba(9, 12, 25, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  overflow: visible;
  box-sizing: border-box;
}

.sidebar-scroll {
  overflow: visible;
  padding-right: 0;
  margin-right: 0;
}

.sidebar-brand {
  display: block;
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: none;
  margin-bottom: 40px;
  white-space: nowrap;
  overflow: visible;
}

.sidebar-brand .bread-crumb {
  width: max-content;
  max-width: none;
  overflow: visible;
}

.sidebar-brand .bread-crumb .bread-crumb-item a p span {
  margin-right: 5px;
}
.sidebar-group{
	width: 70%;
	position: relative;
	margin: 0 auto;
}
.sidebar-group + .sidebar-group {
  margin-top: 40px;
}

.sidebar-title {
  margin: 0 0 20px;
  color: #A3B2BF;
  font-size: 0.8125em;
}

/* =========================================================
   Shared UI Block
   這段可視情況搬到 ui.css 當共用導覽元件
========================================================= */

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0px;
  border-radius: 12px;
  color: #ffffff;
  font-size: .9375em;
  margin-bottom: 10px;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
}

.nav-link:hover {
/*   background: rgba(255, 255, 255, 0.05); */
  color: #22c4ff;
}

.nav-link.is-active {
  color: #22c4ff;
}

.nav-link.is-active .nav-icon {
  color: #22c4ff;
}

.nav-icon {
  width: 18px;
  text-align: center;
  color: #a5b2c8;
}

.nav-dot {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: 50%;
  background: #ff4d4f;
}

.nav-badge {
  margin-left: -4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #E5A232;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
}
.nav-link .default-icon {
  display: block;
}

.nav-link .hover-icon {
  display: none;
}

.nav-link:hover .default-icon {
  display: none;
}

.nav-link:hover .hover-icon {
  display: block;
}

.nav-link.is-active .default-icon {
  display: none;
}
footer {
	margin-top: 0
}
.nav-link.is-active .hover-icon {
  display: block;
}

/* Restrict the global header nav::before effect from leaking into account partials rendered inside #app. */
/* nav.nav-content::before { */
/*   height: 46px; */
/* } */

@media (max-width: 1024px) {
  .sidebar {
    width: 222px;
    flex-basis: 222px;
    padding-inline: 16px;
  }
}

@media (max-width: 767px) {
  .sidebar-brand {
    width: max-content;
    max-width: none;
    overflow: visible;
  }

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    width: 272px;
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    overflow-y: auto;
  }

  .sidebar-scroll {
    padding-right: 6px;
    margin-right: -6px;
  }

  .sidebar.is-open {
    transform: translateX(0);
  }
}
