/* Felvini Servis Portalı — arayüz
   Marka: logo siyahı #231F20 + beyaz. Kırmızı yalnızca sorun/uyarı içindir. */

@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url(/fonts/onest-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url(/fonts/onest-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url(/fonts/onest-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url(/fonts/onest-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url(/fonts/onest-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url(/fonts/onest-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 700; font-display: swap; src: url(/fonts/onest-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-weight: 700; font-display: swap; src: url(/fonts/onest-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #231F20;          /* Felvini logo siyahı */
  --ink-2: #4A4647;
  --muted: #6E6A6B;
  --line: #DEDCDB;
  --line-2: #EBE9E8;
  --ground: #F0F0EE;       /* çelik gri zemin */
  --paper: #FFFFFF;
  --done: #157347;  --done-bg: #E5F2EA;
  --plan: #1D5FA6;  --plan-bg: #E6EEF8;
  --wait: #8A5A00;  --wait-bg: #FBF0D9;
  --bad: #C42B1C;   --bad-bg: #FBE7E4;
  --r-s: 4px; --r: 6px; --r-l: 10px;
  --side: 236px;
  --tab: 64px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink);
  background: var(--ground); min-height: 100vh; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Kabuk ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side {
  background: var(--paper); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 22px 14px 16px; overflow-y: auto;
}
.side .logo { display: block; color: var(--ink); padding: 0 10px 4px; }
.side .logo svg { width: 132px; height: auto; display: block; }
.side .product { font-size: 12.5px; color: var(--muted); padding: 2px 10px 18px; }
.nav-group { margin-top: 14px; }
.nav-group > span { display: block; font-size: 12px; color: var(--muted); padding: 0 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r);
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14.5px;
}
.nav a:hover { background: var(--ground); color: var(--ink); }
.nav a.on { background: var(--ink); color: #fff; }
.nav a .n { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--bad); color: #fff; border-radius: 10px; padding: 1px 7px; }
.nav a.on .n { background: #fff; color: var(--ink); }
.side .me { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ground); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.me .who { min-width: 0; flex: 1; }
.me .who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who small { color: var(--muted); font-size: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: var(--ground); position: sticky; top: 0; z-index: 30; }
.content { padding: 8px 28px 48px; max-width: 1180px; width: 100%; }

/* Mobil üst çubuk + alt sekmeler */
.mtop { display: none; }
.tabbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: none; }
  .mtop {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
  }
  .mtop .logo svg { width: 112px; height: auto; display: block; }
  .content { padding: 16px 16px calc(var(--tab) + 32px); }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--paper); border-top: 1px solid var(--line); height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 500; color: var(--muted); text-decoration: none; position: relative; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--ink); border-radius: 0 0 3px 3px; }
  .tabbar a .n { position: absolute; top: 7px; left: 54%; font-size: 10.5px; font-weight: 700; background: var(--bad); color: #fff; border-radius: 9px; padding: 0 5px; }
}

/* ---------- Arama ---------- */
.search { position: relative; flex: 1; max-width: 560px; }
.search input {
  width: 100%; height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r);
  padding: 0 14px 0 42px; font-size: 14.5px;
}
.search > svg { position: absolute; left: 13px; top: 12px; color: var(--muted); }
.search .results {
  position: absolute; top: 50px; left: 0; right: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: 0 12px 32px rgba(35,31,32,.14); overflow: hidden; z-index: 50; max-height: 70vh; overflow-y: auto;
}
.search .results a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.search .results a:hover, .search .results a.sel { background: var(--ground); }
.search .results .t { font-size: 12px; color: var(--muted); width: 58px; flex: none; }
.search .results b { font-weight: 600; font-size: 14px; }
.search .results small { display: block; color: var(--muted); font-size: 12.5px; }
.search .results .none { padding: 14px; color: var(--muted); font-size: 14px; }

/* ---------- Tipografi ---------- */
h1 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 20px; }
.page-head .back { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.page-head .back:hover { color: var(--ink); }
@media (max-width: 860px) { h1 { font-size: 22px; } .page-head { margin-top: 0; } }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, transform .06s;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn.line { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.line:hover { border-color: var(--ink); background: var(--paper); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); padding: 0 10px; }
.btn.ghost:hover { background: rgba(35,31,32,.06); }
.btn.bad { background: var(--paper); color: var(--bad); border-color: #EBC2BC; }
.btn.bad:hover { border-color: var(--bad); }
.btn.big { min-height: 56px; font-size: 16.5px; padding: 0 22px; border-radius: var(--r-l); }
.btn.full { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn.busy::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Yüzeyler ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; margin-bottom: 16px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel > h2 { display: flex; align-items: center; gap: 8px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.panel-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 980px) { .cols, .cols-2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .panel { padding: 16px; } .panel-head { padding: 14px 16px; } }

/* ---------- Ana sayfa kısayolları ---------- */
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 22px; }
.quick button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 16px; min-height: 104px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); cursor: pointer; text-align: left; font-weight: 600; font-size: 14.5px;
}
.quick button:hover { border-color: var(--ink); }
.quick button svg.i { width: 24px; height: 24px; }
.quick button.main-q { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 980px) { .quick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .quick { grid-template-columns: 1fr 1fr; } .quick button { min-height: 86px; gap: 10px; } .quick button.main-q { grid-column: span 2; flex-direction: row; align-items: center; min-height: 60px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); margin-bottom: 16px; }
.stats > div { padding: 14px 18px; border-right: 1px solid var(--line-2); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stats span { font-size: 13px; color: var(--muted); }
.stats a { text-decoration: none; display: block; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); } }

/* ---------- Listeler ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-2);
  text-decoration: none; color: inherit; background: var(--paper); cursor: pointer; width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0;
}
.list > :last-child .item, .list > .item:last-child { border-bottom: 0; }
.item:hover { background: #FAFAF9; }
.item .body { flex: 1; min-width: 0; }
.item .title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item .meta { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .side-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; text-align: right; }
.item .when { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.item .chev { color: var(--line); }
@media (max-width: 860px) { .item { padding: 14px 16px; } }

.group-label { display: flex; align-items: center; gap: 8px; padding: 14px 20px 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--paper); }
.group-label .count { background: var(--ground); border-radius: 10px; padding: 0 8px; font-size: 12px; }

/* Durum etiketi */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; background: var(--ground); color: var(--ink-2); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.done { background: var(--done-bg); color: var(--done); }
.pill.plan { background: var(--plan-bg); color: var(--plan); }
.pill.wait { background: var(--wait-bg); color: var(--wait); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.ink { background: var(--ink); color: #fff; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: var(--r-s); background: var(--ground); color: var(--ink-2); }
.tag.urgent { background: var(--bad); color: #fff; }

/* Filtre sekmeleri */
.filters { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; scrollbar-width: none; }
.filters button {
  flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 20px; padding: 7px 14px; font-weight: 500; font-size: 14px; cursor: pointer;
}
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button .c { opacity: .6; margin-left: 4px; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .search { max-width: 360px; }
.toolbar .search input { height: 40px; }
.toolbar .search > svg { top: 10px; }

/* ---------- İlerleme çubuğu (işin imza öğesi) ---------- */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.rail .seg { height: 8px; background: var(--line); border-radius: 2px; }
.rail .seg.on { background: var(--ink); }
.rail .seg.now { background: repeating-linear-gradient(90deg, var(--ink) 0 6px, var(--ink-2) 6px 8px); }
.rail.bad .seg.on { background: var(--bad); }
.rail-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.rail-labels span.on { color: var(--ink); font-weight: 600; }
.mini-rail { display: grid; grid-template-columns: repeat(4, 10px); gap: 2px; }
.mini-rail i { height: 4px; background: var(--line); border-radius: 1px; }
.mini-rail i.on { background: var(--ink); }
.mini-rail.bad i.on { background: var(--bad); }

.job-hero { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; margin-bottom: 16px; }
.job-hero .next { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.job-hero .next .btn.big { flex: 1 1 280px; }
.job-hero .hint { font-size: 14px; color: var(--ink-2); margin-top: 14px; padding: 12px 14px; background: var(--ground); border-radius: var(--r); }
.job-hero .hint.bad { background: var(--bad-bg); color: var(--bad); }
.job-hero .hint.done { background: var(--done-bg); color: var(--done); }

@media (max-width: 860px) {
  .sticky-action { position: fixed; left: 0; right: 0; bottom: calc(var(--tab) + env(safe-area-inset-bottom)); padding: 10px 16px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); z-index: 35; backdrop-filter: blur(6px); }
  .has-sticky .content { padding-bottom: calc(var(--tab) + 110px); }
  .job-hero .next > .btn { flex: 1 1 calc(50% - 5px); }
}

/* İletişim butonları */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.contact a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-size: 13px; font-weight: 500; }
.contact a:hover { border-color: var(--ink); }
.contact a.off { opacity: .4; pointer-events: none; }

/* Bilgi tablosu */
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.kv div { min-width: 0; }
.kv dt { font-size: 12.5px; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-weight: 500; font-size: 14.5px; overflow-wrap: anywhere; }
.kv .wide { grid-column: 1 / -1; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* Zaman çizelgesi */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t { color: var(--muted); font-size: 12.5px; }

/* Foto ızgarası */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.photos a { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--ground); display: block; }
.photos img { width: 100%; height: 100%; object-fit: cover; }

/* Boş durum */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg.i { width: 36px; height: 36px; color: var(--line); margin-bottom: 8px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ---------- Formlar ---------- */
.f { margin-bottom: 14px; }
.f > label, .f > .lbl { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.f > label .opt { font-weight: 400; color: var(--muted); }
.f .help { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.inp, .f input:not([type=checkbox]):not([type=radio]):not([type=file]), .f select, .f textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  padding: 10px 12px; font-size: 16px; /* 16px: iOS'ta otomatik yakınlaştırmayı önler */
}
.f textarea { min-height: 88px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(35,31,32,.1); }
.f.err input, .f.err select, .f.err textarea { border-color: var(--bad); }
.f .err-msg { color: var(--bad); font-size: 13px; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .row3 { grid-template-columns: 1fr 1fr; } }

details.more { border-top: 1px solid var(--line-2); margin: 6px 0 14px; }
details.more > summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '+'; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; font-weight: 500; }
details.more[open] > summary::before { content: '–'; }

/* Segment seçici */
.seg-ctl { display: flex; border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 3px; background: var(--paper); }
.seg-ctl label { flex: 1; position: relative; }
.seg-ctl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-ctl span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 4px; font-weight: 500; font-size: 14.5px; text-align: center; padding: 0 8px; }
.seg-ctl input:checked + span { background: var(--ink); color: #fff; }
.seg-ctl input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Seçim çipleri */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: 14px; font-weight: 500; background: var(--paper); }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Aç/kapa anahtarı */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.switch .txt b { display: block; font-size: 14.5px; font-weight: 600; }
.switch .txt small { color: var(--muted); font-size: 13px; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(18px); }

/* Dosya / foto yükleme */
.drop { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed var(--line); border-radius: var(--r); cursor: pointer; background: var(--paper); position: relative; }
.drop:hover { border-color: var(--ink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ic { width: 42px; height: 42px; border-radius: var(--r); background: var(--ground); display: grid; place-items: center; flex: none; }
.drop b { display: block; font-size: 14.5px; font-weight: 600; }
.drop small { color: var(--muted); font-size: 13px; }
.drop.has { border-style: solid; border-color: var(--done); }
.drop.has .ic { background: var(--done-bg); color: var(--done); }

/* ---------- Kontrol listesi (sahada) ---------- */
.steps-nav { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.steps-nav button { flex: 1 0 auto; border: 0; background: transparent; padding: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 3px solid var(--line); cursor: pointer; text-align: left; }
.steps-nav button.on { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.steps-nav button.ok { color: var(--done); border-color: var(--done); }
.check-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.check-head h3 { margin: 0; font-size: 17px; }
.yn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.yn-row > span { font-size: 15px; }
.yn-row.warn > span { color: var(--bad); font-weight: 500; }
.yn { display: flex; gap: 4px; flex: none; }
.yn label { position: relative; }
.yn input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.yn span { display: grid; place-items: center; width: 64px; height: 40px; border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; font-size: 14px; background: var(--paper); }
.yn input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.yn input.no-good:checked + span { background: var(--bad); border-color: var(--bad); }
.yn input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.all-ok { border: 1px solid var(--done); color: var(--done); background: var(--done-bg); }
.all-ok:hover { background: var(--done-bg); border-color: var(--done); }

.sig-wrap { position: relative; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 6px; }
.sig-wrap canvas { width: 100%; height: 150px; display: block; touch-action: none; }
.sig-wrap .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line); font-size: 15px; pointer-events: none; }
.sig-wrap.signed .ph { display: none; }
.sig-wrap.signed { border-color: var(--ink); }
.sig-line { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* ---------- Çekmece / alt sayfa ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(35,31,32,.42); z-index: 100; animation: fade .15s ease-out; }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--paper); z-index: 101;
  display: flex; flex-direction: column; animation: slide-in .2s cubic-bezier(.2,.8,.2,1); box-shadow: -12px 0 40px rgba(35,31,32,.18);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.sheet-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); display: flex; gap: 8px; }
.sheet-foot .btn { flex: 1; }
.sheet-foot .btn.line { flex: 0 0 auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 860px) {
  .sheet { top: auto; left: 0; width: 100%; max-height: 94vh; border-radius: 14px 14px 0 0; animation-name: slide-up; box-shadow: 0 -10px 40px rgba(35,31,32,.2); }
  .sheet::before { content: ''; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 0; }
  .sheet-head { padding: 10px 16px 12px; }
  .sheet-body { padding: 16px; }
  .sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
}

/* Bildirim */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-l); font-size: 14.5px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; gap: 10px; align-items: center; max-width: 92vw; animation: slide-up .2s; pointer-events: auto; }
.toast.bad { background: var(--bad); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 14px; margin-bottom: 14px; background: var(--ground); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.done { background: var(--done-bg); color: var(--done); }
.notice.wait { background: var(--wait-bg); color: var(--wait); }
.notice svg.i { margin-top: 1px; }

/* Seri no sorgu sonucu */
.lookup { padding: 12px 14px; border-radius: var(--r); font-size: 14px; margin: -6px 0 14px; }
.lookup.found { background: var(--done-bg); color: var(--done); }
.lookup.notfound { background: var(--ground); color: var(--ink-2); }
.lookup b { color: var(--ink); }

/* Harita kutusu */
.map-box { height: 260px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; background: var(--ground); }
.map-box.tall { height: 420px; }
.loc-status { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.loc-status.ok { color: var(--done); }

/* ---------- Giriş ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .brand-side { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .brand-side .logo svg { width: 180px; color: #fff; }
.login .brand-side .mark-bg { position: absolute; right: -34%; top: 50%; transform: translateY(-58%); width: 110%; color: rgba(255,255,255,.05); pointer-events: none; }
.login .brand-side .mark-bg svg { width: 100%; height: auto; display: block; }
.login .brand-side h1 { font-size: 40px; max-width: 12ch; position: relative; }
.login .brand-side p { color: rgba(255,255,255,.66); max-width: 38ch; position: relative; margin: 14px 0 0; }
.login .form-side { display: grid; place-items: center; padding: 32px 20px; background: var(--paper); }
.login form { width: 100%; max-width: 360px; }
.login form h2 { font-size: 24px; margin-bottom: 4px; }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login .brand-side { padding: 28px 20px 30px; min-height: 0; }
  .login .brand-side h1 { font-size: 26px; margin-top: 30px; }
  .login .brand-side .logo svg { width: 132px; }
  .login .form-side { place-items: start center; padding-top: 28px; }
}

/* ---------- Müşteri sayfası ---------- */
.public { max-width: 560px; margin: 0 auto; padding: 0 0 40px; background: var(--paper); min-height: 100vh; }
.public-top { background: var(--ink); color: #fff; padding: 22px 20px 26px; }
.public-top .logo svg { width: 120px; }
.public-top h1 { font-size: 24px; margin-top: 22px; }
.public-top p { color: rgba(255,255,255,.7); margin: 6px 0 0; font-size: 15px; }
.public section { padding: 20px; border-bottom: 1px solid var(--line-2); }
.req { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.req:last-child { border-bottom: 0; }
.req .ic { width: 40px; height: 40px; border-radius: var(--r); background: var(--ground); display: grid; place-items: center; flex: none; }
.req b { display: block; font-size: 15px; }
.req span { color: var(--ink-2); font-size: 14px; }

.spinner { display: grid; place-items: center; padding: 60px; color: var(--muted); }
.spinner::before { content: ''; width: 26px; height: 26px; border: 2.5px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 10px 20px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 860px) { .table th, .table td { padding: 10px 16px; } }

.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--ground); border-radius: var(--r); padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; border: 1px solid var(--line); }
.hide-m { }
@media (max-width: 860px) { .hide-m { display: none !important; } }
.show-m { display: none !important; }
@media (max-width: 860px) { .show-m { display: inherit !important; } }

/* Servis secici */
.sp-list { border: 1px solid var(--line); border-radius: var(--r); max-height: 320px; overflow-y: auto; background: var(--paper); }
.sp-group { position: sticky; top: 0; z-index: 1; background: var(--ground); font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 7px 12px; }
.sp-group.warn { background: var(--wait-bg); color: var(--wait); }
.sp-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; position: relative; }
.sp-item:last-child { border-bottom: 0; }
.sp-item:hover { background: #FAFAF9; }
.sp-item input { position: absolute; opacity: 0; pointer-events: none; }
.sp-item .sp-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; color: transparent; }
.sp-item .sp-dot svg.i { width: 14px; height: 14px; stroke-width: 2.6; }
.sp-item.on { background: #F6F6F5; }
.sp-item.on .sp-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.sp-item:focus-within { outline: 2px solid var(--ink); outline-offset: -2px; }
.sp-body { flex: 1; min-width: 0; }
.sp-body b { display: block; font-size: 14.5px; font-weight: 600; }
.sp-body small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; color: var(--muted); flex: none; }
.sp-empty { padding: 16px 12px; color: var(--muted); font-size: 14px; }

/* felvini.com baglantisi */
.secret { position: relative; }
.f .secret input, .secret input[type] { padding-right: 112px; text-overflow: ellipsis; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.secret [data-eye] { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); background: var(--paper); }
.secret [data-eye]:hover { background: #F4F3F2; }
@media (max-width: 720px) { .woo-head { flex-direction: column; align-items: flex-start; } }
.howto { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.howto li { margin-bottom: 8px; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: #F4F3F2; border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; color: var(--muted); }
.thumb svg { width: 20px; height: 20px; }
.tag.site { background: #EAF3EC; color: #2F6B3E; }
.woo-row { cursor: pointer; }
.woo-row > input { width: 20px; height: 20px; flex: none; accent-color: var(--ink); }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line-2); position: sticky; bottom: 0; background: var(--paper); }
@media (max-width: 720px) { .panel-foot { bottom: calc(var(--tab) + env(safe-area-inset-bottom)); } }

/* Diger portala gecis (merkez yoneticisi) */
.portal-link { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; padding: 10px 12px; border-radius: 10px; border: 1px dashed #CFCCCB; color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.portal-link:hover { border-color: var(--ink); color: var(--ink); }
.portal-link svg { width: 18px; height: 18px; flex: none; } .portal-link .chev { margin-left: auto; width: 15px; height: 15px; }

/* =================== BAYİ PANELİ (B2B) =================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.b2b-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 4px 0 18px; }
.b2b-search { position: relative; flex: 1 1 340px; min-width: 220px; }
.b2b-search > svg { position: absolute; left: 15px; top: 15px; color: var(--muted); }
.b2b-search input { width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); padding: 0 16px 0 46px; font-size: 15px; }
.b2b-search input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(35,31,32,.1); }
.seg-pay { display: inline-flex; padding: 4px; gap: 2px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; height: 50px; box-sizing: border-box; }
.seg-pay button { border: 0; background: transparent; padding: 0 15px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg-pay button.on { background: var(--ink); color: #fff; }
.cart-btn { display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 8px 0 16px; border-radius: 12px; background: var(--ink); color: #fff; text-decoration: none; }
.cart-btn > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.15; }
.cart-btn b { font-size: 15px; font-variant-numeric: tabular-nums; } .cart-btn small { font-size: 12px; color: #BDB8B7; }
.cart-btn .cb-go { height: 34px; padding: 0 12px; border-radius: 8px; background: #fff; color: var(--ink); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; }

.slider { position: relative; display: flex; flex-wrap: wrap; border-radius: 18px; overflow: hidden; background: var(--ink); color: #fff; min-height: 230px; margin-bottom: 22px; }
.sl-txt { flex: 1 1 420px; min-width: 0; padding: 30px 36px 58px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.sl-tag { font-size: 11.5px; letter-spacing: .12em; font-weight: 600; color: #A19D9C; text-transform: uppercase; }
.sl-txt h2 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.01em; max-width: 520px; }
.sl-txt p { margin: 0; font-size: 15px; line-height: 1.5; color: #D9D5D4; max-width: 480px; }
.sl-act { display: flex; align-items: center; gap: 14px; margin-top: 6px; font-size: 12.5px; color: #A19D9C; }
.sl-act .btn { background: #fff; color: var(--ink); border-color: #fff; }
.sl-img { flex: 1 1 300px; min-height: 200px; background: #F6F5F4; display: grid; place-items: center; color: #CFCCCB; }
.sl-img img { height: 210px; width: auto; max-width: 90%; object-fit: contain; mix-blend-mode: multiply; }
.sl-img svg { width: 48px; height: 48px; }
.sl-dots { position: absolute; left: 36px; bottom: 22px; display: flex; gap: 8px; }
.sl-dots button { width: 8px; height: 8px; border: 0; padding: 0; border-radius: 4px; background: rgba(255,255,255,.35); cursor: pointer; transition: width .2s; }
.sl-dots button.on { width: 26px; background: #fff; }
.sl-nav { position: absolute; right: 16px; bottom: 16px; display: flex; gap: 6px; }
.sl-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }

.reorder { margin-bottom: 22px; }
.ro-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.ro-head h2 { margin: 0; font-size: 16px; } .ro-head a { font-size: 13.5px; color: var(--ink-2); }
.ro-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.ro-card { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.ro-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ro-txt b { font-size: 14px; } .ro-txt small { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.b2b-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.b2b-bar .filters { margin: 0; }
.seg-view { display: inline-flex; padding: 3px; gap: 2px; background: #E6E5E3; border-radius: 10px; }
.seg-view button { display: inline-flex; align-items: center; gap: 7px; height: 36px; border: 0; padding: 0 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; background: transparent; color: var(--ink-2); cursor: pointer; }
.seg-view button svg { width: 16px; height: 16px; }
.seg-view button.on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }

.b2b-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 20px; align-items: start; }
.b2b-sections { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.psec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 8px 0 12px; }
.psec-head h2 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.isk-chip { margin-left: auto; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); font-size: 13px; }
.isk-chip i { color: #C9C6C5; font-style: normal; }

.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 14px; }
.pcard { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.pcard:hover { border-color: #C9C6C5; box-shadow: 0 6px 22px rgba(35,31,32,.07); }
.pimg { position: relative; aspect-ratio: 1 / .82; background: #F6F5F4; display: grid; place-items: center; }
.pimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 18px; z-index: 1; mix-blend-mode: multiply; box-sizing: border-box; }
.pimg-ph svg { width: 40px; height: 40px; color: #CFCCCB; }
.pbadge-m { position: absolute; z-index: 2; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); font-size: 11.5px; font-weight: 600; padding: 4px 8px; border-radius: 7px; }
.pbadge-m svg { width: 13px; height: 13px; }
.pbody { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 11px; flex: 1; min-width: 0; }
.pbody h3 { margin: 0; font-size: 16.5px; line-height: 1.3; font-weight: 700; letter-spacing: -.005em; }
.opts { display: flex; gap: 6px; flex-wrap: wrap; }
.opts button { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0 13px; height: 34px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); }
.opts button.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.opts button.na:not(.on) { color: #B3AFAE; text-decoration: line-through; }
.opts.sm { gap: 4px; } .opts.sm button { height: 26px; padding: 0 9px; border-radius: 7px; font-size: 12px; }
.pprices { margin-top: auto; display: grid; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.pprices.m2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pprices.m3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pprices > div { display: flex; flex-direction: column; gap: 1px; padding: 9px 11px; min-width: 0; }
.pprices > div + div { border-left: 1px solid var(--line-2); }
.pprices span { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.pprices b { font-size: 16.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pprices.m3 { gap: 1px; background: var(--line-2); }
.pprices.m3 > div { background: var(--paper); }
.pprices.m3 > div + div { border-left: 0; }
.pprices.m3 > div.on { background: var(--ink); }
.pprices.m3 > div:not(.on) { padding: 7px 11px; }
.pprices.m3 > div:not(.on) b { font-size: 13.5px; color: var(--ink-2); }
.pprices.m3 > div.on { grid-column: 1 / -1; order: -1; flex-direction: row; justify-content: space-between; align-items: baseline; border-top: 0; }
.pprices.m3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pprices > div.on { background: var(--ink); color: #fff; } .pprices > div.on span { color: #BDB8B7; }
.pmeta2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; }
.pmeta2 s { color: #A19D9C; }
.stok { font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.stok::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stok.ok { color: var(--done); } .stok.wait { color: var(--wait); } .stok.bad { color: var(--bad); }
.incart { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; height: 46px; border-radius: 12px; background: var(--ink); color: #fff; }
.incart button { height: 46px; border: 0; background: transparent; color: #fff; font-size: 20px; cursor: pointer; }
.incart span { text-align: center; font-weight: 700; font-size: 14.5px; }
.incart.sm { grid-template-columns: 34px minmax(0, 1fr) 34px; height: 38px; border-radius: 10px; }
.incart.sm button { height: 38px; font-size: 18px; }
.btn.full { width: 100%; }

.qlist { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ql-head, .ql-row { display: grid; grid-template-columns: minmax(0, 2.6fr) repeat(var(--qc, 3), minmax(0, 1fr)) 128px; gap: 12px; align-items: center; padding: 10px 16px; }
.qlist:has(.ql-num:nth-of-type(4)) { --qc: 4; }
.ql-head { background: #FAFAF9; border-bottom: 1px solid var(--line-2); font-size: 12px; font-weight: 600; color: var(--muted); }
.ql-head span:not(:first-child) { text-align: right; } .ql-head span:last-child { text-align: center; }
.ql-head span.on { color: var(--ink); }
.ql-row { border-bottom: 1px solid var(--line-2); } .ql-row:last-child { border-bottom: 0; }
.ql-prod { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ql-img { width: 48px; height: 48px; border-radius: 10px; background: #F6F5F4; flex: none; display: grid; place-items: center; color: #CFCCCB; overflow: hidden; }
.ql-img img { width: 42px; height: 42px; object-fit: contain; mix-blend-mode: multiply; }
.ql-name { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.ql-name b { font-size: 14.5px; }
.ql-num { text-align: right; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; color: #8A8586; font-weight: 500; }
s.ql-num { color: #A19D9C; }
b.ql-num.on { color: var(--ink); font-weight: 700; }

.cart-side { position: sticky; top: 16px; }
.cart-side .panel { margin: 0; }
.cs-list { margin: 12px 0; }
.cs-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.cs-img { width: 40px; height: 40px; border-radius: 8px; background: #F6F5F4; flex: none; display: grid; place-items: center; overflow: hidden; }
.cs-img img { width: 34px; height: 34px; object-fit: contain; mix-blend-mode: multiply; }
.cs-name { flex: 1; min-width: 0; display: flex; flex-direction: column; } .cs-name b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs-name small { color: var(--muted); font-size: 12px; }
.cs-sum1 { white-space: nowrap; font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-tot { display: grid; gap: 8px; } .cs-tot.m2 { grid-template-columns: 1fr 1fr; } .cs-tot.m3 { grid-template-columns: 1fr 1fr 1fr; }
.cs-tot > div { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px; border-radius: 10px; border: 1.5px solid var(--line-2); min-width: 0; }
.cs-tot > div.on { border-color: var(--ink); }
.cs-tot span { font-size: 11.5px; color: var(--muted); font-weight: 600; } .cs-tot b { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cs-tot.m3 b { font-size: 13.5px; }
.cs-empty { margin: 12px 0 0; padding: 18px; border-radius: 12px; background: #F6F5F4; font-size: 14px; color: var(--muted); text-align: center; }

.cartbar { display: none; }
.mcart { position: relative; }
.mcart .n { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.mcart .n[hidden] { display: none; }

/* Siparisi tamamla */
.step { display: flex; flex-direction: column; gap: 14px; }
.step-h { display: flex; align-items: center; gap: 10px; }
.step-h h2 { margin: 0; font-size: 18px; }
.step-h .num { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; flex: none; }
.choice2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice, .paycard { text-align: left; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; color: var(--ink); }
.choice.on, .paycard.on { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(35,31,32,.08); }
.ch-top, .pc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.choice small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #B3AFAE; display: grid; place-items: center; flex: none; box-sizing: border-box; }
.on > .radio, .on .radio { border-color: var(--ink); }
.on > .radio::after, .on .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.alicilar { display: flex; flex-direction: column; gap: 8px; }
.al-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; } .al-head a { font-size: 13px; color: var(--ink-2); }
.alici { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 13px 16px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; color: var(--ink); }
.alici.on { border-color: var(--ink); background: #FAFAF9; }
.alici > b { align-self: center; }
.al-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .al-txt small { color: var(--muted); font-size: 13px; }
.yeni-adres { padding: 16px; border-radius: 12px; background: #FAFAF9; border: 1px solid var(--line-2); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; flex: none; }
.check.box { align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line-2); }
.check.box input { margin-top: 2px; } .check.box span { display: flex; flex-direction: column; gap: 2px; } .check.box b { color: var(--ink); } .check.box small { color: var(--muted); font-size: 13px; }
.sevk { display: flex; flex-direction: column; gap: 8px; } .sevk .filters { margin: 0; } .sevk b { font-size: 14px; }
.kv.fatura { padding: 14px 16px; border-radius: 12px; background: #FAFAF9; border: 1px solid var(--line-2); }
.ci { padding: 16px 20px; border-top: 1px solid var(--line-2); }
.ci-main { display: flex; gap: 14px; align-items: flex-start; }
.ci-img { width: 72px; height: 72px; border-radius: 12px; background: #F6F5F4; position: relative; flex: none; display: grid; place-items: center; color: #CFCCCB; overflow: hidden; }
.ci-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #F6F5F4; mix-blend-mode: multiply; box-sizing: border-box; }
.ci-body { flex: 1; min-width: 0; } .ci-body b { display: block; font-size: 15.5px; }
.ci-body small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; } .ci-body s { color: #A19D9C; }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-right > b { font-size: 16px; white-space: nowrap; }
.ci-right .btn.ghost { min-height: 26px; padding: 0 4px; font-size: 12.5px; color: var(--muted); }
.ci-montaj { margin: 14px 0 0 86px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); }
.ci-montaj.on { border-color: var(--ink); }
.ci-montaj .switch { margin: 0; border: 0; padding: 0; }
.ci-mform { margin-top: 12px; }
.ci-mform .f:last-child { margin-bottom: 0; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); height: 44px; flex: none; }
.stepper button { width: 36px; height: 100%; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--ink); display: grid; place-items: center; }
.stepper button svg { width: 16px; height: 16px; }
.stepper input { width: 36px; text-align: center; border: 0; height: 100%; font-weight: 600; background: transparent; -moz-appearance: textfield; padding: 0; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper.sm { height: 36px; } .stepper.sm button { width: 32px; } .stepper.sm input { width: 32px; }
.sticky-pay { position: sticky; top: 16px; }
.paycards { display: grid; gap: 10px; margin-top: 12px; }
.pc-amt { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.paycard small { color: var(--muted); font-size: 12.5px; }
.totals { margin: 16px 0; display: grid; gap: 6px; }
.totals > div { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.totals dt, .totals dd { margin: 0; }
.totals .grand { padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line-2); color: var(--ink); font-weight: 700; font-size: 17px; }
.totals .kdv { justify-content: flex-end; font-size: 12px; color: var(--muted); margin-top: -2px; }
.ozet-box { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #F6F5F4; font-size: 13px; margin-bottom: 14px; }
.ozet-box span { display: flex; gap: 8px; } .ozet-box i { font-style: normal; color: var(--muted); width: 70px; flex: none; }

/* Siparis */
.steps { list-style: none; margin: 18px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.steps li { position: relative; font-size: 12.5px; color: var(--muted); font-weight: 600; padding-top: 16px; }
.steps li span { position: absolute; top: 0; left: 0; right: 0; height: 5px; border-radius: 3px; background: var(--line-2); }
.steps li.done { color: var(--ink); } .steps li.done span { background: var(--ink); }
.steps li.now { color: var(--ink); } .steps li.now span { background: linear-gradient(90deg, var(--ink) 40%, var(--line-2) 40%); }
.steps.off li { opacity: .45; }
.oi { display: flex; justify-content: space-between; gap: 14px; padding: 13px 20px; border-bottom: 1px solid var(--line-2); }
.oi small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.oi-r { text-align: right; white-space: nowrap; }
.havale { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--r-l); padding: 14px 16px; background: #FCFCFB; }
.hv-head, .hv-amt { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hv-amt { margin: 10px 0; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); }
.hv-amt span { font-size: 13px; color: var(--muted); } .hv-amt b { font-size: 20px; margin-right: auto; margin-left: 10px; }
.hv-info { font-family: var(--font); white-space: pre-wrap; margin: 0 0 8px; font-size: 14px; line-height: 1.55; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 12px; }
.pay-hero { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-radius: var(--r-l); background: var(--ground); margin-bottom: 14px; }
.pay-hero b { font-size: 24px; }
.order-row { cursor: default; }
.order-row .btn-row { justify-content: flex-end; }

/* Hesabim */
.hesap-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.hesap-foot span { max-width: 340px; }
.adres-list { display: flex; flex-direction: column; gap: 10px; }
.adres { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); }
.ad-ic { width: 40px; height: 40px; border-radius: 10px; background: #F6F5F4; display: grid; place-items: center; flex: none; }
.ad-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; } .ad-txt small { color: var(--muted); font-size: 13px; }

/* Iskonto tablosu, talep farki */
.isk-wrap { overflow-x: auto; }
.isk-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.isk-table th { text-align: left; font-size: 12.5px; color: var(--muted); font-weight: 600; padding: 10px 20px; border-bottom: 1px solid var(--line-2); }
.isk-table td { padding: 10px 20px; border-bottom: 1px solid var(--line-2); }
.isk-table tr:last-child td { border-bottom: 0; }
.isk-table.edit th, .isk-table.edit td { padding-left: 0; padding-right: 10px; }
.isk-table td small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 2px; }
.isk-table.diff td, .isk-table.diff th { padding-left: 0; }
.isk-table.diff tr.chg td { background: var(--wait-bg); }
.talep { border-color: #E9C98A; }
.pct { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); width: 92px; }
.pct input { width: 100%; border: 0 !important; height: 40px; padding: 0 0 0 10px; text-align: right; font-weight: 600; background: transparent; box-shadow: none !important; }
.pct span { padding: 0 10px 0 4px; color: var(--muted); }
.pct:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(35,31,32,.1); }

@media (max-width: 1100px) { .b2b-layout { grid-template-columns: 1fr; } .cart-side { display: none; } }
@media (max-width: 860px) {
  .b2b-top { margin-top: 0; } .b2b-search { flex-basis: 100%; } .seg-pay { flex: 1; } .seg-pay button { flex: 1; padding: 0 8px; } .cart-btn { display: none; }
  .slider { min-height: 0; } .sl-txt { padding: 22px 20px 50px; flex-basis: 100%; } .sl-txt h2 { font-size: 21px; } .sl-txt p { font-size: 14px; }
  .sl-img { min-height: 150px; flex-basis: 100%; order: -1; } .sl-img img { height: 140px; }
  .sl-dots { left: 20px; bottom: 18px; } .sl-nav { right: 12px; bottom: 10px; } .sl-nav button { width: 36px; height: 36px; }
  .ro-list { grid-template-columns: minmax(0, 1fr); }
  .cartbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(var(--tab) + env(safe-area-inset-bottom) + 10px); z-index: 25;
    background: var(--ink); color: #fff; border-radius: 14px; padding: 10px 10px 10px 16px; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
  .cartbar[hidden] { display: none; }
  .cartbar b { display: block; font-size: 15px; } .cartbar small { font-size: 12px; opacity: .7; }
  .cartbar .btn { background: #fff; color: var(--ink); border-color: #fff; }
  .seg-view span { display: none; }
  .isk-chip { margin-left: 0; }
  .pgrid { grid-template-columns: 1fr; gap: 10px; }
  .pcard { flex-direction: row; }
  .pimg { width: 116px; aspect-ratio: auto; flex: none; }
  .pimg img { padding: 8px; }
  .pbadge-m { display: none; }
  .pbody { padding: 12px 12px 12px 14px; gap: 9px; }
  .pbody h3 { font-size: 15px; }
  .pprices b { font-size: 15px; } .pprices.m3 > div:not(.on) b { font-size: 13px; } .pprices > div { padding: 7px 9px; }
  .qlist { border-radius: 12px; }
  .ql-head { display: none; }
  .ql-row { grid-template-columns: minmax(0, 1fr) auto; grid-auto-flow: row; gap: 6px 10px; }
  .ql-row > s.ql-num, .ql-row > b.ql-num:not(.on) { display: none; }
  .ql-row > b.ql-num.on { grid-column: 2; grid-row: 1; align-self: start; }
  .ql-row > [data-buy] { grid-column: 1 / -1; }
  .choice2 { grid-template-columns: 1fr; }
  .ci { padding: 14px 16px; } .ci-montaj { margin-left: 0; }
  .steps li { font-size: 11.5px; }
  .isk-table th, .isk-table td { padding-left: 16px; padding-right: 16px; }
  .sticky-pay { position: static; }
}

/* Dealer basket: readable long product names and TRY totals at sidebar widths. */
.cart-side .panel { min-width:0; }
.cart-side .cs-row { display:grid; grid-template-columns:48px minmax(0,1fr); gap:6px 12px; padding:14px 0; align-items:start; }
.cart-side .cs-img { width:48px; height:56px; grid-row:span 2; }
.cart-side .cs-img img { width:42px; height:50px; }
.cart-side .cs-name b { white-space:normal; overflow:visible; text-overflow:clip; line-height:1.4; overflow-wrap:anywhere; }
.cart-side .cs-name small { margin-top:4px; line-height:1.4; }
.cart-side .cs-sum1 { grid-column:2; justify-self:end; font-size:15px; line-height:1.5; }
.cart-side .cs-tot { grid-template-columns:minmax(0,1fr); gap:8px; margin-top:16px; }
.cart-side .cs-tot > div { flex-direction:row; align-items:center; justify-content:space-between; gap:12px; padding:12px; }
.cart-side .cs-tot > div.on { background:#f6f5f4; }
.cart-side .cs-tot span { font-size:13px; line-height:1.4; }
.cart-side .cs-tot small { display:block; font-size:11px; font-weight:400; }
.cart-side .cs-tot .cs-selected { display:inline-block; margin-left:6px; font-size:10px; font-weight:600; color:var(--ink); }
.cart-side .cs-tot b { font-size:15px; letter-spacing:0; flex-shrink:0; }
.cart-side .cs-saving { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin:14px 0; font-size:12px; line-height:1.5; color:var(--done); }
.cart-side .cs-saving b { white-space:nowrap; font-variant-numeric:tabular-nums; }
.cart-side .cs-summary { margin:18px 0 8px; display:grid; gap:10px; font-size:13px; }
.cart-side .cs-summary > div { display:flex; justify-content:space-between; align-items:baseline; gap:12px; }
.cart-side .cs-summary dt { color:var(--muted); }
.cart-side .cs-summary dd { margin:0; white-space:nowrap; font-weight:600; font-variant-numeric:tabular-nums; }
.cart-side .cs-summary .cs-grand { border-top:1px solid var(--line-2); padding-top:14px; margin-top:4px; flex-wrap:wrap; gap:6px; }
.cart-side .cs-grand dt { color:var(--ink); font-weight:600; }
.cart-side .cs-grand small { display:block; margin-top:3px; font-size:11px; font-weight:400; color:var(--muted); }
.cart-side .cs-grand dd { margin-left:auto; font-size:20px; letter-spacing:-.3px; }
.cart-side .btn.big { font-size:16px; padding:14px 16px; min-height:52px; }
