/* =========================================================
   GramajPro — arayüz stilleri
   Yan menülü düzen · koyu (varsayılan) ve açık tema
   ========================================================= */

/* ---------- 1. Belirteçler ---------- */
:root {
  color-scheme: dark;
  --bg: #0e1117;
  --panel: #12161e;
  --surface: #171c26;
  --surface-2: #1c2230;
  --surface-3: #252c3b;
  --input: #131820;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .1);
  --text: #e9edf4;
  --text-2: #8a93a8;
  --text-3: #5b6376;
  --accent: #f0454b;
  --accent-2: #d93a41;
  --accent-soft: rgba(240, 69, 75, .12);
  --accent-line: rgba(240, 69, 75, .4);
  --on-accent: #ffffff;
  --ok: #34d399;
  --warn: #fbbf24;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset;
  --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .7);
  --moblen: #60a5fa;
  --pvc: #34d399;
  --derlin: #fbbf24;
  --abs: #c084fc;
  --r-l: 18px;
  --r-m: 12px;
  --r-s: 9px;
  --ym-gen: 264px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f5f8;
  --panel: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --surface-3: #eceef3;
  --input: #f8f9fb;
  --line: rgba(20, 27, 45, .08);
  --line-2: rgba(20, 27, 45, .14);
  --text: #1a2130;
  --text-2: #5f6b80;
  --text-3: #9aa3b5;
  --accent: #e03a41;
  --accent-2: #c9313a;
  --accent-soft: rgba(224, 58, 65, .08);
  --accent-line: rgba(224, 58, 65, .35);
  --ok: #059669;
  --warn: #b45309;
  --shadow: 0 1px 2px rgba(20, 27, 45, .04), 0 8px 24px -16px rgba(20, 27, 45, .16);
  --shadow-pop: 0 24px 60px -20px rgba(20, 27, 45, .3);
  --moblen: #2563eb;
  --pvc: #059669;
  --derlin: #b45309;
  --abs: #9333ea;
}

