[data-menu-icon] {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-align: start;
}

[data-menu-icon]::before,
.nav .nav-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(145deg, #385878, #14283f);
  border: 1px solid #627e9b;
  color: #ffdb90;
  box-shadow: 0 2px 4px #0b192e33;
  font: 700 17px/1 system-ui, sans-serif;
}

[data-menu-icon]::before { content: attr(data-menu-icon) / ""; }

.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav-tabs .nav-btn {
  border: 1px solid #69829e;
  border-radius: 10px;
}

.nav-tabs .nav-btn.active::before,
.nav .nav-icon,
.nav .nav-icon:hover {
  transition: background-color .15s, box-shadow .15s;
}

.nav-tabs .nav-btn.active::before,
.nav :is(button,a)[aria-current=page] .nav-icon {
  background: linear-gradient(145deg, #fff1c5, #e3b966);
  color: #222c3b;
  border-color: #b78d48;
}

[data-menu-icon]:hover::before,
.nav :is(button,a):hover .nav-icon {
  box-shadow: 0 0 0 2px #d4ac5c96;
}

@media (max-width: 760px) {
  .nav-tabs .nav-btn,
  .nav-actions [data-menu-icon] {
    min-height: 42px;
  }
}

@media (max-width: 470px) {
  .nav .nav-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
    font-size: 15px;
  }
}

@media (min-width: 941px) {
  .nav-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    padding-block: 10px;
  }

  .nav-wrap .nav-tabs {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .nav-wrap .nav-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .dashboard-section {
    scroll-margin-top: 148px;
  }
}

@media (max-width: 760px) {
  .dashboard-section {
    scroll-margin-top: 238px;
  }
}
