/* Master/module navigation treatment approved for BOS Web.
   Only first-level menu modules are emphasized; child folders/actions remain intentionally quieter. */

.main-menu-node {
  margin: 7px 0 5px;
}

.main-menu-node > .menu-row {
  position: relative;
}

.main-menu-node > .menu-row::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #43a8ff;
  opacity: .9;
  pointer-events: none;
}

.main-menu-node > .menu-row > .main-menu-link {
  min-height: 40px;
  padding: 8px 9px 8px 10px;
  border: 1px solid rgba(78, 166, 255, .54);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(65, 145, 230, .20), rgba(255, 255, 255, .075));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 2px 8px rgba(0, 0, 0, .08);
  color: #fff;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: .005em;
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.main-menu-node > .menu-row > .main-menu-link:hover {
  background: linear-gradient(90deg, rgba(65, 155, 245, .30), rgba(255, 255, 255, .11));
  border-color: rgba(104, 188, 255, .82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 3px 10px rgba(0, 0, 0, .12);
}

.main-menu-node.contains-active > .menu-row > .main-menu-link,
.main-menu-node > .menu-row > .main-menu-link.active-menu-item,
.main-menu-node > .menu-row > .main-menu-link[aria-expanded="true"] {
  background: linear-gradient(90deg, rgba(49, 145, 235, .34), rgba(255, 255, 255, .12));
  border-color: rgba(110, 194, 255, .92);
}

.main-menu-node > .menu-row > .main-menu-link .main-menu-icon {
  width: 25px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 25px;
  border: 1px solid rgba(125, 202, 255, .45);
  border-radius: 7px;
  background: rgba(44, 145, 230, .22);
  color: #dff3ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

.main-menu-node > .menu-row > .main-menu-link .main-menu-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.main-menu-node > .menu-row > .main-menu-link .menu-chevron {
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 18px;
  color: #d8efff;
  font-size: 18px;
  line-height: 1;
}

/* Child items deliberately stay understated so module hierarchy is obvious. */
.main-menu-node > .menu-children {
  margin-top: 3px;
  margin-left: 15px;
  padding: 2px 0 2px 7px;
  border-left-color: rgba(145, 202, 235, .19);
}

.main-menu-node > .menu-children .nav-link:not(.main-menu-link) {
  min-height: 32px;
  font-size: 12px;
  color: rgba(244, 251, 255, .88);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.main-menu-node > .menu-children .nav-link:not(.main-menu-link):hover,
.main-menu-node > .menu-children .nav-link.active-menu-item {
  background: rgba(255, 255, 255, .085);
}

/* Collapsed desktop sidebar: keep one clean outer module button and put the icon
   directly inside it. Do not draw a second little box around the icon. */
.sidebar-collapsed .main-menu-node {
  margin: 6px 0;
}

.sidebar-collapsed .main-menu-node > .menu-row::before {
  display: none;
}

.sidebar-collapsed .main-menu-node > .menu-row > .main-menu-link {
  min-height: 44px;
  width: 100%;
  padding: 7px;
  justify-content: center;
  border: 1px solid rgba(105, 193, 255, .46);
  border-radius: 8px;
  background: rgba(255, 255, 255, .055);
  box-shadow: none;
}

.sidebar-collapsed .main-menu-node > .menu-row > .main-menu-link:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(135, 211, 255, .76);
  box-shadow: none;
}

.sidebar-collapsed .main-menu-node.contains-active > .menu-row > .main-menu-link,
.sidebar-collapsed .main-menu-node > .menu-row > .main-menu-link.active-menu-item,
.sidebar-collapsed .main-menu-node > .menu-row > .main-menu-link[aria-expanded="true"] {
  background: rgba(67, 168, 255, .24);
  border-color: rgba(154, 220, 255, .92);
  box-shadow: inset 3px 0 0 #8bd6ff;
}

.sidebar-collapsed .main-menu-node > .menu-row > .main-menu-link .main-menu-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #eef9ff;
}

.sidebar-collapsed .main-menu-node > .menu-row > .main-menu-link .main-menu-icon svg {
  width: 19px;
  height: 19px;
}

.sidebar-collapsed .main-menu-node > .menu-row > .main-menu-link .menu-chevron {
  display: none !important;
}

@media (max-width: 800px) {
  .sidebar-collapsed .main-menu-node > .menu-row::before {
    display: block;
  }

  .sidebar-collapsed .main-menu-node > .menu-row > .main-menu-link {
    min-height: 40px;
    padding: 8px 9px 8px 10px;
    justify-content: flex-start;
    border: 1px solid rgba(78, 166, 255, .54);
    border-radius: 7px;
    background: linear-gradient(90deg, rgba(65, 145, 230, .20), rgba(255, 255, 255, .075));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035), 0 2px 8px rgba(0, 0, 0, .08);
  }

  .sidebar-collapsed .main-menu-node > .menu-row > .main-menu-link .main-menu-icon {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    border: 1px solid rgba(125, 202, 255, .45);
    border-radius: 7px;
    background: rgba(44, 145, 230, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  }

  .sidebar-collapsed .main-menu-node > .menu-row > .main-menu-link .main-menu-icon svg {
    width: 16px;
    height: 16px;
  }

  .sidebar-collapsed .main-menu-node > .menu-row > .main-menu-link .menu-chevron {
    display: inline-grid !important;
  }
}
