﻿/* ==========================================================================
   Stern teması: header, sol menü (aside), breadcrumb (ribbon), widget'lar ve footer
   Renkler logodan: lacivert #1C3053, kırmızı #E2051E.
   SmartAdmin'in davranışları (daraltılmış menü, gizli menü, sabit gezinme) korunur;
   burada yalnızca renk, zemin ve küçük görünüm ayarları değişir.
   ========================================================================== */

/* ---------- Tema değişkenleri ----------
   Varsayılan Stern renkleri. Header'daki Tema ayarları paneli (_TemaAyarlari) seçilen paleti tarayıcıda saklar ve
   bu değişkenleri <html> üzerinde ezer (_TemaOnYukle). */
:root {
    --tema-koyu: #1c3053; --tema-orta: #2b4f86; --tema-acik: #3a64a3; --tema-yumusak: #e9eef6;
    --tema-vurgu: #E2051E;
    --tema-menu-zemin: #111a2b; --tema-menu-1: #141f33; --tema-menu-2: #101929; --tema-menu-3: #0c1420; --tema-menu-alt: #1a2740;
    --tema-menu-yazi: #c3cde0; --tema-menu-ikon: #8fa3c4;
    --tema-kose: 10px;
}

/* ---------- Header ---------- */
#header { background: #fff; background-image: none; border-bottom: 1px solid #e3e8ef; }
.fixed-header #header { border-bottom: 1px solid #e3e8ef; box-shadow: 0 2px 12px rgba(12, 22, 40, .08); }

/* Logo alanı: orijinal logo (Content/img/logo.png) kendi renkleriyle, beyaz zeminde; üst çubuğun yüksekliğinde dikey ortalı,
   üstte ve altta ~10px boşluk. Genişlik sol menüyle aynı (220px). */
#header > #logo-group { display: flex; align-items: center; width: 220px; height: 48px; margin: 0; padding: 0 0 0 16px; }
#header > #logo-group > #logo { display: flex; align-items: center; width: auto; height: auto; margin: 0; }
#header > #logo-group > #logo a { display: flex; align-items: center; }
#header > #logo-group > #logo img { display: block; width: auto; height: 28px; }

/* Header simge düğmeleri (menü, çıkış, tam ekran, bildirim, online …): kutusuz, tek grup; üzerine gelince yumuşak zemin.
   Kenarlık şeffaf durur ki düğmelerin kendi durum renkleri (#abHeaderBtn.ab-var, .acik: zemin + kenarlık) görünsün.
   Seçici gücü bilerek düşük: o durum kuralları bunu ezebilsin. */
#header .btn-header a {
    border: 1px solid transparent; border-radius: 8px; background: transparent; background-image: none; color: #5b6878;
    box-shadow: none; transition: background-color .12s, border-color .12s, color .12s;
}
#header .btn-header a:hover, #header .btn-header a:focus { border-color: transparent; background: var(--tema-yumusak); color: var(--tema-koyu); box-shadow: none; }
#header .btn-header a:active { background: var(--tema-yumusak); background-image: none; border-color: transparent; color: var(--tema-orta); }
#header .btn-header a > i, #header #hide-menu i { color: inherit; }
#header .btn-header + .btn-header { margin-left: 2px; }
/* Arama / dil grubu ile simge grubu arasında ince ayraç */
#header .header-dropdown-list { margin-right: 8px; padding-right: 10px; box-shadow: inset -1px 0 0 #e3e8ef; height: 49px; }

/* Genel arama kutusu geniş ekranda üst çubuğun ortasında (logo alanından sonraki boşluğun ortası) ve daha geniş */
@media (min-width: 1500px) {
    #header .header-dropdown-list { position: static; }   /* arama kutusu üst çubuğa (#header) göre konumlansın */
    #header .header-dropdown-list > li.skp-tetik-li { position: absolute; top: 0; left: calc(220px + (100% - 220px) / 2); transform: translateX(-50%); margin-top: 9px; }
    #header .header-dropdown-list > li.skp-tetik-li .skp-tetik { width: 420px; height: 32px; }
    .minified #header .header-dropdown-list > li.skp-tetik-li, .hidden-menu #header .header-dropdown-list > li.skp-tetik-li { left: 50%; }
}

/* Dil seçimi ve açılır menüsü */
#header .header-dropdown-list > li > .dropdown-toggle { color: var(--tema-koyu); font-weight: 600; text-decoration: none; }
#header .header-dropdown-list > li > .dropdown-toggle:hover { color: var(--tema-orta); }
#header .header-dropdown-list .dropdown-menu { margin-top: 8px; padding: 6px; border: 1px solid #e3e8ef; border-radius: 10px; box-shadow: 0 10px 24px rgba(12, 22, 40, .14); }
#header .header-dropdown-list .dropdown-menu > li > a { padding: 7px 10px; border-radius: 7px; color: #24303d; }
#header .header-dropdown-list .dropdown-menu > li > a:hover, #header .header-dropdown-list .dropdown-menu > .active > a { background: var(--tema-yumusak); color: var(--tema-koyu); }

