/* Betitor marka renkleri (19 Ekim 2026): sari #f7f80f, gri #1d1f2b / #181a24. */
/* Portal YAN MENU (soldan, acilir gruplu). Genis ekran: sabit sol serit (232px, daraltilinca 60px). Dar ekran (<900px): ust ince cubuk + hamburger ile acilan cekmece. */
:root { --pn-w: 232px; }
#portal-nav { position: fixed; top: 0; left: 0; bottom: 0; width: var(--pn-w); z-index: 2147483000; display: flex; flex-direction: column;
  background: #181a24; color: #f2f3f8; font: 14px/1.25 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; border-right: 1px solid #363a49; box-sizing: border-box; }
#portal-nav a { color: inherit; text-decoration: none; }
#portal-nav .pn-head { display: flex; align-items: center; gap: 8px; padding: 12px 10px 10px 14px; min-height: 52px; box-sizing: border-box; border-bottom: 1px solid #2b2f3b; }
#portal-nav .pn-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; flex: 1; min-width: 0; }
#portal-nav .pn-logo { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #f7f80f; color: #1d1f2b; font-weight: 800; flex: none; }
#portal-nav .pn-collapse { background: transparent; color: #989eb4; border: 1px solid #363a49; border-radius: 8px; width: 28px; height: 28px; cursor: pointer; font: inherit; line-height: 1; flex: none; }
#portal-nav .pn-collapse:hover { background: #2b2f3b; color: #fff; }
#portal-nav .pn-body { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 10px 8px; scrollbar-width: thin; scrollbar-color: #363a49 transparent; }
#portal-nav .pn-item, #portal-nav .pn-gbtn { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; color: #b1b6c6; background: transparent; border: 0; font: inherit; text-align: left; cursor: pointer; }
#portal-nav .pn-item .pn-lbl { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; } /* uzun etiket alt satira insin, kesilmesin */
#portal-nav .pn-item:hover, #portal-nav .pn-gbtn:hover { background: #2b2f3b; color: #fff; }
#portal-nav .pn-item.active { background: #f7f80f; color: #1d1f2b; font-weight: 650; }
#portal-nav .pn-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #2b2f3b; color: #989eb4; font-size: 11px; font-weight: 700; flex: none; }
#portal-nav .pn-item.active .pn-ic { background: rgba(29, 31, 43, .18); color: #1d1f2b; }
#portal-nav .pn-gbtn { margin-top: 10px; color: #989eb4; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 650; }
#portal-nav .pn-gbtn .pn-lbl { flex: 1; }
#portal-nav .pn-chev { transition: transform .15s ease; font-size: 16px; line-height: 1; }
#portal-nav .pn-group.open > .pn-gbtn .pn-chev { transform: rotate(90deg); }
#portal-nav .pn-glist { display: none; padding: 2px 0 2px 0; }
#portal-nav .pn-group.open > .pn-glist { display: block; }
#portal-nav .pn-sub { display: block; }
#portal-nav .pn-kids { margin: 2px 0 4px 21px; padding-left: 10px; border-left: 1px solid #363a49; }
#portal-nav .pn-kid { display: block; padding: 6px 10px; border-radius: 6px; color: #989eb4; font-size: 13px; white-space: nowrap; }
#portal-nav .pn-kid:hover { background: #2b2f3b; color: #fff; }
#portal-nav .pn-kid.active { color: #fff; background: rgba(247, 248, 15, .12); box-shadow: inset 2px 0 0 #f7f80f; font-weight: 600; }
#portal-nav .pn-foot { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-top: 1px solid #2b2f3b; }
#portal-nav .pn-user { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #989eb4; }
#portal-nav .pn-out { background: transparent; color: #f2f3f8; border: 1px solid #454a5c; border-radius: 8px; padding: 6px 10px; cursor: pointer; font: inherit; }
#portal-nav .pn-out:hover { background: #2b2f3b; }
#portal-nav a:focus-visible, #portal-nav button:focus-visible { outline: 2px solid #f7f80f; outline-offset: 1px; }

body.has-nav { padding-left: var(--pn-w); }
body.nav-anim.has-nav { transition: padding-left .18s ease; } /* animasyon yalniz "daralt" dugmesine basinca (sayfa acilisinda icerik kaymasin) */
body.nav-anim #portal-nav { transition: width .18s ease, transform .18s ease; }
/* modullerin kendi "Giris: ... Cikis" satiri artik menude */
body.has-nav header > .row.m0 { display: none; }

