
/* REKAP_HAMBURGER_MENU_V1 */
#rekapAppMenuBar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 34px 8px;
  position: relative;
  z-index: 1200;
}

#rekapAppMenuButton {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(28,18,38,.98), rgba(15,9,22,.98));
  color: #fff;
  box-shadow: 0 9px 28px rgba(0,0,0,.22);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .02em;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

#rekapAppMenuButton:hover {
  transform: translateY(-1px);
  border-color: rgba(212,47,244,.42);
  box-shadow: 0 12px 32px rgba(192,36,235,.13);
}

#rekapAppMenuButton:active {
  transform: scale(.98);
}

#rekapAppMenuButton .rm-lines {
  position: relative;
  width: 22px;
  height: 16px;
  display: inline-block;
}

#rekapAppMenuButton .rm-lines i {
  position: absolute;
  left: 0;
  width: 22px;
  height: 2.4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #fff, #d9b6ff);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), top .28s ease, opacity .18s ease;
}

#rekapAppMenuButton .rm-lines i:nth-child(1) { top: 0; }
#rekapAppMenuButton .rm-lines i:nth-child(2) { top: 6.7px; }
#rekapAppMenuButton .rm-lines i:nth-child(3) { top: 13.4px; }

body.rekap-menu-open #rekapAppMenuButton .rm-lines i:nth-child(1) {
  top: 6.7px;
  transform: rotate(45deg);
}
body.rekap-menu-open #rekapAppMenuButton .rm-lines i:nth-child(2) {
  opacity: 0;
  transform: translateX(-7px);
}
body.rekap-menu-open #rekapAppMenuButton .rm-lines i:nth-child(3) {
  top: 6.7px;
  transform: rotate(-45deg);
}

#rekapMenuBackdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: rgba(4,2,8,.64);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

#rekapMenuDrawer {
  position: fixed;
  z-index: 2147483001;
  inset: 0 auto 0 0;
  width: min(330px, 88vw);
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 24% 2%, rgba(174,49,234,.16), transparent 22%),
    linear-gradient(180deg, #100817 0%, #09050e 100%);
  border-right: 1px solid rgba(255,255,255,.09);
  box-shadow: 28px 0 80px rgba(0,0,0,.50);
  transform: translateX(-102%);
  transition: transform .34s cubic-bezier(.2,.83,.28,1);
  overflow: hidden;
}

body.rekap-menu-open #rekapMenuBackdrop {
  opacity: 1;
  visibility: visible;
}

body.rekap-menu-open #rekapMenuDrawer {
  transform: translateX(0);
}

body.rekap-menu-open {
  overflow: hidden;
}

#rekapMenuDrawer .rm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 18px 15px;
  border-bottom: 1px solid rgba(255,255,255,.065);
}

#rekapMenuDrawer .rm-brand {
  min-width: 0;
}

#rekapMenuDrawer .rm-brand b {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.15;
}

#rekapMenuDrawer .rm-brand span {
  display: block;
  margin-top: 4px;
  color: #a997b5;
  font-size: 9px;
}

#rekapMenuDrawer .rm-close {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 11px;
  background: rgba(255,255,255,.035);
  color: #fff;
  font-size: 21px;
  cursor: pointer;
}

#rekapMenuDrawer .rm-section-title {
  padding: 14px 17px 7px;
  color: #776783;
  font-size: 8px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

#rekapMenuList {
  flex: 1;
  overflow-y: auto;
  padding: 5px 11px 20px;
  overscroll-behavior: contain;
}

#rekapMenuList::-webkit-scrollbar { width: 6px; }
#rekapMenuList::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.11);
  border-radius: 999px;
}

#rekapMenuList .rm-item {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 20px;
  align-items: center;
  gap: 9px;
  min-height: 52px;
  margin: 5px 0;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: #ddd4e5;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

#rekapMenuList .rm-item:hover {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.06);
  transform: translateX(2px);
}

#rekapMenuList .rm-item.active {
  background: linear-gradient(90deg, rgba(208,33,241,.18), rgba(140,59,240,.08));
  border-color: rgba(210,51,242,.28);
  color: #fff;
}

#rekapMenuList .rm-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.045);
  border: 1px solid rgba(255,255,255,.055);
  font-size: 16px;
}

#rekapMenuList .rm-copy {
  min-width: 0;
}

#rekapMenuList .rm-copy b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
}

#rekapMenuList .rm-copy small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #8f7f9b;
  font-size: 8px;
}

#rekapMenuList .rm-arrow {
  color: #765f84;
  font-size: 16px;
}

#rekapMenuDrawer .rm-footer {
  padding: 12px 15px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255,255,255,.06);
  color: #75667f;
  font-size: 8px;
  text-align: center;
}

/* Original native nav stays in DOM so all existing click handlers still work.
   It is only moved visually off-screen. */
.rekap-native-nav-hidden {
  position: absolute !important;
  left: -10000px !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  max-width: 1px !important;
  max-height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

@media (max-width: 700px) {
  #rekapAppMenuBar {
    padding: 8px 13px 6px;
  }

  #rekapAppMenuButton {
    min-height: 39px;
    padding: 8px 12px;
    border-radius: 12px;
  }

  #rekapMenuDrawer {
    width: min(315px, 90vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  #rekapMenuDrawer,
  #rekapMenuBackdrop,
  #rekapAppMenuButton,
  #rekapAppMenuButton .rm-lines i,
  #rekapMenuList .rm-item {
    transition-duration: .01ms !important;
  }
}

/* REKAP_EXCLUSIVE_PAGE_ROUTER_V1_5 */

/* Small CSS backstop only. DOM router handles the actual page isolation. */
body[data-rekap-active-menu]:not([data-rekap-active-menu="dashboard"]) #dynamic-task-dashboard {
  display: none !important;
}

body[data-rekap-active-menu]:not([data-rekap-active-menu="trabar"]) #trabar-v1-page {
  display: none !important;
}

body[data-rekap-active-menu="tugas"] #trabar-v1-page,
body[data-rekap-active-menu="tugas"] #dynamic-task-dashboard {
  display: none !important;
}