/* ---------- Sol menü ---------- */
#left-panel {
    /* Siyaha yakın lacivert (logodaki #1C3053'ün koyu tonları) */
    background: var(--tema-menu-zemin) linear-gradient(180deg, var(--tema-menu-1) 0%, var(--tema-menu-2) 55%, var(--tema-menu-3) 100%) !important;
    border-right: 0 !important;
    box-shadow: 2px 0 10px rgba(12, 22, 40, .18);
}

/* Dekor: Stern yıldız amblemi (silik), menünün arkasında */
#left-panel::after {
    /* Panel taşmayı kırpmaz (daraltılmış menünün açılır listeleri dışarı taşar); amblem panelin içinde kalmalı */
    content: ""; position: absolute; right: 10px; bottom: 60px; z-index: 0; width: 190px; height: 190px; pointer-events: none;
    background: url('../img/stern/yildiz-amblem.svg') no-repeat center / contain; opacity: .07; transform: rotate(-12deg);
}
.minified #left-panel::after, .hidden-menu #left-panel::after { display: none; }
#left-panel > nav, #left-panel > .login-info { position: relative; z-index: 1; }
#left-panel > .minifyme { z-index: 2; }

/* Kullanıcı bilgisi */
#left-panel .login-info {
    height: auto; min-height: 39px; border: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .08) !important;
    background: rgba(255, 255, 255, .04); box-shadow: none;
}
#left-panel .login-info > span { border-bottom: 0; }
#left-panel .login-info a { color: #dbe3f0; }
#left-panel .login-info a:hover { color: #fff; }
#left-panel .login-info img {
    width: 28px; height: 28px; object-fit: cover; border: 0; border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .55);
}

/* Menü bağlantıları */
#left-panel nav ul li a { color: var(--tema-menu-yazi); transition: background-color .12s, color .12s; }
#left-panel nav ul li a:hover, #left-panel nav ul li a:focus { color: #fff; background-color: rgba(255, 255, 255, .06); }
#left-panel nav ul li a:active { background: rgba(255, 255, 255, .1) !important; }
#left-panel nav > ul > li > a > i { color: var(--tema-menu-ikon); transition: color .12s; }
#left-panel nav > ul > li > a:hover > i,
#left-panel nav > ul > li.open > a > i,
#left-panel nav > ul > li.active > a > i { color: #fff; }
#left-panel nav ul b { color: var(--tema-menu-ikon); }
#left-panel nav ul li.open > a, #left-panel nav ul li.open > a b { color: #fff !important; }

/* Açık ve aktif üst menü: hafif zemin ve logodaki kırmızıyla sol çizgi */
#left-panel nav > ul > li.open > a { background-color: rgba(255, 255, 255, .05); }
#left-panel nav > ul > li.active > a { color: #fff !important; background-color: rgba(255, 255, 255, .1); }
/* Kırmızı çizgi yalnızca açık sayfanın bağlı olduğu tek grupta: grubu _Aside'daki script belirler (tema-aktif).
   Script çalışmazsa eski davranış: sunucunun "active" verdiği üst menü. */
#left-panel nav.tema-aktif-hazir > ul > li.tema-aktif > a,
#left-panel nav:not(.tema-aktif-hazir) > ul > li.active > a {
    color: #fff !important; background-color: rgba(255, 255, 255, .1); box-shadow: inset 3px 0 0 var(--tema-vurgu);
}
/* Açık sayfanın alt menüdeki linki */
#left-panel nav ul ul li.tema-aktif-link > a { color: #fff !important; font-weight: 600; }
#left-panel nav ul li.active > a::before { color: #f6f8fb; }
#left-panel nav > ul > li:last-child.open { border-bottom-color: rgba(255, 255, 255, .08); }

/* Alt menüler */
#left-panel nav ul ul { background: rgba(0, 0, 0, .28); }
#left-panel nav ul ul ul { background: transparent; }
#left-panel nav ul ul li > a:hover { background-color: rgba(255, 255, 255, .06); color: #fff; }
#left-panel nav ul ul ul li a { color: var(--tema-menu-yazi); }
#left-panel nav ul ul .active > a { color: #fff !important; font-weight: 600; }
#left-panel nav ul ul b { color: var(--tema-menu-ikon); }
#left-panel nav ul ul > li:hover b { color: #dbe3f0; }
/* Alt menü ağaç çizgileri */
#left-panel nav > ul > li > ul::before { border-left-color: rgba(255, 255, 255, .14); }
#left-panel nav > ul ul li::before { border-top-color: rgba(255, 255, 255, .14); }
#left-panel nav > ul > li:hover > ul::before,
#left-panel nav > ul > li:hover > ul > li::before { border-color: rgba(255, 255, 255, .3) !important; }

