/* =========================================================
   Boş Daire Takip — arayüz stilleri
   ========================================================= */

:root {
  --ana: #0f3d6e;
  --ana-2: #1559a8;
  --ana-acik: #e8f0fa;
  --zemin: #f2f4f7;
  --yuzey: #ffffff;
  --cizgi: #e1e6ed;
  --cizgi-koyu: #cbd3de;
  --yazi: #172231;
  --soluk: #5f6d80;
  --basari: #15803d;
  --basari-acik: #e7f6ec;
  --tehlike: #c62828;
  --tehlike-acik: #fdecec;
  --uyari: #a15c07;
  --uyari-acik: #fff4e0;
  --golge: 0 1px 2px rgba(16, 32, 56, .06), 0 2px 8px rgba(16, 32, 56, .05);
  --yaricap: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--yazi);
  background: var(--zemin);
}
a { color: var(--ana-2); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
[hidden] { display: none !important; }

.ikon { width: 18px; height: 18px; flex: none; }

/* ---------------- Üst bar ---------------- */
.ust {
  background: var(--ana);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.ust-ic {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.marka { display: flex; align-items: center; gap: 10px; color: #fff; min-width: 0; }
.marka:hover { text-decoration: none; }
.marka-logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: rgba(255, 255, 255, .14);
  display: grid; place-items: center; flex: none;
}
.marka-logo .ikon { width: 20px; height: 20px; }
.marka-yazi { display: flex; flex-direction: column; min-width: 0; }
.marka-yazi strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marka-yazi small { font-size: 12px; opacity: .75; }
.ust-sag { display: flex; align-items: center; gap: 10px; flex: none; }
.kullanici-ad { font-size: 13px; opacity: .9; }
.ust .btn-hayalet { color: #fff; border-color: rgba(255, 255, 255, .3); }
.ust .btn-hayalet:hover { background: rgba(255, 255, 255, .12); }

.menu { background: rgba(0, 0, 0, .14); }
.menu-ic {
  max-width: 1200px; margin: 0 auto; padding: 0 10px;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.menu-ic::-webkit-scrollbar { display: none; }
.menu a {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 12px; color: rgba(255, 255, 255, .78);
  font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent;
}
.menu a:hover { color: #fff; text-decoration: none; }
.menu a.aktif { color: #fff; border-bottom-color: #7fb6ff; font-weight: 600; }
.menu .ikon { width: 16px; height: 16px; }

/* ---------------- İçerik ---------------- */
.icerik { max-width: 1200px; margin: 0 auto; padding: 20px 16px 40px; }
.rol-personel .icerik { max-width: 860px; }

.sayfa-ust { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.sayfa-baslik { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.sayfa-aciklama { color: var(--soluk); margin: 4px 0 16px; }
.sayfa-ust .sayfa-aciklama { margin-bottom: 0; }
.sayfa-baslik + .secim-izgara, .sayfa-baslik + .bos-durum, .sayfa-baslik + .daire-izgara { margin-top: 14px; }
.kucuk-yazi { font-size: 13px; color: var(--soluk); }

.kart {
  background: var(--yuzey);
  border: 1px solid var(--cizgi);
  border-radius: var(--yaricap);
  box-shadow: var(--golge);
  padding: 18px;
  margin-bottom: 16px;
}
.kart-bas { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.kart-bas h2 { font-size: 16px; font-weight: 650; display: flex; align-items: center; gap: 8px; }

.bos-durum { padding: 28px 16px; text-align: center; color: var(--soluk); }

/* ---------------- Uyarılar ---------------- */
.uyari { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; border: 1px solid; font-size: 14px; }
.uyari-hata { background: var(--tehlike-acik); border-color: #f5c2c2; color: #8e1c1c; }
.uyari-basari { background: var(--basari-acik); border-color: #b9e3c6; color: #135e2e; }
.uyari-bilgi { background: var(--ana-acik); border-color: #c5d8f0; color: #17406e; }

/* ---------------- Butonlar ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 42px; padding: 0 16px;
  font: inherit; font-weight: 600; font-size: 14px;
  border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .15s, border-color .15s, transform .05s;
  position: relative; text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-ana { background: var(--ana-2); color: #fff; }
.btn-ana:hover { background: #104a8e; }
.btn-ikincil { background: var(--yuzey); color: var(--ana); border-color: var(--cizgi-koyu); }
.btn-ikincil:hover { background: var(--ana-acik); }
.btn-hayalet { background: transparent; color: var(--soluk); border-color: var(--cizgi); }
.btn-hayalet:hover { background: rgba(0, 0, 0, .04); }
.btn-tehlike { background: var(--tehlike); color: #fff; }
.btn-tehlike-hayalet { background: transparent; color: var(--tehlike); border-color: #efc4c4; }
.btn-tehlike-hayalet:hover { background: var(--tehlike-acik); }
.btn-beyaz { background: #fff; color: var(--yazi); }
.btn-hayalet-beyaz { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn-kucuk { min-height: 34px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn-kucuk .ikon { width: 16px; height: 16px; }
.btn-buyuk { min-height: 50px; font-size: 16px; }
.btn-blok { width: 100%; }
.buton-grup { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ayrac { width: 1px; height: 24px; background: var(--cizgi); margin: 0 4px; }

.ikon-btn {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--soluk);
  cursor: pointer; padding: 0;
}
.ikon-btn:hover { background: var(--zemin); color: var(--yazi); }
.ikon-btn.tehlike { color: var(--tehlike); }
.ikon-btn.tehlike:hover { background: var(--tehlike-acik); }

/* ---------------- Formlar ---------------- */
input, select, textarea {
  font: inherit; color: inherit;
  width: 100%; min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--cizgi-koyu);
  border-radius: 9px;
  background: #fff;
}
textarea { resize: vertical; min-height: 70px; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(21, 89, 168, .25); border-color: var(--ana-2); }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; accent-color: var(--ana-2); }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.form label.onay { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; }
.form label.onay input { margin-top: 3px; width: 18px; height: 18px; }
.form h3 { font-size: 15px; margin: 18px 0 12px; color: var(--ana); }
.form-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 14px; }
.form.sikisik { display: flex; flex-direction: column; gap: 8px; }
.form.sikisik textarea { min-height: 56px; }

.satir-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.satir-form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--soluk); }
.satir-form.genis label { flex: 1 1 160px; }
.satir-form select { min-width: 150px; }
.satir-ici { display: inline; }
.sayi { max-width: 110px; }

/* ---------------- Giriş / Kurulum ---------------- */
.giris-sayfa {
  min-height: 100vh; display: grid; place-items: center; padding: 20px 16px;
  background: linear-gradient(160deg, #0f3d6e 0%, #1559a8 55%, #e9eef5 55.1%);
}
.giris-kutu {
  width: 100%; max-width: 400px;
  background: #fff; border-radius: 16px; padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(10, 30, 60, .25);
}
.giris-kutu.genis { max-width: 640px; }
.giris-baslik { text-align: center; margin-bottom: 22px; }
.giris-baslik h1 { font-size: 21px; }
.giris-baslik p { color: var(--soluk); margin: 6px 0 0; }
.giris-logo {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 12px;
  background: var(--ana-acik); color: var(--ana-2); display: grid; place-items: center;
}
.giris-logo .ikon { width: 30px; height: 30px; }
.kontrol-listesi { list-style: none; padding: 12px 14px; margin: 0 0 18px; background: var(--zemin); border-radius: 10px; font-size: 14px; }
.kontrol-listesi li { padding: 3px 0; }
.kontrol-listesi .ok { color: var(--basari); }
.kontrol-listesi .hata { color: var(--tehlike); font-weight: 600; }
.kontrol-listesi .uyar { color: var(--uyari); }

/* ---------------- Adım çubuğu ---------------- */
.adimlar {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  margin-bottom: 18px; font-size: 14px;
}
.adim { padding: 6px 12px; border-radius: 999px; color: var(--soluk); background: transparent; border: 1px solid var(--cizgi); }
.adim.tamam { background: var(--ana-acik); color: var(--ana); border-color: #c5d8f0; font-weight: 600; }
.adim.aktif { background: var(--ana-2); color: #fff; border-color: var(--ana-2); font-weight: 600; }
a.adim:hover { text-decoration: none; filter: brightness(.97); }
.adim-ok { width: 14px; height: 14px; color: var(--cizgi-koyu); }

/* ---------------- Seçim kartları (etap / blok) ---------------- */
.secim-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.secim-izgara.secim-buyuk { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.secim-kart {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 92px; padding: 16px 12px;
  background: var(--yuzey); border: 2px solid var(--cizgi); border-radius: 14px;
  box-shadow: var(--golge); color: var(--yazi); text-align: center;
  transition: border-color .15s, transform .1s;
}
.secim-kart:hover { border-color: var(--ana-2); text-decoration: none; }
.secim-kart:active { transform: scale(.98); }
.secim-kart.var { border-color: #9fd3b0; background: linear-gradient(180deg, #fff, var(--basari-acik)); }
.secim-buyuk .secim-kart { min-height: 170px; }
.secim-ikon { width: 52px; height: 52px; border-radius: 14px; background: var(--ana-acik); color: var(--ana-2); display: grid; place-items: center; }
.secim-ikon .ikon { width: 28px; height: 28px; }
.secim-ad { font-size: 20px; font-weight: 700; }
.secim-buyuk .secim-ad { font-size: 24px; }
.secim-alt { font-size: 13px; color: var(--soluk); }
.secim-kart .ilerleme { width: 80%; }

.ilerleme { display: block; height: 8px; border-radius: 99px; background: #e4e9f0; overflow: hidden; }
.ilerleme > span { display: block; height: 100%; background: linear-gradient(90deg, #1f9d55, #27b765); border-radius: 99px; transition: width .3s; }
.ilerleme.ince { height: 5px; }

.geri-btn { margin-top: 4px; }
.geri-link { margin-bottom: 12px; }
.nokta { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.nokta-yesil { background: var(--basari); }

/* ---------------- Daire seçimi ---------------- */
.daire-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-bottom: 20px; }
.daire-btn {
  aspect-ratio: 1 / 1; min-height: 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--yuzey); border: 2px solid var(--cizgi); border-radius: 14px;
  box-shadow: var(--golge); color: var(--yazi);
}
.daire-btn:hover { border-color: var(--ana-2); text-decoration: none; }
.daire-btn:active { transform: scale(.96); }
.daire-no { font-size: 24px; font-weight: 700; line-height: 1; }
.daire-sayi { font-size: 11px; font-weight: 600; }
.daire-btn.var { background: var(--basari); border-color: var(--basari); color: #fff; }

/* ---------------- Fotoğraf yükleme ekranı ---------------- */
.daire-ust .sayfa-aciklama { margin-bottom: 14px; }
.tip-kart { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; }
.tip-baslik { font-weight: 650; }
.segment { display: inline-flex; background: var(--zemin); border: 1px solid var(--cizgi); border-radius: 11px; padding: 3px; gap: 2px; }
.segment-secenek { position: relative; }
.segment-secenek input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segment-secenek span { display: block; padding: 8px 16px; border-radius: 8px; font-weight: 650; color: var(--soluk); }
.segment-secenek input:checked + span { background: var(--ana-2); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.segment-secenek input:focus-visible + span { outline: 2px solid var(--ana-2); outline-offset: 2px; }

.alan-listesi { display: flex; flex-direction: column; gap: 12px; padding-bottom: 90px; }
.alan-kart {
  background: var(--yuzey); border: 1px solid var(--cizgi); border-left: 4px solid var(--cizgi-koyu);
  border-radius: var(--yaricap); box-shadow: var(--golge); padding: 12px 14px;
}
.alan-kart.dolu { border-left-color: var(--basari); }
.alan-kart.gizli { display: none; }
.alan-bas { display: flex; align-items: center; gap: 12px; }
.alan-ikon {
  width: 42px; height: 42px; border-radius: 11px; flex: none;
  display: grid; place-items: center; background: var(--ana-acik); color: var(--ana-2);
}
.alan-ikon .ikon { width: 22px; height: 22px; }
.alan-ikon.kucuk { width: 30px; height: 30px; border-radius: 8px; }
.alan-ikon.kucuk .ikon { width: 17px; height: 17px; }
.alan-sicak_su { background: #fdeaea; color: #d32f2f; }
.alan-soguk_su { background: #e6eef9; color: #2f5496; }
.alan-diger { background: var(--uyari-acik); color: var(--uyari); }
.alan-mutfak, .alan-balkon { background: #fff3e6; color: #c25e00; }
.alan-wc, .alan-banyo { background: #e6f6f7; color: #0e7c86; }
.alan-salon, .alan-yatak1, .alan-yatak2, .alan-yatak3, .alan-yatak4 { background: #efeafd; color: #5b3fc4; }
.alan-ad { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.alan-ad strong { font-size: 16px; }
.alan-durum { font-size: 13px; color: var(--soluk); }
.alan-kart.dolu .alan-durum { color: var(--basari); font-weight: 600; }
.alan-butonlar { display: flex; gap: 6px; flex: none; }
.alan-butonlar .btn { min-height: 46px; padding: 0 14px; }
.alan-butonlar .ikon { width: 20px; height: 20px; }
.dosya-sec { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }

.foto-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.foto-izgara:not(:empty) { margin-top: 12px; }
.foto {
  margin: 0; position: relative; border-radius: 10px; overflow: hidden;
  background: #dfe5ec; border: 1px solid var(--cizgi);
  display: flex; flex-direction: column;
}
.foto img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; cursor: zoom-in; background: #dfe5ec; }
.foto figcaption { font-size: 12px; padding: 5px 7px; background: var(--uyari-acik); color: #6b3d00; line-height: 1.35; word-break: break-word; }
.foto-arac { display: flex; justify-content: flex-end; gap: 4px; padding: 5px; background: #fff; align-items: center; min-height: 44px; }
.foto-kim { font-size: 11px; color: var(--soluk); margin-right: auto; padding-left: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foto-ust {
  position: absolute; inset: 0; background: rgba(10, 25, 45, .55); color: #fff;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 8px; padding: 8px; text-align: center;
  font-size: 12px; font-weight: 600;
}
.foto-durum { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.foto-ilerleme { width: 80%; height: 6px; background: rgba(255, 255, 255, .3); border-radius: 99px; overflow: hidden; }
.foto-ilerleme span { display: block; height: 100%; width: 0; background: #fff; transition: width .2s; }
.foto.hatali .foto-ust { background: rgba(160, 20, 20, .82); }
.foto.hatali .foto-ilerleme { display: none; }

.alt-cubuk {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border-top: 1px solid var(--cizgi); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06);
  padding-bottom: env(safe-area-inset-bottom);
}
.alt-cubuk-ic { max-width: 860px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.btn-basari { background: var(--basari); color: #fff; }
.btn-basari:hover { background: #116a32; }
.tamam-btn { flex: 1; }
.tamam-btn .ikon { width: 22px; height: 22px; }
.tamam-btn.bekliyor { opacity: .5; }

.tamam-kart { max-width: 480px; margin: 24px auto; text-align: center; padding: 32px 22px; }
.tamam-ikon {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 16px;
  display: grid; place-items: center; background: var(--basari-acik); color: var(--basari);
}
.tamam-ikon .ikon { width: 40px; height: 40px; stroke-width: 2.5; }
.tamam-ikon.bos { background: var(--uyari-acik); color: var(--uyari); }
.tamam-daire { font-size: 18px; font-weight: 650; color: var(--ana); margin: 8px 0 4px; }
.tamam-butonlar { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.yukleme-durum { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.yukleme-durum.yukleniyor { background: var(--ana-acik); color: var(--ana); }
.yukleme-durum.bitti { background: var(--basari-acik); color: var(--basari); }

/* ---------------- Dialog ---------------- */
.dialog {
  border: none; border-radius: 16px; padding: 22px; width: min(460px, calc(100vw - 32px));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.dialog::backdrop { background: rgba(10, 20, 35, .5); }
.dialog h3 { margin-bottom: 6px; }
.dialog textarea { margin: 10px 0 14px; }
.dialog-butonlar { display: flex; justify-content: flex-end; gap: 8px; }
.dialog-resim { padding: 0; width: auto; max-width: 96vw; max-height: 92vh; background: #000; overflow: hidden; }
.dialog-resim img { max-width: 96vw; max-height: 92vh; object-fit: contain; cursor: zoom-out; }
.kapat-btn { position: absolute; top: 8px; right: 8px; background: rgba(255, 255, 255, .9); border: none; z-index: 2; }

/* ---------------- Yönetim: istatistik, tablolar ---------------- */
.istatistikler { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.istatistik {
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--yaricap);
  box-shadow: var(--golge); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
}
.istatistik-etiket { font-size: 13px; color: var(--soluk); font-weight: 600; }
.istatistik-deger { font-size: 28px; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.istatistik-deger small { font-size: 16px; color: var(--soluk); font-weight: 600; }

.blok-durum-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.blok-durum {
  display: flex; flex-direction: column; gap: 4px; padding: 10px 12px;
  border: 1px solid var(--cizgi); border-radius: 10px; color: var(--yazi); background: #fafbfc;
}
.blok-durum:hover { border-color: var(--ana-2); text-decoration: none; }
.blok-durum span { font-size: 13px; color: var(--soluk); font-variant-numeric: tabular-nums; }
.blok-durum.var { background: #fff; border-color: #b9e3c6; }

.son-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.son-foto { border: 1px solid var(--cizgi); border-radius: 10px; overflow: hidden; color: var(--yazi); background: #fff; }
.son-foto:hover { border-color: var(--ana-2); text-decoration: none; }
.son-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #dfe5ec; }
.son-bilgi { display: flex; flex-direction: column; padding: 8px 10px; }
.son-bilgi strong { font-size: 13px; }
.son-bilgi small { font-size: 12px; color: var(--soluk); }

.filtre { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filtre label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; font-weight: 600; color: var(--soluk); flex: 1 1 160px; }

.tablo-kart { padding: 0; overflow: hidden; }
.tablo-kart > .kart-bas { padding: 16px 18px 0; }
.tablo-arac { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--cizgi); }
.tablo-sarici { overflow-x: auto; }
.tablo { width: 100%; border-collapse: collapse; font-size: 14px; }
.tablo th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--soluk); font-weight: 650; padding: 10px 14px; background: #f7f9fb; border-bottom: 1px solid var(--cizgi); white-space: nowrap; }
.tablo td { padding: 10px 14px; border-bottom: 1px solid var(--cizgi); vertical-align: middle; }
.tablo tbody tr:last-child td { border-bottom: none; }
.tablo tbody tr:hover { background: #fafcff; }
.tablo .sec { width: 36px; padding-right: 0; }
.tablo .sec input { width: 18px; height: 18px; }
.tablo .sag { text-align: right; }
.tablo .islemler { white-space: nowrap; }
.tablo .islemler > * { margin-left: 4px; }
.tablo tr.pasif td { opacity: .55; }
.tablo.duzenlenebilir td { padding: 6px 10px; }
.tablo.duzenlenebilir input, .tablo.duzenlenebilir select { min-height: 38px; padding: 6px 10px; }

.etiket { display: inline-block; font-size: 11.5px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--zemin); color: var(--soluk); vertical-align: middle; }
.etiket-uyari { background: var(--uyari-acik); color: var(--uyari); }
.etiket-ana { background: var(--ana-acik); color: var(--ana); }

.yonetim-foto-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.yonetim-foto { border: 1px solid var(--cizgi); border-radius: 10px; overflow: hidden; background: #fff; }
.yonetim-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #dfe5ec; }
.yonetim-foto .form { padding: 10px; }
.yonetim-foto select, .yonetim-foto textarea { min-height: 38px; padding: 7px 10px; font-size: 14px; }

.tehlike-bolge { margin-top: 24px; text-align: right; }
.sabit-kaydet { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(180deg, rgba(242, 244, 247, 0), var(--zemin) 40%); margin-bottom: 16px; z-index: 5; }

.iki-sutun { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 16px; align-items: start; }
.iki-sutun.esit { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.bilgi-liste { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 12px; font-size: 14px; }
.bilgi-liste dt { color: var(--soluk); }
.bilgi-liste dd { margin: 0; font-weight: 600; }

/* ---------------- Mobil ---------------- */
@media (max-width: 860px) {
  .iki-sutun { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .gizle-mobil { display: none !important; }
  .kullanici-ad { display: none; }
  .icerik { padding: 14px 12px 32px; }
  .sayfa-baslik { font-size: 19px; }
  .kart { padding: 14px; }
  .alan-bas { flex-wrap: wrap; }
  .alan-butonlar { width: 100%; }
  .alan-butonlar .btn { flex: 1; }
  .alan-butonlar .btn-ikincil { flex: 0 0 auto; }
  .foto-izgara { grid-template-columns: repeat(3, 1fr); }
  .tablo th, .tablo td { padding: 9px 8px; }
  .segment { width: 100%; }
  .segment-secenek { flex: 1; text-align: center; }
  .segment-secenek span { padding: 9px 4px; }
  .tablo-arac .buton-grup { width: 100%; }
  .ayrac { display: none; }
}
@media (max-width: 380px) {
  .gizle-dar { display: none; }
  .daire-izgara { grid-template-columns: repeat(4, 1fr); gap: 8px; }
}
