html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body {
  background: #f6f7f9;
}

.yu-app {
  display: flex;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.yu-sidebar {
  position: relative;
  z-index: 30;
  display: flex;
  flex: 0 0 238px;
  flex-direction: column;
  width: 238px;
  min-width: 0;
  color: #4c5a68;
  background: #fff;
  border-right: 1px solid #dde3e9;
  box-shadow: 8px 0 22px #111a2605;
}

.yu-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 14px 18px;
  border-bottom: 1px solid #edf0f3;
}

.yu-brand-mark {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #1f5ae0, #4b7cf0);
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 8px 18px #1f5ae033;
}

.yu-brand-copy {
  min-width: 0;
}

.yu-brand-copy strong {
  display: block;
  color: #111a26;
  font-size: 13px;
  line-height: 18px;
  white-space: normal;
}

.yu-brand-copy span {
  display: block;
  margin-top: 2px;
  color: #7e8c99;
  font-size: 13px;
  line-height: 19px;
}

.yu-side-label {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 8px;
  color: #7e8c99;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.yu-nav-scroll {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 10px 12px;
  overflow-y: auto;
  scrollbar-color: #cdd6df transparent;
  scrollbar-width: thin;
}

.yu-nav-group {
  margin: 10px 0 14px;
}

.yu-nav-group h2 {
  margin: 0 10px 6px;
  color: #9aa6b1;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.yu-nav-link {
  position: relative;
  display: block;
  width: 100%;
  min-height: 34px;
  margin: 2px 0;
  padding: 7px 11px 7px 16px;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  color: #4c5a68;
  background: transparent;
  font-size: 14px;
  line-height: 20px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}

.yu-nav-link:hover {
  color: #1f5ae0;
  background: #f2f5fe;
}

.yu-nav-link.is-current {
  color: #1f5ae0;
  background: #ebf0fe;
  font-weight: 700;
}

.yu-nav-link.is-current::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 6px;
  width: 3px;
  border-radius: 2px;
  background: #1f5ae0;
  content: "";
}

.yu-side-footer {
  flex: 0 0 auto;
  padding: 12px 14px 14px;
  border-top: 1px solid #edf0f3;
}

.yu-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.yu-avatar {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #1f5ae0;
  background: #ebf0fe;
  font-size: 13px;
  font-weight: 700;
}

.yu-user-copy {
  min-width: 0;
}

.yu-user-copy strong,
.yu-user-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yu-user-copy strong {
  color: #111a26;
  font-size: 13px;
}

.yu-user-copy span {
  color: #7e8c99;
  font-size: 12px;
}

.yu-logout {
  width: 100%;
  min-height: 32px;
  border: 1px solid #dde3e9;
  border-radius: 7px;
  color: #4c5a68;
  background: #fff;
  font-size: 13px;
}

.yu-logout:hover {
  color: #c94141;
  border-color: #c9414155;
  background: #fff7f7;
}

.yu-main {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  background: #f6f7f9;
}

.yu-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f6f7f9;
}

.yu-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  color: #4c5a68;
  background: #f6f7f9;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.yu-loading.is-visible {
  opacity: 1;
}

.yu-sidebar-toggle {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 60;
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid #dde3e9;
  border-radius: 9px;
  color: #1f5ae0;
  background: #fff;
  box-shadow: 0 6px 18px #111a2614;
}

.yu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  background: #111a2644;
}

@media (max-width: 1440px) {
  .yu-sidebar {
    flex-basis: 216px;
    width: 216px;
  }

  .yu-brand-copy strong {
    font-size: 13px;
  }
}

@media (max-width: 960px) {
  .yu-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 236px;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  body.sidebar-open .yu-sidebar {
    transform: translateX(0);
  }

  body.sidebar-open .yu-backdrop {
    display: block;
  }

  .yu-sidebar-toggle {
    display: block;
  }
}
