/* Kuika ortak bilesenleri: bildirim (toast), onay diyalogu, tooltip, form dogrulama, select temizleme.
   Hem _Layout hem giris sayfalari yukler. Olcumler: scratchpad kuika/ortak/*.json */
/* =====================================================================
   ORTAK BILESENLER (Kuika olcumleri: kuika/ortak/*.json)
   ===================================================================== */

/* ---------- Bildirim (toast): sağ alt, beyaz kart, renkli simge + başlık + metin, kalan süre çubuğu ----------
   Başarılı yeşil · Hata kırmızı · Uyarı turuncu · Bilgi mavi. Hepsi süre sonunda kendiliğinden kapanır
   (üzerine gelince durur, ayrılınca kaldığı yerden devam eder); tıklayınca hemen kapanır. */
#sempord-alert-stack {
  position: fixed;
  top: auto;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  left: auto;
  z-index: 20050;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: 360px;
  max-width: calc(100vw - 32px);
  pointer-events: none;
}
#sempord-alert-stack .sempord-alert {
  --bil-renk: #2563eb;
  --bil-acik: #eff6ff;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
  max-width: none;
  margin: 10px 0 0;
  padding: 12px 40px 14px 12px;
  overflow: hidden;
  border: 1px solid rgba(16, 53, 87, 0.08);
  border-left: 0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 34px -10px rgba(16, 53, 87, 0.32), 0 4px 10px -4px rgba(16, 53, 87, 0.12);
  color: #1f2937;
  font-family: var(--k-sys-font, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  text-align: left;
  cursor: pointer;
  pointer-events: auto;
}
#sempord-alert-stack .sempord-alert--success { --bil-renk: #16a34a; --bil-acik: #ecfdf3; background: #fff; }
#sempord-alert-stack .sempord-alert--error { --bil-renk: #dc2626; --bil-acik: #fef2f2; background: #fff; }
#sempord-alert-stack .sempord-alert--warning { --bil-renk: #d97706; --bil-acik: #fffbeb; background: #fff; }
#sempord-alert-stack .sempord-alert--info { --bil-renk: #0057a0; --bil-acik: #eff6ff; background: #fff; }
/* Sol kenarda ince renk şeridi */
#sempord-alert-stack .sempord-alert::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--bil-renk);
}
#sempord-alert-stack .sempord-alert-ic {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 4px;
  border-radius: 50%;
  background: var(--bil-acik);
  color: var(--bil-renk);
}
#sempord-alert-stack .sempord-alert-ic svg { display: block; width: 18px; height: 18px; }
#sempord-alert-stack .sempord-alert-content { flex: 1 1 auto; min-width: 0; width: auto; padding: 1px 0 0; }
#sempord-alert-stack .sempord-alert-title {
  margin: 0 0 2px;
  color: #111827;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 18px;
}
#sempord-alert-stack .sempord-alert-text {
  display: block;
  max-width: none;
  margin: 0;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 18px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
