/* Yukarı Yağmurlu Köyü Derneği — renkler logodan */
:root {
  --green: #5a9a2e;
  --green-600: #4a8424;
  --green-dark: #2f5d3a;
  --green-900: #1f3d27;
  --gold: #d9a520;
  --gold-soft: #f3dd8c;
  --cream: #fbf5dc;
  --cream-2: #f6efcf;
  --river: #4fa7a7;
  --bg: #f7f5ec;
  --card: #ffffff;
  --text: #22332a;
  --muted: #6b705c;
  --line: #e7e1c8;
  --err: #b3261e;
  --err-bg: #fdecea;
  --warn: #9a6700;
  --warn-bg: #fff4d6;
  --ok: #2f7a3a;
  --ok-bg: #e6f4e2;
  --info: #1f6f8b;
  --info-bg: #e3f2f7;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 61, 39, .06), 0 4px 16px rgba(31, 61, 39, .06);
  --font: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 15.5px; line-height: 1.55; }
a { color: var(--green-dark); }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .6em; color: var(--green-900); }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.ic { flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.small { font-size: .88em; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt { margin-top: 1rem; }
.mb0 { margin-bottom: 0; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.hidden { display: none !important; }

/* ---------- Butonlar ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45em; padding: .62em 1.1em; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, transform .05s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-600); }
.btn-dark { background: var(--green-dark); color: #fff; }
.btn-dark:hover { background: var(--green-900); }
.btn-gold { background: var(--gold); color: #3a2a00; }
.btn-gold:hover { background: #c7961a; }
.btn-light { background: #fff; color: var(--green-dark); border-color: var(--line); }
.btn-light:hover { background: var(--cream); }
.btn-danger { background: #fff; color: var(--err); border-color: #f0c9c5; }
.btn-danger:hover { background: var(--err-bg); }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5a; }
.btn-sm { padding: .42em .8em; font-size: .88rem; border-radius: 8px; }
.btn-lg { padding: .85em 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 8px; cursor: pointer; color: inherit; display: inline-flex; }
.icon-btn:hover { background: rgba(0,0,0,.06); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.inline { display: inline; }

/* ---------- Formlar ---------- */
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .3em; color: var(--green-900); }
.field { margin-bottom: 14px; }
.field small, .hint { display: block; color: var(--muted); font-size: .84rem; margin-top: .25em; font-weight: 400; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=date], input[type=month], input[type=search], input[type=color], select, textarea {
  width: 100%; padding: .66em .8em; border: 1px solid #d9d2b3; border-radius: 10px; font: inherit; background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
input[type=color] { padding: 3px; height: 42px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(90,154,46,.18); }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
.check { display: flex; gap: .55em; align-items: flex-start; font-weight: 600; cursor: pointer; }
.check input { margin-top: .3em; width: 17px; height: 17px; accent-color: var(--green); }
.field-err { color: var(--err); font-size: .85rem; margin-top: .25em; font-weight: 600; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--err); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; }
.span-2 { grid-column: span 2; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-bottom: 14px; }
.filters .field { margin: 0; min-width: 140px; flex: 1 1 140px; }
.filters .field.grow { flex: 3 1 220px; }

/* ---------- Uyarılar ---------- */
.alert { display: flex; gap: .6em; align-items: flex-start; padding: .8em 1em; border-radius: 12px; margin-bottom: 12px; font-weight: 600; }
.alert .ic { margin-top: 2px; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-err { background: var(--err-bg); color: var(--err); }
.alert-warn { background: var(--warn-bg); color: var(--warn); }
.alert-info { background: var(--info-bg); color: var(--info); }
.flash-wrap { padding-top: 16px; }

.badge { display: inline-block; padding: .18em .6em; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-muted { background: #eeeae0; color: var(--muted); }
.badge-gold { background: var(--gold-soft); color: #5b4300; }

/* ---------- Kartlar ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card-flush { padding: 0; overflow: hidden; }
.card-flush .card-head { padding: 16px 20px 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 18px; }
.cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.cols-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stat { display: flex; gap: 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
a.stat:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(31,61,39,.1); }
.stat-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat-green .stat-ic { background: var(--ok-bg); color: var(--green-600); }
.stat-gold .stat-ic { background: var(--warn-bg); color: #b07d00; }
.stat-red .stat-ic { background: var(--err-bg); color: var(--err); }
.stat-blue .stat-ic { background: var(--info-bg); color: var(--info); }
.stat-dark { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.stat-dark .stat-ic { background: rgba(255,255,255,.14); color: var(--gold-soft); }
.stat-dark .stat-label, .stat-dark .stat-sub { color: rgba(255,255,255,.75); }
.stat-label { font-size: .85rem; color: var(--muted); font-weight: 700; }
.stat-value { font-size: 1.45rem; font-weight: 800; line-height: 1.2; }
.stat-sub { font-size: .8rem; color: var(--muted); }

.empty { text-align: center; color: var(--muted); padding: 28px 10px; }
.empty .ic { opacity: .45; margin-bottom: 6px; }
.empty p { margin: 0; }

/* ---------- Tablolar ---------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fcfbf5; white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid #f0ecda; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fdfcf6; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.table tfoot td { font-weight: 800; background: #fcfbf5; border-top: 1px solid var(--line); }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions form { display: inline; }
.row-late td { background: #fff8f7; }
.amount-in { color: var(--ok); font-weight: 800; }
.amount-out { color: var(--err); font-weight: 800; }

.pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; padding: 14px 16px; }
.pager a { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; font-weight: 700; background: #fff; }
.pager a.active { background: var(--green); color: #fff; border-color: var(--green); }
.pager .muted { margin-left: auto; font-size: .85rem; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 9px 14px; text-decoration: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tabs a.active { color: var(--green-dark); border-color: var(--green); }
.tabs a .count { font-style: normal; background: var(--gold); color: #3a2a00; border-radius: 999px; font-size: .72rem; padding: 0 .5em; margin-left: 4px; }

dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); font-weight: 700; font-size: .9rem; }
dl.kv dd { margin: 0; font-weight: 600; }

/* ---------- Ortak marka / bölüm parçaları (site görünümü: site.css) ---------- */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-900); min-width: 0; }
.brand img { border-radius: 50%; flex: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand b { font-size: 1.02rem; font-weight: 800; }
.brand small { color: var(--muted); font-size: .8rem; font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; margin-left: auto; cursor: pointer; color: var(--green-900); border-radius: 8px; }

.section { padding: 48px 0; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.section-title h2 { font-size: 1.6rem; margin: 0; }

.news-list { display: grid; gap: 14px; }
.news { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.news h3 { margin-bottom: .2em; }
.news .date { color: var(--muted); font-size: .85rem; font-weight: 700; display: flex; gap: .4em; align-items: center; margin-bottom: 6px; }
.news.pinned { border-left: 4px solid var(--gold); }
.prose { white-space: normal; }

.wedding-list { display: grid; gap: 14px; }
.wedding-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
@media (max-width: 520px) { .wedding-grid { grid-template-columns: 1fr; } }
.wedding { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); border-left: 4px solid var(--gold); }
.wedding .w-date { flex: 0 0 72px; align-self: flex-start; text-align: center; background: var(--cream); border: 1px solid var(--gold-soft); border-radius: 12px; padding: 8px 4px; line-height: 1.15; }
.wedding .w-date b { display: block; font-size: 1.7rem; color: var(--green-dark); }
.wedding .w-date span { display: block; font-weight: 700; font-size: .85rem; }
.wedding .w-date small { display: block; color: var(--muted); font-size: .75rem; }
.wedding .w-body { min-width: 0; flex: 1; }
.wedding.w-nisan { border-left-color: var(--info); }
.wedding.w-kina { border-left-color: #c0504d; }
.wedding.w-soz { border-left-color: var(--green); }
.wedding h3 { margin: .3em 0 .2em; font-size: 1.1rem; }
.wedding .w-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.wedding .w-kalan { font-size: .8rem; font-weight: 700; color: var(--muted); }
.wedding .w-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 .4em; font-size: .92rem; }
.wedding .w-meta span { display: inline-flex; align-items: center; gap: .35em; }
.w-past { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.w-past:first-of-type { border-top: 0; }

.facility-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.facility { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-top: 4px solid var(--fc, var(--green)); }
.facility h3 { margin-bottom: .2em; }
.facility .price { font-weight: 800; color: var(--green-dark); }

.iban-box { background: var(--cream); border: 1px dashed var(--gold); border-radius: 12px; padding: 14px 16px; }
.iban-box .iban { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 700; font-size: 1.02rem; letter-spacing: .03em; word-break: break-all; }
.copy-btn { margin-left: 6px; }

/* ---------- Takvim ---------- */
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.cal-nav h3 { margin: 0; min-width: 140px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-h { text-align: center; font-size: .78rem; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal-d { min-height: 64px; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: inherit; font-size: .8rem; overflow: hidden; }
.cal-empty { background: transparent; border-color: transparent; }
.cal-n { font-weight: 800; font-size: .92rem; }
.cal-l { font-size: .72rem; font-weight: 700; line-height: 1.25; }
.cal-l a { color: inherit; }
.cal-past { opacity: .45; }
.cal-today { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); }
.cal-full { background: #fbe4e1; border-color: #f2c0ba; color: #8c1d18; }
.cal-pending { background: #fff4d6; border-color: #f0dc9e; color: #7a5200; }
.cal-link:hover { border-color: var(--green); background: var(--ok-bg); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--line); background: #fff; }
.legend i.l-full { background: #fbe4e1; border-color: #f2c0ba; }
.legend i.l-pend { background: #fff4d6; border-color: #f0dc9e; }

/* ---------- Giriş ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: radial-gradient(circle at 20% 10%, var(--cream) 0, transparent 50%), radial-gradient(circle at 80% 90%, #e6f0d8 0, transparent 50%), var(--bg); }
.auth-card { width: 100%; max-width: 410px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px rgba(31,61,39,.12); padding: 30px 26px; }
.auth-card .auth-logo { display: block; width: 110px; height: 110px; margin: -84px auto 10px; border-radius: 50%; box-shadow: 0 10px 30px rgba(47,93,58,.25), 0 0 0 6px #fff; }
.auth-card h1 { text-align: center; font-size: 1.35rem; margin-bottom: .2em; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 20px; font-size: .95rem; }

/* ---------- Panel ---------- */
.panel-shell { display: grid; grid-template-columns: 256px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--green-900); color: rgba(255,255,255,.86); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand-side { color: #fff; padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.brand-side b { font-size: .92rem; }
.brand-side small { color: rgba(255,255,255,.55); }
.side-nav { padding: 10px 10px 16px; flex: 1; }
.side-group { font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.45); font-weight: 800; padding: 14px 10px 6px; }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: rgba(255,255,255,.85); text-decoration: none; font-weight: 700; font-size: .93rem; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.active { background: var(--green); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.side-nav a .count { margin-left: auto; font-style: normal; background: var(--gold); color: #3a2a00; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .05em .55em; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.08); }
.side-user > div:nth-child(2) { flex: 1; min-width: 0; line-height: 1.25; }
.side-user b { display: block; color: #fff; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user small { color: rgba(255,255,255,.55); font-size: .78rem; }
.side-user .icon-btn { color: rgba(255,255,255,.8); }
.side-user .icon-btn:hover { background: rgba(255,255,255,.1); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #3a2a00; display: grid; place-items: center; font-weight: 800; font-size: .85rem; flex: none; }
.panel-main { min-width: 0; display: flex; flex-direction: column; }
.panel-top { display: flex; align-items: center; gap: 12px; padding: 16px 28px; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.panel-top h1 { font-size: 1.3rem; margin: 0; flex: 1; min-width: 0; }
.panel-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-content { padding: 24px 28px 40px; }
.sidebar-backdrop { display: none; }

.progress { height: 8px; background: #eeead8; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--green), #8cc152); border-radius: 99px; }

.bars { display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) 110px; gap: 10px; align-items: center; font-size: .88rem; }
.bar-track { display: grid; gap: 3px; }
.bar { height: 10px; border-radius: 99px; min-width: 2px; }
.bar.in { background: var(--green); }
.bar.out { background: #e0786f; }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; line-height: 1.25; }
.cat-list { display: grid; gap: 10px; }
.cat-item { display: grid; gap: 4px; }
.cat-item .top { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; font-weight: 700; }

.modal { position: fixed; inset: 0; background: rgba(20,35,25,.5); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.modal.open { display: flex; }
.modal-box { background: #fff; border-radius: 16px; width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; padding: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal-box h3 { display: flex; justify-content: space-between; align-items: center; }

.debt-list { display: grid; gap: 8px; }
.debt-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.debt-item:has(input:checked) { border-color: var(--green); background: var(--ok-bg); }
.debt-item input { width: 18px; height: 18px; accent-color: var(--green); }
.debt-item .grow { flex: 1; min-width: 0; }
.debt-item .amt { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.total-line { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--cream); border-radius: 12px; font-weight: 800; margin: 10px 0 16px; }
.total-line .v { font-size: 1.3rem; color: var(--green-dark); }

.print-only { display: none; }

/* ---------- Duyarlı ---------- */
@media (max-width: 980px) {
  .cols, .cols-even { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }

  .panel-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; z-index: 60; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: none; }
  .sidebar-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 50; }
  .panel-top { padding: 12px 16px; }
  .panel-top .nav-toggle { margin-left: 0; padding: 6px; }
  .panel-top h1 { font-size: 1.1rem; }
  .panel-content { padding: 16px 16px 32px; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .card { padding: 16px; }
  .card.card-flush { padding: 0; }
  .brand b { font-size: .92rem; }
  .brand small { display: none; }
  .cal { gap: 3px; }
  .cal-d { min-height: 48px; padding: 4px; }
  .cal-l { font-size: .6rem; }
  .bar-row { grid-template-columns: 54px minmax(0, 1fr) 92px; font-size: .8rem; }
  .panel-actions .btn span.lbl { display: none; }
  dl.kv { grid-template-columns: 1fr; gap: 2px; }
  dl.kv dd { margin-bottom: 8px; }

  /* Mobilde tablolar: her satır kısa bir kart.
     1. satır: başlık hücresi (.t, yoksa ilk hücre) + tutar (.num)
     2. satır: diğer bilgiler yan yana, küçük
     3. satır: işlem düğmeleri */
  table.table.stack thead { display: none; }
  table.table.stack, .table.stack tbody, .table.stack tfoot { display: block; width: 100%; }
  .table.stack tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table.stack tr::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  .table.stack td { display: block; order: 3; border: 0; padding: 0; width: auto; text-align: left; font-size: .85rem; color: var(--muted); min-width: 0; }
  .table.stack td:empty { display: none; }
  .table.stack td.t, .table.stack tr:not(:has(> td.t)) > td:first-child { order: 0; flex: 1 1 50%; font-size: .98rem; color: var(--text); }
  .table.stack td.num { order: 1; margin-left: auto; font-size: 1rem; font-weight: 800; color: var(--text); text-align: right; }
  .table.stack td.num.amount-in { color: var(--ok); }
  .table.stack td.num.amount-out { color: var(--err); }
  .table.stack td.num ~ td.num { order: 3; margin-left: 0; font-size: .85rem; font-weight: 600; color: var(--muted); }
  .table.stack td.num ~ td.num::before { content: attr(data-l) ": "; }
  .table.stack td.actions { order: 4; flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding-top: 8px; }
  .table.stack td .small { font-size: inherit; }
  .table.stack td .badge { font-size: .74rem; }
  .table.stack tbody tr:hover { background: transparent; }
  .row-late { background: #fff8f7; }
  .row-late td { background: transparent; }
}

/* ---------- Onay bekleyenler ---------- */
.onay-item { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 20px; border-top: 1px solid #f0ecda; }
.onay-item .grow { flex: 1 1 200px; min-width: 0; }
.onay-act { display: flex; gap: 8px; align-items: center; }
.onay-act form { display: inline; }
.card-flush .card-head { padding-bottom: 12px; margin-bottom: 0; }
.card-head h3 { display: flex; align-items: center; gap: 8px; flex: 1 1 0; min-width: 0; }
.card-head > .btn { flex: none; }

.w-share { margin-left: auto; color: #1ebe5a; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; }
.w-share:hover { background: #e7f9ee; }
.anchor { scroll-margin-top: 80px; }
.bottom-nav { display: none; }
.install-tip { text-decoration: none; }

/* ---------- Telefon ---------- */
@media (max-width: 860px) {
  /* Alt menü: başparmakla ulaşılan sabit çubuk */
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(31,61,39,.08); padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a, .bottom-nav button { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 7px; background: none; border: 0; font: inherit; font-size: .7rem; font-weight: 700; color: var(--muted); text-decoration: none; cursor: pointer; }
  .bottom-nav a.active { color: var(--green-dark); }
  .bottom-nav a.active::before { content: ""; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; border-radius: 0 0 3px 3px; background: var(--green); }
  .bottom-nav .count { position: absolute; top: 3px; left: calc(50% + 6px); font-style: normal; background: var(--err); color: #fff; font-size: .66rem; font-weight: 800; border-radius: 999px; padding: 0 .45em; line-height: 1.5; }
  .bottom-nav span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .panel-content { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .panel-top .nav-toggle { display: none; }
  .panel-top { padding-left: 16px; }
  .panel-top h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 640px) {
  .section { padding: 28px 0; }
  .section-title { margin-bottom: 14px; align-items: center; }
  .section-title h2 { font-size: 1.3rem; }

  /* Düğün kartları daha sıkı */
  .wedding-list { gap: 10px; }
  .wedding { padding: 12px 12px 12px 10px; gap: 12px; }
  .wedding .w-date { flex-basis: 58px; padding: 6px 2px; border-radius: 10px; }
  .wedding .w-date b { font-size: 1.35rem; }
  .wedding .w-date span { font-size: .78rem; }
  .wedding .w-date small { font-size: .68rem; }
  .wedding h3 { font-size: 1rem; margin: .2em 0 0; }
  .wedding .w-meta { margin: .3em 0 0; font-size: .85rem; }
  .wedding .prose { margin-top: .3em; }

  /* İstatistik kartları ikişer ikişer */
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
  .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; }
  .stat-ic { width: 34px; height: 34px; border-radius: 10px; }
  .stat-ic .ic { width: 18px; height: 18px; }
  .stat-label { font-size: .76rem; line-height: 1.3; }
  .stat-value { font-size: 1.12rem; overflow-wrap: anywhere; }
  .stat-sub { font-size: .72rem; }

  /* Parmakla dokunulabilir boyutlar */
  .btn-sm { min-height: 38px; padding: .45em .85em; }
  .icon-btn { min-width: 40px; min-height: 40px; justify-content: center; align-items: center; }
  .actions .icon-btn, .onay-act .icon-btn { margin-left: 6px; color: var(--err); }
  .onay-item { padding: 12px 16px; }
  .onay-act { flex-basis: 100%; justify-content: flex-end; }

  /* Sekmeler tek satırda, yana kaydırılır */
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; flex: none; padding: 10px 12px; }

  /* IBAN dörtlü gruplar bozulmadan */
  .iban-box .iban { font-size: .9rem; letter-spacing: 0; word-break: normal; overflow-wrap: normal; }

  /* Başlık düğmeleri yazılı kalsın ama sığsın */
  .panel-actions { flex-wrap: nowrap; gap: 6px; }
  .panel-actions .btn span.lbl { display: inline; }
  .panel-actions .btn { padding: .45em .65em; }
  .hide-sm { display: none !important; }
  .card-flush .card-head { padding: 14px 16px 10px; }
}
@media (max-width: 380px) {
  .panel-actions .btn span.lbl { display: none; }
}

@media print {
  .bottom-nav { display: none !important; }
  .sidebar, .panel-top .nav-toggle, .panel-actions, .no-print, .filters, .pager, .util, .mast, .mainnav, .hh, .foot { display: none !important; }
  .panel-shell { display: block; }
  .panel-top { position: static; border: 0; padding: 0 0 10px; }
  .panel-content { padding: 0; }
  .card { box-shadow: none; break-inside: avoid; }
  .print-only { display: block; }
  body { background: #fff; }
}
