/* =====================================================================
   KuruTakip — tasarım sistemi (dokunmatik tezgâh / tablet / masaüstü)
   ===================================================================== */
:root {
  --bg: #eef2f7;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #e9eef5;
  --line: #dbe3ec;
  --line-strong: #c3cfdc;
  --text: #0f1b2d;
  --text-2: #334155;
  --muted: #5f6f83;

  --brand: #0b6e8a;
  --brand-600: #0a5f78;
  --brand-700: #084d62;
  --brand-50: #e6f5f9;
  --brand-100: #cdebf3;

  --nav: #0c2236;
  --nav-2: #13304a;
  --nav-text: #c9d7e6;

  --ok: #15803d;      --ok-bg: #dcfce7;      --ok-line: #86efac;
  --warn: #a15c07;    --warn-bg: #fef3c7;    --warn-line: #fcd34d;
  --danger: #b42318;  --danger-bg: #fee4e2;  --danger-line: #fda29b;
  --info: #1d4ed8;    --info-bg: #dbeafe;    --info-line: #93c5fd;
  --violet: #6d28d9;  --violet-bg: #ede9fe;  --violet-line: #c4b5fd;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 22px;
  --tap: 56px;
  --tap-lg: 64px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .08);
  --shadow: 0 6px 20px rgba(15, 27, 45, .08), 0 2px 6px rgba(15, 27, 45, .05);
  --shadow-lg: 0 24px 60px rgba(15, 27, 45, .22);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --top-h: 68px;
  --bottom-h: 76px;
  --rail-w: 244px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: var(--brand); }