/* daraltilmis serit: yalniz simge/harf */
body.nav-collapsed { --pn-w: 60px; }
body.nav-collapsed #portal-nav .pn-lbl, body.nav-collapsed #portal-nav .pn-chev, body.nav-collapsed #portal-nav .pn-kids, body.nav-collapsed #portal-nav .pn-user { display: none; }
body.nav-collapsed #portal-nav .pn-head { padding: 12px 8px; flex-direction: column; min-height: 0; }
body.nav-collapsed #portal-nav .pn-item { padding: 8px; justify-content: center; }
body.nav-collapsed #portal-nav .pn-gbtn { justify-content: center; padding: 6px 0; margin-top: 6px; }
body.nav-collapsed #portal-nav .pn-gbtn::before { content: "···"; letter-spacing: 2px; }
body.nav-collapsed #portal-nav .pn-glist { display: block; }
body.nav-collapsed #portal-nav .pn-foot { justify-content: center; padding: 10px 4px; }
body.nav-collapsed #portal-nav .pn-out { padding: 6px; font-size: 0; }
body.nav-collapsed #portal-nav .pn-out::before { content: "⎋"; font-size: 15px; }

/* DAR EKRAN (<900px): sol menu yerine UST IKI KATMANLI sekme cubugu (ustte gruplar, altta secili grubun sayfalari; yatay kayar) */
#portal-mbar { display: none; }
@media (max-width: 899px) {
  :root { --pn-w: 0px; }
  #portal-nav, body.nav-collapsed #portal-nav { display: none; }
  body.has-nav, body.nav-collapsed.has-nav { padding-left: 0; padding-top: 96px; }
  #portal-mbar { display: block; position: fixed; top: 0; left: 0; right: 0; z-index: 2147483000; background: #181a24; color: #f2f3f8; border-bottom: 1px solid #363a49; font: 14px/1.25 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
  #portal-mbar a { color: inherit; text-decoration: none; }
  #portal-mbar .mb-row1 { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
  #portal-mbar .mb-logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #f7f80f; color: #1d1f2b; font-weight: 800; flex: none; }
  #portal-mbar .mb-groups { display: flex; gap: 4px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #portal-mbar .mb-groups::-webkit-scrollbar, #portal-mbar .mb-items::-webkit-scrollbar { display: none; }
  #portal-mbar .mb-tab { flex: none; white-space: nowrap; background: transparent; color: #989eb4; border: 1px solid transparent; border-radius: 10px; padding: 8px 12px; font: inherit; cursor: pointer; }
  #portal-mbar .mb-tab.on { background: #2b2f3b; color: #fff; border-color: #363a49; font-weight: 650; }
  #portal-mbar .mb-user { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid #454a5c; background: #2b2f3b; color: #f2f3f8; font: 700 13px system-ui, sans-serif; cursor: pointer; }
  #portal-mbar .mb-items { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; padding: 0 14px; border-top: 1px solid #2b2f3b; -webkit-overflow-scrolling: touch; }
  #portal-mbar .mb-items a { flex: none; white-space: nowrap; padding: 11px 0 9px; color: #989eb4; border-bottom: 2px solid transparent; }
  #portal-mbar .mb-items a.active { color: #fff; border-bottom-color: #f7f80f; font-weight: 650; }
  #portal-mbar .mb-pop { position: absolute; right: 10px; top: 50px; min-width: 170px; background: #242837; border: 1px solid #363a49; border-radius: 12px; padding: 10px; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
  #portal-mbar .mb-pop[hidden] { display: none; }
  #portal-mbar .mb-pop-user { color: #b1b6c6; margin-bottom: 8px; overflow-wrap: anywhere; }
  #portal-mbar .mb-pop-out { width: 100%; background: transparent; color: #f2f3f8; border: 1px solid #454a5c; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; }
  #portal-mbar a:focus-visible, #portal-mbar button:focus-visible { outline: 2px solid #f7f80f; outline-offset: 1px; }
}
/* TV modu / yazdirma: menu yok */
body.tv #portal-nav, body.tv #portal-mbar { display: none; } body.tv.has-nav { padding-left: 0; padding-top: 0; }
@media print { #portal-nav, #portal-mbar { display: none !important; } body.has-nav { padding: 0 !important; } }
@media (prefers-reduced-motion: reduce) { #portal-nav, body.has-nav { transition: none; } #portal-nav .pn-chev { transition: none; } }
/* YALNIZ portal ana sayfasi (body.portal-home): menu varken uygulamanin kendi basligi/sekmeleri gizli (menu zaten var). Modul sayfalari (Data yukleme, SMS paneli ...) kendi #app sekmelerini gosterir — 20 Ekim duzeltmesi */
body.has-nav.portal-home #app > header, body.has-nav.portal-home #app > nav { display: none; }
