/* Tukosoft arayüz çatısı (Kararlar 14n; OAC stuslayout / stuseditor CSS'inden). Renkler marka değişkenlerinden (marka.css, --tuko-*);
   değişken yoksa yedek değer. Üst çubuk yüksekliği --tk-ust-cubuk: büyütülen pencere bunun altından başlar (PencereAlani ile aynı). */
:root {
  --tk-ust-cubuk: 48px;
  --tk-kenar-menu: 300px;
  --tk-pencere-bosluk: 8px;
}

/* ---------- Kabuk: üst çubuk, kenar menüsü, çalışma alanı ---------- */
.tk-kabuk {
  min-height: 100dvh;
  background: var(--tuko-zemin, #F4F7F6);
}

.tk-ust {
  position: sticky;
  top: 0;
  z-index: 10003;
  height: var(--tk-ust-cubuk);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  background: var(--tuko-lacivert, #0B2545);
  color: var(--tuko-beyaz, #fff);
}

.tk-ust-logo {
  height: 28px;
  margin: 0 8px 0 4px;
}

.tk-ust-firma {
  font-size: .875rem;
  opacity: .85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* F3-12: birden çok firmalı hesapta firma adı açılır menü (lacivert üst çubukta beyaz yazı) */
.tk-ust-firma-secim,
.tk-ust-firma-secim .dxbl-btn,
.tk-ust-firma-secim .dxbl-btn:hover {
  color: inherit;
  background: transparent;
  font-size: .875rem;
  padding: 0 4px;
}

.tk-ust-bosluk {
  flex: 1;
}

.tk-ust form {
  margin: 0;
}

.tk-ust .tk-ust-dugme {
  color: var(--tuko-beyaz, #fff);
}

/* Açık pencereler düğmesi: DevExpress basılı / açık halde rengi koyulaştırıyordu, simge lacivert zeminde kayboluyordu */
.tk-ust .tk-acik-pencereler,
.tk-ust .tk-acik-pencereler:hover,
.tk-ust .tk-acik-pencereler:focus,
.tk-ust .tk-acik-pencereler:active,
.tk-ust .tk-acik-pencereler[aria-expanded="true"],
.tk-ust .tk-acik-pencereler .dxbl-btn {
  color: var(--tuko-beyaz, #fff) !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

.tk-ust .tk-acik-pencereler:hover,
.tk-ust .tk-acik-pencereler[aria-expanded="true"] {
  background-color: var(--tuko-koyu-iz, #1E3A5F) !important;
}

.tk-ust .tk-acik-pencereler:disabled {
  opacity: .6;
}

.tk-ust button.tk-ust-dugme {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: .875rem;
}

.tk-ust button.tk-ust-dugme:hover,
.tk-ust button.tk-ust-dugme:focus-visible,
.tk-ust button.tk-ust-dugme[aria-pressed="true"] {
  background: var(--tuko-koyu-iz, #1E3A5F);
}

.tk-ust-kullanici {
  font-size: .875rem;
  white-space: nowrap;
  padding: 0 4px;
}

/* Kenar menüsü ekranın tam yüksekliğinde (OAC gibi): üst çubuğun arkasından başlar, örtü arkadaki her şeyi karartır */
.tk-kenar {
  position: fixed;
  top: 0;
  bottom: 0;
  padding-top: var(--tk-ust-cubuk);
  box-sizing: border-box;
  left: 0;
  width: var(--tk-kenar-menu);
  max-width: 100vw;
  z-index: 10002;
  background: var(--tuko-beyaz, #fff);
  border-right: 1px solid var(--tuko-cizgi, #E3E6EB);
  box-shadow: 2px 0 8px rgb(11 37 69 / 12%);
  overflow-y: auto;
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform .2s ease, visibility .2s;
}

.tk-kenar.tk-kenar-acik {
  transform: none;
  visibility: visible;
}

.tk-kenar-ortu {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgb(11 37 69 / 40%);
  cursor: pointer;
}

.tk-calisma {
  min-height: calc(100dvh - var(--tk-ust-cubuk));
}

/* ---------- Menü ---------- */
.tk-menu {
  padding: 8px;
}

.tk-menu-ara {
  margin-bottom: 8px;
}

.tk-menu-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tk-menu-liste .tk-menu-liste {
  padding-left: 16px;
}

.tk-menu-grup > summary,
.tk-menu-ekran {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--tuko-lacivert, #0B2545);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tk-menu-grup > summary {
  font-weight: 600;
  list-style: none;
}

.tk-menu-grup > summary::-webkit-details-marker {
  display: none;
}

.tk-menu-grup > summary:hover,
.tk-menu-ekran:hover,
.tk-menu-ekran:focus-visible {
  background: var(--tuko-zemin, #F4F7F6);
}

.tk-menu-ekran .tk-simge {
  color: var(--tuko-yesil, #12805C);
}

.tk-menu-bos {
  color: var(--tuko-metin-ikincil, #4A5565);
  padding: 8px;
}

/* Hızlı erişim (kenar menü sekmeleri ve yıldız): seçili sekmede yeşil alt çizgi; yıldız hep soluk, eklenmişse sarı */
.tk-menu-sekmeler {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--tuko-cizgi, #E3E6EB);
}

.tk-menu-sekme {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 8px;
  margin-bottom: -1px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--tuko-metin-ikincil, #4A5565);
  font: inherit;
  cursor: pointer;
}

.tk-menu-sekme:hover {
  color: var(--tuko-lacivert, #0B2545);
}

.tk-menu-sekme-secili {
  color: var(--tuko-lacivert, #0B2545);
  border-bottom-color: var(--tuko-yesil, #12805C);
  font-weight: 600;
}

.tk-menu-sekme-secili .tk-simge {
  color: var(--tuko-yesil, #12805C);
}

.tk-menu-satir {
  display: flex;
  align-items: center;
}

.tk-menu-satir .tk-menu-ekran {
  flex: 1;
  min-width: 0;
}

.tk-menu-yildiz {
  flex: none;
  display: flex;
  padding: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--tuko-metin-ikincil, #4A5565);
  cursor: pointer;
  opacity: .35;
}

/* Eklenmemiş ekranın yıldızı hep soluk görünür (nasıl ekleneceği belli olsun); satırın üstüne gelince koyulaşır, ekliyse sarı */
.tk-menu-satir:hover .tk-menu-yildiz,
.tk-menu-yildiz:focus-visible,
.tk-menu-yildiz-secili {
  opacity: 1;
}

.tk-menu-yildiz:hover {
  background: var(--tuko-zemin, #F4F7F6);
  color: var(--tuko-lacivert, #0B2545);
}

.tk-menu-yildiz-secili,
.tk-menu-yildiz-secili:hover {
  color: #F2B705;
}

/* ---------- Pencere ve ekran ---------- */
.tk-pencere.tk-pencere-gizli {
  display: none !important;
}

/* DevExpress pencere gövdesi içeriği sola yaslar ve büyütmez (align-items: flex-start, çocuklar flex: none): ekran bütün
   pencereyi doldursun, kaydırma ekranın gövdesinde olsun. Seçiciler DevExpress'inkinden belirgin. */
.dxbl-window > .tk-pencere.dxbl-window-dialog > .dxbl-window-body {
  padding: 0;
  align-items: stretch;
  overflow: hidden;
}

.dxbl-window > .tk-pencere.dxbl-window-dialog > .dxbl-window-body > .tk-ekran {
  flex: 1 1 auto;
  min-width: 0;
}

.dxbl-modal > .dxbl-modal-root > .dxbl-popup.tk-acilir > .dxbl-modal-content > .dxbl-modal-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.tk-pencere.tk-pencere-buyuk {
  border-radius: 6px;
}

.tk-ekran:focus {
  outline: none;
}

.tk-ekran {
  display: flex;
  flex-direction: column;
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
}

.tk-ekran-bekle {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255 255 255 / 55%);
}

.tk-secim-listesi {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  /* Yatay kaydırma çubuğu pencerenin alt kenarına yapışmasın (B-37) */
  padding-bottom: 6px;
  box-sizing: border-box;
}

.tk-secim-ust {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--tuko-cizgi, #E3E6EB);
}

/* Kayıt sayısı (B-37): başlığın yanında, ikincil renk; filtreliyken "Filtreyi temizle" */
.tk-secim-sayi {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tk-ikincil-metin, #4A5565);
  font-size: 0.875em;
  white-space: nowrap;
}

.tk-secim-sayi .tk-secim-temizle.dxbl-btn {
  padding: 0 4px;
  font-size: inherit;
}

.tk-secim-dugmeler {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tk-secim-tablo {
  flex: 1;
  min-height: 0;
}

/* Belgenin durum alanı durumun renginde, beyaz kalın yazı (Belge_Tasarimi B-39): iptal indian red, ters kayıt lacivert, onay bekleyen
   turuncu, onaylı ana yeşil, taslak gri */
.tk-durum { --tk-durum-zemin: #6B7280; }
.tk-durum-iptal { --tk-durum-zemin: #CD5C5C; }
.tk-durum-ters { --tk-durum-zemin: var(--tk-lacivert, #0B2545); }
.tk-durum-bekliyor { --tk-durum-zemin: #D97706; }
.tk-durum-onayli { --tk-durum-zemin: var(--tk-ana-yesil, #12805C); }
.tk-durum .dxbl-text-edit {
  background-color: var(--tk-durum-zemin) !important;
  border-color: var(--tk-durum-zemin) !important;
}

.tk-durum .dxbl-text-edit input {
  color: #fff !important;
  -webkit-text-fill-color: #fff;
  font-weight: 600;
  text-align: center;
}

/* Gridlerde tarayıcının kendi kaydırma çubuğu (8 Kasım 2026; B-37'nin yerine): DevExpress kendi çizdiği ince, üstte yüzen çubuğu kullanıp
   gerçek çubuğu gizliyor. Ona verdiğimiz kalın görünüm gridden kopuk duruyor, son kolonun üstüne biniyor ve tutamak konumu kayıyordu.
   Gerçek çubuk gridin kaydırılan alanının parçası: başlıktan alta tek parça, kolonlar ona göre daralır; klavye ve sanal kaydırma aynı
   kalır. DevExpress'in çubukları gizlenir */
.dxbl-grid .dxbl-scroll-viewer-content {
  scrollbar-width: auto !important;
  scrollbar-color: #8A94A3 var(--tk-zemin, #F4F7F6);
}

.dxbl-grid .dxbl-scroll-viewer-content::-webkit-scrollbar {
  display: block !important;
  width: 14px;
  height: 14px;
}

.dxbl-grid .dxbl-scroll-viewer-vert-scroll-bar,
.dxbl-grid .dxbl-scroll-viewer-hor-scroll-bar {
  display: none !important;
}

/* Liste hücreleri tek satır (B-36): sığmayan metin "…" ile kesilir, kolon genişletilince görünür */
.tk-secim-tablo td, .tk-secim-tablo th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Seçim listesinde odak satırda: hücre çerçevesi çizilmez, odaklı satır yeşiliyle görünür */
.dxbl-grid.tk-secim-tablo .dxbl-grid-table > tbody > tr.dxbl-grid-focused-row > td:focus,
.dxbl-grid.tk-secim-tablo .dxbl-grid-table > tbody > tr.dxbl-grid-focused-row > td:focus-visible {
  outline: none;
  box-shadow: none;
}

.tk-ekran-ust {
  border-bottom: 1px solid var(--tuko-cizgi, #E3E6EB);
  padding: 2px 4px;
}

.tk-ekran-baslik {
  font-weight: 600;
  color: var(--tuko-lacivert, #0B2545);
  padding-left: 4px;
}

.tk-ekran-govde {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 12px 16px;
}

/* 10 Kasım 2026 (deneme, banka kartı): gövdenin üstünde sabit kalan bölüm (kod, ad); diğer alanlar kaydırınca altından geçer.
   Gövdenin iç boşluğunu kendi boşluğuyla örter, kaydırma çubuğunun en üstüne yapışır. */
.tk-sabit-ust {
  position: sticky;
  top: -12px;
  z-index: 5;
  margin: -12px -16px 10px;
  padding: 12px 16px 10px;
  background: var(--tuko-beyaz, #fff);
  border-bottom: 1px solid var(--tuko-cizgi, #E3E6EB);
}

/* Aynı ızgarada sabit ilk satır (SabitSatir; belgelerde seri, sıra, tarih, durum): zemin gövdenin üst boşluğundan satır aralığına kadar
   örter, öğeler zeminin üstünde aynı yerde durur */
.tk-sabit-zemin {
  position: sticky;
  top: -12px;
  z-index: 4;
  margin: -12px -16px -8px;
  background: var(--tuko-beyaz, #fff);
  border-bottom: 1px solid var(--tuko-cizgi, #E3E6EB);
}

.tk-sabit-oge {
  position: sticky;
  top: 0;
  z-index: 5;
}

/* Alt çubuk üst araç çubuğuyla aynı yapıda (DxToolbar) */
.tk-ekran-alt {
  border-top: 1px solid var(--tuko-cizgi, #E3E6EB);
  padding: 2px 4px;
}

.tk-ekran-durum {
  padding-left: 4px;
  font-size: .8125rem;
  color: var(--tuko-metin-ikincil, #4A5565);
}

/* Kayıtlı (eski) kayıt: yanıp söner (OAC layout-flash) */
.tk-ekran-durum-eski {
  color: var(--tuko-yesil, #12805C);
  font-weight: 600;
  animation: tk-yanip-son 1.4s ease-in-out infinite;
}

@keyframes tk-yanip-son {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

@media (prefers-reduced-motion: reduce) {
  .tk-ekran-durum-eski {
    animation: none;
  }
}

/* Alt çubuktaki aktif / kilit düğmeleri yalnızca simge; durum renkle (aktif yeşil, pasif ve kilitli kırmızı, kilit açık gri) */
.tk-ekran-alt .tk-durum-aktif .tk-simge {
  color: var(--tuko-yesil, #12805C);
}

.tk-ekran-alt .tk-durum-pasif .tk-simge,
.tk-ekran-alt .tk-durum-kilitli .tk-simge {
  color: #c50f1f;
}

.tk-ekran-alt .tk-durum-acik .tk-simge {
  color: var(--tuko-metin-ikincil, #4A5565);
}

.tk-dugme-kaydet .tk-simge,
.tk-dugme-yeni .tk-simge,
.tk-dugme-yenile .tk-simge {
  color: var(--tuko-yesil, #12805C);
}

/* Pasif düğmenin simgesi renksiz (ör. kırmızı sil "basılmalı" hissi vermesin; 9 Kasım 2026) */
.tk-ekran-ust .dxbl-disabled .tk-simge,
.tk-ekran-ust :disabled .tk-simge {
  color: var(--tuko-metin-ikincil, #4A5565) !important;
  opacity: .45;
}

.tk-dugme-sil .tk-simge {
  color: #c50f1f;
}

/* ---------- Alanlar (OAC stus-text-box: başlık üstte, editör altta) ---------- */
.tk-alan {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.tk-alan-baslik {
  font-size: .8125rem;
  color: var(--tuko-metin-ikincil, #4A5565);
}

.tk-alan-editor {
  min-width: 0;
}

/* Onay kutusu (OAC StusCheckBox): metin kutusu yüksekliğinde çerçeve, metin solda, anahtar sağda */
.tk-onay {
  display: flex;
  align-items: center;
  min-height: var(--dxbl-text-edit-height, 2.375rem);
  padding: 0 10px;
  border: 1px solid var(--tuko-cizgi, #E3E6EB);
  border-radius: 4px;
  background: var(--tuko-beyaz, #fff);
  box-sizing: border-box;
}

.tk-onay .tk-onay-kutu {
  width: 100%;
}

/* Metin sığmazsa kendi alanında üç noktayla kısalır, anahtarın altına girmez */
.tk-onay .tk-onay-kutu > label {
  flex: 1 1 auto;
  min-width: 0;
  margin-right: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tk-onay .tk-onay-kutu .dxbl-checkbox-check-element {
  flex: none;
}

.tk-alan {
  max-width: 100%;
}

/* Izgarada alan hücrenin altına yaslanır: başlıksız anahtar, yanındaki başlıklı alanın kutusuyla aynı hizada durur */
.tk-ekran-form .tk-alan {
  height: 100%;
  justify-content: flex-end;
}
/* ---------- Mobil (992 px altı, MobilAlgilayici ile aynı) ---------- */
@media (max-width: 992px) {
  .tk-ust-firma,
  .tk-ust-kullanici {
    display: none;
  }

  .tk-ekran-govde {
    padding: 8px;
  }

  .tk-sabit-ust {
    top: -8px;
    margin: -8px -8px 8px;
    padding: 8px;
  }

  .tk-sabit-zemin {
    top: -8px;
    margin: -8px -8px -8px;
  }
}

/* ---------- Simgeler: tek renk SVG maske, rengi metin renginden (currentColor) ---------- */
.tk-simge {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
  background-color: currentColor;
  -webkit-mask: var(--tk-s) center / contain no-repeat;
  mask: var(--tk-s) center / contain no-repeat;
}

.tk-simge-yenile { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11a8 8 0 1 0-2.3 5.7'/%3E%3Cpath d='M20 4v7h-7'/%3E%3C/svg%3E"); }
.tk-simge-yeni { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E"); }
.tk-simge-kaydet { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 3h11l3 3v15H5z'/%3E%3Cpath d='M8 3v5h7V3'/%3E%3Cpath d='M8 21v-7h8v7'/%3E%3C/svg%3E"); }
.tk-simge-yazdir { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9V3h12v6'/%3E%3Cpath d='M6 18H4v-8h16v8h-2'/%3E%3Cpath d='M8 14h8v7H8z'/%3E%3C/svg%3E"); }
.tk-simge-onceki { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.tk-simge-sonraki { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.tk-simge-sil { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16'/%3E%3Cpath d='M9 7V4h6v3'/%3E%3Cpath d='M6 7l1 14h10l1-14'/%3E%3Cpath d='M10 11v6'/%3E%3Cpath d='M14 11v6'/%3E%3C/svg%3E"); }
.tk-simge-kucult { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19h14'/%3E%3C/svg%3E"); }
.tk-simge-buyut { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3C/svg%3E"); }
.tk-simge-gizle { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 6.1A9.8 9.8 0 0 1 12 6c5 0 9 6 9 6a17 17 0 0 1-2.4 3'/%3E%3Cpath d='M6.6 6.6C4.3 8.1 3 12 3 12s4 6 9 6a9.7 9.7 0 0 0 4-.9'/%3E%3C/svg%3E"); }
.tk-simge-kapat { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12'/%3E%3Cpath d='M18 6L6 18'/%3E%3C/svg%3E"); }
.tk-simge-aktif { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z'/%3E%3Cpath d='M8 12.5l2.8 2.8L16 9.5'/%3E%3C/svg%3E"); }
.tk-simge-ters { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h14'/%3E%3Cpath d='M14 4l4 4-4 4'/%3E%3Cpath d='M20 16H6'/%3E%3Cpath d='M10 12l-4 4 4 4'/%3E%3C/svg%3E"); }
.tk-simge-pasif { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z'/%3E%3Cpath d='M5.7 5.7l12.6 12.6'/%3E%3C/svg%3E"); }
.tk-simge-kilit { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11h14v10H5z'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E"); }
.tk-simge-kilitacik { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11h14v10H5z'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 7.5-2'/%3E%3C/svg%3E"); }
.tk-simge-liste { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6h12'/%3E%3Cpath d='M9 12h12'/%3E%3Cpath d='M9 18h12'/%3E%3Cpath d='M4 6h.01'/%3E%3Cpath d='M4 12h.01'/%3E%3Cpath d='M4 18h.01'/%3E%3C/svg%3E"); }
.tk-simge-menu { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M3 18h18'/%3E%3C/svg%3E"); }
.tk-simge-uyari { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l10 18H2z'/%3E%3Cpath d='M12 10v5'/%3E%3Cpath d='M12 18h.01'/%3E%3C/svg%3E"); }
.tk-simge-pencereler { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 8h12v12H8z'/%3E%3Cpath d='M4 16V4h12'/%3E%3C/svg%3E"); }
.tk-simge-kullanici { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8z'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E"); }
.tk-simge-oturumlar { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8z'/%3E%3Cpath d='M2 21a7 7 0 0 1 14 0'/%3E%3Cpath d='M16 3.5a4 4 0 0 1 0 7'/%3E%3Cpath d='M18 14a6 6 0 0 1 4 7'/%3E%3C/svg%3E"); }
.tk-simge-cikis { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 4H5v16h4'/%3E%3Cpath d='M16 8l4 4-4 4'/%3E%3Cpath d='M20 12H9'/%3E%3C/svg%3E"); }
.tk-simge-dil { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18 9 9 0 0 0 0-18z'/%3E%3Cpath d='M3 12h18'/%3E%3Cpath d='M12 3c3 3 3 15 0 18'/%3E%3Cpath d='M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E"); }
.tk-simge-ekran { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16v14H4z'/%3E%3Cpath d='M4 9h16'/%3E%3C/svg%3E"); }
.tk-simge-ayar { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6z'/%3E%3Cpath d='M12 2v3'/%3E%3Cpath d='M12 19v3'/%3E%3Cpath d='M2 12h3'/%3E%3Cpath d='M19 12h3'/%3E%3Cpath d='M5 5l2 2'/%3E%3Cpath d='M17 17l2 2'/%3E%3Cpath d='M5 19l2-2'/%3E%3Cpath d='M17 7l2-2'/%3E%3C/svg%3E"); }
.tk-simge-yonetim { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3C/svg%3E"); }
.tk-simge-excel { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6v18h12V7z'/%3E%3Cpath d='M14 3v4h4'/%3E%3Cpath d='M9 11l6 6'/%3E%3Cpath d='M15 11l-6 6'/%3E%3C/svg%3E"); }
.tk-simge-resim { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='9' cy='9' r='2'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E"); }
.tk-simge-yukle { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15V3'/%3E%3Cpath d='M7 8l5-5 5 5'/%3E%3Cpath d='M4 15v4a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-4'/%3E%3C/svg%3E"); }
.tk-simge-pdf { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 3H6v18h12V7z'/%3E%3Cpath d='M14 3v4h4'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E"); }
.tk-simge-eposta { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18v12H3z'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.tk-simge-kullanicilar { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8z'/%3E%3Cpath d='M2 21v-1a6 6 0 0 1 12 0v1'/%3E%3Cpath d='M16 3.5a4 4 0 0 1 0 7'/%3E%3Cpath d='M18 14a6 6 0 0 1 4 6v1'/%3E%3C/svg%3E"); }
.tk-simge-kopyala { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 9h11v11H9z'/%3E%3Cpath d='M5 15H4V4h11v1'/%3E%3C/svg%3E"); }
.tk-simge-roller { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 3v6c0 5-3.5 8-8 9-4.5-1-8-4-8-9V6z'/%3E%3Cpath d='M9 12l2 2 4-4'/%3E%3C/svg%3E"); }
.tk-simge-yildiz { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l2.94 5.96 6.56.95-4.75 4.63 1.12 6.54L12 17.5l-5.87 3.08 1.12-6.54L2.5 9.41l6.56-.95z'/%3E%3C/svg%3E"); }
.tk-simge-kolonlar { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18v16H3z'/%3E%3Cpath d='M9 4v16'/%3E%3Cpath d='M15 4v16'/%3E%3C/svg%3E"); }
.tk-simge-yildiz-dolu { --tk-s: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 2.5l2.94 5.96 6.56.95-4.75 4.63 1.12 6.54L12 17.5l-5.87 3.08 1.12-6.54L2.5 9.41l6.56-.95z'/%3E%3C/svg%3E"); }

/* Mesaj kutuları (OAC stusmessage.css, Kararlar 14n): türün renginde yanıp sönen simge ve başlık, ortalı büyük metin, türün renginde
   düğmeler. Silmede "Hayır" dolu, "Evet" çerçeveli (odak "Hayır"da; MesajServisi). Renkler marka ve tema renklerine yakın */
.tk-mesaj { --tk-mesaj-renk: #12805C; }
.tk-mesaj-bilgi { --tk-mesaj-renk: #0F6CBD; }
.tk-mesaj-uyari { --tk-mesaj-renk: #B35900; }
.tk-mesaj-hata, .tk-mesaj-silme { --tk-mesaj-renk: #C4314B; }
.tk-mesaj-basari { --tk-mesaj-renk: #107C41; }

.tk-mesaj .dxbl-message-box-header,
.tk-mesaj .dxbl-message-box-title,
.tk-mesaj .dxbl-message-box-header-icon { color: var(--tk-mesaj-renk) !important; }
.tk-mesaj .dxbl-message-box-header-icon { width: 2rem; height: 2rem; animation: tk-mesaj-son 1s ease-in-out infinite alternate; }
.tk-mesaj .dxbl-message-box-header-icon svg { width: 100%; height: 100%; }
.tk-mesaj .dxbl-message-box-title { font-weight: 600; }

.tk-mesaj .dxbl-message-box-body {
    display: flex !important;
    flex-direction: column;
    justify-content: safe center;
    align-items: safe center;
    min-height: 15vh;
    max-height: 40vh;
    overflow: auto;
    padding: 20px !important;
}
.tk-mesaj .dxbl-message-box-body,
.tk-mesaj .dxbl-message-box-body * { font-size: 1.15rem; white-space: pre-line; text-align: left; max-width: 100%; }
.tk-mesaj-hata .dxbl-message-box-body, .tk-mesaj-silme .dxbl-message-box-body { color: #842029; }

/* Birinci düğme (Evet / Tamam) dolu, ikinci (Hayır) çerçeveli */
.tk-mesaj .dxbl-message-box-footer-primary-button {
    background-color: var(--tk-mesaj-renk) !important;
    border-color: var(--tk-mesaj-renk) !important;
    color: #fff !important;
}
.tk-mesaj .dxbl-message-box-footer-primary-button:hover { opacity: .85; }
.tk-mesaj .dxbl-message-box-footer-secondary-button {
    background-color: transparent !important;
    border-color: var(--tk-mesaj-renk) !important;
    color: var(--tk-mesaj-renk) !important;
}
.tk-mesaj .dxbl-message-box-footer-secondary-button:hover { background-color: var(--tk-mesaj-renk) !important; color: #fff !important; }

/* Silme: tersine; "Hayır" dolu (odakta), "Evet" çerçeveli */
.tk-mesaj-silme .dxbl-message-box-footer-primary-button {
    background-color: transparent !important;
    color: var(--tk-mesaj-renk) !important;
}
.tk-mesaj-silme .dxbl-message-box-footer-primary-button:hover { background-color: var(--tk-mesaj-renk) !important; color: #fff !important; opacity: 1; }
.tk-mesaj-silme .dxbl-message-box-footer-secondary-button { background-color: var(--tk-mesaj-renk) !important; color: #fff !important; }
.tk-mesaj-silme .dxbl-message-box-footer-secondary-button:hover { opacity: .85; }

@keyframes tk-mesaj-son { to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .tk-mesaj .dxbl-message-box-header-icon { animation: none; } }

/* Ekranda bölüm başlığı (ayar ekranlarında alan grupları) ve alan altı açıklama */
.tk-bolum { font-weight: 600; color: var(--tk-lacivert, #0B2545); border-bottom: 1px solid var(--tk-cizgi, #E3E6EB); padding-bottom: 4px; margin-top: 4px; }
/* Yardım açıklaması: alanlardan ayrılsın diye kutu (açık yeşil zemin, solda ana yeşil çizgi, (i) simgesi), italik ve küçük */
.tk-ipucu {
  position: relative;
  margin: 4px 0 8px;
  padding: 6px 10px 6px 32px;
  font-size: .8rem;
  font-style: italic;
  line-height: 1.45;
  color: var(--tk-ikincil-metin, #4A5565);
  background: #EEF6F2;
  border-left: 3px solid var(--tuko-yesil, #12805C);
  border-radius: 4px;
}

.tk-ipucu::before {
  content: "i";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--tuko-yesil, #12805C);
  color: #fff;
  font: normal 700 10px/15px Georgia, serif;
  text-align: center;
}

/* Ekranda veri gösteren ikincil metin (toplam, özellik listesi): kutusuz */
.tk-veri-metni { margin: 0; font-size: .85rem; color: var(--tk-ikincil-metin, #4A5565); }

/* Kullanıcı kartında rol listesi: iki alan genişliğinde, birkaç rol görünür */
.tk-rol-listesi { width: min(716px, 100%); height: 180px; }

/* Kenar menüsü boş (kullanıcının hiçbir ekrana izni yok): açıklama */
.tk-kenar-bos { margin: 12px; font-size: .9rem; color: var(--tk-ikincil-metin, #4A5565); }

/* Rol kartında izin listesi: konu grupları iki sütunda, grup başlığı kalın; alan kayar */
.tk-izinler { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 24px; align-items: start;
    width: min(716px, 100%); max-height: 340px; overflow-y: auto; overflow-x: hidden;
    border: 1px solid var(--tk-cizgi, #E3E6EB); border-radius: 4px; padding: 8px 12px; }
.tk-izin-grubu { margin-bottom: 10px; display: flex; flex-direction: column; gap: 2px; }
.tk-izin-grup-baslik { font-weight: 600; }
.tk-izin { padding-left: 22px; }

/* Üst çubukta veri alanı uyarısı (F0-19): %80 sarı, %100 ve kısıtlı kırmızı; tıklayınca ayrıntı */
.tk-ust button.tk-ust-uyari { font-weight: 600; }
.tk-ust button.tk-ust-uyari-uyari { background: #F5B400; color: #0B2545; }
.tk-ust button.tk-ust-uyari-asim,
.tk-ust button.tk-ust-uyari-kisitli { background: #D93025; color: #fff; }

/* Alt tablo (F1-01): satır listesi, düğmeler, seçili satırın alanları */
.tk-alt-tablo { display: flex; flex-direction: column; gap: 8px; }
.tk-alt-tablo-dugmeler { display: flex; gap: 8px; }
.tk-alt-tablo-duzenleme { border-top: 1px solid var(--tk-cizgi, #E3E6EB); padding-top: 8px; }
/* Satır alanlarının ızgarası içeriği kadar: DevExpress ızgarası yüzde 100 yükseklik alır; alt tablo ızgara hücresindeyken (asorti) bu
   yüzde düzenleme bölümünün yüksekliğine (onay düğmeleri dahil) çözülüp ızgarayı uzatıyor, düğmeler alttaki metnin üstüne taşıyordu */
.tk-alt-tablo-duzenleme > .dxbl-gridlayout { height: auto; }
/* Alt tablonun toplam satırı (AltTablo.Toplamlar): kolonun altında, belirgin */
.tk-tablo .dxbl-grid-footer-row > td {
  background: var(--tuko-zemin, #F4F7F6);
  border-top: 2px solid var(--tuko-cizgi, #E3E6EB);
  color: var(--tuko-lacivert, #0B2545);
  font-weight: 600;
}

/* Varyant matrisi (F1-08): satır değerleri x sütun değerleri; açılmış varyantın kodu, açılmamışta onay kutusu */
.tk-matris { border-collapse: collapse; margin-top: 8px; }
.tk-matris th, .tk-matris td { border: 1px solid var(--tk-cizgi, #E3E6EB); padding: 4px 10px; text-align: center; font-size: .85rem; }
.tk-matris th { background: var(--tk-zemin, #F4F7F6); font-weight: 600; }
.tk-matris-varyant { color: var(--tk-ikincil-metin, #4A5565); font-size: .8rem; }
.tk-matris-islem { margin-top: 12px; }
/* Seçim kutusunun yanında, kutuyla aynı hizada; metin tek satır */
.tk-matris-dugme { margin-top: 1.55rem; white-space: nowrap; }

/* Ekranın hata metni (alan hatası): alt çubuğun ortasında, sığmazsa kısaltılır (tamamı ipucunda); alan değişince kalkar */
.tk-ekran-alt { position: relative; }
.tk-ekran-alt-hata {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: #c50f1f; font-size: .85rem; font-weight: 600;
}

/* Alt tablo satır onayı: düğmeler satırın alanlarının altında; onaysız (yeni / değişmiş) satır tabloda işaretli */
.tk-alt-tablo-onay { display: flex; gap: 6px; margin-top: 8px; }
.tk-satir-onaysiz td { font-style: italic; }
.tk-satir-onaysiz:not(.dxbl-grid-focused-row) td { background-color: #FFF8E1 !important; color: var(--tk-metin, #1F2937) !important; }
/* Seçili onaysız satır: tablonun seçim rengi kalır (yazı okunur), solda sarı şerit */
.tk-satir-onaysiz.dxbl-grid-focused-row td:first-child { box-shadow: inset 4px 0 0 #F2B705; }

/* Varyant önizlemesi: matrisin altında, kodlar düzenlenir */
.tk-varyant-onizleme { margin-top: 12px; }
.tk-varyant-onizleme .tk-matris td { text-align: left; }

/* Açılır düğme listeleri (üst çubuktaki açık pencereler, dil...) üst çubuğun (z 10003) üstünde: DevExpress katmanı 1060 veriyordu,
   liste çubuğun alt kenarının altında kalıyordu */
dxbl-popup-cell:has(.dxbl-btn-dropdown-popup) { z-index: 10010 !important; }

/* Üst çubuktaki açılır düğmenin listesi düğmenin devamı gibi: lacivert zemin, beyaz yazı, çubuğun alt kenarına yapışık (düğme çubukta
   8 px boşlukla durur), üst köşeler düz; üzerine gelince açık yeşil vurgu (lacivert zeminde ana yeşilin koyu zemin tonu) */
.dxbl-btn-dropdown-popup {
  margin-top: 8px;
  min-width: 240px;
  background: var(--tuko-lacivert, #0B2545) !important;
  border: none !important;
  border-radius: 0 0 6px 6px !important;
  box-shadow: 0 6px 16px rgba(11, 37, 69, .35) !important;
  overflow: hidden;
}

.dxbl-btn-dropdown-popup .dxbl-dropdown-body,
.dxbl-btn-dropdown-popup .dxbl-btn-dropdown-list { background: transparent !important; padding: 4px 0; }

.dxbl-btn-dropdown-popup .dxbl-btn-dropdown-item .dxbl-btn {
  background: transparent !important;
  border: none !important;
  color: #fff !important;
  justify-content: flex-start;
  border-radius: 0;
  padding: 7px 14px;
}

.dxbl-btn-dropdown-popup .dxbl-btn-dropdown-item .dxbl-btn:hover,
.dxbl-btn-dropdown-popup .dxbl-btn-dropdown-item .dxbl-btn:focus-visible {
  background: rgba(43, 182, 115, .22) !important;
  color: #fff !important;
}

.dxbl-btn-dropdown-popup .dxbl-btn-dropdown-item-separator { border-color: rgba(255, 255, 255, .15) !important; background: rgba(255, 255, 255, .15); }

/* Liste açıkken düğme de vurgulu: liste ile tek parça görünsün */
.tk-ust .tk-acik-pencereler[aria-expanded="true"],
.tk-ust .tk-acik-pencereler.dxbl-active { background: rgba(255, 255, 255, .12) !important; border-radius: 6px 6px 0 0; }

/* Tıklanabilen her şeyde el imleci: düğmeler, araç çubuğu, menü, sekmeler, açılır liste öğeleri, onay kutuları, seçim listesi satırları;
   kapalı düğmede varsayılan imleç */
button:not(:disabled), .dxbl-btn:not(:disabled), [role="button"], [role="tab"], [role="menuitem"], [role="option"],
.dxbl-toolbar-item, .dxbl-menu-item, .dxbl-tabs-item, .dxbl-checkbox, .dxbl-checkbox label, .dxbl-toggle,
.dxbl-btn-dropdown-item, .dxbl-grid .dxbl-grid-table > tbody > tr, .tk-kenar a, .tk-kenar [role="treeitem"] { cursor: pointer; }
button:disabled, .dxbl-btn:disabled, .dxbl-disabled { cursor: default; }
/* DevExpress sekme ve tablo satırında kendi imlecini veriyor: içindekilerle birlikte el */
.dxbl-tabs-item, .dxbl-tabs-item *, .dxbl-grid .dxbl-grid-table > tbody > tr > td { cursor: pointer !important; }

/* Ekrandaki sekmeler: başlıklarla sekmenin ilk alanı arasında boşluk */
.tk-ekran .dxbl-tabs-content { padding-top: 14px; }

/* Belge altı toplamlar (F1-11): sağa yaslı tutarlar, net vurgulu */
.tk-belge-toplam { border-collapse: collapse; min-width: 260px; margin-left: auto; font-variant-numeric: tabular-nums; }
.tk-belge-toplam th { text-align: left; font-weight: 400; color: var(--tk-ikincil-metin, #4A5565); padding: 2px 16px 2px 0; }
.tk-belge-toplam td { text-align: right; padding: 2px 0; }
.tk-belge-toplam-vergi th { padding-left: 12px; }
.tk-belge-toplam-net th, .tk-belge-toplam-net td { font-weight: 600; font-size: 1.1em; border-top: 1px solid var(--tk-cizgi, #E3E6EB); padding-top: 6px; }

/* Belgede varyant girişi (F1-11): matris, asorti, fiyat */
.tk-varyant-giris { display: flex; flex-direction: column; gap: 12px; padding: 12px; height: 100%; box-sizing: border-box; }
.tk-varyant-matris { overflow: auto; flex: 1 1 auto; }
.tk-varyant-matris table { border-collapse: collapse; }
.tk-varyant-matris th, .tk-varyant-matris td { padding: 3px 6px; text-align: center; border-bottom: 1px solid var(--tk-cizgi, #E3E6EB); }
.tk-varyant-matris tbody th { text-align: left; font-weight: 500; }
.tk-varyant-hucre { width: 84px; }
.tk-varyant-yok { color: var(--tk-ikincil-metin, #4A5565); }
.tk-varyant-toplam { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.tk-varyant-asorti, .tk-varyant-alt { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.tk-varyant-asorti label, .tk-varyant-alt label { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.tk-varyant-dugmeler { display: flex; gap: 8px; margin-left: auto; }
.tk-belge-arac { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
/* F1-18: aynı ızgara hücresinde yan yana iki alan (belge no + dosya) */
.tk-yan-yana { display: flex; align-items: flex-end; gap: 12px; }

/* Sayı kutusu: sayı sağa dayalı (Belge_Tasarimi B-20; tablodaki sayı hücreleriyle aynı) */
.tk-sayi-kutusu input { text-align: right; }

/* Editörlerin açılır listeleri (seçim kutusu, tarih) açılır pencerelerin (DevExpress açılır pencereye 11000+ verir) üstünde: liste 1160 alır,
   açılır penceredeki editörün listesi pencerenin arkasında kalıyordu */
dxbl-popup-cell:has(.dxbl-edit-dropdown) { z-index: 20000 !important; }
/* Liste penceresindeki Kolonlar menüsü (B-36) ve kolon filtresi menüsü (B-37) de */
dxbl-popup-cell:has(.tk-kolonlar-menu), dxbl-popup-cell:has(.dxbl-filter-menu-dropdown-root) { z-index: 20000 !important; }
/* Mesaj kutuları (IMesajServisi, DevExpress diyalog servisi, tk-mesaj) her şeyin üstünde (Katmanlar): DevExpress mesaja 1050 veriyor, tıklanan /
   sürüklenen pencere öne alınınca 1060 olup mesajı arkada bırakıyordu (8 Kasım 2026) */
dxbl-popup-cell:has(.tk-mesaj) { z-index: 30000 !important; }

/* Satır satır giriş tablosu (Belge_Tasarimi B-02..B-15): üstte yeni satır (*), düzenlenen satır vurgulu, hücreler girdi; hatalı hücre
   kırmızı çerçeveli (metni ipucunda), hatalı satır başında ! */
.tk-satir-tablosu { width: 0; min-width: 100%; box-sizing: border-box; border: 1px solid var(--tk-cizgi, #E3E6EB); border-radius: 4px; overflow: auto;
  max-height: 480px; min-height: 280px;
  background: var(--bs-body-bg, #fff); }
.tk-satir-tablosu table { border-collapse: collapse; table-layout: fixed; font-size: 0.875rem; }
.tk-satir-tablosu thead th { position: sticky; top: 0; z-index: 1; background: var(--tk-zemin, #F4F7F6); font-weight: 600; text-align: left;
  padding: 4px 6px; border-bottom: 1px solid var(--tk-cizgi, #E3E6EB); border-right: 1px solid var(--tk-cizgi, #E3E6EB); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.tk-satir-tablosu td { padding: 0 6px; height: 28px; border-bottom: 1px solid var(--tk-cizgi, #E3E6EB); border-right: 1px solid var(--tk-cizgi, #E3E6EB);
  white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; cursor: default; }
.tk-satir-tablosu .tk-sag { text-align: right; }
.tk-satir-tablosu .tk-satir-isaret { width: 24px; text-align: center; color: var(--tk-ikincil-metin, #4A5565); padding: 0; }
.tk-satir-tablosu tr.tk-satir-yeni td { background: #FAFCFB; }
.tk-satir-tablosu tr.tk-satir-aktif td { background: #E8F3EE; }
.tk-satir-tablosu tr.tk-satir-hatali .tk-satir-isaret { color: var(--bs-danger, #dc3545); font-weight: 700; }
.tk-satir-tablosu td.tk-hucre-hata { box-shadow: inset 0 0 0 2px var(--bs-danger, #dc3545); }

/* Satır tablosunda kendi editörlerimiz (Hucre=true): başlıksız, hücreyi doldurur, satır yüksekliğine sığar */
.tk-satir-tablosu td.tk-hucre-duzenle { padding: 1px 2px; }
.tk-satir-tablosu .tk-hucre-editor { margin: 0; gap: 0; }
.tk-satir-tablosu .tk-hucre-editor .dxbl-text-edit { min-height: 26px; height: 26px; }
.tk-satir-tablosu .tk-hucre-editor input { font-size: 0.875rem; }
.tk-satir-tablosu td.tk-sag .tk-hucre-editor input { text-align: right; }

/* Kolon genişliği tutamağı (Belge_Tasarimi B-26): başlığın sağ kenarı sürüklenir */
.tk-kolon-tutamak { position: absolute; top: 0; right: -3px; bottom: 0; width: 7px; cursor: col-resize; z-index: 2; touch-action: none; }
.tk-kolon-tutamak:hover, .tk-kolon-suruklenir .tk-kolon-tutamak:active { background: var(--tk-ana-yesil, #12805C); opacity: .45; }
.tk-kolon-suruklenir, .tk-kolon-suruklenir * { cursor: col-resize !important; user-select: none; }

/* Açılır pencere içeriği ve alt düğmeleri (kolon seçimi, satır ayrıntısı) */
.tk-pencere-icerik { display: flex; flex-direction: column; gap: 12px; padding: 12px; height: 100%; box-sizing: border-box; }
/* Düğmeler pencerenin dibinde; içerik pencereyi doldursa da üstünde en az 16 px boşluk (9 Kasım 2026) */
.tk-pencere-dugmeler { display: flex; gap: 8px; justify-content: flex-end; margin-top: auto; padding-top: 16px; }
.tk-pencere-dugmeler .tk-pencere-sayi { margin-right: auto; align-self: center; }
/* İptal edilen belgede iptal nedeni (B-51): genel iskontonun altında */
.tk-iptal-nedeni { margin-top: 6px; }
/* Belgenin dibi: genel iskonto, altında açıklama (9 Kasım 2026) */
.tk-belge-dip { display: flex; flex-direction: column; align-items: stretch; gap: 4px; max-width: 640px; }
.tk-belge-dip > .tk-alan { width: 100%; }
/* Açılır penceredeki başlıklı alan (neden penceresi açıklaması) */
.tk-pencere-alan { display: flex; flex-direction: column; gap: 2px; }
/* Sık pencere (parti / seri): öğeler arası daha az boşluk; ikincil not kutusuz küçük yazı */
.tk-pencere-icerik.tk-sik { gap: 8px; }
/* Form penceresi (alanlar, altta düğmeler): içerik pencereden uzunsa kutu uzar, pencere kaydırır; alt boşluk korunur (9 Kasım 2026) */
.tk-pencere-icerik.tk-pencere-form { height: auto; min-height: 100%; flex-shrink: 0; }
.tk-not { font-size: 0.8rem; color: var(--tk-ikincil-metin, #4A5565); margin-top: -4px; }

/* Seri numaraları (Belge_Tasarimi B-55): satır başına bir seri, tablo çizgili; tekrar eden seri kırmızı zeminli */
.tk-seri-baslik { display: flex; align-items: center; gap: 12px; }
.tk-seri-baslik .tk-secim-sayi { margin-right: 0; }
.tk-seri-tablosu { flex: 1; min-height: 90px; overflow: auto; border: 1px solid var(--tuko-cizgi, #E3E6EB); border-radius: 4px; }
.tk-seri-liste { border-collapse: collapse; width: 100%; }
.tk-seri-liste th { position: sticky; top: 0; z-index: 1; background: var(--tuko-zemin, #F4F7F6); text-align: left; font-weight: 600; padding: 4px 8px;
  border-bottom: 1px solid var(--tuko-cizgi, #E3E6EB); }
.tk-seri-liste td { padding: 0; border-bottom: 1px solid var(--tuko-cizgi, #E3E6EB); }
.tk-seri-liste .tk-seri-sira { width: 44px; padding: 0 8px; text-align: right; color: var(--tk-ikincil-metin, #4A5565);
  border-right: 1px solid var(--tuko-cizgi, #E3E6EB); }
.tk-seri-girdi { width: 100%; box-sizing: border-box; border: 0; outline: 0; padding: 4px 8px; font: inherit; background: transparent; }
.tk-seri-liste tr:focus-within td { background: rgba(18, 128, 92, 0.08); }
.tk-seri-liste tr.tk-seri-tekrar td { background: #fdecea; }
/* Parti listesi (F1-13 4. parça): çıkışta deponun partileri, tıklanan seçilir */
.tk-parti-tablosu { flex: 0 0 auto; max-height: 160px; min-height: 0; margin-bottom: 8px; }
.tk-parti-tablosu td { padding: 4px 8px; cursor: pointer; }
.tk-parti-tablosu td.tk-sag, .tk-parti-tablosu th.tk-sag { text-align: right; }
.tk-parti-tablosu tr:hover td { background: rgba(18, 128, 92, 0.06); }
.tk-parti-tablosu tr.tk-parti-secili td { background: rgba(18, 128, 92, 0.14); font-weight: 600; }

/* Seçim listesinin bilgi satırı (ör. kaynak satırlarında seçilen belge) */
.tk-secim-bilgi { margin: 6px 8px 0; }

/* Başlıklı açılır pencere (Belge_Tasarimi B-44): seçim listesinin başlığı gibi sade; beyaz zemin, lacivert kalın başlık, alt çizgi, kapatma
   düğmesi; pencere başlıktan sürüklenir */
.dxbl-popup.tk-acilir .dxbl-popup-header {
  background-color: #fff !important;
  color: var(--tuko-lacivert, #0B2545) !important;
  padding: 6px 8px 6px 12px !important;
  min-height: 0;
  border-bottom: 1px solid var(--tuko-cizgi, #E3E6EB);
}

.dxbl-popup.tk-acilir .dxbl-popup-header,
.dxbl-popup.tk-acilir .dxbl-popup-header * {
  font-size: var(--dxbl-font-size, 0.875rem) !important;
  font-weight: 600;
  line-height: 1.4;
}

.dxbl-popup.tk-acilir .dxbl-popup-header .dxbl-btn,
.dxbl-popup.tk-acilir .dxbl-popup-header .dxbl-btn .dxbl-image {
  color: var(--tk-ikincil-metin, #4A5565) !important;
  fill: currentColor;
}

.dxbl-popup.tk-acilir .dxbl-popup-header .dxbl-btn:hover {
  background-color: rgba(11, 37, 69, 0.08) !important;
}
.tk-kolon-secimi { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 16px; overflow: auto; }
.tk-kolon-secimi-satir { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.tk-kalem-tablosu { border-collapse: collapse; width: 100%; }
.tk-kalem-tablosu th { text-align: left; font-weight: 600; padding: 4px 6px; border-bottom: 1px solid var(--tk-cizgi, #E3E6EB); white-space: nowrap; }
.tk-kalem-tablosu td { padding: 3px 6px; vertical-align: middle; }
.tk-kalem-tablosu th.tk-sag, .tk-kalem-tablosu td.tk-sag { text-align: right; }
/* Değiştirilemeyen kalem (brüt, satırda genel kalemin payı, genelde satırların toplamı; B-34) ve net tutar */
.tk-kalem-tablosu tr.tk-kalem-sabit td { color: var(--tk-ikincil-metin, #4A5565); font-style: italic; background: var(--tk-zemin, #F4F7F6); height: 32px; }
.tk-kalem-tablosu tr.tk-kalem-toplam td { font-weight: 600; border-top: 1px solid var(--tk-cizgi, #E3E6EB); height: 32px; }
.tk-kalem-tablosu tr.tk-kalem-vergi td { color: var(--tk-ikincil-metin, #4A5565); height: 28px; }
.tk-ipucu.tk-uyari { color: #B54708; }
.tk-ayrinti-kisa { width: 150px; }
.tk-neden-kutusu { width: 340px; max-width: 100%; }
/* Ayrıntı açan hücre (iskonto / masraf toplamı, kur; B-30) */
.tk-satir-tablosu td.tk-hucre-ayrinti { cursor: pointer; color: var(--tk-ana-yesil, #12805C); text-decoration: underline dotted; text-underline-offset: 3px; }
.tk-satir-tablosu td.tk-hucre-ayrinti:empty::after, .tk-satir-tablosu tr.tk-satir-aktif td.tk-hucre-ayrinti:empty::after { content: "…"; color: var(--tk-ikincil-metin, #4A5565); text-decoration: none; }

/* Kolonlar düğmesi (B-30): araç satırının en sağında, lacivert (başka bir amacı olduğu belli olsun), menü düğmeye bitişik açılır */
.tk-belge-arac .tk-arac-sag { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tk-belge-arac.tk-arac-tek { flex-wrap: nowrap; }
.tk-belge-arac .dxbl-btn { white-space: nowrap; }
/* Araç satırındaki bilgi kutusu (sayım aşaması) düğmelerle aynı hizada: kutunun alt / üst boşluğu yok, dikeyde ortalı */
.tk-belge-arac > .tk-ipucu { margin: 0; align-self: center; }
.tk-kolonlar-dugme.dxbl-btn, .tk-kolonlar-dugme .dxbl-btn { background: var(--tk-lacivert, #0B2545) !important; border-color: var(--tk-lacivert, #0B2545) !important; color: #fff !important; }
.tk-kolonlar-dugme .tk-simge, .tk-kolonlar-dugme.dxbl-btn .tk-simge { background-color: #fff; }
.tk-kolonlar-menu { margin-top: 0 !important; transform: none; }
.tk-kolonlar-menu .dxbl-dropdown-dialog, .tk-kolonlar-menu.dxbl-dropdown { margin-top: 0 !important; border-top-left-radius: 0; border-top-right-radius: 0; }

/* Hata sınırı (HataSiniri): yakalanmayan hatada pencere içeriği yerine kısa metin ve "Yeniden dene" */
.tk-hata-siniri { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 16px; color: var(--tk-ikincil-metin, #4A5565); }

/* Beklenmeyen hata penceresi (HataPenceresi; ekart StusHataPopup'tan): kırmızı simgeli özet, hata numarası, kutulu ayrıntı */
.tk-hata-ozet { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.tk-hata-ozet .tk-simge { width: 28px; height: 28px; flex: none; background-color: #C4314B; }
.tk-hata-no { margin-top: 4px; font-size: 0.85rem; color: var(--tk-ikincil-metin, #4A5565); }
.tk-hata-ayrinti-dugme.dxbl-btn { align-self: flex-start; padding: 0; min-height: 0; }
.tk-hata-ayrinti { white-space: pre-wrap; max-height: 160px; overflow: auto; padding: 8px 12px; border-left: 3px solid #C4314B;
  background: rgba(196, 49, 75, 0.06); font-family: Consolas, monospace; font-size: 0.8rem; }
/* Satır süzgeci (Belge_Tasarimi B-48): süzgeç açıkken tablonun kenarı ana yeşil, arama kutusu ve satır sayısı araç satırında */
.tk-satir-tablosu.tk-suzgecli { border-color: var(--tk-ana-yesil, #12805C); box-shadow: inset 0 0 0 1px var(--tk-ana-yesil, #12805C); }
.tk-satir-ara { width: 200px; }
.tk-suzgec-sayisi { color: var(--tk-ana-yesil, #12805C); font-weight: 600; white-space: nowrap; }
/* Fiyat değişikliği (F1-09): toplu değişiklik satırı; etiketler düz metin, sayı kutuları dar */
.tk-toplu { align-items: center; }
.tk-arac-etiket { font-size: 0.85rem; color: var(--tk-ikincil-metin, #4A5565); white-space: nowrap; }
.tk-toplu-oran { width: 100px; }
.tk-toplu-hane { width: 70px; }

/* Kolon düzenli satır tablosu (8 Kasım 2026): üstte sağda "Kolonlar" menüsü; bütün kolonların genişliği belliyse sondaki dolgu kolonu kalan
   alanı alır (sabit genişlikli kolonlar yayılmaz). Araç satırı ile tablo arasında boşluk */
.tk-tablo-ust { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-bottom: 4px; }
.tk-satir-tablosu th.tk-dolgu, .tk-satir-tablosu td.tk-dolgu { border-right: none; padding: 0; }
.tk-alt-bosluk { margin-bottom: 8px; }

/* Açılır pencerenin gövdesi pencerenin yüksekliğiyle sınırlı (8 Kasım 2026): gövde sınırsızken seçim listesi bütün satırlarıyla uzuyor,
   pencerenin kendisi kayıyor, başlık ve arama kutusu yukarı gidiyordu. Liste kendi içinde kayar; uzun içerikli pencere gövdesi kayar */
.tk-acilir .dxbl-modal-content { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.tk-acilir .dxbl-modal-body { flex: 1 1 auto; min-height: 0; overflow: auto; }

/* Uzun, tek sayfalık listeler (8 Kasım 2026): DxGrid VirtualScrollingEnabled="true" (sayfalama yok, yalnız görünen satırlar çizilir,
   kendi içinde kayar). Sanal kaydırma gridin sabit yüksekliğini ister: pencerenin içinde kalan alan kadar, en az 240 px */
.tk-sanal-tablo { height: min(65vh, 640px); min-height: 240px; }

/* Ekranda sanal kaydırmalı liste varsa (fide SayimEmriView: alan satırları Height="auto", liste satırı Height="1fr"): üstteki alanlar
   kendi yüksekliğinde, liste pencere gövdesinin kalanını doldurur; pencere değil liste kayar */
.tk-ekran-govde:has(> .tk-ekran-form > .tk-sanal-tablo) > .tk-ekran-form { height: 100%; display: flex; flex-direction: column; }
.tk-ekran-form > .tk-sanal-tablo { flex: 1 1 0; height: auto; min-height: 240px; }

/* Üstteki alanlardan ayıran boşluk (ör. başlık alanlarının altındaki araç satırı). tk-ust-bosluk üst çubuktaki esnek boşluktur, boşluk vermez */
.tk-ust-ara { margin-top: 14px; }

/* Cari ekstresi (F1-14): seçim alanları, özet (devir, bakiyeler) ve tablo */
.tk-ekstre, .tk-ekran-form .tk-ekstre { display: flex; flex-direction: column; justify-content: flex-start; gap: 10px; }
/* Ödeme satırlarının altı: ödenen, net, kalan (F1-20) */
.tk-odeme-toplam { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; }
.tk-ekstre-ozet { display: flex; flex-wrap: wrap; gap: 8px 32px; color: var(--tk-ikincil-metin, #4A5565); }
.tk-ekstre-ozet strong { color: var(--tuko-lacivert, #0B2545); }
.tk-ekran-govde:has(> .tk-ekran-form > .tk-ekstre) > .tk-ekran-form { height: 100%; display: flex; flex-direction: column; }
.tk-ekran-form > .tk-ekstre { flex: 1 1 0; min-height: 0; }
.tk-ekstre > .tk-sanal-tablo { flex: 1 1 0; height: auto; min-height: 200px; }
.tk-ekstre > .dxbl-gridlayout { flex: 0 0 auto; height: auto; }
/* Cari kapama (F1-22): açık borçlar ve alacaklar yan yana, altında eşleştirme ve eşleşmeler */
.tk-kapama-kalemler { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; flex: 0 0 auto; }
.tk-kapama-kalemler .tk-tablo { height: 240px; }
.tk-kapama-islem { display: flex; align-items: flex-end; gap: 12px; flex: 0 0 auto; }
@media (max-width: 900px) { .tk-kapama-kalemler { grid-template-columns: 1fr; } }

/* Fatura / sevk bilgileri penceresi (F1-16): iki kolonlu alanlar, geniş alan iki kolonu kaplar; salt okunur muhatap metin olarak */
.tk-eklenti { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.tk-eklenti > label { display: flex; flex-direction: column; gap: 2px; }
.tk-eklenti > label > span:first-child { color: var(--tk-ikincil-metin, #4A5565); font-size: 0.85em; }
.tk-eklenti > .tk-eklenti-genis { grid-column: 1 / -1; }
.tk-eklenti-salt > label > span:last-child { min-height: 1.4em; }
.tk-eklenti-baslik { margin: 12px 0 6px; font-weight: 600; color: var(--tuko-lacivert, #0B2545); }

/* e-Belge penceresi ve görünümü (F2-07): durum renkli, e-posta adresi + düğme yan yana; görünüm çerçevesi pencerenin kalanını doldurur */
.tk-ebelge-dugmeler { justify-content: flex-start; margin-top: 12px; padding-top: 0; flex-wrap: wrap; }
.tk-ebelge-eposta { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.dxbl-text-edit.tk-ebelge-durum-hata input { color: #C62828; font-weight: 600; }
.tk-ebelge-hucre-hata { color: #C62828; font-weight: 600; }
.tk-ebelge-hucre-tamam { color: var(--tuko-yesil, #12805C); font-weight: 600; }
.dxbl-grid-focused-row .tk-ebelge-hucre-hata, .dxbl-grid-focused-row .tk-ebelge-hucre-tamam { color: inherit; }
.dxbl-text-edit.tk-ebelge-durum-tamam input { color: var(--tuko-yesil, #12805C); font-weight: 600; }
.tk-ebelge-gorunum { display: flex; flex-direction: column; height: 100%; gap: 8px; }
.tk-ebelge-gorunum-arac { display: flex; align-items: center; gap: 8px; }
.tk-ebelge-gorunum-arac > .tk-arac-sag { margin-left: auto; display: flex; gap: 8px; }
.tk-ebelge-cerceve { flex: 1 1 auto; width: 100%; min-height: 400px; border: 1px solid var(--tuko-cizgi, #E3E6EB); background: #fff; }

/* Ekran içindeki açılır düğme menüsü (9 Kasım 2026, ör. belgede "Belge seç"): üst çubuğun lacivert menüsü değil, açık zemin; DropDownCssClass="tk-acik-menu" */
.tk-acik-menu.dxbl-btn-dropdown-popup, .tk-acik-menu .dxbl-btn-dropdown-popup {
  margin-top: 2px;
  min-width: 160px;
  background: #fff !important;
  border: 1px solid var(--tuko-cizgi, #E3E6EB) !important;
  border-radius: 6px !important;
  box-shadow: 0 6px 16px rgba(11, 37, 69, .15) !important;
}
.tk-acik-menu .dxbl-btn-dropdown-item .dxbl-btn { color: var(--tuko-lacivert, #0B2545) !important; }
.tk-acik-menu .dxbl-btn-dropdown-item .dxbl-btn:hover,
.tk-acik-menu .dxbl-btn-dropdown-item .dxbl-btn:focus-visible { background: rgba(18, 128, 92, .10) !important; color: var(--tuko-lacivert, #0B2545) !important; }

/* F1-24: dosya seçimi (Excel'den açılış): tarayıcının dosya girdisi gizli, düğme görünümlü etiket açar; hata metni kırmızı */
.tk-dosya-sec { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; margin: 4px 0 8px; }
.tk-dosya-sec input[type=file] { display: none; }
.tk-hata-metni { color: #B42318; }

/* Satır grubu (11 Kasım 2026, varyant girişi): başlık satırı tıklanınca daralır / açılır, grubun satırları girintili */
.tk-satir-tablosu tr.tk-satir-grup td {
    background: var(--tk-zemin, #F4F7F6);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

.tk-satir-tablosu tr.tk-satir-alt td:nth-child(2) {
    padding-left: 18px;
}

/* Konfigürasyon (F1-25b): Seçenekler penceresi soruları ve cevabın renk kutusu (kartela / cevap rengi) */
.tk-konfig-sorular {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.tk-konfig-soru {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tk-konfig-hatali .tk-alan-baslik {
  color: #c50f1f;
}

.tk-konfig-coklu {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.tk-konfig-sayi {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tk-renk-kutu {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 6px;
  border: 1px solid var(--tuko-cizgi, #E3E6EB);
  border-radius: 3px;
  vertical-align: -2px;
}

/* Renk penceresi: kod kutusu ve büyük önizleme */
.tk-renk-kod {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.tk-renk-onizleme {
  width: 28px;
  height: 28px;
  margin-right: 0;
}

/* F2-09: gelen e-Belge penceresinin satır tablosu (irsaliyede kabul edilen miktar kutusu) */
.tk-gelen-satirlar { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 8px; }
.tk-gelen-satirlar th, .tk-gelen-satirlar td { border-bottom: 1px solid var(--tk-cizgi, #E3E6EB); padding: 3px 6px; text-align: left; vertical-align: middle; }
.tk-gelen-satirlar th { font-weight: 600; color: var(--tk-ikincil, #4A5565); }
.tk-gelen-satirlar .tk-sag { text-align: right; }
.tk-gelen-satirlar .tk-gelen-kabul { width: 130px; }

/* Logo yükleme alanı (17 Kasım 2026, Ticari ayarlar): önizleme + sürükle-bırak; DevExpress DxFileInput'un dış bırakma alanı */
.tk-logo-alani {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 560px;
  padding: 12px 14px;
  border: 1px dashed var(--tk-cizgi, #E3E6EB);
  border-radius: 6px;
  background: #FAFBFC;
  transition: border-color .15s, background-color .15s;
}
.tk-logo-alani.tk-logo-surukleniyor {
  border-color: var(--tk-ana-yesil, #12805C);
  background: #EEF6F2;
}
.tk-logo-onizleme {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 160px;
  height: 72px;
  border: 1px solid var(--tk-cizgi, #E3E6EB);
  border-radius: 4px;
  background: #FFFFFF;
}
.tk-logo-onizleme img { max-width: 148px; max-height: 60px; }
.tk-logo-onizleme .tk-simge { width: 28px; height: 28px; opacity: .35; }
.tk-logo-metin { display: flex; flex-direction: column; gap: 4px; }
.tk-logo-metin .tk-ikincil { color: var(--tk-ikincil-metin, #4A5565); font-size: .85rem; }
.tk-logo-dugmeler { display: flex; gap: 8px; margin-top: 4px; }

/* F3-12: işlendikten sonra değişen belge (muhasebeye işlendi listesi) */
.tk-isaret-degisti {
  background-color: #fff4e5;
}
