/* Desen B2B NextGen — Orion (Fluent/Outlook) tasarım dili.
   Renkler yalnızca :root'taki --b2b-* tema değişkenlerinden türetilir; tema ekranı bunları değiştirir. */
:root {
  --rail-w: 64px; --topbar-h: 48px; --main-pad: 24px;
  --surface-subtle: color-mix(in srgb, var(--b2b-text) 5%, var(--b2b-surface));
  --surface-muted: color-mix(in srgb, var(--b2b-text) 9%, var(--b2b-surface));
  --border-strong: color-mix(in srgb, var(--b2b-text) 18%, var(--b2b-surface));
  --primary-soft: color-mix(in srgb, var(--b2b-primary) 12%, transparent);
  --primary-hover: color-mix(in srgb, var(--b2b-primary) 85%, #000);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.06);
  --shadow-card: 0 1px 2px rgba(60,64,67,.08), 0 2px 8px rgba(60,64,67,.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,.08);
  --shadow-flyout: 0 6.4px 14.4px rgba(0,0,0,.13), 0 1.2px 3.6px rgba(0,0,0,.11);
  --ok: #0b6a0b; --ok-bg: #dff6dd; --warn: #8a6d00; --warn-bg: #fff4ce; --bad: #a4262c; --bad-bg: #fde7e9; --info: #0369a1; --info-bg: #e6f0fb;
}
*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--b2b-font-size, 14px); }
body { margin: 0; background: var(--b2b-bg); color: var(--b2b-text); font-family: var(--b2b-font); line-height: 1.45; }
a { color: var(--b2b-primary); text-decoration: none; } a:hover { text-decoration: underline; }
.inline { display: inline; } .muted, .ob-muted { color: var(--b2b-muted); font-size: 12px; }
code, .mono { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: .92em; }

/* ---------- Kabuk ---------- */
.b2b-shell { min-height: 100dvh; display: flex; flex-direction: column; }
.b2b-topbar { position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: 6px; padding: 0 8px; background: var(--b2b-header-bg); color: var(--b2b-header-text); border-bottom: 1px solid var(--b2b-border); box-shadow: 0 .5px 0 rgba(0,0,0,.04); }
.b2b-btn-icon { width: 32px; height: 32px; border: 0; background: transparent; border-radius: 4px; color: inherit; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 15px; transition: background .12s; }
.b2b-btn-icon:hover { background: var(--surface-subtle); text-decoration: none; }
.b2b-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--b2b-primary); font-weight: 600; font-size: 15px; letter-spacing: -.01em; padding: 0 6px; white-space: nowrap; }
.b2b-brand:hover { text-decoration: none; }
.b2b-brand-mark { width: 26px; height: 26px; border-radius: 6px; background: var(--b2b-primary); color: var(--b2b-primary-text); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.b2b-logo { height: 26px; width: auto; }
.b2b-search { flex: 1 1 auto; max-width: 640px; margin: 0 auto; height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--surface-subtle); border: 1px solid transparent; border-radius: 4px; color: var(--b2b-muted); }
.b2b-search:focus-within { background: var(--b2b-surface); border-color: var(--b2b-primary); }
.b2b-search input { flex: 1; border: 0; background: transparent; outline: none; font: inherit; color: var(--b2b-text); }
.b2b-search kbd { font: inherit; font-size: 11px; line-height: 18px; padding: 0 5px; border: 1px solid var(--b2b-border); border-radius: 3px; color: var(--b2b-muted); }
.b2b-topbar-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.b2b-user-meta { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; margin: 0 6px 0 8px; }
.b2b-user-name { font-size: 12.5px; font-weight: 600; }
.b2b-user-role { font-size: 11px; color: var(--b2b-muted); }
.b2b-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--b2b-primary); color: var(--b2b-primary-text); display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.b2b-link-btn { border: 0; background: transparent; color: var(--b2b-text); font: inherit; font-size: 13px; padding: 4px 6px; cursor: pointer; border-radius: 4px; }
.b2b-link-btn:hover { background: var(--surface-subtle); }

.b2b-frame { display: flex; flex: 1; min-height: calc(100dvh - var(--topbar-h)); position: relative; }
.b2b-main { flex: 1; min-width: 0; padding: var(--main-pad); }

.b2b-launcher { position: absolute; top: 8px; left: 8px; z-index: 40; width: min(720px, calc(100vw - 32px)); background: var(--b2b-surface); border: 1px solid var(--b2b-border); border-radius: 12px; box-shadow: var(--shadow-flyout); padding: 14px; }
.b2b-launcher-head { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--b2b-muted); margin-bottom: 10px; }
.b2b-launcher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; max-height: 60dvh; overflow: auto; }
.b2b-launcher-item { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid transparent; background: var(--surface-subtle); color: var(--b2b-text); font-size: 13px; font-weight: 600; }
.b2b-launcher-item:hover { border-color: var(--b2b-primary); background: var(--primary-soft); text-decoration: none; }
.b2b-launcher-item i { font-size: 18px; color: var(--b2b-primary); }
.b2b-launcher-item small { font-weight: 400; color: var(--b2b-muted); font-size: 11px; min-height: 1.2em; }

