/* Bilen Holding · İK Analitik
   Marka: Bilen bordo (#88191a). Bordo yalnızca marka ve vurgu içindir; veri renkleri ayrı kodlanır:
   işe giriş = çam yeşili, ayrılış = kehribar, maliyet serisi = bordo / arduvaz / okr.
   Tek "akılda kalan" öğe: bordo geçişli öne çıkan KPI kartı ve üzerindeki amblem filigranı. */
:root {
  --brand: #88191a;
  --brand-700: #6e1314;
  --brand-800: #561011;
  --brand-900: #3a0a0b;
  --brand-50: #f9efef;
  --brand-100: #f2dcdc;
  --brand-200: #e5b9b9;
  --paper: #f4f4f5;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --line: #e4e5e8;
  --line-strong: #cfd2d7;
  --text: #23262b;
  --muted: #61676f;
  --faint: #8d939b;
  --primary: var(--brand);
  --primary-ink: var(--brand-700);
  --primary-soft: var(--brand-50);
  --hire: #2f7a62;
  --hire-soft: #e4f2ec;
  --sep: #c0661f;
  --sep-soft: #fbeedf;
  --cost: #88191a;
  --cost-soft: #f9efef;
  --cost-2: #536273;
  --cost-3: #b8975f;
  --amber: #9a6510;
  --amber-soft: #fbf1dc;
  --ok: #2f7a62;
  --ok-soft: #e4f2ec;
  --err: #b42318;
  --err-soft: #fdecea;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(35, 20, 20, .05);
  --shadow: 0 1px 2px rgba(35, 20, 20, .05), 0 6px 18px -8px rgba(35, 20, 20, .14);
  --shadow-lg: 0 2px 4px rgba(35, 20, 20, .06), 0 18px 38px -16px rgba(88, 16, 17, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Segoe UI", "Helvetica Neue", Roboto, "Noto Sans", Arial, system-ui, sans-serif;
  --sidebar: 260px;
  --brand-ink: #88191a;
  --nav-ink: #4b5059;
  --input-hover: #b8bcc3;
  --err-line: #eab4ae;
  --amber-line: #ecd39e;
  --ok-line: #b7dccb;
  --sep-line: #f1d3b4;
  --slate-soft: #edf0f3;
  --male-soft: #e8eef6; --male-ink: #3d5a80;
  --female-soft: #fbe9ec; --female-ink: #b4374a;
  --tag-ex-bg: #f5efe4; --tag-ex-ink: #8a6a35;
  --tip-bg: #251b1b;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #121011; --surface: #1b1819; --surface-2: #221e1f; --line: #2f292a; --line-strong: #433a3b; --text: #ece7e7; --muted: #aaa0a0; --faint: #7f7575;
  --brand-50: #3a1d1e; --brand-100: #4a2222; --brand-200: #6b2b2c; --primary-ink: #eba6a6; --primary-soft: #3a1d1e;
  --hire: #5cc29b; --hire-soft: #173a2e; --sep: #e7954f; --sep-soft: #3d2a17;
  --cost: #d0605f; --cost-soft: #3a1d1e; --cost-2: #8fa2b8; --cost-3: #d2b47c; --amber: #e2ad52; --amber-soft: #3a2e17;
  --ok: #5cc29b; --ok-soft: #173326; --err: #f08a80; --err-soft: #3f1f1c;
  --brand-ink: #f0a9a9; --nav-ink: #c9c1c1; --input-hover: #574d4e; --err-line: #6a2e29; --amber-line: #5c4720; --ok-line: #24513f; --sep-line: #5a3d22; --slate-soft: #222a33;
  --male-soft: #1f2a3a; --male-ink: #93b3dc; --female-soft: #3a1f26; --female-ink: #ef94a4; --tag-ex-bg: #33291a; --tag-ex-ink: #d8b77c; --tip-bg: #050404;
  --shadow: none; --shadow-sm: none; --shadow-lg: 0 18px 38px -16px rgba(0,0,0,.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121011; --surface: #1b1819; --surface-2: #221e1f; --line: #2f292a; --line-strong: #433a3b; --text: #ece7e7; --muted: #aaa0a0; --faint: #7f7575;
    --brand-50: #3a1d1e; --brand-100: #4a2222; --brand-200: #6b2b2c; --primary-ink: #eba6a6; --primary-soft: #3a1d1e;
    --hire: #5cc29b; --hire-soft: #173a2e; --sep: #e7954f; --sep-soft: #3d2a17;
    --cost: #d0605f; --cost-soft: #3a1d1e; --cost-2: #8fa2b8; --cost-3: #d2b47c; --amber: #e2ad52; --amber-soft: #3a2e17;
    --ok: #5cc29b; --ok-soft: #173326; --err: #f08a80; --err-soft: #3f1f1c;
    --brand-ink: #f0a9a9; --nav-ink: #c9c1c1; --input-hover: #574d4e; --err-line: #6a2e29; --amber-line: #5c4720; --ok-line: #24513f; --sep-line: #5a3d22; --slate-soft: #222a33;
    --male-soft: #1f2a3a; --male-ink: #93b3dc; --female-soft: #3a1f26; --female-ink: #ef94a4; --tag-ex-bg: #33291a; --tag-ex-ink: #d8b77c; --tip-bg: #050404;
    --shadow: none; --shadow-sm: none; --shadow-lg: 0 18px 38px -16px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: var(--primary-ink); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: 21px; font-weight: 700; }
h2 { font-size: 15.5px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
p { margin: 0 0 .75em; }
.num, td.n, th.n { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Kabuk */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; align-self: start; }
.brand { display: block; padding: 22px 22px 18px; border-bottom: 1px solid var(--line); }
.brand img { display: block; width: 168px; height: auto; }
.brand small { display: block; margin-top: 10px; color: var(--muted); font-size: 11.5px; letter-spacing: .01em; }
.nav { padding: 10px 12px 18px; flex: 1; }
.nav-group { margin-top: 16px; }
.nav-group > span { display: block; padding: 0 12px 6px; color: var(--faint); font-size: 11.5px; font-weight: 600; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 8px; color: var(--nav-ink); font-size: 13.5px; transition: background .18s var(--ease), color .18s var(--ease); }
.nav a:hover { background: var(--brand-50); color: var(--brand-ink); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--brand-50); color: var(--brand-ink); font-weight: 600; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav svg { width: 18px; height: 18px; flex: none; }
.sidebar-foot { padding: 14px 22px 18px; font-size: 11.5px; color: var(--faint); border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: flex-start; }
.sidebar-foot::before { content: ""; width: 7px; height: 7px; margin-top: 5px; border-radius: 50%; background: var(--hire); flex: none; box-shadow: 0 0 0 3px var(--hire-soft); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nav a { color: var(--muted); } }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 30px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-btn { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: var(--text); cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 4px 8px 4px 4px; border-radius: 999px; transition: background .15s; }
.user-menu summary:hover { background: var(--paper); }
.user-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-800)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.user-menu .who { line-height: 1.2; font-size: 13px; }
.user-menu .who small { color: var(--muted); display: block; font-size: 11.5px; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); min-width: 220px; padding: 6px; z-index: 30; animation: pop .16s var(--ease); }
.dropdown a, .dropdown button { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.dropdown a:hover, .dropdown button:hover { background: var(--brand-50); color: var(--brand-ink); text-decoration: none; }
.content { padding: 24px 30px 56px; max-width: 1500px; width: 100%; }

/* ---------- Bildirimler */
.demo-ribbon { display: flex; gap: 10px; align-items: center; background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.demo-ribbon svg, .alert svg { width: 18px; height: 18px; flex: none; }
.badge-demo { display: inline-block; font-size: 11px; font-weight: 650; padding: 2px 8px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber-line); vertical-align: middle; }
.alert { border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; border: 1px solid; font-size: 13.5px; animation: rise .35s var(--ease); }
.alert-success { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.alert-error { background: var(--err-soft); border-color: var(--err-line); color: var(--err); }
.alert-warning { background: var(--amber-soft); border-color: var(--amber-line); color: var(--amber); }
.alert-info { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-700); }
.alert ul { margin: 4px 0 0; padding-left: 18px; }

/* ---------- Sayfa başlığı (dönem bandı) */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.page-head h2 { font-size: 19px; font-weight: 700; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.compare-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.compare-chip b { color: var(--text); font-weight: 600; }

/* ---------- Filtre çubuğu */
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.filters form { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field > .label { font-size: 12px; color: var(--muted); font-weight: 600; }
input:not([type]), input[type=text], input[type=search], input[type=tel], input[type=email], input[type=password], input[type=month], input[type=date], input[type=number], select, textarea {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 10px; min-height: 38px; max-width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input:hover, select:hover { border-color: var(--input-hover); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.ms { position: relative; }
.ms summary { list-style: none; cursor: pointer; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 30px 8px 10px; min-height: 38px; min-width: 170px; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2361676f' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center; transition: border-color .15s; }
.ms summary::-webkit-details-marker { display: none; }
.ms[open] summary { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.ms-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 25; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); width: max(100%, 270px); max-height: 330px; overflow: auto; padding: 6px; animation: pop .16s var(--ease); }
.ms-panel label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.ms-panel label:hover { background: var(--brand-50); }
.ms-panel input[type=checkbox], .check input { accent-color: var(--brand); }
.ms-panel .ms-search { width: 100%; margin-bottom: 6px; }
.ms-actions { display: flex; justify-content: space-between; padding: 4px 6px 6px; font-size: 12.5px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.ms-actions button { background: none; border: 0; color: var(--brand-ink); cursor: pointer; font: inherit; padding: 0; }
.filter-actions { display: flex; gap: 8px; margin-left: auto; align-items: center; flex-wrap: wrap; }

/* ---------- Düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: inherit; font-weight: 600; font-size: 13.5px; border-radius: 8px; padding: 8px 15px; min-height: 38px; cursor: pointer; border: 1px solid transparent; text-decoration: none !important; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s, color .18s, box-shadow .18s, transform .12s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #951c1d, var(--brand-700)); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 4px 12px -6px rgba(136,25,26,.7); }
.btn-primary:hover { background: linear-gradient(180deg, var(--brand), var(--brand-800)); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 8px 18px -8px rgba(136,25,26,.8); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--brand-200); color: var(--brand-ink); background: var(--brand-50); }
.btn-ghost { background: none; color: var(--brand-ink); padding-inline: 10px; }
.btn-ghost:hover { background: var(--brand-50); color: var(--brand-ink); }
.btn-danger { background: var(--surface); color: var(--err); border-color: var(--err-line); }
.btn-danger:hover { background: var(--err-soft); }
.btn svg { width: 16px; height: 16px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-sm { padding: 5px 11px; min-height: 31px; font-size: 12.5px; }

/* ---------- Kapsam şeridi */
.provenance { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; padding: 10px 16px; margin-bottom: 18px; border-left: 3px solid var(--brand); background: var(--surface); border-radius: 0 10px 10px 0; font-size: 13px; color: var(--muted); box-shadow: var(--shadow-sm); }
.provenance b { color: var(--text); font-weight: 650; }
.provenance .warn, .provenance .warn b { color: var(--amber); }
.coverage-bar { display: inline-flex; gap: 2px; vertical-align: middle; margin-left: 6px; }
.coverage-bar i { width: 6px; height: 14px; border-radius: 2px; background: var(--brand); display: inline-block; opacity: .85; }
.coverage-bar i.miss { background: var(--line-strong); }

/* ---------- KPI kartları */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 17px 14px; min-width: 0; box-shadow: var(--shadow-sm);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--brand-100); }
.kpi-label { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 9px; font-weight: 550; }
.kpi-label > span:nth-of-type(2) { flex: 1; min-width: 0; }
.kpi-icon { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-ink); transition: transform .25s var(--ease); }
.kpi:hover .kpi-icon { transform: scale(1.08) rotate(-4deg); }
.kpi-icon svg { width: 16px; height: 16px; }
.k-hire .kpi-icon { background: var(--hire-soft); color: var(--hire); }
.k-sep .kpi-icon { background: var(--sep-soft); color: var(--sep); }
.k-cost .kpi-icon { background: var(--slate-soft); color: var(--cost-2); }
.kpi-value { font-size: 26px; font-weight: 750; letter-spacing: -0.025em; margin-top: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value.na { color: var(--faint); font-size: 17px; font-weight: 500; }
.kpi-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 12px; color: var(--muted); min-height: 24px; }
.kpi .spark { width: 84px; height: 26px; flex: none; }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 1px 7px; border-radius: 99px; font-size: 11.5px; }
.delta.good { color: var(--ok); background: var(--ok-soft); }
.delta.bad { color: var(--err); background: var(--err-soft); }
.delta.flat { color: var(--muted); background: var(--paper); }
.info-tip { cursor: help; color: var(--faint); border: 1px solid var(--line-strong); border-radius: 50%; width: 17px; height: 17px; display: inline-grid; place-items: center; font-size: 10.5px; font-weight: 700; flex: none; background: none; padding: 0; transition: color .15s, border-color .15s; }
.info-tip:hover { color: var(--brand-ink); border-color: var(--brand); }

/* Öne çıkan kart: bordo geçiş + amblem filigranı */
.kpi.featured { background: radial-gradient(120% 140% at 100% 0%, #a3282a 0%, var(--brand) 38%, var(--brand-900) 100%); border-color: transparent; color: #fff; box-shadow: var(--shadow-lg); }
.kpi.featured::after { content: ""; position: absolute; right: -26px; bottom: -34px; width: 150px; height: 150px; background: url("../img/bilen-holding-symbol-white.svg") no-repeat center / contain; opacity: .09; transform: rotate(-8deg); transition: transform .5s var(--ease), opacity .3s; pointer-events: none; }
.kpi.featured:hover::after { transform: rotate(-2deg) scale(1.06); opacity: .14; }
.kpi.featured .kpi-label, .kpi.featured .kpi-foot { color: rgba(255,255,255,.82); }
.kpi.featured .kpi-icon { background: rgba(255,255,255,.14); color: #fff; }
.kpi.featured .info-tip { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.4); }
.kpi.featured .delta { background: rgba(255,255,255,.16); color: #fff; }
.kpi.featured .kpi-value { font-size: 29px; }

/* ---------- Paneller */
.grid { display: grid; gap: 16px; margin-bottom: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-3-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g-5-4 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); min-width: 0; box-shadow: var(--shadow-sm); transition: box-shadow .25s var(--ease), border-color .25s; }
.panel:hover { box-shadow: var(--shadow); }
.panel-head { display: flex; align-items: center; gap: 10px; padding: 15px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-head h2 { flex: 1; min-width: 0; }
.panel-head .sub { font-size: 12.5px; color: var(--muted); font-weight: 400; display: block; margin-top: 3px; }
.panel-body { padding: 16px 18px; }
.panel-body.flush { padding: 0; }
.panel-foot { padding: 11px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Sekmeler */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 14px; overflow-x: auto; }
.tabs button, .tabs a { position: relative; background: none; border: 0; font: inherit; font-size: 13.5px; color: var(--muted); padding: 13px 12px 12px; cursor: pointer; white-space: nowrap; transition: color .18s; }
.tabs button::after, .tabs a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transition: transform .25s var(--ease); }
.tabs button:hover, .tabs a:hover { color: var(--text); text-decoration: none; }
.tabs [aria-selected="true"], .tabs a.on { color: var(--brand-ink); font-weight: 650; }
.tabs [aria-selected="true"]::after, .tabs a.on::after { transform: scaleX(1); }
.tab-panel[hidden] { display: none; }
.tab-panel:not([hidden]) { animation: fade .3s var(--ease); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 9px; overflow: hidden; background: var(--surface); }
.seg a, .seg button { padding: 6px 12px; font: inherit; font-size: 12.5px; color: var(--muted); background: transparent; border: 0; border-right: 1px solid var(--line); cursor: pointer; transition: background .15s, color .15s; }
.seg a:last-child, .seg button:last-child { border-right: 0; }
.seg a:hover, .seg button:hover { background: var(--brand-50); color: var(--brand-ink); text-decoration: none; }
.seg .on { background: var(--brand); color: #fff; font-weight: 600; }
.seg .on:hover { background: var(--brand-700); color: #fff; }

/* ---------- Tablolar */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line-strong); background: var(--surface-2); position: sticky; top: 0; white-space: nowrap; z-index: 1; }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; transition: background .15s; }
table.data tbody tr:hover td { background: var(--brand-50); }
table.data tfoot td { font-weight: 700; border-top: 2px solid var(--line-strong); border-bottom: 0; background: var(--surface-2); }
table.data th[data-sort] { cursor: pointer; user-select: none; }
table.data th[data-sort]::after { content: " ↕"; color: var(--faint); font-weight: 400; }
table.data th[aria-sort="ascending"]::after { content: " ↑"; color: var(--brand-ink); }
table.data th[aria-sort="descending"]::after { content: " ↓"; color: var(--brand-ink); }
.scroll-y { max-height: 470px; overflow: auto; }
.bar-cell { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.bar-cell .track { width: 70px; height: 6px; background: var(--paper); border-radius: 3px; overflow: hidden; flex: none; }
.bar-cell .fill { height: 100%; background: var(--brand); }
.flag { display: inline-block; font-size: 11px; padding: 0 7px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); white-space: nowrap; font-weight: 600; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-imported { background: var(--ok-soft); color: var(--ok); }
.st-validated { background: var(--brand-50); color: var(--brand-700); }
.st-uploaded { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.st-failed { background: var(--err-soft); color: var(--err); }
.st-replaced, .st-rolled_back, .st-discarded { background: var(--paper); color: var(--faint); border: 1px solid var(--line); }
.sev-error { color: var(--err); font-weight: 650; }
.sev-warning { color: var(--amber); font-weight: 650; }
.sev-info { color: var(--ok); font-weight: 650; }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; padding: 10px 16px; font-size: 13px; }
.diff-up { color: var(--err); font-weight: 650; }
.diff-down { color: var(--ok); font-weight: 650; }

/* ---------- Grafikler */
.chart { width: 100%; position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.chart .zero-line { stroke: var(--line-strong); }
.chart .lbl { fill: var(--text); font-size: 11px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.chart .hover-band { fill: var(--brand); opacity: 0; transition: opacity .15s; }
.chart .hover-band.on { opacity: .06; }
.chart .bar { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .7s var(--ease) both; }
.chart .hbar { transform-box: fill-box; transform-origin: 0 50%; animation: growx .7s var(--ease) both; }
.chart .line-path, .spark .line-path { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); animation: draw 1.1s var(--ease) .15s forwards; }
.chart .slice { transform-box: view-box; transform-origin: center; animation: pop .55s var(--ease) both; }
.chart .dot { opacity: 0; animation: fade .3s ease .9s forwards; }
.chart-tip { position: absolute; pointer-events: none; background: var(--tip-bg); color: #fff; font-size: 12px; border-radius: 8px; padding: 9px 11px; box-shadow: 0 10px 24px rgba(0,0,0,.22); min-width: 160px; z-index: 5; display: none; }
.chart-tip b { display: block; margin-bottom: 4px; font-weight: 650; }
.chart-tip .r { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.chart-tip .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); margin: 0 0 8px; padding: 0; list-style: none; }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { width: 11px; height: 11px; border-radius: 3px; }
.legend .sw.line { height: 3px; border-radius: 2px; }
.chart-empty { padding: 40px 10px; text-align: center; color: var(--muted); }
.chart-table-toggle { font-size: 12.5px; }

/* ---------- Maliyet: kalem kartları ve şirket kartları */
.pay-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pay-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.pay-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.pay-card > span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.pay-card strong { display: block; font-size: 21px; font-weight: 750; letter-spacing: -.02em; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.pay-card .meter { height: 6px; border-radius: 4px; background: var(--paper); overflow: hidden; margin: 8px 0 6px; }
.pay-card .meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #c04a4b); border-radius: 4px; transform-origin: left; animation: growx .9s var(--ease) both; }
.pay-card small { color: var(--muted); font-size: 12px; display: flex; justify-content: space-between; gap: 8px; }
.co-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.co-card { display: block; position: relative; border: 1px solid var(--line); border-radius: 12px; padding: 14px 15px 12px; background: var(--surface); color: var(--text); overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.co-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand); transform: scaleY(0); transform-origin: top; transition: transform .25s var(--ease); }
.co-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--brand-100); text-decoration: none; color: var(--text); }
.co-card:hover::before { transform: scaleY(1); }
.co-card .co-name { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.co-card .co-name svg { width: 15px; height: 15px; color: var(--brand-ink); flex: none; }
.co-card .co-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-card strong { display: block; font-size: 22px; font-weight: 750; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.co-card strong small { font-size: 12px; font-weight: 500; color: var(--muted); }
.co-card .co-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ---------- Veri merkezi */
.matrix { border-collapse: separate; border-spacing: 3px; font-size: 12px; }
.matrix th { font-weight: 550; color: var(--muted); padding: 2px 4px; white-space: nowrap; }
.matrix th.co { text-align: left; padding-right: 10px; color: var(--text); max-width: 240px; overflow: hidden; text-overflow: ellipsis; }
.matrix td { width: 34px; height: 26px; border-radius: 6px; text-align: center; background: var(--paper); border: 1px dashed var(--line-strong); transition: transform .15s var(--ease); }
.matrix td:hover { transform: scale(1.12); }
.matrix td a { display: block; width: 100%; height: 100%; line-height: 24px; color: inherit; text-decoration: none; }
.matrix td.m-imported { background: var(--brand); border: 1px solid var(--brand); color: #fff; }
.matrix td.m-warn { background: var(--amber); border: 1px solid var(--amber); color: #fff; }
.matrix td.m-validated, .matrix td.m-uploaded { background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-700); }
.matrix td.m-failed { background: var(--err-soft); border: 1px solid var(--err-line); color: var(--err); }
.upload-form { display: grid; gap: 12px; }
.dropzone { display: block; border: 2px dashed var(--line-strong); border-radius: 14px; padding: 22px 16px; text-align: center; background: var(--surface-2); transition: border-color .2s, background .2s, transform .2s var(--ease); cursor: pointer; }
.dropzone:hover { border-color: var(--brand-200); background: var(--brand-50); }
.dropzone.drag { border-color: var(--brand); background: var(--brand-50); transform: scale(1.01); }
.dropzone .dz-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 0 auto 8px; border-radius: 12px; background: var(--brand-50); color: var(--brand-ink); }
.dropzone .dz-icon svg { width: 22px; height: 22px; }
.dropzone input[type=file] { display: block; margin: 10px auto 0; max-width: 100%; font-size: 12.5px; }
.steps { display: flex; gap: 0; margin: 0 0 18px; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.steps li { flex: 1; list-style: none; padding: 12px 14px; font-size: 13px; color: var(--muted); border-right: 1px solid var(--line); display: flex; gap: 9px; align-items: center; min-width: 0; }
.steps li:last-child { border-right: 0; }
.steps .dot { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: 11.5px; font-weight: 700; flex: none; transition: background .3s, border-color .3s; }
.steps .done { color: var(--text); }
.steps .done .dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps .current { color: var(--brand-ink); font-weight: 650; background: var(--brand-50); }
.steps .current .dot { border-color: var(--brand); color: var(--brand-ink); }
.steps ol { display: contents; }
.map-table td { padding: 7px 10px; }
.map-table select { width: 100%; min-width: 190px; }
.map-row.ambiguous td { background: var(--amber-soft); }
.map-row.unmapped td:first-child { color: var(--faint); }
.preview-cell { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12.5px; }
.stat-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.stat { border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; background: var(--surface-2); transition: border-color .2s; }
.stat:hover { border-color: var(--brand-100); }
.stat span { font-size: 12px; color: var(--muted); display: block; }
.stat b { font-size: 18px; font-variant-numeric: tabular-nums; }
.stat b.small { font-size: 13.5px; line-height: 1.35; display: block; margin-top: 2px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 2px solid var(--line); position: relative; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--brand); }

/* ---------- Formlar */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; cursor: pointer; }
.check input { margin-top: 3px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; max-height: 300px; overflow: auto; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; flex-wrap: wrap; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; margin: 0; min-width: 0; }
legend { font-weight: 650; padding: 0 6px; font-size: 13.5px; }
.formula { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: 6px; padding: 7px 10px; display: block; margin: 6px 0 4px; white-space: pre-wrap; }
.method dl { margin: 0; }
.method dt { font-weight: 650; margin-top: 14px; }
.method dd { margin: 3px 0 0; color: var(--muted); }

/* ---------- Giriş ekranı */
.guest { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(380px, 480px); background: var(--surface); }
.guest-art { position: relative; overflow: hidden; background: radial-gradient(120% 120% at 0% 0%, #a3282a 0%, var(--brand) 35%, var(--brand-900) 100%); color: #f6e6e6; padding: 52px; display: flex; flex-direction: column; justify-content: space-between; }
.guest-art::after { content: ""; position: absolute; right: -90px; bottom: -110px; width: 460px; height: 460px; background: url("../img/bilen-holding-symbol-white.svg") no-repeat center / contain; opacity: .07; transform: rotate(-10deg); animation: drift 18s ease-in-out infinite alternate; }
.guest-art .guest-logo { width: 220px; height: auto; position: relative; z-index: 1; }
.guest-art h2 { font-size: 30px; color: #fff; font-weight: 650; max-width: 17ch; line-height: 1.18; position: relative; z-index: 1; }
.guest-art p { max-width: 46ch; color: rgba(255,255,255,.78); position: relative; z-index: 1; }
.guest-art .mini-chart { position: relative; z-index: 1; }
.guest-art .mini-chart rect { transform-box: fill-box; transform-origin: 50% 100%; animation: grow .9s var(--ease) both; }
.guest-form { background: var(--surface); padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.guest-form .guest-mobile-logo { display: none; width: 170px; margin-bottom: 26px; }
.guest-form form { display: grid; gap: 14px; }
.guest-form input { width: 100%; }

/* ---------- Hareket: tek seferlik giriş koreografisi */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes drift { from { transform: rotate(-10deg) translateY(0); } to { transform: rotate(-4deg) translateY(-18px); } }
.kpis > .kpi { animation: rise .55s var(--ease) both; }
.kpis > .kpi:nth-child(2) { animation-delay: .05s; } .kpis > .kpi:nth-child(3) { animation-delay: .1s; } .kpis > .kpi:nth-child(4) { animation-delay: .15s; }
.kpis > .kpi:nth-child(5) { animation-delay: .2s; } .kpis > .kpi:nth-child(6) { animation-delay: .25s; } .kpis > .kpi:nth-child(7) { animation-delay: .3s; } .kpis > .kpi:nth-child(8) { animation-delay: .35s; }
.content > .panel, .content > .grid, .content > section { animation: rise .5s var(--ease) both; animation-delay: .12s; }

/* ---------- Duyarlı */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3-1, .g-5-4, .g-3 { grid-template-columns: 1fr; }
  .pay-cards { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .sidebar.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.35); }
  .topbar { padding: 10px 16px; }
  .content { padding: 16px 16px 44px; }
  .g-2 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .guest { grid-template-columns: 1fr; }
  .guest-art { display: none; }
  .guest-form .guest-mobile-logo { display: block; }
  .user-menu .who { display: none; }
  .filter-actions { margin-left: 0; width: 100%; }
  .ms summary { max-width: none; min-width: 0; }
  .filters .field { flex: 1 1 140px; min-width: 0; }
  .steps { flex-direction: column; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--line); }
  .pay-cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 9px; }
  .kpi { padding: 12px; }
  .kpi-value { font-size: 19px; }
  .kpi.featured { grid-column: 1 / -1; }
  .kpi.featured .kpi-value { font-size: 24px; }
  .kpi .spark { display: none; }
  .kpi-icon { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chart .line-path { stroke-dashoffset: 0; }
  .chart .dot { opacity: 1; }
}
@media print {
  .sidebar, .topbar, .filters, .filter-actions, .btn { display: none !important; }
  .shell { display: block; }
  .panel, .kpi { break-inside: avoid; box-shadow: none; }
}

/* ---------- Kenar menü: daraltılabilir (geniş ekran) */
.shell { transition: grid-template-columns .28s var(--ease); }
.brand .brand-mark { display: none; }
.sidebar .nav { order: 2; }
.sb-collapse { order: 3; display: flex; align-items: center; gap: 10px; margin: 0 12px 10px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; transition: background .18s, color .18s, border-color .18s; }
.sb-collapse::after { content: "Menüyü daralt"; }
.sb-collapse svg { width: 16px; height: 16px; transform: rotate(90deg); transition: transform .28s var(--ease); }
.sb-collapse:hover { background: var(--brand-50); color: var(--brand-ink); border-color: var(--brand-100); }
.sidebar .sidebar-foot { order: 4; }
.nav a, .brand, .brand img, .nav-group > span { transition: padding .28s var(--ease), opacity .2s, width .28s var(--ease); }
@media (min-width: 901px) {
  html.sb-collapsed { --sidebar: 76px; }
  html.sb-collapsed .sidebar { overflow: visible; z-index: 40; }
  html.sb-collapsed .brand { padding: 18px 0 14px; display: grid; place-items: center; }
  html.sb-collapsed .brand-full, html.sb-collapsed .brand small { display: none; }
  html.sb-collapsed .brand .brand-mark { display: block; width: 36px; height: 36px; animation: pop .25s var(--ease); }
  html.sb-collapsed .nav { padding: 6px 10px 14px; }
  html.sb-collapsed .nav-group { margin-top: 10px; }
  html.sb-collapsed .nav-group > span { font-size: 0; height: 1px; padding: 0; margin: 0 8px 10px; background: var(--line); }
  html.sb-collapsed .nav a { justify-content: center; padding: 11px 0; }
  html.sb-collapsed .nav a[aria-current="page"]::before { left: -10px; }
  html.sb-collapsed .nav-label { display: none; }
  html.sb-collapsed .nav a::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translate(-4px, -50%); white-space: nowrap; background: var(--text); color: var(--surface); font-size: 12.5px; font-weight: 500; padding: 6px 10px; border-radius: 7px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s var(--ease); z-index: 60; }
  html.sb-collapsed .nav a:hover::after, html.sb-collapsed .nav a:focus-visible::after { opacity: 1; transform: translate(0, -50%); }
  html.sb-collapsed .sb-collapse { justify-content: center; margin: 0 10px 10px; padding: 9px 0; }
  html.sb-collapsed .sb-collapse::after { content: none; }
  html.sb-collapsed .sb-collapse svg { transform: rotate(-90deg); }
  html.sb-collapsed .sidebar-foot { justify-content: center; padding: 14px 0 18px; }
  html.sb-collapsed .sidebar-foot span { display: none; }
}
@media (max-width: 900px) { .sb-collapse { display: none; } }

/* ---------- Filtre kartı */
.fx form { display: block; }
.filters.fx { position: relative; z-index: 15; padding: 0; overflow: visible; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.fx-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: linear-gradient(100deg, var(--brand-50), var(--surface) 55%); flex-wrap: wrap; }
.fx-badge { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-800)); box-shadow: 0 6px 14px -6px rgba(136, 25, 26, .6); flex: none; }
.fx-badge svg { width: 17px; height: 17px; }
.fx-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.fx-title b { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.fx-title > span { font-size: 12.5px; color: var(--muted); }
.fx-pill { font-size: 11px; font-weight: 650; padding: 1px 8px; border-radius: 99px; background: var(--brand); color: #fff; }
.fx-quick { margin-left: auto; }
.fx-toggle { width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); display: grid; place-items: center; cursor: pointer; transition: background .15s, color .15s; }
.fx-toggle:hover { background: var(--brand-50); color: var(--brand-ink); }
.fx-toggle svg { width: 16px; height: 16px; transform: rotate(180deg); transition: transform .25s var(--ease); }
.fx.fx-closed .fx-toggle svg { transform: none; }
.fx.fx-closed .fx-body { display: none; }
.fx.fx-closed .fx-head { border-bottom-color: transparent; border-radius: var(--radius-lg); }
.fx-body { padding: 14px 16px 14px; animation: fade .25s var(--ease); }
.fx-grid { display: grid; grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(160px, 1fr)); gap: 12px; align-items: end; }
.fx-field > .label { font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.fx .ms summary, .fx-range { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 34px 0 7px; border: 1px solid var(--line-strong); border-radius: 11px; background: var(--surface-2); min-width: 0; max-width: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.fx .ms summary { position: relative; background-image: none; }
.fx .ms summary::after { content: ""; position: absolute; right: 13px; top: 50%; width: 7px; height: 7px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.fx .ms[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fx .ms summary:hover, .fx-range:hover { border-color: var(--brand-200); background: var(--surface); }
.fx .ms[open] summary, .fx-range:focus-within { border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.ms-ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--paper); color: var(--muted); flex: none; transition: background .2s, color .2s; }
.ms-ic svg { width: 15px; height: 15px; }
.ms-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; }
.ms-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; flex: none; animation: pop .2s var(--ease); }
.fx-field.is-set .ms summary { border-color: color-mix(in srgb, var(--brand) 45%, var(--line-strong)); background: var(--brand-50); }
.fx-field.is-set .ms-ic { background: var(--brand); color: #fff; }
.fx-field.is-set .ms-text { color: var(--brand-700); font-weight: 600; }
.fx-range { padding-right: 8px; }
.fx-range input[type=month] { border: 0; background: transparent; min-height: 40px; padding: 4px 2px; flex: 1; min-width: 0; box-shadow: none; }
.fx-range input[type=month]:focus { box-shadow: none; }
.fx-arrow { color: var(--faint); font-size: 13px; }
.fx .ms-panel { width: max(100%, 300px); padding: 0; max-height: none; overflow: hidden; border-radius: 12px; }
.ms-head { padding: 8px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ms-head .ms-search { width: 100%; margin-bottom: 6px; min-height: 34px; }
.fx .ms-actions { border: 0; margin: 0; padding: 2px 4px 0; align-items: center; }
.ms-total { font-size: 11.5px; color: var(--faint); }
.ms-note { margin: 6px 4px 0; font-size: 12px; color: var(--brand-700); background: var(--brand-50); border-radius: 7px; padding: 5px 8px; }
.ms-list { max-height: 270px; overflow: auto; padding: 6px; }
.fx .ms-panel label { gap: 10px; padding: 7px 9px; transition: background .12s; }
.fx .ms-panel label:has(input:checked) { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.fx .ms-panel input[type=checkbox] { width: 16px; height: 16px; flex: none; }
.ms-panel label.stale em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--amber); background: var(--amber-soft); padding: 1px 6px; border-radius: 99px; white-space: nowrap; }
.ms-empty { margin: 10px 8px; font-size: 12.5px; color: var(--faint); }
.ms.loading summary { background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 10%, transparent), transparent); background-size: 200% 100%; animation: shimmer 1s linear infinite; }
.fx-field.flash .ms summary { animation: flash .7s var(--ease); }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 35%, transparent); } 100% { box-shadow: 0 0 0 8px transparent; } }
.fx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.fx-chips { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 6px 4px 10px; border-radius: 99px; border: 1px solid var(--brand-100); background: var(--brand-50); color: var(--brand-700); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; animation: pop .2s var(--ease); transition: background .15s, transform .15s, opacity .15s; }
.chip span { font-weight: 500; color: var(--muted); }
.chip svg { width: 14px; height: 14px; padding: 2px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 12%, transparent); }
.chip:hover { background: var(--brand-100); }
.chip:hover svg { background: var(--brand); color: #fff; }
.chip.removing { opacity: .35; transform: scale(.94); }
.fx-hint { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--faint); }
.fx-hint svg { width: 15px; height: 15px; }
.fx .filter-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 1280px) { .fx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .fx-period { grid-column: span 3; } }
@media (max-width: 700px) { .fx-grid { grid-template-columns: 1fr; } .fx-period { grid-column: auto; } .fx-quick { margin-left: 0; order: 5; width: 100%; } .fx-quick button { flex: 1; } }

