:root {
  --accent: #0f2440;
  --accent-dark: #0a1a30;
  --accent-soft: #e4eaf3;
  --gold: #f5b83d;
  --bg: #f3f5f8;
  --card: #ffffff;
  --text: #1b2430;
  --muted: #667085;
  --line: #e3e8ef;
  --ok: #15803d;
  --warn: #92400e;
  --warn-soft: #fdf1dc;
  --bad: #b91c1c;
  --bad-soft: #fbe6e6;
  --top: env(safe-area-inset-top);
  --bottom: env(safe-area-inset-bottom);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}

#app { max-width: 640px; margin: 0 auto; min-height: 100%; position: relative; }
.ik { flex: none; }
.soluk { color: var(--muted); font-size: 14px; margin: 6px 0 12px; }
.print-only { display: none; }

button { font: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid #f5b83d; outline-offset: 2px;
}

/* ---------- Üst çubuk ve alt menü ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  background: var(--accent); color: #fff; border-bottom: 3px solid var(--gold);
  padding: calc(var(--top) + 10px) 12px 10px 16px;
  display: flex; align-items: center; gap: 10px;
}
.topbar h1 { font-size: 18px; margin: 0; flex: 1; font-weight: 650; }
.topbar .who { font-size: 12px; opacity: .92; text-align: right; line-height: 1.3; }
.topbar .cikis {
  width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.18); color: #fff;
  display: flex; align-items: center; justify-content: center;
}

.topbar .h1-alt { font-size: 13px; font-weight: 400; line-height: 1.3; }
.topbar .cikis.yazili { width: auto; padding: 0 12px; gap: 6px; font-size: 13px; }
main { padding: 14px 14px calc(92px + var(--bottom)); }
main.tek { padding-bottom: calc(28px + var(--bottom)); }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  background: var(--card); border-top: 1px solid var(--line);
  display: flex; justify-content: center; padding-bottom: var(--bottom);
}
.tabbar-inner { display: flex; width: 100%; max-width: 640px; }
.tab {
  flex: 1; min-height: 56px; border: 0; background: none; padding: 8px 4px;
  color: var(--muted); font-size: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.tab.on { color: var(--accent); font-weight: 650; box-shadow: inset 0 3px 0 var(--gold); }

/* ---------- Kartlar ---------- */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px; margin-bottom: 12px;
}
.card h2 { font-size: 14px; margin: 0 0 10px; color: var(--muted); font-weight: 650; text-transform: uppercase; letter-spacing: .02em; }
.card h3 { font-size: 17px; margin: 0 0 4px; }
.sec-title { font-size: 22px; font-weight: 700; margin: 4px 2px 12px; }
.ozet { font-size: 16px; margin-bottom: 4px; }