/* ---------- 2. Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html.katman-acik { overflow: hidden; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #fff; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { flex-shrink: 0; }
h1, h2, h3 { text-wrap: balance; }
.ikon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ikon.k { width: 15px; height: 15px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.gorunmez { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. Düzen: yan menü + içerik ---------- */
.duzen { display: grid; grid-template-columns: var(--ym-gen) minmax(0, 1fr); min-height: 100vh; }
.yan-menu {
  position: sticky; top: 0;
  height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 22px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--panel);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  z-index: 50;
}
.ym-ust { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.yan-menu .ym-kapat { display: none; }
.marka { display: flex; align-items: center; gap: 11px; text-decoration: none; min-width: 0; }
.marka-ikon {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; flex-shrink: 0;
  color: #fff; background: linear-gradient(150deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px -6px rgba(240, 69, 75, .6);
}
.marka-ikon svg { width: 22px; height: 22px; }
.marka-ikon.kucuk { width: 32px; height: 32px; border-radius: 9px; }
.marka-ikon.kucuk svg { width: 18px; height: 18px; }
.marka-metin { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.marka-metin strong { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.marka-metin strong em { font-style: normal; color: var(--accent); }
.marka-metin small { font-size: 11.5px; color: var(--text-2); font-weight: 600; }

.ym-nav { display: flex; flex-direction: column; gap: 3px; }
.ym-link {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 14px; color: var(--text-2);
  transition: background .2s, color .2s;
}
.ym-link:hover { background: var(--surface-2); color: var(--text); }
.ym-link[aria-current="page"] { background: var(--accent-soft); color: var(--text); }
.ym-link[aria-current="page"] .ikon { color: var(--accent); }
.ym-link[aria-current="page"]::before {
  content: ''; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent);
}
.ym-sayac {
  margin-left: auto; font-family: var(--mono); font-size: 11px; font-weight: 700;
  padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--text-2);
}

.ym-bugun { margin-top: auto; padding: 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); }
.ym-bugun-bas { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); }
.ym-bugun dl { margin: 10px 0 0; display: grid; gap: 6px; }
.ym-bugun dl div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.ym-bugun dt { color: var(--text-2); }
.ym-bugun dd { margin: 0; font-family: var(--mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.canli-saat { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0; text-transform: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.canli-saat i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.ym-alt { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.kullanici-kart { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
  background: var(--surface-3); color: var(--text);
}
.kk-metin { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.kk-metin b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kk-metin small { font-size: 11.5px; color: var(--text-2); }
.kk-eylem { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kk-eylem form { display: contents; }
.tema-gunes, .ikon.gunes { display: none; }
[data-theme="light"] .ikon.gunes { display: block; }
[data-theme="light"] .ikon.ay { display: none; }

.ym-perde { position: fixed; inset: 0; z-index: 45; background: rgba(5, 7, 12, .55); backdrop-filter: blur(3px); }
.icerik { min-width: 0; display: flex; flex-direction: column; }
.mobil-bar {
  display: none; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40;
  align-items: center; gap: 12px; padding: 10px 16px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.mobil-baslik { flex: 1; font-weight: 800; font-size: 15px; }
.sayfa { width: 100%; max-width: 1280px; margin: 0 auto; padding: 36px 36px 56px; }

/* ---------- 4. Ortak bileşenler ---------- */
.sayfa-bas { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.sayfa-bas h1 { margin: 0 0 6px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; }
.sayfa-bas p { margin: 0; max-width: 64ch; color: var(--text-2); }
.bas-eylem { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.kart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); }
.kart-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kart-baslik { margin: 0; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }

.ana-dugme, .ikincil-dugme, .hayalet-dugme, .tehlike-dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: var(--r-m);
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s, transform .15s var(--ease), box-shadow .2s;
}
.ana-dugme { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 20px -10px rgba(240, 69, 75, .8); }
.ana-dugme:hover { background: var(--accent-2); }
.ana-dugme:active, .ikincil-dugme:active { transform: scale(.98); }
.ana-dugme.buyuk { width: 100%; height: 52px; font-size: 15.5px; border-radius: 14px; }
.ana-dugme kbd { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: rgba(0, 0, 0, .18); }
.ikincil-dugme { background: var(--surface-2); border-color: var(--line-2); }
.ikincil-dugme:hover { border-color: var(--text-3); }
.hayalet-dugme { background: transparent; border-color: var(--line-2); color: var(--text-2); }
.hayalet-dugme:hover { color: var(--text); background: var(--surface-2); }
.hayalet-dugme.kucuk { height: 36px; padding: 0 10px; font-size: 13px; width: 100%; }
.tehlike-dugme { background: var(--accent-soft); color: var(--accent); height: 38px; font-size: 13px; }
.tehlike-dugme:hover { border-color: var(--accent-line); }
.metin-dugme { border: 0; background: none; padding: 4px 2px; color: var(--accent); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.metin-dugme:hover { text-decoration: underline; }
.ikon-dugme {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  border: 1px solid transparent; background: transparent; color: var(--text-2);
  transition: background .2s, color .2s, border-color .2s;
}
.ikon-dugme:hover { background: var(--surface-2); color: var(--text); }
.ikon-dugme.cerceveli { width: 42px; height: 42px; border-color: var(--line-2); background: var(--surface-2); }
.ikon-dugme.tehlike:hover { color: var(--accent); background: var(--accent-soft); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }
.donen { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: don .7s linear infinite; }
@keyframes don { to { transform: rotate(360deg); } }

.alan { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.alan > span:first-child { font-size: 12px; font-weight: 700; color: var(--text-2); }
.alan input, .alan select {
  width: 100%; height: 42px; padding: 0 12px; border-radius: 10px;
  background: var(--input); border: 1px solid var(--line-2); outline: 0;
  font-size: 14px; font-weight: 600;
  transition: border-color .2s, box-shadow .2s;
}
.alan input:focus, .alan select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.secim { position: relative; display: block; }
.secim select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.secim::after {
  content: ''; position: absolute; right: 14px; top: 50%; width: 7px; height: 7px;
  border-right: 1.8px solid var(--text-2); border-bottom: 1.8px solid var(--text-2);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.arama { position: relative; display: block; }
.arama .ikon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); }
.arama input { padding-left: 36px; }

.segment { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line); }
.segment-hap {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 40px; padding: 6px 10px; border: 0; border-radius: 9px; background: transparent;
  font-weight: 700; font-size: 13.5px; color: var(--text-2);
  transition: background .2s, color .2s, box-shadow .2s;
}
.segment-hap:hover { color: var(--text); }
.segment-hap[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-2), 0 4px 12px -6px rgba(0, 0, 0, .4); }
.segment-hap .avatar { width: 24px; height: 24px; font-size: 10px; }
.segment-hap[aria-checked="true"] .avatar { background: var(--accent); color: #fff; }

.rozet {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; border: 1px solid;
}
.rozet-gram { font-family: var(--mono); color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.rozet-tip { color: var(--c); border-color: color-mix(in srgb, var(--c) 35%, transparent); background: color-mix(in srgb, var(--c) 11%, transparent); }
.rozet.mini { padding: 1px 8px; font-size: 11px; }
.rozet-rol { color: var(--text-2); border-color: var(--line-2); background: var(--surface-2); }
.rozet-rol.yonetici { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.durum { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.durum::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.durum.kapali { color: var(--text-3); }
.durum.kapali::before { background: var(--text-3); }
.tip-nokta { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--text-3)); }
.tip-moblen { --c: var(--moblen); }
.tip-pvc { --c: var(--pvc); }
.tip-derlin { --c: var(--derlin); }
.tip-abs { --c: var(--abs); }
.rozetler { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.rozetler:empty { margin-top: 0; }
.rozet-ipucu { font-size: 12px; color: var(--text-2); font-weight: 600; }
.manuel { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; font-family: var(--font); font-style: normal; font-size: 10px; font-weight: 800; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); vertical-align: 1px; }
.ust-etiket { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }

/* ---------- 5. Üretim kaydı ---------- */
.uretim-izgara { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.form-kart { padding: 6px 24px 24px; }
.adim { padding: 20px 0; border-bottom: 1px solid var(--line); }
.adim-malzeme { position: relative; z-index: 5; }
.adim-bas { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.adim-no {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  background: var(--surface-3); color: var(--text-2);
  transition: background .2s, color .2s;
}
.adim.tamam .adim-no { background: var(--accent); color: #fff; }
.adim-bas h2 { margin: 0; font-size: 15px; font-weight: 800; }
.adim-ipucu { margin-left: auto; font-size: 12.5px; color: var(--text-3); }
.adim.hata .adim-bas h2, .adim.hata .adim-no { color: var(--accent); }
.adim.hata .adim-no { background: var(--accent-soft); }

.makine-izgara { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.makine-kart {
  text-align: left; padding: 14px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.makine-kart:hover { border-color: var(--text-3); }
.makine-ust { display: flex; align-items: center; justify-content: space-between; }
.makine-ad { font-weight: 800; font-size: 14.5px; }
.makine-alt { font-size: 12px; color: var(--text-2); }
.makine-svg { width: 100%; max-width: 120px; height: auto; color: var(--text-3); transition: color .2s; }
.durum-led { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); transition: background .2s; }
.makine-kart[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.makine-kart[aria-checked="true"] .makine-svg { color: var(--accent); }
.makine-kart[aria-checked="true"] .durum-led { background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.combo { position: relative; }
.combo-alan {
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 12px 0 14px; border-radius: 13px;
  background: var(--input); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s;
}
.combo-alan:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.combo-alan > .ikon { color: var(--text-3); }
.combo-alan input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 14.5px; font-weight: 600; }
.combo-alan input::placeholder { color: var(--text-3); font-weight: 500; }
.combo-temizle { width: 26px; height: 26px; border: 0; border-radius: 7px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); }
.combo-ok { color: var(--text-3); transition: transform .25s var(--ease); }
.combo.acik .combo-ok { transform: rotate(180deg); }
.combo-menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px;
  box-shadow: var(--shadow-pop); overflow: hidden;
}
.combo-menu-bas { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; font-size: 11.5px; color: var(--text-3); border-bottom: 1px solid var(--line); font-weight: 600; }
.combo-liste { list-style: none; margin: 0; padding: 5px; max-height: 300px; overflow-y: auto; }
.combo-secenek { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 9px; cursor: pointer; }
.combo-secenek .sol { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.combo-secenek .ad { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.combo-secenek .gram { font-family: var(--mono); font-size: 12px; color: var(--text-3); white-space: nowrap; }
.combo-secenek .sag { display: flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }
.combo-secenek.aktif { background: var(--surface-2); }
.combo-secenek[aria-selected="true"] .ad { color: var(--accent); }
.combo-bos { padding: 20px; text-align: center; color: var(--text-2); font-size: 13px; }

.cip-izgara { display: flex; flex-wrap: wrap; gap: 7px; }
.cip {
  position: relative; min-width: 58px; padding: 8px 11px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; color: var(--text-2);
  transition: all .18s var(--ease);
}
.cip:hover { color: var(--text); border-color: var(--text-3); }
.cip.varsayilan::after { content: ''; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
.cip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.goz-not { margin: 10px 0 0; font-size: 12.5px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.goz-not.uyari { color: var(--warn); }
.goz-not .yesil { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

.kg-satir { display: flex; gap: 10px; flex-wrap: wrap; }
.kg-alan {
  flex: 1 1 240px; min-width: 0; display: flex; align-items: center;
  height: 56px; border-radius: 13px; background: var(--input); border: 1px solid var(--line-2);
  transition: border-color .2s, box-shadow .2s;
}
.kg-alan:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.kg-alan input { flex: 1; width: 100%; min-width: 0; height: 100%; padding: 0 16px; border: 0; outline: 0; background: none; font-family: var(--mono); font-size: 22px; font-weight: 700; }
.kg-alan input::placeholder { color: var(--text-3); }
.kg-birim { margin-right: 10px; padding: 5px 10px; border-radius: 8px; background: var(--surface-3); font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--text-2); }
.kg-hizli { display: flex; gap: 6px; flex-wrap: wrap; }
.hizli-dugme {
  height: 56px; padding: 0 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  transition: border-color .2s, color .2s;
}
.hizli-dugme:hover { border-color: var(--text-3); }
.hizli-dugme.sifirla { font-family: var(--font); color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.kg-yorum { margin: 10px 0 0; font-size: 12.5px; color: var(--text-2); }
.kg-yorum b { font-family: var(--mono); color: var(--text); }
.kg-yorum .hata-metin { color: var(--accent); }
.eylem { padding-top: 22px; }

.uretim-yan { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 16px; }
.onizleme { padding: 20px; }
.onizleme-hero { margin: 14px 0 12px; padding: 18px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.etiket { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.dev-sayi { font-family: var(--mono); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.onizleme-hero .dev-sayi { font-size: 38px; margin: 6px 0 2px; }
.onizleme-hero .dev-sayi.hazir { color: var(--accent); }
.birim { font-size: 12px; color: var(--text-2); font-weight: 700; }
.mini-izgara { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mini-kutu { padding: 11px 13px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.mini-kutu span { display: block; font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.mini-kutu b { display: block; margin-top: 2px; font-family: var(--mono); font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.mini-kutu b.uyari { color: var(--warn); }
.formul { margin-top: 12px; padding: 11px 13px; border-radius: 11px; border: 1px dashed var(--line-2); font-family: var(--mono); font-size: 11.5px; color: var(--text-2); line-height: 1.75; overflow-wrap: anywhere; }
.formul b { color: var(--text); }
.param-liste { margin: 14px 0 0; display: grid; gap: 7px; font-size: 13px; }
.param-liste div { display: flex; justify-content: space-between; gap: 10px; }
.param-liste dt { color: var(--text-2); }
.param-liste dd { margin: 0; font-weight: 700; text-align: right; }
.param-liste dd.bos { color: var(--text-3); font-weight: 500; }
.son-kayitlar { padding: 18px 18px 8px; }
.son-liste { list-style: none; margin: 8px 0 0; padding: 0; }
.son-liste li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 2px; border-top: 1px solid var(--line); }
.s-sol { min-width: 0; }
.s-ad { font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-alt { font-size: 11.5px; color: var(--text-2); }
.s-sag { text-align: right; flex-shrink: 0; }
.s-adet { font-family: var(--mono); font-weight: 700; font-size: 13.5px; }
.s-kg { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.son-bos { padding: 16px 2px; color: var(--text-3); font-size: 13px; border-top: 1px solid var(--line); }

/* ---------- 6. Raporlar ---------- */
.kpi-izgara { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { padding: 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi-etiket { font-size: 12px; font-weight: 700; color: var(--text-2); }
.kpi-deger { font-family: var(--mono); font-size: 26px; font-weight: 700; letter-spacing: -.035em; line-height: 1.2; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi-deger.kucuk { font-size: 20px; }
.kpi-deger small { font-size: 13px; color: var(--text-2); font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.kpi-alt { font-size: 12.5px; color: var(--text-2); }
.kpi-alt b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.kpi.vurgu .kpi-deger { color: var(--accent); }
.kullanim { margin-top: 6px; display: grid; gap: 6px; }
.kullanim-satir { display: grid; grid-template-columns: 64px 1fr 38px; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-2); }
.kullanim-satir b { font-family: var(--mono); color: var(--text); text-align: right; font-weight: 600; }
.bar { height: 5px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.kullanim .bar { margin-top: 0; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .8s var(--ease); }
.bar.sari i { background: var(--warn); }

.filtre-kart { padding: 16px; margin-bottom: 16px; }
.filtre-izgara { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.5fr); gap: 10px; align-items: end; }
.hizli-tarih { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.hizli-tarih .metin-dugme { margin-left: auto; }
.tarih-cip { padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; font-size: 12.5px; font-weight: 700; color: var(--text-2); transition: all .2s; }
.tarih-cip:hover { color: var(--text); }
.tarih-cip.aktif { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }

.tablo-kart { overflow: hidden; margin-bottom: 16px; }
.tablo-bas { padding: 16px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tablo-bas p { margin: 2px 0 0; font-size: 12.5px; color: var(--text-2); }
.tablo-kap { overflow-x: auto; }
.tablo { width: 100%; border-collapse: collapse; font-size: 13px; }
#gorunum-raporlar .tablo { min-width: 1120px; }
.tablo th {
  padding: 11px 14px; text-align: left; white-space: nowrap;
  font-size: 11.5px; font-weight: 700; color: var(--text-2);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.tablo td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tablo tbody tr { transition: background .15s; }
.tablo tbody tr:hover { background: var(--surface-2); }
.tablo tbody tr:last-child td { border-bottom: 0; }
.tablo .sayi { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tablo th.sayi { font-family: var(--font); }
.tablo .vurgu-hucre { color: var(--accent); font-weight: 700; }
.tablo .uyari-hucre { color: var(--warn); }
.tablo tfoot td { font-weight: 800; background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 0; }
.tablo .islem-sutun { width: 52px; }
.hucre-tarih b { display: block; font-family: var(--mono); font-weight: 600; font-size: 12.5px; }
.hucre-tarih span { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); }
.hucre-tarih small { margin-left: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); }
.hucre-malzeme { font-weight: 700; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.hucre-soluk { color: var(--text-2); font-size: 12.5px; }
.kisi { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.kisi .avatar { width: 26px; height: 26px; font-size: 10px; }
.kisi small { display: block; font-weight: 500; font-size: 12px; color: var(--text-2); font-family: var(--mono); }
.bos-durum { padding: 52px 20px; text-align: center; color: var(--text-2); }
.bos-ikon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.bos-ikon .ikon { width: 26px; height: 26px; }
.bos-durum h3 { margin: 0 0 6px; color: var(--text); font-size: 15.5px; }
.bos-durum p { margin: 0 auto; max-width: 380px; font-size: 13.5px; }

/* ---------- 7. Yedekleme & kullanıcılar ---------- */
.yedek-izgara { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.yedek-kart { padding: 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.yedek-kart h2 { margin: 6px 0 0; font-size: 16px; font-weight: 800; }
.yedek-kart p { margin: 0 0 8px; color: var(--text-2); font-size: 13.5px; flex: 1; }
.yedek-kart p.uyari { color: var(--warn); }
.yedek-ikon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.gunluk-tablo td:last-child { white-space: normal; min-width: 260px; color: var(--text-2); }
.gunluk-tablo code { font-family: var(--mono); font-size: 12px; padding: 2px 6px; border-radius: 6px; background: var(--surface-2); }
.satir-eylem { display: flex; gap: 4px; justify-content: flex-end; }

/* ---------- 8. Katmanlar & bildirimler ---------- */
.katman { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.katman-arka { position: absolute; inset: 0; background: rgba(5, 7, 12, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.katman-kart {
  position: relative; width: 100%; max-width: 520px;
  max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  padding: 26px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop); outline: 0;
}
.kapat-dugme { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); }
.kapat-dugme:hover { color: var(--text); }
.sonuc-ust { display: flex; gap: 14px; align-items: flex-start; padding-right: 40px; }
.basari-ikon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); flex-shrink: 0; }
.basari-ikon .ikon { width: 22px; height: 22px; }
.basari-ikon path { stroke-dasharray: 30; }
.sonuc-ust h3 { margin: 3px 0 0; font-size: 20px; font-weight: 800; }
.sonuc-hero { margin: 18px 0 12px; padding: 22px 18px; text-align: center; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--accent-line); }
.sonuc-hero .dev-sayi { font-size: clamp(36px, 8vw, 52px); color: var(--accent); margin: 4px 0 0; }
.sonuc-3lu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sonuc-param { margin: 14px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: 13px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.sonuc-param dt { color: var(--text-2); font-size: 11.5px; }
.sonuc-param dd { margin: 0; font-weight: 700; }
.ikili-eylem { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.ikili-eylem > * { height: 46px; }

.form-modal { max-width: 440px; display: flex; flex-direction: column; gap: 14px; }
.form-modal h3 { margin: 0; font-size: 19px; font-weight: 800; padding-right: 40px; }
.modal-alt { margin: -8px 0 0; color: var(--text-2); font-size: 13.5px; }
.form-hata { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.onay-kutu { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.onay-kutu input { width: 18px; height: 18px; accent-color: var(--accent); }
.segment.ikili { grid-auto-columns: minmax(0, 1fr); }

.onay-kart { max-width: 420px; text-align: center; }
.onay-ikon { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.onay-ikon .ikon { width: 24px; height: 24px; }
.onay-kart h3 { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.onay-kart p { margin: 0; color: var(--text-2); font-size: 14px; }
.onay-dogrula { margin-top: 14px; text-align: left; }
.onay-dogrula input { text-transform: uppercase; letter-spacing: .15em; font-family: var(--mono); text-align: center; }
.onay-eylem { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-top: 20px; }
.onay-eylem > * { height: 44px; padding: 0 10px; }

.toast-alani { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; pointer-events: none; max-width: calc(100vw - 32px); }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 11px;
  padding: 11px 14px 11px 12px; border-radius: 13px; min-width: 250px; max-width: 420px;
  background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-pop);
  font-size: 13.5px; font-weight: 600;
}
.t-ikon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; }
.toast.basari .t-ikon { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.toast.uyari .t-ikon { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.toast.hata .t-ikon { background: var(--accent-soft); color: var(--accent); }
.toast.bilgi .t-ikon { background: var(--surface-3); color: var(--text-2); }

.demo-bant { padding: 9px 16px; background: var(--accent-soft); border-bottom: 1px solid var(--accent-line); font-size: 12.5px; color: var(--text-2); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.demo-bant b { color: var(--accent); }
.demo-bant span { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 9. Giriş & kurulum ekranları ---------- */
.kart-sayfa { display: grid; place-items: center; padding: 32px 16px; min-height: 100vh; }
.giris-kap { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 22px; }
.giris-marka { display: flex; align-items: center; justify-content: center; gap: 12px; }
.giris-marka .marka-ikon { width: 44px; height: 44px; border-radius: 13px; }
.giris-kart { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; gap: 16px; }
.giris-kart h1 { margin: 0; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.giris-alt { margin: -10px 0 0; color: var(--text-2); font-size: 13.5px; }
.giris-form { display: flex; flex-direction: column; gap: 14px; }
.giris-form .ana-dugme { margin-top: 4px; }
.giris-not, .giris-dip { margin: 0; text-align: center; font-size: 12.5px; color: var(--text-3); }
.sifre-alan { position: relative; display: block; }
.sifre-alan input { padding-right: 44px; }
.sifre-goster { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 34px; border: 0; background: none; color: var(--text-3); display: grid; place-items: center; border-radius: 8px; }
.sifre-goster.acik, .sifre-goster:hover { color: var(--text); }
.kutu-uyari { padding: 11px 13px; border-radius: 11px; font-size: 13.5px; font-weight: 600; }
.kutu-uyari.hata { background: var(--accent-soft); color: var(--accent); }
.kutu-uyari.bilgi { background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }

/* ---------- 10. Duyarlı ---------- */
@media (max-width: 1240px) {
  .kpi-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filtre-izgara { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filtre-izgara .genis { grid-column: span 2; }
}
@media (max-width: 1120px) {
  .uretim-izgara { grid-template-columns: minmax(0, 1fr); }
  .uretim-yan { position: static; }
}
@media (max-width: 960px) {
  .duzen { grid-template-columns: minmax(0, 1fr); }
  .yan-menu {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw);
    transform: translateX(-100%); transition: transform .35s var(--ease);
    box-shadow: var(--shadow-pop);
  }
  .yan-menu.acik { transform: none; }
  .yan-menu .ym-kapat { display: grid; }
  .mobil-bar { display: flex; }
  .sayfa { padding: 22px 16px 40px; }
}
@media (max-width: 640px) {
  .form-kart { padding: 2px 16px 18px; }
  .adim-ipucu { margin-left: 0; width: 100%; }
  .makine-izgara { gap: 7px; }
  .makine-kart { padding: 10px; }
  .makine-ad { font-size: 13px; }
  .makine-alt { display: none; }
  .segment:not(.ikili) { grid-auto-flow: row; }
  .segment-hap { justify-content: flex-start; }
  .kg-hizli { width: 100%; }
  .hizli-dugme { flex: 1; height: 44px; padding: 0 6px; }
  .kpi-izgara, .filtre-izgara, .yedek-izgara { grid-template-columns: minmax(0, 1fr); }
  .filtre-izgara .genis { grid-column: auto; }
  .bas-eylem { width: 100%; }
  .bas-eylem .ikincil-dugme, .bas-eylem .ana-dugme { flex: 1; }
  .sonuc-3lu, .sonuc-param { grid-template-columns: 1fr; }
  .onay-eylem { grid-auto-flow: row; }
  .ana-dugme kbd { display: none; }
  .toast-alani { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