/* Menü kaydırma çubuğu */
#left-panel nav > ul { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; }
#left-panel nav > ul::-webkit-scrollbar { width: 8px; }
#left-panel nav > ul::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border-radius: 999px; }
#left-panel nav > ul::-webkit-scrollbar-track { background: transparent; }

/* Menüyü daraltma butonu */
#left-panel .minifyme { border: 0; background: rgba(255, 255, 255, .1); color: var(--tema-menu-yazi); transition: background-color .12s, width .12s; }
#left-panel .minifyme:hover { background: rgba(255, 255, 255, .2); color: #fff; }

/* Daraltılmış menü (minified): açılır başlık ve alt menüler de lacivert */
.minified #left-panel .login-info { border-bottom-color: rgba(255, 255, 255, .08) !important; }
.minified #left-panel nav > ul > li { border-top-color: rgba(255, 255, 255, .06); border-bottom-color: rgba(0, 0, 0, .18); }
.minified #left-panel nav > ul > li > a > .menu-item-parent {
    background-color: var(--tema-menu-1); color: #fff; border-radius: 0 8px 8px 0;
    box-shadow: 4px 4px 14px rgba(12, 22, 40, .3);
    transform: translateY(var(--tema-flyout-kaydir, 0px));
}
.minified #left-panel nav > ul > li > ul {
    border: 1px solid rgba(255, 255, 255, .1); border-radius: 0 0 8px 8px;
    max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); overflow-x: hidden; overflow-y: auto;
    overscroll-behavior: contain; transform: translateY(var(--tema-flyout-kaydir, 0px));
    box-shadow: 4px 6px 16px rgba(12, 22, 40, .3);
    scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .28) transparent;
}
/* Başlık (top:-3px, 38px + 2px kenarlık) ile liste üst üste binmesin: liste başlığın tam altından başlar.
   SmartAdmin listeyi menü satırının altına koyar; satır yüksekliği 38px'ten az olunca liste başlığı örtüyordu. */
.minified #left-panel nav > ul > li > a > .menu-item-parent { top: -3px; height: 38px; line-height: 38px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Açılır liste opak (genel alt menü zemini rgba(0,0,0,.28) burada sayfayı gösteriyordu); boş alt boşluk bırakılmaz */
.minified #left-panel nav > ul > li > ul { top: 37px; margin-top: 0; min-height: 0; padding: 4px 0; background: var(--tema-menu-1); }
.minified #left-panel nav > ul > li:has(> ul) > a > .menu-item-parent { border-radius: 0 8px 0 0; }
.minified #left-panel nav > ul > li > ul::-webkit-scrollbar { width: 7px; }
.minified #left-panel nav > ul > li > ul::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .25); border-radius: 999px; }
.minified #left-panel nav > ul > li > ul > li { background-color: var(--tema-menu-1); }
.minified #left-panel nav > ul > li > ul > li > ul > li { background-color: var(--tema-menu-alt); }

/* ---------- Breadcrumb (ribbon) ---------- */
#ribbon {
    background: #fff; border-bottom: 1px solid #e3e8ef;
    box-shadow: 0 2px 8px rgba(28, 48, 83, .06);
}
/* Öğeler yan yana: SmartAdmin'in "#ribbon .breadcrumb { display: inline-block }" kuralı Bootstrap 5'in flex düzenini eziyordu,
   <li> öğeleri blok olup alt alta diziliyordu. inline-flex: satırdaki düğmeler (btn-ribbon) aynı satırda kalır. */
#ribbon .breadcrumb { display: inline-flex; flex-wrap: wrap; align-items: center; row-gap: 2px; }
#ribbon .breadcrumb > li { display: inline-flex; align-items: center; padding-left: 0; }
#ribbon .breadcrumb, #ribbon .breadcrumb a { color: #6b7785 !important; font-size: 13px; }
#ribbon .breadcrumb a:hover { color: var(--tema-orta) !important; }
#ribbon .breadcrumb li:last-child, #ribbon .breadcrumb > .active { color: var(--tema-koyu) !important; font-weight: 600; }
/* İlk öğeden önce ana sayfa ikonu, öğeler arasında "›" */
#ribbon .breadcrumb > li:first-child::before {
    content: "\f015"; font-family: "Font Awesome 6 Free"; display: inline-block; margin-right: 8px; padding: 0;
    color: var(--tema-orta); font-weight: 900;
}
#ribbon .breadcrumb > li + li::before {
    content: "\f105"; font-family: "Font Awesome 6 Free"; padding: 0 9px; color: #a9b6c8; font-weight: 900;
}
/* Breadcrumb'daki butonlar (ör. pencere ayarlarını sıfırla) */
#ribbon .btn.btn-ribbon {
    border: 0; border-radius: 7px; background: var(--tema-yumusak); background-image: none; color: var(--tema-orta);
    box-shadow: none; text-shadow: none; transition: background-color .12s, color .12s;
}
#ribbon .btn.btn-ribbon:hover, #ribbon .btn.btn-ribbon:focus { background: var(--tema-orta); color: #fff; }

