/* Asansör Takip
   Yerleşim: telefonda üst çubuk + alt menü; geniş ekranda sol menü + içerik.
   Renk: lacivert (kurumsal) + emniyet sarısı (vurgu); durum renkleri ayrı. */
:root {
  --zemin: #f3f5f7;
  --yuzey: #ffffff;
  --yuzey-2: #eef2f5;
  --cizgi: #d9e0e7;
  --yazi: #15212d;
  --yazi-2: #556373;
  --ana: #173a5c;
  --ana-yazi: #ffffff;
  --ana-acik: #e3ecf5;
  --ust-zemin: #173a5c;
  --ust-yazi: #ffffff;
  --vurgu: #f2b632;
  --vurgu-yazi: #2b2003;
  --iyi: #1e7a4c;
  --iyi-zemin: #e2f3ea;
  --uyari: #9a6200;
  --uyari-zemin: #fdf1d6;
  --kritik: #b42318;
  --kritik-zemin: #fde5e2;
  --bilgi: #1f5fa8;
  --bilgi-zemin: #e3eefb;
  --golge: 0 1px 2px rgba(16, 36, 58, .06), 0 4px 14px rgba(16, 36, 58, .06);
  --g-aidat: #1f5fa8;
  --g-ariza: #d4761c;
  --g-revizyon: #6b4fbb;
  --g-diger: #7a8794;
  --g-tahsilat: #1e7a4c;
  --font-baslik: "Barlow Semi Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-yazi: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 10px;
  --menu-yuk: 64px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zemin: #0f161d; --yuzey: #17212b; --yuzey-2: #1e2a36; --cizgi: #2b3a48;
    --yazi: #e6edf3; --yazi-2: #9aabbb; --ana: #6aa5dc; --ana-yazi: #0b1824; --ana-acik: #1c3147; --ust-zemin: #13283d; --ust-yazi: #e6edf3;
    --vurgu: #f2b632; --vurgu-yazi: #2b2003;
    --iyi: #5cc98f; --iyi-zemin: #163527; --uyari: #f0b44c; --uyari-zemin: #3a2c10;
    --kritik: #ff7b6e; --kritik-zemin: #42191a; --bilgi: #7fb3ec; --bilgi-zemin: #182c44;
    --golge: 0 1px 2px rgba(0, 0, 0, .3);
    --g-aidat: #6aa5dc; --g-ariza: #f0a050; --g-revizyon: #a48ce6; --g-diger: #9aabbb; --g-tahsilat: #5cc98f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --zemin: #0f161d; --yuzey: #17212b; --yuzey-2: #1e2a36; --cizgi: #2b3a48;
  --yazi: #e6edf3; --yazi-2: #9aabbb; --ana: #6aa5dc; --ana-yazi: #0b1824; --ana-acik: #1c3147; --ust-zemin: #13283d; --ust-yazi: #e6edf3;
  --vurgu: #f2b632; --vurgu-yazi: #2b2003;
  --iyi: #5cc98f; --iyi-zemin: #163527; --uyari: #f0b44c; --uyari-zemin: #3a2c10;
  --kritik: #ff7b6e; --kritik-zemin: #42191a; --bilgi: #7fb3ec; --bilgi-zemin: #182c44;
  --golge: 0 1px 2px rgba(0, 0, 0, .3);
  --g-aidat: #6aa5dc; --g-ariza: #f0a050; --g-revizyon: #a48ce6; --g-diger: #9aabbb; --g-tahsilat: #5cc98f;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--zemin);
  color: var(--yazi);
  font: 15px/1.5 var(--font-yazi);
  padding-bottom: calc(var(--menu-yuk) + env(safe-area-inset-bottom, 0px));
}
h1, h2, h3 { font-family: var(--font-baslik); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.2rem; }
a { color: var(--ana); }
img { max-width: 100%; }
small { color: var(--yazi-2); }
:focus-visible { outline: 3px solid var(--vurgu); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Üst çubuk ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--ust-zemin); }
.ust {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; gap: 10px;
  background: var(--ust-zemin); color: var(--ust-yazi);
  padding-block: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.marka { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-family: var(--font-baslik); font-weight: 700; font-size: 1.25rem; letter-spacing: .01em; }
.demo-rozet { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; background: var(--vurgu); color: var(--vurgu-yazi); padding: 2px 8px; border-radius: 99px; }
.kullanici { margin-left: auto; display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid color-mix(in srgb, var(--ust-yazi) 30%, transparent); color: inherit; border-radius: 99px; padding: 4px 12px 4px 4px; font: inherit; cursor: pointer; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--vurgu); color: var(--vurgu-yazi); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }
.k-ad { font-size: .9rem; max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Menü ---------- */
.menu {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; justify-content: space-around;
  background: var(--yuzey); border-top: 1px solid var(--cizgi);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  height: calc(var(--menu-yuk) + env(safe-area-inset-bottom, 0px));
}
.menu a {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: var(--yazi-2); text-decoration: none; font-size: .68rem; font-weight: 500; min-width: 0;
}
.menu svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu a.aktif { color: var(--ana); }
.menu a.aktif::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--vurgu); }
.nokta { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--kritik); color: #fff; font-size: .65rem; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }

