/* Route59servis — tasarım sistemi */
:root {
  --bg: #f3f4f6;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --line: #e4e6eb;
  --ink: #14171c;
  --muted: #6b7280;
  --brand: #e2580b;
  --brand-strong: #c24a07;
  --brand-soft: #fff1e6;
  --on-brand: #ffffff;
  --side: #15181d;
  --side-2: #1f232a;
  --side-ink: #e6e8ec;
  --side-muted: #9aa1ad;
  --ok: #15803d;   --ok-soft: #e7f6ec;
  --info: #1d4ed8; --info-soft: #e8efff;
  --warn: #b45309; --warn-soft: #fef3e2;
  --bad: #c81e1e;  --bad-soft: #fdecec;
  --neutral: #4b5563; --neutral-soft: #eef0f3;
  --done: #334155; --done-soft: #e6ebf1;
  --violet: #6d28d9; --violet-soft: #f1eafe;
  --teal: #0f766e; --teal-soft: #e2f5f2;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow-lg: 0 20px 50px rgba(16, 24, 40, .25);
  --radius: 12px;
  --radius-sm: 8px;
  --tab-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1014; --surface: #171a20; --surface-2: #1d2128; --line: #2a2f38;
    --ink: #f1f3f6; --muted: #9ca3af;
    --brand: #fb8a3c; --brand-strong: #fdab6f; --brand-soft: #3a2314; --on-brand: #1a0d03;
    --side: #0a0c0f; --side-2: #15181d;
    --ok: #4ade80; --ok-soft: #13301f; --info: #8ab4ff; --info-soft: #172442;
    --warn: #fbbf24; --warn-soft: #36270c; --bad: #f87171; --bad-soft: #3a1618;
    --neutral: #c3c8d0; --neutral-soft: #262a31; --done: #cbd5e1; --done-soft: #232a35;
    --violet: #c4b5fd; --violet-soft: #2a2140; --teal: #5eead4; --teal-soft: #11302c;
    --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 20px 50px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1014; --surface: #171a20; --surface-2: #1d2128; --line: #2a2f38;
  --ink: #f1f3f6; --muted: #9ca3af;
  --brand: #fb8a3c; --brand-strong: #fdab6f; --brand-soft: #3a2314; --on-brand: #1a0d03;
  --side: #0a0c0f; --side-2: #15181d;
  --ok: #4ade80; --ok-soft: #13301f; --info: #8ab4ff; --info-soft: #172442;
  --warn: #fbbf24; --warn-soft: #36270c; --bad: #f87171; --bad-soft: #3a1618;
  --neutral: #c3c8d0; --neutral-soft: #262a31; --done: #cbd5e1; --done-soft: #232a35;
    --violet: #c4b5fd; --violet-soft: #2a2140; --teal: #5eead4; --teal-soft: #11302c;
  --shadow: 0 1px 2px rgba(0,0,0,.4); --shadow-lg: 0 20px 50px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 650; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hidden { display: none !important; }

/* ---------- Kabuk ---------- */
.shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar {
  width: 248px; flex: none; background: var(--side); color: var(--side-ink);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; height: 100dvh;
  padding: 18px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.2px; }
.brand-name span { color: var(--brand); }
.brand-sub { font-size: 11px; color: var(--side-muted); letter-spacing: .4px; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: var(--side-muted); font-weight: 550; font-size: 14.5px;
}
.nav a:hover { background: var(--side-2); color: var(--side-ink); }
.nav a.active { background: var(--side-2); color: #fff; }
.nav a.active svg { color: var(--brand); }
.nav .count { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.userbox { border-top: 1px solid var(--side-2); padding: 12px 8px 0; display: flex; align-items: center; gap: 10px; }
.userbox .who { flex: 1; min-width: 0; }
.userbox .who b { display: block; font-size: 14px; }
.userbox .who small { color: var(--side-muted); font-size: 12px; }
.userbox button { background: none; border: 0; color: var(--side-muted); cursor: pointer; padding: 8px; border-radius: 8px; }
.userbox button:hover { background: var(--side-2); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* Sol menü sayfa kaydırılınca kaymaz (sabit) */
@media (min-width: 900px) {
  .shell > .sidebar { position: fixed; left: 0; top: 0; bottom: 0; height: auto; z-index: 25; overflow: hidden; }
  .shell > .main { margin-left: 248px; }
}
.topbar {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 10px; padding: 14px 28px; min-height: 64px;
  border-bottom: 1px solid transparent;
}
.topbar .title { flex: 1; min-width: 0; }
.topbar .back { display: inline-flex; }
.topbar .actions { display: flex; gap: 8px; }
/* "Yeni servis" düğmesi: başlıkla aynı hizada, sayfanın ortasında */
.topbar .center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.topbar .center:empty { display: none; }
.topbar .center .btn { height: 42px; padding: 0 20px; box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,.08)); }
.notif-btn { position: relative; }
.notif-btn .count { position: absolute; top: 2px; right: 0; background: var(--bad); color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; line-height: 1; }
.notif-list .item.unread { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.notif-list .item.unread .t::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: middle; }
.photo-btns { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 16px; }
.temp-plate { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.view { padding: 8px 28px 40px; max-width: 1240px; width: 100%; }
.demo-banner {
  background: var(--warn-soft); color: var(--warn); font-size: 13px; padding: 8px 28px; font-weight: 550;
  display: flex; gap: 8px; align-items: center;
}
.tabbar { display: none; }
.mobile-brand { display: none; }

@media (max-width: 899px) {
  .sidebar { display: none; }
  .topbar { padding: 10px 16px; min-height: 56px; padding-top: max(10px, env(safe-area-inset-top)); }
  .topbar .back { display: inline-flex; }
  .mobile-brand { display: flex; }
  .view { padding: 4px 16px calc(var(--tab-h) + 28px + env(safe-area-inset-bottom)); }
  .demo-banner { padding: 8px 16px; }
  h1 { font-size: 19px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line);
    height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    font-size: 11px; font-weight: 600; color: var(--muted); position: relative;
  }
  .tabbar a.active { color: var(--brand); }
  .tabbar a .dot { position: absolute; top: 8px; left: calc(50% + 6px); background: var(--bad); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 99px; display: grid; place-items: center; padding: 0 4px; font-weight: 700; }
  /* Ortadaki "Yeni kayıt" düğmesi diğerleriyle aynı hizada */
  .tabbar a.fab-tab svg { background: var(--brand); color: var(--on-brand); border-radius: 10px; padding: 5px; width: 32px; height: 32px; margin: -5px 0; }
  .topbar .center { display: none; }
  .topbar:has(.center.keep) { flex-wrap: wrap; }
  .topbar .center.keep { display: block; position: static; transform: none; order: 10; flex: 1 0 100%; overflow-x: auto; padding: 2px 0 2px; }
  .topbar .center.keep .btn { height: 38px; padding: 0 14px; box-shadow: none; }
}

/* ---------- Bileşenler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer;
  white-space: nowrap; transition: background .12s, border-color .12s, transform .05s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg.i { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--neutral-soft); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); border-color: var(--bad-soft); }
.btn-wa { background: #1f9d55; border-color: #1f9d55; color: #fff; }
.btn-wa:hover { background: #17834a; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-icon { width: 40px; padding: 0; }
.btn-sm.btn-icon { width: 34px; }
.btn-block { width: 100%; }
.btn-lg { height: 48px; font-size: 15px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); outline: none; transition: border-color .12s, box-shadow .12s;
  font-size: 15px;
}
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.input-icon { position: relative; }
.input-icon svg.i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 18px; height: 18px; }
.input-icon .input { padding-left: 38px; }
.check { display: flex; gap: 10px; align-items: center; cursor: pointer; font-weight: 500; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.card-h h2 { flex: 1; }
.card-b { padding: 16px; }
.card + .card { margin-top: 16px; }
.grid > .card, .stack > .card, .cols > .card, .hstack > .card { margin-top: 0; }
.input::placeholder { text-transform: none; font-weight: 400; letter-spacing: 0; color: var(--muted); }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.hstack { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .g2, .g3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .g4 { gap: 10px; }
  .hide-m { display: none !important; }
  .item.rec { flex-wrap: wrap; row-gap: 6px; }
  .item.rec .main-col { flex: 1 1 140px; }
  .item.rec .end { flex-direction: row-reverse; justify-content: space-between; align-items: center; width: 100%; }
  .item.rec .end .xs { max-width: 70%; }
  .item { padding: 12px 14px; gap: 10px; }
  .item .end .xs { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .actions .btn > span { display: none; }
  .topbar .actions .btn { width: 40px; padding: 0; }
  .table th, .table td { padding: 9px 10px; }
  .kv { grid-template-columns: 110px 1fr; }
}
html, body { overflow-x: hidden; }

.stat { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.stat .lbl { font-size: 13px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.stat .val { font-size: 26px; font-weight: 750; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.stat .sub { font-size: 12px; color: var(--muted); }
a.stat:hover, button.stat:hover { background: var(--surface-2); }
button.card.stat { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
button.card.stat:hover { border-color: var(--brand); }
.stat .more { font-size: 12px; font-weight: 650; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; margin-top: 2px; }
.stat .more svg.i { width: 14px; height: 14px; }
tr.rowlink { cursor: pointer; }
tr.rowlink:hover td { background: var(--surface-2); }
@media (max-width: 640px) { .stat { padding: 12px; } .stat .val { font-size: 21px; } }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.b-neutral { background: var(--neutral-soft); color: var(--neutral); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-done { background: var(--done-soft); color: var(--done); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-violet { background: var(--violet-soft); color: var(--violet); }
.b-teal { background: var(--teal-soft); color: var(--teal); }
.b-brand { background: var(--brand-soft); color: var(--brand); }

/* Türk plakası */
.plate {
  display: inline-flex; align-items: stretch; border: 1.5px solid #111; border-radius: 5px; background: #fff; color: #111;
  font-weight: 750; font-size: 13.5px; letter-spacing: .6px; height: 26px; overflow: hidden; white-space: nowrap; flex: none;
  font-family: "Inter", system-ui, sans-serif;
}
.plate::before { content: "TR"; background: #1e40af; color: #fff; font-size: 8px; font-weight: 700; display: flex; align-items: flex-end; padding: 0 3px 3px; letter-spacing: 0; }
.plate span { display: flex; align-items: center; padding: 0 8px; }
.plate.lg { height: 38px; font-size: 21px; border-width: 2px; }
.plate.lg::before { font-size: 10px; padding: 0 5px 5px; }

.list { display: flex; flex-direction: column; }
.item {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); min-width: 0;
}
.item:last-child { border-bottom: 0; }
a.item:hover, button.item:hover { background: var(--surface-2); }
button.item { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.item .main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.item .t { font-weight: 600; }
.item .s { font-size: 13px; color: var(--muted); }
.item .end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.chev { color: var(--muted); }

.tabs { display: flex; gap: 4px; padding: 4px; background: var(--neutral-soft); border-radius: 10px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { border: 0; background: none; padding: 7px 12px; border-radius: 8px; font-weight: 600; font-size: 13.5px; color: var(--muted); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs .on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tabs .c { font-size: 11px; background: var(--line); color: var(--ink); border-radius: 99px; padding: 0 6px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .grow { flex: 1; min-width: 200px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tfoot td { border-top: 1px solid var(--line); background: var(--surface-2); }
.table .right { text-align: right; }
.table-wrap { overflow-x: auto; }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }

.totals { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 10px; }
.totals .grand { font-size: 18px; font-weight: 750; padding-top: 6px; border-top: 1px dashed var(--line); }

.empty { padding: 36px 16px; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty svg.i { width: 34px; height: 34px; stroke-width: 1.5; opacity: .6; }

.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps button {
  border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600;
  cursor: pointer; color: var(--muted); display: inline-flex; gap: 6px; align-items: center;
}
.steps button:hover { border-color: var(--brand); color: var(--ink); }
.steps button.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.substeps { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 12px; background: var(--violet-soft); }
.substeps .xs { color: var(--violet); }
.substeps .steps button.on { background: var(--violet); border-color: var(--violet); color: var(--surface); }
.substeps .steps button:hover { border-color: var(--violet); }

.timeline { list-style: none; margin: 0; padding: 0 16px 8px; }
.timeline li { position: relative; padding: 10px 0 10px 22px; border-left: 2px solid var(--line); margin-left: 6px; font-size: 13.5px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }
.timeline li small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; padding: 16px; }
.photo { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; display: block; }
.photo button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; display: grid; place-items: center; }
.photo button svg.i { width: 15px; height: 15px; }
.photo-add { display: grid; place-items: center; aspect-ratio: 1; border: 1.5px dashed var(--line); border-radius: 10px; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; text-align: center; }
.photo-add:hover { border-color: var(--brand); color: var(--brand); }

.search-results { border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; overflow: hidden; background: var(--surface); }
.pick { border: 1.5px solid var(--brand); background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }

.note { background: var(--info-soft); color: var(--info); border-radius: 10px; padding: 12px 14px; font-size: 13.5px; display: flex; gap: 10px; }
.note.warn { background: var(--warn-soft); color: var(--warn); }
.note svg.i { flex: none; margin-top: 1px; }

.bar-row { display: grid; grid-template-columns: 130px 1fr 110px; gap: 10px; align-items: center; padding: 8px 16px; font-size: 13.5px; }
.bar-track { height: 10px; border-radius: 99px; background: var(--neutral-soft); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--brand); }
@media (max-width: 640px) { .bar-row { grid-template-columns: 90px 1fr 90px; } }

/* ---------- Modal / toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8, 10, 14, .55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .12s ease-out; }
.modal { background: var(--surface); border-radius: 16px; width: 100%; max-width: 560px; max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .14s ease-out; }
.modal.wide { max-width: 760px; }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-h h2 { flex: 1; }
.modal-b { padding: 18px; overflow-y: auto; }
.modal-f { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .overlay { align-items: flex-end; padding: 0; }
  .modal { border-radius: 18px 18px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom); }
  .modal-f .btn { flex: 1; }
}
.lightbox { background: rgba(0,0,0,.9); }
.lightbox img { max-width: 100%; max-height: 90dvh; border-radius: 8px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }

.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
@media (max-width: 899px) { .toasts { bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); } }
.toast { background: var(--ink); color: var(--bg); padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 550; box-shadow: var(--shadow-lg); animation: pop .15s ease-out; display: flex; gap: 8px; align-items: center; }
.toast.err { background: var(--bad); color: #fff; }

.spinner { width: 22px; height: 22px; border: 2.5px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
.loading { display: flex; justify-content: center; padding: 48px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Giriş ---------- */
.auth-wrap { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--side); color: var(--side-ink); padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid color-mix(in srgb, var(--brand) 22%, transparent); }
.auth-side h2 { font-size: 30px; font-weight: 750; letter-spacing: -.5px; max-width: 420px; line-height: 1.2; }
.auth-side ul { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; color: var(--side-muted); position: relative; z-index: 1; }
.auth-side li { display: flex; gap: 10px; align-items: center; }
.auth-side li svg { color: var(--brand); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-form .box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }
.auth-form .logo-m { display: none; }
@media (max-width: 899px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-form .logo-m { display: flex; }
}

/* ---------- Yazdırma: servis formu ---------- */
.print-bar { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; padding: 16px; background: var(--bg); }
.print-page { background: #fff; color: #111; max-width: 820px; margin: 0 auto 32px; padding: 28px 30px; font-size: 12.5px; line-height: 1.35; box-shadow: var(--shadow-lg); border-radius: 6px; color-scheme: light; }
.pf-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 12px; border-bottom: 2.5px solid #111; margin-bottom: 12px; }
.pf-company { display: flex; gap: 12px; align-items: center; }
.pf-cname { font-size: 17px; font-weight: 800; }
.pf-title { text-align: right; }
.pf-title div { font-size: 20px; font-weight: 800; letter-spacing: .5px; }
.pf-title small { font-size: 14px; font-weight: 700; }
.pf-grid { display: grid; gap: 6px; }
.pf-grid.g1 { grid-template-columns: 1fr; }
.pf-grid.g3 { grid-template-columns: repeat(3, 1fr); }
.pf-grid.g4 { grid-template-columns: repeat(4, 1fr); }
.pf-field { border: 1px solid #9aa0a6; border-radius: 4px; padding: 3px 7px 4px; min-height: 36px; display: flex; flex-direction: column; gap: 2px; break-inside: avoid; }
.pf-field span { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #555; }
.pf-field b { font-size: 13px; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.pf-field.s2 { grid-column: span 2; }
.pf-field.s4 { grid-column: 1 / -1; }
.pf-field.pf-text { min-height: 60px; }
.pf-field.pf-text b { font-weight: 500; }
.pf-field.pf-plate b { font-size: 15px; font-weight: 800; letter-spacing: .6px; }
.pf-field.pf-grand { background: #111; border-color: #111; }
.pf-field.pf-grand span { color: #ddd; }
.pf-field.pf-grand b { color: #fff; font-size: 16px; font-weight: 800; }
.pf-meta { margin-bottom: 4px; }
.pf-sec { margin-top: 9px; break-inside: avoid; }
.pf-sec h3 { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; background: #eceef1; border-left: 4px solid #e2580b; padding: 5px 8px; margin: 0 0 6px; }
.pf-sec h3 span { background: #111; color: #fff; border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; font-size: 10.5px; }
.pf-table { width: 100%; border-collapse: collapse; margin-bottom: 6px; }
.pf-table th, .pf-table td { border: 1px solid #9aa0a6; padding: 4px 7px; text-align: left; height: 23px; }
.pf-table th { background: #f3f4f6; font-size: 10px; text-transform: uppercase; letter-spacing: .4px; }
.pf-table .r { text-align: right; white-space: nowrap; }
.pf-table tr.blank td { color: #aaa; }
.pf-note { margin-top: 8px; font-size: 10.5px; color: #444; }
.pf-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 26px; break-inside: avoid; }
.pf-sign div { border-top: 1.5px solid #111; padding-top: 5px; text-align: center; display: flex; flex-direction: column; }
.pf-sign span { font-weight: 700; }
.pf-sign small { color: #666; font-size: 10.5px; }
.pf-grid.g2 { grid-template-columns: repeat(2, 1fr); }
.pf-grid.g6 { grid-template-columns: repeat(6, 1fr); }
/* Servis formu: 20 kalem satırı tek sayfaya sığsın */
.pf-compact .pf-field { min-height: 32px; padding: 2px 7px 3px; }
.pf-compact .pf-field b { font-size: 12.5px; }
.pf-compact .pf-field.pf-text { min-height: 46px; }
.pf-compact .pf-sec { margin-top: 7px; }
.pf-compact .pf-sec h3 { padding: 4px 8px; margin-bottom: 5px; }
.pf-compact .pf-table th, .pf-compact .pf-table td { height: 19px; padding: 1px 7px; font-size: 11.5px; }
.pf-compact .pf-totals .pf-field span { font-size: 8.5px; }
.pf-compact .pf-totals .pf-field b { font-size: 12px; }
.pf-compact .pf-field.pf-grand b { font-size: 14px; }
.pf-compact .pf-head { padding-bottom: 8px; margin-bottom: 8px; }
.pf-compact .pf-sign { margin-top: 20px; }
/* Kaza onarım teklifi (Excel şablonuyla aynı düzen) */
.of { font-family: Calibri, Carlito, "Segoe UI", Arial, sans-serif; font-size: 13px; }
.of-logo { text-align: right; }
.of-logo img { width: 78px; height: auto; }
.of-title { text-align: center; font-size: 19px; font-weight: 700; margin: 2px 0 10px; }
.of-date { display: flex; justify-content: flex-end; gap: 18px; margin-bottom: 4px; }
.of-info { border-collapse: collapse; margin-bottom: 20px; }
.of-info th { text-align: left; font-size: 15px; font-weight: 700; padding: 1px 0; width: 150px; white-space: nowrap; }
.of-info td { padding: 1px 6px; font-size: 13px; }
.of-info td:nth-child(2) { font-weight: 700; width: 14px; }
.of-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.of-table th, .of-table td { border: 1px solid #000; padding: 1px 5px; height: 21px; font-size: 12.5px; overflow-wrap: anywhere; }
.of-table th { font-weight: 700; text-align: center; }
.of-table .r { text-align: right; }
.of-cur { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.of-sum { margin: 14px 0 0 auto; border-collapse: collapse; width: 44%; }
.of-sum th { text-align: left; font-weight: 700; padding: 2px 5px; width: 48%; }
.of-sum td { padding: 2px 5px; }
.of-sum tr.g th, .of-sum tr.g td { font-weight: 800; border-top: 1px solid #000; }

/* Garantili işareti / eksper kartı */
.warranty-toggle { font-size: 13px; font-weight: 650; padding: 4px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.warranty-toggle.on { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }
.warranty-toggle input { width: 16px; height: 16px; accent-color: var(--teal); }
.kv.eks { grid-template-columns: 190px 1fr; }
@media (max-width: 640px) { .kv.eks { grid-template-columns: 140px 1fr; } }

/* Yazdır menüsü */
.menu-wrap { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; display: flex; flex-direction: column; }
.menu-pop a, .menu-pop .off { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.menu-pop a:hover { background: var(--surface-2); }
.menu-pop .off { color: var(--muted); cursor: not-allowed; }
.menu-pop .n { width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none; }
.menu-pop .off .n { background: var(--neutral-soft); color: var(--muted); }
.menu-pop small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
@media (max-width: 700px) {
  .print-page { padding: 16px 12px; border-radius: 0; }
  .pf-grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .pf-grid.g3, .pf-grid.g6 { grid-template-columns: repeat(2, 1fr); }
  .pf-head { flex-direction: column; }
  .pf-title { text-align: left; }
  .pf-table-wrap { overflow-x: auto; }
}
/* Sözleşme (taahhütname) */
.ct { font-size: 13px; line-height: 1.5; }
.ct h1 { text-align: center; font-size: 16px; font-weight: 800; margin: 4px 0 18px; letter-spacing: .3px; }
.ct h2 { font-size: 13px; font-weight: 800; margin: 18px 0 8px; }
.ct p { margin: 0 0 8px; text-align: justify; }
.ct-date { text-align: right !important; }
.ct-rows { display: grid; gap: 5px; }
.ct-row { display: grid; grid-template-columns: 300px 10px 1fr; align-items: baseline; }
.ct-row div { border-bottom: 1px dotted #888; min-height: 19px; font-weight: 600; }
.ct ol { margin: 0 0 8px; padding-left: 22px; }
.ct ol li { margin-bottom: 10px; text-align: justify; }
.ct-sign { margin-top: 6px; }
.ct-sign p { margin: 10px 0 0; text-align: left; }
@media print {
  .print-bar { display: none !important; }
  html, body { background: #fff !important; }
  .print-page { padding: 0; margin: 0; max-width: none; box-shadow: none; border-radius: 0; }
  .pf-grid.g4 { grid-template-columns: repeat(4, 1fr); }
  .pf-grid.g3 { grid-template-columns: repeat(3, 1fr); }
  .pf-grid.g6 { grid-template-columns: repeat(6, 1fr); }
  .pf-sec h3, .pf-table th, .pf-field.pf-grand { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { size: A4; margin: 12mm; }
}

/* Çoklu kalem düzenleyici */
.modal.xwide { max-width: 1000px; width: calc(100% - 24px); }
.ied { display: flex; flex-direction: column; }
.ied-h, .ied-row { display: grid; grid-template-columns: 110px minmax(0,1fr) 80px 120px 120px 110px 36px; gap: 8px; align-items: start; }
.ied-h { padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.ied-h span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.ied-row { padding: 8px 0; border-bottom: 1px dashed var(--line); }
.ied-row [data-sum] { padding-top: 11px; }
.ied-desc { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ied-desc small { display: flex; gap: 4px; align-items: center; font-size: 11.5px; }
.ied-desc small svg { width: 13px; height: 13px; }
@media (max-width: 699px) {
  .ied-h { display: none; }
  .ied-row { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 36px; row-gap: 6px; }
  .ied-row .ied-desc { grid-column: 1 / 3; grid-row: 1; }
  .ied-row [data-del] { grid-column: 3; grid-row: 1; }
  .ied-row [name=kind] { grid-column: 1; grid-row: 2; }
  .ied-row [name=qty] { grid-column: 2; grid-row: 2; }
  .ied-row [name=cost_price] { grid-column: 1; grid-row: 3; }
  .ied-row [name=unit_price] { grid-column: 2; grid-row: 3; }
  .ied-row [data-sum] { grid-column: 1 / 4; grid-row: 4; padding-top: 4px; }
  .ied-row [data-sum]::before { content: 'Tutar: '; font-weight: 500; color: var(--muted); }
}

/* Açılır bildirimler (sol alt) */
.popups { position: fixed; left: 16px; bottom: 16px; z-index: 60; display: flex; flex-direction: column-reverse; gap: 8px; width: min(360px, calc(100vw - 32px)); max-height: calc(100vh - 100px); overflow-y: auto; pointer-events: none; }
.popup { pointer-events: auto; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.18); padding: 12px 12px 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; animation: popin .25s ease-out; }
.popup .p-t { font-weight: 700; font-size: 13.5px; }
.popup .p-b { grid-column: 1 / -1; font-size: 13.5px; cursor: pointer; }
.popup .p-s { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); }
.popup .p-x { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 2px; border-radius: 6px; }
.popup .p-x:hover { background: var(--neutral-soft); color: var(--ink); }
.popups .p-all { pointer-events: auto; align-self: flex-start; }
@keyframes popin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) { .popups { bottom: calc(var(--tab-h) + 12px + env(safe-area-inset-bottom)); left: 12px; } }
@media print { .popups { display: none !important; } }

/* Analiz grafikleri: kategorik 1 = gelir, 2 = gider (doğrulandı: açık ve koyu tema) */
:root { --s1: #2a78d6; --s2: #eb6834; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --s1: #3987e5; --s2: #d95926; } }
:root[data-theme="dark"] { --s1: #3987e5; --s2: #d95926; }
.viz-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); align-items: center; flex-wrap: wrap; }
.viz-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.viz-cols { position: relative; display: flex; align-items: flex-end; gap: 6px; height: 200px; border-bottom: 1px solid var(--line); padding: 0 2px; }
.viz-col { flex: 1; min-width: 14px; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; cursor: default; border-radius: 6px; }
.viz-col:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.viz-col b { flex: 1; max-width: 22px; border-radius: 4px 4px 0 0; min-height: 0; }
.viz-x { display: flex; gap: 6px; padding: 6px 2px 0; font-size: 11px; color: var(--muted); }
.viz-x span { flex: 1; min-width: 14px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.viz-grid { position: absolute; inset: 0 0 0 0; pointer-events: none; }
.viz-grid div { position: absolute; left: 0; right: 0; border-top: 1px dashed color-mix(in srgb, var(--line) 80%, transparent); }
.viz-grid span { position: absolute; right: 0; top: -15px; font-size: 10.5px; color: var(--muted); background: var(--surface); padding-left: 4px; }
.viz-tip { position: fixed; z-index: 80; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 8px 10px; font-size: 12.5px; min-width: 150px; }
.viz-tip .r { display: flex; justify-content: space-between; gap: 14px; }
.viz-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 10px; align-items: center; padding: 6px 16px; font-size: 13px; }
.hbar .track { height: 12px; background: var(--neutral-soft); border-radius: 4px; overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 0 4px 4px 0; }
.hbar:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); }

.nav-sep { border: 0; border-top: 1px solid var(--side-2); margin: 8px 10px; }

/* YP talebi kalemleri */
.rq-lines { display: flex; flex-direction: column; gap: 10px; }
.rq-line { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.rq-line.paid { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 4%, var(--surface)); }
.rq-a, .rq-b { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.rq-a > .rq-sel { width: 18px; height: 18px; margin-bottom: 12px; accent-color: var(--brand); }
.rq-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1 1 130px; }
.rq-f > span:first-child { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .3px; }
.rq-f.grow { flex: 3 1 220px; }
.rq-b .rq-f { flex: 1 1 150px; }
.rq-b .rq-f.grow { flex: 2 1 200px; }
.rq-f.w70 { flex: 0 0 70px; }
.rq-f.w110 { flex: 0 1 120px; }
.rq-f [data-sum] { padding-top: 8px; display: flex; flex-direction: column; align-items: flex-end; }
.rq-f [data-sum] small { font-size: 11px; color: var(--muted); font-weight: 600; }
@media (max-width: 699px) { .rq-f.w110 { flex: 1 1 40%; } .rq-f.w70 { flex: 1 1 25%; } }

.photo video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; cursor: pointer; }
.photo .play { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.photo .play svg { width: 34px; height: 34px; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); }
.modal-f { flex-wrap: wrap; row-gap: 8px; }

.rq-table td { padding: 6px 6px; vertical-align: middle; }
.rq-table th { padding: 8px 6px; white-space: nowrap; }
.rq-table .input { height: 36px; padding: 0 8px; font-size: 13.5px; }
.rq-table tr.paid td { background: color-mix(in srgb, var(--ok) 6%, transparent); }
.modal.xwide.rqx { max-width: 1340px; }
.rq-table .rq-os { display: grid; grid-template-columns: auto auto; gap: 4px 10px; }
.rq-table .rq-os .check { display: inline-flex; font-size: 13px; white-space: nowrap; }
.rq-table .rq-sel, .rq-table [data-os] { width: 17px; height: 17px; accent-color: var(--brand); }
.rq-tablewrap { border: 1px solid var(--line); border-radius: 10px; }
/* Barkod etiketleri */
.labels { display: grid; grid-template-columns: repeat(3, 64mm); gap: 3mm; justify-content: center; padding: 8px; background: var(--bg); }
.label { background: #fff; color: #000; border: 1px dashed #bbb; width: 64mm; height: 34mm; padding: 2mm 3mm; display: flex; flex-direction: column; justify-content: space-between; break-inside: avoid; overflow: hidden; color-scheme: light; }
.label .l-name { font-size: 9pt; font-weight: 700; line-height: 1.15; max-height: 2.3em; overflow: hidden; }
.label .l-bc svg { width: 100%; height: 13mm; display: block; }
.label .l-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 8pt; }
.label .l-row b { font-size: 11pt; }
@media print {
  .labels { gap: 0; padding: 0; background: #fff; }
  .label { border: 0; }
  .sidebar, .topbar, .tabbar, .toolbar, .no-print, .demo-banner, .popups { display: none !important; }
  .main, .view { padding: 0 !important; max-width: none !important; }
}

/* Y1.9 */
.input-suffix{position:relative;display:inline-flex;align-items:center}
.input-suffix>i{position:absolute;right:9px;font-style:normal;color:var(--muted);font-size:13px;pointer-events:none}

/* Y1.8 finans hesap kartları */
.fin-accounts{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px}
.fin-accounts>.fin-acc{margin:0;display:flex;flex-direction:column;gap:4px;padding:14px 16px;text-align:left;cursor:pointer;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow);color:inherit;font:inherit}
.fin-acc:hover{border-color:var(--brand)}
.fin-acc .num{font-size:1.25rem;font-weight:600}
.table td.num,.table th.num{white-space:nowrap}
.rq-veh{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media (max-width:699px){.rq-veh{grid-template-columns:1fr 1fr}}
.cust-row { gap: 12px; }
.cust-sel { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.cust-bar { align-items: center; }
.ol-table td { padding: 5px 3px; vertical-align: middle; } .ol-table th { padding-left: 3px !important; padding-right: 3px !important; }
.ol-table .input { height: 34px; padding: 0 7px; font-size: 13.5px; }
.ol-table tr.ol-done td { opacity: .55; }
.ol-table tr.ol-done td:last-child { opacity: 1; }
.rq-war { color: var(--teal); font-weight: 650; }
.print-only { display: none; }
@media print {
  .print-only { display: block; }
  .shell > .main { margin-left: 0 !important; }
  .ol-table .input { border: 0; padding: 0; height: auto; background: none; }
}
.item.rec.rec-ypok { background: color-mix(in srgb, var(--ok) 9%, var(--surface)); }
.item.rec.rec-ypok:hover { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.thumb { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.thumb.empty svg { width: 18px; height: 18px; opacity: .5; }
.thumb-tip { position: fixed; z-index: 200; width: 280px; height: 280px; border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .12s; }
.thumb-tip.on { opacity: 1; }
.thumb-tip img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
/* Perakende satış (POS) */
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
@media (max-width: 1099px) { .pos { grid-template-columns: 1fr; } }
.pos-side { position: sticky; top: 80px; }
.pos-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.pos-q { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; font: inherit; color: inherit; min-height: 74px; }
.pos-q:hover { border-color: var(--brand); background: var(--brand-soft); }
.pos-q b { font-size: 13px; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pos-q span { font-size: 11px; color: var(--muted); }
.pos-q em { font-style: normal; font-weight: 800; margin-top: auto; }
.pos-cart td { vertical-align: middle; }
.pos-cart .input { height: 36px; }
.pos-qty { display: flex; gap: 4px; align-items: center; justify-content: flex-end; }
.pos-qty .input { width: 56px; padding: 0 6px; }
.pos-total { padding: 16px 18px; background: var(--side); color: #fff; border: 0; display: flex; flex-direction: column; gap: 2px; }
.pos-total span { font-size: 12px; letter-spacing: .6px; opacity: .7; font-weight: 700; }
.pos-total b { font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.pos-total small { opacity: .75; }
.pos-pay { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pos-pay .btn { height: 52px; white-space: normal; line-height: 1.15; font-size: 13.5px; }
.pos-done { font-size: 34px; font-weight: 800; }
.receipt { width: 76mm; margin: 16px auto; background: #fff; color: #000; padding: 4mm; font: 12px/1.35 ui-monospace, Menlo, Consolas, monospace; box-shadow: var(--shadow); }
.receipt .r-c { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.receipt .r-b { font-weight: 800; font-size: 14px; }
.receipt .r-sep { border-top: 1px dashed #000; margin: 6px 0; }
.receipt .r-row { display: flex; justify-content: space-between; gap: 8px; }
.receipt .r-big { font-size: 15px; font-weight: 800; margin: 3px 0; }
@media print { .receipt { box-shadow: none; margin: 0; width: 72mm; } }
.ol-table th { white-space: normal !important; font-size: 10.5px; } .ol-table td:first-child { min-width: 86px; }
/* Arama kutularında temizle (X) */
.input-icon { position: relative; }
.input-icon > input { padding-right: 34px; }
.input-icon > .clear-x { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 99px; border: 0; background: var(--neutral-soft); color: var(--muted); display: none; place-items: center; cursor: pointer; padding: 0; }
.input-icon > .clear-x.on { display: grid; }
.input-icon > .clear-x:hover { background: var(--bad-soft); color: var(--bad); }
.input-icon > .clear-x svg { position: static; width: 14px; height: 14px; }
.rec-rest { color: var(--bad); font-weight: 800; font-size: 13.5px; }
.fin-net .val { font-size: 20px; }
.ol-acik th:nth-child(11), .ol-acik td:nth-child(11) { display: none; }
.ol-table td:first-child { min-width: 78px !important; }

/* Y2.1.3 — YP talep listesi: tüm sekmelerde aynı (Sipariş verildi) sütun genişlikleri */
@media (min-width: 900px) {
  .rq-list { table-layout: fixed; width: 100%; }
  .rq-list th:nth-child(1) { width: 14%; } .rq-list th:nth-child(2) { width: 12.5%; } .rq-list th:nth-child(3) { width: 26.5%; }
  .rq-list th:nth-child(4) { width: 11%; } .rq-list th:nth-child(5) { width: 16%; } .rq-list th:nth-child(6) { width: 13%; } .rq-list th:nth-child(7) { width: 7%; }
  .rq-list td { overflow-wrap: anywhere; }
  .party-table { table-layout: fixed; width: 100%; }
  .party-table th:nth-child(1) { width: 20%; } .party-table th:nth-child(2) { width: 9%; } .party-table th:nth-child(3) { width: 17%; }
  .party-table th:nth-child(4), .party-table th:nth-child(5) { width: 13%; } .party-table th:nth-child(6) { width: 16%; } .party-table th:nth-child(7) { width: 12%; }
}
.party-table td:nth-child(3) { white-space: nowrap; }

/* Y2.2.0 — Stok takibi alt menüsü: Kategori bakım */
.nav a.nav-sub { padding: 7px 12px 7px 40px; font-size: 13.5px; margin-top: -2px; }
.nav a.nav-sub svg { width: 16px; height: 16px; }
.cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 1400px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: 1fr; } }
.cat-col .card-h { padding-bottom: 8px; }
.cat-add { display: flex; gap: 6px; padding: 0 14px 10px; flex-wrap: wrap; }
.cat-add [name=sup] { flex: 1 1 100% !important; }
.cat-add .input { height: 36px; min-width: 0; flex: 1; }
.cat-list { max-height: 62vh; overflow-y: auto; border-top: 1px solid var(--line); }
.cat-row { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.cat-row:hover { background: var(--surface-2, rgba(0,0,0,.03)); }
.cat-row .btn { opacity: .35; }
.cat-row:hover .btn { opacity: 1; }
/* Stok: arama modları */
.stk-modes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex: 1 1 auto; }
.toolbar .stk-modes .select { width: auto; flex: 0 1 220px; min-width: 150px; }
.toolbar .stk-modes .input { flex: 0 0 100px; }
.stk-table td.stk-name { min-width: 190px; }
.stk-table th { white-space: normal; }

/* Y2.4.0 — stok araması: temizle (X) her zaman görünür; ilk seçilen kriter vurgulu */
.input-icon.x-always > .clear-x { display: grid; }
.input-icon.x-always > .input { padding-right: 38px; }
.toolbar .stk-modes .select.stk-first { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 18%, transparent); }
/* Y2.5.0 — çoklu seçim (ürün kartı model alanı) */
.mp-wrap { position: relative; }
.mp-wrap > .input { padding-right: 34px; }
.mp-caret { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; width: 26px; height: 26px; display: grid; place-items: center; }
.mp-panel { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 50; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.18); padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.mp-panel .input { height: 34px; }
.mp-sel { padding: 0 4px; max-height: 38px; overflow: auto; }
.mp-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; }
.mp-opt { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.mp-opt:hover { background: var(--neutral-soft); }
.mp-add { text-align: left; border: 0; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand); font-weight: 650; padding: 7px 8px; border-radius: 8px; cursor: pointer; margin-bottom: 4px; }
.topbar .newwin { margin-left: 4px; }

/* Y2.5.1 — stok listesi sütunları: durum ve yoldaki adet dar, kâr ve giriş düğmesi görünür */
.stk-table th, .stk-table td { padding-left: 6px; padding-right: 6px; }
.stk-table td.stk-name { min-width: 150px; }
.stk-table .thumb { width: 36px; height: 36px; }
.stk-table td { font-size: 13.5px; }
.stk-table .c-durum { width: 84px; }
.stk-table .c-yolda { width: 52px; }
.stk-table .c-isk { width: 52px; }
.stk-table .c-kar { width: 56px; }
.stk-table .c-act { width: 52px; text-align: right; }
.stk-table td.c-cat { max-width: 130px; min-width: 96px; }
.stk-table td .badge { white-space: nowrap; }
.cat-web { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.stk-info { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; max-width: 900px; }
.stk-info summary { cursor: pointer; }
.stk-info > div { max-height: 320px; overflow: auto; }
