:root {
  --bg: #0e0e10;
  --bg-elev: #16161a;
  --bg-input: #1c1c21;
  --border: #2a2a31;
  --border-focus: #d4a054;
  --text: #ececef;
  --text-dim: #8b8b96;
  --accent: #d4a054;
  --accent-hover: #e0b06a;
  --accent-text: #1a1206;
  --danger: #ef6b6b;
  --success: #5fc48e;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Giriş ekranı ---------- */
.giris-sayfa {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(600px 400px at 50% -10%, rgba(212, 160, 84, 0.12), transparent 70%),
    var(--bg);
}

.giris-kart {
  width: 100%;
  max-width: 380px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 32px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: belir 0.4s ease-out;
}

@keyframes belir {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.marka {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  text-align: center;
}

.marka-logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(212, 160, 84, 0.22), rgba(212, 160, 84, 0.06));
  border: 1px solid rgba(212, 160, 84, 0.3);
  color: var(--accent);
}

.marka h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.marka p {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 4px;
}

.alan { margin-bottom: 16px; }

.alan label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.girdi-kutu { position: relative; }

.girdi-kutu input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 14px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.girdi-kutu input::placeholder { color: #55555f; }

.girdi-kutu input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(212, 160, 84, 0.15);
}

.sifre-goster {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: none;
  border: none;
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
}

