* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

:root {
  --ana: #0f766e;
  --ana-koyu: #115e59;
  --ana-metin: #115e59;
  --ana-acik: #ccfbf1;
  --beyaz: #ffffff;
  --yuzey: #ffffff;
  --yuzey-2: #f8fafc;
  --yuzey-3: #f1f5f9;
  --yuzey-hover: #e2e8f0;
  --secili: #f0fdfa;
  --zemin: #f1f5f9;
  --metin: #0f172a;
  --metin-2: #334155;
  --metin-3: #475569;
  --soluk: #cbd5e1;
  --gri: #64748b;
  --cizgi: #e2e8f0;
  --cizgi-2: #f1f5f9;
  --kirmizi: #dc2626;
  --yesil: #16a34a;
  --turuncu: #d97706;
  --mavi: #2563eb;
  --radius: 14px;
  --golge: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .06);
  --golge-kalkik: 0 10px 28px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .06);
  --halka: 0 0 0 4px rgba(15, 118, 110, .14);
}

[data-tema="koyu"] {
  color-scheme: dark;
  --yuzey: #111c2e;
  --yuzey-2: #0f1a2b;
  --yuzey-3: #17243a;
  --yuzey-hover: #1e2e47;
  --secili: #123c38;
  --zemin: #0b1220;
  --metin: #e2e8f0;
  --metin-2: #cbd5e1;
  --metin-3: #a8b6c9;
  --soluk: #3b4b63;
  --gri: #94a3b8;
  --cizgi: #263449;
  --cizgi-2: #1c293d;
  --ana-koyu: #115e59;
  --ana-metin: #5eead4;
  --ana-acik: #134e4a;
  --golge: 0 1px 2px rgba(0, 0, 0, .45), 0 4px 14px rgba(0, 0, 0, .35);
  --golge-kalkik: 0 12px 32px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .35);
  --halka: 0 0 0 4px rgba(45, 212, 191, .16);
}

html, body { min-height: 100%; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(900px 420px at 100% -10%, rgba(20, 184, 166, .10), transparent 65%),
    radial-gradient(700px 380px at -10% 0%, rgba(15, 118, 110, .08), transparent 60%),
    var(--zemin);
  background-attachment: fixed;
  color: var(--metin);
  -webkit-font-smoothing: antialiased;
  accent-color: var(--ana);
}
::selection { background: var(--ana-acik); color: var(--ana-metin); }
* { scrollbar-width: thin; scrollbar-color: var(--soluk) transparent; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--soluk); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }

.hidden { display: none !important; }
.soluk { color: var(--gri); font-size: 13px; }

