:root {
  --bg: #f3f2ef;
  --surface: #ffffff;
  --surface-2: #f7f6f3;
  --ink: #16181b;
  --ink-2: #41464e;
  --muted: #7f848c;
  --line: #e8e6e1;
  --line-2: #d8d5ce;

  --brand: #0f5a46;
  --brand-2: #0b4838;
  --brand-soft: #e3efe9;
  --focus: rgba(15, 90, 70, 0.14);

  --due: #b3321f;
  --due-soft: #fcebe7;
  --paid: #17724a;
  --paid-soft: #e2f3ea;

  --kasap: #bd3a2b;
  --kasap-soft: #fbe8e5;
  --manav: #3a7d2c;
  --manav-soft: #e8f3e2;
  --mutfak: #b3730e;
  --mutfak-soft: #fbf0db;
  --salon: #3457a6;
  --salon-soft: #e7edf9;
  --bulasik: #10808a;
  --bulasik-soft: #dff2f3;

  --r-xl: 22px;
  --r-lg: 18px;
  --r: 14px;
  --r-sm: 11px;
  --shadow-sm: 0 1px 2px rgba(22, 24, 27, 0.05);
  --shadow: 0 1px 2px rgba(22, 24, 27, 0.04), 0 8px 22px rgba(22, 24, 27, 0.05);
  --shadow-lg: 0 16px 40px rgba(22, 24, 27, 0.16);

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabbar-h: 64px;
  --side-w: 252px;
}

.c-kasap { --c: var(--kasap); --c-soft: var(--kasap-soft); }
.c-manav { --c: var(--manav); --c-soft: var(--manav-soft); }
.c-mutfak { --c: var(--mutfak); --c-soft: var(--mutfak-soft); }
.c-salon { --c: var(--salon); --c-soft: var(--salon-soft); }
.c-bulasik { --c: var(--bulasik); --c-soft: var(--bulasik-soft); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: 0.35; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.ico { flex: 0 0 auto; display: block; }
.amt { font-variant-numeric: tabular-nums; font-weight: 800; white-space: nowrap; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.due-text { color: var(--due); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--ink)); flex: 0 0 auto; }
.only-desk { display: none !important; }

/* ---------- İskelet ---------- */

