:root {
  --bg: #f2f5f6;
  --surface: #ffffff;
  --surface-2: #f7f9fa;
  --line: #e0e7ea;
  --text: #12252b;
  --muted: #5d737b;
  --brand: #1c5a44;
  --brand-2: #11372b;
  --brand-soft: #e2f0e9;
  --accent: #b98a35;
  --accent-soft: #f7efd9;
  --ok: #1d8454;
  --ok-soft: #dcf2e6;
  --warn: #a8620a;
  --warn-soft: #fcebcf;
  --bad: #c03a2b;
  --bad-soft: #fbe0dc;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(18, 37, 43, .05), 0 4px 16px rgba(18, 37, 43, .06);
  --nav-h: 64px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f171a; --surface: #172226; --surface-2: #1c292e; --line: #2a3a41; --text: #e8f0f2; --muted: #93a8af;
    --brand: #5fb88f; --brand-2: #8fd3b0; --brand-soft: #173a2d; --accent: #e0bd79; --accent-soft: #3a3016;
    --ok: #4cc58a; --ok-soft: #173a2a; --warn: #eaa84e; --warn-soft: #3d2f12; --bad: #f08a7d; --bad-soft: #432420;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { color-scheme: light dark; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.45rem; line-height: 1.25; }
h2 { font-size: 1.1rem; }
h3 { font-size: 1rem; }
b, strong { font-weight: 650; }
.muted { color: var(--muted); font-size: .9rem; }
.hint { margin-top: 4px; font-size: .82rem; }
.ic { flex: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }
.hidden { display: none !important; }
.spacer { flex: 1; }
.stack { display: grid; gap: 14px; }
.stack-s { display: grid; gap: 8px; }
.flex { display: flex; align-items: center; gap: 10px; }
.flex.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.right { text-align: end; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Giriş ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: linear-gradient(160deg, var(--brand-2), var(--brand)); }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 22px; padding: 28px 22px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.login-logo { width: 56px; height: 56px; border-radius: 16px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; margin-bottom: 14px; }
.login-card h1 { margin-bottom: 4px; }
.login-card .field { margin-top: 14px; }

/* ---------- Gönüllü kabuğu ---------- */
.vapp { min-height: 100dvh; padding-bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); }
.appbar { position: sticky; top: 0; z-index: 20; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; padding: 12px 16px; }
.appbar-in { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.appbar h1 { font-size: 1.05rem; color: #fff; }
.appbar .sub { font-size: .8rem; opacity: .8; }
.content { max-width: 560px; margin: 0 auto; padding: 16px; display: grid; gap: 14px; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav-in { max-width: 560px; margin: 0 auto; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; height: var(--nav-h); }
.tab { border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .72rem; color: var(--muted); cursor: pointer; position: relative; }
.tab.on { color: var(--brand); font-weight: 650; }
.tab.fab .fab-ic { width: 48px; height: 48px; margin-top: -22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(28, 90, 68, .4); border: 4px solid var(--surface); }
.tab.fab.on .fab-ic { background: var(--accent); }
.tab .dot { position: absolute; top: 10px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--bad); border: 2px solid var(--surface); }

/* ---------- Kart ve temel bileşenler ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card.tight { padding: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card-head h2 { display: flex; align-items: center; gap: 8px; }
.card-head h2 .ic { color: var(--brand); }
.link { background: none; border: 0; color: var(--brand); font-weight: 600; cursor: pointer; padding: 4px 0; font-size: .92rem; }
.section-title { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 6px 2px -4px; }
.hero { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; border: 0; }
.hero .muted { color: rgba(255, 255, 255, .8); }
.hero .btn { background: #fff; color: var(--brand-2); border-color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; text-decoration: none; min-height: 44px; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.danger { color: var(--bad); }
.btn.danger-solid { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: .88rem; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: transparent; color: inherit; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); }
.appbar .icon-btn:hover { background: rgba(255, 255, 255, .15); }
.actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 99px; font-size: .75rem; font-weight: 650; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.badge.brand { background: var(--brand-soft); color: var(--brand); border-color: transparent; }

.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .95rem; flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 1.4rem; }
.avatar.sm { width: 34px; height: 34px; font-size: .8rem; }
.av0 { background: #1c5a44; } .av1 { background: #7a4fa3; } .av2 { background: #b3541e; } .av3 { background: #2d7d4f; }
.av4 { background: #a63a56; } .av5 { background: #3a63b8; } .av6 { background: #8a7013; } .av7 { background: #4b6b73; }

.bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; background: var(--brand); transition: width .4s; }
.bar-fill.ok { background: var(--ok); } .bar-fill.warn { background: var(--accent); } .bar-fill.bad { background: var(--bad); }
.hero .bar { background: rgba(255, 255, 255, .25); }
.hero .bar-fill { background: #fff; }

.ring { position: relative; display: grid; place-items: center; flex: none; }
.ring-bg { stroke: var(--line); } .ring-fg { stroke: var(--brand); }
.hero .ring-bg { stroke: rgba(255, 255, 255, .25); } .hero .ring-fg { stroke: #fff; }
.ring-text { position: absolute; text-align: center; line-height: 1.1; }
.ring-text b { font-size: 1.3rem; } .ring-text span { font-size: .8rem; opacity: .75; }

/* ---------- Form ---------- */
.field { display: grid; gap: 6px; }
.field > label { font-size: .85rem; font-weight: 650; color: var(--muted); }
input[type=text], input[type=tel], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], input[type=month], input[type=datetime-local], input[type=email], input[type=url], select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: var(--surface); color: var(--text); min-height: 46px;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid color-mix(in srgb, var(--brand) 35%, transparent); border-color: var(--brand); }
.pin-input { text-align: center; letter-spacing: .5em; font-size: 1.4rem; font-weight: 700; }
.form-err { color: var(--bad); font-size: .9rem; min-height: 1.2em; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); overflow-x: auto; }
.segmented.grid { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
.seg { flex: 1; min-width: max-content; border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--muted); cursor: pointer; white-space: nowrap; }
.seg.on { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper input { text-align: center; font-size: 1.25rem; font-weight: 700; padding: 8px; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step-btn { width: 48px; height: 48px; flex: none; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--brand); cursor: pointer; display: grid; place-items: center; }
.step-btn:active { background: var(--brand-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: .9rem; cursor: pointer; }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); font-weight: 650; }
.chip-add { display: flex; gap: 8px; margin-top: 10px; }
.chip-add input { min-height: 40px; padding: 8px 12px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; background: var(--surface-2); }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .knob { position: absolute; inset: 0; border-radius: 99px; background: var(--line); transition: background .2s; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch input:checked + .knob { background: var(--brand); }
.switch input:checked + .knob::after { transform: translateX(20px); }
.callout { display: flex; gap: 10px; padding: 12px; border-radius: 12px; background: var(--accent-soft); color: var(--text); font-size: .88rem; }
.callout .ic { color: var(--accent); margin-top: 2px; }
.pinbox { font-size: 2rem; letter-spacing: .3em; font-weight: 800; text-align: center; padding: 16px; background: var(--brand-soft); color: var(--brand); border: 2px dashed var(--brand); border-radius: 14px; margin: 12px 0; user-select: all; }

/* ---------- İstatistik / liste ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.stats.s3 { grid-template-columns: repeat(3, 1fr); }
.stats.s3 .stat { padding: 12px 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); }
.stat .ic { color: var(--brand); margin-bottom: 6px; }
.stat b { display: block; font-size: 1.7rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .82rem; }
.stat.warn .ic, .stat.warn b { color: var(--warn); }
.stat.bad b { color: var(--bad); }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; padding-bottom: 0; }
.item:first-child { padding-top: 0; }
.item.click { cursor: pointer; }
.item.click:hover .item-title { color: var(--brand); }
.item-title { font-weight: 650; }
.pill-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.pill-ic.warn { background: var(--warn-soft); color: var(--warn); } .pill-ic.bad { background: var(--bad-soft); color: var(--bad); } .pill-ic.ok { background: var(--ok-soft); color: var(--ok); }
.empty { text-align: center; padding: 28px 12px; display: grid; gap: 6px; justify-items: center; }
.empty-ic { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-bottom: 4px; }
.skeleton { height: 70px; border-radius: var(--radius); background: linear-gradient(90deg, var(--line), var(--surface-2), var(--line)); background-size: 200% 100%; animation: sk 1.2s infinite; margin-bottom: 10px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Süreç ---------- */
.mods { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mod { aspect-ratio: 1; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); display: grid; place-items: center; align-content: center; gap: 2px; cursor: pointer; font-weight: 650; color: var(--muted); }
.mod small { font-size: .68rem; font-weight: 500; }
.mod.done { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }
.mod.ro { cursor: default; }
.tl { position: relative; display: grid; gap: 0; }
.tl-item { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line); color: var(--muted); flex: none; z-index: 1; font-size: .75rem; font-weight: 700; }
.tl-item.done .tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl-item.next .tl-dot { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.tl-item.done::before { background: var(--ok); }
.checklist .item { cursor: pointer; }
.check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; flex: none; background: var(--surface); }
.check.on { background: var(--ok); border-color: var(--ok); }
.done-text { color: var(--muted); }