/* ---------- Butonlar, formlar, uyarılar ---------- */
.ob-btn, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 8px; padding: 5px 11px; font-size: 13px; font-weight: 600; border: 1px solid var(--border-strong); background: var(--b2b-surface); color: var(--b2b-text); cursor: pointer; font-family: inherit; transition: background .15s, border-color .15s, color .15s; text-decoration: none; }
.ob-btn:hover, .btn:hover { border-color: var(--b2b-primary); color: var(--b2b-primary); text-decoration: none; }
.ob-btn.is-primary, .btn-primary { background: var(--b2b-primary); color: var(--b2b-primary-text); border-color: transparent; }
.ob-btn.is-primary:hover, .btn-primary:hover { background: var(--primary-hover); color: var(--b2b-primary-text); }
.ob-btn.is-danger:hover { border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }
.ob-btn.is-disabled, .ob-btn:disabled { opacity: .5; pointer-events: none; }
.b2b-btn-sm { padding: 3px 8px; font-size: 12px; }
.btn-ghost { background: transparent; } .btn-block { width: 100%; } .btn-lg { padding: 11px 16px; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 13px; }
.field > span:first-child { color: var(--b2b-muted); font-weight: 600; font-size: 12px; }
.field input, .field textarea, .field select { font: inherit; padding: 7px 10px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--b2b-surface); color: var(--b2b-text); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--b2b-primary); box-shadow: 0 0 0 1px var(--b2b-primary); }
.field input[type=color] { padding: 2px; height: 36px; width: 64px; }
.b2b-checks { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.b2b-check { flex-direction: row; align-items: center; gap: 8px; }
.field-error, .form-error { color: var(--bad); font-size: 12.5px; }
.form-error:empty { display: none; }
.form-error { background: var(--bad-bg); border: 1px solid #eec2c2; border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; }
.b2b-notice { background: var(--warn-bg); border: 1px solid #f0d7a8; border-radius: 8px; padding: 8px 12px; margin-bottom: 14px; font-size: 13px; }
.b2b-notice-ok { background: var(--ok-bg); border-color: #b7e0c2; } .b2b-notice-error { background: var(--bad-bg); border-color: #eec2c2; }

/* ---------- Sayfa (pano) ---------- */
.ob-page { --ob-cols: 12; --ob-row: 78px; --ob-gap: 14px; --ob-radius: 16px; display: flex; flex-direction: column; gap: 16px; }
.ob-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 8px; border-bottom: 2px solid var(--b2b-primary); }
.ob-head-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ob-head-title > .bi { color: var(--b2b-primary); font-size: 16px; }
.ob-head-title h1 { font-size: 17px; font-weight: 600; margin: 0; line-height: 1.2; }
.ob-head-info { color: var(--b2b-muted); font-size: 14px; cursor: help; line-height: 1; }
.ob-head-info:hover { color: var(--b2b-primary); }
.ob-head-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ob-save-state { font-size: 12px; color: var(--b2b-muted); }
.ob-err { color: var(--bad); }
.ob-grid { display: grid; grid-template-columns: repeat(var(--ob-cols), minmax(0, 1fr)); grid-auto-rows: var(--ob-row); gap: var(--ob-gap); }
.ob-empty { grid-column: 1 / -1; grid-row: span 3; border: 2px dashed var(--border-strong); border-radius: var(--ob-radius); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--b2b-muted); text-align: center; padding: 20px; min-height: 200px; }
.ob-empty i { font-size: 34px; color: var(--b2b-primary); }
.ob-panel { background: var(--b2b-surface); border: 1px solid var(--b2b-border); border-radius: 12px; box-shadow: var(--shadow-card); padding: 14px 16px; }
.ob-panel-title { margin: 0 0 10px; font-size: 14px; font-weight: 650; }

/* ---------- Widget kartı ---------- */
.ob-w { --ob-accent: var(--b2b-primary); --ob-accent-fg: var(--b2b-primary); position: relative; min-width: 0; display: flex; flex-direction: column; border-radius: var(--ob-radius); background: var(--b2b-surface); border: 1px solid var(--b2b-border); box-shadow: var(--shadow-card); overflow: hidden; transition: box-shadow .2s, border-color .2s; animation: ob-in .38s cubic-bezier(.2,.8,.2,1) both; grid-column: calc(var(--x) + 1) / span var(--w); grid-row: calc(var(--y) + 1) / span var(--h); }
.ob-w::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--ob-accent), transparent 85%); opacity: .9; }
.ob-w:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
@keyframes ob-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ob-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
.ob-w[data-cat="catalog"], .pano-gcard[data-cat="catalog"] { --ob-accent: #107c10; --ob-accent-fg: #0b6a0b; }
.ob-w[data-cat="finance"], .pano-gcard[data-cat="finance"] { --ob-accent: #ffd166; --ob-accent-fg: #8a6d00; }
.ob-w[data-cat="orders"], .pano-gcard[data-cat="orders"] { --ob-accent: #0284c7; --ob-accent-fg: #0369a1; }
.ob-w[data-cat="content"], .pano-gcard[data-cat="content"] { --ob-accent: var(--b2b-accent); --ob-accent-fg: var(--b2b-accent); }
.ob-w[data-cat="people"], .pano-gcard[data-cat="people"] { --ob-accent: #8764b8; --ob-accent-fg: #5c2d91; }
.ob-w.widget-failed { --ob-accent: var(--bad); border-color: #eec2c2; }
.ob-w-head { display: flex; align-items: center; gap: 9px; padding: 11px 12px 6px 14px; min-height: 40px; user-select: none; }
.ob-w-icon { width: 28px; height: 28px; border-radius: 9px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--ob-accent); color: #fff; font-size: 14px; box-shadow: 0 4px 12px -4px var(--ob-accent); }
.ob-w-title { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.ob-w-body { flex: 1 1 auto; min-height: 0; padding: 4px 14px 14px; position: relative; overflow: auto; }
.ob-w-bare .ob-w-body { padding: 14px 16px; }
.ob-w-body::-webkit-scrollbar { width: 6px; } .ob-w-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.ob-center { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; }
.ob-text { white-space: pre-line; font-size: 13.5px; }
.widget-error { height: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); }
.widget-error > i { font-size: 22px; }
.widget-error-title { font-weight: 650; font-size: 13px; }
.widget-error-detail { font-size: 12px; opacity: .9; word-break: break-word; }

/* Liste, çip, avatar */
.ob-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ob-list li { display: flex; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--b2b-border); font-size: 12.5px; }
.ob-list li:last-child { border-bottom: 0; }
.ob-li-main { flex: 1; min-width: 0; }
.ob-li-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ob-li-sub { color: var(--b2b-muted); font-size: 11.5px; }
.ob-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: var(--surface-subtle); color: var(--b2b-muted); text-decoration: none; }
a.ob-chip:hover { text-decoration: none; background: var(--primary-soft); color: var(--b2b-primary); }
.ob-chip.is-ok { background: var(--ok-bg); color: var(--ok); } .ob-chip.is-warn { background: var(--warn-bg); color: var(--warn); } .ob-chip.is-bad { background: var(--bad-bg); color: var(--bad); } .ob-chip.is-info { background: var(--info-bg); color: var(--info); }
.ob-avatar { width: 30px; height: 30px; border-radius: 10px; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-subtle); color: var(--ob-accent-fg); font-size: 13px; font-weight: 700; }

/* Karşılama */
.ob-welcome { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ob-welcome-greet { font-size: clamp(18px, 2vw, 24px); font-weight: 700; }
.ob-welcome-date { color: var(--b2b-muted); font-size: 13px; margin-top: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ob-welcome-right { display: flex; align-items: center; gap: 22px; }
.ob-welcome-time { font-size: clamp(28px, 3.6vw, 46px); font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; background: linear-gradient(120deg, var(--b2b-primary), var(--b2b-accent)); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.ob-welcome-time small { font-size: .45em; opacity: .7; }
.ob-kpi-mini { text-align: right; } .ob-kpi-mini-label { display: block; font-size: 11.5px; color: var(--b2b-muted); } .ob-kpi-mini-value { font-size: 20px; font-weight: 750; font-variant-numeric: tabular-nums; }

/* Yer tutucu */
.ob-placeholder-body i { font-size: 30px; color: var(--warn); } .ob-placeholder-title { font-weight: 650; font-size: 14px; }

/* ---------- Kendi grid'imiz ---------- */
.b2b-grid-widget { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.b2b-grid-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.b2b-grid-search { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 10px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--b2b-surface); min-width: min(260px, 100%); }
.b2b-grid-search input { border: 0; outline: none; font: inherit; background: transparent; flex: 1; color: var(--b2b-text); }
.b2b-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.b2b-grid-count { margin-left: auto; white-space: nowrap; }
.b2b-table-wrap { overflow: auto; border: 1px solid var(--b2b-border); border-radius: 10px; flex: 1; min-height: 0; }
.b2b-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.b2b-table th { position: sticky; top: 0; background: var(--surface-subtle); color: var(--b2b-muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--b2b-border); white-space: nowrap; }
.b2b-table th a { color: inherit; } .b2b-table th a:hover { color: var(--b2b-primary); text-decoration: none; }
.b2b-table td { padding: 7px 10px; border-bottom: 1px solid var(--b2b-border); vertical-align: middle; }
.b2b-table tbody tr:hover { background: var(--surface-subtle); } .b2b-table tbody tr.is-selected { background: var(--primary-soft); }
.b2b-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; } .b2b-table .strong { font-weight: 650; }
.b2b-cell-title { font-weight: 600; }
.b2b-thumb { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; background: var(--surface-subtle); display: inline-grid; place-items: center; color: var(--b2b-muted); }
.b2b-row-actions { white-space: nowrap; } .b2b-row-actions > * { margin-left: 4px; }
.b2b-pager { display: flex; align-items: center; justify-content: center; gap: 12px; }

/* ---------- Admin ---------- */
.admin-two-col { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
.designer-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.theme-page { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.theme-form { background: var(--b2b-surface); border: 1px solid var(--b2b-border); border-radius: 12px; box-shadow: var(--shadow-card); padding: 20px 24px; }
.theme-form h1 { margin: 0 0 4px; font-size: 17px; } .theme-form h2 { font-size: 14px; margin: 18px 0 4px; }
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0 18px; margin: 12px 0; }
.theme-preview { position: sticky; top: calc(var(--topbar-h) + 16px); }
.widget-card { background: var(--b2b-surface); border: 1px solid var(--b2b-border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow-card); }
.widget-title { margin: 0 0 8px; font-size: 14px; font-weight: 650; } .widget-body { color: var(--b2b-muted); }

/* ---------- Giriş ---------- */
.login-page { min-height: 100dvh; margin: 0; position: relative; display: flex; flex-direction: column; color: #fff; }
.login-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: #0b1b33; }
.login-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.login-media-default { background: radial-gradient(1100px 600px at 12% 8%, color-mix(in srgb, var(--b2b-primary) 75%, #fff 0%) 0%, transparent 60%), radial-gradient(900px 500px at 90% 92%, color-mix(in srgb, var(--b2b-accent) 70%, #000 0%) 0%, transparent 60%), linear-gradient(135deg, #0b1b33 0%, #15305c 55%, #0b1b33 100%); }
.login-media-default::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at center, #000 40%, transparent 80%); }
.login-overlay { position: absolute; inset: 0; background: var(--b2b-login-overlay); opacity: var(--b2b-login-overlay-opacity); }
.login-shell { flex: 1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; max-width: 1240px; width: 100%; margin: 0 auto; padding: 48px 32px; }
.login-pos-left .login-shell { grid-template-columns: 1fr 1.2fr; } .login-pos-left .login-card-panel { order: -1; }
.login-pos-center .login-shell { grid-template-columns: 1fr; justify-items: center; text-align: center; } .login-pos-center .login-brand { justify-content: center; }
.login-brand-panel { max-width: 560px; }
.login-brand { display: inline-flex; align-items: center; gap: 14px; color: #fff; font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; text-decoration: none; }
.login-brand img { height: 48px; width: auto; }
.login-brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--b2b-primary); color: var(--b2b-primary-text); font-size: 1.3rem; }
.login-tagline { margin: 22px 0 0; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.2; font-weight: 600; max-width: 20ch; text-wrap: balance; opacity: .95; }
.login-card-panel { width: 100%; display: flex; justify-content: center; }
.login-card { width: min(420px, 100%); background: rgba(255,255,255,.94); color: var(--b2b-text); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.6); border-radius: 16px; padding: 30px 30px 22px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.login-card-head h1 { margin: 0 0 4px; font-size: 1.35rem; font-weight: 650; letter-spacing: -.01em; }
.login-card-head p { margin: 0 0 18px; color: var(--b2b-muted); font-size: 13px; }
.login-help { margin: 16px 0 0; font-size: 12.5px; color: var(--b2b-muted); text-align: center; }
.login-foot { text-align: center; padding: 14px; font-size: 12px; color: rgba(255,255,255,.7); }
.field-float { position: relative; margin-bottom: 14px; }
.field-float input { padding: 19px 12px 7px; background: #fff; border-radius: 6px; }
.field-float > span:first-of-type { position: absolute; left: 12px; top: 13px; color: var(--b2b-muted); pointer-events: none; transition: .15s ease; font-size: 13px; }
.field-float input:focus + span, .field-float input:not(:placeholder-shown) + span { top: 5px; font-size: 10.5px; color: var(--b2b-primary); }

@media (max-width: 1024px) { .admin-two-col { grid-template-columns: 1fr; } }
@media (max-width: 1024px) { .theme-page { grid-template-columns: 1fr; } .b2b-user-meta { display: none; } }
@media (max-width: 768px) { .b2b-search { display: none; } }
@media (max-width: 768px) {
  .b2b-main { padding: 14px; }
  .ob-grid { grid-auto-rows: auto; } .ob-w { grid-column: 1 / -1 !important; grid-row: auto !important; min-height: 120px; }
  .login-shell { grid-template-columns: 1fr !important; padding: 28px 18px; gap: 24px; } .login-brand-panel { text-align: center; } .login-brand { justify-content: center; } .login-tagline { margin-inline: auto; } .login-pos-left .login-card-panel { order: 0; }
}

/* Sepet */
.b2b-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.b2b-small { font-size: 11.5px; }
.b2b-notice-info { background: var(--info-bg); border-color: #b9d3ef; }
.b2b-cart { display: flex; flex-direction: column; gap: 12px; }
.b2b-cart .b2b-notice { margin-bottom: 0; }
.b2b-cart-empty { grid-row: auto; min-height: 220px; }
.b2b-cart-form { display: flex; flex-direction: column; gap: 10px; }
.b2b-cart-table td .b2b-chips { margin-top: 3px; }
.b2b-col-thumb { width: 44px; }
.b2b-cart-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.b2b-cart-plan { max-width: 320px; }
.b2b-qty { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; background: var(--b2b-surface); }
.b2b-qty-btn { width: 26px; height: 28px; border: 0; background: var(--surface-subtle); color: var(--b2b-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.b2b-qty-btn:hover { background: var(--primary-soft); color: var(--b2b-primary); }
.b2b-qty-input { width: 64px; height: 28px; border: 0; text-align: right; font: inherit; padding: 0 6px; background: transparent; color: var(--b2b-text); -moz-appearance: textfield; }
.b2b-qty-input::-webkit-outer-spin-button, .b2b-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.b2b-qty-input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--b2b-primary); }
.b2b-qty-mini { width: 52px; border: 1px solid var(--border-strong); border-radius: 6px; }
.b2b-qty-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--b2b-muted); }
.b2b-qty-label .b2b-qty-input { border: 1px solid var(--border-strong); border-radius: 6px; height: 32px; }
.b2b-add-form { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.b2b-cart-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 340px); gap: 16px; align-items: start; }
.b2b-cart-checkout { border: 1px solid var(--b2b-border); border-radius: 12px; padding: 12px 14px; }
.b2b-cart-checkout .field { margin-bottom: 10px; }
.b2b-cart-submit { width: 100%; padding: 8px 12px; }
.b2b-cart-hint { margin: -4px 0 10px; padding-left: 18px; font-size: 12px; color: var(--b2b-muted); }
.b2b-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; margin-bottom: 10px; padding: 8px 10px; border-radius: 8px; background: var(--warn-bg); }
.b2b-cart-totals { margin: 0; border: 1px solid var(--b2b-border); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface-subtle); }
.b2b-cart-totals > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.b2b-cart-totals dt { color: var(--b2b-muted); }
/* Eski Sepetim risk limiti kutusu ve birim katsayılı (salt okunur) miktar alanı. */
.b2b-cart-risk p { margin: 0 0 6px; }
.b2b-cart-risk-list { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 4px 16px; }
.b2b-cart-risk-list > div { display: flex; justify-content: space-between; gap: 8px; }
.b2b-cart-risk-list dd { margin: 0; font-weight: 600; }
.b2b-qty-input[readonly] { background: var(--surface-subtle); }
/* Eski "Devam Et" kapısı: etkin kampanya uygulanana kadar sipariş düğmeleri gizli, bilgi notu görünür. */
#cart-root[data-kampanya-gerekli="1"] .b2b-cart-submit, #cart-root[data-kampanya-gerekli="1"] .b2b-mcheckout-go { display: none; }
#cart-root:not([data-kampanya-gerekli="1"]) .b2b-cart-campaign-hint { display: none; }
.b2b-cart-summary-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.b2b-cart-note { margin: 0; font-size: 12px; font-style: italic; color: var(--b2b-muted); }
.b2b-cart-bottom-notice { font-size: 13px; font-style: italic; color: var(--danger, #b42318); }
.b2b-cart-totals dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.b2b-cart-grand { border-top: 1px solid var(--border-strong); padding-top: 8px; margin-top: 2px; }
.b2b-cart-grand dt, .b2b-cart-grand dd { color: var(--b2b-text); font-weight: 750; font-size: 15px; }
.b2b-cart-busy { opacity: .6; pointer-events: none; transition: opacity .15s; }
.b2b-cart-badge { position: relative; }
.b2b-cart-count { position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--b2b-accent, var(--b2b-primary)); color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.b2b-cart-count[hidden] { display: none; }
.b2b-cart-summary { height: 100%; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.b2b-cart-summary-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.b2b-cart-summary-row strong { font-variant-numeric: tabular-nums; }
.b2b-toast { position: fixed; right: 20px; bottom: 20px; z-index: 1000; max-width: 360px; padding: 10px 14px; border-radius: 10px; background: var(--b2b-text); color: var(--b2b-surface); box-shadow: var(--shadow-md); font-size: 13px; animation: ob-in .25s ease both; }
.b2b-toast.is-bad { background: var(--bad); color: #fff; }
/* Sevk adresleri */
.b2b-address { display: flex; flex-direction: column; gap: 10px; }
.b2b-address-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 8px; }
.b2b-address-card { border: 1px solid var(--b2b-border); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.b2b-address-new > summary { list-style: none; width: max-content; }
.b2b-address-new > summary::-webkit-details-marker { display: none; }
.b2b-address-form { margin-top: 10px; }
.b2b-address-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 0 10px; }
/* Ürün detayı ve önerilenler */
.b2b-product { display: grid; grid-template-columns: minmax(160px, 320px) minmax(0, 1fr); gap: 18px 24px; align-items: start; }
.b2b-product-media { width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--surface-subtle); display: grid; place-items: center; }
.b2b-product-media img { width: 100%; height: 100%; object-fit: contain; }
.b2b-product-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--b2b-muted); font-size: 48px; }
.b2b-product-info { display: flex; flex-direction: column; gap: 8px; }
.b2b-product-title { margin: 0; font-size: 18px; font-weight: 650; }
.b2b-product-price strong { font-size: 22px; font-variant-numeric: tabular-nums; margin-right: 6px; }
.b2b-product-short { margin: 0; font-size: 13px; }
.b2b-product-buy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.b2b-product-desc { grid-column: 1 / -1; border-top: 1px solid var(--b2b-border); padding-top: 10px; }
.b2b-reco { list-style: none; margin: 0; padding: 0 0 4px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 180px); gap: 10px; overflow-x: auto; }
.b2b-reco-card { border: 1px solid var(--b2b-border); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; background: var(--b2b-surface); }
.b2b-reco-link { display: flex; flex-direction: column; gap: 6px; color: inherit; }
.b2b-reco-link:hover { text-decoration: none; color: var(--b2b-primary); }
.b2b-reco-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; object-fit: cover; background: var(--surface-subtle); font-size: 22px; }
.b2b-reco-name { font-size: 12.5px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b2b-reco-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; font-size: 13px; }
@media (max-width: 768px) {
  .b2b-cart-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 768px) {
  .b2b-product { grid-template-columns: minmax(0, 1fr); }
  .b2b-product-media { max-width: 320px; margin-inline: auto; }
}

/* ---------- KPI kartı (_KpiTile) ---------- */
.ob-kpi { position: relative; height: 100%; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; overflow: hidden; }
.ob-kpi-value { position: relative; z-index: 1; font-size: 32px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ob-kpi-caption { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; font-size: 12.5px; color: var(--b2b-muted); }
.ob-kpi-caption strong { color: var(--b2b-text); font-weight: 650; font-variant-numeric: tabular-nums; }
.ob-kpi-link { position: relative; z-index: 1; align-self: flex-start; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--ob-accent-fg, var(--b2b-primary)); }
.ob-kpi-icon { position: absolute; right: -4px; bottom: -12px; font-size: 76px; line-height: 1; color: var(--ob-accent, var(--b2b-primary)); opacity: .12; pointer-events: none; }

/* ---------- Pano düzenleme (yalnızca yönetici, pano.js) ---------- */
.pano-only-edit { display: none !important; }
body.is-editing .pano-only-edit { display: inline-flex !important; }
body.is-editing .pano-only-view { display: none !important; }
.ob-btn.is-accent-outline { border-color: var(--b2b-primary); color: var(--b2b-primary); box-shadow: inset 0 0 0 1px var(--b2b-primary); }
.ob-btn.is-accent-outline:hover { background: var(--primary-soft); }
.ob-save-state.ob-ok { color: var(--ok); }
.ob-save-state:empty { display: none; }

.ob-grid.grid-stack { display: block; gap: 0; min-height: 320px; border-radius: var(--ob-radius); outline: 1px dashed var(--border-strong); outline-offset: 4px; background: repeating-linear-gradient(to bottom, transparent 0 91px, color-mix(in srgb, var(--b2b-border) 60%, transparent) 91px 92px); }
.grid-stack > .grid-stack-item > .ob-w { overflow: hidden; animation: none; grid-column: auto; grid-row: auto; border: 1.5px dashed var(--b2b-primary); box-shadow: none; cursor: move; }
.grid-stack > .grid-stack-item > .ob-w:hover { box-shadow: var(--shadow-md); }
.grid-stack > .grid-stack-item.ui-draggable-dragging > .ob-w,
.grid-stack > .grid-stack-item.ui-resizable-resizing > .ob-w { box-shadow: var(--shadow-flyout); }
body.is-editing .ob-w .ob-w-body { pointer-events: none; user-select: none; }
.ob-w.is-loading .ob-w-body { opacity: .45; transition: opacity .15s; }
.grid-stack > .grid-stack-placeholder > .placeholder-content { border: 2px dashed var(--b2b-primary); background: var(--primary-soft); border-radius: var(--ob-radius); }
.ob-w-tools { position: absolute; top: 6px; right: 6px; z-index: 3; display: flex; gap: 2px; padding: 2px; background: var(--b2b-surface); border: 1px solid var(--b2b-border); border-radius: 8px; box-shadow: var(--shadow-md); cursor: default; }
.ob-w-tool { width: 26px; height: 26px; border: 0; border-radius: 6px; background: transparent; color: var(--b2b-muted); font: inherit; font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ob-w-tool:hover, .ob-w-tool:focus-visible { background: var(--primary-soft); color: var(--b2b-primary); outline: none; }
.ob-w-tool[data-pano-act="remove"]:hover, .ob-w-tool[data-pano-act="remove"]:focus-visible { background: var(--bad-bg); color: var(--bad); }
.ob-w-size { position: absolute; left: 50%; bottom: 6px; z-index: 3; transform: translateX(-50%); padding: 1px 9px; border-radius: 999px; background: var(--b2b-primary); color: var(--b2b-primary-text); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none; box-shadow: var(--shadow-sm); }

.pano-pop { position: fixed; z-index: 60; min-width: 210px; display: flex; flex-direction: column; padding: 4px; background: var(--b2b-surface); border: 1px solid var(--b2b-border); border-radius: 10px; box-shadow: var(--shadow-flyout); }
.pano-pop button { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--b2b-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.pano-pop button:hover, .pano-pop button:focus-visible { background: var(--primary-soft); outline: none; }
.pano-pop button[aria-checked="true"] { color: var(--b2b-primary); font-weight: 650; }
.pano-pop small { color: var(--b2b-muted); font-variant-numeric: tabular-nums; }

body.pano-modal-open { overflow: hidden; }
.pano-modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-start; justify-content: center; padding: 6dvh 16px; }
.pano-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); animation: ob-in .2s ease both; }
.pano-dialog { position: relative; width: min(1080px, 100%); max-height: 88dvh; display: flex; flex-direction: column; background: var(--b2b-surface); color: var(--b2b-text); border-radius: 16px; box-shadow: var(--shadow-flyout); overflow: hidden; animation: ob-in .25s cubic-bezier(.2,.8,.2,1) both; }
.pano-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.pano-dialog-head h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 650; }
.pano-dialog-head p { margin: 4px 0 0; color: var(--b2b-muted); font-size: 13px; }
.pano-spark { color: var(--b2b-primary); }
.pano-gallery-tools { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 12px; border-bottom: 1px solid var(--b2b-border); }
.pano-gallery-search { height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--b2b-surface); color: var(--b2b-muted); }
.pano-gallery-search:focus-within { border-color: var(--b2b-primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.pano-gallery-search input { flex: 1; border: 0; outline: none; background: transparent; color: var(--b2b-text); font: inherit; }
.pano-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pano-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--b2b-surface); color: var(--b2b-text); font: inherit; font-size: 12.5px; cursor: pointer; }
.pano-chip:hover { border-color: var(--b2b-primary); color: var(--b2b-primary); }
.pano-chip.is-active { background: var(--b2b-primary); border-color: var(--b2b-primary); color: var(--b2b-primary-text); }
.pano-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 20px; overflow: auto; }
.pano-gcard { --ob-accent: var(--b2b-primary); --ob-accent-fg: var(--b2b-primary); min-height: 190px; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px solid var(--b2b-border); border-radius: 12px; background: var(--b2b-surface); box-shadow: var(--shadow-card); transition: border-color .15s, box-shadow .15s; }
.pano-gcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.pano-gcard[hidden] { display: none; }
.pano-gcard-icon { width: 40px; height: 40px; margin-bottom: 4px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--ob-accent); color: #fff; font-size: 18px; box-shadow: 0 6px 14px -6px var(--ob-accent); }
.pano-gcard h3 { margin: 0; font-size: 14px; font-weight: 650; }
.pano-gcard-cat { font-size: 11.5px; color: var(--ob-accent-fg); font-weight: 600; }
.pano-gcard p { flex: 1; margin: 0; color: var(--b2b-muted); font-size: 12.5px; }
.pano-gcard footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.pano-gcard-on { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-size: 12px; font-weight: 600; }
.pano-gcard-on[hidden] { display: none; }
.pano-gcard-add { margin-left: auto; }
.pano-gcard-add:disabled { opacity: 1; background: var(--ok-bg); border-color: transparent; color: var(--ok); }
.pano-gallery-empty { margin: 0; padding: 8px 20px 24px; text-align: center; color: var(--b2b-muted); }