.side { display: none; }
.content { min-width: 0; overflow-x: clip; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: rgba(243, 242, 239, 0.88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar-title small {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-title h1 {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-right { display: flex; gap: 8px; }

#app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4px 16px calc(var(--tabbar-h) + 32px + var(--safe-b));
  outline: none;
}
body.in-order #app { padding-bottom: calc(100px + var(--safe-b)); }

.tabbar {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.tabbar a {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
}
.tabbar a.on { color: var(--ink); }
.tabbar a.has-dot::after {
  content: "";
  position: absolute;
  top: 12px;
  left: calc(50% + 8px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--due);
  border: 2px solid #fff;
}
.tab-cta .fab {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-top: -26px;
  border-radius: 18px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(15, 90, 70, 0.32);
  transition: transform 0.12s;
}
.tab-cta:active .fab { transform: scale(0.94); }
.tab-cta.on { color: var(--brand) !important; }

body.in-order .tabbar,
body.typing .tabbar { display: none; }

/* ---------- Temel parçalar ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.pad { padding: 18px; }
.pad-x { padding-left: 16px; padding-right: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, transform 0.08s;
}
.btn:active { transform: scale(0.98); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink-2); }
.btn.danger { color: var(--due); }
.btn.ghost.danger { border-color: #efcdc6; }
.btn.big { height: 58px; font-size: 16px; border-radius: 15px; }
.btn.sm { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn.full { width: 100%; }
.btn.armed, .icon-btn.armed { background: var(--due) !important; border-color: var(--due) !important; color: #fff !important; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink-2);
  text-decoration: none;
}
.icon-btn:hover { border-color: var(--line-2); color: var(--ink); }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn.quiet { border-color: transparent; background: transparent; color: var(--muted); }
.icon-btn.quiet:hover { color: var(--due); background: var(--due-soft); }
.icon-btn.armed { width: auto; padding: 0 12px; font-size: 13px; font-weight: 700; }

.label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.label em { font-style: normal; font-weight: 500; color: #9a9ea5; }
.field { display: block; min-width: 0; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }

.input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: #fff;
  font-size: 16px;
  font-weight: 600;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.input::placeholder { color: #a9adb3; font-weight: 500; }
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }
select.input {
  padding-right: 34px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237f848c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 13px center;
}
.money-input.derived { background: var(--surface-2); color: var(--ink-2); }

.unit-select {
  height: 38px;
  padding: 0 30px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237f848c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  font-size: 14px;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
}
.unit-select:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }

.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}
.seg button {
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-weight: 700;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.seg button.on, .seg a.on { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.seg a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  text-align: center;
  text-decoration: none;
}
.page-tabs { margin-bottom: 14px; }
textarea.input {
  height: auto;
  min-height: 92px;
  padding: 12px 14px;
  line-height: 1.4;
  resize: vertical;
}
input[type="time"].input { appearance: auto; -webkit-appearance: auto; }
.seg.small button { height: 32px; font-size: 13px; }
.seg.pay button.on[data-paid="0"], .seg.pay button.on[data-v="0"] { background: var(--due); color: #fff; }
.seg.pay button.on[data-paid="1"], .seg.pay button.on[data-v="1"] { background: var(--paid); color: #fff; }
.seg.ins button.on[data-v="1"] { background: var(--paid); color: #fff; }
.seg.ins button.on[data-v="0"] { background: var(--ink); color: #fff; }

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.badge.due { background: var(--due-soft); color: var(--due); }
.badge.paid { background: var(--paid-soft); color: var(--paid); }

.cat-badge {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--c-soft, var(--surface-2));
  color: var(--c, var(--ink-2));
}
.cat-badge.neutral { background: var(--brand-soft); color: var(--brand); }

.list > .row + .row,
.list > .row + a.row,
.list > a.row + .row,
.list .row + .row { border-top: 1px solid var(--line); }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
}
a.row { transition: background 0.12s; }
a.row:hover { background: var(--surface-2); }
.list > a.row:first-child { border-top-left-radius: inherit; border-top-right-radius: inherit; }
.list > a.row:last-child { border-bottom-left-radius: inherit; border-bottom-right-radius: inherit; }
.row-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: inherit;
  text-decoration: none;
}
.row-main b { font-size: 15px; font-weight: 700; }
.row-main small {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.link-row { margin-top: 12px; }
.link-row > .ico:last-child, .cat-tile > .ico:last-child { color: var(--muted); }

.block { margin-top: 22px; }
.block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.block-head h3 { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.card > .block-head.pad-x { padding-top: 16px; }
.link { color: var(--brand); font-size: 14px; font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

.empty { padding: 30px 18px; text-align: center; }
.empty b { display: block; margin-bottom: 4px; font-size: 15px; }
.empty span { color: var(--muted); font-size: 14px; }
.empty.small { padding: 22px 8px; }

.lead { margin: 4px 0 16px; color: var(--ink-2); font-size: 15px; }

/* ---------- Ana sayfa ---------- */

.hero { display: grid; gap: 16px; margin: 6px 0 16px; }
.hero h2 { margin-top: 4px; font-size: 30px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.hero .muted { margin-top: 6px; }

.cta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: var(--r-xl);
  background:
    radial-gradient(120% 160% at 100% 0%, rgba(58, 150, 118, 0.55) 0%, rgba(58, 150, 118, 0) 55%),
    var(--brand);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 90, 70, 0.24);
  transition: transform 0.12s, box-shadow 0.15s;
}
.cta:active { transform: scale(0.99); }
.cta:hover { box-shadow: 0 18px 36px rgba(15, 90, 70, 0.3); }
.cta-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.16);
}
.cta-text { flex: 1; min-width: 0; }
.cta b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
.cta small { display: block; margin-top: 2px; font-size: 13px; opacity: 0.82; }

.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpis:not(.four) > :last-child { grid-column: 1 / -1; }
.kpi {
  display: block;
  min-width: 0;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
}
a.kpi:hover { border-color: var(--line-2); }
.kpi span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.kpi b { display: block; margin-top: 6px; font-size: 22px; overflow: hidden; text-overflow: ellipsis; }
.kpi small { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi.due b { color: var(--due); }
.kpi.ok b { color: var(--paid); }

.cat-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.cat-row > * { grid-column: span 2; }
.cat-row > :nth-child(-n + 2) { grid-column: span 3; }
.cat-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.08s;
}
.cat-tile:hover { border-color: var(--c); box-shadow: var(--shadow); }
.cat-tile:active { transform: scale(0.985); }
.cat-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border-radius: 16px;
  background: var(--c-soft);
  color: var(--c);
}
.cat-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-text b { font-size: 17px; font-weight: 800; letter-spacing: -0.015em; }
.cat-text small { font-size: 13px; color: var(--muted); }
.cat-meta { font-size: 12px; color: var(--muted); text-align: right; line-height: 1.35; }
.cat-meta b { color: var(--ink); }
.cat-tile.compact { flex-direction: column; align-items: flex-start; gap: 12px; padding: 14px; }
.cat-tile.compact .cat-ico { width: 42px; height: 42px; border-radius: 13px; }
.cat-tile.compact .cat-text b { font-size: 15px; }
.cat-tile.compact .cat-text small { font-size: 12px; }
.cat-grid { display: grid; gap: 10px; }
.cat-tile.add-tile { border-style: dashed; border-color: var(--line-2); background: transparent; box-shadow: none; --c: var(--brand); --c-soft: var(--brand-soft); }
.cat-tile.add-tile:hover { border-color: var(--brand); background: var(--surface); }

/* ---------- Sipariş ekranı ---------- */

.order { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.order-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.order > *, .order-main > * { min-width: 0; }
.meta { padding: 14px; }
.meta-row { margin-top: 0; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.date-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 13px;
  background: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}
.date-btn .ico { color: var(--muted); }
.date-btn b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.date-btn input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  cursor: pointer;
}
.date-btn:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px var(--focus); }

