:root {
  --lacivert: #17325F;
  --lacivert-koyu: #0F1B33;
  --kagit: #F3F4F6;
  --beyaz: #FFFFFF;
  --murekkep: #151A24;
  --soluk: #5B6577;
  --cizgi: #C9CFDA;
  --sari: #FFC81E;
  --sari-koyu: #E5AF00;
  --damga: #C8283A;
  --yesil: #1E7A4C;
  --turuncu: #B25E00;
  --alt-bosluk: env(safe-area-inset-bottom, 0px);
  --ust-bosluk: env(safe-area-inset-top, 0px);
  --yazi: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --damga-yazi: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --kagit: #0E1420;
    --beyaz: #172033;
    --murekkep: #EDF0F6;
    --soluk: #9AA5BB;
    --cizgi: #2C3850;
    --damga: #FF6B78;
    --yesil: #4FD08E;
    --turuncu: #FFB04D;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--kagit); color: var(--murekkep);
  font: 16px/1.4 var(--yazi); -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sari); outline-offset: 2px; }

/* ---------- üst çubuk ve ana iskelet ---------- */
.ust {
  position: sticky; top: 0; z-index: 20; background: var(--lacivert-koyu); color: #fff;
  padding: calc(var(--ust-bosluk) + 10px) 16px 10px; display: flex; align-items: center; gap: 12px; min-height: 56px;
}
.ust h1 { font-size: 18px; margin: 0; flex: 1; font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ust .geri, .ust .ikon-dugme {
  background: none; border: 0; color: #fff; width: 44px; height: 44px; margin: -6px 0 -6px -10px;
  font-size: 26px; line-height: 1; border-radius: 4px; cursor: pointer;
}
.ust .ikon-dugme { margin: -6px -10px -6px 0; font-size: 15px; width: auto; padding: 0 10px; }
.damga {
  font-family: var(--damga-yazi); font-weight: 700; color: var(--damga);
  border: 2px solid currentColor; border-radius: 3px; padding: 1px 8px; transform: rotate(-3deg);
  display: inline-block; letter-spacing: .5px; background: #fff; font-size: 15px;
}
.ust .damga { background: #fff; color: var(--damga); }
main { padding: 12px 12px calc(96px + var(--alt-bosluk)); max-width: 640px; margin: 0 auto; }

.alt-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--lacivert-koyu);
  display: flex; padding-bottom: var(--alt-bosluk); border-top: 1px solid #000;
}
.alt-nav button {
  flex: 1; min-height: 56px; background: none; border: 0; color: #B9C2D3; font-size: 14px; cursor: pointer;
  border-top: 3px solid transparent; position: relative;
}
.alt-nav button[aria-current="true"] { color: #fff; border-top-color: var(--sari); font-weight: 650; }
.rozet {
  position: absolute; top: 6px; margin-left: 4px; background: var(--damga); color: #fff; border-radius: 10px;
  font-size: 12px; min-width: 20px; padding: 0 6px; line-height: 20px; font-weight: 700;
}

/* ---------- form bölümleri ---------- */
.bolum { background: var(--beyaz); border: 1px solid var(--cizgi); border-radius: 4px; margin: 0 0 14px; overflow: hidden; }
.bolum > h2 {
  margin: 0; background: var(--lacivert); color: #fff; font-size: 15px; font-weight: 650; padding: 9px 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.bolum-ic { padding: 14px; display: grid; gap: 14px; }
label.alan { display: grid; gap: 5px; font-size: 14px; color: var(--soluk); font-weight: 550; }
label.alan > span em { color: var(--damga); font-style: normal; }
input[type=text], input[type=password], input[type=tel], input[type=number], input[type=search],
input[type=datetime-local], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px; background: var(--beyaz);
  border: 1.5px solid var(--cizgi); border-radius: 4px; color: var(--murekkep); appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--lacivert); outline: 3px solid var(--sari); outline-offset: 0; }