.pano-drawer { position: fixed; top: var(--topbar-h); right: 0; bottom: 0; z-index: 70; width: min(360px, 100vw); display: flex; flex-direction: column; background: var(--b2b-surface); border-left: 1px solid var(--b2b-border); box-shadow: var(--shadow-flyout); animation: ob-in .2s ease both; }
.pano-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--b2b-border); }
.pano-drawer-head h2 { margin: 0; font-size: 14px; font-weight: 650; }
.pano-drawer-form { flex: 1; overflow: auto; padding: 14px 16px; }
.pano-drawer-form .field > label { color: var(--b2b-muted); font-weight: 600; font-size: 12px; }
.pano-drawer-actions { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--b2b-border); }

@media (max-width: 1024px) { .pano-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pano-gallery-grid { grid-template-columns: 1fr; } .pano-modal { padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .pano-dialog, .pano-modal-backdrop, .pano-drawer { animation: none; } }
/* Siparişlerim */
.b2b-orders .b2b-notice { margin-bottom: 0; }
.b2b-tracking { display: flex; flex-direction: column; gap: 12px; }
.b2b-tracking .b2b-notice { margin-bottom: 0; }
.b2b-tracking-empty { grid-row: auto; min-height: 180px; }
.b2b-tracking-head { display: flex; align-items: center; gap: 8px; }
.b2b-tracking-plate { font-size: 13px; letter-spacing: .04em; }
.b2b-tracking-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.b2b-tracking-list dt { color: var(--b2b-muted); font-weight: 600; }
.b2b-tracking-list dd { margin: 0; overflow-wrap: anywhere; }
.b2b-tracking-map { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.b2b-orders-filter { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.b2b-orders-filter .b2b-grid-search { min-width: min(220px, 100%); }
.b2b-orders-date { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--b2b-muted); }
.b2b-orders-date input { height: 32px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--b2b-surface); color: var(--b2b-text); font: inherit; font-size: 13px; }
.b2b-orders-source { color: var(--b2b-muted); }
.b2b-orders-empty { grid-row: auto; min-height: 200px; }
.b2b-orders-note { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b2b-orders-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.b2b-orders-table tbody tr.is-new { background: var(--ok-bg); box-shadow: inset 3px 0 0 var(--ok); }
.b2b-orders-table tbody tr.b2b-detail-row, .b2b-orders-table tbody tr.b2b-detail-row:hover { background: var(--surface-subtle); }
.b2b-detail-row > td { padding: 10px 12px 12px 24px; }
.b2b-detail-table { background: var(--b2b-surface); border: 1px solid var(--b2b-border); border-radius: 8px; }
.b2b-detail-table th { position: static; }
/* Cari Ekstrem / Cari Karnem */
.b2b-statement .b2b-notice { margin-bottom: 0; }
.b2b-statement-spacer { flex: 1; }
.b2b-statement-empty { grid-row: auto; min-height: 200px; }
.b2b-statement-table tbody tr.is-devir { background: var(--info-bg); font-weight: 650; }
.b2b-statement-table tbody tr[hidden] { display: none; }
.b2b-statement-table tbody tr.b2b-detail-row, .b2b-statement-table tbody tr.b2b-detail-row:hover { background: var(--surface-subtle); }
.b2b-statement-doc { padding: 2px 4px; color: var(--b2b-primary); text-decoration: underline; font-family: inherit; }
.b2b-statement-pdf { margin-left: 4px; color: var(--bad); text-decoration: none; }
.b2b-statement-totals { display: flex; justify-content: flex-end; gap: 24px; flex-wrap: wrap; font-size: 13px; }
.b2b-statement-totals > div { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.b2b-statement-totals strong { font-size: 15px; font-variant-numeric: tabular-nums; }
.b2b-invoice-head { display: grid; grid-template-columns: max-content 1fr max-content 1fr; gap: 4px 14px; margin: 0 0 10px; font-size: 13px; }
.b2b-invoice-head dt { color: var(--b2b-muted); font-weight: 600; }
.b2b-invoice-head dd { margin: 0; overflow-wrap: anywhere; }
.b2b-account-card { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.b2b-account-card .b2b-notice { margin-bottom: 0; }
.b2b-account-head { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; font-size: 13px; }
.b2b-account-pay { margin-left: auto; }
.b2b-account-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; flex: 1; min-height: 0; }
.b2b-account-tile { border: 1px solid var(--b2b-border); border-radius: 10px; padding: 10px 14px; min-height: 96px; }
.b2b-account-tile .ob-kpi-value { font-size: 22px; }
.b2b-account-tile.is-bad { --ob-accent: var(--bad); }
.b2b-account-tile.is-bad .ob-kpi-value { color: var(--bad); }
@media (max-width: 768px) { .b2b-invoice-head { grid-template-columns: max-content 1fr; } }

/* Yazdırma ("Yazdır / PDF"): kabuk, gezinme ve araç çubukları gizlenir; ızgara düz akışa döner, tablolar tam boy basılır. */
@media print {
  .b2b-topbar, .b2b-rail, .b2b-launcher, .ob-head, .b2b-statement-tools, .b2b-statement-pdf, .b2b-detail-row, .ob-w-head { display: none !important; }
  body, .b2b-shell, .b2b-main { background: #fff !important; padding: 0 !important; margin: 0 !important; min-height: 0 !important; }
  .ob-grid { display: block !important; }
  .ob-w { display: block !important; height: auto !important; border: 0 !important; box-shadow: none !important; animation: none !important; overflow: visible !important; margin-bottom: 12px; }
  .ob-w-body, .b2b-table-wrap, .b2b-table-scroll { overflow: visible !important; height: auto !important; border: 0 !important; padding: 0 !important; }
  .b2b-table { font-size: 9pt; }
  .b2b-table th { position: static !important; }
  .b2b-table tr { break-inside: avoid; }
  .b2b-statement-doc { color: inherit !important; text-decoration: none !important; padding: 0 !important; }
  @page { size: A4 landscape; margin: 10mm; }
}

/* Sürüm notları (widget + yönetim önizlemesi) */
.b2b-release-note { padding: 12px 2px; border-bottom: 1px solid var(--b2b-border); }
.b2b-release-note:last-child { border-bottom: 0; }
.b2b-release-note header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.b2b-release-note h3 { margin: 0; font-size: 14px; flex: 1 1 auto; }
.b2b-release-note time { color: var(--b2b-muted); font-size: 12px; }
.b2b-release-body { font-size: 13px; line-height: 1.55; }
.b2b-release-body ul, .b2b-release-body ol { padding-left: 20px; }
.b2b-release-body p { margin: 6px 0; }

/* Tahsilat (eski Tahsilat.aspx) ve banka yönlendirme / sonuç sayfaları */
.b2b-payment { display: flex; flex-direction: column; gap: 12px; }
.b2b-payment .b2b-notice { margin-bottom: 0; }
.b2b-payment-msg, .b2b-payment-result-msg { white-space: pre-line; }
.b2b-payment-info { margin: 0; font-size: 13px; color: var(--b2b-muted); }
.b2b-payment-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 2fr); gap: 16px; align-items: start; }
@media (max-width: 1024px) { .b2b-payment-grid { grid-template-columns: 1fr; } }
.b2b-payment-amount { border: 1px solid var(--b2b-border); border-radius: 12px; padding: 12px 14px; }
.b2b-payment-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 6px; }
.b2b-payment-total { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.b2b-payment-total-label { color: var(--bad); font-weight: 700; }
.b2b-payment-money { display: inline-flex; align-items: center; gap: 4px; font-size: 22px; font-weight: 700; }
.b2b-payment-money input { font: inherit; font-size: 20px; padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: 4px; text-align: right; background: var(--b2b-surface); color: var(--b2b-text); }
.b2b-payment-lira { width: 130px; } .b2b-payment-kurus { width: 56px; }
.b2b-payment-form, .b2b-payment-nopay { border: 1px solid var(--b2b-border); border-radius: 12px; padding: 12px 14px; }
.b2b-payment-nopay { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.b2b-payment fieldset { border: 0; padding: 0; margin: 0 0 12px; }
.b2b-payment legend { font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.b2b-payment-card { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 4px 0; }
.b2b-payment-pan { display: flex; gap: 6px; }
.b2b-payment-pan input { width: 64px; text-align: center; font: inherit; padding: 7px 6px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--b2b-surface); color: var(--b2b-text); }
.b2b-payment-row2 { display: flex; gap: 16px; flex-wrap: wrap; }
.b2b-payment-exp { display: flex; gap: 6px; }
.b2b-payment-save { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.b2b-payment-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.b2b-payment-result { max-width: 640px; margin: 24px auto; }
.b2b-payment-result-actions { display: flex; gap: 8px; margin-top: 12px; }
.b2b-bank-redirect { display: flex; align-items: center; justify-content: center; min-height: 100dvh; margin: 0; }
.b2b-bank-redirect-box { text-align: center; font-size: 14px; }
.b2b-payment-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
/* Kayıtlı Kartlarım (eski BankaKartlari.aspx) */
.b2b-saved-cards { display: flex; flex-direction: column; gap: 12px; }
.b2b-saved-cards .b2b-notice { margin-bottom: 0; }
.b2b-saved-cards-del { width: 56px; text-align: center; }
.b2b-saved-cards-del form { display: inline; }
.b2b-saved-cards-form { border: 1px solid var(--b2b-border); border-radius: 12px; padding: 12px 14px; max-width: 520px; }
.b2b-saved-cards-form fieldset { border: 0; padding: 0; margin: 0; }
.b2b-saved-cards-form legend { font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.b2b-saved-cards-row { display: flex; gap: 16px; flex-wrap: wrap; }
.b2b-saved-cards-exp { display: flex; gap: 6px; }

/* ---------- Yardım sistemi (Task 1.13): ? düğmesi, panel, Yardım Merkezi, tur, ipucu ---------- */
.b2b-help-btn { position: relative; }
.b2b-help-dot[hidden] { display: none; }
.b2b-help-dot { display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--b2b-accent, var(--b2b-primary)); vertical-align: middle; }
.b2b-help-drawer { position: fixed; top: var(--topbar-h); right: 0; bottom: 0; z-index: 75; width: min(400px, 100vw); display: flex; flex-direction: column; background: var(--b2b-surface); border-left: 1px solid var(--b2b-border); box-shadow: var(--shadow-flyout); animation: ob-in .2s ease both; }
.b2b-help-drawer[hidden] { display: none; }
.b2b-help-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--b2b-border); }
.b2b-help-drawer-head h2 { margin: 0; font-size: 14px; font-weight: 650; }
.b2b-launcher-tabs { display: flex; gap: 4px; padding: 8px 16px 0; border-bottom: 1px solid var(--b2b-border); }
.b2b-launcher-tabs { padding: 0 0 0; margin-bottom: 10px; }
.b2b-launcher-tabs button { border: 0; background: transparent; padding: 8px 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--b2b-muted); border-bottom: 2px solid transparent; cursor: pointer; }
.b2b-launcher-tabs button[aria-selected="true"] { color: var(--b2b-primary); border-bottom-color: var(--b2b-primary); }
.b2b-help-drawer-body { flex: 1; overflow: auto; padding: 14px 16px; }
.b2b-help-drawer-foot { padding: 12px 16px; border-top: 1px solid var(--b2b-border); font-size: 13px; }
.b2b-help-page { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.b2b-help-page-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--b2b-muted); }
.b2b-help-article { width: 100%; }
.b2b-help-article h2, .b2b-help-article h3 { margin: 0 0 6px; font-size: 15px; }
.b2b-help-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 24px 8px; text-align: center; }
.b2b-help-empty i { font-size: 26px; }
.b2b-help-pending { margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: 12px; }
.b2b-help-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 12px; color: var(--b2b-muted); }
.b2b-help-feedback [aria-pressed="true"] { border-color: var(--b2b-primary); background: var(--primary-soft); }
.b2b-help-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.b2b-help-list small { color: var(--b2b-muted); font-weight: 400; }
.b2b-launcher-help { max-height: 60dvh; overflow: auto; }
.b2b-launcher-help[hidden], .b2b-launcher-grid[hidden] { display: none; }
.b2b-launcher-help-item { display: block; padding: 8px 10px; border-radius: 8px; background: var(--surface-subtle); color: var(--b2b-text); font-weight: 600; }
.b2b-launcher-help-item:hover { background: var(--primary-soft); text-decoration: none; }
.b2b-help-center { display: flex; flex-direction: column; gap: 14px; }
.b2b-help-search { display: flex; align-items: center; gap: 8px; }
.b2b-help-search input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--b2b-border); border-radius: 8px; font: inherit; background: var(--b2b-surface); color: var(--b2b-text); }
.b2b-help-center-body { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 18px; }
.b2b-help-cats { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.b2b-help-cats-head { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--b2b-muted); margin-bottom: 4px; }
.b2b-help-cats a { padding: 6px 8px; border-radius: 6px; color: var(--b2b-text); }
.b2b-help-cats a.active, .b2b-help-cats a:hover { background: var(--primary-soft); text-decoration: none; }
.b2b-help-cat-title { margin: 6px 0 4px; font-size: 13px; color: var(--b2b-muted); }
.b2b-help-back { display: inline-block; margin-bottom: 8px; font-size: 12px; }
.b2b-help-faq-cat { font-size: 12px; margin-bottom: 6px; }
.ob-w-info { flex: 0 0 auto; border: 0; background: transparent; padding: 2px 4px; color: var(--b2b-muted); cursor: pointer; font-size: 13px; line-height: 1; border-radius: 4px; }
.ob-w-info:hover, .ob-w-info:focus-visible { color: var(--b2b-primary); }
.b2b-help-tip { position: fixed; z-index: 1100; max-width: 260px; padding: 6px 10px; border-radius: 8px; background: var(--b2b-text); color: var(--b2b-surface); font-size: 12px; box-shadow: var(--shadow-md); pointer-events: none; }
.b2b-tour { position: fixed; inset: 0; z-index: 1200; }
.b2b-tour-shade { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.b2b-tour-shade[hidden], .b2b-tour-spot[hidden] { display: none; }
.b2b-tour-spot { position: fixed; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); outline: 2px solid var(--b2b-primary); transition: top .2s, left .2s, width .2s, height .2s; pointer-events: none; }
.b2b-tour-box { position: fixed; width: min(320px, calc(100vw - 16px)); padding: 14px 16px; border-radius: 12px; background: var(--b2b-surface); color: var(--b2b-text); box-shadow: var(--shadow-flyout); outline: none; animation: ob-in .2s ease both; }
/* Ortalama transform ile değil (ob-in animasyonu transform'u ezer, kutu sağa taşıyordu): inset + margin:auto. */
.b2b-tour-box.is-center { top: 0 !important; left: 0 !important; right: 0; bottom: 0; margin: auto; height: fit-content; max-height: calc(100dvh - 16px); overflow: auto; }
.b2b-tour-count { font-size: 11px; color: var(--b2b-muted); }
.b2b-tour-title { margin: 4px 0 6px; font-size: 15px; }
.b2b-tour-body { margin: 0 0 12px; font-size: 13px; line-height: 1.5; }
.b2b-tour-actions { display: flex; align-items: center; gap: 6px; }
.b2b-tour-gap { flex: 1; }
@media (max-width: 768px) { .b2b-help-center-body { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .b2b-help-drawer, .b2b-tour-box { animation: none; } .b2b-tour-spot { transition: none; } }
@media print { .b2b-help-drawer, .b2b-tour, .ob-w-info { display: none !important; } }

/* ---- Task 1.6b + UI cilası: dil seçici (Tercihler paneli ve giriş ekranı; dilin kendi adıyla açılır liste, bayrak yok) ve Japonca yazı tipi yedeği ---- */
.b2b-lang { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; }
.b2b-lang-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.b2b-select { font: inherit; font-size: 13px; min-height: 32px; padding: 5px 30px 5px 10px; border: 1px solid var(--border-strong); border-radius: 8px;
  background-color: var(--b2b-surface); color: var(--b2b-text); cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23605e5c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; }
.b2b-select:hover { border-color: color-mix(in srgb, var(--b2b-primary) 45%, var(--border-strong)); }
.b2b-select:focus-visible { outline: none; border-color: var(--b2b-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b2b-primary) 22%, transparent); }
.b2b-prefs .b2b-lang-label { display: none; } /* panelde bölüm başlığı "Dil" zaten var */
.b2b-prefs .b2b-select { flex: 1 1 auto; }
.login-card-panel { flex-direction: column; align-items: center; }
.login-lang { display: flex; justify-content: center; margin-top: 14px; color: #fff; }
.login-lang .b2b-select { min-height: 30px; font-size: 12.5px; background-color: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E"); }
.login-lang .b2b-select option { color: #201f1e; background: #fff; }
.login-lang .ob-btn { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.35); }
/* Google Fonts (CSP: fonts.googleapis.com / fonts.gstatic.com izinli) yalnız ja'da yüklenir; yoksa sistem Japonca yazı tipleri. */
html:lang(ja) body, html:lang(ja) body :where(h1, h2, h3, h4, button, input, select, textarea, .btn, .ob-btn) {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Segoe UI", system-ui, sans-serif;
}

/* ---- Tercihler paneli (prefs-panel.js): sağdan açılan kipli panel; yardım panelinin kalıbı (.b2b-help-drawer) + arka perde ---- */
.b2b-prefs { top: 0; z-index: 95; width: min(380px, 100vw); }
.b2b-prefs-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(15, 23, 42, .32); animation: ob-in .15s ease both; }
.b2b-prefs-backdrop[hidden] { display: none; }
.b2b-prefs-body { display: flex; flex-direction: column; gap: 18px; }
.b2b-prefs-profile { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--b2b-border); border-radius: 12px; background: var(--surface-subtle); }
.b2b-prefs-avatar { width: 40px; height: 40px; font-size: 16px; }
.b2b-prefs-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.b2b-prefs-who b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b2b-prefs-who small { font-size: 12px; color: var(--b2b-muted); }
.b2b-prefs-group { display: flex; flex-direction: column; gap: 12px; }
.b2b-prefs-head { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--b2b-muted); }
.b2b-prefs-row { display: flex; flex-direction: column; gap: 6px; }
.b2b-prefs-label { font-size: 13px; font-weight: 600; }
.b2b-prefs-hint { margin: 0; font-size: 12px; color: var(--b2b-muted); }
.b2b-prefs-link { font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.b2b-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 3px; border: 1px solid var(--b2b-border); border-radius: 10px; background: var(--surface-subtle); }
.b2b-seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 4px 8px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: var(--b2b-text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.b2b-seg-btn:hover { background: var(--b2b-surface); }
.b2b-seg-btn:focus-visible { outline: 2px solid var(--b2b-primary); outline-offset: 1px; }
.b2b-seg-btn[aria-pressed="true"] { background: var(--b2b-surface); border-color: var(--b2b-primary); color: var(--b2b-primary); box-shadow: var(--shadow-sm); }
.b2b-font-glyph { font-weight: 700; line-height: 1; }
.b2b-font-sm { font-size: 12px; } .b2b-font-md { font-size: 15px; } .b2b-font-lg { font-size: 19px; } .b2b-font-xl { font-size: 23px; }
.b2b-prefs-foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.b2b-prefs-foot-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.b2b-prefs-version { font-size: 12px; color: var(--b2b-muted); font-variant-numeric: tabular-nums; }
/* Sürüm Geçmişi (sol menü Yardım grubu, Tercihler alt şeridi, giriş ekranı künyesi): okunmamış sürüm noktası ve sürüm etiketi. */
.login-version { margin-left: 10px; padding: 1px 7px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { .b2b-prefs-backdrop { animation: none; } }
@media print { .b2b-prefs, .b2b-prefs-backdrop { display: none !important; } }

/* Yazı boyutu: ölçüler px olduğundan kök font-size yetmez; içerik ve paneller zoom ile birlikte ölçeklenir (üst çubuk ve sol menü sabit). */
body.b2b-shell { --b2b-ui-zoom: 1; }
body.b2b-shell[data-font-size="sm"] { --b2b-ui-zoom: .9; }
body.b2b-shell[data-font-size="lg"] { --b2b-ui-zoom: 1.1; }
body.b2b-shell[data-font-size="xl"] { --b2b-ui-zoom: 1.2; }
body.b2b-shell[data-font-size]:not([data-font-size="md"]) :is(.b2b-main, .b2b-help-drawer-body) { zoom: var(--b2b-ui-zoom); }

/* Koyu tema (Tercihler → Tema): yönetici temasının yüzey/metin değişkenleri koyu karşılıklarıyla ezilir; vurgu rengi korunur.
   Yalnız kabukta (body.b2b-shell): giriş ve yazdırma sayfaları etkilenmez. <body data-theme-pref> sunucudan (kullanıcı tercihi);
   "system" işletim sisteminin koyu kipini izler (betiksiz). */
body.b2b-shell[data-theme-pref="dark"] {
  color-scheme: dark;
  --b2b-bg: #1b1a19; --b2b-surface: #252423; --b2b-text: #f3f2f1; --b2b-muted: #b3b0ad; --b2b-border: #3b3a39;
  --b2b-header-bg: #201f1e; --b2b-header-text: #f3f2f1;
  /* :root'ta türetilen değişkenler yeni yüzey/metinle yeniden hesaplanır (özel özellikler kalıtılan değerdir). */
  --surface-subtle: color-mix(in srgb, var(--b2b-text) 5%, var(--b2b-surface)); --surface-muted: color-mix(in srgb, var(--b2b-text) 9%, var(--b2b-surface));
  --border-strong: color-mix(in srgb, var(--b2b-text) 18%, var(--b2b-surface)); --primary-soft: color-mix(in srgb, var(--b2b-primary) 22%, transparent);
  --ok: #92d58a; --ok-bg: #173117; --warn: #f5d76e; --warn-bg: #3a3000; --bad: #f1999f; --bad-bg: #3d1a1c; --info: #8cc8f6; --info-bg: #10263c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-card: 0 1px 2px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.35); --shadow-md: 0 2px 8px rgba(0,0,0,.45);
}
body.b2b-shell[data-theme-pref="dark"] a:not(.ob-btn):not(.btn):not(.b2b-btn-icon):not(.b2b-rail-link):not(.b2b-launcher-item):not(.admin-tile) { color: color-mix(in srgb, var(--b2b-primary) 55%, #fff); }
body.b2b-shell[data-theme-pref="dark"] :is(.b2b-notice, .form-error) { border-color: var(--b2b-border); }
body.b2b-shell[data-theme-pref="dark"] :is(.b2b-select, .admin-form select, .admin-grid-filter select, .admin-grid-size select, form.admin-toolbar select) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23c8c6c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) {
body.b2b-shell[data-theme-pref="system"] {
  color-scheme: dark;
  --b2b-bg: #1b1a19; --b2b-surface: #252423; --b2b-text: #f3f2f1; --b2b-muted: #b3b0ad; --b2b-border: #3b3a39;
  --b2b-header-bg: #201f1e; --b2b-header-text: #f3f2f1;
  /* :root'ta türetilen değişkenler yeni yüzey/metinle yeniden hesaplanır (özel özellikler kalıtılan değerdir). */
  --surface-subtle: color-mix(in srgb, var(--b2b-text) 5%, var(--b2b-surface)); --surface-muted: color-mix(in srgb, var(--b2b-text) 9%, var(--b2b-surface));
  --border-strong: color-mix(in srgb, var(--b2b-text) 18%, var(--b2b-surface)); --primary-soft: color-mix(in srgb, var(--b2b-primary) 22%, transparent);
  --ok: #92d58a; --ok-bg: #173117; --warn: #f5d76e; --warn-bg: #3a3000; --bad: #f1999f; --bad-bg: #3d1a1c; --info: #8cc8f6; --info-bg: #10263c;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow-card: 0 1px 2px rgba(0,0,0,.45), 0 2px 8px rgba(0,0,0,.35); --shadow-md: 0 2px 8px rgba(0,0,0,.45);
}
body.b2b-shell[data-theme-pref="system"] a:not(.ob-btn):not(.btn):not(.b2b-btn-icon):not(.b2b-rail-link):not(.b2b-launcher-item):not(.admin-tile) { color: color-mix(in srgb, var(--b2b-primary) 55%, #fff); }
body.b2b-shell[data-theme-pref="system"] :is(.b2b-notice, .form-error) { border-color: var(--b2b-border); }
body.b2b-shell[data-theme-pref="system"] :is(.b2b-select, .admin-form select, .admin-grid-filter select, .admin-grid-size select, form.admin-toolbar select) {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23c8c6c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M3.5 6l4.5 4.5L12.5 6'/%3E%3C/svg%3E"); }
}

/* ---- Task 1.12b: Sürüm Geçmişi (OrionLegacy orion-release-* karşılığı) ve yardım künyesi ---- */
.b2b-rel [hidden] { display: none !important; }
.b2b-rel-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.b2b-rel-title { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.b2b-rel-lead { margin: 0; font-size: 12.5px; color: var(--b2b-muted); }
.b2b-rel-current { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 11px; border: 1px solid var(--b2b-border); border-radius: 999px; background: var(--surface-subtle); font-size: 12px; color: var(--b2b-muted); white-space: nowrap; }
.b2b-rel-current b { font-size: 13px; color: var(--b2b-text); }
.b2b-rel-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.b2b-rel-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.b2b-rel-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 12px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--b2b-surface); color: var(--b2b-muted); font: inherit; font-size: 12.5px; line-height: 1.4; cursor: pointer; }
.b2b-rel-chip:hover { background: var(--surface-subtle); color: var(--b2b-text); }
.b2b-rel-chip:focus-visible { outline: 2px solid var(--b2b-primary); outline-offset: 1px; }
.b2b-rel-chip.is-active { border-color: var(--b2b-primary); background: var(--primary-soft); color: var(--b2b-primary); font-weight: 600; }
.b2b-rel-search { display: flex; align-items: center; gap: 8px; min-width: 220px; flex: 0 1 280px; height: 32px; padding: 0 10px; border: 1px solid var(--b2b-border); border-radius: 6px; background: var(--b2b-surface); color: var(--b2b-muted); }
.b2b-rel-search:focus-within { border-color: var(--b2b-primary); }
.b2b-rel-search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 13px; color: var(--b2b-text); }
.b2b-rel-timeline { position: relative; padding-left: 20px; }
.b2b-rel-timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: var(--b2b-border); }
.b2b-rel-item { position: relative; margin-bottom: 14px; }
.b2b-rel-marker { position: absolute; left: -20px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); box-shadow: 0 0 0 3px var(--b2b-surface); }
.b2b-rel-item.is-latest .b2b-rel-marker { background: var(--b2b-primary); }
.b2b-rel-card { border: 1px solid var(--b2b-border); border-radius: 10px; background: var(--b2b-surface); padding: 14px 16px; }
.b2b-rel-card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; }
.b2b-rel-version { font-family: Consolas, "Cascadia Mono", ui-monospace, monospace; font-size: 12.5px; font-weight: 600; color: var(--b2b-text); padding: 1px 7px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-subtle); }
.b2b-rel-date { font-size: 12px; color: var(--b2b-muted); }
.b2b-rel-latest { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--b2b-primary); color: var(--b2b-primary-text); }
.b2b-rel-name { margin: 0 0 4px; font-size: 14.5px; font-weight: 600; color: var(--b2b-text); }
.b2b-rel-summary { margin: 0 0 10px; font-size: 12.8px; color: var(--b2b-muted); }
.b2b-rel-changes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.b2b-rel-change { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; font-size: 13px; line-height: 1.6; color: var(--b2b-text); }
.b2b-rel-change[hidden] { display: none; }
.b2b-rel-kind { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; border: 1px solid transparent; }
.b2b-rel-kind-new { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.b2b-rel-kind-improvement { background: var(--primary-soft); color: var(--b2b-primary); border-color: color-mix(in srgb, var(--b2b-primary) 25%, transparent); }
.b2b-rel-kind-fix { background: var(--warn-bg); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.b2b-rel-module { flex: 0 0 auto; font-size: 11px; color: var(--b2b-muted); padding: 1px 6px; border: 1px solid var(--b2b-border); border-radius: 5px; background: var(--surface-subtle); }
.b2b-rel-text { flex: 1 1 240px; min-width: 0; }
.b2b-rel-empty { margin: 16px 0; font-size: 13px; color: var(--b2b-muted); }
.b2b-rel-news .b2b-rel-changes { margin-bottom: 12px; }
.b2b-rel-all { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.b2b-help-stamp { margin: 16px 0 0; font-size: 11.5px; color: var(--b2b-muted); }
.b2b-help-stamp b { color: var(--b2b-text); }
.b2b-help-stamp-sep { margin: 0 4px; opacity: .5; }
.b2b-help-stamp-inline { display: block; margin: 6px 0 0; font-size: 10.5px; }
@media (max-width: 768px) { .b2b-rel-toolbar { align-items: stretch; } .b2b-rel-search { flex: 1 1 100%; } }

/* Task 8.6: ana sayfa carousel'i, haftanın fırsatları, CMS yazısı, video galerisi */
.b2b-carousel { position: relative; height: 100%; min-height: 160px; border-radius: 12px; overflow: hidden; background: var(--b2b-surface); outline-offset: 2px; }
.b2b-carousel-track, .b2b-carousel-slide { height: 100%; margin: 0; }
.b2b-carousel-slide[hidden] { display: none; }
.b2b-carousel-slide a { display: block; height: 100%; }
.b2b-carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.b2b-carousel-nav { position: absolute; top: 50%; transform: translateY(-50%); border: 0; border-radius: 50%; width: 34px; height: 34px; background: rgba(0, 0, 0, .45); color: #fff; cursor: pointer; }
.b2b-carousel-nav.is-prev { left: 8px; }
.b2b-carousel-nav.is-next { right: 8px; }
.b2b-carousel-nav.is-pause { top: auto; bottom: 8px; right: 8px; transform: none; width: 30px; height: 30px; z-index: 1; }
.b2b-carousel-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 6px; }
.b2b-carousel-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .55); cursor: pointer; }
.b2b-carousel-dot.is-active { background: #fff; }
.b2b-cms-title { font-size: 1.25rem; margin: 0 0 10px; }
.b2b-cms-body img { max-width: 100%; height: auto; }
.b2b-video-category-title { font-size: 1.1rem; margin: 14px 0 8px; }
.b2b-video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 12px; }
.b2b-video-tile { margin: 0; }
.b2b-video-tile video { width: 100%; border-radius: 8px; background: #000; }
.b2b-video-tile figcaption { margin-top: 4px; font-size: 12.5px; color: var(--b2b-muted); }

/* Dilim 7 (Task 7.5): Şube Çalışanları / Personel Eğitimleri (people.js) */
.b2b-people-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.b2b-people-table td.b2b-people-icon, .b2b-people-table th.b2b-people-icon { width: 1%; white-space: nowrap; text-align: center; }
.b2b-people-pager { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 10px; }
.b2b-people-pager[hidden], .b2b-people-drawer[hidden], [data-form-message][hidden], .b2b-people-error[hidden] { display: none; }
.b2b-people-drawer { position: fixed; top: var(--topbar-h); right: 0; bottom: 0; z-index: 70; width: min(560px, 100vw); display: flex; flex-direction: column; background: var(--b2b-surface); border-left: 1px solid var(--b2b-border); box-shadow: var(--shadow-flyout); animation: ob-in .2s ease both; }
.b2b-people-drawer-head { display: flex; justify-content: flex-end; padding: 8px 10px; border-bottom: 1px solid var(--b2b-border); }
.b2b-people-drawer-body { flex: 1; overflow: auto; padding: 14px 16px; }
.b2b-people-drawer-title { font-size: 16px; margin: 0 0 12px; }
.b2b-people-lead { margin: 0 0 6px; font-size: 13px; }
.b2b-people-fields { display: grid; gap: 10px; }
.b2b-people-field { display: grid; gap: 4px; font-size: 13px; }
.b2b-people-field input, .b2b-people-field select { font: inherit; padding: 6px 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--b2b-surface); color: var(--b2b-text); }
.b2b-people-check { display: flex; gap: 8px; align-items: center; font-size: 13px; }
.b2b-people-error { color: var(--bad, #b42318); font-size: 12px; }
.b2b-people-actions { display: flex; justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { .b2b-people-drawer { animation: none; } }

/* Dilim 7 (Task 7.6): Eğitimlerim (trainings.js) ve Denetimlerim (audits.js) */
.b2b-trainings-layout { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; gap: 16px; align-items: start; }
@media (max-width: 768px) { .b2b-trainings-layout { grid-template-columns: 1fr; } }
.b2b-trainings-tree { border-right: 1px solid var(--b2b-border); padding-right: 12px; font-size: 13px; }
.b2b-trainings-nodes { list-style: none; margin: 0; padding: 0; }
.b2b-trainings-nodes .b2b-trainings-nodes { padding-left: 14px; }
.b2b-trainings-nodes li { margin: 2px 0; }
.b2b-trainings-group { display: block; font-weight: 600; padding: 4px 0; color: var(--b2b-muted); }
.b2b-trainings-leaf { display: block; padding: 4px 8px; border-radius: 6px; color: var(--b2b-text); text-decoration: none; }
.b2b-trainings-leaf:hover, .b2b-trainings-leaf.is-active { background: var(--b2b-hover, rgba(0, 0, 0, .05)); }
.b2b-trainings-leaf.is-active { font-weight: 600; }
.b2b-trainings-title { font-size: 16px; margin: 0 0 10px; }
.b2b-training-play:disabled { opacity: .45; cursor: not-allowed; }
.b2b-training-dialog, .b2b-audit-dialog { width: min(1100px, 92vw); max-height: 90dvh; border: 1px solid var(--b2b-border); border-radius: 12px; padding: 0; background: var(--b2b-surface); color: var(--b2b-text); box-shadow: var(--shadow-flyout); }
.b2b-training-dialog { width: 85vw; }
.b2b-training-dialog::backdrop, .b2b-audit-dialog::backdrop { background: rgba(0, 0, 0, .45); }
.b2b-training-dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--b2b-border); }
.b2b-training-tabs { display: flex; gap: 6px; padding: 10px 14px 0; }
.b2b-training-tabs [aria-selected="true"] { font-weight: 600; border-color: var(--b2b-text); }
.b2b-training-panel { padding: 10px 14px 14px; }
.b2b-training-panel[hidden] { display: none; }
.b2b-training-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; overflow: hidden; }
.b2b-training-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b2b-training-nav { display: flex; justify-content: space-between; margin-top: 10px; }
.b2b-training-desc, .b2b-prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.b2b-audits-filter { width: 100%; min-width: 80px; font: inherit; font-size: 12px; padding: 4px 6px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--b2b-surface); color: var(--b2b-text); }
.b2b-audits-table td.b2b-audits-cell { text-align: right; }
.b2b-audit-body { padding: 12px 16px 16px; overflow: auto; max-height: calc(90dvh - 60px); }
.b2b-audit-code { font-size: 16px; margin: 0 0 10px; }
.b2b-audit-detail h4 { font-size: 14px; margin: 14px 0 6px; }
.b2b-audit-group th { background: var(--b2b-border); text-align: left; }