.sifre-goster:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.hatirla { display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; font-size: 14px; color: var(--text-dim); cursor: pointer; user-select: none; }
.hatirla input { width: 20px; height: 20px; accent-color: var(--accent); cursor: pointer; }
.hatirla small { color: #6b6b76; }

.hata-mesaj {
  min-height: 20px;
  font-size: 13px;
  color: var(--danger);
  margin: 4px 0 12px;
}

.btn {
  width: 100%;
  height: 46px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, transform 0.05s, opacity 0.15s;
}

.btn-ana {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-ana:hover { background: var(--accent-hover); }
.btn-ana:active { transform: scale(0.99); }
.btn-ana:disabled { opacity: 0.6; cursor: default; }

.btn-ikincil {
  width: auto;
  height: 38px;
  padding: 0 16px;
  background: var(--bg-input);
  color: var(--text);
  border: 1px solid var(--border);
  font-weight: 500;
  font-size: 14px;
}

.btn-ikincil:hover { border-color: #3a3a44; }

.alt-not {
  text-align: center;
  font-size: 12px;
  color: #55555f;
  margin-top: 24px;
}

.sallan { animation: sallan 0.35s; }

@keyframes sallan {
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

/* ---------- Panel iskeleti ---------- */
.uygulama {
  display: grid;
  grid-template-columns: 232px 1fr;
  min-height: 100%;
}

.yan-menu {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 20px 14px;
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
}

.marka-mini {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  font-weight: 600;
}

.marka-mini .marka-logo { width: 34px; height: 34px; border-radius: 10px; }

.menu { display: flex; flex-direction: column; gap: 2px; }

.menu a, .menu .yakinda {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-dim);
  text-decoration: none;
}

.menu a:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.menu a.aktif { background: rgba(212, 160, 84, 0.12); color: var(--accent); }
.menu .yakinda { opacity: 0.45; cursor: default; }
.menu .yakinda small { margin-left: auto; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; }

.menu-alt {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 6px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-dim);
}

.icerik {
  min-width: 0;
  width: 100%;
  padding: 32px 32px 64px;
}

/* Çok geniş ekranlarda satırlar gereksiz uzamasın; tablolar yine tüm genişliği kullanır */
@media (min-width: 2200px) {
  .icerik { max-width: 2000px; }
}

/* ---------- Ortak parçalar ---------- */
.sayfa-bas {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.sayfa-bas h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.sayfa-bas p { color: var(--text-dim); font-size: 14px; margin-top: 6px; }
.sayfa-bas p.not { font-style: italic; }
.sayfa-bas p.fatura-bilgi { font-size: 13px; }

.geri {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-dim);
  text-decoration: none;
}
.geri:hover { color: var(--text); }

.btn-oto { width: auto; padding: 0 18px; height: 40px; font-size: 14px; }
.btn.tam { width: 100%; }

.kart {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
}

.kart h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; }

.ozet {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.ozet-kutu {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.ozet-kutu > span { font-size: 12px; color: var(--text-dim); }
.ozet-kutu strong { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.ozet-kutu > small { font-size: 12px; color: #6b6b76; }

.girdi {
  height: 40px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  color-scheme: dark;
}
.girdi:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(212, 160, 84, 0.15); }
textarea.girdi { height: auto; padding: 10px 12px; resize: vertical; }

.arac-cubugu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.arac-cubugu .ara { flex: 1 1 220px; }

.segment {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.segment button {
  height: 32px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  color: var(--text-dim);
  background: none;
  border: none;
  border-radius: 7px;
  cursor: pointer;
}
.segment button:hover { color: var(--text); }
.segment button.secili { background: #2b2b33; color: var(--text); }
.segment.tam { display: flex; margin-bottom: 16px; }
.segment.tam button { flex: 1; }

/* ---------- Tablo ---------- */
.tablo-kart { padding: 0; overflow-x: auto; }
.kart-bas { padding: 18px 20px 0; }
.kart-bas h3 { margin-bottom: 12px; }

.tablo { width: 100%; border-collapse: collapse; font-size: 14px; }
.tablo th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tablo td { padding: 12px 16px; border-bottom: 1px solid #1f1f25; white-space: nowrap; }
.tablo tbody tr:last-child td { border-bottom: none; }
.tablo tr.tikla { cursor: pointer; }
.tablo tr.tikla:hover td { background: rgba(255, 255, 255, 0.025); }
.tablo tr.pasif td { opacity: 0.5; }
.tablo .cari-ad { font-weight: 500; }
.tablo .bos { text-align: center; color: var(--text-dim); padding: 36px 16px; }

.sag { text-align: right !important; }
.sayi { font-variant-numeric: tabular-nums; }
.soluk { color: var(--text-dim); }
.borc { color: var(--text); font-weight: 600; }
.alacak { color: var(--success); }

.rozet {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  background: #24242b;
  border-radius: 6px;
  vertical-align: middle;
}
.rozet-kayitli { color: var(--success); background: rgba(95, 196, 142, 0.12); }

.tur { font-size: 13px; }
.tur-teslimat { color: var(--text); }
.tur-iade { color: #e6a86b; }
.tur-odeme { color: var(--success); }
.tur-devir, .tur-duzeltme { color: #9db8ff; }

.sil {
  width: 26px;
  height: 26px;
  font-size: 16px;
  line-height: 1;
  color: #5a5a64;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.sil:hover { color: var(--danger); background: rgba(239, 107, 107, 0.1); }

/* ---------- Cari detay ---------- */
.detay-izgara {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form { display: flex; flex-direction: column; gap: 14px; }
.form .alan { display: flex; flex-direction: column; gap: 6px; margin: 0; flex: 1; min-width: 0; }
.form .alan > span { font-size: 12px; font-weight: 500; color: var(--text-dim); }
.satir-2 { display: flex; gap: 12px; }
.ipucu { font-size: 12px; color: #6b6b76; margin-top: -6px; }

.onizleme { min-height: 20px; font-size: 14px; font-variant-numeric: tabular-nums; }
.onizleme .uyari { color: #e6a86b; }

.fiyat-liste { list-style: none; margin-top: 16px; }
.fiyat-liste li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid #1f1f25;
  font-size: 14px;
}
.fiyat-liste li span { flex: 1; color: var(--text-dim); }
.fiyat-liste li strong { font-variant-numeric: tabular-nums; font-weight: 600; }
.fiyat-liste li:first-child strong { color: var(--accent); }
#fiyatTurSec { margin-bottom: 0; }

/* ---------- Günlük hesap ---------- */
.tarih-sec { display: flex; gap: 6px; }
.tarih-sec .btn { width: 40px; height: 40px; padding: 0; font-size: 18px; }
#gDurum { align-self: center; font-size: 13px; }

.gunluk-tablo td { padding: 6px 12px; }
.gunluk-tablo th { padding: 12px; }
.gunluk-tablo tr.dolu td { background: rgba(212, 160, 84, 0.04); }
.gunluk-tablo tr.hatali td { background: rgba(239, 107, 107, 0.06); }
.gunluk-tablo .bag { color: inherit; text-decoration: none; }
.gunluk-tablo .bag:hover { color: var(--accent); }
.gunluk-tablo .uyari { color: #e6a86b; font-size: 13px; }

.hucre {
  width: 84px;
  height: 34px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--text);
  background: var(--bg-input);
  border: 1px solid transparent;
  border-radius: 8px;
  outline: none;
}
.hucre::placeholder { color: #45454e; }
.hucre:hover { border-color: var(--border); }
.hucre:focus { border-color: var(--border-focus); box-shadow: 0 0 0 3px rgba(212, 160, 84, 0.15); }
.hucre-fiyat { width: 76px; color: var(--text-dim); background: transparent; }
.hucre-fiyat:focus { color: var(--text); background: var(--bg-input); }

.mini-segment {
  display: inline-flex;
  padding: 2px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.mini-segment button {
  height: 26px;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  color: #6b6b76;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}
.mini-segment button:hover { color: var(--text-dim); }
/* Seçili düğme her mini segmentte belli olsun */
.mini-segment button.secili { background: #2b2b33; color: var(--text); }
.mini-segment button.secili[data-mod="cek"], .mini-segment button.secili[data-kaynak="gunluk"] { background: rgba(120, 150, 255, 0.18); color: #9db8ff; }
.mini-segment button.secili[data-mod="yaz"] { background: rgba(212, 160, 84, 0.2); color: var(--accent); }
.mini-segment button.secili[data-kaynak="standart"] { background: rgba(95, 196, 142, 0.16); color: var(--success); }
/* İrsaliye bayileri: irsaliyeli satırların solunda renkli şerit */
#irsBayiler tr td:first-child { box-shadow: inset 3px 0 0 transparent; }
#irsBayiler tr.mod-cek td:first-child { box-shadow: inset 3px 0 0 #9db8ff; }
#irsBayiler tr.mod-yaz td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.mini-segment button.secili[data-pesin="1"] { background: rgba(95, 196, 142, 0.16); color: var(--success); }
.mini-segment button.secili[data-pesin="0"] { background: rgba(212, 160, 84, 0.18); color: var(--accent); }

.kisayol { margin: 10px 2px 0; }

.alt-cubuk {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 20px;
  background: rgba(22, 22, 26, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
}
.toplamlar { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.toplamlar div { display: flex; flex-direction: column; gap: 2px; }
.toplamlar span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.toplamlar strong { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.alt-cubuk .btn:disabled { opacity: 0.35; }

/* ---------- Gelir ---------- */
.hucre-gelir { width: 100px; }
.sekil-sec {
  height: 30px;
  padding: 0 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 7px;
  outline: none;
  cursor: pointer;
  color-scheme: dark;
}
.sekil-sec:focus { border-color: var(--border-focus); }
.sekil-nakit { color: var(--success); background: rgba(95, 196, 142, 0.12); }
.sekil-pos1 { color: #9db8ff; background: rgba(120, 150, 255, 0.12); }
.sekil-pos2 { color: #c3a3ff; background: rgba(170, 130, 255, 0.12); }
.sekil-havale { color: var(--accent); background: rgba(212, 160, 84, 0.14); }

.gelir-ozet {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}
.gelir-ozet:empty { display: none; }
.gelir-ozet div { display: flex; flex-direction: column; gap: 2px; }
.gelir-ozet span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.gelir-ozet strong { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gelir-ozet .vurgu strong { color: var(--accent); }

/* ---------- Servisçi hesabı ---------- */
.servis-kart {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 0;
  margin-bottom: 16px;
}
.servis-blok { padding: 18px 20px; }
.servis-blok + .servis-blok { border-left: 1px solid var(--border); }
.servis-blok h3 { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); margin-bottom: 12px; }

.servis-girdi { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.servis-girdi:last-of-type { margin-bottom: 14px; }
.servis-girdi span { font-size: 14px; font-weight: 500; }
.servis-girdi .hucre { width: 140px; height: 40px; font-size: 16px; font-weight: 600; border-color: var(--border); }
.hucre.hatali-girdi { border-color: var(--danger); }

.servis-sonuc { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.servis-sonuc .uyari { color: #e6a86b; }
.servis-sonuc div { display: flex; flex-direction: column; gap: 4px; }
.servis-sonuc span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.servis-sonuc strong { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.servis-sonuc small { font-size: 12px; color: #6b6b76; }

.fark {
  display: inline-block;
  padding: 3px 10px;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  border-radius: 7px;
}
.servis-sonuc .fark { color: inherit; }
.servis-sonuc .fark.acik { color: #ff9d9d; background: rgba(239, 107, 107, 0.14); }
.servis-sonuc .fark.fazla { color: #9db8ff; background: rgba(120, 150, 255, 0.14); }
.servis-sonuc .fark.tamam { color: var(--success); background: rgba(95, 196, 142, 0.14); }
.servis-sonuc .fark.bos-fark { color: #6b6b76; background: var(--bg-input); font-weight: 500; font-size: 13px; }

@media (max-width: 900px) {
  .servis-kart { grid-template-columns: 1fr; }
  .servis-blok + .servis-blok { border-left: none; border-top: 1px solid var(--border); }
}

/* ---------- Devir seçimi ---------- */
.gelir-hucre { display: inline-flex; align-items: center; gap: 6px; }
.devir-btn {
  height: 26px;
  padding: 0 8px;
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--accent);
  background: rgba(212, 160, 84, 0.08);
  border: 1px dashed rgba(212, 160, 84, 0.45);
  border-radius: 7px;
  cursor: pointer;
}
.devir-btn:hover { background: rgba(212, 160, 84, 0.16); }
.devir-btn.secili { color: var(--accent-text); background: var(--accent); border-style: solid; }

.devir-ipucu { margin: -12px 0 14px; }
.devir-liste {
  max-height: 50vh;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.devir-satir {
  display: grid;
  grid-template-columns: auto 90px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  border-bottom: 1px solid #1f1f25;
  cursor: pointer;
}
.devir-satir:last-child { border-bottom: none; }
.devir-satir:hover { background: rgba(255, 255, 255, 0.025); }
.devir-satir:has(input:checked) { background: rgba(212, 160, 84, 0.07); }
.devir-satir input { width: 16px; height: 16px; accent-color: var(--accent); }
.devir-tarih { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.devir-tutar { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.devir-tutar small { font-size: 11px; color: #6b6b76; }

.devir-alt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 18px;
}
.devir-toplam { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.devir-toplam span { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.05em; }
.devir-toplam strong { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--accent); }
.devir-toplam small { font-size: 12px; color: #6b6b76; }

.devir-durum { font-size: 12px; color: #e6a86b; }
.devir-durum.odendi { color: var(--success); }

/* ---------- Bayi takibi ---------- */
.btn-link { display: inline-flex; align-items: center; text-decoration: none; }
.dugmeler { display: flex; gap: 8px; flex-wrap: wrap; }
.bayi-sec { min-width: 220px; }
.aralik-cizgi { align-self: center; }

.takip-tablo tfoot td {
  padding: 14px 16px;
  font-weight: 600;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}
.takip-tablo .devreden-satir td { background: rgba(255, 255, 255, 0.02); }
.takip-tablo .odemeler { white-space: normal; }
.takip-tablo .odemeler .rozet { margin: 1px 0; font-variant-numeric: tabular-nums; }
.odeme-pesin, .odeme-nakit { color: var(--success); background: rgba(95, 196, 142, 0.12); }
.odeme-pos1 { color: #9db8ff; background: rgba(120, 150, 255, 0.12); }
.odeme-pos2 { color: #c3a3ff; background: rgba(170, 130, 255, 0.12); }
.odeme-havale, .alis-devir { color: var(--accent); background: rgba(212, 160, 84, 0.14); }

/* ---------- Transfer ---------- */
.transfer-bolum {
  margin: 4px 0 14px;
  padding: 10px 12px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
}
.transfer-bas { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 500; }
.yazi-btn {
  font: inherit;
  font-size: 13px;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
}
.yazi-btn:disabled { color: #55555f; cursor: default; }
.transfer-satir { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.transfer-ok { color: var(--accent); }
.transfer-sec { flex: 1; height: 34px; min-width: 0; }
.transfer-satir .hucre { width: 90px; border-color: var(--border); background: var(--bg-elev); }
.transfer-gelen { margin-top: 8px; font-size: 13px; color: var(--success); }
.transfer-gelen strong { font-variant-numeric: tabular-nums; }

/* ---------- İrsaliye ---------- */
.rozet.irs { font-size: 10px; padding: 1px 6px; color: #9db8ff; background: rgba(120, 150, 255, 0.1); }
.rozet.irs-var { color: var(--success); background: rgba(95, 196, 142, 0.12); }
.rozet.irs-fark { color: #ffb37a; background: rgba(230, 168, 107, 0.16); }
.modal-kart.genis { max-width: 760px; }
.tablo-kutu { max-height: 55vh; overflow: auto; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 18px; }
.tablo-kutu .tablo td { white-space: normal; }
.uyari { color: #e6a86b; }
.uyari-kutu { margin: 0 0 14px; padding: 10px 14px; font-size: 13px; color: #ffd3a8; background: rgba(230, 168, 107, 0.1); border: 1px solid rgba(230, 168, 107, 0.3); border-radius: 10px; }
.katsayi-liste { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow-y: auto; }
.katsayi-satir { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.katsayi-satir .hucre { border-color: var(--border); }
.hucre-genis { width: 130px; text-align: left; }
.irs-ipucu { margin: 0 0 12px; line-height: 1.5; }
.kesim-adedi { display: flex; align-items: center; gap: 8px; }
.kesim-adedi .std-adet { width: 70px; border-color: var(--border); }
tr.yaz-degil .kesim-adedi { opacity: 0.3; }
.kart-alt { display: flex; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--border); }
.kart .ipucu { margin: -8px 0 12px; }
.alt-baslik { font-size: 13px; font-weight: 600; margin: 4px 0 8px; color: var(--text-dim); }
.atla-liste { list-style: none; max-height: 160px; overflow-y: auto; margin-bottom: 18px; font-size: 13px; }
.atla-liste li { padding: 4px 0; border-bottom: 1px solid #1f1f25; }
#soforler + * , .kart > .tablo-kutu + .btn { margin-top: 0; }

/* ---------- Personel ---------- */
.ozet-kutu.secilebilir { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ozet-kutu.secilebilir:hover { border-color: #3a3a44; }
.ozet-kutu.secilebilir.secili { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(212, 160, 84, 0.12); }
.birim-ayar { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--text-dim); }
.birim-ayar .hucre { width: 70px; border-color: var(--border); }
.personel-izgara { grid-template-columns: 2fr 1fr; align-items: start; }
.kesinti { display: inline-flex; align-items: center; gap: 2px; color: var(--success); }
.kesinti-ipucu { margin: 12px 0 0 !important; }
.acik-baslik { display: flex; align-items: center; justify-content: space-between; }
.acik-liste { max-height: 240px; }
.acik-liste .devir-satir { grid-template-columns: auto 78px 1fr auto; padding: 8px 10px; font-size: 13px; }
.bos-acik { padding: 10px 12px; font-size: 13px; }

/* ---------- Sıralama ---------- */
.sira-ipucu { margin: -12px 0 14px; }
.sira-liste {
  list-style: none;
  counter-reset: sira;
  max-height: 55vh;
  overflow-y: auto;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.sira-liste li {
  counter-increment: sira;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  font-size: 14px;
  background: var(--bg-elev);
  border-bottom: 1px solid #1f1f25;
  cursor: grab;
  user-select: none;
}
.sira-liste li:last-child { border-bottom: none; }
.sira-liste li::before {
  content: counter(sira);
  width: 22px;
  text-align: right;
  font-size: 12px;
  color: #6b6b76;
  font-variant-numeric: tabular-nums;
}
.sira-liste li.suruklenen { opacity: 0.4; background: rgba(212, 160, 84, 0.08); }
.sira-liste .tutamak { color: #55555f; letter-spacing: -2px; }
.sira-liste .ad { flex: 1; font-weight: 500; }
.sira-liste button {
  width: 28px;
  height: 28px;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 7px;
  cursor: pointer;
}
.sira-liste button:hover { color: var(--text); border-color: #3a3a44; }

/* ---------- Modal & bildirim ---------- */
.modal-arka {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 10;
}

.modal-kart {
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: belir 0.2s ease-out;
}
.modal-kart h2 { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.modal-kart .hata-mesaj { margin: 0; }
.modal-alt { display: flex; justify-content: flex-end; gap: 10px; }
.onay { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); }
.onay input { accent-color: var(--accent); width: 16px; height: 16px; }

.bildirim {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  font-size: 14px;
  background: #22222a;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 20;
}
.bildirim.gorunur { opacity: 1; transform: translate(-50%, 0); }
.bildirim.ok { border-color: rgba(95, 196, 142, 0.4); }
.bildirim.hata { border-color: rgba(239, 107, 107, 0.5); color: #ffb3b3; }

/* ---------- Dar ekran ---------- */
@media (max-width: 900px) {
  .uygulama { grid-template-columns: 1fr; }
  .yan-menu {
    position: static;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-right: none;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
  }
  .menu { flex-direction: row; }
  .menu .yakinda { display: none; }
  .menu-alt { margin: 0 0 0 auto; padding: 0; border: none; }
  .icerik { padding: 20px 16px 48px; }
  .detay-izgara { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .giris-kart { padding: 32px 20px 24px; }
  .marka-mini { font-size: 0; gap: 0; }
  .menu-alt span { display: none; }
  .sayfa-bas { flex-wrap: wrap; }
  .satir-2 { flex-direction: column; }
}

/* ---------- Deneme modu ---------- */
.deneme-serit {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  color: #1a1206;
  background: repeating-linear-gradient(-45deg, #e0a24e 0 14px, #d4953f 14px 28px);
}
.deneme-modu .yan-menu { top: 31px; height: calc(100vh - 31px); }

/* ---------- Dosyalar ---------- */
.dosya-alan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 16px;
  margin-bottom: 16px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  color: var(--text-dim);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.dosya-alan:hover, .dosya-alan.uzerinde { border-color: var(--accent); background: rgba(212, 160, 84, 0.06); }
.dosya-alan svg { color: var(--accent); }
.dosya-alan strong { color: var(--text); font-size: 15px; font-weight: 600; }
.dosya-alan span { font-size: 13px; }

.yukleme {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, 240px) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elev);
  font-size: 13px;
}
.yukleme span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yukleme small { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.yukleme-cubuk { height: 6px; border-radius: 3px; background: var(--bg-input); overflow: hidden; }
.yukleme-cubuk i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.15s; }
.yukleme.hata { border-color: rgba(239, 107, 107, 0.5); }
.yukleme.hata small { color: var(--danger); }

.dosya-tablo .dosya-ad { overflow-wrap: anywhere; }
.dosya-islem { white-space: nowrap; }
.dosya-islem .btn { display: inline-flex; align-items: center; width: auto; height: 32px; padding: 0 12px; font-size: 13px; text-decoration: none; margin-right: 6px; }

/* ---------- Raporlar ---------- */
.rapor-sekme { margin-bottom: 14px; flex-wrap: wrap; }
.ay-sec { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.ay-sec button {
  height: 34px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
}
.ay-sec button:hover { color: var(--text); border-color: #3a3a44; }
.ay-sec button.secili { color: var(--accent); border-color: var(--accent); background: rgba(212, 160, 84, 0.1); }
.kaynak-not { font-size: 12px; color: var(--text-dim); margin-bottom: 16px; min-height: 1em; }
.rapor-ipucu { margin: 0 0 12px; }

.ozet-kutu small .degisim { font-size: 12px; }
.degisim { font-variant-numeric: tabular-nums; color: var(--text-dim); white-space: nowrap; }
.degisim.dusus { color: #ff9d9d; font-weight: 600; }
.degisim.artis { color: #9db8ff; font-weight: 600; }

.rapor-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-top: 12px; }
.rapor-izgara .kart { margin: 0; }
.dokum { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; font-size: 14px; }
.dokum dt { color: var(--text-dim); }
.dokum dt small { font-size: 11px; color: #6b6b76; }
.dokum dd { text-align: right; font-variant-numeric: tabular-nums; }
.dokum .toplam { border-top: 1px solid var(--border); padding-top: 8px; color: var(--text); font-weight: 600; }
.dokum-not { margin: 12px 0 0; }

.grafik-kart h3 small { font-size: 11px; font-weight: 500; color: #6b6b76; margin-left: 6px; }
.grafik-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.grafik-bas h3 { margin: 0; }
.grafik-bas span { font-size: 12px; color: #6b6b76; }
.g-not { font-size: 11px; color: #6b6b76; margin-top: 10px; }

/* Günlük ciro (SVG) */
.grafik { position: relative; }
.grafik svg { display: block; width: 100%; height: auto; overflow: visible; }
.g-izgara { stroke: #23232a; stroke-width: 1; }
.g-taban { stroke: #3a3a44; stroke-width: 1; }
.g-eksen { fill: #6b6b76; font-size: 12px; font-variant-numeric: tabular-nums; }
.g-pazar { fill: var(--text); font-weight: 700; }
.g-deger { fill: var(--text); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.g-cubuk { fill: var(--accent); transition: opacity 0.12s; }
.g-ortalama { stroke: #c3c2b7; stroke-width: 1.5; stroke-dasharray: 5 4; opacity: 0.7; }
.g-ortalama-yazi { fill: #c3c2b7; font-size: 12px; font-weight: 600; paint-order: stroke; stroke: var(--bg-elev); stroke-width: 4px; }
.g-hedef { fill: transparent; cursor: crosshair; }
.g-hedef.aktif { fill: rgba(255, 255, 255, 0.06); }
.grafik svg:has(.g-hedef.aktif) .g-cubuk { opacity: 0.75; }
.g-ipucu {
  position: absolute;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--text-dim);
  background: #22222a;
  border: 1px solid #34343d;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  white-space: nowrap;
  z-index: 2;
}
.g-ipucu strong { color: var(--text); font-size: 13px; margin-bottom: 2px; }
.g-ipucu span { display: flex; justify-content: space-between; gap: 16px; }
.g-ipucu b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Dikey çubuklar (aylar, haftanın günleri) */
.dikey-cubuklar { display: flex; align-items: stretch; gap: 8px; height: 210px; }
.dc-kolon {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 6px 2px;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  border-radius: 10px;
}
button.dc-kolon { cursor: pointer; }
button.dc-kolon:hover { background: rgba(255, 255, 255, 0.04); }
.dc-deger { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; }
.dc-alan { flex: 1; width: 100%; max-width: 56px; display: flex; align-items: flex-end; border-bottom: 1px solid #3a3a44; }
.dc-cubuk { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.vurgulu .dc-cubuk { background: #5a4a33; }
.vurgulu .dc-kolon.secili .dc-cubuk { background: var(--accent); }
.vurgulu .dc-kolon:not(.secili) .dc-deger { color: var(--text-dim); font-weight: 500; }
.dc-ad { font-size: 12px; color: var(--text-dim); }
.dc-kolon.secili .dc-ad { color: var(--text); font-weight: 600; }
.dc-alt { font-size: 10px; color: #6b6b76; }

/* Pay şeridi (ciro dağılımı, tahsilat şekli) */
.pay-serit { display: flex; gap: 2px; height: 14px; margin-bottom: 14px; }
.pay-serit span { min-width: 3px; }
.pay-serit span:first-child { border-radius: 4px 0 0 4px; }
.pay-serit span:last-child { border-radius: 0 4px 4px 0; }
.pay-serit span:only-child { border-radius: 4px; }
.pay-liste { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.pay-liste li { display: grid; grid-template-columns: 10px 1fr auto 52px; align-items: center; gap: 10px; }
.pay-liste i { width: 10px; height: 10px; border-radius: 3px; }
.pay-liste span { color: var(--text-dim); }
.pay-liste small { font-size: 11px; color: #6b6b76; }
.pay-liste b { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.pay-liste em { font-style: normal; font-size: 12px; color: var(--text-dim); text-align: right; font-variant-numeric: tabular-nums; }
.pay-liste .pay-toplam { border-top: 1px solid var(--border); padding-top: 8px; }
.pay-liste .pay-toplam span, .pay-liste .pay-toplam b { color: var(--text); font-weight: 600; }

/* Servisçi karşılaştırma */
.servis-grafik { margin: 0 0 16px; }
.yc { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 10px; margin-bottom: 10px; }
.yc:last-child { margin-bottom: 0; }
.yc-ad { font-size: 13px; font-weight: 600; }
.yc-satir { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.yc-alan { height: 14px; }
.yc-cubuk { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; }
.yc-satir b, .ic-satir b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ic-satir { display: grid; grid-template-columns: 1fr 1fr 118px; align-items: center; }
.ic-yari { height: 14px; display: flex; }
.ic-yari.sol { justify-content: flex-end; border-right: 1px solid #3a3a44; }
.ic-cubuk { height: 100%; }
.ic-cubuk.acik { background: #e66767; border-radius: 0 4px 4px 0; }
.ic-cubuk.fazla { background: #3987e5; border-radius: 4px 0 0 4px; }
.ic-satir b { text-align: right; }
.ic-satir b.acik { color: #ff9d9d; }
.ic-satir b.fazla { color: #9db8ff; }

/* Tablo içi oran çubuğu */
.veri-cubuk { background: linear-gradient(to left, rgba(212, 160, 84, 0.16) calc(var(--oran) * 100%), transparent 0) no-repeat; }

.rapor-tablo th.siralanir { cursor: pointer; user-select: none; }
.rapor-tablo th.siralanir:hover, .rapor-tablo th.sirali { color: var(--text); }
.rapor-tablo tfoot td, .tablo tfoot td { padding: 14px 16px; font-weight: 600; border-top: 1px solid var(--border); white-space: nowrap; }
.soluk-satir td { color: var(--text-dim); }
.rozet-eski { color: var(--text-dim); background: var(--bg-input); }
.rozet-uyari { color: #ffb37a; background: rgba(230, 168, 107, 0.16); }
.yas-uyari { color: #ffb37a; }
.yas-kritik { color: #ff9d9d; font-weight: 600; }
.tablo .fark { font-size: 13px; padding: 2px 8px; }
.tablo .fark.acik { color: #ff9d9d; background: rgba(239, 107, 107, 0.14); }
.tablo .fark.fazla { color: #9db8ff; background: rgba(120, 150, 255, 0.14); }
.tablo .fark.tamam { color: var(--success); background: rgba(95, 196, 142, 0.14); }

/* ---------- Araç yükleme (tezgah tableti) ---------- */
/* Tezgah kullanıcısında yan menü yok; ekranın tamamı yüklemeye ayrılır */
body[data-rol="tezgah"] .uygulama { grid-template-columns: 1fr; }
body[data-rol="tezgah"] .yan-menu { display: none; }
body[data-rol="tezgah"] .icerik { max-width: none; padding: 20px 24px 32px; }

.yk-ust { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-bottom: 20px; }
.yk-geri {
  display: inline-flex; align-items: center; height: 56px; padding: 0 22px;
  font-size: 20px; font-weight: 600; color: var(--text); text-decoration: none;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px;
}
.yk-geri:active { background: #22222a; }
.yk-baslik { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yk-baslik strong { font-size: 32px; font-weight: 700; color: var(--accent); }
.yk-baslik span { font-size: 16px; color: var(--text-dim); }
.yk-baslik .uyari { color: #e6a86b; }
.yk-sag { display: flex; align-items: center; gap: 12px; }
.yk-kim { font-size: 15px; color: var(--text-dim); }
.yk-cikis { width: auto; height: 44px; padding: 0 18px; }

/* Ana ekran: servisçi butonları */
.yk-servisciler { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.yk-servisci {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  min-height: 34vh; padding: 28px 30px;
  color: var(--text); text-decoration: none;
  background: var(--bg-elev); border: 2px solid var(--border); border-radius: 22px;
  transition: border-color 0.12s, transform 0.08s;
}
.yk-servisci:hover { border-color: var(--accent); }
.yk-servisci:active { transform: scale(0.98); background: #1d1d23; }
.yk-servisci strong { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.01em; }
.yk-servisci span { font-size: 20px; color: var(--text-dim); }
.yk-servisci b { color: var(--text); font-variant-numeric: tabular-nums; }

/* Servisçi ekranı: yükleme | iade */
.yk-bolunmus { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.yk-yarim {
  display: flex; flex-direction: column; gap: 14px;
  padding: 20px; background: var(--bg-elev); border: 2px solid var(--border); border-radius: 22px;
}
.yk-yukleme { border-color: rgba(212, 160, 84, 0.45); }
.yk-iade { border-color: rgba(120, 150, 255, 0.4); }
.yk-yarim-bas { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.yk-yarim-bas h2 { font-size: 30px; font-weight: 700; }
.yk-yukleme h2 { color: var(--accent); }
.yk-iade h2 { color: #9db8ff; }
.yk-yarim-bas span { font-size: 16px; color: var(--text-dim); }
.yk-yarim-bas b { color: var(--text); font-variant-numeric: tabular-nums; }

.yk-sayi { display: flex; flex-direction: column; gap: 4px; }
.yk-sayi span { font-size: 15px; color: var(--text-dim); }
.yk-sayi input {
  width: 100%; height: 88px; padding: 0 18px;
  font: inherit; font-size: 56px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums;
  color: var(--text); background: var(--bg-input); border: 2px solid var(--border); border-radius: 16px; outline: none;
}
.yk-sayi input:focus { border-color: var(--border-focus); }

.yk-basamaklar { display: flex; flex-direction: column; gap: 8px; }
.yk-sira { display: grid; grid-template-columns: 64px repeat(9, minmax(0, 1fr)); gap: 6px; align-items: center; }
.yk-sira-ad { font-size: 12px; color: #6b6b76; text-transform: uppercase; letter-spacing: 0.04em; }
.yk-sira button {
  height: 56px; min-width: 0; padding: 0 2px;
  font: inherit; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: var(--text); background: #22222a; border: 1px solid #2f2f38; border-radius: 12px; cursor: pointer;
  touch-action: manipulation;
}
.yk-sira button:active { transform: scale(0.95); }
.yk-yukleme .yk-sira button.secili { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.yk-iade .yk-sira button.secili { background: #3987e5; border-color: #3987e5; color: #fff; }

.yk-cesit { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--border); padding-top: 12px; }
.yk-cesit-baslik { font-size: 13px; color: var(--text-dim); }
.yk-cesit-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.yk-cesit-oge { display: grid; grid-template-columns: 48px 1fr 48px; gap: 4px; }
.yk-adim-btn, .yk-cesit-sec {
  min-height: 56px; font: inherit; color: var(--text-dim);
  background: #1c1c22; border: 1px solid #2f2f38; border-radius: 12px; cursor: pointer; touch-action: manipulation;
}
.yk-adim-btn { font-size: 24px; color: var(--text); }
.yk-cesit-sec { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 4px 6px; font-size: 14px; }
.yk-cesit-sec small { color: #6b6b76; }
.yk-cesit-sec b { font-size: 18px; color: #6b6b76; font-variant-numeric: tabular-nums; }
.yk-cesit-oge.dolu .yk-cesit-sec { color: var(--text); border-color: rgba(212, 160, 84, 0.6); }
.yk-cesit-oge.dolu .yk-cesit-sec b { color: var(--accent); }
.yk-adim-btn:active, .yk-cesit-sec:active { transform: scale(0.96); }

/* Çeşit adedi seçim penceresi */
.yk-modal { width: min(760px, 100%); display: flex; flex-direction: column; gap: 14px; }
.yk-modal h2 { font-size: 26px; }
.yk-modal h2 small { font-size: 15px; font-weight: 500; color: var(--text-dim); margin-left: 6px; }
.yk-modal-sayi { font-size: 56px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums;
  padding: 8px 18px; background: var(--bg-input); border: 2px solid var(--border); border-radius: 16px; }
.yk-modal-sayi small { display: block; font-size: 15px; font-weight: 500; color: var(--text-dim); }
.yk-modal .yk-sira button.secili { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.yk-alt { display: grid; grid-template-columns: 130px 1fr; gap: 10px; margin-top: 4px; }
.yk-alt .btn { height: 68px; font-size: 20px; border-radius: 16px; }
.yk-kaydet { font-size: 22px !important; }
.yk-iade .yk-kaydet { background: #3987e5; color: #fff; }
.yk-kaydet:disabled { opacity: 0.35; }

.yk-kayitlar { margin-top: 22px; }
.yk-kayitlar h3 { font-size: 16px; color: var(--text-dim); margin-bottom: 10px; }
.yk-kayit {
  display: grid; grid-template-columns: 56px 80px 90px 1fr auto 36px; align-items: center; gap: 12px;
  padding: 12px 14px; margin-bottom: 6px; font-size: 16px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 12px;
}
.yk-saat { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.yk-kayit-yukleme .yk-tur { color: var(--accent); font-weight: 600; }
.yk-kayit-iade .yk-tur { color: #9db8ff; font-weight: 600; }
.yk-kayit strong { font-size: 20px; text-align: right; font-variant-numeric: tabular-nums; }
.yk-detay { font-size: 13px; color: var(--text-dim); }
.yk-kisi { font-size: 13px; color: #6b6b76; }
.yk-kayit .sil { width: 36px; height: 36px; font-size: 20px; }

@media (max-width: 900px) {
  .yk-bolunmus { grid-template-columns: 1fr; }
  .yk-ust { grid-template-columns: 1fr; }
  .yk-kayit { grid-template-columns: 50px 70px 80px 1fr 32px; }
  .yk-kisi { display: none; }
}

/* Günlük Hesap: tezgahtan gelen aldığı ekmek / iade */
.tezgah-not { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 10px; min-height: 0; font-size: 12px; }
.tezgah-not:empty { display: none; }
.tz { color: #6b6b76; }
.tz-tezgah { color: var(--success); }
.tz-fark { color: #e6a86b; }

/* Ayarlar: kullanıcılar */
#kullaniciKart { margin-bottom: 20px; }
.kullanici-tablo td { padding: 8px 12px; }
.girdi.kucuk { height: 34px; font-size: 13px; }
.kullanici-ekle { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-top: 14px; }
.kullanici-ekle .btn { height: 40px; }
@media (max-width: 900px) { .kullanici-ekle { grid-template-columns: 1fr 1fr; } }
.yk-gunluk { margin-top: 22px; }
.yk-gunluk h3 small { font-size: 12px; font-weight: 500; color: var(--text-dim); margin-left: 8px; }
.yk-rozet-yukleme { color: var(--accent); background: rgba(212, 160, 84, 0.14); }
.yk-rozet-iade { color: #9db8ff; background: rgba(120, 150, 255, 0.14); }

/* Günlük Hesap: servisçi tabletinden gelen taslaklar */
.rozet-tablet { color: #7fd6b0; background: rgba(95, 196, 142, 0.12); }
.rozet-tablet-fark { font: inherit; font-size: 11px; color: #ffb37a; background: rgba(230, 168, 107, 0.16); border: none; cursor: pointer; }
.rozet-tablet-fark:hover { background: rgba(230, 168, 107, 0.26); }

/* ---------- Servisçi tableti ---------- */
body[data-rol="servisci"] .uygulama { grid-template-columns: 1fr; }
body[data-rol="servisci"] .yan-menu { display: none; }
body[data-rol="servisci"] .icerik { max-width: none; padding: 16px 20px 32px; }
.yk-baslik span b { color: var(--text); }

.sv-ozet { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.sv-ozet > div { display: flex; flex-direction: column; gap: 2px; padding: 12px 18px; background: var(--bg-elev); border: 1px solid var(--border); border-radius: 14px; }
.sv-ozet span { font-size: 13px; color: var(--text-dim); }
.sv-ozet b { font-size: 26px; font-variant-numeric: tabular-nums; }
.sv-ozet small { font-size: 12px; color: #6b6b76; }
.sv-ozet .sv-para b { color: var(--success); }

.sv-bayiler { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.sv-bayi {
  display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 18px 20px;
  color: var(--text); text-decoration: none; background: var(--bg-elev);
  border: 2px solid var(--border); border-radius: 18px; transition: border-color 0.12s, transform 0.08s;
}
.sv-bayi:active { transform: scale(0.98); }
.sv-bayi strong { font-size: 26px; font-weight: 700; line-height: 1.15; }
.sv-bayi > span { font-size: 16px; color: var(--text-dim); }
.sv-bayi.gidildi { border-color: rgba(95, 196, 142, 0.55); }
.sv-bayi.gidildi > span:first-of-type { color: var(--success); font-weight: 600; }
.sv-etiketler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.sv-etiketler i { font-style: normal; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 7px; }
.sv-etiketler .pesin { color: var(--success); background: rgba(95, 196, 142, 0.14); }
.sv-etiketler .devir { color: var(--accent); background: rgba(212, 160, 84, 0.16); }
.sv-etiketler .tahsilat { color: #9db8ff; background: rgba(120, 150, 255, 0.14); }
.sv-etiketler .onay { color: #0f2a1c; background: var(--success); }
.sv-etiketler .bekliyor { color: #ffb37a; background: rgba(230, 168, 107, 0.16); }
.sv-bayi.yarim { border-color: rgba(230, 168, 107, 0.5); }

.sv-odeme { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px;
  padding: 14px 16px; background: var(--bg-elev); border: 2px solid var(--border); border-radius: 18px; }
.sv-odeme .sv-odemeler button { height: 68px; font-size: 22px; }
.sv-odeme-alt { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; }
.sv-odeme-adi.pesin { color: var(--success); }
.sv-odeme-adi.devir { color: var(--accent); }
.sv-bugun { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 22px; font-size: 16px; color: var(--text-dim); }
.sv-bugun b { font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
.sv-onayli { color: var(--success); font-weight: 600; }
.sv-onayla { width: auto; height: 68px; padding: 0 40px; font-size: 24px; border-radius: 16px; }
.sv-uyari { color: #e6a86b; margin-bottom: 12px; }
.yk-kayit-tahsilat .yk-tur { color: var(--success); font-weight: 600; }

.sv-onay-modal { width: min(640px, 100%); max-height: 92vh; overflow-y: auto; }
.sv-onay-ozet { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 16px; color: var(--text-dim); }
.sv-onay-ozet b { font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
.sv-bolum { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
.sv-bolum-ad { font-size: 15px; font-weight: 600; color: var(--text-dim); }
.sv-bolum-ad small { font-weight: 400; color: #6b6b76; }
.sv-odemeler { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.sv-odemeler button { height: 60px; font: inherit; font-size: 18px; font-weight: 700; color: var(--text-dim);
  background: #22222a; border: 2px solid #2f2f38; border-radius: 12px; cursor: pointer; touch-action: manipulation; }
.sv-odemeler button.secili { color: #0f2a1c; background: var(--success); border-color: var(--success); }
.sv-odemeler button[data-odeme="devir"].secili { color: var(--accent-text); background: var(--accent); border-color: var(--accent); }
.sv-alinacak { font-size: 16px; color: var(--text-dim); }
.sv-alinacak b { font-size: 20px; color: var(--text); }
.sv-gelir { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px; align-items: start; }
.sv-gelir-sayi { font-size: 40px; }
.sv-gelir .sv-tuslar button { height: 52px; font-size: 24px; }
.sv-oneriler { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-oneriler button { height: 44px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--text); background: #22222a; border: 1px solid #2f2f38; border-radius: 10px; cursor: pointer; }
.sv-tuslar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sv-tuslar button { height: 64px; font: inherit; font-size: 28px; font-weight: 600; color: var(--text); background: #22222a; border: 1px solid #2f2f38; border-radius: 14px; cursor: pointer; touch-action: manipulation; }
.sv-tuslar button:active, .sv-sekiller button:active { transform: scale(0.96); }
.sv-sekiller { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sv-sekiller button { height: 52px; font: inherit; font-size: 17px; font-weight: 600; color: var(--text-dim); background: #22222a; border: 2px solid #2f2f38; border-radius: 12px; cursor: pointer; }
.sv-sekiller button.secili { color: var(--text); border-color: var(--accent); background: rgba(212, 160, 84, 0.16); }

@media (max-width: 900px) {
  .sv-odeme-alt { grid-template-columns: 1fr; }
  .sv-onayla { width: 100%; }
  .sv-odemeler { grid-template-columns: repeat(3, 1fr); }
  .sv-gelir { grid-template-columns: 1fr; }
}
.odeme-hucre { display: flex; align-items: center; gap: 6px; }
.pesin-sekil { min-width: 0; }

/* Servisçi tableti: gelir bölümü */
.sv-gelir-kart { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.sv-gelir-kart.acik { padding: 14px 16px; background: var(--bg-elev); border: 2px solid rgba(120, 150, 255, 0.35); border-radius: 18px; }
.sv-gelir-ac {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; height: 68px; padding: 0 22px;
  font: inherit; color: var(--text); text-align: left; background: #22222a; border: 2px solid rgba(120, 150, 255, 0.45);
  border-radius: 12px; cursor: pointer; touch-action: manipulation;
}
.sv-gelir-ac:active { transform: scale(0.99); }
.sv-gelir-ad { font-size: 22px; font-weight: 700; color: #9db8ff; }
.sv-gelir-ad i { font-style: normal; font-size: 16px; margin-left: 6px; }
.sv-gelir-bilgi { font-size: 16px; color: var(--text-dim); }
.sv-gelir-bilgi b { color: var(--text); font-variant-numeric: tabular-nums; }
.sv-gelir-govde { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.sv-devirler { display: flex; flex-direction: column; gap: 6px; max-height: 360px; overflow-y: auto; }
.sv-devirler button { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; min-height: 56px; padding: 6px 12px;
  font: inherit; text-align: left; color: var(--text); background: #1c1c22; border: 2px solid #2f2f38; border-radius: 12px; cursor: pointer; touch-action: manipulation; }
.sv-devirler button.secili { border-color: #3987e5; background: rgba(57, 135, 229, 0.14); }
.sv-devir-kutu { width: 30px; height: 30px; display: grid; place-items: center; font-weight: 800; border: 2px solid #55555f; border-radius: 8px; }
.secili .sv-devir-kutu { background: #3987e5; border-color: #3987e5; color: #fff; }
.sv-devir-tarih { display: flex; flex-direction: column; font-size: 17px; font-weight: 600; }
.sv-devir-tarih small { font-size: 13px; font-weight: 400; color: var(--text-dim); }
.sv-devirler b { font-size: 18px; font-variant-numeric: tabular-nums; }
.sv-gelir-giris { display: flex; flex-direction: column; gap: 8px; }
.sv-gelir-giris .sv-tuslar button { height: 52px; font-size: 24px; }
.sv-gelir-alt { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.sv-ipucu { font-size: 14px; color: var(--text-dim); }
.sv-gelir-kaydet { width: auto; height: 60px; padding: 0 26px; font-size: 20px; border-radius: 14px; background: #3987e5; color: #fff; }
.sv-gelir-kaydet:disabled { opacity: 0.35; }
@media (max-width: 900px) {
  .sv-gelir-govde, .sv-gelir-alt { grid-template-columns: 1fr; }
  .sv-gelir-kaydet { width: 100%; }
}

/* Yan menü altı: kullanıcı adı üstte, şifre ve çıkış yan yana */
.menu-alt { flex-wrap: wrap; }
.menu-alt #kullaniciAd { flex-basis: 100%; }
.menu-alt .btn { flex: 1; width: auto; height: 34px; padding: 0 8px; font-size: 12px; }
.sifre-modal { width: min(420px, 100%); }

/* Tablet: giriş düzeltme */
.yk-kayit { grid-template-columns: 56px 80px 90px 1fr auto auto; }
.yk-islem { display: flex; align-items: center; gap: 6px; }
.yk-duzenle-btn { height: 40px; padding: 0 14px; font: inherit; font-size: 15px; font-weight: 600; color: var(--text);
  background: #22222a; border: 1px solid #2f2f38; border-radius: 10px; cursor: pointer; touch-action: manipulation; }
.yk-duzenle { width: min(760px, 100%); max-height: 94vh; overflow-y: auto; }
.yk-duzenle .yk-yarim { border: none; padding: 0; background: none; }
@media (max-width: 900px) { .yk-kayit { grid-template-columns: 50px 70px 80px 1fr auto; } }

/* İşlem kayıtları */
.kayit-tablo td { white-space: normal; vertical-align: top; }
.kayit-tablo td:first-child { white-space: nowrap; }
.kayit-satir { cursor: pointer; }
.kayit-satir:hover td { background: rgba(255, 255, 255, 0.02); }
.kayit-ozet { line-height: 1.45; }
.kayit-hata .kayit-ozet { color: #e6a86b; }
.kayit-ayrinti td { background: #141418; }
.kayit-ayrinti-blok { margin-bottom: 10px; font-size: 13px; }
.kayit-ayrinti-blok b { display: block; margin-bottom: 4px; color: var(--text-dim); font-weight: 600; }
.kayit-ayrinti-blok dl { display: grid; grid-template-columns: 120px 1fr; gap: 3px 12px; }
.kayit-ayrinti-blok dt { color: #6b6b76; }
.kayit-ayrinti-blok dd { font-family: ui-monospace, Menlo, monospace; font-size: 12px; word-break: break-all; }
.kat-tablet { color: #7fd6b0; background: rgba(95, 196, 142, 0.12); }
.kat-yukleme { color: var(--accent); background: rgba(212, 160, 84, 0.14); }
.kat-gunluk { color: #9db8ff; background: rgba(120, 150, 255, 0.12); }
.kat-oturum { color: var(--text-dim); }
.kat-kullanici, .kat-irsaliye { color: #c3a3ff; background: rgba(170, 130, 255, 0.12); }
.sv-ozet .sv-bekleyen b { color: #ffb37a; }
.sv-ozet.sv-ekmek { margin-bottom: 10px; }
.rozet-tablet-bekliyor { background: rgba(255, 179, 122, 0.14); color: #ffb37a; }
.sv-ozet .sv-kalan b { color: var(--accent, #d4a054); }
.yk-bolunmus + .sv-odeme { margin-top: 16px; }

/* Küçük tabletler (ör. 8,7 inç): basamak butonlarında sayılar sığsın */
@media (max-width: 1100px) {
  .yk-sira { grid-template-columns: 48px repeat(9, minmax(0, 1fr)); gap: 5px; }
  .yk-sira button { font-size: 17px; letter-spacing: -0.02em; }
  .yk-sira-ad { font-size: 10px; }
}

/* ---------- Tablet okunaklılığı (tezgah ve servisçi) ----------
   Koyu zeminde soluk gri yazılar açılır, küçük yazılar büyütülür; yönetici paneli etkilenmez. */
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) {
  --text-dim: #c2c2cc;
  --border: #3a3a44;
}
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) :is(.yk-baslik span, .yk-kim) { font-size: 18px; color: #c2c2cc; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-sayi span { font-size: 17px; color: #c2c2cc; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-yarim-bas span { font-size: 17px; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-sira-ad { font-size: 12px; font-weight: 700; color: #a8a8b4; letter-spacing: 0.02em; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-sira button { font-size: 22px; font-weight: 700; background: #26262e; border-color: #3a3a44; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-sira[data-sira="Yüzler"] button { font-size: 19px; letter-spacing: -0.03em; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) :is(.yk-cesit-baslik, .sv-bolum-ad) { font-size: 16px; color: #c2c2cc; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-cesit-sec { font-size: 16px; color: #d6d6de; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-cesit-sec small { color: #a8a8b4; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-cesit-sec b { font-size: 21px; color: #a8a8b4; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-kayitlar h3 { font-size: 18px; color: #c2c2cc; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-kayit { font-size: 18px; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-kayit strong { font-size: 22px; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) :is(.yk-detay, .yk-kisi) { font-size: 15px; color: #b4b4be; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-saat { color: #c2c2cc; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-servisci span { font-size: 22px; color: #c2c2cc; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .sv-bayi > span { font-size: 18px; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .sv-bayi strong { font-size: 28px; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .sv-etiketler i { font-size: 15px; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .sv-ozet span { font-size: 15px; color: #c2c2cc; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .sv-ozet small { font-size: 14px; color: #a8a8b4; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .sv-bugun { font-size: 18px; color: #c2c2cc; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .sv-bugun b { font-size: 24px; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .sv-gelir-bilgi { font-size: 18px; color: #c2c2cc; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) :is(.sv-devir-tarih small, .sv-ipucu) { font-size: 15px; color: #b4b4be; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .sv-odemeler button:not(.secili) { color: #d6d6de; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .yk-adim-btn { font-size: 28px; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .soluk { color: #b4b4be; }

/* ---------- Tablet uygulaması: büyük ve parmakla rahat kullanım ----------
   <html class="tablet"> yalnızca Karadeniz Ekmek tablet uygulamasında eklenir; bilgisayardaki panel etkilenmez. */

/* Giriş ekranı: tam ekran, iri yazı, büyük kutular */
.tablet .giris-sayfa { padding: 0; align-items: stretch; }
.tablet .giris-kart {
  max-width: none; min-height: 100vh; border: none; border-radius: 0; box-shadow: none;
  display: flex; flex-direction: column; justify-content: center;
  padding: 32px max(40px, calc((100vw - 620px) / 2));
}
.tablet .marka { margin-bottom: 36px; gap: 18px; }
.tablet .marka-logo { width: 84px; height: 84px; border-radius: 22px; }
.tablet .marka-logo svg { width: 40px; height: 40px; }
.tablet .marka h1 { font-size: 34px; }
.tablet .marka p { font-size: 19px; }
.tablet .alan { margin-bottom: 22px; }
.tablet .alan label { font-size: 18px; margin-bottom: 10px; }
.tablet .girdi-kutu input { height: 68px; font-size: 24px; padding: 0 64px 0 20px; border-radius: 16px; }
.tablet .sifre-goster { width: 56px; height: 56px; right: 6px; }
.tablet .sifre-goster svg { width: 26px; height: 26px; }
.tablet .hatirla { font-size: 20px; gap: 14px; margin: 6px 0 14px; padding: 8px 0; }
.tablet .hatirla input { width: 32px; height: 32px; }
.tablet .hatirla small { font-size: 16px; }
.tablet .hata-mesaj { font-size: 18px; min-height: 26px; }
.tablet #girisBtn { height: 72px; font-size: 24px; border-radius: 18px; }
.tablet .alt-not { display: none; }

/* Üst çubuk, uyarılar, pencereler */
.tablet .yk-cikis { height: 56px; padding: 0 24px; font-size: 18px; border-radius: 14px; }
.tablet .yk-geri { height: 64px; font-size: 22px; padding: 0 26px; }
.tablet .bildirim { bottom: 32px; padding: 18px 28px; font-size: 20px; border-radius: 16px; max-width: 90vw; }
.tablet .modal-kart { font-size: 18px; }
.tablet .modal-kart h2 { font-size: 26px; }
.tablet .modal-alt .btn, .tablet .yk-alt .btn { height: 64px; font-size: 20px; }
.tablet .sifre-modal { width: min(560px, 100%); }
.tablet .sifre-modal .alan span { font-size: 18px; }
.tablet .sifre-modal .girdi { height: 60px; font-size: 22px; }
.tablet .deneme-serit { font-size: 16px; padding: 8px; }

/* Dikey tablette (tezgah) yükleme ekranı: yazılar biraz daha iri */
@media (orientation: portrait) {
  .tablet .yk-servisci strong { font-size: 52px; }
  .tablet .yk-sira button { height: 62px; }
}

/* Yatay tablette giriş: logo solda, form sağda (dikey yükseklik az) */
@media (orientation: landscape) {
  .tablet .giris-kart {
    display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; column-gap: 56px;
    padding: 24px 56px;
  }
  .tablet .marka { margin: 0; }
  .tablet .marka-logo { width: 110px; height: 110px; border-radius: 28px; }
  .tablet .marka-logo svg { width: 54px; height: 54px; }
  .tablet .marka h1 { font-size: 38px; }
  .tablet .alan { margin-bottom: 14px; }
  .tablet .alan label { margin-bottom: 6px; }
  .tablet .girdi-kutu input { height: 62px; }
  .tablet .hatirla { margin: 2px 0 6px; }
  .tablet #girisBtn { height: 66px; }
}

/* Dikey tablette tezgah ana ekranı: servisçiler tam genişlikte, alt alta, ekranı doldurur */
@media (orientation: portrait) {
  .tablet .yk-servisciler { grid-template-columns: 1fr; gap: 16px; }
  .tablet .yk-servisci { min-height: 25vh; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: 24px; }
  .tablet .yk-servisci strong { font-size: 60px; flex-basis: 100%; }
  .tablet .yk-servisci span { font-size: 26px; }
  .tablet .yk-baslik strong { font-size: 36px; }
  .tablet .yk-baslik span { font-size: 20px; }
}

/* Tezgah yüklemesi onayı: servisçi onaylayana kadar iki tablette de tam ekran */
.yk-onay { display: block; font-size: 11px; font-weight: 500; color: #7fd6b0; }
.yk-onay.bekliyor { color: #ffb37a; }
td .yk-onay { display: inline; margin-left: 4px; }
.onay-ekrani {
  position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(8, 8, 10, 0.97); overflow-y: auto;
}
.onay-ekrani[hidden] { display: none; }
.onay-kutu { width: min(720px, 100%); text-align: center; }
.onay-ust { font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.onay-kutu h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.2; margin-bottom: 28px; }
.onay-sayilar { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.onay-sayilar > div {
  flex: 1 1 200px; max-width: 320px; display: flex; flex-direction: column; gap: 4px; padding: 20px;
  background: var(--bg-elev); border: 1px solid var(--border); border-radius: 18px;
}
.onay-sayilar span { font-size: 18px; color: #c2c2cc; }
.onay-sayilar b { font-size: clamp(56px, 10vw, 84px); line-height: 1; font-variant-numeric: tabular-nums; }
.onay-sayilar small { font-size: 16px; color: #a8a8b4; }
.onay-yukleme b { color: var(--accent); }
.onay-iade b { color: #9db8ff; }
.onay-liste { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 6px; text-align: left; }
.onay-liste li { display: grid; grid-template-columns: 60px 90px 1fr; gap: 10px; padding: 10px 14px; font-size: 17px; background: var(--bg-elev); border-radius: 12px; }
.onay-liste span { color: var(--text-dim); font-variant-numeric: tabular-nums; }
.onay-liste em { font-style: normal; color: #c2c2cc; }
.onay-btn { width: 100%; min-height: 92px; font-size: 32px; font-weight: 700; border-radius: 20px; }
.onay-ekle { min-height: 64px; padding: 0 28px; font-size: 20px; border-radius: 16px; margin-top: 8px; }
.onay-nokta { display: inline-block; width: 10px; height: 10px; margin-left: 6px; border-radius: 50%; background: var(--accent); animation: onay-nabiz 1.2s ease-in-out infinite; vertical-align: middle; }
@keyframes onay-nabiz { 50% { opacity: 0.2; } }

/* Silme onayı penceresi */
.btn-tehlike { background: #c2413b; color: #fff; border: none; }
.btn-tehlike:hover { background: #d44d46; }
.onay-sor { max-width: 460px; }
.onay-sor h2 { font-size: 20px; margin-bottom: 18px; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .onay-sor h2 { font-size: 26px; }
:is(body[data-rol="tezgah"], body[data-rol="servisci"]) .onay-sor .btn { min-height: 64px; font-size: 22px; flex: 1; }
