/* Fiş Kayıt, mobil uygulama arayüzü */
:root {
  --ink: #1A1C1E; --muted: #5F5B53; --bg: #F4F1EA; --card: #FFFFFF; --line: #E4DED3; --field: #D6CFC2;
  --pri: #1C4A6E; --pri-dark: #123650; --pri-soft: #E3ECF3; --pri-txt: #C9DAE8;
  --amb: #8F530A; --amb-soft: #FBEFD9; --amb-mid: #F6DDB0;
  --grn: #2E6B45; --grn-soft: #E2F1E7;
  --red: #A8231B; --red-soft: #FBE4E1; --red-line: #F1C4C4;
  --sand: #EFEAE0;
  --disp: 'Bricolage Grotesque', Georgia, serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --alt: env(safe-area-inset-bottom, 0px);
  --ust: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; }
body { min-height: 100dvh; overscroll-behavior-y: none; }
a { color: var(--pri); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--ink); }
.gizli { display: none !important; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.disp { font-family: var(--disp); }
svg.ic { flex-shrink: 0; }

#uyg { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; }
.ekran { padding: calc(var(--ust) + 18px) 20px calc(110px + var(--alt)); display: flex; flex-direction: column; gap: 14px; }
.ekran.altsiz { padding-bottom: calc(40px + var(--alt)); }
.ekran.ust-barli { padding-top: calc(var(--ust) + 4px); }

/* Başlıklar */
.baslik-xl { margin: 0; font-family: var(--disp); font-size: 30px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.1; }
.baslik-l { margin: 0; font-family: var(--disp); font-size: 27px; font-weight: 700; letter-spacing: -0.01em; }
.h2 { margin: 0; font-size: 15px; font-weight: 600; }
.alt-yazi { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.kucuk { font-size: 13px; color: var(--muted); }
.bolum-bas { display: flex; justify-content: space-between; align-items: baseline; }
.bolum-bas a { font-size: 13px; font-weight: 600; }
.grup-bas { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 14px 0 2px; }

/* Üst bar */
.ust-bar { height: 56px; display: flex; align-items: center; gap: 8px; margin: 0 -8px; }
.ust-bar h1 { flex-grow: 1; margin: 0; font-size: 17px; font-weight: 600; text-align: center; }
.ust-bar .yan { width: 44px; text-align: center; font-size: 13px; color: var(--muted); }
.yuvarlak { width: 44px; height: 44px; border-radius: 22px; border: 0; background: none; display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; }
.yuvarlak.cerceveli { border: 1px solid var(--line); background: var(--card); }

/* Kartlar */
.kart { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 11px; }
.kart.liste { padding: 0 16px; gap: 0; }
.kutu-bas { margin: 0 0 6px 4px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* Butonlar */
.btn { height: 54px; border-radius: 14px; border: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; font-weight: 600; width: 100%; padding: 0 16px; }
.btn:active { transform: scale(0.985); }
.btn:disabled { opacity: 0.55; }
.btn-birincil { background: var(--pri); color: #FFF; }
.btn-siyah { background: #111; color: #FFF; }
.btn-beyaz { background: var(--card); color: var(--ink); border: 1px solid #CFC8BB; }
.btn-cerceve { background: transparent; color: var(--pri); border: 1.5px solid var(--pri); }
.btn-hayalet { background: transparent; color: var(--pri); }
.btn-yesil { background: var(--grn); color: #FFF; }
.btn-kirmizi-cerceve { background: var(--card); color: var(--red); border: 1px solid var(--red-line); }
.btn-kucuk { height: 44px; border-radius: 12px; font-size: 15px; }
.btn-ikon { width: 54px; flex-shrink: 0; padding: 0; }
.link-btn { border: 0; background: none; padding: 8px; font-size: 14px; color: var(--muted); }

/* Çipler */
.cip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--sand); color: var(--muted); }
.cip.yesil { background: var(--grn-soft); color: var(--grn); }
.cip.amber { background: var(--amb-soft); color: var(--amb); }
.cip.kirmizi { background: var(--red-soft); color: var(--red); }
.cip.mavi { background: var(--pri-soft); color: var(--pri); }
.cipler { display: flex; gap: 8px; flex-wrap: wrap; }
.kaydir { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.kaydir::-webkit-scrollbar { display: none; }
.filtre { height: 36px; padding: 0 12px; border-radius: 18px; background: var(--card); color: var(--ink); border: 1px solid var(--field); font-size: 13.5px; font-weight: 600; white-space: nowrap; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.filtre[aria-pressed="true"] { background: var(--pri-soft); color: var(--pri); border-color: #BCD0E0; }
.filtre.koyu { background: var(--ink); color: #FFF; border-color: var(--ink); }
.kat-cip { height: 36px; padding: 0 14px; border-radius: 18px; background: var(--card); color: var(--ink); border: 1px solid var(--field); font-size: 14px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.kat-cip[aria-pressed="true"] { background: var(--pri); color: #FFF; border-color: var(--pri); }

/* Alt menü */
.alt-menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); padding-bottom: var(--alt); }
.alt-menu .ic-menu { max-width: 520px; margin: 0 auto; height: 76px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; padding-top: 8px; }
.alt-menu a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 500; color: var(--muted); padding-top: 2px; }
.alt-menu a[aria-current="page"] { color: var(--pri); font-weight: 600; }
.fab { justify-self: center; margin-top: -30px; width: 62px; height: 62px; border-radius: 31px; border: 0; background: var(--pri); color: #FFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(28, 74, 110, 0.35); position: relative; }
.fab .rozet { position: absolute; top: -2px; right: -2px; }
.rozet { min-width: 22px; height: 22px; border-radius: 11px; background: #C2410C; color: #FFF; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

/* Ana sayfa */
.selam { display: flex; align-items: center; gap: 10px; }
.selam .firma { font-size: 13px; font-weight: 600; color: var(--muted); }
.avatar { width: 44px; height: 44px; border-radius: 22px; background: var(--pri-soft); color: var(--pri); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; flex-shrink: 0; }
.avatar.buyuk { width: 60px; height: 60px; border-radius: 30px; font-size: 20px; }
.ay-secici { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 12px; height: 44px; padding: 0 2px; }
.ay-secici button { width: 44px; height: 40px; border: 0; background: none; display: flex; align-items: center; justify-content: center; }
.ay-secici button:disabled { opacity: 0.3; }
.ay-secici span { font-weight: 600; font-size: 15px; }
.ozet { background: var(--pri); color: #FFF; border-radius: 22px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.ozet .etiket { font-size: 13px; color: var(--pri-txt); }
.ozet .buyuk-tutar { font-family: var(--disp); font-size: 40px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin-top: 4px; overflow-wrap: anywhere; }
.ozet .uc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ozet .uc b { display: block; font-family: var(--mono); font-size: 15px; font-weight: 600; margin-top: 2px; overflow-wrap: anywhere; }
.oran-cubugu { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: #2E5E84; }
.oran-cubugu span { display: block; height: 8px; }
.oran-aciklama { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 12px; color: var(--pri-txt); }
.uyari-seridi { display: flex; align-items: center; gap: 12px; background: var(--amb-soft); border-radius: 16px; padding: 12px 14px; color: var(--ink); }
.uyari-seridi.mavi { background: var(--pri-soft); }
.uyari-seridi .yuvak { width: 36px; height: 36px; border-radius: 18px; background: var(--amb-mid); color: var(--amb); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.uyari-seridi.mavi .yuvak { background: #C9DAE8; color: var(--pri); }
.uyari-seridi b { display: block; font-weight: 600; font-size: 15px; }
.uyari-seridi small { display: block; font-size: 13px; color: #6B5A3E; }
.uyari-seridi.mavi small { color: var(--muted); }
.kat-satir { display: flex; flex-direction: column; gap: 6px; }
.kat-satir .ust { display: flex; justify-content: space-between; font-size: 14px; }
.cubuk { height: 6px; border-radius: 3px; background: #EEE9DF; }
.cubuk > div { height: 6px; border-radius: 3px; background: var(--pri); }

/* Fiş satırı */
.fis-satiri { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); width: 100%; border: 0; background: none; text-align: left; }
.fis-satiri .ikon { width: 40px; height: 40px; border-radius: 10px; background: var(--sand); color: var(--muted); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fis-satiri .orta { flex-grow: 1; min-width: 0; }
.fis-satiri .ad, .fis-satiri .ust { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fis-satiri .ad { font-weight: 600; font-size: 15px; }
.fis-satiri .ust { font-size: 12.5px; color: var(--muted); }
.fis-satiri .sag { text-align: right; flex-shrink: 0; }
.fis-satiri .tutar { display: block; font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; }
.fis-satiri .tutar.cizili { text-decoration: line-through; color: var(--muted); }
.fis-satiri .durum { display: block; font-size: 12px; font-weight: 600; color: var(--grn); }
.fis-satiri .durum.amber { color: var(--amb); }
.fis-satiri .durum.gri { color: var(--muted); }
.bos { text-align: center; color: var(--muted); padding: 28px 12px; font-size: 14.5px; line-height: 1.5; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.bos .yuvak { width: 56px; height: 56px; border-radius: 28px; background: var(--sand); display: flex; align-items: center; justify-content: center; }

/* Arama */
.arama { position: relative; }
.arama svg { position: absolute; left: 14px; top: 13px; color: var(--muted); }
.arama input { width: 100%; height: 46px; border-radius: 14px; border: 1px solid var(--field); background: var(--card); padding: 0 12px 0 44px; font-size: 16px; }

/* Formlar */
.alan { display: flex; flex-direction: column; min-width: 0; }
.alan label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 5px; display: flex; justify-content: space-between; gap: 6px; }
.alan input, .alan select, .alan textarea { height: 46px; border-radius: 12px; border: 1px solid var(--field); background: var(--card); padding: 0 12px; font-size: 16px; width: 100%; }
.alan textarea { height: auto; min-height: 70px; padding: 10px 12px; resize: vertical; }
.alan input:focus, .alan textarea:focus, .arama input:focus { outline: 2px solid var(--pri); outline-offset: 0; border-color: var(--pri); }
.alan.dikkat input { border: 2px solid #D08A1E; background: var(--amb-soft); }
.alan .yardim { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.alan .yardim.amber { color: var(--amb); }
.alan .yardim.yesil { color: var(--grn); }
.iki-sutun { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.uc-sutun { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.form { display: flex; flex-direction: column; gap: 12px; }
.mesaj { font-size: 14px; line-height: 1.45; border-radius: 12px; padding: 10px 12px; background: var(--pri-soft); color: var(--pri); }
.mesaj.hata { background: var(--red-soft); color: var(--red); }
.sekmeler { display: grid; grid-template-columns: 1fr 1fr; background: var(--sand); border-radius: 12px; padding: 3px; }
.sekmeler button { height: 40px; border: 0; border-radius: 10px; background: none; font-weight: 600; color: var(--muted); }
.sekmeler button[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(26, 28, 30, 0.12); }
.ayrac { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.ayrac::before, .ayrac::after { content: ""; flex-grow: 1; height: 1px; background: var(--line); }

/* Giriş ekranı */
.giris-ust { display: flex; flex-direction: column; gap: 12px; padding-top: 26px; }
.logo { color: #FFF; width: 56px; height: 56px; border-radius: 16px; background: var(--pri); display: flex; align-items: center; justify-content: center; }
.giris-baslik { margin: 8px 0 0; font-family: var(--disp); font-size: 38px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.02; }
.sahne { position: relative; height: 250px; margin: 6px 0 0; }
.sahne .fis { position: absolute; background: #FFF; border-radius: 5px; box-shadow: 0 10px 24px rgba(26, 28, 30, 0.14); padding: 14px 12px; display: flex; flex-direction: column; gap: 7px; }
.sahne .fis i { display: block; height: 5px; background: #D8D2C6; border-radius: 2px; }
.sahne .fis i.bas { height: 7px; width: 72%; background: #2B2E33; align-self: center; }
.sahne .fis .top { margin-top: auto; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; font-weight: 600; color: #2B2E33; }
.sahne .kdv-balon { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; box-shadow: 0 8px 20px rgba(26, 28, 30, 0.10); display: flex; flex-direction: column; gap: 2px; }
.giris-alt { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.giris-ekrani { min-height: 100dvh; }

/* Adımlar (onay ekranı) */
.adim { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.adim + .adim { border-top: 1px solid var(--line); }
.adim .yuvak { width: 36px; height: 36px; border-radius: 18px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.adim b { display: block; font-weight: 600; font-size: 15px; }
.adim small { display: block; font-size: 13px; color: var(--muted); }
.buyuk-ikon { width: 72px; height: 72px; border-radius: 36px; display: flex; align-items: center; justify-content: center; }

/* Kuyruk */
.is-satiri { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; }
.is-satiri .kagit { width: 44px; height: 56px; border-radius: 6px; background: var(--sand); flex-shrink: 0; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 8px 7px; }
.is-satiri .kagit i { display: block; height: 3px; background: #D2CBBE; border-radius: 2px; }
.is-satiri .kagit img { width: 44px; height: 56px; object-fit: cover; margin: -8px -7px; }
.is-satiri .orta { flex-grow: 1; min-width: 0; }
.is-satiri .ad { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-satiri .ust { display: block; font-size: 12.5px; color: var(--muted); }
.is-satiri .hata-metni { display: block; font-size: 12.5px; color: var(--red); margin-top: 3px; line-height: 1.35; }
.is-satiri .sag { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.ilerleme { height: 8px; border-radius: 4px; background: var(--pri-soft); overflow: hidden; }
.ilerleme > div { height: 8px; border-radius: 4px; background: var(--pri); transition: width 0.4s; }
.akan { width: 84px; height: 4px; border-radius: 2px; background: var(--pri-soft); overflow: hidden; position: relative; }
.akan::after { content: ""; position: absolute; top: 0; left: -40%; width: 40%; height: 4px; border-radius: 2px; background: var(--pri); animation: ak 1.2s ease-in-out infinite; }
@keyframes ak { to { left: 100%; } }
.alt-butonlar { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

/* Kontrol ekranı */
.gorsel-kutu { height: 210px; border-radius: 18px; background: #E9E3D8; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.gorsel-kutu img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gorsel-kutu .buyut { position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--card); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(26, 28, 30, 0.12); }
.kdv-kalemi { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.kdv-kalemi .bas { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.not-kutusu { background: var(--amb-soft); color: #6B4A12; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.45; display: flex; gap: 8px; }
.eylem-cubugu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); padding: 12px 20px calc(12px + var(--alt)); }
.eylem-cubugu .ic-kap { max-width: 480px; margin: 0 auto; display: flex; gap: 10px; }

/* Raporlar */
.kdv-tablo { display: grid; grid-template-columns: 70px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; font-size: 14px; }
.kdv-tablo.bas { font-size: 12px; color: var(--muted); font-weight: 600; }
.kdv-tablo .sag { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.kdv-tablo.toplam { border-top: 1px solid var(--line); padding-top: 10px; font-weight: 700; }
.eylem { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--ink); width: 100%; background: none; border: 0; text-align: left; }
.eylem + .eylem { border-top: 1px solid var(--line); }
.eylem .yuvak { width: 40px; height: 40px; border-radius: 12px; background: var(--pri-soft); color: var(--pri); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.eylem .orta { flex-grow: 1; min-width: 0; }
.eylem b { display: block; font-weight: 600; font-size: 15px; }
.eylem small { display: block; font-size: 13px; color: var(--muted); }
.eylem:disabled { opacity: 1; cursor: default; }
.eylem:disabled .yuvak { background: var(--sand); color: var(--muted); }

/* Profil satırları */
.satir { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 0; color: var(--ink); width: 100%; background: none; border: 0; text-align: left; }
.satir + .satir { border-top: 1px solid var(--line); }
.satir .sol { color: var(--muted); display: flex; }
.satir .orta { flex-grow: 1; min-width: 0; }
.satir b { display: block; font-weight: 600; font-size: 15px; }
.satir small { display: block; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.satir.kirmizi, .satir.kirmizi .sol { color: var(--red); }

/* Yönetim */
.sayaclar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.sayac { border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.sayac b { font-family: var(--disp); font-size: 28px; font-weight: 700; }
.sayac span { font-size: 12.5px; line-height: 1.3; }
.kisi { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.kisi .ust { display: flex; align-items: flex-start; gap: 12px; }
.kisi .harf { width: 42px; height: 42px; border-radius: 21px; background: var(--sand); color: var(--muted); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.kisi .orta { flex-grow: 1; min-width: 0; }
.kisi b { display: block; font-weight: 600; font-size: 15px; }
.kisi small { display: block; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Alt sayfa (sheet) ve görsel büyütme */
.perde { position: fixed; inset: 0; z-index: 40; background: rgba(20, 22, 24, 0.45); display: flex; align-items: flex-end; justify-content: center; animation: belir 0.15s ease-out; }
.sayfa-alt { width: 100%; max-width: 520px; background: var(--bg); border-radius: 22px 22px 0 0; padding: 10px 20px calc(20px + var(--alt)); display: flex; flex-direction: column; gap: 12px; max-height: 88dvh; overflow-y: auto; animation: yuksel 0.2s ease-out; }
.sayfa-alt .tutamac { width: 40px; height: 5px; border-radius: 3px; background: #CFC8BB; align-self: center; margin-bottom: 4px; }
.sayfa-alt h2 { margin: 0; font-family: var(--disp); font-size: 22px; font-weight: 700; }
.buyutec { position: fixed; inset: 0; z-index: 50; background: #111; overflow: auto; touch-action: pinch-zoom pan-x pan-y; }
.buyutec img { display: block; width: 100%; height: auto; }
.buyutec .kapat { position: fixed; top: calc(var(--ust) + 12px); right: 12px; background: rgba(255, 255, 255, 0.18); color: #FFF; }
@keyframes belir { from { opacity: 0; } }
@keyframes yuksel { from { transform: translateY(30px); opacity: 0.6; } }

/* Bildirim (toast) */
#toast { position: fixed; left: 50%; top: calc(var(--ust) + 12px); transform: translateX(-50%); z-index: 60; max-width: calc(100% - 32px); background: var(--ink); color: #FFF; border-radius: 14px; padding: 12px 16px; font-size: 14px; line-height: 1.4; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); opacity: 0; pointer-events: none; transition: opacity 0.2s; }
#toast.acik { opacity: 1; }
#toast.hata { background: var(--red); }

.yukleniyor { display: flex; align-items: center; justify-content: center; min-height: 60dvh; }
.donen { width: 28px; height: 28px; border: 3px solid var(--pri-soft); border-top-color: var(--pri); border-radius: 50%; animation: don 0.8s linear infinite; }
.donen.kucuk { width: 16px; height: 16px; border-width: 2px; }
@keyframes don { to { transform: rotate(360deg); } }

/* Son çekim kartları */
.son-kart .kagit.resim { padding: 0; }
.son-kart .kagit.resim img { width: 44px; height: 56px; object-fit: cover; margin: 0; display: block; }
.son-tutar { display: block; font-size: 14px; font-weight: 600; margin-top: 2px; }
.son-tutar.cizili { text-decoration: line-through; color: var(--muted); }
.iskelet, .iskelet-cubuk { background: linear-gradient(90deg, #EEE9DF 25%, #F8F5EF 50%, #EEE9DF 75%); background-size: 200% 100%; animation: parilti 1.3s ease-in-out infinite; }
.iskelet-cubuk { display: block; height: 10px; border-radius: 5px; margin-top: 8px; }
.iskelet-cubuk:first-child { margin-top: 2px; height: 12px; }
.fis-satiri .durum.mavi { color: var(--pri); }
@keyframes parilti { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Canlı kamera */
.kamera { position: fixed; inset: 0; z-index: 30; background: #121212; color: #FFF; display: flex; flex-direction: column; }
.k-ust { display: flex; align-items: center; justify-content: space-between; padding: calc(var(--ust) + 12px) 16px 12px; }
.kbtn { width: 44px; height: 44px; border-radius: 22px; border: 0; background: rgba(255, 255, 255, 0.14); color: #FFF; display: flex; align-items: center; justify-content: center; }
.kbtn.acik { background: #F2B33D; color: var(--ink); }
.k-mod { display: flex; background: rgba(255, 255, 255, 0.14); border-radius: 20px; padding: 3px; }
.k-mod button { height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: transparent; color: #E6E6E6; font-size: 14px; font-weight: 600; }
.k-mod button[aria-pressed="true"] { background: #FFF; color: var(--ink); }
.k-onizleme { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #3A2F26; }
.k-onizleme video, .k-kaplama { position: absolute; inset: 0; width: 100%; height: 100%; }
.k-onizleme video { object-fit: cover; }
.k-flas { position: absolute; inset: 0; background: #FFF; opacity: 0; pointer-events: none; transition: opacity 0.35s; }
.k-flas.acik { opacity: 0.85; transition: none; }
.k-hap { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(0, 0, 0, 0.62); font-size: 14px; font-weight: 600; white-space: nowrap; }
.k-nokta { width: 8px; height: 8px; border-radius: 4px; background: #9A9A9A; }
.k-nokta.yesil { background: #5FD08A; }
.k-ipucu { margin: 0; padding: 14px 24px 0; text-align: center; color: #D6D6D6; font-size: 14px; line-height: 1.45; min-height: 55px; }
.k-alt { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px calc(22px + var(--alt)); }
.k-galeri { width: 56px; height: 56px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.08); color: #FFF; display: flex; align-items: center; justify-content: center; padding: 0; }
.k-deklansor { --ilerleme: 0%; width: 80px; height: 80px; border-radius: 40px; border: 0; padding: 0; background: conic-gradient(#5FD08A var(--ilerleme), #FFF 0); display: flex; align-items: center; justify-content: center; }
.k-deklansor span { width: 72px; height: 72px; border-radius: 36px; background: #121212; display: flex; align-items: center; justify-content: center; }
.k-deklansor span::after { content: ""; width: 62px; height: 62px; border-radius: 31px; background: #FFF; transition: transform 0.1s; }
.k-deklansor:active span::after { transform: scale(0.92); }
.k-deklansor:disabled { opacity: 0.4; }
.k-bitti { height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: #FFF; color: var(--ink); display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.k-bitti b { min-width: 22px; height: 22px; border-radius: 11px; background: var(--pri); color: #FFF; font-size: 12px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.k-hata { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: #1E1E1E; }
.k-hata p { margin: 0 0 6px; color: #D6D6D6; line-height: 1.5; max-width: 320px; }
.k-hata .btn { max-width: 320px; }

@media (min-width: 560px) {
  #uyg { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.satir:disabled { cursor: default; }

/* firmalar */
.firma-sec { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 30px; padding: 0 10px; margin: 0 0 4px -2px; border-radius: 15px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 600; }
.firma-sec .kod { font-family: var(--mono); color: var(--pri); }
.firma-sec .ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); min-width: 0; }
.kod-rozet { min-width: 48px; height: 34px; padding: 0 8px; border-radius: 10px; background: var(--pri-soft); color: var(--pri); font-family: var(--mono); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kod-rozet.bos { background: var(--sand); color: var(--muted); }
.firma-kart { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.firma-kart.aktif { border-color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); }
.firma-kart .ust { display: flex; align-items: center; gap: 12px; }
.firma-kart .ust .yuvarlak { margin: -8px -10px -8px 0; color: var(--muted); }
.firma-kart .orta { flex-grow: 1; min-width: 0; }
.firma-kart b { display: block; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.firma-kart small { display: block; font-size: 13px; color: var(--muted); }
.firma-kart .rakam { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 10px 0 0; border-top: 1px solid var(--line); }
.firma-kart .rakam b { display: inline; font-size: 16px; color: var(--ink); }
.firma-satiri { background: var(--card); border: 1px solid var(--line) !important; border-radius: 14px; padding: 8px 12px; }
.k-firma-kap { display: flex; justify-content: center; padding: 12px 16px 0; }
.k-firma { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, 0.14); color: #FFF; font-size: 14px; font-weight: 500; }
.k-firma b { font-family: var(--mono); font-weight: 600; }
.k-firma .ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.k-firma.uyari { background: rgba(246, 221, 176, 0.22); color: #F6DDB0; }

/* firma kullanıcıları */
.uye-satiri { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 12px; background: var(--sand); color: var(--ink); font-size: 13.5px; font-weight: 500; text-align: left; }
.uye-satiri span { flex-grow: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uye-satiri svg { color: var(--muted); }
.uye-satiri.pasif { color: var(--muted); }
.kisi-harf { width: 38px; height: 38px; border-radius: 19px; background: var(--sand); color: var(--muted); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.rol-secim { display: flex; flex-direction: column; gap: 8px; }
.rol-kart { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--field); border-radius: 14px; background: var(--card); cursor: pointer; }
.rol-kart input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--pri); flex-shrink: 0; }
.rol-kart b { display: block; font-size: 15px; font-weight: 600; }
.rol-kart small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.rol-kart:has(input:checked) { border-color: var(--pri); box-shadow: inset 0 0 0 1px var(--pri); background: var(--pri-soft); }

/* ------------------------------------------------------------------ Masaüstü panel (1024 px ve üstü)
   Alt menü sol panele döner, içerik genişler; fişler tabloda, fiş ayrıntısında görsel ile form yan yana. */
/* .alt-menu a (display:flex) bu sınıfı ezmesin diye seçici menü içinde de tekrar edilir */
.yalniz-genis, .alt-menu .yalniz-genis { display: none; }
.fis-tablo .durum { font-size: 12.5px; font-weight: 600; color: var(--grn); }
.fis-tablo .durum.amber { color: var(--amb); }
.fis-tablo .durum.gri { color: var(--muted); }
.fis-tablo .durum.mavi { color: var(--pri); }
@media (min-width: 1024px) {
  body.panelli #uyg { max-width: none; margin: 0 0 0 240px; border: 0; }
  body.panelli .ekran { max-width: 760px; margin: 0 auto; padding: 32px 32px 56px; }
  body.panelli .ekran.genis-ekran { max-width: 1180px; }
  body.panelli .ekran.ust-barli { padding-top: 12px; }
  body.panelli .kaydir { margin: 0; padding: 0; flex-wrap: wrap; overflow: visible; }

  /* Sol menü */
  .yalniz-genis { display: revert; }
  .alt-menu .marka { display: flex; }
  .fab .yalniz-genis { display: inline; }
  .alt-menu { top: 0; right: auto; width: 240px; border-top: 0; border-right: 1px solid var(--line); padding: 0; }
  .alt-menu .ic-menu { max-width: none; height: 100%; display: flex; flex-direction: column; gap: 4px; padding: 20px 14px; }
  .alt-menu .marka { flex-direction: row; gap: 10px; align-items: center; padding: 4px 10px 18px; font-family: var(--disp); font-size: 19px; font-weight: 700; color: var(--ink); }
  .alt-menu .marka img { border-radius: 8px; }
  .alt-menu a { flex-direction: row; gap: 12px; align-items: center; height: 44px; padding: 0 12px; border-radius: 12px; font-size: 15px; }
  .alt-menu a:hover { background: var(--sand); }
  .alt-menu a[aria-current="page"] { background: var(--pri-soft); }
  .alt-menu span.yalniz-genis { display: block; }
  .fab { order: -1; margin: 0 0 12px; width: 100%; height: 48px; border-radius: 14px; gap: 8px; font-size: 15px; font-weight: 600; box-shadow: none; }
  .alt-menu .marka { order: -2; }
  .fab .rozet { top: 12px; right: 12px; }

  /* Alt sayfalar ortada pencere olarak */
  .perde { align-items: center; }
  .sayfa-alt { border-radius: 22px; max-height: 86vh; padding-bottom: 24px; }
  .sayfa-alt .tutamac { display: none; }
  body.panelli .eylem-cubugu { left: 240px; }
  body.panelli .eylem-cubugu .ic-kap { max-width: 1116px; justify-content: flex-end; }
  body.panelli .eylem-cubugu .btn-birincil { max-width: 320px; }

  /* Fiş ayrıntısı: görsel solda sabit, bilgiler sağda */
  body.panelli .fis-duzen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  body.panelli .fis-gorsel { position: sticky; top: 16px; }
  body.panelli .fis-gorsel .gorsel-kutu { height: calc(100vh - 180px); min-height: 420px; }
  body.panelli .fis-bilgi { display: flex; flex-direction: column; gap: 12px; }

  /* Fiş tablosu */
  .tablo-kap { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
  .fis-tablo { width: 100%; border-collapse: collapse; font-size: 14px; }
  .fis-tablo th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; padding: 12px 14px; background: var(--sand); }
  .fis-tablo td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
  .fis-tablo .sag { text-align: right; white-space: nowrap; }
  .fis-tablo td.mono { white-space: nowrap; }
  .fis-tablo tbody tr { cursor: pointer; }
  .fis-tablo tbody tr:hover, .fis-tablo tbody tr:focus-visible { background: #FAF8F3; outline: none; }
  .fis-tablo tr.kontrolde td:first-child { box-shadow: inset 3px 0 0 var(--amb); }
  .fis-tablo tr.cizili td { color: var(--muted); text-decoration: line-through; }
  .fis-tablo .ad { font-weight: 600; display: block; }
  .fis-tablo small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  .fis-tablo tfoot td { font-weight: 600; background: var(--sand); }
}
/* Sürükle bırak: fotoğraf sayfanın üstündeyken */
body.birak::after { content: "Fotoğrafları bırakın, okumaya başlayalım"; position: fixed; inset: 16px; z-index: 70; border: 3px dashed var(--pri); border-radius: 24px; background: rgba(227, 236, 243, 0.92); color: var(--pri); font-size: 22px; font-weight: 700; display: flex; align-items: center; justify-content: center; pointer-events: none; }