/* ---- Dilim 5 (Task 5.5): İade Sepetim, İade Taleplerim, Faturalarım iade bölümü ve iade fişi yazdırma (Orion sınıfları) ---- */
.b2b-returns { display: flex; flex-direction: column; gap: 10px; }
/* Tur çapası kabı (Task 5.6): toplamlar, not, alt duyuru ve düğmeler arasındaki 10px aralık .b2b-returns ile aynı kalır. */
.b2b-return-summary { display: flex; flex-direction: column; gap: 10px; }
.b2b-return-notice { display: flex; align-items: flex-start; gap: 8px; }
.b2b-return-notice-body { flex: 1 1 auto; }
.b2b-return-pending { font-size: 18px; font-weight: 600; margin: 8px 0; color: var(--bad); }
.b2b-return-qty { display: inline-flex; align-items: center; gap: 4px; }
.b2b-return-qty-input { width: 84px; text-align: right; }
.b2b-return-totals { display: grid; grid-template-columns: max-content max-content; justify-content: end; gap: 4px 14px; margin: 4px 0 0; }
.b2b-return-totals dt { font-weight: 600; text-align: right; white-space: pre; }
.b2b-return-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.b2b-return-grand { color: var(--bad); font-weight: 700; }
.b2b-return-note { margin: 0; color: var(--info); font-style: italic; text-align: right; font-size: 12.5px; }
.b2b-return-bottom-notice { color: var(--bad); font-style: italic; }
.b2b-return-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.b2b-return-actions .ob-btn.is-danger { border-color: var(--bad); color: var(--bad); }
.b2b-return-closed { color: #800000; font-weight: 600; }
.b2b-return-lines { margin-top: 14px; border-top: 1px solid var(--b2b-border); padding-top: 10px; }
.b2b-return-lines-title { font-size: 14px; margin: 0 0 8px; }
.b2b-return-line-table select, .b2b-return-line-table input[type="text"] { max-width: 200px; }
.b2b-return-photos { width: min(720px, 94vw); border: 1px solid var(--b2b-border); border-radius: 12px; padding: 0; }
.b2b-return-photos::backdrop { background: rgba(0, 0, 0, .35); }
.b2b-return-photos-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--b2b-border); }
.b2b-return-photos-head h2 { margin: 0; font-size: 15px; }
.b2b-return-photos-pick { margin: 12px 14px 0; position: relative; cursor: pointer; }
.b2b-return-photos > .ob-muted { margin: 12px 14px 0; }
.b2b-return-photo-list { list-style: none; margin: 0; padding: 12px 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 10px; max-height: 50dvh; overflow: auto; }
.b2b-return-photo { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--b2b-border); border-radius: 8px; padding: 6px; font-size: 12px; word-break: break-all; }
.b2b-return-photo img { width: 100%; height: 110px; object-fit: contain; background: var(--surface-subtle); }
.b2b-return-photos-foot { display: flex; justify-content: flex-end; padding: 10px 14px; border-top: 1px solid var(--b2b-border); }
.b2b-print-page { background: #fff; color: #111; }
.b2b-print-main { max-width: 1000px; margin: 0 auto; padding: 18px; }
.b2b-return-print { display: flex; flex-direction: column; gap: 12px; }
.b2b-return-print-tools { display: flex; justify-content: flex-end; }
.b2b-return-print-title { font-size: 20px; margin: 0; }
.b2b-return-sample { color: var(--bad); }
.b2b-return-print-head { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; font-size: 12.5px; }
.b2b-return-logo { max-width: 180px; max-height: 80px; display: block; margin-bottom: 6px; }
.b2b-return-print-meta { display: grid; grid-template-columns: max-content max-content; gap: 4px 10px; margin: 0; align-content: start; }
.b2b-return-print-meta dd { margin: 0; }
@media print {
  .b2b-return-print-tools, .b2b-return-actions, .b2b-return-photos { display: none !important; }
  .b2b-print-main { padding: 0; max-width: none; }
  .b2b-return-print .b2b-table { font-size: 9pt; }
}

/* Dilim 8 (Task 8.4): Çağrılarım — kayıt çekmecesi, sekmeler, ekler ve not balonları (eski IletisimFormu düzeni: kendi notum sağda, merkez solda). */
.b2b-contact-drawer[hidden], .b2b-contact-panel[hidden], .b2b-contact-preview[hidden], .b2b-contact [data-form-message][hidden], .b2b-contact-drawer [data-form-message][hidden] { display: none; }
.b2b-contact-drawer { position: fixed; top: var(--topbar-h); right: 0; bottom: 0; z-index: 70; width: min(640px, 100vw); display: flex; flex-direction: column; background: var(--b2b-surface); border-left: 1px solid var(--b2b-border); box-shadow: var(--shadow-flyout); animation: ob-in .2s ease both; }
.b2b-contact-drawer-head { display: flex; justify-content: flex-end; padding: 8px 10px; border-bottom: 1px solid var(--b2b-border); }
.b2b-contact-drawer-body { flex: 1; overflow: auto; padding: 14px 16px; }
.b2b-contact-title { font-size: 16px; margin: 0 0 12px; }
.b2b-contact-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.b2b-contact-field > span, .b2b-contact-meta dt { color: var(--b2b-muted); font-weight: 600; font-size: 12px; }
.b2b-contact-meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 12px; margin: 0 0 12px; }
.b2b-contact-meta dd { margin: 0; overflow-wrap: anywhere; }
.b2b-contact-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--b2b-border); margin: 8px 0 10px; }
.b2b-contact-tab { border: 0; background: none; padding: 6px 12px; border-bottom: 2px solid transparent; color: var(--b2b-muted); font-weight: 600; cursor: pointer; }
.b2b-contact-tab.is-active { color: var(--b2b-primary); border-bottom-color: var(--b2b-primary); }
.b2b-contact-panel textarea { width: 100%; resize: vertical; }
.b2b-contact-desc { overflow-wrap: anywhere; }
.b2b-contact-desc img { max-width: 100%; height: auto; }
.b2b-contact-files-head { font-weight: 600; margin: 8px 0 4px; }
.b2b-contact-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.b2b-contact-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.b2b-contact-preview { flex-basis: 100%; max-width: 100%; height: auto; border: 1px solid var(--b2b-border); border-radius: 6px; }
.b2b-contact-notes { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.b2b-contact-note { display: flex; flex-direction: column; max-width: 80%; }
.b2b-contact-note.is-mine { align-self: flex-end; align-items: flex-end; }
.b2b-contact-note.is-other { align-self: flex-start; align-items: flex-start; }
.b2b-contact-note-author { color: var(--info); font-size: 12px; font-weight: 600; }
.b2b-contact-bubble { padding: 6px 10px; border-radius: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.b2b-contact-note.is-mine .b2b-contact-bubble { background: var(--ok-bg); color: var(--ok); }
.b2b-contact-note.is-other .b2b-contact-bubble { background: var(--info-bg); color: var(--info); }
.b2b-contact-note-date { font-size: 11px; opacity: .8; margin-top: 2px; }
.b2b-contact-note-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; }
.b2b-contact-note-form textarea { flex: 1; min-width: 200px; resize: vertical; }
.b2b-contact-actions { display: flex; justify-content: flex-end; margin-top: 12px; }
@media (prefers-reduced-motion: reduce) { .b2b-contact-drawer { animation: none; } }

/* Dilim 8 (Task 8.7): İndirmeler (DesenPOS) ve Desen duyuruları penceresi */
.b2b-desenpos-title { margin: 0 0 12px; font-size: 16px; font-weight: 650; }
.b2b-desenpos-warning { border: 2px solid var(--bad); border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; background: var(--bad-bg); }
.b2b-desenpos-warning p { margin: 2px 0; }
.b2b-desenpos-download { margin-bottom: 16px; }
.b2b-desenpos-steps { padding-left: 20px; display: grid; gap: 14px; }
.b2b-desenpos-step img { max-width: 100%; height: auto; border: 1px solid var(--b2b-border); border-radius: 6px; }
.b2b-desen-ann { width: min(900px, 92vw); max-height: 90dvh; border: 1px solid var(--b2b-border); border-radius: 12px; padding: 0; background: var(--b2b-surface); color: var(--b2b-text); box-shadow: var(--shadow-flyout); }
.b2b-desen-ann::backdrop { background: rgba(0, 0, 0, .45); }
.b2b-desen-ann-head { padding: 12px 16px; border-bottom: 1px solid var(--b2b-border); }
.b2b-desen-ann-head h2 { margin: 0; font-size: 17px; }
.b2b-desen-ann-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 16px 0; }
.b2b-desen-ann-tabs [role="tab"] { border: 1px solid var(--b2b-border); border-bottom: 0; border-radius: 6px 6px 0 0; padding: 5px 12px; background: var(--surface-subtle); color: inherit; cursor: pointer; font: inherit; }
.b2b-desen-ann-tabs [role="tab"][aria-selected="true"] { background: var(--b2b-surface); font-weight: 650; }
.b2b-desen-ann-panel { padding: 10px 16px 16px; border-top: 1px solid var(--b2b-border); }
.b2b-desen-ann-item { border: 1px solid var(--b2b-border); border-radius: 8px; margin-bottom: 8px; }
.b2b-desen-ann-toggle { display: block; width: 100%; text-align: left; padding: 8px 12px; border: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.b2b-desen-ann-body { padding: 0 12px 12px; }
.b2b-desen-ann-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.b2b-desen-ann-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 10px; }
/* Dilim 8 (Task 8.8): rehber turu çapası kabı — her durumda çizilen sarmalayıcı; içindeki öğeler esnek sütunun 10px aralığını ve tablo kaydırmasını korur. */
.b2b-help-anchor { display: flex; flex-direction: column; gap: 10px; flex: 1 1 auto; min-height: 0; }

