/* ==========================================================
   Toptancı Bayi Sistemi — tema
   Galvaniz lacivert + çelik gri + maskeleme bandı sarısı
   ========================================================== */

:root {
  --steel: #1E3048;
  --steel-2: #2B4466;
  --steel-3: #3B5A82;
  --graphite: #24282E;
  --graphite-2: #31363E;
  --paper: #EDF0F2;
  --card: #FFFFFF;
  --ink: #18222E;
  --mute: #5D6B7A;
  --line: #D5DBE1;
  --line-soft: #E6EAEE;
  --tape: #F3C623;
  --tape-ink: #4A3A00;
  --ok: #2F7A4D;
  --ok-bg: #E4F2EA;
  --bad: #B4322A;
  --bad-bg: #F8E5E3;
  --warn: #946200;
  --warn-bg: #FBF0D4;
  --info-bg: #E3ECF6;
  /* Yüzeyler (koyu temada yeniden tanımlanır) */
  --side-bg: #1E3048;
  --surface-2: #F8F9FA;
  --surface-hover: #FAFBFC;
  --input-bg: #FFFFFF;
  --img-bg: #F6F7F9;
  --neutral-bg: #ECEEF0;
  --topbar-bg: rgba(237, 240, 242, .92);
  --shadow: rgba(24, 34, 46, .14);
  --ok-strong: #2F7A4D;
  --bad-strong: #B4322A;
  --chart-alt: #D4A20A;
  --chart-strong: #1E3048;
  color-scheme: light;

  --f-label: Bahnschrift, "DIN Alternate", "DIN Next", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --f-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 4px;
  --r-md: 8px;
  --side-w: 248px;
  --top-h: 64px;
}

/* ---------- Koyu tema ----------
   Kullanıcı "Koyu" seçerse <html data-theme="dark">; "Sistem" seçiliyse cihazın ayarı izlenir.
   Yalnızca ekran içindir: yazdırma her zaman açık temadadır. */
@media screen {
  :root[data-theme="dark"] {
    --steel: #3A6293;
    --steel-2: #4672A8;
    --steel-3: #86AEDF;
    --graphite: #0B0F14;
    --graphite-2: #161C24;
    --paper: #0E141B;
    --card: #161F29;
    --ink: #E4E9EF;
    --mute: #94A3B4;
    --line: #2B3846;
    --line-soft: #212C38;
    --tape-ink: #3A2E00;
    --ok: #62C48F;
    --ok-bg: #14301F;
    --bad: #F2918A;
    --bad-bg: #3A1916;
    --warn: #E9BC55;
    --warn-bg: #33290F;
    --info-bg: #15263A;
    --side-bg: #111A24;
    --surface-2: #1B2531;
    --surface-hover: #1E2936;
    --input-bg: #0F1720;
    --img-bg: #E3E8ED;
    --neutral-bg: #253140;
    --topbar-bg: rgba(14, 20, 27, .92);
    --shadow: rgba(0, 0, 0, .5);
    --ok-strong: #2E7A4C;
    --bad-strong: #B93A31;
    --chart-alt: #E3B21C;
    --chart-strong: #D6E6F8;
    color-scheme: dark;
  }
}
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --steel: #3A6293;
    --steel-2: #4672A8;
    --steel-3: #86AEDF;
    --graphite: #0B0F14;
    --graphite-2: #161C24;
    --paper: #0E141B;
    --card: #161F29;
    --ink: #E4E9EF;
    --mute: #94A3B4;
    --line: #2B3846;
    --line-soft: #212C38;
    --tape-ink: #3A2E00;
    --ok: #62C48F;
    --ok-bg: #14301F;
    --bad: #F2918A;
    --bad-bg: #3A1916;
    --warn: #E9BC55;
    --warn-bg: #33290F;
    --info-bg: #15263A;
    --side-bg: #111A24;
    --surface-2: #1B2531;
    --surface-hover: #1E2936;
    --input-bg: #0F1720;
    --img-bg: #E3E8ED;
    --neutral-bg: #253140;
    --topbar-bg: rgba(14, 20, 27, .92);
    --shadow: rgba(0, 0, 0, .5);
    --ok-strong: #2E7A4C;
    --bad-strong: #B93A31;
    --chart-alt: #E3B21C;
    --chart-strong: #D6E6F8;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--steel-3); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--f-label); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