.picker { padding: 14px; scroll-margin-top: 76px; }
.tabs {
  display: flex;
  gap: 6px;
  margin: 0 -14px 12px;
  padding: 0 14px 2px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-2);
  transition: background 0.15s, border-color 0.15s;
}
.tab .ico { color: var(--c); }
.tab.on { background: var(--c-soft); border-color: var(--c); color: var(--ink); }
.tab-count {
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(22, 24, 27, 0.06);
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.tabs.wide { margin: 0 -16px 12px; padding: 2px 16px; }

.search { position: relative; display: flex; align-items: center; }
.search > .ico { position: absolute; left: 15px; color: var(--muted); pointer-events: none; }
.search .input { height: 56px; padding-left: 44px; padding-right: 50px; font-size: 17px; background: var(--surface-2); }
.search .input:focus { background: #fff; }
.search .icon-btn { position: absolute; right: 11px; }

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(98px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.chip {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  transition: border-color 0.12s, background 0.12s, transform 0.08s;
}
.chip:hover { border-color: var(--line-2); }
.chip:active { transform: scale(0.96); }
.chip b { max-width: 100%; font-size: 14.5px; font-weight: 700; line-height: 1.2; overflow-wrap: break-word; }
.chip small {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chip.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.chip.has { border-color: #bfe0cc; background: var(--paid-soft); }
.chip.has small { color: var(--paid); font-weight: 700; }
.chip.add {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  border: 1.5px dashed var(--brand);
  background: #fff;
  color: var(--brand);
}
.chip.add small { color: var(--ink-2); white-space: normal; }
.chips-note {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

#composer { scroll-margin-top: 76px; }
.composer {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
  animation: rise 0.18s ease-out;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.comp-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.comp-title { flex: 1; min-width: 0; }
.comp-title small { display: block; font-size: 12px; font-weight: 700; color: var(--c); }
.comp-title h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.qty { display: flex; gap: 8px; }
.qty-input { position: relative; flex: 1; min-width: 0; }
.qty-input .input {
  height: 62px;
  padding-right: 64px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.unit-suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
}
.plus-btn {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  transition: transform 0.08s, background 0.15s;
}
.plus-btn:hover { background: #2a2d32; }
.plus-btn:active { transform: scale(0.94); }

.tape { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.tape:empty { display: none; }
.part {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.part .ico { color: var(--muted); }
.part.pending { border-style: dashed; color: var(--muted); padding-right: 12px; }
.op { font-weight: 800; color: var(--muted); }
.tape-sum { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }

.calc {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px dashed var(--line-2);
  border-radius: 13px;
  background: #fff;
  font-size: 14px;
  color: var(--ink-2);
}
.calc:empty { display: none; }
.calc b { font-size: 21px; color: var(--ink); }
.err { margin-top: 10px; color: var(--due); font-size: 14px; font-weight: 700; }
.err:empty { display: none; }
.comp-actions { display: flex; gap: 8px; margin-top: 12px; }
.comp-actions .primary { flex: 1; }
.comp-actions .ghost { height: 58px; }

.receipt { padding: 16px; scroll-margin-top: 76px; }
.receipt-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.receipt-head h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.r-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 2px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--c);
}
.r-group span { margin-left: auto; color: var(--ink-2); letter-spacing: 0; font-variant-numeric: tabular-nums; }
.r-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 8px;
  margin: 0 -8px;
  width: calc(100% + 16px);
  border: 0;
  border-bottom: 1px dashed var(--line-2);
  border-radius: 10px;
  background: transparent;
  text-align: left;
  transition: background 0.12s;
}
.r-line:hover { background: var(--surface-2); }
.r-line.on { background: var(--brand-soft); }
.r-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.r-main b { font-weight: 700; }
.r-main small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.receipt-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 16px 0;
  font-weight: 700;
  color: var(--ink-2);
}
.receipt-total b { font-size: 28px; color: var(--ink); }
.receipt-note { margin-top: 12px; }
.receipt .btn.full { margin-top: 10px; }

.order-bar {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px calc(10px + var(--safe-b));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.bar-total {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
}
.bar-total small { font-size: 12px; font-weight: 600; color: var(--muted); }
.bar-total b { font-size: 21px; }
.order-bar .btn { height: 52px; padding: 0 30px; border-radius: 15px; }
body.typing .order-bar { display: none; }

/* ---------- Listeler ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 4px 0 12px;
}
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav b { min-width: 124px; text-align: center; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }

.pills {
  display: flex;
  gap: 6px;
  margin: 0 -16px 14px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pills::-webkit-scrollbar { display: none; }
.card .pills { margin: 0 -16px 12px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-2);
}
.pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill.on .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9); }

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 4px 12px;
  font-weight: 700;
  color: var(--muted);
}
.summary-line b { font-size: 17px; color: var(--ink); }
.day-group { margin-bottom: 18px; }
.day-head { display: flex; align-items: baseline; gap: 8px; margin: 0 4px 8px; }
.day-head b { font-size: 15px; font-weight: 800; }
.day-head span { font-size: 13px; color: var(--muted); }
.day-head .amt { margin-left: auto; font-size: 14px; color: var(--ink); }

.debt-hero { padding: 20px; margin-bottom: 14px; }
.big { margin: 6px 0 4px; font-size: 36px; letter-spacing: -0.035em; }
.supplier { margin-bottom: 12px; overflow: hidden; }
.supplier-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.supplier-head .amt { font-size: 17px; }
.debt-row .amt { font-size: 15px; }
.pay-btn { background: var(--paid-soft); color: var(--paid); border-color: transparent; }
.pay-btn:hover { background: var(--paid); color: #fff; }
.supplier > .btn.full { width: calc(100% - 32px); margin: 4px 16px 16px; }

/* ---------- Rapor ---------- */

.kpis.four { margin-bottom: 12px; }
.report-grid { display: grid; gap: 12px; margin-bottom: 12px; }

.bar-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}
.bar-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.track { height: 9px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: inherit; background: var(--c); transition: width 0.3s ease; }
.bar-val { display: flex; flex-direction: column; align-items: flex-end; min-width: 92px; }
.bar-val b { font-size: 14px; }
.bar-val small { font-size: 12px; color: var(--muted); }

.daychart { display: flex; align-items: stretch; gap: 3px; height: 168px; padding-top: 6px; }
.dc-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.dc-bar {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border-radius: 5px;
  background: linear-gradient(to top, var(--surface-2), transparent);
}
.dc-bar i { display: block; width: 100%; max-width: 16px; border-radius: 5px 5px 3px 3px; background: var(--brand); }
.dc-col.today .dc-bar i { background: var(--ink); }
.dc-col:hover .dc-bar i { background: var(--brand-2); }
.dc-col span { height: 13px; font-size: 10px; font-weight: 700; color: var(--muted); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-align: left;
}
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:hover { background: var(--surface-2); }
.table tfoot td { border-bottom: 0; font-weight: 800; font-size: 15px; }
.table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.t-name { display: flex; align-items: center; gap: 10px; }
.t-name > span { display: flex; flex-direction: column; min-width: 0; }
.t-name small { font-size: 12px; color: var(--muted); }
.show-sm { display: none; }

.backup { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.backup h3 { font-size: 16px; font-weight: 800; }
.backup p { max-width: 560px; margin-top: 2px; font-size: 14px; }

/* ---------- Kalemler ---------- */

.add-item { margin-bottom: 12px; }
.add-row { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 8px; }
.add-row .btn { grid-column: 1 / -1; height: 50px; }
.hint { margin-top: 10px; font-size: 13px; color: var(--muted); }
.item-row { gap: 8px; padding: 8px 10px 8px 8px; }
.inline-edit {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  font-size: 15px;
  font-weight: 700;
  outline: none;
}
.inline-edit:hover { border-color: var(--line); }
.inline-edit:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 4px var(--focus); }
.item-use { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ---------- Bildirim ---------- */

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 18px + var(--safe-b));
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body.in-order .toast { bottom: calc(90px + var(--safe-b)); }

/* ---------- Ortak ek parçalar ---------- */

.mt { margin-top: 14px; }
.pb { padding-bottom: 16px; }
.center { text-align: center; }
.ok-text { color: var(--paid) !important; }
.warn-text { color: var(--mutfak); font-weight: 700; }
.badge.warn { background: var(--mutfak-soft); color: var(--mutfak); }
.brand-mark { display: grid; place-items: center; color: #fff; }
.link-btn {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.link-btn:hover { text-decoration: underline; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-row .pill { height: 38px; }
.pdf-btn { background: var(--surface); }
.bulk-btn { margin-bottom: 14px; height: 50px; border-style: dashed; border-color: var(--paid); color: var(--paid); }
.bulk-btn:hover { background: var(--paid-soft); border-color: var(--paid); }
.credit { margin: 26px 0 4px; text-align: center; font-size: 12px; color: var(--muted); }
.credit b { color: var(--ink-2); }
.kpis.three { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
.kpis.three > :last-child { grid-column: 1 / -1; }

.bell { position: relative; }
.bell-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid var(--bg);
  border-radius: 999px;
  background: var(--due);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}
.bell-badge:empty { display: none; }
body.in-order .bell { display: none; }
.tabbar a.has-dot[data-nav="menu"]::after { background: var(--mutfak); }

.warn-note { margin: -6px 0 12px; font-size: 13px; font-weight: 600; color: var(--mutfak); }
.warn-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-color: #f0dcb4;
  background: var(--mutfak-soft);
  color: #7a4f08;
  font-size: 14px;
  text-decoration: none;
}
.suggest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 12px;
  border: 1px dashed var(--brand);
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 700;
}
.receipt-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 10px; }

/* Ana sayfa araçları */

.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tool-tile, .menu-tile {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, transform 0.08s;
}
.tool-tile:hover, .menu-tile:hover { border-color: var(--line-2); }
.tool-tile:active, .menu-tile:active { transform: scale(0.985); }
.tool-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand);
}
.tool-tile b, .menu-tile b { font-size: 15px; font-weight: 800; }
.tool-tile small, .menu-tile small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-tile.due small, .menu-tile.due small { color: var(--due); font-weight: 700; }
.tool-tile.warn small, .menu-tile.warn small { color: var(--mutfak); font-weight: 700; }
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.menu-tile { padding: 16px; min-height: 124px; }
.about { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.about .brand-mark { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; background: var(--brand); }
.about b { font-weight: 800; }
.about small { display: block; font-size: 13px; color: var(--muted); }
.about p { margin-top: 4px; font-size: 13px; color: var(--ink-2); }

/* Bildirimler */

.note { align-items: center; }
.note-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
}
.lv-danger .note-ico { background: var(--due-soft); color: var(--due); }
.lv-warn .note-ico { background: var(--mutfak-soft); color: var(--mutfak); }
.lv-info .note-ico { background: var(--surface-2); color: var(--ink-2); }
.note .row-main small { white-space: normal; }
.note > .ico:last-child { color: var(--muted); }

/* Borç seçimi */

.sel-tools { display: flex; align-items: center; gap: 10px; margin: -4px 0 12px; font-size: 13px; }
.check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid var(--line-2);
  border-radius: 9px;
  background: #fff;
  color: transparent;
  transition: background 0.12s, border-color 0.12s;
}
.check.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.debt-row { position: relative; }
.debt-row.sel { background: var(--brand-soft); }
.debt-row .check::before { content: ""; position: absolute; inset: -8px; }
.sel-bar {
  position: fixed;
  z-index: 35;
  left: 12px;
  right: 12px;
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 16px;
  border-radius: 18px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
  animation: rise 0.18s ease-out;
}
.sel-info { flex: 1; min-width: 0; }
.sel-info small { display: block; font-size: 12px; color: #b7bbc0; }
.sel-info b { font-size: 19px; }
.sel-bar .btn.ghost { background: transparent; border-color: rgba(255, 255, 255, 0.2); color: #fff; }
.sel-bar .btn.primary { height: 48px; background: var(--paid); }
body.has-selbar #app { padding-bottom: calc(var(--tabbar-h) + 110px + var(--safe-b)); }
body.has-selbar .toast { bottom: calc(var(--tabbar-h) + 96px + var(--safe-b)); }

/* Personel */

.emp-list { display: grid; gap: 10px; }
.emp { padding: 0; overflow: hidden; }
.emp.is-paid { border-color: #cfe7d9; }
.emp-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px; color: inherit; text-decoration: none; }
.emp-top .amt { font-size: 17px; }
.avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  background: var(--salon-soft);
  color: var(--salon);
  font-size: 15px;
  font-weight: 800;
}
.emp.is-paid .avatar { background: var(--paid-soft); color: var(--paid); }
.emp-iban {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 16px;
  padding: 8px 8px 8px 12px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 13px;
}
.emp-iban code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.emp-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; }
.emp-status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.emp-status.ok { color: var(--paid); }
.emp-status.late { color: var(--due); }
.emp-status.soon { color: var(--mutfak); }
.emp-foot .seg { flex: 0 0 auto; }
.emp-foot .seg button, .row .seg button { height: 38px; padding: 0 12px; font-size: 13px; }
.left-list { margin-top: 14px; }
.left-list summary { padding: 16px; font-weight: 800; cursor: pointer; list-style: none; }
.left-list summary::-webkit-details-marker { display: none; }
.left-list summary::after { content: "Göster"; float: right; font-size: 13px; font-weight: 700; color: var(--brand); }
.left-list[open] summary::after { content: "Gizle"; }
.left-list .list { border-top: 1px solid var(--line); }

.emp-form { display: grid; gap: 12px; max-width: 720px; }
.form-card { display: block; }
.form-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 16px; font-weight: 800; }
.form-title .ico { color: var(--brand); }
.big-input { height: 58px; font-size: 24px; font-weight: 800; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 15px; letter-spacing: 0; }
.daygrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.daygrid button {
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.daygrid button.on { border-color: var(--brand); background: var(--brand); color: #fff; }
.start-row { display: flex; gap: 8px; }
.start-row .date-btn { flex: 1; min-width: 0; }
.start-row .btn { height: 50px; }
.danger-zone { display: grid; gap: 8px; margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); }

/* Gelir - gider */

.ledger-grid, .cal-layout { display: grid; gap: 12px; }
.ledger-side, .ledger-main, .cal-side, .cal-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-width: 0; }
.ledger-grid > *, .cal-layout > *, .ledger-side > *, .ledger-main > *, .cal-side > *, .cal-main > * { min-width: 0; }
.ledger-form { --tone: var(--due); }
.ledger-form.is-income { --tone: var(--paid); }
.type-seg button.on[data-type="gelir"] { background: var(--paid); color: #fff; }
.type-seg button.on[data-type="gider"] { background: var(--due); color: #fff; }
.type-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.amount-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 14px;
  padding: 0 16px;
  border: 1.5px solid var(--line-2);
  border-radius: 15px;
  background: #fff;
}
.amount-field:focus-within { border-color: var(--tone); box-shadow: 0 0 0 4px var(--focus); }
.amount-field span { font-size: 24px; font-weight: 800; color: var(--tone); }
.amount-field input {
  flex: 1;
  min-width: 0;
  height: 62px;
  border: 0;
  background: transparent;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  outline: none;
}
.ledger-form .chip-row + .label { margin-top: 14px; }
.ledger-form .chip-row .pill.on { background: var(--tone); border-color: var(--tone); }
.ledger-form .field-row { margin-top: 14px; }
.bar-row.plain { color: inherit; text-decoration: none; }
a.bar-row.plain:hover .bar-label { color: var(--brand); }
.rec-form { display: grid; gap: 0; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.rec-form .field-row:first-child { margin-top: 0; }
.list-day {
  display: flex;
  justify-content: space-between;
  padding: 10px 16px 6px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}
.list-day span { font-variant-numeric: tabular-nums; }
.led-row { width: 100%; border: 0; background: transparent; text-align: left; }
.led-row:hover, .led-row.on { background: var(--surface-2); }
.cat-badge.inc { background: var(--paid-soft); color: var(--paid); }
.cat-badge.exp { background: var(--due-soft); color: var(--due); }
.cat-badge.late { background: var(--due-soft); color: var(--due); }
.cat-badge.done { background: var(--paid-soft); color: var(--paid); }

/* Takvim */

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week { margin-bottom: 4px; }
.cal-week span { padding: 4px 0; font-size: 11px; font-weight: 800; text-align: center; color: var(--muted); }
.cal-day {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 0;
  min-height: 52px;
  padding: 6px 2px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-2);
  font-variant-numeric: tabular-nums;
}
.cal-day.blank { background: transparent; }
.cal-day.past .cal-num { color: var(--muted); }
.cal-day.today { border-color: var(--ink); }
.cal-day.on { background: var(--ink); color: #fff; }
.cal-day.on .cal-num, .cal-day.on .cal-amt { color: #fff; }
.cal-num { font-size: 14px; font-weight: 800; }
.cal-marks { display: flex; gap: 3px; height: 6px; }
.mk { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.mk.order { background: var(--brand); }
.mk.salary { background: var(--salon); }
.mk.bill { background: var(--mutfak); }
.mk.late { background: var(--due); }
.mk.done { background: #9fcfb4; }
.cal-day.on .mk.order { background: #7fd1b3; }
.cal-amt { display: none; font-size: 10px; font-weight: 700; color: var(--muted); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }

.price-row { flex-wrap: wrap; }
.price-inline { display: flex; gap: 6px; width: 100%; }
.price-inline .input { height: 44px; flex: 1; min-width: 0; }
.price-inline .btn { height: 44px; }

/* PDF merkezi */

.pdf-list { display: grid; gap: 10px; margin-bottom: 14px; }
.pdf-card { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.pdf-card .row-main small { white-space: normal; }
.pdf-card .btn { height: 42px; padding: 0 16px; }

/* Sipariş: fatura ve fiyat geçmişi */

.hist-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; color: var(--ink-2); }
.hist-hint .ico { color: var(--brand); }
.inv-box { margin-top: 10px; padding: 12px; border: 1px dashed var(--line-2); border-radius: 14px; background: var(--surface-2); }
.vat-row .pill { min-width: 56px; justify-content: center; }
.vat-calc { align-self: center; margin-left: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.seg button .ico { display: inline-block; vertical-align: -2px; margin-right: 4px; }
.head-links { display: inline-flex; gap: 12px; }
.mb { margin-bottom: 12px; }
.plain-btn { padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; }

/* Bordro */

.slip-mini { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.emp-profile { display: flex; align-items: center; gap: 14px; padding: 16px; margin-bottom: 10px; }
.emp-profile .row-main b { font-size: 18px; font-weight: 800; }
.emp-profile .row-main small { white-space: normal; }
.avatar.big { width: 56px; height: 56px; border-radius: 18px; font-size: 19px; }
.emp-iban.solo { margin: 0 0 12px; background: var(--surface); }
.emp-grid { display: grid; gap: 12px; margin-bottom: 12px; }
.slip-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.slip-row span { color: var(--ink-2); }
.slip-row.zero { opacity: 0.45; }
.slip-row.plus b { color: var(--paid); }
.slip-row.minus b { color: var(--due); }
.slip-total { display: flex; align-items: baseline; justify-content: space-between; padding: 14px 0 6px; font-weight: 800; }
.slip-total b { font-size: 26px; }
.hr-kinds { grid-auto-columns: minmax(0, 1fr); }
.hr-kinds button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 6px; font-size: 13px; }
.hr-kinds button .ico { margin: 0; }
.hr-kinds button.on { background: var(--ink); color: #fff; }
.hr-amount { margin-top: 14px; margin-bottom: 8px; --tone: var(--brand); }
.hr-form .qty { margin-bottom: 8px; }
.cat-badge.hr-avans { background: var(--mutfak-soft); color: var(--mutfak); }
.cat-badge.hr-kesinti { background: var(--due-soft); color: var(--due); }
.cat-badge.hr-mesai { background: var(--paid-soft); color: var(--paid); }
.cat-badge.hr-izin { background: var(--salon-soft); color: var(--salon); }

/* KDV */

.vat-card .block-head h3 { display: inline-flex; align-items: center; gap: 6px; }
.vat-card .block-head h3 .ico { color: var(--brand); }
.vat-card .slip-total b { font-size: 22px; }

/* Cari hesap */

.acc-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.acc-grid > *, .emp-grid > * { min-width: 0; }
.emp-grid { grid-template-columns: minmax(0, 1fr); }
.pay-form .block-head, .vat-card .block-head { flex-wrap: wrap; row-gap: 4px; }
.pay-form { --tone: var(--paid); }
.pay-form .chip-row .pill.on { background: var(--paid); border-color: var(--paid); }
.statement { overflow: hidden; }
.st-head, .st-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 84px 96px;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
}
.st-head { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 11px; font-weight: 800; color: var(--muted); }
.st-head span:not(:first-child), .st-row > .amt { text-align: right; }
.st-row { border-bottom: 1px solid var(--line); font-size: 13.5px; }
.st-row:last-child { border-bottom: 0; }
.st-row > .amt { display: flex; align-items: center; justify-content: flex-end; gap: 2px; font-size: 13.5px; }
.st-main a, .st-main > span { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.st-main b { font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-main small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-row.st-pay, .st-row.st-orderpay { background: #f6fbf8; }
.st-row .icon-btn.sm { width: 26px; height: 26px; margin-left: 2px; }

/* Çek ve senet */

.field-row.flush { margin-top: 0; }
.dir-seg button.on { background: var(--ink); color: #fff; }
.chq-form .date-btn { margin-bottom: 8px; }
.toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  text-align: left;
}
.toggle-row span:last-child { display: flex; flex-direction: column; }
.toggle-row b { font-size: 14px; }
.toggle-row small { font-size: 12px; color: var(--muted); }
.toggle-row .check { pointer-events: none; }
.toggle-row.on { border-color: var(--brand); background: var(--brand-soft); }
.cat-badge.chq-verilen { background: var(--due-soft); color: var(--due); }
.cat-badge.chq-alinan { background: var(--paid-soft); color: var(--paid); }
.chq-row.done { opacity: 0.6; }
.chq-row.soon { background: #fffaf0; }
.chq-row .row-main small { white-space: normal; }
.mk.cheque { background: #7a4fb5; }
.mk.remind { background: var(--bulasik); }
.row.done { opacity: 0.62; }

/* Fiyat geçmişi */

.price-search { margin-bottom: 12px; }
.price-item { gap: 10px; }
.spark { display: block; width: 96px; height: 34px; flex: 0 0 auto; }
.spark .ch-line { stroke-width: 2; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-y, .ch-x { fill: var(--muted); font-family: var(--font); font-size: 12px; font-weight: 600; }
.ch-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ch-area { fill: rgba(15, 90, 70, 0.08); stroke: none; }
.ch-dot { fill: #fff; stroke: var(--brand); stroke-width: 2.5; }
.chart-card { margin-bottom: 12px; }

/* Bildirim ayarı */

.notify-card { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.notify-card .note-ico { background: var(--brand-soft); color: var(--brand); }
.notify-card.on .note-ico { background: var(--paid); color: #fff; }
.notify-card .row-main { flex: 1 1 200px; }
.notify-card .row-main small { white-space: normal; }
.notify-actions { display: flex; gap: 8px; }
.notify-actions:empty { display: none; }
.notify-tip { color: var(--mutfak) !important; font-weight: 600; }
.menu-grid + .notify-card { margin-bottom: 12px; }

/* Giriş ve oturum */

body.locked .shell, body.locked .tabbar, body.locked .toast { display: none !important; }
.boot {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--bg);
  color: var(--muted);
  font-weight: 600;
}
.boot-mark, .auth-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: radial-gradient(120% 120% at 100% 0%, #2f8f70 0%, var(--brand) 60%);
  color: #fff;
  box-shadow: 0 14px 30px rgba(15, 90, 70, 0.25);
}
.boot-mark { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(0.94); opacity: 0.8; } }
.auth {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px 16px calc(20px + var(--safe-b));
  overflow-y: auto;
  background:
    radial-gradient(900px 500px at 100% -10%, rgba(47, 143, 112, 0.18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(179, 115, 14, 0.1), transparent 60%),
    var(--bg);
}
.auth-card {
  width: min(400px, 100%);
  padding: 28px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.auth-mark { width: 56px; height: 56px; border-radius: 18px; margin-bottom: 16px; }
.auth-card h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.auth-sub { margin: 2px 0 22px; color: var(--muted); font-size: 14px; }
.pass-wrap { position: relative; display: block; }
.pass-wrap .input { padding-right: 52px; }
.pass-wrap .eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; }
.pass-wrap .eye[aria-pressed="true"] { color: var(--brand); }
.remember { display: flex; align-items: center; gap: 10px; margin: 14px 0 4px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.remember input { width: 20px; height: 20px; accent-color: var(--brand); }
.auth-card .err { min-height: 20px; margin: 6px 0 8px; }
.auth-card .err:empty { display: block; }
.auth-credit { margin-top: 18px; text-align: center; font-size: 12px; color: var(--muted); }
.auth-credit b { color: var(--ink-2); }

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.sync-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--paid); }
.sync-pill.saving::before { background: var(--mutfak); animation: pulse 1s ease-in-out infinite; }
.sync-pill.offline { color: var(--due); border-color: #efcdc6; }
.sync-pill.offline::before { background: var(--due); }
@media (max-width: 639px) {
  .sync-pill { width: 28px; padding: 0; justify-content: center; font-size: 0; }
  .sync-pill::before { width: 9px; height: 9px; }
  .sync-pill.offline { width: auto; padding: 0 10px; font-size: 11px; }
}
body.in-order .sync-pill { display: none; }

.side-account { display: none; }
.account-card .account-head { display: flex; align-items: center; gap: 12px; }
.account-card .row-main small { white-space: normal; }
.sync-inline.ok { color: var(--paid); font-weight: 700; }
.sync-inline.saving { color: var(--mutfak); font-weight: 700; }
.sync-inline.offline, .sync-inline.error { color: var(--due); font-weight: 700; }
.pw-box { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.pw-box summary { cursor: pointer; font-weight: 700; color: var(--brand); list-style: none; }
.pw-box summary::-webkit-details-marker { display: none; }
.account-card { margin-top: 12px; }

/* ---------- Dar telefon ---------- */

@media (max-width: 380px) {
  #app { padding-left: 12px; padding-right: 12px; }
  .chips { grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
  .meta-row { grid-template-columns: 1fr; }
  .kpi b { font-size: 19px; }
  .bar-row { grid-template-columns: 86px minmax(0, 1fr) auto; }
}

@media (max-width: 639px) {
  .kpis:not(.four) > :last-child {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
  }
  .kpis:not(.four) > :last-child span { grid-column: 1; grid-row: 1; }
  .kpis:not(.four) > :last-child small { grid-column: 1; grid-row: 2; }
  .kpis:not(.four) > :last-child b { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
}

@media (max-width: 600px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .table th, .table td { padding: 10px 12px; }
  .toolbar { justify-content: center; }
  .toolbar .seg { width: 100%; }
  .month-nav { width: 100%; justify-content: space-between; }
}

/* ---------- Tablet ---------- */

@media (min-width: 640px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cat-row > *, .cat-row > :nth-child(-n + 2) { grid-column: auto; }
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis:not(.four) > :last-child { grid-column: auto; }
  .kpis.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .add-row { grid-template-columns: minmax(0, 1fr) 140px auto; }
  .add-row .btn { grid-column: auto; }
  .chips { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
}

/* ---------- Masaüstü ---------- */

@media (min-width: 960px) {
  body { font-size: 15px; }
  .only-desk { display: inline-flex !important; }
  .only-mobile { display: none !important; }

  .shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .side {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100vh;
    padding: 22px 16px 16px;
    overflow-y: auto;
    scrollbar-width: thin;
    background: #15171a;
    color: #e8e9e7;
  }
  .brand { display: flex; align-items: center; gap: 12px; padding: 0 6px; text-decoration: none; }
  .brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    font-size: 19px;
    font-weight: 800;
  }
  .brand-text b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: #fff; }
  .brand-text small { display: block; font-size: 12px; color: #9ba0a6; }
  .side-cta { height: 48px; justify-content: flex-start; padding: 0 16px; }
  .side-cta.on { background: var(--brand-2); }
  .side-nav { display: flex; flex-direction: column; gap: 2px; }
  .side-label { margin: 12px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: #6f747b; }
  .side-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 42px;
    padding: 0 12px;
    border-radius: 12px;
    color: #b7bbc0;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
  }
  .side-nav a:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
  .side-nav a.on { background: rgba(255, 255, 255, 0.09); color: #fff; }
  .side-count {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(226, 87, 64, 0.18);
    color: #ffb4a6;
    font-size: 12px;
  }
  .side-count:empty { display: none; }
  .side-count.alert { background: #e25740; color: #fff; font-weight: 800; }
  .side-account { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
  .side-user { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: #c9ccd0; font-size: 13px; }
  .side-user b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side-logout { padding: 6px 10px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px; background: transparent; color: #c9ccd0; font-size: 12px; font-weight: 700; }
  .side-logout:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
  .side-logout.armed { background: var(--due) !important; border-color: var(--due) !important; color: #fff !important; }
  .side-credit { padding: 0 6px; font-size: 12px; line-height: 1.4; color: #7c8188; }
  .side-credit b { display: block; color: #d6d8da; font-weight: 700; }
  .side-credit span { display: block; }
  .side-foot {
    margin-top: auto;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
  }
  .side-foot small { display: block; font-size: 12px; font-weight: 700; color: #9ba0a6; }
  .side-foot b { display: block; margin: 4px 0 2px; font-size: 20px; color: #fff; }
  .side-foot span { font-size: 12px; color: #9ba0a6; }

  .tabbar { display: none; }
  .topbar { min-height: 84px; padding: 24px 36px 14px; }
  .topbar-title h1 { font-size: 27px; }
  #app { padding: 6px 36px 56px; }
  body.in-order #app { padding-bottom: 56px; }
  .order-bar { display: none; }
  .toast { bottom: 28px; left: calc(50% + var(--side-w) / 2); }
  body.in-order .toast { bottom: 28px; }

  .hero { grid-template-columns: minmax(0, 1fr) 440px; align-items: center; margin: 10px 0 20px; }
  .hero h2 { font-size: 36px; }
  .kpis.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cat-tile:not(.compact) { flex-direction: column; align-items: flex-start; padding: 20px; min-height: 186px; }
  .cat-tile:not(.compact) .cat-meta { margin-top: auto; text-align: left; }
  .cat-tile:not(.compact) > .ico:last-child { display: none; }
  .report-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .report-grid .span2 { grid-column: 1 / -1; }
  .pills, .tabs.wide { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .card .pills { margin: 0 0 12px; }
  .toolbar { margin-top: 0; }
  .receipt .btn.primary.full { margin-top: 14px; }
}

@media (min-width: 1180px) {
  .order { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; gap: 16px; }
  .receipt { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; }
  .chips { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

@media (max-width: 639px) {
  .st-head { display: none; }
  .st-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main bal" "main move"; row-gap: 2px; }
  .st-row .st-main { grid-area: main; }
  .st-row > .amt:nth-child(2), .st-row > .amt:nth-child(3) { grid-area: move; font-size: 12.5px; }
  .st-row > .amt:nth-child(2):empty, .st-row > .amt:nth-child(3):empty { display: none; }
  .st-row > .amt:nth-child(2)::before { content: "+"; }
  .st-row > .amt:nth-child(3)::before { content: "−"; }
  .st-row > .amt:nth-child(4) { grid-area: bal; font-size: 14px; }
  .price-item .spark { width: 64px; }
}

@media (min-width: 640px) {
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .emp-grid, .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpis.three > :last-child { grid-column: auto; }
  .price-row { flex-wrap: nowrap; }
  .price-inline { width: auto; flex: 0 0 230px; }
  .cal-day { min-height: 68px; }
  .cal-amt { display: block; }
  .emp-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
  .kpis.four .kpi b { font-size: 19px; }
}

@media (min-width: 960px) {
  .sel-bar { left: calc(var(--side-w) + 36px); right: 36px; bottom: 24px; max-width: 760px; margin: 0 auto; }
  body.has-selbar #app { padding-bottom: 130px; }
  body.has-selbar .toast { bottom: 112px; }
  .ledger-grid { grid-template-columns: 400px minmax(0, 1fr); align-items: start; }
  .ledger-side { position: sticky; top: 96px; }
  .cal-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .cal-main { order: -1; }
  .cal-day { min-height: 84px; padding-top: 8px; }
  .pdf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1180px) {
  .tool-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .acc-grid { grid-template-columns: 380px minmax(0, 1fr); }
}

@media (min-width: 1280px) {
  .emp-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- PDF belgesi ---------- */

#print-root { display: none; }

.doc { color: #111; font-family: var(--font); font-size: 10.5pt; line-height: 1.4; }
.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 2px solid #111;
}
.doc-brand { display: flex; align-items: center; gap: 10px; }
.doc-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--brand); color: #fff; }
.doc-brand b { display: block; font-size: 15pt; font-weight: 800; letter-spacing: -0.02em; }
.doc-brand small { display: block; font-size: 8.5pt; color: #666; }
.doc-meta { text-align: right; }
.doc-meta h1 { font-size: 14pt; font-weight: 800; }
.doc-meta p { font-size: 9pt; color: #555; }
.doc-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; margin-bottom: 14px; }
.doc-kpis div { padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; }
.doc-kpis span { display: block; font-size: 8pt; color: #666; }
.doc-kpis b { display: block; font-size: 12pt; font-weight: 800; font-variant-numeric: tabular-nums; }
.doc-kpis .ok b { color: var(--paid); }
.doc-kpis .due b { color: var(--due); }
.doc-h2 { margin: 16px 0 6px; font-size: 11pt; font-weight: 800; }
.doc-table { width: 100%; margin-bottom: 12px; border-collapse: collapse; font-size: 9.5pt; }
.doc-table th { padding: 6px 7px; border-bottom: 1.5px solid #111; font-size: 8.5pt; text-align: left; }
.doc-table td { padding: 5px 7px; border-bottom: 1px solid #e3e3e3; vertical-align: top; }
.doc-table .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-table .ind { padding-left: 18px; }
.doc-table .mono { font-family: ui-monospace, Consolas, monospace; font-size: 8.5pt; white-space: nowrap; }
.doc-table small { color: #666; font-size: 8pt; }
.doc-table tr.grp td { background: #f3f3f1; border-bottom-color: #d6d6d6; }
.doc-table tfoot td { border-top: 1.5px solid #111; border-bottom: 0; font-weight: 800; }
.doc-table.small { width: auto; min-width: 50%; }
.doc-table .sign { width: 90px; }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.doc-cols .doc-table.small { width: 100%; }
.doc-warn { margin-bottom: 10px; padding: 6px 10px; border-left: 3px solid var(--mutfak); background: #fdf6e8; font-size: 9pt; }
.doc-note { margin: 8px 0; font-size: 9.5pt; }
.doc-empty { padding: 14px 0; color: #666; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.doc-sign div { padding-top: 6px; border-top: 1px solid #111; font-size: 9pt; text-align: center; }
.doc-foot { display: flex; justify-content: space-between; margin-top: 18px; padding-top: 8px; border-top: 1px solid #ddd; font-size: 8pt; color: #777; }

@media print {
  @page { size: A4; margin: 12mm 11mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; }
  body.printing > :not(#print-root) { display: none !important; }
  body.printing #print-root { display: block; }
  .doc-table tr { break-inside: avoid; }
  .doc-table thead { display: table-header-group; }

  body:not(.printing) .side,
  body:not(.printing) .tabbar,
  body:not(.printing) .topbar .back,
  body:not(.printing) .topbar-right,
  body:not(.printing) .bell,
  body:not(.printing) .order-bar,
  body:not(.printing) .sel-bar,
  body:not(.printing) .noprint,
  body:not(.printing) .month-nav button,
  body:not(.printing) .pills,
  body:not(.printing) .toast { display: none !important; }
  body:not(.printing) .shell { display: block; }
  body:not(.printing) .topbar { position: static; padding: 0 0 12px; background: none; backdrop-filter: none; }
  body:not(.printing) #app { max-width: none; padding: 0; }
  body:not(.printing) .card { box-shadow: none; break-inside: avoid; }
}