/* ---------- Widget'lar (jarviswidget) ----------
   Tüm widget'lar ana sayfadaki görünümü alır; jarviswidget-color-* sınıfları ve tarayıcıda kayıtlı renk seçimleri ezilir.
   Başlık yüksekliği sabit değildir (bazı başlıklarda buton / filtre var); gövde iç boşluğu SmartAdmin'inki gibi kalır
   (.no-padding gövdeler bu boşluğa göre negatif margin kullanır). */
/* ---------- Sayfa boşlukları: tüm sayfalarda aynı (sayfa stillerinde ayrıca verilmez) ----------
   Üstte boşluk yok (hero / ilk widget doğrudan başlık çubuğunun altında), yanlarda 9px (widget aralığıyla aynı), altta 14px;
   widget'lar arası dikey ve yatay 9px (eşit). Ana sayfa #content yerine .as-sayfa kullanır (Home/Index), değerler aynıdır. */
.jarviswidget { margin-bottom: 9px; border-radius: var(--tema-kose); box-shadow: 0 2px 10px rgba(36, 48, 61, .07); }
#content { padding: 0 9px 14px; }   /* yanlar = widget'lar arası aralık (9px) */
@media (max-width: 600px) { #content { padding: 0 6px 8px; } }   /* telefonda yanlarda küçük bir boşluk (ana sayfa .as-sayfa da aynı) */
/* Widget'ları dizen sayfa satırlarında aralık 9px (dikey aralıkla aynı); widget içindeki form / içerik satırları 26px kalır. */
#widget-grid .row:not(.jarviswidget .row) { --bs-gutter-x: 9px; }
/* Doğrudan başka bir satırın içindeki satır (sütunsuz iç içe .row) taşmasın: negatif kenar bir kez uygulanır */
#widget-grid .row > .row:not(.jarviswidget .row) { margin-left: 0; margin-right: 0; width: 100%; }   /* genişlik de taşmasın (bootstrap5-tema: 100% + gutter) */
/* Satır dışındaki widget sütunları (bootstrap5-tema'da sabit 13px) yarım aralık alır; başka bir sütunun içindekiler
   (ör. .col > article.col-lg-12) hiç almaz: aralığı dıştaki sütun verir, iç içe sütunlarda boşluk katlanmaz */
#widget-grid :not(.row) > article[class*="col-"] { padding-left: 4.5px; padding-right: 4.5px; }
#widget-grid [class*="col"] > article[class*="col-"] { padding-left: 0; padding-right: 0; }
.jarviswidget > header {
    height: auto; min-height: 42px; padding: 0; border: 0 !important; border-radius: var(--tema-kose) var(--tema-kose) 0 0; color: #fff !important;
    background: var(--tema-koyu) linear-gradient(120deg, var(--tema-koyu) 0%, var(--tema-orta) 60%, var(--tema-acik) 100%) !important;
}
.jarviswidget.jarviswidget-collapsed > header { border-radius: var(--tema-kose); }
/* SmartAdmin sürüklenebilir widget başlığının köşesini sıfırlıyor (.ui-sortable .jarviswidget-sortable>header) */
.ui-sortable .jarviswidget-sortable > header { border-radius: var(--tema-kose) var(--tema-kose) 0 0; box-shadow: none; }
.ui-sortable .jarviswidget-sortable.jarviswidget-collapsed > header { border-radius: var(--tema-kose); }
.jarviswidget > header > h2 { margin: 0 0 0 14px; line-height: 42px; font-size: 15px; font-weight: 600; letter-spacing: .2px; color: #fff; }
.jarviswidget > header > .widget-icon { height: 42px; line-height: 42px; margin-left: 4px; color: #fff; }
.jarviswidget > header > .widget-icon > i, .jarviswidget > header > .widget-icon .txt-color-white { color: #fff !important; opacity: .85; }
.jarviswidget > header .jarviswidget-loader { color: #fff; line-height: 42px; }

/* Başlıktaki eklenti butonları: yalnızca daralt ve tam ekran (diğerleri eklenti ayarından kapatılır, bkz. _Scripts) */
.jarviswidget > header > .jarviswidget-ctrls { display: flex; align-items: center; gap: 6px; height: 42px; margin: 0 10px 0 0; }
.jarviswidget-ctrls .button-icon {
    float: none; display: inline-block; width: 30px; height: 30px; min-width: 0; margin: 0; padding: 0; border: 0 !important; border-radius: 7px;
    background: rgba(255, 255, 255, .16); color: #fff !important; line-height: 30px; text-align: center; opacity: 1;
}
.jarviswidget-ctrls .button-icon:hover { background: rgba(255, 255, 255, .32); }
.jarviswidget-ctrls .button-icon i { font-size: 13px; line-height: 30px; color: #fff !important; }
/* Bazı view'lara eklentinin ürettiği HTML hazır yapıştırılmış; eklenti onlara dokunmadığı için fazla butonlar burada gizlenir */
.jarviswidget-ctrls .jarviswidget-edit-btn, .jarviswidget-ctrls .jarviswidget-delete-btn,
.jarviswidget-ctrls .jarviswidget-refresh-btn, .jarviswidget-ctrls .jarviswidget-custom-btn,
.jarviswidget > header > .widget-toolbar > .color-box, .jarviswidget > header > .widget-toolbar > .color-select { display: none !important; }
.jarviswidget > header > .widget-toolbar:has(> .color-box) { display: none !important; }
.jarviswidget > header > .widget-toolbar { min-height: 42px; border: 0 !important; display: flex; align-items: center; padding: 0 4px; }

/* Widget gövdesi */
.jarviswidget > div { border: 1px solid #e3e8ef !important; border-width: 0 1px 1px !important; border-radius: 0 0 var(--tema-kose) var(--tema-kose); background: #fff; }
.jarviswidget-placeholder { border: 2px dashed #c3d0e4 !important; border-radius: var(--tema-kose); background: var(--tema-yumusak) !important; }

/* ---------- Sayfa bandı (as-hero) ----------
   Sayfa başındaki gradyanlı karşılama/başlık bandı (ana sayfa, Marketing). Gece modunda da aynı kalır.
   <div class="as-hero"><div class="as-hero-kim"><span class="as-hero-av">ikon/foto</span><div><h1 class="as-selam">…</h1>
   <div class="as-tarih">…</div></div></div><div class="as-hero-aksiyon"><a class="as-hap">… <b>3</b></a></div></div> */
.as-hero {
    position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
    margin-bottom: 8px; padding: 14px 22px; border-radius: 14px; overflow: hidden; color: #fff;   /* yükseklik ~83px */
    background: linear-gradient(120deg, var(--tema-koyu) 0%, var(--tema-orta) 60%, var(--tema-acik) 100%);
    box-shadow: 0 10px 26px rgba(28, 48, 83, .22);
}
/* Dekor: Stern yıldız amblemi (silik) */
.as-hero::before, .as-hero::after {
    content: ""; position: absolute; pointer-events: none;
    background: url('../img/stern/yildiz-amblem.svg') no-repeat center / contain;
}
.as-hero::before { right: -50px; top: -70px; width: 260px; height: 260px; opacity: .16; transform: rotate(-8deg); }
.as-hero::after { right: 230px; bottom: -60px; width: 120px; height: 120px; opacity: .1; transform: rotate(14deg); }
.as-hero-kim { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; min-width: 0; }
.as-hero-av {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden;
    background: rgba(255, 255, 255, .2); color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 0 0 3px rgba(255, 255, 255, .4);
}
.as-hero-av img { width: 100%; height: 100%; object-fit: cover; }
.as-hero .as-selam { margin: 0; color: #fff; font-size: 24px; font-weight: 600; letter-spacing: .2px; }
.as-tarih { margin-top: 3px; font-size: 13.5px; opacity: .88; }
.as-hero-aksiyon { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.as-hap {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(255, 255, 255, .24); border-radius: 999px;
    background: rgba(255, 255, 255, .16); color: #fff !important; font-size: 13px; font-weight: 600; text-decoration: none !important; transition: background .12s, transform .12s;
}
.as-hap:hover, .as-hap:focus { background: rgba(255, 255, 255, .3); transform: translateY(-1px); outline: 0; }
.as-hap b { min-width: 20px; padding: 0 7px; border-radius: 999px; background: #fff; color: var(--tema-koyu); font-size: 11.5px; line-height: 20px; text-align: center; }
.as-hap b[hidden] { display: none; }
.as-hap:disabled, .as-hap[disabled] { opacity: .8; transform: none; cursor: default; }
/* Başlığın yanındaki kod (h1.as-selam > small) ve alt satırdaki küçük etiketler (<div class="as-tarih as-etiketler"><span class="as-etiket">…) */
.as-hero .as-selam small { margin-left: 6px; color: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600; }
.as-etiketler { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; opacity: 1; }
.as-etiket {
    display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 999px;
    background: rgba(255, 255, 255, .16); color: #fff; font-size: 11px; font-weight: 600;
}
.as-etiket.uyari { background: rgba(217, 130, 43, .55); border-color: rgba(255, 255, 255, .45); }
/* Hap grubu: ana düğme + seçenek oku (ör. PDF). <div class="btn-group as-hap-grup"><button class="as-hap">…</button>
   <button class="as-hap dropdown-toggle" data-bs-toggle="dropdown"></button><ul class="dropdown-menu dropdown-menu-end">
   <li><a class="dropdown-item"><i …></i> Başlık<small>açıklama</small></a></li></ul></div>. Bandda .sf-bant ile kullanılır (menü taşabilsin). */
.as-hap-grup { display: inline-flex; }
.as-hap-grup > .as-hap:first-child { border-radius: 999px 0 0 999px; }
.as-hap-grup > .as-hap.dropdown-toggle { border-radius: 0 999px 999px 0; border-left: 0; padding-left: 10px; padding-right: 12px; }
.as-hap-grup > .as-hap.dropdown-toggle.show { background: rgba(255, 255, 255, .3); color: #fff !important; }
.as-hap-grup .dropdown-menu { min-width: 260px; padding: 4px 0; border-radius: 8px; }
.as-hap-grup .dropdown-item { padding: 7px 14px; font-weight: 600; font-size: 12px; white-space: normal; }
.as-hap-grup .dropdown-item i { width: 16px; margin-right: 4px; color: #c9453b; }
.as-hap-grup .dropdown-item small { display: block; margin-left: 20px; color: #6b7785; font-weight: 400; font-size: 11px; }
@media (max-width: 600px) {
    .as-hero { padding: 12px 16px; }
    .as-hero .as-selam { font-size: 20px; }
    .as-hero-av { width: 46px; height: 46px; font-size: 17px; }
}

/* ---------- Modallar (as-modallar) ----------
   Sayfanın @Bootstrap.ModalPopup(...) çağrıları <div class="as-modallar"> içine alınır. Hem SmartAdmin smart-form
   (header / fieldset / footer) hem Bootstrap (modal-header / modal-body / modal-footer) iskeletini aynı görünüme getirir:
   başlık widget başlığı gibi tema gradyanında, gövde beyaz, alt çubuk açık zeminde. */
.as-modallar .modal-dialog { margin-top: 40px; }
.as-modallar .modal-content {
    position: relative; overflow: hidden; border: 0; border-radius: 14px; background: #fff;
    box-shadow: 0 24px 60px rgba(12, 22, 40, .32);
}
.as-modallar .modal-content > .smart-form, .as-modallar .modal-content > form > .smart-form { position: relative; }
/* Başlık: smart-form <header> ve Bootstrap .modal-header */
.as-modallar .modal-content .smart-form > header,
.as-modallar .modal-content .modal-header {
    margin: 0; padding: 14px 56px 14px 18px; border: 0; color: #fff;
    background: var(--tema-koyu) linear-gradient(120deg, var(--tema-koyu) 0%, var(--tema-orta) 60%, var(--tema-acik) 100%);
    font-size: 16px; font-weight: 600; letter-spacing: .2px;
}
.as-modallar .modal-content .modal-header .modal-title { margin: 0; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.4; }
.as-modallar .modal-content .modal-header:empty { display: none; }
/* Kapat (X) düğmesi başlığın sağ üstünde */
.as-modallar .modal-content .btn-close {
    position: absolute; top: 10px; right: 12px; z-index: 2; box-sizing: border-box; width: 32px; height: 32px; margin: 0; padding: 0;
    border-radius: 8px; background: rgba(255, 255, 255, .16) var(--stern-kapat-beyaz) center / 12px auto no-repeat; opacity: 1;
}
.as-modallar .modal-content .btn-close:hover, .as-modallar .modal-content .btn-close:focus { background-color: rgba(255, 255, 255, .32); box-shadow: none; outline: 0; opacity: 1; }
/* Gövde */
.as-modallar .modal-content .modal-body { padding: 18px; }
.as-modallar .modal-content .modal-body:empty { display: none; }
.as-modallar .modal-content .smart-form fieldset { padding: 16px 18px 4px; background: #fff; }
.as-modallar .modal-content .smart-form fieldset + fieldset { border-top: 1px solid #edf1f5; }
.as-modallar .modal-content label, .as-modallar .modal-content .smart-form .label { color: #24303d; font-weight: 600; }
.as-modallar .modal-content .form-control, .as-modallar .modal-content .smart-form .input input,
.as-modallar .modal-content .smart-form .select select, .as-modallar .modal-content .smart-form .textarea textarea {
    border-color: #d3dce7; border-radius: 8px; box-shadow: none;
}
.as-modallar .modal-content .form-control:focus, .as-modallar .modal-content .smart-form .input input:focus,
.as-modallar .modal-content .smart-form .textarea textarea:focus { border-color: var(--tema-orta); box-shadow: 0 0 0 3px rgba(43, 79, 134, .12); }
.as-modallar .modal-content .note-editor { border: 1px solid #d3dce7; border-radius: 10px; overflow: hidden; }
/* Alt çubuk: smart-form <footer> ve Bootstrap .modal-footer */
.as-modallar .modal-content .smart-form > footer,
.as-modallar .modal-content .modal-footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; margin: 0;
    padding: 12px 18px; border-top: 1px solid #e3e8ef; background: #f6f8fb;
}
.as-modallar .modal-content .smart-form > footer .btn, .as-modallar .modal-content .modal-footer .btn {
    float: none; height: auto; margin: 0; padding: 7px 16px; border-radius: 8px; font-size: 13px;
}
.as-modallar .modal-content .smart-form > footer .float-start, .as-modallar .modal-content .modal-footer .float-start { margin-right: auto; }
.as-modallar .modal-content .modal-footer:empty { display: none; }
.as-modallar .modal-content .text-danger:empty, .as-modallar .modal-content .validation-summary-valid { display: none; }
/* Tema ayarları: widget başlığı düz renk / açık zemin seçimi modal başlığına da uygulanır */
html.tema-wb-duz .as-modallar .modal-content .smart-form > header,
html.tema-wb-duz .as-modallar .modal-content .modal-header { background: var(--tema-koyu); }
html.tema-wb-acik .as-modallar .modal-content .smart-form > header,
html.tema-wb-acik .as-modallar .modal-content .modal-header { background: var(--tema-yumusak); color: var(--tema-koyu); box-shadow: inset 0 -1px 0 #dbe2ec; }
html.tema-wb-acik .as-modallar .modal-content .modal-header .modal-title { color: var(--tema-koyu); }
html.tema-wb-acik .as-modallar .modal-content .btn-close { background-color: rgba(28, 48, 83, .08); background-image: var(--stern-kapat-koyu); }
@media (max-width: 600px) {
    .as-modallar .modal-dialog { width: auto; margin: 10px; }
    .as-modallar .modal-content .smart-form > footer, .as-modallar .modal-content .modal-footer { justify-content: stretch; }
    .as-modallar .modal-content .smart-form > footer .btn, .as-modallar .modal-content .modal-footer .btn { flex: 1 1 auto; }
}

/* ---------- Footer ---------- */
.page-footer {
    border-top: 0; color: var(--tema-menu-yazi);
    /* Siyaha yakın lacivert; sağa doğru logodaki #1C3053'e açılır */
    background: var(--tema-menu-2) linear-gradient(120deg, var(--tema-menu-3) 0%, var(--tema-menu-zemin) 60%, var(--tema-koyu) 100%);
    box-shadow: 0 -2px 10px rgba(12, 22, 40, .12);
}
/* Üst kenarda logodaki kırmızıyla kısa vurgu. Sağ uçta durur; sol taraf menü genişliğine göre
   (açık, daraltılmış, gizli) menünün altında kalabildiği için oraya konmaz. */
.page-footer::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .06) calc(100% - 140px), var(--tema-vurgu) calc(100% - 140px));
}
.page-footer .txt-color-white { color: #dbe3f0 !important; }

/* ---------- Tema ayarları seçenekleri (sınıflar <html> üzerinde, bkz. _TemaOnYukle) ---------- */
/* Widget başlığı: düz renk */
html.tema-wb-duz .jarviswidget > header { background: var(--tema-koyu) !important; }
/* Widget başlığı: açık zemin, koyu yazı */
html.tema-wb-acik .jarviswidget > header {
    background: var(--tema-yumusak) !important; color: var(--tema-koyu) !important; box-shadow: inset 0 -1px 0 #dbe2ec !important;
}
html.tema-wb-acik .jarviswidget > header > h2,
html.tema-wb-acik .jarviswidget > header .jarviswidget-loader { color: var(--tema-koyu); }
html.tema-wb-acik .jarviswidget > header > .widget-icon > i,
html.tema-wb-acik .jarviswidget > header > .widget-icon .txt-color-white { color: var(--tema-orta) !important; }
html.tema-wb-acik .jarviswidget-ctrls .button-icon { background: rgba(28, 48, 83, .08); color: var(--tema-koyu) !important; }
html.tema-wb-acik .jarviswidget-ctrls .button-icon:hover { background: var(--tema-koyu); }
html.tema-wb-acik .jarviswidget-ctrls .button-icon i { color: var(--tema-koyu) !important; }
html.tema-wb-acik .jarviswidget-ctrls .button-icon:hover i { color: #fff !important; }
html.tema-wb-acik .jarviswidget > header > .widget-toolbar { color: var(--tema-koyu); }
html.tema-wb-acik .jarviswidget > div { border-top-width: 1px !important; }

/* Menüdeki yıldız amblemi kapalı */
html.tema-amblemsiz #left-panel::after { display: none; }

/* Sayfa yolu (breadcrumb) satırı kapalı; sabit breadcrumb açıkken içeriğe bırakılan boşluk da kalkar */
html.tema-breadcrumbsuz #ribbon { display: none !important; }
html.tema-breadcrumbsuz .fixed-ribbon #content { padding-top: 0; }

/* Hareketleri azalt: geçiş ve animasyonlar kapalı */
html.tema-hareketsiz *, html.tema-hareketsiz *::before, html.tema-hareketsiz *::after {
    animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
    #left-panel nav ul li a, #left-panel nav > ul > li > a > i, #left-panel .minifyme, #ribbon .btn.btn-ribbon, #header .btn-header a, .as-hap { transition: none; }
    .as-hap:hover, .as-hap:focus { transform: none; }
}

/* Stok etiket modalı ve partial'ı (StokDokuman) */
.smart-form .textarea textarea.etk-alan { width: 100%; height: 140px; padding: 10px; border: 1px solid #e3e8ef; border-radius: 5px; }
.smart-form .textarea textarea.etk-alan-kisa { height: 70px; }
.smart-form .textarea textarea.etk-alan-salt { background: #f6f8fb; }
.etk-kaynak-bilgi { color: var(--tema-orta); font-size: 13px; font-weight: 700; }
.etk-oneri-etiket { color: #2e9d63; font-weight: 600; }
.etk-bolum-baslik { margin: 10px 0; color: var(--tema-koyu); font-size: 16px; font-weight: 700; text-align: center; }
.etk-tedarikci { display: inline-block; margin-top: 3px; white-space: normal; }
tr.etk-aktif-satir > td { background-color: rgba(46, 157, 99, .12) !important; }
tr.etk-uyari-satir > td { background-color: rgba(217, 130, 43, .15) !important; }

/* Önemli not formları (Stok) */
.sn-not-secenek { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 25px; }

/* Stok / reçete detay partial'ları (Uretim) */
.stok-rozet-hata { background: #c9453b; }
.stok-onay-etiket { font-size: 13px; color: #fff; }
.stok-lot-baslik { background: var(--tema-yumusak); }
.stok-alt-baslik { background: #f6f8fb; }
.stok-kullanilacak { font-weight: 700; color: #2e9d63; background: rgba(46, 157, 99, .14); padding: 3px 6px; border-radius: 4px; }

/* ---------- Kayıt formları (kf-sayfa), docs/sayfa-uyarlama-rehberi.md 3.1.4 ----------
   Sayfa: <div id="content" class="... kf-sayfa">. Form bölümleri (fieldset/legend veya .kf-bolum) alt çizgili başlık olur, düğmeler görünür kalır. */
.kf-sayfa .widget-body form fieldset { margin: 0 0 14px; padding: 0 0 4px; border: 0; background: transparent; }
.kf-sayfa .widget-body form.smart-form fieldset { padding: 0 15px 4px; }
.kf-sayfa .widget-body form legend,
.kf-sayfa .kf-bolum-baslik { display: block; width: 100%; margin: 0 0 12px; padding: 0 0 7px; border: 0; border-bottom: 1px solid #e3e8ef; background: transparent; color: var(--tema-koyu); font-size: 15px; font-weight: 700; line-height: 1.4; }
.kf-sayfa .widget-body form.smart-form legend { width: calc(100% + 30px); margin: 0 -15px 12px; }
.kf-sayfa .kf-bolum { margin: 0 0 16px; }
.kf-sayfa .kf-not { margin-top: 5px; color: #6b7785; font-size: 12px; }
.kf-sayfa .widget-body form > footer,
.kf-sayfa .widget-body form > .form-actions,
.kf-sayfa .widget-body form > .nu-islemler.nb-alt { position: sticky; bottom: 0; z-index: 5; margin: 12px 0 0; padding: 10px 0; border: 0; border-top: 1px solid #e3e8ef; background: #fff; text-align: right; }
.kf-sayfa .widget-body form > .form-actions .row { margin: 0; }
.kf-sayfa .widget-body form > .form-actions [class*="col"] { padding: 0; }
.kf-sayfa .widget-body form > .form-actions .btn,
.kf-sayfa .widget-body form > footer .btn,
.kf-sayfa .widget-body form > .nu-islemler.nb-alt .btn { float: none; height: auto; margin: 0; padding: 7px 18px; border-radius: 999px; font-weight: 600; line-height: 1.42; }