/* ---------------- Giriş ---------------- */
.giris-ekran {
  min-height: 100dvh; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: radial-gradient(circle at 20% 10%, #0f766e, #0b3b38 65%);
}
.giris-kart {
  background: var(--yuzey); width: 100%; max-width: 380px; border-radius: 20px;
  padding: 28px 24px; box-shadow: 0 20px 60px rgba(0,0,0,.35);
}
.giris-logo { font-size: 44px; text-align: center; }
.giris-kart h1 { font-size: 24px; text-align: center; margin: 6px 0 2px; }
.giris-kart > p { text-align: center; margin-bottom: 20px; }
.giris-kart .btn { margin-top: 6px; width: 100%; }
.hata { color: var(--kirmizi); font-size: 13px; margin-bottom: 10px; }

/* ---------------- Genel düzen ---------------- */
.uygulama { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: linear-gradient(135deg, var(--ana), var(--ana-koyu));
  color: var(--beyaz);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 12px rgba(15,118,110,.28);
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.marka { display: flex; align-items: center; gap: 10px; }
.marka-ikon {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(145deg, rgba(255,255,255,.28), rgba(255,255,255,.10));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 10px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.marka h1 { font-size: 17px; font-weight: 700; line-height: 1.1; }
.marka small { font-size: 11.5px; opacity: .85; }
.cevrimdisi-rozet {
  display: inline-block; margin: 2px 0 0 6px; padding: 2px 7px; border-radius: 999px;
  background: rgba(255,255,255,.2); color: var(--beyaz); font-size: 10px;
  font-weight: 700; white-space: nowrap;
}
.cevrimdisi-rozet.bekliyor { background: #f59e0b; color: #1f2937; }
.ust-butonlar { display: flex; gap: 8px; }
.icon-btn {
  background: rgba(255,255,255,.15); border: none; color: var(--beyaz);
  width: 38px; height: 38px; border-radius: 50%; font-size: 16px; cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.28); }

main { flex: 1; padding: 16px 16px calc(92px + env(safe-area-inset-bottom)); max-width: 1400px; width: 100%; margin: 0 auto; }
.gorunum { animation: belir .18s ease; }
@keyframes belir { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Alt sekmeler (mobil) */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 25;
  background: var(--yuzey); border-top: 1px solid var(--cizgi);
  display: flex; padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -2px 12px rgba(15,23,42,.05);
}
.tab {
  flex: 1; min-width: 0; border: none; background: none; padding: 9px 0 7px;
  font-size: 19px; color: var(--gri); cursor: pointer; position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  transition: color .15s, background .15s;
}
.tab.active::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 30px; height: 3px; border-radius: 0 0 4px 4px;
  background: var(--ana); box-shadow: 0 2px 8px rgba(15,118,110,.45);
}
.tab > .tab-ikon {
  font-size: 19px; line-height: 1; height: 22px;
  display: flex; align-items: center; justify-content: center;
}
.tab > .tab-etiket {
  font-size: 11px; font-weight: 600; line-height: 1.1;
  max-width: 100%; padding: 0 2px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.tab.active { color: var(--ana); }

/* ---------------- Araç çubuğu ---------------- */
.arac-cubugu {
  background: var(--yuzey); border-radius: var(--radius); box-shadow: var(--golge);
  padding: 14px; margin-bottom: 14px;
}
.arama { display: flex; gap: 8px; margin-bottom: 10px; }
.arama input {
  flex: 1; min-width: 0; border: 1px solid var(--cizgi); border-radius: 11px;
  padding: 12px 14px; font-size: 15px; background: var(--yuzey-2);
}
.arama input:focus, .filtre-izgara select:focus, .filtre-izgara input:focus { outline: 2px solid var(--ana); border-color: transparent; box-shadow: var(--halka); }
.filtre-izgara {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px;
}
.filtre-izgara select, .filtre-izgara input {
  border: 1px solid var(--cizgi); border-radius: 11px; padding: 10px 12px;
  font-size: 14px; background: var(--yuzey-2); color: var(--metin); width: 100%; min-width: 0;
}
.arac-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.arac-butonlar { display: flex; gap: 8px; flex-wrap: wrap; }
.kullanici-liste { display: flex; flex-direction: column; gap: 8px; }
.kullanici-satir {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; background: var(--yuzey); border-radius: 12px; box-shadow: var(--golge);
}
.kullanici-satir .ad { font-size: 14px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kullanici-satir .adet { font-size: 12px; font-weight: 500; color: var(--gri); margin-left: 8px; white-space: nowrap; }
.kullanici-satir .btn { flex: none; }

/* ---------------- Butonlar ---------------- */
.btn {
  border: none; border-radius: 11px; padding: 12px 16px;
  font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: filter .15s, background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:active { filter: brightness(.94); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-birincil { background: linear-gradient(160deg, #0f8a80, var(--ana)); color: var(--beyaz); box-shadow: 0 4px 12px rgba(15,118,110,.22); }
.btn-birincil:hover { background: var(--ana-koyu); box-shadow: 0 6px 18px rgba(15,118,110,.30); transform: translateY(-1px); }
.btn-birincil:active { transform: translateY(0); }
.btn-ters { background: var(--yuzey-3); color: var(--metin); border: 1px solid var(--cizgi); }
.btn-ters:hover { background: var(--yuzey-hover); }
.btn-tehlike { background: var(--kirmizi); color: var(--beyaz); }
.btn-kucuk { padding: 9px 13px; font-size: 13.5px; border-radius: 10px; }
.btn-tam { width: 100%; }

/* ---------------- Liste ---------------- */
.sonuc-bilgi { font-size: 13px; color: var(--gri); margin-bottom: 10px; }

.tablo-sarmal { display: none; overflow-x: auto; }
.tablo {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--yuzey); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--golge); font-size: 13.5px;
}
.tablo th {
  text-align: left; padding: 12px 14px; background: var(--yuzey-2); color: var(--gri);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  border-bottom: 1px solid var(--cizgi); white-space: nowrap;
}
.tablo td { padding: 12px 14px; border-bottom: 1px solid var(--cizgi); vertical-align: middle; }
.tablo tr:last-child td { border-bottom: none; }
.tablo tbody tr { cursor: pointer; transition: background .12s; }
.tablo tbody tr:hover { background: var(--secili); }
.tablo th { position: relative; }
.tablo th .sirala-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: none; background: none; padding: 0; margin: 0;
  font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
  cursor: pointer;
}
.tablo th .sirala-btn:hover, .tablo th .sirala-btn.aktif { color: var(--ana-metin); }
.sirala-ok { font-size: 10px; opacity: .65; }
.sirala-btn.aktif .sirala-ok { opacity: 1; }
mark { background: #fde68a; color: #4a2c00; border-radius: 3px; padding: 0 1px; }
.tablo .seri { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; color: var(--ana-metin); }
.tablo th.secim, .tablo td.secim { width: 34px; padding-left: 12px; padding-right: 4px; text-align: center; }
.tablo .secim input { width: 16px; height: 16px; accent-color: var(--ana); cursor: pointer; }
.tablo .ad { font-weight: 600; }
.tablo .alt-metin { font-size: 12px; color: var(--gri); margin-top: 1px; }
.hucre-simge { text-align: right; white-space: nowrap; }

/* Mobil kartlar */
.kart-liste { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.kayit-kart {
  background: var(--yuzey); border-radius: var(--radius); box-shadow: var(--golge);
  padding: 14px; cursor: pointer; border-left: 4px solid var(--ana);
  transition: transform .12s; position: relative; min-width: 0;
}
.kayit-kart .ust { padding-right: 26px; }
.kayit-kart .kart-sec {
  position: absolute; top: 9px; right: 9px; z-index: 2;
  display: flex; padding: 4px; cursor: pointer;
}
.kayit-kart .kart-sec input { width: 17px; height: 17px; accent-color: var(--ana); cursor: pointer; }
.kayit-kart { transition: transform .15s, box-shadow .15s; }
.kayit-kart:hover { box-shadow: var(--golge-kalkik); }
.kayit-kart:active { transform: scale(.995); }
.kayit-kart .ust { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; min-width: 0; }
.kayit-kart .ad { font-weight: 700; font-size: 15px; min-width: 0; overflow-wrap: anywhere; }
.kayit-kart .seri {
  font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px;
  color: var(--ana-metin); background: var(--ana-acik); padding: 2px 8px; border-radius: 6px;
  white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis;
}
.kayit-kart .satir { font-size: 13px; color: var(--metin-2); margin-top: 7px; display: flex; gap: 6px; flex-wrap: wrap; }
.kayit-kart .etiket { color: var(--gri); }
.kayit-kart .cip-satir { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

.rozet {
  display: inline-block; font-size: 11.5px; font-weight: 600; padding: 3px 9px;
  border-radius: 999px; background: var(--yuzey-3); color: var(--metin-3);
}
.rozet.depo { background: #e0f2fe; color: #0369a1; }
.rozet.sube { background: #ede9fe; color: #6d28d9; }
.rozet.durum { background: #dcfce7; color: #15803d; }
.rozet.durum.ariza { background: #fee2e2; color: #b91c1c; }
.rozet.tur { background: #fef3c7; color: #b45309; }

.bos { text-align: center; padding: 56px 20px; color: var(--gri); background: var(--yuzey); border-radius: var(--radius); box-shadow: var(--golge); }
.bos .ikon { font-size: 44px; display: block; margin-bottom: 10px; }

.daha-fazla { display: flex; justify-content: center; padding: 14px 0 4px; }

/* ---------------- FAB ---------------- */
#fab {
  position: fixed; right: 18px; bottom: calc(76px + env(safe-area-inset-bottom));
  width: 56px; height: 56px; border-radius: 50%; border: none;
  background: var(--ana); color: var(--beyaz); font-size: 29px;
  box-shadow: 0 6px 20px rgba(15,118,110,.45); cursor: pointer; z-index: 28;
  transition: transform .15s, box-shadow .15s;
}
#fab:hover { transform: scale(1.06); box-shadow: 0 10px 28px rgba(15,118,110,.55); }

/* ---------------- Modal ---------------- */
.modal {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px);
  display: flex; align-items: flex-end; justify-content: center;
}
.modal-panel {
  background: var(--yuzey); width: 100%; max-width: 720px;
  border-radius: 20px 20px 0 0; padding: 20px;
  max-height: 94dvh; overflow-y: auto;
  box-shadow: 0 -12px 40px rgba(2, 6, 23, .28);
  animation: yukari .22s ease;
}
@keyframes yukari { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-baslik { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; position: sticky; top: -20px; background: var(--yuzey); padding: 4px 0 10px; z-index: 2; }
.modal-baslik h2 { font-size: 18px; }
.uyari-kutu {
  background: #fffbeb; border: 1px solid #f59e0b; color: #78350f;
  border-radius: 12px; padding: 14px 16px; margin: 4px 0 8px;
  font-size: 14px; line-height: 1.5;
}
.uyari-kutu ul { margin: 8px 0 0; padding-left: 20px; }
.uyari-kutu li { margin: 5px 0; }
.modal-baslik .alt { font-size: 12.5px; color: var(--gri); font-weight: 400; }
.modal-kapat {
  border: none; background: var(--yuzey-3); border-radius: 50%; width: 34px; height: 34px;
  font-size: 16px; cursor: pointer; flex-shrink: 0;
}

/* ---------------- Form ---------------- */
.form-grup { margin-bottom: 13px; }
.form-grup label { display: block; font-size: 12.5px; font-weight: 600; color: var(--gri); margin-bottom: 5px; }
.buyuk-harf { text-transform: uppercase; }
.form-grup input, .form-grup textarea, .form-grup select {
  width: 100%; border: 1px solid var(--cizgi); border-radius: 11px;
  padding: 11px 13px; font-size: 14.5px; background: var(--yuzey-2); color: var(--metin);
}
.form-grup input:focus, .form-grup textarea:focus { outline: 2px solid var(--ana); border-color: transparent; background: var(--yuzey); box-shadow: var(--halka); }
.form-grup textarea { min-height: 78px; resize: vertical; }
.form-grup.eski-alan label { color: #b91c1c; }
.form-grup.eski-alan input, .form-grup.eski-alan textarea {
  border-color: #fca5a5; background: #fef2f2; color: #991b1b;
}
.form-grup.eski-alan input:focus, .form-grup.eski-alan textarea:focus {
  outline-color: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .18);
}
.form-grup.yeni-alan label { color: #15803d; }
.form-grup.yeni-alan input, .form-grup.yeni-alan textarea {
  border-color: #86efac; background: #f0fdf4; color: #166534;
}
.form-grup.yeni-alan input:focus, .form-grup.yeni-alan textarea:focus {
  outline-color: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18);
}
.form-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-grup.tam { grid-column: 1 / -1; }
.sil-ornek { margin: 0 0 14px; padding: 10px 12px 10px 28px; background: var(--yuzey-2); border-radius: 10px; font-size: 13px; line-height: 1.7; color: var(--metin-3); }
.onay-kutu {
  display: flex; gap: 9px; align-items: flex-start; margin: 14px 0;
  padding: 11px 13px; border-radius: 10px; background: #fef2f2;
  color: #991b1b; font-size: 13.5px; line-height: 1.5;
}
.onay-kutu input { width: 17px; height: 17px; margin-top: 1px; flex: none; accent-color: #b91c1c; }
.form-bolum { margin: 18px 0 10px; font-size: 12px; font-weight: 700; color: var(--ana-metin); text-transform: uppercase; letter-spacing: .06em; display: flex; align-items: center; gap: 8px; }
.form-bolum::after { content: ""; flex: 1; height: 1px; background: var(--cizgi); }
.form-eylemler { display: flex; gap: 10px; margin-top: 20px; position: sticky; bottom: -20px; background: var(--yuzey); padding: 14px 0 4px; }
.form-eylemler .btn { flex: 1; }
.toplu-alanlar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toplu-alan { border: 1px solid var(--cizgi); border-radius: 10px; padding: 10px; background: var(--yuzey-2); }
.toplu-alan.secili { border-color: var(--ana); background: var(--ana-acik); }
.toplu-alan-secim { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ana-metin); cursor: pointer; }
.toplu-alan-secim input { width: 16px; height: 16px; margin: 0; accent-color: var(--ana); flex: none; }
.toplu-alan input[data-alan-deger], .toplu-alan textarea[data-alan-deger] {
  width: 100%; margin-top: 8px; border: 1px solid var(--cizgi); border-radius: 8px;
  padding: 8px 10px; font-size: 13.5px; background: var(--yuzey); color: var(--metin);
}
.toplu-alan input[data-alan-deger]:disabled, .toplu-alan textarea[data-alan-deger]:disabled {
  opacity: .55; background: var(--yuzey-3); cursor: not-allowed;
}
.toplu-alan input[data-alan-deger]:focus, .toplu-alan textarea[data-alan-deger]:focus {
  outline: 2px solid var(--ana); border-color: transparent;
}
.etiket-alanlar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.etiket-alan-secim {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px;
  border: 1px solid var(--cizgi); border-radius: 10px; background: var(--yuzey-2);
  font-size: 13px; font-weight: 600; color: var(--metin-2); cursor: pointer;
}
.etiket-alan-secim:has(input:checked) { border-color: var(--ana); background: var(--ana-acik); color: var(--ana-metin); }
.etiket-alan-secim input { width: 16px; height: 16px; margin: 0; accent-color: var(--ana); flex: none; }

/* ---------------- Detay ---------------- */
.detay-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.detay-ust h2 { font-size: 21px; }
.detay-seri { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--ana-metin); background: var(--ana-acik); padding: 3px 9px; border-radius: 7px; display: inline-block; margin-top: 4px; }
.detay-gruplar { display: grid; gap: 14px; margin-top: 16px; }
.detay-kutu { border: 1px solid var(--cizgi); border-radius: 12px; overflow: hidden; }
.detay-kutu h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--gri); background: var(--yuzey-2); padding: 9px 14px; border-bottom: 1px solid var(--cizgi); }
.detay-satir { display: flex; justify-content: space-between; gap: 16px; padding: 9px 14px; border-bottom: 1px solid var(--cizgi-2); font-size: 14px; }
.detay-satir:last-child { border-bottom: none; }
.detay-satir .anahtar { color: var(--gri); flex-shrink: 0; }
.detay-satir .deger { font-weight: 600; text-align: right; word-break: break-word; }
.detay-satir .deger.bos-deger { color: var(--soluk); font-weight: 400; }
.toner-rozetler { display: inline-flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.toner-rozet {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  border: 1px solid var(--cizgi); background: var(--yuzey-2); color: var(--metin-2);
}
.toner-rozet::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gri); box-shadow: 0 0 0 1px var(--cizgi) inset;
}
.toner-rozet.renk-siyah::before { background: #111827; }
.toner-rozet.renk-cyan::before { background: #06b6d4; }
.toner-rozet.renk-magenta::before { background: #d946ef; }
.toner-rozet.renk-yellow::before { background: #eab308; }
[data-tema="koyu"] .toner-rozet.renk-siyah::before { background: #64748b; }
.servis-ust-buton { padding: 10px 14px; }
.servis-liste { display: flex; flex-direction: column; }
.servis-kayit { padding: 10px 14px; border-top: 1px solid var(--cizgi-2); }
.servis-ust { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.servis-baslik { font-weight: 700; }
.servis-meta { margin-top: 2px; font-size: 12px; }
.servis-aciklama { margin-top: 6px; font-size: 13.5px; color: var(--metin-2); white-space: pre-wrap; }
.servis-eylemler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.detay-alt-bilgi { font-size: 12.5px; color: var(--gri); margin-top: 12px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------- Geçmiş ---------------- */
.bolum-baslik { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.bolum-baslik h2 { font-size: 18px; }
.gecmis-grup {
  background: var(--yuzey); border-radius: var(--radius); box-shadow: var(--golge);
  margin-bottom: 10px; overflow: hidden;
}
.gecmis-ust { padding: 12px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
.gecmis-ust::-webkit-details-marker { display: none; }
.gecmis-ust::marker { content: ""; }
.gecmis-ust .simge {
  width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center;
  justify-content: center; font-size: 15px; background: var(--yuzey-3); flex-shrink: 0;
}
.gecmis-ust .simge.ekle { background: #dcfce7; }
.gecmis-ust .simge.guncelle { background: #dbeafe; }
.gecmis-ust .simge.sil { background: #fee2e2; }
.gecmis-ust .orta { flex: 1; min-width: 0; }
.gecmis-ust .orta .islem { font-weight: 700; font-size: 14px; }
.gecmis-ust .orta .alt { font-size: 12px; color: var(--gri); }
.gecmis-ust .tarih { font-size: 11.5px; color: var(--gri); white-space: nowrap; text-align: right; }
.gecmis-detay { border-top: 1px solid var(--cizgi); padding: 4px 14px 10px; }
.degisim { display: grid; grid-template-columns: 1fr; gap: 3px; padding: 8px 0; border-bottom: 1px solid var(--cizgi-2); font-size: 13px; }
.degisim:last-child { border-bottom: none; }
.degisim .alan { font-weight: 600; font-size: 12px; color: var(--gri); }
.degisim .degerler { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.eski-deger { text-decoration: line-through; color: #b91c1c; background: #fef2f2; padding: 2px 7px; border-radius: 5px; }
.yeni-deger { color: #15803d; background: #f0fdf4; padding: 2px 7px; border-radius: 5px; }
.ok-isaret { color: var(--gri); font-size: 11px; }
.gecmis-ok { display: inline-block; transition: transform .15s; }
.gecmis-grup[open] > .gecmis-ust .gecmis-ok { transform: rotate(180deg); }

/* ---------------- Özet ---------------- */
.ozet-kartlar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.ozet-kart { background: var(--yuzey); border-radius: var(--radius); box-shadow: var(--golge); padding: 16px; transition: transform .15s, box-shadow .15s; }
.ozet-kart:hover { transform: translateY(-2px); box-shadow: var(--golge-kalkik); }
.ozet-kart .deger { font-size: 27px; font-weight: 800; color: var(--ana-metin); }
.ozet-kart .etiket { font-size: 12px; color: var(--gri); margin-top: 2px; }
.dash-kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.dash-kpi {
  background: var(--yuzey); border-radius: var(--radius); box-shadow: var(--golge);
  padding: 14px; display: flex; gap: 10px; align-items: center;
}
.dash-kpi[data-git] { cursor: pointer; }
.dash-kpi[data-git]:hover { background: var(--secili); }
.dash-kpi-ikon {
  width: 38px; height: 38px; border-radius: 11px; background: var(--secili);
  display: flex; align-items: center; justify-content: center; font-size: 19px; flex: none;
}
.dash-kpi b { display: block; font-size: 22px; line-height: 1.1; color: var(--ana-metin); }
.dash-kpi span { font-size: 12px; color: var(--gri); }
.dash-uyari b { color: #b91c1c; }
.dash-uyari .dash-kpi-ikon { background: #fef2f2; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.dash-baslik { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.dash-baslik h3 { font-size: 15px; }
.dash-barlar { display: flex; flex-direction: column; gap: 9px; }
.dash-bar { padding: 2px 4px; border-radius: 7px; }
.dash-tikla { cursor: pointer; }
.dash-tikla:hover { background: var(--secili); }
.dash-bar-ust { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; margin-bottom: 4px; }
.dash-bar-ust span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-bar-ust b { color: var(--ana-metin); }
.dash-bar-iz { height: 8px; background: var(--yuzey-3); border-radius: 999px; overflow: hidden; }
.dash-bar-iz i { display: block; height: 100%; background: linear-gradient(90deg, var(--ana), #14b8a6); border-radius: 999px; }
.dash-donut-wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.dash-donut { width: 150px; min-width: 150px; aspect-ratio: 1; border-radius: 50%; position: relative; }
.dash-donut::after { content: ""; position: absolute; inset: 24%; border-radius: 50%; background: var(--yuzey); }
.dash-donut-merkez {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; z-index: 1;
}
.dash-donut-merkez b { font-size: 22px; color: var(--ana-metin); }
.dash-donut-merkez span { font-size: 11px; color: var(--gri); }
.dash-legend { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 6px; }
.dash-legend-satir { display: flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 3px 4px; border-radius: 6px; }
.dash-legend-satir i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.dash-legend-satir span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-legend-satir b { color: var(--ana-metin); }
.dash-aylik { display: flex; align-items: flex-end; justify-content: space-around; gap: 8px; height: 145px; padding-top: 8px; }
.dash-ay { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; flex: 1; gap: 4px; }
.dash-ay-deger { font-size: 11.5px; font-weight: 700; color: var(--ana-metin); }
.dash-ay-cubuk { width: 100%; max-width: 34px; background: linear-gradient(180deg, #14b8a6, var(--ana)); border-radius: 7px 7px 3px 3px; min-height: 6px; }
.dash-ay-etiket { font-size: 11px; color: var(--gri); white-space: nowrap; }
.kamera-alan {
  background: #0f172a; border-radius: 14px; min-height: 230px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden; margin-bottom: 14px;
}
.kamera-goruntu { position: relative; width: 100%; }
#kameraVideo { width: 100%; max-height: 55vh; object-fit: cover; display: block; }
.kamera-tarama-alani {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; pointer-events: none;
}
.kamera-tarama-cerceve {
  width: 80%; height: 42%; border: 2px solid rgba(255, 255, 255, 0.92);
  border-radius: 14px; box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.5);
}
.kamera-tarama-ipucu {
  position: absolute; bottom: 14px; color: #fff; font-size: 12px; font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
}
.kamera-durum { color: #e2e8f0; text-align: center; padding: 18px; font-size: 13.5px; line-height: 1.5; }
.kamera-mod-secim { display: flex; gap: 8px; margin-bottom: 12px; }
.kamera-mod {
  flex: 1; border: 1px solid var(--cizgi); background: var(--yuzey-2); border-radius: 10px;
  padding: 9px 10px; font-size: 13px; font-weight: 600; color: var(--gri); cursor: pointer;
}
.kamera-mod.aktif { background: var(--ana-acik); border-color: var(--ana); color: var(--ana-metin); }
.kamera-ocr-panel { margin-bottom: 14px; }
.kamera-ocr-panel textarea {
  width: 100%; border: 1px solid var(--cizgi); border-radius: 11px; padding: 11px 13px;
  font-size: 14.5px; background: var(--yuzey-2); min-height: 90px; resize: vertical;
}
.kamera-ocr-panel textarea:focus { outline: 2px solid var(--ana); border-color: transparent; background: var(--yuzey); }
.kamera-ocr-eylemler { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.kamera-ocr-eylemler .btn { flex: 1; }
.ozet-bolum { background: var(--yuzey); border-radius: var(--radius); box-shadow: var(--golge); padding: 16px; margin-bottom: 14px; min-width: 0; }
.ozet-bolum h3 { font-size: 15px; margin-bottom: 10px; }
.dagilim-satir { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--cizgi-2); }
.dagilim-satir:last-child { border-bottom: none; }
.dagilim-satir .adet { font-weight: 700; color: var(--ana-metin); }

/* ---------------- İçe aktar ---------------- */
.drop-alan {
  border: 2px dashed var(--cizgi); border-radius: 14px; padding: 30px 20px;
  text-align: center; color: var(--gri); cursor: pointer; transition: .15s; background: var(--yuzey-2);
}
.drop-alan.uzerinde { border-color: var(--ana); background: var(--secili); color: var(--ana-metin); }
.drop-alan .ikon { font-size: 36px; display: block; margin-bottom: 8px; }
.ice-aktar-not { font-size: 12.5px; color: var(--gri); line-height: 1.6; margin-top: 12px; }
.ice-aktar-sonuc { margin-top: 14px; font-size: 13.5px; }
.ice-aktar-sonuc .satir { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--cizgi-2); }
.ice-aktar-sonuc .satir b { color: var(--ana-metin); }
.ice-aktar-hata { background: #fef2f2; color: #b91c1c; border-radius: 10px; padding: 10px 12px; font-size: 12.5px; margin-top: 10px; max-height: 160px; overflow-y: auto; }


/* ---------------- Sayım ---------------- */
.sayim-liste { display: grid; gap: 10px; }
.sayim-liste-kart {
  background: var(--yuzey); border: 1px solid transparent; border-left: 4px solid var(--soluk);
  border-radius: var(--radius); box-shadow: var(--golge); padding: 14px;
  cursor: pointer; transition: border-color .15s, transform .15s;
}
.sayim-liste-kart:hover { border-color: #99f6e4; transform: translateY(-1px); }
.sayim-liste-kart.acik { border-left-color: var(--ana); }
.sayim-liste-kart.kapali { border-left-color: #94a3b8; }
.sayim-liste-ust { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sayim-liste-ust b { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sayim-rozet {
  flex: none; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  background: var(--yuzey-3); color: var(--gri); white-space: nowrap;
}
.sayim-rozet.acik { background: var(--ana-acik); color: var(--ana-metin); }
.sayim-liste-alt { font-size: 12px; color: var(--gri); margin-top: 4px; }
.sayim-liste-sayilar { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sayim-liste-sayilar span { font-size: 12px; color: var(--gri); white-space: nowrap; }
.sayim-liste-sayilar b { color: var(--metin); }
.sayim-liste-sayilar .uyari b { color: var(--kirmizi); }
.sayim-liste-ok { text-align: right; font-size: 12px; font-weight: 600; color: var(--ana); margin-top: 8px; }

.sayim-detay-ust { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.sayim-baslik { flex: 1; min-width: 160px; }
.sayim-baslik h2 { font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; }
.sayim-baslik .soluk { margin-top: 3px; line-height: 1.4; }
.sayim-kartlar { display: grid; grid-template-columns: repeat(auto-fit, minmax(86px, 1fr)); gap: 8px; }
.sayim-kart {
  background: var(--yuzey); border-radius: 12px; box-shadow: var(--golge);
  padding: 10px 6px; text-align: center; min-width: 0;
}
.sayim-kart b { display: block; font-size: 22px; line-height: 1.15; color: var(--metin); }
.sayim-kart span { display: block; font-size: 10.5px; color: var(--gri); margin-top: 2px; white-space: nowrap; }
.sayim-kart.bulunan b { color: var(--yesil); }
.sayim-kart.eksik b { color: var(--kirmizi); }
.sayim-kart.disi b { color: var(--turuncu); }
.sayim-kart.kayitsiz b { color: var(--metin-3); }
.sayim-ilerleme {
  height: 8px; border-radius: 999px; background: var(--cizgi); overflow: hidden; margin: 10px 0 14px;
}
.sayim-ilerleme i { display: block; height: 100%; background: linear-gradient(90deg, var(--ana), #2dd4bf); transition: width .25s; }

.sayim-tara {
  background: var(--yuzey); border-radius: var(--radius); box-shadow: var(--golge);
  padding: 14px; margin-bottom: 14px;
}
.sayim-tara-ust { display: flex; justify-content: space-between; gap: 8px; }
.sayim-tara-ust b { display: block; font-size: 15px; }
.sayim-tara-ust .soluk { display: block; margin-top: 2px; line-height: 1.4; }
.sayim-arama { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.sayim-arama-alan { position: relative; flex: 1 1 100%; min-width: 0; }
.sayim-arama input {
  flex: 1 1 100%; width: 100%; min-width: 0; border: 1px solid var(--cizgi); border-radius: 11px;
  padding: 13px 14px; font-size: 16px; background: var(--yuzey-2); text-transform: uppercase;
}
.sayim-arama input:focus { outline: 2px solid var(--ana); border-color: transparent; background: var(--yuzey); }
.sayim-arama .btn { flex: 1; }
.sayim-oneriler {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,.18); overflow: hidden auto; max-height: 300px;
}
.sayim-oneri {
  display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left;
  background: transparent; border: none; border-bottom: 1px solid var(--cizgi-2);
  padding: 10px 12px; cursor: pointer; color: var(--metin); font: inherit;
}
.sayim-oneri:last-child { border-bottom: none; }
.sayim-oneri:hover, .sayim-oneri:focus { background: var(--yuzey-2); outline: none; }
.sayim-oneri-ust { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sayim-oneri-ust b { font-size: 13px; font-family: ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.sayim-oneri-alt { font-size: 11.5px; color: var(--gri); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sayim-oneri-rozet { flex: none; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.sayim-oneri-rozet.bulundu { background: #dcfce7; color: #166534; }
.sayim-oneri-rozet.disi { background: #fef3c7; color: #92400e; }
.sayim-oneri-kayitsiz { text-align: center; color: var(--kirmizi); font-size: 12px; font-weight: 600; }

.sayim-eslesme {
  margin-top: 10px; background: var(--yuzey-2); border: 1px solid var(--cizgi);
  border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 9px;
}
.sayim-eslesme-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.sayim-eslesme-baslik { min-width: 0; }
.sayim-eslesme-baslik b { display: block; font-size: 14px; font-family: ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.sayim-eslesme-baslik span { display: block; font-size: 12px; color: var(--gri); margin-top: 2px; overflow-wrap: anywhere; }
.sayim-eslesme-kapat { flex: none; border: none; background: transparent; color: var(--gri); font-size: 16px; cursor: pointer; padding: 2px 4px; }
.sayim-eslesme-etiketler { display: flex; flex-wrap: wrap; gap: 6px; }
.sayim-eslesme-rozet { font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.sayim-eslesme-rozet.kapsamda { background: var(--ana-acik); color: var(--ana-metin); }
.sayim-eslesme-rozet.disi { background: #fef3c7; color: #92400e; }
.sayim-eslesme-rozet.bulundu { background: #dcfce7; color: #166534; }
.sayim-eslesme-bilgi { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--gri); }
.sayim-eslesme-eylemler { display: flex; gap: 8px; flex-wrap: wrap; }
.sayim-eslesme-eylemler .btn { flex: 1 1 130px; }
.sayim-tara-alt { margin-top: 9px; display: flex; justify-content: flex-end; }
.sayim-tarama-sonuc {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  line-height: 1.45; display: flex; flex-direction: column; gap: 2px;
}
.sayim-tarama-sonuc b { font-size: 14px; }
.sayim-tarama-sonuc span { font-size: 12px; opacity: .85; }
.sayim-tarama-sonuc.basarili { background: #dcfce7; color: #166534; }
.sayim-tarama-sonuc.uyari { background: #fef3c7; color: #92400e; }
.sayim-tarama-sonuc.hata { background: #fee2e2; color: #991b1b; }
.sayim-kapali-not {
  background: var(--yuzey-2); border: 1px dashed var(--cizgi); border-radius: 12px;
  padding: 14px; font-size: 13px; color: var(--gri); line-height: 1.5; margin-bottom: 14px;
}

.sayim-bolum-baslik { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 18px 0 8px; }
.sayim-bolum-baslik h3 { font-size: 15px; }
.sayim-bos {
  background: var(--yuzey); border-radius: 12px; padding: 18px; text-align: center;
  color: var(--gri); font-size: 13px; line-height: 1.6; box-shadow: var(--golge);
}
.sayim-okutma, .sayim-beklenen-satir { background: var(--yuzey); box-shadow: var(--golge); }
.sayim-okutma { border-left: 3px solid var(--soluk); border-radius: 10px; padding: 9px 12px; margin-bottom: 7px; }
.sayim-okutma.bulundu { border-left-color: var(--yesil); }
.sayim-okutma.kayitsiz { border-left-color: var(--kirmizi); }
.sayim-okutma.disi { border-left-color: var(--turuncu); }
.sayim-okutma-ust { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sayim-okutma-ust b { font-size: 13px; font-family: ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.sayim-okutma-ust span { font-size: 10.5px; font-weight: 700; color: var(--gri); white-space: nowrap; }
.sayim-okutma-alt { font-size: 12px; margin-top: 3px; overflow-wrap: anywhere; }
.sayim-okutma-zaman { font-size: 10.5px; color: var(--gri); margin-top: 3px; }

.sayim-filtre { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; align-items: center; }
.sayim-filtre-btn {
  border: 1px solid var(--cizgi); background: var(--yuzey); color: var(--gri);
  border-radius: 999px; padding: 7px 12px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.sayim-filtre-btn.active { background: var(--ana); border-color: var(--ana); color: var(--beyaz); }
.sayim-filtre input {
  flex: 1 1 150px; min-width: 0; border: 1px solid var(--cizgi); border-radius: 999px;
  padding: 7px 12px; font-size: 12.5px; background: var(--yuzey);
}
.sayim-filtre input:focus { outline: 2px solid var(--ana); border-color: transparent; }
.sayim-beklenen-liste { border-radius: 12px; overflow: hidden; box-shadow: var(--golge); }
.sayim-beklenen-satir {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 8px;
  align-items: center; padding: 9px 11px; border-bottom: 1px solid var(--cizgi-2);
  box-shadow: none; border-left: 3px solid var(--kirmizi);
}
.sayim-beklenen-satir:last-child { border-bottom: none; }
.sayim-beklenen-satir.bulundu { border-left-color: var(--yesil); background: #f7fef9; }
.sayim-beklenen-durum { text-align: center; font-weight: 700; color: var(--kirmizi); }
.sayim-beklenen-satir.bulundu .sayim-beklenen-durum { color: var(--yesil); }
.sayim-beklenen-bilgi { min-width: 0; }
.sayim-beklenen-bilgi b { display: block; font-size: 12.5px; font-family: ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.sayim-beklenen-bilgi span { display: block; font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sayim-beklenen-bilgi small { display: block; font-size: 10.5px; color: var(--gri); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sayim-beklenen-zaman { font-size: 10px; color: var(--gri); text-align: right; max-width: 100px; }
.sayim-beklenen-satir.bulundu .sayim-beklenen-zaman { color: var(--yesil); }
.sayim-alt-eylemler { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.sayim-alt-eylemler .btn { flex: 1 1 120px; }

.sayim-onizleme {
  background: var(--ana-acik); color: var(--ana-metin); border-radius: 11px;
  padding: 11px 13px; font-size: 13px; line-height: 1.45;
}
.sayim-kapat-ozet { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.sayim-kapat-ozet span { text-align: center; background: var(--yuzey-2); border-radius: 10px; padding: 9px 4px; }
.sayim-kapat-ozet b { display: block; font-size: 20px; }
.sayim-kapat-ozet small { display: block; font-size: 10.5px; color: var(--gri); margin-top: 1px; }

@media (min-width: 760px) {
  .sayim-liste { grid-template-columns: 1fr 1fr; }
  .sayim-arama-alan { flex: 1; }
  .sayim-arama .btn { flex: none; min-width: 92px; }
  .sayim-beklenen-zaman { max-width: none; }
}

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translateX(-50%); z-index: 80;
  background: #0f172a; color: var(--beyaz); padding: 12px 20px;
  border-radius: 999px; font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  animation: yukari .2s ease; max-width: calc(100vw - 40px); text-align: center;
}
.toast.basarili { background: #166534; }
.toast.uyari { background: #92400e; }
.toast.hata { background: #991b1b; }
.yedek-buton { margin-top: 10px; }

/* ---------------- Toner / konum ---------------- */
.rozet.dusuk { background: #fee2e2; color: #b91c1c; }
.stok-dusuk { color: #b91c1c; font-weight: 700; }
.deger-uyari { color: #b91c1c !important; }
.toner-eylemler { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.tablo tbody tr.toner-satir { cursor: default; }
.toner-eylemler .btn { padding: 6px 9px; font-size: 12px; border-radius: 8px; }
.toner-gecmis { padding: 8px 14px 12px; border-top: 1px solid var(--cizgi-2); }
.toner-gecmis .dagilim-satir { font-size: 12.5px; }
.konum-zaman-cizelgesi { padding: 10px 0 0; border-top: 1px solid var(--cizgi); }
.konum-zaman-cizelgesi .gecmis-grup { border: none; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--cizgi-2); }
.konum-zaman-cizelgesi .gecmis-grup:last-child { border-bottom: none; }
.konum-bos { padding: 12px 14px; }

/* ---------------- Masaüstü ---------------- */
@media (min-width: 760px) {
  main { padding: 22px 24px 40px; }
  .tabbar { position: static; border: none; box-shadow: none; background: none; padding: 0; max-width: 1400px; margin: 14px auto 0; width: 100%; padding: 0 24px; gap: 6px; }
  .tab {
    flex: none; flex-direction: row; gap: 7px; padding: 9px 16px; border-radius: 10px;
    font-size: 14px; font-weight: 600; background: transparent;
  }
  .tab > .tab-ikon { font-size: 16px; height: auto; }
  .tab > .tab-etiket { font-size: 14px; }
  .tab.active { background: var(--ana); color: var(--beyaz); box-shadow: 0 4px 12px rgba(15,118,110,.22); }
  .tab.active::before { display: none; }
  .tab:hover:not(.active) { background: var(--yuzey-hover); }
  .uygulama { display: block; }
  .topbar { padding-left: 24px; padding-right: 24px; }
  .marka h1 { font-size: 19px; }
  #fab { bottom: 32px; right: 32px; width: 60px; height: 60px; }
  .filtre-izgara { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .arama input { max-width: 480px; }
  .modal { align-items: center; padding: 20px; }
  .modal-panel { border-radius: 18px; max-height: 90vh; }
  .modal-baslik { top: -20px; }
  .form-eylemler { bottom: -20px; }
  .ozet-kartlar { grid-template-columns: repeat(4, 1fr); }
  .dash-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .anasayfa-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .gecmis-detay .degisim { grid-template-columns: 180px 1fr; align-items: center; }
}

@media (min-width: 980px) {
  .tablo-sarmal {
    display: block; overflow: auto;
    max-height: max(320px, calc(100vh - 270px));
  }
  .tablo thead th { position: sticky; top: 0; z-index: 2; box-shadow: inset 0 -1px 0 var(--cizgi); }
  .kart-liste { display: none; }
  .toast { bottom: 32px; }
}

@media (max-width: 560px) {
  .toplu-alanlar { grid-template-columns: 1fr; }
}

/* ---------------- Filtreler ---------------- */
.filtre-ac-btn { display: none; }
.filtre-gelismis-btn {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border: 1px dashed var(--cizgi); border-radius: 11px;
  background: var(--yuzey-2); color: var(--metin-3);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.filtre-gelismis-btn:hover { border-color: var(--ana); color: var(--ana-metin); }
.filtre-gelismis { display: none; grid-column: 1 / -1; grid-template-columns: 1fr 1fr; gap: 8px; }
.filtre-gelismis.acik { display: grid; }
.kayitli-filtre-kutu { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.kayitli-filtre-kutu label { font-size: 13px; color: var(--gri); white-space: nowrap; }
.kayitli-filtre-kutu select {
  flex: 1 1 220px; min-width: 0; border: 1px solid var(--cizgi); border-radius: 11px;
  padding: 10px 12px; font-size: 14px; background: var(--yuzey-2); color: var(--metin);
}
.siralama-kutu { display: none; align-items: center; gap: 8px; margin-bottom: 10px; }
.siralama-kutu label { font-size: 13px; color: var(--gri); white-space: nowrap; }
.siralama-kutu select {
  flex: 1; min-width: 0; border: 1px solid var(--cizgi); border-radius: 11px;
  padding: 10px 12px; font-size: 14px; background: var(--yuzey-2); color: var(--metin);
}
@media (max-width: 979px) {
  .siralama-kutu { display: flex; }
}
.filtre-cips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.filtre-cips:empty { display: none; }
.filtre-cip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--ana); background: var(--ana-acik); color: var(--ana-metin);
  border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: filter .15s;
}
.filtre-cip:hover { filter: brightness(.96); }
.filtre-cip b { font-weight: 800; }
.filtre-cip span { opacity: .6; font-size: 10px; }

@media (max-width: 759px) {
  .filtre-ac-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    width: 100%; padding: 10px 12px; margin-bottom: 10px;
    border: 1px solid var(--cizgi); border-radius: 11px;
    background: var(--yuzey-2); color: var(--metin-3);
    font-size: 13px; font-weight: 600; cursor: pointer;
  }
  .filtre-ac-btn.aktif { border-color: var(--ana); background: var(--ana-acik); color: var(--ana-metin); }
  .filtre-izgara { display: none; }
  .filtre-izgara.acik { display: grid; }
}

@media (min-width: 760px) {
  .filtre-ac-btn { display: none !important; }
  .filtre-izgara { display: grid; }
}

/* ---------------- Koyu tema ---------------- */
[data-tema="koyu"] ::placeholder { color: #7c8ca3; }
[data-tema="koyu"] mark { background: #a16207; color: #fff7d6; }
[data-tema="koyu"] .rozet { background: var(--yuzey-3); color: var(--metin-2); }
[data-tema="koyu"] .rozet.depo { background: #0c2b4a; color: #7dd3fc; }
[data-tema="koyu"] .rozet.sube { background: #2a1e4d; color: #c4b5fd; }
[data-tema="koyu"] .rozet.durum { background: #0f3320; color: #86efac; }
[data-tema="koyu"] .rozet.durum.ariza,
[data-tema="koyu"] .rozet.dusuk { background: #3f1515; color: #fca5a5; }
[data-tema="koyu"] .rozet.tur { background: #3b2a06; color: #fcd34d; }
[data-tema="koyu"] .gecmis-ust .simge.ekle { background: #0f3320; }
[data-tema="koyu"] .gecmis-ust .simge.guncelle { background: #0c2b4a; }
[data-tema="koyu"] .gecmis-ust .simge.sil { background: #3f1515; }
[data-tema="koyu"] .uyari-kutu { background: #3b2a06; border-color: #b45309; color: #fde68a; }
[data-tema="koyu"] .onay-kutu,
[data-tema="koyu"] .ice-aktar-hata { background: #3f1515; color: #fca5a5; }
[data-tema="koyu"] .eski-deger { background: #3f1515; color: #fca5a5; }
[data-tema="koyu"] .yeni-deger { background: #14351f; color: #86efac; }
[data-tema="koyu"] .form-grup.eski-alan label { color: #fca5a5; }
[data-tema="koyu"] .form-grup.eski-alan input,
[data-tema="koyu"] .form-grup.eski-alan textarea { border-color: #7f1d1d; background: #3f1515; color: #fca5a5; }
[data-tema="koyu"] .form-grup.yeni-alan label { color: #86efac; }
[data-tema="koyu"] .form-grup.yeni-alan input,
[data-tema="koyu"] .form-grup.yeni-alan textarea { border-color: #14532d; background: #14351f; color: #86efac; }
[data-tema="koyu"] .dash-uyari b,
[data-tema="koyu"] .stok-dusuk,
[data-tema="koyu"] .deger-uyari,
[data-tema="koyu"] .hata { color: #fca5a5 !important; }
[data-tema="koyu"] .dash-uyari .dash-kpi-ikon { background: #3f1515; }
[data-tema="koyu"] .sayim-liste-kart:hover { border-color: #2dd4bf; }
[data-tema="koyu"] .sayim-liste-ok { color: var(--ana-metin); }
[data-tema="koyu"] .sayim-tarama-sonuc.basarili { background: #0f3320; color: #86efac; }
[data-tema="koyu"] .sayim-tarama-sonuc.uyari { background: #3b2a06; color: #fcd34d; }
[data-tema="koyu"] .sayim-tarama-sonuc.hata { background: #3f1515; color: #fca5a5; }
[data-tema="koyu"] .sayim-beklenen-satir.bulundu { background: #0f2a1c; }
[data-tema="koyu"] .sayim-oneri-rozet.bulundu,
[data-tema="koyu"] .sayim-eslesme-rozet.bulundu { background: #0f3320; color: #86efac; }
[data-tema="koyu"] .sayim-oneri-rozet.disi,
[data-tema="koyu"] .sayim-eslesme-rozet.disi { background: #3b2a06; color: #fcd34d; }
[data-tema="koyu"] .sayim-oneriler { box-shadow: 0 12px 30px rgba(0,0,0,.5); }
[data-tema="koyu"] .tab.active { color: var(--ana-metin); }
@media (min-width: 760px) {
  [data-tema="koyu"] .tab.active { background: var(--ana); color: var(--beyaz); }
}

/* ---------------- Erişilebilirlik ---------------- */
:focus-visible { outline: 2px solid var(--ana-metin); outline-offset: 2px; }
body.modal-acik { overflow: hidden; }
.atla-bag {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  background: var(--ana); color: var(--beyaz); padding: 10px 16px;
  border-radius: 10px; font-weight: 600; text-decoration: none;
  transition: top .15s ease;
}
.atla-bag:focus { top: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- Eski / Güncel vurguları ---------------- */
.alan-rozet {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9.5px; font-weight: 800; letter-spacing: .03em;
  padding: 2px 6px; border-radius: 999px; margin-right: 6px;
  vertical-align: 1px; line-height: 1.35; white-space: nowrap;
}
.alan-rozet.eski { background: #fee2e2; color: #b91c1c; }
.alan-rozet.yeni { background: #dcfce7; color: #15803d; }
.form-legend {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  font-size: 12px; color: var(--gri); margin: 0 0 12px;
}
.form-legend > span { display: inline-flex; align-items: center; }
.detay-satir .deger.eski-guncel-deger {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px;
}
.detay-satir .deger.eski-guncel-deger .alan-rozet { margin-right: 0; }
.onceki-kullanici {
  display: block; margin-top: 2px; font-size: 10.5px; line-height: 1.25;
  color: #b45353; font-weight: 600; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.guncel-kullanici { color: #15803d; font-weight: 600; }
[data-tema="koyu"] .alan-rozet.eski { background: #3f1515; color: #fca5a5; }
[data-tema="koyu"] .alan-rozet.yeni { background: #14351f; color: #86efac; }
[data-tema="koyu"] .onceki-kullanici { color: #f0a0a0; }
[data-tema="koyu"] .guncel-kullanici { color: #86efac; }

/* ---------------- Tablo taşma / hücre ---------------- */
.tablo td.hucre-kisa { max-width: 210px; }
.tablo td.hucre-ad { max-width: 260px; }
.tablo .hucre-metin {
  display: inline-block; max-width: 100%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
}
.tablo .ad, .tablo .alt-metin { overflow-wrap: anywhere; }

/* ---------------- Yükleniyor iskeleti ---------------- */
.skeleton-liste { display: grid; gap: 10px; padding: 4px 0; }
.skeleton-satir {
  height: 58px; border-radius: 12px;
  background: linear-gradient(90deg, var(--yuzey-2) 25%, var(--yuzey) 37%, var(--yuzey-2) 63%);
  background-size: 400% 100%;
  animation: iskelet 1.4s ease infinite;
}
@keyframes iskelet {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (min-width: 760px) {
  .skeleton-satir { height: 46px; }
}
.bos .btn { margin-top: 10px; }

/* ---------------- Toast geri al ---------------- */
.toast.aksiyonlu {
  display: flex; align-items: center; gap: 12px;
  border-radius: 14px; padding: 10px 12px 10px 16px;
  max-width: min(540px, calc(100vw - 24px)); text-align: left;
}
.toast-metin { flex: 1; }
.toast-sayac {
  display: inline-block; min-width: 1.5em; padding: 1px 5px;
  text-align: center; border-radius: 6px;
  background: rgba(255,255,255,.18); font-variant-numeric: tabular-nums;
}
.toast-aksiyon {
  flex: none; border: none; border-radius: 8px; cursor: pointer;
  background: #fff; color: #0f172a; font-weight: 700;
  padding: 7px 12px; font-size: 13px;
}
.toast-aksiyon:hover { background: #e2e8f0; }

/* ---------------- Mobil sabit işlem çubuğu ---------------- */
@media (max-width: 759px) {
  body.secim-var .arac-butonlar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: flex; justify-content: center; gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--yuzey); border-top: 1px solid var(--cizgi);
    box-shadow: 0 -8px 24px rgba(0,0,0,.18);
  }
  body.secim-var .arac-butonlar #btnIceAktar,
  body.secim-var .arac-butonlar #btnDisaAktar,
  body.secim-var .arac-butonlar #btnYeni { display: none; }
  body.secim-var .arac-butonlar .btn { flex: 1 1 auto; }
  body.secim-var #liste { padding-bottom: 86px; }
  body.secim-var .toast { bottom: calc(150px + env(safe-area-inset-bottom)); }

  .sayim-arama {
    position: sticky; top: calc(58px + env(safe-area-inset-top));
    z-index: 25; background: var(--yuzey); padding: 8px 0;
    box-shadow: 0 8px 12px -12px rgba(0,0,0,.45);
  }
}

/* ---------------- Çöp kutusu ---------------- */
.cop-ust {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 10px;
}
.cop-liste { display: flex; flex-direction: column; gap: 8px; }
.cop-satir {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: var(--yuzey-2); border: 1px solid var(--cizgi);
  border-radius: 12px; padding: 10px 12px;
}
.cop-bilgi { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cop-bilgi b { font-size: 13.5px; font-family: ui-monospace, "SF Mono", Menlo, monospace; overflow-wrap: anywhere; }
.cop-bilgi span { font-size: 12.5px; color: var(--metin); overflow-wrap: anywhere; }
.cop-bilgi small { font-size: 11.5px; }
.cop-eylemler { display: flex; gap: 6px; flex-wrap: wrap; }
.cop-onay-metin { font-size: 14.5px; line-height: 1.6; }
@media (max-width: 560px) {
  .cop-satir { align-items: stretch; }
  .cop-eylemler .btn { flex: 1; }
}
@media (max-width: 759px) {
  body.secim-var .arac-butonlar #btnCop { display: none; }
}

/* ---------------- Yedek sağlık uyarıları ---------------- */
.yedek-uyarilar { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 10px; }
.yedek-uyari {
  display: flex; align-items: flex-start; gap: 7px;
  background: #fffbeb; border: 1px solid #fcd34d; color: #92400e;
  border-radius: 9px; padding: 7px 10px; font-size: 12.5px; line-height: 1.45;
}
.yedek-uyari b { flex: none; }
.yedek-uyari.hata { background: #fef2f2; border-color: #fca5a5; color: #991b1b; }
[data-tema="koyu"] .yedek-uyari { background: #3b2a06; border-color: #b45309; color: #fcd34d; }
[data-tema="koyu"] .yedek-uyari.hata { background: #3f1515; border-color: #7f1d1d; color: #fca5a5; }

/* ---------------- Denetim günlüğü ---------------- */
.denetim-baslik { margin-top: 28px; }
.denetim-liste { display: flex; flex-direction: column; gap: 8px; }
.denetim-satir {
  background: var(--kart); border: 1px solid var(--cizgi);
  border-radius: 11px; padding: 9px 12px;
}
.denetim-ust { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.denetim-rozet { font-size: 11px; }
.denetim-rozet.tehlike { background: #fef2f2; color: #991b1b; border-color: #fca5a5; }
.denetim-zaman { font-size: 12px; }
.denetim-alt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 5px; font-size: 13px; }
.denetim-ip { margin-left: auto; font-size: 11.5px; font-variant-numeric: tabular-nums; }
[data-tema="koyu"] .denetim-rozet.tehlike { background: #3f1515; color: #fca5a5; border-color: #7f1d1d; }

@media (max-width: 640px) {
  .denetim-ip { margin-left: 0; }
  .denetim-alt b { flex-basis: 100%; }
}

/* ---------------- Mobil tablo görünümü ---------------- */
.mobil-gorunum { display: none; }

@media (max-width: 979px) {
  .arac-butonlar .mobil-gorunum { display: inline-flex; align-items: center; }

  body.mobil-tablo .kart-liste { display: none; }
  body.mobil-tablo .tablo-sarmal {
    display: block; overflow: auto;
    max-height: calc(100dvh - 300px);
    border-radius: var(--radius);
    background: var(--yuzey);
    box-shadow: var(--golge);
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }
  body.mobil-tablo .tablo {
    min-width: 780px; overflow: visible; border-radius: 0;
    box-shadow: none; font-size: 13px;
  }
  body.mobil-tablo .tablo th,
  body.mobil-tablo .tablo td { padding: 10px 11px; }
  body.mobil-tablo .tablo thead th {
    position: sticky; top: 0; z-index: 5;
    box-shadow: inset 0 -1px 0 var(--cizgi);
  }
  body.mobil-tablo .tablo th.secim,
  body.mobil-tablo .tablo td.secim {
    position: sticky; left: 0; z-index: 3;
    background: var(--yuzey);
  }
  body.mobil-tablo .tablo th.secim { z-index: 7; background: var(--yuzey-2); }
  body.mobil-tablo .tablo th:nth-child(2),
  body.mobil-tablo .tablo td:nth-child(2) {
    position: sticky; left: 34px; z-index: 2;
    background: var(--yuzey);
    box-shadow: inset -1px 0 0 var(--cizgi);
  }
  body.mobil-tablo .tablo th:nth-child(2) { z-index: 6; background: var(--yuzey-2); }
  body.mobil-tablo .tablo tbody tr:hover td.secim,
  body.mobil-tablo .tablo tbody tr:hover td:nth-child(2) { background: var(--secili); }
  body.mobil-tablo .tablo .hucre-metin {
    display: inline; overflow: visible; text-overflow: clip; white-space: nowrap;
  }
  body.mobil-tablo .tablo td { white-space: nowrap; }
}

/* ---------------- Görevler / günlük ---------------- */
.gorev-sekme { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.gorev-sekme-bosluk { flex: 1; }
.gorev-sekme-btn {
  border: 1px solid var(--cizgi); background: var(--yuzey-2); color: var(--metin);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700;
  cursor: pointer;
}
.gorev-sekme-btn.active { background: var(--ana); border-color: var(--ana); color: var(--beyaz); }
.gorev-araclar {
  display: grid; grid-template-columns: auto minmax(160px, 1fr) auto auto;
  align-items: center; gap: 10px;
}
.gorev-gorunum-arac { display: flex; align-items: center; gap: 5px; }
.gorev-gorunum-arac #gorevGorunumSec { max-width: 190px; }
.gorev-gorunum-arac .btn { flex: none; }
.gorev-araclar.hidden { display: none; }
.gorev-araclar input[type="search"], .gorev-araclar select,
.gunluk-tarih-gez input[type="date"] {
  border: 1px solid var(--cizgi); border-radius: 10px; padding: 9px 11px;
  background: var(--yuzey-2); color: var(--metin); font-size: 13.5px; min-width: 0;
}
.gorev-durum-chipleri { display: flex; gap: 6px; flex-wrap: wrap; }
.gorev-chip { background: var(--yuzey-2); color: var(--metin); border-color: var(--cizgi); }
.gorev-chip.aktif { background: var(--ana); color: var(--beyaz); border-color: var(--ana); }
.gorev-chip.aktif b { color: var(--beyaz); }
#gorevListe { display: flex; flex-direction: column; gap: 9px; }
.gorev-gorunum-arac select {
  border: 1px solid var(--cizgi); border-radius: 9px; padding: 8px 10px;
  background: var(--yuzey-2); color: var(--metin); font-size: 13px; min-width: 0;
}
.gorev-kart {
  display: flex; align-items: flex-start; gap: 11px;
  background: var(--yuzey); border: 1px solid var(--cizgi); border-radius: 13px;
  box-shadow: var(--golge); padding: 13px 14px;
}
.gorev-kart.gecikti { border-color: #f59e0b; }
.gorev-kart.tamam { opacity: .72; }
.gorev-tik {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--ana); background: var(--yuzey); color: var(--beyaz);
  font-size: 15px; font-weight: 800; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.gorev-tik[aria-pressed="true"], .gorev-kart.tamam .gorev-tik { background: var(--ana); }
.gorev-tik.kucuk { width: 22px; height: 22px; font-size: 13px; }
.gorev-govde { flex: 1; min-width: 0; }
.gorev-baslik-satir { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gorev-baslik { font-size: 14.5px; overflow-wrap: anywhere; }
.gorev-kart.tamam .gorev-baslik { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.gorev-oncelik {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 2px 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
}
.oncelik-yuksek { background: #fee2e2; color: #b91c1c; }
.oncelik-normal { background: var(--ana-acik); color: var(--ana-metin); }
.oncelik-dusuk { background: var(--yuzey-2); color: var(--gri); }
.gorev-meta-satir { display: flex; align-items: center; gap: 5px 10px; flex-wrap: wrap; margin-top: 6px; }
.gorev-meta { font-size: 12px; color: var(--gri); }
.gorev-baglanti { border: none; background: none; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.gorev-meta-uyari { color: #b45309; font-weight: 700; }
.gorev-meta-tamam { color: #15803d; }
.gorev-not { margin-top: 7px; padding: 8px 10px; border-radius: 9px; background: var(--yuzey-2); font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.gorev-eylemler { display: flex; gap: 4px; flex: none; }
.gorev-eylemler .btn { padding: 6px 8px; }

.gunluk-ust {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--yuzey); border-radius: var(--radius); box-shadow: var(--golge);
  padding: 13px 14px; margin-bottom: 14px;
}
.gunluk-tarih-gez { display: flex; align-items: center; gap: 5px; }
.gunluk-tarih-gez .btn { padding: 7px 10px; }
.gunluk-baslik-alan { flex: 1; min-width: 180px; }
.gunluk-baslik-alan h2 { font-size: 17px; margin: 0; }
.gunluk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.gunluk-gorev {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 0;
  border-bottom: 1px solid var(--cizgi);
}
.gunluk-gorev:last-child { border-bottom: none; }
.gunluk-gorev.tamam b { text-decoration: line-through; opacity: .7; }
.gunluk-gorev-govde { flex: 1; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.gunluk-gorev-govde .gorev-oncelik { margin-left: 6px; }
.gunluk-notlar { margin-bottom: 18px; }
.gunluk-not { padding: 10px 0; border-bottom: 1px solid var(--cizgi); }
.gunluk-not:last-child { border-bottom: none; }
.gunluk-not-ust { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--gri); flex-wrap: wrap; }
.gunluk-not-sag { display: inline-flex; align-items: center; gap: 8px; }
.gunluk-not-cihaz { font-size: 11.5px; }
.gunluk-not-sil { border: none; background: none; color: var(--kirmizi); cursor: pointer; font-weight: 800; padding: 2px 4px; }
.gunluk-not p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.gunluk-notlar:empty { display: none; }

@media (max-width: 759px) {
  .gorev-araclar { grid-template-columns: 1fr; }
  .gorev-gorunum-arac { flex-wrap: wrap; }
  .gorev-gorunum-arac #gorevGorunumSec { flex: 1; max-width: none; }
  .gorev-durum-chipleri { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .gorev-chip { flex: none; }
  .gunluk-grid { grid-template-columns: 1fr; }
  .gunluk-ust { align-items: stretch; }
  .gunluk-baslik-alan { order: -1; flex-basis: 100%; }
  .gunluk-tarih-gez { flex-wrap: wrap; }
  .gunluk-tarih-gez input[type="date"] { flex: 1; }
}

.gorev-cihaz-arama { margin-bottom: 7px; }
#gorevCihaz { max-width: 100%; }

/* ---------------- Veri kalitesi ---------------- */
.kalite-bolum { margin-bottom: 14px; }
.kalite-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 9px; }
.kalite-kart {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 1px solid var(--cizgi); background: var(--yuzey-2); color: var(--metin);
  border-radius: 11px; padding: 11px 12px; text-align: left; cursor: pointer;
}
.kalite-kart b { font-size: 22px; line-height: 1.1; }
.kalite-kart span { font-size: 12px; font-weight: 600; color: var(--gri); }
.kalite-kart.kalite-uyari { border-color: #f59e0b; background: #fffbeb; }
.kalite-kart.kalite-uyari b { color: #b45309; }
.kalite-kart.kalite-iyi b { color: #15803d; }
.kalite-aciklama { font-size: 13px; margin-bottom: 12px; line-height: 1.5; }
.kalite-liste { display: flex; flex-direction: column; gap: 7px; }
.kalite-satir {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 11px; border: 1px solid var(--cizgi); border-radius: 10px;
  background: var(--yuzey-2);
}
.kalite-satir-bilgi { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.kalite-satir-bilgi b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12.5px; overflow-wrap: anywhere; }
.kalite-satir-bilgi span { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.kalite-satir-bilgi small { font-size: 11.5px; }
.kalite-satir .btn { flex: none; }
[data-tema="koyu"] .kalite-kart.kalite-uyari { background: #3b2a0b; }

/* ---------------- Görev/not özetleri ---------------- */
.ozet-gorev-kutu { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--cizgi); }
.ozet-gorev-kutu .dash-baslik { align-items: center; }
.ozet-gorev-kutu h4, .kisi-bolum h3, .ozet-gorev-grid h4 { margin: 0 0 8px; font-size: 13px; }
.ozet-gorev-kutu h4 span, .ozet-gorev-grid h4 span { font-weight: 500; }
.ozet-gorev-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 12px; }
.ozet-gorev-liste { display: flex; flex-direction: column; gap: 4px; }
.ozet-gorev-satir { display: flex; align-items: flex-start; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--cizgi); }
.ozet-gorev-satir:last-child { border-bottom: none; }
.ozet-gorev-satir.tamam b { text-decoration: line-through; opacity: .7; }
.ozet-gorev-govde { flex: 1; min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
.ozet-gorev-govde .gorev-oncelik { margin-left: 6px; }
.ozet-bos { font-size: 12.5px; margin: 2px 0 4px; }
.ozet-not-bolum { margin-top: 15px; }
.ozet-not-liste { display: flex; flex-direction: column; gap: 9px; }
.ozet-not { padding: 8px 10px; border-radius: 9px; background: var(--yuzey-2); }
.ozet-not-ust { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--gri); flex-wrap: wrap; }
.ozet-not p { margin: 4px 0 0; font-size: 13px; line-height: 1.45; overflow-wrap: anywhere; }
.kisi-ozet-eylemler { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.kisi-bolum { margin-top: 17px; }
.ozet-cihaz-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 7px; }
.ozet-cihaz {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  border: 1px solid var(--cizgi); border-radius: 10px; background: var(--yuzey-2);
  color: var(--metin); padding: 9px 10px; text-align: left; cursor: pointer;
}
.ozet-cihaz b { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }
.ozet-cihaz span { font-size: 12.5px; font-weight: 600; }
.ozet-cihaz small { font-size: 11px; color: var(--gri); }
@media (max-width: 640px) {
  .ozet-gorev-grid { grid-template-columns: 1fr; }
}

/* ---------------- Yedek geri yükleme ---------------- */
.yedek-secim-liste { display: flex; flex-direction: column; gap: 7px; max-height: 55vh; overflow: auto; }
.yedek-secim-satir {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  border: 1px solid var(--cizgi); border-radius: 10px; padding: 9px 11px;
  background: var(--yuzey-2);
}
.yedek-secim-bilgi { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.yedek-secim-bilgi b { font-size: 12.5px; overflow-wrap: anywhere; }
.yedek-secim-bilgi span { font-size: 12px; color: var(--gri); }
.yedek-secim-satir .btn { flex: none; }

/* ---------------- Görev şablonları ---------------- */
.gorev-sablon-liste { display: flex; flex-direction: column; gap: 9px; }
.gorev-sablon {
  border: 1px solid var(--cizgi); border-radius: 12px; padding: 11px 13px;
  background: var(--yuzey); display: flex; flex-direction: column; gap: 6px;
}
.gorev-sablon.pasif { opacity: .68; }
.gorev-sablon-ust { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.gorev-sablon-ust > div:first-child { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; min-width: 0; }
.gorev-sablon-ust b { overflow-wrap: anywhere; }
.gorev-sablon-eylem { display: flex; gap: 5px; flex: none; }
.gorev-sablon-not {
  font-size: 12.5px; color: var(--gri); border-top: 1px dashed var(--cizgi);
  padding-top: 6px; overflow-wrap: anywhere;
}

.gunluk-ust-butonlar { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- Görev bildirimleri ---------------- */
.bildirim-btn { position: relative; }
.bildirim-rozet {
  position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px;
  padding: 0 4px; border-radius: 99px; background: var(--tehlike, #dc2626); color: #fff;
  font-size: 10px; font-weight: 800; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px var(--yuzey);
}
.bildirim-rozet.hidden { display: none; }
.bildirim-bolum { margin-bottom: 14px; }
.bildirim-gorev {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  border: 1px solid var(--cizgi); border-radius: 10px; padding: 9px 11px;
  background: var(--yuzey-2); margin-bottom: 6px;
}
.bildirim-gorev.geciken { border-color: #f59e0b; }
.bildirim-gorev-bilgi { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bildirim-gorev-bilgi b { overflow-wrap: anywhere; }
.bildirim-gorev-bilgi span { font-size: 12px; color: var(--gri); }

/* ---------------- Cihaz listeleri ---------------- */
.liste-izgara { display: grid; gap: 10px; }
.liste-kart {
  background: var(--yuzey); border-radius: var(--radius); box-shadow: var(--golge);
  padding: 16px; display: flex; flex-direction: column; gap: 9px; min-width: 0;
}
.liste-kart .liste-ust {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
}
.liste-kart h3 { font-size: 16px; overflow-wrap: anywhere; }
.liste-kart .adet { font-size: 12px; color: var(--gri); font-weight: 600; }
.liste-kart .aciklama { font-size: 13px; color: var(--gri); line-height: 1.5; overflow-wrap: anywhere; }
.liste-kart .eylemler { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 2px; }
.liste-secim-liste {
  max-height: 46vh; overflow: auto; border: 1px solid var(--cizgi);
  border-radius: 11px; background: var(--yuzey-2);
}
.liste-secim-satir {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 9px 12px; border-bottom: 1px solid var(--cizgi-2); cursor: pointer;
}
.liste-secim-satir:last-child { border-bottom: none; }
.liste-secim-satir input { margin-top: 3px; flex: none; }
.liste-secim-satir .bilgi { flex: 1; min-width: 0; font-size: 13.5px; overflow-wrap: anywhere; }
.liste-secim-satir .bilgi small { color: var(--gri); }
.liste-uyeler-tablo td { vertical-align: middle; }
.liste-uyeler-tablo .eylem { text-align: right; white-space: nowrap; }
.liste-secim-cubugu {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px;
  border: 1px solid var(--cizgi); border-radius: 11px; background: var(--yuzey-2);
}
.liste-secim-cubugu #listeSecimOzet { font-size: 13px; font-weight: 600; }
@media (min-width: 760px) {
  .liste-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- Salt okunur kullanıcı ---------------- */
.salt-okunur-bilgi {
  margin: 0 0 14px;
  padding: 11px 14px;
  border: 1px solid #f59e0b;
  border-radius: 10px;
  background: rgba(245, 158, 11, .12);
  font-size: 13.5px;
  line-height: 1.5;
}
body[data-rol="kullanici"] #btnYeni,
body[data-rol="kullanici"] #fab,
body[data-rol="kullanici"] #btnTopluDuzenle,
body[data-rol="kullanici"] #btnTopluSil,
body[data-rol="kullanici"] #btnListeyeEkle,
body[data-rol="kullanici"] #btnIceAktar,
body[data-rol="kullanici"] #btnFiltreKaydet,
body[data-rol="kullanici"] #btnFiltreSil,
body[data-rol="kullanici"] #btnYeniListe,
body[data-rol="kullanici"] #btnYeniSayim,
body[data-rol="kullanici"] #btnYeniToner,
body[data-rol="kullanici"] #btnYeniGorev,
body[data-rol="kullanici"] #btnYeniGorevSablon,
body[data-rol="kullanici"] #btnGorevGorunumKaydet,
body[data-rol="kullanici"] #btnGorevGorunumSil,
body[data-rol="kullanici"] #btnYeniHesap,
body[data-rol="kullanici"] #btnListeDuzenle,
body[data-rol="kullanici"] #btnListeCihazEkle,
body[data-rol="kullanici"] #btnListeSerbestEkle,
body[data-rol="kullanici"] #btnListeTopluDuzenle,
body[data-rol="kullanici"] #btnListeTopluNot,
body[data-rol="kullanici"] #btnListeTopluCikar,
body[data-rol="kullanici"] #btnListeTumunuSec,
body[data-rol="kullanici"] #btnDuzenle,
body[data-rol="kullanici"] #btnSil,
body[data-rol="kullanici"] #btnServisEkle,
body[data-rol="kullanici"] #btnTonerDegistir,
body[data-rol="kullanici"] #btnDetayNotEkle,
body[data-rol="kullanici"] #btnDetayGorevEkle,
body[data-rol="kullanici"] #btnCopBosalt,
body[data-rol="kullanici"] #btnKisiGorevEkle,
body[data-rol="kullanici"] #btnKisiNotEkle,
body[data-rol="kullanici"] [data-liste-duzenle],
body[data-rol="kullanici"] [data-liste-sil],
body[data-rol="kullanici"] [data-uye-not],
body[data-rol="kullanici"] [data-uye-cikar],
body[data-rol="kullanici"] [data-servis-tamam],
body[data-rol="kullanici"] [data-servis-duzenle],
body[data-rol="kullanici"] [data-servis-sil],
body[data-rol="kullanici"] [data-toner-giris],
body[data-rol="kullanici"] [data-toner-cikis],
body[data-rol="kullanici"] [data-toner-duzenle],
body[data-rol="kullanici"] [data-toner-sil],
body[data-rol="kullanici"] [data-toner-geri-al],
body[data-rol="kullanici"] [data-gorev-tik],
body[data-rol="kullanici"] [data-ozet-gorev-tik],
body[data-rol="kullanici"] [data-gorev-duzenle],
body[data-rol="kullanici"] [data-gorev-sil],
body[data-rol="kullanici"] [data-sablon-duzenle],
body[data-rol="kullanici"] [data-sablon-sil],
body[data-rol="kullanici"] [data-not-sil],
body[data-rol="kullanici"] [data-cop-geri],
body[data-rol="kullanici"] [data-cop-kalici],
body[data-rol="kullanici"] [data-kalite-duzenle],
body[data-rol="kullanici"] .kullanici-duzenle,
body[data-rol="kullanici"] .hesap-duzenle,
body[data-rol="kullanici"] .hesap-sil,
body[data-rol="kullanici"] .liste-secim-cubugu,
body[data-rol="kullanici"] .sayim-tara,
body[data-rol="kullanici"] .secim,
body[data-rol="kullanici"] .kart-sec {
  display: none !important;
}
