/* Tahsilat Defteri · "defter" görünümü: beyaz kâğıt, mürekkep siyahı, rakamlar daktilo harfiyle. */
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 400; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plex"; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plex"; font-weight: 700; font-display: swap; src: url(fonts/ibm-plex-sans-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PlexMono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PlexMono"; font-weight: 500; font-display: swap; src: url(fonts/ibm-plex-mono-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "PlexMono"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-mono-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "PlexMono"; font-weight: 600; font-display: swap; src: url(fonts/ibm-plex-mono-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ink: #111316;
  --ink2: #3b4047;
  --muted: #6b7178;
  --faint: #9aa0a6;
  --rule: #e3e5e8;
  --rule2: #cfd3d7;
  --paper: #ffffff;
  --bg: #f1f2f4;
  --red: #c8321f;
  --amber: #e39b13;
  --amber-ink: #7a4b00;
  --slate: #5a6b85;
  --green: #1f7a4d;
  --blue: #2140c9;
  --mono: "PlexMono", ui-monospace, "SF Mono", Menlo, monospace;
  font-family: "Plex", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { min-height: 100vh; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* üst satır */
.ust { padding-top: env(safe-area-inset-top); }
.ust-ic { max-width: 680px; margin: 0 auto; padding: 18px 20px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marka { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.marka::before { content: ""; width: 10px; height: 10px; background: var(--ink); border-radius: 2px; transform: rotate(45deg); }
.firma-adi { color: var(--muted); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }

.ekran { max-width: 680px; margin: 0 auto; padding: 8px 20px 20px; }

/* alt menü: yüzen koyu şerit */
.alt { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 520px; background: var(--ink); border-radius: 18px; display: flex; padding: 6px; gap: 4px; z-index: 6; box-shadow: 0 10px 30px rgba(17,19,22,.22); }
.alt button { flex: 1; height: 48px; background: none; border: 0; border-radius: 13px; color: #a9afb6; font-size: 14px; font-weight: 500; }
.alt button.aktif { background: #fff; color: var(--ink); font-weight: 600; }

/* sayfa başlığı */
.baslik { margin: 18px 0 16px; }
.baslik h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; }
.baslik .yan { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }
.tarih-satiri { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; margin-top: 18px; }

/* bugün: tek büyük rakam */
.kasa { margin: 6px 0 22px; }
.kasa .etiket { font-size: 15px; color: var(--ink2); }
.kasa .rakam { font-family: var(--mono); font-weight: 600; font-size: clamp(38px, 11vw, 54px); letter-spacing: -0.04em; line-height: 1.05; margin-top: 4px; }
.kasa .rakam small { font-size: .45em; letter-spacing: 0; margin-left: 6px; color: var(--muted); font-weight: 500; }
.serit { display: flex; height: 8px; border-radius: 4px; overflow: hidden; background: var(--rule); margin: 16px 0 12px; gap: 2px; }
.serit i { display: block; height: 100%; }
.serit .g { background: var(--red); }
.serit .b { background: var(--amber); }
.serit .y { background: var(--slate); opacity: .45; }
.kasa .cumle { font-size: 15px; line-height: 1.55; color: var(--ink2); }
.kasa .cumle b { font-family: var(--mono); font-weight: 600; color: var(--ink); white-space: nowrap; }
.kasa .cumle .n { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 1px; }
.tahsil { font-size: 14px; color: var(--muted); margin-top: 8px; }
.tahsil b { font-family: var(--mono); color: var(--green); font-weight: 600; }

/* defter yaprağı */
.yaprak { background: var(--paper); border-radius: 16px; box-shadow: 0 1px 0 var(--rule2), 0 1px 2px rgba(0,0,0,.04); overflow: hidden; margin-bottom: 14px; }
.yaprak-bas { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px 10px; border-bottom: 1px solid var(--ink); }
.yaprak-bas span { font-weight: 600; font-size: 15px; }
.yaprak-bas span em { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 6px; }
.yaprak-bas b { font-family: var(--mono); font-weight: 600; font-size: 15px; }

.kayit { border-top: 1px solid var(--rule); }
.kayit:first-of-type { border-top: 0; }
.kayit-ana { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; width: 100%; background: none; border: 0; text-align: left; }
.yaprak-ic { position: relative; }

/* takvim yaprağı: gecikme günü */
.gun-kut { width: 52px; height: 56px; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; border: 1.5px solid var(--rule2); background: #fff; position: relative; overflow: hidden; }
.gun-kut::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px; background: currentColor; opacity: .9; }
.gun-kut b { font-family: var(--mono); font-weight: 600; font-size: 20px; margin-top: 6px; letter-spacing: -0.03em; }
.gun-kut small { font-size: 10.5px; font-weight: 600; letter-spacing: .06em; margin-top: 4px; text-transform: uppercase; }
.gun-kut.gecikmis { color: var(--red); border-color: color-mix(in srgb, var(--red) 35%, #fff); }
.gun-kut.gecikmis b { color: var(--red); }
.gun-kut.bugun { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 45%, #fff); }
.gun-kut.bugun b, .gun-kut.bugun small { color: var(--amber-ink); }
.gun-kut.yaklasan { color: var(--slate); }
.gun-kut.yaklasan b, .gun-kut.yaklasan small { color: var(--ink2); }
.gun-kut.soz { color: var(--green); border-color: color-mix(in srgb, var(--green) 35%, #fff); }
.gun-kut.soz b, .gun-kut.soz small { color: var(--green); }

.kayit .ad { font-weight: 600; font-size: 16px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.kayit .bilgi { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.kayit .bilgi .uyar { color: var(--red); }
.kayit .tutar { font-family: var(--mono); font-weight: 600; font-size: 16px; text-align: right; white-space: nowrap; letter-spacing: -0.02em; }
.kayit .tutar small { display: block; font-family: "Plex", sans-serif; font-weight: 400; font-size: 12px; color: var(--faint); letter-spacing: 0; margin-top: 3px; }

.kayit-eylem { display: flex; gap: 8px; padding: 0 16px 14px 80px; }
.kayit-eylem .btn { flex: 1; }
.kayit-eylem .btn.ana { flex: 1.5; }
.kayit-detay { padding: 0 16px 14px 80px; display: none; }
.kayit.acik .kayit-detay { display: block; }
.kayit.acik { background: #fafafb; }
.fatura { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px dashed var(--rule2); font-size: 14px; }
.fatura .sol { color: var(--muted); }
.fatura .sol b { font-family: var(--mono); color: var(--ink); font-weight: 600; margin-right: 4px; }
.tel-satir { font-size: 13.5px; color: var(--muted); padding-top: 9px; border-top: 1px dashed var(--rule2); }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--rule2); background: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.ana { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ana svg { width: 16px; height: 16px; }
.btn.tehlike { color: var(--red); }
.btn.kucuk { min-height: 34px; padding: 0 11px; font-size: 13.5px; border-radius: 8px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btnlar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ayar ve yükleme sayfaları */
.kutu { background: var(--paper); border-radius: 16px; box-shadow: 0 1px 0 var(--rule2), 0 1px 2px rgba(0,0,0,.04); padding: 18px 16px; margin-bottom: 14px; }
.kutu h2 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
.kutu p { color: var(--ink2); line-height: 1.55; font-size: 15px; }
.kutu p + p { margin-top: 8px; }
.ince { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.bolum { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 24px 2px 10px; display: flex; justify-content: space-between; }
.bolum b { font-weight: 600; color: var(--ink); }

label.alan { display: block; margin-top: 16px; }
label.alan > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
label.alan > small { display: block; color: var(--muted); font-size: 13px; margin-top: 6px; line-height: 1.4; }
input[type=text], input[type=tel], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 11px 12px; border: 1px solid var(--rule2); border-radius: 10px; background: #fff; font-size: 16px;
}
textarea { min-height: 120px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; border-color: transparent; }
.onay { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 15px; line-height: 1.45; }
.onay input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }

.uyari { background: #fff; border-left: 3px solid var(--amber); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.45; margin-bottom: 12px; display: flex; gap: 12px; justify-content: space-between; align-items: center; box-shadow: 0 1px 0 var(--rule2); }
.uyari.bilgi { border-left-color: var(--blue); }
.uyari button { flex: none; }

.bos { text-align: left; padding: 22px 16px; }
.bos h2 { font-size: 18px; margin-bottom: 6px; }

/* müşteri listesi */
.liste { background: var(--paper); border-radius: 16px; box-shadow: 0 1px 0 var(--rule2); overflow: hidden; }
.satir { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--rule); background: #fff; }
.satir:first-child { border-top: 0; }
.satir .ad { font-weight: 600; font-size: 15px; }
.satir .alt-bilgi { font-size: 13px; color: var(--muted); margin-top: 2px; }
.satir .sag { text-align: right; white-space: nowrap; }
.satir .sag b { font-family: var(--mono); font-weight: 600; }

/* yükleme */
.birak { display: block; border: 1.5px dashed var(--rule2); border-radius: 16px; background: #fff; padding: 34px 16px; text-align: center; cursor: pointer; }
.birak.ustunde { border-color: var(--ink); background: #f7f7f8; }
.birak strong { display: block; font-size: 17px; margin-bottom: 4px; }
.adimlar { margin: 10px 0 0; padding-left: 20px; color: var(--ink2); font-size: 15px; line-height: 1.65; }
.esleme { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.tablo-kap { overflow-x: auto; margin-top: 10px; background: #fff; border-radius: 12px; box-shadow: 0 1px 0 var(--rule2); }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
th { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom-color: var(--ink); }
tr:last-child td { border-bottom: 0; }
td.hata { color: var(--red); }
td.sayi { text-align: right; font-family: var(--mono); }

/* alt pencere (telefonda alttan açılır) */
dialog { border: 0; padding: 0; width: min(540px, 100vw); max-width: 100vw; max-height: 92vh; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(17,19,22,.5); }
dialog form { padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); }
dialog h2 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 4px; }
dialog .ince { margin-bottom: 4px; }
dialog .btnlar { justify-content: flex-end; }
@media (max-width: 560px) {
  dialog { margin: auto 0 0; border-radius: 20px 20px 0 0; width: 100vw; }
  dialog[open] { animation: yukari .22s ease-out; }
  dialog form::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 2px; background: var(--rule2); margin: -10px auto 16px; }
  dialog .btnlar .btn { flex: 1; }
}
@keyframes yukari { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); background: #fff; color: var(--ink); border-radius: 12px; padding: 10px 12px 10px 16px; font-size: 14px; display: flex; gap: 14px; align-items: center; z-index: 20; max-width: calc(100vw - 24px); box-shadow: 0 8px 28px rgba(17,19,22,.2), 0 0 0 1px var(--rule); }
.toast button { background: none; border: 0; color: var(--blue); font-weight: 700; padding: 6px; }

.demo-serit { font-size: 13.5px; color: var(--ink2); border: 1px dashed var(--rule2); border-radius: 10px; padding: 9px 12px; margin: 12px 0 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.demo-serit button { background: none; border: 0; color: var(--blue); font-weight: 600; font-size: 13.5px; padding: 4px; }

.degisken { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.degisken code { font-family: var(--mono); background: var(--bg); border-radius: 6px; padding: 3px 7px; font-size: 12.5px; }

/* karşılama */
.giris h1 { font-size: clamp(30px, 8.5vw, 42px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 26px 0 14px; }
.giris .alt-yazi { font-size: 16.5px; line-height: 1.55; color: var(--ink2); max-width: 34em; }
.giris .not { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--rule2); font-size: 14px; color: var(--muted); line-height: 1.55; }

@media (min-width: 421px) { .onay.hiza { margin-top: 44px; } }
@media (max-width: 420px) {
  .esleme { grid-template-columns: 1fr; }
  .kayit-eylem, .kayit-detay { padding-left: 16px; }
}

.toast[hidden] { display: none; }

/* ---------- defter: çek, nakit, müşteri kartı ---------- */
.ekle-btn { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; }
.alt button { font-size: 13.5px; padding: 0 2px; }
.kayit .bilgi { display: block; }
.kayit .tutar.eksi { color: var(--ink2); }
.rozet { display: inline-block; font-size: 11px; font-weight: 600; color: var(--red); border: 1px solid color-mix(in srgb, var(--red) 40%, #fff); border-radius: 5px; padding: 1px 5px; margin: 3px 0 1px; letter-spacing: .02em; }
.kirmizi { color: var(--red); }
b.kirmizi { color: var(--red); }
b.duz { font-family: inherit !important; font-weight: 600; }
.gun-kut.kapali { color: var(--faint); }
.gun-kut.kapali b, .gun-kut.kapali small { color: var(--muted); }
.yaprak.soluk { opacity: .78; }
.yaprak .ic { padding: 0 16px 6px; }
.yaprak .ic .fatura:first-child { border-top: 0; }
.uyari.kirmizi { border-left-color: var(--red); }
.uyari b { font-family: var(--mono); font-weight: 600; }
.sirayla { width: 100%; min-height: 50px; margin: 2px 0 14px; border-radius: 14px; font-size: 15.5px; }
.sirayla svg { width: 17px; height: 17px; }
.btn.tam { width: 100%; }
.geri { background: none; border: 0; padding: 14px 0 0; color: var(--ink2); font-weight: 500; font-size: 14.5px; }
.geri + .baslik { margin-top: 8px; }

.segment { display: flex; background: #e2e4e8; border-radius: 12px; padding: 3px; margin: 0 0 18px; }
.segment button { flex: 1; height: 38px; border: 0; background: none; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--ink2); }
.segment button.aktif { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.1); }

.kasa .rakam.negatif { color: var(--red); }
.grafik { display: block; width: 100%; height: 120px; margin: 14px 0 0; background: #fff; border-radius: 12px; box-shadow: 0 1px 0 var(--rule2); }
.grafik .sifir { stroke: var(--rule2); stroke-width: 1; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.grafik .cizgi { fill: none; stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.grafik .cizgi.negatif { stroke: var(--red); stroke-width: 2.5; }
.grafik .isaret { stroke: var(--red); stroke-width: 1; opacity: .35; vector-effect: non-scaling-stroke; }
.grafik-alt { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin: 6px 2px 12px; text-transform: uppercase; letter-spacing: .04em; }
.olay { display: grid; grid-template-columns: 54px 1fr auto; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--rule); font-size: 14.5px; }
.olay:first-child { border-top: 0; }
.olay .ot { font-family: var(--mono); font-size: 12.5px; color: var(--muted); text-transform: uppercase; }
.olay .oa { overflow: hidden; text-overflow: ellipsis; }
.olay .oa small { display: block; font-size: 12.5px; color: var(--faint); margin-top: 1px; }
.olay b { font-family: var(--mono); font-weight: 600; white-space: nowrap; }
.olay b.arti { color: var(--green); }
.olay b.eksi { color: var(--ink); }
.olay.toplam { color: var(--muted); font-size: 13px; border-top: 1px dashed var(--rule2); }

/* müşteri listesi düğme satırı */
button.satir { width: 100%; text-align: left; border: 0; border-top: 1px solid var(--rule); font: inherit; color: inherit; }
button.satir:first-child { border-top: 0; }
.satir .ad, .satir .alt-bilgi { display: block; }

/* pencere içi seçimler */
.secenekler { margin: 14px -20px 0; border-top: 1px solid var(--rule); }
.secenek { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--rule); padding: 14px 20px; }
.secenek b { display: block; font-size: 16px; font-weight: 600; }
.secenek span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.secenek:active { background: var(--bg); }
.alan .etk { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
div.alan { margin-top: 16px; }
.secim { display: flex; flex-wrap: wrap; gap: 6px; }
.secim label { position: relative; }
.secim input { position: absolute; opacity: 0; pointer-events: none; }
.secim span { display: inline-flex; align-items: center; min-height: 38px; padding: 0 13px; border-radius: 9px; border: 1px solid var(--rule2); font-size: 14px; font-weight: 500; cursor: pointer; background: #fff; }
.secim input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.secim input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.cipler { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cip { border: 1px solid var(--rule2); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 500; color: var(--ink2); }
.cek-alan { display: none; }
form.cekli .cek-alan { display: block; }
.durum-yazi { font-size: 14.5px; margin-top: 10px; color: var(--ink2); }
.btnlar.dikey { flex-direction: column; }
.btnlar.dikey .btn { width: 100%; }
.btnlar.ayri { border-top: 1px solid var(--rule); padding-top: 14px; justify-content: flex-start; }
.btnlar.ayri .btn:last-child { margin-left: auto; }
.sira-bilgi { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--blue); margin-top: 6px; }
@media (max-width: 560px) { dialog .btnlar.ayri .btn { flex: 0 0 auto; } }
.uyar { color: var(--red); }

/* çek alırken not, bilgilendirme metinleri */
.ipucu { margin-top: 12px; padding-left: 10px; border-left: 2px solid var(--rule2); }
.bilgi-metni details { border-top: 1px solid var(--rule); padding: 12px 0 2px; }
.bilgi-metni details:first-of-type { margin-top: 8px; }
.bilgi-metni summary { font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.bilgi-metni summary::-webkit-details-marker { display: none; }
.bilgi-metni summary::after { content: "+"; color: var(--muted); font-weight: 500; }
.bilgi-metni details[open] summary::after { content: "−"; }
.bilgi-metni details p { font-size: 14px; margin-top: 8px; }

/* kilit ekranı */
.kilit { max-width: 320px; margin: 18vh auto 0; text-align: center; }
.kilit h1 { font-size: 24px; letter-spacing: -0.02em; margin-bottom: 6px; }
.kilit form { margin: 22px 0 16px; display: grid; gap: 10px; }
.kilit input { text-align: center; font-family: var(--mono); font-size: 26px; letter-spacing: 0.4em; padding: 12px; border: 1px solid var(--rule2); border-radius: 12px; background: var(--paper); }
.kilit a { color: var(--muted); font-size: 14px; }

/* yazdırılabilir ekstre */
#yazdir { display: none; }
@media print {
  @page { margin: 16mm; }
  body.yazdiriliyor { background: #fff; padding: 0; }
  body.yazdiriliyor > *:not(#yazdir) { display: none !important; }
  body.yazdiriliyor #yazdir { display: block; color: #000; font-size: 11pt; }
  #yazdir header { display: flex; justify-content: space-between; border-bottom: 1.5pt solid #000; padding-bottom: 8pt; margin-bottom: 14pt; }
  #yazdir header b { display: block; font-size: 13pt; }
  #yazdir header span { color: #555; }
  #yazdir h1 { font-size: 17pt; margin-bottom: 12pt; }
  #yazdir h2 { font-size: 11pt; text-transform: uppercase; letter-spacing: .06em; color: #444; margin: 14pt 0 5pt; }
  #yazdir table { width: 100%; border-collapse: collapse; }
  #yazdir th { text-align: left; font-weight: 600; color: #555; border-bottom: 1pt solid #999; padding: 4pt 0; font-size: 9.5pt; }
  #yazdir td { border-bottom: .5pt solid #ddd; padding: 5pt 6pt 5pt 0; font-family: var(--mono); font-size: 10pt; }
  #yazdir .sag { text-align: right; }
  #yazdir .toplam td { font-weight: 700; border-bottom: 1.5pt solid #000; font-family: inherit; }
  #yazdir .toplam td.sag { font-family: var(--mono); }
  #yazdir .iban { margin-top: 14pt; }
  #yazdir footer { margin-top: 22pt; color: #555; font-size: 9pt; }
}
.kilit form > * { width: 100%; min-width: 0; }
.alt[hidden], .ekle-btn[hidden] { display: none !important; }
.cekim .demo-serit { display: none; }
.cekim .ust { padding-top: 44px; }