/* ---- UI kabuk 2: sol menü (Geniş / Dar), üst çubuk kullanıcı düğmesi, Tercihler (menü, tema rengi, kısayollar, Çıkış), Kısayollar widget'ı ---- */
/* Menü kipi <body data-menu-mode>: wide 232 px (ikon + etiket), narrow 64 px (yalnız ikon; etiket hover/odakta ipucu), auto: 1024 px ve altında dar.
   768 px ve altında (telefon) ray soldan kayan çekmece olur; üst çubuktaki menü düğmesi açar (dosya sonundaki "Duyarlı katman"). */
body.b2b-shell { --rail-w: 232px; }
body.b2b-shell[data-menu-mode="narrow"] { --rail-w: 64px; }
@media (max-width: 1024px) { body.b2b-shell[data-menu-mode="auto"] { --rail-w: 64px; } }
.b2b-rail { width: var(--rail-w); min-width: var(--rail-w); background: var(--b2b-bg); border-right: 1px solid var(--b2b-border); display: flex; flex-direction: column; align-items: stretch;
  position: sticky; top: var(--topbar-h); height: calc(100dvh - var(--topbar-h)); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent; transition: width .15s ease, min-width .15s ease; }
.b2b-rail::-webkit-scrollbar { width: 6px; }
.b2b-rail::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
.b2b-rail-top { position: sticky; top: 0; z-index: 2; padding: 8px 8px 4px; background: var(--b2b-bg); }
.b2b-rail-toggle { display: flex; align-items: center; gap: 12px; width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--b2b-muted);
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.b2b-rail-toggle i { font-size: 16px; width: 20px; text-align: center; }
.b2b-rail-toggle:hover { background: var(--surface-muted); color: var(--b2b-text); }
.b2b-rail-group { display: flex; flex-direction: column; padding: 2px 8px; }
.b2b-rail-head { padding: 10px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--b2b-muted); line-height: 1.3; }
body.b2b-shell[data-menu-headings="0"] .b2b-rail-head { display: none; }
body.b2b-shell[data-menu-headings="0"] .b2b-rail-group:not(.b2b-rail-top + .b2b-rail-group) { border-top: 1px solid var(--b2b-border); margin: 4px 8px 0; padding: 4px 0 0; }
.b2b-rail-link { position: relative; display: flex; align-items: center; gap: 12px; min-height: 36px; margin: 1px 0; padding: 6px 12px; border: 0; border-radius: 6px; background: transparent;
  color: var(--b2b-text); font: inherit; font-size: 13px; line-height: 1.25; text-align: left; text-decoration: none; cursor: pointer; }
