/*
 * Analiz Pro portal stili.
 * Görsel dil: eski uygulamanın (ELogoFaturaMutabakat WebUI) "ERP Tasarım Sistemi" ve giriş ekranı.
 * Kurumsal tema (27 Kasım 2026): düz lacivert kenar menü, koyu kurumsal mavi, nötr gri zemin, 6px köşe,
 * gölgesiz/ince çerçeveli yüzeyler, hareketsiz (zıplamayan) etkileşim; renk yalnız durum ve eylem için kullanılır.
 * Yalnız yerel dosyalar ve sistem fontu (Segoe UI) kullanılır; dış CDN/font/JS yoktur.
 * Paralel sayfalar bu sınıflara bağlıdır: mevcut sınıf adlarını silmeyin, yalnız yenilerini ekleyin.
 */
:root {
    color-scheme: light;
    /* Eski tasarım sisteminden (erp-design-system) alınan palet */
    --navy-950: #0e1f33;
    --navy-900: #17324a;
    --navy-800: #244965;
    --blue-700: #154a8f;
    --blue-600: #1b5eb3;
    --blue-500: #2f74c9;
    --blue-100: #ebf2fb;
    --slate-950: #10213a;
    --slate-700: #40546d;
    --slate-600: #5b6e86;
    --slate-500: #7e8da1;
    --slate-300: #cbd6e2;
    --slate-200: #dfe7ef;
    --slate-100: #edf2f7;
    --slate-50: #f6f8fb;

    /* Anlamsal adlar (mevcut sayfalar bunları kullanır) */
    --bg: #f3f4f6;
    --surface: #ffffff;
    --surface-2: #f6f8fb;
    --ink: var(--slate-950);
    --ink-soft: var(--slate-600);
    --ink-faint: var(--slate-600); /* beyaz ve slate-50 üzerinde ≥ 4,5:1 (slate-500 yalnız 3,2–3,4:1 idi) */
    --line: var(--slate-200);
    --line-soft: #edf1f5;
    --accent: var(--blue-600);
    --accent-strong: var(--blue-700);
    --accent-ink: #ffffff;
    --accent-soft: var(--blue-100);
    --side: var(--navy-950);
    --side-2: #0e1f33;
    --side-ink: #b9c7d6;
    --series-1: var(--blue-600);
    --ok: #12814c;      --ok-bg: #e6f6ed;
    --info: #1559b7;    --info-bg: #eaf3ff;
    --wait: #8f5200;    --wait-bg: #fff3d9;
    --warn: #a14a00;    --warn-bg: #ffead6;
    --bad: #c2303a;     --bad-bg: #fdebed;
    --violet: #6941c6;  --violet-bg: #f0ebff;
    --muted-bg: var(--slate-100);
    --radius: 6px;
    --radius-sm: 4px;
    --shadow: 0 1px 0 rgba(14, 31, 51, 0.03);
    --shadow-lift: 0 2px 8px rgba(14, 31, 51, 0.08);
    --focus: 0 0 0 3px rgba(27, 94, 179, 0.6); /* odak halkası beyaz zeminde ≥ 3:1 (WCAG 1.4.11) */
    --topbar-h: 65px; /* yapışkan üst çubuğun yüksekliği; altına yapışan öğeler bu kadar aşağıda durur. ≤760 px'te üst çubuk yapışkan değil: 0 */
    font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    color: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { -webkit-font-smoothing: antialiased; }
h1 { font-size: 1.42rem; font-weight: 650; margin: 0 0 4px; letter-spacing: -0.01em; line-height: 1.25; }
h2 { font-size: 1.02rem; font-weight: 650; margin: 0; }
h3 { font-size: 0.94rem; font-weight: 650; margin: 0; }
p { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
.muted { color: var(--ink-soft); }
.small { font-size: 0.8rem; }
.strong { font-weight: 650; }
.link { color: var(--accent); text-decoration: none; font-weight: 600; }
.link:hover { color: var(--accent-strong); text-decoration: underline; }
.bad-text { color: var(--bad); }
.warn-text { color: var(--warn); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--blue-500); outline-offset: 2px; }

/* İkon temel sınıfı: <span class="ico i-home"></span> */
.ico { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ico.sm { width: 15px; height: 15px; }
.ico.lg { width: 22px; height: 22px; }

/* ───────── Kabuk ───────── */
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--side); border-right: 1px solid #0a1828; color: var(--side-ink); padding: 18px 12px 14px; display: flex; flex-direction: column; gap: 6px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none; padding: 2px 8px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); margin-bottom: 6px; }
.brand-logo { width: 36px; height: 36px; border-radius: 6px; background: #fff; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.brand-logo img { width: 34px; height: 34px; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; font-weight: 700; font-size: 1.05rem; }
.brand-text strong { color: #fff; font-size: 1.05rem; letter-spacing: 0.01em; }
.brand-text small { color: #8eacc7; font-size: 0.74rem; font-weight: 500; margin-top: 2px; }
.brand-mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(145deg, #1473df, #22b7d7); color: #fff; font-weight: 800; font-size: 0.85rem; }
.brand-mark.lg { width: 48px; height: 48px; font-size: 1.05rem; border-radius: 12px; }

.nav { display: flex; flex-direction: column; gap: 1px; }
.nav [hidden] { display: none !important; }
.menu-search { display: flex; align-items: center; gap: 8px; padding: 6px 9px; margin-bottom: 8px; border: 1px solid #55728f; border-radius: 7px; }
.menu-search input { width: 100%; min-width: 0; padding: 3px 0; border: 0; background: transparent; color: #fff; font: inherit; }
.menu-search input::placeholder { color: #adc0d3; }
.menu-search input:focus-visible { outline: 2px solid #7fb8ff; outline-offset: 2px; }
.menu-empty { color: var(--side-ink); margin: 8px; font-size: .85rem; }
.nav-section > summary { background: rgba(127, 184, 255, .09); }
@media (min-width: 761px) and (max-width: 900px) {
    .menu-search:not(:focus-within) .ico { display: none; }
    .menu-search { padding-inline: 4px; }
    .menu-search input { font-size: .7rem; }
}
.nav-group { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 650; color: #6f86a0; margin: 16px 12px 6px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 4px; color: var(--side-ink); text-decoration: none; font-weight: 550; transition: background 0.14s, color 0.14s; }
.nav-item .ico { opacity: 0.82; }
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item.active { background: rgba(255, 255, 255, 0.09); color: #fff; font-weight: 650; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 2px 2px 0; background: #5b9be6; }
.nav-item.active .ico { opacity: 1; }
.nav-item:focus-visible { outline-color: #7fb8ff; }
.nav-item.disabled { opacity: 0.45; cursor: default; }
.nav-item.disabled:hover { background: none; color: var(--side-ink); }
/* Açılır-kapanır menü grupları (<details>/<summary>, JS'siz). Aktif grup sunucuda open gelir. */
.nav-section { border-radius: 10px; }
.nav-section + .nav-section, .nav-item + .nav-section, .nav-section + .nav-item { margin-top: 2px; }
.nav-section > summary { list-style: none; display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 4px; color: var(--side-ink); font-weight: 650; cursor: pointer; user-select: none; transition: background 0.14s, color 0.14s; }
.nav-section > summary::-webkit-details-marker { display: none; }
.nav-section > summary .ico { opacity: 0.82; }
.nav-section > summary::after { content: ""; width: 7px; height: 7px; margin-left: auto; margin-right: 2px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); opacity: 0.55; transition: transform 0.16s; }
.nav-section[open] > summary::after { transform: translateY(-2px) rotate(45deg); }
.nav-section > summary:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.nav-section > summary:focus-visible { outline: 2px solid #7fb8ff; outline-offset: 1px; }
.nav-section.current > summary { color: #fff; }
.nav-section.current > summary .ico { opacity: 1; color: #7fb8ff; }
.nav-sub { display: flex; flex-direction: column; gap: 1px; margin: 2px 0 6px 20px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
.nav-sub .nav-item { padding: 7px 10px; font-size: 0.93rem; gap: 10px; }
.nav-sub .nav-item .ico { width: 16px; height: 16px; }
.nav-sep { height: 1px; background: rgba(255, 255, 255, 0.08); margin: 10px 8px; }
/* Telefon menü düğmesi: yalnız dar ekranda görünür (CSS checkbox, JS yok). */
.nav-toggle-input, .nav-toggle { display: none; }
.i-menu { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h16 M4 12h16 M4 17h16'/%3E%3C/svg%3E"); }
.sidebar-foot { margin-top: auto; padding: 14px 8px 2px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar-foot > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.sidebar-foot strong { color: #fff; font-size: 0.86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot small { color: #8eacc7; font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-foot .avatar { background: rgba(255, 255, 255, 0.1); color: #fff; }

.menu-palette { display: inline-flex; align-items: center; gap: 3px; flex-shrink: 0; }
.menu-palette[hidden] { display: none; }
.menu-swatch { display: grid; place-items: center; width: 27px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 7px; background: transparent; cursor: pointer; }
.menu-swatch::before { content: ""; width: 14px; height: 14px; border: 1px solid #8193a5; border-radius: 50%; background: var(--swatch); }
.menu-swatch[data-theme-choice="navy"] { --swatch: #101f31; }
.menu-swatch[data-theme-choice="light"] { --swatch: #f5f8fc; }
.menu-swatch[data-theme-choice="teal"] { --swatch: #103835; }
.menu-swatch[aria-pressed="true"] { border-color: #2d68a6; background: #e9f1fa; }
.menu-swatch:focus-visible { outline: 2px solid #2d68a6; outline-offset: 2px; }
.sidebar[data-theme="teal"] { --side: #103835; --side-ink: #def2ee; border-color: #1e5250; }
.sidebar[data-theme="light"] { --side: #f5f8fc; --side-ink: #30485e; border-color: #d3deea; }
.sidebar[data-theme="light"] :is(.brand, .sidebar-foot, .nav-sub) { border-color: #d3deea; }
.sidebar[data-theme="light"] :is(.brand-text strong, .sidebar-foot strong, .menu-search input, .nav-toggle) { color: #172f49; }
.sidebar[data-theme="light"] :is(.brand-text small, .sidebar-foot small, .nav-toggle-current) { color: #49647d; }
.sidebar[data-theme="light"] .menu-search input::placeholder { color: #49647d; }
.sidebar[data-theme="light"] :is(.nav-item:hover, .nav-item.active, .nav-section > summary:hover, .nav-section.current > summary, .sidebar-foot .avatar) { color: #163c66; background: #e1ebf8; }
.sidebar[data-theme="light"] .nav-section.current > summary .ico { color: #24598f; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 10px 28px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; position: sticky; top: 0; z-index: 10; }
.context { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.context-icon { width: 32px; height: 32px; border-radius: 6px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; }
.context-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.context-label { color: var(--ink-faint); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }
.context-text strong { font-size: 0.98rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--slate-100); color: var(--slate-700); border: 1px solid var(--line); border-radius: 4px; padding: 4px 10px; font-size: 0.76rem; font-weight: 700; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.user { display: flex; align-items: center; gap: 12px; }
.user form { margin: 0; }
.user-name { display: flex; flex-direction: column; line-height: 1.2; text-align: right; }
.user-name strong { font-size: 0.88rem; }
.user-name small { color: var(--ink-faint); font-size: 0.74rem; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--navy-800); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.82rem; flex-shrink: 0; letter-spacing: 0.02em; }
.content { padding: 24px 28px 48px; max-width: 1600px; width: 100%; }

/* Sayfa başlığı */
.page-head { margin-bottom: 18px; }
.page-head.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head p.muted { max-width: 760px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--slate-500); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ───────── Düğmeler ───────── */
.btn { min-height: 36px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 0 15px; font: inherit; font-weight: 650; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap; transition: background 0.15s, border-color 0.15s, color 0.15s; background: var(--surface); border-color: var(--slate-300); color: var(--slate-700); }
.btn:hover:not(:disabled) { background: var(--slate-50); border-color: #a9b8c8; }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--slate-300); color: var(--slate-700); }
.btn-ghost:hover:not(:disabled) { border-color: #9db0c3; color: var(--blue-700); }
.btn-danger { background: var(--bad-bg); border-color: #f4c7cb; color: var(--bad); }
.btn-danger:hover:not(:disabled) { background: #fbdcdf; border-color: #eba9b0; }
.btn-small { min-height: 32px; padding: 0 11px; font-size: 0.82rem; }
.btn-icon { min-height: 0; background: none; border: none; color: var(--ink-faint); padding: 4px 8px; cursor: pointer; font-size: 0.95rem; border-radius: 6px; }
.btn-icon:hover { color: var(--bad); background: var(--bad-bg); }
.wide { width: 100%; justify-content: center; min-height: 44px; margin-top: 10px; }

/* ───────── Formlar ───────── */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow); }
.filters .btn-primary { margin-left: auto; min-width: 110px; }
.more-filters { flex-basis: 100%; }
.more-filters summary { cursor: pointer; width: fit-content; color: var(--blue-700); font-size: 0.8rem; font-weight: 700; }
.more-filters-body { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; margin-top: 12px; }
.other-currencies { margin-bottom: 18px; }
/* Tablo hücresindeki uzun açıklama: satırı genişletmek yerine hücre içinde alt satıra geçer. */
.cell-note { white-space: normal; min-width: 220px; max-width: 340px; margin-top: 4px; line-height: 1.35; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 0.76rem; color: var(--ink-soft); font-weight: 700; }
.field input, .field select, .field textarea, .search-row input, .inline-filter select, input.qty, input.reason, input.amount {
    font: inherit; font-size: 0.92rem; font-weight: 400; color: var(--ink); min-height: 36px; padding: 6px 10px; border: 1px solid var(--slate-300); border-radius: var(--radius-sm); background: #fff; min-width: 130px; transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field select, .inline-filter select { cursor: pointer; }
.field.small input { min-width: 0; width: 96px; }
.field input:hover, .field select:hover, .field textarea:hover, .search-row input:hover { border-color: #9db0c3; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue-500); box-shadow: var(--focus); }
.check { display: flex; align-items: center; gap: 8px; min-height: 38px; font-weight: 600; color: var(--slate-700); cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--blue-600); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.span-2 { grid-column: span 2; }
.search-row { display: flex; gap: 8px; margin-bottom: 14px; }
.search-row input { flex: 1; padding-left: 36px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237e8da1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M10.5 4a6.5 6.5 0 1 0 0.01 0z M15.5 15.5 20 20'/%3E%3C/svg%3E") 11px center / 17px no-repeat; }
input.qty { width: 104px; min-width: 0; text-align: right; font-variant-numeric: tabular-nums; }
input.reason { min-width: 0; width: 170px; min-height: 32px; padding: 4px 9px; font-size: 0.82rem; }
input.amount { min-width: 0; width: 140px; min-height: 32px; padding: 4px 9px; font-size: 0.82rem; text-align: right; font-variant-numeric: tabular-nums; }

/* ───────── Uyarılar ───────── */
.alert { display: flex; align-items: flex-start; gap: 10px; border-radius: var(--radius-sm); padding: 11px 14px; margin: 0 0 16px; border: 1px solid transparent; border-left-width: 4px; font-weight: 550; }
.alert::before { content: "i"; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; color: #fff; background: currentColor; }
.alert-error { background: var(--bad-bg); color: var(--bad); border-color: #f4c7cb; border-left-color: var(--bad); }
.alert-error::before { content: "!"; }
.alert-warn { background: var(--wait-bg); color: var(--wait); border-color: #f3dca8; border-left-color: #d98e04; }
.alert-warn::before { content: "!"; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: #b9e3cc; border-left-color: var(--ok); }
.alert-ok::before { content: "✓"; }
.alert-info { background: var(--info-bg); color: var(--info); border-color: #c3dafa; border-left-color: var(--info); }
.alert-info::before { content: "i"; }
.filter-note { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px; padding: 9px 14px; border-radius: var(--radius-sm); background: var(--blue-100); color: var(--slate-700); border: 1px solid #cfe2fb; }

/* ───────── Durum çipleri ───────── */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 4px; font-size: 0.74rem; font-weight: 650; white-space: nowrap; line-height: 1.5; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.wait { background: var(--wait-bg); color: var(--wait); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.chip.violet { background: var(--violet-bg); color: var(--violet); }
.chip.muted { background: var(--muted-bg); color: var(--ink-soft); }

/* ───────── KPI kartları (eski "kpi" kartı: ikon kutusu + büyük değer) ───────── */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { --tone: var(--wait); --tone-bg: var(--wait-bg); position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 15px 16px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "label icon" "value value" "hint hint"; column-gap: 12px; row-gap: 2px; align-content: start; box-shadow: var(--shadow); overflow: hidden; height: 100%; transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--tone); }
.kpi::after { content: ""; grid-area: icon; align-self: start; width: 34px; height: 34px; border-radius: 6px; background: var(--tone-bg); }
.kpi-icon { grid-area: icon; align-self: start; justify-self: center; position: relative; z-index: 1; width: 20px; height: 20px; margin-top: 7px; background: var(--tone); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.kpi.ok { --tone: var(--ok); --tone-bg: var(--ok-bg); }
.kpi.info { --tone: var(--info); --tone-bg: var(--info-bg); }
.kpi.bad { --tone: var(--bad); --tone-bg: var(--bad-bg); }
.kpi.violet { --tone: var(--violet); --tone-bg: var(--violet-bg); }
.kpi.warn { --tone: var(--warn); --tone-bg: var(--warn-bg); }
.kpi-label { grid-area: label; font-size: 0.78rem; color: var(--slate-700); font-weight: 700; }
.kpi-value { grid-area: value; font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; line-height: 1.2; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-label { align-self: center; }
.kpi-hint { grid-area: hint; font-size: 0.76rem; color: var(--ink-faint); margin-top: 4px; }
.kpi-link { text-decoration: none; color: inherit; border-radius: var(--radius); }
.kpi-link:hover .kpi { box-shadow: var(--shadow-lift); border-color: #b8c7db; }
.kpi-link:focus-visible { outline-offset: 3px; }

/* ───────── Panel / düzen ───────── */
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 16px; align-items: start; }
.split.wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); min-width: 0; }
.panel.detail { position: sticky; top: 80px; background: #fbfcfe; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.panel-head strong { font-size: 0.98rem; }
.panel > .panel-head:first-child { margin: -16px -18px 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.panel > .panel-head:not(:first-child) { margin: 20px -18px 14px; padding: 11px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--slate-50); }
.step-no { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--blue-100); color: var(--blue-700); font-size: 0.8rem; font-weight: 800; margin-right: 8px; }
.inline-filter select { min-width: 0; min-height: 32px; padding: 4px 30px 4px 10px; font-size: 0.83rem; }
.note { background: var(--slate-50); border: 1px solid var(--line-soft); border-left: 3px solid var(--slate-300); border-radius: 8px; padding: 9px 12px; margin-bottom: 14px; color: var(--slate-700); }
.spaced { margin-top: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ───────── Tablolar ───────── */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; max-height: calc(100vh - 300px); box-shadow: var(--shadow); }
.table-wrap.flat { box-shadow: none; max-height: 560px; }
.panel > .table-wrap.flat { border-radius: 8px; }
.grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.87rem; }
.grid th { position: sticky; top: 0; z-index: 1; background: #f1f3f6; text-align: left; font-weight: 650; color: var(--slate-600); padding: 9px 12px; border-bottom: 1px solid var(--slate-300); white-space: nowrap; font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; }
.grid td { padding: 8px 12px; border-bottom: 1px solid var(--slate-200); white-space: nowrap; color: #263c55; }
.grid tbody tr:nth-child(even) { background: #fafcfe; }
.grid tbody tr:hover { background: #f0f5fb; }
.grid tbody tr:last-child td { border-bottom: 0; }
.grid tr.selected, .grid tbody tr.selected:nth-child(even) { background: #dcebff; }
.grid tr.selected td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.grid tr.level-0 td { font-weight: 700; background: #f2f6fa; color: var(--slate-950); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid td.num { font-feature-settings: "tnum"; }
.neg { color: var(--bad); }
td.overdue { color: var(--warn); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); flex-wrap: wrap; }
.pager-info { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pager-nav { display: flex; gap: 6px; }

/* ───────── Özet şeridi (finans) ───────── */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.summary > div { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px 13px 18px; min-width: 0; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); overflow: hidden; }
.summary > div::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--blue-500); }
.summary > div:last-child::before { background: var(--navy-800); }
.summary span { font-size: 0.74rem; color: var(--ink-soft); font-weight: 700; }
.summary strong { font-size: 1.18rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.summary em { font-style: normal; color: var(--ink-soft); font-size: 0.84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* İpucu / başlangıç durumu (rapor henüz çalıştırılmadı) */
.hint-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px dashed var(--slate-300); border-radius: var(--radius); padding: 18px 20px; color: var(--slate-700); }
.hint-card .hint-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; flex-shrink: 0; }
.hint-card p { max-width: 760px; }
.loading { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); padding: 16px 4px; }
.loading::before { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--slate-200); border-top-color: var(--blue-600); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── Talep satır çubukları ───────── */
.legend { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--ink-soft); margin-bottom: 12px; flex-wrap: wrap; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.sw:first-child { margin-left: 0; }
.sw.stock, .seg.stock { background: #9db8d9; }
.sw.alloc, .seg.alloc { background: var(--series-1); }
.sw.buy, .seg.buy { background: var(--violet); }
.lines { display: flex; flex-direction: column; gap: 12px; }
.line { padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: #fff; }
.line-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.bar { display: flex; gap: 2px; height: 9px; background: var(--muted-bg); border-radius: 5px; overflow: hidden; }
.seg { display: block; height: 100%; }
.seg:last-child { border-radius: 0 4px 4px 0; }

/* ───────── Fiş / satın alma kartları ───────── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.slip { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: box-shadow 0.18s, border-color 0.18s; }
.slip:hover { box-shadow: var(--shadow-lift); border-color: #c8d5e3; }
.slip > * { margin-left: 16px; margin-right: 16px; }
.slip.breached { border-color: #f1b8b1; box-shadow: 0 0 0 1px #f8d3ce, var(--shadow); }
.slip header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin: 0; padding: 13px 16px; background: var(--slate-50); border-bottom: 1px solid var(--line); }
.slip.breached header { background: #fff6f6; }
.slip header > div { display: flex; flex-direction: column; gap: 1px; }
.slip header strong { font-size: 0.98rem; }
.slip footer { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: auto 0 0; padding: 11px 16px; border-top: 1px solid var(--line); background: #fbfcfe; min-height: 54px; }
.route { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.route > span:not(.arrow) { padding: 4px 10px; background: var(--slate-100); border-radius: 7px; font-size: 0.86rem; }
.route .arrow { color: var(--blue-600); font-weight: 800; }
.slip-meta { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: 0.82rem; color: var(--ink-soft); }
.slip-meta strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.slip > .small.bad-text { padding: 7px 10px; background: var(--bad-bg); border-radius: 7px; }
.mini-lines { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: flex; flex-direction: column; gap: 0; font-size: 0.85rem; border: 1px solid var(--line-soft); border-radius: 8px; overflow: hidden; }
.mini-lines li { display: flex; gap: 6px; align-items: baseline; padding: 6px 10px; }
.mini-lines li + li { border-top: 1px solid var(--line-soft); }
.mini-lines .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mini-lines .num { margin-left: auto; white-space: nowrap; font-weight: 650; }

/* ───────── Akış adımları (stepper) ───────── */
.steps { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; display: flex; gap: 0; counter-reset: step; }
.steps li { flex: 1; position: relative; font-size: 0.68rem; color: var(--ink-faint); padding-top: 24px; text-align: center; line-height: 1.2; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 0.62rem; font-weight: 800; background: #fff; border: 2px solid var(--slate-300); color: var(--slate-500); }
.steps li::after { content: ""; position: absolute; top: 8px; left: -50%; right: 50%; height: 2px; background: var(--slate-200); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink-soft); }
.steps li.done::before { content: "✓"; background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.steps li.done::after, .steps li.current::after, .steps li.failed::after { background: var(--blue-500); }
.steps li.current { color: var(--accent); font-weight: 750; }
.steps li.current::before { border-color: var(--blue-600); color: var(--blue-700); box-shadow: 0 0 0 3px rgba(23, 105, 210, 0.18); }
.steps li.failed { color: var(--bad); font-weight: 750; }
.steps li.failed::before { content: "!"; background: var(--bad); border-color: var(--bad); color: #fff; }

/* ───────── Taslak ───────── */
.draft { display: flex; flex-direction: column; gap: 8px; }
.draft-line { display: flex; align-items: center; gap: 8px; padding: 9px 10px 9px 12px; border: 1px solid var(--line); border-left: 3px solid var(--blue-500); border-radius: 8px; background: #fff; }
.draft-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.draft-text .muted { font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft-line input.qty { min-height: 32px; padding: 4px 9px; width: 92px; }

/* ───────── Boş durum ───────── */
.empty { text-align: center; padding: 34px 16px; color: var(--ink-soft); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty strong { color: var(--slate-950); font-size: 0.98rem; margin-top: 6px; }
.empty p { max-width: 420px; }
.empty-mark { width: 52px; height: 52px; border-radius: 50%; background: var(--blue-100); display: grid; place-items: center; color: var(--blue-700); font-size: 1.2rem; }

/* ───────── Ana sayfa ───────── */
.hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 22px 18px 25px; margin-bottom: 20px; border-radius: var(--radius); color: var(--ink);
    background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--navy-800); }
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: var(--ink); font-size: 1.42rem; }
.hero .eyebrow { color: var(--slate-500); }
.hero p { color: var(--ink-soft); }
.hero-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 4px; background: var(--slate-50); border: 1px solid var(--line); color: var(--slate-700); font-size: 0.82rem; font-weight: 600; }
.hero-pill .ico { color: var(--blue-600); }
.dash-section { margin-bottom: 28px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-icon { width: 32px; height: 32px; border-radius: 9px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; }
.chart-grid .panel { display: flex; flex-direction: column; }
.chart-grid .panel > .link { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.quick-link { display: flex; align-items: center; gap: 11px; padding: 11px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--slate-950); font-weight: 650; box-shadow: var(--shadow); transition: border-color 0.15s, background 0.15s, transform 0.15s; }
.quick-link .q-icon { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; flex-shrink: 0; }
.quick-link small { display: block; color: var(--ink-faint); font-weight: 500; font-size: 0.74rem; }
.quick-link:hover { border-color: var(--blue-500); background: #f7fbff; }
.skeleton { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; color: var(--ink-faint); }
.skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(234, 243, 255, 0.8), transparent); transform: translateX(-100%); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.barlist { margin: 0 0 10px; }
.barlist figcaption { font-weight: 700; margin-bottom: 14px; color: var(--slate-950); }
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 96px 1fr 76px; align-items: center; gap: 10px; font-size: 0.83rem; }
.bar-label { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.bar-track { height: 20px; display: block; background: var(--slate-50); border-radius: 5px; }
.bar-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-600), var(--blue-500)); border-radius: 4px; min-width: 2px; }
.bar-row:hover .bar-fill { filter: brightness(1.1); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 650; }

/* ───────── Giriş ve firma seçimi (eski giriş ekranı dili) ───────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.centered { min-height: 100vh; display: grid; place-items: center; padding: 32px; overflow-x: hidden; background: #e9edf2; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 30px; box-shadow: 0 8px 28px rgba(14, 31, 51, 0.12); }

.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr); width: min(980px, 100%); min-height: 560px; overflow: hidden; border: 1px solid #d3dae3; border-radius: 8px; background: #fff; box-shadow: 0 12px 36px rgba(14, 31, 51, 0.14); }
.auth-intro { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; overflow: hidden; padding: 44px 46px; color: #fff; background: var(--navy-950); }
.auth-intro::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--blue-600); }
.auth-intro::before { content: none; }
.auth-logo { display: flex; align-items: center; justify-content: center; width: 240px; max-width: 82%; height: 112px; padding: 12px 18px; border-radius: 6px; background: #fff; }
.auth-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.auth-copy > span { color: #8fb3dc; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.17em; }
.auth-copy h2 { max-width: 460px; margin: 12px 0 14px; font-size: 1.9rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.015em; color: #fff; }
.auth-copy p { max-width: 460px; color: #c3d0de; font-size: 1rem; line-height: 1.65; }
.auth-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.auth-features > div { padding: 12px; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 6px; background: rgba(255, 255, 255, 0.04); }
.auth-features strong, .auth-features span { display: block; }
.auth-features strong { margin-bottom: 4px; color: #fff; font-size: 0.86rem; }
.auth-features span { color: #a9bbcf; font-size: 0.74rem; line-height: 1.35; }

.login-card { display: flex; flex-direction: column; justify-content: center; padding: 44px; background: #fff; }
.card.login-card { width: min(420px, 100%); }
.auth-shell .login-card { border: 0; border-radius: 0; box-shadow: none; width: auto; }
.login-card form { display: flex; flex-direction: column; gap: 14px; }
.login-card .field { font-size: 0.78rem; color: #334155; font-weight: 650; }
.login-card .field input { min-height: 44px; border-radius: 4px; font-size: 0.95rem; padding: 0 14px; }
.login-head { display: flex; align-items: center; justify-content: flex-start; gap: 14px; padding-bottom: 22px; margin-bottom: 24px; border-bottom: 1px solid #e2e8f0; }
.login-head strong { display: block; color: #0f172a; font-size: 1.1rem; letter-spacing: 0.08em; }
.login-head small { display: block; color: #64748b; font-size: 0.74rem; font-weight: 700; margin-top: 2px; }
.login-badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 4px; background: var(--slate-100); color: var(--slate-700); font-size: 0.7rem; font-weight: 800; white-space: nowrap; }
.login-title { margin-bottom: 22px; }
.login-title > span { color: var(--slate-500); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.17em; }
.login-title h1 { margin: 8px 0 6px; font-size: 1.55rem; }
.login-title p { color: #64748b; font-size: 0.88rem; }
.btn-login { min-height: 44px; margin-top: 8px; justify-content: space-between; padding: 0 16px; border-radius: 4px; background: var(--blue-600); border-color: var(--blue-600); color: #fff; font-size: 0.95rem; }
.btn-login:hover:not(:disabled) { background: var(--blue-700); border-color: var(--blue-700); color: #fff; }
.btn-login:focus-visible { box-shadow: var(--focus); }
.login-foot { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 6px; background: #fff; }
.login-foot .q-icon { width: 38px; height: 38px; border-radius: 6px; background: #eff6ff; color: #2563eb; display: grid; place-items: center; flex-shrink: 0; }
.login-foot strong, .login-foot span { display: block; }
.login-foot strong { color: #334155; font-size: 0.78rem; }
.login-foot span { color: #64748b; font-size: 0.72rem; }

.select-card { width: min(580px, 100%); padding: 0; overflow: hidden; }
.select-head { display: flex; align-items: center; gap: 16px; padding: 22px 28px; background: linear-gradient(#fff, #f8fafc); border-bottom: 1px solid var(--line); }
.select-head img { width: 132px; height: 72px; object-fit: contain; }
.select-body { padding: 24px 28px 26px; }
.company-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.company-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; text-align: left; font: inherit; padding: 13px 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer; color: var(--ink); transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s; }
.company-item > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.company-icon { width: 40px; height: 40px; border-radius: 6px; background: var(--blue-100); color: var(--blue-700); display: grid; place-items: center; }
.company-go { color: var(--slate-500); }
.company-item:hover { border-color: var(--blue-500); background: #f7fbff; box-shadow: var(--shadow-lift); }
.company-item:hover .company-go { color: var(--blue-600); }
.company-item:focus-visible { outline: none; box-shadow: var(--focus); border-color: var(--blue-500); }
.company-item.current { grid-template-columns: auto 1fr auto auto; border-color: var(--blue-500); background: #f7fbff; }
.select-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* Parola değiştirme: oturum açıkken kabuk içinde ortalanmış kart; login-head içinde h1 */
.content > .card.login-card { margin: 12px auto; padding: 32px; box-shadow: var(--shadow-lift); border-radius: 8px; }
.login-head h1 { font-size: 1.35rem; margin: 0 0 2px; }
.login-head p.muted { font-size: 0.82rem; }
.login-card form > .link.small { align-self: center; }
.login-links { display: flex; justify-content: flex-end; margin-top: -6px; }
/* Giriş ekranı: eski programın giriş renkleri (lacivert-mavi panel, beyaz kart, yeşil giriş düğmesi) */
.centered:has(> .auth-shell) { background: linear-gradient(150deg, #0b1a3c 0%, #13285a 55%, #1a3570 100%); }
.auth-shell { border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 26px; box-shadow: 0 24px 60px rgba(3, 10, 30, 0.45); }
.auth-intro { background:
    radial-gradient(circle at 88% 8%, transparent 0 70px, rgba(96, 165, 250, 0.10) 71px 112px, transparent 113px),
    radial-gradient(circle at 6% 72%, rgba(96, 165, 250, 0.10) 0 90px, transparent 91px),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(165deg, #173172 0%, #1d3c84 55%, #22468f 100%); }
.auth-intro::after { content: none; }
.auth-logo { border-radius: 18px; box-shadow: 0 10px 28px rgba(3, 10, 30, 0.25); }
.auth-copy > span { color: #7cc4ff; }
.auth-copy h2 { font-size: 2.1rem; font-weight: 750; }
.auth-copy p { color: #d5e1f5; }
.auth-features > div { border-color: rgba(255, 255, 255, 0.18); border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.auth-features span { color: #c7d5ec; }
.login-card { background: #f9fbfd; }
.login-badge { border-radius: 999px; background: #e8efff; color: #1e3a8a; }
.login-title > span { color: #2563eb; }
.login-card .field input { border-radius: 10px; border-color: #cfd8e3; background: #fff; }
.login-card .field input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16); outline: none; }
.btn-login { border-radius: 10px; background: #16a34a; border-color: #16a34a; box-shadow: 0 8px 18px rgba(22, 163, 74, 0.25); }
.btn-login:hover:not(:disabled) { background: #15803d; border-color: #15803d; }
.btn-login:focus-visible { box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.3); }
.login-foot { border-radius: 12px; }
.login-foot .q-icon { border-radius: 10px; }

/* ───────── Segment sekmeleri (page-head sağında; aktif olan aria-current="page") ───────── */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--slate-100); border: 1px solid var(--line); border-radius: 11px; }
.tabs .btn { min-height: 34px; border-color: transparent; background: transparent; color: var(--slate-700); box-shadow: none; }
.tabs .btn:hover:not([aria-current="page"]) { background: #fff; color: var(--blue-700); transform: none; box-shadow: none; }
.tabs .btn[aria-current="page"], .tabs .btn.btn-primary { background: #fff; color: var(--blue-700); border-color: var(--line); box-shadow: 0 1px 3px rgba(18, 46, 76, 0.12); }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--slate-200); color: var(--slate-700); font-size: 0.72rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tabs .btn[aria-current="page"] .count, .tabs .btn.btn-primary .count { background: var(--blue-600); color: #fff; }

/* ───────── Tanım listesi (ayrıntı paneli) ───────── */
.facts { display: grid; grid-template-columns: minmax(90px, max-content) 1fr; gap: 8px 14px; margin: 0 0 14px; font-size: 0.88rem; }
.facts dt { color: var(--ink-soft); font-weight: 600; }
.facts dd { margin: 0; font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.facts dd .muted { font-weight: 400; }

/* ───────── Seçim kutulu tablolar ───────── */
.grid td:has(> input[type="checkbox"]), .grid th:has(> input[type="checkbox"]) { width: 40px; text-align: center; }
.grid input[type="checkbox"] { width: 17px; height: 17px; margin: 0; accent-color: var(--blue-600); cursor: pointer; vertical-align: middle; }
.grid input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.4; }
.grid tbody tr:has(input[type="checkbox"]:checked) { background: #dcebff; }
.grid td:last-child > .btn-small { min-height: 28px; }
.grid td > input.reason { min-height: 28px; }

/* ───────── Duyarlı yerleşim ───────── */
@media (max-width: 1100px) {
    .split, .split.wide-left { grid-template-columns: 1fr; }
    .panel.detail { position: static; }
}

@media (max-width: 900px) {
    .shell { grid-template-columns: 72px minmax(0, 1fr); }
    .sidebar { padding: 14px 10px; }
    .brand { padding: 2px 4px 14px; justify-content: center; }
    .brand-text, .nav-group, .sidebar-foot > div { display: none; }
    .nav-item { justify-content: center; padding: 10px; }
    .nav-item .nav-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .nav-section > summary { justify-content: center; padding: 10px; }
    .nav-section > summary::after { display: none; }
    .nav-section > summary .nav-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .nav-section[open] { background: rgba(255, 255, 255, 0.05); }
    .nav-section[open] > summary { opacity: 0.75; }
    .nav-sub { margin: 0 0 4px; padding: 0; border-left: 0; }
    .nav-sub .nav-item { padding: 9px; }
    .nav-sep { margin: 8px 6px; }
    .sidebar-foot { justify-content: center; padding: 12px 0 0; }
    .user-name { display: none; }
    .auth-shell { grid-template-columns: 1fr; min-height: 0; }
    .auth-intro { padding: 28px 32px; }
    .auth-copy, .auth-features { display: none; }
    .auth-logo { width: 230px; height: 110px; margin: 0 auto; }
}

@media (max-width: 760px) {
    .shell { display: flex; flex-direction: column; }
    .sidebar { width: 100%; height: auto; position: static; padding: 10px 12px; }
    .brand { justify-content: flex-start; border-bottom: 0; margin: 0; padding: 0 4px 8px; }
    .brand-text { display: flex; }
    .sidebar { flex-direction: row; flex-wrap: wrap; align-items: center; }
    .sidebar .brand { flex: 1 1 auto; min-width: 0; padding: 0 4px; }
    .nav-toggle-input { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
    .nav-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 60%; padding: 0 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.08); color: #fff; font-weight: 650; cursor: pointer; user-select: none; }
    .nav-toggle-current { color: #8eacc7; font-size: 0.78rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .nav-toggle-input:focus-visible + .nav-toggle { outline: 2px solid #7fb8ff; outline-offset: 2px; }
    .nav-toggle-input:checked + .nav-toggle { background: var(--blue-600); }
    .nav { display: none; width: 100%; flex-direction: column; gap: 1px; max-height: 72vh; overflow-y: auto; padding: 6px 0 4px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
    .nav-toggle-input:checked ~ .nav { display: flex; }
    .nav-item { justify-content: flex-start; padding: 10px 12px; }
    .nav-item .nav-text, .nav-section > summary .nav-text { position: static; width: auto; height: auto; clip: auto; overflow: visible; }
    .nav-section > summary { justify-content: flex-start; padding: 10px 12px; }
    .nav-section > summary::after { display: block; }
    .nav-section[open] { background: none; }
    .nav-section[open] > summary { opacity: 1; }
    .nav-sub { margin: 2px 0 6px 20px; padding-left: 8px; border-left: 1px solid rgba(255, 255, 255, 0.1); }
    .nav-sub .nav-item { padding: 9px 10px; }
    .sidebar-foot { display: none; }
    .topbar { padding: 10px 16px; position: static; }
    :root { --topbar-h: 0px; }
    .content { padding: 16px; }
    .form-grid { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .cards { grid-template-columns: 1fr; }
    .chart-grid { grid-template-columns: 1fr; }
    .filters .btn-primary { margin-left: 0; }
    .field input, .field select { min-width: 0; width: 100%; }
    .filters .field { flex: 1 1 140px; }
    .centered { padding: 14px; display: block; }
    .auth-shell { border-radius: 22px; }
    .login-card { padding: 28px 22px; }
    .login-badge { display: none; }
    .hero { padding: 18px; }
    .login-card .field input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* İkonlar: yerel, satır içi SVG maskeleri (dış kütüphane yok). Renk currentColor. */
.i-home { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.i-ledger { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z M4 9h16 M4 14.5h16 M10 9v11'/%3E%3C/svg%3E"); }
.i-statement { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z M14 3v4h4 M9 12h6 M9 16h6'/%3E%3C/svg%3E"); }
.i-clock { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18z M12 7v5l3.5 2'/%3E%3C/svg%3E"); }
.i-wallet { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h15a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h11v3 M16.5 13.5h1.5'/%3E%3C/svg%3E"); }
.i-bank { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9.5 12 4l9 5.5z M5.5 10v7.5 M10 10v7.5 M14 10v7.5 M18.5 10v7.5 M3 20.5h18'/%3E%3C/svg%3E"); }
.i-transfer { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h15l-4-4 M20 16H5l4 4'/%3E%3C/svg%3E"); }
.i-plus { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z M12 8v8 M8 12h8'/%3E%3C/svg%3E"); }
.i-clipboard { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 3h6v3H9z M7.5 4.5H5V21h14V4.5h-2.5 M9 13.5l2 2 4-4.5'/%3E%3C/svg%3E"); }
.i-cart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2.2l2.3 11h10.7l2-7.5H6.4 M9 19.5h.01 M17 19.5h.01'/%3E%3C/svg%3E"); }
.i-archive { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h18v4.5H3z M5 8.5V20h14V8.5 M10 12.5h4'/%3E%3C/svg%3E"); }
.i-check { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18z M8 12.5l2.8 2.8L16.5 9'/%3E%3C/svg%3E"); }
.i-upload { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 15.5V4 M7 9l5-5 5 5 M4 15v5h16v-5'/%3E%3C/svg%3E"); }
.i-key { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.5 6a4.5 4.5 0 1 0 0.01 0z M11.3 12.7 3.5 20.5 M6 18l2.5 2.5 M8.5 15.5l2 2'/%3E%3C/svg%3E"); }
.i-logout { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h5v16h-5 M9.5 8l-4 4 4 4 M5.5 12H15'/%3E%3C/svg%3E"); }
.i-info { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18a9 9 0 1 0 0-18z M12 11v5.5 M12 7.5h.01'/%3E%3C/svg%3E"); }
.i-alert { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 2.5 20h19z M12 10v4.5 M12 17.5h.01'/%3E%3C/svg%3E"); }
.i-layers { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 8l9 5 9-5z M3 12.5l9 5 9-5 M3 16.5l9 5 9-5'/%3E%3C/svg%3E"); }
.i-chart { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V4 M4 20h16 M8 16v-5 M12 16V8 M16 16v-3'/%3E%3C/svg%3E"); }
.i-box { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3.5 7.5v9L12 21l8.5-4.5v-9z M3.5 7.5 12 12l8.5-4.5 M12 12v9'/%3E%3C/svg%3E"); }
.i-search { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 4a6.5 6.5 0 1 0 0.01 0z M15.5 15.5 20 20'/%3E%3C/svg%3E"); }
.i-building { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 21V5l8-2v18 M12 8h8v13 M7.5 8h1 M7.5 12h1 M7.5 16h1 M15.5 12h1 M15.5 16h1 M3 21h18'/%3E%3C/svg%3E"); }
.i-arrow { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14 M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.i-calendar { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v15H4z M4 10.5h16 M8.5 3v5 M15.5 3v5'/%3E%3C/svg%3E"); }
.i-shield { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 4.5 6v6c0 4.5 3.2 7.8 7.5 9 4.3-1.2 7.5-4.5 7.5-9V6z M9 12l2.2 2.2L15.5 10'/%3E%3C/svg%3E"); }

/* Saha ekranı (Depom): telefon öncelikli, büyük dokunma alanları, altta sabit sepet. */
.field-desk { max-width: 760px; margin: 0 auto; padding-bottom: 24px; }
.field-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.field-head h1 { margin: 2px 0 0; }
.field-warehouses { display: flex; flex-wrap: wrap; gap: 6px; }
.field-warehouses a { text-decoration: none; padding: 6px 12px; font-size: 0.85rem; }
.field-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; margin-bottom: 14px; position: sticky; top: var(--topbar-h); z-index: 4; }
.field-tabs a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: var(--radius-sm); color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.9rem; text-align: center; }
.field-tabs a.active { background: var(--accent); color: var(--accent-ink); }
.field-tabs .count { background: var(--bad); color: #fff; border-radius: 999px; font-size: 0.72rem; min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; }
.field-search { display: flex; gap: 8px; margin-bottom: 6px; }
.field-search input { flex: 1; min-height: 46px; font: inherit; font-size: 1rem; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.field-search input:focus, .field-item-add input:focus, .field-cart-send input:focus, .field-cart-send select:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.field-search .btn { min-height: 46px; }
.field-items { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.field-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; box-shadow: var(--shadow); }
.field-item.in-cart { border-color: var(--accent); background: var(--accent-soft); }
.field-item.ready { border-left: 4px solid var(--violet); }
.field-item-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.field-item-text strong { font-size: 1rem; }
.field-item-text > span { overflow-wrap: anywhere; }
.field-item-text .chip { align-self: flex-start; margin-top: 4px; }
.field-stock { font-size: 0.82rem; color: var(--ink-soft); }
.field-stock b { color: var(--ink); font-variant-numeric: tabular-nums; }
.field-item-add { display: flex; gap: 6px; flex-shrink: 0; }
.field-item-add input { width: 86px; min-height: 44px; font: inherit; font-size: 1rem; text-align: right; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.field-item-add .btn { min-height: 44px; }
.field-confirm { min-height: 48px; padding: 0 18px; font-size: 1rem; flex-shrink: 0; }
.field-cart { position: sticky; bottom: 0; margin-top: 16px; background: var(--surface); border: 1px solid var(--accent); border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -6px 20px rgba(18, 46, 76, 0.12); padding: 12px 14px; z-index: 5; }
.field-cart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.field-cart ul { list-style: none; margin: 0 0 10px; padding: 0; max-height: 160px; overflow: auto; }
.field-cart li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; }
.field-cart-send { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; }
.field-cart-send select, .field-cart-send input { min-height: 46px; font: inherit; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.field-cart-send .btn { min-height: 46px; font-size: 1rem; }

/* Süreç yönetimi: her kayıtta tek "sıradaki adım" düğmesi. */
.process-items { margin-top: 0; }
.process-item { border-left: 4px solid var(--line); }
.process-item.request { border-left-color: var(--warn); }
.process-item.slip { border-left-color: var(--accent); }
.process-item.purchase { border-left-color: var(--violet); }
.process-item .eyebrow { margin: 0; }
.process-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
.process-actions input { width: 140px; min-height: 46px; font: inherit; font-size: 1rem; text-align: right; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.process-actions input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }

@media (max-width: 560px) {
    .field-item { flex-direction: column; align-items: stretch; }
    .field-item-add { width: 100%; }
    .field-item-add input { flex: 1; width: auto; }
    .field-confirm { width: 100%; justify-content: center; }
    .process-actions { width: 100%; }
    .process-actions input { flex: 1; width: auto; }
    .field-cart-send { grid-template-columns: 1fr; }
    .field-tabs a { flex-direction: column; gap: 2px; font-size: 0.78rem; min-height: 54px; }
}

/* Telefonda üst alan tek satır: firma adı + çıkış; menü yatay şerit. */
@media (max-width: 560px) {
    .sidebar { padding: 8px 10px; gap: 8px; }
    .brand small { display: none; }
    .brand-logo img { width: 30px; height: 30px; }
    .topbar { padding: 8px 12px; gap: 8px; flex-wrap: nowrap; }
    .context { gap: 6px; flex-wrap: nowrap; min-width: 0; }
    .context-icon, .context-label, .context .badge, .context .link { display: none; }
    .context-text strong { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; max-width: 52vw; }
    .user { gap: 6px; }
    .user .avatar { display: none; }
    .content { padding: 12px; }
}

/* ───────── Operasyon kokpiti: kanban, huni, halka grafik (satın alma ve transfer) ───────── */
.live-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--slate-700); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18); }
.board { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 18px; min-width: 0; }
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.board-head h2 { font-size: 1.08rem; }
.board-head .eyebrow { margin-bottom: 3px; }
.board-body { padding: 18px 20px; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(268px, 1fr); gap: 12px; overflow-x: auto; padding: 14px; scroll-snap-type: x proximity; }
.lane { --tone: var(--slate-500); display: flex; flex-direction: column; min-height: 240px; background: var(--slate-50); border: 1px solid var(--line); border-radius: 12px; scroll-snap-align: start; min-width: 0; }
.lane.wait { --tone: #d98e04; } .lane.info { --tone: var(--blue-500); } .lane.ok { --tone: var(--ok); } .lane.bad { --tone: var(--bad); } .lane.violet { --tone: var(--violet); } .lane.warn { --tone: var(--warn); }
.lane-head { display: flex; align-items: center; gap: 8px; padding: 11px 12px; background: #fff; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; font-weight: 700; font-size: 0.88rem; }
.lane-head::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); flex-shrink: 0; }
.lane-no { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.68rem; color: var(--blue-700); background: var(--blue-100); border-radius: 6px; padding: 2px 6px; }
.lane-head.numbered::before { display: none; }
.lane-count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--slate-100); color: var(--slate-700); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.lane-body { display: flex; flex-direction: column; gap: 10px; padding: 10px; flex: 1; }
.lane-empty { margin: auto; text-align: center; color: var(--ink-faint); font-size: 0.8rem; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 6px; }
.lane-empty::before { content: "✓"; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); font-weight: 800; }
.kcard { --tone: var(--blue-500); position: relative; display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--tone); border-radius: 10px; padding: 12px; box-shadow: 0 1px 2px rgba(18, 46, 76, 0.05); transition: box-shadow 0.15s, transform 0.15s; min-width: 0; }
.kcard:hover { box-shadow: var(--shadow-lift); }
.kcard.late { --tone: var(--bad); }
.kcard.selected { box-shadow: 0 0 0 2px var(--blue-500), var(--shadow-lift); }
.kcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.code { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.74rem; font-weight: 700; color: var(--blue-700); text-decoration: none; letter-spacing: 0.01em; }
a.code:hover { text-decoration: underline; }
.kcard-title { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kcard-title strong { font-size: 0.92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard-title span { font-size: 0.78rem; color: var(--ink-soft); }
.kcard-box { background: var(--slate-50); border-radius: 8px; padding: 7px 9px; font-size: 0.8rem; display: flex; flex-direction: column; gap: 1px; }
.kcard-box small { color: var(--ink-faint); font-size: 0.7rem; }
.kcard-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 0.78rem; color: var(--ink-soft); }
.kcard-meta strong { font-variant-numeric: tabular-nums; color: var(--ink); }
.kcard.late .kcard-meta strong, .kcard-meta strong.late { color: var(--bad); }
.kcard-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kcard-actions .push { margin-left: auto; }
.kcard-actions input.reason, .kcard-actions input.amount { flex: 1 1 120px; width: auto; }
.kcard .mini-lines { font-size: 0.78rem; }
.kcard .mini-lines li { padding: 4px 8px; }
.kcard .reject-note { font-size: 0.76rem; color: var(--bad); background: var(--bad-bg); border-radius: 6px; padding: 5px 8px; }

.analytics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 18px; }
.analytics > .board { margin-bottom: 0; }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 12px; font-size: 0.82rem; color: var(--ink-soft); }
.funnel-track { height: 26px; }
.funnel-bar { height: 100%; min-width: 34px; border-radius: 6px; display: flex; align-items: center; justify-content: flex-end; padding: 0 9px; color: #fff; font-weight: 800; font-size: 0.78rem; font-variant-numeric: tabular-nums; background: linear-gradient(90deg, #7fa9ef, var(--blue-600)); box-shadow: 0 2px 6px rgba(23, 105, 210, 0.2); }
.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; min-height: 180px; }
.donut { position: relative; width: 156px; height: 156px; border-radius: 50%; flex-shrink: 0; }
.donut::after { content: ""; position: absolute; inset: 26px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line-soft); }
.donut-center { position: absolute; inset: 0; z-index: 1; display: grid; place-content: center; text-align: center; }
.donut-center strong { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.donut-center span { font-size: 0.72rem; color: var(--ink-faint); margin-top: 3px; }
.legend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; min-width: 200px; }
.legend-list li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 9px; }
.legend-list i { width: 10px; height: 10px; border-radius: 3px; }
.legend-list b { font-variant-numeric: tabular-nums; }
.grid tr.late-row { background: #fff6f6; }
.grid tr.late-row:nth-child(even) { background: #fdf0f0; }
.board .table-wrap { border: 0; border-radius: 0 0 14px 14px; box-shadow: none; }

@media (max-width: 1100px) {
    .analytics { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .kanban { grid-auto-columns: 86%; padding: 10px; }
    .funnel-row { grid-template-columns: 110px minmax(0, 1fr); }
    .board-head, .board-body { padding: 14px; }
}
.kcard > header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.kcard > header > div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kcard > header strong { font-size: 0.9rem; }
.kcard > header { flex-wrap: wrap; }
.kcard > header strong { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.8rem; color: var(--blue-700); white-space: nowrap; }
.kcard > header .chip, .kcard-top .chip { flex-shrink: 0; }
.kcard .mini-lines li { gap: 6px; }
.kcard .mini-lines strong { white-space: nowrap; }
.kanban { align-items: start; }
.lane { max-height: 720px; }
.lane-body { overflow-y: auto; }
.panel-head > div > .eyebrow { display: flex; margin-bottom: 2px; }

/* Kanban sürükle-bırak (wwwroot/js/kanban.js) */
.kcard[draggable="true"] { cursor: grab; }
.kcard[draggable="true"]:active { cursor: grabbing; }
.kcard.dragging { opacity: 0.45; transform: rotate(1.5deg); box-shadow: var(--shadow-lift); }
.kcard.moving { opacity: 0.6; pointer-events: none; }
.kcard.moving::after { content: "İşleniyor…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.7); border-radius: 10px; font-weight: 700; color: var(--blue-700); }
.lane { transition: background 0.15s, opacity 0.15s, box-shadow 0.15s; }
.lane.drop-ok { background: #f0f7ff; box-shadow: inset 0 0 0 2px var(--blue-500); }
.lane.drop-ok .lane-head { background: var(--blue-100); }
.lane.drop-hover { background: #dcebff; box-shadow: inset 0 0 0 3px var(--blue-600); }
.lane.drop-no { opacity: 0.5; }
.drag-hint { display: inline-flex; align-items: center; gap: 6px; }
.drag-hint::before { content: "⇄"; color: var(--blue-600); font-weight: 800; }
.kanban-toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; max-width: 360px; padding: 12px 15px; border-radius: 10px; background: var(--navy-950); color: #fff; box-shadow: var(--shadow-lift); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.kanban-toast.show { opacity: 1; transform: none; }

/* Fatura arşivi: iş durumu (onay + aktarım) sütunları ve onay geçmişi. */
.workflow-cell { min-width: 140px; }
.workflow-cell .small { margin-top: 3px; white-space: normal; max-width: 220px; }
.workflow-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; }
.workflow-summary > div { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.timeline-block { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.timeline li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.timeline li > div { flex-basis: 100%; }
.timeline-who { font-weight: 650; font-size: 0.85rem; }

/* Ek ikonlar (KPI ve fatura ekranları) */
.i-receipt { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12v18l-3-2-3 2-3-2-3 2z M9 8h6 M9 12h6 M9 16h3'/%3E%3C/svg%3E"); }
.i-percent { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 5 5 19 M7.5 5a2.5 2.5 0 1 0 0.01 0z M16.5 14a2.5 2.5 0 1 0 0.01 0z'/%3E%3C/svg%3E"); }
.i-coins { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5c3.9 0 7 1.3 7 3s-3.1 3-7 3-7-1.3-7-3 3.1-3 7-3z M2 8v4c0 1.7 3.1 3 7 3 M2 12v4c0 1.7 3.1 3 7 3 M15 13c3.9 0 7 1.3 7 3s-3.1 3-7 3-7-1.3-7-3 3.1-3 7-3z M8 16v3c0 1.7 3.1 3 7 3s7-1.3 7-3v-3'/%3E%3C/svg%3E"); }
.i-sum { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 5H6l6 7-6 7h12'/%3E%3C/svg%3E"); }
.i-truck { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v10H3z M14 10h4l3 3v3h-7 M7 18.5a1.5 1.5 0 1 0 0.01 0z M17 18.5a1.5 1.5 0 1 0 0.01 0z'/%3E%3C/svg%3E"); }

/* Görsel inceleme düzeltmeleri: sayısal başlıklar sağa, KPI ızgarası boşluk bırakmaz, panel içinde kutu-içinde-kutu yok */
.grid th.num { text-align: right; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.panel > .table-wrap.flat, .panel > form > .table-wrap.flat { border-radius: 8px; }
.panel > .pager, .panel .pager { margin: 12px 0 0; padding: 10px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; }

/* ───────── Ayrıntı çekmecesi (sağdan açılan ekran) ─────────
   Transfer: ?talep=… ile sunucu açar. Satın alma: #sat-… ile :target açar (JS gerekmez). */
.drawer-layer { position: fixed; inset: 0; z-index: 60; }
.drawer-target { display: none; }
.drawer-target:target { display: block; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(16, 38, 59, 0.45); animation: drawer-fade 0.18s ease-out; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(600px, 100%); display: flex; flex-direction: column; background: var(--surface); box-shadow: -24px 0 60px rgba(16, 38, 59, 0.28); animation: drawer-in 0.22s ease-out; }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(#fff, var(--slate-50)); }
.drawer-head .eyebrow { margin-bottom: 4px; }
.drawer-head-side { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.code-title { font-family: Consolas, "Cascadia Mono", monospace; font-size: 1.15rem; color: var(--blue-700); margin: 0 0 3px; letter-spacing: 0.01em; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 22px 26px; }
.drawer-section { margin: 22px 0 10px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.drawer-body > .drawer-section:first-child { margin-top: 0; }
.drawer-steps { margin: 4px 0 18px; }
.drawer-actions { display: flex; flex-direction: column; gap: 10px; }
.action-tile { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; padding: 13px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.15s, box-shadow 0.15s; }
.action-tile > .ico { width: 22px; height: 22px; color: var(--blue-700); flex-shrink: 0; }
.action-tile > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.action-tile strong { font-size: 0.95rem; }
.action-tile small { color: var(--ink-soft); font-size: 0.8rem; }
.action-tile:hover:not(:disabled) { border-color: var(--blue-500); background: #f7fbff; box-shadow: var(--shadow-lift); }
.action-tile:focus-visible { outline: none; box-shadow: var(--focus); border-color: var(--blue-500); }
.action-tile.primary { border-color: var(--blue-600); background: var(--blue-100); }
.action-tile.primary > .ico { color: var(--blue-600); }
.action-tile:disabled { opacity: 0.45; cursor: not-allowed; }
.drawer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.code-lg { font-size: 0.82rem; }
.kcard:target { box-shadow: 0 0 0 3px var(--blue-500), var(--shadow-lift); animation: target-pulse 1.2s ease-out 2; }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drawer-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes target-pulse { 50% { box-shadow: 0 0 0 6px rgba(45, 126, 234, 0.25), var(--shadow-lift); } }
@media (max-width: 560px) {
    .drawer-head, .drawer-body { padding-left: 14px; padding-right: 14px; }
}
.kcard, #kayitlar { scroll-margin-top: 90px; }

/* Fatura arşivi: belge türü düğmeleri, liste altı (satır sayısı + sayfalama), ayrıntı eylemleri. */
.tabs.doc-types { padding: 3px; }
.tabs.doc-types .btn { min-height: 30px; }
.list-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.list-foot .page-size { display: flex; align-items: flex-end; gap: 8px; }
.list-foot .page-size .field.small select { min-width: 0; width: 80px; }
.list-foot .pager, .panel .list-foot .pager { margin: 0; padding: 0; border: 0; flex: 1 1 auto; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Fatura arşivi: ayrıntı panelindeki fatura görüntüsü (sandbox iframe). */
.invoice-view { margin: 8px 0 4px; display: grid; gap: 6px; }
.invoice-view iframe { width: 100%; height: 70vh; min-height: 480px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* Satın alma ayrıntısı: teklif karşılaştırma, tedarikçi seçimi (25 Kasım 2026) */
.ok-text { color: var(--ok, #12814c); }
.grid.compare th.num, .grid.compare td.num { min-width: 9rem; vertical-align: top; }
.grid.compare .total-row td { border-top: 2px solid var(--line, #d0d5dd); }
.supplier-pick { display: grid; gap: .35rem; margin: .5rem 0 .75rem; max-height: 16rem; overflow: auto; }
.supplier-pick .pick { display: flex; gap: .5rem; align-items: center; padding: .35rem .5rem; border: 1px solid var(--line, #d0d5dd); border-radius: .5rem; cursor: pointer; }
.supplier-pick .pick:has(input:checked) { border-color: var(--brand, #1559b7); background: color-mix(in srgb, var(--brand, #1559b7) 8%, transparent); }

/* Teklif girişi: numaralı adımlar (tedarikçi → fiyatlar → kaydet), tablo içi alanlar (25 Kasım 2026) */
.quote-step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line, #e3e8ef); }
.quote-step:first-of-type { border-top: 0; }
.quote-step .step-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8rem; font-weight: 800; color: #fff; background: var(--blue-600, #1559b7); }
.quote-step .step-body { display: grid; gap: 8px; min-width: 0; }
.quote-step .step-body > strong { line-height: 26px; }
.quote-step .search-row { margin-bottom: 0; }
.quote-step .step-body > .btn { justify-self: start; }
.grid input.cell { font: inherit; font-size: 0.82rem; min-height: 32px; padding: 4px 9px; border: 1px solid var(--slate-300); border-radius: var(--radius-sm); background: #fff; width: 100%; min-width: 120px; }
.form-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
@media (max-width: 900px) { .form-grid.compact { grid-template-columns: 1fr 1fr; } }

/* Teklif isteme: istenen tedarikçiler listesi ve tedarikçi seçme penceresi (25 Kasım 2026) */
.rfq { margin: 4px 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line, #e3e8ef); }
.rfq-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.rfq-head .drawer-section { margin-top: 0; }
.rfq-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.rfq-table td { vertical-align: top; }
.inline-edit { display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.pick-row { display: flex; gap: 8px; align-items: center; }
.pick-row .pick { flex: 1; }
dialog.picker { width: min(880px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line, #d0d5dd); border-radius: 12px; box-shadow: 0 20px 60px rgba(16, 38, 59, .28); display: none; flex-direction: column; overflow: hidden; }
dialog.picker[open] { display: flex; }
dialog.picker::backdrop { background: rgba(16, 38, 59, .45); }
.picker-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line, #e3e8ef); }
dialog.picker > .search-row { padding: 14px 18px 0; margin: 0; }
dialog.picker > [data-picker-status] { padding: 6px 18px 0; margin: 0; }
.picker-results { flex: 1; overflow: auto; padding: 10px 18px; display: grid; gap: 8px; align-content: start; min-height: 120px; }
.picker-card { border: 1px solid var(--line, #d0d5dd); border-radius: 8px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.picker-card:has(input:checked) { border-color: var(--blue-600, #1559b7); background: color-mix(in srgb, var(--blue-600, #1559b7) 6%, transparent); }
.picker-card-head { display: flex; gap: 8px; align-items: center; cursor: pointer; grid-column: 1; }
.picker-card-head input { width: 17px; height: 17px; accent-color: var(--blue-600, #1559b7); }
.picker-card-body { grid-column: 1; font-size: .82rem; display: grid; gap: 2px; padding-left: 25px; }
.picker-card-actions { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.picker-warn { color: var(--wait, #9a6700); font-size: .78rem; }
.picker-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 12px 18px; border-top: 1px solid var(--line, #e3e8ef); background: var(--surface-2, #f7f9fc); }
.picker-foot .field { margin: 0; }
.picker-foot [data-picker-request] { margin-left: auto; }
.picker-selected { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.picker-selected:empty { display: none; }
.chip-x { border: 0; background: transparent; cursor: pointer; margin-left: 4px; font-size: .7rem; color: inherit; padding: 0; }

/* Teklif talep formu (yazdırılabilir) */
.print-page { max-width: 900px; margin: 24px auto; padding: 0 16px; background: #fff; color: #111; }
.print-actions { display: flex; gap: 8px; margin-bottom: 16px; }
.rfq-form { font-size: .9rem; }
.rfq-form-head { display: flex; justify-content: space-between; gap: 24px; border-bottom: 2px solid #111; padding-bottom: 12px; margin-bottom: 16px; }
.rfq-form-head h1 { margin: 4px 0 0; font-size: 1.5rem; }
.rfq-company { font-weight: 800; font-size: 1.05rem; }
.rfq-meta th, .rfq-terms th { text-align: left; padding: 3px 10px 3px 0; font-weight: 600; color: #444; white-space: nowrap; }
.rfq-meta td { padding: 3px 0; }
.rfq-to { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.rfq-lines, .rfq-terms { width: 100%; border-collapse: collapse; margin: 12px 0; }
.rfq-lines th, .rfq-lines td { border: 1px solid #999; padding: 6px 8px; vertical-align: top; }
.rfq-lines th { background: #f1f3f6; text-align: left; }
.rfq-lines .num { text-align: right; }
.rfq-lines td.blank { min-width: 80px; height: 30px; }
.rfq-terms td.blank { border-bottom: 1px solid #999; min-width: 160px; }
.rfq-sign { display: flex; justify-content: space-between; gap: 24px; margin-top: 28px; }
.sign-box { width: 240px; height: 80px; border: 1px dashed #999; margin-top: 6px; }
@media print {
    .print-actions { display: none; }
    .print-page { margin: 0; max-width: none; padding: 0; }
    body { background: #fff; }
}

/* depo-eksikler */
/* Sevkiyat takip no (C12), kısmi mal kabul ve stok sayımı (C10): yalnız mevcut belirteçler (--ok/--warn/--bad) ve bileşenler kullanılır. */
.ship-tracking { display: flex; flex-wrap: wrap; gap: 6px; }
.ship-tracking input { flex: 1 1 140px; min-width: 0; }
.ship-tracking-info { display: flex; align-items: center; gap: 6px; }
td.count-diff { font-weight: 700; }
td.count-diff.ok { color: var(--ok); }
td.count-diff.warn { color: var(--warn); }
td.count-diff.bad { color: var(--bad); }
.field-tabs.four { grid-template-columns: repeat(4, 1fr); }

/* bildirim-yorum */
.nb-bell { position: relative; }
.nb-bell > summary { list-style: none; }
.nb-bell > summary::-webkit-details-marker { display: none; }
.nb-bell-button { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 1px solid var(--line, #e2e8f0); border-radius: var(--radius-sm, 4px); background: var(--surface, #fff); color: var(--slate-700, #334155); cursor: pointer; }
.nb-bell-button:hover, .nb-bell[open] .nb-bell-button { border-color: var(--accent, #1b5eb3); color: var(--accent, #1b5eb3); }
.nb-bell-icon { display: inline-block; width: 19px; height: 19px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0c0 6 2.5 7.5 2.5 7.5h-17S6 15 6 9z M10 20a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9a6 6 0 0 1 12 0c0 6 2.5 7.5 2.5 7.5h-17S6 15 6 9z M10 20a2 2 0 0 0 4 0'/%3E%3C/svg%3E") center / contain no-repeat; }
.nb-bell-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #c62828; color: #fff; font-size: 0.68rem; font-weight: 700; line-height: 18px; text-align: center; }
.nb-panel { position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--surface, #fff); border: 1px solid var(--line, #e2e8f0); border-radius: var(--radius, 6px); box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16); z-index: 30; }
.nb-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line, #e2e8f0); }
.nb-panel-head form { margin: 0; }
.nb-link-button { border: 0; background: none; color: var(--accent, #1b5eb3); font: inherit; font-size: 0.8rem; cursor: pointer; padding: 0; }
.nb-empty { margin: 0; padding: 16px 14px; color: var(--ink-faint, #64748b); font-size: 0.86rem; }
.nb-list { list-style: none; margin: 0; padding: 0; }
.nb-item { display: flex; align-items: flex-start; gap: 4px; border-bottom: 1px solid var(--line-soft, #edf1f5); }
.nb-item:last-child { border-bottom: 0; }
.nb-unread { background: #f1f6fd; }
.nb-item form { margin: 0; }
.nb-open { flex: 1; min-width: 0; }
.nb-open-button { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 14px; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.nb-open-button:hover { background: var(--surface-2, #f6f8fb); }
.nb-title { font-size: 0.86rem; font-weight: 650; overflow-wrap: anywhere; }
.nb-read .nb-title { font-weight: 500; }
.nb-body { font-size: 0.8rem; color: var(--slate-700, #334155); overflow-wrap: anywhere; }
.nb-time { font-size: 0.74rem; color: var(--ink-faint, #64748b); }
.nb-mark-button { margin: 8px 8px 0 0; width: 28px; height: 28px; border: 1px solid var(--line, #e2e8f0); border-radius: var(--radius-sm, 4px); background: var(--surface, #fff); color: var(--accent, #1b5eb3); cursor: pointer; }
.nb-discussion { margin-top: 18px; }
.nb-files { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nb-files li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.nb-comments { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.nb-comment { border-left: 3px solid var(--line, #e2e8f0); padding: 2px 0 2px 12px; }
.nb-comment-body { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.nb-comment-form, .nb-upload-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 10px; }
.nb-comment-form textarea { flex: 1 1 320px; min-height: 64px; font: inherit; padding: 8px 10px; border: 1px solid var(--slate-300, #cbd5e1); border-radius: var(--radius-sm, 4px); }
.nb-upload-form label { flex-basis: 100%; color: var(--ink-faint, #64748b); }
@media (max-width: 640px) { .nb-panel { position: fixed; left: 16px; right: 16px; width: auto; top: 64px; } }

/* raporlar */
.report-table { margin-top: 14px; }
.risk-cards .kpis { margin-bottom: 6px; }
.risk-cards .alert { grid-column: 1 / -1; margin: 0; }
.dash-section[id] { scroll-margin-top: 16px; }

/* onay-akisi */
/* Onay akışı: tasarımcı (/ayarlar/onay-akislari), salt okunur diyagram ve bekleyen onaylarım. Düz yüzey, 6px köşe, lacivert/kurumsal mavi.
   Onay düğümü mavi, koşul eşkenar dörtgen, bildirim gri, başla/bitir yuvarlak. Çalışma durumu: tamamlanan yeşil, bekleyen sarı, reddedilen kırmızı. */
.flow-tabs { margin-bottom: 14px; }
.flow-point { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; }
.flow-point > div { display: flex; flex-direction: column; gap: 2px; }
.flow-issues ul { margin: 6px 0 0; padding-left: 18px; }
.flow-actions { margin-top: 14px; }

.flow-designer { display: grid; grid-template-columns: 190px minmax(0, 1fr) 290px; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-height: 560px; overflow: hidden; }
.fd-palette { border-right: 1px solid var(--line); padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--slate-50); }
.fd-palette .muted { margin: 0 0 4px; }
.fd-tool { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: grab; touch-action: none; user-select: none; text-align: left; }
.fd-tool:hover { border-color: var(--blue-500); color: var(--blue-700); }
.fd-tool:focus-visible { outline: none; box-shadow: var(--focus); }
.fd-tool:active { cursor: grabbing; }
.fd-swatch { width: 22px; height: 16px; flex: none; border: 1.5px solid var(--slate-500); background: var(--slate-100); border-radius: 3px; }
.fd-swatch.start, .fd-swatch.end { border-radius: 8px; border-color: var(--navy-800); background: var(--navy-900); }
.fd-swatch.end { background: var(--ok); border-color: var(--ok); }
.fd-swatch.approval { border-color: var(--blue-600); background: var(--blue-100); }
.fd-swatch.condition { width: 16px; height: 16px; margin: 0 3px; transform: rotate(45deg); border-color: var(--navy-800); background: #fff; border-radius: 2px; }
.fd-swatch.notify { border-color: var(--slate-500); background: var(--slate-100); }
.fd-help { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.fd-help p { margin: 0 0 6px; }

.fd-stage { display: flex; flex-direction: column; min-width: 0; }
.fd-toolbar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.fd-zoom { min-width: 42px; text-align: center; }
.fd-sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.fd-status { margin-left: auto; color: var(--ink-soft); }
.fd-canvas { position: relative; flex: 1; min-height: 500px; background: #fbfcfd; outline: none; overflow: hidden; }
.fd-canvas:focus-visible { box-shadow: inset 0 0 0 2px rgba(27, 94, 179, 0.35); }
.fd-canvas.is-drop { background: var(--blue-100); }
.fd-fallback { padding: 16px; }
.fd-board { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; user-select: none; cursor: default; }
.fd-bg { cursor: grab; }
.fd-dot { fill: var(--slate-300); }
.fd-ghost { position: fixed; z-index: 1000; pointer-events: none; transform: translate(-50%, -50%); padding: 8px 14px; border-radius: var(--radius); border: 1.5px solid var(--blue-600); background: var(--blue-100); color: var(--blue-700); font-weight: 650; font-size: 0.85rem; }
.fd-ghost-condition { border-color: var(--navy-800); background: #fff; color: var(--navy-900); }
.fd-ghost-notify { border-color: var(--slate-500); background: var(--slate-100); color: var(--slate-700); }
.fd-ghost-start, .fd-ghost-end { border-radius: 22px; border-color: var(--navy-800); background: var(--navy-900); color: #fff; }

.fd-props { border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); overflow-y: auto; max-height: 620px; }
.fd-props .field { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.fd-props .field > span { color: var(--ink-soft); font-weight: 600; }
.fd-props input, .fd-props select { width: 100%; }
.fd-props .btn-danger { align-self: flex-start; margin-top: 6px; }
.fd-props-kind { font-size: 0.95rem; }
.fd-node-issues { margin: 0; padding: 8px 10px 8px 26px; background: var(--bad-bg); color: var(--bad); border-radius: var(--radius-sm); font-size: 0.82rem; }

/* SVG düğümleri (tasarımcı ve salt okunur ortak) */
.fd-node { cursor: move; outline: none; }
.flow-svg .fd-node { cursor: default; }
.fd-shape { fill: #fff; stroke: var(--slate-500); stroke-width: 1.5; }
.fd-approval .fd-shape { fill: var(--blue-100); stroke: var(--blue-600); }
.fd-condition .fd-shape { fill: #fff; stroke: var(--navy-800); }
.fd-notify .fd-shape { fill: var(--slate-100); stroke: var(--slate-500); }
.fd-start .fd-shape { fill: var(--navy-900); stroke: var(--navy-900); }
.fd-end .fd-shape { fill: var(--ok); stroke: var(--ok); }
.fd-label { font-size: 13px; font-weight: 650; fill: var(--ink); pointer-events: none; }
.fd-start .fd-label, .fd-end .fd-label { fill: #fff; }
.fd-caption { font-size: 11px; fill: var(--ink-soft); pointer-events: none; }
.fd-who { font-size: 10.5px; fill: var(--ink-soft); }
.fd-port-label { font-size: 11px; font-weight: 650; fill: var(--slate-600); pointer-events: none; }
.fd-in { fill: #fff; stroke: var(--slate-500); stroke-width: 1.2; pointer-events: none; }
.flow-svg .fd-in { display: none; }
.fd-port { fill: #fff; stroke: var(--blue-600); stroke-width: 2; cursor: crosshair; }
.fd-port:hover { fill: var(--blue-600); }
.fd-port-hit { fill: transparent; stroke: none; cursor: crosshair; }
.fd-port-hit:hover + .fd-port { fill: var(--blue-600); }
.fd-port-yes { stroke: var(--ok); }
.fd-port-yes:hover { fill: var(--ok); }
.fd-port-no { stroke: var(--bad); }
.fd-port-no:hover { fill: var(--bad); }
.fd-node.is-selected .fd-shape { stroke: var(--blue-700); stroke-width: 2.5; }
.fd-node:focus-visible .fd-shape { stroke: var(--blue-700); stroke-width: 2.5; }
.fd-node.is-target .fd-shape { stroke: var(--blue-500); stroke-width: 3; stroke-dasharray: 5 3; }
.fd-node.is-invalid .fd-shape { stroke: var(--bad); stroke-width: 3; }
.fd-edge { fill: none; stroke: var(--slate-500); stroke-width: 1.6; }
.fd-edge.fd-temp { stroke: var(--blue-600); stroke-dasharray: 6 4; pointer-events: none; }
.fd-edge-hit { fill: none; stroke: transparent; stroke-width: 14; cursor: pointer; }
.fd-edge-group:hover .fd-edge, .fd-edge-group.is-selected .fd-edge { stroke: var(--blue-700); stroke-width: 2.4; }
.fd-arrow { fill: var(--slate-500); }
.fd-arrow.on { fill: var(--ok); }

/* Salt okunur durum renkleri */
.flow-view { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fbfcfd; padding: 6px; margin: 6px 0 8px; }
.flow-svg { display: block; margin: 0 auto; }
.fd-edge.on { stroke: var(--ok); stroke-width: 2.2; }
.fd-node.is-done .fd-shape { fill: var(--ok-bg); stroke: var(--ok); stroke-width: 2; }
.fd-node.is-done .fd-label { fill: var(--ink); }
.fd-start.is-done .fd-shape, .fd-end.is-done .fd-shape { fill: var(--ok); }
.fd-start.is-done .fd-label, .fd-end.is-done .fd-label { fill: #fff; }
.fd-node.is-pending .fd-shape { fill: var(--wait-bg); stroke: #d98e04; stroke-width: 2.5; }
.fd-node.is-rejected .fd-shape { fill: var(--bad-bg); stroke: var(--bad); stroke-width: 2.5; }
.fd-node.is-skipped .fd-shape { fill: var(--slate-50); stroke: var(--slate-300); stroke-dasharray: 5 4; }
.fd-node.is-skipped .fd-label, .fd-node.is-skipped .fd-caption { fill: var(--slate-500); }
.flow-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 8px; }
.flow-legend span { display: inline-flex; align-items: center; gap: 6px; }
.flow-legend .lg { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--slate-500); background: #fff; display: inline-block; }
.flow-legend .lg.done { background: var(--ok-bg); border-color: var(--ok); }
.flow-legend .lg.pending { background: var(--wait-bg); border-color: #d98e04; }
.flow-legend .lg.rejected { background: var(--bad-bg); border-color: var(--bad); }
.flow-status { margin-bottom: 16px; }
.flow-facts { margin-bottom: 6px; }
.flow-decision { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 12px; }
.flow-decision .actions { margin-top: 10px; padding-top: 0; border-top: none; }
.flow-history summary { cursor: pointer; font-weight: 650; color: var(--slate-700); margin-top: 8px; }
.flow-panels { display: grid; gap: 0; }
.my-approvals { margin-bottom: 16px; }
.approval-item .process-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.approval-item .reason { min-width: 180px; }

@media (max-width: 1100px) {
    .flow-designer { grid-template-columns: 160px minmax(0, 1fr); }
    .fd-props { grid-column: 1 / -1; border-left: none; border-top: 1px solid var(--line); max-height: none; }
}
@media (max-width: 720px) {
    .flow-designer { grid-template-columns: 1fr; }
    .fd-palette { border-right: none; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
    .fd-tool { width: auto; }
    .fd-help { display: none; }
    .fd-canvas { min-height: 420px; }
}

/* pavo-odeme */
.grid tr.row-issue td { color: var(--bad, #b91c1c); }

/* onay-akisi: ara onay */
.adhoc-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; width: 100%; justify-content: flex-end; }
.adhoc-row select { min-width: 220px; }
.flow-decision .adhoc-row { justify-content: flex-start; margin-top: 10px; }
.flow-decision .adhoc-row .field { margin: 0; }

/* KDV kontrolü */
.vat-periods { display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: flex-end; }
.vat-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.vat-card { display: flex; flex-direction: column; gap: 6px; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.vat-card.ok { border-left-color: var(--ok); }
.vat-card.warn { border-left-color: var(--warn); }
.vat-card.info { border-left-color: var(--info); }
.vat-card .chip { align-self: flex-start; }
.vat-check { margin-bottom: 18px; scroll-margin-top: 70px; }
.vat-table { margin-top: 10px; }
.vat-table > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; cursor: pointer; padding: 6px 0; }
.vat-table > summary .btn { margin-left: auto; }
.vat-mapping > summary { cursor: pointer; }

/* otel satın alma: birim ve e-Fatura eşleme */
.unit-line { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; font-weight: 600; color: var(--slate-700); }
.unit-tag { display: inline-block; margin: 2px 0; padding: 2px 8px; border-radius: 4px; background: var(--slate-100); color: var(--slate-700); font-size: 0.75rem; font-weight: 700; }
.einvoice-pick { margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--slate-50); }
.einvoice-pick > strong { display: block; margin-bottom: 4px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font-weight: 600; }

/* satın alma formları (yazdırılabilir) */
.form-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 12px; }
.pform { font-size: 0.86rem; }
.pform-head { display: flex; justify-content: space-between; gap: 16px; border-bottom: 2px solid #111; padding-bottom: 8px; margin-bottom: 12px; }
.pform h1 { font-size: 1.25rem; margin: 4px 0 0; letter-spacing: 0.02em; }
.pform h2 { font-size: 0.95rem; margin: 14px 0 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.pform-table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.pform-table th, .pform-table td { border: 1px solid #9aa5b1; padding: 4px 6px; vertical-align: top; text-align: left; }
.pform-table th { background: #eef1f5; font-weight: 600; }
.pform-table .num { text-align: right; white-space: nowrap; }
.pform-table .blank { min-width: 90px; height: 22px; }
.pform-table .best { font-weight: 700; text-decoration: underline; }
.pform-table th.selected { background: #dbeafe; }
.pform-table .total-row td { font-weight: 700; background: #f8fafc; }
.pform-sign td { height: 30px; }
.pform-cancelled { font-weight: 700; color: #b91c1c; border: 2px solid #b91c1c; padding: 6px; text-align: center; }
@media print {
    .pform { font-size: 9.5pt; }
    .pform-table th { background: #eee !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* acil alım ve bakım sözleşmesi */
.urgent-panel { border-left: 4px solid var(--bad); }
.urgent-panel.late { background: var(--bad-bg); }
.contract-panel { border-left: 4px solid var(--blue-500); }
.terms-box { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.terms-box legend { font-weight: 700; font-size: 0.85rem; padding: 0 4px; }

/* ödeme ve kapanış */
.closing-steps { list-style: none; padding: 0; margin: 6px 0 10px; display: grid; gap: 4px; }
.closing-steps li { display: flex; align-items: center; gap: 8px; color: var(--slate-700); }
.closing-steps li.done { color: var(--ok); }

/* satinalma-ekran (28 Kasım 2026): satın alma ayrıntısının yeni düzeni — özet şerit, kompakt onay akışı, sekmeler, teklif formu.
   Boşluk ölçüsü 8/16/24 px; tutar ve tarih sütunları sağa, miktar ortaya hizalı. Mevcut belirteçler kullanılır. */
.page-head.compact-head { margin-bottom: 8px; }
.summary-strip { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin: 0 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.summary-strip > div { padding: 8px 16px; display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line-soft); min-width: 0; }
.summary-strip dt { font-size: 0.7rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.summary-strip dd { margin: 0; font-size: 0.92rem; color: var(--ink); white-space: nowrap; }
.summary-strip dd.num { text-align: left; }
.summary-strip .summary-status { margin-left: auto; border-right: 0; justify-content: center; }
.stage-panel { padding: 16px 24px; margin-bottom: 16px; }
.flow-panels .flow-compact { margin-bottom: 16px; padding: 8px 16px; }
.flow-compact-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.flow-compact-name { font-weight: 700; font-size: 0.86rem; color: var(--ink); }
.flow-stepper { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; flex: 1; }
.flow-stepper .fs-step { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: var(--radius-sm); font-size: 0.8rem; font-weight: 650; background: var(--muted-bg); color: var(--ink-soft); }
.flow-stepper .fs-step + .fs-step::before { content: "›"; margin: 0 8px 0 -4px; color: var(--ink-faint); font-weight: 400; }
.flow-stepper .fs-step.ok { background: var(--ok-bg); color: var(--ok); }
.flow-stepper .fs-step.wait { background: var(--wait-bg); color: var(--wait); }
.flow-stepper .fs-step.bad { background: var(--bad-bg); color: var(--bad); }
.flow-stepper .fs-mark { font-weight: 800; }
.flow-decision.compact { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.flow-decision.compact .flow-note { flex: 1 1 260px; min-width: 0; }
.flow-decision.compact .flow-adhoc { flex-basis: 100%; }
.flow-decision.compact .adhoc-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.flow-more { margin-top: 8px; }
.flow-more > summary { cursor: pointer; font-size: 0.82rem; color: var(--accent); font-weight: 600; }
.flow-more[open] > summary { margin-bottom: 8px; }
.flow-more .flow-more-meta { margin: 8px 0; }
.page-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 16px; position: sticky; top: var(--topbar-h); z-index: 5; background: var(--bg); }
.page-tabs a { padding: 8px 16px; color: var(--ink-soft); text-decoration: none; font-weight: 650; font-size: 0.9rem; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px; }
.page-tabs a:hover { color: var(--ink); }
.page-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel > .panel + .panel, .tab-panel > section + section { margin-top: 16px; }
.tab-panel { margin-bottom: 16px; scroll-margin-top: 110px; }
th.ctr, td.ctr { text-align: center; font-variant-numeric: tabular-nums; }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.form-grid .span-all { grid-column: 1 / -1; }
.form-grid textarea { width: 100%; resize: vertical; }
.quote-form .quote-block { margin-bottom: 16px; }
.quote-form .quote-entry { margin-bottom: 16px; }
.quote-form .quote-terms { margin-top: 16px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin: 0 -18px -16px; padding: 12px 18px; background: var(--surface); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.sticky-actions > .muted { margin-right: auto; }
.suggest-host { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lift); max-height: 320px; overflow-y: auto; }
.suggest-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 12px; background: none; border: 0; border-bottom: 1px solid var(--line-soft); text-align: left; cursor: pointer; font: inherit; color: var(--ink); }
.suggest-item:hover, .suggest-item.active { background: var(--accent-soft); }
.suggest-item .muted { margin-left: auto; }
.suggest-empty { padding: 8px 12px; }
.empty .empty-actions { margin-top: 8px; }
@media (max-width: 900px) {
    .form-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .summary-strip .summary-status { margin-left: 0; }
}
@media (max-width: 560px) {
    .form-grid.cols-4 { grid-template-columns: 1fr; }
    .page-tabs { overflow-x: auto; }
}

/* Toplu teklif tablosu (satın alma ayrıntısı, Yeni teklif): kalem × tedarikçi fiyat ızgarası. */
.quote-grid-table th[data-grid-col] { min-width: 150px; white-space: normal; }
.quote-grid-table input.amount { width: 100%; min-width: 110px; text-align: right; }
.quote-grid-table input.invalid { border-color: var(--bad); background: var(--bad-bg); }
.quote-grid-table select, .quote-grid-table input.cell { width: 100%; min-width: 110px; }
.quote-grid + .quote-form { margin-top: 16px; }

/* Teklif ekle ekranına yönlendiren bilgi kutusu (satın alma ayrıntısı > Yeni teklif) ve ekranın tedarikçi ekleme paneli. */
.alert.quote-entry-callout { display: block; background: var(--accent-soft); color: var(--ink); border-color: var(--line); border-left-color: var(--accent, #2563eb); font-weight: 400; }
.alert.quote-entry-callout .btn { margin: 0 4px; }
.quote-entry-add .search-row { max-width: 640px; }
.quote-grid-table th[data-grid-col] .btn { margin-top: 4px; }

/* Teklif ekle: sütun başlığındaki Excel/Çıkar düğmeleri ve Excel aktarma paneli. */
.quote-grid-table th[data-grid-col] .col-actions { display: flex; gap: 4px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.quote-excel ol { margin: 0 0 10px 18px; padding: 0; }
.quote-excel .search-row { max-width: 640px; align-items: center; }

/* Kullanıcı ekranı sade görünüm (30 Kasım 2026): görev paketleri kartları ve başlıktaki özet. */
.user-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 4px 0 0; }
.package-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin: 4px 0 10px; }
.package-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface, #fff); cursor: pointer; }
.package-card:hover { border-color: var(--accent); }
.package-card input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.package-card.is-on { border-color: var(--accent); background: var(--accent-soft); }
.package-card.is-partial { border-style: dashed; }
.package-card .package-text { display: flex; flex-direction: column; gap: 3px; }
.package-card .small-chip { align-self: flex-start; font-size: 11px; margin-top: 2px; }
@media (max-width: 640px) { .package-grid { grid-template-columns: 1fr; } }

/* Kullanıcılar: departman görünümü ve kullanıcı kartındaki ekip bölümü (30 Kasım 2026). */
.dept-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.dept-card .dept-members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.dept-card .dept-members li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.dept-card .dept-members li:last-child { border-bottom: 0; }
.team-add { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
@media (max-width: 640px) { .dept-grid { grid-template-columns: 1fr; } }

/* Onay akışı kompakt görünüm (30 Kasım 2026): adım tablosu ana odak, satırda Onayla/Reddet; şema "Akış şemasını gör" penceresinde. */
.btn-success { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-success:hover { filter: brightness(0.95); }
.flow-compact-head .flow-diagram-open { margin-left: auto; }
.flow-steps tr.is-mine td { background: var(--wait-bg); }
.flow-steps .flow-actions { white-space: nowrap; }
.flow-steps .flow-actions .btn + .btn { margin-left: 6px; }
.flow-decision-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.flow-decision-extra .flow-note { flex: 1 1 320px; }
.flow-diagram-dialog { width: min(760px, 94vw); max-height: 88vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px 16px; }
.flow-diagram-dialog::backdrop { background: rgb(15 23 42 / 45%); }
.flow-diagram-dialog .picker-head { position: sticky; top: 0; background: var(--surface, #fff); padding: 12px 0; display: flex; justify-content: space-between; align-items: center; }