input[readonly] { background: var(--kagit); }
.satir { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ipucu { font-size: 13px; color: var(--soluk); margin: 0; }

/* ---------- düğmeler ---------- */
.dugme {
  min-height: 48px; padding: 0 18px; border-radius: 4px; border: 1.5px solid var(--lacivert); background: var(--beyaz);
  color: var(--lacivert); font-weight: 650; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
@media (prefers-color-scheme: dark) { .dugme { color: #fff; border-color: #5E78A8; } }
.dugme.birincil { background: var(--sari); border-color: var(--sari-koyu); color: #1A1400; }
.dugme.tehlike { color: var(--damga); border-color: var(--damga); }
.dugme.tam { width: 100%; }
.dugme.kucuk { min-height: 40px; padding: 0 12px; font-size: 14px; }
.dugme:disabled { opacity: .55; cursor: default; }
.dugme:active:not(:disabled) { transform: translateY(1px); }

.cipler { display: flex; flex-wrap: wrap; gap: 8px; }
.cip {
  min-height: 44px; padding: 0 16px; border: 1.5px solid var(--cizgi); border-radius: 22px; background: var(--beyaz);
  cursor: pointer; font-weight: 550; display: inline-flex; align-items: center;
}
.cip[aria-pressed="true"] { background: var(--lacivert); border-color: var(--lacivert); color: #fff; }
.segment { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.segment button {
  min-height: 48px; border: 1.5px solid var(--cizgi); background: var(--beyaz); font-weight: 600; cursor: pointer;
}
.segment button:first-child { border-radius: 4px 0 0 4px; }
.segment button:last-child { border-radius: 0 4px 4px 0; border-left: 0; }
.segment button[aria-pressed="true"] { background: var(--lacivert); border-color: var(--lacivert); color: #fff; }
.segment.hata button { border-color: var(--damga); }

/* ---------- liste ---------- */
.arama { position: sticky; top: calc(56px + var(--ust-bosluk)); z-index: 10; background: var(--kagit); padding: 0 0 10px; display: grid; gap: 8px; }
.kart {
  display: block; width: 100%; text-align: left; background: var(--beyaz); border: 1px solid var(--cizgi); border-radius: 4px;
  padding: 12px 14px; margin: 0 0 10px; cursor: pointer; border-left: 5px solid var(--cizgi);
}
.kart.bekleyen { border-left-color: var(--turuncu); }
.kart.devam { border-left-color: #2F6FD0; }
.kart.tamam { border-left-color: var(--yesil); }
.kart .ust-satir { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.kart .baslik { font-weight: 650; overflow-wrap: anywhere; }
.kart .alt { color: var(--soluk); font-size: 14px; margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.no { font-family: var(--damga-yazi); font-weight: 700; color: var(--damga); font-size: 14px; white-space: nowrap; }
.durum { font-size: 13px; font-weight: 650; }
.durum.bekleyen { color: var(--turuncu); } .durum.devam { color: #2F6FD0; } .durum.tamam { color: var(--yesil); }
@media (prefers-color-scheme: dark) { .durum.devam, .kart.devam { color: #7FAAF0; } .kart.devam { border-left-color: #7FAAF0; } }
.bos { text-align: center; color: var(--soluk); padding: 40px 16px; }

/* ---------- malzeme / foto / imza ---------- */
.malzeme { border: 1px solid var(--cizgi); border-radius: 4px; padding: 10px 12px; display: grid; gap: 4px; background: var(--kagit); }
.malzeme .ad { font-weight: 650; overflow-wrap: anywhere; }
.malzeme .alt-bilgi { font-size: 14px; color: var(--soluk); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.malzeme .seri { font-family: var(--damga-yazi); }
.malzeme .islemler { display: flex; gap: 8px; margin-top: 6px; }
.etiket { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 3px; background: var(--lacivert); color: #fff; }
.etiket.kullanimda { background: #6b7280; }
.kart-grup.kilitli { opacity: .6; }
.kart-grup.kilitli .kart, .kart-grup.kilitli .pdf-dugme { cursor: not-allowed; }
.kilit-kutu { background: #fff7e0; border: 1px solid var(--turuncu); border-left-width: 5px; border-radius: 4px; padding: 12px 14px; margin-bottom: 12px; }
@media (prefers-color-scheme: dark) { .kilit-kutu { background: #3a2f12; } }
.etiket.bekliyor { background: var(--turuncu); color: #fff; }
.fotolar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.foto { position: relative; aspect-ratio: 1; background: var(--kagit); border: 1px solid var(--cizgi); border-radius: 4px; overflow: hidden; padding: 0; cursor: pointer; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto .sil {
  position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border-radius: 16px; border: 0;
  background: rgba(0,0,0,.7); color: #fff; font-size: 18px; line-height: 1; cursor: pointer;
}
.foto .bekle { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(255,200,30,.95); color: #1A1400; font-size: 11px; font-weight: 700; text-align: center; padding: 2px; }
.foto-dugmeleri { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.imza-kutu {
  width: 100%; min-height: 120px; border: 1.5px dashed var(--soluk); border-radius: 4px; background: #fff; display: grid;
  place-items: center; color: #5B6577; cursor: pointer; padding: 0; overflow: hidden;
}
.imza-kutu img { width: 100%; max-height: 160px; object-fit: contain; display: block; }
.imza-kutu.dolu { border-style: solid; border-color: var(--yesil); }
.imza-grup { display: grid; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--cizgi); }
.imza-grup:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- alt çubuk (kaydet) ---------- */
.kaydet-cubugu {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--beyaz); border-top: 2px solid var(--lacivert);
  padding: 10px 12px calc(10px + var(--alt-bosluk)); display: flex; gap: 10px;
}
.kaydet-cubugu .dugme { flex: 1; }

/* ---------- modal / alt sayfa ---------- */
.perde { position: fixed; inset: 0; z-index: 50; background: rgba(8,12,22,.6); display: flex; align-items: flex-end; justify-content: center; }
.sayfa {
  background: var(--kagit); width: 100%; max-width: 640px; max-height: 94dvh; overflow: auto; border-radius: 10px 10px 0 0;
  padding-bottom: var(--alt-bosluk);
}
.sayfa > header { position: sticky; top: 0; background: var(--lacivert-koyu); color: #fff; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; z-index: 1; }
.sayfa > header h2 { margin: 0; font-size: 17px; }
.sayfa > header button { background: none; border: 0; color: #fff; font-size: 15px; min-height: 44px; padding: 0 6px; cursor: pointer; }
.sayfa .icerik { padding: 14px; display: grid; gap: 14px; }
.tam-ekran { position: fixed; inset: 0; z-index: 60; background: #000; display: flex; flex-direction: column; }
.tam-ekran video { flex: 1; width: 100%; min-height: 0; object-fit: cover; }
.tam-ekran .kontrol { padding: 12px 16px calc(12px + var(--alt-bosluk)); background: var(--lacivert-koyu); display: grid; gap: 10px; color: #fff; }
.imza-tuval { background: #fff; touch-action: none; width: 100%; height: 260px; border: 1.5px solid var(--soluk); border-radius: 4px; display: block; }
.imza-cizgi { position: relative; }
.imza-cizgi::after { content: "✕"; position: absolute; left: 14px; bottom: 56px; color: #8A93A5; pointer-events: none; font-size: 16px; }

#bildirim .t { background: var(--lacivert-koyu); color: #fff; padding: 12px 14px; border-radius: 4px; border-left: 5px solid var(--yesil); box-shadow: 0 4px 16px rgba(0,0,0,.35); }
#bildirim .t.hata { border-left-color: var(--damga); }
#bildirim { position: fixed; left: 12px; right: 12px; bottom: calc(84px + var(--alt-bosluk)); z-index: 90; display: grid; gap: 8px; pointer-events: none; max-width: 616px; margin: 0 auto; }

.hata-kutu { background: #FDECEE; color: #7A1020; border: 1px solid var(--damga); border-radius: 4px; padding: 10px 12px; font-size: 15px; }
@media (prefers-color-scheme: dark) { .hata-kutu { background: #3A1820; color: #FFD3D8; } }
.uyari { background: #FFF5D1; color: #4A3700; border: 1px solid var(--sari-koyu); border-radius: 4px; padding: 10px 12px; margin: 0 0 14px; font-size: 15px; }
@media (prefers-color-scheme: dark) { .uyari { background: #3A3010; color: #FFE9A6; } }

/* ---------- giriş ---------- */
.giris {
  min-height: 100dvh; display: grid; align-content: center; gap: 22px; padding: 24px 20px calc(24px + var(--alt-bosluk));
  background: var(--lacivert); color: #fff; max-width: none;
}
.giris .kutu { width: 100%; max-width: 420px; margin: 0 auto; display: grid; gap: 16px; }
.giris h1 { margin: 0; font-size: 28px; line-height: 1.1; }
.giris p { margin: 0; color: #B9C2D3; }
.giris .damga { justify-self: start; font-size: 22px; padding: 4px 14px; }
.giris label.alan { color: #D6DCE8; }
.giris input { border-color: transparent; background: #fff; color: #151A24; }

.admin-no { font-family: var(--damga-yazi); font-size: 32px; font-weight: 700; color: var(--damga); }
.liste-satir { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--cizgi); min-height: 56px; }
.liste-satir:last-child { border-bottom: 0; }
.liste-satir .sol { min-width: 0; overflow-wrap: anywhere; }
.liste-satir small { color: var(--soluk); display: block; }

@media (prefers-reduced-motion: no-preference) {
  .sayfa { animation: yuksel .18s ease-out; }
  @keyframes yuksel { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
}
.foto-ic { position: absolute; inset: 0; border: 0; padding: 0; background: none; cursor: pointer; }
.tam-ekran .kontrol { position: relative; z-index: 1; }
.tam-ekran .kontrol input { background: #fff; color: #151A24; }
.tam-ekran .dugme { background: var(--beyaz); color: var(--lacivert); }
.tam-ekran .dugme.birincil { background: var(--sari); color: #1A1400; }

.kart .kisi { font-weight: 650; color: var(--murekkep); }
.kart .zaman { font-family: var(--damga-yazi); font-size: 13px; }
.servis-ad { font-size: 17px; font-weight: 650; color: var(--murekkep); }
.oku { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px; align-items: baseline; }
.oku-e { color: var(--soluk); font-size: 14px; }
.oku-d { overflow-wrap: anywhere; white-space: pre-wrap; }
.arama select { margin-bottom: 0; }

.kart.silinmis { border-left-color: var(--damga); background: var(--kagit); }
.kart.silinmis .baslik { text-decoration: line-through; color: var(--soluk); }
.durum.silindi { color: var(--damga); }
.alt-nav button { font-size: 13px; padding: 0 2px; }

/* liste kartı + yanında PDF düğmesi */
.kart-grup { display: flex; align-items: stretch; gap: 8px; margin-bottom: 10px; }
.kart-grup .kart { margin-bottom: 0; flex: 1 1 auto; min-width: 0; }
.pdf-dugme { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 6px 4px;
  font: inherit; font-size: 12px; font-weight: 650; color: var(--murekkep); background: var(--beyaz); border: 1px solid var(--cizgi); border-radius: 4px; cursor: pointer; }
.pdf-dugme img { width: 30px; height: 35px; }
.pdf-dugme:active { filter: brightness(.95); }
.paylas-dugmeleri { display: grid; gap: 8px; margin-top: 10px; }
a.dugme { display: flex; align-items: center; justify-content: center; text-decoration: none; }

#cevrimdisi-bant { position: sticky; top: 0; z-index: 30; background: #5b4a00; color: #fff; text-align: center; font-size: 13px; padding: 6px 10px; }
#cevrimdisi-bant.hata { background: var(--damga); }
#cevrimdisi-bant[hidden] { display: none; }
#cevrimdisi-bant:not([hidden]):not(:empty) { cursor: default; }

.kart-islem { display: flex; gap: 8px; justify-content: flex-end; padding: 6px 4px 2px; }

/* ---------- hesap rozeti ---------- */
.ust .hesap-rozet {
  display: grid; text-align: right; gap: 0; background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px; padding: 4px 10px; min-height: 44px; margin: -6px -6px -6px 0; cursor: pointer; max-width: 46vw; line-height: 1.2;
}
.hesap-ad { font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hesap-rol { font-size: 12px; color: var(--sari); }
.hesap-kimlik { display: grid; gap: 2px; padding: 10px 12px; background: var(--beyaz); border: 1px solid var(--cizgi); border-left: 5px solid var(--sari); border-radius: 4px; }
.hesap-kimlik strong { font-size: 18px; }
.hesap-kimlik span { color: var(--soluk); font-size: 14px; }
.giris .baglanti { background: none; border: 0; color: var(--sari); text-decoration: underline; font-size: 15px; min-height: 44px; cursor: pointer; justify-self: start; padding: 0; }

/* ---------- masaüstü düzeni ---------- */
@media (min-width: 960px) {
  :root { --ust-yuk: 60px; --yan: 232px; }
  .ust { padding-left: 24px; padding-right: 24px; }
  .ust h1 { font-size: 20px; }
  .ust .hesap-rozet { max-width: 320px; }
  /* alt menü → sol yan menü */
  .alt-nav {
    top: var(--ust-yuk); right: auto; width: var(--yan); flex-direction: column; justify-content: flex-start;
    padding: 12px 0; border-top: 0; border-right: 1px solid #000;
  }
  .alt-nav button { flex: none; min-height: 48px; text-align: left; padding: 0 22px; font-size: 15px; border-top: 0; border-left: 4px solid transparent; }
  .alt-nav button:hover { background: rgba(255,255,255,.06); color: #fff; }
  .alt-nav button[aria-current="true"] { border-left-color: var(--sari); background: rgba(255,255,255,.1); }
  .rozet { position: static; margin-left: 8px; display: inline-block; }
  #uygulama:has(.alt-nav) main { margin-left: var(--yan); max-width: none; padding: 24px 36px 48px; }
  #uygulama:has(.alt-nav) main > * { max-width: 1000px; }
  main { max-width: 1000px; padding: 24px 28px 64px; }
  /* kaydet çubuğu */
  .kaydet-cubugu { left: var(--yan); padding-left: 36px; padding-right: 36px; justify-content: flex-end; }
  .kaydet-cubugu .dugme { flex: 0 1 240px; }
  #uygulama:has(.kaydet-cubugu) main { padding-bottom: 110px; }
  /* alt sayfalar → ortada pencere */
  .perde { align-items: center; padding: 24px; }
  .sayfa { max-width: 600px; border-radius: 10px; max-height: 88dvh; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
  .sayfa > header { border-radius: 10px 10px 0 0; }
  #bildirim { left: var(--yan); right: 24px; bottom: 24px; max-width: 520px; margin: 0; }
  /* listeler iki sütun, form bölümleri geniş */
  .giris .kutu { max-width: 440px; }
  .oku { grid-template-columns: 11em 1fr; }
}
@media (min-width: 960px) and (hover: hover) {
  .kart, .liste-satir, .pdf-dugme { transition: background .12s; }
  .liste-satir:hover { background: #F7F8FB; }
}

@media (max-width: 959px) { #uygulama:has(.kaydet-cubugu) .alt-nav { display: none; } }

/* ---------- mesajlar / rapor / günlük ---------- */
.alt-nav { overflow-x: auto; scrollbar-width: none; }
.alt-nav::-webkit-scrollbar { display: none; }
.alt-nav button { flex: 1 0 auto; min-width: 72px; padding: 0 10px; white-space: nowrap; }
.alt-nav .rozet { position: static; display: inline-block; margin-left: 5px; vertical-align: middle; }
.sohbet { display: grid; gap: 10px; padding-bottom: 8px; }
.balon { max-width: 86%; padding: 9px 12px; border-radius: 10px; background: var(--beyaz); border: 1px solid var(--cizgi); display: grid; gap: 4px; justify-self: start; }
.balon.ben { justify-self: end; background: #E4ECFA; border-color: #B7C8E8; }
.balon.sistem { background: #FFF5D1; border-color: var(--sari-koyu); }
.balon .metin { white-space: pre-wrap; overflow-wrap: anywhere; }
.balon small { color: var(--soluk); font-size: 12px; }
.balon .dugme { justify-self: start; }
.yaz-cubugu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--beyaz); border-top: 2px solid var(--lacivert); padding: 8px 12px calc(8px + var(--alt-bosluk)); display: flex; gap: 8px; align-items: flex-end; }
.yaz-cubugu textarea { flex: 1; min-height: 44px; resize: none; }
.tablo-kap { overflow-x: auto; }
.tablo { width: 100%; border-collapse: collapse; font-size: 14px; }
.tablo th { text-align: left; background: var(--lacivert); color: #fff; padding: 8px 10px; white-space: nowrap; position: sticky; top: 0; }
.tablo td { padding: 8px 10px; border-bottom: 1px solid var(--cizgi); vertical-align: top; }
.tablo td small { display: block; color: var(--soluk); }
.tablo tbody tr[onclick], .tablo tbody tr:has(td) { cursor: default; }
.tablo tr.hatali td { background: #FDECEE; }
.tablo tr.silinmis td { color: var(--soluk); text-decoration: line-through; }
.onay-satir { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.onay-satir input { width: 22px; height: 22px; }
@media (prefers-color-scheme: dark) { .balon.ben { background: #1E2E4F; border-color: #34508A; } .balon.sistem { background: #3A3010; } .tablo tr.hatali td { background: #3A1820; } }
@media (min-width: 960px) {
  .yaz-cubugu { left: var(--yan); padding-left: 36px; padding-right: 36px; }
  .alt-nav { overflow-x: visible; overflow-y: auto; }
  .alt-nav button { flex: none; }
  #uygulama:has(.alt-nav) main > .genis, main > .genis { max-width: 1200px; }
  .tablo-kap { max-width: 100%; }
  #uygulama:has(.yaz-cubugu) main { padding-bottom: 110px; }
}
@media (max-width: 959px) { #uygulama:has(.yaz-cubugu) .alt-nav { display: none; } #uygulama:has(.yaz-cubugu) main { padding-bottom: 100px; } }

main { min-width: 0; }
.tablo-kap { max-width: 100%; overflow-x: auto; }
@media (min-width: 1280px) {
  .kart-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; align-items: start; }
}
.tablo .sec { width: 44px; text-align: center; padding: 0 6px; } .tablo .sec input { width: 20px; height: 20px; }
.yil-sec { font-weight: 650; }

.hatali-alan { outline: 3px solid var(--damga); outline-offset: 2px; border-radius: 4px; background-color: #FDECEE; }
.hata-liste { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 8px; }
.hata-liste li > div { font-size: 14px; }
.baglanti-kucuk { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: inherit; text-decoration: underline; cursor: pointer; min-height: 28px; }
@media (prefers-color-scheme: dark) { .hatali-alan { background-color: #3A1820; } }