.b2b-rail-link i { flex: none; width: 20px; font-size: 16px; text-align: center; }
.b2b-rail-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; } /* kesilmez: sığmazsa satır kırılır */
.b2b-rail-link:hover { background: var(--surface-muted); text-decoration: none; }
.b2b-rail-link:focus-visible, .b2b-rail-toggle:focus-visible { outline: 2px solid var(--b2b-primary); outline-offset: -2px; }
.b2b-rail-link.active { background: var(--primary-soft); color: var(--b2b-primary); font-weight: 600; box-shadow: inset 3px 0 0 var(--b2b-primary); }
.b2b-rail-all { width: calc(100% - 16px); margin: 4px 8px; color: var(--b2b-muted); }
.b2b-rail-dot { flex: none; width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--b2b-accent, var(--b2b-primary)); box-shadow: 0 0 0 2px var(--b2b-bg); }
.b2b-rail-dot[hidden] { display: none; }
.b2b-rail-bottom { position: sticky; bottom: 0; z-index: 2; margin-top: auto; display: flex; flex-direction: column; padding: 6px 8px; border-top: 1px solid var(--b2b-border); background: var(--b2b-bg); }
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-head { display: none; }
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-group:not(.b2b-rail-top + .b2b-rail-group) { border-top: 1px solid var(--b2b-border); margin: 4px 8px 0; padding: 4px 0 0; }
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-group { padding-left: 8px; padding-right: 8px; }
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-toggle { justify-content: center; padding: 0; }
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-toggle-text { display: none; }
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-link { justify-content: center; gap: 0; height: 40px; min-height: 40px; padding: 0; }
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-all { width: 48px; }
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-label { position: fixed; left: calc(var(--rail-w) + 6px); z-index: 70; padding: 4px 9px; border-radius: 4px; background: #242424; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-flyout); pointer-events: none; opacity: 0; transform: translateY(-50%); transition: opacity .1s; }
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-link:is(:hover, :focus-visible) > .b2b-rail-label { opacity: 1; }
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-dot { position: absolute; top: 6px; right: 8px; margin: 0; }
@media (max-width: 1024px) {
body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-head { display: none; }
body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-group:not(.b2b-rail-top + .b2b-rail-group) { border-top: 1px solid var(--b2b-border); margin: 4px 8px 0; padding: 4px 0 0; }
body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-group { padding-left: 8px; padding-right: 8px; }
body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-toggle { justify-content: center; padding: 0; }
body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-toggle-text { display: none; }
body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-link { justify-content: center; gap: 0; height: 40px; min-height: 40px; padding: 0; }
body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-all { width: 48px; }
body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-label { position: fixed; left: calc(var(--rail-w) + 6px); z-index: 70; padding: 4px 9px; border-radius: 4px; background: #242424; color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: var(--shadow-flyout); pointer-events: none; opacity: 0; transform: translateY(-50%); transition: opacity .1s; }
body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-link:is(:hover, :focus-visible) > .b2b-rail-label { opacity: 1; }
body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-dot { position: absolute; top: 6px; right: 8px; margin: 0; }
}
.b2b-launcher { left: calc(var(--rail-w) + 8px); }
/* Dar kipteki etiket ipucu: span erişilebilir ad olarak ağaçta kalır (yalnız opacity); dikey konumu (top) shell.js bağlantının o anki yerinden
   yazar (ray kaydırılınca da doğru; translateY yukarıdaki fixed kuralında). Ray kayarken ipuçları gizlenir — yalnız dar kipte; geniş kipte
   etiketler hiç gizlenmez. */
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail[data-tip-off] .b2b-rail-label { opacity: 0 !important; }
@media (max-width: 1024px) { body.b2b-shell[data-menu-mode="auto"] .b2b-rail[data-tip-off] .b2b-rail-label { opacity: 0 !important; } }
/* Pano düzenleme kipinde Kısayollar karosu edilgen: kaldır ve ekle düğmeleri gizli (kaldırma yalnız görüntüleme kipinde). */
body.is-editing .b2b-sc-remove, body.is-editing .b2b-sc-foot { display: none !important; }
.b2b-topbar-menu, .b2b-rail-close, .b2b-rail-backdrop { display: none; }
@media (max-width: 768px) { .b2b-launcher { left: 8px; } }
@media (prefers-reduced-motion: reduce) { .b2b-rail, .b2b-rail-label { transition: none; } }

/* Üst çubuk: kullanıcı (ad + rol + avatar) düğmesi Tercihler'in solunda; ikisi de paneli açar. */
.b2b-user-btn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 2px 4px 2px 10px; margin-left: 4px; border: 0; border-radius: 999px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.b2b-user-btn:hover { background: var(--surface-muted); }
.b2b-user-btn:focus-visible { outline: 2px solid var(--b2b-primary); outline-offset: 1px; }
.b2b-user-btn .b2b-user-meta { margin: 0; }

/* Kişisel tema rengi <body data-accent> (boş: yönetici rengi): yöneticinin rengini yalnız bu kullanıcı için ezer; :root'ta türetilen değişkenler yeniden hesaplanır.
   Koyu temada aynı renklerin açık tonları (koyu yüzeyde okunur), birincil düğme metni koyu. */
body.b2b-shell[data-accent]:not([data-accent=""]) { --b2b-primary-text: #ffffff; --primary-soft: color-mix(in srgb, var(--b2b-primary) 12%, transparent); --primary-hover: color-mix(in srgb, var(--b2b-primary) 85%, #000); }
body.b2b-shell[data-accent="red"] { --b2b-primary: #d13438; }
body.b2b-shell[data-accent="orange"] { --b2b-primary: #ca5010; }
body.b2b-shell[data-accent="green"] { --b2b-primary: #107c10; }
body.b2b-shell[data-accent="teal"] { --b2b-primary: #038387; }
body.b2b-shell[data-accent="blue"] { --b2b-primary: #0078d4; }
body.b2b-shell[data-accent="purple"] { --b2b-primary: #8764b8; }
body.b2b-shell[data-accent="pink"] { --b2b-primary: #e3008c; }
body.b2b-shell[data-theme-pref="dark"][data-accent]:not([data-accent=""]) { --b2b-primary-text: #1b1a19; --primary-soft: color-mix(in srgb, var(--b2b-primary) 22%, transparent); --primary-hover: color-mix(in srgb, var(--b2b-primary) 85%, #fff); }
body.b2b-shell[data-theme-pref="dark"][data-accent="red"] { --b2b-primary: #f1707b; }
body.b2b-shell[data-theme-pref="dark"][data-accent="orange"] { --b2b-primary: #f7894a; }
body.b2b-shell[data-theme-pref="dark"][data-accent="green"] { --b2b-primary: #6ccb5f; }
body.b2b-shell[data-theme-pref="dark"][data-accent="teal"] { --b2b-primary: #4cbfc2; }
body.b2b-shell[data-theme-pref="dark"][data-accent="blue"] { --b2b-primary: #479ef5; }
body.b2b-shell[data-theme-pref="dark"][data-accent="purple"] { --b2b-primary: #b196dd; }
body.b2b-shell[data-theme-pref="dark"][data-accent="pink"] { --b2b-primary: #f272c6; }
@media (prefers-color-scheme: dark) {
  body.b2b-shell[data-theme-pref="system"][data-accent]:not([data-accent=""]) { --b2b-primary-text: #1b1a19; --primary-soft: color-mix(in srgb, var(--b2b-primary) 22%, transparent); --primary-hover: color-mix(in srgb, var(--b2b-primary) 85%, #fff); }
  body.b2b-shell[data-theme-pref="system"][data-accent="red"] { --b2b-primary: #f1707b; }
  body.b2b-shell[data-theme-pref="system"][data-accent="orange"] { --b2b-primary: #f7894a; }
  body.b2b-shell[data-theme-pref="system"][data-accent="green"] { --b2b-primary: #6ccb5f; }
  body.b2b-shell[data-theme-pref="system"][data-accent="teal"] { --b2b-primary: #4cbfc2; }
  body.b2b-shell[data-theme-pref="system"][data-accent="blue"] { --b2b-primary: #479ef5; }
  body.b2b-shell[data-theme-pref="system"][data-accent="purple"] { --b2b-primary: #b196dd; }
  body.b2b-shell[data-theme-pref="system"][data-accent="pink"] { --b2b-primary: #f272c6; }
}

/* Tercihler: renk daireleri, anahtar, kısayol listesi, Çıkış */
.b2b-accent-list { display: flex; flex-wrap: wrap; gap: 10px; }
.b2b-accent-swatch[data-prefs-accent="red"] { --sw: #d13438; }
.b2b-accent-swatch[data-prefs-accent="orange"] { --sw: #ca5010; }
.b2b-accent-swatch[data-prefs-accent="green"] { --sw: #107c10; }
.b2b-accent-swatch[data-prefs-accent="teal"] { --sw: #038387; }
.b2b-accent-swatch[data-prefs-accent="blue"] { --sw: #0078d4; }
.b2b-accent-swatch[data-prefs-accent="purple"] { --sw: #8764b8; }
.b2b-accent-swatch[data-prefs-accent="pink"] { --sw: #e3008c; }
.b2b-accent-swatch { width: 32px; height: 32px; display: inline-grid; place-items: center; padding: 0; border: 2px solid var(--b2b-surface); border-radius: 50%; background: var(--sw); color: #fff; cursor: pointer;
  box-shadow: 0 0 0 1px var(--b2b-border); transition: box-shadow .12s, transform .12s; }
.b2b-accent-swatch i { font-size: 15px; visibility: hidden; }
.b2b-accent-swatch:hover { transform: scale(1.08); }
.b2b-accent-swatch:focus-visible { outline: 2px solid var(--b2b-text); outline-offset: 3px; }
.b2b-accent-swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--sw); }
.b2b-accent-swatch[aria-pressed="true"] i { visibility: visible; }
.b2b-prefs-linkbtn { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; background: transparent; color: var(--b2b-primary); font: inherit; font-size: 12.5px; cursor: pointer; }
.b2b-prefs-linkbtn:hover { text-decoration: underline; }
.b2b-prefs-linkbtn:focus-visible { outline: 2px solid var(--b2b-primary); outline-offset: 2px; border-radius: 4px; }
.b2b-prefs-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.b2b-prefs-switch input { appearance: none; flex: none; position: relative; width: 36px; height: 20px; margin: 0; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface-muted); cursor: pointer; transition: background .12s; }
.b2b-prefs-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--b2b-muted); transition: transform .12s; }
.b2b-prefs-switch input:checked { background: var(--b2b-primary); border-color: var(--b2b-primary); }
.b2b-prefs-switch input:checked::after { transform: translateX(16px); background: var(--b2b-primary-text); }
.b2b-prefs-switch input:focus-visible { outline: 2px solid var(--b2b-primary); outline-offset: 2px; }
.b2b-sc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.b2b-sc-row { display: flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border: 1px solid var(--b2b-border); border-radius: 8px; background: var(--surface-subtle); font-size: 13px; }
.b2b-sc-row > i { color: var(--b2b-primary); }
.b2b-sc-row-label { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.b2b-sc-row .b2b-btn-icon { width: 28px; height: 28px; font-size: 13px; }
.b2b-sc-row:first-child [data-shortcut-up], .b2b-sc-row:last-child [data-shortcut-down] { visibility: hidden; }
.b2b-sc-add { display: flex; gap: 6px; align-items: center; }
.b2b-sc-add .b2b-select { flex: 1 1 auto; min-width: 0; }
.b2b-prefs [hidden] { display: none !important; }
.b2b-prefs-logout { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; border: 1px solid color-mix(in srgb, var(--bad) 40%, var(--b2b-border)); border-radius: 8px;
  background: var(--b2b-surface); color: var(--bad); font: inherit; font-weight: 600; cursor: pointer; }
.b2b-prefs-logout::before { margin-right: 2px; }
.b2b-prefs-logout:hover { background: var(--bad-bg); }
.b2b-prefs-logout:focus-visible { outline: 2px solid var(--bad); outline-offset: 2px; }

/* Kısayollar widget'ı: büyük dokunulabilir karolar; sağ üstte kaldır. */
.b2b-sc { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.b2b-sc [hidden] { display: none !important; }
.b2b-sc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 124px), 1fr)); gap: 10px; flex: 1 1 auto; overflow: auto; align-content: start; }
.b2b-sc-tile { position: relative; }
.b2b-sc-link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; height: 100%; padding: 14px 12px; border: 1px solid var(--b2b-border); border-radius: 10px;
  background: var(--surface-subtle); color: var(--b2b-text) !important; font-size: 13px; font-weight: 600; text-align: center; overflow-wrap: anywhere; transition: border-color .12s, background .12s; }
.b2b-sc-link i { font-size: 26px; color: var(--b2b-primary); }
.b2b-sc-link:hover { border-color: var(--b2b-primary); background: var(--primary-soft); text-decoration: none; }
.b2b-sc-link:focus-visible { outline: 2px solid var(--b2b-primary); outline-offset: 2px; }
.b2b-sc-remove { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--b2b-muted); font-size: 11px; cursor: pointer; }
.b2b-sc-remove:hover { background: var(--bad-bg); color: var(--bad); }
.b2b-sc-remove:focus-visible { outline: 2px solid var(--b2b-primary); outline-offset: 1px; }
.b2b-sc-foot { display: flex; justify-content: flex-end; }
@media print { .b2b-sc-remove, .b2b-sc-foot { display: none !important; } }

/* ---- UI kabuk 3: menü araması (rayın üstü) ve kişisel pano düzeni ---- */
.b2b-rail [hidden] { display: none !important; }
.b2b-rail-search { position: relative; display: flex; align-items: center; padding: 0 8px 6px; }
.b2b-rail-search-icon { position: absolute; left: 18px; top: 50%; transform: translateY(calc(-50% - 3px)); font-size: 13px; color: var(--b2b-muted); pointer-events: none; }
.b2b-rail-search-input { width: 100%; min-width: 0; height: 32px; padding: 4px 8px 4px 30px; border: 1px solid var(--b2b-border); border-radius: 6px; background: var(--b2b-surface); color: var(--b2b-text); font: inherit; font-size: 13px; }
.b2b-rail-search-input:focus-visible { outline: none; border-color: var(--b2b-primary); box-shadow: 0 0 0 2px var(--primary-soft); }
.b2b-rail-search-btn { display: none; width: 48px; height: 36px; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--b2b-muted); font-size: 16px; cursor: pointer; }
.b2b-rail-search-btn:hover { background: var(--surface-muted); color: var(--b2b-text); }
.b2b-rail-search-btn:focus-visible { outline: 2px solid var(--b2b-primary); outline-offset: -2px; }
.b2b-rail-noresult { margin: 4px 16px; font-size: 12.5px; color: var(--b2b-muted); }
.b2b-rail-mark { background: color-mix(in srgb, var(--b2b-primary) 22%, transparent); color: inherit; border-radius: 2px; padding: 0; }
/* Süzerken grup başlıkları hep görünür (başlıklar kapalı olsa da hangi gruptan geldiği anlaşılsın); geçici genişlemede gölge. */
.b2b-rail[data-filtering] .b2b-rail-group .b2b-rail-head { display: block; }
/* (geçici açılım kuralları dosyanın sonunda: "Dar kipte geçici açılım") */
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-search :is(.b2b-rail-search-input, .b2b-rail-search-icon) { display: none; }
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-search-btn { display: grid; }
body.b2b-shell[data-menu-mode="narrow"] .b2b-rail .b2b-rail-search { padding: 0 8px 4px; }
@media (max-width: 1024px) {
  body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-search :is(.b2b-rail-search-input, .b2b-rail-search-icon) { display: none; }
  body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-search-btn { display: grid; }
  body.b2b-shell[data-menu-mode="auto"] .b2b-rail .b2b-rail-search { padding: 0 8px 4px; }
}
.pano-scope { grid-auto-columns: auto; }
.pano-scope .b2b-seg-btn { text-decoration: none; color: var(--b2b-text); white-space: nowrap; }
.pano-scope .b2b-seg-btn[aria-current="true"] { background: var(--b2b-surface); border-color: var(--b2b-primary); color: var(--b2b-primary); box-shadow: var(--shadow-sm); }
.pano-personal { display: inline-flex; align-items: center; gap: 4px; }

/* ---- Sepet etkileşimi: ekleme animasyonu ve otomatik miktar kaydı (cart.js) ---- */
body.b2b-js [data-cart-update-btn] { display: none; } /* betik yoksa Güncelle düğmesi görünür (normal POST) */
.b2b-cart-fly { position: fixed; z-index: 120; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; pointer-events: none; background: var(--b2b-surface); box-shadow: var(--shadow-flyout); will-change: transform, opacity; }
.b2b-cart-fly img { width: 100%; height: 100%; object-fit: cover; display: block; }
.b2b-cart-fly.is-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--b2b-primary); margin: 13px; }
.b2b-cart-badge { overflow: visible; }
.b2b-cart-pop { animation: b2b-cart-pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes b2b-cart-pop { 0% { transform: scale(1); } 40% { transform: scale(1.32); } 70% { transform: scale(.94); } 100% { transform: scale(1); } }
.b2b-cart-spark { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; pointer-events: none;
  background: var(--b2b-accent, #f7b500); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  animation: b2b-cart-spark .7s ease-out forwards; }
.b2b-cart-spark:nth-child(odd) { background: var(--b2b-primary); }
@keyframes b2b-cart-spark {
  0% { transform: rotate(var(--a, 0deg)) translateY(0) scale(.4); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: rotate(var(--a, 0deg)) translateY(calc(-1 * var(--d, 22px))) scale(1); opacity: 0; }
}
#cart-root tr.is-saving > td { opacity: .55; transition: opacity .15s; }
#cart-root tr.is-saving .b2b-qty::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 6px; vertical-align: middle; border: 2px solid var(--b2b-border); border-top-color: var(--b2b-primary); border-radius: 50%; animation: b2b-cart-spin .7s linear infinite; }
@keyframes b2b-cart-spin { to { transform: rotate(360deg); } }
.b2b-cart-row-error { margin-top: 6px; padding: 4px 8px; border-radius: 6px; background: var(--bad-bg); color: var(--bad); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .b2b-cart-pop, .b2b-cart-spark, #cart-root tr.is-saving .b2b-qty::after { animation: none; } .b2b-cart-spark, .b2b-cart-fly { display: none; } }

/* ---- UI kabuk 3 tur 1: dar kipte geçici açılım (menü araması) — yalnız sunum, saf kaplama ----
   Ray akıştaki 64 px'lik yerini korur (negatif sağ boşluk), 232 px'e açılıp içeriğin üstüne biner; menü kipi tercihi değişmez, içerik
   kaymaz. Dar kip kurallarının geniş karşılıkları [data-peek] ile (aynı özgüllük, dosyada sonra → kazanır). */
body.b2b-shell .b2b-rail[data-peek] { width: 232px; min-width: 232px; margin-right: -168px; z-index: 36; box-shadow: var(--shadow-flyout); }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-head { display: block; }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-group { padding: 2px 8px; }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-group:not(.b2b-rail-top + .b2b-rail-group) { border-top: 0; margin: 0; padding: 2px 8px; }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-toggle { justify-content: flex-start; padding: 0 12px; }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-toggle-text { display: inline; }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-link { justify-content: flex-start; gap: 12px; height: auto; min-height: 36px; padding: 6px 12px; }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-all { width: calc(100% - 16px); }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-label { position: static; left: auto; top: auto; z-index: auto; padding: 0; border-radius: 0; background: none; color: inherit;
  font-size: inherit; font-weight: inherit; white-space: normal; box-shadow: none; pointer-events: auto; opacity: 1 !important; transform: none; transition: none; }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-dot { position: static; margin-left: auto; }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-search { padding: 0 8px 6px; }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-search .b2b-rail-search-input { display: block; }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-search .b2b-rail-search-icon { display: inline-block; }
body.b2b-shell .b2b-rail[data-peek] .b2b-rail-search-btn { display: none; }

/* ---------- Widget görünürlük yetkisi: kurumsal kapsam rozeti ve galeri "göz" düğmesi ---------- */
.ob-w-policy { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--warn-bg); color: var(--warn); white-space: nowrap; }
.ob-w-bare > .ob-w-policy { position: absolute; top: 6px; right: 8px; z-index: 2; margin: 0; }
.ob-w.is-policy-limited { outline: 2px dashed color-mix(in srgb, var(--warn) 55%, transparent); outline-offset: -2px; }
.pano-gcard.is-policy-hidden { opacity: .78; }
.pano-gcard-policy-note { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--warn); }
.pano-gcard-policy { margin-right: auto; }
.pano-gcard-policy[aria-pressed="true"] { color: var(--warn); }

/* ---------- Hava durumu widget'ı ---------- */
.wx { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.wx-now { display: flex; align-items: center; gap: 14px; }
.wx-icon { font-size: 52px; line-height: 1; color: var(--b2b-primary); }
.wx-icon.wx-clear, .wx-icon.wx-partly { color: #e0a100; }
.wx-icon.wx-rain, .wx-icon.wx-drizzle { color: #2f7bd6; }
.wx-icon.wx-storm { color: #6b4fbb; }
.wx-temp { font-size: 34px; font-weight: 700; line-height: 1; }
.wx-cond { font-weight: 600; }
.wx-city { color: var(--b2b-muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 4px; }
.wx-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; font-size: 12.5px; }
.wx-meta > div { display: flex; gap: 6px; }
.wx-meta dt { color: var(--b2b-muted); font-weight: 500; }
.wx-meta dd { margin: 0; font-weight: 600; }
.wx-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.wx-days li { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; background: var(--surface-subtle, color-mix(in srgb, var(--b2b-border) 30%, transparent)); font-size: 12px; }
.wx-days .bi { font-size: 18px; }
.wx-day { font-weight: 600; text-transform: capitalize; }
.wx-min { color: var(--b2b-muted); }
.wx-src, .fx-src { margin-top: auto; font-size: 11px; color: var(--b2b-muted); }
.wx-empty, .fx-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 100%; color: var(--b2b-muted); text-align: center; }
.wx-empty .bi, .fx-empty .bi { font-size: 28px; }

/* ---------- Döviz kurları widget'ı ---------- */
.fx { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.fx-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr)); gap: 8px; }
.fx-card { padding: 8px 10px; border: 1px solid var(--b2b-border); border-radius: 10px; background: var(--b2b-surface); display: flex; flex-direction: column; gap: 4px; }
.fx-card.is-highlight { border-color: var(--b2b-primary); box-shadow: inset 3px 0 0 var(--b2b-primary); }
.fx-head { display: flex; align-items: center; gap: 6px; }
.fx-code { font-weight: 700; font-size: 15px; }
.fx-unit { font-size: 11px; color: var(--b2b-muted); }
.fx-badge { margin-left: auto; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--info-bg); color: var(--info); }
.fx-name { font-size: 11px; color: var(--b2b-muted); }
.fx-vals { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0; font-size: 12px; }
.fx-vals dt { color: var(--b2b-muted); font-weight: 500; }
.fx-vals dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-change { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.fx-change.is-up { color: var(--ok); } .fx-change.is-down { color: var(--bad); } .fx-change.is-flat { color: var(--b2b-muted); }

/* Ana sayfa ERP widget'ları (2026-11-24; eski B2b.aspx): irtibat, sıralama kupaları, değerlendirme yıldızları, B2C şampiyonu şeridi,
   kampanya kartları, YouTube. Boş widget (data-empty-widget) düzenleme modu dışında çerçevesiz görünür. */
.b2b-dash-heading { margin: 0 0 8px; font-weight: 650; font-size: 13.5px; text-align: center; }
.b2b-dash-heading .bi { color: var(--b2b-primary); }
.ob-w:not([data-presets]):has([data-empty-widget]) { background: transparent; border-color: transparent; box-shadow: none; }
.ob-w:not([data-presets]):has([data-empty-widget])::before { display: none; }
.b2b-erp-contact-list { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.b2b-erp-contact { display: grid; gap: 2px; padding-bottom: 8px; border-bottom: 1px solid var(--b2b-border); }
.b2b-erp-contact:last-child { border-bottom: 0; }
.b2b-erp-contact dt { font-size: 11.5px; color: var(--b2b-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; }
.b2b-erp-contact dd { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13px; overflow-wrap: anywhere; }
.b2b-erp-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.b2b-erp-badge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.b2b-erp-badge.is-ok { background: var(--ok-bg); color: var(--ok); } .b2b-erp-badge.is-no { background: var(--bad-bg); color: var(--bad); }
.b2b-erp-cups { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.b2b-erp-cup { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: var(--b2b-surface-2, rgba(0,0,0,.03)); text-align: center; font-size: 12px; }
.b2b-erp-cup .bi { font-size: 22px; } .b2b-erp-cup strong { font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.b2b-erp-cup.is-country .bi { color: #e64a19; } .b2b-erp-cup.is-region .bi { color: #7b1fa2; } .b2b-erp-cup.is-city .bi { color: #388e3c; }
.b2b-erp-criteria { margin: 0 0 8px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.b2b-erp-score { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.b2b-erp-stars { font-size: 18px; letter-spacing: 1px; } .b2b-erp-extra { font-weight: 700; } .b2b-erp-score-num { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--b2b-muted); }
.b2b-champion-img { display: block; width: 100%; height: auto; border-radius: 8px; margin-bottom: 6px; }
.b2b-champion-strip { margin: 0; text-align: center; font-weight: 700; font-size: 20px; animation: b2b-champion-blink 1s steps(1, end) infinite; }
.b2b-champion-strip .bi { margin-right: 6px; }
@keyframes b2b-champion-blink { 0% { color: #e30613; } 50% { color: var(--b2b-text); } }
@media (prefers-reduced-motion: reduce) { .b2b-champion-strip { animation: none; color: #c00510; } }
.b2b-campaign-cards { display: flex; flex-direction: column; gap: 10px; }
.b2b-campaign-card { padding: 10px 12px; border-radius: 10px; background: var(--info-bg); color: var(--b2b-text); border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); overflow-x: auto; }
.b2b-campaign-title { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.b2b-campaign-body img { max-width: 100%; height: auto; }
.b2b-campaign-dates { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 6px 0 0; font-size: 12.5px; }
.b2b-campaign-dates dt { font-weight: 700; } .b2b-campaign-dates dd { margin: 0; overflow-wrap: anywhere; }
.b2b-youtube { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.b2b-youtube iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

/* =====================================================================================================================================
   Duyarlı katman (2026-11-25, tam mobil uyum). Ortak eşikler — @media içinde CSS değişkeni kullanılamadığından değerler sabittir ve
   bütün CSS/JS dosyalarında yalnız bunlar kullanılır (ResponsiveLayoutTests denetler):
     --bp-sm  480 px  küçük telefon (marka metni gizli, galeri ve başlatıcı tek sütun)
     --bp-md  768 px  telefon: sol menü çekmece, pano tek sütun, formlar tek sütun, dokunma hedefi >= 44 px (mobile-order.css, mobile-flow.js,
                      mobile-order.js, shell.js aynı eşik)
     --bp-lg 1024 px  tablet: menü otomatik kipte dar, pano 6+6 sütun, iki sütunlu yönetim/ödeme düzenleri tek sütun
   ===================================================================================================================================== */
:root { --bp-sm: 480px; --bp-md: 768px; --bp-lg: 1024px; }
img, video, iframe { max-width: 100%; }
.ob-w-body { overflow-wrap: anywhere; }
.ob-w-body .b2b-table { overflow-wrap: normal; } /* tablolar sözcük ortasından kırılmaz; sarmalayıcı kayar */
.b2b-table-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; }
.b2b-search, .b2b-search input, .b2b-topbar-tools { min-width: 0; }
.ob-grid-scroll { min-width: 0; }
/* İki sütunlu düzenlerin öğeleri içerikleri (tablo, uzun metin) yüzünden ızgarayı genişletmez; içerik kendi sarmalayıcısında kayar. */
:is(.admin-two-col, .theme-page, .b2b-payment-grid, .b2b-help-center-body, .b2b-trainings-layout, .b2b-cart-bottom, .b2b-product, .login-shell) > * { min-width: 0; }

/* Tablet ve telefon (≤1024 px; ızgara akışla dizilir): içeriği olmayan widget (boş carousel, gösterilecek kampanya/şampiyon yok) yer
   kaplamaz; düzenleme kipinde (grid-stack) görünür. Masaüstünde konumlar sabit olduğundan boşluk korunur (önceki davranış). */
@media (max-width: 1024px) {
  .ob-grid:not(.grid-stack) > .ob-w:is(:not(:has(.ob-w-body *)), :has([data-empty-widget])) { display: none; }
}
/* Tablet (769–1024 px): pano widget'ları en az yarım genişlik (6+6), yükseklikleri korunur; sıra düzen sırasıdır (y, x). */
@media (min-width: 769px) and (max-width: 1024px) {
  .ob-grid > .ob-w { grid-column: auto / span clamp(6, var(--w), 12); grid-row: auto / span var(--h); }
}

@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  /* --- Üst çubuk: tek satır (menü, logo, yardım, sepet, Tercihler, kullanıcı en sağda) --- */
  .b2b-topbar { gap: 2px; padding: 0 max(4px, env(safe-area-inset-right)) 0 max(4px, env(safe-area-inset-left)); }
  .b2b-btn-icon { width: 44px; height: 44px; font-size: 18px; flex: none; }
  .b2b-topbar-menu { display: inline-flex; font-size: 24px; }
  .b2b-topbar-tools { gap: 0; }
  .b2b-topbar-tools > a.b2b-btn-icon:not(.b2b-cart-badge) { display: none; } /* yönetim kısayolları çekmecenin altındaki Yönetim grubunda */
  .b2b-brand { min-width: 0; padding: 0 4px; }
  .b2b-brand > span:last-child:not(.b2b-brand-mark) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .b2b-logo { max-width: 120px; object-fit: contain; }
  .b2b-user-btn { min-width: 44px; height: 44px; padding: 0 8px; margin-left: 0; justify-content: center; }
  .b2b-impersonation { max-width: 26vw; margin: 0 2px; padding: 3px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
  .b2b-cart-count { top: 4px; right: 4px; }

  /* --- Sol menü çekmecesi: soldan kayar, tam ekran yüksekliği; kip (geniş/dar/otomatik) ne olursa olsun etiketli geniş görünüm --- */
  .b2b-rail { position: fixed; top: 0; left: 0; bottom: 0; z-index: 96; width: min(320px, 86vw); min-width: 0; height: 100dvh; background: var(--b2b-surface);
    padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom) env(safe-area-inset-left); box-shadow: var(--shadow-flyout);
    transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
  body.is-rail-open { overflow: hidden; }
  body.is-rail-open .b2b-rail { transform: none; visibility: visible; transition: transform .2s ease; }
  .b2b-rail-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 95; background: rgba(15, 23, 42, .45); animation: ob-in .15s ease both; }
  .b2b-rail-top, .b2b-rail-bottom { background: var(--b2b-surface); }
  .b2b-rail-top { display: flex; justify-content: flex-end; padding: 4px 8px 0; }
  .b2b-rail-close { display: inline-flex; }
  .b2b-rail-toggle { display: none; }
  body.b2b-shell[data-menu-mode]:not([data-menu-headings="0"]) .b2b-rail .b2b-rail-head { display: block; }
  body.b2b-shell[data-menu-mode]:not([data-menu-headings="0"]) .b2b-rail .b2b-rail-group:not(.b2b-rail-top + .b2b-rail-group) { border-top: 0; margin: 0; padding: 2px 8px; }
  body.b2b-shell[data-menu-mode] .b2b-rail .b2b-rail-link { justify-content: flex-start; gap: 12px; height: auto; min-height: 44px; padding: 8px 12px; }
  body.b2b-shell[data-menu-mode] .b2b-rail .b2b-rail-all { width: calc(100% - 16px); }
  body.b2b-shell[data-menu-mode] .b2b-rail .b2b-rail-label { position: static; left: auto; top: auto; z-index: auto; padding: 0; border-radius: 0; background: none; color: inherit;
    font-size: inherit; font-weight: inherit; white-space: normal; box-shadow: none; pointer-events: auto; opacity: 1 !important; transform: none; transition: none; }
  body.b2b-shell[data-menu-mode] .b2b-rail .b2b-rail-dot { position: static; margin-left: auto; }
  body.b2b-shell[data-menu-mode] .b2b-rail .b2b-rail-search { padding: 4px 8px 8px; }
  body.b2b-shell[data-menu-mode] .b2b-rail .b2b-rail-search .b2b-rail-search-input { display: block; height: 44px; font-size: 16px; }
  body.b2b-shell[data-menu-mode] .b2b-rail .b2b-rail-search .b2b-rail-search-icon { display: inline-block; }
  body.b2b-shell[data-menu-mode] .b2b-rail .b2b-rail-search-btn { display: none; }
  .b2b-launcher { position: fixed; top: calc(var(--topbar-h) + 6px); left: 8px; right: 8px; z-index: 97; width: auto; max-height: calc(100dvh - var(--topbar-h) - 16px); overflow: auto; }
  .b2b-launcher-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; }

  /* --- İçerik, sayfa başlığı, pano --- */
  :root { --main-pad: 12px; }
  .b2b-main { padding: var(--main-pad) max(var(--main-pad), env(safe-area-inset-right)) calc(16px + env(safe-area-inset-bottom)) max(var(--main-pad), env(safe-area-inset-left)); }
  .ob-head { align-items: flex-start; }
  .ob-head-title { flex: 1 1 100%; }
  .ob-head-title h1 { overflow-wrap: anywhere; }
  .ob-head-tools { flex: 1 1 100%; }
  .ob-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* Giriş animasyonu telefonda yalnız saydamlık: transform'lu ata, widget içindeki position:fixed alt çubukları (Ürünler sipariş çubuğu,
     Sepetim ödeme çubuğu, ürün detayı ekleme çubuğu) animasyon bitene kadar widget'a hapsediyordu. */
  .ob-w { animation-name: ob-fade; }
  .ob-w-title { white-space: normal; overflow-wrap: anywhere; }
  /* Çok widget'lı sayfada uzun akış widget'ı (Sürüm Geçmişi, Yardım Merkezi) diğerlerini ekrandan itmesin: en çok 80dvh, içinde kayar.
     Sayfanın tek widget'ı ve tablolu/kartlı listeler (sepet, siparişler, ürünler) sayfayla birlikte kayar. */
  .ob-grid:not(.grid-stack) > .ob-w:not(:only-child):not(:has(.b2b-table-wrap, .b2b-table-scroll, [data-mobile-products])) { max-height: 80dvh; }
  .ob-kpi-value { font-size: 26px; overflow-wrap: anywhere; }
  .ob-welcome { flex-wrap: wrap; }
  .ob-welcome-right { flex-wrap: wrap; gap: 12px; }
  /* Düzenleme kipi: 12 sütunlu ızgara korunur (kayıtlı düzen bozulmaz), kendi kabında yatay kayar; araçlar büyür ve sarar. */
  body.is-editing .ob-grid-scroll { overflow-x: auto; padding: 6px 6px 10px; margin: -6px; }
  body.is-editing .ob-grid.grid-stack { min-width: 720px; }
  .ob-w-tools { flex-wrap: wrap; max-width: calc(100% - 12px); }
  .ob-w-tool { width: 44px; height: 44px; font-size: 18px; }
  .pano-pop button { min-height: 44px; }
  .pano-modal { padding: 8px; }
  .pano-dialog { max-height: calc(100dvh - 16px); }
  .pano-dialog-head, .pano-gallery-tools { padding-left: 14px; padding-right: 14px; }
  .pano-gallery-grid { padding: 12px 14px 14px; }
  .pano-gcard { min-height: 0; }
  .pano-drawer-actions { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }

  /* --- Çekmeceler ve pencereler: telefon genişliğinde tam genişlik, ekranı aşmaz --- */
  :is(.b2b-help-drawer, .b2b-prefs, .pano-drawer, .b2b-people-drawer, .b2b-contact-drawer) { left: 0; width: auto; max-width: none; padding-bottom: env(safe-area-inset-bottom); }
  :is(.b2b-training-dialog, .b2b-audit-dialog, .b2b-return-photos, .b2b-desen-ann) { width: calc(100vw - 16px); max-width: none; max-height: calc(100dvh - 16px); }
  .b2b-toast { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: none; }

  /* --- Dokunma hedefleri >= 44 px, formlar tek sütun, iOS yakınlaştırmasız (16 px) giriş alanları --- */
  :is(.ob-btn, .btn, .b2b-seg-btn, .pano-chip, .b2b-prefs-logout, .b2b-link-btn) { min-height: 44px; }
  .b2b-btn-sm { min-height: 44px; }
  select, .b2b-select { min-height: 44px; }
  /* Bütün form denetimleri (yönetim ekranları dahil) en az 44 px; kendi kabı 44 px olan arama/adımlayıcı alanları hariç (kap hedeftir). */
  .b2b-main :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=range]), select, textarea):not(:is(.b2b-grid-search, .b2b-rel-search, .pano-gallery-search, .b2b-qty, .b2b-mstep, .b2b-msearch, .admin-wp-search) *) { min-height: 44px; }
  :is(.b2b-grid-search, .b2b-rel-search, .pano-gallery-search, .admin-wp-search) { min-height: 44px; }
  :is(.b2b-grid-search, .b2b-rel-search, .pano-gallery-search, .admin-wp-search) input { align-self: stretch; }
  :is(.b2b-rel-chip, .b2b-help-cats a, .b2b-help-list a, .admin-head-back, .admin-cat-name, .b2b-trainings-leaf) { display: inline-flex; align-items: center; min-height: 44px; }
  .b2b-brand { min-height: 44px; }
  .ob-w-info { min-width: 44px; min-height: 44px; margin: -10px -8px -10px 0; font-size: 16px; }   /* dokunma alanı büyür, başlık yüksekliği değişmez */
  :is(.b2b-dash-link, .ob-kpi-link, .b2b-tracking-map, .b2b-payment-links a, .b2b-account-head a) { display: inline-flex; align-items: center; min-height: 44px; }
  .field input:not([type=checkbox]):not([type=radio]):not([type=color]), .field select, .field textarea { min-height: 44px; font-size: 16px; }
  :is(.b2b-grid-search, .b2b-rel-search, .pano-gallery-search) { height: 44px; }
  :is(.b2b-grid-search, .b2b-rel-search, .pano-gallery-search, .b2b-help-search) input, .b2b-orders-date input, select { font-size: 16px; }
  .b2b-orders-date input { height: 44px; }
  .b2b-qty-btn { width: 40px; height: 44px; }
  .b2b-qty-input { height: 44px; }
  .b2b-grid-toolbar > *, .b2b-orders-filter > * { min-width: 0; }
  .b2b-grid-search { flex: 1 1 100%; }
  .b2b-grid-count { margin-left: 0; }
  .b2b-orders-filter > .b2b-orders-date { flex: 1 1 140px; }
  :is(.b2b-address-grid, .theme-grid, .b2b-cart-risk-list, .b2b-campaign-dates) { grid-template-columns: minmax(0, 1fr); }
  .b2b-statement-totals { justify-content: flex-start; }
  .b2b-statement-totals > div { align-items: flex-start; }
  .b2b-account-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b2b-account-tile { min-height: 0; padding: 8px 10px; }
  .b2b-account-tile .ob-kpi-value { font-size: 18px; overflow-wrap: anywhere; }
  .b2b-account-pay { margin-left: 0; }
  .login-card { padding: 22px 18px 18px; }
}

@media (max-width: 480px) {
  .b2b-brand > span:last-child:not(.b2b-brand-mark) { display: none; }
  .b2b-launcher-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .b2b-rail, .b2b-rail-backdrop { transition: none; animation: none; } }
@media print { .b2b-topbar-menu, .b2b-rail-backdrop { display: none !important; } }
