/* ==========================================================================
   Domino's Franchise Paneli · Cam (glass) tasarım sistemi
   Yazı tipi: Ubuntu (latin-ext → Türkçe karakterler tam destekli)
   ========================================================================== */

:root {
  --font: "Ubuntu", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Ubuntu Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* cam yoğunluğu: 0 → çok şeffaf, 1 → buzlu */
  --frost: .5;
  --blur: 22px;
  --sat: 150%;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 28px;

  --dock-w: 256px;
  --dock-mini: 76px;
  --gap: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 14.5px;
  --fs-lg: 16px;
  --fs-xl: 19px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;

  /* Domino's tonları */
  --blue: #0b78b4;
  --blue-hi: #36a9e8;
  --red: #e31837;
  --red-hi: #ff4d64;
}

/* ---------- Koyu tema (varsayılan) ---------- */
:root,
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #060a13;
  --bg-2: #0b1222;
  --ink: #eaf1fb;
  --ink-2: #c3cfdf;
  --muted: #8a9ab2;
  --faint: #5d6c84;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);

  --card: rgba(255, 255, 255, calc(.035 + var(--frost) * .045));
  --card-2: rgba(255, 255, 255, calc(.05 + var(--frost) * .05));
  --card-3: rgba(255, 255, 255, .1);
  --glass-hi: rgba(255, 255, 255, .14);
  --glass-rim: rgba(255, 255, 255, .09);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 18px 50px -18px rgba(0, 0, 0, .65), 0 2px 8px rgba(0, 0, 0, .25);
  --sheet: rgba(13, 20, 36, calc(.62 + var(--frost) * .25));
  --menu-bg: rgb(16, 24, 42);
  --input: rgba(255, 255, 255, .05);
  --input-focus: rgba(255, 255, 255, .08);

  --accent: #3eb0f0;
  --accent-ink: #04121f;
  --accent-soft: rgba(62, 176, 240, .14);
  --good: #3ddc97;
  --good-soft: rgba(61, 220, 151, .14);
  --warn: #ffc457;
  --warn-soft: rgba(255, 196, 87, .14);
  --bad: #ff6b7f;
  --bad-soft: rgba(255, 107, 127, .14);

  --orb-1: #0b78b4;
  --orb-2: #e31837;
  --orb-3: #5b3fd1;
  --orb-o: .55;
}

/* ---------- Açık tema ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #dbe5f0;
  --bg-2: #eef3f9;
  --ink: #0d1b2e;
  --ink-2: #2b3c55;
  --muted: #5a6b84;
  --faint: #8a98ad;
  --line: rgba(13, 27, 46, .08);
  --line-2: rgba(13, 27, 46, .14);

  --card: rgba(255, 255, 255, calc(.38 + var(--frost) * .3));
  --card-2: rgba(255, 255, 255, calc(.5 + var(--frost) * .25));
  --card-3: rgba(255, 255, 255, .85);
  --glass-hi: rgba(255, 255, 255, .9);
  --glass-rim: rgba(255, 255, 255, .7);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -20px rgba(22, 48, 84, .35), 0 2px 6px rgba(22, 48, 84, .06);
  --sheet: rgba(246, 249, 253, calc(.72 + var(--frost) * .2));
  --menu-bg: rgb(252, 253, 255);
  --input: rgba(255, 255, 255, .6);
  --input-focus: rgba(255, 255, 255, .92);

  --accent: #0a6fa8;
  --accent-ink: #ffffff;
  --accent-soft: rgba(10, 111, 168, .12);
  --good: #0f9a62;
  --good-soft: rgba(15, 154, 98, .12);
  --warn: #b77806;
  --warn-soft: rgba(183, 120, 6, .12);
  --bad: #d2213d;
  --bad-soft: rgba(210, 33, 61, .1);

  --orb-1: #5cc0f5;
  --orb-2: #ff8a9b;
  --orb-3: #a996ff;
  --orb-o: .55;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* Mobilde sayfanın en üstünde parmakla aşağı çekince tarayıcı sayfayı yenilemesin (form verisi kaybolmasın) */
html, body { overscroll-behavior-y: none; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.ms-auto { margin-left: auto; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Sahne (camın arkasındaki ışık) ---------- */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(1200px 800px at 85% -10%, color-mix(in srgb, var(--orb-1) 22%, transparent), transparent 60%),
    radial-gradient(900px 700px at -10% 110%, color-mix(in srgb, var(--orb-2) 16%, transparent), transparent 60%),
    linear-gradient(160deg, var(--bg-2), var(--bg) 60%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: var(--orb-o); will-change: transform; }
.o1 { width: 46vmax; height: 46vmax; left: 58%; top: -14%; background: radial-gradient(circle at 30% 30%, var(--orb-1), transparent 65%); animation: drift1 28s var(--ease) infinite alternate; }
.o2 { width: 38vmax; height: 38vmax; left: -12%; top: 48%; background: radial-gradient(circle at 60% 40%, var(--orb-2), transparent 62%); opacity: calc(var(--orb-o) * .8); animation: drift2 34s var(--ease) infinite alternate; }
.o3 { width: 30vmax; height: 30vmax; left: 30%; top: 70%; background: radial-gradient(circle, var(--orb-3), transparent 62%); opacity: calc(var(--orb-o) * .6); animation: drift1 40s var(--ease) infinite alternate-reverse; }
.grain { position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(7vmax, -6vmax, 0) scale(.94); } }
@media (prefers-reduced-motion: reduce) { .orb { animation: none; } * { transition-duration: 0s !important; animation-duration: 0s !important; } }

/* ---------- Cam yüzey ---------- */
.glass {
  background:
    linear-gradient(155deg, var(--glass-hi), transparent 38%) border-box,
    var(--card);
  border: 1px solid var(--glass-rim);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat));
  backdrop-filter: blur(var(--blur)) saturate(var(--sat));
}
:root[data-theme="dark"] .glass { background: linear-gradient(155deg, rgba(255,255,255,.07), transparent 40%), var(--card); }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass { background: var(--sheet); }
}

/* ---------- Kabuk: dock + içerik ---------- */
.dock {
  position: fixed; z-index: 40;
  top: 14px; bottom: 14px; left: 14px;
  width: var(--dock-w);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column;
  padding: 14px 10px;
  transition: width .35s var(--ease), transform .35s var(--ease);
}
.dock__brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); }
.dock__brand img { flex: none; filter: drop-shadow(0 4px 10px rgba(11, 120, 180, .35)); }
.dock__brandtext { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.dock__brandtext strong { font-weight: 700; font-size: 15px; white-space: nowrap; }
.dock__brandtext small { color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock__collapse { margin-left: auto; }
.dock__nav { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 8px 0; scrollbar-width: thin; }
.dock__group { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.dock__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); padding: 6px 12px 4px; white-space: nowrap; }
.dock__item {
  position: relative; display: flex; align-items: center; gap: 12px;
  height: 33px; padding: 0 12px; border-radius: 13px;
  color: var(--ink-2); font-weight: 400; white-space: nowrap;
  transition: background .2s, color .2s;
}
.dock__item i { font-size: 21px; flex: none; width: 24px; text-align: center; }
.dock__item:hover { background: var(--card-2); color: var(--ink); text-decoration: none; }
.dock__item.is-active {
  color: var(--ink); background: linear-gradient(90deg, var(--accent-soft), transparent 90%);
  box-shadow: inset 0 0 0 1px var(--line);
}
.dock__item.is-active::before { content: ""; position: absolute; left: -10px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue-hi), var(--red)); }
.dock__item.is-active i { color: var(--accent); }
.dock__item .badge { margin-left: auto; }
.dock__foot { border-top: 1px solid var(--line); padding-top: 8px; }

.shell { margin-left: calc(var(--dock-w) + 28px); padding: 14px 18px 24px 0; min-height: 100vh; display: flex; flex-direction: column; transition: margin .35s var(--ease); }

html.dock-mini .dock { width: var(--dock-mini); }
html.dock-mini .dock__brandtext, html.dock-mini .dock__label, html.dock-mini .dock__item span, html.dock-mini .dock__item .badge { display: none; }
html.dock-mini .dock__brand { flex-direction: column; }
html.dock-mini .dock__collapse { margin: 6px 0 0; transform: rotate(180deg); }
html.dock-mini .dock__item { justify-content: center; padding: 0; }
html.dock-mini .shell { margin-left: calc(var(--dock-mini) + 28px); }
html.dock-mini .dock__group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
html.dock-mini .dock__group:first-child { border-top: 0; }

