/* Penyesuaian akhir tipografi dan box navigasi berdasarkan OysPanel. */
:root {
  --oys-nav-font: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --oys-nav-box-border: #e4e9f2;
  --oys-nav-box-radius: 12px;
  --oys-nav-box-shadow: 0 6px 18px rgba(39, 47, 77, .055);
}

.sidebar,
.topbar,
.sidebar button,
.sidebar a,
.topbar button,
.topbar select,
.topbar a {
  font-family: var(--oys-nav-font);
}

.sidebar {
  border-right: 1px solid var(--oys-nav-box-border);
  box-shadow: 8px 0 26px rgba(39, 47, 77, .045);
}

.sidebar-brand {
  border-bottom: 1px solid #edf0f6;
}

.sidebar-brand strong {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
}

.sidebar-brand small {
  margin-top: 3px;
  font-size: 9px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}

.nav-group-label {
  margin: 0 6px 8px;
  padding-inline: 5px;
  font-size: .70rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .075em;
}

.nav-link {
  min-height: 42px;
  margin: 2px 0;
  padding: 6px 9px;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--oys-nav-box-radius);
  font-size: .79rem;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -.01em;
}

/* Menu aktif tetap memakai warna lembut tanpa garis indikator di tepi kiri. */
.nav-link::before,
.nav-link.active::before,
.nav-link:hover::before,
.nav-link::after,
.nav-link.active::after,
.nav-link:hover::after {
  display: none !important;
  content: none !important;
}

.nav-link > .nav-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-link > .icon {
  width: 30px;
  min-width: 30px;
  height: 30px;
  flex-basis: 30px;
  padding: 7px;
  border: 1px solid var(--nav-border);
  border-radius: 10px;
  box-shadow: 0 3px 10px color-mix(in srgb, var(--nav-tone) 20%, transparent), inset 0 1px 0 rgba(255,255,255,.82);
}

.nav-link:hover {
  border-color: color-mix(in srgb, var(--nav-tone) 14%, var(--oys-nav-box-border));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--nav-tone) 8%, transparent), inset 0 1px 0 rgba(255,255,255,.9);
}

.nav-link.active {
  border-color: color-mix(in srgb, var(--nav-tone) 18%, var(--oys-nav-box-border));
  border-radius: var(--oys-nav-box-radius);
  box-shadow: 0 7px 19px color-mix(in srgb, var(--nav-tone) 11%, transparent), inset 0 1px 0 rgba(255,255,255,.96);
  font-weight: 730;
}

.nav-link.active > .icon {
  border-color: transparent;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--nav-tone) 24%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
}

.nav-link .badge {
  min-width: 25px;
  min-height: 21px;
  justify-content: center;
  padding: 0 7px;
  border: 1px solid #e1e7ef;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.sidebar-footer {
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 16px;
}

.sidebar-footer-copy strong {
  font-size: 9px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .01em;
}

.sidebar-footer-copy small {
  font-size: 8px;
  font-weight: 650;
  line-height: 1.2;
}

.topbar {
  border-bottom: 1px solid var(--oys-nav-box-border);
  box-shadow: 0 7px 22px rgba(39,47,77,.04);
}

.topbar .menu-btn,
.topbar .branch-select,
.topbar .module,
.account-btn {
  border: 1px solid var(--oys-nav-box-border);
  border-radius: var(--oys-nav-box-radius);
  box-shadow: var(--oys-nav-box-shadow);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.topbar .module b,
.account-name {
  font-weight: 750;
}

.account-menu {
  border: 1px solid var(--oys-nav-box-border);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(39,47,77,.11);
}

.account-menu-header p { font-weight: 750; }
.account-menu-header small { font-weight: 500; }
.account-role { font-weight: 750; }
.account-menu-actions .btn { font-weight: 650; }

@media (max-width:960px) {
  .nav-link { font-size: .76rem; }
}

@media (max-width:760px) {
  .nav-link { font-size: .79rem; }
}