/* ---------- Yükleme geçmişi */
.hist-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 18px 10px; align-items: center; }
.hf-search, .hf-select { position: relative; display: flex; align-items: center; }
.hf-search { flex: 1 1 260px; }
.hf-search svg, .hf-select svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.hf-search input { width: 100%; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; min-height: 40px; padding: 7px 12px 7px 36px; transition: border-color .15s, box-shadow .15s, background .15s; }
.hf-search input:focus { outline: none; background: var(--surface); border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.hf-select select { padding-left: 34px; min-height: 40px; border-radius: 10px; background-color: var(--surface-2); min-width: 210px; }
.status-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 14px; }
.status-chips a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 6px 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 12.5px; transition: background .15s, color .15s, border-color .15s; }
.status-chips a:hover { text-decoration: none; border-color: var(--brand-200); color: var(--brand-ink); }
.status-chips a b { font-size: 11px; background: var(--paper); color: var(--text); border-radius: 99px; padding: 1px 7px; }
.status-chips a i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.status-chips .st-chip-imported i { background: var(--ok); }
.status-chips .st-chip-validated i { background: var(--brand); }
.status-chips .st-chip-failed i { background: var(--err); }
.status-chips .st-chip-uploaded i { background: var(--muted); }
.status-chips a.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.status-chips a.on b { background: rgba(255, 255, 255, .22); color: #fff; }
.status-chips a.on i { background: #fff; }
.bulk-bar { display: flex; align-items: center; gap: 12px; padding: 9px 18px; background: var(--brand-50); border-top: 1px solid var(--brand-100); border-bottom: 1px solid var(--brand-100); font-size: 13px; color: var(--brand-700); position: sticky; top: 64px; z-index: 5; animation: rise .25s var(--ease); }
.bulk-bar > span { flex: 1; }
.bulk-bar svg { width: 15px; height: 15px; }
.hist-table th, .hist-table td { white-space: nowrap; }
.hist-table th.sel, .hist-table td.sel { width: 38px; padding-right: 0; }
.hist-table input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.hist-table td.act { width: 46px; text-align: right; }
.hist-table td.act form { margin: 0; }
.hist-table tr.selected td { background: var(--brand-50); }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--faint); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn.danger:hover, .icon-btn.danger:focus-visible { background: var(--err-soft); color: var(--err); border-color: var(--err-line); }
.hist-table tbody tr .icon-btn { opacity: .55; }
.hist-table tbody tr:hover .icon-btn, .hist-table .icon-btn:focus-visible { opacity: 1; }
.empty-row { text-align: center; padding: 30px 12px !important; color: var(--faint); }
.empty-row svg { width: 28px; height: 28px; display: block; margin: 0 auto 8px; }
.hist-note { padding: 4px 18px 16px; margin: 0; }
.danger-zone { border-color: var(--err-line); }
.danger-zone .panel-head { background: linear-gradient(100deg, var(--err-soft), var(--surface) 60%); }
.danger-zone .panel-head h2 { color: var(--err); }
.btn-danger svg { width: 15px; height: 15px; }
.btn-danger.btn-sm, .bulk-bar .btn-danger { background: var(--err); color: #fff; border-color: var(--err); }
.bulk-bar .btn-danger:hover { background: #8f1c13; }


/* ---------- Sade düzen: 3'lü KPI satırı, kişi listeleri, kıyas tablosu */
.kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -6px; }
.tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; margin-left: 6px; border-radius: 99px; background: var(--paper); color: var(--muted); font-size: 11.5px; font-weight: 700; }
[role="tab"][aria-selected="true"] .tab-count { background: var(--brand); color: #fff; }
.list-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.list-head > span:first-child { margin-right: 4px; }
.list-head b { color: var(--text); }
.list-search { position: relative; margin-left: auto; display: flex; align-items: center; min-width: 240px; }
.list-search svg { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--faint); pointer-events: none; }
.list-search input { width: 100%; font: inherit; font-size: 13px; min-height: 34px; padding: 5px 10px 5px 32px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface-2); color: var(--text); }
.list-search input:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent); }
.pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.pill-sep { background: var(--sep-soft); color: var(--sep); border-color: var(--sep-line); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.tag-voluntary { background: var(--sep-soft); color: var(--sep); }
.tag-involuntary { background: var(--slate-soft); color: var(--cost-2); }
.tag-excluded { background: var(--tag-ex-bg); color: var(--tag-ex-ink); }
.tag-unknown { background: var(--paper); color: var(--faint); }
.people td { white-space: nowrap; }
.people td.reason-cell { white-space: normal; min-width: 220px; max-width: 360px; font-size: 12.5px; }
.people tbody tr { transition: background .12s; }
.people tbody tr:hover td { background: var(--brand-50); }
.scroll-y { max-height: 520px; overflow-y: auto; }
.scroll-y thead th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); }
.reason-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.reason-list li { display: flex; flex-direction: column; gap: 5px; }
.rl-top { display: flex; justify-content: space-between; align-items: center; }
.rl-top b { font-size: 15px; font-variant-numeric: tabular-nums; }
.rl-label { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.rl-bar { display: block; height: 5px; border-radius: 99px; background: var(--paper); overflow: hidden; }
.rl-bar i { display: block; height: 100%; border-radius: 99px; animation: growx .6s var(--ease) both; transform-origin: left; }
.rl-bar i.tag-voluntary { background: var(--sep); } .rl-bar i.tag-involuntary { background: var(--cost-2); }
.rl-bar i.tag-excluded { background: var(--cost-3); } .rl-bar i.tag-unknown { background: var(--line-strong); }
.stat-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; animation: rise .45s var(--ease) both; }
.stat-strip > div { padding: 14px 18px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-strip > div:last-child { border-right: 0; background: linear-gradient(120deg, var(--brand-50), var(--surface)); }
.stat-strip span { font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.stat-strip b { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bench-table td, .bench-table th { padding-top: 12px; padding-bottom: 12px; white-space: nowrap; }
.bench-table td:first-child { white-space: normal; min-width: 220px; }
.nowrap-first td:first-child, .nowrap-first th { white-space: nowrap; }
.bench-table .co-link { font-weight: 600; color: var(--text); }
.bench-table .co-link:hover { color: var(--brand-ink); }
.bench-table tbody tr:hover td { background: var(--brand-50); }
.hi-bad { color: var(--err); font-weight: 700; } .hi-good { color: var(--ok); font-weight: 700; }
.vs { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 650; font-size: 12.5px; background: var(--paper); color: var(--muted); }
.vs-up { background: var(--err-soft); color: var(--err); } .vs-down { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 1180px) { .kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stat-strip > div:nth-child(3) { border-right: 0; } .stat-strip > div:nth-child(n+4) { border-top: 1px solid var(--line); } }
@media (max-width: 700px) { .kpis.kpis-3 { grid-template-columns: 1fr; } .stat-strip { grid-template-columns: 1fr 1fr; } .stat-strip > div { border-right: 0; border-top: 1px solid var(--line); } .list-search { margin-left: 0; width: 100%; } }

[hidden] { display: none !important; }

/* Veri kapsamı: yıl seçimi ve tam genişlik matris */
.year-seg a[aria-current="true"] { background: var(--brand); color: #fff; }
.year-seg a[aria-current="true"]:hover { background: var(--brand-700); color: #fff; }
.matrix-year { width: 100%; table-layout: fixed; min-width: 640px; }
.matrix-year th.co { width: 30%; max-width: none; }
.matrix-year td { width: auto; }
.matrix-year td:hover { transform: none; filter: brightness(.97); }

/* Şirket silme */
.row-actions { white-space: nowrap; text-align: right; }
.row-actions > * { vertical-align: middle; }
.btn-danger-text { color: var(--err) !important; }
.btn-danger-text:hover { background: var(--err-soft) !important; }
.del-pop { display: inline-block; position: relative; }
.del-pop > summary { list-style: none; }
.del-pop > summary::-webkit-details-marker { display: none; }
.del-pop-body { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 300px; display: grid; gap: 8px; padding: 14px; background: var(--surface); border: 1px solid var(--err-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(17, 24, 39, .14); white-space: normal; text-align: left; font-size: 12.5px; }
.del-pop-body p { margin: 0; color: var(--text); line-height: 1.45; }
.del-pop-body input { width: 100%; }
.panel-danger { border-color: var(--err-line); }
.panel-danger .panel-head h2 { color: var(--err); }
.co-cell { min-width: 260px; }
.co-cell b { font-weight: 600; }
.co-cell .small { display: block; margin-top: 2px; }

/* Giriş doğrulama (iki adımlı) */
.otp-badge { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-50); color: var(--brand-ink); margin-bottom: 14px; }
.otp-badge svg { width: 24px; height: 24px; }
.otp-input { width: 100%; font-size: 26px !important; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; min-height: 54px !important; }
.otp-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.otp-actions form { margin: 0; }
.otp-actions svg { width: 14px; height: 14px; }

/* Ayarlar: gelişmiş bölüm */
.settings-form { display: grid; gap: 16px; }
details.adv { border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
details.adv > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; list-style: none; display: block; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::before { content: "▸ "; color: var(--muted); }
details.adv[open] > summary::before { content: "▾ "; }
details.adv > summary .help { font-weight: 400; display: block; margin: 2px 0 0 14px; }
details.adv .adv-body { display: grid; gap: 16px; padding: 4px 14px 14px; }

/* Yedekler */
.kv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kv-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; }
.kv-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-list span { color: var(--muted); }
.row-actions .btn svg { width: 14px; height: 14px; }

/* Toplu yükleme */
.upload-form { display: grid; gap: 12px; }
.dz-files { display: block; margin-top: 6px; color: var(--brand-700); font-weight: 600; word-break: break-word; }
.bulk-result { margin-bottom: 16px; border-color: var(--brand-100); }
.st-failed { background: var(--err-soft); color: var(--err); }
.settings-form .check-grid { max-height: none; overflow: visible; }

/* ---------- Tasarım düzeltmeleri (v9) */
.g-1 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1025px) { .shell { background: linear-gradient(to right, var(--surface) var(--sidebar), transparent var(--sidebar)); } }
.upload-form { grid-template-columns: minmax(0, 1fr); }
.upload-form > * { min-width: 0; }
.dropzone { position: relative; }
.dropzone .dz-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone .dz-btn { margin-top: 12px; pointer-events: none; }
.dropzone:focus-within { border-color: var(--brand); }
.people td { white-space: normal; }
.people td:first-child, .people td[data-v] { white-space: nowrap; }
.people td.reason-cell { min-width: 200px; max-width: 300px; }
.people td.muted { min-width: 120px; }
.list-note { margin: 0; padding: 8px 16px; font-size: 12.5px; color: var(--amber); background: var(--amber-soft); border-bottom: 1px solid var(--line); }
.code-pick summary { cursor: pointer; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); }
.code-pick summary::-webkit-details-marker { display: none; }
.code-pick summary .chip { display: inline-flex; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--brand-50); color: var(--brand-700); }
.code-pick summary .none { color: var(--faint); font-size: 13px; }
.code-pick summary .edit { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--brand-ink); }
.code-pick[open] summary .edit::after { content: " ▲"; }
.code-pick:not([open]) summary .edit::after { content: " ▼"; }
.code-pick .check-grid { margin-top: 10px; }
.data-fresh { font-size: 12.5px; color: var(--muted); }

/* ---------- Genel Bakış: personel özlük (v10) */
.kpis.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpis-6 .kpi-value { font-size: 26px; }
.kpis-6 .kpi.featured .kpi-value { font-size: 30px; }
.kpis-6 .kpi-value.na { font-size: 15px; font-weight: 600; color: var(--faint); padding: 8px 0 3px; }
.kpi.k-female .kpi-icon { background: var(--female-soft); color: var(--female-ink); }
.kpi.k-male .kpi-icon { background: var(--male-soft); color: var(--male-ink); }
.kpi.k-age .kpi-icon { background: var(--amber-soft); color: var(--amber); }
.wf-row { margin-bottom: 16px; }
.dist { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.dist li { display: grid; grid-template-columns: minmax(84px, 34%) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; }
.dist-l { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist-bar { height: 10px; border-radius: 6px; background: var(--paper); overflow: hidden; }
.dist-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), #c04a4b); transform-origin: left; animation: growx .8s var(--ease) both; }
.dist-age .dist-bar i { background: linear-gradient(90deg, #b07a1a, #d9a441); }
.dist-ten .dist-bar i { background: linear-gradient(90deg, #2f6b55, #4f9a7c); }
.dist-loc .dist-bar i { background: linear-gradient(90deg, #3d5a80, #6b8bb3); }
.dist-v { display: inline-flex; gap: 6px; align-items: baseline; min-width: 74px; justify-content: flex-end; font-variant-numeric: tabular-nums; }
.dist-v em { font-style: normal; font-size: 11.5px; color: var(--muted); min-width: 30px; text-align: right; }
.gsplit { display: flex; height: 18px; border-radius: 10px; overflow: hidden; background: var(--paper); margin: 6px 0 16px; }
.gsplit i { display: block; height: 100%; transform-origin: left; animation: growx .9s var(--ease) both; }
.g-f { background: linear-gradient(90deg, #c2485c, #d9707f); }
.g-m { background: linear-gradient(90deg, #3d5a80, #5f7fa8); }
.gsplit-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gsplit-legend > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.gsplit-legend .sw { width: 10px; height: 10px; border-radius: 3px; align-self: center; }
.gsplit-legend span:not(.sw) { font-size: 12.5px; color: var(--muted); }
.gsplit-legend b { grid-column: 1 / -1; font-size: 24px; letter-spacing: -.02em; margin-top: 4px; }
.gsplit-legend em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--muted); }
.gmini { display: inline-flex; width: 46px; height: 6px; border-radius: 4px; overflow: hidden; vertical-align: middle; margin-right: 4px; background: var(--paper); }
.gmini i { display: block; height: 100%; }
.empty-mini { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.empty-mini svg { width: 20px; height: 20px; flex: none; color: var(--faint); margin-top: 1px; }
.empty-mini p { margin: 0; line-height: 1.5; }
.empty-mini b { color: var(--text); }
.wf-table td:first-child { white-space: normal; min-width: 180px; }
.share-col { min-width: 150px; }
.share-col .share { display: inline-block; width: 90px; height: 7px; border-radius: 4px; background: var(--paper); overflow: hidden; vertical-align: middle; margin-right: 8px; }
.share-col .share i { display: block; height: 100%; background: var(--brand); border-radius: 4px; }
.share-col em { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pill-amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; margin-left: 6px; font-size: 11px; }
.wf-table tfoot td { font-weight: 700; border-top: 2px solid var(--line); background: var(--surface-2); }
@media (max-width: 1280px) { .kpis.kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .kpis.kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis-6 .kpi.featured { grid-column: 1 / -1; } .share-col .share { width: 50px; } }

/* ---------- Maliyet: ödeme kalemleri kartları (v10) */
.pay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
@media (max-width: 1100px) { .pay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pay-grid { grid-template-columns: 1fr; } }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 2px 10px; }
.section-title h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.pay-grid .pay-card .info-tip { margin-left: auto; }
.kpis-6 .kpi-label { white-space: nowrap; min-width: 0; }
.kpis-6 .kpi-label > span:not(.kpi-icon) { overflow: hidden; text-overflow: ellipsis; }
.kpis-6 .kpi-foot { font-size: 12px; }
.kpis-6 .kpi-label .info-tip { display: none; }
@media (max-width: 700px) { .kpis-6 .kpi:last-child { grid-column: 1 / -1; } }

/* v11: Özlük bilgileri ve emekli oranı */
.data-tabs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 16px; box-shadow: var(--shadow-sm); padding: 0 8px; }
.data-tabs a { display: inline-flex; align-items: center; gap: 7px; }
.data-tabs a svg { width: 16px; height: 16px; opacity: .8; }
.g-n { background: linear-gradient(90deg, #2f6f5a, #4f9a80); }
.g-r { background: linear-gradient(90deg, #b7791f, #d9a24a); }
.profile-result { margin-bottom: 16px; border-color: var(--brand-100); }
.pr-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pr-stats > div { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: linear-gradient(180deg, var(--surface), var(--surface-2)); min-width: 0; }
.pr-stats span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 550; }
.pr-stats strong { display: block; font-size: 22px; font-weight: 750; letter-spacing: -.02em; margin: 5px 0 3px; font-variant-numeric: tabular-nums; }
.pr-stats strong em { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 600; }
.pr-stats small { color: var(--muted); font-size: 12px; }
.pr-stats .pr-match { border-color: var(--brand-100); background: linear-gradient(180deg, var(--brand-50), var(--surface)); }
.cov-table td.cv-cell { white-space: nowrap; }
.cv { display: inline-block; vertical-align: middle; width: 52px; height: 7px; border-radius: 5px; background: var(--paper); overflow: hidden; margin-right: 8px; }
.cv i { display: block; height: 100%; border-radius: 5px; transform-origin: left; animation: growx .9s var(--ease) both; }
.cv-ok i { background: linear-gradient(90deg, #2f6f5a, #4f9a80); }
.cv-mid i { background: linear-gradient(90deg, #b7791f, #d9a24a); }
.cv-low i { background: linear-gradient(90deg, var(--brand), #c04a4b); }
.cv-cell b { font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pr-info { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-strong); }
.pr-info h3 { font-size: 13px; margin: 0 0 10px; }
.pr-info ul { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.pr-info li { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.pr-info li svg { width: 16px; height: 16px; color: var(--brand-ink); flex: none; }
@media (max-width: 1100px) { .pr-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .pr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cov-table .co-cell { min-width: 190px; }

/* v12: Kıdem / İhbar */
.sev-toolbar { margin-bottom: 16px; }
.sev-tools { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 13px 18px; }
.sev-tool { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.sev-tool-l { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.sev-periods { flex-wrap: wrap; }
.sev-periods a { padding: 7px 14px; font-size: 13px; }
.sev-tool-co select { min-width: 260px; max-width: 100%; }
.kpis.kpis-5 { grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)); }
.kpis-5 .kpi-value { font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpis-5 .kpi.featured .kpi-value { font-size: 30px; }
.kpis-5 .kpi-label { white-space: nowrap; min-width: 0; }
.kpis-5 .kpi-label > span:not(.kpi-icon) { overflow: hidden; text-overflow: ellipsis; }
.kpis-5 .kpi-foot { font-size: 12px; }
.kpi.k-sev .kpi-icon { background: var(--brand-50); color: var(--brand-ink); }
.kpi.k-not .kpi-icon { background: var(--male-soft); color: var(--male-ink); }
.kpi.k-avg .kpi-icon { background: var(--amber-soft); color: var(--amber); }
.sev-row { margin-bottom: 16px; }
.sev-table td.n, .sev-table th.n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sev-table td.strong { font-weight: 700; color: var(--text); }
.sev-table tfoot th, .sev-table tfoot td { background: var(--surface-2); font-weight: 700; border-top: 1px solid var(--line-strong); }
.sev-no { display: block; margin-top: 2px; font-weight: 400; }
.sev-left td { background: color-mix(in srgb, var(--amber-soft) 35%, transparent); }
.sev-scroll { max-height: 420px; }
.sev-people { max-height: 640px; }
.sev-empty { text-align: center; padding: 44px 20px; }
.sev-empty-sm { padding: 26px 18px; }
.sev-empty h2 { margin: 12px 0 6px; font-size: 18px; }
.sev-empty p { max-width: 560px; margin: 0 auto 18px; }
.sev-empty-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--brand-50); color: var(--brand-ink); }
.sev-empty-ic svg { width: 26px; height: 26px; }
.pr-stats.pr-stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1280px) { .kpis.kpis-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kpis-5 .kpi.featured { grid-column: span 3; } }
@media (max-width: 700px) { .kpis.kpis-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpis-5 .kpi.featured { grid-column: 1 / -1; } .pr-stats.pr-stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sev-tool-co select { min-width: 0; width: 100%; } .sev-tool-co { width: 100%; } }
@media (max-width: 700px) { .kpis-5 .kpi-value { font-size: 19px; } .kpis-5 .kpi.featured .kpi-value { font-size: 28px; } }

/* v13 · Genel Bakış: eksik özlük göstergeleri tek satırda, emekli kapsamı */
.kpis.kpis-ov3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.missing-strip { display: flex; align-items: center; gap: 12px; margin: -6px 0 20px; padding: 11px 14px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.missing-strip .ms-i { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); flex: none; }
.missing-strip .ms-i svg { width: 16px; height: 16px; }
.missing-strip p { margin: 0; flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; }
.missing-strip p .muted { display: block; font-size: 12px; }
.missing-strip .btn { flex: none; }
.law-cov { margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.law-cov-top { display: flex; align-items: baseline; gap: 8px; font-size: 12.5px; color: var(--muted); }
.law-cov-top span { flex: 1; }
.law-cov-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.law-cov-top em { font-style: normal; font-weight: 700; color: var(--amber); font-variant-numeric: tabular-nums; }
.law-cov.is-full .law-cov-top em { color: var(--ok); }
.law-cov.is-low { background: var(--amber-soft); border-color: var(--amber-line); }
.law-cov-bar { height: 5px; margin-top: 7px; border-radius: 3px; background: var(--line); overflow: hidden; }
.law-cov-bar i { display: block; height: 100%; min-width: 2px; background: var(--amber); border-radius: 3px; }
.law-cov.is-full .law-cov-bar i { background: var(--ok); }
.law-cov p { display: flex; gap: 7px; margin: 9px 0 0; font-size: 12px; line-height: 1.45; color: var(--text); }
.law-cov p svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--amber); }
@media (max-width: 700px) { .kpis.kpis-ov3 { grid-template-columns: 1fr 1fr; } .kpis-ov3 .kpi.featured { grid-column: 1 / -1; } .missing-strip { flex-wrap: wrap; } .missing-strip .btn { width: 100%; justify-content: center; } }

/* v13 · Tema seçimi ve karanlık tema ayrıntıları */
.theme-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; flex: none; padding: 0; transition: background .15s, color .15s, border-color .15s; }
.theme-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
.theme-btn svg { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }
.theme-opts { display: flex; gap: 4px; padding: 2px 10px 8px; }
.theme-opts button { flex: 1; text-align: center; font: inherit; font-size: 12px; padding: 5px 0; border-radius: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.theme-opts button:hover { color: var(--text); border-color: var(--line-strong); }
.theme-opts button[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.theme-lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 8px 10px 4px; }
:root[data-theme="dark"] .brand-full { filter: brightness(0) invert(.94); }
:root[data-theme="dark"] .brand-mark { filter: brightness(1.7) saturate(.85); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
  :root:not([data-theme="light"]) .brand-full { filter: brightness(0) invert(.94); }
  :root:not([data-theme="light"]) .brand-mark { filter: brightness(1.7) saturate(.85); }
}

/* Test ortamı etiketi */
.badge-test { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 99px; background: #2563eb; color: #fff; }

/* v14 · İK Asistanı */
.asst { display: flex; flex-direction: column; height: calc(100vh - 128px); min-height: 520px; max-width: 1080px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.asst-log { flex: 1; overflow-y: auto; padding: 22px 22px 10px; display: flex; flex-direction: column; gap: 18px; scroll-behavior: smooth; }
.asst-msg { display: flex; gap: 12px; align-items: flex-start; animation: rise .35s var(--ease) both; }
.asst-msg.user { justify-content: flex-end; }
.asst-bubble { max-width: 72%; background: var(--brand); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; font-size: 14px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.asst-av { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--brand), var(--brand-800)); box-shadow: 0 6px 14px -8px rgba(136, 25, 26, .7); }
.asst-av svg { width: 18px; height: 18px; }
.asst-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.asst-text { margin: 0; line-height: 1.55; white-space: pre-line; }
.asst-title { margin: 0; font-size: 15px; font-weight: 650; }
.asst-ex { display: flex; flex-wrap: wrap; gap: 8px; }
.asst-ex .chip { font: inherit; font-size: 12.5px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.asst-ex .chip:hover { border-color: var(--brand); background: var(--primary-soft); color: var(--brand-ink); }
.asst-person { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.asst-person b { display: block; font-size: 15px; }
.asst-person small { display: block; color: var(--muted); font-size: 12.5px; }
.asst-ini { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--brand-ink); font-weight: 700; font-size: 13px; }
.asst-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.asst-card { position: relative; padding: 12px 14px 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.asst-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--line-strong); }
.asst-card.t-brand::before { background: var(--brand); }
.asst-card.t-sev::before { background: var(--hire); }
.asst-card.t-not::before { background: var(--sep); }
.asst-card.t-total { background: var(--primary-soft); border-color: transparent; }
.asst-card.t-total::before { background: var(--brand); }
.ac-l { display: block; font-size: 12px; color: var(--muted); }
.ac-v { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.01em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ac-v.muted { font-size: 15px; font-weight: 600; color: var(--faint); }
.ac-s { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.asst-table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.asst-table .at-title { padding: 9px 12px; font-size: 12.5px; font-weight: 650; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.asst-table .table-wrap { max-height: 360px; overflow: auto; }
.asst-table table.data { margin: 0; font-size: 13px; }
.asst-table table.data tfoot th, .asst-table table.data tfoot td { font-weight: 700; background: var(--surface-2); }
.asst-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.asst-choice { text-align: left; font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.asst-choice:hover:not(:disabled) { border-color: var(--brand); background: var(--primary-soft); }
.asst-choice b { display: block; font-size: 14px; }
.asst-choice small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.asst-choice:disabled { opacity: .5; cursor: default; }
.asst-choice.on { opacity: 1; border-color: var(--brand); background: var(--primary-soft); }
.asst-note { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.45; }
.asst-note .an-i svg, .asst-src .an-i svg { width: 15px; height: 15px; display: block; margin-top: 2px; }
.asst-note.n-info { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.asst-note.n-warn { background: var(--amber-soft); color: var(--text); border: 1px solid var(--amber-line); }
.asst-note.n-warn .an-i { color: var(--amber); }
.asst-note.n-error { background: var(--err-soft); color: var(--err); border: 1px solid var(--err-line); }
.asst-src { display: flex; gap: 6px; align-items: flex-start; font-size: 11.5px; color: var(--faint); }
.asst-typing { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.asst-typing::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.asst-form { display: flex; gap: 10px; align-items: flex-end; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.asst-form textarea { flex: 1; resize: none; min-height: 44px; max-height: 140px; padding: 11px 14px; border-radius: 12px; font: inherit; line-height: 1.4; }
.asst-send { height: 44px; padding: 0 16px; border-radius: 12px; display: inline-flex; align-items: center; gap: 7px; }
.asst-send svg { width: 17px; height: 17px; }
.asst-foot { margin: 0; padding: 0 16px 10px; background: var(--surface-2); }
@media (max-width: 700px) {
  .asst { height: calc(100vh - 96px); border-radius: 12px; }
  .asst-log { padding: 14px 12px 8px; }
  .asst-bubble { max-width: 86%; }
  .asst-av { display: none; }
  .asst-send span { display: none; }
  .asst-send { padding: 0 13px; }
  .asst-cards { grid-template-columns: 1fr 1fr; }
  .ac-v { font-size: 17px; }
}
.asst-table th.n { text-align: right; }

/* v15 · İK Asistanı: bağlam, açıklama, bağlantılar, karşılaştırma */
.asst-card.t-up::before { background: var(--amber); }
.asst-card.t-down::before { background: var(--ok); }
.asst-ctx { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px 4px 8px; border-radius: 99px; font-size: 12px; color: var(--brand-ink); background: var(--primary-soft); }
.asst-ctx .an-i svg { width: 14px; height: 14px; display: block; }
.asst-exp { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 12.5px; }
.asst-exp summary { cursor: pointer; padding: 7px 12px; color: var(--muted); font-weight: 600; list-style: none; display: flex; align-items: center; gap: 6px; }
.asst-exp summary::-webkit-details-marker { display: none; }
.asst-exp summary::before { content: ""; width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.asst-exp[open] summary::before { transform: rotate(45deg); }
.asst-exp summary:hover { color: var(--text); }
.asst-exp ul { margin: 0; padding: 0 14px 10px 30px; color: var(--muted); line-height: 1.5; }
.asst-exp li + li { margin-top: 3px; }
.asst-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.asst-act { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 600; text-decoration: none; transition: border-color .15s, background .15s, color .15s; }
.asst-act:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--primary-soft); }
.asst-act .an-i svg { width: 14px; height: 14px; display: block; }
.asst-act.xls { color: var(--ok); }
.asst-act.xls:hover { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.asst-actions { display: flex; gap: 8px; align-items: flex-end; }
.asst-reset { height: 44px; border-radius: 12px; white-space: nowrap; }
.asst-list { margin: 0; padding-left: 22px; line-height: 1.55; }
.asst-list li + li { margin-top: 3px; }
.asst-text b, .asst-list b { font-weight: 650; }
.asst-sep { align-self: center; font-size: 11.5px; color: var(--faint); padding: 3px 12px; border-radius: 99px; border: 1px dashed var(--line-strong); }
@media (max-width: 700px) {
  .asst-reset { padding-inline: 8px; font-size: 12.5px; }
}
.dept-pick { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; background: var(--surface-2); }
.dept-pick summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.dept-pick .badge { display: inline-block; font-size: 11px; font-weight: 650; padding: 1px 8px; border-radius: 99px; background: var(--primary-soft); color: var(--brand-ink); margin-left: 4px; }

/* Rol ve yetki matrisi düzenleme */
.role-matrix input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--brand-700, #88191a); cursor: pointer; }
.role-matrix td.perm-changed { background: var(--amber-soft); }
.role-matrix .panel-foot { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.role-matrix .panel-foot > span { flex: 1 1 360px; }
.role-matrix-actions { display: flex; gap: 8px; }

/* Norm kadro */
.nk-scroll { max-height: 640px; }
.nk-in { width: 84px; text-align: right; padding: 4px 8px; font: inherit; font-variant-numeric: tabular-nums; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--text); }
.nk-in:focus { outline: 2px solid var(--brand-200); border-color: var(--brand); }
.nk-st { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 99px; white-space: nowrap; background: var(--paper); color: var(--muted); }
.nk-st-open { background: var(--err-soft); color: var(--err); }
.nk-st-over { background: var(--amber-soft); color: var(--amber); }
.nk-st-ok { background: var(--ok-soft); color: var(--ok); }
tr.nk-none td { color: var(--muted); }
.nk-foot { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.nk-foot > span { flex: 1 1 360px; }
.nk-actions, .nk-import, .nk-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nk-import { justify-content: space-between; }
.nk-bars { padding: 26px 4px 28px; }
.nk-plot { position: relative; display: flex; align-items: flex-end; gap: 10px; height: 170px; }
.nk-bar { flex: 1 1 0; height: 100%; display: flex; justify-content: center; align-items: flex-end; position: relative; min-width: 0; }
.nk-bar span { position: relative; display: block; width: 100%; max-width: 46px; min-height: 2px; border-radius: 6px 6px 2px 2px; background: var(--brand-100); }
.nk-bar.nk-u span { background: color-mix(in srgb, var(--err) 35%, transparent); }
.nk-bar.nk-o span { background: color-mix(in srgb, var(--amber) 45%, transparent); }
.nk-bar.nk-k span { background: color-mix(in srgb, var(--ok) 45%, transparent); }
.nk-bar.on span { outline: 2px solid var(--brand); outline-offset: 1px; }
.nk-bar b { position: absolute; top: 4px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nk-bar small { position: absolute; bottom: -21px; font-size: 11px; color: var(--muted); white-space: nowrap; }
.nk-norm { position: absolute; left: 0; right: 0; border-top: 2px dashed var(--brand); z-index: 1; pointer-events: none; }
.nk-norm i { position: absolute; left: 0; top: -19px; font-style: normal; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--surface); padding: 0 4px; }
@media (max-width: 720px) { .nk-bars { gap: 4px; } .nk-bar b { font-size: 10px; } .nk-bar small { font-size: 9.5px; } }
.nk-panel { margin-top: 16px; }
.nk-dep { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nk-src { display: block; margin-top: 2px; }
.nk-menu { position: relative; flex: none; }
.nk-menu summary { list-style: none; cursor: pointer; width: 28px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); font-weight: 700; letter-spacing: 1px; }
.nk-menu summary::-webkit-details-marker { display: none; }
.nk-menu summary:hover, .nk-menu[open] summary { background: var(--brand-50); color: var(--brand-ink); }
.nk-pop { position: absolute; z-index: 20; left: 0; top: 30px; width: 300px; padding: 12px; display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.14); white-space: normal; }
.nk-pop-row { display: flex; gap: 6px; }
.nk-pop-row input { flex: 1; min-width: 0; padding: 6px 9px; font: inherit; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--surface); color: var(--text); }
.nk-del { justify-self: start; color: var(--err); }
.nk-in.nk-manual { border-color: var(--amber); background: var(--amber-soft); font-weight: 600; }
.nk-flag { display: block; font-size: 10.5px; color: var(--amber); font-weight: 600; white-space: nowrap; margin-top: 2px; }

/* İK Asistanı: arka planda yavaşça yükselen baloncuklar (dekoratif; düşük hareket tercihinde durur) */
.asst { position: relative; isolation: isolate; }
.asst > *:not(.asst-bg) { position: relative; z-index: 1; }
.asst-log { background: transparent; }
.asst-form { background: color-mix(in srgb, var(--surface-2) 82%, transparent); backdrop-filter: blur(6px); }
.asst-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: radial-gradient(120% 70% at 100% 0%, color-mix(in srgb, var(--brand) 6%, transparent), transparent 60%),
              radial-gradient(90% 60% at 0% 100%, color-mix(in srgb, var(--brand) 5%, transparent), transparent 60%); }
.asst-bg i { position: absolute; bottom: calc(var(--s) * -1.2); width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.75), color-mix(in srgb, var(--brand) 16%, transparent) 42%, color-mix(in srgb, var(--brand) 7%, transparent) 70%);
  border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  opacity: 0; animation: asst-bubble var(--t) linear var(--d) infinite; will-change: transform, opacity; }
@keyframes asst-bubble {
  0%   { transform: translate3d(0, 0, 0) scale(.85); opacity: 0; }
  10%  { opacity: .65; }
  50%  { transform: translate3d(18px, -55vh, 0) scale(1); }
  85%  { opacity: .5; }
  100% { transform: translate3d(-12px, -110vh, 0) scale(1.08); opacity: 0; }
}
.asst.thinking .asst-bg i { animation-duration: calc(var(--t) / 3); }
:root[data-theme="dark"] .asst-bg i { background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.22), color-mix(in srgb, var(--brand) 22%, transparent) 45%, transparent 72%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .asst-bg i { background: radial-gradient(circle at 32% 30%, rgba(255,255,255,.22), color-mix(in srgb, var(--brand) 22%, transparent) 45%, transparent 72%); } }
@media (prefers-reduced-motion: reduce) { .asst-bg i { opacity: .5; } }

/* ---------- Sayfa geçişleri: menüde sayfa değişince içerik hafifçe kayarak gelir ---------- */
@view-transition { navigation: auto; }
.content { view-transition-name: page-content; }
.sidebar { view-transition-name: sidebar; }
.topbar { view-transition-name: topbar; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(sidebar), ::view-transition-new(sidebar), ::view-transition-old(topbar), ::view-transition-new(topbar) { animation: none; }
::view-transition-old(page-content) { animation: vt-out .16s ease-in both; }
::view-transition-new(page-content) { animation: vt-in .34s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@supports not (view-transition-name: none) {
  .content { animation: vt-in .34s cubic-bezier(.2,.8,.2,1) both; }
}

/* ---------- Vurgu kartında ara sıra geçen ışık parlaması ---------- */
.kpi.featured::before { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 45%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 0%, rgba(255,255,255,.0) 20%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 80%, transparent 100%);
  transform: skewX(-18deg) translateX(0); animation: kpi-shine 9s ease-in-out 2.2s infinite; }
.kpi.featured > * { position: relative; z-index: 1; }
@keyframes kpi-shine { 0% { transform: skewX(-18deg) translateX(0); } 14% { transform: skewX(-18deg) translateX(420%); } 100% { transform: skewX(-18deg) translateX(420%); } }

/* ---------- İK Asistanı: hoş geldin ikonu "nefes alır" ---------- */
.asst-log > .asst-msg.bot:first-child .asst-av { animation: asst-breathe 3.6s ease-in-out .4s 3; }
@keyframes asst-breathe {
  0%, 100% { transform: scale(1); box-shadow: 0 6px 14px -8px rgba(136, 25, 26, .7), 0 0 0 0 color-mix(in srgb, var(--brand) 0%, transparent); }
  50% { transform: scale(1.08); box-shadow: 0 8px 18px -8px rgba(136, 25, 26, .8), 0 0 0 9px color-mix(in srgb, var(--brand) 12%, transparent); }
}

/* ---------- Genel bakış: kişisel karşılama şeridi ---------- */
.greet { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 16px; padding: 16px 20px;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: radial-gradient(120% 160% at 0% 0%, color-mix(in srgb, var(--brand) 9%, var(--surface)) 0%, var(--surface) 55%); box-shadow: var(--shadow-sm); }
.greet-hello { margin: 0 0 4px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.greet-wave { display: inline-block; transform-origin: 70% 80%; animation: greet-wave 1.6s ease-in-out .5s 2; font-size: 18px; }
@keyframes greet-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-8deg); } }
.greet-sum { margin: 0; color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.greet-sum > b { color: var(--text); }
.greet-fact b { color: var(--text); font-variant-numeric: tabular-nums; font-size: 14.5px; }
.gf-hire b { color: var(--ok); } .gf-sep b { color: var(--err); }
a.greet-fact { color: var(--brand-ink); text-decoration: none; border-bottom: 1px dashed currentColor; }
a.greet-fact b { color: inherit; }
.greet-sep { color: var(--faint); }
.greet-season-msg { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--brand-ink); padding: 7px 12px; border-radius: 99px; background: var(--brand-50); }
.greet-10kasim .greet-season-msg, .greet-15temmuz .greet-season-msg { background: var(--paper); color: var(--text); }

/* ---------- Bayrak ve özel gün şeritleri ---------- */
.tr-flag { width: 27px; height: 18px; flex: none; border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.greet-flag { width: 30px; height: 20px; }
.tr-flag.wave, .greet-flag { transform-origin: left center; animation: flag-wave 2.6s ease-in-out infinite; }
@keyframes flag-wave { 0%, 100% { transform: perspective(60px) rotateY(0deg) skewY(0deg); } 50% { transform: perspective(60px) rotateY(-14deg) skewY(2deg); } }
.season-strip { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 9px 12px 9px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  color: var(--brand-ink); background: linear-gradient(90deg, var(--brand-50), var(--surface)); border: 1px solid var(--brand-100); transition: opacity .25s, transform .25s; }
.season-strip > span { flex: 1; }
.season-strip.solemn { color: var(--text); background: var(--paper); border-color: var(--line); }
.season-strip.closing { opacity: 0; transform: translateY(-6px); }
.season-x { border: 0; background: transparent; color: inherit; font-size: 18px; line-height: 1; width: 26px; height: 26px; border-radius: 7px; cursor: pointer; opacity: .7; }
.season-x:hover { background: rgba(0,0,0,.06); opacity: 1; }
.season-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: 12px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(4px); }
.season-card p { margin: 0; font-size: 14px; font-weight: 600; color: #fff; line-height: 1.4; }
.season-card .tr-flag { width: 39px; height: 26px; }
.season-mobile { display: none; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--brand-ink); padding: 8px 12px; border-radius: 10px; background: var(--brand-50); margin-bottom: 16px; }
@media (max-width: 900px) { .season-mobile { display: flex; } }

/* ---------- Efekt katmanları (kar, balon, konfeti, kandil ışığı) ---------- */
.fx-layer { position: fixed; inset: 0; z-index: 60; pointer-events: none; overflow: hidden; transition: opacity 1.1s ease; }
.fx-layer.fx-out { opacity: 0; }
.fx-layer i { position: absolute; top: 0; display: block; will-change: transform, opacity; }
.fx-snow { width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(160,190,230,.9); top: -12px !important; animation: fx-fall var(--t) linear var(--d) infinite; }
:root:not([data-theme="dark"]) .fx-snow { background: #eaf3ff; box-shadow: 0 0 0 1px rgba(120,150,200,.35), 0 0 6px rgba(120,160,220,.6); }
@keyframes fx-fall { from { transform: translate3d(0, -20px, 0); } to { transform: translate3d(var(--x), 105vh, 0); } }
.fx-balloon { width: var(--s); height: calc(var(--s) * 1.22); top: auto !important; bottom: -80px; border-radius: 50% 50% 48% 48% / 55% 55% 45% 45%;
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.7), transparent 30%), var(--c); box-shadow: inset -4px -6px 10px rgba(0,0,0,.12); opacity: .92;
  animation: fx-rise var(--t) ease-in var(--d) both; }
.fx-balloon::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 46px; background: rgba(0,0,0,.25); }
@keyframes fx-rise { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(calc(var(--x) * -1), -55vh, 0) rotate(-4deg); } 100% { transform: translate3d(var(--x), -115vh, 0) rotate(4deg); } }
.fx-conf { width: var(--w); height: var(--h); top: -20px !important; background: var(--c); border-radius: 2px; box-shadow: 0 0 0 .5px rgba(0,0,0,.08);
  animation: fx-conf var(--t) cubic-bezier(.25,.5,.5,1) var(--d) both; }
@keyframes fx-conf { 0% { transform: translate3d(0, -20px, 0) rotate(0); opacity: 1; } 85% { opacity: 1; } 100% { transform: translate3d(var(--x), 102vh, 0) rotate(var(--r)); opacity: 0; } }
.fx-light { width: var(--s); height: var(--s); top: auto !important; bottom: -30px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,226,140,.95) 0%, rgba(245,179,1,.55) 40%, transparent 70%); filter: blur(.5px);
  animation: fx-float var(--t) ease-in-out var(--d) infinite; }
@keyframes fx-float { 0% { transform: translate3d(0, 0, 0) scale(.7); opacity: 0; } 15% { opacity: .9; } 50% { transform: translate3d(var(--x), -50vh, 0) scale(1); } 90% { opacity: .6; } 100% { transform: translate3d(calc(var(--x) * -1), -105vh, 0) scale(.8); opacity: 0; } }

/* ---------- İcmal yüklendi: tik rozeti ---------- */
.fx-done { position: fixed; z-index: 70; left: 50%; top: 22%; transform: translate(-50%, 0); display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 30px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 24px 60px -12px rgba(0,0,0,.35);
  animation: fx-pop .45s cubic-bezier(.2,1.4,.4,1) both; transition: opacity .5s, transform .5s; font-weight: 700; color: var(--text); }
.fx-done.fx-out { opacity: 0; transform: translate(-50%, -12px) scale(.96); }
.fx-done svg { width: 64px; height: 64px; }
.fx-done circle { fill: none; stroke: var(--ok); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: fx-draw .6s ease-out .15s forwards; }
.fx-done path { fill: none; stroke: var(--ok); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: fx-draw .35s ease-out .65s forwards; }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
@keyframes fx-pop { from { opacity: 0; transform: translate(-50%, 12px) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .fx-layer { display: none; } .fx-done circle, .fx-done path { stroke-dashoffset: 0; } }

/* ---------- Maaş hesaplama ---------- */
.calc { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 16px; align-items: start; }
.calc-form-panel { position: sticky; top: 84px; }
.calc-form .panel-body { display: grid; gap: 14px; }
.calc-form .field { margin: 0; }
.calc-form .lbl, .calc-form legend { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; padding: 0; }
.calc-form select, .calc-form input[type=search] { width: 100%; }
.calc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.calc-seg { display: flex; width: 100%; }
.calc-seg label { flex: 1; text-align: center; padding: 7px 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; border-right: 1px solid var(--line); transition: background .15s, color .15s; }
.calc-seg label:last-child { border-right: 0; }
.calc-seg label.on, .calc-seg label:has(input:checked) { background: var(--brand); color: #fff; font-weight: 600; }
.calc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.calc-amt { position: relative; }
.calc-amt input { width: 100%; padding: 11px 34px 11px 12px; font: inherit; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--text); }
.calc-amt input:focus { outline: 2px solid var(--brand-200); border-color: var(--brand); }
.calc-amt span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.calc-amt-sm input { font-size: 14px; font-weight: 600; padding: 7px 30px 7px 10px; }
.calc-cum { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.calc-ac { position: relative; }
.calc-ac-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow-lg); max-height: 320px; overflow: auto; }
.calc-ac-list li.muted { padding: 8px 10px; font-size: 13px; }
.calc-ac-list button { display: block; width: 100%; text-align: left; padding: 7px 10px; border: 0; background: transparent; border-radius: 7px; cursor: pointer; font: inherit; color: var(--text); }
.calc-ac-list button:hover, .calc-ac-list button:focus { background: var(--brand-50); outline: none; }
.calc-ac-list b { display: block; font-size: 13.5px; } .calc-ac-list small { display: block; font-size: 11.5px; color: var(--muted); }
.calc-go { width: 100%; justify-content: center; }
.calc-out { display: grid; gap: 16px; min-width: 0; }
.calc-out > .panel { margin: 0; }
.calc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.calc-k { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; box-shadow: var(--shadow-sm); display: grid; gap: 4px; min-width: 0; }
.calc-k span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.calc-k b { font-size: 21px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; overflow-wrap: anywhere; }
.calc-k small { font-size: 11.5px; color: var(--muted); }
.calc-k.hl { background: radial-gradient(120% 140% at 100% 0%, #a3282a 0%, var(--brand) 38%, var(--brand-900) 100%); color: #fff; border-color: transparent; box-shadow: var(--shadow-lg); }
.calc-k.hl span, .calc-k.hl small { color: rgba(255,255,255,.82); }
.calc-break { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-break .panel { margin: 0; }
.calc-tbl td { padding: 8px 16px; }
.calc-tbl tr.sub td { color: var(--muted); font-size: 12.5px; padding-top: 4px; padding-bottom: 4px; }
.calc-tbl tr.sub td:first-child { padding-left: 28px; }
.calc-tbl .neg { color: var(--err); } .calc-tbl .pos { color: var(--ok); }
.calc-tbl tr.total td { font-weight: 700; font-size: 15px; border-top: 2px solid var(--line-strong); background: var(--surface-2); }
.calc-year tr.on td { background: var(--brand-50); }
.calc-year tr.jump td { box-shadow: inset 0 2px 0 var(--amber-line, #f5d38a); }
.calc-jump { color: var(--amber); font-weight: 700; }
.calc-empty .panel-body { text-align: center; padding: 40px 24px; }
.calc-empty h2 { margin: 12px 0 6px; }
.calc-quick { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }
.calc-quick .chip { font-size: 12.5px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); text-decoration: none; }
.calc-quick .chip:hover { border-color: var(--brand); color: var(--brand-ink); }
@media (max-width: 1180px) { .calc { grid-template-columns: 1fr; } .calc-form-panel { position: static; } .calc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .calc-break { grid-template-columns: 1fr; } .calc-grid2 { grid-template-columns: 1fr; } }
.calc-ex { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.calc-ex-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; grid-template-areas: "t a a" "nb mo del"; gap: 6px 8px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.calc-ex-row select { grid-area: t; min-width: 0; }
.calc-ex-row .calc-amt { grid-area: a; }
.calc-ex-row .calc-nb { grid-area: nb; justify-self: start; }
.calc-ex-row .calc-mo { grid-area: mo; margin: 0; font-size: 12.5px; align-self: center; }
.calc-ex-row .calc-ex-del { grid-area: del; justify-self: end; border: 0; background: transparent; color: var(--muted); font-size: 18px; width: 28px; height: 28px; border-radius: 7px; cursor: pointer; }
.calc-ex-row .calc-ex-del:hover { background: var(--err-soft); color: var(--err); }
.calc-nb label { position: relative; padding: 4px 12px; font-size: 12.5px; color: var(--muted); cursor: pointer; border-right: 1px solid var(--line); }
.calc-nb label:last-child { border-right: 0; }
.calc-nb label:has(input:checked) { background: var(--brand); color: #fff; font-weight: 600; }
.calc-nb input { position: absolute; opacity: 0; pointer-events: none; }
.calc-ex-add { justify-self: start; }
.calc-pill { display: inline-block; font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 99px; background: var(--brand-50); color: var(--brand-ink); vertical-align: middle; }

/* ---------- Maaş hesaplama: tablo görünümü ---------- */
.mc { display: grid; gap: 14px; }
.mc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); position: sticky; top: 70px; z-index: 15; }
.mc-mode button { padding: 7px 14px; font-weight: 600; }
.mc-year { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.mc-year svg { width: 15px; height: 15px; }
.mc-opt { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mc-opt select { padding: 6px 28px 6px 9px; font-size: 13px; }
.mc-chk { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.mc-person { margin-left: auto; min-width: 240px; }
.mc-person input { width: 100%; padding: 7px 11px; }
.mc-panel { margin: 0; overflow: hidden; }
.mc-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding: 14px 18px 12px; }
.mc-kicker { display: block; font-size: 11px; color: var(--muted); }
.mc-head h2 { margin: 0; font-size: 18px; font-weight: 600; }
.mc-hint { font-size: 12px; color: var(--muted); }
.mc-wrap { border-top: 1px solid var(--line); }
.mc.busy .mc-tbl tbody { opacity: .55; transition: opacity .15s; }
.mc-tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 12px; font-variant-numeric: tabular-nums; }
.mc-tbl th, .mc-tbl td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 4px 6px; white-space: nowrap; }
.mc-tbl th:last-child, .mc-tbl td:last-child { border-right: 0; }
.mc-tbl thead th { white-space: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; background: var(--surface-2); line-height: 1.25; }
.mc-tbl thead th small { font-weight: 500; color: var(--faint); }
.mc-tbl thead .g1 th { font-size: 12.5px; color: var(--text); font-weight: 700; }
.mc-tbl thead .mc-yr { color: var(--brand); font-size: 14px; }
.mc-tbl thead .mc-er { background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, var(--paper) 8px 16px); }
.mc-tbl thead .mc-in { color: var(--brand-ink); }
.mc-tbl thead .mc-net { color: var(--text); font-weight: 700; }
.mc-tbl td.n { text-align: right; }
.mc-tbl td b { font-weight: 600; } .mc-tbl td small { font-size: 9.5px; opacity: .8; vertical-align: top; margin-left: 1px; }
.mc-tbl td.o { color: #c2410c; }
.mc-tbl td.er { color: var(--muted); }
.mc-tbl td.er.strong b { color: var(--text); }
.mc-tbl td.mc-big { font-size: 13px; }
.mc-tbl td.mc-big b { font-weight: 700; }
.mc-tbl td.mc-big.hl { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.mc-no { width: 22px; text-align: center; color: var(--faint); font-size: 11.5px; }
.mc-mo { font-weight: 600; }
.mc-tbl tbody tr:hover td:not(.mc-dil):not(.hl) { background: color-mix(in srgb, var(--brand) 4%, transparent); }
.mc-inc { padding: 2px 3px !important; }
.mc-cell { width: 76px; padding: 4px 6px; font: inherit; font-size: 13px; text-align: right; border: 1px solid transparent; border-radius: 6px; background: transparent; color: var(--text); }
.mc-cell.main { width: 94px; font-size: 14px; font-weight: 700; }
.mc-cell:hover { border-color: var(--line-strong); background: var(--surface); }
.mc-cell:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.mc-cell::placeholder { color: var(--faint); }
.mc-sub { display: block; text-align: right; font-size: 10px !important; color: var(--muted); padding-right: 8px; margin-top: -2px; }
.mc-dil { text-align: center; font-size: 10.5px; font-weight: 700; color: #fff; }
.mc-dil.d15 { background: #e9a7a8; color: #7a1d1e; } .mc-dil.d20 { background: #cf6a6c; } .mc-dil.d27 { background: #a33335; } .mc-dil.d35 { background: #7d1d1f; } .mc-dil.d40 { background: #4f0f10; }
.mc-tbl tbody tr.cap .mc-cell.main { color: var(--amber); }
.mc-tbl tfoot th { text-align: right; font-size: 12px; background: var(--surface-2); }
.mc-tbl tfoot td { background: var(--surface-2); text-align: right; }
.mc-tbl tfoot tr.sum td, .mc-tbl tfoot tr.sum th { font-weight: 700; border-top: 2px solid var(--line-strong); }
.mc-tbl tfoot tr.sum td b { font-weight: 700; }
.mc-tbl tfoot tr.ratio td { color: var(--muted); font-size: 11.5px; }
.mc-tbl tfoot .mc-dil { background: var(--surface-2) !important; color: var(--muted); font-weight: 500; }
.mc-foot-note { padding: 10px 18px 14px; }
@media (max-width: 900px) { .mc-bar { position: static; } .mc-person { margin-left: 0; width: 100%; } }

/* ---------- Organizasyon şeması ---------- */
.oc { display: grid; gap: 14px; }
.oc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.oc-search { flex: 1 1 240px; max-width: 360px; position: relative; }
.oc-hits { position: absolute; right: 34px; top: 50%; transform: translateY(-50%); font-size: 11.5px; color: var(--muted); pointer-events: none; }
.oc-zoom { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.oc-zoom button { min-width: 32px; height: 32px; padding: 0 9px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.oc-zoom button:hover { border-color: var(--brand); color: var(--brand-ink); }
.oc-zoom button svg { width: 15px; height: 15px; }
.oc-zoom span { min-width: 44px; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.oc-panel { margin: 0; position: relative; overflow: hidden; }
.oc-panel:fullscreen { background: var(--paper); display: flex; flex-direction: column; }
.oc-panel:fullscreen .oc-viewport { flex: 1; height: auto; }
.oc-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12px; }
.oc-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.oc-legend .lg::before { content: ""; width: 12px; height: 12px; border-radius: 3px; background: var(--c); }
.oc-viewport { height: calc(100vh - 290px); min-height: 460px; overflow: auto; cursor: grab; background:
  radial-gradient(circle, color-mix(in srgb, var(--text) 9%, transparent) 1px, transparent 1.2px) 0 0 / 22px 22px, var(--surface-2); }
.oc-viewport.dragging { cursor: grabbing; user-select: none; }
.oc-canvas { transform-origin: 0 0; padding: 28px 24px 40px; min-width: max-content; }
.oc-loading { padding: 40px; color: var(--muted); }
/* ağaç bağlantı çizgileri */
.oc-tree, .oc-tree ul { display: flex; justify-content: center; margin: 0; padding: 0; list-style: none; }
.oc-tree ul { padding-top: 22px; position: relative; }
.oc-tree li { position: relative; padding: 22px 8px 0; display: flex; flex-direction: column; align-items: center; }
.oc-tree > li { padding-top: 0; }
.oc-tree li::before, .oc-tree li::after { content: ""; position: absolute; top: 0; width: 50%; height: 22px; border-top: 2px solid var(--line-strong); }
.oc-tree li::before { right: 50%; } .oc-tree li::after { left: 50%; border-left: 2px solid var(--line-strong); }
.oc-tree li:only-child::before, .oc-tree li:only-child::after { display: none; }
.oc-tree li:only-child { padding-top: 0; }
.oc-tree li:first-child::before, .oc-tree li:last-child::after { border: 0 none; }
.oc-tree li:last-child::before { border-right: 2px solid var(--line-strong); border-radius: 0 8px 0 0; }
.oc-tree li:first-child::after { border-radius: 8px 0 0 0; }
.oc-tree ul::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 2px solid var(--line-strong); }
.oc-tree > li > .oc-node + ul { padding-top: 22px; }
.oc-tree li:only-child > .oc-node { margin-top: 0; }
/* departmanın altında unvanlar dikey liste */
.oc-tree ul.oc-stack { flex-direction: column; align-items: stretch; padding: 14px 0 0 18px; }
.oc-tree ul.oc-stack::before { left: 8px; top: 0; height: calc(100% - 26px); }
.oc-tree ul.oc-stack > li { padding: 8px 0 0 0; align-items: flex-start; }
.oc-tree ul.oc-stack > li::before { right: auto; left: -10px; top: 30px; width: 10px; height: 0; border-top: 2px solid var(--line-strong); border-right: 0; border-radius: 0; display: block; }
.oc-tree ul.oc-stack > li::after { display: none; }
/* kutular */
.oc-node { position: relative; width: 196px; padding: 10px 12px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); cursor: pointer; text-align: left; transition: box-shadow .15s, transform .15s, border-color .15s; }
.oc-node:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.oc-node .oc-name { font-weight: 700; font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.oc-node .oc-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }
.oc-stats { display: flex; flex-wrap: wrap; gap: 3px 8px; margin-top: 7px; font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.oc-stats b { color: var(--text); font-size: 13px; }
.oc-norm { margin-top: 7px; font-size: 11px; padding: 3px 8px; border-radius: 7px; background: var(--paper); color: var(--muted); }
.oc-norm.f-open { background: var(--err-soft); color: var(--err); } .oc-norm.f-over { background: var(--amber-soft); color: var(--amber); } .oc-norm.f-ok { background: var(--ok-soft); color: var(--ok); }
.oc-tg { position: absolute; left: 50%; bottom: -13px; transform: translateX(-50%); z-index: 2; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 99px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; box-shadow: var(--shadow-sm); }
.oc-tg small { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.oc-tg:hover { border-color: var(--brand); color: var(--brand-ink); }
.oc-node.t-holding { width: 250px; color: #fff; border: 0; background: radial-gradient(120% 140% at 100% 0%, #a3282a 0%, var(--brand) 38%, var(--brand-900) 100%); box-shadow: var(--shadow-lg); }
.oc-node.t-holding .oc-sub, .oc-node.t-holding .oc-stats { color: rgba(255,255,255,.82); } .oc-node.t-holding .oc-stats b { color: #fff; }
.oc-node.t-company { width: 206px; border-top: 4px solid var(--brand); }
.oc-node.t-department { border-top: 4px solid hsl(var(--h) 55% 50%); }
.oc-node.t-department.f-open { border-top-color: var(--err); background: color-mix(in srgb, var(--err) 6%, var(--surface)); }
.oc-node.t-department.f-over { border-top-color: var(--amber); background: color-mix(in srgb, var(--amber) 7%, var(--surface)); }
.oc-node.t-department.f-ok { border-top-color: var(--ok); background: color-mix(in srgb, var(--ok) 6%, var(--surface)); }
.oc-node.t-department.f-none { border-top-color: var(--line-strong); }
.oc-node.t-title { width: 230px; padding: 7px 10px 9px; border-left: 3px solid hsl(var(--h) 55% 55%); box-shadow: none; }
.oc-node.t-title .oc-name { font-size: 12.5px; font-weight: 600; }
.oc-node.t-title .oc-stats { margin-top: 3px; }
.oc-node.t-title .oc-tg { left: auto; right: 8px; bottom: auto; top: 8px; transform: none; }
.oc-node.t-vacant { width: 230px; border: 2px dashed var(--err); background: transparent; box-shadow: none; cursor: default; color: var(--err); }
.oc-node.t-vacant .oc-sub { color: var(--err); }
.oc-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: 230px; margin: 6px 0 4px; }
.oc-person, .oc-more { text-align: left; padding: 5px 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; font: inherit; color: var(--text); min-width: 0; }
.oc-person b { display: block; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-person small { display: block; font-size: 10px; color: var(--muted); }
.oc-person:hover { border-color: var(--brand); }
.oc-person.intern { border-style: dashed; }
.oc-more { grid-column: 1 / -1; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--brand-ink); }
.oc-node.hit, .oc-person.hit { outline: 2px solid var(--amber); outline-offset: 2px; }
.oc-node.hit-now, .oc-person.hit-now { outline: 3px solid var(--brand); outline-offset: 2px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent); }
.oc-pop { position: absolute; z-index: 30; width: 270px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 12.5px; }
.oc-pop > b { display: block; font-size: 14px; margin-bottom: 6px; padding-right: 20px; }
.oc-pop dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 10px; margin: 0; }
.oc-pop dt { color: var(--muted); } .oc-pop dd { margin: 0; }
.oc-pop-x { position: absolute; right: 8px; top: 6px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--muted); }
.lg.f-ok { --c: var(--ok); } .lg.f-open { --c: var(--err); } .lg.f-over { --c: var(--amber); } .lg.f-none { --c: var(--line-strong); }
@media (max-width: 900px) { .oc-zoom { margin-left: 0; } .oc-viewport { height: 70vh; } }

/* ---------- Organizasyon şeması: raporlama görünümü ---------- */
.oc-manage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.oc-manage > span { flex: 1 1 320px; }
.oc-imp { display: inline-flex; gap: 8px; align-items: center; }
.oc-imp input[type=file] { font-size: 12px; max-width: 220px; }
.oc-body { display: flex; min-height: 0; }
.oc-body .oc-viewport { flex: 1; min-width: 0; }
.oc-side { width: 270px; flex: none; border-right: 1px solid var(--line); background: var(--surface); height: calc(100vh - 290px); min-height: 460px; overflow: auto; }
.oc-side[hidden] { display: none; }
.oc-side-h { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 10px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.oc-side-h input { width: 100%; padding: 6px 9px; font-size: 12.5px; }
.oc-side-co { padding: 8px 12px 2px; font-size: 11px; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .03em; }
.oc-side details { border-bottom: 1px solid var(--line); }
.oc-side summary { padding: 7px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.oc-side summary small { color: var(--muted); font-weight: 600; }
.oc-side-list { display: grid; gap: 4px; padding: 2px 10px 10px; }
.oc-chip { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); cursor: pointer; min-width: 0; }
.oc-chip[draggable="true"] { cursor: grab; }
.oc-chip:hover { border-color: var(--brand); }
.oc-chip > span:last-child { min-width: 0; }
.oc-chip b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-chip small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oc-drop-free { margin: 10px; padding: 14px 10px; border: 2px dashed var(--line-strong); border-radius: 10px; text-align: center; font-size: 12px; color: var(--muted); }
.oc-drop-free.drop-ok { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-50); }
.oc-av { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: 19px; color: #fff; letter-spacing: .02em;
  background: linear-gradient(145deg, hsl(var(--h, 0) 70% 72%), hsl(var(--h, 0) 62% 58%)); box-shadow: 0 6px 14px -8px hsl(var(--h, 0) 60% 40%); }
.oc-av.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 11px; flex: none; }
.oc-node.t-person { width: 150px; padding: 8px 6px 14px; border: 1px solid transparent; background: transparent; box-shadow: none; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.oc-node.t-person:hover { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.oc-node.t-person[draggable="true"] { cursor: grab; }
.oc-node.t-person .oc-av { margin-bottom: 6px; }
.oc-pn { font-size: 11.5px; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; line-height: 1.25; letter-spacing: .01em; }
.oc-pt { font-size: 10.5px; color: var(--text); line-height: 1.25; }
.oc-pd { font-size: 10.5px; color: var(--muted); text-transform: uppercase; line-height: 1.25; }
.oc-warn { font-size: 10px; color: var(--amber); font-weight: 600; }
.oc-node.t-person .oc-tg { bottom: -11px; }
.oc-node.t-person.drop-ok, .oc-node.t-hco.drop-ok { background: var(--brand-50); border: 2px dashed var(--brand); }
.oc-node.dragging-src, .oc-chip.dragging-src { opacity: .45; }
.oc-node.t-hco { cursor: pointer; }
.oc-empty { margin: 0 auto 18px; max-width: 560px; padding: 14px 18px; border-radius: 12px; background: var(--surface); border: 1px dashed var(--line-strong); text-align: center; font-size: 13px; color: var(--muted); }
.oc-empty b { color: var(--text); }
.oc-mgr { display: grid; gap: 6px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.oc-mgr input { width: 100%; padding: 6px 9px; font-size: 12.5px; }
.oc-mgr-list { display: grid; gap: 2px; max-height: 220px; overflow: auto; }
.oc-mgr-list button { text-align: left; padding: 5px 8px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font: inherit; color: var(--text); }
.oc-mgr-list button:hover { background: var(--brand-50); }
.oc-mgr-list b { display: block; font-size: 12.5px; } .oc-mgr-list small { display: block; font-size: 11px; color: var(--muted); }
.oc-pop { width: 290px; }
.oc-toast { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); z-index: 40; padding: 9px 16px; border-radius: 10px; background: var(--err); color: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-lg); }
@media (max-width: 900px) { .oc-body { flex-direction: column; } .oc-side { width: auto; height: 260px; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); } }
.oc-co { margin-top: 2px; font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 99px; background: var(--brand-50); color: var(--brand-ink); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