.topbar {
  position: sticky; top: 14px; z-index: 30;
  display: flex; align-items: center; gap: 14px;
  min-height: 64px; padding: 10px 12px 10px 20px;
  border-radius: var(--r-lg);
}
.topbar__title { min-width: 0; flex: 1; }
.topbar__title h1 { font-size: var(--fs-xl); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__title p { color: var(--muted); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; align-items: center; gap: 8px; }

.content { flex: 1; padding-top: var(--gap); display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.foot { color: var(--faint); font-size: var(--fs-xs); text-align: center; padding: 22px 0 4px; }

.dock-scrim { display: none; }
.tabbar { display: none; }
.only-mobile { display: none !important; }

/* ---------- Mobil ---------- */
@media (max-width: 991.98px) {
  :root { --gap: 14px; }
  .dock { transform: translateX(calc(-100% - 24px)); width: min(300px, 84vw); top: 10px; bottom: 10px; left: 10px; background: var(--sheet); }
  html.dock-mini .dock { width: min(300px, 84vw); }
  html.dock-mini .dock__brandtext, html.dock-mini .dock__label, html.dock-mini .dock__item span { display: initial; }
  html.dock-mini .dock__item { justify-content: flex-start; padding: 0 12px; }
  html.dock-mini .dock__brand { flex-direction: row; }
  .dock__collapse { display: none; }
  body.dock-open .dock { transform: none; }
  body.dock-open .dock-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
  .shell, html.dock-mini .shell { margin-left: 0; padding: 10px 12px calc(92px + env(safe-area-inset-bottom)); }
  .topbar { top: 10px; padding: 8px 8px 8px 8px; min-height: 58px; gap: 8px; }
  .topbar__title h1 { font-size: var(--fs-lg); }
  .topbar__title p { display: none; }
  .only-mobile { display: inline-flex !important; }
  .branch-pill__text small { display: none; }
  .branch-pill__text b { max-width: 26vw; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; z-index: 30; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    height: 66px; border-radius: 22px; padding: 6px;
  }
  .tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 0; background: none; border-radius: 16px; color: var(--muted); font-size: 11px; cursor: pointer; }
  .tabbar__item i { font-size: 22px; }
  .tabbar__item:hover, .tabbar__item:focus-visible { background: var(--card-2); color: var(--ink); text-decoration: none; }
}

/* ---------- Kart ---------- */
.card { border-radius: var(--r-lg); padding: 20px; min-width: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card--flush .card__head { padding: 18px 20px 0; }
.card__head h2 { font-size: var(--fs-lg); font-weight: 500; display: flex; align-items: center; gap: 10px; }
.card__head h2 i { font-size: 20px; color: var(--accent); }
.card__head p { color: var(--muted); font-size: var(--fs-sm); flex-basis: 100%; margin-top: -8px; }
.card__head .tools { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card__foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.grid { display: grid; gap: var(--gap); }
.grid--kpi { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--main { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); }
.grid--side { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.span-2 { grid-column: span 2; }
@media (max-width: 1199.98px) { .grid--main, .grid--side { grid-template-columns: minmax(0, 1fr); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); } .span-2 { grid-column: auto; } .card { padding: 16px; } .grid--kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.sticky-side { position: sticky; top: 96px; }
@media (max-width: 1199.98px) { .sticky-side { position: static; } }

/* ---------- KPI ---------- */
.kpi { border-radius: var(--r-lg); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; overflow: hidden; }
.kpi__top { display: flex; align-items: center; gap: 10px; }
.kpi__icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 19px; flex: none; }
.kpi__label { color: var(--muted); font-size: var(--fs-sm); line-height: 1.25; }
.kpi__value { font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi__value small { font-size: .55em; color: var(--muted); font-weight: 400; margin-left: 4px; }
.kpi__foot { font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi.tone-red .kpi__icon { background: var(--bad-soft); color: var(--bad); }
.kpi.tone-green .kpi__icon { background: var(--good-soft); color: var(--good); }
.kpi.tone-amber .kpi__icon { background: var(--warn-soft); color: var(--warn); }
.kpi.is-hero { background: linear-gradient(140deg, rgba(11, 120, 180, .55), rgba(11, 120, 180, .12) 55%, rgba(227, 24, 55, .2)), var(--card); }
.kpi.is-hero .kpi__icon { background: rgba(255, 255, 255, .16); color: #fff; }
/* Açık temada öne çıkan kart da açık: hafif mavi zemin, koyu yazı, mavi tutar */
:root[data-theme="light"] .kpi.is-hero { background: linear-gradient(140deg, rgba(10, 111, 168, .16), rgba(10, 111, 168, .05) 55%, rgba(227, 24, 55, .07)), var(--card); border-color: rgba(10, 111, 168, .28); }
:root[data-theme="light"] .kpi.is-hero .kpi__icon { background: rgba(10, 111, 168, .12); color: #0a6fa8; }
:root[data-theme="light"] .kpi.is-hero .kpi__value { color: #075985; }
@media (max-width: 767.98px) { .kpi { padding: 14px; } .kpi__value { font-size: var(--fs-xl); } .kpi__icon { width: 32px; height: 32px; font-size: 17px; } }

.delta { display: inline-flex; align-items: center; gap: 2px; padding: 1px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 500; }
.delta.up { background: var(--good-soft); color: var(--good); }
.delta.down { background: var(--bad-soft); color: var(--bad); }
.delta.flat { background: var(--card-2); color: var(--muted); }

.progress { height: 8px; border-radius: 99px; background: var(--card-2); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--blue-hi)); transition: width .8s var(--ease); }
.progress.is-good > i { background: linear-gradient(90deg, #12a46b, var(--good)); }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--ink);
  font-weight: 500; font-size: var(--fs-sm); cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s;
  text-decoration: none !important;
}
.btn i { font-size: 18px; }
.btn:hover { background: var(--card-3); border-color: var(--line-2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn--primary {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, #1593d6, #0b6aa0 60%, #0a5684);
  box-shadow: 0 8px 22px -10px rgba(11, 120, 180, .9), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn--primary:hover { background: linear-gradient(135deg, #22a2e6, #0c77b3 60%, #0a5f92); }
.btn.is-active:not(.btn--primary) { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.btn--danger { border-color: transparent; color: #fff; background: linear-gradient(135deg, #f0334f, #c3102b); box-shadow: 0 8px 22px -10px rgba(227, 24, 55, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--card-2); }
.btn--sm { height: 32px; padding: 0 11px; border-radius: 10px; font-size: 12.5px; }
.btn--sm i { font-size: 16px; }
.btn--lg { height: 48px; padding: 0 22px; border-radius: 14px; font-size: var(--fs-base); }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn { width: 40px; height: 40px; flex: none; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid transparent; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 21px; transition: background .2s; }
.icon-btn:hover { background: var(--card-2); border-color: var(--line); color: var(--ink); }
.icon-btn--sm { width: 30px; height: 30px; font-size: 17px; border-radius: 9px; }
.icon-btn--danger:hover { color: var(--bad); background: var(--bad-soft); }

/* ---------- Rozet / etiket ---------- */
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; font-size: 11px; font-weight: 700; background: var(--red); color: #fff; box-shadow: 0 4px 10px -3px rgba(227, 24, 55, .7); }
.chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip.is-good { background: var(--good-soft); color: var(--good); border-color: transparent; }
.chip.is-bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.chip.is-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.is-accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.chip i { font-size: 14px; }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: var(--fs-sm); color: var(--muted); font-weight: 400; }
.field .hint { font-size: var(--fs-xs); color: var(--faint); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--input); color: var(--ink);
  outline: none; transition: border-color .2s, background .2s, box-shadow .2s;
}
.textarea { height: auto; min-height: 90px; padding: 10px 13px; resize: vertical; line-height: 1.5; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); background: var(--input-focus); box-shadow: 0 0 0 4px var(--accent-soft); }
.select { appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) 18px, calc(100% - 13px) 18px; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--bg-2); color: var(--ink); }
.input--lg { height: 52px; font-size: var(--fs-xl); border-radius: 14px; }
.input--money { text-align: right; font-variant-numeric: tabular-nums; }
.input-group { position: relative; display: flex; align-items: center; }
.input-group > i { position: absolute; left: 13px; color: var(--faint); font-size: 18px; pointer-events: none; }
.input-group > .input { padding-left: 40px; }
.input-group > .suffix { position: absolute; right: 12px; color: var(--muted); font-size: var(--fs-sm); pointer-events: none; }
.input-group > .input-group__btn { position: absolute; right: 4px; }
.input[type="date"], .input[type="month"], .input[type="time"] { min-width: 0; }
::-webkit-calendar-picker-indicator { filter: invert(var(--cal-invert, 0)); opacity: .7; cursor: pointer; }
:root[data-theme="dark"] { --cal-invert: 1; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 575.98px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { appearance: none; -webkit-appearance: none; width: 40px; height: 24px; border-radius: 99px; background: var(--card-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: transform .25s var(--ease); }
.switch input:checked { background: var(--accent); border-color: transparent; }
.switch input:checked::after { transform: translateX(16px); }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 32px; padding: 0 13px; border-radius: 9px; color: var(--muted); cursor: pointer; font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; }
.seg button.is-active { background: var(--card-3); color: var(--ink); box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: var(--card-2); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { font-weight: 500; border-top: 1px solid var(--line-2); padding: 12px 14px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table .act { text-align: right; white-space: nowrap; width: 1%; }
.table--compact td, .table--compact th { padding: 8px 10px; }
.table .is-muted td { opacity: .55; }
.card--flush .table th:first-child, .card--flush .table td:first-child { padding-left: 20px; }
.card--flush .table th:last-child, .card--flush .table td:last-child { padding-right: 20px; }

/* Mobilde tabloyu kartlara dönüştür */
@media (max-width: 767.98px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .table--stack td { border: 0; padding: 3px 0 !important; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table--stack td::before { content: attr(data-label); color: var(--muted); font-size: 12px; text-align: left; }
  .table--stack td.act { justify-content: flex-end; width: auto; }
  .table--stack td.act::before { content: none; }
  .table--stack tfoot { display: block; }
  .table--stack tfoot tr { display: flex; justify-content: space-between; }
}

.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person b { font-weight: 500; display: block; }
.person small { color: var(--muted); font-size: 12px; display: block; }
.avatar { width: 34px; height: 34px; border-radius: 11px; flex: none; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--blue), #5b3fd1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); letter-spacing: .02em; }
.avatar--lg { width: 44px; height: 44px; font-size: 15px; border-radius: 14px; }
.avatar.is-red { background: linear-gradient(135deg, var(--red), #ff8a3d); }
.avatar.is-green { background: linear-gradient(135deg, #0f9a62, #3ddc97); }
.avatar.is-amber { background: linear-gradient(135deg, #c77d06, #ffc457); }

/* ---------- Menü / açılır panel ---------- */
.menu { position: relative; }
.menu__panel { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; padding: 6px; border-radius: 16px; z-index: 50; display: none; background: var(--sheet); }
/* Açılır menüler üst çubuğun içinde: iç içe bulanıklık çalışmadığından zemin opak (iki temada da okunur) */
.menu__panel.glass, :root[data-theme="dark"] .menu__panel.glass { background: var(--menu-bg); border-color: var(--line-2); box-shadow: 0 22px 50px -12px rgba(0, 0, 0, .55), 0 2px 8px rgba(0, 0, 0, .25); }
.menu__head { color: var(--muted) !important; }
.menu__panel--right { left: auto; right: 0; }
.menu__panel { max-width: calc(100vw - 20px); }
.menu.is-open .menu__panel { display: block; animation: pop .2s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.menu__head { padding: 8px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; font-size: var(--fs-sm); }
.menu__item:hover { background: var(--card-2); text-decoration: none; }
.menu__item.is-active { background: var(--accent-soft); }
.menu__item i { font-size: 18px; }
.menu__user { display: flex; gap: 12px; align-items: center; padding: 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.menu__user b { font-weight: 500; display: block; }
.menu__user small { color: var(--muted); }
.menu__slider { display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: var(--fs-sm); color: var(--muted); }
.menu__slider input { accent-color: var(--accent); width: 100%; }

.branch-pill { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 12px 0 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card-2); cursor: pointer; color: var(--ink); }
.branch-pill:disabled { cursor: default; opacity: 1; }
.branch-pill > i:first-child { font-size: 20px; color: var(--red-hi); }
.branch-pill__text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; text-align: left; }
.branch-pill__text small { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }
.branch-pill__text b { font-weight: 500; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; border-radius: 12px; }

/* ---------- Modal (dialog) ---------- */
dialog.modal { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: min(620px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); overflow: visible; }
dialog.modal--lg { max-width: min(880px, calc(100vw - 24px)); }
dialog.modal--sm { max-width: min(440px, calc(100vw - 24px)); }
dialog.modal::backdrop { background: rgba(3, 7, 15, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog.modal[open] { animation: pop .25s var(--ease); }
.modal__box { border-radius: var(--r-xl); background: var(--sheet); display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.modal__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.modal__head h3 { font-size: var(--fs-lg); font-weight: 500; flex: 1; }
.modal__body { padding: 18px 20px; overflow-y: auto; }
.modal__foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 20px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 575.98px) {
  dialog.modal { margin: auto 0 0; max-width: 100vw; }
  .modal__box { border-radius: 24px 24px 0 0; padding-bottom: env(safe-area-inset-bottom); }
}

/* ---------- Bildirim (toast) ---------- */
.toasts { position: fixed; z-index: 100; right: 18px; top: 18px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toasts[popover] { inset: 18px 18px auto auto; margin: 0; padding: 0; border: 0; background: none; overflow: visible; color: inherit; width: auto; height: auto; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; min-width: 260px; max-width: 380px; padding: 12px 14px; border-radius: 14px; background: var(--sheet); border: 1px solid var(--glass-rim); box-shadow: var(--glass-shadow); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); animation: toastIn .35s var(--ease); font-size: var(--fs-sm); }
.toast i { font-size: 20px; flex: none; }
.toast.is-ok i { color: var(--good); }
.toast.is-err i { color: var(--bad); }
.toast.is-warn i { color: var(--warn); }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
@media (max-width: 575.98px) { .toasts, .toasts[popover] { inset: 12px 12px auto 12px; } .toast { max-width: none; } }

/* ---------- Boş durum / iskelet ---------- */
.empty { text-align: center; padding: 42px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty > i { font-size: 44px; color: var(--faint); }
.empty h2 { color: var(--ink); font-size: var(--fs-lg); }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--card-2), var(--card-3), var(--card-2)); background-size: 200% 100%; animation: shimmer 1.3s infinite; min-height: 16px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Listeler ---------- */
.list { display: flex; flex-direction: column; }
.list__item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.list__item:last-child { border-bottom: 0; }
.list__item .grow { flex: 1; min-width: 0; }
.list__item .grow b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list__item .grow small { color: var(--muted); font-size: 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.dot.is-bad { background: var(--bad); box-shadow: 0 0 0 4px var(--bad-soft); }
.dot.is-warn { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.dot.is-good { background: var(--good); box-shadow: 0 0 0 4px var(--good-soft); }

.stat { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.stat:last-child { border-bottom: 0; }
.stat span { color: var(--muted); font-size: var(--fs-sm); }
.stat b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat.is-total { border-top: 1px solid var(--line-2); border-bottom: 0; padding-top: 12px; margin-top: 4px; }
.stat.is-total b { font-size: var(--fs-xl); }

.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.chart-box { position: relative; height: 280px; }
.chart-box--sm { height: 220px; }
@media (max-width: 767.98px) { .chart-box { height: 230px; } }

/* ---------- Sekmeler ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: -4px 0 16px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; height: 42px; padding: 0 14px; color: var(--muted); cursor: pointer; font-weight: 500; position: relative; white-space: nowrap; font-size: var(--fs-sm); }
.tabs button.is-active { color: var(--ink); }
.tabs button.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue-hi), var(--red-hi)); }

/* ---------- Giriş ekranı ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; padding: 28px; align-items: stretch; }
.auth__hero { border-radius: var(--r-xl); padding: 44px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth__hero::after { content: ""; position: absolute; right: -120px; bottom: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(227, 24, 55, .35), transparent 65%); filter: blur(20px); }
.auth__brand { display: flex; align-items: center; gap: 14px; }
.auth__brand strong { display: block; font-size: var(--fs-xl); font-weight: 700; }
.auth__brand small { color: var(--muted); }
.auth__headline { max-width: 520px; position: relative; z-index: 1; }
.auth__headline h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 500; letter-spacing: -.03em; line-height: 1.08; }
.auth__headline h1 em { font-style: normal; background: linear-gradient(90deg, var(--blue-hi), #8fd3ff 45%, var(--red-hi)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth__headline p { color: var(--ink-2); margin-top: 16px; font-size: var(--fs-lg); font-weight: 300; }
.auth__features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; position: relative; z-index: 1; }
.auth__feature { padding: 14px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); }
.auth__feature i { font-size: 22px; color: var(--accent); }
.auth__feature b { display: block; font-weight: 500; margin-top: 6px; font-size: var(--fs-sm); }
.auth__feature small { color: var(--muted); font-size: 12px; }
.auth__panel { display: grid; place-items: center; }
.auth__card { width: 100%; max-width: 440px; border-radius: var(--r-xl); padding: 36px; }
.auth__card h2 { font-size: var(--fs-2xl); font-weight: 500; }
.auth__card > p { color: var(--muted); margin: 6px 0 24px; }
.auth__form { display: flex; flex-direction: column; gap: 16px; }
.auth__alert { display: none; gap: 10px; align-items: center; padding: 11px 13px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: var(--fs-sm); }
.auth__alert.is-show { display: flex; }
.auth__alert.is-info { background: var(--accent-soft); color: var(--accent); }
.otp-inputs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.otp-inputs input { height: 62px; text-align: center; font-size: 26px; font-weight: 500; border-radius: 14px; padding: 0; font-family: var(--mono); }
.otp-ttl { display: flex; align-items: center; gap: 8px; margin: -4px 0 16px; padding: 9px 12px; border-radius: 12px; font-size: var(--fs-sm); color: var(--muted); background: color-mix(in srgb, var(--ink) 5%, transparent); }
.otp-ttl strong { color: var(--ink); font-family: var(--mono); font-weight: 600; }
.otp-ttl.is-warn, .otp-ttl.is-warn strong { color: var(--warn); }
.otp-ttl.is-over { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.otp-offer { padding: 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent, #0b6aa0) 35%, transparent); background: color-mix(in srgb, var(--accent, #0b6aa0) 8%, transparent); }
.otp-offer p { margin: 0 0 10px; font-size: var(--fs-sm); line-height: 1.5; }
.auth__theme { position: fixed; top: 18px; right: 18px; }
@media (max-width: 991.98px) {
  .auth { grid-template-columns: 1fr; padding: 14px; gap: 14px; }
  .auth__hero { padding: 24px; min-height: auto; gap: 22px; }
  .auth__features { display: none; }
  .auth__headline h1 { font-size: 28px; }
  .auth__headline p { font-size: var(--fs-base); margin-top: 8px; }
  .auth__card { padding: 24px; }
  .auth__panel { align-items: start; }
}

/* ---------- Kasa raporu ---------- */


.summary .stat b.is-diff { padding: 2px 8px; border-radius: 8px; }
.summary .stat b.is-diff.good { background: var(--good-soft); }
.summary .stat b.is-diff.bad { background: var(--bad-soft); }

.mini-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.mini-table td, .mini-table th { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.mini-table th { color: var(--muted); font-weight: 400; font-size: 12px; }
.mini-table .num { text-align: right; white-space: nowrap; }
.mini-table tr:last-child td { border-bottom: 0; }
.inline-form { display: grid; gap: 8px; grid-template-columns: 1fr 1fr 130px auto; align-items: end; margin-top: 10px; }
@media (max-width: 575.98px) { .inline-form { grid-template-columns: 1fr 1fr; } }

.status-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; font-size: var(--fs-sm); }
.status-banner i { font-size: 22px; }
.status-banner.is-info { background: var(--accent-soft); color: var(--accent); }
.status-banner.is-warn { background: var(--warn-soft); color: var(--warn); }
.status-banner.is-good { background: var(--good-soft); color: var(--good); }

.savebar { position: sticky; bottom: 14px; z-index: 20; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px 12px 20px; border-radius: var(--r-lg); }
.savebar .savebar__sum { display: flex; gap: 20px; flex-wrap: wrap; flex: 1; }
.savebar .savebar__sum span { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); }
.savebar .savebar__sum b { font-size: var(--fs-lg); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 991.98px) { .savebar { bottom: calc(86px + env(safe-area-inset-bottom)); } .savebar .savebar__sum { gap: 14px; } }

/* ---------- Vardiya ---------- */
.shift-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-md); }
.shift { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.shift th { position: sticky; top: 0; font-weight: 500; padding: 10px 6px; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.shift th b { display: block; color: var(--ink); font-weight: 500; font-size: var(--fs-base); }
.shift th.is-today b { color: var(--accent); }
.shift th.is-weekend { color: var(--warn); }
.shift td { padding: 5px; border-bottom: 1px solid var(--line); text-align: center; }
.shift td:first-child, .shift th:first-child { position: sticky; left: 0; z-index: 2; text-align: left; padding-left: 14px; background: var(--sheet); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); min-width: 190px; }
.shift td.sum { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.slot { width: 100%; min-width: 98px; min-height: 48px; border-radius: 12px; border: 1px dashed var(--line-2); background: transparent; color: var(--faint); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; font-size: 12.5px; transition: transform .15s var(--ease), background .2s; padding: 4px; }
.slot:hover { background: var(--card-2); transform: translateY(-1px); }
.slot b { font-weight: 500; font-family: var(--mono); font-size: 13px; }
.slot small { font-size: 10.5px; opacity: .85; }
.slot.t-morning { border: 0; color: #06263a; background: linear-gradient(135deg, #8fd3ff, #4cb3ee); }
.slot.t-middle { border: 0; color: #2a1a00; background: linear-gradient(135deg, #ffe08a, #ffb84d); }
.slot.t-night { border: 0; color: #fff; background: linear-gradient(135deg, #6b55e8, #3b2aa8); }
.slot.t-custom { border: 0; color: #04261a; background: linear-gradient(135deg, #8ff0c4, #3ddc97); }
.slot.t-off { border: 1px solid transparent; color: var(--bad); background: var(--bad-soft); }
.slot.t-yillik { border: 1px dashed rgba(20, 184, 166, .55); color: #2dd4bf; background: rgba(20, 184, 166, .13); }
.slot.t-yillik b { display: inline-flex; align-items: center; gap: 4px; }
:root[data-theme="light"] .slot.t-yillik { color: #0f766e; background: rgba(13, 148, 136, .1); }
.btn--yillik { color: #2dd4bf; border-color: rgba(20, 184, 166, .4); }
:root[data-theme="light"] .btn--yillik { color: #0f766e; }
.btn--yillik:hover { background: rgba(20, 184, 166, .14); }
.chip.is-yillik { background: rgba(20, 184, 166, .14); color: #2dd4bf; border-color: transparent; }
:root[data-theme="light"] .chip.is-yillik { color: #0f766e; }
.slot.t-rapor { border: 1px dashed rgba(168, 85, 247, .55); color: #b57cf5; background: rgba(168, 85, 247, .14); }
.slot.t-rapor b { display: inline-flex; align-items: center; gap: 4px; }
:root[data-theme="light"] .slot.t-rapor { color: #7e22ce; background: rgba(147, 51, 234, .1); }
.btn--rapor { color: #b57cf5; border-color: rgba(168, 85, 247, .4); }
:root[data-theme="light"] .btn--rapor { color: #7e22ce; }
.btn--rapor:hover { background: rgba(168, 85, 247, .14); }
.chip.is-rapor { background: rgba(168, 85, 247, .14); color: #b57cf5; border-color: transparent; }
:root[data-theme="light"] .chip.is-rapor { color: #7e22ce; }
.shift-legend { display: flex; gap: 8px; flex-wrap: wrap; }
.shift-legend .slot { min-height: 30px; width: auto; min-width: 0; flex-direction: row; gap: 6px; padding: 0 10px; cursor: default; }
.shift-legend .slot:hover { transform: none; }
.preset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.preset-grid .slot { min-height: 58px; }

/* ---------- Çeşitli ---------- */
.page-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.page-tools .grow { flex: 1; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r-lg); }
.toolbar .grow { flex: 1; min-width: 160px; }
.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--card-2); }
.code-block { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px; max-height: 360px; overflow: auto; }
.todo-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.todo-item:last-child { border-bottom: 0; }
.todo-check { width: 24px; height: 24px; border-radius: 8px; border: 1.5px solid var(--line-2); background: transparent; cursor: pointer; flex: none; display: grid; place-items: center; color: transparent; font-size: 17px; transition: all .2s; margin-top: 1px; }
.todo-check:hover { border-color: var(--good); color: var(--good); }
.todo-item.is-done .todo-check { background: var(--good); border-color: var(--good); color: #fff; }
.todo-item.is-done .todo-text { text-decoration: line-through; color: var(--muted); }
.todo-text { flex: 1; min-width: 0; word-wrap: break-word; }
.todo-meta { color: var(--faint); font-size: 12px; margin-top: 3px; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.calendar__dow { text-align: center; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; }
.calendar__day { min-height: 70px; border-radius: 12px; padding: 7px 8px; background: var(--card-2); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; min-width: 0; }
.calendar__day b { font-weight: 500; color: var(--muted); }
.calendar__day span { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.calendar__day.is-empty { background: transparent; border-style: dashed; }
.calendar__day.is-blank { visibility: hidden; }
.calendar__day.is-top { background: linear-gradient(160deg, var(--good-soft), transparent), var(--card-2); }
.calendar__day.is-low { background: linear-gradient(160deg, var(--bad-soft), transparent), var(--card-2); }
@media (max-width: 575.98px) { .calendar { gap: 3px; } .calendar__day { min-height: 52px; padding: 4px; font-size: 10px; border-radius: 8px; } }

/* Küçük telefonlarda şube düğmesi yalnızca ikon */
@media (max-width: 575.98px) {
  .branch-pill { padding: 0 8px; gap: 4px; }
  .branch-pill__text { display: none; }
  .topbar__actions { gap: 2px; }
}

/* Yazdırma: kabuğu gizle, içeriği düz göster */
@media print {
  .dock, .topbar, .tabbar, .toolbar, .savebar, .scene, .foot, .btn, .icon-btn { display: none !important; }
  .shell { margin: 0 !important; padding: 0 !important; }
  body { background: #fff !important; color: #000 !important; }
  .glass { background: #fff !important; box-shadow: none !important; border: 1px solid #ddd !important; backdrop-filter: none !important; }
  .slot { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print { display: none !important; }
  /* Vardiya tablosu: kâğıtta okunur renkler */
  .shift th, .shift td, .shift td:first-child, .shift th:first-child { background: #fff !important; color: #000 !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; border-color: #ccc !important; }
  .shift th b, .shift .person b { color: #000 !important; }
  .shift .person .avatar { display: none !important; }
  .shift th.is-weekend, .shift th.is-today b { color: #000 !important; }
  .shift .person small, .shift td.sum, .shift td.sum small { color: #444 !important; }
  .shift .slot:not([class*="t-"]) { visibility: hidden; }
  .shift-wrap { overflow: visible !important; }
  .shift { min-width: 0 !important; }
  .card.glass:has(.shift) { border: 0 !important; padding: 0 !important; }
  .print-only { display: block !important; margin: 0 0 10px; font-size: 18px; font-weight: 500; color: #000; }
}
.print-only { display: none; }
.savebar--mobile { display: none; }
@media (max-width: 1199.98px) { .savebar--mobile { display: flex; } }

/* ---------- Değişiklik geçmişi (zaman çizelgesi) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(var(--line-2), transparent); }
.tl-item { position: relative; display: flex; gap: 14px; padding-bottom: 18px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { width: 32px; height: 32px; padding: 0; justify-content: center; flex: none; border-radius: 11px; position: relative; z-index: 1; background-clip: padding-box; box-shadow: 0 0 0 4px var(--bg-2); }
.tl-dot i { font-size: 16px; }
.tl-body { flex: 1; min-width: 0; }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 5px 0 8px; font-size: var(--fs-sm); }
.tl-head b { font-weight: 500; }
.tl-head span { color: var(--muted); }
.tl-head time { margin-left: auto; color: var(--faint); font-family: var(--mono); font-size: 12px; }
.tl-summary { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-summary span { display: flex; flex-direction: column; padding: 6px 10px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); font-size: 12.5px; max-width: 100%; }
.tl-summary small { color: var(--muted); font-size: 11px; }
.tl-summary b { font-weight: 500; font-variant-numeric: tabular-nums; word-break: break-word; }
.tl-diff { width: 100%; border-collapse: collapse; font-size: 12.5px; border-radius: 12px; overflow: hidden; background: var(--card-2); border: 1px solid var(--line); }
.tl-diff th { text-align: left; font-weight: 400; color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.tl-diff td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.tl-diff tr:last-child td { border-bottom: 0; }
.tl-diff td:first-child { color: var(--ink-2); width: 26%; }
.tl-old { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 60%, transparent); width: 34%; }
.tl-new { color: var(--ink); font-weight: 500; width: 34%; }
.tl-arrow { color: var(--faint); width: 20px; padding-left: 0 !important; padding-right: 0 !important; }
.tl-diff .k-add .tl-new { color: var(--good); }
.tl-diff .k-remove .tl-old { color: var(--bad); }
.tl-diff .k-derived td { color: var(--muted); font-style: italic; background: transparent; }
.tl-diff .k-derived .tl-new { font-weight: 400; }
@media (max-width: 575.98px) {
  .tl-diff thead { display: none; }
  .tl-diff, .tl-diff tbody, .tl-diff tr { display: block; }
  .tl-diff tr { padding: 8px 10px; border-bottom: 1px solid var(--line); }
  .tl-diff td { display: inline; border: 0; padding: 0 !important; width: auto !important; }
  .tl-diff td:first-child { display: block; font-weight: 500; margin-bottom: 2px; }
  .tl-arrow { margin: 0 4px; }
  .tl-head time { margin-left: 0; width: 100%; }
}
.tl-diff td.is-empty { text-decoration: none; color: var(--faint) !important; font-weight: 400; }

/* Kasa · nakit teslim */
#teslimBox { margin-top: 10px; }
.btn--teslim { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); background: var(--good-soft); font-weight: 500; }
.btn--teslim:hover:not(:disabled) { background: color-mix(in srgb, var(--good) 24%, transparent); }
.btn--teslim .btn__sub { margin-left: auto; font-variant-numeric: tabular-nums; opacity: .9; }
.teslim-done { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-md, 12px); background: var(--good-soft); color: var(--good); }
.teslim-done i { font-size: 22px; }
.teslim-done b { display: block; font-weight: 500; }
.teslim-done small { display: block; color: var(--muted); font-size: var(--fs-xs); }

/* Personel · yetki matrisi */
.perm-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.perm-head p { margin: 0; font-size: var(--fs-sm); max-width: 62ch; }
.perm-table td, .perm-table th { vertical-align: middle; }
.perm-table tr.is-off td:not(:first-child):not(:nth-child(2)) { opacity: .4; }
.perm-sw { position: relative; display: inline-flex; align-items: center; cursor: pointer; }
.perm-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.perm-sw__ui { width: 38px; height: 22px; border-radius: 999px; background: var(--line); border: 1px solid var(--line); position: relative; transition: background .18s; }
.perm-sw__ui::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .18s; }
.perm-sw input:checked + .perm-sw__ui { background: var(--accent); border-color: transparent; }
.perm-sw input:checked + .perm-sw__ui::after { transform: translateX(16px); }
.perm-sw input:focus-visible + .perm-sw__ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.perm-sw input:disabled + .perm-sw__ui { opacity: .35; cursor: not-allowed; }
.perm-sw.is-changed .perm-sw__ui { box-shadow: 0 0 0 2px var(--warn-soft); }
.perm-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-left: 6px; vertical-align: middle; }
.perm-special { display: flex; align-items: center; gap: 10px; padding: 3px 0; font-size: var(--fs-sm); }
@media (max-width: 720px) {
  .perm-head { flex-direction: column; }
  .perm-table thead th:nth-child(n+2) { font-size: 11px; }
}

/* Personel · özlük */
.ozluk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ozluk-stats .kpi { padding: 14px 16px; }
.ozluk-stats .tone-green .kpi__value { color: var(--good); }
.ozluk-stats .tone-red .kpi__value { color: var(--bad); }
.ozluk-card { border: 1px solid var(--line); border-radius: var(--r-md, 12px); padding: 14px 16px; margin-bottom: 14px; }
.ozluk-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.ozluk-card__head h4 { margin: 0; font-size: var(--fs-base); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.ozluk-card__head .muted { font-size: var(--fs-xs); }
@media (max-width: 720px) { .ozluk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Genel bakış · OSA puanı */
.kpi.tone-violet .kpi__icon { background: rgba(168, 85, 247, .16); color: #b57cf5; }
:root[data-theme="light"] .kpi.tone-violet .kpi__icon { color: #7e22ce; }
.kpi.is-clickable { cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.kpi.is-clickable:hover { transform: translateY(-2px); border-color: rgba(168, 85, 247, .45); box-shadow: 0 14px 34px -18px rgba(168, 85, 247, .7); }
.kpi.is-clickable:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.kpi--osa .kpi__value { display: flex; align-items: center; gap: 8px; }
.kpi--osa .kpi__value .delta { font-size: var(--fs-sm); }
.osa-link { color: #b57cf5; font-weight: 500; display: inline-flex; align-items: center; gap: 2px; }
:root[data-theme="light"] .osa-link { color: #7e22ce; }
dialog.modal--xl { max-width: min(1100px, calc(100vw - 24px)); width: 100%; }
.osa-body { padding: 0; }
.osa-body { display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.osa-view { position: relative; min-width: 0; }
.osa-body iframe { display: block; width: 100%; height: min(78vh, 1000px); border: 0; border-radius: 0 0 var(--r-xl) 0; background: #525659; }
.osa-view__empty { height: min(78vh, 1000px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: var(--muted); }
.osa-view__empty i { font-size: 40px; opacity: .6; }
.osa-view__empty b { color: var(--ink); font-weight: 500; }
.osa-view__empty span { max-width: 360px; font-size: var(--fs-sm); }
.osa-hist { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; max-height: min(78vh, 1000px); }
.osa-hist__head { padding: 12px 14px 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; gap: 6px; }
.osa-hist__head span { margin-left: auto; font-weight: 500; }
.osa-hist__list { overflow-y: auto; padding: 0 8px 10px; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.osa-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.osa-item:hover { background: var(--card-2); }
.osa-item.is-active { background: rgba(168, 85, 247, .12); border-color: rgba(168, 85, 247, .4); }
.osa-item:disabled { cursor: default; opacity: .7; }
.osa-item__score { height: 38px; border-radius: 9px; display: grid; place-items: center; font-weight: 600; font-variant-numeric: tabular-nums; background: rgba(168, 85, 247, .14); color: #c79bf7; }
:root[data-theme="light"] .osa-item__score { color: #7e22ce; }
.osa-item__main { min-width: 0; line-height: 1.3; }
.osa-item__main b { display: block; font-weight: 500; font-size: var(--fs-sm); }
.osa-item__main small { color: var(--muted); font-size: 11.5px; }
.osa-item__end { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.osa-item__end i { font-size: 16px; color: #e5484d; }
.osa-item__end i.faint { color: var(--faint); }
#osaModal.is-phone .osa-body { grid-template-columns: 1fr; }
#osaModal.is-phone .osa-view { display: none; }
#osaModal.is-phone .osa-hist { border-right: 0; max-height: 70vh; }

@media (max-width: 767.98px) { .hide-sm { display: none !important; } }
@media (max-width: 767.98px) { .grid--kpi > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* Ayarlar · OSA */
.osa-now { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md, 12px); border: 1px solid var(--line); }
.osa-now .kpi__icon { background: rgba(168, 85, 247, .16); color: #b57cf5; }
.osa-now > div { flex: 1; min-width: 0; }
.osa-now__score { font-size: 26px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.osa-now__score small { font-size: var(--fs-sm); color: var(--muted); font-weight: 400; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 26px 16px; text-align: center;
  border: 1.5px dashed var(--line); border-radius: var(--r-md, 12px); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone > i { font-size: 30px; color: var(--accent); }
.dropzone b { font-weight: 500; word-break: break-word; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone.has-file { border-style: solid; border-color: color-mix(in srgb, var(--good) 50%, transparent); background: var(--good-soft); }
.dropzone.has-file > i { color: var(--good); }
.kpi__foot .kpi__line { flex-basis: 100%; }
.kpi__foot .kpi__line b { color: var(--ink); font-weight: 500; margin-left: 4px; }

/* Vardiya planı · mobil: baş harf avatarı gizlenir, isim sütunu daralır */
@media (max-width: 767.98px) {
  .shift .person .avatar { display: none; }
  .shift td:first-child, .shift th:first-child { min-width: 118px; max-width: 140px; padding-left: 10px; }
  .shift .person b { white-space: normal; line-height: 1.2; }
}

/* Genel bakış · ciro trendi özet şeridi */
/* Tüm özet bilgiler tek satırda: sütunlar eşit paylaşır, sığmazsa (telefon) yatay kaydırılır */
.trend-stats { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; justify-content: space-between; gap: 14px; margin: -4px 0 14px; overflow-x: auto; scrollbar-width: none; }
.trend-stats::-webkit-scrollbar { display: none; }
.trend-stat { display: flex; flex-direction: column; min-width: 0; white-space: nowrap; }
.trend-stat > * { overflow: hidden; text-overflow: ellipsis; }
.trend-stat span { font-size: var(--fs-xs); color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.trend-stat b { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.trend-stat small { font-size: 11px; color: var(--faint, var(--muted)); }
.trend-stat.is-total b { color: var(--accent); }
.trend-stat.is-avg b { color: #f5b84b; }
:root[data-theme="light"] .trend-stat.is-avg b { color: #b7791f; }
@media (max-width: 767.98px) { .trend-stats { justify-content: start; gap: 18px; padding-right: 24px; -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); } }
.avg-swatch { display: inline-block; width: 16px; height: 0; border-top: 2px dashed #f5b84b; }
.trend-stat.is-lfl.up b { color: var(--good); }
.trend-stat.is-lfl.down b { color: var(--bad); }
.trend-stat.is-forecast b { color: #b57cf5; }
:root[data-theme="light"] .trend-stat.is-forecast b { color: #7e22ce; }
.trend-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: var(--fs-xs); color: var(--muted); }
.trend-legend:empty { display: none; }
.trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg-sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-act { background: rgba(62,176,240,.55); border: 1.5px solid #3eb0f0; }
.lg-est { background: rgba(168,85,247,.28); border: 1.5px solid rgba(181,124,245,.9); }

/* Kasa ekstresi · kasası olmayan gün ve tahmin penceresi */
button.calendar__day { font-family: inherit; color: inherit; text-align: left; cursor: pointer; }
.calendar__day.is-empty:hover { border-color: rgba(181,124,245,.6); background: rgba(168,85,247,.08); }
.calendar__fc { color: rgba(181,124,245,.8); opacity: 0; transition: opacity .15s; }
.calendar__day.is-empty:hover .calendar__fc, .calendar__day.is-empty:focus-visible .calendar__fc { opacity: 1; }
@media (hover: none) { .calendar__fc { opacity: .7; } }
.fc-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.fc-value { font-size: 34px; font-weight: 500; color: #b57cf5; font-variant-numeric: tabular-nums; line-height: 1.15; }
:root[data-theme="light"] .fc-value { color: #7e22ce; }
.fc-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

/* Tahmin penceresi · sekmeler */
.fc-tabs { margin-bottom: 14px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.fc-tabs::-webkit-scrollbar { display: none; }
.fc-tabs button { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; position: relative; }
.fc-tabs .fc-dot { width: 7px; height: 7px; border-radius: 50%; background: #b57cf5; display: none; }
.fc-tabs button.has-dot .fc-dot { display: inline-block; }
.fc-calc { margin-top: 14px; }
.fc-calc td { vertical-align: middle; }
.fc-calc .fc-total td { border-top: 1px solid var(--line); padding-top: 10px; }
.fc-calc .fc-total b { color: #b57cf5; }
:root[data-theme="light"] .fc-calc .fc-total b { color: #7e22ce; }
.fc-h4 { margin: 18px 0 8px; font-size: var(--fs-sm); font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fc-src { font-size: 11.5px; margin: 12px 0 0; }
.wx-now { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md, 12px); }
.wx-now > i { font-size: 44px; color: #f5b84b; }
.wx-now__t { font-size: 28px; font-weight: 500; }
.wx-now__t small { font-size: 16px; color: var(--muted); }
.wx-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.wx-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 10px; background: var(--card-2); font-size: 12px; text-align: center; }
.wx-day i { font-size: 20px; color: #f5b84b; }
.wx-day.is-sel { outline: 1.5px solid rgba(181,124,245,.9); background: rgba(168,85,247,.12); }
.mini-table tr.is-sel td { background: rgba(168,85,247,.10); }
.mini-table tr.is-imp td { font-weight: 500; }
@media (max-width: 575.98px) { .wx-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } .wx-day:nth-child(n+5) { display: none; } }
.status-banner:not([class*="is-"]) { background: var(--card-2); border: 1px solid var(--line); }

/* Bayram tarihi onayı */
.hol-pending { border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: var(--r-md, 12px); padding: 14px 16px; margin-bottom: 10px; background: color-mix(in srgb, var(--warn) 6%, transparent); }
.hol-pending__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hol-alert { margin-bottom: 16px; text-decoration: none; color: var(--warn); }
.hol-alert:hover { filter: brightness(1.1); }
#bayram .card__head h2 { display: inline-flex; align-items: center; }

/* Kasa ekstresi · kaynak bazında tahsilat: takvim yüksekliğinde, içi kayar */
.src-card { display: flex; flex-direction: column; }
.src-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.src-scroll thead th { position: sticky; top: 0; z-index: 2; background: linear-gradient(var(--sheet), var(--sheet)), var(--bg-2); }
.src-scroll tfoot td { position: sticky; bottom: 0; z-index: 2; background: linear-gradient(var(--sheet), var(--sheet)), var(--bg-2); box-shadow: 0 -1px 0 var(--line-2); }
@media (min-width: 1200px) {
  /* Yüksekliği yalnızca takvim belirler; bu kart satırı uzatmaz */
  .src-card { height: 0; min-height: 100%; }
}
@media (max-width: 1199.98px) { .src-scroll { max-height: 440px; } }
.src-amt { white-space: nowrap; }
.src-table td, .src-table th { padding-left: 6px; padding-right: 6px; }
.src-table td:first-child, .src-table th:first-child { padding-left: 14px; }
.src-table td:last-child, .src-table th:last-child { padding-right: 14px; white-space: nowrap; }
.src-share { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.seg--sm button { height: 28px; padding: 0 10px; font-size: 12px; }
.seg button small { opacity: .6; margin-left: 2px; }

/* Şube ayarları · unvanlar */
.title-table td { vertical-align: middle; }
.title-table .input--sm, .title-table .select.input--sm { height: 36px; padding-top: 0; padding-bottom: 0; }
.title-table small { display: block; margin-top: 3px; font-size: 11px; }
.title-move { white-space: nowrap; }
.title-move .icon-btn + .icon-btn { margin-left: 2px; }
.icon-btn:disabled { opacity: .3; cursor: not-allowed; }

/* Şube ayarları · düzen */
.settings-nav { display: flex; gap: 4px; padding: 6px; border-radius: var(--r-lg, 16px); overflow-x: auto; scrollbar-width: none; position: sticky; top: 92px; z-index: 5; }
.settings-nav::-webkit-scrollbar { display: none; }
.settings-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: var(--fs-sm); white-space: nowrap; }
.settings-nav a:hover, .settings-nav a.is-active { background: var(--card-2); color: var(--ink); }
.content section[id] { scroll-margin-top: 160px; }
.set-group { border: 0; margin: 0; padding: 18px 0; border-top: 1px solid var(--line); min-width: 0; }
.set-group:first-child { border-top: 0; padding-top: 4px; }
.set-group legend { float: left; width: 100%; padding: 0; margin: 0 0 4px; font-size: var(--fs-base); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.set-group legend i { color: var(--accent); font-size: 18px; }
.set-group legend + * { clear: both; }
.set-group__desc { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
.set-tabs { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; }
.set-tabs__nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 90px; }
.set-tabs__label { padding: 10px 12px 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.set-tabs__label:first-child { padding-top: 0; }
.set-tabs__group { display: contents; }
.set-tabs__tab { position: relative; display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-template-areas: "i n" "i s"; column-gap: 10px; align-items: center; text-align: left;
  padding: 10px 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.set-tabs__tab:hover { background: var(--card-2); }
.set-tabs__tab.is-active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); }
.set-tabs__tab > i { grid-area: i; font-size: 18px; color: var(--muted); }
.set-tabs__tab.is-active > i { color: var(--accent); }
.set-tabs__name { grid-area: n; font-size: var(--fs-sm); font-weight: 500; }
.set-tabs__sum { grid-area: s; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.set-tabs__dot { display: none; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.set-tabs__tab.is-dirty .set-tabs__dot { display: block; }
.set-tabs__panes { border-left: 1px solid var(--line); padding-left: 20px; min-height: 280px; }
.set-tabs__title { display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; font-size: var(--fs-base); font-weight: 500; }
.set-tabs__title i { color: var(--accent); font-size: 18px; }
@media (max-width: 860px) {
  .set-tabs { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .set-tabs__nav { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 2px; }
  .set-tabs__tab { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-color: var(--line); }
  .set-tabs__name { white-space: nowrap; }
  .set-tabs__sum { display: none; }
  .set-tabs__label { display: none; }
  .set-tabs__dot { top: 4px; right: 4px; }
  .set-tabs__title { display: none; }
  .set-tabs__panes { border-left: 0; padding-left: 0; min-height: 0; }
}
@media (max-width: 767.98px) { .settings-nav { top: 76px; } }
.settings-foot { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.settings-foot .muted { font-size: 12.5px; color: var(--warn); display: inline-flex; align-items: center; gap: 6px; }
.settings-foot { flex-wrap: wrap; }
@media (max-width: 575.98px) { .settings-foot .btn { flex: 1 1 100%; justify-content: center; } }
.preset-head, .preset-row { display: grid; grid-template-columns: minmax(0, 260px) 140px 130px 130px 40px; gap: 8px; align-items: center; }
.preset-head { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; padding: 0 2px; }
@media (max-width: 767.98px) {
  .preset-head { display: none; }
  .preset-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px; }
  .preset-row [data-k="label"] { grid-column: 1 / 3; }
}
.token-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.token { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md, 12px); }
.token .chip { align-self: flex-start; }

/* Vardiya · personele gönder */
.send-list { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; }
.send-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.send-row.is-off { opacity: .5; cursor: not-allowed; }
.send-row input { margin-top: 4px; }
.send-sample { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--card-2); font-size: 12.5px; word-break: break-all; }
.send-group { display: inline-flex; align-items: center; gap: 6px; padding: 3px 3px 3px 3px; border-radius: 14px; border: 1px solid var(--line); flex-wrap: nowrap; }
.send-group .seg { border: 0; background: transparent; padding: 0; }
#unsentChip { margin-left: 4px; padding: 0 6px; font-size: 11px; }
@media (max-width: 1599.98px) { .toolbar .tb-lbl { display: none; } }

/* Kontrol formları */
.kf-table td { vertical-align: middle; }
.kf-prog { width: 70px; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 3px; }
.kf-prog i { display: block; height: 100%; background: var(--good); }
.kf-ans tr.is-no td { background: var(--bad-soft); }
.kf-note { color: var(--muted); display: inline-flex; gap: 4px; margin-top: 4px; }
.kf-photos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.kf-photos img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.kf-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 20px 14px; }
.kf-select { height: 34px; font-size: 13px; width: auto; min-width: 150px; max-width: 220px; padding-top: 0; padding-bottom: 0; }
.kf-remind { margin-left: auto; font-size: 12.5px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }

/* Kontrol formları · sekmeler ve soru düzenleme */
.kf-tabs { margin-bottom: 4px; }
.kf-qgroups { margin: 0 0 14px; flex-wrap: wrap; }
.kf-qgroups button small { opacity: .6; margin-left: 3px; }
.q-cat { text-transform: capitalize; }
.q-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 4px; border-top: 1px solid var(--line); }
.q-row.is-off { opacity: .55; }
.q-move { display: flex; flex-direction: column; gap: 2px; }
.q-no { min-width: 26px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.q-main { flex: 1; min-width: 0; }
.q-main > small { display: block; margin-top: 3px; }
.q-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 6px; }
.q-opts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 18px; }
.q-sub { opacity: .9; }
.q-sub:has(input:disabled) { opacity: .4; }
.q-prev-box { margin-top: 6px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.q-prev-radio { display: flex; gap: 18px; color: var(--muted); }
.q-prev-note { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; color: var(--muted); font-size: 13px; }
.q-prev-up { color: var(--accent); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }

/* Kontrol formları: sekme kapsayıcısı sayfa düzeni gibi davranır (bölümler arası boşluk) */
[data-view]:not([hidden]) { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

/* Personel · kontrol formu sayfası */
.kfp-body { min-height: 100dvh; }
.kfp { max-width: 640px; margin: 0 auto; padding: 16px 14px calc(110px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; }
.kfp-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 18px; }
.kfp-head h1 { margin: 0; font-size: 16px; font-weight: 500; }
.kfp-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.kfp-progress { height: 6px; border-radius: 4px; background: var(--card-2); overflow: hidden; }
.kfp-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3eb0f0, #2dd4bf); transition: width .25s ease; }
.kfp-card { padding: 20px 18px; border-radius: 20px; min-height: 260px; }
.kfp-intro { text-align: center; padding: 10px 4px; }
.kfp-intro > i { font-size: 46px; color: var(--accent); }
.kfp-intro h2 { margin: 8px 0; font-size: 22px; font-weight: 500; }
.kfp-intro p { color: var(--muted); line-height: 1.55; margin: 0 0 8px; }
.kfp-resume { color: var(--warn) !important; display: inline-flex; gap: 6px; align-items: center; }
.kfp-done > i { color: var(--good); font-size: 64px; }
.kfp-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.kfp-meta .chip { text-transform: capitalize; }
.kfp-q h2 { margin: 0 0 18px; font-size: 19px; line-height: 1.4; font-weight: 500; }
.kfp-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.kfp-yesno button { height: 58px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card-2); color: var(--ink); font: inherit; font-size: 17px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; transition: transform .1s, background .15s, border-color .15s; }
.kfp-yesno button:active { transform: scale(.97); }
.kfp-yesno .is-yes.is-on { background: var(--good-soft); border-color: var(--good); color: var(--good); }
.kfp-yesno .is-no.is-on { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.kfp-label { display: block; margin: 6px 0 6px; font-size: 13px; color: var(--muted); }
.kfp-label em { color: var(--bad); font-style: normal; font-weight: 500; }
.kfp .textarea { font-size: 16px; }
.kfp-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.kfp-ph { position: relative; width: 86px; height: 86px; }
.kfp-ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.kfp-ph button { position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: var(--bad); color: #fff; display: grid; place-items: center; cursor: pointer; }
.kfp-add { width: 86px; height: 86px; border-radius: 12px; border: 1.5px dashed var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--accent); font-size: 11px; text-align: center; cursor: pointer; position: relative; }
.kfp-add i { font-size: 26px; }
.kfp-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.kfp-add.is-busy { opacity: .6; pointer-events: none; }
.kfp-err { color: var(--bad); font-size: 13.5px; min-height: 18px; margin: 12px 0 0; }
.kfp-nav { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 35%); max-width: 640px; margin: 0 auto; }
.kfp-nav[hidden] { display: none; }
.kfp-nav .btn { height: 52px; }
.kfp-sum h2 { margin: 0 0 12px; font-size: 20px; font-weight: 500; }
.kfp-sum h3 { margin: 18px 0 8px; font-size: 14px; color: var(--bad); font-weight: 500; }
.kfp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kfp-stats div { padding: 12px; border-radius: 12px; background: var(--card-2); text-align: center; }
.kfp-stats b { display: block; font-size: 22px; font-weight: 500; }
.kfp-stats span { font-size: 12px; color: var(--muted); }
.kfp-stats .is-no b { color: var(--bad); }
.kfp-stats .is-miss b { color: var(--warn); }
.kfp-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.kfp-list li { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 3px; font-size: 14px; }
.kfp-list li small { color: var(--muted); }
.kfp-list.is-no li { border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.kfp-confirm { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 4px; font-size: 14px; line-height: 1.45; }
.kfp-confirm input { width: 20px; height: 20px; margin-top: 2px; flex: none; }

/* Ekstre · tahmin penceresi yükleniyor */
.fc-loader { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--muted); }
.fc-loader > i { font-size: 40px; color: var(--accent); }
.fc-loader b { color: var(--ink); font-weight: 500; }
.fc-loader ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; font-size: var(--fs-sm); }
.fc-loader li { padding: 4px 10px; border-radius: 999px; background: var(--card-2); animation: fcPulse 1.6s ease-in-out infinite; }
.fc-loader li:nth-child(2) { animation-delay: .2s; } .fc-loader li:nth-child(3) { animation-delay: .4s; } .fc-loader li:nth-child(4) { animation-delay: .6s; }
@keyframes fcPulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* Personel · oturumlar */
.sess-list { display: flex; flex-direction: column; gap: 8px; }
.sess-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.sess-item > i { font-size: 24px; color: var(--accent); flex: none; }
.sess-item > .grow { flex: 1; min-width: 0; }
.sess-item b { font-weight: 500; }
.sess-item small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
.sess-sub { display: flex; align-items: center; gap: 8px; margin: 22px 0 6px; font-size: var(--fs-md, 15px); font-weight: 500; }

/* Yedekleme */
.yd-scope { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 14px; }
.yd-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card-2); cursor: pointer; }
.yd-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.yd-opt input { margin-top: 3px; accent-color: var(--accent); }
.yd-opt b { font-weight: 500; display: block; }
.yd-opt small { color: var(--muted); font-size: var(--fs-xs); line-height: 1.45; display: block; margin-top: 3px; }
.yd-tools { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.yd-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px; max-height: 360px; overflow: auto; padding: 2px; }
.yd-tables--sm { max-height: 220px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.yd-t { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: var(--fs-sm); cursor: pointer; min-width: 0; }
.yd-t.is-on { border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: var(--accent-soft); }
.yd-t input { accent-color: var(--accent); flex: none; }
.yd-t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.yd-t small { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.yd-foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.yd-foot .muted { margin-right: auto; font-size: var(--fs-sm); }
.yd-job { padding: 16px 20px; }
.yd-job__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.yd-job__head > i { font-size: 26px; color: var(--accent); }
.yd-job__head .grow { flex: 1; min-width: 0; }
.yd-job.is-warn .yd-job__head > i { color: var(--warn); }
.yd-job.is-warn .yd-job__msg { color: var(--warn); }
.yd-job__head small { display: block; color: var(--muted); font-size: var(--fs-xs); margin-top: 2px; }
.yd-job.is-done .yd-job__head > i { color: var(--good); }
.yd-job.is-fail .yd-job__head > i { color: var(--bad); }
.yd-bar { height: 8px; border-radius: 6px; background: var(--card-2); overflow: hidden; }
.yd-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3eb0f0, #2dd4bf); transition: width .4s ease; }
.yd-job.is-fail .yd-bar i { background: var(--bad); }
.yd-job__msg { margin: 10px 0 0; font-size: var(--fs-sm); }
.yd-job.is-fail .yd-job__msg { color: var(--bad); }
.yd-warn { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--bad-soft); color: var(--ink); font-size: var(--fs-sm); line-height: 1.5; margin-bottom: 14px; }
.yd-warn > i { color: var(--bad); font-size: 22px; flex: none; }
.yd-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.yd-meta div { padding: 10px 12px; border-radius: 10px; background: var(--card-2); }
.yd-meta small { display: block; color: var(--muted); font-size: 11px; }
.yd-meta b { font-weight: 500; font-size: var(--fs-sm); }
@media (max-width: 760px) { .yd-scope, .yd-meta { grid-template-columns: 1fr; } .yd-foot .input { max-width: none !important; width: 100%; } }

/* Ekran kilidi */
.lockscreen { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100dvh; place-items: center; color: var(--ink); }
.lockscreen[open] { display: grid; } /* kapalıyken (kilit açılınca) sayfada görünmesin */
.lockscreen::backdrop { background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(28px) saturate(.8); backdrop-filter: blur(28px) saturate(.8); }
.lockscreen__card { width: min(380px, calc(100vw - 32px)); padding: 30px 26px 22px; border-radius: 22px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; background: var(--menu-bg); animation: pop .25s var(--ease); }
.lockscreen__avatar { width: 64px; height: 64px; font-size: 22px; border-radius: 20px; }
.lockscreen__card h2 { margin: 2px 0 0; font-size: 19px; font-weight: 500; }
.lockscreen__card p { margin: 0; font-size: var(--fs-sm); line-height: 1.5; }
.lockscreen__card p i { vertical-align: -2px; }
.lockscreen__card .input-group { width: 100%; }
.lockscreen__err { color: var(--bad); min-height: 18px; }
.lockscreen__out { font-size: var(--fs-sm); color: var(--muted); display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
html.is-locked body > *:not(.lockscreen):not(.toasts) { filter: blur(14px); }
.lock-page .lock-backdrop { position: fixed; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(11, 120, 180, .35), transparent 55%), radial-gradient(circle at 80% 80%, rgba(227, 24, 55, .25), transparent 50%), var(--bg); }

/* Kârlılık */
#viewSeg button { display: inline-flex; align-items: center; gap: 6px; }
#viewSeg button i { font-size: 16px; }
.kr-warn { display: flex; gap: 8px; align-items: center; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft, rgba(255, 196, 87, .12)); color: var(--warn); font-size: var(--fs-sm); }
.kr-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: var(--gap); align-items: stretch; }
.kr-exp-card { display: flex; flex-direction: column; }
.kr-pnl { display: flex; flex-direction: column; }
.kr-pnl #pnl { flex: 1 1 auto; display: flex; flex-direction: column; }
.kr-unit { margin-top: auto; padding-top: 14px; }
.kr-unit__title { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.kr-unit__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.kr-unit__grid > div { padding: 10px 12px; border-radius: 12px; background: var(--card-2); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kr-unit__grid span { font-size: 11.5px; color: var(--muted); }
.kr-unit__grid b { font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kr-unit__grid b.is-good { color: var(--good); } .kr-unit__grid b.is-bad { color: var(--bad); }
.kr-exp-card .kr-exp { margin-bottom: 14px; }
.kr-exp-card .settings-foot { margin-top: auto; }
.kr-notes__text { width: 100%; min-height: 96px; resize: vertical; line-height: 1.55; padding: 12px 14px; font: inherit; font-size: var(--fs-sm); }
.kr-notes__foot { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 10px; font-size: 12.5px; }
.kr-notes__foot #noteInfo { flex: 1 1 auto; }
.kr-notes__count { color: var(--muted); font-variant-numeric: tabular-nums; }
.kr-notes__dirty { color: var(--warn); display: inline-flex; align-items: center; gap: 4px; }
.kr-trend__chart { position: relative; height: 280px; }
.kr-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.kr-table td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.kr-table td small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.kr-table td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.kr-table td.muted { width: 60px; }
.kr-table .kr-sec td { padding-top: 16px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; border-bottom: 0; }
.kr-table .kr-info td { color: var(--muted); font-size: 12.5px; padding-top: 5px; padding-bottom: 5px; }
.kr-table .kr-info td:first-child { padding-left: 14px; }
.kr-table .is-sub td { font-weight: 500; border-top: 1px solid var(--line-2); }
.kr-table .is-total td { font-weight: 500; font-size: var(--fs-md, 15px); }
.kr-table .is-total.is-good td:not(.muted) { color: var(--good); }
.kr-table .is-total.is-bad td:not(.muted) { color: var(--bad); }
b.is-good, span.is-good { color: var(--good); }
b.is-bad, span.is-bad { color: var(--bad); }
.kr-stack { display: grid; gap: var(--gap); }
.kr-exp { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.kr-exp__nav { display: flex; flex-direction: column; gap: 4px; }
.kr-exp__tab { display: grid; grid-template-columns: 20px minmax(0, 1fr); grid-template-areas: "i n" "i s"; column-gap: 10px; align-items: center; text-align: left;
  padding: 9px 12px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink-2); font: inherit; cursor: pointer; transition: background .15s, border-color .15s; }
.kr-exp__tab:hover { background: var(--card-2); }
.kr-exp__tab.is-active { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--ink); }
.kr-exp__tab i { grid-area: i; font-size: 18px; color: var(--muted); }
.kr-exp__tab.is-active i { color: var(--accent); }
.kr-exp__tname { grid-area: n; font-size: var(--fs-sm); font-weight: 500; }
.kr-exp__tsum { grid-area: s; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.kr-exp__tab.is-active .kr-exp__tsum { color: var(--accent); }
.kr-exp__tsum.is-empty { color: var(--muted); }
.kr-exp__pane { border-left: 1px solid var(--line); padding-left: 16px; }
.kr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kr-row:last-child { border-bottom: 0; }
.kr-row__label { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: var(--fs-sm); color: var(--ink); min-width: 0; }
.kr-row__input { position: relative; flex: 0 0 170px; }
.kr-row__input .input { height: 38px; text-align: right; padding-right: 30px; font-variant-numeric: tabular-nums; }
.kr-row__input em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-size: var(--fs-sm); pointer-events: none; }
.kr-calc { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.3fr); align-items: end; gap: 6px 10px; margin: 2px 0 6px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); }
.kr-calc label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); min-width: 0; }
.kr-calc .input { height: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.kr-calc .kr-row__input { flex: none; }
.kr-calc > b { padding-bottom: 8px; color: var(--muted); font-weight: 400; }
.kr-calc small { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); }
.kr-fill { border: 0; background: var(--accent-soft); color: var(--accent); border-radius: 999px; font: inherit; font-size: 11px; padding: 1px 8px; cursor: pointer; }
.kr-sub { margin: 16px 0 4px; font-size: var(--fs-sm); font-weight: 500; }
.kr-partner { display: flex; gap: 8px; align-items: center; }
.kr-partner .input-group { position: relative; }
.kr-partner .input-suffix { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: var(--fs-sm); pointer-events: none; }
.kr-foot td { border-top: 1px solid var(--line-2); }
@media (max-width: 1100px) { .kr-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .kr-exp { grid-template-columns: 1fr; gap: 10px; }
  .kr-exp__nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; padding: 0 4px 2px; }
  .kr-exp__tab { flex: none; padding: 7px 12px; }
  .kr-exp__pane { border-left: 0; padding-left: 0; }
  .kr-row__input { flex-basis: 150px; }
}

/* ---------- Hareket kayıtları ---------- */
.lg-bar { flex-wrap: wrap; gap: 10px; }
.lg-bar__search { flex: 1 1 200px; min-width: 180px; }
.lg-bar .select { flex: 0 1 165px; min-width: 130px; }
.lg-bar__dates { gap: 6px; flex-wrap: nowrap; }
.lg-bar__dates .input { width: 150px; }
.lg-bar__end { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.lg-bar .seg button { padding: 0 10px; }
.lg-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.lg-stat { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius, 18px); background: var(--card); border: 1px solid var(--line); min-width: 0; }
.lg-stat__icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 19px; }
.lg-stat > div { display: flex; flex-direction: column; min-width: 0; }
.lg-stat__label { font-size: 12px; color: var(--muted); }
.lg-stat__value { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.25; }
.lg-stat small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-stat.is-warn { cursor: pointer; transition: border-color .15s, background .15s; }
.lg-stat.is-warn .lg-stat__icon { background: var(--warn-soft, rgba(255, 196, 87, .14)); color: var(--warn); }
.lg-stat.is-warn:hover, .lg-stat.is-warn:focus-visible { border-color: color-mix(in srgb, var(--warn) 50%, transparent); outline: none; }
.lg-stat.is-warn.is-on { border-color: var(--warn); background: color-mix(in srgb, var(--warn) 9%, var(--card)); }
.lg-stat.is-warn.is-zero .lg-stat__icon { background: var(--card-2); color: var(--muted); }

.lg-list { transition: opacity .15s; }
.lg-list.is-loading { opacity: .5; pointer-events: none; }
.lg-day + .lg-day { border-top: 1px solid var(--line); }
.lg-day__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 20px;
  background: color-mix(in srgb, var(--card-solid, var(--bg)) 92%, transparent); backdrop-filter: blur(8px); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.lg-day__head small { font-weight: 400; color: var(--muted); }
.lg-row { display: grid; grid-template-columns: 70px 34px minmax(0, 1fr) minmax(0, 220px) 18px; align-items: center; gap: 14px; width: 100%; padding: 10px 20px;
  border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .12s; position: relative; }
.lg-day__head + .lg-row { border-top: 0; }
.lg-row:hover { background: var(--card-2); }
.lg-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lg-row.is-warn::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--warn); }
.lg-row__time { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lg-row__main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lg-row__main b { font-size: var(--fs-sm); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-row__main small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-row.is-warn .lg-row__main b { color: var(--warn); }
.lg-row__user { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.lg-row__user > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lg-row__go { color: var(--muted); font-size: 18px; }
.avatar--sm { width: 26px; height: 26px; border-radius: 8px; font-size: 10.5px; }

/* Kategori simgeleri: her kategorinin kendi rengi */
.lg-cat { --c: #94a3b8; width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; border-radius: 10px; font-size: 17px;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
.lg-cat--oturum { --c: #3b82f6; } .lg-cat--kasa { --c: #22c55e; } .lg-cat--vardiya { --c: #a855f7; } .lg-cat--kontrol { --c: #14b8a6; }
.lg-cat--personel { --c: #f59e0b; } .lg-cat--iscilik { --c: #ec4899; } .lg-cat--stok { --c: #f97316; } .lg-cat--karlilik { --c: #10b981; }
.lg-cat--gorev { --c: #6366f1; } .lg-cat--yedek { --c: #64748b; } .lg-cat--ayarlar { --c: #0ea5e9; } .lg-cat--diger { --c: #94a3b8; }
.lg-row.is-warn .lg-cat { --c: var(--warn); }

.lg-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.lg-page { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.lg-page .input { width: 64px; height: 34px; text-align: center; padding: 0 6px; }
.lg-empty { padding: 56px 20px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.lg-empty b { font-weight: 500; color: var(--ink); }

/* Ayrıntı penceresi */
#dTitle { display: flex; align-items: center; gap: 10px; }
.lg-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.lg-meta > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--card-2); font-size: 12.5px; color: var(--ink-2); }
.lg-meta .mono { font-size: 11.5px; color: var(--muted); }
.lg-kv { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lg-kv__row { display: grid; grid-template-columns: minmax(120px, 32%) minmax(0, 1fr); gap: 12px; padding: 8px 14px; font-size: var(--fs-sm); }
.lg-kv__row + .lg-kv__row { border-top: 1px solid var(--line); }
.lg-kv__row:has(> .lg-kv__v:only-child) { grid-template-columns: 1fr; }
.lg-kv__k { color: var(--muted); }
.lg-kv__v { word-break: break-word; white-space: pre-wrap; }
.lg-diff { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin-bottom: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lg-diff th { text-align: left; font-size: 11.5px; font-weight: 500; color: var(--muted); padding: 8px 12px; background: var(--card-2); }
.lg-diff td { padding: 8px 12px; border-top: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.lg-diff__old { color: var(--bad); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.lg-diff__new { color: var(--good); font-weight: 500; }
.lg-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); color: var(--ink-2); font-size: 12.5px; }
.lg-note i { color: var(--accent); font-size: 16px; margin-top: 1px; }
.lg-raw { margin-top: 14px; }
.lg-raw summary { cursor: pointer; font-size: 12.5px; color: var(--muted); }
.lg-raw__tools { display: flex; justify-content: flex-end; margin: 6px 0; }
.lg-raw pre { max-height: 320px; overflow: auto; }

@media (max-width: 1100px) { .lg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .lg-bar .select { flex: 1 1 calc(50% - 10px); }
  .lg-bar__end { margin-left: 0; width: 100%; justify-content: space-between; }
  .lg-row { grid-template-columns: 34px minmax(0, 1fr) 16px; grid-template-areas: "c m g" "c u g"; row-gap: 4px; padding: 10px 14px; }
  .lg-row .lg-cat { grid-area: c; align-self: start; }
  .lg-row__main { grid-area: m; }
  .lg-row__user { grid-area: u; font-size: 11.5px; }
  .lg-row__user .avatar { display: none; }
  .lg-row__user::before { content: attr(data-time); }
  .lg-row__time { display: none; }
  .lg-row__go { grid-area: g; }
  .lg-day__head { padding: 10px 14px; flex-direction: column; gap: 0; }
  .lg-kv__row { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 480px) { .lg-stats { grid-template-columns: 1fr 1fr; gap: 8px; } .lg-stat { padding: 10px 12px; } .lg-stat__icon { display: none; } .lg-stat small { display: none; } }


/* Kasa · Tahsilat kaynakları: kaynak başına tek satır */
.kz { display: flex; flex-direction: column; gap: 16px; }
.kz-group { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card-2); }
.kz-group__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.kz-group__head i { color: var(--accent); font-size: 19px; }
.kz-group__head h3 { font-size: var(--fs-sm); font-weight: 600; margin: 0; }
.kz-group__count { font-size: 12px; color: var(--muted); }
.kz-group__total { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 600; }
.kz-row { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(0, 1.2fr) 150px 120px; align-items: center; gap: 12px; padding: 7px 14px; min-height: 50px; }
.kz-row + .kz-row { border-top: 1px solid var(--line); }
.kz-row:focus-within { background: var(--accent-soft); }
.kz-row__name { min-width: 0; line-height: 1.25; }
.kz-row__name b { display: block; font-weight: 500; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kz-row__name small { display: block; font-size: 11.5px; color: var(--faint); }
.kz-row__chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; min-width: 0; }
.kz-chip { display: inline-flex; align-items: center; gap: 3px; height: 24px; padding: 0 4px 0 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer; }
.kz-chip i { font-size: 14px; opacity: .5; }
.kz-chip:hover { border-color: var(--bad); }
.kz-chip:hover i { opacity: 1; color: var(--bad); }
.kz-chip:disabled { cursor: default; padding-right: 8px; }
.kz-chip:disabled i { display: none; }
.kz-del { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--faint); cursor: pointer; padding: 0; }
.kz-del:hover { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.kz-del:disabled { display: none; }
.kz-add { position: relative; }
.kz-add .input { height: 36px; border-radius: 10px; font-size: var(--fs-sm); text-align: right; width: 100%; padding-left: 40px; }
.kz-add__btn { position: absolute; left: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: var(--card); color: var(--muted); cursor: pointer; padding: 0; font-size: 18px; transition: background .15s, color .15s; }
.kz-add__btn:hover, .kz-add.has-text .kz-add__btn { background: var(--accent); color: #fff; }
.kz-add__btn:disabled { display: none; }
@media (max-width: 640px) { .kz-add .input { height: 40px; } .kz-add__btn { width: 32px; height: 32px; } }
.kz-row__total { display: flex; align-items: center; justify-content: flex-end; gap: 4px; text-align: right; font-variant-numeric: tabular-nums; color: var(--faint); white-space: nowrap; }
.kz-row.has-value .kz-row__total { color: var(--ink); font-weight: 600; }
.kz-row.has-value .kz-row__name b::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--good, #22c55e); margin: 0 7px 2px 0; vertical-align: middle; }
@media (max-width: 640px) {
  .kz-row { grid-template-columns: minmax(0, 1fr) 118px; grid-template-areas: "n i" "t i" "c c"; row-gap: 2px; column-gap: 10px; padding: 8px 12px; }
  .kz-row__name { grid-area: n; } .kz-row__input { grid-area: i; align-self: center; } .kz-row__chips { grid-area: c; justify-content: flex-start; } .kz-row__total { grid-area: t; justify-content: flex-start; font-size: 13px; }
  .kz-row__chips:empty { display: none; }
  .kz-row:not(.has-value) .kz-row__total { display: none; }
  .kz-row.has-value .kz-row__name small { display: none; }
  .kz-group__count { display: none; }
}

/* Kasa · Vadeli (veresiye) satış kartları */
.vd-card { display: flex; flex-direction: column; gap: 14px; }
.vd-head { display: flex; align-items: center; gap: 12px; }
.vd-head__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.vd-head__icon.is-out { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.vd-head__icon.is-in { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.vd-head__txt { min-width: 0; flex: 1; }
.vd-head__txt h2 { font-size: var(--fs-base); font-weight: 600; margin: 0; }
.vd-head__txt p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.vd-head__sum { text-align: right; line-height: 1.2; }
.vd-head__sum b { display: block; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vd-head__sum small { font-size: 11.5px; color: var(--muted); }
.vd-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.vd-list:has(.vd-empty) { border-style: dashed; }
.vd-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; min-height: 52px; }
.vd-row + .vd-row { border-top: 1px solid var(--line); }
.vd-row__av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); }
.vd-row__main { flex: 1; min-width: 0; line-height: 1.3; }
.vd-row__main b { display: block; font-weight: 500; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-row__main small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-row__end { display: flex; align-items: center; gap: 10px; flex: none; }
.vd-row__amt { min-width: 96px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.vd-row__amt.is-out { color: var(--warn); }
.vd-row__amt.is-in { color: var(--good); }
.vd-row__amt.is-late { color: var(--bad); }
.vd-row__del { opacity: .55; }
.vd-row:hover .vd-row__del, .vd-row__del:focus-visible { opacity: 1; }
.vd-row__del:hover { color: var(--bad); }
.vd-row__del:disabled { display: none; }
.vd-empty { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 12px; color: var(--muted); font-size: 12.5px; text-align: center; }
.vd-empty i { font-size: 18px; opacity: .7; }
.vd-add { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end; padding: 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.vd-add .field { margin: 0; gap: 4px; }
.vd-add label { font-size: 11.5px; color: var(--muted); }
.vd-add input::-webkit-calendar-picker-indicator { display: none !important; }
.vd-pending { display: flex; flex-direction: column; gap: 8px; }
.vd-pending__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; color: var(--muted); }
.vd-pending__head span:last-child { text-transform: none; letter-spacing: 0; font-weight: 400; }
.vd-pending__head i { margin-right: 4px; }
.vd-pending__list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: auto; max-height: 300px; scrollbar-width: thin; }
.vd-pending__list:has(.vd-empty) { border-style: dashed; }
.vd-collect { flex: none; }
.vd-collect:disabled { display: none; }
@media (max-width: 767.98px) {
  .vd-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .vd-add .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .vd-row { align-items: flex-start; }
  .vd-row__main small { white-space: normal; }
  .vd-row__end { flex-direction: column; align-items: flex-end; gap: 6px; }
  .vd-row__amt { min-width: 0; }
  .vd-pending__list { max-height: 360px; }
}

/* Kasa · Masraflar (türüyle) */
[data-tur="yakit"] { --mc: #f59e0b; } [data-tur="motor"] { --mc: #f97316; } [data-tur="icecek"] { --mc: #38bdf8; }
[data-tur="gida"] { --mc: #22c55e; } [data-tur="temizlik"] { --mc: #14b8a6; } [data-tur="ambalaj"] { --mc: #a78bfa; }
[data-tur="bakim"] { --mc: #94a3b8; } [data-tur="kirtasiye"] { --mc: #818cf8; }
[data-tur="diger"] { --mc: #9ca3af; }
.vd-head__icon.is-exp { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.ms-row__icon { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; color: var(--mc); background: color-mix(in srgb, var(--mc) 15%, transparent); }
.ms-row .vd-row__amt { color: var(--ink); }
.ms-row__type { appearance: none; -webkit-appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 11.5px; padding: 0 14px 0 0; margin: 1px 0 0; cursor: pointer; max-width: 100%;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 4px 4px; background-position: right 4px center, right 0 center; background-repeat: no-repeat; }
.ms-row__type { field-sizing: content; width: auto; }
.ms-row__type:hover:not(:disabled) { color: var(--ink); }
.ms-row__type:disabled { cursor: default; background-image: none; padding-right: 0; opacity: 1; }
.ms-row__type option { color: var(--ink); background: var(--bg-2, #1b2230); }
.ms-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.ms-cat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; border: 1px solid color-mix(in srgb, var(--mc) 35%, var(--line)); background: color-mix(in srgb, var(--mc) 9%, transparent); }
.ms-cat i { color: var(--mc); font-size: 14px; }
.ms-cat b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ms-cat small { color: var(--muted); }
.ms-add { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1fr); }
.vd-add .kz-add .input { height: 42px; }
.vd-add .kz-add__btn { width: 32px; height: 32px; }
.ms-add label small { font-weight: 400; }
.ms-type { position: relative; }
.ms-type > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--mc); pointer-events: none; }
.ms-type .select { padding-left: 38px; width: 100%; }
@media (max-width: 767.98px) {
  .ms-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ms-add .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .ms-row.vd-row { align-items: center; }
  .ms-row .vd-row__end { flex-direction: row; align-items: center; gap: 4px; }
}

/* Kasa · Bad sipariş (çöp fotoğrafıyla) */
.vd-head__icon.is-bad { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.bd-add { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); }
.bd-add .bd-photos { grid-column: 1 / -1; }
.bd-req { margin-left: 4px; padding: 1px 6px; border-radius: 6px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.bd-shots { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; border-radius: 12px; }
.bd-shots.is-missing .bd-shot-add { border-color: var(--bad); color: var(--bad); animation: bd-shake .35s; }
@keyframes bd-shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.bd-shot, .bd-shot-add { position: relative; width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex: none; }
.bd-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-shot.is-loading { display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); font-size: 22px; color: var(--muted); }
.bd-shot__del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; padding: 0; }
.bd-shot-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 1.5px dashed var(--line-2, var(--line)); color: var(--muted); font-size: 11.5px; cursor: pointer; text-align: center; background: var(--card); transition: border-color .15s, color .15s; }
.bd-shot-add i { font-size: 24px; }
.bd-shot-add:hover { border-color: var(--accent); color: var(--accent); }
.bd-shot-add:has(input:disabled) { display: none; }
.bd-thumb { position: relative; flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); padding: 0; background: var(--card); cursor: zoom-in; }
.bd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bd-thumb span { position: absolute; right: 2px; bottom: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; font-size: 10px; font-weight: 600; line-height: 16px; background: rgba(0,0,0,.65); color: #fff; }
.bd-thumb.is-empty { display: grid; place-items: center; color: var(--faint); font-size: 20px; cursor: default; border-style: dashed; }
.bd-row .vd-row__main small i { font-size: 12px; vertical-align: -1px; }
.bd-warn { color: var(--warn) !important; }
.bd-row .vd-row__amt { color: var(--ink); }
.bd-viewer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.bd-viewer figure { margin: 0; }
.bd-viewer img { width: 100%; max-height: 60vh; object-fit: contain; border-radius: 12px; background: #000; display: block; }
.bd-viewer figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
@media (max-width: 767.98px) {
  .bd-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bd-add .field:nth-child(3) { grid-column: 1 / -1; order: -1; }
  .bd-add .bd-photos { order: -2; }
}
@media (max-width: 575.98px) {
  .bd-row.vd-row { align-items: center; }
  .bd-row .vd-row__end { flex-direction: row; align-items: center; gap: 4px; }
}

.bd-rules { list-style: none; margin: 2px 0 8px; padding: 10px 12px; display: grid; gap: 5px; border-radius: 10px; font-size: 12.5px; color: var(--muted); background: color-mix(in srgb, var(--warn) 7%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 25%, var(--line)); }
.bd-rules li { display: flex; align-items: flex-start; gap: 7px; }
.bd-rules i { color: var(--warn); font-size: 15px; margin-top: 1px; }
.bd-rules b { color: var(--ink); font-weight: 500; }
.bd-shot-add.is-more { border-style: dashed; }
.bd-count { align-self: flex-end; font-size: 11.5px; color: var(--muted); margin-left: 2px; }

/* Kasa · Nakit sayımı (küpür başına satır, küçük banknot görseli) */
.vd-head__icon.is-cash { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); }
.cs-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto 36px minmax(90px, 120px); align-items: center; gap: 12px; padding: 8px 14px; min-height: 56px; }
.cs-row + .cs-row { border-top: 1px solid var(--line); }
.cs-row:focus-within { background: var(--accent-soft); }
.cs-row__money { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cs-row__label { font-weight: 600; font-variant-numeric: tabular-nums; }
.cs-row__unit { font-size: 12px; color: var(--muted); }
.cs-row__sum { text-align: right; font-variant-numeric: tabular-nums; color: var(--faint); font-weight: 500; white-space: nowrap; }
.cs-row.has-value .cs-row__sum { color: var(--ink); font-weight: 600; }
.cs-row:not(.has-value) .cs-note, .cs-row:not(.has-value) .cs-coin { filter: saturate(.55) brightness(.85); }
/* Banknot: küpürün gerçek rengi, köşede değer, ortada filigran dairesi */
.cs-note { --nc: #888; position: relative; flex: none; width: 58px; height: 32px; border-radius: 4px; overflow: hidden; display: block;
  background: linear-gradient(135deg, color-mix(in srgb, var(--nc) 85%, #fff) 0%, var(--nc) 55%, color-mix(in srgb, var(--nc) 75%, #000) 100%);
  box-shadow: 0 1px 2px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.18); transition: filter .2s; }
.cs-note::before { content: ""; position: absolute; inset: 3px; border: 1px solid rgba(255,255,255,.28); border-radius: 2px; }
.cs-note i { position: absolute; left: 7px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: rgba(255,255,255,.22); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.cs-note b { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: -.02em; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
.cs-note[data-note="200"] { --nc: #a8457f; } .cs-note[data-note="100"] { --nc: #2f6db3; } .cs-note[data-note="50"] { --nc: #cf7a2e; }
.cs-note[data-note="20"] { --nc: #2e8f57; } .cs-note[data-note="10"] { --nc: #c23b3d; } .cs-note[data-note="5"] { --nc: #7b5577; }
/* 1 ₺: gümüş göbek, altın halka */
.cs-coin { flex: none; width: 32px; height: 32px; margin: 0 13px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 50%, #eef0f2 0, #c5cad0 54%, transparent 56%), radial-gradient(circle at 35% 30%, #f6dd86, #c9a03a 60%, #9c7a1f);
  box-shadow: 0 1px 2px rgba(0,0,0,.35); transition: filter .2s; }
.cs-coin b { font-size: 12px; font-weight: 800; color: #4b5563; }
.cs-step { display: grid; grid-template-columns: 36px 74px 36px; gap: 6px; }
.cs-step button { height: 38px; border: 1px solid var(--line-2, var(--line)); background: var(--card); border-radius: 10px; cursor: pointer; color: var(--ink-2, var(--ink)); font-size: 18px; display: grid; place-items: center; padding: 0; }
.cs-step button:hover:not(:disabled) { background: var(--card-3, var(--card-2)); }
.cs-step button:disabled { opacity: .4; cursor: default; }
.cs-step .input { height: 38px; text-align: center; padding: 0 4px; font-variant-numeric: tabular-nums; font-weight: 600; -moz-appearance: textfield; }
.cs-step .input::-webkit-outer-spin-button, .cs-step .input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cs-check { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card-2); transition: border-color .2s, background .2s; }
.cs-check > div { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.cs-check > div + div { border-left: 1px solid var(--line); }
.cs-check span { font-size: 11.5px; color: var(--muted); }
.cs-check b { font-variant-numeric: tabular-nums; font-weight: 600; font-size: 15px; }
.cs-check.is-ok { border-color: color-mix(in srgb, var(--good) 45%, var(--line)); background: color-mix(in srgb, var(--good) 8%, var(--card-2)); }
.cs-check.is-ok .cs-check__diff b { color: var(--good); }
.cs-check.is-off { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.cs-check.is-off .cs-check__diff b { color: var(--bad); }
@media (max-width: 575.98px) {
  .cs-row { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "m t s"; gap: 10px; padding: 8px 12px; }
  .cs-row__money { grid-area: m; } .cs-step { grid-area: s; grid-template-columns: 38px 54px 38px; }
  .cs-row__unit, .cs-row__label { display: none; }
  .cs-row__sum { grid-area: t; text-align: left; font-size: 13.5px; }
  .cs-check > div { padding: 8px 10px; } .cs-check b { font-size: 13.5px; }
}

/* Kasa · kaydedilmemiş değişiklik penceresi */
.dr-modal .modal__head h3 { display: flex; align-items: center; gap: 8px; }
.dr-modal .modal__head h3 i { color: var(--warn); }
.dr-list { list-style: none; margin: 12px 0; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.dr-list li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto 16px auto; align-items: center; gap: 8px; padding: 9px 12px; font-size: var(--fs-sm); }
.dr-list li + li { border-top: 1px solid var(--line); }
.dr-list li > i:first-child { color: var(--muted); font-size: 16px; }
.dr-list s { color: var(--muted); font-variant-numeric: tabular-nums; }
.dr-list b { font-variant-numeric: tabular-nums; }
.dr-arrow { color: var(--faint); }
.dr-help { font-size: 12.5px; margin: 0; }
@media (max-width: 575.98px) { .dr-list li { grid-template-columns: 20px minmax(0, 1fr) auto; } .dr-list s, .dr-arrow { display: none; } }

/* Ayarlar · OSA geçmişi yıllara göre */
.osa-years { display: flex; flex-direction: column; gap: 8px; }
.osa-year { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.osa-year summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; background: var(--card-2); }
.osa-year summary::-webkit-details-marker { display: none; }
.osa-year summary b { font-size: var(--fs-base); font-weight: 600; font-variant-numeric: tabular-nums; }
.osa-year summary span { font-size: 12px; color: var(--muted); }
.osa-year summary i { margin-left: auto; font-size: 18px; color: var(--muted); transition: transform .2s; }
.osa-year[open] summary i { transform: rotate(180deg); }
.osa-year[open] summary { border-bottom: 1px solid var(--line); }
.osa-year .mini-table td:first-child { padding-left: 14px; }
.osa-year .mini-table td:last-child { padding-right: 10px; }
.osa-hist__year { padding: 8px 10px 2px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.osa-hist__year:first-child { padding-top: 0; }

/* Ayarlar · Ödeme kaynakları */
.ps-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ps-stat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); }
.ps-stat > i { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 19px; color: var(--accent); background: var(--accent-soft); flex: none; }
.ps-stat > div { min-width: 0; flex: 1; line-height: 1.2; }
.ps-stat b { display: block; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ps-stat span { font-size: 12px; color: var(--muted); }
.ps-stat small { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ps-groups { display: flex; flex-direction: column; gap: 14px; }
.ps-group { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ps-group__head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card-2); border-bottom: 1px solid var(--line); }
.ps-group__head i { color: var(--accent); font-size: 18px; }
.ps-group__head h3 { margin: 0; font-size: var(--fs-sm); font-weight: 600; }
.ps-group__head span { margin-left: auto; font-size: 12px; color: var(--muted); }
.ps-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 76px 104px 34px; align-items: center; gap: 12px; padding: 9px 14px; min-height: 54px; }
.ps-row + .ps-row { border-top: 1px solid var(--line); }
.ps-row:hover { background: color-mix(in srgb, var(--card-2) 60%, transparent); }
.ps-row__ord { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 11.5px; font-variant-numeric: tabular-nums; color: var(--muted); background: var(--card-2); border: 1px solid var(--line); }
.ps-row__main { min-width: 0; line-height: 1.3; }
.ps-row__main b { display: block; font-weight: 500; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-row__main b.is-term { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.ps-row__main small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-row__fee { justify-self: end; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.ps-row__fee.is-zero { color: var(--muted); background: var(--card-2); font-weight: 500; }
.ps-row__sw { justify-self: start; font-size: 12.5px; }
.ps-row.is-off .ps-row__main, .ps-row.is-off .ps-row__fee, .ps-row.is-off .ps-row__ord { opacity: .5; }
.ps-row.is-off .ps-row__swtxt { color: var(--muted); }
@media (max-width: 767.98px) {
  .ps-summary { grid-template-columns: 1fr; gap: 6px; }
  .ps-stat { padding: 8px 12px; } .ps-stat > i { width: 32px; height: 32px; font-size: 16px; } .ps-stat b { font-size: 16px; display: inline; margin-right: 6px; }
  .ps-row { grid-template-columns: 24px minmax(0, 1fr) auto auto 30px; gap: 8px; padding: 8px 10px; min-height: 50px; }
  .ps-row__ord { width: 24px; height: 24px; font-size: 11px; }
  .ps-row__fee { padding: 2px 7px; font-size: 11.5px; }
  .ps-row__swtxt { display: none; }
}

/* Genel Bakış · Aylık hedef */
.tg { display: flex; flex-direction: column; gap: 12px; }
.tg-head { display: flex; align-items: center; gap: 16px; }
.tg-ring { position: relative; width: 84px; height: 84px; flex: none; }
.tg-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tg-ring__bg { fill: none; stroke: var(--line); stroke-width: 8; }
.tg-ring__fg { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.tg-ring.is-ahead .tg-ring__fg { stroke: var(--good); } .tg-ring.is-behind .tg-ring__fg { stroke: var(--warn); }
.tg-ring__txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.tg-ring__txt b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tg-ring__txt span { font-size: 10.5px; color: var(--muted); }
.tg-big { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.tg-big span { font-size: 12px; color: var(--muted); }
.tg-big b { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tg-big small { font-size: 12px; color: var(--muted); }
.tg-bar { position: relative; height: 8px; border-radius: 99px; background: var(--card-2); border: 1px solid var(--line); }
.tg-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.tg-bar i.is-ahead { background: linear-gradient(90deg, color-mix(in srgb, var(--good) 60%, transparent), var(--good)); }
.tg-bar i.is-behind { background: linear-gradient(90deg, color-mix(in srgb, var(--warn) 60%, transparent), var(--warn)); }
.tg-bar em { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); border-radius: 2px; opacity: .7; }
.tg-status { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; font-size: 12.5px; padding: 7px 10px; border-radius: 10px; }
.tg-status i { font-size: 16px; margin-right: 2px; }
.tg-status span { color: var(--muted); }
.tg-status.is-ahead { background: color-mix(in srgb, var(--good) 10%, transparent); } .tg-status.is-ahead i, .tg-status.is-ahead b { color: var(--good); }
.tg-status.is-behind { background: color-mix(in srgb, var(--warn) 10%, transparent); } .tg-status.is-behind i, .tg-status.is-behind b { color: var(--warn); }
.tg-kpis { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tg-kpi { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "n v"; align-items: center; column-gap: 10px; padding: 8px 12px; min-width: 0; }
.tg-kpi + .tg-kpi { border-top: 1px solid var(--line); }
.tg-kpi span { grid-area: l; font-size: 12.5px; color: var(--ink-2, var(--ink)); }
.tg-kpi small { grid-area: n; font-size: 11px; color: var(--muted); }
.tg-kpi b { grid-area: v; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tg-kpi small.up { color: var(--good); } .tg-kpi small.down { color: var(--warn); }
.tg-kpi small .delta { font-size: 11px; }
.tg-cta { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line); color: var(--accent); text-decoration: none; font-size: var(--fs-sm); }
.tg-cta i:last-child { margin-left: auto; }
/* Genel Bakış · Vardiyadakiler */
.sh-sum { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sh-sum:empty { display: none; }
.sh-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; background: var(--card-2); border: 1px solid var(--line); color: var(--muted); }
.sh-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.sh-pill.is-in i { background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 25%, transparent); }
.sh-pill.is-next i { background: var(--accent); }
.sh-list { display: flex; flex-direction: column; }
.sh-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.sh-row + .sh-row { border-top: 1px solid var(--line); }
.sh-av { --sc: var(--accent); width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--sc); background: color-mix(in srgb, var(--sc) 15%, transparent); position: relative; }
.sh-av[data-t="morning"] { --sc: #f59e0b; } .sh-av[data-t="middle"] { --sc: #38bdf8; } .sh-av[data-t="night"] { --sc: #a78bfa; }
.sh-row.is-in .sh-av::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--good); border: 2px solid var(--bg-2, #111); }
.sh-main { flex: 1; min-width: 0; line-height: 1.3; }
.sh-main b { display: block; font-weight: 500; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-main small { font-size: 11.5px; color: var(--muted); }
.sh-prog { display: block; height: 3px; margin-top: 5px; border-radius: 3px; background: var(--line); overflow: hidden; max-width: 160px; }
.sh-prog i { display: block; height: 100%; background: var(--good); }
.sh-end { text-align: right; line-height: 1.3; flex: none; }
.sh-time { font-size: 12.5px; font-variant-numeric: tabular-nums; font-weight: 500; }
.sh-end small { display: block; font-size: 11px; color: var(--muted); }
.sh-row.is-in .sh-end small { color: var(--good); }
.sh-row.is-done { opacity: .5; }
/* Genel Bakış · Açık görevler */
#todoCount { margin-left: 6px; }
.td-list { display: flex; flex-direction: column; }
.td-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 4px; color: inherit; text-decoration: none; border-radius: 8px; }
.td-row + .td-row { border-top: 1px solid var(--line); }
.td-row:hover { background: var(--card-2); }
.td-check { color: var(--faint); font-size: 18px; line-height: 1; margin-top: 1px; }
.td-main { flex: 1; min-width: 0; line-height: 1.35; }
.td-main b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 500; font-size: var(--fs-sm); }
.td-main small { font-size: 11.5px; color: var(--muted); }
.td-main small i { font-size: 12px; vertical-align: -1px; }
.td-age { flex: none; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--card-2); color: var(--muted); white-space: nowrap; margin-top: 1px; }
.td-row.is-late .td-age { color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.td-row.is-old .td-age { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.td-row.is-old .td-check { color: var(--bad); }
.td-more { display: block; text-align: center; padding: 8px; margin-top: 4px; font-size: 12px; color: var(--accent); text-decoration: none; border-top: 1px solid var(--line); }

/* Ödeme doğrulama (mutabakat) */
.mb-tabs { margin-bottom: 0; }
[data-mpane] { display: flex; flex-direction: column; gap: var(--gap); }
[data-mpane][hidden], .mb-step[hidden], .mb-result[hidden], .mb-status[hidden] { display: none; }
.mb-tabs .seg button { display: inline-flex; align-items: center; gap: 6px; }
.mb-step { display: flex; flex-direction: column; gap: 16px; }
.mb-step__head { display: flex; align-items: flex-start; gap: 12px; }
.mb-step__head h2 { margin: 0; font-size: var(--fs-base); font-weight: 600; }
.mb-step__head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.mb-step__head > .chip { margin-left: auto; flex: none; }
.mb-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: var(--accent); background: var(--accent-soft); }
.mb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.mb-card { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.mb-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.mb-card.is-active { border-color: var(--accent); background: var(--accent-soft); }
.mb-card__ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--card); color: var(--accent); font-size: 17px; flex: none; }
.mb-card b { display: block; font-weight: 500; font-size: var(--fs-sm); }
.mb-card small { display: block; font-size: 11.5px; color: var(--muted); }
.mb-card__ok { position: absolute; top: 6px; right: 6px; color: var(--accent); font-size: 16px; opacity: 0; }
.mb-card.is-active .mb-card__ok { opacity: 1; }
.mb-drop.has-file { border-color: var(--accent); border-style: solid; background: var(--accent-soft); }
.mb-drop > i { font-size: 30px; color: var(--accent); }
.mb-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mb-req { margin-left: 4px; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); }
.mb-status { display: flex; flex-direction: column; gap: 8px; }
.mb-vals { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-val { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); cursor: pointer; font-size: var(--fs-sm); }
.mb-val small { color: var(--muted); font-size: 11.5px; }
.mb-val:has(input:checked) { border-color: color-mix(in srgb, var(--good) 50%, var(--line)); background: color-mix(in srgb, var(--good) 9%, var(--card-2)); }
.mb-val.is-bad span { color: var(--bad); }
.mb-neg { font-size: var(--fs-sm); }
.mb-preview { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mb-preview__head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; font-size: 12px; font-weight: 600; background: var(--card-2); border-bottom: 1px solid var(--line); }
.mb-preview__head .muted { font-weight: 400; }
#mbTable th { white-space: nowrap; font-size: 12px; }
#mbTable th.is-mapped { color: var(--ink); }
#mbTable th .chip { font-size: 10px; padding: 1px 6px; margin-bottom: 3px; }
#mbTable td { font-size: 12.5px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
#mbTable tr.is-skip td { opacity: .45; }
#mbWarn.is-warn { color: var(--warn); }
.mb-result { display: flex; flex-direction: column; gap: var(--gap); }
.mb-days { display: flex; flex-direction: column; }
.mb-day { border-top: 1px solid var(--line); }
.mb-day summary { display: grid; grid-template-columns: 64px 150px repeat(3, minmax(0, 1fr)) 20px; align-items: center; gap: 12px; padding: 10px 18px; cursor: pointer; list-style: none; }
.mb-day summary::-webkit-details-marker { display: none; }
.mb-day summary:hover { background: var(--card-2); }
.mb-day__date { line-height: 1.2; }
.mb-day__date b { display: block; font-weight: 600; font-size: var(--fs-sm); }
.mb-day__date small { font-size: 11.5px; color: var(--muted); }
.mb-day__st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; }
.mb-day__st i { font-size: 17px; }
.mb-day.is-ok .mb-day__st { color: var(--good); }
.mb-day.is-diff .mb-day__st, .mb-day.is-diff .mb-day__diff b { color: var(--bad); }
.mb-day.is-none .mb-day__st { color: var(--warn); }
.mb-day__v { text-align: right; line-height: 1.25; }
.mb-day__v small { display: block; font-size: 11px; color: var(--muted); }
.mb-day__v b { font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--fs-sm); }
.mb-day__chev { color: var(--muted); transition: transform .2s; }
.mb-day[open] .mb-day__chev { transform: rotate(180deg); }
.mb-day[open] summary { background: var(--card-2); }
.mb-day__body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 12px 18px 16px; }
.mb-day__body .label { margin-bottom: 6px; }
.mb-day__hint { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--muted); display: flex; gap: 6px; }
.mb-tx { list-style: none; margin: 0 0 10px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mb-tx li { display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 10px; align-items: center; padding: 6px 10px; font-size: 12.5px; }
.mb-tx li + li { border-top: 1px solid var(--line); }
.mb-tx li span { color: var(--muted); }
.mb-tx li b { font-variant-numeric: tabular-nums; font-weight: 500; }
.mb-tx li i { color: var(--good); }
.mb-tx li.is-un { background: color-mix(in srgb, var(--bad) 7%, transparent); }
.mb-tx li.is-un i { color: var(--bad); }
@media (max-width: 900px) { .mb-map { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .mb-map { grid-template-columns: 1fr; }
  .mb-day summary { grid-template-columns: 52px minmax(0, 1fr) auto 16px; grid-template-areas: "d s f c" "d k x c"; row-gap: 2px; padding: 10px 12px; }
  .mb-day__date { grid-area: d; } .mb-day__st { grid-area: s; } .mb-day__chev { grid-area: c; }
  .mb-day__v:nth-of-type(3) { grid-area: f; } .mb-day__v:nth-of-type(4) { grid-area: k; text-align: left; } .mb-day__diff { grid-area: x; }
  .mb-day__body { grid-template-columns: 1fr; padding: 10px 12px 14px; }
}

/* Ödeme doğrulama · personel kartı kontrolü */
.mb-staff { display: flex; flex-direction: column; gap: 12px; }
.mb-staff[hidden] { display: none; }
.mb-staff__head { display: flex; gap: 12px; align-items: flex-start; }
.mb-staff__head h2 { margin: 0; font-size: var(--fs-base); font-weight: 600; }
.mb-staff__head p { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.mb-staff__ic { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; }
.mb-staff.is-alert { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.mb-staff.is-alert .mb-staff__ic { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.mb-staff.is-clean .mb-staff__ic { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.mb-staff__list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mb-staff__p + .mb-staff__p { border-top: 1px solid var(--line); }
.mb-staff__p summary { display: grid; grid-template-columns: minmax(0, 1fr) 80px 120px 18px; gap: 12px; align-items: center; padding: 10px 14px; cursor: pointer; list-style: none; }
.mb-staff__p summary::-webkit-details-marker { display: none; }
.mb-staff__p summary:hover { background: var(--card-2); }
.mb-staff__who { line-height: 1.35; min-width: 0; }
.mb-staff__who b { font-weight: 600; font-size: var(--fs-sm); }
.mb-staff__who small { font-size: 11.5px; color: var(--muted); }
.mb-staff__amb { display: block; color: var(--warn) !important; }
.mb-staff__n { text-align: right; line-height: 1.2; }
.mb-staff__n b { display: block; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--bad); }
.mb-staff__n small { font-size: 11px; color: var(--muted); }
.mb-staff__p[open] summary { background: var(--card-2); }
.mb-staff__p > .mb-tx { margin: 0 14px 12px; }
.mb-staff__p .mb-tx li a { color: var(--muted); display: grid; place-items: center; }
.mb-staff-tag { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 1px 6px; border-radius: 6px; color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); margin-left: 4px; }
.mb-tx li.is-staff { box-shadow: inset 3px 0 0 var(--bad); }
.mb-map { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .mb-map { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .mb-staff__p summary { grid-template-columns: minmax(0, 1fr) auto 16px; } .mb-staff__p summary .mb-staff__n:first-of-type { display: none; } }
@media (max-width: 900px) { .mb-map { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .mb-map { grid-template-columns: 1fr; } }
.mb-remember { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-radius: 999px; font-size: 12px; color: var(--accent); background: var(--accent-soft); }
.mb-remember[hidden] { display: none; }
.mb-remember .btn { height: 26px; padding: 0 10px; }

/* Ödeme doğrulama · iade / iptal uyarısı */
.mb-count.is-warn { color: var(--warn); }
.mb-flagchip { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; font-style: normal; color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.mb-flags { padding: 10px 12px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bad) 6%, transparent); }
.mb-flags[hidden] { display: none; }
.mb-flags__head { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; margin-bottom: 8px; }
.mb-flags__head i { color: var(--bad); font-size: 17px; }
.mb-flags .mb-tx { margin: 0; max-height: 200px; overflow-y: auto; }
.mb-day__flags { grid-column: 1 / -1; }
.mb-day__flags .mb-tx { margin: 0; }
.mb-card__due { display: inline-block; margin-top: 3px; padding: 1px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.mb-card__done { display: inline-flex; align-items: center; gap: 2px; margin-top: 3px; font-size: 10.5px; color: var(--good); }

/* Ödeme doğrulama · doğrulama takibi (kart × gün) */
.yt .card__head .tools { display: flex; align-items: center; gap: 6px; }
.yt-month { min-width: 110px; text-align: center; font-weight: 600; text-transform: capitalize; }
.yt-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 0 18px 12px; font-size: 12px; color: var(--muted); }
.yt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.yt-wrap { overflow-x: auto; scrollbar-width: thin; border-top: 1px solid var(--line); }
.yt-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 12px; }
.yt-table th, .yt-table td { padding: 6px 2px; text-align: center; border-bottom: 1px solid var(--line); }
.yt-table thead th { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 22px; background: var(--card-2); }
.yt-table thead th.is-we { color: var(--ink); }
.yt-table tbody tr:last-child th, .yt-table tbody tr:last-child td { border-bottom: 0; }
/* Kart sütunu yana kaydırırken sabit; opak arka plan (yarı saydam + cam efekti kaydırmada titreme yapıyordu) */
.yt-table .yt-card { position: sticky; left: 0; z-index: 1; text-align: left; padding: 10px 14px; min-width: 210px; max-width: 240px; background: linear-gradient(var(--sheet), var(--sheet)), var(--bg-2); border-right: 1px solid var(--line); }
.yt-table tbody .yt-card b { font-size: var(--fs-sm); font-weight: 600; }
.yt-sum { margin-top: 2px; line-height: 1.35; }
.yt-sum small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.yt-sum small b { color: var(--ink); font-weight: 600; font-size: 11.5px; }
.yt-due { font-size: 12px; font-weight: 600; color: var(--warn); }
.yt-ok { font-size: 12px; color: var(--good); display: inline-flex; align-items: center; gap: 3px; }
.yt-go { margin-top: 6px; height: 28px; }
.yt-c { display: inline-block; width: 16px; height: 16px; border-radius: 5px; vertical-align: middle; }
.yt-c.is-ok { background: var(--good); }
.yt-c.is-diff { background: var(--bad); }
.yt-c.is-pending { background: var(--warn); }
.yt-c.is-changed { background: repeating-linear-gradient(135deg, var(--warn) 0 3px, var(--bad) 3px 6px); }
.yt-c.is-none { background: transparent; border: 1px dashed var(--line-2, var(--line)); width: 14px; height: 14px; }
@media (max-width: 640px) {
  .yt-table .yt-card { min-width: 128px; max-width: 140px; padding: 8px 10px; }
  .yt-sum small { display: none; }
  .yt-due { font-size: 11px; }
  .yt-go { height: 26px; padding: 0 8px; font-size: 11.5px; }
  .yt-legend { gap: 4px 12px; font-size: 11px; padding: 0 12px 10px; }
  .yt .card__head .tools { width: 100%; justify-content: center; }
}

/* Ödeme doğrulama · aggregator siparişleri */
[data-mpane="ag"] .mb-drop { min-height: 130px; }
.ag-drops { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ag-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ag-side { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ag-side__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ag-side__head i { color: var(--accent); font-size: 18px; }
.ag-side__head b { font-weight: 600; }
.ag-side__head small { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.ag-grid .field { margin: 0; min-width: 0; }
.ag-vals { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ag-vals .label { width: 100%; }
.ag-vals .mb-val { padding: 5px 10px; font-size: 12.5px; }
.ag-vals .mb-val:has(input:checked) { border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); background: color-mix(in srgb, var(--bad) 9%, var(--card-2)); }
.ag-live { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.ag-live b { color: var(--ink); font-variant-numeric: tabular-nums; }
.ag-live .is-warn, .ag-live .is-warn b { color: var(--warn); }
.ag-kpis .kpi.tone-red .kpi__icon { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.ag-kpis .kpi.tone-red .kpi__value { color: var(--bad); }
.ag-table td { font-size: 12.5px; white-space: nowrap; }
.ag-key { max-width: 180px; overflow: hidden; text-overflow: ellipsis; font-size: 11.5px !important; }
.ag-kind { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.ag-kind i { font-size: 15px; }
.ag-kind.is-bad { color: var(--bad); } .ag-kind.is-warn { color: var(--warn); } .ag-kind.is-ok { color: var(--good); } .ag-kind.is-none { color: var(--muted); }
.ag-row.is-bad td { background: color-mix(in srgb, var(--bad) 6%, transparent); }
.ag-st.is-cancel { color: var(--bad); font-weight: 600; }
.ag-diff { color: var(--warn); }
@media (max-width: 900px) { .ag-cols, .ag-drops { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ag-grid { grid-template-columns: 1fr; } }

/* Aggregator: listenin şube kontrolü */
.ag-branch { display: flex; flex-direction: column; gap: 6px; }
.ag-branch[hidden] { display: none; }
.ag-branch__row { display: flex; gap: 8px; align-items: flex-start; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; border: 1px solid var(--line); background: var(--card-2); }
.ag-branch__row i { font-size: 17px; flex: none; }
.ag-branch__row.is-ok i { color: var(--good); }
.ag-branch__row.is-info i { color: var(--accent); }
.ag-branch__row.is-warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--line)); } .ag-branch__row.is-warn i { color: var(--warn); }
.ag-branch__row.is-bad { border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); background: color-mix(in srgb, var(--bad) 9%, var(--card-2)); font-weight: 500; } .ag-branch__row.is-bad i { color: var(--bad); }

/* Ayarlar · bildirimler kime gidiyor (alıcıya göre gruplu) */
.nf-groups { display: flex; flex-direction: column; gap: 8px; }
.nf-group { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--card-2); }
.nf-group__to { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; }
.nf-group__to > i { color: var(--good); font-size: 16px; margin-right: 2px; }
.nf-mail { padding: 2px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 500; }
.nf-group__ev { display: flex; flex-wrap: wrap; gap: 5px; }
.nf-group__ev .chip { font-size: 11.5px; }
.nf-group.is-off { border-style: dashed; }
.nf-group.is-off .nf-group__to > i { color: var(--bad); }
.nf-group.is-off .nf-group__to small { color: var(--muted); }

/* Ayarlar · bankalar */
.bk-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.bk-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 8px 12px; }
.bk-row + .bk-row { border-top: 1px solid var(--line); }
.bk-row__ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.bk-row small { color: var(--muted); font-size: 12px; }

/* Ödeme doğrulama · POS (banka) */
.ps-map { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1200px) { .ps-map { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ps-map { grid-template-columns: 1fr; } }
.ps-terms { display: flex; flex-direction: column; gap: 10px; padding: 12px 18px 16px; }
.ps-term { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ps-term__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 12px; background: var(--card-2); font-size: 12.5px; }
.ps-term__head b { font-weight: 600; }
.ps-term__head .num { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.ps-term.is-ok .ps-term__head > span:nth-child(2) { color: var(--good); }
.ps-term.is-diff .ps-term__head > span:nth-child(2) { color: var(--bad); }
.ps-term.is-none .ps-term__head > span:nth-child(2) { color: var(--warn); }
.ps-diff { color: var(--bad); }
.ps-term__body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 10px 12px; }
.ps-term__body .mb-tx { margin: 4px 0 0; max-height: 220px; overflow-y: auto; }
@media (max-width: 640px) { .ps-term__body { grid-template-columns: 1fr; } .ps-terms { padding: 10px 12px 14px; } }
.ps-note-warn { color: var(--warn); }
.bk-row { grid-template-columns: 30px minmax(0, 1fr) auto auto auto; }
.bk-row__name { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.bk-row__name small { color: var(--muted); font-size: 12px; }
.bk-row__rate { padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, transparent); }
.bk-add { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 12px; }
.bk-add .field { margin: 0; }
.bk-add__btns { display: flex; gap: 6px; }
.bk-rate { height: 42px; display: flex; align-items: center; padding: 0 12px; border-radius: 12px; border: 1px dashed var(--line); color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .bk-add { grid-template-columns: 1fr 1fr; } .bk-add .field:first-child, .bk-add__btns { grid-column: 1 / -1; } }

/* Şubeler · form ve personel dağılımı */
.sb-form { display: flex; flex-direction: column; gap: 14px; }
.sb-sec { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); }
.sb-sec__h { margin: 0 0 12px; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sb-sec__h i { font-size: 16px; color: var(--accent); }
.sb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.sb-grid .field { margin: 0; }
.sb-grid .full { grid-column: 1 / -1; }
.ic-input { position: relative; }
.ic-input > i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--muted); pointer-events: none; }
.ic-input--area > i { top: 13px; transform: none; }
.ic-input > .input, .ic-input > .select { padding-left: 38px; width: 100%; }
.ic-input > textarea.input { resize: vertical; min-height: 64px; padding-top: 10px; }
.ic-input:focus-within > i { color: var(--accent); }
.ic-input.is-locked > .input { opacity: .7; cursor: not-allowed; }
.ic-input > i.ic-input__lock { display: none; left: auto; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.ic-input.is-locked > i.ic-input__lock { display: block; }
.sb-toggle { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.sb-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.sb-toggle__ui { width: 36px; height: 20px; border-radius: 999px; background: var(--line); position: relative; transition: background .2s; flex: none; }
.sb-toggle__ui i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.sb-toggle input:checked + .sb-toggle__ui { background: var(--good); }
.sb-toggle input:checked + .sb-toggle__ui i { transform: translateX(16px); }
.sb-toggle input:focus-visible + .sb-toggle__ui { outline: 2px solid var(--accent); outline-offset: 2px; }
.sb-toggle__on { display: none; color: var(--good); font-weight: 600; }
.sb-toggle__off { color: var(--muted); }
.sb-toggle input:checked ~ .sb-toggle__on { display: inline; }
.sb-toggle input:checked ~ .sb-toggle__off { display: none; }
.sb-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; transition: opacity .2s; }
.sb-opts.is-off { opacity: .4; pointer-events: none; }
.sb-opt { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 32px 12px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.sb-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sb-opt > i { font-size: 20px; color: var(--muted); margin-top: 1px; }
.sb-opt b { display: block; font-size: 13px; font-weight: 600; }
.sb-opt small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.sb-opt::after { content: ""; position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--line); }
.sb-opt:has(input:checked) { border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.sb-opt:has(input:checked) > i { color: var(--accent); }
.sb-opt:has(input:checked)::after { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--bg-2); }
.sb-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 640px) { .sb-grid, .sb-opts { grid-template-columns: 1fr; } }
.sb-staff { border-bottom: 0 !important; padding-bottom: 4px !important; }
.sb-titles { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 10px; border-bottom: 1px dashed var(--line); }
.sb-title { display: inline-flex; align-items: center; gap: 5px; padding: 3px 4px 3px 8px; border-radius: 999px; font-size: 12px; color: var(--muted); background: var(--card-2); border: 1px solid var(--line); }
.sb-title i { font-size: 14px; }
.sb-title b { min-width: 20px; padding: 0 6px; border-radius: 999px; text-align: center; font-weight: 600; color: var(--ink); background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* Vardiya şablonları: tek satırlık sıkı çubuk */
.pr-card { padding: 10px 14px; }
.pr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pr-title { margin: 0 6px 0 0; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.pr-title i { color: var(--accent); font-size: 18px; }
.pr-list { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; min-width: 0; }
.pr-chip { --c: var(--muted); display: inline-flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); border-left: 3px solid var(--c); }
.pr-chip.t-morning { --c: #f59e0b; } .pr-chip.t-middle { --c: #38bdf8; } .pr-chip.t-night { --c: #a78bfa; }
.pr-chip input { background: transparent; border: 0; color: var(--ink); font: inherit; font-size: 13px; padding: 4px 2px; border-radius: 6px; }
.pr-chip input:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.pr-chip input:focus { outline: none; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pr-name { font-weight: 600 !important; min-width: 3ch; }
.pr-time { width: 76px; font-variant-numeric: tabular-nums; color: var(--muted) !important; }
.pr-time::-webkit-calendar-picker-indicator { display: none; }
.pr-sep { color: var(--muted); font-size: 12px; }
.pr-del { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; opacity: .55; }
.pr-del:hover { opacity: 1; color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
@media (max-width: 640px) { .pr-title { width: 100%; } }
.pr-chip input.pr-time { width: 54px !important; min-width: 0 !important; flex: none; padding: 4px 2px !important; text-align: center; }
.pr-chip input.pr-time::-webkit-datetime-edit { padding: 0; }
.pr-chip input.pr-name { flex: none; }

/* Şube konumu seçici */
.geo-field { display: flex; gap: 8px; align-items: center; }
.geo-field .input[readonly] { cursor: default; }
.geo-map { height: min(60vh, 460px); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--card-2); }
.geo-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.geo-coords { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.geo-coords b { color: var(--ink); font-weight: 600; }
.geo-pin { color: #e31837; font-size: 36px; line-height: 1; filter: drop-shadow(0 2px 3px rgba(0,0,0,.45)); }
.geo-pin i { display: block; }
@media (max-width: 560px) { .geo-field { flex-wrap: wrap; } .geo-field .ic-input { flex-basis: 100%; } }

.lg-cat--odeme { --c: #eab308; }
/* Hareket kayıtları: aranabilir işlem listesi */
.lg-combo { position: relative; min-width: 220px; flex: 0 1 280px; }
.lg-combo__field { position: relative; }
.lg-combo__field .input { padding-right: 34px; }
.lg-combo.is-set .lg-combo__field .input { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.lg-combo__x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.lg-combo__x:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.lg-combo__list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); max-height: 360px; overflow-y: auto; padding: 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); box-shadow: 0 18px 40px rgba(0,0,0,.35); min-width: 300px; }
.lg-combo__grp { display: flex; align-items: center; gap: 6px; padding: 8px 8px 4px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.lg-combo__opt { padding: 7px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; line-height: 1.35; }
.lg-combo__opt.is-hi { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.lg-combo__opt.is-sel { font-weight: 600; color: var(--accent); }
.lg-combo__opt mark { background: color-mix(in srgb, var(--warn) 35%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.lg-combo__none { padding: 14px 10px; color: var(--muted); font-size: 13px; text-align: center; }
@media (max-width: 640px) { .lg-combo { max-width: none; flex-basis: 100%; } .lg-combo__list { min-width: 0; } }
.lg-bar { position: relative; z-index: 30; overflow: visible; }

/* Ayarlar: kapsam seçici (şube / tüm şubeler) */
.scope-bar { position: sticky; top: 92px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px; border-radius: var(--r-lg, 16px); }
.scope-bar .settings-nav { position: static; padding: 0; background: none; border: 0; box-shadow: none; flex: 1; min-width: 0; }
.scope-sw { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line); flex: none; }
.scope-sw button { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px 6px 10px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; text-align: left; }
.scope-sw button i { font-size: 20px; }
.scope-sw button b { display: block; font-size: 13px; font-weight: 600; color: inherit; }
.scope-sw button small { display: block; font-size: 11px; opacity: .8; }
.scope-sw button.is-active { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.scope-sw button[data-scope="global"].is-active { background: color-mix(in srgb, var(--warn) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 45%, transparent); }
.scope-sw button.is-active i { color: var(--accent); }
.scope-sw button[data-scope="global"].is-active i { color: var(--warn); }
@media (max-width: 767.98px) { .scope-bar { top: 76px; } .scope-sw { width: 100%; } .scope-sw button { flex: 1; } .scope-sw button small { display: none; } }

/* Şube e-posta hesabı */
.ic-input__btn { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.ic-input__btn:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ic-input:has(.ic-input__btn) > .input { padding-right: 42px; }
.sb-mail { margin: 4px 0 2px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.sb-mail__row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; min-width: 0; }
.sb-mail__row > i { color: var(--muted); font-size: 15px; flex: none; }
.sb-mail__v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-mail__copy { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.sb-mail__copy:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.sb-copyrow { display: flex; gap: 8px; align-items: center; }
.sb-copyrow .ic-input { flex: 1; min-width: 0; }
.sb-copyrow .btn { flex: none; height: 42px; }

/* Genel Bakış · teslim bekleyen nakit listesi */
.pc-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-height: 60vh; overflow-y: auto; }
.pc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 18px; align-items: center; gap: 12px; padding: 10px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); transition: background .15s; }
.pc-row:last-child { border-bottom: 0; }
.pc-row:hover, .pc-row:focus-visible { background: color-mix(in srgb, var(--accent) 10%, transparent); outline: none; }
.pc-date b { display: block; font-size: 14px; font-weight: 600; }
.pc-date small { display: block; font-size: 12px; color: var(--muted); }
.pc-amt { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14.5px; }
.pc-diff { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.pc-diff.is-up { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pc-diff.is-down { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }
.pc-diff.is-ok { color: var(--good); background: color-mix(in srgb, var(--good) 14%, transparent); }
.pc-go { color: var(--muted); font-size: 18px; }
.pc-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px 0; font-size: 13px; color: var(--muted); }
.pc-total b { font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Personel · bildirim kanalları */
.nf-grid { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.nf-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.nf-row:last-child { border-bottom: 0; }
.nf-row__l { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.nf-row__l i { color: var(--muted); font-size: 16px; }

/* Kârlılık · yıllara göre */
.kr-ybar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.kr-ychips { display: flex; flex-wrap: wrap; gap: 6px; }
.kr-ychip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.kr-ychip i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--c); }
.kr-ychip.is-on { color: var(--ink); border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 12%, transparent); }
.kr-ychip.is-on i { background: var(--c); }
.kr-ychart { height: 300px; margin-bottom: 12px; }
.kr-ychart--sm { height: 240px; }
.kr-ytable th:first-child { white-space: nowrap; }
.kr-ytable td, .kr-ytable th { font-variant-numeric: tabular-nums; }
.kr-ydot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 7px; }
.kr-ytot { font-weight: 700; }
.kr-up { color: var(--good); font-weight: 600; } .kr-down { color: var(--bad); font-weight: 600; }
.kr-ynote { font-size: 11.5px; margin: 8px 0 0; }
.kr-itable td small { display: block; font-size: 11px; color: var(--muted); font-weight: 400; white-space: nowrap; }
.kr-irow { cursor: pointer; }
.kr-irow:hover th, .kr-irow:hover td { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.kr-irow.is-sel th, .kr-irow.is-sel td { background: color-mix(in srgb, var(--accent) 12%, transparent); }
#yItemBox { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.kr-yname { font-weight: 600; white-space: nowrap; }
.kr-irow:hover td, .kr-irow.is-sel td { }
.sb-warn { color: var(--warn); }

/* Genel Bakış · tahsilat dağılımı */
.mx-card { display: flex; flex-direction: column; }
.mx-top { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 14px; }
.mx-donut { position: relative; width: 150px; height: 150px; }
.mx-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; text-align: center; }
.mx-center b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.mx-center small { font-size: 11px; color: var(--muted); }
.mx-side { display: flex; flex-direction: column; gap: 10px; }
.mx-stat { padding: 9px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.mx-stat small { display: block; font-size: 11px; color: var(--muted); }
.mx-stat b { display: block; font-size: 15px; font-weight: 700; }
.mx-stat span { display: block; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mx-list { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.mx-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 42px; gap: 10px; align-items: center; }
.mx-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 17px; color: var(--c); background: color-mix(in srgb, var(--c) 16%, transparent); }
.mx-line { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; margin-bottom: 5px; }
.mx-line b { font-variant-numeric: tabular-nums; font-weight: 600; }
.mx-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.mx-bar i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.mx-pct { text-align: right; font-size: 13px; font-weight: 700; color: var(--c); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .mx-top { grid-template-columns: 1fr; justify-items: center; } .mx-side { width: 100%; } }

/* Personel · e-posta / telefon doğrulama durumu */
.cv-st { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 5px; min-height: 0; }
.cv-st:empty { display: none; }
.cv-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.cv-chip.is-ok { color: var(--good); background: color-mix(in srgb, var(--good) 13%, transparent); }
.cv-chip.is-wait { color: var(--accent); background: color-mix(in srgb, var(--accent) 13%, transparent); }
.cv-chip.is-bad { color: var(--warn); background: color-mix(in srgb, var(--warn) 13%, transparent); }
.cv-btn { border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; padding: 2px 4px; text-decoration: underline; text-underline-offset: 2px; }
.ps-row__move { display: inline-flex; flex-direction: column; gap: 0; width: 30px; }
.ps-row__move .icon-btn { width: 26px; height: 18px; border-radius: 6px; }
.ps-row__move .icon-btn:disabled { opacity: .25; }

/* Yedekleme · Bakım: hareket kayıtları saklama süresi */
.lr-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.lr-sum > div { padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.lr-sum small { display: block; font-size: 11.5px; color: var(--muted); }
.lr-sum b { font-size: 16px; font-variant-numeric: tabular-nums; }
.lr-years { display: flex; flex-direction: column; gap: 7px; }
.lr-y { display: grid; grid-template-columns: 70px minmax(0, 1fr) 170px; gap: 10px; align-items: center; font-size: 13px; }
.lr-y__l { font-weight: 600; font-variant-numeric: tabular-nums; }
.lr-y__bar { position: relative; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.lr-y__bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--accent); opacity: .55; }
.lr-y__bar i.is-k { background: var(--warn); opacity: .9; }
.lr-y__n { color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.lr-y.is-old .lr-y__l, .lr-y.is-old .lr-y__n { color: var(--bad); }
.lr-y.is-old .lr-y__bar { outline: 1px dashed color-mix(in srgb, var(--bad) 60%, transparent); outline-offset: 2px; }
.lr-legend { font-size: 11.5px; margin: 8px 0 0; display: flex; align-items: center; gap: 6px; }
.lr-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); opacity: .55; margin-left: 8px; }
.lr-legend i.is-k { background: var(--warn); opacity: .9; margin-left: 0; }
.lr-form { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.lr-form .field { margin: 0; }
.lr-due { margin-top: 12px; }
.lr-due__box { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); font-size: 13px; }
.lr-due__box i { font-size: 20px; color: var(--warn); }
@media (max-width: 640px) { .lr-sum { grid-template-columns: 1fr 1fr; } .lr-y { grid-template-columns: 52px minmax(0, 1fr); } .lr-y__n { grid-column: 1 / -1; text-align: left; font-size: 12px; } }

/* Personel özlük belgeleri */
.doc-ok { color: var(--good); } .doc-miss { color: var(--warn); }
.doc-grp { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; overflow: hidden; }
.doc-grp > summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; padding: 10px 12px; cursor: pointer; list-style: none; background: var(--card-2); }
.doc-grp > summary::-webkit-details-marker { display: none; }
.doc-grp > summary b { font-size: 13.5px; font-weight: 600; }
.doc-grp > summary small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-grp__n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.doc-t { padding: 9px 12px; border-top: 1px solid var(--line); }
.doc-t__head { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.doc-t__st { font-size: 18px; color: var(--muted); margin-top: 1px; }
.doc-t.has .doc-t__st { color: var(--good); } .doc-t.miss .doc-t__st { color: var(--warn); }
.doc-t__lbl b { font-size: 13px; font-weight: 600; }
.doc-t__lbl small { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.doc-req { font-size: 10.5px; font-weight: 700; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.doc-f { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 2px 10px; align-items: center; margin: 6px 0 0 30px; padding: 6px 8px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 4%, transparent); }
.doc-f__ic { font-size: 18px; color: var(--accent); grid-row: span 2; }
.doc-f__ic.bxs-file-pdf { color: #f87171; }
.doc-f__name { font-size: 13px; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-f__name:hover { text-decoration: underline; }
.doc-f__meta { grid-column: 2; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-f__act { grid-column: 3; grid-row: 1 / span 2; display: inline-flex; gap: 2px; }
.doc-exp.is-warn { color: var(--warn); font-weight: 600; } .doc-exp.is-bad { color: var(--bad); font-weight: 600; }
.doc-edit { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin-top: 8px; }
.doc-edit label { display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; color: var(--muted); }
.doc-edit .grow { flex: 1; min-width: 160px; }
@media (max-width: 560px) { .doc-f { margin-left: 0; } .doc-grp > summary small { display: none; } }
.src-fee { color: var(--good); }
.ps-fee { color: var(--muted); font-weight: 400; font-size: 11.5px; }
.mb-tx b .ps-fee { font-size: 10.5px; }
#psKpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
/* Vardiya şablonları · telefon: başlık ve "Ekle" üstte, şablonlar tam genişlik satırlar */
@media (max-width: 640px) {
  .pr-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .pr-title { grid-column: 1; grid-row: 1; width: auto; margin: 0; }
  #addPreset { grid-column: 2; grid-row: 1; }
  .pr-list { grid-column: 1 / -1; flex-direction: column; gap: 6px; }
  .pr-chip { width: 100%; padding: 6px 6px 6px 12px; }
  .pr-chip input.pr-name { flex: 1 1 auto; min-width: 0; width: auto; }
  .pr-chip input.pr-time { width: 58px !important; font-size: 14px; }
  #savePresets { grid-column: 1 / -1; justify-self: end; }
}

/* Ayarlar · unvan izinleri */
.tp-btn.is-dirty { border-color: color-mix(in srgb, var(--warn) 55%, transparent); color: var(--warn); }
.tp-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.tp-list { display: flex; flex-direction: column; gap: 6px; max-height: 60vh; overflow-y: auto; }
.tp-g { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.tp-g.is-off { opacity: .6; }
.tp-g__head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.tp-g__head b { font-size: 13.5px; font-weight: 600; }
.tp-g__perms { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 6px 0 2px 46px; }
.tp-g__perms:empty { display: none; }
.tp-p { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.tp-p input:checked + span { color: var(--ink); }
@media (max-width: 560px) { .tp-g__perms { padding-left: 0; } }
.tp-btn.is-nologin { color: var(--muted); }
.tp-login { display: flex; flex-direction: column; gap: 4px; cursor: pointer; background: var(--card-2); }
.tp-login small { padding-left: 46px; font-size: 12px; }
.tp-login.is-off { opacity: 1; }
.mx-row { transition: opacity .15s; border-radius: 10px; }
.mx-row.is-dim { opacity: .4; }
.mx-row.is-focus .mx-line span { font-weight: 600; }
.mx-center small:first-child { font-weight: 600; }
.mx-up, .mx-down { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; } .mx-up { color: var(--good); } .mx-down { color: var(--bad); }
.mx-stat em { font-style: normal; }
.mx-stat span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__foot .sb-del + [data-branch], .card__foot [data-edit] + [data-branch] { margin-left: auto; }
.btn.sb-del { color: var(--bad); }
.btn.sb-del:hover { border-color: color-mix(in srgb, var(--bad) 55%, transparent); background: color-mix(in srgb, var(--bad) 12%, transparent); }

/* Ayarlar · unvan kartları */
.ut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px; }
.ut { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px 8px 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.ut.is-sys { background: color-mix(in srgb, var(--accent) 5%, var(--card-2)); }
.ut__ord { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.ut__ord span { font-size: 11px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; padding: 1px 0; }
.ut__mv { width: 24px; height: 16px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 5px; font-size: 16px; }
.ut__mv:hover:not(:disabled) { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.ut__mv:disabled { opacity: .2; cursor: default; }
.ut__main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ut__name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ut__in { flex: 1; min-width: 0; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; padding: 3px 6px; margin-left: -6px; border-radius: 7px; }
.ut__in:hover:not(:disabled) { border-color: var(--line); }
.ut__in:focus { outline: none; border-color: var(--accent); background: var(--bg-2); }
.ut__in:disabled { color: var(--ink); opacity: 1; }
.ut__sys { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 10.5px; color: var(--muted); padding: 1px 7px; border-radius: 999px; border: 1px solid var(--line); }
.ut__note { font-size: 11px; color: var(--warn); }
.ut__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ut__acc { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 6px 0 9px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.ut__acc i:first-child { font-size: 14px; color: var(--accent); }
.ut__acc .ut__go { font-size: 14px; color: var(--muted); }
.ut__acc:hover:not(:disabled) { border-color: var(--accent); }
.ut__acc.is-off { border-color: var(--line); background: transparent; color: var(--muted); font-weight: 500; }
.ut__acc.is-off i:first-child { color: var(--muted); }
.ut__acc.is-all { cursor: default; padding-right: 9px; }
.ut__acc.is-dirty { border-color: var(--warn); }
.ut__staff { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ut__staff small { font-size: 10.5px; opacity: .8; }
.ut__del { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 17px; }
.ut__del:hover:not(:disabled) { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.ut__del:disabled { opacity: .25; cursor: not-allowed; }

/* Ayarlar · unvanlar: liste + ayrıntı */
.ul { display: grid; grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); gap: 14px; align-items: start; }
.ul-list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 150px; }
.ul-item { display: grid; grid-template-columns: 22px minmax(0, 1fr) 18px 26px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ul-item:hover { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.ul-item.is-sel { background: color-mix(in srgb, var(--accent) 13%, transparent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ul-n { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.ul-t { min-width: 0; display: flex; flex-direction: column; }
.ul-t b { font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ul-t small { font-size: 11.5px; color: var(--muted); }
.ul-ic { font-size: 16px; color: var(--muted); }
.ul-ic.is-on { color: var(--accent); }
.ul-c { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; padding: 1px 0; border-radius: 999px; background: var(--card-2); font-variant-numeric: tabular-nums; }
.ul-detail { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--card-2); min-height: 300px; }
.ul-head { display: flex; align-items: center; gap: 8px; }
.ul-name { flex: 1; min-width: 0; border: 1px solid transparent; background: transparent; color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; padding: 4px 8px; margin-left: -8px; border-radius: 8px; }
.ul-name:hover:not(:disabled) { border-color: var(--line); }
.ul-name:focus { outline: none; border-color: var(--accent); background: var(--bg-2); }
.ul-name:disabled { opacity: 1; color: var(--ink); }
.ul-tools { display: inline-flex; gap: 2px; margin-left: auto; }
.ut__mv2 { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 17px; }
.ut__mv2:hover:not(:disabled) { color: var(--ink); border-color: color-mix(in srgb, var(--ink) 25%, transparent); }
.ut__mv2:disabled { opacity: .3; cursor: not-allowed; }
.ut__mv2.is-del:hover:not(:disabled) { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.ul-sub { margin: 2px 0 12px; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.ul-login { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); margin-bottom: 10px; }
.ul-login small { flex: 1 1 200px; font-size: 12px; }
.ul-login.is-on { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ul-g__head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.ul-g__head b { font-size: 13.5px; font-weight: 600; }
.ul-perms { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px; }
.ul-g { border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; background: var(--bg-2); }
.ul-g.is-off { opacity: .55; }
.ul-g__perms { display: flex; flex-direction: column; gap: 3px; padding: 6px 0 0 46px; }
.ul-all { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: 13px; color: var(--muted); }
.ul-all i { font-size: 22px; color: var(--accent); }
.ul-all b { display: block; color: var(--ink); }
@media (max-width: 760px) { .ul { grid-template-columns: 1fr; } .ul-list { position: static; } .ul-g__perms { padding-left: 0; } }
.ul-sal { display: grid; grid-template-columns: auto minmax(140px, 200px) minmax(0, 1fr); gap: 6px 12px; align-items: center; margin: 0 0 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.ul-sal label { font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.ul-sal label i { color: var(--accent); font-size: 16px; }
.ul-sal small { font-size: 12px; }
@media (max-width: 640px) { .ul-sal { grid-template-columns: 1fr; } }
/* İşçilik tablosu: ad sütunu daralmasın; kayıt etiketleri sütunu genişletmek yerine alt alta dizilsin */
.ic-table td[data-label="Personel"] { min-width: 170px; }
.ic-table td[data-label="Personel"] .person b, .ic-table td[data-label="Personel"] .person small { white-space: nowrap; }
.ic-table td[data-label="Kayıtlar"] { max-width: 260px; }
.ic-table td[data-label="Kayıtlar"] .row { flex-wrap: wrap; }
.ic-table td[data-label="Net maaş"] { white-space: nowrap; }
.ic-table td[data-label="Kayıtlar"] { max-width: 200px; }
.ic-table td[data-label="Kayıtlar"] .chip { font-size: 11px; }
.ic-src { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; }
.ic-nosal { color: var(--warn); font-weight: 600; }
/* İşçilik tablosu: sütun genişlikleri sabit (ay değişince kaymasın); uzun içerik satırı uzatır */
@media (min-width: 768px) {
  .ic-table { table-layout: fixed; width: 100%; }
  .ic-table col.c-name { width: 19%; }
  .ic-table col.c-n { width: 7.5%; }
  .ic-table col.c-m { width: 11%; }
  .ic-table col.c-m2 { width: 12%; }
  .ic-table col.c-act { width: 56px; }
  .ic-table td, .ic-table th { overflow: hidden; text-overflow: ellipsis; }
  .ic-table td[data-label="Kayıtlar"] { max-width: none; white-space: normal; }
  .ic-table td[data-label="Personel"] { min-width: 0; }
}

/* Türkçe tarih / ay seçici */
.dp-btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); min-width: 0; }
.dp-btn i { color: var(--muted); font-size: 17px; flex: none; }
.dp-btn:hover:not(:disabled) i { color: var(--accent); }
.dp-btn__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dp-btn__t.is-empty { color: var(--faint, var(--muted)); }
.dp-btn:disabled { opacity: .6; cursor: not-allowed; }
.ic-input > .dp-btn { padding-left: 38px; width: 100%; }
.dp-pop { position: fixed; z-index: 2000; width: 272px; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--sheet, var(--bg-2)); box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.dp-head b { font-size: 14px; font-weight: 600; }
.dp-nav { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; }
.dp-nav:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 8%, transparent); }
.dp-grid { display: grid; gap: 2px; }
.dp-grid--d { grid-template-columns: repeat(7, 1fr); }
.dp-grid--m { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dp-wd { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px 0; }
.dp-cell { height: 34px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 13px; cursor: pointer; font-variant-numeric: tabular-nums; }
.dp-grid--m .dp-cell { height: 40px; }
.dp-cell.is-we { color: var(--muted); }
.dp-cell:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.dp-cell.is-today { box-shadow: inset 0 0 0 1px var(--accent); }
.dp-cell.is-sel { background: var(--accent); color: #fff; font-weight: 600; }
.dp-cell:disabled { opacity: .25; cursor: not-allowed; }
.dp-foot { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.dp-link { border: 0; background: transparent; color: var(--accent); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.dp-link:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.dp-link:disabled { opacity: .35; }

/* Vardiya planı: genel tatil günleri */
th.is-holiday { background: color-mix(in srgb, var(--bad) 12%, transparent) !important; }
.hol-tag { display: block; margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: .02em; color: var(--bad); text-transform: uppercase; }
td.is-holiday { background: color-mix(in srgb, var(--bad) 5%, transparent); }
.hol-work { display: block; margin-top: 3px; font-size: 10.5px; font-weight: 600; color: var(--bad); text-align: center; }
/* Ay/tarih seçici ‹ › oklarıyla aynı satırda kalsın (toolbar daralınca alt satıra kaymasın) */
.row:has(> .dp-btn):has(> .icon-btn) { flex-wrap: nowrap; flex-shrink: 0; }

/* Kasa Ekstresi · tahsilat kartı: kaynak filtresi başlıkla aynı satırda */
.seg--tight { flex-wrap: nowrap; }
.seg--tight button { padding: 0 7px; }
.card__head:has(> .tools > .seg--tight) { gap: 10px; container-type: inline-size; }
.card__head:has(> .tools > .seg--tight) > .tools { margin-left: auto; }
/* Kart darsa önce sayılar gizlenir; yine sığmazsa (telefon) filtre alt satıra iner */
@container (max-width: 372px) { .seg--tight button small { display: none; } .seg--tight button { padding: 0 6px; font-size: 11.5px; } }
.card__head:has(> .tools > .seg--tight) h2 { white-space: nowrap; }

/* Kasa Ekstresi · masraf dökümü */
.exm-sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.exm-sum > div { display: flex; flex-direction: column; gap: 2px; }
.exm-sum b { font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.exm-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin-bottom: 14px; }
.exm-tbar { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; overflow: hidden; }
.exm-tbar:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.exm-tbar.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.exm-tbar__l { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; min-width: 0; }
.exm-tbar__l i { color: var(--bad); font-size: 16px; }
.exm-tbar__l small { color: var(--muted); font-weight: 400; font-size: 11.5px; white-space: nowrap; }
.exm-tbar__v { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.exm-tbar__v small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.exm-tbar__bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 8%, transparent); margin-top: 6px; }
.exm-tbar__bar i { display: block; height: 100%; border-radius: 4px; background: var(--bad); opacity: .8; }
.exm-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.exm-bar .chip { cursor: pointer; border: 0; font: inherit; font-size: 12px; }
.exm-list { display: flex; flex-direction: column; gap: 10px; }
.exm-group { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.exm-group__h { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--card-2); font-size: 13px; font-weight: 600; }
.exm-group__h > a, .exm-group__h > span { display: inline-flex; align-items: center; gap: 6px; }
.exm-group__h > b { margin-left: auto; font-variant-numeric: tabular-nums; }
.exm-group__h small { font-weight: 400; }
.exm-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); font-size: 13px; }
.exm-row__d { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.exm-row__dt { flex: none; width: 92px; color: var(--muted); font-size: 12px; }
.exm-row__a { flex: none; font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; min-width: 96px; }
.ex-mtype { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; color: var(--muted); background: color-mix(in srgb, var(--ink) 6%, transparent); white-space: nowrap; }
@media (max-width: 560px) {
  .exm-row { flex-wrap: wrap; row-gap: 4px; }
  .exm-row__d { flex-basis: calc(100% - 110px); }
  .exm-row__dt { width: auto; }
}
.ex-mtype i { position: static; font-size: 13px; line-height: 1; transform: none; }
@media (max-width: 560px) {
  .exm-types { grid-template-columns: 1fr 1fr; gap: 6px; }
  .exm-tbar { padding: 8px 10px 10px; grid-template-columns: 1fr; }
  .exm-tbar__l { flex-wrap: wrap; font-size: 12.5px; gap: 2px 6px; }
  .exm-tbar__l small { width: 100%; padding-left: 22px; }
  .exm-tbar__v { text-align: left; padding-left: 22px; display: flex; gap: 6px; align-items: baseline; }
  .exm-tbar__v small { display: inline; }
  .exm-row__d { flex-basis: auto; }
  .exm-row__a { min-width: 0; }
  .exm-row .ex-mtype { order: 3; }
  .exm-row__d + .ex-mtype { margin-left: 0; }
  .exm-row { display: grid; grid-template-columns: 1fr auto; }
  .exm-row .ex-mtype { grid-column: 1 / -1; justify-self: start; }
  .exm-row__dt { grid-column: 1 / -1; }
}

/* ---------- Görevler (v2): ekip + görev listesi ---------- */
.gv { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--gap, 20px); align-items: start; margin-top: var(--gap, 20px); }
.gv-team { position: sticky; top: 96px; padding-bottom: 10px; }
.gv-team__list { display: flex; flex-direction: column; gap: 2px; margin: 0 -8px; max-height: calc(100vh - 220px); overflow-y: auto; padding: 0 8px; }
.gv-team__sep { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 8px 6px; }
.gv-who { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.gv-who:hover { background: var(--card-2); }
.gv-who.is-active { background: var(--accent-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.gv-who .avatar { width: 32px; height: 32px; font-size: 11.5px; border-radius: 10px; }
.gv-who__ic { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--card-2); color: var(--muted); font-size: 17px; }
.gv-who.is-active .gv-who__ic { color: var(--accent); }
.gv-who__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gv-who__t b { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-who__t small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; font-size: 11.5px; font-weight: 600; background: var(--card-3); color: var(--ink); font-variant-numeric: tabular-nums; }
.gv-late-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); flex: none; }
.gv-ch { display: inline-flex; gap: 2px; color: var(--faint, var(--muted)); font-size: 13px; opacity: .7; }
.gv-who:not(:hover):not(.is-active) .gv-ch { opacity: .45; }

.gv-bar { display: flex; }
.gv-main .gv-bar { flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.gv-search { flex: 1; min-width: 180px; }
.gv-filter { margin: -4px 0 12px; }
.gv-filter .chip { gap: 6px; padding-right: 4px; }
.gv-x { border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; }
.gv-x:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
#gvTabs button small { opacity: .6; margin-left: 2px; }

.gv-task { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 14px 14px 12px; border: 1px solid var(--line); border-left: 3px solid transparent; border-radius: 14px; background: var(--card-2); cursor: pointer; transition: border-color .15s, transform .15s; }
.gv-task + .gv-task { margin-top: 8px; }
.gv-task:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.gv-task.pri-1 { border-left-color: var(--warn); }
.gv-task.pri-2 { border-left-color: var(--bad); }
.gv-task.is-late { background: color-mix(in srgb, var(--bad) 6%, var(--card-2)); }
.gv-task.is-done { opacity: .62; }
.gv-task.is-done .gv-task__title { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); }
.gv-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); background: transparent; color: transparent; display: grid; place-items: center; cursor: pointer; font-size: 17px; transition: all .15s; align-self: start; margin-top: 1px; }
.gv-check:hover:not(:disabled) { border-color: var(--good); color: var(--good); }
.gv-task.is-done .gv-check { background: var(--good); border-color: var(--good); color: #fff; }
.gv-check:disabled { cursor: default; opacity: .5; }
.gv-task__title { font-weight: 500; font-size: 14.5px; line-height: 1.4; overflow-wrap: anywhere; }
.gv-task__det { margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.gv-task__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.gv-task__by { font-size: 12px; color: var(--muted); }
.gv-task__by .good { color: var(--good); }
.gv-task__who { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; min-width: 150px; }
.gv-stack { display: flex; }
.gv-stack .avatar { width: 28px; height: 28px; font-size: 10.5px; border-radius: 50%; border: 2px solid var(--card); margin-left: -7px; position: relative; }
.gv-stack .avatar:first-child { margin-left: 0; }
.gv-stack .avatar.is-done { opacity: .55; }
.gv-stack .avatar > i { position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--good); color: #fff; font-size: 11px; display: grid; place-items: center; border: 2px solid var(--card); }
.gv-more { background: var(--card-3) !important; color: var(--ink) !important; }
.gv-prog { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--muted); }
.gv-prog b { color: var(--ink); font-weight: 600; }
.gv-prog .gv-bar, .gv-bar--lg { width: 110px; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.gv-bar > i { display: block; height: 100%; background: var(--good); border-radius: 4px; }
.gv-unas { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }

/* Ayrıntı */
.gv-d__title { margin: 0 0 8px; font-size: 19px; font-weight: 600; line-height: 1.35; }
.gv-d__det { padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 14px; line-height: 1.55; white-space: pre-line; margin-bottom: 10px; }
.gv-d__h { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; }
.gv-d__h .gv-bar--lg { flex: 1; width: auto; max-width: 220px; margin-left: auto; height: 6px; }
.gv-d__none { margin-top: 16px; }
.gv-as-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gv-as { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.gv-as + .gv-as { border-top: 1px solid var(--line); }
.gv-as .avatar { width: 32px; height: 32px; font-size: 11.5px; border-radius: 10px; }
.gv-as__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gv-as__t b { font-weight: 500; font-size: 13.5px; }
.gv-as__t small { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.gv-as__t small i { vertical-align: -1px; }
.gv-as__act { display: flex; gap: 4px; }
.gv-del { color: var(--bad) !important; }
#gvDFoot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#gvDFoot .grow { flex: 1; }

/* Form */
.gv-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gv-scope { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gv-scope button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.gv-scope button i { font-size: 20px; color: var(--muted); margin-bottom: 4px; }
.gv-scope button b { font-size: 13px; font-weight: 600; }
.gv-scope button small { font-size: 11.5px; color: var(--muted); }
.gv-scope button.is-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.gv-scope button.is-active i { color: var(--accent); }
.gv-people__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.gv-people__head .muted { font-size: 12px; }
.link-btn { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.gv-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; padding: 2px; }
.gv-pp { display: flex; align-items: center; gap: 9px; padding: 7px 9px; border-radius: 11px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.gv-pp .avatar { width: 30px; height: 30px; font-size: 11px; border-radius: 9px; }
.gv-pp__t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gv-pp__t b { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-pp__t small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gv-pp__ok { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); color: transparent; display: grid; place-items: center; font-size: 14px; flex: none; }
.gv-pp.is-on { border-color: var(--accent); background: var(--accent-soft); }
.gv-pp.is-on .gv-pp__ok { background: var(--accent); border-color: var(--accent); color: #fff; }
.gv-notify { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); }
.gv-notify small { font-size: 12px; line-height: 1.5; }

@media (max-width: 1100px) {
  .gv { grid-template-columns: 1fr; }
  .gv-team { position: static; }
  .gv-team__list { flex-direction: row; overflow-x: auto; max-height: none; padding-bottom: 6px; gap: 6px; }
  .gv-team__sep { display: none; }
  .gv-who { flex: none; width: auto; padding: 6px 10px 6px 6px; border: 1px solid var(--line); }
  .gv-who__t small, .gv-ch { display: none; }
}
@media (max-width: 640px) {
  .gv-task { grid-template-columns: auto minmax(0, 1fr); }
  .gv-task__who { grid-column: 2; align-items: flex-start; flex-direction: row; min-width: 0; align-items: center; gap: 10px; }
  .gv-prog { align-items: flex-start; }
  .gv-scope { grid-template-columns: 1fr; }
  .gv-scope button { flex-direction: row; align-items: center; gap: 10px; }
  .gv-scope button i { margin: 0; }
  .gv-two { grid-template-columns: 1fr; }
  .gv-main .gv-bar > .btn { order: -1; width: 100%; justify-content: center; }
}
#gvForm .modal__body { display: flex; flex-direction: column; gap: 16px; }
#gvForm .field { margin: 0; }
@media (max-width: 640px) {
  #gvTabs { flex-wrap: nowrap; width: 100%; overflow-x: auto; }
  #gvTabs button { flex: 1 0 auto; padding: 0 10px; }
}

/* Görevler · tamamlama fotoğrafları */
.gv-photo-hint { display: block; margin-top: 6px; font-size: 12px; }
.gv-photo-hint:empty { display: none; }
.gv-as__ph { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.gv-th { position: relative; width: 52px; height: 52px; border-radius: 10px; overflow: hidden; background: var(--card-3); flex: none; }
.gv-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gv-th button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; font-size: 13px; cursor: pointer; padding: 0; }
.gv-th--add { display: grid; place-items: center; border: 1.5px dashed var(--line-2); background: transparent; color: var(--accent); font-size: 22px; cursor: pointer; }
.gv-th--add:hover { border-color: var(--accent); background: var(--accent-soft); }
.gv-th--add.is-busy { opacity: .5; pointer-events: none; }
.gv-ph-n { font-size: 12px; color: var(--warn); font-weight: 600; margin-left: 2px; }
.gv-ph-n.good { color: var(--good); }
.gv-as { align-items: flex-start; }
.gv-as > .avatar, .gv-as > .chip, .gv-as__act { margin-top: 2px; }
@media (max-width: 640px) { .gv-photo-seg { flex-wrap: wrap; } }

/* Şubeler: kira sözleşmesi yenileme yaklaşınca dikkat çeker */
.sb-renew small { color: var(--muted); font-weight: 400; }
.sb-renew.is-warn b, .sb-renew.is-warn small { color: var(--warn); }
.sb-renew.is-bad b, .sb-renew.is-bad small { color: var(--bad); }
.sb-renew.is-warn, .sb-renew.is-bad { margin: 4px -10px 0; padding: 9px 10px; border-radius: 10px; border-bottom: 0; }
.sb-renew.is-warn { background: var(--warn-soft); }
.sb-renew.is-bad { background: var(--bad-soft); }
.sb-renew b i { vertical-align: -2px; }

/* Şubeler: aggregator panel hesapları */
.sb-plat + .sb-plat { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.sb-plat__h { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.sb-plat__h b { font-weight: 600; }
.sb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sb-plat__empty { margin: 0; font-size: 13px; }
@media (max-width: 760px) { .sb-grid--3 { grid-template-columns: 1fr; } }
/* Bağlantı olarak kullanılan düğmeler üzerine gelince altı çizilmesin */
a.icon-btn, a.icon-btn:hover, a.btn, a.btn:hover { text-decoration: none; }
/* Genel Bakış · Açık görevler: satırlar ve "+N görev daha" bağlantısı üzerine gelince altı çizilmesin */
a.td-row, a.td-row:hover, a.td-more, a.td-more:hover { text-decoration: none; }

/* Genel Bakış · Vardiyadakiler → kontrol formu */
.sh-row.is-click { cursor: pointer; }
.sh-row.is-click:hover b, .sh-row.is-click:focus-visible b { color: var(--accent); } /* satır çizgileri bozulmasın: zemin/köşe değişmez, yalnızca ad vurgulanır */
.sh-row.is-click:focus-visible { outline: none; }
.sh-kf { font-size: 15px; margin-left: 6px; vertical-align: -2px; }
.sh-kf.is-ok { color: var(--good); }
.sh-kf.is-wait { color: var(--warn); }
.kfd + .kfd { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.kfd__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.kfd__h b { font-size: 15px; font-weight: 600; }
.kfd__info { margin: 4px 0 12px; font-size: 13px; }
.kfd__send { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kfd__hint { margin: 8px 0 0; font-size: 12px; }
#kfFoot { display: flex; align-items: center; gap: 8px; }
#kfFoot .grow { flex: 1; }

/* ---------- Rapor Analizi ---------- */
.rp-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.rp-tab { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font: inherit; font-weight: 500; font-size: 14px; }
.rp-tab.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.rp-tab--soon { color: var(--muted); border-style: dashed; background: transparent; font-weight: 400; font-size: 13px; }
.rp-last { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.rp-warn { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-size: 13px; }
.rp-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: var(--gap, 20px); align-items: start; margin-top: var(--gap, 20px); }
.rp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.rp-cal__wd { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); padding-bottom: 2px; }
.rp-day { min-width: 0; min-height: 50px; padding: 6px 5px; border-radius: 10px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); font: inherit; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer; }
.rp-day b { font-size: 13px; font-weight: 600; }
.rp-day small { font-size: 11.5px; font-weight: 600; line-height: 1.15; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rp-day:disabled { cursor: default; }
.rp-day.is-future { opacity: .35; }
.rp-day.is-none { border-style: dashed; background: transparent; }
.rp-day.is-none small { color: var(--warn); }
.rp-day.is-clean { background: color-mix(in srgb, var(--good) 7%, var(--card-2)); }
.rp-day.is-ok { background: color-mix(in srgb, var(--good) 18%, var(--card-2)); border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.rp-day.is-ok small { color: var(--good); }
.rp-day.is-miss { background: color-mix(in srgb, var(--bad) 18%, var(--card-2)); border-color: color-mix(in srgb, var(--bad) 50%, var(--line)); }
.rp-day.is-miss small { color: var(--bad); font-weight: 600; }
.rp-day:not(:disabled):hover { border-color: var(--accent); }
.rp-day.is-sel { box-shadow: inset 0 0 0 2px var(--accent); }
.rp-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 11.5px; color: var(--muted); }
.rp-legend span { display: inline-flex; align-items: center; gap: 5px; }
.rp-legend .lg { width: 11px; height: 11px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.rp-legend .lg.is-ok { background: color-mix(in srgb, var(--good) 45%, transparent); }
.rp-legend .lg.is-miss { background: color-mix(in srgb, var(--bad) 50%, transparent); }
.rp-legend .lg.is-clean { background: color-mix(in srgb, var(--good) 14%, transparent); }
.rp-legend .lg.is-none { border-style: dashed; border-color: var(--warn); }
.rp-dayf { margin: -4px 0 10px; }
.rp-dayf .chip { gap: 6px; padding-right: 4px; }
#rpFilter button small { opacity: .6; margin-left: 2px; }
.rp-row { padding: 12px 14px; border: 1px solid var(--line); border-left: 3px solid var(--good); border-radius: 12px; background: var(--card-2); }
.rp-row + .rp-row { margin-top: 8px; }
.rp-row.is-miss { border-left-color: var(--bad); }
.rp-row.is-extra { border-left-color: var(--warn); }
.rp-row__h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.rp-row__h > a { font-size: 13px; min-width: 92px; }
.rp-row__h > b { font-weight: 600; font-size: 14.5px; }
.rp-amt { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.rp-amt small { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.rp-row__desc { margin-top: 8px; font-size: 13.5px; line-height: 1.5; }
.rp-row__desc i { color: var(--muted); vertical-align: -2px; }
.rp-row__desc.is-miss { color: var(--bad); }
.rp-ph { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.rp-ph img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.rp-nophoto { display: block; margin-top: 6px; color: var(--warn); font-size: 12px; }
.rp-by { display: block; margin-top: 6px; font-size: 11.5px; }
.rp-note { font-size: 12.5px; margin: 0 0 10px; }
.rp-help { margin: 0 0 12px; font-size: 13px; line-height: 1.55; }
.rp-err { color: var(--bad); margin: 12px 0 0; }
.rp-prev { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.rp-prev__row { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; font-size: 13.5px; }
.rp-prev__row > span { color: var(--muted); }
.rp-prev__cov { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); display: flex; flex-direction: column; gap: 8px; }
.rp-prev__cov .dp-btn { flex: 1; }
@media (max-width: 1100px) { .rp-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .rp-prev__row { grid-template-columns: 1fr; gap: 2px; }
  .rp-amt { margin-left: 0; width: 100%; }
  .rp-day { min-height: 46px; padding: 4px; }
  .rp-day small { font-size: 8.5px; }
}

/* Rapor Analizi · dışa aktarma */
.rp-ex { display: flex; flex-direction: column; gap: 16px; }
.rp-ex .field { margin: 0; }
.rp-ex .seg { flex-wrap: wrap; }
.rp-ex__dates { gap: 8px; margin-top: 8px; flex-wrap: nowrap; }
.rp-ex__dates .dp-btn { flex: 1; }
#rpExPerInfo { display: block; margin-top: 6px; font-size: 12px; }
.rp-ex__sum { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); font-size: 14px; }
.rp-ex__sum > i { font-size: 24px; color: var(--accent); }

.rp-kdv-in { color: var(--ink); font-weight: 600; }
.rp-kdv-ex { color: var(--muted); font-size: 11.5px; }
.rp-amt { font-size: 15px; }
/* Rapor Analizi · kurye paket sayıları */
/* Sol: dosya + tarih aralığı · sağ: kısa tablo */
.ky-grid:not([hidden]) { display: grid; grid-template-columns: 380px minmax(0, 720px); gap: var(--gap, 20px); align-items: start; }
.ky-side { position: sticky; top: 96px; }
.ky-top { display: flex; flex-direction: column; gap: 18px; }
.ky-table th:first-child, .ky-table td:first-child { width: 36px; }
.ky-range { display: flex; flex-direction: column; gap: 10px; }
.ky-range .field { margin: 0; }
.ky-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ky-dates .dp-btn { width: 100%; padding-left: 12px; padding-right: 10px; }
.ky-table td[data-label="Pozisyon"] { white-space: nowrap; }
.ky-table .ky-n { font-size: 15px; }
@media (max-width: 1100px) { .ky-grid:not([hidden]) { grid-template-columns: 1fr; } .ky-side { position: static; } }

/* Kurye gün gün detayı */
.ky-row { cursor: pointer; }
.ky-row:hover td, .ky-row:focus-visible td { background: var(--card-2); }
.ky-row:focus-visible { outline: none; }
.ky-row:hover td b:not(.ky-n) { color: var(--accent); }
.ky-d__sum { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.ky-d__sum b { color: var(--ink); }
.ky-d { display: flex; flex-direction: column; gap: 4px; max-height: 60vh; overflow-y: auto; }
.ky-d__row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; padding: 5px 4px; border-radius: 8px; font-size: 13px; }
.ky-d__date small { color: var(--muted); font-size: 11px; }
.ky-d__bar { height: 8px; border-radius: 6px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.ky-d__bar i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.ky-d__row.is-up .ky-d__bar i { background: var(--good); }
.ky-d__row.is-down .ky-d__bar i { background: var(--warn); }
.ky-d__note { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: -4px 0 12px; font-size: 11.5px; color: var(--muted); }
.ky-d__note b { color: var(--ink); }
.ky-d__note span { display: inline-flex; align-items: center; gap: 5px; }
.ky-d__note .lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ky-d__note .lg.is-up { background: var(--good); }
.ky-d__note .lg.is-down { background: var(--warn); }
.ky-d__n { text-align: right; font-variant-numeric: tabular-nums; }
.ky-d__note span:first-child { display: inline; }

/* Rapor Analizi · PowerBI bağlantıları (.rl-*) */
.rl-bar { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rl-open { height: 38px; }
a.rl-open:hover { text-decoration: none; }
.rl-help { font-size: 13px; margin: 0 0 14px; }
.rl-list { display: grid; gap: 8px; }
.rl-row { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 76px; gap: 8px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.rl-row__name { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.rl-row__name b { font-weight: 600; font-size: 14px; }
.rl-row__name .chip { height: 20px; font-size: 11px; }
.rl-row__name .input, .rl-row__url { height: 38px; width: 100%; }
.rl-row__act { display: flex; gap: 4px; justify-content: flex-end; }
.rl-row__act a.icon-btn:hover { text-decoration: none; }
.rl-new { margin-top: 10px; }
@media (max-width: 640px) {
  .rl-bar { margin-left: 0; width: 100%; }
  .rl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rl-row__url { grid-column: 1 / -1; grid-row: 2; }
}

/* Rapor Analizi · Void (.vo-*) ve sipariş detay bilgileri (.rp-meta) */
.rp-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.rp-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rp-meta b { font-weight: 600; color: var(--ink-2); }
.vo-yorum { margin-top: var(--gap, 20px); }
.vo-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vo-notes li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; padding: 8px 12px; border-radius: 10px; background: var(--card-2); border-left: 3px solid var(--line); }
.vo-notes li > i { font-size: 17px; margin-top: 1px; flex: none; }
.vo-notes li b { font-weight: 600; }
.vo-notes li.is-info > i { color: var(--accent); }
.vo-notes li.is-good { border-left-color: var(--good); } .vo-notes li.is-good > i { color: var(--good); }
.vo-notes li.is-warn { border-left-color: var(--warn); } .vo-notes li.is-warn > i { color: var(--warn); }
.vo-notes li.is-bad { border-left-color: var(--bad); } .vo-notes li.is-bad > i { color: var(--bad); }
.vo-notes li.is-muted { color: var(--muted); }
.vo-side, .vo-main { display: grid; gap: var(--gap, 20px); min-width: 0; }
.vo-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap, 20px); }
.vo-br { display: grid; gap: 4px; }
.vo-br__row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 34px 78px; gap: 10px; align-items: center; padding: 7px 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.vo-br__row:disabled { cursor: default; }
.vo-br__row:not(:disabled):hover { background: var(--card-2); }
.vo-br__row.is-sel { border-color: var(--accent); background: var(--accent-soft); }
.vo-br__n { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vo-br__bar { height: 7px; border-radius: 99px; background: var(--card-2); overflow: hidden; }
.vo-br__bar i { display: block; height: 100%; width: var(--w); border-radius: 99px; background: var(--warn); }
.vo-br__row.is-agg .vo-br__bar i { background: var(--accent); }
.vo-br__row b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.vo-br__row small { text-align: right; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.vo-hours { display: grid; gap: 3px; }
.vo-hr { display: grid; grid-template-columns: 24px minmax(0, 1fr) 24px; gap: 8px; align-items: center; font-size: 12px; }
.vo-hr span { color: var(--muted); font-variant-numeric: tabular-nums; }
.vo-hr i { display: block; height: 9px; width: var(--w); min-width: 0; border-radius: 99px; background: color-mix(in srgb, var(--warn) 75%, transparent); }
.vo-hr b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.vo-d { font-size: 13px; min-width: 120px; color: var(--ink-2); }
#vdWho { height: 32px; font-size: 13px; padding-top: 0; padding-bottom: 0; max-width: 220px; }
@media (max-width: 1100px) { .vo-two { grid-template-columns: minmax(0, 1fr); } }
/* Rapor Analizi sekmeleri: bantlar arası boşluk (araç çubuğu, uyarı, KPI, kartlar) */
#tabBad:not([hidden]), #tabVoid:not([hidden]) { display: grid; gap: var(--gap); }
#tabBad > *, #tabVoid > * { margin-top: 0; margin-bottom: 0; min-width: 0; }
.rp-meta b.vo-nomgr { color: var(--warn); }
/* Rapor Analizi · Sipariş Denetim (.ad-*) */
#tabDenetim:not([hidden]) { display: grid; gap: var(--gap); }
#tabDenetim > * { margin-top: 0; margin-bottom: 0; min-width: 0; }
#tabDenetim > .rp-last { margin: -6px 0 -6px 4px; }
.ad-chg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 14px; }
.ad-chg s { color: var(--muted); text-decoration-thickness: 1px; }
.ad-chg i { color: var(--muted); font-size: 18px; }
.ad-chg b { font-weight: 600; }
.ad-row .rp-row__h .chip { font-size: 11.5px; height: 22px; }
.rp-meta small { color: var(--muted); font-weight: 400; }
#tabDenetim .vo-br__row { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) 26px 44px; gap: 8px; }

/* Personel düzenleme formu (.pf-*): bölümlere ayrılmış görünüm */
.pf { display: flex; flex-direction: column; gap: 12px; }
.pf-sec { border: 1px solid var(--line); border-radius: 14px; background: var(--card-2); padding: 14px 16px 16px; }
.pf-sec__h { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.pf-sec__i { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 17px; }
.pf-sec__h h4 { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.25; }
.pf-sec__h p { margin: 2px 0 0; font-size: 12px; color: var(--muted); line-height: 1.3; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; align-items: start; }
.pf-grid .full { grid-column: 1 / -1; }
.pf .field > label small { color: var(--faint); font-weight: 400; margin-left: 2px; }
.pf .field .hint { line-height: 1.35; }
.pf .field .hint.is-good { color: var(--good); }
.pf .field .hint.is-bad { color: var(--bad); }
.pf-sw .switch { min-height: 42px; }
.pf .mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pf .nf-box .hint:not(:empty) { display: block; margin-top: 8px; font-size: var(--fs-xs); }
@media (max-width: 575.98px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } .pf-sec { padding: 12px; } }
.pf-sw2 { flex-direction: row; flex-wrap: wrap; gap: 12px 28px; padding-top: 4px; }
.pf-sw2 .switch { align-items: flex-start; min-height: 0; }
.pf-sw2 .switch > span { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.pf-sw2 .switch small { font-size: var(--fs-xs); color: var(--faint); }
.pf-branches { gap: 10px 22px; flex-wrap: wrap; }
.pf-hint { display: block; margin-top: 10px; font-size: var(--fs-xs); color: var(--faint); }
.pf .input[readonly] { opacity: .75; cursor: not-allowed; }

/* Rapor Analizi · Ödeme tipleri (.op-*) */
#tabOdeme:not([hidden]) { display: grid; gap: var(--gap); }
#tabOdeme > * { margin-top: 0; margin-bottom: 0; min-width: 0; }
.op-types { display: flex; flex-wrap: wrap; gap: 4px; }
.op-types .chip { font-size: 11px; height: 21px; }
.op-sum td.op-bad { color: var(--bad); font-weight: 600; }
.op-sum td.op-ok { color: var(--good); }
.op-mx { font-variant-numeric: tabular-nums; }
.op-mx th { white-space: nowrap; font-size: 12px; }
.op-mx td { vertical-align: top; padding-top: 8px; padding-bottom: 8px; }
.op-d a { white-space: nowrap; }
.op-c { white-space: nowrap; }
.op-c span { display: block; }
.op-c small { display: block; font-size: 11px; color: var(--muted); }
.op-c b { display: block; font-size: 12px; font-weight: 600; }
.op-c.is-none { color: var(--faint); }
.op-c.is-ok span { color: var(--ink-2); }
.op-c.is-miss { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.op-c.is-miss b { color: var(--bad); }
.op-c.is-norep { background: color-mix(in srgb, var(--warn) 10%, transparent); }
.op-c.is-norep span { color: var(--warn); font-size: 12px; }
.op-by { font-size: 12px; white-space: nowrap; }
.op-map { display: grid; gap: 6px; margin-top: 8px; }
.op-map__row { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 8px 6px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); }
.op-map__row.is-new { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.op-map__row > i { color: var(--muted); }
.op-map__t { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; }
.op-map__t b { font-weight: 600; font-size: 13px; }
.op-map__t .chip { height: 20px; font-size: 10.5px; }
.op-map__row .select { height: 36px; }
@media (max-width: 575.98px) { .op-map__row { grid-template-columns: minmax(0, 1fr); } .op-map__row > i { display: none; } }

/* Reçete Maliyeti (.rc-*) */
.rc-bar .rc-q { min-width: 150px; flex: 1 1 180px; }
.rc-bar .rc-ver { width: auto; }
.rc-ver { max-width: 230px; }
.rc-empty, .rc-chg, .rc-grid { margin-top: var(--gap); }
.rc-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.rc-list { position: sticky; top: 12px; }
.rc-items { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - 260px); overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.rc-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.rc-item:hover { background: var(--card-2); }
.rc-item.is-sel { border-color: var(--accent); background: var(--accent-soft); }
.rc-item__n { font-size: 13px; line-height: 1.3; min-width: 0; }
.rc-item__c { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; }
.rc-more { display: block; margin-top: 8px; }
.rc-d { font-size: 11px; font-weight: 600; }
.rc-d.is-up { color: var(--bad); } .rc-d.is-down { color: var(--good); } .rc-d.is-eq { color: var(--faint); }
.rc-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; align-items: flex-start; margin-bottom: 16px; }
.rc-h h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; line-height: 1.3; }
.rc-total { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.rc-total span { font-size: 12px; color: var(--muted); }
.rc-total b { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.rc-total small { font-size: 12px; color: var(--muted); }
.rc-calc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); margin-bottom: 14px; }
.rc-calc label { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.rc-calc label small { color: var(--faint); }
.rc-calc .input-group { width: 150px; }
.rc-calc__r { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted); }
.rc-calc__r b { color: var(--ink); font-variant-numeric: tabular-nums; }
.rc-calc__r b.is-good { color: var(--good); } .rc-calc__r b.is-warn { color: var(--warn); } .rc-calc__r b.is-bad { color: var(--bad); }
.rc-t { font-variant-numeric: tabular-nums; }
.rc-t td b { font-weight: 600; }
.rc-code { display: block; font-size: 11px; }
.rc-qd { color: var(--warn); font-size: 11px; }
.rc-t tr.is-zero td { color: var(--faint); }
.rc-share { width: 150px; }
.rc-share .rc-bar { display: inline-block; vertical-align: middle; width: 90px; height: 7px; border-radius: 99px; background: var(--card-2); overflow: hidden; margin-right: 6px; }
.rc-share .rc-bar i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 99px; }
.rc-share small { color: var(--muted); font-size: 11.5px; }
.rc-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.rc-chip { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 12px; border: 1px solid var(--line); border-left: 3px solid var(--bad); border-radius: 10px; background: var(--card-2); font-size: 12.5px; }
.rc-chip.is-down { border-left-color: var(--good); }
.rc-chip > b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-chip > span { grid-column: 1; color: var(--muted); font-variant-numeric: tabular-nums; }
.rc-chip > em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-weight: 700; color: var(--bad); }
.rc-chip.is-down > em { color: var(--good); }
@media (max-width: 1000px) { .rc-grid { grid-template-columns: minmax(0, 1fr); } .rc-list { position: static; } .rc-items { max-height: 340px; } }

/* Rapor Analizi · Memnuniyet (.mn-*) */
#tabMemnun:not([hidden]) { display: grid; gap: var(--gap); }
#tabMemnun > * { margin-top: 0; margin-bottom: 0; min-width: 0; }
.mn-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
@media (max-width: 1100px) { .mn-two { grid-template-columns: minmax(0, 1fr); } }
.mn-legend { display: flex; justify-content: flex-end; gap: 4px; margin: -4px 0 8px; }
.mn-legend span { width: 30px; font-size: 9.5px; line-height: 1.1; text-align: center; color: var(--muted); }
.mn-scores { margin-left: auto; display: inline-flex; gap: 4px; }
.mn-s { display: inline-grid; place-items: center; width: 30px; height: 24px; border-radius: 7px; font-weight: 700; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.mn-s.is-top { background: color-mix(in srgb, var(--good) 22%, transparent); color: var(--good); }
.mn-s.is-good { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); }
.mn-s.is-mid { background: var(--warn-soft); color: var(--warn); }
.mn-s.is-low { background: var(--bad-soft); color: var(--bad); }
.mn-s.is-none { color: var(--faint); }
.mn-com { font-size: 13.5px; }
.mn-items { margin-top: 6px; font-size: 12.5px; }
.mn-items summary { cursor: pointer; color: var(--muted); }
.mn-items ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
.mn-p { display: grid; grid-template-columns: minmax(0, 1fr) 110px 86px 28px; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px solid var(--line); font-size: 13px; }
.mn-p:last-child { border-bottom: 0; }
.mn-p__n { min-width: 0; }
.mn-p__bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--card-2); }
.mn-p__bar i { display: block; width: var(--w); height: 100%; }
.mn-p__bar i.is-l { background: var(--good); } .mn-p__bar i.is-d { background: var(--bad); }
.mn-p__c { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.mn-p__c i { font-size: 14px; vertical-align: -2px; color: var(--muted); margin-right: 4px; }
.mn-p small { color: var(--faint); text-align: right; }
.tol-row { gap: 8px; flex-wrap: nowrap; } .tol-row .input { width: 110px; flex: none; } .tol-row .select { flex: 1; min-width: 0; }

/* Rapor Analizi · Envanter (.iv-*) */
#tabEnvanter:not([hidden]) { display: grid; gap: var(--gap); }
#tabEnvanter > * { margin-top: 0; margin-bottom: 0; min-width: 0; }
.iv-label { font-size: 14px; font-weight: 600; }
.iv-missing { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); background: var(--bad-soft); color: var(--ink); font-size: 13.5px; }
.iv-missing > i { color: var(--bad); font-size: 20px; flex: none; }
.iv-mdays { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.iv-mdays .chip { cursor: pointer; border: 0; font: inherit; font-size: 12px; }
.iv-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (max-width: 1100px) { .iv-grid { grid-template-columns: minmax(0, 1fr); } }
.iv-chart { position: relative; min-height: 160px; }
.iv-chart.is-empty::after { content: 'Tolerans dışı ürün yok'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.iv-t { font-variant-numeric: tabular-nums; }
.iv-t td small { display: block; font-size: 11px; }
.iv-r { cursor: pointer; }
.iv-r:hover td { background: var(--card-2); }
.iv-r.is-acik .iv-d { color: var(--bad); font-weight: 700; }
.iv-r.is-fazla .iv-d { color: var(--warn); font-weight: 700; }
.iv-r.is-sayim td, .iv-r.is-nocount td, .iv-r.is-idle td { color: var(--muted); }
.iv-loss { color: var(--bad); }
.iv-help { font-size: 12px; margin: 10px 0 0; }
.iv-ih { font-size: 12.5px; margin: 0 0 10px; }
.iv-ichart { position: relative; height: 220px; margin-bottom: 12px; }
#ivItemBody tr.is-acik .iv-d { color: var(--bad); } #ivItemBody tr.is-fazla .iv-d { color: var(--warn); } #ivItemBody tr.is-sayim td { color: var(--muted); }
.iv-rcp { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.iv-rcp__p { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); cursor: pointer; }
.iv-rcp__p span { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
.iv-rcp__p small { color: var(--muted); font-size: 11.5px; }
.iv-rcp__p.is-off { opacity: .55; cursor: default; }
.iv-prev { border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #0f172a; padding: 16px; max-height: 340px; overflow: auto; }
.iv-mail { font-size: 13px; }
.iv-mail__s { display: block; font-size: 15px; margin-bottom: 8px; }
.iv-mail p { margin: 0 0 10px; color: #334155; }
.iv-mail__n { padding: 8px 10px; border-radius: 8px; background: #f1f5f9; }
.iv-mail table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.iv-mail th { text-align: left; color: #64748b; font-weight: 600; padding: 6px; border-bottom: 2px solid #e2e8f0; }
.iv-mail td { padding: 6px; border-bottom: 1px solid #eef2f6; }
.iv-mail td.is-acik { color: #dc2626; font-weight: 600; } .iv-mail td.is-fazla { color: #d97706; font-weight: 600; }
.iv-mail__t { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; }
.iv-mail__t.is-loss { background: #fef2f2; } .iv-mail__t.is-loss b { color: #dc2626; }
.iv-out { color: var(--warn); }
.iv-t { font-size: 13px; }
.iv-t th { font-size: 11px; line-height: 1.25; vertical-align: bottom; }
.iv-t th, .iv-t td { padding-left: 7px; padding-right: 7px; }
.iv-t td.num { white-space: nowrap; }
.iv-t td.iv-n { min-width: 150px; }
.iv-t .chip { white-space: nowrap; }
/* Envanter: fark sütunu vurgusu ve renk açıklaması */
.iv-dcol { background: color-mix(in srgb, var(--accent) 9%, transparent); border-left: 2px solid color-mix(in srgb, var(--accent) 65%, transparent) !important; border-right: 2px solid color-mix(in srgb, var(--accent) 65%, transparent) !important; }
th.iv-dcol { color: var(--accent); border-top: 2px solid color-mix(in srgb, var(--accent) 65%, transparent) !important; border-radius: 8px 8px 0 0; }
tbody tr:last-child td.iv-dcol { border-bottom: 2px solid color-mix(in srgb, var(--accent) 65%, transparent) !important; }
.iv-t td.iv-dcol { font-weight: 600; }
.iv-out { color: #a78bfa !important; }
:root[data-theme="light"] .iv-out { color: #6d28d9 !important; }
.iv-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); font-size: 12px; color: var(--muted); }
.iv-legend span { display: inline-flex; align-items: center; gap: 6px; }
.iv-legend b { color: var(--ink-2); font-weight: 600; }
.iv-legend .lg { width: 12px; height: 12px; border-radius: 3px; display: inline-block; border: 1px solid var(--line); }
.iv-legend .lg.is-red { background: var(--bad); } .iv-legend .lg.is-yel { background: var(--warn); } .iv-legend .lg.is-blue { background: #a78bfa; }
.iv-legend .lg.is-gray { background: var(--faint); } .iv-legend .lg.is-plain { background: var(--ink); }

/* Ürün Kartları (.ur-*) */
.ur-bar #groupSel { max-width: 220px; }
.ur-types { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.ur-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.ur-chip small { color: var(--muted); font-size: 11.5px; }
.ur-chip i { font-size: 15px; }
.ur-chip.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ur-t td { vertical-align: middle; }
.ur-grp td { background: var(--card-2); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: 8px !important; padding-bottom: 8px !important; }
.ur-grp td i { font-size: 15px; vertical-align: -2px; margin-right: 4px; color: var(--accent); }
.ur-grp td small { margin-left: 6px; font-weight: 500; }
.ur-r { cursor: pointer; }
.ur-r:hover td { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.ur-r.is-muted td { opacity: .6; }
.ur-n { display: block; font-weight: 600; font-size: 14px; }
.ur-sub { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.ur-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2); }
.ur-code.is-none { font-family: inherit; color: var(--warn); border-style: dashed; background: transparent; }
.ur-unit { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; background: var(--card-2); border: 1px solid var(--line); }
.ur-t td.num small { font-size: 10.5px; }
.ur-flags { display: flex; flex-wrap: wrap; gap: 4px; }
.ur-f { display: inline-flex; align-items: center; gap: 3px; height: 21px; padding: 0 7px; border-radius: 6px; font-size: 11px; background: var(--card-2); color: var(--ink-2); border: 1px solid var(--line); }
.ur-f i { font-size: 13px; }
.ur-f.is-inv { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.ur-f.is-skt { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.ur-help { font-size: 12.5px; margin: 10px 2px 0; }
.ur-act { margin-left: auto; font-size: 13.5px; font-weight: 500; }
.pf-grid.ur-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .pf-grid.ur-g3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767.98px) {
  .ur-t tr.ur-grp { padding: 0; border: 0; }
  .ur-t tr.ur-grp td { display: block; text-align: left; padding: 8px 16px !important; }
  .ur-t tr.ur-grp td::before { content: none; }
  .ur-t td[data-label="Ürün"] { display: block; text-align: left; }
  .ur-t td[data-label="Ürün"]::before { content: none; }
}

/* Genel Bakış · Envanter ve stok (.inv-*) */
.inv-asof { font-size: 12.5px; font-style: italic; }
.inv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.inv-top small { font-size: 12px; }
.inv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; }
.inv-i { display: flex; align-items: flex-start; gap: 10px; padding: 9px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.inv-i:hover { background: var(--card-2); }
.inv-i > i { font-size: 20px; color: var(--good); flex: none; margin-top: 1px; }
.inv-i.is-low > i { color: var(--bad); }
.inv-i span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.inv-i b { font-weight: 600; font-size: 14px; color: var(--accent); border-bottom: 1px dashed color-mix(in srgb, var(--accent) 60%, transparent); align-self: flex-start; }
.inv-i small { font-size: 12.5px; color: var(--muted); }
.inv-i em { font-style: normal; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.inv-i.is-low em { color: var(--bad); }
.inv-range { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.inv-range .input { width: 175px; }
.inv-cap { margin: 0 0 8px; font-size: 14px; font-weight: 500; }
.inv-chart { position: relative; height: 240px; margin-bottom: 14px; }
.inv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.inv-st { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); }
.inv-st > span { font-size: 11.5px; color: var(--muted); }
.inv-st b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.inv-st .inv-d.is-acik { color: var(--bad); } .inv-st .inv-d.is-fazla { color: var(--warn); }
.inv-st small strong { color: var(--ink); font-weight: 600; }
.inv-st small { font-size: 11.5px; color: var(--muted); }

/* Genel Bakış · birleşik "Bu ay ciro + aylık hedef" kartı ve kompakt envanter kartı */
.kpi--target .kpi__foot { flex-direction: column; align-items: flex-start; gap: 6px; }
.kpi--target .kpi-tg { align-self: stretch; }
.kpi-tg { display: flex; flex-direction: column; gap: 5px; }
.kpi-tg__row { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.kpi-tg__row b { margin-left: auto; font-size: 13px; font-weight: 700; }
.kpi-tg__row b.up, .kpi-tg__st.up { color: var(--good); } .kpi-tg__row b.down, .kpi-tg__st.down { color: var(--bad); }
.kpi-tg .tg-bar { margin: 0; height: 7px; }
.kpi-tg__st { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; }
.kpi-tg__st span { color: var(--muted); font-weight: 400; }
.kpi-tg__cog { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; color: var(--muted); }
.kpi-tg__cog:hover { background: var(--card-2); color: var(--ink); text-decoration: none; }
.kpi-tg__set { color: var(--accent); }
.kpi-tg__set:hover { text-decoration: none; }
.inv-card { display: flex; flex-direction: column; min-width: 0; }
.inv-card .inv-asof { font-size: 12px; color: var(--muted); margin: -4px 0 8px; font-style: normal; }
.inv-card .inv-asof b { color: var(--ink-2); font-weight: 600; }
.inv-card .inv-tabs { margin-bottom: 8px; align-self: flex-start; max-width: 100%; overflow-x: auto; }
.inv-card .inv-tabs button { padding: 0 8px; }
.inv-card .inv-list { display: flex; flex-direction: column; gap: 0; max-height: 330px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.inv-card .inv-i { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px 6px; border-bottom: 1px solid var(--line); border-radius: 6px; }
.inv-card .inv-i > i { font-size: 16px; margin: 0; }
.inv-card .inv-i b { font-size: 13px; font-weight: 500; color: var(--ink); border: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-card .inv-i:hover b { color: var(--accent); }
.inv-card .inv-i em { font-style: normal; font-weight: 600; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.inv-card .inv-i em small { color: var(--muted); font-weight: 400; font-size: 11px; }
.inv-card .inv-i.is-low em { color: var(--bad); }
.kpi--target .kpi__foot .kpi__line { flex-basis: auto; }
.inv-card .inv-tabs { flex-wrap: nowrap; }
.inv-card .inv-tabs button { padding: 0 7px; font-size: 11.5px; white-space: nowrap; }
.inv-card .inv-tabs button small { font-size: 10px; }
#invCard.inv-card { margin-top: 0; }
.inv-card .inv-asof { display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.inv-card .inv-asof .is-stale b { color: var(--warn); }
.inv-stale { display: inline-flex; align-items: center; gap: 3px; color: var(--warn); font-size: 11.5px; font-weight: 600; }
.inv-stale:hover { text-decoration: none; }
.inv-stale i { font-size: 14px; }
.inv-card .inv-i { border-radius: 0; }
.inv-card .inv-i:last-child { border-bottom: 0; }
/* Bu ay ciro · hedef penceresi (.tgm-*) */
.kpi--target .kpi__foot { flex-direction: row; align-items: center; }
.kpi--target .kpi-tg { flex: 1; }
.tgm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.tgm-head span { display: block; font-size: 12.5px; color: var(--muted); }
.tgm-head b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tgm-pct { font-size: 26px; font-weight: 700; text-align: right; line-height: 1; }
.tgm-pct small { display: block; font-size: 11.5px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.tgm-pct.up, .tgm-st.up { color: var(--good); } .tgm-pct.down, .tgm-st.down { color: var(--bad); }
.tgm-bar { height: 10px; margin: 6px 0 8px; }
.tgm-st { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.tgm-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.tgm-r { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); align-items: center; }
.tgm-r span { font-size: 13.5px; color: var(--ink-2); }
.tgm-r b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.tgm-r small { grid-column: 1 / -1; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.tgm-foot { display: flex; justify-content: flex-end; margin-top: 14px; }
.pc-row, .pc-row:hover, .pc-row:focus, .pc-row:hover * { text-decoration: none; }
.pc-row.is-static, .pc-row.is-static:hover { cursor: default; background: none; }
/* Ürün Kartları · kompakt özet şeridi */
.ur-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.ur-stat { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; min-width: 0; }
.ur-stat__i { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 16px; }
.ur-stat > b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.ur-stat__l { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; font-weight: 500; color: var(--ink-2); line-height: 1.25; }
.ur-stat__l small { font-size: 11px; font-weight: 400; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) { .ur-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ur-bar #typeChips { max-width: 170px; }
.ur-bar #groupSel { max-width: 210px; }
.ur-bar + section.card { margin-top: 12px; }
.ur-thead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ur-thead .ur-types { margin: 0; }
.ur-thead .ur-chip { height: 30px; }
.ur-thead > span { font-size: 12.5px; white-space: nowrap; }
.ur-t tr.ur-grp:hover td { background: var(--card-2); }
.ur-t tr.ur-grp { cursor: default; }
.ur-t tbody tr.ur-grp:hover { background: transparent; }
.ur-seg .ur-seg__p { display: contents; }
.ur-seg__sep { width: 1px; align-self: stretch; margin: 6px 4px; background: var(--line); }
.ur-seg button i { font-size: 14px; vertical-align: -2px; }
.ur-stat.tone-red .ur-stat__i { background: var(--bad-soft); color: var(--bad); }
.ur-stat.tone-amber .ur-stat__i { background: var(--warn-soft); color: var(--warn); }
.ur-stat.tone-green .ur-stat__i { background: var(--good-soft); color: var(--good); }
/* Özet şeridi ile sonraki bölüm arası: sayfanın standart boşluğu (üstteki boşlukla eşit) */
.ur-stats { margin-bottom: 0; }
.gv-stats + .gv { margin-top: 0; }
.ur-bar + section.card { margin-top: 0; }
/* Kasa Ekstresi · kompakt özet şeridi (tutarlar geniş: başlık üstte, tutar altta) */
.ex-stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ex-stat { align-items: center; padding: 9px 12px; }
.ex-stat .ur-stat__l { gap: 1px; }
.ex-stat .ex-stat__lbl { font-size: 11.5px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-stat .ur-stat__l b { font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.ex-stat .ur-stat__l small .delta { font-size: 10.5px; padding: 0 5px; }
.ur-stat.is-clickable { cursor: pointer; transition: border-color .15s, transform .15s; }
.ur-stat.is-clickable:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); transform: translateY(-1px); }
@media (max-width: 1200px) { .ex-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .ex-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ex-stat .ur-stat__l b .delta { font-size: 10.5px; padding: 1px 5px; vertical-align: 2px; margin-left: 4px; font-weight: 600; }
.ex-stat .ur-stat__l small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.inv-card .inv-asof { justify-content: space-between; }
.inv-card .inv-asof .inv-stale { margin-left: auto; }
.inv-warn { color: var(--warn) !important; background: var(--warn-soft); }
.inv-warn:hover { text-decoration: none; filter: brightness(1.1); }
.inv-warn i { font-size: 17px; }
/* Envanter kartı: tarih dipnot olarak listenin altında, sağa yaslı */
.inv-card .inv-asof { justify-content: flex-end; margin: 8px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 11.5px; font-style: italic; }
.inv-card .inv-asof b { font-weight: 600; }

/* Rapor Analizi · Performans (.pf-*) */
#tabPerf:not([hidden]) { display: grid; gap: var(--gap); }
#tabPerf > * { margin-top: 0; margin-bottom: 0; min-width: 0; }
.pf-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1300px) { .pf-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-d { font-size: 10.5px; font-weight: 700; margin-right: 4px; white-space: nowrap; }
.pf-d.is-good { color: var(--good); } .pf-d.is-bad { color: var(--bad); } .pf-d.is-eq { color: var(--faint); }
.pf-chart { height: 300px; }
.pf-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.pf-g { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card-2); }
.pf-g h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.pf-g h4 i { color: var(--accent); font-size: 16px; }
.pf-m { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; padding: 5px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.pf-m span { color: var(--muted); }
.pf-m b { font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-m .pf-d { min-width: 70px; text-align: right; margin: 0; }
.pf-note { font-size: 12px; margin: 10px 0 0; }
.pf-t { font-variant-numeric: tabular-nums; font-size: 13px; }
.pf-t tfoot tr.pf-tot td { font-weight: 700; border-top: 2px solid var(--line); }
.pf-t tfoot tr.pf-prev td { color: var(--muted); font-size: 12px; }
.pf-d.is-neu { color: var(--muted); }
/* Rapor Analizi sekmeleri · kompakt özet şeridi */
.rp-stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.rp-stats .ex-stat { min-height: 58px; }
.rp-stats:empty { display: none; }
/* Genel Bakış · şube karşılaştırması: seçilebilir performans sütunları */
.cmp-t th.cmp-pf { color: var(--accent); }
.cmp-t td.cmp-pf { font-variant-numeric: tabular-nums; }
.cmp-note { font-size: 12px; margin: 0; padding: 8px 20px 14px; }
.cmp-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.cmp-opt { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card-2); font-size: 13px; cursor: pointer; }
.cmp-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }

/* İnsan Kaynakları · Başvurular (.ba-*) */
.ba { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (max-width: 1000px) { .ba { grid-template-columns: minmax(0, 1fr); } }
.ba-list { position: sticky; top: 12px; max-height: calc(100vh - 230px); overflow-y: auto; }
.ba-item { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ba-item:hover { background: var(--card-2); }
.ba-item.is-sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.ba-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2); }
.ba-item__m { display: flex; flex-direction: column; min-width: 0; }
.ba-item__m b { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-item__m small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ba-item__e { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ba-item__e .chip { height: 21px; font-size: 11px; }
.ba-item__e small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.ba-h { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.ba-nav { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; }
.ba-h__m { flex: 1; min-width: 0; }
.ba-h__m h2 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.ba-h__c { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ba-h__c small { font-size: 12px; }
.ba-h__t { display: flex; gap: 4px; }
.ba-st { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ba-st .field { min-width: 200px; }
.ba-cv { margin-left: auto; }
.ba-stars { display: inline-flex; gap: 2px; align-items: center; }
.ba-star { border: 0; background: none; padding: 2px; color: var(--faint); font-size: 22px; cursor: pointer; line-height: 1; }
.ba-star.is-on { color: #f5b301; }
.ba-star[data-x] { cursor: default; }
.ba-info { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ba-info span { display: block; font-size: 11.5px; color: var(--muted); }
.ba-info b { font-weight: 500; font-size: 14px; }
.ba-txt { padding: 12px 0; border-bottom: 1px solid var(--line); }
.ba-txt h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.ba-txt p { margin: 0; white-space: pre-line; font-size: 14px; line-height: 1.55; }
.ba-notes h3 { margin: 16px 0 10px; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.ba-nf { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--card-2); margin-bottom: 14px; }
.ba-nf__r { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; margin-top: 10px; }
.ba-nf__r label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.ba-nf__r .input, .ba-nf__r .select { height: 38px; min-width: 160px; }
.ba-nf__r .btn { margin-left: auto; }
.ba-tl { display: flex; flex-direction: column; gap: 10px; }
.ba-n { border-left: 3px solid var(--accent); padding: 8px 12px; background: var(--card-2); border-radius: 0 10px 10px 0; }
.ba-n__h { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 13px; }
.ba-n__h .chip { height: 21px; font-size: 11px; }
.ba-n__r { color: #f5b301; letter-spacing: 1px; } .ba-n__r i { font-style: normal; color: var(--faint); }
.ba-n__del { margin-left: auto; }
.ba-n p { margin: 6px 0 4px; white-space: pre-line; font-size: 14px; line-height: 1.55; }
.ba-n small { font-size: 11px; }
.ba-empty { padding: 18px; }
.ba-pos { display: flex; flex-wrap: wrap; gap: 6px; }
.ba-pchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; cursor: pointer; background: var(--card-2); }
.ba-pchip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.ba-url { display: flex; gap: 8px; }
.ba-url .input { flex: 1; min-width: 0; }
.ba-ok { color: var(--good); vertical-align: -2px; }
.ba-qr { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); }
.ba-qr__img { width: 150px; height: 150px; flex: none; background: #fff; border-radius: 10px; padding: 6px; display: grid; place-items: center; }
.ba-qr__img svg { width: 100%; height: 100%; }
.ba-qr__s { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; font-size: 13px; }
@media (max-width: 560px) { #baSeg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; } #baSeg button { padding: 0 7px; } }
