/* Uygulama kabuğu (Seragro portalı deseni): solda koyu yeşil dikey menü, üstte yalnız Ctrl+K arama + kullanıcı.
   Menü yetkiye göre süzülür (MenuServisi); telefonda (≤ 860 px) hamburger ile açılır. */
:root {
    --orman: #163A24; --orman-hover: #21502F; --orman-cizgi: #2D5A3B; --orman-metin: #DCE9DF; --orman-soluk: #8FB09A; --orman-soluk2: #B5CBBB;
    --menu-genislik: 264px; --kabuk-zemin: #F7F9F7;
}
:root[data-tema="koyu"] { --kabuk-zemin: #0F1712; }
@media (prefers-color-scheme: dark) { :root[data-tema="sistem"] { --kabuk-zemin: #0F1712; } }

body.kabuklu { background: var(--kabuk-zemin); }
.kabuk { display: flex; min-height: 100vh; background: linear-gradient(to right, var(--orman) var(--menu-genislik), var(--kabuk-zemin) 0); }
.yan { flex: 0 0 var(--menu-genislik); width: var(--menu-genislik); background: var(--orman); color: var(--orman-metin);
       position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px 16px; display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: var(--orman-cizgi) transparent; }
.yan__ust { display: flex; align-items: center; gap: 8px; padding: 0 4px 18px; }
.yan-logo { display: inline-flex; text-decoration: none; }
.logo-kutu { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; padding: 6px 12px; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.logo-resim { display: block; width: 104px; height: auto; }
.yan__dugme { display: none; }
.menu-ac { display: none; }
.yan__menu { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.menu-ara { display: flex; align-items: center; gap: 8px; margin: 0 4px 10px; padding: 0 10px; height: 40px; border: 1px solid var(--orman-cizgi); border-radius: 10px; color: var(--orman-soluk2); }
.menu-ara:focus-within { border-color: var(--orman-soluk2); }
.menu-ara__girdi { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font: inherit; font-size: 14px; padding: 0; }
.menu-ara__girdi::placeholder { color: var(--orman-soluk); }
.menu-ara__bos { margin: 4px 12px; font-size: 13px; color: var(--orman-soluk2); }
.nv { display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 8px 12px; border-radius: 10px; color: var(--orman-metin);
      text-decoration: none; font-size: 14.5px; font-weight: 500; cursor: pointer; list-style: none; }
.nv::-webkit-details-marker { display: none; }
.nv:hover { background: var(--orman-hover); color: #fff; }
.nv:focus-visible { outline: 3px solid #7FB0FF; outline-offset: 1px; }
.nv--aktif, .nv--aktif:hover { background: #2E6B3A; color: #fff; }
.nv--yarim { color: #fff; }
.nv__ad { flex: 1; min-width: 0; }
.nv__sayac { background: #F0B400; color: var(--orman); font-size: 12px; font-weight: 700; border-radius: 10px; padding: 1px 8px; }
.nv--pasif { color: var(--orman-soluk); cursor: default; }
.nv--pasif:hover { background: transparent; color: var(--orman-soluk); }
.nv__yakinda { font-size: 11px; border: 1px solid var(--orman-cizgi); border-radius: 999px; padding: 0 6px; }
.nv .ikon { flex: 0 0 auto; }
.nv--bolum { font-size: 11.5px; letter-spacing: .02em; color: var(--orman-soluk); padding: 14px 12px 4px; min-height: 0; font-weight: 600; text-transform: none; }
.nv--bolum:hover { background: transparent; color: var(--orman-soluk2); }
details.nv-bolum > summary .ikon, details.nv-grup > summary .ikon:last-child { transition: transform .15s; margin-left: auto; }
details.nv-bolum:not([open]) > summary .ikon { transform: rotate(-90deg); }
details.nv-grup[open] > summary .ikon:last-child { transform: rotate(180deg); }
.nv-bolum__ic, .nv-alt { display: flex; flex-direction: column; gap: 2px; }
.nv-alt .nv { padding-left: 44px; font-size: 14px; min-height: 38px; }
.nv-bolum--alt { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--orman-cizgi); }

.govde { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kabuklu .ustbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 10px 24px; padding-top: max(10px, env(safe-area-inset-top));
    background: color-mix(in srgb, var(--kabuk-zemin) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--cizgi, #e3ebe4); }
.ust-ara { display: flex; align-items: center; gap: 10px; flex: 0 1 520px; min-height: 44px; padding: 0 14px; border: 1px solid var(--cizgi, #d3dbd3); border-radius: 12px;
    background: var(--beyaz, #fff); color: var(--gri, #5d6b60); font: inherit; font-size: 15px; cursor: pointer; text-align: left; }
.ust-ara:hover { border-color: #2E6B3A; }
.ust-ara__yazi { flex: 1; }
.ust-ara kbd { font: 12px/1 inherit; border: 1px solid var(--cizgi, #d3dbd3); border-radius: 6px; padding: 4px 6px; color: var(--gri, #5d6b60); }
.ust-bosluk { flex: 1; }
.ust-ikon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--cizgi, #d3dbd3); background: var(--beyaz, #fff); color: #2E6B3A; cursor: pointer; }
.kabuklu .dil-secici { order: 0; }
.kabuklu .dil-secici button { min-height: 42px; }
.kisi { position: relative; }
.kisi > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 44px; padding: 0 8px 0 4px; border-radius: 12px; }
.kisi > summary::-webkit-details-marker { display: none; }
.kisi > summary:hover { background: var(--acik, #eef5ef); }
.kisi__harf { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #2E6B3A; color: #fff; font-weight: 700; }
.kisi__ad { font-weight: 600; max-width: 14rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kisi__menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; display: flex; flex-direction: column; padding: 6px; background: var(--beyaz, #fff);
    border: 1px solid var(--cizgi, #e3ebe4); border-radius: 14px; box-shadow: 0 12px 40px rgba(22,58,36,.16); z-index: 30; }
.kisi__menu a, .kisi__menu .baglanti, .kisi__bilgi { padding: 10px 12px; border-radius: 8px; text-decoration: none; color: var(--metin, #1f2a22); text-align: left; display: block; }
.kisi__menu a:hover, .kisi__menu .baglanti:hover { background: var(--acik, #eef5ef); }
.kisi__bilgi { font-weight: 600; border-bottom: 1px solid var(--cizgi, #e3ebe4); margin-bottom: 4px; }
.kisi__bilgi small { display: block; color: var(--soluk, #8a968c); font-weight: 400; }
.kisi__menu form { margin: 0; }
.kabuklu .icerik { max-width: 1320px; padding: 24px; }
.kabuklu .altbilgi { margin-top: auto; }
.ustbar--sade .marka { margin-right: auto; }
.ustbar--sade .logo-resim { width: 92px; }
:root[data-tema="koyu"] .ust-ara, :root[data-tema="koyu"] .ust-ikon, :root[data-tema="koyu"] .kisi__menu { background: #17221B; border-color: #2B3A30; color: #E4ECE6; }
@media (prefers-color-scheme: dark) { :root[data-tema="sistem"] .ust-ara, :root[data-tema="sistem"] .ust-ikon, :root[data-tema="sistem"] .kisi__menu { background: #17221B; border-color: #2B3A30; color: #E4ECE6; } }

@media (max-width: 860px) {
    .kabuk { display: block; background: var(--kabuk-zemin); }
    .yan { position: sticky; top: 0; z-index: 20; width: auto; height: auto; max-height: 100vh; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
    .yan__ust { justify-content: space-between; padding: 0; }
    .logo-resim { width: 88px; }
    .yan__dugme { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; color: #fff; cursor: pointer; border: 1px solid var(--orman-cizgi); }
    .yan__menu { display: none; padding: 10px 0 8px; max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
    .menu-ac:checked ~ .yan__menu { display: flex; }
    .menu-ac:checked ~ .yan__ust .yan__dugme { background: var(--orman-hover); }
    .nv { min-height: 48px; }
    .menu-ara { height: 48px; }
    .nv-bolum--alt { margin-top: 8px; }
    .kabuklu .ustbar { padding: 8px 12px; gap: 8px; top: 64px; }
    .ust-ara { flex: 1 1 auto; }
    .ust-ara kbd, .kisi__ad { display: none; }
    .kabuklu .icerik { padding: 16px 12px calc(24px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
    .ust-ara__yazi { display: none; }
    .ust-ara { flex: 0 0 48px; justify-content: center; padding: 0; }
    .ust-bosluk { display: block; }
}
.giris-logo { text-align: center; margin: 0 0 1rem; } .giris-logo img { width: 180px; height: auto; }