small, .muted { color: var(--mute); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 40px; padding: .5em 1.05em;
  font: 600 .95rem/1.1 var(--f-body);
  border: 1px solid transparent; border-radius: var(--r-sm);
  background: var(--steel); color: #fff; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--steel-2); text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--steel); border-color: var(--line); }
.btn-ghost:hover { background: var(--card); border-color: var(--steel-3); }
.btn-danger { background: var(--bad-strong); }
.btn-danger:hover { background: #962922; }
.btn-ok { background: var(--ok-strong); }
.btn-ok:hover { background: #25633e; }
.btn-tape { background: var(--tape); color: var(--tape-ink); }
.btn-tape:hover { background: #E5B612; }
.btn-sm { min-height: 32px; padding: .3em .7em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; padding: 0; min-height: 0; color: var(--steel-3); font-weight: 500; }
.btn-link:hover { background: none; text-decoration: underline; }
.btn-link.danger { color: var(--bad); }
.text-danger { color: var(--bad); }
.text-ok { color: var(--ok); }
.inline { display: inline; margin: 0; }

/* ---------- Formlar ---------- */
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.field > span, .label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field small { font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=date], input[type=search], select, textarea {
  width: 100%; min-height: 42px; padding: .55em .75em;
  font: inherit; color: var(--ink);
  background: var(--input-bg); border: 1px solid var(--line); border-radius: var(--r-sm);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--steel-3); box-shadow: 0 0 0 3px rgba(59, 90, 130, .18); }
input[type=file] { font: inherit; font-size: .9rem; }
.check { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--steel); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1rem; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: .5rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; margin-bottom: 1rem; }
.toolbar .field { margin: 0; }
.toolbar input, .toolbar select { min-width: 160px; }

/* ---------- Bildirim kutuları ---------- */
.flashes { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.flash { display: flex; gap: .6rem; align-items: flex-start; padding: .75rem 1rem; border-radius: var(--r-sm); border-left: 4px solid; background: var(--info-bg); border-color: var(--steel-3); }
.flash-success { background: var(--ok-bg); border-color: var(--ok); }
.flash-error { background: var(--bad-bg); border-color: var(--bad); }
.flash-warning { background: var(--warn-bg); border-color: var(--warn); }
.flash .ico { margin-top: 2px; }
.flash-close { margin-left: auto; background: none; border: 0; cursor: pointer; color: inherit; opacity: .6; padding: 0 .2rem; font-size: 1.1rem; line-height: 1; }

/* ---------- Bant (imza öğe) ---------- */
.tape {
  position: absolute; z-index: 2;
  padding: .3em 1.1em;
  font: 700 .8rem/1.1 var(--f-label); letter-spacing: .02em;
  color: var(--tape-ink); background: var(--tape);
  clip-path: polygon(3% 0, 97% 4%, 100% 50%, 97% 96%, 2% 100%, 0 52%);
  box-shadow: 0 1px 0 rgba(0,0,0,.05);
}
.tape-corner { top: 10px; left: -6px; transform: rotate(-4deg); }

/* ==========================================================
   Giriş sayfaları
   ========================================================== */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
}
.auth-brand {
  position: relative; overflow: hidden;
  background: var(--side-bg); color: #fff;
  padding: clamp(2rem, 5vw, 4rem);
  display: flex; flex-direction: column; justify-content: space-between;
}
.auth-brand::after {
  /* rulo izleri */
  content: ""; position: absolute; inset: auto -10% -18% -10%; height: 55%;
  background: repeating-linear-gradient(-8deg, rgba(255,255,255,.035) 0 38px, transparent 38px 76px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 45%);
  mask-image: linear-gradient(to bottom, transparent, #000 45%);
  pointer-events: none;
}
.auth-brand .wordmark { font: 700 clamp(2.2rem, 4.6vw, 3.6rem)/1 var(--f-label); letter-spacing: -.01em; margin: 0; }
.auth-brand .lede { font-size: 1.1rem; max-width: 34ch; color: #C9D5E3; margin-top: 1rem; }
.auth-brand ul { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: .8rem; color: #DCE4EE; position: relative; z-index: 1; }
.auth-brand li { display: flex; gap: .7rem; align-items: center; }
.auth-brand li .ico { color: var(--tape); }
.auth-brand .credit { font-size: .82rem; color: #8FA3BB; position: relative; z-index: 1; }
.auth-brand .credit a { color: #C9D5E3; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.25rem; }
.auth-card {
  position: relative; width: 100%; max-width: 440px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 2.4rem 2rem 2rem;
}
.auth-card.wide { max-width: 640px; }
.auth-card .tape { top: -12px; left: 50%; width: 110px; height: 24px; padding: 0; transform: translateX(-50%) rotate(-2deg); }
.auth-card h1 { font-size: 1.6rem; margin-bottom: .25rem; }
.auth-card .sub { color: var(--mute); margin-bottom: 1.5rem; }
.auth-links { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 1.25rem; font-size: .92rem; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3rem; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: .5rem; color: var(--mute); cursor: pointer; }

/* ==========================================================
   Uygulama kabuğu
   ========================================================== */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--side-bg); color: #DCE4EE;
  display: flex; flex-direction: column;
}
.shell-admin .side { background: var(--graphite); }
.side-brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.25rem; min-height: var(--top-h); border-bottom: 1px solid rgba(255,255,255,.08); }
.side-brand a { color: #fff; font: 700 1.25rem/1.1 var(--f-label); text-decoration: none; }
.side-brand .role { margin-left: auto; font: 600 .7rem/1 var(--f-label); color: var(--graphite); background: var(--tape); padding: .3em .5em; border-radius: 2px; }
.nav { padding: .75rem .6rem 1.5rem; flex: 1; }
.nav-group { margin-top: 1.1rem; padding: 0 .65rem .35rem; font-size: .78rem; font-weight: 600; color: #8FA3BB; }
.shell-admin .nav-group { color: #8C939C; }
.nav a, .nav summary {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .65rem; border-radius: var(--r-sm);
  color: #DCE4EE; text-decoration: none; cursor: pointer; font-size: .94rem;
  list-style: none;
}
.nav summary::-webkit-details-marker { display: none; }
.nav a:hover, .nav summary:hover { background: rgba(255,255,255,.07); }
.nav a.active { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 3px 0 0 var(--tape); }
.nav .count { margin-left: auto; font-size: .75rem; color: #8FA3BB; font-variant-numeric: tabular-nums; }
.nav .badge-alert { margin-left: auto; background: var(--tape); color: var(--tape-ink); font-size: .72rem; font-weight: 700; border-radius: 10px; padding: .1em .5em; }
.nav details > div { padding-left: 1.6rem; }
.nav details > div a { font-size: .9rem; padding: .4rem .65rem; }
.nav details[open] summary .chev { transform: rotate(180deg); }
.nav .chev { margin-left: auto; width: 14px; height: 14px; transition: transform .15s; }
.side-foot { padding: 1rem 1.25rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .85rem; }
.side-foot .who { color: #fff; font-weight: 600; }
.side-foot .org { color: #8FA3BB; display: block; margin-bottom: .6rem; }
.side-foot .btn-link { color: #DCE4EE; display: inline-flex; gap: .4rem; align-items: center; font-size: .85rem; }

.main { display: flex; flex-direction: column; min-width: 0; }
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: .75rem;
  min-height: var(--top-h); padding: .6rem clamp(1rem, 3vw, 2rem);
  background: var(--topbar-bg); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.menu-btn { display: none; background: none; border: 0; padding: .4rem; color: var(--ink); cursor: pointer; }
.search { flex: 1; max-width: 560px; position: relative; }
.search input { padding-left: 2.4rem; background: var(--card); }
.search .ico { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--mute); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--r-sm);
  color: var(--ink); background: transparent; border: 0; cursor: pointer; list-style: none;
}
.icon-btn::-webkit-details-marker { display: none; }
.icon-btn:hover { background: var(--card); text-decoration: none; }
.icon-btn .ico { width: 21px; height: 21px; }
.pip {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; font: 700 .7rem/18px var(--f-body); text-align: center;
  background: var(--bad-strong); color: #fff;
}
.pip.cart { background: var(--steel); }
.cart-link { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: var(--r-sm); background: var(--steel); color: #fff; font-weight: 600; font-size: .9rem; }
.cart-link:hover { background: var(--steel-2); text-decoration: none; }
.cart-link .n { background: var(--tape); color: var(--tape-ink); border-radius: 9px; min-width: 20px; padding: 0 6px; text-align: center; font-size: .78rem; }

.dropdown { position: relative; }
.dropdown-panel {
  position: absolute; right: 0; top: calc(100% + 6px); width: min(360px, 92vw);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 12px 32px var(--shadow); overflow: hidden;
}
.dropdown-head { display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line-soft); }
.dropdown-head strong { font-family: var(--f-label); }
.dropdown-head form { margin-left: auto; }
.dropdown-head form + form { margin-left: .5rem; }
.notif-list { max-height: 360px; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.notif-list li { padding: .7rem 1rem; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.notif-list li.unread { background: var(--surface-hover); box-shadow: inset 3px 0 0 var(--tape); }
.notif-list .t { font-weight: 600; display: block; }
.notif-list time { font-size: .78rem; color: var(--mute); }
.notif-empty { padding: 1.5rem 1rem; text-align: center; color: var(--mute); font-size: .9rem; }

.content { padding: clamp(1rem, 3vw, 2rem); width: 100%; max-width: 1400px; }
.page-head { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.25rem; }
.page-head h1 { margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--mute); }
.crumbs { font-size: .85rem; color: var(--mute); margin-bottom: .35rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.crumbs a { color: var(--mute); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- Kutular ---------- */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.25rem; margin-bottom: 1.25rem; }
.panel > h2:first-child, .panel > h3:first-child { margin-bottom: 1rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2 { margin: 0; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush .panel-head { padding: 1rem 1.25rem 0; }
.cols { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.cols-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--mute); }
.empty .ico { width: 40px; height: 40px; margin: 0 auto .75rem; color: var(--line); stroke-width: 1.5; }
.empty p { max-width: 40ch; margin: 0 auto 1rem; }

/* ---------- Bölüm başlıkları (ana sayfa) ---------- */

/* ---------- Ürün ızgarası ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 1rem; }
.product {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden;
}
.product:hover { border-color: var(--steel-3); }
.product-img { position: relative; overflow: hidden; aspect-ratio: 1 / 1; background: var(--img-bg); border-bottom: 1px solid var(--line-soft); }
.product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: .75rem; background: #fff; }
.ratio-wide .product-img { aspect-ratio: 4 / 3; }
.ratio-tall .product-img { aspect-ratio: 3 / 4; }
.fit-cover .product-img img { object-fit: cover; padding: 0; }
.product-body { padding: .8rem .9rem 1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-code { font: 600 .75rem/1 var(--f-label); color: var(--mute); }
.product-name { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: .95rem; line-height: 1.3; color: var(--ink); }
.product-name a { color: inherit; }
.product-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.product-meta { font-size: .8rem; color: var(--mute); }
.price { margin-top: auto; padding-top: .5rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; }
.price .now { font: 700 1.3rem/1 var(--f-label); font-variant-numeric: tabular-nums; }
.price .was { font-size: .85rem; color: var(--mute); text-decoration: line-through; }
.stock-out { position: absolute; top: 10px; right: 10px; z-index: 2; background: #18222E; color: #fff; font-size: .72rem; font-weight: 600; padding: .2em .55em; border-radius: 2px; }

/* ---------- Ürün detayı ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.5rem; margin-bottom: 2rem; }
.pdp-img { position: relative; overflow: hidden; background: var(--img-bg); border-radius: var(--r-sm); aspect-ratio: 1; }
.pdp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 1.5rem; background: #fff; }
.pdp h1 { font-size: 1.9rem; margin-bottom: .4rem; }
.pdp .code { font: 600 .9rem/1 var(--f-label); color: var(--mute); margin-bottom: 1.25rem; display: inline-block; border: 1px solid var(--line); padding: .35em .6em; border-radius: 2px; }
.pdp-price { display: flex; align-items: baseline; gap: .75rem; flex-wrap: wrap; margin-bottom: .4rem; }
.pdp-price .now { font: 700 2.4rem/1 var(--f-label); font-variant-numeric: tabular-nums; }
.pdp-price .was { color: var(--mute); text-decoration: line-through; font-size: 1.05rem; }
.pdp-note { font-size: .9rem; color: var(--ok); margin-bottom: 1.25rem; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin-bottom: 1.25rem; }
.specs div { background: var(--card); padding: .6rem .8rem; }
.specs dt { font-size: .78rem; color: var(--mute); }
.specs dd { margin: 0; font: 600 1.05rem/1.3 var(--f-label); font-variant-numeric: tabular-nums; }
.in-stock { color: var(--ok); }
.no-stock { color: var(--bad); }
.desc { margin: 0 0 1.25rem; padding-left: 1.1rem; }
.desc li { margin-bottom: .25rem; }
.buy { display: flex; gap: .6rem; align-items: stretch; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); }
.qty button { width: 40px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.qty button:hover { background: var(--paper); }
.qty input { width: 76px; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; min-height: 44px; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty.sm input { width: 60px; min-height: 36px; }
.qty.sm button { width: 32px; }
.buy .btn { min-height: 46px; padding: 0 1.6rem; font-size: 1rem; }
.in-cart { font-size: .88rem; color: var(--mute); margin-top: .6rem; }

/* ---------- Tablolar ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
.t th { text-align: left; font-size: .8rem; font-weight: 600; color: var(--mute); padding: .65rem .9rem; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.t td { padding: .7rem .9rem; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover { background: var(--surface-hover); }
.t .r { text-align: right; font-variant-numeric: tabular-nums; }
.t .nowrap { white-space: nowrap; }
.t .thumb { width: 52px; height: 42px; object-fit: contain; background: var(--img-bg); border-radius: 3px; border: 1px solid var(--line-soft); }
.t tfoot td { font-weight: 700; border-top: 2px solid var(--ink); font-size: 1rem; }
.t .actions { display: flex; gap: .4rem; justify-content: flex-end; align-items: center; }
.item-cell { display: flex; gap: .75rem; align-items: center; }
.item-cell .code { font-size: .78rem; color: var(--mute); }

/* ---------- Durum etiketleri ---------- */
.status { display: inline-block; padding: .2em .6em; border-radius: 2px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.status-pending { background: var(--warn-bg); color: var(--warn); }
.status-completed, .status-active { background: var(--ok-bg); color: var(--ok); }
.status-cancelled, .status-passive { background: var(--neutral-bg); color: var(--mute); }
.chip { display: inline-block; padding: .15em .5em; font-size: .75rem; font-weight: 600; border-radius: 2px; background: var(--paper); color: var(--mute); }
.chip-tape { background: var(--tape); color: var(--tape-ink); }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: .6rem 1rem; color: var(--mute); font-weight: 600; font-size: .92rem; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-color: var(--steel); }
.tabs .n { font-weight: 500; font-size: .8rem; margin-left: .3rem; color: var(--mute); }

/* ---------- Sepet ---------- */
.cart-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.25rem; align-items: start; }
.summary { position: sticky; top: calc(var(--top-h) + 1rem); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; margin: 0 0 1rem; }
.summary dt { color: var(--mute); }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary .grand { font: 700 1.7rem/1 var(--f-label); font-variant-numeric: tabular-nums; text-align: right; margin: .25rem 0 1rem; }
.summary .ship { font-size: .85rem; color: var(--mute); border-top: 1px solid var(--line-soft); padding-top: .75rem; margin-top: .75rem; }

/* ---------- İstatistikler ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 1.5rem; }
.stat { flex: 1 1 150px; min-width: 0; background: var(--card); padding: 1rem 1.15rem; color: var(--ink); }
a.stat:hover { background: var(--surface-hover); text-decoration: none; }
.stat .v { font: 700 1.8rem/1.1 var(--f-label); font-variant-numeric: tabular-nums; display: block; }
.stat .k { font-size: .85rem; color: var(--mute); }
.stat.alert { box-shadow: inset 0 3px 0 var(--tape); }

/* ---------- Grafik (ciro) ---------- */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.bars span { flex: 1; min-width: 4px; background: var(--steel-3); border-radius: 2px 2px 0 0; position: relative; }
.bars span:hover { background: var(--steel); }
.bars-legend { display: flex; justify-content: space-between; font-size: .78rem; color: var(--mute); margin-top: .35rem; }

/* ---------- Banka kartları ---------- */
.banks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.bank { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.15rem 1.25rem; position: relative; }
.bank h3 { margin: 0 0 .15rem; }
.bank .owner { color: var(--mute); margin-bottom: .9rem; display: block; }
.iban { display: flex; gap: .5rem; align-items: center; }
.iban code { flex: 1; font: 600 1rem/1.3 var(--f-label); letter-spacing: .04em; background: var(--paper); padding: .55rem .7rem; border-radius: var(--r-sm); word-break: break-all; }
.bank .chip-tape { position: absolute; top: 1rem; right: 1rem; }

/* ---------- Kategori ağacı (yönetim) ---------- */
.tree { list-style: none; margin: 0; padding: 0; }
.tree > li { border-bottom: 1px solid var(--line-soft); }
.tree > li:last-child { border-bottom: 0; }
.tree .row { display: flex; align-items: center; gap: .75rem; padding: .65rem 1.25rem; }
.tree .row strong { font-weight: 600; }
.tree ul { list-style: none; margin: 0; padding: 0 0 .4rem; }
.tree ul .row { padding-left: 2.75rem; font-size: .93rem; }
.tree ul .row::before { content: ""; width: 10px; height: 1px; background: var(--line); margin-left: -1.1rem; }
.tree .actions { margin-left: auto; display: flex; gap: .75rem; }

/* ---------- Sayfalama ---------- */
.pager { display: flex; gap: .3rem; justify-content: center; flex-wrap: wrap; margin: 1.5rem 0 .5rem; }
.pager a, .pager span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 .6rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink); font-size: .9rem; }
.pager a:hover { border-color: var(--steel-3); text-decoration: none; }
.pager .on { background: var(--steel); color: #fff; border-color: var(--steel); }
.pager .gap { border: 0; background: none; }

/* ---------- Hata sayfası ---------- */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem; }
.error-page .code { font: 700 5rem/1 var(--f-label); color: var(--steel); }
.error-page .box { max-width: 460px; }

/* ---------- Toast (JS) ---------- */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; z-index: 100; transform: translate(-50%, 20px);
  display: flex; gap: .6rem; align-items: center;
  padding: .8rem 1.1rem; max-width: 92vw;
  background: #18222E; color: #fff; border-radius: var(--r-md);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.err { background: var(--bad); }
.toast a { color: var(--tape); font-weight: 600; }

.backdrop { display: none; }

/* ==========================================================
   Duyarlı düzen
   ========================================================== */
@media (max-width: 1100px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cart-grid { grid-template-columns: minmax(0, 1fr); }
  .summary { position: static; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side {
    position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: min(290px, 84vw);
    transform: translateX(-100%); transition: transform .2s ease;
  }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open .backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(24, 34, 46, .45); }
  .menu-btn { display: inline-flex; }
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; padding: 1rem; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-brand { padding: 1.75rem 1.5rem; }
  .auth-brand ul, .auth-brand .lede { display: none; }
  .auth-brand .credit { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-even { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .product-body { padding: .6rem .65rem .8rem; }
  .price .now { font-size: 1.12rem; }
  .cart-link .lbl { display: none; }
  .top { gap: .4rem; }
  .pdp h1 { font-size: 1.5rem; }
  .pdp-price .now { font-size: 2rem; }
  .auth-card { padding: 2rem 1.25rem 1.5rem; }
  .t.stack thead { display: none; }
  .t.stack tr { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; padding: .75rem .9rem; border-bottom: 1px solid var(--line-soft); }
  .t.stack td { padding: 0; border: 0; }
  .t.stack td[data-full] { grid-column: 1 / -1; }
  .t.stack .actions { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .side, .top, .menubar, .site-foot, .bnav, .backdrop, .no-print, .flashes, .page-help, .preview-bar, .pager-wrap, .toolbar, .bulkbar, .tabs, .btn, .form-actions, .skip-link { display: none !important; }
  .table-wrap, .rchart-wrap { overflow: visible !important; }
  .t { font-size: .85rem; }
  .t tr { break-inside: avoid; }
  .t thead { display: table-header-group; }
  .main { margin: 0 !important; padding: 0 !important; }
  .shell { display: block; }
  body { background: var(--card); }
  .panel { border: 0; padding: 0; }
}

/* ---------- Toplu seçim çubuğu ---------- */
.bulkbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .65rem 1rem; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.bulkbar .check { margin: 0; font-size: .9rem; }
.bulk-count { font-weight: 600; font-size: .9rem; color: var(--mute); }
.bulkbar.has-selection { background: var(--warn-bg); }
.bulkbar.has-selection .bulk-count { color: var(--ink); }
.bulk-match { font-size: .9rem; }
.bulk-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.t .chk { width: 40px; padding-right: 0; }
.t .chk input, .tree .row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--steel); cursor: pointer; }
.tree .row input[type=checkbox]:disabled { opacity: .6; }
@media (max-width: 600px) { .bulk-actions { margin-left: 0; width: 100%; } }

/* ---------- Ürün düzenleme: önceki / sonraki ---------- */
.pnav { display: flex; align-items: center; gap: .75rem; margin: -.25rem 0 1.25rem; padding: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.pnav-pos { flex: 1; text-align: center; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; line-height: 1.3; }
.pnav-pos strong { font: 700 1.05rem/1.2 var(--f-label); }
.pnav-tip { margin: -.5rem 0 1rem; font-size: .88rem; }
.ico.rot90 { transform: rotate(90deg); }
.ico.rot270 { transform: rotate(-90deg); }
.t .thumb.thumb-lg, .thumb.thumb-lg { width: 132px; height: 104px; padding: 4px; }
@media (max-width: 600px) { .pnav .btn { padding: .5em .7em; } }
.pnav .btn[form] { white-space: nowrap; }
.img-pick { padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line-soft); }
@media (max-width: 700px) { .pnav { flex-wrap: wrap; } .pnav-pos { order: -1; flex-basis: 100%; } }

/* ---------- Sayfalama bilgisi ---------- */
.pager-wrap { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin: 1.25rem 0 .5rem; }
.pager-wrap .pager { margin: 0; }
.pager-info { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.25rem; font-size: .85rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.pager-info .per a, .pager-info .per strong { margin-left: .35rem; }
.pager-info .per strong { color: var(--ink); }
.toolbar input.narrow { min-width: 0; width: 100px; }

/* ==========================================================
   Toplam satış raporu
   ========================================================== */
.presets { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .9rem; }
.presets a { padding: .4rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: .88rem; font-weight: 500; }
.presets a:hover { border-color: var(--steel-3); text-decoration: none; }
.presets a.on { background: var(--steel); border-color: var(--steel); color: #fff; }

.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 1rem; }
.kpi { background: var(--card); padding: 1rem 1.15rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.kpi .k { font-size: .85rem; color: var(--mute); }
.kpi .v { font: 700 clamp(1.05rem, 1.35vw, 1.45rem)/1.15 var(--f-label); font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-main { box-shadow: inset 0 3px 0 var(--tape); }
.kpi-main .v { font-size: clamp(1.15rem, 1.55vw, 1.65rem); }
@media (max-width: 1300px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpi .v { font-size: 1.35rem; } .kpi-main .v { font-size: 1.55rem; } }
@media (max-width: 600px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi { padding: .8rem; } .kpi .v, .kpi-main .v { font-size: 1.15rem; } .kpi-main { grid-column: 1 / -1; } .kpi-main .v { font-size: 1.45rem; } }
.kpi-cmp { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .5rem; font-size: .8rem; color: var(--mute); }
.delta { display: inline-block; padding: .1em .45em; border-radius: 3px; font-size: .78rem; font-weight: 700; background: var(--neutral-bg); color: var(--mute); font-variant-numeric: tabular-nums; white-space: nowrap; }
.delta.up { background: var(--ok-bg); color: var(--ok); }
.delta.down { background: var(--bad-bg); color: var(--bad); }

.insights { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.25rem; }
.insight { display: flex; align-items: center; gap: .55rem; padding: .6rem .9rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); font-size: .9rem; }
a.insight:hover { border-color: var(--steel-3); text-decoration: none; }
.insight .ico { color: var(--steel-3); }

.seg { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.seg a, .seg span { padding: .35rem .75rem; font-size: .85rem; color: var(--ink); background: var(--card); border-left: 1px solid var(--line); white-space: nowrap; }
.seg > :first-child { border-left: 0; }
.seg a:hover { background: var(--paper); text-decoration: none; }
.seg a.on { background: var(--steel); color: #fff; }
.seg .off { color: var(--line); cursor: not-allowed; }

.legend { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; align-items: center; font-size: .85rem; margin: -.25rem 0 .5rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.lg-bar { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: var(--steel-3); }
.lg-prev { display: inline-block; width: 20px; height: 0; border-top: 2px dashed var(--chart-alt); }

.rchart-wrap { overflow-x: auto; }
.rchart { display: block; width: 100%; min-width: 620px; height: auto; }
.rc-axis text { fill: var(--mute); font: 12px var(--f-body); font-variant-numeric: tabular-nums; }
.rc-grid { stroke: var(--line-soft); stroke-width: 1; }
.rc-base { stroke: var(--line); stroke-width: 1; }
.rc-hit { fill: transparent; }
.rc-bar { fill: var(--steel-3); transition: fill .12s; }
.rc-col:hover .rc-hit { fill: rgba(59, 90, 130, .07); }
.rc-col:hover .rc-bar, .rc-best .rc-bar { fill: var(--chart-strong); }
.rc-prev { fill: none; stroke: var(--chart-alt); stroke-width: 2; stroke-dasharray: 6 4; pointer-events: none; }
.rc-prev-dot { fill: var(--card); stroke: var(--chart-alt); stroke-width: 2; pointer-events: none; }

.cols-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.cols-3.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.share { list-style: none; margin: 0; padding: 0 1.25rem 1rem; }
.share li { padding: .55rem 0; border-bottom: 1px solid var(--line-soft); }
.share li:last-child { border-bottom: 0; }
.share-row { display: flex; justify-content: space-between; gap: .75rem; font-size: .9rem; }
.share-row a, .share-row > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.share-row .num { font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.share-bar { display: block; width: 100%; height: 6px; margin: .3rem 0 .15rem; border-radius: 3px; }
.sb-bg { fill: var(--paper); }
.sb-fg { fill: var(--steel-3); }
.sb-alt { fill: var(--chart-alt); }

@media (max-width: 1100px) { .cols-3, .cols-3.two { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .kpis, .cols-3 { break-inside: avoid; }
  .rchart { min-width: 0; }
}
@media (max-width: 600px) {
  .presets { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; margin-right: -1rem; padding-right: 1rem; scrollbar-width: none; }
  .presets::-webkit-scrollbar { display: none; }
  .presets a { flex: none; }
}

/* ---------- Bayi hesap dökümü ---------- */
.print-only { display: none; }
.t tr.grp-start td { border-top: 1px solid var(--line); }
.t tbody tr.grp-start:first-child td { border-top: 0; }
@media print {
  .print-only { display: block; }
  .stmt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; padding-bottom: .75rem; margin-bottom: 1rem; border-bottom: 2px solid #000; }
  .stmt-head > div:first-child { display: flex; flex-direction: column; }
  .stmt-firm { font: 700 1.4rem/1.2 var(--f-label); }
  .stmt-meta { display: grid; grid-template-columns: auto auto; gap: .1rem .75rem; font-size: .85rem; }
  .stmt-meta div { display: contents; }
  .stmt-meta span { color: #555; }
  a.no-print-link { color: inherit; text-decoration: none; }
  .kpis { border-color: #999; }
  .kpi-main { box-shadow: none; }
  .t th { background: none; }
  .content { padding: 0; max-width: none; }
  @page { margin: 12mm; }
}

/* ---------- Yönetici: bayi önizlemesi ---------- */
.preview-bar { display: flex; gap: .65rem; align-items: flex-start; padding: .75rem 1rem; margin-bottom: 1.25rem; border-radius: var(--r-sm); background: var(--warn-bg); border-left: 4px solid var(--tape); font-size: .92rem; }
.preview-bar .ico { margin-top: 2px; color: var(--warn); }
.preview-note { display: flex; align-items: flex-start; gap: .5rem; padding: .75rem 1rem; background: var(--paper); border-radius: var(--r-sm); color: var(--mute); font-size: .92rem; }
.preview-note .ico { margin-top: 2px; }
.panel-sub { margin: -.5rem 1.25rem .5rem; font-size: .82rem; }
.panel-foot { margin: 0; padding: .75rem 1.25rem; border-top: 1px solid var(--line-soft); font-size: .88rem; }
.check.remember { align-items: flex-start; margin: .25rem 0 1rem; }
.check.remember input { margin-top: 2px; }

/* ---------- Tema seçici ---------- */
.theme-menu .dropdown-panel { width: 210px; }
.theme-menu form { display: grid; padding: .35rem; }
.theme-menu button { display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .7rem; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink); font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.theme-menu button:hover { background: var(--surface-hover); }
.theme-menu button[aria-checked="true"] { font-weight: 600; }
.theme-menu button[aria-checked="true"]::after { content: "✓"; margin-left: auto; color: var(--steel-3); }
.auth-theme { position: fixed; top: .75rem; right: .75rem; z-index: 30; }
.auth-theme .icon-btn { background: var(--card); border: 1px solid var(--line); }
.side-foot .version { display: block; margin-top: .6rem; font-size: .75rem; color: #8C939C; }
.syscheck td:first-child { width: 45%; }
.syscheck .okk { color: var(--ok); font-weight: 600; }
.syscheck .err { color: var(--bad); font-weight: 600; }

/* ---------- Sipariş toplamları (KDV dökümü) ---------- */
.t tfoot.totals td { font-weight: 500; padding-top: .45rem; padding-bottom: .45rem; border-top: 0; }
.t tfoot.totals tr:first-child td { border-top: 1px solid var(--line); padding-top: .8rem; }
.t tfoot.totals tr.grand td { font-weight: 700; font-size: 1.05rem; border-top: 2px solid var(--ink); padding-top: .7rem; padding-bottom: .8rem; }
.t tfoot.totals .chip { vertical-align: middle; }
.vat-panel form .field { margin-bottom: .75rem; }

.t a.debt { color: var(--bad); font-weight: 600; }

/* ==========================================================
   Cari hesap
   ========================================================== */
.kpis.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.account-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
.account-cols > .kpis { margin-bottom: 0; }
.bal-debt { color: var(--bad); }
.t.ledger td, .t.ledger th { font-variant-numeric: tabular-nums; }
.t tr.voided td { opacity: .55; }
.t tr.voided td:not(:last-child) { text-decoration: line-through; }
.t tr.voided td strong { font-weight: 500; }
.t.ledger tr.carry td { background: var(--surface-2); color: var(--mute); font-style: italic; }
.small-note { margin: .75rem 0 0; font-size: .82rem; color: var(--mute); }
.cart-account { margin: .9rem 0 1rem; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); font-size: .9rem; }
.cart-account dl { display: grid; grid-template-columns: 1fr auto; gap: .25rem .75rem; margin: 0 0 .5rem; }
.cart-account dt { color: var(--mute); }
.cart-account dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-account.over { border-color: var(--bad); background: var(--bad-bg); }
.cart-account.over p { display: flex; gap: .45rem; align-items: flex-start; margin: 0 0 .5rem; color: var(--bad); font-weight: 600; }
.cart-account.over .ico { flex: none; margin-top: 2px; }
@media (max-width: 1000px) { .account-cols { grid-template-columns: minmax(0, 1fr); } .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kpis.k4 .kpi-main { grid-column: auto; } .kpis.k4 .kpi-main .v { font-size: 1.25rem; } }

/* ==========================================================
   Saha siparişi (tablet) — büyük dokunma alanları
   ========================================================== */
.saha-body { background: var(--paper); min-height: 100vh; }
.saha-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem; padding: .6rem clamp(.75rem, 2.5vw, 1.5rem); background: var(--topbar-bg); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.saha-brand { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--f-label); font-weight: 700; font-size: 1.1rem; color: var(--steel); text-decoration: none; }
.saha-dealer { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; padding-left: .75rem; border-left: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.saha-dealer small { color: var(--mute); font-size: .72rem; }
.saha-dealer strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34vw; }
.saha-actions { margin-left: auto; display: flex; gap: .5rem; }
.saha-actions .btn { min-height: 46px; }
.cart-pill .n { background: var(--steel); color: #fff; border-radius: 999px; min-width: 1.5rem; padding: 0 .4rem; text-align: center; font-size: .85rem; line-height: 1.5rem; }
.saha-content { max-width: 1200px; margin: 0 auto; padding-bottom: 6rem; }
.btn-lg { min-height: 54px; font-size: 1.05rem; }
.stack-actions { display: flex; flex-direction: column; gap: .6rem; }

.saha-search { display: flex; gap: .5rem; }
.saha-search input { min-height: 48px; min-width: 240px; }
.saha-search-wide { margin-bottom: .75rem; }
.saha-search-wide input { flex: 1; }
.saha-resume { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-left: 4px solid var(--tape); }

.saha-dealers { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .9rem; }
.saha-dealer-card { margin: 0; }
.saha-dealer-card button { width: 100%; text-align: left; display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; min-height: 120px; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; font: inherit; }
.saha-dealer-card button:hover, .saha-dealer-card button:focus-visible { border-color: var(--steel-3); box-shadow: 0 2px 10px var(--shadow); }
.saha-dealer-card strong { font-size: 1.1rem; }
.saha-dealer-card em { margin-top: auto; font-style: normal; font-weight: 600; color: var(--steel-3); display: inline-flex; align-items: center; gap: .2rem; }

.saha-cats { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: .9rem; -webkit-overflow-scrolling: touch; }
.chip-btn { flex: 0 0 auto; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-weight: 500; white-space: nowrap; }
.chip-btn.sub { font-size: .9rem; color: var(--mute); }
.chip-btn.on { background: var(--steel); border-color: var(--steel); color: #fff; }

.saha-list { display: flex; flex-direction: column; gap: .6rem; }
.saha-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: .9rem; padding: .7rem .9rem; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.saha-row.out { opacity: .6; }
.saha-row .thumb { width: 64px; height: 64px; object-fit: contain; background: var(--img-bg); border-radius: var(--r-sm); }
.saha-info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.saha-info strong { overflow-wrap: anywhere; }
.saha-stock { font-size: .8rem; color: var(--ok); font-weight: 600; }
.saha-stock.none { color: var(--bad); }
.saha-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.saha-price strong { font-size: 1.1rem; }
.saha-buy { display: flex; align-items: center; gap: .5rem; }
.saha-buy .btn { min-height: 46px; min-width: 104px; }
.saha-row .qty button { width: 46px; min-height: 46px; }
.saha-row .qty input { width: 70px; min-height: 46px; }
.small { font-size: .8rem; }

.saha-cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 30; display: flex; justify-content: space-between; gap: 1.5rem; width: min(680px, calc(100vw - 1.5rem)); padding: .9rem 1.2rem; background: var(--steel); color: #fff; border-radius: 999px; box-shadow: 0 6px 24px var(--shadow); text-decoration: none; font-weight: 500; }
.saha-cartbar[hidden] { display: none; }
.saha-cartbar:hover { background: var(--steel-2); text-decoration: none; }
.saha-cartbar .ico { vertical-align: -3px; margin-right: .3rem; }

.receipt-panel h3 { display: flex; align-items: center; gap: .5rem; }
.print-state { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
.print-state .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); flex: 0 0 auto; }
.print-state .dot.on { background: var(--ok-strong); box-shadow: 0 0 0 3px var(--ok-bg); }
.warn-text { color: var(--warn); }
.print-more { margin-top: .9rem; }
.print-more summary { cursor: pointer; color: var(--steel-3); font-weight: 500; padding: .4rem 0; }
.print-settings { padding-top: .75rem; }

@media (max-width: 760px) {
  .saha-row { grid-template-columns: 56px minmax(0, 1fr); }
  .saha-row .thumb { width: 56px; height: 56px; }
  .saha-price { grid-column: 2; align-items: flex-start; text-align: left; flex-direction: row; gap: .5rem; align-items: baseline; }
  .saha-buy { grid-column: 1 / -1; justify-content: space-between; }
  .saha-actions .lbl { display: none; }
  .saha-dealer strong { max-width: 28vw; }
}
@media (pointer: coarse) { .btn, .chip-btn, .saha-search input { min-height: 46px; } }

/* Saha: bu siparişe özel fiyat */
.special-price { display: flex; gap: .35rem; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: .4rem; }
.special-price input[type="text"] { width: 96px; min-height: 36px; text-align: right; }

/* ---- Mağaza: üyelik tipi seçici, bot tuzağı, ziyaretçi ---- */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin-bottom: 1rem; background: var(--card); }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-opt span { display: block; padding: .55rem 1.2rem; font-weight: 600; font-size: .92rem; color: var(--mute); }
.seg-opt input:checked + span { background: var(--steel); color: #fff; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--steel); outline-offset: -2px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
.price-gate { display: flex; align-items: center; gap: .4rem; color: var(--mute); font-size: .88rem; }
.price-gate a { font-weight: 600; }
.guest-bar { display: flex; gap: .5rem; align-items: center; }
.shop-foot { margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .85rem; color: var(--mute); }
.demo-bar { background: var(--warn-bg); color: var(--warn); padding: .55rem 1rem; text-align: center; font-weight: 600; font-size: .9rem; }
.legal { max-width: 760px; }
.legal p { white-space: pre-line; line-height: 1.65; }
.pay-box { max-width: 520px; margin: 0 auto; }
.pay-actions { display: grid; gap: .6rem; margin-top: 1rem; }
.method-opt { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: .6rem; cursor: pointer; background: var(--card); }
.method-opt input { margin-top: .2rem; accent-color: var(--steel); }
.method-opt strong { display: block; }
.method-opt:has(input:checked) { border-color: var(--steel); box-shadow: 0 0 0 1px var(--steel); }
.method-opt.disabled { opacity: .55; cursor: not-allowed; }
.badge-pay { display: inline-block; padding: .1rem .5rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--neutral-bg); color: var(--mute); }
.badge-pay.paid { background: var(--ok-bg, #e3f4e8); color: var(--ok, #1b7a3a); }
.badge-pay.warn { background: var(--warn-bg); color: var(--warn); }
.status-unpaid { background: var(--warn-bg); color: var(--warn); }
.ship-line td { color: var(--mute); }

/* ---------- Ana sayfa vitrini (slider, avantajlar, kategoriler) ---------- */
.slide-edit { border: 1px solid var(--line); border-radius: var(--r-md); padding: .9rem 1rem 1rem; margin: 0 0 1rem; }
.slide-edit legend { font-weight: 700; padding: 0 .4rem; }

/* ---------- Mobil alt menü (müşteri sayfaları) ---------- */
.bnav { display: none; }
@media (max-width: 900px) {
  .bnav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--card); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 14px var(--shadow);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bnav a, .bnav button {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
    min-height: 58px; padding: .4rem .1rem; border: 0; background: none; color: var(--mute);
    font: 600 .68rem/1.1 var(--f-body); text-decoration: none; cursor: pointer;
  }
  .bnav .ico { width: 23px; height: 23px; }
  .bnav a.active { color: var(--steel-3); }
  .bnav a.active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--tape); }
  .bnav .bn { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--tape); color: var(--tape-ink); font-size: .68rem; line-height: 18px; text-align: center; font-weight: 700; }
  .bnav .bn:empty, .bnav .bn[data-cart-count="0"] { display: none; }
  .main { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .top-actions .cart-link { display: none; }
}
@media print { .bnav { display: none !important; } }

/* ---------- Fiyat grupları ---------- */
.price-groups { border: 1px dashed var(--line); border-radius: var(--r-md); padding: .75rem 1rem .25rem; margin-bottom: 1rem; }
.price-groups h3 { margin: 0 0 .75rem; font-size: 1rem; }

/* ==========================================================
   Mağaza görünümü (M1.5): bülten bandı, üst menü, tam genişlik
   ========================================================== */
.ticker { background: var(--steel); color: #fff; overflow: hidden; font-size: .88rem; font-weight: 600; position: relative; z-index: 21; }
.ticker-track { display: flex; width: max-content; animation: ticker-run 45s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; flex: 0 0 auto; align-items: center; min-width: 100vw; justify-content: space-around; }
.ticker-item { display: inline-flex; align-items: center; gap: .6rem; padding: .5rem 2.25rem; white-space: nowrap; color: inherit; text-decoration: none; }
.ticker-item::before { content: ""; width: 7px; height: 7px; transform: rotate(45deg); background: var(--tape); flex: 0 0 auto; }
a.ticker-item:hover { text-decoration: underline; }
@keyframes ticker-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .ticker-group[aria-hidden="true"] { display: none; }
  .ticker-group { min-width: 0; flex-wrap: wrap; justify-content: center; }
  .ticker-item { white-space: normal; padding: .4rem 1rem; }
}

.shell-shop { display: block; }
.shell-shop .content { max-width: none; }
.shell-shop .search { max-width: 620px; }
.shop-brand { font: 700 1.3rem/1.1 var(--f-label); color: var(--ink); text-decoration: none; white-space: nowrap; }
.shop-brand:hover { text-decoration: none; color: var(--steel-3); }
.menubar { display: flex; align-items: center; gap: .25rem; padding: 0 clamp(1rem, 3vw, 2rem); background: var(--steel); color: #fff; min-height: 46px; }
.menubar a, .menubar summary, .menubar .linkbtn { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .8rem; color: #fff; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; list-style: none; background: none; border: 0; font-family: inherit; }
.menubar summary::-webkit-details-marker { display: none; }
.menubar a:hover, .menubar summary:hover, .menubar .linkbtn:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.menubar a.active { box-shadow: inset 0 -3px 0 var(--tape); }
.menubar .ico { width: 18px; height: 18px; }
.menubar .mm-right { margin-left: auto; display: flex; align-items: center; gap: .25rem; }
.menubar .mm-cta { background: var(--tape); color: var(--tape-ink); border-radius: var(--r-sm); padding: .45rem .9rem; margin-left: .35rem; }
.menubar .mm-cta:hover { background: var(--tape); filter: brightness(.95); }
.menubar form.inline { display: inline-flex; }

.shop-title { display: flex; align-items: baseline; gap: .75rem; margin: 0 0 1rem; }
.shop-title h1 { margin: 0; font-size: 1.35rem; }
.shop-title span { color: var(--mute); font-size: .9rem; }
.shell-shop .products { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }

.wa-float { position: fixed; right: 18px; bottom: 20px; z-index: 35; display: inline-flex; align-items: center; gap: .5rem; height: 56px; padding: 0 1.1rem 0 .9rem; border-radius: 28px; background: #25D366; color: #fff; font-weight: 700; font-size: .95rem; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,.28); transition: transform .15s; }
.wa-float:hover { transform: translateY(-2px) scale(1.03); text-decoration: none; color: #fff; }
.wa-float .ico { width: 28px; height: 28px; }

@media (min-width: 901px) { .shell-shop .side, .shell-shop .backdrop, .shell-shop .menu-btn { display: none !important; } }
@media (max-width: 900px) {
  .menubar { display: none; }
  .shop-brand { display: none; }
  .wa-float { right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
  .wa-float span { display: none; }
  .ticker { font-size: .82rem; }
}
@media print { .ticker, .menubar, .wa-float { display: none !important; } }
@media (max-width: 600px) { .shell-shop .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; } .shop-title h1 { font-size: 1.15rem; } }

/* ---------- Liste sayfası: sol filtre paneli, araç çubuğu (M1.6) ---------- */
.shop-cols.has-filters { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: .25rem 1rem 1rem; }
.filters-head, .filters-foot, .filters-backdrop { display: none; }
.f-block { padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
.f-block:last-of-type { border-bottom: 0; }
.f-block h3 { margin: 0 0 .5rem; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--mute); }
.f-list, .f-sub, .f-pop { list-style: none; margin: 0; padding: 0; }
.f-list a { display: flex; align-items: center; gap: .5rem; padding: .32rem .2rem; color: var(--ink); font-size: .92rem; text-decoration: none; border-radius: var(--r-sm); }
.f-list a:hover { color: var(--steel-3); background: var(--img-bg); }
.f-list a.on { font-weight: 700; color: var(--steel-3); }
.f-list .count { margin-left: auto; font-size: .76rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.f-sub { margin: 0 0 .25rem 1rem; padding-left: .6rem; border-left: 2px solid var(--line); }
.f-check .box { flex: 0 0 auto; width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 4px; background: var(--card); display: grid; place-items: center; }
.f-check.on .box { background: var(--steel-3); border-color: var(--steel-3); color: #fff; }
.f-check .box .ico { width: 13px; height: 13px; }
.f-more { display: inline-block; margin-top: .4rem; font-size: .85rem; font-weight: 600; }
.f-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.f-chips .chip { display: inline-flex; align-items: center; gap: .3rem; text-decoration: none; }
.f-chips .chip .ico { width: 12px; height: 12px; }
.f-pop { counter-reset: pop; }
.f-pop li { counter-increment: pop; display: flex; gap: .55rem; padding: .3rem 0; font-size: .88rem; line-height: 1.3; }
.f-pop li::before { content: counter(pop); flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; background: var(--img-bg); color: var(--mute); font-size: .72rem; font-weight: 700; display: grid; place-items: center; margin-top: .05rem; }
.f-pop a { color: var(--ink); text-decoration: none; }
.f-pop a:hover { color: var(--steel-3); }

.toolbar { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; padding: .55rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); }
.toolbar-count { color: var(--mute); font-size: .9rem; }
.toolbar-count strong { color: var(--ink); }
.toolbar-sort { margin-left: auto; }
.toolbar-sort select { width: auto; min-width: 190px; padding-top: .45rem; padding-bottom: .45rem; }
.toolbar-filter { display: none; }

.product-brand { color: var(--steel-3); text-transform: uppercase; letter-spacing: .02em; }
.quick-add { display: flex; gap: .4rem; margin-top: .5rem; position: relative; z-index: 2; }
.quick-add input[type=number] { width: 56px; flex: 0 0 auto; padding: .35rem .4rem; text-align: center; }
.quick-add .btn { flex: 1; justify-content: center; white-space: nowrap; padding-left: .5rem; padding-right: .5rem; }
.quick-add .btn .ico { width: 16px; height: 16px; }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .75rem; }
.brand-tile { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.brand-tile:hover { border-color: var(--steel-3); transform: translateY(-2px); }
.brand-name { font-weight: 700; }
.brand-tile .count { font-size: .8rem; color: var(--mute); }

@media (max-width: 900px) {
  .shop-cols.has-filters { display: block; }
  .toolbar-filter { display: inline-flex; }
  .toolbar { flex-wrap: wrap; }
  .toolbar-count { order: 3; flex-basis: 100%; }
  .toolbar-sort { margin-left: auto; }
  .toolbar-sort select { min-width: 150px; }
  .filters { position: fixed; z-index: 60; inset: 0 0 0 auto; width: min(340px, 90vw); border-radius: 0; border: 0; overflow-y: auto; transform: translateX(100%); transition: transform .2s ease; padding: 0 1rem 5rem; }
  .shop-cols.filters-open .filters { transform: none; }
  .filters-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--card); padding: .9rem 0; border-bottom: 1px solid var(--line); z-index: 1; }
  .filters-foot { display: block; position: fixed; bottom: 0; right: 0; width: min(340px, 90vw); padding: .75rem 1rem calc(.75rem + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); transform: translateX(100%); transition: transform .2s ease; z-index: 61; }
  .filters-foot .btn { width: 100%; justify-content: center; }
  .shop-cols.filters-open .filters-foot { transform: none; }
  .shop-cols.filters-open .filters-backdrop { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(24, 34, 46, .5); }
}
@media (max-width: 600px) { .quick-add input[type=number] { width: 46px; } .quick-add .btn { font-size: .8rem; } }
@media print { .filters, .toolbar { display: none !important; } }

/* ---------- Yönetim: tema sayfası ---------- */
.palettes { display: flex; flex-wrap: wrap; gap: .75rem; }
.palette { display: flex; flex-direction: column; align-items: center; gap: .4rem; padding: .6rem .7rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; font: inherit; color: var(--ink); }
.palette:hover { border-color: var(--steel-3); }
.palette .sw { display: flex; width: 96px; height: 40px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.palette .sw i { flex: 1; display: block; }
.sw-lacivert .p { background: #1E3048; } .sw-lacivert .a { background: #F3C623; } .sw-lacivert .b { background: #EDF0F2; }
.sw-mavi .p { background: #0B5FA5; } .sw-mavi .a { background: #FFB300; } .sw-mavi .b { background: #EEF3F8; }
.sw-yesil .p { background: #1F5C3A; } .sw-yesil .a { background: #F5A623; } .sw-yesil .b { background: #EEF3EF; }
.sw-bordo .p { background: #6E1D2B; } .sw-bordo .a { background: #F3C623; } .sw-bordo .b { background: #F6EFF0; }
.sw-mor .p { background: #4B2A7B; } .sw-mor .a { background: #F2B705; } .sw-mor .b { background: #F1EEF6; }
.sw-siyah .p { background: #222222; } .sw-siyah .a { background: #FF6B00; } .sw-siyah .b { background: #F2F2F2; }
.palette .pl { font-size: .82rem; font-weight: 600; }
input[type=color] { width: 100%; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--input-bg); cursor: pointer; }

/* ---------- Üst menü: tüm kategoriler, açılır alt kategoriler ---------- */
.menubar { min-height: 0; flex-wrap: wrap; }
.mm-cats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; flex: 1; }
.mm-cats > li { position: relative; }
.mm-cats > li > a .chev { width: 12px; height: 12px; opacity: .8; }
.mm-sub { display: none; position: absolute; left: 0; top: 100%; z-index: 40; min-width: 220px; max-height: 70vh; overflow-y: auto; list-style: none; margin: 0; padding: .4rem 0; background: var(--card); border: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: 0 12px 28px var(--shadow); }
.mm-cats > li:hover > .mm-sub, .mm-cats > li:focus-within > .mm-sub { display: block; }
.menubar .mm-sub a { display: block; padding: .45rem 1rem; color: var(--ink); font-weight: 500; font-size: .9rem; }
.menubar .mm-sub a:hover { background: var(--img-bg); color: var(--steel-3); }
.shell-shop .guest-bar .btn-ghost { color: var(--ink); background: var(--card); }

/* ---------- Slider ---------- */
.hero { position: relative; margin-bottom: 1.25rem; border-radius: var(--r-md); overflow: hidden; background: var(--steel); color: #fff; }
.hero-track { position: relative; min-height: 270px; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.hero-slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide.theme-ana { background: linear-gradient(115deg, var(--steel) 0%, var(--steel-2) 60%, var(--steel-3) 100%); }
.hero-slide.theme-vurgu { background: linear-gradient(115deg, var(--tape) 0%, var(--tape) 55%, #fff 160%); color: var(--tape-ink); }
.hero-slide.theme-yesil { background: linear-gradient(115deg, #1F5C3A 0%, #2F7A4D 60%, #47996A 100%); }
.hero-slide.theme-bordo { background: linear-gradient(115deg, #6E1D2B 0%, #8E2B3B 60%, #AD4151 100%); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 28, .72) 0%, rgba(10, 18, 28, .35) 60%, rgba(10, 18, 28, .1) 100%); }
.hero-body { position: relative; z-index: 1; padding: 2rem 4rem; max-width: 46rem; }
.hero-body h2 { margin: 0 0 .6rem; font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.15; color: inherit; }
.hero-body p { margin: 0 0 1.25rem; font-size: 1.05rem; opacity: .92; color: inherit; }
.hero .hero-btn { background: var(--tape); color: var(--tape-ink); border-color: var(--tape); font-weight: 700; }
.hero-slide.theme-vurgu .hero-btn { background: var(--steel); color: #fff; border-color: var(--steel); }
.hero-nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .88); color: #1E3048; display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.hero-nav:hover { background: #fff; }
.hero-nav .ico { width: 20px; height: 20px; }
.hero-nav.prev { left: .75rem; } .hero-nav.prev .ico { transform: rotate(90deg); }
.hero-nav.next { right: .75rem; } .hero-nav.next .ico { transform: rotate(-90deg); }
.hero-dots { position: absolute; left: 0; right: 0; bottom: .75rem; z-index: 3; display: flex; justify-content: center; gap: .5rem; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; transition: width .25s, background .25s; }
.hero-dots button.is-on { width: 26px; border-radius: 6px; background: #fff; }
.slide-img-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.slide-thumb { width: 120px; height: 56px; object-fit: cover; border-radius: var(--r-sm); border: 1px solid var(--line); }
@media (max-width: 600px) {
  .hero-track { min-height: 200px; }
  .hero-body { padding: 1.1rem 3.1rem 2.1rem; }
  .hero-body p { font-size: .9rem; margin-bottom: .8rem; }
  .hero-nav { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }

/* ---------- Menü: büyük harf, tek satırda kategoriler ve özel bağlantılar ---------- */
.menubar a, .menubar .linkbtn { text-transform: uppercase; letter-spacing: .03em; font-size: .82rem; font-weight: 700; }
.menubar .mm-sub a { text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 500; }
.mm-sep { width: 1px; align-self: center; height: 18px; margin: 0 .35rem; background: rgba(255,255,255,.3); }
.menubar .mm-right { align-self: center; }
.menubar .mm-right a, .menubar .mm-right .linkbtn { font-weight: 600; }

/* ---------- Footer ---------- */
.shell-shop .main { min-height: 100vh; }
.shell-shop .content { flex: 1; }
.site-foot { margin-top: 2.5rem; background: var(--steel); color: rgba(255,255,255,.82); font-size: .9rem; }
.site-foot a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.4fr; gap: 2rem; padding: 2.5rem clamp(1rem, 3vw, 2rem) 2rem; }
.foot-col h4 { margin: 0 0 .9rem; color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.foot-col h4::after { content: ""; display: block; width: 28px; height: 3px; margin-top: .45rem; background: var(--tape); border-radius: 2px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.foot-logo { font: 700 1.5rem/1.1 var(--f-label); color: #fff !important; }
.foot-brand p { margin: .7rem 0 0; max-width: 28rem; line-height: 1.5; }
.foot-social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.foot-social a { padding: .3rem .7rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; font-size: .8rem; }
.foot-social a:hover { background: var(--tape); border-color: var(--tape); color: var(--tape-ink); text-decoration: none; }
.foot-contact li { display: flex; gap: .6rem; align-items: flex-start; line-height: 1.4; }
.foot-contact .ico { width: 17px; height: 17px; margin-top: .15rem; color: var(--tape); }
.foot-more { font-weight: 600; color: var(--tape) !important; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between; padding: 1rem clamp(1rem, 3vw, 2rem); border-top: 1px solid rgba(255,255,255,.16); background: rgba(0,0,0,.18); font-size: .8rem; }
.foot-legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.foot-copy { opacity: .8; }
@media (max-width: 900px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1.25rem; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .foot-grid { grid-template-columns: minmax(0, 1fr); } .site-foot { margin-bottom: 0; } }
@media print { .site-foot { display: none !important; } }

/* ---------- İletişim sayfası ---------- */
.contact-cols { display: grid; grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); gap: 1.25rem; align-items: stretch; }
.contact-card h2 { margin-top: 0; }
.contact-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list .ico { width: 22px; height: 22px; margin-top: .15rem; color: var(--steel-3); }
.contact-list strong { display: block; font-size: .8rem; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.socials { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.socials .chip { text-decoration: none; }
.contact-map { min-height: 380px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--img-bg); }
.contact-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.contact-sub { margin: 1.75rem 0 .75rem; }
@media (max-width: 900px) { .contact-cols { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 901px) { .foot-bottom { padding-right: 200px; } }

/* ---------- Canlı arama ---------- */
.live-results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; max-height: min(70vh, 520px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 16px 36px var(--shadow); padding: .35rem; }
.live-results[hidden] { display: none; }
.lr-item { display: flex; align-items: center; gap: .75rem; padding: .5rem .6rem; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; }
.lr-item:hover, .lr-item.on, .lr-cat:hover, .lr-cat.on, .lr-all:hover, .lr-all.on { background: var(--img-bg); text-decoration: none; }
.lr-item img { width: 52px; height: 52px; flex: 0 0 auto; object-fit: contain; background: var(--img-bg); border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 3px; }
.lr-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.lr-name { font-weight: 600; font-size: .92rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lr-meta { font-size: .76rem; color: var(--mute); margin-top: .1rem; }
.lr-price { flex: 0 0 auto; font-weight: 700; font-size: .95rem; text-align: right; white-space: nowrap; }
.lr-price s { display: block; font-weight: 400; font-size: .75rem; color: var(--mute); }
.lr-cats { display: flex; flex-wrap: wrap; gap: .4rem; padding: .4rem .5rem .55rem; border-bottom: 1px solid var(--line-soft); margin-bottom: .25rem; }
.lr-cat { padding: .25rem .7rem; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; color: var(--steel-3); text-decoration: none; }
.lr-cat::before { content: "Kategori: "; color: var(--mute); }
.lr-all { display: block; padding: .65rem; margin-top: .25rem; border-top: 1px solid var(--line-soft); text-align: center; font-weight: 700; font-size: .9rem; color: var(--steel-3); text-decoration: none; border-radius: var(--r-sm); }
.lr-empty { padding: 1rem; text-align: center; color: var(--mute); font-size: .92rem; }
@media (max-width: 600px) { .lr-item img { width: 44px; height: 44px; } .lr-price { font-size: .85rem; } .live-results { position: fixed; left: .5rem; right: .5rem; top: auto; margin-top: 6px; } }

/* M1.10: logo ve SEO */
.brand-logo { display: block; height: 40px; max-width: 200px; width: auto; object-fit: contain; object-position: left center; }
.shop-brand { flex: 0 0 auto; }
.shop-brand.has-logo { display: flex; align-items: center; }
.side-brand .brand-logo { height: 36px; background: #fff; padding: 4px 8px; border-radius: 6px; }
.foot-logo .brand-logo { height: 44px; background: #fff; padding: 6px 10px; border-radius: 8px; }
@media (max-width: 900px) { .shop-brand.has-logo { display: flex; } .shop-brand .brand-logo { height: 30px; max-width: 110px; } }
.logo-prev { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.logo-prev img { max-height: 60px; max-width: 220px; background: repeating-conic-gradient(#e7eaee 0 25%, #fff 0 50%) 0 0 / 16px 16px; border: 1px solid var(--line, #d8dde3); border-radius: 6px; padding: 6px; }
.seo-todo { margin: 1rem 0; padding: .9rem 1.1rem; border: 1px dashed var(--line, #c9d0d8); border-radius: 8px; }
.seo-todo ul { margin: .4rem 0 0; padding-left: 1.2rem; }

/* M1.13: afiş (yazısız görsel) slider'ı: oran sabit; geçişte tema renginde soldan sağa süpürme (overlay) */
.hero-track { aspect-ratio: 1920 / 600; min-height: 0; }
.hero-slide { opacity: 0; visibility: hidden; transform: none; transition: none; }
.hero-slide.is-on { opacity: 1; visibility: visible; z-index: 1; }
.hero-pic { display: block; background: var(--steel); }
.hero-pic .hero-link { display: block; width: 100%; height: 100%; }
.hero-pic .hero-img { position: static; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-wipe { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; visibility: hidden; }
.hero-wipe::before, .hero-wipe::after { content: ""; position: absolute; top: 0; bottom: 0; left: -18%; right: -18%; transform: translateX(-130%) skewX(-14deg); }
.hero-wipe::before { background: var(--tape); }
.hero-wipe::after { background: var(--steel); }
.hero.is-wiping .hero-wipe { visibility: visible; }
.hero.is-wiping .hero-wipe::before { animation: hero-wipe .8s cubic-bezier(.65, 0, .35, 1) both; }
.hero.is-wiping .hero-wipe::after { animation: hero-wipe .8s cubic-bezier(.65, 0, .35, 1) .14s both; }
@keyframes hero-wipe { from { transform: translateX(-130%) skewX(-14deg); } 50% { transform: translateX(0) skewX(-14deg); } to { transform: translateX(130%) skewX(-14deg); } }
.hero-nav { z-index: 3; opacity: 0; transition: opacity .2s, background .2s; }
.hero:hover .hero-nav, .hero:focus-within .hero-nav { opacity: 1; }
.hero-dots { bottom: .9rem; z-index: 3; }
.hero-dots button { box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
@media (max-width: 900px) { .hero-track { aspect-ratio: 16 / 7; min-height: 180px; } .hero-nav { opacity: 1; } }
@media (max-width: 600px) { .hero-track { aspect-ratio: 16 / 9; min-height: 190px; } }
@media (min-width: 901px) { .hero-track { min-height: 240px; } }
@media (prefers-reduced-motion: reduce) { .hero.is-wiping .hero-wipe { visibility: hidden; } }

/* Yasal sayfalar: içerik ortalanır (metin okunaklı olsun diye sütun içinde sola hizalı kalır) */
.legal-wrap { max-width: 860px; margin: 0 auto; padding: 0 0 2rem; }
.legal-head { justify-content: center; text-align: center; }
.legal-wrap .legal { max-width: none; margin: 0 auto; }
.legal-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.25rem; margin-top: 1.25rem; }

/* M1.16: üst şerit: bülten bandı + döviz kuru */
.topstrip { display: flex; align-items: stretch; background: var(--steel); color: #fff; position: relative; z-index: 21; }
.topstrip .ticker { flex: 1 1 auto; min-width: 0; }
.topstrip.no-ticker { justify-content: flex-end; }
.fx-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 1rem; padding: 0 clamp(.75rem, 2vw, 1.5rem); font-size: .82rem; font-weight: 600; white-space: nowrap; border-left: 1px solid rgba(255, 255, 255, .18); font-variant-numeric: tabular-nums; }
.topstrip.no-ticker .fx-bar { border-left: 0; padding-top: .35rem; padding-bottom: .35rem; }
.fx-item b { color: var(--tape); font-weight: 800; margin-right: .2rem; letter-spacing: .02em; }
@media (max-width: 600px) { .fx-bar { gap: .6rem; font-size: .74rem; padding: 0 .6rem; } .topstrip.no-ticker { justify-content: center; } }

/* Masaüstü: tek "Kategoriler" menüsü, alt kategoriler yana açılır */
.mm-all > .linkbtn .chev { width: 12px; height: 12px; opacity: .8; }
.mm-sub-main { min-width: 260px; overflow: visible; max-height: none; }
.mm-sub-main > li { position: relative; }
.mm-sub-main > li > a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mm-sub-main > li > a .chev { width: 12px; height: 12px; transform: rotate(-90deg); opacity: .6; }
.mm-fly { display: none; position: absolute; left: 100%; top: -.4rem; z-index: 41; min-width: 240px; max-height: 70vh; overflow-y: auto; list-style: none; margin: 0; padding: .4rem 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 28px var(--shadow); }
.mm-sub-main > li:hover > .mm-fly, .mm-sub-main > li:focus-within > .mm-fly { display: block; }
.menubar .mm-sub-main > li:hover > a { background: var(--img-bg); color: var(--steel-3); }
.menubar .mm-fly a { display: block; padding: .45rem 1rem; color: var(--ink); font-weight: 500; font-size: .9rem; text-transform: none; letter-spacing: 0; }
.menubar .mm-fly a:hover { background: var(--img-bg); color: var(--steel-3); }
.menubar .linkbtn.active { box-shadow: inset 0 -3px 0 var(--tape); }

/* Sol menü: alt kategoriler açılıp kapanır; stok anahtarı araç çubuğunda */
.f-row { display: flex; align-items: center; }
.f-row > a { flex: 1; min-width: 0; }
.f-toggle { display: none; background: none; border: 0; padding: .35rem; cursor: pointer; color: var(--mute); border-radius: var(--r-sm); }
.f-toggle:hover { background: var(--img-bg); color: var(--steel-3); }
.f-toggle .chev { width: 14px; height: 14px; transition: transform .15s; display: block; }
.fold-ready .f-toggle { display: inline-flex; }
.fold-ready .f-item.open > .f-row .f-toggle .chev { transform: rotate(180deg); }
.fold-ready .f-item.has-kids:not(.open) > .f-sub { display: none; }
.stock-chip { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; background: var(--card); }
.stock-chip:hover { border-color: var(--steel-3); color: var(--steel-3); text-decoration: none; }
.stock-chip .box { width: 16px; height: 16px; border: 1.5px solid var(--line); border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; }
.stock-chip .box svg { width: 12px; height: 12px; }
.stock-chip.on { border-color: var(--steel-3); color: var(--steel-3); }
.stock-chip.on .box { background: var(--steel); border-color: var(--steel); color: #fff; }

/* M1.21: çok geniş ekranlarda mağaza içeriği ortalanır (arka plan şeritleri tam genişlikte kalır) */
.shell-shop { --gut: max(clamp(1rem, 3vw, 2rem), calc((100vw - 1440px) / 2)); }
.shell-shop .top, .shell-shop .menubar { padding-left: var(--gut); padding-right: var(--gut); }
.shell-shop .content { padding-left: var(--gut); padding-right: var(--gut); }
.shell-shop .foot-grid { padding-left: var(--gut); padding-right: var(--gut); }
.shell-shop .fx-bar { padding-right: var(--gut); }
.shell-shop .search { max-width: 680px; }
@media (max-width: 900px) { .shell-shop .content { padding-left: clamp(1rem, 3vw, 2rem); padding-right: clamp(1rem, 3vw, 2rem); } }
.shell-shop .foot-bottom { padding-left: var(--gut); padding-right: var(--gut); }

/* Ürün açıklaması: paragraflar, madde işaretleri, uzun metinde "devamını oku" */
.pdp-desc { color: var(--ink); line-height: 1.6; margin-bottom: 1rem; overflow-wrap: anywhere; }
.pdp-desc p { margin: 0 0 .75rem; }
.pdp-desc ul.desc { margin: 0 0 .75rem; }
.pdp-desc.clamp { max-height: 9.5rem; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.desc-more { background: none; border: 0; padding: 0; margin: -.25rem 0 1rem; color: var(--steel-3); font: 700 .9rem var(--f-label); cursor: pointer; }
.desc-more:hover { text-decoration: underline; }

/* Ürün detay: sol kategori menüsü (yalnızca masaüstü) */
.shop-cols .shop-results { min-width: 0; }
@media (max-width: 900px) { .filters.cat-only { display: none; } }

/* M1.26: yönetici panosu "Bugün ne yapmalıyım?" */
.todo { margin-bottom: 1.5rem; }
.todo h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.quick { margin-bottom: 1.25rem; }
.quick h2 { font-size: 1.05rem; margin: 0 0 .6rem; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; }
.quick-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; min-height: 5.5rem; padding: .9rem .6rem; text-align: center; border: 1px solid var(--line, #d9dde3); border-radius: .75rem; background: var(--card, #fff); color: inherit; text-decoration: none; font-weight: 600; }
.quick-card:hover, .quick-card:focus-visible { border-color: var(--brand, #2563eb); }
.quick-card small { font-weight: 400; opacity: .7; }
.quick-card svg { width: 1.6rem; height: 1.6rem; }
.todo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; }
.todo-card { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--ink); text-decoration: none; }
.todo-card:hover { border-color: var(--steel-3); text-decoration: none; }
.todo-card.urgent { border-left: 4px solid var(--tape); }
.todo-n { font: 800 2rem/1 var(--f-label); font-variant-numeric: tabular-nums; }
.todo-t { font-weight: 700; }
.todo-h { font-size: .82rem; color: var(--mute); }
.todo-go { margin-top: .4rem; font-weight: 700; font-size: .85rem; color: var(--steel-3); }
.todo-ok { display: flex; align-items: center; gap: .5rem; padding: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); margin: 0; }
.bulk-move { max-width: 190px; padding-top: .35rem; padding-bottom: .35rem; }
.undo-offer .flash form { margin-left: auto; }

/* Ürün formu: adımlar ve gelişmiş seçenekler */
details.adv { margin: 1rem 0; border: 1px dashed var(--line); border-radius: var(--r-sm); padding: .6rem .9rem; }
details.adv > summary { cursor: pointer; font-weight: 700; }
details.adv[open] > summary { margin-bottom: .75rem; }
.wizard-steps { display: flex; gap: .5rem; margin: 0 0 1.25rem; padding: 0; list-style: none; flex-wrap: wrap; }
.wizard-steps li { display: flex; align-items: center; gap: .45rem; padding: .35rem .75rem; border-radius: 999px; background: var(--img-bg); color: var(--mute); font-weight: 600; font-size: .88rem; }
.wizard-steps li b { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; align-items: center; justify-content: center; background: var(--line); color: var(--ink); font-size: .8rem; }
.wizard-steps li.on { background: var(--steel); color: #fff; }
.wizard-steps li.on b { background: var(--tape); color: var(--tape-ink); }
.wizard-steps li.done b { background: var(--ok); color: #fff; }
.wizard-nav { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: 1rem; }
.form-actions-inline { display: inline-flex; gap: .5rem; flex-wrap: wrap; }

.page-help { display: flex; gap: .55rem; align-items: flex-start; margin: 0 0 1rem; padding: .6rem .85rem; background: var(--img-bg); border-radius: var(--r-sm); color: var(--mute); font-size: .9rem; }
.page-help .ico { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; }
.nav-adv { margin-top: 1.1rem; }
.nav-adv > summary { padding: 0 .65rem .35rem; font-size: .78rem; font-weight: 600; color: #8C939C; cursor: pointer; list-style: none; }
.nav-adv > summary::-webkit-details-marker { display: none; }
.nav-adv > summary::after { content: " ▾"; }
.nav-adv[open] > summary::after { content: " ▴"; }
[data-step][hidden], .form-actions[hidden], .wizard-nav [hidden] { display: none !important; }

/* M1.27: kampanya penceresi (tema renkleriyle uyumlu) */
.cpop { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cpop[hidden] { display: none; }
.cpop-back { position: absolute; inset: 0; background: rgba(24, 34, 46, .6); backdrop-filter: blur(2px); opacity: 0; transition: opacity .25s ease; }
.cpop-card { position: relative; width: 100%; max-width: 460px; max-height: 90vh; overflow: auto; background: var(--card); color: var(--ink); border-radius: var(--r-md); border-top: 5px solid var(--tape); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .25s ease, transform .25s ease; outline: 0; }
.cpop.show .cpop-back { opacity: 1; }
.cpop.show .cpop-card { opacity: 1; transform: none; }
.cpop-img { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--img-bg); }
.cpop-body { padding: 1.4rem 1.5rem 1.5rem; }
.cpop-body h2 { margin: 0 0 .5rem; font-size: 1.5rem; line-height: 1.2; }
.cpop-body p { margin: 0 0 1.1rem; color: var(--mute); line-height: 1.55; }
.cpop-actions { display: flex; flex-direction: column; gap: .6rem; }
.cpop-actions .btn { width: 100%; justify-content: center; text-align: center; }
.cpop-x { position: absolute; top: .5rem; right: .5rem; z-index: 1; display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #18222E; cursor: pointer; }
.cpop-x:hover { background: #fff; }
@media (prefers-reduced-motion: reduce) { .cpop-back, .cpop-card { transition: none; } }

/* ---- Stok yönetimi (M1.30) ---- */
.kpis.kpis-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .kpis.kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi .v { font: 700 1.3rem/1.2 var(--f-label); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
strong.pos { color: var(--ok, #1b7a3a); }
strong.neg { color: var(--bad); }
.rc-find { position: relative; }
.rc-results { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(0,0,0,.15); max-height: 320px; overflow: auto; }
.rc-results button { display: flex; width: 100%; justify-content: space-between; gap: 1rem; text-align: left; padding: .6rem .8rem; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); cursor: pointer; font: inherit; }
.rc-results button:hover, .rc-results button:focus { background: var(--surface-hover); }
.rc-results small { color: var(--mute); white-space: nowrap; }
.rc-table input.rc-qty { width: 6rem; text-align: right; }
.rc-table input.rc-cost { width: 8rem; text-align: right; }

/* Küçük telefonlarda yönetim üst çubuğu taşmasın */
@media (max-width: 520px) {
  .top-actions { flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
  .top-actions .btn { white-space: nowrap; }
}

/* Vitrin: açılıp kapanan bölümler */
.fold-sec { border: 1px solid var(--line); border-radius: var(--r-md); margin: 0 0 .75rem; background: var(--paper, transparent); }
.fold-sec > summary { display: flex; align-items: center; gap: .6rem; cursor: pointer; list-style: none; padding: .7rem 1rem; }
.fold-sec > summary::-webkit-details-marker { display: none; }
.fold-sec > summary::after { content: ""; margin-left: auto; width: .55rem; height: .55rem; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); transition: transform .15s; }
.fold-sec[open] > summary::after { transform: rotate(-135deg); }
.fold-sec > summary h2 { margin: 0; font-size: 1.05rem; }
.fold-sec > summary .fold-state { color: var(--mute); font-weight: 600; }
.fold-sec > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
.fold-sec[open] { padding-bottom: .5rem; }
.slide-fold { padding: 0; }
.slide-fold > summary { cursor: pointer; padding: .55rem .9rem; display: flex; gap: .6rem; align-items: baseline; flex-wrap: wrap; }
.slide-fold > summary::-webkit-details-marker { display: none; }
.slide-fold > summary::before { content: "▸"; color: var(--mute); }
.slide-fold[open] > summary::before { content: "▾"; }
.slide-fold > :not(summary) { margin-left: .9rem; margin-right: .9rem; }
.slide-fold[open] { padding-bottom: .6rem; }
.copy-field { width: 100%; max-width: 38rem; font-family: ui-monospace, monospace; font-size: .85rem; }

/* Yönetim yan menüsü: açılır bölümler */
.nav-sec { margin-top: .35rem; }
.nav-sec > summary { display: flex; align-items: center; gap: .5rem; padding: .45rem .65rem; font-size: .78rem; font-weight: 600; color: #8C939C; cursor: pointer; list-style: none; border-radius: var(--r-sm); }
.nav-sec > summary::-webkit-details-marker { display: none; }
.nav-sec > summary::after { content: "▾"; margin-left: auto; transition: transform .15s; }
.nav-sec:not([open]) > summary::after { transform: rotate(-90deg); }
.nav-sec > summary:hover { color: #fff; }
.nav-sec > summary .badge-alert { margin-left: 0; }
.nav-sec[open] { padding-bottom: .25rem; }
.nav-adv { margin-top: .35rem; }
.nav-adv > summary { padding: .45rem .65rem; }

/* Mağaza, mobil: üst satırda menü + logo + (giriş yap / üye ol), arama kutusu bir alt satırda tam genişlikte */
@media (max-width: 900px) {
  .shell-shop .top { flex-wrap: wrap; row-gap: .5rem; padding-top: .5rem; padding-bottom: .55rem; }
  .shell-shop .top .search { order: 3; flex: 0 0 100%; max-width: none; }
  .shell-shop .top-actions { margin-left: auto; flex-wrap: nowrap; }
  .shell-shop .shop-brand .brand-logo { height: 38px; max-width: 115px; object-fit: contain; }
  .shell-shop .guest-bar { gap: .35rem; }
  .shell-shop .guest-bar .btn { padding: .42rem .7rem; font-size: .84rem; white-space: nowrap; }
}
@media (max-width: 400px) {
  .shell-shop .shop-brand .brand-logo { height: 32px; max-width: 90px; }
  .shell-shop .guest-bar .btn { padding: .4rem .55rem; font-size: .8rem; }
  .shell-shop .top { gap: .35rem; }
}
@media (max-width: 370px) {
  .shell-shop .shop-brand .brand-logo { height: 28px; max-width: 68px; }
}

/* Kontrol paneli: Linex Soft duyuru afişi (uzaktan yönetilir; yoksa hiç görünmez) */
.promo-banner { display: block; margin: 0 0 1rem; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.promo-banner img { display: block; width: 100%; height: auto; max-height: 220px; object-fit: cover; }
@media print { .promo-banner { display: none; } }

/* Kısmi iade */
.ret-note { color: var(--danger, #b3261e); font-weight: 600; }
.ret-list { list-style: none; margin: 0 0 1rem; padding: 0; }
.ret-list li { padding: .6rem 0; border-bottom: 1px solid var(--line, #ddd); }
.ret-list form { display: inline-block; margin-top: .35rem; }
.t tfoot.totals tr.ret-row td { color: var(--danger, #b3261e); }

/* Açılıp kapanan bölümlerde başlık + kısa açıklama */
.fold-sec > summary h3 { margin: 0; font-size: 1rem; }
.fold-sec > summary > small { margin-left: .25rem; }
.fold-sec > summary:hover { background: color-mix(in srgb, var(--line) 25%, transparent); border-radius: var(--r-md); }
.fold-sec.syscheck > summary .status { margin-left: auto; margin-right: 1.4rem; }
form.panel > .fold-sec { margin-left: 0; margin-right: 0; }
.quick { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1rem; }
.quick .btn { flex: 1 1 11rem; justify-content: center; }

/* Sipariş tablosu: dar ekranda her ürün kendi kartı olur; tutarlar ekran dışında kalmaz */
@media (max-width: 600px) {
  .t-order thead { display: none; }
  .t-order, .t-order tbody, .t-order tfoot { display: block; }
  .t-order tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem .75rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line-soft); }
  .t-order tbody td { padding: 0; border: 0; text-align: left; }
  .t-order tbody td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .t-order tbody td[data-label]::before { content: attr(data-label) ": "; color: var(--mute); font-size: .85em; font-weight: 400; }
  .t-order tbody td[data-label="Tutar"] { font-weight: 700; }
  .t-order tfoot tr { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .9rem; border-bottom: 1px solid var(--line-soft); }
  .t-order tfoot td { padding: 0; border: 0; }
  .t-order tfoot td[colspan] { flex: 1; }
}

/* ---------- Yazdırma: yalnızca belge basılır (menü, bant, düğme, form kontrolleri, onay kutuları basılmaz) ---------- */
@media print {
  .demo-bar, .topstrip, .ticker, .fx-item, .crumbs, .promo-banner, .preview-note, .quick, .todo-go, .presets,
  .pnav, .notif-list, .top-actions, .theme-menu, details.dropdown, .t .chk, .t .actions, .t .row-actions,
  .pager, .skip-link, .alert-bar, .flash, nav.tabs, p.tabs, .page-help { display: none !important; }
  .t .thumb { display: none !important; }
  a[href] { color: inherit; text-decoration: none; }
  .badge-alert, .pip { display: none !important; }
  .fold-sec { border: 0; margin: 0; }
  .fold-sec > summary::after, details > summary::-webkit-details-marker { display: none; }
  input, select, textarea { border: 0 !important; background: none !important; padding: 0 !important; box-shadow: none !important; appearance: none; -webkit-appearance: none; }
  body { color: #000; background: #fff; }
  .content, .main { max-width: none !important; }
  @page { margin: 12mm; }
}

/* Yazdırma: logo ve alt imza */
.print-logo { display: block; max-height: 48px; max-width: 220px; width: auto; height: auto; margin-bottom: .2rem; }
@media print {
  .print-foot { display: none !important; }
  @page {
    margin: 12mm 12mm 18mm;
    @bottom-center { content: "Linex Soft B2C Sistemi ile rapor alınmıştır. | www.linexsoft.com"; font: bold 9pt Arial, sans-serif; color: #555; }
    @bottom-right { content: counter(page) " / " counter(pages); font: 9pt Arial, sans-serif; color: #555; }
  }
}

/* Saha: tahsilat kutusu */
.tahsilat-box .tahsil-form { display: grid; gap: .75rem; margin: .75rem 0; }
.tahsilat-box .seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.tahsilat-box .seg-opt { flex: 1 1 8rem; }
.tahsilat-box form + form, .tahsilat-box .btn + form { margin-top: .6rem; }

.saha-dealer-card { position: relative; }
.saha-dealer-card .saha-collect-btn { flex-direction: row; align-items: center; justify-content: center; gap: .4rem; min-height: 0; margin-top: .4rem; padding: .6rem; font-weight: 600; }
.tahsilat-box .open-order { padding-bottom: .9rem; border-bottom: 1px solid var(--line, #e5e1ef); }
.tahsilat-box .open-order:last-child { border-bottom: 0; }

/* Görsel kırpma penceresi (yönetim) */
.crop-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(15, 23, 42, .78); display: flex; align-items: center; justify-content: center; padding: 1rem; overflow: auto; }
.crop-modal[hidden] { display: none; }
body.crop-open { overflow: hidden; }
.crop-box { background: var(--card, #fff); color: var(--ink, #111); border-radius: var(--r-md, 10px); padding: 1.1rem 1.25rem 1.25rem; max-width: 100%; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.crop-box h3 { margin: 0 0 .25rem; }
.crop-help { margin: 0 0 .8rem; max-width: 62ch; font-size: .9rem; }
.crop-stage { position: relative; overflow: hidden; background: #111; border-radius: 6px; touch-action: none; cursor: grab; margin: 0 auto; max-width: 100%; user-select: none; }
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; left: 0; top: 0; max-width: none; max-height: none; transform-origin: 0 0; pointer-events: none; }
.crop-guide { position: absolute; top: 0; bottom: 0; border: 2px dashed rgba(255, 255, 255, .95); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .38); pointer-events: none; display: flex; align-items: flex-end; justify-content: center; }
.crop-guide[hidden] { display: none; }
.crop-guide span { background: rgba(0, 0, 0, .6); color: #fff; font-size: .72rem; padding: .1rem .5rem; border-radius: 4px 4px 0 0; }
.crop-zoom { display: flex; align-items: center; gap: .75rem; margin: .8rem 0 .2rem; }
.crop-zoom input { flex: 1; }
.crop-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.crop-note { display: block; margin-top: .25rem; }
.crop-warn { margin: 0 0 .7rem; padding: .5rem .75rem; background: #fff6d6; color: #5c4600; border-radius: 6px; font-size: .88rem; }
.crop-warn[hidden], .crop-actions [hidden] { display: none; }
@media print { .crop-modal { display: none !important; } }

/* Müşteri kalem/kategori iskonto formu */
.dd-form { display: grid; gap: .5rem; margin-top: .75rem; }
.dd-form .field[hidden] { display: none; }

/* Canlı arama sonuçlarında ürün resmi */
.rc-results button.rc-pic { align-items: center; justify-content: flex-start; }
.rc-results button.rc-pic img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; background: var(--surface-hover); flex: none; }
.rc-results button.rc-pic span { flex: 1; min-width: 0; }

/* Panel kartlarını düzenle */
.stat-edit { border-style: dashed; background: transparent; color: var(--mute); }
.stat-edit .v { font-size: 1.4rem; }
.dc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem 1rem; margin-bottom: 1rem; }
.dc-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

/* Tema uyumlu onay / uyarı penceresi */
.dlg { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 1rem;
  background: rgba(15, 23, 42, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: dlg-fade .15s ease-out; }
.dlg[hidden] { display: none; }
.dlg-box { width: min(420px, 100%); background: var(--card, #fff); color: var(--ink, #111); border: 1px solid var(--line, #ddd);
  border-radius: calc(var(--r-md, 10px) + 4px); padding: 1.5rem 1.4rem 1.2rem; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35); animation: dlg-pop .18s ease-out; }
.dlg-ico { width: 52px; height: 52px; margin: 0 auto .8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 700; background: var(--surface-hover, #eef1f5); color: var(--steel, #1E3048); }
.dlg-ico::before { content: '?'; }
.dlg-danger .dlg-ico { background: rgba(180, 50, 42, .13); color: var(--bad-strong, #B4322A); }
.dlg-danger .dlg-ico::before { content: '!'; }
.dlg-info .dlg-ico::before { content: 'i'; }
.dlg-title { margin: 0 0 .35rem; font-size: 1.15rem; }
.dlg-msg { margin: 0 0 1.2rem; color: var(--mute, #667); line-height: 1.5; white-space: pre-line; }
.dlg-actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.dlg-actions .btn { min-width: 120px; justify-content: center; }
body.dlg-open { overflow: hidden; }
@keyframes dlg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dlg-pop { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .dlg, .dlg-box { animation: none; } }
@media print { .dlg { display: none !important; } }

.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* Bölüm çubuğu: aynı bölümdeki sayfalar arasında tek tıkla geçiş */
.subnav { display: flex; align-items: center; gap: .35rem; margin: 0 0 1.1rem; padding: .35rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md, 10px); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.subnav-t { flex: none; padding: 0 .6rem 0 .4rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); border-right: 1px solid var(--line); margin-right: .15rem; }
.subnav a { flex: none; display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 8px; color: var(--ink); font-size: .9rem; font-weight: 500; white-space: nowrap; text-decoration: none; }
.subnav a .ico { width: 1rem; height: 1rem; color: var(--mute); }
.subnav a:hover { background: var(--surface-hover, rgba(0,0,0,.05)); }
.subnav a.active { background: var(--steel); color: #fff; font-weight: 600; }
.subnav a.active .ico { color: #fff; }
.subnav .badge-alert { margin-left: .1rem; }
@media print { .subnav { display: none !important; } }

.rel-links { display: inline-flex; flex-wrap: wrap; gap: .3rem .5rem; margin: .1rem 0 .4rem; }
.rel-links a { font-size: .8rem; font-weight: 600; padding: .15rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--steel); text-decoration: none; }
.rel-links a:hover { background: var(--surface-hover, rgba(0,0,0,.05)); }

.quick-new summary { list-style: none; cursor: pointer; }
.quick-new summary::-webkit-details-marker { display: none; }
.quick-panel { width: 240px; padding: .35rem; }
.quick-panel a { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: .92rem; }
.quick-panel a:hover { background: var(--surface-hover, rgba(0,0,0,.05)); }
.quick-panel .ico { width: 1rem; height: 1rem; color: var(--mute); }
@media (max-width: 700px) {
  .top-actions [data-print] { display: none; }
  .quick-panel { right: auto; left: 0; }
}

@media (max-width:700px){ .top-actions .lbl{display:none} .top-actions{flex-wrap:nowrap;gap:.25rem} }
.inline-form { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form .field { margin: 0; min-width: 12rem; }

.panel-gap { margin-bottom: 1rem; }

/* ===================== Hızlı satış (kasa) ===================== */
.pos-body { background: var(--paper); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
.pos-top { display: flex; align-items: center; gap: 1rem; padding: .55rem 1rem; background: var(--side-bg); color: #fff; position: sticky; top: 0; z-index: 30; }
.pos-top .btn-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: transparent; }
.pos-top .btn-ghost:hover { background: rgba(255,255,255,.12); }
.pos-brand { display: flex; align-items: center; gap: .5rem; color: #fff; text-decoration: none; font: 700 1.1rem var(--f-label); letter-spacing: .03em; text-transform: uppercase; }
.pos-brand .icon, .pos-brand svg { width: 1.4rem; height: 1.4rem; color: var(--tape); }
.pos-clock { font: 500 .9rem var(--f-label); opacity: .8; }
.pos-top-r { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.pos-user { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; opacity: .85; margin-right: .4rem; }
.pos-user svg { width: 1rem; height: 1rem; }
.pos-main { flex: 1; padding: 1rem; max-width: 1700px; width: 100%; margin: 0 auto; }
.pos { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 1rem; align-items: start; }
.pos-left { display: flex; flex-direction: column; gap: .75rem; min-width: 0; }
.pos-right { display: flex; flex-direction: column; gap: .75rem; position: sticky; top: 4.2rem; }

.pos-scan { position: relative; display: flex; align-items: center; background: var(--card); border: 2px solid var(--steel-3); border-radius: var(--r-md); box-shadow: 0 6px 22px var(--shadow); }
.pos-scan:focus-within { border-color: var(--tape); box-shadow: 0 0 0 4px rgba(243,198,35,.28), 0 6px 22px var(--shadow); }
.pos-scan-ico { padding: 0 .3rem 0 1rem; color: var(--mute); display: flex; }
.pos-scan-ico svg { width: 1.6rem; height: 1.6rem; }
.pos-scan input { flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font: 600 1.45rem var(--f-body); padding: 1rem .8rem; min-width: 0; }
.pos-scan kbd, .pos-go kbd, .pos-sec kbd, .pos-done kbd { font: 600 .7rem var(--f-label); border: 1px solid var(--line); border-radius: 4px; padding: .1rem .4rem; color: var(--mute); background: var(--surface-2); margin: 0 .9rem 0 .2rem; }
.pos-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 14px 34px var(--shadow); z-index: 20; max-height: 360px; overflow: auto; }
.pos-sugg button { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); padding: .6rem .9rem; color: var(--ink); cursor: pointer; font: inherit; }
.pos-sugg button:last-child { border-bottom: 0; }
.pos-sugg button:hover, .pos-sugg button:focus { background: var(--surface-hover); outline: 0; box-shadow: inset 3px 0 0 var(--tape); }
.pos-sugg b { margin-left: auto; white-space: nowrap; }
.pos-sp { width: 2.4rem; height: 2.4rem; border-radius: 6px; background: var(--img-bg); display: grid; place-items: center; font-weight: 700; color: var(--mute); overflow: hidden; flex: none; }
.pos-sp img { width: 100%; height: 100%; object-fit: contain; }
.pos-st { display: flex; flex-direction: column; min-width: 0; }
.pos-st strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-none { padding: .8rem 1rem; margin: 0; }

.pos-msg { margin: 0; padding: .45rem .8rem; border-radius: var(--r-sm); color: var(--mute); font-size: .92rem; min-height: 2rem; }
.pos-msg.ok { color: var(--ok); background: var(--ok-bg); }
.pos-msg.err { color: var(--bad); background: var(--bad-bg); font-weight: 600; }
.pos-msg.warn { color: var(--warn); background: var(--warn-bg); }

.pos-parked { display: flex; flex-wrap: wrap; gap: .4rem; }
.pos-pkw { display: inline-flex; border: 1px solid var(--tape); border-radius: 999px; overflow: hidden; background: var(--warn-bg); }
.pos-pk, .pos-pkx { background: transparent; border: 0; padding: .3rem .7rem; cursor: pointer; color: var(--tape-ink); font: 600 .82rem var(--f-label); }
.pos-pkx { padding: .3rem .6rem; border-left: 1px solid var(--tape); }

.pos-cart { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); min-height: 52vh; display: flex; flex-direction: column; }
.pos-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; color: var(--mute); padding: 4rem 1rem; text-align: center; }
.pos-empty svg { width: 4.5rem; height: 4.5rem; opacity: .35; margin-bottom: .6rem; }
.pos-empty strong { font: 700 1.3rem var(--f-label); color: var(--ink); opacity: .75; }
.pos-lines { display: flex; flex-direction: column; }
.pos-line { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) 9.5rem 7.6rem 7rem 2rem; gap: .8rem; align-items: center; padding: .65rem .9rem; border-bottom: 1px solid var(--line-soft); }
.pos-line:last-child { border-bottom: 0; }
.pos-line.pulse { animation: posPulse .6s ease; }
@keyframes posPulse { 0% { background: rgba(243,198,35,.45); } 100% { background: transparent; } }
.pos-pic { width: 3.2rem; height: 3.2rem; border-radius: 8px; background: var(--img-bg); display: grid; place-items: center; font-weight: 700; color: var(--mute); overflow: hidden; }
.pos-pic img { width: 100%; height: 100%; object-fit: contain; }
.pos-nm { display: flex; flex-direction: column; min-width: 0; }
.pos-nm strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.02rem; }
.pos-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--input-bg); }
.pos-qty button { width: 2.5rem; border: 0; background: var(--surface-2); color: var(--ink); font: 700 1.3rem var(--f-body); cursor: pointer; }
.pos-qty button:hover { background: var(--neutral-bg); }
.pos-qty input { width: 3.6rem; text-align: center; border: 0; background: transparent; color: var(--ink); font: 700 1.1rem var(--f-body); padding: .5rem 0; min-width: 0; }
.pos-unit input { width: 100%; text-align: right; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--input-bg); color: var(--ink); padding: .45rem .5rem; font: 600 .98rem var(--f-body); }
.pos-unit input.chg { border-color: var(--tape); background: var(--warn-bg); color: var(--tape-ink); }
.pos-unit { text-align: right; }
.pos-lt { text-align: right; font: 700 1.1rem var(--f-body); white-space: nowrap; }
.pos-rm { width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: transparent; color: var(--mute); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.pos-rm:hover { background: var(--bad-bg); color: var(--bad); }

.pos-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: .85rem; }
.pos-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .3rem; background: var(--neutral-bg); padding: .25rem; border-radius: var(--r-md); }
.pos-seg button { display: flex; align-items: center; justify-content: center; gap: .4rem; border: 0; background: transparent; padding: .6rem; border-radius: 6px; cursor: pointer; font: 600 .95rem var(--f-label); color: var(--mute); }
.pos-seg button svg { width: 1.05rem; height: 1.05rem; }
.pos-seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 4px var(--shadow); }
.pos-cust-find { position: relative; margin-top: .6rem; }
.pos-cust-find input { width: 100%; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--input-bg); color: var(--ink); font: inherit; }
.pos-cust-find .pos-sugg button { flex-direction: column; align-items: flex-start; gap: 0; }
.pos-cust-sel { display: flex; align-items: center; gap: .6rem; margin-top: .6rem; padding: .6rem .7rem; border-radius: var(--r-sm); background: var(--info-bg); }
.pos-cinfo { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.pos-cinfo strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-cbal { color: var(--steel-3); font-weight: 600; }

.pos-sum .row { display: flex; justify-content: space-between; padding: .2rem 0; color: var(--mute); }
.pos-sum .row b { color: var(--ink); }
.pos-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: .5rem; padding-top: .6rem; border-top: 2px dashed var(--line); }
.pos-total span { font: 700 1rem var(--f-label); letter-spacing: .08em; color: var(--mute); }
.pos-total strong { font: 800 2.6rem var(--f-label); color: var(--ink); letter-spacing: -.01em; }

.pos-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr)); gap: .4rem; }
.pos-methods button { padding: .8rem .4rem; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); color: var(--ink); font: 700 .95rem var(--f-label); cursor: pointer; }
.pos-methods button.on { border-color: var(--steel-3); background: var(--steel); color: #fff; }
.pos-cash { margin-top: .7rem; }
.pos-cash .field { margin: 0 0 .4rem; }
.pos-cash input { font: 700 1.3rem var(--f-body); text-align: right; }
.pos-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.pos-chips button { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: .3rem .75rem; cursor: pointer; font: 600 .85rem var(--f-label); }
.pos-chips button:hover { border-color: var(--steel-3); }
.pos-change { display: flex; justify-content: space-between; align-items: baseline; margin-top: .6rem; padding: .5rem .7rem; border-radius: var(--r-sm); background: var(--ok-bg); color: var(--ok); }
.pos-change strong { font: 800 1.5rem var(--f-label); }
.pos-change.bad { background: var(--bad-bg); color: var(--bad); }
.pos-go { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; margin-top: .8rem; padding: 1.1rem; border: 0; border-radius: var(--r-md); background: var(--ok-strong); color: #fff; cursor: pointer; font: 800 1.2rem var(--f-label); letter-spacing: .02em; box-shadow: 0 6px 18px var(--shadow); }
.pos-go svg { width: 1.6rem; height: 1.6rem; }
.pos-go:disabled { background: var(--neutral-bg); color: var(--mute); box-shadow: none; cursor: not-allowed; }
.pos-go kbd { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); margin-left: .4rem; }
.pos-go:disabled kbd { background: transparent; color: var(--mute); border-color: var(--line); }
.pos-sec { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .6rem; }
.pos-sec kbd { margin: 0 0 0 .3rem; }

.pos-recent-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.pos-recent ul { list-style: none; margin: 0; padding: 0; }
.pos-recent li { display: grid; grid-template-columns: auto 1fr auto auto; gap: .6rem; align-items: center; padding: .35rem 0; border-top: 1px solid var(--line-soft); font-size: .88rem; }
.pos-recent .pos-rp { color: var(--mute); display: grid; }
.pos-recent .pos-rp svg { width: 1.1rem; height: 1.1rem; }

.pos-done { position: fixed; inset: 0; background: rgba(20,28,38,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 100; padding: 1rem; }
.pos-done[hidden] { display: none; }
.pos-done-box { background: var(--card); border-radius: 14px; padding: 2rem 2.2rem; text-align: center; max-width: 440px; width: 100%; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.pos-done-ico { width: 5rem; height: 5rem; margin: 0 auto .6rem; color: var(--ok-strong); }
.pos-done-ico svg { width: 100%; height: 100%; }
.pos-done h2 { margin: 0 0 .3rem; font: 800 1.5rem var(--f-label); }
.pos-done-total { margin: 0; font: 800 3rem var(--f-label); }
.pos-done-change { margin: .6rem 0 0; font: 800 1.6rem var(--f-label); color: var(--ok-strong); background: var(--ok-bg); border-radius: var(--r-md); padding: .5rem; }
.pos-done-act { display: flex; gap: .6rem; justify-content: center; margin-top: 1.4rem; }
.pos-done-act .btn { padding: .8rem 1.3rem; font-size: 1rem; }
.pos-done kbd { margin: 0 0 0 .3rem; }

@media (max-width: 1100px) {
  .pos { grid-template-columns: 1fr; }
  .pos-right { position: static; }
  .pos-line { grid-template-columns: 2.8rem minmax(0, 1fr) 8.5rem 6.5rem 2rem; }
  .pos-unit { display: none; }
  .pos-clock { display: none; }
}
@media (max-width: 700px) {
  .pos-top .lbl, .pos-user span { display: none; }
  .pos-main { padding: .6rem; }
  .pos-scan input { font-size: 1.15rem; }
  .pos-total strong { font-size: 2.1rem; }
  .pos-line { grid-template-columns: 2.4rem minmax(0, 1fr) auto 1.8rem; gap: .5rem; }
  .pos-lt { display: none; }
}

/* Fiş (80 mm) */
.rcpt-body { background: var(--paper); margin: 0; }
.rcpt { max-width: 420px; margin: 0 auto; padding: 1rem; }
.rcpt-actions { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1rem; }
.rcpt-paper { background: #fff; color: #000; padding: 1rem; font: 13px/1.35 "Courier New", ui-monospace, monospace; box-shadow: 0 8px 24px var(--shadow); }
.rcpt-head { text-align: center; font-size: 15px; margin-bottom: .5rem; }
.rcpt-meta { display: flex; flex-direction: column; border-top: 1px dashed #000; border-bottom: 1px dashed #000; padding: .35rem 0; margin-bottom: .4rem; }
.rcpt-t { width: 100%; border-collapse: collapse; }
.rcpt-t td { padding: 1px 0; }
.rcpt-t .sub td { padding-bottom: 4px; color: #333; }
.rcpt-t .r, .rcpt-sum .r { text-align: right; }
.rcpt-sum { border-top: 1px dashed #000; margin-top: .4rem; padding-top: .4rem; }
.rcpt-sum div { display: flex; justify-content: space-between; }
.rcpt-sum .big { font-weight: 700; font-size: 17px; margin: .2rem 0; }
.rcpt-foot { text-align: center; margin-top: .8rem; border-top: 1px dashed #000; padding-top: .5rem; }
@media print {
  @page { size: 80mm auto; margin: 3mm; }
  .rcpt-body { background: #fff; }
  .rcpt { max-width: none; padding: 0; }
  .rcpt-paper { box-shadow: none; padding: 0; font-size: 12px; }
  .rcpt-actions { display: none !important; }
}
.pos-scan input[type="text"] { border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.pos-qty input[type="text"] { border: 0; background: transparent; box-shadow: none; border-radius: 0; }

/* ---- Barkod yazdır ---- */
.lbl-search { position: relative; display: flex; align-items: center; gap: .6rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); max-width: 560px; }
.lbl-search .ico { width: 18px; height: 18px; color: var(--mute); flex: none; }
.lbl-search input { flex: 1; border: 0; background: transparent; box-shadow: none; padding: .45rem 0; font-size: 1rem; min-width: 0; }
.lbl-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.14); overflow: hidden; }
.lbl-results button { display: flex; justify-content: space-between; gap: 1rem; width: 100%; padding: .6rem .9rem; border: 0; background: transparent; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.lbl-results button:hover, .lbl-results button:focus { background: var(--surface-hover); outline: none; }
.lbl-results small { color: var(--mute); display: block; }
.lbl-none { padding: .7rem .9rem; color: var(--mute); }
.lbl-table { margin-top: 1rem; }
.lbl-table input[type="number"] { width: 5.5rem; text-align: right; }
.lbl-warn { color: var(--warn); font-size: .85rem; }
.lbl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 220px)); gap: 1rem; }
.lbl-checks { display: flex; flex-wrap: wrap; gap: .4rem 1.6rem; margin-top: .6rem; }
@media (max-width: 700px) { .lbl-grid { grid-template-columns: minmax(0, 1fr); } }
.lbl-body { background: #eceef2; margin: 0; padding: 0; }
.lbl-bar { color: #18222E; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; padding: .8rem 1.2rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.bc-sheet { display: flex; flex-wrap: wrap; gap: 10px; padding: 1.2rem; align-items: flex-start; }
.bc-label { background: #fff; color: #000; box-sizing: border-box; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; gap: .3mm; box-shadow: 0 1px 4px rgba(0,0,0,.2); font-family: Arial, Helvetica, sans-serif; line-height: 1.15; break-inside: avoid; }
.bc-firm { text-align: center; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-name { font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bc-code { flex: 1 1 auto; min-height: 0; display: flex; }
.bc-svg { width: 100%; height: 100%; fill: #000; display: block; }
.bc-num { text-align: center; letter-spacing: .08em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; }
.bc-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1mm; }
.bc-meta { color: #222; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-price { font-weight: 800; white-space: nowrap; }
@media print {
  .lbl-body { background: #fff; }
  .lbl-bar { display: none !important; }
  .bc-sheet { display: block; padding: 0; gap: 0; }
  .bc-label { box-shadow: none; page-break-after: always; break-after: page; }
  .bc-label:last-child { page-break-after: auto; break-after: auto; }
}
.lbl-own { margin: .8rem 0 0; padding: .7rem .9rem; border: 1px dashed var(--line); border-radius: 8px; }
.lbl-own summary { cursor: pointer; font-weight: 600; }
.lbl-own[open] summary { margin-bottom: .8rem; }
.lbl-own-grid { display: grid; grid-template-columns: 1.3fr 1.5fr 1fr 7rem; gap: .8rem; margin-bottom: .6rem; }
@media (max-width: 700px) { .lbl-own-grid { grid-template-columns: minmax(0, 1fr); } }
.scan-ov { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; padding: 1rem; color: #fff; }
.scan-ov video { width: min(100%, 560px); max-height: 65vh; border-radius: 12px; background: #000; object-fit: cover; }

/* Saha müşteri kartları: hepsi aynı boyutta */
.saha-dealers { grid-auto-rows: 1fr; }
.saha-dealer-card { display: flex; flex-direction: column; min-width: 0; }
.saha-dealer-card > button:first-of-type { flex: 1 1 auto; min-width: 0; min-height: 150px; overflow: hidden; }
.saha-dealer-card > button:first-of-type > * { max-width: 100%; overflow-wrap: anywhere; }
.saha-dealer-card strong, .saha-dealer-card span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.saha-dealer-card span.small { -webkit-line-clamp: 1; }
.saha-dealer-card .saha-collect-btn { flex: 0 0 auto; }

/* Saha: telefon ve tablet görünümü */
.saha-dealer-card > button:first-of-type { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.saha-dealer-card .saha-collect-btn { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; background: var(--paper); border-color: var(--line); }
@media (max-width: 600px) {
  .saha-top { flex-wrap: wrap; row-gap: .5rem; padding: .5rem .75rem; }
  .saha-brand { font-size: 1rem; }
  .saha-dealer { margin-left: auto; align-items: flex-end; text-align: right; border-left: 0; padding-left: 0; }
  .saha-dealer strong { max-width: 52vw; }
  .saha-actions { flex: 1 0 100%; margin-left: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .4rem; }
  .saha-actions > *, .saha-actions .btn { min-width: 0; width: 100%; justify-content: center; }
  .saha-actions .quick-new, .saha-actions details { width: 100%; }
  .saha-actions .btn { min-height: 44px; padding-left: .4rem; padding-right: .4rem; }
  .saha-content { padding-left: .75rem; padding-right: .75rem; }
  .saha-content h1 { font-size: 1.5rem; }
  .saha-dealers { grid-template-columns: minmax(0, 1fr); gap: .75rem; grid-auto-rows: auto; }
  .saha-dealer-card > button:first-of-type { min-height: 0; padding: .8rem .95rem; }
  .saha-search input { min-width: 0; flex: 1; }
  .saha-row { padding: .6rem .7rem; gap: .5rem .7rem; }
  .saha-buy .btn { flex: 1; }
}
@media (min-width: 601px) and (max-width: 1000px) {
  .saha-actions .btn { min-height: 48px; }
  .saha-dealers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Giriş sayfalarında yüklenen logo */
.auth-logo { display: inline-block; position: relative; z-index: 1; }
.auth-logo .brand-logo { height: 64px; max-width: min(320px, 100%); background: #fff; padding: 8px 14px; border-radius: 10px; }
@media (max-width: 900px) { .auth-logo .brand-logo { height: 48px; } }

/* Mağaza kenar çubuğu: başlıkların arkası tema rengine uyumlu */
.f-block h3 { background: color-mix(in srgb, var(--steel) 11%, var(--card)); color: var(--steel); padding: .5rem .75rem; border-radius: var(--r-sm); border-left: 3px solid var(--tape); margin-bottom: .6rem; }
@supports not (background: color-mix(in srgb, red, blue)) { .f-block h3 { background: var(--info-bg); } }

/* Yönetim paneli: Destek al penceresi */
.support-fab { position: fixed; right: 18px; bottom: 20px; z-index: 36; }
.support-fab > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; height: 52px; padding: 0 1.1rem 0 .9rem; border-radius: 26px; background: var(--steel); color: #fff; font-weight: 700; font-size: .95rem; box-shadow: 0 6px 18px rgba(0,0,0,.28); user-select: none; }
.support-fab > summary::-webkit-details-marker { display: none; }
.support-fab > summary .ico { width: 22px; height: 22px; }
.support-fab[open] > summary { background: var(--steel-2); }
.support-panel { position: absolute; right: 0; bottom: 64px; width: min(380px, calc(100vw - 24px)); max-height: calc(100vh - 110px); overflow-y: auto; background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 12px 36px rgba(0,0,0,.3); padding: 1rem 1.1rem 1.1rem; }
.support-panel h3 { margin: 0 0 .2rem; }
.support-panel textarea { width: 100%; resize: vertical; }
@media (max-width: 760px) { .support-fab { right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); } .support-fab > summary span { display: none; } .support-fab > summary { width: 52px; padding: 0; justify-content: center; border-radius: 50%; } }
@media print { .support-fab { display: none; } }

/* Yönetim / saha: yüklenen logo */
.side-brand .brand-logo { max-width: 150px; }
.saha-logo { height: 30px; max-width: 90px; }

/* Sipariş detayı: tek sayfada derli toplu çıktı */
@media print {
  .order-head h1 { display: none; }
  .order-head { margin: 0 0 .4rem; }
  .order-head .chip, .order-head .badge-pay { display: none !important; }
  .order-cols { display: block !important; }
  .order-cols .panel { box-shadow: none; border: 0; padding: 0; margin: 0 0 .5rem; }
  .order-cols .table-wrap { overflow: visible; }
  .t-order { font-size: 10pt; width: 100%; }
  .t-order th, .t-order td { padding: .25rem .4rem !important; }
  .t-order tr { break-inside: avoid; }
  .order-aside { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1.5rem; font-size: 10pt; break-inside: avoid; }
  .order-aside .panel { padding: 0 !important; margin: 0 !important; }
  .order-aside h3 { font-size: 10pt; margin: .3rem 0 .1rem; }
  .order-aside p { margin: 0 0 .2rem; }
  .order-aside, .order-cols { page-break-inside: avoid; }
}

@media print {
  .order-cust { font-size: 10.5pt; line-height: 1.4; margin: 0 0 .6rem; padding-bottom: .4rem; border-bottom: 1px solid #999; text-align: left; }
  .order-aside { grid-template-columns: 1fr; }
}

@media print { .order-head { display: none !important; } .order-info { font-size: 10.5pt; margin: 0 0 .3rem; } }
@media print { .order-info { font-size: 10pt; margin: 0 0 .5rem; } .order-info div { margin-bottom: .1rem; } }

@media print {
  .stmt-boxes { display: grid !important; grid-template-columns: 1fr 1.2fr; gap: .6rem; border-bottom: 0; padding-bottom: 0; margin-bottom: .6rem; }
  .stmt-boxes > div { border: 1px solid #888; border-radius: 8px; padding: .55rem .8rem; }
  .stmt-boxes > div:first-child { justify-content: center; }
  .order-info { border: 1px solid #888; border-radius: 8px; padding: .45rem .8rem; }
  .order-cols .panel.flush { border: 1px solid #888 !important; border-radius: 8px; overflow: hidden; }
  .order-aside .panel { border: 1px solid #888 !important; border-radius: 8px; padding: .45rem .8rem !important; }
  .order-aside { margin-top: .6rem; }
}

/* ---------- Ortak çıktı stili: tüm raporlar aynı yuvarlak çerçeveli düzende ---------- */
@media print {
  .stmt-head, .stmt-boxes { display: grid !important; grid-template-columns: 1fr 1.2fr; gap: .6rem; border-bottom: 0 !important; padding-bottom: 0 !important; margin-bottom: .6rem; align-items: stretch; }
  .stmt-head.auto-print-head { grid-template-columns: 1fr auto; }
  .stmt-head > div { border: 1px solid #888; border-radius: 8px; padding: .55rem .8rem; }
  .stmt-head > div:first-child { justify-content: center; }
  .panel, .kpis, .table-wrap, .card { border: 1px solid #888 !important; border-radius: 8px !important; box-shadow: none !important; background: none !important; }
  .table-wrap { overflow: visible !important; }
  .panel .table-wrap, .panel .panel, .kpis .panel, .panel .kpis { border: 0 !important; }
  .panel { padding: .5rem .8rem; margin-bottom: .6rem; }
  .panel.flush { padding: 0; overflow: hidden; }
  .cols, .cols-3, .cols-even { display: block !important; }
  .t { width: 100%; }
  .t th, .t td { padding: .3rem .5rem; }
  .t tr { break-inside: avoid; }
  h1 { font-size: 15pt; margin: 0 0 .4rem; }
  .page-head p { margin: 0; }
}
@media print { .pos-top, .pos-body .pos-bar, .pos-foot { display: none !important; } .pos-main { padding: 0 !important; } .pos-body { background: #fff !important; } }
@media print { .print-hide { display: none !important; } .page-head { margin: 0 0 .4rem; } }
@media print { .panel:has(> form:not(.inline)), .panel:has(> .field), details.fold-sec:has(form) { display: none !important; } }

/* Yıl kapanışı */
.check-list { list-style: none; margin: .5rem 0 1rem; padding: 0; display: grid; gap: .45rem; }
.check-list li { display: flex; gap: .55rem; align-items: flex-start; }
.check-list li .ico { margin-top: 2px; flex: none; }
.check-list li.ok .ico { color: var(--ok, #1a7f37); }
.check-list li.warn .ico { color: var(--warn, #b45309); }
.panel-title { margin: 0; padding: .75rem 1.25rem .25rem; font-size: 1rem; }
.info-note p { margin: 0; }
@media print { .panel-title { padding: .4rem .8rem .1rem; } }

.tabs .tab-actions { margin-left: auto; display: flex; gap: .4rem; align-items: center; padding: 0 0 .35rem .75rem; }
.tabs .tab-actions form { margin: 0; }

/* Modüller sayfası */
.mod-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.mod-card { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.mod-card.is-on { border-color: var(--accent, #2563eb); }
.mod-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mod-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.mod-card p { margin: 0; flex: 1; }
.mod-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mod-actions form { margin: 0; }
@media print { .mod-actions { display: none; } }

/* Kontrol paneli kısayolları */
.shortcuts { margin-bottom: 1.5rem; }
.shortcuts h2 { font-size: 1rem; margin: 0 0 .5rem; }
.sc-grid { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.sc-item { display: flex; align-items: center; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--r-md); }
.sc-item a { padding: .55rem .5rem .55rem .9rem; font-weight: 600; }
.sc-item form { margin: 0; }
.sc-x { border: 0; background: transparent; color: var(--mute); font-size: 1.2rem; line-height: 1; padding: .4rem .7rem; cursor: pointer; border-radius: var(--r-md); }
.sc-x:hover { color: var(--danger, #c0392b); }
.sc-drop { display: flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--mute); font-size: .85rem; }
.sc-active .sc-drop { border-color: var(--brand, #2563eb); color: var(--brand, #2563eb); }
.sc-drop.sc-over { background: rgba(37, 99, 235, .08); border-style: solid; }
.sc-drop.sc-err { color: var(--danger, #c0392b); }
