.app-shell {
  min-height: 100vh;
}

.erp-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
  background: #f4efe7;
}

.erp-layout--topnav {
  gap: 0;
}

.erp-shell-header {
  position: sticky;
  top: 0;
  z-index: 5000;
  isolation: isolate;
  border-bottom: 1px solid rgba(66, 88, 103, 0.18);
  background: linear-gradient(135deg, rgba(66, 88, 103, 0.99), rgba(55, 75, 89, 0.99));
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 36px rgba(66, 88, 103, 0.13);
}

.erp-menu-control {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.erp-menu-bar {
  position: relative;
  z-index: 5002;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 7px 22px;
}

.erp-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.erp-brand--top {
  min-width: 0;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin: 0;
  z-index: 2;
}

.erp-brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 620;
}

.erp-brand__title {
  display: block;
  color: #ffffff;
  font-size: 18px;
  font-weight: 620;
  line-height: 1;
}

.erp-brand__version {
  display: block;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 11.5px;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.erp-route-meta {
  display: none;
}

.erp-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  z-index: 2;
}

.erp-menu-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
  z-index: 3;
}

.erp-menu-toggle:hover,
.erp-menu-toggle.is-open,
.erp-menu-control:checked ~ .erp-menu-bar .erp-menu-toggle {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.30);
  transform: translate(-50%, calc(-50% - 1px));
}

.erp-menu-toggle__icon {
  display: grid;
  gap: 3px;
}

.erp-menu-toggle__icon i {
  display: block;
  width: 13px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.erp-menu-toggle.is-open .erp-menu-toggle__icon i:nth-child(1),
.erp-menu-control:checked ~ .erp-menu-bar .erp-menu-toggle__icon i:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.erp-menu-toggle.is-open .erp-menu-toggle__icon i:nth-child(2),
.erp-menu-control:checked ~ .erp-menu-bar .erp-menu-toggle__icon i:nth-child(2) {
  opacity: 0;
}

.erp-menu-toggle.is-open .erp-menu-toggle__icon i:nth-child(3),
.erp-menu-control:checked ~ .erp-menu-bar .erp-menu-toggle__icon i:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

.erp-nav {
  display: flex;
  gap: 22px;
}

.erp-nav--top {
  position: relative;
  z-index: 5001;
  max-height: 0;
  overflow: hidden;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  opacity: 0;
  padding: 0 22px;
  transform: translateY(-10px) scale(0.985);
  transform-origin: top center;
  transition: max-height 0.36s ease, opacity 0.25s ease, transform 0.25s ease, padding 0.25s ease;
}

.erp-nav--top.is-open,
.erp-menu-control:checked ~ .erp-nav--top {
  max-height: 520px;
  opacity: 1;
  padding: 12px 22px 22px;
  transform: translateY(0) scale(1);
}

.erp-nav__button {
  min-width: 118px;
  min-height: 104px;
  border: 0 !important;
  border-radius: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 10px 8px;
  background: transparent !important;
  color: #ffffff;
  text-align: center;
  font: inherit;
  font-size: 13px;
  font-weight: 540;
  line-height: 1.15;
  opacity: 1;
  box-shadow: none !important;
  outline: 0;
  transition: color 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

.erp-nav__button:hover,
.erp-nav__button.is-active {
  border: 0 !important;
  background: transparent !important;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: none !important;
}

.erp-nav__icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1 !important;
}

.erp-nav__icon-img {
  display: block !important;
  width: 58px !important;
  height: 58px !important;
  min-width: 58px !important;
  min-height: 58px !important;
  object-fit: contain !important;
  background: transparent !important;
  border: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.erp-nav__label {
  display: block;
  max-width: 118px;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.16);
}

.erp-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.erp-content {
  padding: 28px;
}

.erp-userbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.erp-userbar__info {
  display: grid;
  gap: 1px;
  text-align: right;
}

.erp-userbar__info strong {
  color: #ffffff;
  font-size: 13px;
  font-weight: 580;
}

.erp-userbar__info span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.erp-userbar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 620;
}