.satir { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); min-height: 56px; }
.satir:first-of-type { border-top: 0; }
.satir .grow { flex: 1; min-width: 0; }
.satir .t { font-weight: 600; }
.satir .s { font-size: 13px; color: var(--muted); }
.rozet { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #eceff1; color: var(--muted); }

.uyari {
  background: var(--warn-soft); color: var(--warn); border-radius: 12px;
  padding: 12px 14px; margin-bottom: 12px; font-size: 14px;
}
.bos { text-align: center; color: var(--muted); padding: 30px 12px; }

/* ---------- Form ve düğmeler ---------- */
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 4px; }
input[type=text], input[type=email], input[type=password], input[type=date], textarea {
  width: 100%; min-height: 48px; font: inherit; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text);
}
select {
  width: 100%; min-height: 48px; font: inherit; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text);
}
input.pin {
  text-align: center; font-size: 28px; letter-spacing: .5em; padding-left: .5em; font-variant-numeric: tabular-nums;
}
.hata { min-height: 22px; margin-top: 8px; color: var(--bad); font-size: 14px; font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border: 0; border-radius: 12px; padding: 0 18px;
  background: var(--accent); color: #fff; font-size: 16px; font-weight: 650;
}
.btn:active { background: var(--accent-dark); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.full { width: 100%; margin-top: 12px; }
.btn.ghost { background: var(--accent-soft); color: var(--accent-dark); }
.btn.danger { background: var(--bad-soft); color: var(--bad); }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn-grup { display: flex; gap: 10px; margin-top: 4px; }
.btn-grup .btn { flex: 1; }

.chips { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 8px; padding-bottom: 2px; }
.chip {
  min-height: 44px; border: 1.5px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 999px; padding: 0 16px; font-size: 14px; white-space: nowrap;
}
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ekle-form { margin-top: 10px; padding-top: 4px; border-top: 1px solid var(--line); }

/* ---------- Giriş ekranları ---------- */
.login { padding: calc(var(--top) + 28px) 16px 30px; }
.login .logo { width: 76px; height: 76px; border-radius: 19px; display: block; margin: 0 auto 14px; }
.login h1 { text-align: center; font-size: 26px; margin: 0 0 4px; }
.login p.sub { text-align: center; color: var(--muted); margin: 0 0 24px; }
.alt-link { text-align: center; margin-top: 26px; }
.alt-link a { color: var(--muted); font-size: 14px; padding: 12px; display: inline-block; }
.govde { margin-top: 4px; }
.surum { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }

.secim-btn {
  width: 100%; min-height: 72px; display: flex; align-items: center; gap: 14px;
  text-align: left; background: var(--card); border: 1.5px solid var(--line);
  border-radius: 16px; padding: 12px 14px; margin-bottom: 12px; color: var(--text);
}
.secim-btn:active { background: var(--accent-soft); border-color: var(--accent); }
.secim-ik {
  width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex: none;
}
.secim-tx { flex: 1; display: flex; flex-direction: column; }
.secim-tx b { font-size: 17px; }
.secim-tx small { color: var(--muted); font-size: 13px; }
.secim-btn > .ik:last-child { color: var(--muted); }

.geribar { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; }
.geribar h2 { font-size: 20px; margin: 0; flex: 1; text-align: right; }
.geri {
  min-height: 44px; display: flex; align-items: center; border: 0; background: none;
  color: var(--accent); font-weight: 600; padding: 0 8px 0 0;
}
.hedef { font-weight: 650; font-size: 18px; text-align: center; margin-bottom: 4px; }

.daire-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.daire-btn {
  min-height: 64px; border: 1.5px solid var(--line); background: var(--card);
  border-radius: 14px; font-size: 22px; font-weight: 650; color: var(--text);
}
.daire-btn:active { background: var(--accent-soft); border-color: var(--accent); }

/* ---------- Alt panel (PIN yenile) ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 10; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-width: 640px; margin: 0 auto;
  background: var(--card); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + var(--bottom));
  max-height: 90vh; overflow-y: auto;
}
.sheet h3 { margin: 0; font-size: 19px; }
.ayrac { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 16px 0 0; }
.ayrac::before, .ayrac::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- PIN listesi ---------- */
.pin-tablo { width: 100%; border-collapse: collapse; font-size: 15px; }
.pin-tablo th { text-align: left; font-size: 12px; color: var(--muted); padding: 6px 4px; border-bottom: 2px solid var(--line); }
.pin-tablo td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
.pin-tablo td.pn { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px; font-weight: 700; letter-spacing: .12em; }

/* ---------- Bildirim ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--bottom)); transform: translateX(-50%) translateY(20px);
  background: #1c2529; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 30; max-width: 90%;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

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

/* ---------- Yazdırma: yalnızca PIN listesi ---------- */
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .print-only { display: block !important; margin: 0 0 12px; }
  main { padding: 0; }
  .card { border: 0; padding: 0; }
  .pin-tablo td, .pin-tablo th { padding: 8px 6px; }
}

.surum a { color: var(--muted); padding: 10px 4px; display: inline-block; }