/* ---------- İçerik ---------- */
.icerik {
  max-width: 1180px; margin: 0 auto;
  padding-block: 20px 32px;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 18px;
}
.yukleniyor { color: var(--yazi-2); }
.sayfa-bas { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.alt-baslik { margin: 4px 0 0; color: var(--yazi-2); }
.bas-eylem, .dugme-grubu { display: flex; flex-wrap: wrap; gap: 8px; }
.geri { text-decoration: none; font-weight: 500; margin-bottom: -10px; }

@media (min-width: 900px) {
  body { padding-bottom: 0; padding-left: 220px; }
  .menu {
    top: 0; right: auto; width: 220px; height: auto; flex-direction: column; justify-content: flex-start; gap: 2px;
    border-top: 0; border-right: 1px solid var(--cizgi); padding: calc(72px + env(safe-area-inset-top, 0px)) 12px 12px max(12px, env(safe-area-inset-left, 0px));
  }
  .menu a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: .95rem; }
  .menu a:hover { background: var(--yuzey-2); }
  .menu a.aktif { background: var(--ana-acik); }
  .menu a.aktif::before { top: 8px; bottom: 8px; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .nokta { position: static; margin-left: auto; }
  .ust { margin-left: -220px; padding-left: max(24px, env(safe-area-inset-left, 0px)); z-index: 25; }
  .icerik { padding-block: 28px 48px; }
}

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 .92rem var(--font-yazi); border-radius: 8px; padding: 9px 16px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap; min-height: 40px;
}
.btn.kucuk { padding: 6px 12px; font-size: .84rem; min-height: 34px; }
.btn.birincil { background: var(--ana); color: var(--ana-yazi); }
.btn.birincil:hover { filter: brightness(1.1); }
.btn.hayalet { background: var(--yuzey); color: var(--yazi); border-color: var(--cizgi); }
.btn.hayalet:hover { background: var(--yuzey-2); }
.btn.tehlike { background: var(--kritik); color: #fff; }
.btn.tehlike-yazi { background: transparent; color: var(--kritik); border-color: color-mix(in srgb, var(--kritik) 40%, transparent); }
.btn.ikonlu { width: 40px; padding: 0; font-size: 1.3rem; }
.btn:disabled { opacity: .45; cursor: default; }
.ikon-btn { background: transparent; border: 0; color: var(--yazi-2); font-size: 1rem; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; flex: none; }
.ikon-btn:hover { background: var(--yuzey-2); color: var(--yazi); }
.dosya-sec { cursor: pointer; }

/* ---------- Rozetler ---------- */
.rozet { display: inline-flex; align-items: center; font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; background: var(--yuzey-2); color: var(--yazi-2); }
.r-yapildi, .r-cozuldu { background: var(--iyi-zemin); color: var(--iyi); }
.r-bekliyor, .r-mudahale, .r-acil, .r-eksik { background: var(--uyari-zemin); color: var(--uyari); }
.r-gecikti, .r-mahsur, .r-acik { background: var(--kritik-zemin); color: var(--kritik); }
.r-acik { background: var(--bilgi-zemin); color: var(--bilgi); }
.r-pasif { background: var(--yuzey-2); color: var(--yazi-2); }

/* Periyodik kontrol etiketleri: gerçek etiket renkleri */
.etiket { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; color: var(--yazi-2); white-space: nowrap; }
.etiket::before { content: ""; width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(0, 0, 0, .15); background: var(--yuzey-2); }
.e-yesil::before { background: #2e9e5b; }
.e-mavi::before { background: #2f6fd0; }
.e-sari::before { background: #f2c230; }
.e-kirmizi::before { background: #d93a2b; }
.e-yok::before { background: transparent; border-style: dashed; }
.m-gecikti { color: var(--kritik); font-weight: 600; }
.m-yaklasiyor { color: var(--uyari); font-weight: 600; }

/* ---------- Panel ---------- */
.uyari-serit { display: flex; flex-direction: column; gap: 2px; background: var(--kritik-zemin); color: var(--kritik); border-radius: var(--r); padding: 12px 16px; text-decoration: none; border-left: 4px solid var(--kritik); }
.uyari-serit span { color: var(--yazi); font-size: .9rem; }
.ozet { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ozet-uc { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.ozet-kutu { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--yazi); min-width: 0; }
a.ozet-kutu:hover { border-color: var(--ana); }
.ozet-etiket { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--yazi-2); }
.ozet-sayi { font-family: var(--font-baslik); font-size: 2.1rem; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ozet-sayi.para { font-size: 1.6rem; overflow-wrap: anywhere; }
.ozet-sayi small { font-size: 1.1rem; color: var(--yazi-2); font-weight: 500; }
.ozet-not { font-size: .8rem; color: var(--yazi-2); }
.durum-kritik { border-color: var(--kritik); box-shadow: inset 4px 0 0 var(--kritik); }
.durum-kritik .ozet-sayi { color: var(--kritik); }
.durum-uyari { box-shadow: inset 4px 0 0 var(--uyari); }
.ilerleme { display: block; height: 6px; border-radius: 3px; background: var(--yuzey-2); overflow: hidden; margin-top: 4px; }
.ilerleme span { display: block; height: 100%; width: var(--oran); background: var(--iyi); border-radius: 3px; }
.panel-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }

/* ---------- Kartlar ve listeler ---------- */
.kart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.kart-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kart-bas a { font-size: .88rem; font-weight: 500; text-decoration: none; }
.bilgi-kart { background: var(--bilgi-zemin); border-color: transparent; }
.bilgi-kart p { margin: 0; }
.satirlar { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.satirlar.kart { padding: 4px 16px; gap: 0; }
.satirlar li { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; padding: 11px 0; border-top: 1px solid var(--cizgi); }
.satirlar li:first-child { border-top: 0; }
.satir-metin { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.satir-metin a { text-decoration: none; color: var(--yazi); }
.satir-metin a:hover { color: var(--ana); }
.satir-eylem { display: flex; gap: 6px; flex-wrap: wrap; }

.kayitlar { display: flex; flex-direction: column; gap: 10px; }
.kayit { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-left-width: 4px; min-width: 0; }
.kart .kayit { background: var(--zemin); }
.kayit.oncelik-mahsur { border-left-color: var(--kritik); }
.kayit.oncelik-acil { border-left-color: var(--uyari); }
.kayit-ana { flex: 1 1 260px; min-width: 0; text-align: left; background: none; border: 0; color: inherit; font: inherit; padding: 10px 8px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; border-radius: 8px; }
.kayit-ana:hover strong { color: var(--ana); }
.kayit-ana p { margin: 0; overflow-wrap: anywhere; }
.kayit-ust { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.kayit-alt { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--yazi-2); }
.kayit-eylem { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px 0; }
.tutar { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--yazi); }
.borc { color: var(--kritik); }
.alacak { color: var(--iyi); }
.bos { text-align: center; color: var(--yazi-2); padding: 20px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bos p { margin: 0; }

/* ---------- Araç çubuğu ---------- */
.arac-cubugu { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.arac-cubugu.sag { justify-content: flex-end; }
.arama { flex: 1 1 220px; max-width: 360px; font: inherit; padding: 9px 12px; border-radius: 8px; border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--yazi); min-height: 40px; }
.cipler { display: flex; gap: 6px; flex-wrap: wrap; }
.cip { font: 500 .88rem var(--font-yazi); padding: 7px 14px; border-radius: 99px; border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--yazi); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.cip.secili { background: var(--ana); color: var(--ana-yazi); border-color: var(--ana); }
.sayac { font-size: .75rem; background: var(--yuzey-2); color: var(--yazi-2); border-radius: 99px; padding: 0 7px; font-variant-numeric: tabular-nums; }
.cip.secili .sayac { background: color-mix(in srgb, var(--ana-yazi) 22%, transparent); color: inherit; }

.ay-secici { display: flex; align-items: center; gap: 12px; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 8px; align-self: flex-start; }
.ay-secici div { display: flex; flex-direction: column; align-items: center; min-width: 150px; }
.ay-secici strong { font-family: var(--font-baslik); font-size: 1.15rem; }

/* ---------- Binalar ---------- */
.bina-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.bina-kart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--yazi); min-width: 0; }
.bina-kart:hover { border-color: var(--ana); }
.bina-ust { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.bina-ust strong { font-family: var(--font-baslik); font-size: 1.15rem; }
.bina-alt { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .85rem; color: var(--yazi-2); }
.bina-alt .borc { color: var(--kritik); font-weight: 600; }
.etiketler { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 2px; }

.bilgi-izgara { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 20px; margin: 0; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 16px; }
.bilgi-izgara .genis { grid-column: 1 / -1; }
dt { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--yazi-2); }
dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.bolum-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.asansor-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
.asansor-kart { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.asansor-ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.asansor-ust strong { font-family: var(--font-baslik); font-size: 1.15rem; }
.mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 0; font-size: .9rem; }

/* ---------- Tablo ---------- */
.tablo-kap { overflow-x: auto; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); }
.tablo { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tablo th, .tablo td { padding: 10px 14px; text-align: left; border-top: 1px solid var(--cizgi); vertical-align: middle; }
.tablo thead th { border-top: 0; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--yazi-2); background: var(--yuzey-2); }
.tablo .sag { text-align: right; white-space: nowrap; }
.tablo a { text-decoration: none; color: var(--yazi); }
.tablo tr.tikla { cursor: pointer; }
.tablo tr.tikla:hover td { background: var(--yuzey-2); }
.tablo tr.iptal td { color: var(--yazi-2); text-decoration: line-through; }

/* ---------- Bildirim ---------- */
.toast {
  position: fixed; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  bottom: calc(var(--menu-yuk) + 16px + env(safe-area-inset-bottom, 0px));
  background: var(--yazi); color: var(--zemin); padding: 10px 18px; border-radius: 8px; font-weight: 500;
  transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100% - 32px);
}
.toast.goster { opacity: 1; transform: translate(-50%, 0); }
.toast.hata { background: var(--kritik); color: #fff; }
@media (min-width: 900px) { .toast { bottom: 24px; left: calc(50% + 110px); } }

/* ---------- Modal ve formlar ---------- */
.modal { border: 0; padding: 0; border-radius: 14px; width: min(560px, calc(100% - 24px)); max-height: calc(100% - 24px); background: var(--yuzey); color: var(--yazi); box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal.genis { width: min(820px, calc(100% - 24px)); }
.modal::backdrop { background: rgba(10, 20, 30, .55); }
.modal-form { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.modal-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px 20px; border-bottom: 1px solid var(--cizgi); }
.modal-govde { padding: 16px 20px; overflow-y: auto; }
.modal-govde > p { margin-top: 0; }
.modal-alt { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--cizgi); background: var(--yuzey); }
@media (max-width: 600px) {
  .modal, .modal.genis { width: 100%; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; margin: 0; }
  .modal-form { height: 100%; max-height: 100dvh; }
  .modal-govde { flex: 1; }
  .modal-bas { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
}

.izgara { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.izgara > * { grid-column: 1 / -1; }
.izgara > .yarim { grid-column: auto; }
.alan { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.alan label { font-size: .84rem; font-weight: 600; color: var(--yazi-2); }
.zorunlu { color: var(--kritik); }
input, select, textarea {
  font: inherit; color: var(--yazi); background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 8px;
  padding: 9px 11px; min-height: 42px; width: 100%; min-width: 0;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ana); outline-offset: 0; border-color: var(--ana); }
input[type=radio], input[type=checkbox] { width: auto; min-height: 0; }
.bolum { border: 1px solid var(--cizgi); border-radius: var(--r); padding: 12px 14px 14px; margin: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bolum legend { font-family: var(--font-baslik); font-weight: 600; font-size: 1.05rem; padding: 0 6px; }
.ipucu { font-size: .84rem; color: var(--yazi-2); margin: 0; }
.sil-alan { display: flex; justify-content: flex-start; padding-top: 4px; }

.gizli-etiket { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bolum-grubu { display: flex; flex-direction: column; gap: 14px; }

/* Parçalar: her parça bir kart; adet −/+ ile */
.parca-satirlar { display: flex; flex-direction: column; gap: 8px; }
.parca-satirlar:empty { display: none; }
.parca-satir { border: 1px solid var(--cizgi); border-radius: 10px; background: var(--yuzey-2); padding: 8px; display: flex; flex-direction: column; gap: 8px; }
.parca-ust { display: flex; gap: 6px; align-items: center; }
.parca-ust input { font-weight: 600; }
.parca-alt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adet { display: inline-flex; align-items: stretch; border: 1px solid var(--cizgi); border-radius: 8px; overflow: hidden; background: var(--yuzey); }
.adet button { width: 42px; border: 0; background: transparent; color: var(--ana); font-size: 1.3rem; font-weight: 600; cursor: pointer; }
.adet button:active { background: var(--ana-acik); }
.adet input { width: 52px; border: 0; border-radius: 0; text-align: center; padding: 8px 2px; -moz-appearance: textfield; }
.adet input::-webkit-outer-spin-button, .adet input::-webkit-inner-spin-button,
.fiyat input::-webkit-outer-spin-button, .fiyat input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.carpi { color: var(--yazi-2); }
.fiyat { position: relative; flex: 1 1 100px; min-width: 90px; max-width: 160px; }
.fiyat input { padding-right: 26px; -moz-appearance: textfield; }
.fiyat span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--yazi-2); pointer-events: none; }
.satir-toplam { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }

.parca-ara-kutu { position: relative; }
.parca-ara-kutu input { border-style: dashed; border-color: var(--ana); color: var(--yazi); }
.parca-ara-kutu input::placeholder { color: var(--ana); font-weight: 600; opacity: 1; }
.oneriler { list-style: none; margin: 4px 0 0; padding: 4px; border: 1px solid var(--cizgi); border-radius: 10px; background: var(--yuzey); box-shadow: var(--golge); }
.oneriler button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px; min-height: 48px; border: 0; border-radius: 8px; background: transparent; color: var(--yazi); font: inherit; text-align: left; cursor: pointer; }
.oneriler button:hover, .oneriler button:focus-visible { background: var(--yuzey-2); }
.oneriler .yeni span { color: var(--ana); font-weight: 600; }
.sik-parcalar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sik-parcalar:empty { display: none; }
.sik-baslik { width: 100%; font-size: .78rem; font-weight: 600; color: var(--yazi-2); text-transform: uppercase; letter-spacing: .05em; }
.kucuk-cip { font-size: .84rem; padding: 7px 12px; min-height: 36px; }
.parca-ozet { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--cizgi); padding-top: 12px; }
.parca-ozet .alan { flex: 0 1 200px; }
.toplam { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.toplam span { font-size: .78rem; font-weight: 600; color: var(--yazi-2); text-transform: uppercase; letter-spacing: .05em; }
.toplam strong { font-family: var(--font-baslik); font-size: 1.5rem; }

/* Telefonda: 16px yazı (yakınlaştırma olmasın), daha büyük dokunma alanları */
@media (max-width: 600px) {
  input, select, textarea { font-size: 16px; min-height: 46px; }
  .adet input { min-height: 44px; }
  .modal-govde { padding: 14px 16px 24px; }
  .modal-alt .btn { flex: 1; min-height: 48px; }
  .bolum { padding: 10px 12px 12px; }
  .secim span { padding: 9px 14px; }
}

.foto-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.foto-izgara:empty { display: none; }
.foto { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--yuzey-2); max-width: 100%; }
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto .ikon-btn { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, .55); color: #fff; width: 28px; height: 28px; }
.dosya-sec { align-self: flex-start; }

.imza-kutu { position: relative; height: 170px; border: 2px dashed var(--cizgi); border-radius: 8px; background: #fff; touch-action: none; }
.imza-kutu canvas { width: 100%; height: 100%; display: block; cursor: crosshair; }
.imza-ipucu { position: absolute; inset: 0; display: grid; place-items: center; color: #8795a3; pointer-events: none; font-size: .9rem; }
[data-imza] .btn { align-self: flex-start; }

.kontrol-ust { display: flex; justify-content: flex-end; }
.kontrol-satir { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; padding: 7px 0; border-top: 1px solid var(--cizgi); }
.kontrol-ad { flex: 1 1 180px; min-width: 0; }
.secim { display: inline-flex; border: 1px solid var(--cizgi); border-radius: 8px; overflow: hidden; }
.secim label { cursor: pointer; }
.secim input { position: absolute; opacity: 0; pointer-events: none; }
.secim span { display: block; padding: 6px 12px; font-size: .84rem; font-weight: 600; color: var(--yazi-2); border-left: 1px solid var(--cizgi); }
.secim label:first-child span { border-left: 0; }
.secim input:focus-visible + span { outline: 3px solid var(--vurgu); outline-offset: -3px; }
.secim-tamam input:checked + span { background: var(--iyi-zemin); color: var(--iyi); }
.secim-eksik input:checked + span { background: var(--kritik-zemin); color: var(--kritik); }
.secim-yok input:checked + span { background: var(--yuzey-2); color: var(--yazi); }

.alan-etiket { font-size: .84rem; font-weight: 600; color: var(--yazi-2); }
.secim-genis { display: flex; width: 100%; }
.secim-genis label { flex: 1; display: flex; }
.secim-genis span { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 6px 8px; font-size: .9rem; }
.ton-ana input:checked + span { background: var(--ana); color: var(--ana-yazi); }
.ton-uyari input:checked + span { background: var(--uyari-zemin); color: var(--uyari); box-shadow: inset 0 0 0 2px var(--uyari); }
.ton-kritik input:checked + span { background: var(--kritik); color: #fff; }
.ton-iyi input:checked + span { background: var(--iyi-zemin); color: var(--iyi); box-shadow: inset 0 0 0 2px var(--iyi); }
.secim-listesi { display: flex; flex-direction: column; gap: 6px; }
.secim-listesi label { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--cizgi); border-radius: 8px; cursor: pointer; }
.secim-listesi label:has(input:checked) { border-color: var(--ana); background: var(--ana-acik); }
.secim-listesi span { display: flex; flex-direction: column; }

.pdf-islem { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pdf-onizleme { display: block; width: 100%; border: 1px solid var(--cizgi); border-radius: 6px; margin-top: 10px; }

/* ---------- PDF formu (ekran dışında çizilir; kâğıt görünümü sabit) ---------- */
.pdf-kap { position: fixed; left: -10000px; top: 0; }
.pdf-sayfa { width: 794px; padding: 40px 48px; background: #fff; color: #111; font: 13px/1.45 var(--font-yazi); }
.pdf-sayfa h3 { font-family: var(--font-baslik); font-size: 15px; margin: 18px 0 6px; color: #173a5c; text-transform: uppercase; letter-spacing: .04em; }
.pdf-sayfa p { margin: 0; }
.pdf-bas { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid #173a5c; padding-bottom: 12px; margin-bottom: 14px; }
.pdf-baslik { font-family: var(--font-baslik); font-size: 22px; font-weight: 700; color: #173a5c; text-align: right; display: flex; flex-direction: column; }
.pdf-baslik small { font: 11px var(--font-yazi); color: #666; }
.pdf-bilgi, .pdf-liste { width: 100%; border-collapse: collapse; }
.pdf-bilgi th { text-align: left; width: 130px; color: #555; font-weight: 600; padding: 4px 8px 4px 0; vertical-align: top; }
.pdf-bilgi td { padding: 4px 0; }
.pdf-liste td { border: 1px solid #ccd3da; padding: 5px 8px; }
.pdf-liste tr.bas td { background: #eef2f5; font-weight: 600; }
.pdf-liste tr.top td { font-weight: 700; background: #f7f9fb; }
.pdf-liste td:not(:first-child) { text-align: right; white-space: nowrap; }
.d-tamam { color: #1e7a4c; font-weight: 600; }
.d-eksik { color: #b42318; font-weight: 700; }
.d-yok { color: #777; }
.pdf-foto { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pdf-foto img { width: 100%; height: 160px; object-fit: cover; border-radius: 4px; }
.pdf-imza { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 28px; }
.pdf-imza > div { border-top: 1px solid #999; padding-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.pdf-imza span { font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: .05em; }
.pdf-imza img { max-height: 90px; width: auto; align-self: flex-start; }
.bos-imza { height: 70px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Dar ekranda üst çubuk tek satır kalsın */
.marka span { white-space: nowrap; }
@media (max-width: 440px) {
  .k-ad { display: none; }
  .kullanici { padding: 4px; }
  .marka { font-size: 1.15rem; }
}

/* ---------- Tek satırlık listeler ---------- */
.satir-listesi { display: flex; flex-direction: column; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); overflow: hidden; }
.kart .satir-listesi { border: 0; border-radius: 0; margin: 0 -16px -16px; border-top: 1px solid var(--cizgi); }
.satir-dugme {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 58px;
  padding: 8px 12px 8px 14px; border: 0; border-top: 1px solid var(--cizgi); background: transparent;
  color: var(--yazi); font: inherit; text-align: left; cursor: pointer; position: relative;
}
.satir-dugme:first-child { border-top: 0; }
.satir-dugme:hover { background: var(--yuzey-2); }
.satir-dugme:active { background: var(--ana-acik); }
.satir-dugme.oncelik-mahsur { box-shadow: inset 4px 0 0 var(--kritik); }
.satir-dugme.oncelik-acil { box-shadow: inset 4px 0 0 var(--uyari); }
.sd-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sd-metin strong, .sd-metin small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-metin strong { font-weight: 600; }
.sd-sag { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.sd-sag small { font-variant-numeric: tabular-nums; }
.sd-ok { color: var(--yazi-2); font-size: 1.4rem; line-height: 1; flex: none; }

/* ---------- Katlanan "Diğer bilgiler" ---------- */
.diger { border: 1px solid var(--cizgi); border-radius: var(--r); }
.diger summary { cursor: pointer; padding: 11px 14px; font-weight: 600; display: flex; gap: 8px; align-items: baseline; list-style: none; }
.diger summary::-webkit-details-marker { display: none; }
.diger summary::before { content: "▸"; color: var(--yazi-2); }
.diger[open] summary::before { content: "▾"; }
.diger summary small { font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.diger > .izgara { padding: 0 14px 14px; }

/* ---------- Aramalı asansör seçici ---------- */
.asansor-secici { position: relative; }
.secici-dugme {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 7px 12px;
  border: 1px solid var(--cizgi); border-radius: 8px; background: var(--yuzey); color: var(--yazi); font: inherit; text-align: left; cursor: pointer;
}
.secici-dugme[aria-expanded="true"] { border-color: var(--ana); outline: 2px solid var(--ana); outline-offset: -1px; }
.secici-dugme .ok { color: var(--yazi-2); }
.gizli-deger { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; bottom: 0; left: 0; }
.secici-panel { border: 1px solid var(--cizgi); border-radius: 10px; background: var(--yuzey); box-shadow: var(--golge); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.secici-liste { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.secici-liste .grup { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--yazi-2); padding: 8px 10px 4px; }
.secici-liste button { width: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--yazi); font: inherit; text-align: left; cursor: pointer; min-height: 48px; }
.secici-liste button:hover, .secici-liste button:focus-visible { background: var(--yuzey-2); }
.secici-liste button.secili { background: var(--ana-acik); }

/* ---------- Hızlı ekle (+) ---------- */
.hizli { position: fixed; z-index: 40; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(var(--menu-yuk) + 16px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.fab { width: 56px; height: 56px; border-radius: 16px; border: 0; background: var(--vurgu); color: var(--vurgu-yazi); font-size: 2rem; font-weight: 500; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(16, 36, 58, .28); transition: transform .15s; }

.hizli-menu { display: flex; flex-direction: column; gap: 6px; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 14px; padding: 6px; box-shadow: 0 10px 30px rgba(16, 36, 58, .22); min-width: 200px; }
.hizli-menu button { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 48px; border: 0; border-radius: 10px; background: transparent; color: var(--yazi); font: 600 .95rem var(--font-yazi); cursor: pointer; text-align: left; }
.hizli-menu button:hover { background: var(--yuzey-2); }
.hizli-menu svg { width: 22px; height: 22px; fill: none; stroke: var(--ana); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .hizli { bottom: 24px; } }
@media (max-width: 899px) { [data-fab] { display: none; } }
.icerik { padding-bottom: 96px; }

.ek-dugme { margin-right: auto; }
@media (max-width: 600px) {
  input, select, textarea { min-height: 44px; }
  .modal-alt .ek-dugme { flex: 0 0 auto; }
  .izgara { gap: 10px; }
}

/* Telefonda daha kompakt sayfa başı ve tek satır filtre çipleri */
@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  .icerik { gap: 14px; padding-top: 14px; }
  .sayfa-bas .alt-baslik { display: none; }
  .cipler { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
  .cipler::-webkit-scrollbar { display: none; }
  .cip { flex: none; padding: 6px 12px; }
  .arama { max-width: none; }
}
@media (max-width: 600px) {
  .ozet { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ozet-kutu { padding: 10px 12px; gap: 2px; }
  .ozet-sayi { font-size: 1.6rem; }
  .ozet-sayi.para { font-size: 1.25rem; }
  .ozet-not { font-size: .75rem; }
  .ozet-etiket { font-size: .68rem; }
}

/* Bakım planı */
.r-bugun { background: var(--bilgi-zemin); color: var(--bilgi); }
.r-yaklasiyor { background: var(--uyari-zemin); color: var(--uyari); }
.r-planli { background: var(--yuzey-2); color: var(--yazi-2); }
.liste-grup { padding: 8px 14px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--yazi-2); background: var(--yuzey-2); border-top: 1px solid var(--cizgi); display: flex; gap: 6px; }
.liste-grup:first-child { border-top: 0; }
.liste-grup span { font-variant-numeric: tabular-nums; }
.liste-grup + .satir-dugme { border-top: 1px solid var(--cizgi); }

/* Parça seçme penceresi */
.btn.parca-ekle-dugme { width: 100%; border-style: dashed; border-color: var(--ana); color: var(--ana); min-height: 48px; }
.parca-ad { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.parca-ust { justify-content: space-between; }
.ps-ara { position: sticky; top: 0; z-index: 1; margin-bottom: 8px; }
.ps-liste { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ps-grup { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--yazi-2); padding: 12px 4px 6px; }
.ps-satir { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--cizgi); padding: 4px 0; }
.ps-grup + .ps-satir { border-top: 0; }
.ps-satir.secili { background: var(--ana-acik); border-radius: 10px; border-top-color: transparent; padding: 4px 6px; }
.ps-satir.secili + .ps-satir { border-top-color: transparent; }
.ps-ana { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 10px 4px; min-height: 54px; border: 0; background: transparent; color: var(--yazi); font: inherit; text-align: left; cursor: pointer; }
.ps-ad { font-weight: 600; overflow-wrap: anywhere; }
.ps-ad small { font-weight: 600; color: var(--iyi); margin-left: 4px; }
.ps-arti { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--ana); font-size: 1.4rem; font-weight: 600; cursor: pointer; }
.ps-satir .adet { flex: none; }
.ps-sayi { min-width: 36px; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.ps-satir .adet button { height: 44px; }
.ps-yeni { width: 100%; text-align: left; padding: 14px 12px; border: 1px dashed var(--ana); border-radius: 10px; background: transparent; color: var(--ana); font: 600 .95rem var(--font-yazi); cursor: pointer; margin-bottom: 4px; }
.ps-bos { color: var(--yazi-2); padding: 16px 4px; }
.parca-penceresi .modal-govde { padding-top: 12px; }

/* Gelir raporu */
.sekmeler .cip { text-decoration: none; }
.gelir-ozet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 700px) { .gelir-ozet { grid-template-columns: 1fr; } }
.gelir-toplam { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.gelir-sayi { font-family: var(--font-baslik); font-size: 2.4rem; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.gelir-cubuk { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--yuzey-2); margin-top: 6px; gap: 2px; }
.gelir-cubuk span { display: block; height: 100%; }
.g-aidat { background: var(--g-aidat); }
.g-ariza { background: var(--g-ariza); }
.g-revizyon { background: var(--g-revizyon); }
.g-diger { background: var(--g-diger); }
.g-tahsilat { background: var(--g-tahsilat); }
.gelir-turler { background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 4px 16px; display: flex; flex-direction: column; }
.gelir-tur { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 44px; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--cizgi); font-variant-numeric: tabular-nums; }
.gelir-tur:first-child { border-top: 0; }
.gelir-tur small { text-align: right; }
.g-nokta { width: 12px; height: 12px; border-radius: 3px; }
.tahsilat-satir { border-top: 2px solid var(--cizgi); }
.tahsilat-satir strong { color: var(--iyi); }
.gelir-tablo tfoot td { font-weight: 700; background: var(--yuzey-2); border-top: 2px solid var(--cizgi); }
.gelir-tablo td:first-child { white-space: nowrap; }
.soluk { color: var(--yazi-2); }
.gelir-not { padding: 0 0 12px; }
.bolum-bas { flex-wrap: wrap; }
.bolum-bas .cipler { margin: 0; padding: 0; }
@media (max-width: 600px) {
  .gelir-tablo { font-size: .86rem; }
  .gelir-tablo th, .gelir-tablo td { padding: 8px 10px; }
}

/* Bina yöneticisi ekranı */
body.yonetici-modu { padding-left: 0; padding-bottom: env(safe-area-inset-bottom, 0px); }
body.yonetici-modu .menu, body.yonetici-modu .hizli { display: none; }
body.yonetici-modu .ust { margin-left: 0; }
body.yonetici-modu .icerik { max-width: 760px; padding-bottom: 32px; }
.btn.ariza-bildir { width: 100%; min-height: 54px; font-size: 1.05rem; background: var(--kritik); color: #fff; }
.detay-listesi { display: flex; flex-direction: column; gap: 12px; margin: 0; }
a.satir-dugme { text-decoration: none; }

/* Ayarlar telefonda üst çubukta (alt menüde yer açmak için) */
.ayar-dugme { margin-left: auto; width: 36px; height: 36px; display: grid; place-items: center; color: var(--ust-yazi); border-radius: 50%; }
.ayar-dugme svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ayar-dugme + .kullanici { margin-left: 4px; }
@media (max-width: 899px) { .menu a[href="#ayarlar"] { display: none; } }
@media (min-width: 900px) { .ayar-dugme { display: none; } .ayar-dugme + .kullanici { margin-left: auto; } }
body.yonetici-modu .ayar-dugme { display: none; }
body.yonetici-modu .kullanici { margin-left: auto; }
.ton-bilgi input:checked + span { background: var(--bilgi-zemin); color: var(--bilgi); box-shadow: inset 0 0 0 2px var(--bilgi); }
.sd-sag .etiket { font-size: .7rem; }

/* PDF liste raporları (kâğıt görünümü sabit) */
.pdf-rapor { min-height: 1123px; display: flex; flex-direction: column; padding: 36px 40px; }
.pdf-rapor.yatay { width: 1123px; min-height: 794px; }
.pdf-tablo { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.pdf-tablo th { background: #eef2f5; color: #173a5c; text-align: left; font-weight: 600; padding: 6px 7px; border: 1px solid #ccd3da; }
.pdf-tablo td { padding: 5px 7px; border: 1px solid #ccd3da; vertical-align: top; overflow-wrap: anywhere; }
.pdf-tablo tbody tr:nth-child(even) td { background: #f8fafb; }
.pdf-tablo .sag { text-align: right; white-space: nowrap; }
.pdf-tablo tfoot td { font-weight: 700; background: #eef2f5; }
.pdf-alt { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; font-size: 10.5px; color: #666; }
.pdf-bos { color: #666; }
.pdf-etiket { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.pdf-etiket::before { content: ""; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(0,0,0,.2); }
.pdf-etiket.e-yesil::before { background: #2e9e5b; }
.pdf-etiket.e-mavi::before { background: #2f6fd0; }
.pdf-etiket.e-sari::before { background: #f2c230; }
.pdf-etiket.e-kirmizi::before { background: #d93a2b; }

/* Dışa aktarma penceresi */
.disari-liste { display: flex; flex-direction: column; gap: 10px; }
.disari-satir { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1px solid var(--cizgi); border-radius: var(--r); padding: 12px; }
.disari-satir > div { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.disari-satir .dugmeler { display: flex; gap: 6px; flex: none; }
.btn.excel { background: #1d6f42; color: #fff; }
.btn.pdf { background: #b42318; color: #fff; }

/* Konum */
.konum-dugmeler { display: flex; gap: 8px; flex-wrap: wrap; }
.konum-linkleri { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.adres-satiri { margin: -4px 0 0; font-size: .88rem; color: var(--yazi-2); display: flex; gap: 8px; flex-wrap: wrap; }
.adres-satiri a { font-weight: 600; }

/* Panel: yakındaki bina kısayolu */
.yakin-serit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; background: var(--ana-acik); border: 1px solid color-mix(in srgb, var(--ana) 25%, transparent); border-left: 4px solid var(--ana); border-radius: var(--r); padding: 12px 14px; }
.yakin-serit.bakim-zamani { border-left-color: var(--vurgu); }
.ys-metin { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.ys-metin strong { font-family: var(--font-baslik); font-size: 1.25rem; }
.ys-dugmeler { display: flex; gap: 6px; flex-wrap: wrap; }
#yakinKisayol:empty { display: none; }

.tekrar-uyari dd { color: var(--uyari); font-weight: 600; }

/* Konuşarak yazma */
.ses-kutu { position: relative; }
.ses-kutu textarea { padding-right: 52px; }
.mikrofon { position: absolute; right: 6px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--ana); display: grid; place-items: center; cursor: pointer; }
.mikrofon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mikrofon.dinliyor { background: var(--kritik); color: #fff; border-color: var(--kritik); animation: dinle 1.2s ease-in-out infinite; }
@keyframes dinle { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--kritik) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .mikrofon.dinliyor { animation: none; } }
.r-yok { background: var(--yuzey-2); color: var(--yazi-2); }

/* Canlı mod: giriş ekranları ve davet kodu */
body.giris-modu { padding-left: 0; padding-bottom: 0; }
body.giris-modu .menu, body.giris-modu .hizli, body.giris-modu .kullanici, body.giris-modu .ayar-dugme { display: none; }
body.giris-modu .ust { margin-left: 0; }
.giris-kart { max-width: 420px; width: 100%; margin: 24px auto; background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: var(--r); padding: 24px 20px; display: flex; flex-direction: column; gap: 16px; }
.giris-kart h1 { font-size: 1.6rem; }
.giris-kart p { margin: 0; }
.giris-form { display: flex; flex-direction: column; gap: 12px; }
.giris-form .btn.kucuk { align-self: flex-start; }
.davet-kodu { font-family: var(--font-baslik); font-size: 2.4rem; font-weight: 700; letter-spacing: .2em; text-align: center; padding: 12px; background: var(--ana-acik); border-radius: var(--r); margin: 8px 0; user-select: all; }
.bildirim-serit { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--yuzey); border: 1px solid var(--cizgi); border-left: 4px solid var(--vurgu); border-radius: var(--r); padding: 10px 12px 10px 14px; }
.bildirim-serit > div:first-child { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; }
.bildirim-serit .dugmeler { display: flex; align-items: center; gap: 4px; }
#bildirimSerit:empty { display: none; }

/* ---------- Bağlantı durumu (çevrimdışı / bekleyen kayıtlar) ---------- */
.baglanti { margin-left: auto; font: inherit; font-size: .75rem; font-weight: 600; border: 0; border-radius: 99px; padding: 3px 10px; cursor: pointer; background: var(--uyari-zemin); color: var(--uyari); white-space: nowrap; }
.baglanti.gonderiyor { background: color-mix(in srgb, var(--ust-yazi) 18%, transparent); color: inherit; }
.baglanti:not([hidden]) ~ .ayar-dugme, .baglanti:not([hidden]) ~ .kullanici { margin-left: 6px; }
body.giris-modu .baglanti { display: none; }
@media (max-width: 520px) { .ust:has(.baglanti:not([hidden])) .marka span { display: none; } }

/* ---------- Çöp kutusu ---------- */
.cop-listesi { list-style: none; margin: 10px 0 0; padding: 0; }
.cop-satir { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--cizgi); }
.cop-satir strong { display: block; font-weight: 600; }
.cop-satir small { color: var(--yazi-2); font-size: .8rem; }
.cop-satir .dugmeler { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 520px) { .cop-satir { flex-direction: column; align-items: stretch; } }

/* ---------- Google ile giriş ---------- */
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #fff; color: #1f1f1f; border: 1px solid #dadce0; font-weight: 600; }
.google-btn:hover { background: #f7f8f8; }
.ayrac { display: flex; align-items: center; gap: 10px; color: var(--yazi-2); font-size: .8rem; margin: 14px 0 6px; }
.ayrac::before, .ayrac::after { content: ""; flex: 1; border-top: 1px solid var(--cizgi); }
