/* BurgerHesap — arayüz */
:root {
  --bg: #f5efe5;
  --surface: #ffffff;
  --surface-2: #faf6ef;
  --ink: #1a1e30;
  --ink-2: #454a5c;
  --muted: #73717a;
  --line: #ebe3d6;
  --line-2: #dacfbf;
  --brand: #7d1d3a;
  --brand-2: #5e1229;
  --brand-soft: #f9ecef;
  --bun: #e3a03f;
  --side: #1a1e30;
  --side-ink: #ece6da;
  --side-muted: #9a98a6;
  --ok: #1f7a45;
  --ok-soft: #e7f4ec;
  --warn: #a15c00;
  --warn-soft: #fff4dc;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --info: #1d5fa8;
  --info-soft: #e8f1fb;
  --s1: #257de0;
  --s2: #f47230;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 2px; }
a:hover { color: var(--brand-2); }
h1, h2, h3, h4 { letter-spacing: -0.01em; line-height: 1.25; }
h4 { margin: 4px 0 8px; font-size: 14px; color: var(--ink-2); }
code { background: #f1ece4; padding: 1px 5px; border-radius: 5px; font-size: .92em; }
.ic { flex: none; vertical-align: middle; }

/* ---------- İskelet ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column; padding: 16px 12px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 4px 8px 16px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 4px; }
.brand:hover { color: #fff; }
.brand strong { display: block; font-size: 15px; line-height: 1.2; }
.brand small { color: var(--side-muted); font-size: 12px; }
.nav { flex: 1; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--side-muted); padding: 14px 10px 6px; font-weight: 700; }
.nav-link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--side-ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-link.is-active { background: var(--brand); color: #fff; box-shadow: inset 3px 0 0 var(--bun); }
.nav-link .ic { opacity: .9; }
.nav-badge { margin-left: auto; background: var(--bun); color: var(--ink); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 1px 7px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px 6px 4px; border-top: 1px solid rgba(255,255,255,.08); margin-top: 8px; }
.side-user-name { flex: 1; font-size: 13.5px; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side-user-name small { display: block; color: var(--side-muted); }
.side-user .icon-btn { color: var(--side-ink); }
.side-user .icon-btn:hover { background: rgba(255,255,255,.1); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--bun); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.side-backdrop { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  padding: 14px 28px; background: rgba(245,239,229,.94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar h1 { font-size: 20px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.topbar .menu-btn { display: none; }
.pending-strip { display: flex; align-items: center; gap: 8px; background: var(--warn-soft); color: #6b3d00; padding: 9px 28px; text-decoration: none; font-size: 14px; border-bottom: 1px solid #f0d59a; }
.pending-strip:hover { color: #4a2a00; background: #ffedc2; }
.pending-strip span { flex: 1; }
.pending-strip.is-info { background: var(--info-soft); color: #123e6e; border-bottom-color: #c4dbf3; }
.content { padding: 24px 28px 40px; max-width: 1320px; width: 100%; }
.foot { padding: 0 28px 24px; color: var(--muted); font-size: 12px; }

@media (max-width: 960px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 276px; height: auto; transform: translateX(-102%); transition: transform .2s ease; z-index: 50; }
  body.side-open .side { transform: none; }
  body.side-open .side-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
  .topbar .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 14px; }
  .topbar h1 { font-size: 17px; }
  .pending-strip { padding: 9px 14px; }
  .content { padding: 16px 14px 32px; }
  .foot { padding: 0 14px 20px; }
}
@media (max-width: 600px) {
  .top-actions .btn .ic + span { display: none; }
  .top-actions .btn { padding: 8px 10px; }
}

/* ---------- Kartlar, istatistik ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(29,26,22,.04); }
.card h2 { margin: 0 0 10px; font-size: 19px; }
.card h3 { margin: 0 0 12px; font-size: 15.5px; display: flex; align-items: center; gap: 8px; }
.card h3 small { font-weight: 400; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.card-head h3 { margin: 0; }
.card-head a { font-size: 13px; }
.card-warn { border-color: #f0d59a; background: #fffaf0; }
.card.narrow, form.narrow { max-width: 780px; }
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cols.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .cols, .cols.wide-left { grid-template-columns: minmax(0, 1fr); } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; min-width: 0; }
.stat-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.stat-value { font-size: 23px; font-weight: 750; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.neg .stat-value { color: var(--bad); }
.stat.pos .stat-value { color: var(--ok); }
.stat.warn .stat-value { color: var(--warn); }
.stat-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.stat-sub b { color: var(--ink); }
.delta { font-weight: 700; }
.delta.up { color: var(--ok); }
.delta.down { color: var(--bad); }
.delta span { font-weight: 400; color: var(--muted); }

/* ---------- Panel ---------- */
.hello { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hello h2 { margin: 0; font-size: 22px; }
.callouts { display: grid; gap: 8px; margin-bottom: 16px; }
.callout { display: flex; gap: 10px; align-items: center; padding: 12px 14px; background: var(--brand-soft); border: 1px solid #ecc9d2; border-radius: 12px; text-decoration: none; color: var(--ink); }
.callout span { flex: 1; }
.callout b { color: var(--brand); white-space: nowrap; }
.callout .ic { color: var(--brand); }
.callout-muted { background: var(--surface); border-color: var(--line); }
.callout-muted .ic { color: var(--warn); }
.quick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); font-size: 13px; font-weight: 600; text-align: center; }
.quick a:hover { border-color: var(--brand); color: var(--brand); }
.quick .ic { color: var(--brand); }
@media (max-width: 760px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.balances { list-style: none; margin: 0; padding: 0; }
.balances li { display: flex; justify-content: space-between; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 10px 0; }
.balances li > a { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; text-decoration: none; color: inherit; }
.balances li > a:hover span:first-child { color: var(--brand); }
.balances small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
.balances li.total { border-bottom: none; font-weight: 700; }
.balances b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.balances.compact li { padding: 7px 0; font-size: 14px; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.mini-stats small { display: block; color: var(--muted); font-size: 12px; }
.mini-stats b { font-size: 18px; }
.bal { white-space: nowrap; font-variant-numeric: tabular-nums; }
.bal small, .balances .bal small { display: inline; font-weight: 400; color: var(--muted); font-size: 11.5px; }
.bal-debt { color: var(--bad); }
.bal-credit { color: var(--ok); }
.activity { list-style: none; padding: 0; margin: 0; }
.activity li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.activity li:last-child { border: none; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table thead th { font-size: 11.5px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table tfoot th { border-top: 2px solid var(--line-2); border-bottom: none; font-weight: 750; }
.table tbody tr:hover { background: var(--surface-2); }
.table a { text-decoration: none; }
.table a:hover { text-decoration: underline; }
tr.devir td { background: var(--surface-2); color: var(--ink-2); font-style: italic; }
.r { text-align: right !important; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.neg { color: var(--bad); }
.pos { color: var(--ok); }
.warn { color: var(--warn); }
.center { text-align: center; }
.empty { color: var(--muted); margin: 0; }
p.empty.card { padding: 14px 18px; }
.lead { color: var(--ink-2); max-width: 780px; line-height: 1.55; margin: 0 0 16px; }
.section-h { font-size: 16px; margin: 26px 0 10px; display: flex; align-items: center; gap: 8px; }
.count { background: #eee9e1; border-radius: 999px; padding: 1px 9px; font-size: 13px; }
details summary { cursor: pointer; }
.meta { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }
.note { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13.5px; color: var(--ink-2); margin: 12px 0 0; }
ul.plain { list-style: none; padding: 0; margin: 0 0 12px; }
ul.plain li { padding: 3px 0; }
.checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.checks .ic { color: var(--ok); margin-top: 2px; }

.kv { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 12px; }
.kv dt { color: var(--muted); font-size: 13.5px; }
.kv dd { margin: 0; text-align: right; font-weight: 650; }
.kv.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; margin-bottom: 16px; }
.kv.cols-3 dt { font-size: 12px; }
.kv.cols-3 dd { text-align: left; font-weight: 600; }
@media (max-width: 640px) { .kv.cols-3 { grid-template-columns: 1fr 1fr; } }

/* ---------- Formlar ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field small { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font: inherit; font-size: 15px; padding: 9px 11px;
  border: 1px solid var(--line-2); border-radius: 9px;
  background: #fff; color: var(--ink); width: 100%; min-height: 40px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid #ecc9d2; outline-offset: 0; border-color: var(--brand); }
input.money { text-align: right; font-variant-numeric: tabular-nums; }
input[type=checkbox] { width: auto; min-height: 0; accent-color: var(--brand); }
.grid-2, .grid-3 { display: grid; gap: 0 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
}
fieldset.sub { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 2px; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 700; font-size: 13.5px; padding: 0 6px; }
legend small { font-weight: 400; color: var(--muted); }
.form-h { margin: 20px 0 10px; font-size: 15px; }
.form-h small { font-weight: 400; color: var(--muted); }
.help { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.sum-row { display: flex; justify-content: flex-end; gap: 10px; align-items: baseline; padding: 10px 0; border-top: 1px dashed var(--line-2); margin: 6px 0 14px; color: var(--ink-2); }
.sum-row strong { font-size: 18px; font-variant-numeric: tabular-nums; color: var(--ink); }
.sum-row.big strong { font-size: 22px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; margin-bottom: 12px; cursor: pointer; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.filters select, .filters input[type=search] { width: auto; min-width: 200px; max-width: 100%; }
.filters .field { margin: 0; }
.filters .field input { width: auto; }
.filters .check { margin: 0; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.inline-form .field { margin: 0; flex: 1 1 200px; }
.inline-form .field.w-sm { flex: 0 0 90px; }
.cat-list { list-style: none; padding: 0; margin: 0 0 8px; }
.cat-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }

/* Alış kalemleri */
.items-wrap { margin-bottom: 8px; }
.items { width: 100%; border-collapse: collapse; }
.items th { font-size: 12px; color: var(--muted); text-align: left; padding: 4px; font-weight: 650; }
.items td { padding: 4px; vertical-align: top; }
.items input, .items select { min-height: 38px; font-size: 14px; padding: 7px 8px; }
.w-prod { width: 25%; } .w-cat { width: 20%; } .w-qty { width: 9%; } .w-unit { width: 9%; } .w-price { width: 15%; } .w-total { width: 16%; }
@media (max-width: 760px) {
  .items thead { display: none; }
  .items, .items tbody { display: block; width: 100%; }
  .items tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
  .items td { display: block; padding: 0; }
  .items td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; font-weight: 600; }
  .items td:nth-child(1), .items td:nth-child(2) { grid-column: span 2; }
  .items td:last-child { grid-column: span 2; text-align: right; }
}

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 9px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 650;
  text-decoration: none; cursor: pointer; min-height: 38px; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(0,0,0,.05); border-color: transparent; }
.btn-danger-ghost { background: transparent; color: var(--bad); border-color: #f1c4bf; }
.btn-danger-ghost:hover { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.btn-sm { padding: 5px 10px; min-height: 32px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid transparent; background: transparent; color: inherit; cursor: pointer; text-decoration: none; font-size: 20px; line-height: 1; padding: 0; flex: none; }
.icon-btn:hover { background: rgba(0,0,0,.06); }
form.inline { display: inline-flex; }

/* ---------- Uyarılar, rozetler ---------- */
.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; border: 1px solid; line-height: 1.5; }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert .ic { vertical-align: -4px; }
.alert-success { background: var(--ok-soft); border-color: #b9dfc8; color: #14532d; }
.alert-error { background: var(--bad-soft); border-color: #f3c0ba; color: #7f1d1d; }
.alert-info { background: var(--info-soft); border-color: #c4dbf3; color: #123e6e; }
.alert-warn { background: var(--warn-soft); border-color: #f0d59a; color: #6b3d00; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: #eee9e1; color: var(--ink-2); white-space: nowrap; text-decoration: none !important; vertical-align: middle; }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-out { background: #f6ebe1; color: #8a4513; }

/* ---------- Gezinme ---------- */
.month-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.month-form { display: inline-flex; gap: 6px; }
.month-form input { width: auto; min-height: 36px; padding: 5px 8px; font-size: 14px; }
.month-label { font-size: 17px; margin-left: 6px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 650; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.is-active { color: var(--ink); border-color: var(--brand); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 14px; }

/* ---------- Grafikler ---------- */
.chart { margin: 0; }
.chart figcaption { font-weight: 700; margin-bottom: 8px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sw.s1 { background: var(--s1); }
.sw.s2 { background: var(--s2); }
.vchart { position: relative; height: 210px; padding-left: 54px; padding-bottom: 24px; }
.vgrid { position: absolute; left: 54px; right: 0; top: 0; bottom: 24px; }
.vgl { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.vgl:last-child { border-top-color: var(--line-2); }
.vgl span { position: absolute; right: 100%; transform: translateY(-50%); padding-right: 8px; font-size: 11px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vcols { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); height: 100%; gap: 2px; }
.vcol { position: relative; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; border-radius: 4px; }
.vcol:hover { background: rgba(29,26,22,.04); }
.vbars { display: flex; align-items: flex-end; justify-content: center; gap: 2px; height: 100%; padding: 0 1px; }
.vbar { flex: 1 1 0; max-width: 34px; border-radius: 4px 4px 0 0; }
.vbar.s1 { background: var(--s1); }
.vbar.s2 { background: var(--s2); }
.vlab { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); padding-top: 6px; white-space: nowrap; }
@media (max-width: 640px) {
  .vlab.minor { display: none; }
  .vchart { height: 180px; padding-left: 46px; }
  .vgrid { left: 46px; }
}
.hbars { list-style: none; margin: 0 0 10px; padding: 0; }
.hbars li { display: grid; grid-template-columns: minmax(0, 1fr) auto 46px; grid-template-areas: "name val pct" "bar bar bar"; gap: 5px 10px; align-items: baseline; padding: 6px 0; font-size: 13.5px; }
.hb-name { grid-area: name; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { grid-area: bar; height: 8px; background: #f1ece4; border-radius: 999px; overflow: hidden; }
.hb-bar { display: block; height: 100%; background: var(--s1); border-radius: 0 4px 4px 0; }
.hb-val { grid-area: val; text-align: right; }
.hb-pct { grid-area: pct; text-align: right; color: var(--muted); font-size: 12px; }
.tip { position: fixed; z-index: 100; pointer-events: none; background: #1d1a16; color: #fff; font-size: 12.5px; padding: 7px 10px; border-radius: 8px; white-space: pre-line; box-shadow: 0 6px 18px rgba(0,0,0,.22); max-width: 260px; font-variant-numeric: tabular-nums; line-height: 1.45; }

.prod-table tr.cat-row th { background: var(--surface-2); font-weight: 750; border-top: 1px solid var(--line-2); }
.prod-table td.pl { padding-left: 22px; }
.card-head .filters { margin: 0; }
.card-head .filters select { min-width: 180px; }

.items.recipe { max-width: 760px; }
.recipe .w-qty2 { width: 210px; }
.qty-wrap { display: flex; align-items: center; gap: 8px; }
.qty-wrap input { text-align: right; }
.unit-label { min-width: 62px; color: var(--muted); font-size: 13px; }
tr.row-missing td { background: #fffaf0; }
.how ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.menu-table td .badge { margin-left: 2px; }

/* ---------- Kâr / zarar ---------- */
.pnl { width: 100%; border-collapse: collapse; font-size: 14px; }
.pnl th { text-align: left; font-weight: 500; padding: 6px 6px; }
.pnl td { text-align: right; padding: 6px 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pnl td:last-child { width: 70px; }
.pnl-main th, .pnl-main td { font-weight: 700; border-top: 1px solid var(--line); padding-top: 11px; }
.pnl-sub th { padding-left: 20px; color: var(--ink-2); font-size: 13px; }
.pnl-sub td { font-size: 13px; color: var(--ink-2); }
.pnl-total th, .pnl-total td { font-weight: 800; background: var(--surface-2); border-top: 2px solid var(--line-2); padding-top: 10px; padding-bottom: 10px; }
.pnl-net th, .pnl-net td { font-size: 16.5px; color: var(--ok); }
.pnl-net.neg th, .pnl-net.neg td { color: var(--bad); }

/* ---------- Cari, hesap ---------- */
.party-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.party-head .filters { margin: 0; }
.party-balance { font-size: 18px; margin: 4px 0 6px; }
.party-balance b { font-size: 26px; font-variant-numeric: tabular-nums; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 14px; }
.acc { text-decoration: none; color: inherit; margin: 0; display: block; }
.acc:hover { border-color: var(--brand); color: inherit; }
.acc-top { display: flex; gap: 8px; align-items: center; font-weight: 700; flex-wrap: wrap; }
.acc-top .ic { color: var(--brand); }
.acc-bal { font-size: 26px; font-weight: 800; margin: 10px 0 4px; letter-spacing: -0.015em; }
.acc.passive { opacity: .6; }

/* ---------- Onaylar ---------- */
.approval { border-left: 4px solid var(--bun); }
.approval.is-delete { border-left-color: var(--bad); }
.approval header { display: flex; flex-direction: column; gap: 4px; }
.diff { width: 100%; border-collapse: collapse; font-size: 13.5px; margin: 12px 0; }
.diff th, .diff td { padding: 7px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.diff thead th { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.diff tbody th { font-weight: 600; width: 24%; color: var(--ink-2); }
.diff tr.changed td:last-child { background: var(--warn-soft); font-weight: 650; }
.diff tr.changed td:nth-child(2) { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(180,35,24,.55); }
.approval-actions { display: flex; gap: 16px 24px; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
.approve-form, .reject-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.approval-actions .field { margin: 0; }
.approval-actions .field input { width: 220px; }

/* ---------- Giriş / kurulum ---------- */
.auth-body { background: radial-gradient(1100px 520px at 50% -12%, #f1d9b8, transparent 70%), var(--bg); min-height: 100vh; }
.logo { border-radius: 50%; flex: none; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.08); }
.auth-brand .logo { box-shadow: 0 4px 14px rgba(26,30,48,.12); }
.auth { max-width: 900px; margin: 0 auto; padding: 44px 16px; }
.auth > .card { max-width: 440px; margin: 0 auto 16px; }
.auth > .card.auth-wide { max-width: 900px; }
.auth > .alert { max-width: 440px; margin-left: auto; margin-right: auto; }
.auth-brand { display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 22px; }
.auth-brand strong { display: block; font-size: 20px; }
.auth-brand small { color: var(--muted); }
.codes { display: grid; gap: 10px; margin: 14px 0; }
.code-box { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border: 2px dashed var(--line-2); border-radius: 12px; padding: 12px 14px; background: #fff; }
.code-box code { font-size: 20px; font-weight: 800; letter-spacing: .06em; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: none; }

/* ---------- Yazdırma ---------- */
@media print {
  .side, .side-backdrop, .top-actions, .menu-btn, .pending-strip, .filters, .month-nav .icon-btn, .month-form, .form-actions, .quick, .callouts, .foot { display: none !important; }
  .shell { display: block; }
  .topbar { position: static; background: none; border: none; padding: 0 0 8px; }
  .content { padding: 0; }
  body, .auth-body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}