/* Aidat */
.aidat-ay { font-size: 15px; color: var(--muted); margin-top: 4px; }
.aidat-tutar { font-size: 34px; font-weight: 700; letter-spacing: -0.5px; margin: 2px 0 10px; }
.rozet { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.rozet.ok { background: var(--accent-soft); color: var(--ok); }
.rozet.bad { background: var(--bad-soft); color: var(--bad); }
.iki { display: flex; gap: 10px; }
.iki select { flex: 1; }
.dosya-gizli { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dosya-btn { display: flex; align-items: center; justify-content: center; cursor: pointer; margin-top: 4px; }
.dosya-btn.pasif { opacity: .6; pointer-events: none; }
.hata-liste { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.sheet.tall { max-height: 80vh; display: flex; flex-direction: column; }
.sheet .kaydir { overflow-y: auto; flex: 1; }

/* Yönetici: soldan açılan menü */
.menu-btn {
  width: 44px; height: 44px; margin-left: -6px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.18); color: #fff; display: flex; align-items: center; justify-content: center; flex: none;
}
.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 20; animation: sol-bg .18s ease-out; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 21; width: min(82vw, 300px);
  background: var(--card); display: flex; flex-direction: column;
  padding: calc(var(--top) + 8px) 12px calc(12px + var(--bottom));
  box-shadow: 4px 0 24px rgba(0,0,0,.2); animation: sol-ac .2s ease-out; overflow-y: auto;
}
.drawer-ust { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 14px; font-size: 18px; color: var(--accent-dark); }
.drawer-x { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; color: var(--muted); border-radius: 10px; }
.drawer-item {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 14px;
  border: 0; border-radius: 12px; background: transparent; color: var(--text); font-size: 16px; font-weight: 500; text-align: left;
}
.drawer-item.on { background: var(--accent-soft); color: var(--accent-dark); font-weight: 650; }
.drawer-alt { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
@keyframes sol-ac { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes sol-bg { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .drawer, .drawer-bg { animation: none; } }

.rozet.gri { background: var(--line); color: var(--muted); }

/* Görevler */
textarea { resize: vertical; min-height: 84px; }
input[type=date] { min-width: 0; }
.tik-satir {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 2px;
  border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; font: inherit; color: var(--text);
}
.tik-satir:first-of-type { border-top: 0; }
.tik { flex: none; width: 32px; height: 32px; border-radius: 10px; border: 2px solid #9fb0b6; display: flex; align-items: center; justify-content: center; background: #fff; color: #fff; }
.tik-satir.bitti .tik { background: var(--accent); border-color: var(--accent); }
.tik-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tik-metin .t { font-weight: 600; font-size: 16px; }
.tik-metin .s { font-size: 13px; color: var(--muted); }
.tik-satir.bitti .t { text-decoration: line-through; color: var(--muted); }
.ustu-cizili { text-decoration: line-through; color: var(--muted); }
.ilerleme { display: flex; align-items: center; gap: 12px; margin: 8px 0 6px; }
.bar { flex: 1; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .25s; }

/* Personel kartları */
.kisi-kart {
  display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 14px 12px 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; text-align: left; font: inherit; color: var(--text); min-height: 76px;
}
.kisi-metin { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.kisi-metin .t { font-weight: 650; font-size: 17px; }
.kisi-metin .s { font-size: 13px; color: var(--muted); }
.ok-sag { color: var(--muted); display: flex; }
.tik-satir.salt { pointer-events: none; }

/* Arıza kayıtları */
.ariza-satir { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: inherit; cursor: pointer; }
.foto-liste { display: flex; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.foto-kutu { position: relative; width: 96px; height: 96px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--line); padding: 0; display: flex; align-items: center; justify-content: center; }
.foto-kutu img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 14px; cursor: pointer; }
.foto-ekle { width: 96px; height: 96px; border-radius: 12px; border: 2px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); cursor: pointer; margin: 0; font-size: 13px; }
.foto-tam { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.foto-tam img { max-width: 100%; max-height: 100%; object-fit: contain; }

.cozum-not { background: var(--accent-soft); border-radius: 12px; padding: 10px 14px; margin: 10px 0; }

.rozet-n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; margin-left: auto; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; }
.menu-btn { position: relative; }
.rozet-n.nokta { position: absolute; top: 2px; right: 2px; margin: 0; min-width: 18px; height: 18px; font-size: 11px; padding: 0 4px; }

.duyuru { padding: 12px 0; border-bottom: 1px solid var(--line); }
.duyuru:last-child { border-bottom: 0; }
.duyuru-kart { border-left: 4px solid var(--accent); }
.onay { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-weight: 500; }
.onay input { width: 22px; height: 22px; }
.duyuru .t { font-weight: 650; font-size: 16px; }
.duyuru .s { color: var(--muted); font-size: 13px; margin-top: 2px; }

.sec-liste { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; padding: 4px 12px; margin: 8px 0; }
.sec-liste.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 6px; }
.onay.sec { margin-top: 0; padding: 8px 0; }

.zil { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.zil.acik { color: var(--ok); font-weight: 600; }
.zil .ik { vertical-align: -2px; }

.duyuru-metin { white-space: pre-wrap; margin: 6px 0 8px; }
.duyuru-metin.kisa { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.ar-ozet { display: flex; gap: 8px; margin: 0 0 10px; }
.ar-ozet-kutu { flex: 1; text-align: center; background: var(--bg, #f4f6f6); border-radius: 12px; padding: 10px 4px; }
.ar-ozet-n { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.ar-ozet-n.kirmizi { color: #b3261e; }

.sy-kart { border-top: 1px solid #e3e7ea; padding: 12px 0; }
.sy-kart:first-of-type { border-top: 0; }
.sy-ust { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.sy-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin-bottom: 8px; }
.sy-izgara b { font-size: 1.05rem; }
.sy-uyari { margin-top: 6px; font-size: 13px; color: #b3261e; font-weight: 600; }
.sy-grup { margin: 12px 0 4px; font-weight: 700; }
.sy-grafik { margin-bottom: 14px; }
.sy-gb { font-weight: 700; margin-bottom: 4px; }
.sy-lej { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #4b5563; }
.sy-lej i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; }

.sy-cubuk{height:8px;border-radius:4px;background:var(--line,#e5e7eb);margin:10px 0 0;overflow:hidden}
.sy-cubuk>div{height:100%;border-radius:4px;background:#15803d}
.satir-btn { width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; color: inherit; cursor: pointer; }
.satir-btn:active { background: var(--accent-soft); }

.alt-liste { background: var(--soft, rgba(0,0,0,.03)); padding-left: 10px; }

/* Sayaçlar: apartman durum listesi ve okunan değerler tablosu */
.rozet.uy { background: #fdf0d5; color: #8a5a00; }
.sy-satir { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; background: none; border: 0; border-top: 1px solid #e3e7ea; padding: 12px 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.sy-satir:first-of-type { border-top: 0; }
.sy-satir .sg { display: flex; align-items: center; gap: 8px; }
.sy-detay { background: rgba(0,0,0,.035); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.sy-tablo-kap { overflow-x: auto; }
.sy-tablo { width: 100%; border-collapse: collapse; font-size: 13px; }
.sy-tablo th { font-weight: 600; color: var(--muted); text-align: right; padding: 8px 4px; font-size: 12px; white-space: nowrap; }
.sy-tablo td { text-align: right; padding: 8px 4px; border-top: 1px solid #e3e7ea; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sy-tablo th:first-child, .sy-tablo td:first-child { text-align: left; font-weight: 600; white-space: normal; }
.sy-tablo td.yok { color: var(--muted); }

.konu-sec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 12px; }
.konu-dugme { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 8px; min-height: 104px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--text, inherit); font: inherit; font-size: 14px; text-align: center; cursor: pointer; }
.konu-dugme.on { border: 2px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.sec-liste { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 12px; }
.sec-satir { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.sec-satir.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.dt-ust { display: flex; align-items: center; gap: 10px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.dt-metin { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.dt-baslik { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.dt-ozet { font-size: 16px; }
.dt-ok { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; transition: transform .2s; flex: none; }
.dt-ok.acik { transform: rotate(180deg); }
.dt-satir { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }
.dt-ad { flex: 1; font-size: 15px; }
.dt-durum { font-size: 13px; }
.dt-durum.ac { color: #1f7a3a; }
.dt-durum.kapali { color: var(--muted); }
.dt-anahtar { width: 50px; height: 28px; border-radius: 14px; border: 0; background: #c3cad6; position: relative; padding: 0; cursor: pointer; flex: none; transition: background .15s; }
.dt-anahtar span { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.dt-anahtar.on { background: #1f7a3a; }
.dt-anahtar.on span { left: 25px; }
.dt-anahtar:disabled { opacity: .6; }

.ar-kart { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--card); }
.ar-kart.coz { opacity: .65; }
.ar-ust { display: flex; align-items: flex-start; gap: 8px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.ar-ust .grow { display: flex; flex-direction: column; gap: 3px; }
.ar-baslik { font-size: 15px; font-weight: 600; line-height: 1.35; }
.ar-meta { font-size: 12px; color: var(--muted); }
.ar-ust svg { flex: none; margin-top: 2px; color: var(--muted); }
.ar-durum { display: flex; gap: 6px; margin-top: 8px; }
.ar-durum button { flex: 1; padding: 9px 2px; font: inherit; font-size: 13px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
.ar-durum button.s { border: 1.5px solid var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ar-durum button:disabled { opacity: .55; }
.ar-sayfalar { display: flex; gap: 6px; justify-content: center; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.ar-sayfalar button { min-width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 15px; color: inherit; padding: 0 8px; cursor: pointer; }
.ar-sayfalar button.on { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.ar-sayfalar button:disabled { opacity: .4; cursor: default; }
.ar-sayfalar span { color: var(--muted); padding: 0 2px; }
.ar-geri { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--accent); color: #fff; border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 14px; }
.ar-geri button { background: none; border: 0; color: #fff; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 4px 6px; }

.ar-arama { display: flex; gap: 8px; margin-bottom: 10px; }
.ar-ara-kutu { flex: 1.4; min-width: 0; position: relative; display: block; margin: 0; }
.ar-ara-kutu svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.ar-ara-kutu input { width: 100%; height: 46px; box-sizing: border-box; margin: 0; padding: 0 12px 0 40px; font: inherit; font-size: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; -webkit-appearance: none; appearance: none; }
.ar-ara-kutu input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.ar-apt { flex: 1; min-width: 0; height: 46px; box-sizing: border-box; margin: 0; padding: 0 10px; font: inherit; font-size: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: inherit; text-overflow: ellipsis; }

.kp-satir { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.kp-ok { display: flex; flex-direction: column; flex: none; }
.kp-ok button { width: 30px; height: 22px; padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.kp-ok button:disabled { opacity: .3; cursor: default; }
.kp-ad { flex: 1; font-size: 15px; min-width: 0; }
.kp-btn { width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.kp-btn.sil { color: #b3261e; }
.kp-ekle { width: 100%; margin-top: 8px; padding: 12px; border: 1.5px dashed var(--line); border-radius: 10px; background: none; font: inherit; font-size: 15px; color: inherit; cursor: pointer; }
.kp-sor { background: #fdf3f2; border-radius: 10px; padding: 10px 12px; margin-bottom: 6px; font-size: 14px; }
.kp-sor-d { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }

.ss-bb { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.ss-b { flex: 1 1 120px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--card); font: inherit; font-size: 14px; text-align: left; color: inherit; cursor: pointer; }
.ss-b small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ss-b.on { background: var(--accent-soft); border: 1.5px solid var(--accent); color: var(--accent); }
.ss-b.on small { color: var(--accent); }
.ss-b.tam:not(.on) small { color: #2e7d32; }
.ss-satir { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.ss-satir .ss-d { width: 76px; font-weight: 600; flex: none; }
.ss-eski { flex: 1; color: var(--muted); font-size: 13px; min-width: 0; }
.ss-in { width: 110px; flex: none; height: 44px; text-align: right; font-size: 16px; }
.ss-in.hata { border-color: #b3261e; }
.ss-hata { color: #b3261e; font-size: 13px; padding: 0 0 6px; }
.ss-not { font-size: 12px; color: var(--muted); padding: 0 0 6px; }
.ss-t { display: grid; grid-template-columns: 38px 1fr 1fr 1fr 40px; gap: 6px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; text-align: right; }
.ss-t > span:first-child { text-align: left; font-weight: 600; }
.ss-t.ss-bas { border-top: 0; font-size: 12px; color: var(--muted); padding-bottom: 2px; }
.ss-ay { display: flex; align-items: center; justify-content: space-between; }
.ss-ay-ad { font-weight: 600; font-size: 17px; }
.ss-ay-b { width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ss-ay-b:disabled { opacity: .35; cursor: default; }
.ss-sec-satir { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ss-sec-satir .grow { flex: 1; min-width: 0; }
.ss-sec-satir .t { font-weight: 600; }
.ss-sec-satir .s { font-size: 13px; color: var(--muted); }
.ss-tg { width: 48px; height: 28px; border-radius: 14px; border: 0; background: #b8bec7; position: relative; flex: none; cursor: pointer; padding: 0; }
.ss-tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.ss-tg.on { background: var(--accent); }
.ss-tg.on::after { left: 23px; }
.ss-tg:disabled { opacity: .5; }

.rozet.uyari { background: #fff4d6; color: #8a5a00; font-size: 12px; padding: 2px 10px; }

.ss-opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font: inherit; font-size: 15px; color: inherit; text-align: left; cursor: pointer; }
.ss-opt small { margin-left: auto; font-size: 12px; color: var(--muted); }
.ss-opt.on { background: var(--accent-soft); border: 1.5px solid var(--accent); color: var(--accent); }
.ss-opt.on small { color: var(--accent); }
.ss-rd { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #8a93a0; flex: none; position: relative; }
.ss-opt.on .ss-rd { border-color: var(--accent); }
.ss-opt.on .ss-rd::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.ss-lnk { display: flex; gap: 14px; margin: 6px 0 2px; }
.ss-lnk button { border: 0; background: none; padding: 6px 0; font: inherit; font-size: 14px; color: var(--accent); cursor: pointer; }
.ss-cbs { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ss-cb { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #8a93a0; flex: none; display: flex; align-items: center; justify-content: center; color: #fff; }
.ss-cb.on { background: var(--accent); border-color: var(--accent); }

.ss-satir input.ss-in[type=text] { width: 120px; max-width: 42%; flex: none; margin: 0; text-align: right; }
.ss-satir .ss-eski { white-space: nowrap; }

.ss-satir { gap: 10px; }
.ss-satir .ss-sol { flex: 1 1 0; min-width: 0; }
.ss-satir .ss-d { width: auto; }
.ss-satir .ss-eski { white-space: normal; font-size: 12px; overflow-wrap: anywhere; }
.ss-satir input.ss-in[type=text] { width: 124px; max-width: 124px; min-width: 0; flex: 0 0 124px; box-sizing: border-box; }

.bar-ss { height: 6px; border-radius: 3px; background: var(--accent-soft); margin: 10px 0 6px; overflow: hidden; }
.bar-ss i { display: block; height: 100%; background: var(--accent); }
.ss-satir input.ss-in[type=text] { width: 104px; max-width: 104px; flex: 0 0 104px; }
.ss-satir input.ss-in.k { background: #eaf6ec; border-color: #7bbf86; }
.ss-act { width: 78px; flex: 0 0 78px; display: flex; align-items: center; justify-content: center; }
.ss-sv { width: 100%; height: 44px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ss-sv:disabled { opacity: .5; }
.ss-kayit { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: #2e7d32; white-space: nowrap; }
.ss-hata:empty { display: none; }

/* Sayaçlar (yönetim): gün şeridi + tablo */
.sg-seri { display: flex; align-items: flex-start; gap: 6px; overflow-x: auto; padding: 10px 0 4px; scrollbar-width: none; }
.sg-seri::-webkit-scrollbar { display: none; }
.sg-dy { flex: none; height: 62px; min-height: 0; align-self: flex-start; justify-content: flex-start; width: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: inherit; padding: 6px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 15px; font-weight: 600; cursor: pointer; }
.sg-dy small { font-size: 10px; font-weight: 500; color: var(--muted); }
.sg-dy i { width: 6px; height: 6px; border-radius: 50%; background: #1a7f4b; display: block; }
.sg-dy i.k { background: #c0392b; }
.sg-dy i.bos { background: transparent; }
.sg-dy.s { background: var(--accent); border-color: var(--accent); color: #fff; }
.sg-dy.s small { color: #fff; }
.sg-dy.s i { box-shadow: 0 0 0 2px #fff; }
.sg-dy.f { opacity: .35; cursor: default; }
.sg-tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.sg-tbl th { font-weight: 600; color: var(--muted); text-align: right; padding: 8px 4px; font-size: 11px; white-space: nowrap; }
.sg-tbl td { text-align: right; padding: 8px 4px; border-top: 1px solid #e3e7ea; font-variant-numeric: tabular-nums; vertical-align: top; }
.sg-tbl th:first-child, .sg-tbl td:first-child { text-align: left; font-weight: 600; }
.sg-tbl td.pe { width: 40px; padding: 0; }
.sg-nm { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; font-size: 13px; text-align: left; text-decoration: underline; cursor: pointer; }
.sg-kim, .sg-duz { display: block; font-weight: 400; font-size: 11px; color: var(--muted); margin-top: 2px; }
.sg-kim svg { vertical-align: -2px; }
.sg-geri { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 14px; padding: 6px 0 10px; cursor: pointer; }
.chip.d { opacity: .35; }
.sg-mod { display: flex; gap: 8px; margin-bottom: 12px; }
.sg-mod button { flex: 1; padding: 11px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--card, #fff); color: inherit; font: inherit; font-size: 15px; cursor: pointer; }
.sg-mod button.on { background: var(--text, #1b1f23); border-color: var(--text, #1b1f23); color: #fff; font-weight: 600; }
.sg-tbl td.pe { width: 46px; padding: 4px 0; vertical-align: middle; }
.sg-tbl .kp-btn { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); margin-left: auto; }
.aidat-not { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-size: 12.5px; line-height: 1.45; }
.aidat-not svg { flex: none; margin-top: 1px; }
