/* Ortak yan menü ölçüleri (Crm referans). Renkler ürünün kendi stilinden gelir; burada yalnızca boyut, ok ve logo bloğu var.
   Ürün stilleri tek sınıf veya kapsamlı (scoped) seçici kullandığı için seçiciler bilerek çift sınıflı. */

.asya-side.asya-side { gap: .15rem; }

/* Logo: soldan sağa yatay dikdörtgen. */
.asya-side .asya-side-brand.asya-side-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  width: auto;
  height: 56px;
  margin: 0 0 .9rem;
  padding: 6px 12px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, .18);
  text-decoration: none;
}
.asya-side .asya-side-brand.asya-side-brand img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

/* Bootstrap şablonlu menüler (Crm, Puantaj, Platform Admin): logo üst satırda. */
.asya-side-top.asya-side-top {
  height: 4.75rem;
  padding: .6rem .75rem;
  box-sizing: border-box;
}
.asya-side-top.asya-side-top > .container-fluid {
  padding: 0;
  gap: .5rem;
  flex-wrap: nowrap;
}
.asya-side-top .asya-side-brand.asya-side-brand {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}

/*
  Boş menü scrollbar: sabit calc(100vh - …) + dış kabuk overflow-y:auto
  1px taşma üretir. Kabuk flex + overflow:hidden; kaydırma yalnızca içerikte.
*/
.sidebar.sidebar,
.layout-shell .sidebar,
.klinik-sidebar.klinik-sidebar,
.filo-sidebar.filo-sidebar,
.muh-sidebar.muh-sidebar,
.ssh-sidebar.ssh-sidebar,
.spor-sidebar.spor-sidebar,
.eml-side.eml-side,
.eml-sidebar.eml-sidebar,
.isg-side.isg-side,
.Ihd-sidebar.Ihd-sidebar,
.ogren-sidebar.ogren-sidebar {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  height: auto;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: hidden;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .layout-shell .sidebar.sidebar {
    height: auto;
    min-height: 100dvh;
    max-height: none;
  }
}

@media (max-width: 767.98px) {
  .sidebar.sidebar,
  .layout-shell .sidebar,
  .klinik-sidebar.klinik-sidebar,
  .filo-sidebar.filo-sidebar,
  .muh-sidebar.muh-sidebar,
  .ssh-sidebar.ssh-sidebar,
  .spor-sidebar.spor-sidebar,
  .eml-side.eml-side,
  .eml-sidebar.eml-sidebar,
  .isg-side.isg-side,
  .Ihd-sidebar.Ihd-sidebar,
  .ogren-sidebar.ogren-sidebar {
    align-self: auto;
    height: 100dvh;
    min-height: 0;
    max-height: 100dvh;
    overflow-y: hidden;
  }
  .layout-shell.is-closed .sidebar {
    min-height: 0;
    height: 100dvh;
  }
}

.nav-scrollable.nav-scrollable,
.klinik-sidebar-nav.klinik-sidebar-nav,
.filo-sidebar-nav.filo-sidebar-nav,
.muh-nav-menu.muh-nav-menu,
.ssh-nav-menu.ssh-nav-menu,
.eml-sidebar-nav.eml-sidebar-nav,
.Ihd-sidebar-nav.Ihd-sidebar-nav {
  flex: 1 1 auto;
  min-height: 0;
  height: auto !important;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
  box-sizing: border-box;
}

/* Spor / İSG: menü doğrudan yan panelde — tek kaydırma katmanı */
.spor-sidebar.spor-sidebar.asya-side,
.isg-side.isg-side,
.eml-side.eml-side,
.ogren-sidebar.ogren-sidebar {
  overflow-y: auto;
  overflow-x: hidden;
}

.asya-side-top + .nav-scrollable.nav-scrollable {
  height: auto !important;
  max-height: none;
}

/* Grup başlığı: büyük, büyük harf değil, ok sağda. */
.asya-side .asya-side-group.asya-side-group {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 2.6rem;
  padding: .55rem .7rem;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}
.asya-side .asya-side-group.asya-side-group::-webkit-details-marker { display: none; }
.asya-side .asya-side-group.asya-side-group::before { content: none; }

/* Ana menü grup başlığı: kaynak metin (kelime başı büyük); ürün CSS uppercase ezmesin. */
.asya-side .muh-menu-group-header.asya-side-group,
.asya-side .ssh-menu-group-header.asya-side-group,
.asya-side .filo-menu-group-header.asya-side-group,
.asya-side .klinik-menu-group-header.asya-side-group,
.asya-side .eml-menu-group-header.asya-side-group,
.asya-side .Ihd-menu-group-header.asya-side-group,
.asya-side .menu-group-header.asya-side-group {
  text-transform: none;
  letter-spacing: .02em;
}

.asya-side-caret {
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  margin: 0 .2rem 0 .5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
  opacity: .85;
  order: 2;
}
.asya-side-caret.is-open,
details[open] > summary > .asya-side-caret { transform: rotate(45deg); }

/* <details>/<summary> ile kurulan menüler (Spor): ok CSS ile, ek işaretleme gerekmez. */
.asya-side details.asya-side-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.6rem;
  padding: .55rem .7rem;
  font-size: .86rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: none;
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}
.asya-side details.asya-side-details > summary::-webkit-details-marker { display: none; }
.asya-side details.asya-side-details > summary::before { content: none; display: none; }
.asya-side details.asya-side-details > summary::after {
  content: "";
  flex: 0 0 auto;
  width: .5rem;
  height: .5rem;
  margin: 0 .2rem 0 .5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s ease;
  opacity: .85;
}
.asya-side details.asya-side-details[open] > summary::after { transform: rotate(45deg); }

/* Menü bağlantısı: dokunmaya uygun yükseklik. */
.asya-side details.asya-side-details > a,
.asya-side .asya-side-link.asya-side-link {
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  padding: .55rem .85rem;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.25;
  border-radius: 8px;
  box-sizing: border-box;
}