img, svg { display: block; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.ic { width: 22px; height: 22px; flex: none; stroke-width: 2; }
.ic-sm { width: 18px; height: 18px; }
.ic-lg { width: 28px; height: 28px; }
.ic-xl { width: 40px; height: 40px; }
.ic-in { display: inline-block; vertical-align: -.2em; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 22px;
  border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px; letter-spacing: .005em;
  border: 1px solid transparent;
  transition: background .15s, box-shadow .15s, transform .06s;
  white-space: nowrap; text-decoration: none; user-select: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(11, 110, 138, .25); }
.btn-primary:hover { background: var(--brand-600); }
.btn-ok { background: var(--ok); color: #fff; box-shadow: 0 6px 16px rgba(21, 128, 61, .22); }
.btn-ok:hover { background: #126b33; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-warn { background: #d97706; color: #fff; }
.btn-light { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-light:hover { background: var(--surface-2); }
.btn-soft { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.btn-soft:hover { background: var(--brand-100); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.btn-lg { min-height: var(--tap-lg); font-size: 18px; padding: 0 28px; border-radius: 14px; }
.btn-xl { min-height: 76px; font-size: 20px; border-radius: 18px; }
.btn-block { width: 100%; }
.btn-icon { width: var(--tap); padding: 0; }
.btn-icon.btn-sm { width: 44px; }

/* ---------------- Forms ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field > label, .field > .lbl {
  font-size: 14px; font-weight: 700; color: var(--text-2);
}
.field .help { font-size: 13px; color: var(--muted); }
.input, .select, .textarea,
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  font-size: 17px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea, .textarea { padding: 14px 16px; min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11, 110, 138, .16);
}
::placeholder { color: #8a99ab; }
/* Select: okunabilir, yüksek kontrast, özel ok */
select, .select, .field select {
  -webkit-appearance: none; appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%230b6e8a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 48px !important;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}
select option { background: #fff; color: #0f1b2d; font-weight: 500; padding: 10px; }
select option:checked { background: var(--brand-100); color: var(--brand-700); }
.input-group { display: flex; gap: 10px; align-items: stretch; }
.input-group > .input, .input-group > input { flex: 1; min-width: 0; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon input { padding-left: 50px !important; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Check / toggle */
.check {
  display: flex; align-items: center; gap: 14px; min-height: var(--tap);
  padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  background: #fff; font-weight: 600; cursor: pointer; user-select: none;
}
.check input { width: 24px; height: 24px; accent-color: var(--brand); flex: none; }
.check.on { border-color: var(--brand); background: var(--brand-50); }

/* Segmented / choice chips (select yerine) */
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  flex: 1 1 auto; min-height: var(--tap); padding: 0 16px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong);
  background: #fff; color: var(--text-2); font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.seg button.on { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(11, 110, 138, .25); }
.seg.seg-sm button { min-height: 44px; font-size: 15px; }
.seg.seg-inline button { flex: 0 0 auto; }
.seg.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
.seg.scroll button { flex: 0 0 auto; }

/* Picker list (büyük dokunmatik seçim listesi) */
.pick-list { display: flex; flex-direction: column; gap: 8px; max-height: 52vh; overflow: auto; padding: 2px; }
.pick-item {
  display: flex; align-items: center; gap: 14px; text-align: left; width: 100%;
  min-height: 64px; padding: 10px 16px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff;
}
.pick-item:hover { border-color: var(--brand-100); background: var(--brand-50); }
.pick-item.on { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.pick-item .t { font-weight: 700; }
.pick-item .s { font-size: 14px; color: var(--muted); }
.pick-item .grow { flex: 1; min-width: 0; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
  background: var(--brand-100); color: var(--brand-700);
}

/* ---------------- Shell ---------------- */
.shell { min-height: 100vh; padding-left: var(--rail-w); padding-bottom: calc(var(--bottom-h) + env(safe-area-inset-bottom)); }
.rail {
  position: fixed; inset: 0 auto 0 0; width: var(--rail-w); z-index: 30;
  background: var(--nav); color: var(--nav-text);
  display: flex; flex-direction: column;
  padding: 14px 12px calc(var(--bottom-h) + 12px);
  overflow-y: auto;
}
.rail-brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 18px; color: #fff; text-decoration: none; }
.logo {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, #15a5c9, #0b6e8a 60%, #084d62);
  box-shadow: 0 8px 18px rgba(21, 165, 201, .35);
}
.rail-brand b { display: block; font-size: 19px; letter-spacing: -.01em; }
.rail-brand small { display: block; font-size: 12px; color: #8fb0cb; font-weight: 600; }
.rail-group { font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #6f8ea9; padding: 16px 12px 6px; }
.rail a {
  display: flex; align-items: center; gap: 14px;
  min-height: 50px; padding: 0 14px; border-radius: 12px;
  color: var(--nav-text); text-decoration: none; font-weight: 600; font-size: 15.5px;
  position: relative;
}
.rail a:hover { background: var(--nav-2); color: #fff; }
.rail a.on { background: #fff; color: var(--nav); font-weight: 800; }
.rail a.on .ic { color: var(--brand); }
.rail a .cnt {
  margin-left: auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px;
  display: grid; place-items: center; font-size: 12.5px; font-weight: 800;
  background: #e0634f; color: #fff;
}

.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--top-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.topbar .title .pic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand);
}
.topbar h1 { font-size: 21px; font-weight: 800; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.tbtn {
  position: relative;
  width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center; color: var(--text-2);
}
.tbtn:hover { background: var(--surface-3); }
.tbtn .dot {
  position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #e0634f; color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
}
.tbtn.scan { background: var(--brand); color: #fff; width: auto; padding: 0 18px; gap: 10px; display: flex; font-weight: 800; }
.tbtn.scan:hover { background: var(--brand-600); }
.userchip {
  display: flex; align-items: center; gap: 10px; padding: 5px 12px 5px 5px; border-radius: 30px;
  border: 1px solid var(--line); background: #fff; margin-left: 4px;
}
.userchip .avatar { width: 38px; height: 38px; font-size: 14px; }
.userchip b { font-size: 14px; display: block; line-height: 1.1; }
.userchip small { font-size: 12px; color: var(--muted); display: block; }
.menu-btn { display: none; }

.content { padding: 22px 22px 32px; max-width: 1560px; margin: 0 auto; }
.content.full { max-width: none; }

/* Alt ikon çubuğu */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  height: calc(var(--bottom-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(15, 27, 45, .06);
  display: flex; justify-content: center;
}
.bottom-nav .inner { display: flex; width: 100%; max-width: 760px; }
.bottom-nav a, .bottom-nav button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 700; position: relative;
}
.bottom-nav a .ic, .bottom-nav button .ic { width: 26px; height: 26px; }
.bottom-nav a.on { color: var(--brand); }
.bottom-nav a.on::before {
  content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 4px;
  background: var(--brand); border-radius: 0 0 4px 4px;
}
.bottom-nav .fab {
  width: 68px; height: 68px; margin-top: -26px; border-radius: 22px;
  background: linear-gradient(140deg, #15a5c9, #0b6e8a); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(11, 110, 138, .4);
  border: 4px solid #fff;
}
.bottom-nav .fab .ic { width: 32px; height: 32px; }
.bottom-nav .fab-wrap { color: var(--brand); }

@media (max-width: 1180px) {
  :root { --rail-w: 96px; }
  .rail { padding: 12px 8px calc(var(--bottom-h) + 12px); }
  .rail-brand { justify-content: center; padding: 4px 0 12px; }
  .rail-brand > div:not(.logo), .rail-group { display: none; }
  .rail a { flex-direction: column; justify-content: center; gap: 4px; min-height: 66px; padding: 6px 4px; font-size: 11.5px; text-align: center; line-height: 1.15; }
  .rail a .cnt { position: absolute; top: 4px; right: 10px; margin: 0; min-width: 20px; height: 20px; font-size: 11px; padding: 0 5px; }
  .rail hr { margin: 6px 10px; }
}
@media (min-width: 761px) {
body.compact { --rail-w: 96px; }
body.compact .rail { padding: 12px 8px calc(var(--bottom-h) + 12px); }
body.compact .rail-brand { justify-content: center; padding: 4px 0 12px; }
body.compact .rail-brand > div:not(.logo), body.compact .rail-group { display: none; }
body.compact .rail a { flex-direction: column; justify-content: center; gap: 4px; min-height: 66px; padding: 6px 4px; font-size: 11.5px; text-align: center; line-height: 1.15; }
body.compact .rail a .cnt { position: absolute; top: 4px; right: 10px; margin: 0; min-width: 20px; height: 20px; font-size: 11px; padding: 0 5px; }
}
body.kds-full { --rail-w: 0px; }

@media (max-width: 760px) {
  :root { --rail-w: 0px; --top-h: 62px; }
  .rail { width: 280px; transform: translateX(-105%); transition: transform .22s ease; box-shadow: var(--shadow-lg); padding-bottom: 24px; }
  .rail.open { transform: none; }
  .rail-brand { justify-content: flex-start; padding: 6px 8px 18px; }
  .rail-brand > div:not(.logo), .rail-group { display: block; }
  .rail a { flex-direction: row; justify-content: flex-start; min-height: 52px; padding: 0 14px; font-size: 15.5px; text-align: left; gap: 14px; }
  .rail a .cnt { position: static; margin-left: auto; }
  .menu-btn { display: grid; }
  .topbar { padding: 0 10px; gap: 6px; }
  .topbar .title .pic { display: none; }
  .topbar h1 { font-size: 18px; }
  .userchip > div:not(.avatar), .tbtn.scan span, .hide-sm { display: none !important; }
  .userchip { padding: 4px; }
  .tbtn.scan { padding: 0 14px; }
  .content { padding: 14px 12px 24px; }
}
.scrim { position: fixed; inset: 0; background: rgba(12, 34, 54, .45); z-index: 25; }

/* ---------------- Cards & layout ---------------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 20px;
}
.card + .card { margin-top: 16px; }
.card-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.card-h .ic { color: var(--brand); }
.card-h .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.bold { font-weight: 800; }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.right-t { text-align: right; }
.nowrap-t { white-space: nowrap; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(360px, 1fr); gap: 18px; align-items: start; }
.split-even { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1024px) { .split, .split-even { grid-template-columns: 1fr; } }
.split > *, .split-even > * { min-width: 0; }
.cartbar { display: none; }
@media (max-width: 1024px) {
  .cartbar {
    position: fixed; left: 12px; right: 12px; z-index: 35;
    bottom: calc(var(--bottom-h) + 10px + env(safe-area-inset-bottom));
    display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 18px;
    border-radius: 16px; background: var(--nav); color: #fff; font-weight: 800; box-shadow: var(--shadow-lg);
  }
  .cartbar.hidden { display: none; }
}
.sticky-col { position: sticky; top: calc(var(--top-h) + 16px); }
@media (max-width: 1024px) { .sticky-col { position: static; } }

/* Stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm); min-height: 92px; transition: border-color .15s, transform .1s;
}
a.stat:hover { border-color: var(--brand-100); transform: translateY(-1px); }
.stat .si { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--brand-50); color: var(--brand); }
.stat .v { font-size: clamp(19px, 1.7vw, 26px); white-space: nowrap; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .l { font-size: 13.5px; color: var(--muted); font-weight: 700; }
.stat.ok .si { background: var(--ok-bg); color: var(--ok); }
.stat.warn .si { background: var(--warn-bg); color: var(--warn); }
.stat.danger .si { background: var(--danger-bg); color: var(--danger); }
.stat.info .si { background: var(--info-bg); color: var(--info); }
.stat.violet .si { background: var(--violet-bg); color: var(--violet); }
.stat.danger .v { color: var(--danger); }

/* Big action tiles */
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.action {
  min-height: 118px; border-radius: var(--radius); padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  text-decoration: none; color: #fff; font-weight: 800; font-size: 17px;
  background: var(--brand); box-shadow: var(--shadow);
}
.action .ic { width: 34px; height: 34px; }
.action small { display: block; font-weight: 600; font-size: 13px; opacity: .85; }
.action.c2 { background: #15803d; }
.action.c3 { background: #b45309; }
.action.c4 { background: #6d28d9; }
.action.c5 { background: #1e40af; }
.action.c6 { background: #334155; }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px;
  border-radius: 14px; font-size: 13px; font-weight: 800; white-space: nowrap;
  background: var(--surface-3); color: var(--text-2); border: 1px solid var(--line);
}
.badge .ic { width: 15px; height: 15px; }
.b-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.b-warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.b-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.b-info { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.b-violet { background: var(--violet-bg); color: var(--violet); border-color: var(--violet-line); }
.b-brand { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-100); }
.b-dark { background: #1e293b; color: #fff; border-color: #1e293b; }

/* Tabs */
.tabs { display: flex; gap: 6px; padding: 5px; background: var(--surface-3); border-radius: 14px; margin-bottom: 16px; overflow-x: auto; }
.tabs button {
  flex: 1 0 auto; min-height: 48px; padding: 0 18px; border-radius: 10px;
  font-weight: 700; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.tabs button.on { background: #fff; color: var(--brand-700); box-shadow: var(--shadow-sm); }
.tabs button .n { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--line); font-size: 12.5px; display: grid; place-items: center; }
.tabs button.on .n { background: var(--brand); color: #fff; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th {
  text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em;
  color: var(--muted); font-weight: 800; padding: 12px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 15px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: default; }
.tbl tbody tr.click { cursor: pointer; }
.tbl tbody tr.click:hover td { background: var(--brand-50); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .acts { display: flex; gap: 6px; justify-content: flex-end; }

/* List rows (mobil dostu) */
.list { display: flex; flex-direction: column; gap: 10px; }
.li {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.li.click { cursor: pointer; }
.li.click:hover { border-color: var(--brand-100); background: var(--brand-50); }
.li .t { font-weight: 800; }
.li .s { font-size: 14px; color: var(--muted); }

.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.empty .ic { width: 44px; height: 44px; margin: 0 auto 10px; color: #9fb0c2; }

/* ---------------- Kabul: ürün ızgarası ---------------- */
.cat-bar { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; }
.cat-bar button {
  flex: none; min-height: 50px; padding: 0 18px; border-radius: 25px; font-weight: 700;
  background: #fff; border: 1.5px solid var(--line-strong); color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.cat-bar button.on { background: var(--nav); border-color: var(--nav); color: #fff; }
.ptiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.ptile {
  position: relative; text-align: left;
  min-height: 150px; padding: 14px; border-radius: var(--radius);
  background: #fff; border: 1.5px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--shadow-sm); transition: border-color .12s, transform .06s;
}
.ptile:hover { border-color: var(--brand-100); }
.ptile:active { transform: scale(.98); }
.ptile .pi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.ptile .pi .ic { width: 28px; height: 28px; }
.ptile .nm { font-weight: 800; font-size: 16px; line-height: 1.25; }
.ptile .pr { font-weight: 800; color: var(--brand-700); font-size: 17px; margin-top: auto; font-variant-numeric: tabular-nums; }
.ptile .meta { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.ptile .meta .ic { width: 14px; height: 14px; }
.ptile .qty-badge {
  position: absolute; top: 10px; right: 10px; min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: 17px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 4px 10px rgba(11, 110, 138, .35);
}
.ptile.in { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand), var(--shadow-sm); }

.cart-lines { display: flex; flex-direction: column; gap: 8px; }
.cline {
  display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
}
.cline .nm { font-weight: 800; }
.cline .sm { font-size: 13px; color: var(--muted); }
.cline .price { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.qty { display: flex; align-items: center; gap: 4px; }
.qty button {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--line-strong); color: var(--text);
}
.qty button:active { background: var(--brand-50); }
.qty b { min-width: 40px; text-align: center; font-size: 19px; font-variant-numeric: tabular-nums; }
.totals { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 4px; }
.totals .r { display: flex; justify-content: space-between; font-weight: 600; color: var(--text-2); }
.totals .g { font-size: 26px; font-weight: 800; color: var(--text); letter-spacing: -.02em; }

/* ETA kutusu */
.eta {
  border-radius: var(--radius); padding: 16px; margin: 6px 0 14px;
  background: linear-gradient(135deg, #0c2236, #0b4f66); color: #fff;
}
.eta .lbl { font-size: 13px; font-weight: 700; color: #a9d6e5; display: flex; align-items: center; gap: 8px; }
.eta .big { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 8px; }
.eta .meter { height: 10px; border-radius: 5px; background: rgba(255, 255, 255, .18); overflow: hidden; }
.eta .meter i { display: block; height: 100%; background: #5eead4; border-radius: 5px; }
.eta .meter i.w { background: #fbbf24; }
.eta .meter i.d { background: #f87171; }
.eta .facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 13px; color: #cfe6ef; }
.eta .facts b { color: #fff; }

/* ---------------- Üretim (mutfak ekranı) ---------------- */
.kds-top { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.kds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1100px) { .kds { grid-template-columns: 1fr; } }
.kcol { background: var(--surface-3); border-radius: var(--radius-lg); padding: 12px; min-height: 240px; }
.kcol-h { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; font-weight: 800; font-size: 17px; }
.kcol-h .n { margin-left: auto; min-width: 34px; height: 34px; border-radius: 17px; display: grid; place-items: center; background: #fff; font-size: 15px; }
.kcol.q .kcol-h .ic { color: var(--info); }
.kcol.w .kcol-h .ic { color: #d97706; }
.kcol.d .kcol-h .ic { color: var(--ok); }
.kcards { display: flex; flex-direction: column; gap: 12px; }
.ticket {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); overflow: hidden; border-top: 6px solid var(--info);
}
.ticket.late { border-top-color: var(--danger); }
.ticket.soon { border-top-color: #f59e0b; }
.ticket.acil { box-shadow: 0 0 0 3px rgba(180, 35, 24, .35), var(--shadow); }
.ticket-h { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px 8px; }
.ticket-h > div:first-child { min-width: 0; flex: 1; }
.ticket-h .fis { font-weight: 800; font-size: 17px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ticket-h .due { flex: 0 0 auto; }
.ticket-h .who { font-size: 14px; color: var(--muted); font-weight: 600; }
.ticket-h .due { margin-left: auto; text-align: right; }
.ticket-h .due b { display: block; font-size: 18px; font-variant-numeric: tabular-nums; }
.ticket-h .due small { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.ticket.late .due b { color: var(--danger); }
.ticket .tnote { margin: 0 14px 8px; padding: 8px 10px; border-radius: 10px; background: var(--warn-bg); color: #7a4504; font-size: 14px; font-weight: 600; }
.titems { display: flex; flex-direction: column; }
.titem {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding: 10px 14px; border-top: 1px dashed var(--line);
}
.titem .grow { min-width: 150px; }
.titem .tact { display: flex; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.titem .nm { font-weight: 800; font-size: 16px; }
.titem .sm { font-size: 13px; color: var(--muted); font-weight: 600; }
.titem .go {
  min-height: 58px; min-width: 124px; padding: 0 16px; border-radius: 14px;
  font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #fff;
  background: var(--brand);
}
.titem .go.start { background: #d97706; }
.titem .go.done { background: var(--ok); }
.titem .go.back { background: #fff; color: var(--text-2); border: 1.5px solid var(--line-strong); min-width: 58px; }
.titem.st-hazir .nm { text-decoration: line-through; color: var(--muted); }
.timer { font-variant-numeric: tabular-nums; font-weight: 800; }
.tfoot { display: flex; gap: 8px; padding: 10px 14px 14px; }
.tfoot .btn { flex: 1; }
.kds-full .rail { display: none; }
.kds-full .bottom-nav { display: none; }
.kds-full .shell { padding-bottom: 0; }

/* ---------------- Modal ---------------- */
.modal-back {
  position: fixed; inset: 0; z-index: 100; background: rgba(12, 34, 54, .55);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  animation: fade .15s ease;
}
.modal {
  width: min(640px, 100%); max-height: calc(100vh - 36px); overflow: auto;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  animation: pop .18s ease;
}
.modal.wide { width: min(980px, 100%); }
.modal.narrow { width: min(460px, 100%); }
.modal-h {
  position: sticky; top: 0; z-index: 2; background: #fff;
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.modal-h h3 { font-size: 19px; font-weight: 800; flex: 1; min-width: 0; }
.modal-h .pic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.modal-b { padding: 18px; }
.modal-f {
  position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line);
  display: flex; gap: 10px; padding: 14px 18px; flex-wrap: wrap;
}
.modal-f .btn { flex: 1 1 140px; }
@media (max-width: 640px) {
  .modal-back { padding: 0; align-items: flex-end; }
  .modal { max-height: 94vh; border-radius: 22px 22px 0 0; width: 100%; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }

/* Toast */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 200;
  bottom: calc(var(--bottom-h) + 18px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: 14px; font-weight: 700; font-size: 16px;
  background: #0f1b2d; color: #fff; box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 24px); animation: pop .2s ease;
}
.toast.ok { background: #14532d; }
.toast.err { background: #7f1d1d; }

/* Scanner */
.scanbox { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b1523; aspect-ratio: 4 / 3; }
.scanbox video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scanbox .frame {
  position: absolute; inset: 14% 20%; border-radius: 22px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35);
  border: 4px solid rgba(94, 234, 212, .95);
}
.scanbox .laser { position: absolute; left: 22%; right: 22%; height: 3px; background: #5eead4; top: 50%; animation: laser 1.8s ease-in-out infinite; box-shadow: 0 0 12px #5eead4; }
.scanbox .msg { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff; font-weight: 700; text-shadow: 0 1px 4px #000; }
@keyframes laser { 0%, 100% { top: 22%; } 50% { top: 76%; } }

/* Timeline */
.tl { list-style: none; position: relative; padding-left: 8px; }
.tl li { position: relative; padding: 0 0 18px 36px; }
.tl li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.tl li:last-child::before { display: none; }
.tl .dot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--line); display: grid; place-items: center; color: #fff; }
.tl .dot .ic { width: 14px; height: 14px; stroke-width: 3; }
.tl li.done .dot { background: var(--ok); }
.tl li.now .dot { background: var(--brand); box-shadow: 0 0 0 5px var(--brand-100); }
.tl .t { font-weight: 800; }
.tl .s { font-size: 13.5px; color: var(--muted); }

/* Progress steps (yatay) */
.steps { display: flex; gap: 6px; }
.steps .st { flex: 1; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.steps .st i { display: block; height: 8px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.steps .st.done i { background: var(--ok); }
.steps .st.now i { background: var(--brand); }
.steps .st.now { color: var(--brand-700); }

/* Capacity bars */
.capbars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; }
.capbar { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.capbar .bar { width: 100%; max-width: 64px; height: 170px; border-radius: 12px; background: var(--surface-3); position: relative; overflow: hidden; }
.capbar .bar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--brand); border-radius: 12px 12px 0 0; }
.capbar .bar i.w { background: #f59e0b; }
.capbar .bar i.d { background: var(--danger); }
.capbar .bar.off { background: repeating-linear-gradient(45deg, var(--surface-3), var(--surface-3) 6px, #fff 6px, #fff 12px); }
.capbar .d { font-weight: 800; font-size: 14px; }
.capbar .p { font-size: 12.5px; color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.meter { height: 12px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.meter i.w { background: #f59e0b; }
.meter i.d { background: var(--danger); }

/* Code display */
.qr-box { display: flex; gap: 16px; align-items: center; padding: 14px; border: 1px dashed var(--line-strong); border-radius: var(--radius); background: var(--surface-2); }
.qr-box svg { width: 120px; height: 120px; background: #fff; border-radius: 8px; padding: 6px; }

/* Keypad (şifre / tutar) */
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 15px; }
.kv dt { color: var(--muted); font-weight: 700; }
.kv dd { font-weight: 700; }

/* ---------------- Login ---------------- */
.login {
  min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr;
  background: var(--bg);
}
.login-art {
  position: relative; overflow: hidden; color: #fff; padding: 36px 44px;
  display: flex; flex-direction: column;
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(21, 165, 201, .45), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(8, 77, 98, .9), transparent 60%),
    linear-gradient(160deg, #0c2236, #0a3a4f);
}
.login-art .top, .login-art .bottom { display: flex; align-items: center; gap: 14px; }
.login-art .top b { font-size: 24px; letter-spacing: -.02em; }
.login-art .top small { display: block; color: #9cc3d6; font-weight: 600; }
.login-art .clock { margin-left: auto; text-align: right; font-weight: 800; font-size: 26px; font-variant-numeric: tabular-nums; }
.login-art .clock small { display: block; font-size: 13px; color: #9cc3d6; font-weight: 600; }
.login-art .mid { margin: auto 0; padding: 30px 0; }
.login-art h2 { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.08; letter-spacing: -.03em; max-width: 14ch; }
.login-art p { color: #b9d6e4; font-size: 18px; margin-top: 14px; max-width: 40ch; }
.feat { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; max-width: 620px; }
.feat div { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); font-weight: 700; }
.feat .ic { color: #5eead4; }
.login-art .bottom { gap: 10px; flex-wrap: wrap; }
.login-art .bottom a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; padding: 12px 6px;
  border-radius: 16px; color: #dbeef6; text-decoration: none; font-size: 13px; font-weight: 700;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
}
.login-art .bottom a .ic { width: 28px; height: 28px; color: #5eead4; }
.login-form { display: flex; flex-direction: column; justify-content: center; padding: 40px clamp(20px, 5vw, 72px); }
.login-card { width: 100%; max-width: 520px; margin: 0 auto; }
.login-card .logo { width: 72px; height: 72px; border-radius: 22px; margin-bottom: 20px; }
.login-card .logo .ic { width: 38px; height: 38px; }
.login-card h1 { font-size: 34px; letter-spacing: -.025em; }
.login-card .lead { color: var(--muted); font-size: 17px; margin: 6px 0 28px; }
.login-card .field input { min-height: 68px; font-size: 20px; border-radius: 16px; }
.login-card .field > label { font-size: 15px; }
.login-card .btn-login { min-height: 72px; font-size: 21px; border-radius: 18px; width: 100%; margin-top: 6px; }
.pw-wrap { position: relative; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); }
.login-err { display: flex; gap: 10px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--danger-bg); color: var(--danger); font-weight: 700; margin-bottom: 16px; }
.login-foot { display: flex; justify-content: center; gap: 26px; margin-top: 30px; }
.login-foot a { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.login-foot a span { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--brand); box-shadow: var(--shadow-sm); }
@media (max-width: 980px) {
  .login { grid-template-columns: 1fr; }
  .login-art { padding: 22px 20px; }
  .login-art .mid { padding: 22px 0 8px; }
  .login-art .mid p, .feat, .login-art .bottom { display: none; }
  .login-art h2 { font-size: 28px; max-width: none; }
  .login-form { padding: 28px 18px 40px; justify-content: flex-start; }
}

/* ---------------- Public tracking page ---------------- */
.track-body { background: linear-gradient(180deg, #0c2236 0, #0c2236 260px, var(--bg) 260px); min-height: 100vh; }
.track-wrap { max-width: 620px; margin: 0 auto; padding: 18px 16px 40px; }
.track-head { display: flex; align-items: center; gap: 12px; color: #fff; padding: 6px 2px 18px; }
.track-head b { font-size: 19px; }
.track-head small { display: block; color: #9cc3d6; font-weight: 600; }
.track-hero { text-align: center; padding: 22px 18px; }
.track-hero .ring { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.track-hero .ring .ic { width: 46px; height: 46px; }
.track-hero .ring.ok { background: var(--ok-bg); color: var(--ok); }
.track-hero h1 { font-size: 26px; letter-spacing: -.02em; }
.track-hero p { color: var(--muted); font-size: 16px; margin-top: 4px; }

.stats.kst { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }


/* ---------------- v3 ekleri ---------------- */
.branch-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; margin-right: 4px;
  border-radius: 20px; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100);
  font-weight: 800; font-size: 13.5px; letter-spacing: .02em; white-space: nowrap;
}
.branch-chip .ic { width: 16px; height: 16px; }
.app-foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  max-width: 1560px; margin: 0 auto; padding: 10px 22px 16px; color: var(--muted); font-size: 12.5px; font-weight: 600;
}
.app-foot .demsoft, .demsoft-tag { font-weight: 800; color: var(--text-2); letter-spacing: .02em; margin-left: auto; }
.login-form { position: relative; }
.login-form .demsoft-tag { position: absolute; right: 22px; bottom: 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) {
  .branch-chip span { display: none; }
  .branch-chip { padding: 0 10px; }
  .app-foot { padding: 8px 12px 14px; }
}
.elines { display: flex; flex-direction: column; gap: 8px; }
.eline {
  display: grid; grid-template-columns: minmax(160px, 1fr) auto 150px 110px auto; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2);
}
.eline .qin, .field .eline .qin { width: 64px !important; min-height: 48px !important; padding: 0 !important; height: 48px; text-align: center; font-weight: 800; font-size: 17px; border: 1.5px solid var(--line-strong); border-radius: 10px; }
.eline .pin { display: flex; align-items: center; gap: 6px; }
.eline .pin input, .field .eline .pin input { width: 90px !important; min-height: 48px !important; height: 48px; text-align: right; font-weight: 800; font-size: 16px; padding: 0 10px; border: 1.5px solid var(--line-strong); border-radius: 10px; }
.eline .pin span { font-size: 12px; color: var(--muted); font-weight: 700; }
.eline .lt { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
  .eline { grid-template-columns: 1fr auto; }
  .eline .grow { grid-column: 1 / -1; }
}
.qty button:disabled, .eline input:disabled { opacity: .5; }
.sumrow { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.sumbox { padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.sumbox .l { font-size: 13px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sumbox .v { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; margin-top: 2px; }
.sumbox.ok .v { color: var(--ok); } .sumbox.danger .v { color: var(--danger); } .sumbox.info .v { color: var(--info); } .sumbox.violet .v { color: var(--violet); } .sumbox.warn .v { color: var(--warn); }
.tbl tr.borc td.b { color: var(--danger); font-weight: 700; }
.tbl tr.alacak td.a { color: var(--ok); font-weight: 700; }
.counter { font-size: 13px; font-weight: 700; color: var(--muted); }
.counter.w { color: var(--warn); } .counter.d { color: var(--danger); }
.sms-prev { background: var(--surface-2); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; }
pre.xml { max-height: 60vh; overflow: auto; background: #0f1b2d; color: #d6e6f5; padding: 14px; border-radius: 12px; font-size: 12px; line-height: 1.45; }

/* ---------------- Mobil ince ayar (dosya sonunda: önceliği yüksek) ---------------- */
@media (max-width: 760px) {
  .stats, .stats.kst { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 12px; min-height: 0; gap: 10px; }
  .stat .si { width: 40px; height: 40px; border-radius: 12px; }
  .stat .si .ic { width: 20px; height: 20px; }
  .stat .v { font-size: 18px !important; }
  .stat .l { font-size: 12.5px; }
  .card { padding: 16px; border-radius: 18px; }
  .kv { grid-template-columns: 118px 1fr; }
  .kds-top .btn-icon { width: 50px; min-height: 50px; }
}

/* ---------------- Print ---------------- */
.print-only { display: none; }
@media print {
  body { background: #fff !important; }
  .no-print, .rail, .topbar, .bottom-nav, .toast, .modal-back { display: none !important; }
  .shell { padding: 0 !important; }
  .content { padding: 0 !important; max-width: none; }
  .print-only { display: block; }
}