/* ---------- Vardiya ---------- */
.day-title { font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: capitalize; margin: 8px 2px 0; }
.shift { display: grid; gap: 10px; }
.shift.mine { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.shift-time { font-weight: 750; font-size: 1.1rem; }
.shift-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .88rem; }
.shift-meta span { display: inline-flex; align-items: center; gap: 5px; }
.people { display: flex; flex-wrap: wrap; gap: 6px; }
.person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: .85rem; }
.person > button:not(.link) { border: 0; background: transparent; cursor: pointer; color: var(--muted); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; }
.person > button:not(.link):not(.att):hover { background: var(--bad-soft); color: var(--bad); }
.person.plain { padding-inline-end: 10px; }

/* ---------- Duyuru / başarı ---------- */
.ann { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ann:last-child { border-bottom: 0; padding-bottom: 0; } .ann:first-child { padding-top: 0; }
.ann-body { white-space: pre-wrap; font-size: .95rem; }
.ach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ach-item { text-align: center; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 4px; justify-items: center; opacity: .55; }
.ach-item.on { opacity: 1; background: var(--accent-soft); border-color: var(--accent); }
.ach-item .ic { color: var(--muted); } .ach-item.on .ic { color: var(--accent); }
.ach-item b { font-size: .78rem; line-height: 1.2; } .ach-item span { font-size: .68rem; color: var(--muted); }

/* ---------- Grafik ---------- */
.chart { width: 100%; height: auto; display: block; }
.ch-track { fill: var(--surface-2); } .ch-bar { fill: color-mix(in srgb, var(--brand) 55%, transparent); } .ch-bar.last { fill: var(--brand); }
.ch-val { font-size: 11px; font-weight: 700; fill: var(--text); } .ch-lab { font-size: 11px; fill: var(--muted); }
.hbar { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; font-size: .9rem; padding: 6px 0; }

/* ---------- Toast / Modal ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--brand-2); color: #fff; padding: 11px 18px; border-radius: 12px; z-index: 100; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); max-width: 90vw; animation: up .25s; }
.toast.err { background: var(--bad); } .toast.out { opacity: 0; transition: opacity .35s; }
@keyframes up { from { transform: translate(-50%, 12px); opacity: 0; } }
.overlay { position: fixed; inset: 0; background: rgba(8, 18, 22, .55); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--surface); width: 100%; max-width: 520px; max-height: 92dvh; border-radius: 22px 22px 0 0; display: flex; flex-direction: column; animation: sheet .22s; }
.sheet.wide { max-width: 640px; }
@keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding-block: 14px 8px; padding-inline: 20px 14px; }
.sheet-body { padding: 4px 20px calc(20px + env(safe-area-inset-bottom)); overflow-y: auto; }
@media (min-width: 700px) { .overlay { align-items: center; } .sheet { border-radius: 22px; } }

/* ---------- Yönetici kabuğu ---------- */
.shell { min-height: 100dvh; }
.side { display: none; }
.admin-top { position: sticky; top: 0; z-index: 20; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.admin-top h1 { font-size: 1.05rem; color: #fff; }
.main { padding: 16px 16px calc(var(--nav-h) + 24px); max-width: 1100px; margin: 0 auto; display: grid; gap: 16px; align-content: start; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.admin-nav .bottom-nav-in { max-width: none; }
.admin-nav .tab { font-size: .66rem; }
@media (min-width: 960px) {
  .shell { display: grid; grid-template-columns: 250px 1fr; }
  .side { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; padding: 20px 14px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); color: #fff; }
  .side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }
  .side .brand .login-logo { width: 40px; height: 40px; margin: 0; font-size: .85rem; border-radius: 12px; background: rgba(255, 255, 255, .18); }
  .side-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; border: 0; background: transparent; color: rgba(255, 255, 255, .85); font-weight: 600; cursor: pointer; text-align: left; width: 100%; }
  .side-link:hover { background: rgba(255, 255, 255, .1); }
  .side-link.on { background: rgba(255, 255, 255, .2); color: #fff; }
  .side-link .count { margin-left: auto; background: var(--bad); color: #fff; font-size: .72rem; padding: 1px 8px; border-radius: 99px; }
  .admin-top, .admin-nav { display: none; }
  .main { padding: 28px 32px 48px; width: 100%; }
  .overlay { align-items: center; }
}
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search { position: relative; flex: 1; min-width: 180px; }
.search .ic { position: absolute; inset-inline-start: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-inline-start: 38px; }
.vrow { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; cursor: pointer; }
.vrow:hover { border-color: var(--brand); }
.vrow-side { display: none; }
@media (min-width: 720px) { .vrow { grid-template-columns: auto 1fr 150px; } .vrow-side { display: block; } }
.brand-sub { font-size: .8rem; opacity: .8; }
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { background: var(--surface-2); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); white-space: nowrap; }
.grid2 { display: grid; gap: 16px; }
@media (min-width: 900px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.back { align-self: start; }
.note-item { padding: 10px 12px; border-radius: 12px; background: var(--accent-soft); display: grid; gap: 4px; }
.note-item .muted { font-size: .78rem; }

/* ---------- Gönüllü: bildirim, dil, sınav ---------- */
.bell { position: relative; }
.bell-dot { position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 99px; background: var(--bad); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--brand-2); }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.lang-btn { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; font-weight: 700; font-size: .82rem; color: var(--muted); cursor: pointer; }
.lang-btn.on { background: var(--brand); color: #fff; }
.new-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.small-t { font-size: .76rem; }
.callout.ok { background: var(--ok-soft); } .callout.ok .ic { color: var(--ok); }
.event-title { font-weight: 750; font-size: 1.05rem; color: var(--brand); }
.btn.on { background: var(--accent-soft); border-color: var(--accent); }
.pending { border-color: var(--accent); }
.quiz-q { display: grid; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.quiz-q:last-of-type { border-bottom: 0; }
.quiz-opt { text-align: start; padding: 11px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: .95rem; }
.quiz-opt.on { border-color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.quiz-opt.bad { border-color: var(--bad); background: var(--bad-soft); }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.apply-steps { display: grid; gap: 10px; counter-reset: s; }
.apply-steps div { display: flex; gap: 12px; align-items: center; }
.apply-steps div::before { counter-increment: s; content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; flex: none; font-size: .85rem; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check-row input { margin-top: 3px; }

/* ---------- RTL (Arapça) ---------- */
[dir=rtl] .flip { transform: scaleX(-1); }
[dir=rtl] .tab .dot { left: auto; right: calc(50% + 8px); }
[dir=rtl] .tl-item::before { left: auto; right: 13px; }
[dir=rtl] .switch .knob::after { left: auto; right: 3px; }
[dir=rtl] .switch input:checked + .knob::after { transform: translateX(-20px); }
[dir=rtl] .seg, [dir=rtl] .quiz-opt { text-align: center; }
[dir=rtl] .quiz-opt { text-align: start; }
[dir=rtl] body { font-family: system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; }

/* ---------- Yönetim: yeni bileşenler ---------- */
.side-nav { display: grid; gap: 2px; overflow-y: auto; min-height: 0; flex: 1; align-content: start; }
.side-foot { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .18); }
.who { display: flex; align-items: center; gap: 10px; padding: 6px 8px 10px; }
.role-chip { font-size: .72rem; font-weight: 700; background: rgba(255, 255, 255, .2); padding: 3px 10px; border-radius: 99px; }
.count-pill { margin-inline-start: auto; background: var(--bad); color: #fff; font-size: .72rem; padding: 1px 8px; border-radius: 99px; }
.menu-item { justify-content: flex-start; }
.person.present { border-color: var(--ok); background: var(--ok-soft); }
.person.absent { border-color: var(--bad); background: var(--bad-soft); }
.att { border: 0; background: transparent; cursor: pointer; color: var(--muted); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; }
.att.ok.on { background: var(--ok); color: #fff; } .att.bad.on { background: var(--bad); color: #fff; }
.att.ok:hover { background: var(--ok-soft); color: var(--ok); } .att.bad:hover { background: var(--bad-soft); color: var(--bad); }
.stock-card.low { border-color: var(--bad); }
.stock-qty { font-size: 2.2rem; font-weight: 800; line-height: 1.1; color: var(--brand); }
.stock-qty.neg { color: var(--bad); }
.vrow2 { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px; cursor: pointer; }
.vrow2:hover { border-color: var(--brand); }
details > summary { cursor: pointer; font-weight: 650; padding: 6px 0; }
.details-body { padding-top: 8px; }
.ok-text { color: var(--ok); font-weight: 650; } .neg-text { color: var(--bad); font-weight: 650; }
.tablewrap.flat { box-shadow: none; }
.delta { font-size: .76rem; font-weight: 700; margin-top: 4px; } .delta.up { color: var(--ok); } .delta.down { color: var(--bad); }
.print-only { display: none; }
.heat { display: grid; grid-template-columns: 38px repeat(7, 1fr); gap: 3px; align-items: center; }
.heat-lab { font-size: .72rem; color: var(--muted); text-align: center; }
.heat-cell { height: 30px; border-radius: 6px; display: grid; place-items: center; font-size: .66rem; font-weight: 700; background: var(--surface-2); color: var(--text); }
.heat-cell.h0 { background: var(--bad-soft); color: var(--bad); } .heat-cell.h1 { background: var(--warn-soft); color: var(--warn); }
.heat-cell.h2 { background: #e8e29a; color: #5a5300; } .heat-cell.h3 { background: #b9dfc4; color: #1c5a37; } .heat-cell.h4 { background: var(--ok); color: #fff; }
select { min-height: 46px; }
@media (prefers-color-scheme: dark) { .heat-cell.h2 { background: #4a4714; color: #ece59a; } .heat-cell.h3 { background: #1f4a33; color: #bfe8d0; } }

/* ---------- Yazdırma (aylık rapor PDF) ---------- */
@media print {
  .side, .admin-top, .admin-nav, .no-print, .toast, .overlay { display: none !important; }
  .shell { display: block !important; }
  .main { padding: 0 !important; max-width: none !important; }
  body { background: #fff !important; color: #000 !important; font-size: 12px; }
  .card, .stat, .tablewrap { box-shadow: none !important; break-inside: avoid; border-color: #bbb !important; }
  .print-only { display: block !important; }
  .report-title { margin-bottom: 12px; }
  .grid2 { grid-template-columns: 1fr 1fr !important; }
  .stats { grid-template-columns: repeat(3, 1fr) !important; }
  :root { --bg: #fff; --surface: #fff; --text: #000; --muted: #444; }
}

/* Izgara çocuklarının içerikle taşmasını engelle */
.main > *, .stats > *, .grid2 > *, .report > *, .card { min-width: 0; }
.report { display: grid; gap: 16px; }
.stock-card .flex { flex-wrap: wrap; }

/* Kişi etiketleri (vardiya katılımcıları + yoklama düğmeleri) */
.people { gap: 8px; align-items: center; }
.person { flex-wrap: nowrap; gap: 6px; padding-block: 4px; padding-inline: 12px 6px; min-height: 34px; }
.person .link, .person .badge { white-space: nowrap; }
.item select { width: auto; min-width: 140px; flex: none; }

/* ---------- Marka (logo) ---------- */
.login-card { overflow: hidden; padding: 0; }
.login-card > .stack, .login-card > form, .login-card > .login-body { padding: 22px; }
.login-brand { background: radial-gradient(circle at 50% 40%, #345c46 0%, #1c4636 55%, #0e2b24 100%); padding: 22px 16px 16px; display: grid; justify-items: center; gap: 10px; position: relative; }
.login-brand .brand-logo { height: 128px; width: auto; max-width: 78%; }
.login-brand .lang-switch { position: absolute; top: 10px; inset-inline-end: 10px; background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .25); }
.login-brand .lang-btn { color: rgba(255, 255, 255, .8); }
.login-brand .lang-btn.on { background: #d4b075; color: #11372b; }
.login-body { display: grid; gap: 14px; }
.login { background: radial-gradient(circle at 50% 30%, #2d5a45 0%, #153a2e 60%, #0b241d 100%); }
.brand-mark { height: 34px; width: auto; display: block; }
.brand-logo { display: block; }
.side .brand { padding: 6px 4px 14px; justify-items: start; }
.side .brand-logo { height: 92px; width: auto; max-width: 100%; }
.admin-top .brand-mark { height: 32px; }
.print-only .brand-logo { height: 90px; }

/* Yönetim paneli RTL */
[dir=rtl] .side .brand, [dir=rtl] .side-link { text-align: start; }
[dir=rtl] .admin-top { flex-direction: row; }
[dir=rtl] .tablewrap { direction: rtl; }
[dir=rtl] .chart, [dir=rtl] .heat { direction: ltr; }
.side-foot .lang-switch { justify-self: start; margin: 4px 0 6px 6px; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }
.side-foot .lang-btn { color: rgba(255,255,255,.8); } .side-foot .lang-btn.on { background: #d4b075; color: #11372b; }
.menu-item.btn + .lang-switch, .sheet-body > .lang-switch { justify-self: center; }
