/* Masaüstü denetimleri (Components/Ortak): konum ve boylar masaüstü penceresindeki gibi piksel; yazı 9.75pt Segoe UI = 13px */
.ekran { position: relative; flex: 1; background: var(--alan); overflow: hidden; color: var(--yazi); }
.ekran.zeminli { background: var(--zemin); }
.k { position: absolute; box-sizing: border-box; }
.k-etiket { white-space: nowrap; color: var(--yazi); cursor: default; user-select: none; padding: 0 .1667em; }
/* Windows etiket yazısını iki yanda yazı boyunun 1/6'sı kadar içeriden çizer (9pt'de 2 px): yazı masaüstüyle aynı yerde başlar, yandaki
   kutuya yapışmaz */
.k-etiket.kenarli { border: 1px solid #a8b3ad; background: #fff; }
.k-etiket.ortala { display: flex; align-items: center; }
.k-kutu, .k-radyo { display: flex; align-items: center; gap: 4px; height: 23px; white-space: nowrap; color: var(--yazi); user-select: none; }
.k-kutu input, .k-radyo input { margin: 0 1px 0 0; width: 13px; height: 13px; accent-color: #2b7a4b; flex: none; }
.k-kutu.pasif, .k-radyo.pasif { color: #9aa59f; }
.k-metin { height: 25px; border: 1px solid #a8b3ad; background: #fff; padding: 0 4px; font: inherit; color: #000; border-radius: 0; }
.k-metin.sag { text-align: right; }
.k-metin.buyuk { text-transform: uppercase; }
.k-metin:disabled { background: #f0f0f0; color: #8a948f; border-color: #c5ccc8; }
.k-metin[readonly] { background: #f4f6f5; }
textarea.k-metin { padding: 2px 4px; resize: none; }
.k-metin:focus, .k-tarih-kutu:focus-within, .k-acilir:focus-within, .k-secim:focus { outline: 1px solid var(--birincil); outline-offset: -1px; }
.k-secim { height: 23px; border: 1px solid #a8b3ad; background: #fff; font: inherit; color: #000; padding: 0 2px; border-radius: 0; }
.k-secim:disabled { background: #f0f0f0; color: #8a948f; border-color: #c5ccc8; }
.k-dugme { border: 0; font: 700 13px "Segoe UI", sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
           gap: 4px; padding: 0 4px; white-space: nowrap; overflow: hidden; }
.k-dugme.kenarli { border: 1px solid #b0bcb5; }
.k-dugme:hover:not(:disabled) { filter: brightness(.97); }
.k-dugme:active:not(:disabled) { filter: brightness(.92); }
.k-dugme:disabled { background: #e3e3e3 !important; color: #a0a0a0 !important; border: 1px solid #a0a0a0; cursor: default; }
.k-dugme:focus-visible { outline: 1px dotted #000; outline-offset: -4px; }
.k-grup-cerceve { position: absolute; left: 0; right: 0; top: 8px; bottom: 0; border: 1px solid #d3dad6; border-radius: 3px; pointer-events: none; }
.k-grup-baslik { position: absolute; left: 7px; top: 1px; padding: 0 2px; font-weight: 700; color: var(--birincil-koyu); line-height: 16px;
                 white-space: nowrap; user-select: none; }
.k-panel { }
.k-alt-panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--zemin); }
/* Sekmeler (TabControl): sayfanın içi masaüstündeki gibi (4, 26)'dan başlar */
.k-sekme-basliklar { position: absolute; left: 2px; top: 0; right: 2px; height: 24px; display: flex; align-items: flex-end; z-index: 1; }
.k-sekme-baslik { height: 21px; padding: 1px 6px 0; border: 1px solid #c9d1cc; border-bottom: 0; background: #f0f0f0; margin-right: -1px;
                  white-space: nowrap; cursor: default; user-select: none; }
.k-sekme-baslik.secili { height: 24px; background: #fff; position: relative; z-index: 2; margin-left: -2px; margin-right: -3px; padding: 2px 8px 0; }
.k-sekme-cerceve { position: absolute; left: 0; right: 0; top: 23px; bottom: 0; border: 1px solid #c9d1cc; background: #fff; }
.k-sekme-sayfa { position: absolute; left: 4px; top: 26px; right: 4px; bottom: 4px; background: var(--alan); }

/* Liste kutusu (ListBox) */
.k-liste { border: 1px solid #a8b3ad; background: #fff; overflow-y: auto; outline: none; user-select: none; }
.k-liste.pasif { background: #f7f7f7; border-color: #c5ccc8; }
.k-liste .oge { height: 17px; line-height: 17px; padding: 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-liste .oge.secili { background: #0078d7; color: #fff; }
.k-liste:not(:focus) .oge.secili { background: #cce8ff; color: #000; }

/* Tarih kutusu: gg.aa.yyyy yazılır, düğmesi takvim açar */
.k-tarih-kutu { display: flex; height: 25px; border: 1px solid #a8b3ad; background: #fff; }
.k-tarih-kutu.pasif { background: #f0f0f0; border-color: #c5ccc8; }
.k-tarih-kutu input.yazi { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; color: #000; padding: 0 4px; background: transparent; }
.k-tarih-kutu.pasif input.yazi { color: #8a948f; }
.k-tarih-kutu .takvim { width: 22px; border: 0; border-left: 1px solid #e3e7e5; background: transparent; cursor: pointer; padding: 0; font-size: 11px; color: #444; }
.k-tarih-kutu.pasif .takvim { color: #b5bbb8; cursor: default; }
.k-tarih-kutu input.gizli-tarih { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; opacity: 0; border: 0; padding: 0; pointer-events: none; }
/* Aramalı açılır kutu (ComboBox + Theme.AramaliYap): yazdıkça en yakın öğe, liste kutudan geniş açılabilir */
.k-acilir { display: flex; height: 23px; border: 1px solid #a8b3ad; background: #fff; }
.k-acilir.pasif { background: #f0f0f0; border-color: #c5ccc8; }
.k-acilir input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; color: #000; padding: 0 3px; background: transparent; }
.k-acilir .ok { width: 17px; border: 0; background: transparent; padding: 0; cursor: default; color: #555; font-size: 8px; }
.k-acilir.pasif .ok { color: #b5bbb8; }
.k-acilir-liste { position: fixed; z-index: 2000000; background: #fff; border: 1px solid #7a8a81; box-shadow: 0 3px 8px rgba(0,0,0,.2);
                  overflow-y: auto; font: 13px "Segoe UI", sans-serif; color: #000; user-select: none; }
.k-acilir-liste .oge { display: flex; height: 18px; line-height: 18px; white-space: nowrap; cursor: default; }
.k-acilir-liste .oge span { padding: 0 2px; overflow: hidden; text-overflow: ellipsis; }
.k-acilir-liste .oge span.kod { width: 99px; flex: none; }
.k-acilir-liste .oge.secili { background: #0078d7; color: #fff; }
.k-acilir-liste .oge.baslik { background: #f0f0f0; font-weight: 700; border-bottom: 1px solid #a0a0a0; position: sticky; top: 0; }
.k-acilir-liste .oge.baslik span.kod { border-right: 1px solid #a0a0a0; }

/* Liste tablosu (DataGridView + Theme.StyleGrid): başlık açık yeşil zeminde koyu yeşil kalın, satır 20 px, yatay çizgili */
.k-tablo { overflow: auto; background: #fff; outline: none; }
.k-tablo-ic { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; }
.k-tablo-ic th { position: sticky; top: 0; z-index: 1; background: #DCEDE3; color: #0D5E2D; font-weight: 700; text-align: left;
                 padding: 0 4px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: none; cursor: default; }
.k-tablo-ic td { height: 20px; padding: 0 4px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
                 border-bottom: 1px solid #D2D9D5; background: var(--satir-zemin, #fff); cursor: default; }
.k-tablo-ic tr.serit td { background: var(--satir-zemin, #F6F9F7); }
.k-tablo-ic tr.secili td { background: var(--secili-zemin, #DCEDE3); }
.k-tablo-ic tr.kalin td { font-weight: 700; }
.k-tablo-ic .sag { text-align: right; }
.k-tablo-ic .orta { text-align: center; padding: 0 1px; }
.k-tablo-ic th.imlec, .k-tablo-ic td.imlec { padding: 0; text-align: center; color: #0D5E2D; font-size: 9px; background: #fff; border-right: 1px solid #D2D9D5; }
.k-tablo-ic td input[type=checkbox] { margin: 0; width: 13px; height: 13px; vertical-align: middle; accent-color: #2b7a4b; }

/* Liste penceresi: üst çubuk (simge düğmeleri + hızlı arama), tablo, alt durum çubuğu */
.k-liste-ekrani { position: relative; display: flex; flex-direction: column; flex: 1; background: var(--zemin); overflow: hidden; }
.k-liste-ust { position: relative; flex: none; background: #F7F9F8; }
.k-liste-alt { position: relative; flex: none; height: 24px; background: #F7F9F8; color: #637068; padding: 4px 10px; white-space: nowrap; overflow: hidden; }
.k-liste-ekrani > .k-tablo { position: relative; flex: 1; }
.k-arac-dugmesi { width: 32px; height: 28px; border: 1px solid #D2D9D5; background: #fff; cursor: pointer; padding: 0;
                  font: 13px "Segoe UI Emoji", "Segoe UI Symbol", sans-serif; color: #000; }
.k-arac-dugmesi:hover:not(:disabled) { background: #eef6f1; }
.k-arac-dugmesi:disabled { opacity: .45; cursor: default; }
.k-tablo-ic th.secili-kolon { background: #C4E0CF; }
.k-tablo-ic td.secili-kolon { box-shadow: inset 0 0 0 1px #6aa884; }
.ld-sayfalar { overflow: auto; background: #8a948f; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.k-tablo-ic.tam-kenar td { border-right: 1px solid #D2D9D5; }
.k-metin.odak-mavi:focus:not([readonly]) { background: #ADD8F0; }
.k-metin.kilitli, .k-metin[readonly].kilitli { background: #F0F2F1; }
.k-menu-perde { position: fixed; inset: 0; z-index: 1999998; }
.k-menu { position: fixed; z-index: 1999999; min-width: 170px; background: #fff; border: 1px solid #a0a0a0; box-shadow: 2px 3px 8px rgba(0,0,0,.2);
          padding: 2px 0; outline: none; font: 13px "Segoe UI", sans-serif; color: #000; }
.k-menu .oge { display: flex; padding: 3px 12px 3px 24px; cursor: default; white-space: nowrap; }
.k-menu .oge:hover:not(.pasif) { background: #C4E0CF; }
.k-menu .oge.pasif { color: #a0a0a0; }
.k-menu .oge .ad { flex: 1; } .k-menu .oge .kisayol { margin-left: 24px; }
.k-menu .ayirici { height: 1px; background: #d7d7d7; margin: 3px 2px; }
/* Arama kutusu listesi (IkiliAramaPopup): koyu yeşil çerçeveli, başlıklı tablo */
.k-arama-liste { position: fixed; z-index: 2000000; background: #fff; border: 1px solid #0D5E2D; box-shadow: 0 3px 8px rgba(0,0,0,.2);
                 overflow-y: auto; font: 13px "Segoe UI", sans-serif; color: #000; user-select: none; padding: 1px; }
.k-arama-liste .oge { display: flex; height: 20px; line-height: 19px; border-bottom: 1px solid #AAB9B2; cursor: default; white-space: nowrap; }
.k-arama-liste .oge span { padding: 0 4px 0 8px; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid #AAB9B2; flex: none; }
.k-arama-liste .oge.secili { background: #0078D7; color: #fff; }
.k-arama-liste .oge.baslik { height: 22px; background: #DCEDE3; color: #0D5E2D; font-weight: 700; position: sticky; top: 0; }
.k-arama { display: flex; align-items: flex-start; }
.k-arama input { flex: 1; min-width: 0; }
.k-arama .ok { width: 22px; height: 22px; flex: none; border: 1px solid #D2D9D5; background: #fff; font-size: 9px; padding: 0; cursor: pointer; }

/* Düzenlenebilir tablo: hücre ızgarası, sabit sütunlar, geçerli hücre ve yazma kutusu, alt toplam şeridi */
.k-duzen .k-tablo-ic td, .k-duzen .k-tablo-ic th { border-right: 1px solid var(--izgara); }
.k-duzen .k-tablo-ic td { border-bottom: 1px solid var(--izgara); }
.k-duzen .k-tablo-ic .sabit { position: sticky; z-index: 2; }
.k-duzen .k-tablo-ic th.sabit { z-index: 3; }
.k-duzen .k-tablo-ic tr.secili td { background: #DCEDE3; }
.k-duzen .k-tablo-ic td.gecerli { outline: 1px dotted #000; outline-offset: -2px; }
.k-duzen .k-tablo-ic td.yaziliyor { padding: 0; background: #fff !important; outline: 1px solid #0D5E2D; }
.k-duzen .duzen-girdi { width: 100%; height: 100%; border: 0; padding: 0 4px 0 8px; font: inherit; color: #000; outline: none; background: #fff; }
.k-duzen select.duzen-girdi { padding: 0 2px; }
.k-duzen .duzen-girdi.sag { text-align: right; padding-right: 4px; }
.k-duzen .k-tablo-ic tfoot td { position: sticky; bottom: 0; z-index: 2; background: #EBF1ED; font-weight: 700; height: 26px; border-top: 1px solid #c9d1cc; }
.k-duzen .k-tablo-ic.toplamli { height: 100%; }
.k-duzen .k-tablo-ic tr.dolgu td { height: auto; border: 0; background: #fff; padding: 0; }
.k-duzen .k-tablo-ic tbody tr:not(.dolgu) td { height: 20px; }
.k-tarih-kutu .tarih-isaret { margin: 0 2px 0 4px; width: 13px; flex: none; align-self: center; accent-color: #2b7a4b; }
.k-tarih-kutu.isaretsiz input.yazi { color: #9aa59f; }

/* Satış / alış faturası: masaüstü FaturaForm'un dikey yerleşimi (araç çubuğu, sekmeler, mal satırları, alt toplamlar, düğmeler) */
.fatura { display: flex; flex-direction: column; }
.fatura-ust { position: relative; height: 34px; flex: none; background: #fff; }
.fatura-sekmeler { position: relative; height: 206px; flex: none; }
.fatura-kart { position: absolute; inset: 0; background: var(--alan); }
.fatura-satirlar { position: relative; flex: 1; min-height: 120px; }
.fatura-alt { position: relative; height: 168px; flex: none; background: var(--alan); }
.fatura-dugmeler { position: relative; height: 44px; flex: none; }
.k-metin.kucuk { font-size: 11.67px; }
.k-metin.hesaplanan { background: #F0F0F0; font-weight: 700; border: 2px inset #e3e3e3; }
.k-metin.hesaplanan.ince { font-weight: 400; font-size: 11.67px; }
.k-metin.fatura-toplam { color: #0D5E2D; }
.k-metin.rehin-adet { color: #C62828; background: #F0F0F0; }
.k-metin.aciklama { background: #77D1FF; }
.yazdir-menusu { outline: none; border: 1px solid #D2D9D5; }
.ym-dugme { width: 168px; height: 34px; border: 1px solid #D2D9D5; background: #EBF1ED; color: #17211C; text-align: left; padding: 0 0 0 34px;
            font: 13px "Segoe UI", sans-serif; cursor: pointer; }
.ym-dugme:hover { filter: brightness(.97); }
.ym-simge { position: absolute; left: 6px; top: 0; width: 28px; height: 34px; display: flex; align-items: center; justify-content: center;
            font: 14.7px "Segoe UI Emoji", "Segoe UI Symbol", sans-serif; }
.metin-penceresi { margin: 0; font: 13.33px Consolas, monospace; color: var(--yazi); white-space: pre; }
/* Uzun sütun başlıkları masaüstündeki gibi iki satıra bölünür (DataGridView WrapMode) */
.k-tablo-ic th { white-space: normal; line-height: 15px; overflow: hidden; }
.k-duzen .k-tablo-ic tfoot td.toplam-etiket { text-align: left; overflow: visible; }
.k-tablo-ic.tek-satir th { white-space: nowrap; }
.k-duzen .k-tablo-ic.satir22 tbody tr:not(.dolgu) td { height: 22px; }
/* Stok girişi: masaüstü StokGirisForm'un dikey yerleşimi */
.stok-giris { display: flex; flex-direction: column; }
.sg-blok { position: relative; flex: none; }
.sg-kalemler { position: relative; flex: 1; min-height: 120px; }
.k-duzen td { position: relative; }
.k-duzen .liste-oku { position: absolute; right: 1px; top: 1px; bottom: 1px; width: 17px; border: 1px solid #b0b0b0; background: #f0f0f0;
                      display: flex; align-items: center; justify-content: center; font-size: 10px; color: #333; }
/* Kutulu toplam şeridi (masaüstü Theme.ToplamSeridi): şerit zemininde, toplamı olan sütunun altında beyaz kenarlı kalın kutu */
.k-duzen .k-tablo-ic.kutulu tfoot td { background: var(--alan); border: 0; height: 22px; padding: 0; }
.k-duzen .k-tablo-ic.kutulu tfoot td .toplam-kutu { display: block; margin: 2px 0; height: 18px; line-height: 16px; background: #fff; border: 1px solid #7A7A7A;
                                                     padding: 0 3px; text-align: right; overflow: hidden; white-space: nowrap; }
/* Üretici faturası bilgileri: masaüstü UreticiFaturaDetayForm'un yerleşimi (üst çubuk, fiş bilgileri, sekmeler + sağda masraflar, alt çubuklar) */
.ufd { display: flex; flex-direction: column; }
.ufd-ust { position: relative; height: 34px; flex: none; background: #fff; }
.ufd-fis { position: relative; height: 134px; flex: none; }
.ufd-orta { position: relative; flex: 1; min-height: 200px; }
.ufd-masraf { position: absolute; right: 0; top: 0; bottom: 0; width: 240px; background: var(--alan); overflow-y: auto; overflow-x: hidden; }
.ufd-alt { position: relative; height: 40px; flex: none; background: var(--alan); }
.ufd-dugmeler { position: relative; height: 44px; flex: none; }
/* Dar kutu (masaüstü TextBox'ın iç boşluğu yok denecek kadar az: "% 20" 34 piksele sığar); yazıdaki çift boşluklar korunur (ListView) */
.k-metin.dar { padding: 0 1px; }
.k-tablo.bosluklu td { white-space: pre; }
/* İki katlı başlık (masaüstü GrupluBaslik): üstte grup bandı, sütun adları alt yarıda */
.k-tablo-ic tr.grup-satiri th { height: 20px; padding: 0; }
.k-tablo-ic tr.grup-satiri th.grup-bant { text-align: center; border: 1px solid #D2D9D5; }
.k-tablo-ic tr.alt-baslik th { top: 20px; white-space: nowrap; }   /* masaüstünde alt yarıda tek satır, sığmazsa ... */
/* İki satırlı onay kutusu yazısı ("Künyeyi\nYazdır"); beyaz zeminli salt okunur ileti kutusu */
.k-kutu.iki-satir { white-space: pre-line; line-height: 17px; }
.k-metin.beyaz[readonly] { background: #fff; }
