/* =========================================================
   Rescue-Net Navigation Engine v2
   Centralized operational navigation
   ========================================================= */

.rn-nav-v2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
}

.rn-nav-v2-group {
  margin: 0;
  padding: 0;
  border: 0;
}

/* Top group: function switcher for a merged posko (logistik+shelter+dapur) */
.rn-nav-v2-group[data-rn-group="posko-fn"] {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line, rgba(0, 0, 0, .12));
}

.rn-nav-v2-group[data-rn-group="posko-fn"] .rn-nav-v2-summary {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.rn-nav-v2-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border-radius: 9px;
  color: inherit;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
  user-select: none;
}

.rn-nav-v2-summary::-webkit-details-marker {
  display: none;
}

.rn-nav-v2-summary:hover {
  background: linear-gradient(90deg, rgba(244, 167, 134, .30), rgba(255, 255, 255, .55));
}

.rn-nav-v2-chevron {
  display: inline-block;
  transition: transform 160ms ease;
}

.rn-nav-v2-group[open] .rn-nav-v2-chevron {
  transform: rotate(180deg);
}

.rn-nav-v2-children {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 3px 0 8px;
  padding-left: 10px;
}

.rn-nav-v2-modules {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rn-nav-v2-link {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
}

.rn-nav-v2-icon {
  display: inline-flex;
  flex: none;
  width: 17px;
  height: 17px;
  margin-right: 10px;
  opacity: .8;
}

.rn-nav-v2-icon svg,
.rn-nav-v2-icon .rn-ic {
  width: 17px;
  height: 17px;
}

.rn-nav-v2-link.active .rn-nav-v2-icon,
.rn-nav-v2-link[aria-current="page"] .rn-nav-v2-icon {
  opacity: 1;
}

.rn-nav-v2-label {
  min-width: 0;
}

.rn-nav-v2-child {
  padding-left: 20px;
  font-size: 0.94em;
}

.rn-nav-v2-link:hover {
  background: linear-gradient(90deg, rgba(244, 167, 134, .30), rgba(255, 255, 255, .55));
}

.rn-nav-v2-link.active,
.rn-nav-v2-link[aria-current="page"] {
  background: linear-gradient(90deg, rgba(244, 167, 134, .30), rgba(255, 255, 255, .55));
  color: #2d211b;
  font-weight: 700;
}

@media (max-width: 900px) {
  .rn-nav-v2-summary,
  .rn-nav-v2-link {
    min-height: 44px;
  }
}