#sempord-alert-stack .sempord-alert-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
#sempord-alert-stack .sempord-alert-close:hover { background: #f3f4f6; color: #374151; }
#sempord-alert-stack .sempord-alert-close svg { display: block; width: 14px; height: 14px; }
/* Kalan süre çubuğu (üzerine gelince durur) */
#sempord-alert-stack .sempord-alert-sure {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 4px;
  height: 3px;
  background: var(--bil-acik);
}
#sempord-alert-stack .sempord-alert-sure > span {
  display: block;
  height: 100%;
  background: var(--bil-renk);
  opacity: 0.55;
  transform-origin: 0 50%;
  animation: kBildirimSure var(--bil-sure, 4s) linear forwards;
}
#sempord-alert-stack .sempord-alert:hover .sempord-alert-sure > span { animation-play-state: paused; }
@keyframes kBildirimSure { from { transform: scaleX(1); } to { transform: scaleX(0); } }
/* Giriş / çıkış */
#sempord-alert-stack .sempord-alert.is-in { animation: kBildirimGir 0.32s cubic-bezier(0.21, 1.02, 0.73, 1) both; }
#sempord-alert-stack .sempord-alert.is-out { animation: kBildirimCik 0.22s ease-in both; pointer-events: none; }
#sempord-alert-stack .sempord-alert.is-kapan {
  max-height: 0 !important;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  transition: max-height 0.18s ease, margin 0.18s ease, padding 0.18s ease;
}
@keyframes kBildirimGir {
  from { opacity: 0; transform: translateX(28px) scale(0.98); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes kBildirimCik {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(24px); }
}
@media (prefers-reduced-motion: reduce) {
  #sempord-alert-stack .sempord-alert.is-in,
  #sempord-alert-stack .sempord-alert.is-out { animation-duration: 0.01s; }
}
@media (max-width: 480px) {
  #sempord-alert-stack { left: 16px; right: 16px; width: auto; }
}

/* ---------- Onay diyalogu (Kuika SweetAlert2 ozel sablonu) ---------- */
.swal2-container.k-swal-container { background: rgba(0, 0, 0, 0.4) !important; }
.swal2-popup.k-swal {
  width: auto !important;
  min-width: 1em !important;
  padding: 0 0 12px !important;
  border-radius: 5px !important;
  background: #fff !important;
  box-shadow: none !important;
  color: #545454 !important;
  font-family: Poppins, sans-serif !important;
  font-size: 16px !important;
}
.swal2-popup.k-swal .swal2-html-container.k-swal-html {
  margin: 0 !important;
  padding: 8px 28.8px 5.4px !important;
  overflow: visible !important;
  color: #545454 !important;
  font-family: Poppins, sans-serif !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: normal !important;
  text-align: center !important;
}
.k-swal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 400px;
  max-width: calc(100vw - 80px);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dcdfe4;
}
.k-swal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dcdfe4;
}
.k-swal-head-title { margin: 0 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; text-align: left; }
.k-swal-x { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 12px; cursor: pointer; }
.k-swal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 0 24px;
  border-radius: 16px;
  background: linear-gradient(37deg, #246dff -4.04%, #d1e1ff 68.6%);
  box-shadow: 0 5px 15px 0 rgba(0, 0, 0, 0.12);
}
.k-swal-icon--red { background: linear-gradient(37deg, #ff0000 -4.04%, #ffcaca 68.6%); }
.k-swal-icon svg { width: 40px; height: 40px; }
.k-swal-title { margin: 0 0 16px; color: #545454; font-size: 16px; font-weight: 600; }
.k-swal-text { margin: 0; padding: 0 12px; color: #41546e; font-size: 14px; font-weight: 400; }
.swal2-popup.k-swal .swal2-actions.k-swal-actions {
  flex-direction: row-reverse;
  justify-content: end !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 12px 0 0 !important;
}
.swal2-popup.k-swal .k-swal-btn {
  min-width: 74px;
  min-height: 28px;
  margin: 3.75px;
  padding: 7.5px 13.2px;
  border: 0;
  border-radius: 3px;
  box-shadow: none;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}
.swal2-popup.k-swal .k-swal-btn:focus { outline: none; }
.swal2-popup.k-swal .k-swal-btn:focus-visible { box-shadow: 0 0 0 3px rgba(36, 110, 255, 0.5); }
.swal2-popup.k-swal .k-swal-confirm { background: #246eff; color: #fff; opacity: 0.9; }
.swal2-popup.k-swal .k-swal-confirm:hover { opacity: 1; }
.swal2-popup.k-swal .k-swal-cancel { background: transparent; color: #246eff; }

/* ---------- Tooltip (antd Tooltip, beyaz) ---------- */
.sempord-tip {
  z-index: 25000;
  max-width: 250px;
  min-height: 32px;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  color: #252525;
  font-family: var(--k-sys-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif);
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  transform: none;
  transition: opacity 0.1s ease;
}
.sempord-tip.is-visible { transform: none; }
.sempord-tip-title { margin: 0; color: #252525; font-size: 14px; font-weight: 400; }
.sempord-tip-body { color: #252525; font-size: 14px; }
.sempord-tip-arrow { width: 8px; height: 8px; border: 0; background: #fff; }
.sempord-tip--above .sempord-tip-arrow { bottom: -4px; }
.sempord-tip--below .sempord-tip-arrow { top: -4px; }
[data-tip-title], [data-tip-desc], [data-tip] { cursor: pointer; }
/* Basılamayan düğmenin nedeni: beyaz kutuda okunaklı — açık turuncu şerit, koyu turuncu yazı, solda uyarı işareti */
html body .sempord-tip.sempord-tip--neden { max-width: min(300px, calc(100vw - 24px)); padding: 8px 10px; }
html body .sempord-tip.sempord-tip--neden .sempord-tip-title { font-weight: 500; }
html body .sempord-tip.sempord-tip--neden .sempord-tip-body {
  position: relative;
  margin-top: 6px;
  padding: 5px 8px 5px 26px;
  border-radius: 6px;
  background: #fff4e5;
  color: #9a3412;
  font-size: 12px;
  font-weight: 500;
  line-height: 17px;
}
html body .sempord-tip.sempord-tip--neden .sempord-tip-body::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  width: 13px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ea580c'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E") no-repeat center / 13px 13px;
}

/* ---------- Form dogrulama (antd Form.Item hata) ---------- */
body .k-invalid,
body .k-invalid:hover,
body .teklif-create-nice.k-invalid .teklif-create-nice-trigger,
body .teklif-create-card .k-invalid,
body .yg-modal .k-invalid { border-color: #ff4d4f !important; }
body .k-invalid:focus,
body .teklif-create-nice.k-invalid.is-open .teklif-create-nice-trigger { border-color: #ff4d4f !important; box-shadow: 0 0 0 2px rgba(255, 38, 5, 0.06) !important; }
body .k-field-error {
  display: block;
  margin: 0;
  padding: 0;
  color: #ff4d4f;
  font-family: var(--k-sys-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 22px;
  text-align: left;
}

/* ---------- Select temizleme (antd allowClear) ---------- */
body .teklif-create-nice-clear {
  position: absolute;
  top: 50%;
  right: 28px;
  z-index: 2;
  display: none;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.45);
  cursor: pointer;
  line-height: 0;
}
body .teklif-create-nice-clear svg { width: 12px; height: 12px; display: block; }
body .teklif-create-nice-clear:hover { color: rgba(0, 0, 0, 0.88); }
body .teklif-create-nice.has-value .teklif-create-nice-clear { display: block; }
body .teklif-create-nice.has-value.is-disabled .teklif-create-nice-clear,
body .teklif-create-nice--table .teklif-create-nice-clear { display: none !important; }
body .teklif-create-nice.has-value .teklif-create-nice-trigger { padding-right: 46px; }

/* ---------- Sayfa yukleniyor (antd Spin + Kuika gecis perdesi) ---------- */
.page-loader.k-spin-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: block;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.page-loader.k-spin-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.k-spin-loader .k-spin-dot {
  position: absolute;
  top: 270px;
  left: calc(250px + (100% - 250px) / 2 - 10px);
}
body.is-sidebar-collapsed .k-spin-loader .k-spin-dot { left: calc(80px + (100% - 80px) / 2 - 10px); }
body.k-login .k-spin-loader .k-spin-dot { top: calc(50% - 10px); left: calc(50% - 10px); }
@media (max-width: 1023px) { .k-spin-loader .k-spin-dot { left: calc(50% - 10px); } }
.k-spin-dot {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  font-size: 20px;
  transform: rotate(45deg);
  animation: kSpinRotate 1.2s infinite linear;
}
.k-spin-dot i {
  position: absolute;
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 100%;
  background-color: #1677ff;
  opacity: 0.3;
  transform: scale(0.75);
  transform-origin: 50% 50%;
  animation: kSpinMove 1s infinite linear alternate;
}
.k-spin-dot i:nth-child(1) { top: 0; left: 0; }
.k-spin-dot i:nth-child(2) { top: 0; right: 0; animation-delay: 0.4s; }
.k-spin-dot i:nth-child(3) { right: 0; bottom: 0; animation-delay: 0.8s; }
.k-spin-dot i:nth-child(4) { bottom: 0; left: 0; animation-delay: 1.2s; }
@keyframes kSpinMove { to { opacity: 1; } }
@keyframes kSpinRotate { to { transform: rotate(405deg); } }
/* ---------- Bos tablo (Kuika "Veri bulunamadı" gorseli) ----------
   Kullanim: <td colspan="N" class="k-empty-cell"><div class="k-empty"><span class="k-empty-img"></span><div class="k-empty-text">Veri bulunamadı</div></div></td> */
td.k-empty-cell { padding: 0 !important; background: transparent; text-align: center; }
/* Kuika (antd Empty): görsel 100px + 8px boşluk + 22px metin = 130px hücre; metin sistem fontu 14/500 rgba(0,0,0,.88) */
.k-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
.k-empty-img {
  display: block;
  width: 100px;
  height: 100px;
  margin-bottom: 8px;
  background: url("images/kuika-empty-table.svg") center / 100px 100px no-repeat;
}
.k-empty-text { margin: 0; color: rgba(0, 0, 0, 0.88); font-family: var(--k-sys-font, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif); font-size: 14px; font-weight: 500; line-height: 22px; }
/* ---------- Gomulu sayfa (?embed=1): baska sayfanin ustunde iframe pencere ---------- */
html.k-embed-html,
body.k-embed { background: transparent !important; }
body.k-embed .k-header,
body.k-embed .k-sider,
body.k-embed .k-sider-overlay { display: none !important; }
body.k-embed .k-shell,
body.k-embed .k-content.app-main { margin: 0 !important; padding: 0 !important; background: transparent !important; }
/* ---------- Onay penceresi (Netsis revize / aktarım vb.; Scripts/sempord-notify.js onayModal) ----------
   Tema: ortada ikon, lacivert başlık, gri açıklama, iki düğme; boy içeriğe göre (eski 42vh altı boş kalıyordu) */
.k-onay { position: fixed; inset: 0; z-index: 1000; }
.k-onay-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); }
.k-onay-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: auto; padding: 32px 16px; pointer-events: none; }
.k-onay-content {
  position: relative;
  box-sizing: border-box;
  width: 440px;
  max-width: calc(100vw - 32px);
  padding: 28px 28px 22px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(16, 53, 87, 0.22), 0 4px 12px rgba(16, 53, 87, 0.08);
  color: #1f2937;
  font-family: Poppins, "Segoe UI", sans-serif;
  text-align: center;
  pointer-events: auto;
  animation: kOnayGir 0.18s ease-out both;
}
@keyframes kOnayGir { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
.k-onay-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #e8f1fb;
  box-shadow: 0 0 0 8px #f3f8fe;
  color: #0057a0;
}
.k-onay-ic .material-icons { font-size: 28px; }
.k-onay-content--red .k-onay-ic { background: #fdeceb; box-shadow: 0 0 0 8px #fef6f5; color: #e13c39; }
.k-onay-head { display: block; padding: 0; border: 0; }
.k-onay-title { color: #103557; font-size: 17px; font-weight: 600; line-height: 24px; text-align: center; }
.k-onay-text { max-width: 360px; margin: 8px auto 0; color: #5b6675; font-size: 13px; font-weight: 400; line-height: 20px; text-align: center; }
.k-onay-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.k-onay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  font-family: Poppins, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: box-shadow 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.k-onay-btn--vazgec { border: 1px solid #d5dbe3; background: #fff; color: #374151; }
.k-onay-btn--vazgec:hover { background: #f5f7fa; }
.k-onay-btn--ok { background: linear-gradient(135deg, #0a466a 0%, #0057a0 100%); box-shadow: 0 4px 12px rgba(0, 87, 160, 0.3); color: #fff; }
.k-onay-btn--ok:hover { box-shadow: 0 6px 16px rgba(0, 87, 160, 0.4); transform: translateY(-1px); }
.k-onay-content--red .k-onay-btn--ok { background: linear-gradient(135deg, #c62828 0%, #e13c39 100%); box-shadow: 0 4px 12px rgba(225, 60, 57, 0.3); }
.k-onay-btn:focus-visible { outline: 2px solid rgba(0, 87, 160, 0.35); outline-offset: 2px; }
/* ---------- Acilir listeler: antd Select dropdown (Kuika olcumu kuika/ortak/select/plasiyer.json) ----------
   Tetikleyicinin 4px altinda, ayni genislik, padding 4, radius 8; secenek 32px, 10px/500, hover rgba(0,0,0,.04);
   acilis antSlideUpIn 0.2s cubic-bezier(0.23,1,0.32,1) (scaleY .8 -> 1, opacity 0 -> 1). */
@keyframes kSlideUpIn {
  0% { transform: scaleY(0.8); transform-origin: 0% 0%; opacity: 0; }
  100% { transform: scaleY(1); transform-origin: 0% 0%; opacity: 1; }
}
body .teklif-create-nice-menu--portal,
body .teklif-create-suggest.open {
  animation: kSlideUpIn 0.2s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: 0% 0%;
}
/* Plasiyer / Cari arama kutulari (teklif-create-combo) */
body .teklif-create-combo .teklif-create-combo-input { border-radius: 4px; }
body .teklif-create-combo.is-open .teklif-create-combo-input,
body .teklif-create-combo .teklif-create-combo-input:focus { border-color: var(--k-border-soft, #cdd3dc); box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1); outline: none; }
body .teklif-create-combo .teklif-create-suggest {
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 264px;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
body .teklif-create-combo .teklif-create-suggest-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  width: 100%;
  min-height: 32px;
  margin: 0;
  padding: 5px 12px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}
body .teklif-create-combo .teklif-create-suggest-item:hover,
body .teklif-create-combo .teklif-create-suggest-item.is-active { background: rgba(0, 0, 0, 0.04); }
body .teklif-create-combo .teklif-create-suggest-title {
  overflow: hidden;
  color: rgba(0, 0, 0, 0.88);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 15.71px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-transform: none;
  letter-spacing: normal;
}
body .teklif-create-combo .teklif-create-suggest-meta { display: none; }
body .teklif-create-combo .teklif-create-suggest-empty {
  padding: 5px 12px;
  color: rgba(0, 0, 0, 0.25);
  font-family: inherit;
  font-size: 10px;
  font-weight: 500;
  line-height: 22px;
}
body .teklif-create-combo .teklif-create-suggest::-webkit-scrollbar { width: 8px; }
body .teklif-create-combo .teklif-create-suggest::-webkit-scrollbar-thumb { border-radius: 4px; background: rgba(0, 0, 0, 0.2); }
body .teklif-create-combo .teklif-create-suggest::-webkit-scrollbar-track { background: transparent; }

/* ---------- Liste yukleniyor (antd Table + Spin): icerik soluk, ortada 4 mavi nokta ---------- */
body .k-list-loading,
body .teklif-list-results.is-loading { position: relative; opacity: 1; pointer-events: none; }
body .k-list-loading > *,
body .teklif-list-results.is-loading > * { opacity: 0.5; transition: opacity 0.3s; pointer-events: none; }
body .k-list-loading::after,
body .teklif-list-results.is-loading::after {
  content: "";
  position: absolute;
  top: min(50%, 200px);
  left: 50%;
  z-index: 4;
  width: 20px;
  height: 20px;
  right: auto;
  bottom: auto;
  margin: -10px 0 0 -10px;
  background:
    radial-gradient(circle at 4.5px 4.5px, #1677ff 3.4px, transparent 3.6px),
    radial-gradient(circle at 15.5px 4.5px, rgba(22, 119, 255, 0.55) 3.4px, transparent 3.6px),
    radial-gradient(circle at 15.5px 15.5px, rgba(22, 119, 255, 0.35) 3.4px, transparent 3.6px),
    radial-gradient(circle at 4.5px 15.5px, rgba(22, 119, 255, 0.75) 3.4px, transparent 3.6px);
  animation: kSpinRotate 1.2s infinite linear;
}
/* ---------- Form ici secim kutulari: Kuika antd Select secili deger sistem fontu 10px/500 (kuika/ortak/select/plasiyer.json) ---------- */
body .teklif-create-card .teklif-create-nice-trigger,
body .yg-modal .teklif-create-nice-trigger { font-family: var(--k-sys-font, -apple-system, "Segoe UI", sans-serif) !important; color: rgba(0, 0, 0, 0.88); }
body .teklif-create-card .teklif-create-nice-trigger.is-placeholder,
body .yg-modal .teklif-create-nice-trigger.is-placeholder { color: var(--k-placeholder, #9ca3af); }
body .teklif-create-combo .teklif-create-combo-input {
  font-family: var(--k-sys-font, -apple-system, "Segoe UI", sans-serif) !important;
  font-size: 12px;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.88);
}
body .teklif-create-combo .teklif-create-combo-input::placeholder { color: var(--k-placeholder, #9ca3af); }
body .teklif-create-combo .teklif-create-suggest-item,
body .teklif-create-combo .teklif-create-suggest-title,
body .teklif-create-nice-menu--portal .teklif-create-suggest-item { font-family: var(--k-sys-font, -apple-system, "Segoe UI", sans-serif) !important; }
/* antd: acilista ilk secenek aktif (acik gri) */
body .teklif-create-combo .teklif-create-suggest:not(:hover) .teklif-create-suggest-item:first-child { background: rgba(0, 0, 0, 0.04); }

/* Plasiyer/Cari kutusu oku: antd "down" ikonu 12px (nice-select ile ayni) */
body .teklif-create-combo .teklif-create-combo-caret {
  right: 11px;
  width: 12px;
  height: 12px;
  border: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='64 64 896 896' width='12' height='12' fill='%23444444'%3E%3Cpath d='M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px 12px;
  transform: translateY(-50%);
}
body .teklif-create-combo.is-open .teklif-create-combo-caret { transform: translateY(-50%) rotate(180deg); }
/* Aranabilir secim kutusu acikken arama metni kutunun ICINDE yazilir: secili degerin yazisi gizlenir
   (pencere/kart kurallari trigger rengini ezdigi icin acilista yazilar ust uste biniyordu). Kuika antd: secili deger
   arama kutusunda gri ipucu olarak gorunur, yazmaya baslayinca kaybolur. */
body .teklif-create-nice.teklif-create-nice--searchable.is-open:not(.teklif-create-nice--table) .teklif-create-nice-trigger { color: transparent !important; }
/* Salt okuma (detay) pencerelerinde temizleme düğmeleri gösterilmez ve basılamaz */
body .yg-modal--readonly .teklif-create-nice-clear,
body .yg-modal--readonly .yg-row-clear { display: none !important; pointer-events: none !important; }
body .teklif-create-nice.is-disabled .teklif-create-nice-clear { display: none !important; }
/* ---------- Tüm pencereler: ekranda dikey ortalı, üst/alt en az 32px boşluk, ekrandan taşmaz ----------
   (Kuika antd Modal "üstten 100px + 90vh" yerleşimi küçük ekranlarda aşağı taşıyordu; uzun içerik pencere içinde kayar.) */
html body .yg-modal.k-pencere { align-items: center; padding: 32px 0; }
html body .yg-modal.k-pencere .yg-modal-dialog,
html body .yg-modal.k-pencere .yg-modal-dialog--wide { height: min(90vh, calc(100vh - 64px)); max-height: calc(100vh - 64px); }
html body .yg-modal.k-pencere--proje .yg-modal-dialog { height: auto; }
html body .yg-modal:not(.k-pencere) { align-items: center; padding: 32px 16px; }
html body .yg-modal:not(.k-pencere) .yg-modal-dialog,
html body .yg-modal:not(.k-pencere) .yg-modal-content { max-height: calc(100vh - 64px); }
html body .km-wrap { display: flex; align-items: center; justify-content: center; box-sizing: border-box; padding: 32px 16px; }
html body .km-dialog { top: 0; padding-bottom: 0; max-height: 100%; }
html body .km-content { max-height: calc(100vh - 64px); overflow: auto; }
/* .tl-modal-wrap tam ekran (inset 0) kalır: ona max-height verilince pencereler dikeyde ortalanmıyordu */
html body .tl-modal-content,
html body .k-onay-content { max-height: calc(100vh - 64px - 40px); overflow: auto; }
html body .kul-modal:not([hidden]) { display: flex; flex-direction: column; box-sizing: border-box; padding: 32px 16px; }
html body .kul-modal-box { margin: auto; max-height: calc(100vh - 64px); overflow: auto; }
html body .kul-modal-box--plasiyer { min-height: min(calc(75vh + 40px), calc(100vh - 64px)); }
html body .kul-modal-box--yetki { min-height: min(calc(70vh + 40px), calc(100vh - 64px)); }
/* Sunucu isteği beklerken (Scripts/sempord-bekle.js) yükleme ekranı açık pencerelerin de üstünde */
html body .page-loader.is-istek { z-index: 14000; }

/* ---------- Bekleme perdesi (sayfa geçişi + Scripts/sempord-bekle.js sunucu beklemesi) ----------
   Eskiden rgba(243,246,249,.88) + bulanıklık sayfayı tamamen beyaza boğuyordu. Şimdi perde neredeyse şeffaf
   (arkadaki sayfa görünür, ama tıklama yine engellenir); yalnız logo ekranın tam ortasında, arkasında kart yok. */
html body .page-loader {
  background: rgba(15, 23, 42, 0.05);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  cursor: progress;
}
html body .page-loader .page-loader-mark {
  width: 84px;
  color: var(--k-navy, #103557);
  filter: drop-shadow(0 2px 6px rgba(16, 53, 87, 0.25));
}

/* ==========================================================================
   Açılır listeler — ortak tasarım (tüm ekranlar: liste filtreleri, raporlar, Hedef, formlar, kalem pencereleri)
   Örnek: Teklif Oluştur Plasiyer / Cari listesi. Beyaz kart, ince çerçeve, yumuşak gölge, 32px satır,
   üzerine gelince açık gri; seçili öğe mavi tonlu + tik.
   Açılış: çerçeve belirir, satırlar hafifçe kayar. Menünün kendisine transform verilmez: aranabilir listelerde
   arama kutusu menünün içinde position:fixed durur; transform onu animasyon boyunca yanlış yerde / ölçekli
   çiziyordu ("açınca sonradan genişliyor" görüntüsü).
   ========================================================================== */
@keyframes kListeBelir { from { opacity: 0; } to { opacity: 1; } }
@keyframes kListeKay { from { transform: translateY(-6px); } to { transform: translateY(0); } }
@keyframes kListeKayYukari { from { transform: translateY(6px); } to { transform: translateY(0); } }
@keyframes kListeIskelet { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes kListeSeritKay { 0% { background-position: -40% 0; } 100% { background-position: 140% 0; } }
html body .teklif-create-nice-menu--portal,
html body .teklif-create-suggest.open {
  animation: kListeBelir 0.16s ease-out;
  transform: none;
}
html body .teklif-create-nice-menu--portal > .teklif-create-nice-options,
html body .teklif-create-suggest.open > * { animation: kListeKay 0.22s cubic-bezier(0.23, 1, 0.32, 1); }
html body .teklif-create-nice-menu--portal.is-up > .teklif-create-nice-options { animation-name: kListeKayYukari; }

/* Çerçeve */
html body .teklif-create-nice-menu--portal,
html body .teklif-create-combo .teklif-create-suggest {
  box-sizing: border-box;
  padding: 4px;
  border: 1px solid rgba(16, 53, 87, 0.08);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 32px -8px rgba(16, 53, 87, 0.22), 0 4px 10px -4px rgba(16, 53, 87, 0.1);
  font-family: var(--k-sys-font, -apple-system, "Segoe UI", sans-serif);
}

/* Satırlar */
html body .teklif-create-nice-menu--portal .teklif-create-suggest-item,
html body .teklif-create-combo .teklif-create-suggest-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 32px;
  margin: 0 0 1px;
  padding: 5px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
html body .teklif-create-nice-menu--portal .teklif-create-suggest-item:last-child,
html body .teklif-create-combo .teklif-create-suggest-item:last-child { margin-bottom: 0; }
html body .teklif-create-nice-menu--portal .teklif-create-suggest-item:hover,
html body .teklif-create-nice-menu--portal .teklif-create-suggest-item.is-active,
html body .teklif-create-combo .teklif-create-suggest-item:hover,
html body .teklif-create-combo .teklif-create-suggest-item.is-active,
html body .teklif-create-combo .teklif-create-suggest:not(:hover) .teklif-create-suggest-item:first-child { background: #f1f4f8; }
/* Seçili öğe: mavi ton + sağda tik */
html body .teklif-create-nice-menu--portal .teklif-create-suggest-item.is-selected {
  padding-right: 32px;
  background: rgba(0, 87, 160, 0.08);
}
html body .teklif-create-nice-menu--portal .teklif-create-suggest-item.is-selected:hover { background: rgba(0, 87, 160, 0.12); }
html body .teklif-create-nice-menu--portal .teklif-create-suggest-item.is-selected .teklif-create-suggest-title { color: #0057a0; font-weight: 600; }
html body .teklif-create-nice-menu--portal .teklif-create-suggest-item.is-selected::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230057a0' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") no-repeat center / 14px 14px;
}
html body .teklif-create-nice-menu--portal .teklif-create-suggest-item:disabled { opacity: 0.45; cursor: not-allowed; }

/* Yazı: liste sayfalarında 12px; form kartlarında / pencerelerde Plasiyer-Cari listesiyle aynı 10px */
html body .teklif-create-nice-menu--portal .teklif-create-suggest-title {
  overflow: hidden;
  color: #1f2937;
  font-family: var(--k-sys-font, -apple-system, "Segoe UI", sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html body .teklif-create-combo .teklif-create-suggest-title { color: #1f2937; }
html body .teklif-create-nice-menu--portal.teklif-create-nice-menu--sm .teklif-create-suggest-title { font-size: 10px; line-height: 15.71px; }

/* Boş / sonuç yok */
html body .teklif-create-nice-menu--portal .teklif-create-suggest-empty,
html body .teklif-create-combo .teklif-create-suggest-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  color: #9ca3af;
  font-family: var(--k-sys-font, -apple-system, "Segoe UI", sans-serif);
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}
html body .teklif-create-nice-menu--sm .teklif-create-suggest-empty { font-size: 11px; }

/* Yükleniyor: liste boşsa iskelet satırlar; doluysa satırlar soluk + üstte akan ince şerit (boy zıplamaz) */
html body .k-liste-iskelet { display: grid; gap: 1px; }
html body .k-liste-iskelet > span { position: relative; display: block; height: 32px; }
html body .k-liste-iskelet > span::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 12px;
  width: 70%;
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, #eef2f6 25%, #f8fafc 37%, #eef2f6 63%);
  background-size: 400% 100%;
  animation: kListeIskelet 1.2s ease-in-out infinite;
}
html body .k-liste-iskelet > span:nth-child(2)::before { width: 52%; }
html body .k-liste-iskelet > span:nth-child(3)::before { width: 62%; }
html body .teklif-create-nice-menu--portal.is-yukleniyor > .teklif-create-nice-options { opacity: 0.55; transition: opacity 0.15s ease; }
html body .teklif-create-nice-menu--portal.is-yukleniyor::before {
  content: "";
  position: absolute;
  top: 0;
  left: 10px;
  right: 10px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #4096ff, transparent) no-repeat;
  background-size: 40% 100%;
  animation: kListeSeritKay 1s linear infinite;
}

/* Kaydırma çubuğu */
html body .teklif-create-nice-options::-webkit-scrollbar,
html body .teklif-create-combo .teklif-create-suggest::-webkit-scrollbar { width: 6px; }
html body .teklif-create-nice-options::-webkit-scrollbar-thumb,
html body .teklif-create-combo .teklif-create-suggest::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(16, 53, 87, 0.18); }
html body .teklif-create-nice-options::-webkit-scrollbar-thumb:hover,
html body .teklif-create-combo .teklif-create-suggest::-webkit-scrollbar-thumb:hover { background: rgba(16, 53, 87, 0.3); }
html body .teklif-create-nice-options::-webkit-scrollbar-track,
html body .teklif-create-combo .teklif-create-suggest::-webkit-scrollbar-track { background: transparent; }

/* Sütun filtresi (Koşul) seçim kutusu da aynı listeyi kullanır */
html body .kfd .teklif-create-nice { display: block; width: 100%; margin-bottom: 8px; }
html body .kfd .kfd-select > .teklif-create-nice { margin-bottom: 0; }
html body .kfd .kfd-select::after { display: none; }
html body .kfd .teklif-create-nice-trigger {
  width: 100%;
  height: 32px;
  padding-left: 11px;
  border-radius: 6px;
  font-family: var(--k-sys-font, -apple-system, "Segoe UI", sans-serif);
  font-size: 12px;
  line-height: 30px;
  text-align: left;
}

/* Aramasız listede açıkken kutudaki seçili değer / yer tutucu görünür kalır (antd); yazı yalnız aranabilir listede
   gizlenir, çünkü orada kutunun içine arama metni yazılır. (Teklif listesi "Duruma Göre" vb. açılınca boş görünüyordu.) */
html body .teklif-create-nice:not(.teklif-create-nice--searchable).is-open .teklif-create-nice-trigger { color: var(--k-text-2, #444) !important; }
html body .teklif-create-nice:not(.teklif-create-nice--searchable).is-open .teklif-create-nice-trigger.is-placeholder { color: var(--k-placeholder, #9ca3af) !important; }

/* ==========================================================================
   Sayfalama — ortak tasarım (tüm tablolar: teklif/sipariş/netsis/cari/stok listeleri, raporlar, tanımlamalar,
   takip listesi, pencerelerdeki tablolar). Yuvarlatılmış 32px düğmeler, üzerine gelince açık mavi,
   seçili sayfa lacivert; solda kayıt sayısı ("1–10 / 327 kayıt").
   Sayfalara özel eski Kuika kuralları güçlü seçiciler kullandığı için görünüm özellikleri !important.
   ========================================================================== */
html body ul.teklif-pager,
html body ul.kt-pager,
html body ul.yf-pager-list {
  align-items: center !important;
  gap: 6px !important;
  font-family: var(--k-sys-font, -apple-system, "Segoe UI", Roboto, Arial, sans-serif) !important;
}
html body ul.teklif-pager > li,
html body ul.kt-pager > li,
html body ul.yf-pager-list > li { margin: 0 !important; }

/* Düğmeler */
html body ul.teklif-pager > li > a,
html body ul.teklif-pager > li > span,
html body ul.kt-pager > li,
html body ul.yf-pager-list > li {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-width: 32px !important;
  width: auto !important;
  height: 32px !important;
  padding: 0 8px !important;
  border: 1px solid #e5eaf1 !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(16, 53, 87, 0.04) !important;
  color: #475569 !important;
  font-family: var(--k-sys-font, -apple-system, "Segoe UI", Roboto, Arial, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  font-variant-numeric: tabular-nums;
  line-height: 30px !important;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease !important;
}
html body ul.teklif-pager > li > a:hover,
html body ul.kt-pager > li:not(.is-active):not(.is-off):hover,
html body ul.yf-pager-list > li:not(.is-active):not(.is-disabled):hover {
  border-color: #b9cfe8 !important;
  background: #f3f8ff !important;
  color: #0057a0 !important;
  transform: translateY(-1px);
}
/* Seçili sayfa */
html body ul.teklif-pager > li > .is-active,
html body ul.teklif-pager > li > .is-on,
html body ul.kt-pager > li.is-active,
html body ul.yf-pager-list > li.is-active {
  border-color: transparent !important;
  background: linear-gradient(135deg, #0a466a 0%, #0057a0 100%) !important;
  box-shadow: 0 4px 10px -3px rgba(0, 87, 160, 0.55) !important;
  color: #fff !important;
  font-weight: 600 !important;
  cursor: default;
}
/* Pasif oklar */
html body ul.teklif-pager > li > .is-off,
html body ul.kt-pager > li.is-off,
html body ul.yf-pager-list > li.is-disabled {
  border-color: #eef2f6 !important;
  background: #f8fafc !important;
  box-shadow: none !important;
  color: #cbd5e1 !important;
  cursor: not-allowed;
  transform: none !important;
}
/* Ok simgeleri */
html body ul.teklif-pager .material-icons,
html body ul.yf-pager-list .material-icons { color: inherit !important; font-size: 18px !important; line-height: 1 !important; transform: none !important; }
html body ul.teklif-pager svg,
html body ul.kt-pager svg { width: 12px !important; height: 12px !important; color: inherit; }
/* Atlama (•••): soluk; üzerine gelince » / « (rapor ve yangın sayfalarındaki gibi) */
html body ul.teklif-pager > li > .is-jump,
html body ul.teklif-pager > li > .ktn-jump,
html body ul.teklif-pager > li > .rk-jump,
html body ul.yf-pager-list > li.yf-pg-jump { color: #94a3b8 !important; letter-spacing: 0.08em; }

/* Kayıt sayısı (sayfalamanın solunda) */
html body .k-pager-sayi {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  height: 32px;
  margin-right: auto;
  padding: 0 12px;
  border: 1px solid #e8edf3;
  border-radius: 10px;
  background: #f8fafc;
  color: #64748b;
  font-family: var(--k-sys-font, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
html body .k-pager-sayi[hidden] { display: none !important; }
html body .k-pager-sayi .material-icons { color: #0057a0; font-size: 16px; }
html body .k-pager-sayi b { color: #103557; font-weight: 600; font-variant-numeric: tabular-nums; }
html body .teklif-pager-wrap.has-sayi,
html body .rk-pager-wrap.has-sayi,
html body .ktn-pager.has-sayi {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px 16px;
}
html body .kt-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
html body .kt-alt > ul.kt-pager { margin-left: auto; }
html body .kt-alt > .k-pager-sayi { margin: 16px 0; }
@media (max-width: 600px) {
  html body .k-pager-sayi { margin-right: 0; }
  html body .teklif-pager-wrap.has-sayi,
  html body .rk-pager-wrap.has-sayi,
  html body .ktn-pager.has-sayi { justify-content: center !important; }
}
/* JS ile çizilen sayfalamalar: kayıt sayısı solda, sayfalar sağda */
html body .k-pager-row:not([hidden]) { display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between !important; gap: 10px 16px; }
html body .kt-alt > .kt-sayi { display: inline-flex; margin: 16px 0; }
html body .kt-alt > .kt-sayi:empty { display: none; }
