:root {
  --zemin: #f3f4f1; --kart: #ffffff; --yazi: #1b1e19; --soluk: #5f665b; --cizgi: #dde1d8;
  --ana: #14532d; --ana-2: #1d6b3c; --ana-acik: #e4efe7; --vurgu: #b45309;
  --tamam: #15803d; --tamam-z: #dcfce7; --eksik: #a16207; --eksik-z: #fef3c7;
  --yok: #b91c1c; --yok-z: #fee2e2; --bilgi: #1d4ed8; --bilgi-z: #dbeafe; --notr: #475569; --notr-z: #e2e8f0;
  --golge: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.04);
  --r: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; color: var(--yazi); background: var(--zemin);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--zemin); -webkit-text-size-adjust: 100%; }
a { color: var(--ana); }
button, input, select, textarea { font: inherit; color: inherit; }
.gizli { display: none !important; }
.yukleniyor { padding: 40px; text-align: center; color: var(--soluk); }
.soluk { color: var(--soluk); }
.kucuk { font-size: 13px; }
.cok-kucuk { font-size: 12px; }
.kalin { font-weight: 600; }
.sag { text-align: right; }
.satir { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.satir.ara { justify-content: space-between; }
.bosluk { flex: 1; }
h2 { font-size: 18px; margin: 4px 0 12px; }
h3 { font-size: 15px; margin: 18px 0 8px; }

/* ---------- Üst bar ---------- */
.ust { background: var(--ana); color: #fff; padding: 0 16px; display: flex; align-items: center; gap: 10px; min-height: 56px; position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top); }
.ust .marka { font-weight: 700; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ust .marka small { font-weight: 400; opacity: .75; margin-left: 6px; }
.ust .kim { font-size: 13px; opacity: .92; text-align: right; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.ust .kim span { opacity: .75; }
.ust button, .ust a.ust-btn { background: rgba(255,255,255,.14); border: 0; color: #fff; padding: 7px 11px; border-radius: 8px; cursor: pointer; text-decoration: none; position: relative; }
.ust button:hover { background: rgba(255,255,255,.24); }
.ust .rozet-sayi { position: absolute; top: -4px; right: -4px; }

.sekmeler { display: flex; gap: 2px; padding: 6px 12px 0; background: var(--kart); border-bottom: 1px solid var(--cizgi); overflow-x: auto; position: sticky; top: calc(56px + env(safe-area-inset-top)); z-index: 20; scrollbar-width: none; }
.sekmeler a { text-decoration: none; padding: 10px 12px; border-bottom: 3px solid transparent; color: var(--soluk); white-space: nowrap; font-weight: 500; }
.sekmeler a.aktif { color: var(--ana); border-bottom-color: var(--ana); }

main { max-width: 1440px; margin: 0 auto; padding: 16px; }
main.dar { max-width: 760px; padding-bottom: 120px; }

/* ---------- Alt navigasyon (saha) ---------- */
.alt-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--cizgi); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -2px 12px rgba(0,0,0,.05); }
.alt-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 68px; padding: 8px 2px; color: #3f463b; text-decoration: none; font-size: 14px; font-weight: 600; position: relative; -webkit-tap-highlight-color: transparent; }
.alt-nav a svg { width: 30px; height: 30px; stroke-width: 2.2; }
.alt-nav a.aktif { color: var(--ana); background: var(--ana-acik); }
.alt-nav a.aktif::before { content: ""; position: absolute; top: 0; left: 18%; right: 18%; height: 4px; border-radius: 0 0 4px 4px; background: var(--ana); }
.alt-nav a:active { background: var(--ana-acik); }
.alt-nav .rozet-sayi { position: absolute; top: 6px; left: calc(50% + 8px); min-width: 22px; height: 22px; font-size: 13px; }
/* "Diğer" menüsü ve yazı boyutu (yaşlı / az gören çalışanlar için büyük dokunma alanları) */
.buyuk-menu { display: grid; gap: 10px; }
.buyuk-menu a, .buyuk-menu button { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; border: 1px solid var(--cizgi); border-radius: 12px; background: #fff; color: var(--yazi); font-size: 18px; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; font-family: inherit; }
.buyuk-menu a svg, .buyuk-menu button svg { width: 28px; height: 28px; color: var(--ana); flex: none; }
.yazi-sec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.yazi-sec button { min-height: 56px; border: 2px solid var(--cizgi); border-radius: 12px; background: #fff; font-weight: 700; color: var(--yazi); cursor: pointer; font-family: inherit; }
.yazi-sec button.secili { border-color: var(--ana); background: var(--ana-acik); color: var(--ana); }
.rozet-sayi { background: var(--yok); color: #fff; border-radius: 99px; font-size: 11px; font-weight: 700; min-width: 18px; height: 18px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; }

.aktif-bant { display: flex; align-items: center; gap: 10px; background: var(--vurgu); color: #fff; padding: 10px 16px; text-decoration: none; position: sticky; top: 56px; z-index: 25; font-size: 14px; }
.aktif-bant b { font-weight: 700; }
.aktif-bant .nokta { width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: nabiz 1.4s infinite; flex: none; }
@keyframes nabiz { 0%,100% { opacity: 1 } 50% { opacity: .25 } }

/* ---------- Form öğeleri ---------- */
input, select, textarea { border: 1px solid var(--cizgi); background: #fff; border-radius: 9px; padding: 8px 10px; min-height: 40px; width: 100%; }
input[type=checkbox], input[type=radio] { width: auto; min-height: 0; accent-color: var(--ana); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ana-acik); border-color: var(--ana); }
textarea { min-height: 84px; resize: vertical; }
label.alan { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--soluk); }
label.alan > span.etiket { color: var(--yazi); font-weight: 500; }
.ipucu { font-size: 12px; color: var(--soluk); }

.btn { border: 1px solid var(--cizgi); background: #fff; padding: 8px 14px; border-radius: 9px; cursor: pointer; min-height: 40px; font-weight: 500; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; color: var(--yazi); }
.btn:hover { background: #f7f8f5; }
.btn.ana { background: var(--ana); border-color: var(--ana); color: #fff; }
.btn.ana:hover { background: var(--ana-2); }
.btn.uyari { background: var(--vurgu); border-color: var(--vurgu); color: #fff; }
.btn.tehlike { color: var(--yok); }
.btn.kucuk { padding: 4px 10px; min-height: 32px; font-size: 13px; }
.btn.buyuk { width: 100%; padding: 15px; font-size: 16.5px; border-radius: 12px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-grup { display: flex; gap: 8px; flex-wrap: wrap; }

.arac { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-bottom: 12px; }
.arac label { display: flex; flex-direction: column; font-size: 12px; color: var(--soluk); gap: 3px; min-width: 130px; }
.arac label.genis { min-width: 220px; flex: 1; }
.arac .bosluk { flex: 1; }

/* ---------- Kartlar ---------- */
.kart { background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--r); box-shadow: var(--golge); padding: 14px 16px; }
.kart + .kart { margin-top: 12px; }
.kart h3:first-child, .kart h2:first-child { margin-top: 0; }
.ozet { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ozet .kart h4 { margin: 0 0 8px; font-size: 12.5px; color: var(--soluk); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.sayaclar { display: flex; gap: 16px; flex-wrap: wrap; }
.sayac { display: flex; flex-direction: column; cursor: default; }
.sayac b { font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.sayac span { font-size: 12px; color: var(--soluk); }
.sayac.tik { cursor: pointer; }
.sayac.tik:hover span { text-decoration: underline; }

.bilgi-kutu { border-left: 4px solid var(--bilgi); background: var(--bilgi-z); padding: 10px 12px; border-radius: 8px; font-size: 14px; white-space: pre-wrap; }
.bilgi-kutu.uyari { border-color: var(--vurgu); background: var(--eksik-z); }
.bilgi-kutu.tehlike { border-color: var(--yok); background: var(--yok-z); }

.tanim { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14px; }
.tanim dt { color: var(--soluk); }
.tanim dd { margin: 0; white-space: pre-wrap; word-break: break-word; }

/* ---------- Tablo ---------- */
.tablo-kap { background: var(--kart); border: 1px solid var(--cizgi); border-radius: var(--r); overflow: auto; box-shadow: var(--golge); max-height: calc(100vh - 220px); }
table { border-collapse: collapse; width: 100%; font-size: 13.5px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--cizgi); vertical-align: top; }
th { background: #f6f7f4; font-size: 12px; color: var(--soluk); font-weight: 600; position: sticky; top: 0; z-index: 1; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbf8; }
tbody tr.tik { cursor: pointer; }
.pasif td { opacity: .5; }
td .alt { font-size: 12px; color: var(--soluk); margin-top: 2px; }
td.lok { min-width: 260px; max-width: 420px; }

.rozet { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.r-tamam { background: var(--tamam-z); color: var(--tamam); }
.r-eksik { background: var(--eksik-z); color: var(--eksik); }
.r-yok { background: var(--yok-z); color: var(--yok); }
.r-bilgi { background: var(--bilgi-z); color: var(--bilgi); }
.r-notr { background: var(--notr-z); color: var(--notr); }

.ilerleme { height: 8px; background: var(--notr-z); border-radius: 99px; overflow: hidden; min-width: 80px; }
.ilerleme i { display: block; height: 100%; background: var(--tamam); }

/* ---------- Ajanda ---------- */
.hafta-bas { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.hafta-bas h2 { margin: 0; flex: 1; text-align: center; font-size: 16px; }
.gun { margin-bottom: 14px; }
.gun-baslik { display: flex; align-items: baseline; gap: 8px; padding: 0 2px 6px; font-weight: 600; font-size: 14px; }
.gun-baslik .soluk { font-weight: 400; }
.gun.bugun .gun-baslik { color: var(--ana); }
.gun-bos { font-size: 13px; color: var(--soluk); padding: 10px 12px; border: 1px dashed var(--cizgi); border-radius: 10px; }
.oge { display: flex; gap: 12px; background: #fff; border: 1px solid var(--cizgi); border-radius: 11px; padding: 11px 12px; margin-bottom: 7px; cursor: pointer; align-items: flex-start; text-decoration: none; color: inherit; }
.oge:hover { border-color: #c9cfc3; }
.oge .saat { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 44px; color: var(--soluk); font-size: 14px; padding-top: 1px; }
.oge .ic { flex: 1; min-width: 0; }
.oge .ad { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.oge .alt { font-size: 12.5px; color: var(--soluk); margin-top: 3px; }
.oge.cizgi-tamam { border-left: 4px solid var(--tamam); }
.oge.cizgi-eksik { border-left: 4px solid var(--vurgu); }
.oge.cizgi-yok { border-left: 4px solid var(--yok); }
.oge.cizgi-bilgi { border-left: 4px solid var(--bilgi); }
.oge.cizgi-notr { border-left: 4px solid var(--notr-z); }

.fab { position: fixed; right: 18px; bottom: calc(78px + env(safe-area-inset-bottom)); z-index: 29; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--ana); color: #fff; font-size: 30px; box-shadow: 0 6px 18px rgba(20,83,45,.35); cursor: pointer; line-height: 1; }

/* ---------- Ziyaret ekranı ---------- */
.ziyaret-bas { background: var(--ana-acik); border: 2px solid var(--ana); }
.ziyaret-bas .zaman { font-size: 36px; font-weight: 700; color: var(--ana); font-variant-numeric: tabular-nums; margin: 4px 0; }
.kayit-durum { font-size: 12px; color: var(--soluk); min-height: 16px; }
.form-dikey { display: grid; gap: 14px; }
.secim-dugme { display: flex; gap: 8px; }
.secim-dugme label { flex: 1; border: 1px solid var(--cizgi); border-radius: 9px; padding: 9px; text-align: center; cursor: pointer; color: var(--yazi); font-size: 14px; background: #fff; }
.secim-dugme input { display: none; }
.secim-dugme input:checked + span { font-weight: 700; }
.secim-dugme label:has(input:checked) { border-color: var(--ana); background: var(--ana-acik); color: var(--ana); }

.foto-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.foto-izgara .foto { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: #e5e7e1; cursor: pointer; }
.foto-izgara img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-izgara .sil { position: absolute; top: 4px; right: 4px; border: 0; background: rgba(0,0,0,.6); color: #fff; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; font-size: 15px; line-height: 1; }
.foto-ekle { aspect-ratio: 1; border: 2px dashed #b9c0b3; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ana); cursor: pointer; background: #fff; font-weight: 600; font-size: 13px; }
.foto-ekle svg { width: 28px; height: 28px; }
.foto-izgara .foto .etiket-defter { position: absolute; left: 4px; bottom: 4px; background: rgba(20,83,45,.9); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; }
.defter-kutu { border: 2px solid var(--ana); background: var(--ana-acik); }

/* ---------- Kamera ---------- */
.kamera { position: fixed; inset: 0; background: #000; z-index: 60; display: flex; flex-direction: column; }
.kamera .goruntu { flex: 1; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.kamera video, .kamera canvas.onizleme, .kamera img.onizleme { max-width: 100%; max-height: 100%; }
.kamera .damga-onizleme { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; padding: 8px 12px; font-size: 13px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.kamera .alt { display: flex; align-items: center; justify-content: space-around; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); gap: 12px; background: #000; }
.kamera .alt button { background: rgba(255,255,255,.15); color: #fff; border: 0; padding: 11px 16px; border-radius: 10px; font-weight: 600; cursor: pointer; }
.kamera .deklansor { width: 70px; height: 70px; border-radius: 50%; border: 5px solid #fff !important; background: rgba(255,255,255,.25) !important; padding: 0 !important; }
.kamera .defter-ipucu { position: absolute; top: 12px; left: 12px; right: 12px; background: rgba(20,83,45,.85); color: #fff; padding: 8px 12px; border-radius: 9px; font-size: 13.5px; text-align: center; }
.kamera .aciklama-gir { padding: 0 16px 8px; background: #000; }
.kamera .aciklama-gir input { background: #222; color: #fff; border-color: #444; }

/* ---------- Harita ---------- */
.harita { height: calc(100vh - 260px); min-height: 360px; border-radius: var(--r); border: 1px solid var(--cizgi); overflow: hidden; background: #e8ebe4; position: relative; z-index: 0; }
main.dar .harita { height: calc(100vh - 230px); }
.harita.kucuk, main.dar .harita.kucuk { height: 220px; min-height: 0; }
.harita-yok { display: flex; align-items: center; justify-content: center; height: 100%; padding: 20px; text-align: center; color: var(--soluk); }
.lejant { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--soluk); margin: 8px 0; }
.lejant i { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; border: 1.5px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.leaflet-popup-content { font-size: 13px; line-height: 1.4; }

/* ---------- Giriş ---------- */
.giris-kap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(160deg, #14532d 0%, #1f3a2a 100%); }
.giris-kutu { width: 100%; max-width: 380px; background: #fff; border-radius: 14px; padding: 26px; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.giris-kutu h1 { font-size: 20px; margin: 0 0 4px; }
.giris-kutu form { display: grid; gap: 12px; margin-top: 18px; }
.hata-metin { color: var(--yok); font-size: 14px; min-height: 18px; white-space: pre-wrap; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(15,20,15,.45); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal-kutu { background: #fff; border-radius: 14px; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); overflow: auto; padding: 20px; }
.modal-kutu.genis { max-width: 980px; }
.modal-kutu h3 { margin-top: 0; font-size: 17px; }
.form-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-izgara .tam { grid-column: 1 / -1; }
.form-izgara label.onay { flex-direction: row; align-items: center; gap: 8px; color: var(--yazi); font-size: 14px; }
.modal-alt { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.coklu { border: 1px solid var(--cizgi); border-radius: 9px; max-height: 220px; overflow: auto; padding: 4px 0; background: #fff; }
.coklu label { display: flex; gap: 8px; align-items: center; padding: 5px 10px; font-size: 13.5px; color: var(--yazi); cursor: pointer; }
.coklu label:hover { background: #f6f7f4; }
.coklu-ara { margin-bottom: 6px; }

.bildirim { position: fixed; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: #1b1e19; color: #fff; padding: 11px 18px; border-radius: 10px; z-index: 70; max-width: calc(100% - 32px); box-shadow: 0 6px 24px rgba(0,0,0,.25); font-size: 14px; }
.bildirim.hata { background: var(--yok); }

.bildirim-oge { border: 1px solid var(--cizgi); border-radius: 11px; background: #fff; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.bildirim-oge.yeni { border-left: 4px solid var(--bilgi); }
.bildirim-oge.onemli { border-left: 4px solid var(--yok); }
.bildirim-oge .baslik { font-weight: 600; }
.bildirim-oge.yeni .baslik::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bilgi); margin-right: 6px; vertical-align: 1px; }
.bildirim-oge .mesaj { margin-top: 6px; white-space: pre-wrap; font-size: 14px; }

/* ---------- Rapor ---------- */
.rapor { background: #fff; border: 1px solid var(--cizgi); border-radius: var(--r); padding: 22px; max-width: 900px; margin: 0 auto; }
.rapor .rapor-bas { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ana); padding-bottom: 10px; margin-bottom: 14px; }
.rapor .rapor-bas h1 { font-size: 19px; margin: 0; }
.rapor table { font-size: 13.5px; border: 1px solid var(--cizgi); }
.rapor th { position: static; width: 32%; background: #f6f7f4; }
.rapor .foto-izgara { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.rapor .foto-izgara .foto { aspect-ratio: auto; cursor: zoom-in; }
.rapor .foto-izgara figure { margin: 0; }
.rapor .defter-izgara { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.rapor .foto-izgara figcaption { font-size: 11.5px; color: var(--soluk); padding: 4px 2px; }
.rapor .dip { font-size: 11.5px; color: var(--soluk); border-top: 1px solid var(--cizgi); margin-top: 18px; padding-top: 8px; }
.tam-ekran-foto { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 80; display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.tam-ekran-foto img { max-width: 96vw; max-height: 96vh; }

@media (max-width: 680px) {
  main { padding: 12px; }
  .form-izgara { grid-template-columns: 1fr; }
  .ust .marka small { display: none; }
  .arac > * { flex: 1 1 140px; }
  .tanim { grid-template-columns: 1fr; gap: 0 0; }
  .tanim dt { margin-top: 8px; font-size: 12.5px; }
  .rapor { padding: 14px; border-radius: 0; border-left: 0; border-right: 0; }
  .rapor .rapor-bas { flex-direction: column; gap: 4px; }
  .tablo-kap { max-height: none; }
}
@media print {
  .ust, .sekmeler, .alt-nav, .arac, .btn, .fab, .aktif-bant, .yazdirma-gizle { display: none !important; }
  .sadece-yazdir { display: block !important; }
  body, :root, html { background: #fff; }
  main { padding: 0; max-width: none; }
  .rapor { border: 0; padding: 0; max-width: none; }
  .rapor .foto-izgara { grid-template-columns: repeat(3, 1fr); }
  .rapor .defter-izgara { grid-template-columns: 1fr 1fr; }
  .rapor figure { break-inside: avoid; }
  .tablo-kap { box-shadow: none; border: 0; max-height: none; overflow: visible; }
  body.modal-acik #uygulama { display: none; }
  .modal { position: static; background: none; padding: 0; display: block; }
  .modal-kutu { max-height: none; overflow: visible; padding: 0; max-width: none !important; }
}

/* Kontrol listesi bölüm başlıkları */
.rapor-grup th { background: var(--notr-z); text-transform: uppercase; letter-spacing: .4px; font-size: 12px; }
.form-grup { margin: 14px 0 2px; padding-bottom: 4px; border-bottom: 1px solid var(--cizgi, #e5e7eb); font-size: 14px; }
/* Koordinatör uyarı kutusu */
.uyari-kutu { border-left: 4px solid var(--yok); }
.uyari-kutu h4 { margin: 0 0 6px; }
.uyari-kutu ul { margin: 4px 0 10px; padding-left: 18px; }
.uyari-kutu li { margin: 2px 0; }

.sadece-yazdir { display: none; }
/* Tehlikeli durum formunda fotoğraf seçimi önizlemesi */
.td-fotolar { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.td-fotolar figure { margin: 0; }
.td-fotolar img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; background: #ddd; }
.td-fotolar figcaption { font-size: 12px; color: var(--notr); margin-top: 3px; }
.coklu[data-ad="izinler"] { max-height: none; }
/* Proje yöneticisi görünümü: koordinatöre özel seçim kolonları ve yönergeler gösterilmez */
.yonetici-modu .sec-kol, .yonetici-modu .sadece-koord { display: none !important; }

/* Risk değerlendirmesi: sınıf renkleri kütükteki koşullu biçimle aynı */
.rs { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; color: #1b1e19; }
.rs-0 { background: #00b050; color: #fff; } .rs-1 { background: #92d050; } .rs-2 { background: #ffff00; } .rs-3 { background: #ffc000; } .rs-4 { background: #ff0000; color: #fff; }
.rd-d { display: inline-block; padding: 1px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; }
.rd-acik { background: #ffc000; } .rd-kapali { background: #00b050; color: #fff; }
.rd-bolum td { background: #1f3864; color: #fff; font-weight: 700; font-size: 13px; }
.rd-tablo td { vertical-align: top; }
tr.tikla { cursor: pointer; }
.yazi-yok { color: var(--yok); font-weight: 700; }

/* Günlük rapor */
.gr-baslik { margin: 4px 0 12px; }
.gr-baslik h2 { margin: 0 0 2px; font-size: 1.15rem; }
.gr-grup { margin-bottom: 18px; }
.gr-grup h3 { margin: 0 0 6px; font-size: .95rem; color: var(--ana, #14532d); }
.gr-tablo { max-height: none; }
.gr-tablo table { table-layout: fixed; }
.gr-tablo td { vertical-align: top; }
.gr-aciklama { white-space: pre-wrap; }
.gr-fotolar { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; align-items: flex-end; }
.gr-fotolar img { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid var(--cizgi, #ddd); cursor: zoom-in; background: #eee; }
@media (max-width: 700px) {
  .gr-tablo table, .gr-tablo tbody, .gr-tablo tr, .gr-tablo td { display: block; width: auto !important; }
  .gr-tablo thead { display: none; }
  .gr-tablo tr { border-bottom: 1px solid var(--cizgi, #ddd); padding: 8px 10px; }
  .gr-tablo td { border: 0 !important; padding: 2px 0 !important; }
  .gr-fotolar img { width: 78px; height: 78px; }
}
@media print {
  .gr-grup { break-inside: auto; }
  .gr-grup h3 { break-after: avoid; }
  .gr-tablo tr { break-inside: avoid; }
  .gr-fotolar img { width: 80px; height: 80px; }
}
/* Ana ekrana ekle */
.kur-bant { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--ana-acik); border-bottom: 1px solid var(--cizgi); font-size: 14px; }
.kur-bant span { flex: 1; }
.kur-adim { padding-left: 20px; line-height: 1.7; margin: 8px 0 12px; }

/* Gözetim raporunda konum haritası */
.rapor-harita { height: 240px; border-radius: 10px; overflow: hidden; margin-top: 12px; border: 1px solid var(--cizgi); background: #e8ebe4; }
@media print { .rapor-harita { height: 200px; break-inside: avoid; } .leaflet-control-container { display: none; } }
/* Koordinatör giriş seçimi */
.mod-sec { max-width: 440px; }
.mod-kart { display: grid; gap: 4px; width: 100%; text-align: left; margin-top: 12px; padding: 16px; border: 1px solid var(--cizgi); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--yazi); }
.mod-kart b { font-size: 17px; }
.mod-kart span { font-size: 13px; color: var(--soluk); }
.mod-kart:hover:not(:disabled) { border-color: var(--ana); background: var(--ana-acik); }
.mod-kart:disabled { opacity: .6; cursor: not-allowed; }
/* İlçe atamaları */
.cip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 8px; margin: 2px 0; border-radius: 999px; background: var(--ana-acik); font-size: 12px; white-space: nowrap; }
.cip.cip-ih { background: #e0ecff; }
.cip small { color: var(--soluk); }
.cip-x { border: 0; background: none; cursor: pointer; font-size: 15px; line-height: 1; padding: 0 4px; color: var(--soluk); }
.cip-x:hover { color: var(--yok); }
tr.vurgu td { background: #fff8e1; }
/* Telefonda tablolar sayfa içinde ayrı kaydırma alanı olmasın (iç içe kaydırma takılma yapar) */
@media (max-width: 760px) {
  .tablo-kap { max-height: none; overflow-y: visible; overflow-x: auto; -webkit-overflow-scrolling: touch; box-shadow: none; }
  .kart { box-shadow: none; }
}
/* İmza çizme alanı */
.imza-alan { position: relative; border: 1px dashed var(--cizgi); border-radius: 10px; background: #fff; touch-action: none; }
.imza-alan canvas { display: block; width: 100%; height: 200px; touch-action: none; cursor: crosshair; }
.imza-cizgi { position: absolute; left: 16px; right: 16px; bottom: 40px; border-top: 1px solid #c9cfc4; font-size: 11px; color: var(--soluk); padding-top: 2px; pointer-events: none; }
/* Alt menüde 7 sekme: dar ekranda yazılar sığsın */
@media (max-width: 420px) {
  .alt-nav a { font-size: 10px; padding: 7px 1px 6px; letter-spacing: -.1px; }
  .alt-nav a span:not(.rozet-sayi) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .alt-nav a svg { width: 21px; height: 21px; }
}

/* Güzergâh önerisi: numaralı durak işaretleri */
.durak-ikon span { display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 700 12px/1 system-ui, sans-serif; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.durak-no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #1d4ed8; color: #fff; font-weight: 700; font-size: 13px; }
.gun-baslik { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* Çevrimdışı çalışma şeridi ve bekleyen fotoğraf işareti */
.cd-serit { display: block; padding: 9px 16px; font-size: 14px; font-weight: 600; text-decoration: none; position: sticky; top: 56px; z-index: 26; }
.cd-serit.cevrimdisi { background: #fef3c7; color: #92400e; }
.cd-serit.bekliyor { background: #e0f2fe; color: #075985; }
.cd-serit.hata { background: #fee2e2; color: #991b1b; }
.foto .etiket-bekliyor { position: absolute; left: 4px; bottom: 4px; background: rgba(0,0,0,.6); color: #fff; border-radius: 10px; padding: 1px 6px; font-size: 12px; }
