/* Grab Pilates Studio kimliği: logodaki siyah (#161616) ve turkuaz (#61c1b5). */
:root {
  --bg: #f4f5f5;
  --surface: #ffffff;
  --surface-2: #f8f9f9;
  --ink: #161616;
  --ink-2: #353b3a;
  --muted: #69716f;
  --line: #e1e4e3;
  --line-2: #eceeee;

  --brand: #61c1b5;
  --brand-600: #4fb0a4;
  --brand-ink: #161616;
  --primary: #2a7d73;
  --primary-600: #22675f;
  --primary-soft: #e2f4f1;

  --side: #161616;
  --side-ink: #d9dddc;
  --side-muted: #8a9391;
  --side-hover: #222525;
  --side-active: #2a3333;

  --font-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Roboto", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --ok: #2b7149;
  --ok-soft: #e0f0e6;
  --warn: #965c0c;
  --warn-soft: #fbefda;
  --danger: #ad3f36;
  --danger-soft: #f8e3e0;
  --info: #35659b;
  --info-soft: #e4edf8;
  --ms: #5a4fa6;
  --ms-soft: #ebe8f8;

  --radius: 12px;
  --shadow: 0 1px 2px rgba(22, 33, 30, .05), 0 1px 1px rgba(22, 33, 30, .03);
  --shadow-lg: 0 18px 50px rgba(22, 33, 30, .22);
  font-size: 15px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.25; font-family: var(--font-head); }
h1 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { font-size: 1rem; font-weight: 650; display: flex; align-items: center; gap: 8px; }
h3 { font-size: .95rem; font-weight: 650; }
p { margin: 0; }
code { background: var(--line-2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
small { font-size: .82em; }

.muted { color: var(--muted); }
.small { font-size: .85rem; }
.strong { font-weight: 600; }
.neg { color: var(--danger); }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.pad { padding: 14px 18px; }
.pre { white-space: pre-wrap; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.ic {
  width: 18px; height: 18px; flex-shrink: 0;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.ic.big { width: 40px; height: 40px; stroke-width: 1.5; color: var(--muted); }

/* ------------------------------------------------------------------ yerleşim */

.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  background: var(--side);
  color: var(--side-ink);
  padding: 22px 14px;
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column; gap: 28px;
  overflow-y: auto;
}
.brand { display: flex; flex-direction: column; gap: 8px; padding: 4px 6px 0; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; width: 100%; max-width: 206px; height: auto; }
.brand-sub {
  font-family: var(--font-head); font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--side-muted); padding-left: 2px;
}

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 9px;
  color: var(--side-ink); font-weight: 500;
}
.nav a:hover { background: var(--side-hover); text-decoration: none; }
.nav a.on { background: var(--side-active); color: #fff; box-shadow: inset 3px 0 0 var(--brand); }
.nav a.on .ic { color: var(--brand); opacity: 1; }
.nav .ic { opacity: .85; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.today-label { padding: 0 12px; font-size: .8rem; color: var(--side-muted); }
.exit-btn {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border: 1px solid #2c3131; border-radius: 9px;
  background: transparent; color: var(--side-ink); font: inherit; font-weight: 500; text-align: left; cursor: pointer;
}
.exit-btn:hover { background: #2b1d1c; border-color: #57302c; color: #fff; }
.exit-btn:hover .ic { color: #f29b90; }
.exit-screen {
  position: fixed; inset: 0; z-index: 500; background: var(--side); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px;
  text-align: center; font-size: 1.05rem; animation: fade .15s ease-out;
}
.exit-screen img { width: 380px; max-width: 80vw; height: auto; }

.main { padding: 28px 34px 64px; min-width: 0; outline: none; }
.page { max-width: 1320px; }
.loading { padding: 40px 0; color: var(--muted); }

.page-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 16px; flex-wrap: wrap; margin-bottom: 22px;
}
.page-head p { margin-top: 4px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; margin-top: 16px; }
.grid-2.dash { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.section { margin-top: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 22px 0 10px; }

@media (max-width: 1080px) {
  .grid-2, .grid-2.dash { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 30; height: auto;
    flex-direction: row; align-items: center; gap: 12px; padding: 10px 12px; overflow-x: auto;
  }
  .brand-sub, .today-label { display: none; }
  .sidebar-foot { margin: 0 0 0 auto; }
  .exit-btn { width: auto; white-space: nowrap; padding: 8px 10px; }
  .brand { padding: 0; flex-shrink: 0; }
  .brand-logo { width: 150px; }
  .nav { flex-direction: row; }
  .nav a { padding: 8px 10px; white-space: nowrap; }
  .main { padding: 18px 16px 48px; }
}
@media (max-width: 560px) {
  .nav a span, .exit-btn span { display: none; }
  .brand-logo { width: 112px; }
  h1 { font-size: 1.35rem; }
}

/* ------------------------------------------------------------------ kartlar & istatistik */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.card-head {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-2);
}
.card-head .ic { color: var(--muted); width: 17px; height: 17px; }
.count {
  font-size: .78rem; font-weight: 600; color: var(--muted);
  background: var(--line-2); padding: 1px 8px; border-radius: 99px;
}

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stats.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
.stat { padding: 16px 18px; }
.stat .label { font-size: .85rem; color: var(--muted); font-weight: 500; }
.stat .value { font-family: var(--font-head); font-size: 1.55rem; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 4px 0 2px; }
.stat .sub { font-size: .82rem; color: var(--muted); }
@media (max-width: 1080px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .stats.three { grid-template-columns: 1fr; } }

.alert {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--radius); margin-top: 16px;
  border: 1px solid transparent;
}
.alert .ic { margin-top: 2px; }
.alert p { margin-top: 2px; }
.alert.warn { background: var(--warn-soft); color: #5e3a06; border-color: #f0d9b0; }
.alert.info { background: var(--info-soft); color: #20406a; border-color: #c9daef; }
.alert.ok { background: var(--ok-soft); color: #1d4f33; border-color: #c4e3cf; }
.alert.slim { padding: 9px 14px; margin: 0 0 14px; align-items: center; }
.alert.slim .ic { margin-top: 0; }
.alert .grow { flex: 1 1 auto; }
.alert > .btn { align-self: center; flex-shrink: 0; }
.notice {
  display: flex; gap: 8px; align-items: center; padding: 10px 14px; margin-bottom: 12px;
  background: var(--warn-soft); color: #5e3a06; border-radius: 10px; font-size: .9rem;
}

.empty-state { text-align: center; padding: 48px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-state.slim { padding: 26px 20px; }
.empty-state p { max-width: 420px; }

/* ------------------------------------------------------------------ düğmeler & formlar */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: .92rem; font-weight: 550;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--surface-2); border-color: #d3cdc2; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn .ic { width: 16px; height: 16px; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 650; }
.btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn.danger-solid { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.danger-solid:hover { background: #943229; }
.btn.danger { color: var(--danger); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { height: 30px; padding: 0 10px; font-size: .84rem; border-radius: 8px; }
.btn.icon { width: 36px; padding: 0; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: 9px 0 0 9px; margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 9px 9px 0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

.icon-btn {
  width: 32px; height: 32px; display: inline-grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn .ic { width: 17px; height: 17px; }

.input, .field input, .field select, .field textarea, .table .input {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink); font: inherit; font-size: .93rem;
}
.field textarea { height: auto; padding: 9px 11px; resize: vertical; min-height: 60px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
.input.narrow { max-width: 110px; }
.date-input { width: auto; }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > span { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.field > span small { font-weight: 400; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .92rem; }
.check input { width: 17px; height: 17px; accent-color: var(--primary); margin: 0; }
.check.boxed { height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; }

.fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; margin: 0; }
.fieldset legend { font-size: .84rem; font-weight: 600; color: var(--ink-2); padding: 0 6px; }
.fieldset .hint { margin-top: 10px; }

.hint { font-size: .86rem; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.hint.warn { color: var(--warn); }
.hint .ic { width: 16px; height: 16px; margin-top: 1px; }

.daypick { display: flex; gap: 6px; flex-wrap: wrap; }
.daychip { position: relative; }
.daychip input { position: absolute; opacity: 0; pointer-events: none; }
.daychip span {
  display: inline-grid; place-items: center; min-width: 48px; height: 36px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-weight: 550; font-size: .9rem;
  background: #fff; user-select: none;
}
.daychip.off span { color: var(--muted); border-style: dashed; }
.daychip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); border-style: solid; box-shadow: inset 0 -3px 0 var(--brand); }
.daychip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

/* ------------------------------------------------------------------ rozetler */

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 99px;
  font-size: .76rem; font-weight: 650; white-space: nowrap; vertical-align: middle;
  background: var(--line-2); color: var(--ink-2);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.muted { background: var(--line-2); color: var(--muted); }

.tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .72rem; font-weight: 650; padding: 1px 7px; border-radius: 6px; vertical-align: middle; white-space: nowrap;
}
.tag .ic { width: 12px; height: 12px; }
.tag.ms { background: var(--ms-soft); color: var(--ms); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }

.occ {
  display: inline-block; min-width: 42px; text-align: center;
  font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 2px 8px; border-radius: 99px;
}
.occ-empty { background: var(--line-2); color: var(--muted); }
.occ-low { background: var(--ok-soft); color: var(--ok); }
.occ-mid { background: var(--warn-soft); color: var(--warn); }
.occ-full { background: var(--danger-soft); color: var(--danger); }

.live-tag {
  display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--brand); color: var(--brand-ink); padding: 1px 6px; border-radius: 5px; margin-top: 4px;
}

/* ------------------------------------------------------------------ sekmeler & segment */

.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; display: block; }
.search .ic { position: absolute; left: 11px; top: 10px; color: var(--muted); }
.search .input { padding-left: 36px; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 9px; border: 1px solid transparent;
  background: transparent; color: var(--ink-2); font: inherit; font-size: .88rem; cursor: pointer;
}
.tab:hover { background: var(--line-2); }
.tab.on { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); color: var(--ink); font-weight: 600; }
.tab .n { font-size: .75rem; color: var(--muted); font-weight: 600; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #fff; }
.seg > * {
  border: 0; background: transparent; padding: 0 13px; height: 34px;
  display: inline-flex; align-items: center;
  font: inherit; font-size: .88rem; color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.seg > * + * { border-left: 1px solid var(--line); }
.seg > *:hover { background: var(--surface-2); text-decoration: none; }
.seg .on { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.seg.sm > * { height: 30px; padding: 0 9px; font-size: .8rem; }
.status-seg .on.s-booked { background: var(--info-soft); color: var(--info); }
.status-seg .on.s-attended { background: var(--ok-soft); color: var(--ok); }
.status-seg .on.s-absent { background: var(--warn-soft); color: var(--warn); }
.status-seg .on.s-burned { background: var(--danger-soft); color: var(--danger); }

/* ------------------------------------------------------------------ tablolar */

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th {
  text-align: left; font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--surface-2);
}
.table th.num { text-align: right; }
.table td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tfoot td { padding: 10px 14px; border-top: 1px solid var(--line); font-weight: 650; background: var(--surface-2); }
.table.compact td { padding: 8px 14px; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--surface-2); }
.table tr.dim td { opacity: .55; }
.table tr.new-row td { background: var(--surface-2); }
.table.today td { padding: 6px 14px; }
.table.today tr.live td { background: #f0f8f7; }
.table.today tr.past td { opacity: .6; }

.who { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ink); color: var(--brand); font-family: var(--font-head); font-weight: 700; font-size: .85rem;
}
.avatar.sm { width: 32px; height: 32px; font-size: .78rem; }
.avatar.lg { width: 60px; height: 60px; font-size: 1.25rem; }

.st { font-size: .8rem; font-weight: 600; }
.st-attended { color: var(--ok); }
.st-absent { color: var(--warn); }
.st-burned { color: var(--danger); }
.st-booked { color: var(--info); }
.st-select { height: 30px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .84rem; font-weight: 600; background: #fff; }

.list { list-style: none; margin: 0; padding: 4px 18px 8px; }
.list li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: .92rem;
}
.list li:last-child { border-bottom: 0; }
.list li > span { text-align: right; font-size: .85rem; }
.list li:has(> .icon-btn) > span { margin-left: auto; }
.list li > .icon-btn { margin: -6px -6px -6px -4px; }

.occ-btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: transparent; padding: 4px 6px; margin: -4px -6px; border-radius: 8px; cursor: pointer; font: inherit;
}
.occ-btn:hover { background: var(--line-2); }

/* ------------------------------------------------------------------ ders programı */

.sched { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 560px; }
.sched th {
  text-align: left; padding: 12px 12px; font-size: .9rem; font-weight: 650;
  border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.sched thead th:first-child { border-top-left-radius: var(--radius); }
.sched thead th:last-child { border-top-right-radius: var(--radius); }
.sched th small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.sched .time { width: 84px; }
.sched tbody th.time {
  font-size: .95rem; font-weight: 700; vertical-align: top; background: transparent;
  border-bottom: 1px solid var(--line-2); padding: 12px;
}
.sched tbody th.time small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.sched td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2); vertical-align: top; }
.sched tbody tr:last-child td, .sched tbody tr:last-child th { border-bottom: 0; }
.sched td.cell { cursor: pointer; transition: background .1s; height: 64px; }
.sched td.cell:hover { background: #f3f9f8; }
.sched td.cell:focus-visible { outline-offset: -3px; }
.sched tr.past td.cell, .sched tr.past th.time { background: #fbfaf8; }
.sched tr.past .chips, .sched tr.past .cell-head { opacity: .75; }
.sched tr.live th.time { box-shadow: inset 3px 0 0 var(--brand); }
.sched tr.live td.cell { background: #f0f8f7; }
.sched tr.break td {
  text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); padding: 7px;
  border-left: 0; letter-spacing: .03em;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, #f2efea 8px 16px);
}

.cell-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.instr { display: inline-flex; align-items: center; gap: 4px; font-size: .8rem; color: var(--ink-2); }
.instr .ic { width: 13px; height: 13px; color: var(--muted); }
.cell-note { font-size: .78rem; color: var(--muted); margin-top: 4px; }
.cell-add { display: inline-block; margin-top: 6px; font-size: .8rem; color: var(--muted); opacity: 0; transition: opacity .1s; }
.cell:hover .cell-add, .cell:focus .cell-add { opacity: 1; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 7px 0 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: .8rem; font-style: normal; line-height: 1.5; padding: 1px 8px; border-radius: 6px;
  background: var(--info-soft); color: #234a75; border: 1px solid transparent;
}
.chip.attended { background: var(--ok-soft); color: #1f5737; }
.chip.absent { background: var(--warn-soft); color: #6e4308; }
.chip.burned { background: var(--danger-soft); color: #8a2f28; }
.chip.trial { background: #fff; color: var(--primary-600); border: 1px dashed var(--brand); }
.chip.ms { box-shadow: inset 3px 0 0 var(--ms); }
.chip .hn, .legend .hn { width: 13px; height: 13px; color: var(--warn); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: .8rem; color: var(--muted); align-items: center; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; }

.week { width: 100%; border-collapse: collapse; min-width: 640px; }
.week th { padding: 10px 8px; font-size: .86rem; border-bottom: 1px solid var(--line); background: var(--surface-2); text-align: center; }
.week th a { color: var(--ink); font-weight: 650; }
.week th.today a { color: var(--primary); }
.week tbody th.time { font-size: .86rem; padding: 6px 10px; background: transparent; border-bottom: 1px solid var(--line-2); text-align: left; width: 70px; }
.week td { padding: 5px 6px; border-bottom: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.week td.today, .week th.today { background: #f0f8f7; }
.week tr.break td { text-align: center; font-size: .74rem; color: var(--muted); padding: 4px; background: repeating-linear-gradient(135deg, var(--surface-2) 0 8px, #f2efea 8px 16px); }
.mini {
  display: flex; justify-content: space-between; gap: 6px; width: 100%;
  border: 0; border-radius: 6px; padding: 3px 7px; margin: 2px 0;
  font: inherit; font-size: .76rem; cursor: pointer; text-align: left;
}
.mini span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini b { font-variant-numeric: tabular-nums; }
.mini.occ-empty { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.mini:hover { filter: brightness(.96); box-shadow: inset 0 0 0 1px var(--line); }

/* ------------------------------------------------------------------ üye kartı */

.back { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); margin-bottom: 12px; }
.back .ic { width: 16px; height: 16px; }
.member-head { display: flex; gap: 18px; align-items: center; padding: 20px 22px; flex-wrap: wrap; }
.mh-main { flex: 1 1 300px; min-width: 0; }
.mh-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 6px; font-size: .9rem; color: var(--ink-2); }
.mh-meta span { display: inline-flex; align-items: center; gap: 6px; }
.mh-meta .ic { width: 15px; height: 15px; color: var(--muted); }
.mh-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.pkg { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.pkg.expired, .pkg.finished { background: var(--surface-2); }
.pkg.expired h3, .pkg.finished h3 { color: var(--ink-2); }
.pkg-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.pkg-usage { font-size: .95rem; margin-top: 4px; }
.pkg-usage b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.pkg-money { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; color: var(--ink-2); padding-top: 8px; border-top: 1px dashed var(--line); }
.pkg-note { font-size: .84rem; color: var(--muted); }
.pkg-actions { display: flex; gap: 6px; align-items: center; margin-top: 2px; }
.pkg-actions .icon-btn { margin-left: auto; }

.bar { height: 7px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--primary); border-radius: 99px; }
.pkg.expired .bar > i, .pkg.finished .bar > i { background: #a9b3af; }

.danger-zone { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ rapor çubukları */

.hbars { list-style: none; margin: 0; padding: 10px 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.hbars li { display: grid; grid-template-columns: minmax(80px, 180px) 1fr auto; gap: 12px; align-items: center; font-size: .88rem; }
.hb-label { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-track { height: 14px; display: block; }
.hb-track i { display: block; height: 100%; min-width: 2px; background: var(--primary); border-radius: 0 4px 4px 0; }
.hbars li:hover .hb-track i { background: var(--primary-600); }
.hb-val { font-variant-numeric: tabular-nums; font-weight: 600; text-align: right; white-space: nowrap; }

/* ------------------------------------------------------------------ ayarlar */

.slot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-chip {
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px 4px 3px 10px; border-radius: 8px; background: var(--primary-soft); color: var(--primary-600);
  font-weight: 650; font-size: .88rem; font-variant-numeric: tabular-nums;
}
.slot-chip button { border: 0; background: transparent; color: inherit; cursor: pointer; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; }
.slot-chip button:hover { background: rgba(0, 0, 0, .08); }
.slot-chip .ic { width: 13px; height: 13px; }
.slot-add { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.slot-add .input { width: 130px; }
.backup p { max-width: 680px; margin-bottom: 14px; color: var(--ink-2); }

/* ------------------------------------------------------------------ modal */

.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(22, 22, 22, .5);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 24px; overflow-y: auto;
  animation: fade .12s ease-out;
}
.modal {
  width: 100%; max-width: 580px; background: var(--surface);
  border-radius: 14px; box-shadow: var(--shadow-lg);
  animation: rise .15s ease-out;
}
.modal.lg { max-width: 780px; }
.modal.sm { max-width: 430px; }
.modal.xl { max-width: 1000px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px 15px 22px; border-bottom: 1px solid var(--line-2); }
.modal-head h2 { font-size: 1.08rem; }
.modal-body { padding: 18px 22px 20px; }
.modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.modal-foot > span:first-child { margin-right: auto; }
.confirm-msg { color: var(--ink-2); font-size: .95rem; }
.confirm-msg p { margin-top: 10px; }
.warn-list { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-direction: column; gap: 6px; }
.warn-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--warn); font-weight: 550; }
.warn-list .ic { margin-top: 2px; width: 16px; height: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } }

/* ders penceresi */
.session-meta { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(130px, 1fr) 90px minmax(150px, 1.3fr); gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line-2); }
@media (max-width: 720px) { .session-meta { grid-template-columns: 1fr 1fr; } .session-meta .grow { grid-column: 1 / -1; } }
.att-head { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; }
.att-head h3 { display: flex; align-items: center; gap: 8px; }
.att-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; }
.att-list .empty { padding: 16px; color: var(--muted); font-size: .9rem; text-align: center; }
.att { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.att:last-child { border-bottom: 0; }
.att-who { flex: 1 1 200px; min-width: 0; }
.att-name { font-weight: 600; color: var(--ink); margin-right: 6px; }
.att-who small { color: var(--muted); }
.health-note {
  display: flex; gap: 6px; align-items: flex-start; margin-top: 4px;
  font-size: .8rem; color: var(--warn); font-weight: 550;
}
.health-note .ic { width: 14px; height: 14px; margin-top: 2px; }

.add-box { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-2); }
.add-box h3 { margin-bottom: 8px; }
.ac { position: relative; }
.ac-ic { position: absolute; left: 11px; top: 10px; color: var(--muted); pointer-events: none; }
.ac .input { padding-left: 36px; }
.ac-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg);
  max-height: 320px; overflow-y: auto; padding: 4px;
}
.ac-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: .9rem; }
.ac-item.on, .ac-item:hover { background: var(--primary-soft); }
.ac-main { display: flex; flex-direction: column; }
.ac-main small { color: var(--muted); }
.ac-item.new { justify-content: flex-start; color: var(--primary); border-top: 1px solid var(--line-2); border-radius: 0 0 7px 7px; margin-top: 2px; }

.pick { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; gap: 10px; }
.pick-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.opt-list { display: flex; flex-direction: column; gap: 6px; }
.opt-list.two { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .opt-list.two { grid-template-columns: 1fr; } }
.opt {
  display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
}
.opt input { margin: 3px 0 0; accent-color: var(--primary); width: 16px; height: 16px; flex-shrink: 0; }
.opt > span { display: flex; flex-direction: column; min-width: 0; }
.opt small { color: var(--muted); }
.opt.warn small { color: var(--warn); }
.opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }

.result-big { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 12px; }
.result-big.ok { color: var(--ok); }
.result-big.warn { color: var(--warn); }
.result-big .ic { width: 26px; height: 26px; }
.skip-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 240px; overflow-y: auto; border: 1px solid var(--line-2); border-radius: 10px; }
.skip-list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 12px; border-bottom: 1px solid var(--line-2); font-size: .88rem; }
.skip-list li:last-child { border-bottom: 0; }

/* ------------------------------------------------------------------ bildirim */

.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 9px; max-width: 420px;
  padding: 11px 16px; border-radius: 10px; background: var(--ink); color: #fff;
  box-shadow: var(--shadow-lg); font-size: .9rem; animation: rise .15s ease-out; transition: opacity .3s, transform .3s;
}
.toast .ic { color: var(--brand); }
.toast.err { background: #6f241e; }
.toast.err .ic { color: #ffc1b8; }
.toast.out { opacity: 0; transform: translateY(6px); }

@media print {
  .sidebar, .toolbar, .toasts, .danger-zone, .mh-actions { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  .card { box-shadow: none; }
}

/* ------------------------------------------------------------------ üyelik türü seçimi */

.plan-group + .plan-group { margin-top: 10px; }
.plan-title { font-size: .72rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 4px 0 6px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.opt.plan { padding: 9px 11px; }
.opt.plan strong { font-size: .9rem; }
.plan-detail { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }

@media (max-width: 560px) {
  .sched { min-width: 0; }
  .sched .time, .sched tbody th.time { width: 58px; padding: 10px 6px; font-size: .85rem; }
  .sched th, .sched td { padding: 8px 6px; }
  .sched th small { display: none; }
  .member-head { padding: 16px; }
  .mh-actions .btn { flex: 1 1 auto; }
}

/* üye listesi: paket, kullanım ve bitiş tek hücrede */
.pkg-cell { display: flex; flex-direction: column; gap: 3px; }
.pkg-cell small { color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
@media (max-width: 1100px) { .col-opt { display: none; } }

/* ------------------------------------------------------------------ giriş, karşılama, veda */

body.locked .app { visibility: hidden; }
body:not(.role-admin) .admin-only { display: none !important; }

.login-screen {
  position: fixed; inset: 0; z-index: 400; background: var(--side);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fade .3s ease-out;
}
.login-card { width: 100%; max-width: 380px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.login-logo { width: 100%; max-width: 340px; height: auto; }
.login-sub {
  font-family: var(--font-head); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--side-muted); margin-bottom: 26px;
}
.login-card form { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.login-card .field > span { color: var(--side-ink); }
.login-card .field input {
  height: 44px; background: #1f2323; border-color: #333a39; color: #fff; font-size: 1rem;
}
.login-card .field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(97, 193, 181, .25); }
.login-error { color: #f29b90; font-size: .9rem; }
.login-btn { height: 46px; font-size: 1rem; margin-top: 4px; }
.login-close {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; color: var(--side-muted); font: inherit; font-size: .88rem; cursor: pointer;
}
.login-close:hover { color: #fff; }
.login-close .ic { width: 15px; height: 15px; }

.splash {
  position: fixed; inset: 0; z-index: 450; background: var(--side);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px;
  transition: opacity .6s ease;
}
.splash img { width: 460px; max-width: 82vw; height: auto; animation: logoIn var(--welcome-ms, 3s) ease-out both; }
.splash-text {
  min-height: 1.5em; color: var(--side-ink); font-family: var(--font-head); font-weight: 600; font-size: 1.15rem;
  letter-spacing: .02em; animation: fade 1.2s ease-out .6s both;
}
.splash.out { opacity: 0; }
@keyframes logoIn {
  from { opacity: 0; transform: scale(.94); filter: blur(4px); }
  to { opacity: 1; transform: none; filter: none; }
}

.exit-screen img.fade-out { animation: logoOut var(--goodbye-ms, 3s) ease-in both; }
@keyframes logoOut {
  from { opacity: 1; transform: none; }
  to { opacity: 0; transform: scale(.96); }
}

.user-chip { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.user-chip:empty { display: none; }
.user-chip .avatar { background: var(--side-active); color: var(--brand); }
.user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.user-text strong { color: #fff; font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-text small { color: var(--side-muted); font-size: .75rem; }
@media (max-width: 860px) { .user-chip { display: none; } }

/* ================================================================== v2: yeni bileşenler */

:root {
  --wa: #188a46;
  --wa-600: #12733a;
  --wa-soft: #e3f5ea;
  --lt-private: #161616;
  --lt-prenatal: #a2346b;
  --lt-prenatal-soft: #fbe6f0;
}

@media (max-width: 560px) { .form-grid.three { grid-template-columns: 1fr; } }

/* ders türü etiketleri */
.tag.lt-private { background: var(--lt-private); color: #fff; }
.tag.lt-prenatal { background: var(--lt-prenatal-soft); color: var(--lt-prenatal); }
.tag.trial { background: #fff; color: var(--primary-600); box-shadow: inset 0 0 0 1px var(--brand); }
.sched td.cell.lt-private { box-shadow: inset 3px 0 0 var(--lt-private); }
.sched td.cell.lt-prenatal { box-shadow: inset 3px 0 0 var(--lt-prenatal); }
.lt-mark {
  display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 4px;
  font-style: normal; font-size: .64rem; font-weight: 700; vertical-align: 1px;
}
.lt-mark.lt-private { background: var(--lt-private); color: #fff; }
.lt-mark.lt-prenatal { background: var(--lt-prenatal-soft); color: var(--lt-prenatal); }

/* ders programı: eğitmen, bekleme listesi, yanma, kapalı gün */
.instr.is-default { color: var(--muted); }
.wait-badge {
  display: inline-flex; align-items: center; gap: 3px; font-size: .76rem; font-weight: 700;
  color: var(--warn); background: var(--warn-soft); padding: 1px 7px 1px 5px; border-radius: 99px;
}
.wait-badge .ic { width: 12px; height: 12px; }
.wait-dot { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--warn); margin-left: 3px; }
.chip .burn { color: var(--danger); }
.card.is-holiday .sched td.cell { background: repeating-linear-gradient(135deg, #fff 0 10px, #fbf4e6 10px 20px); }
.week td.holiday { background: repeating-linear-gradient(135deg, #fff 0 8px, #fbf4e6 8px 16px); }
.week th.holiday { background: var(--warn-soft); }
.week th small.hol { display: flex; align-items: center; justify-content: center; gap: 3px; font-size: .7rem; font-weight: 600; color: var(--warn); margin-top: 2px; }
.week th small.hol .ic { width: 11px; height: 11px; }

/* sürükle-bırak ile odalar arası taşıma */
.chip[draggable="true"] { cursor: grab; }
.chip[draggable="true"]:hover { border-color: rgba(22, 22, 22, .18); }
.chip.dragging { opacity: .4; }
.is-dragging .sched td.cell { outline: 1px dashed var(--line); outline-offset: -5px; }
.is-dragging .sched td.cell:hover { background: transparent; }
.sched td.cell.drop-target, .is-dragging .sched td.cell.drop-target {
  background: var(--primary-soft); outline: 2px dashed var(--primary); outline-offset: -5px;
}
.drag-hint { margin-left: auto; color: var(--ink-2); }
.drag-hint .ic { width: 14px; height: 14px; color: var(--primary); }

/* ders penceresi */
.att-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.att.trial { background: #f5fbfa; }
.att.burned .att-name { color: var(--danger); }
.status-help { display: flex; flex-wrap: wrap; gap: 3px 14px; margin-top: 8px; font-size: .78rem; color: var(--muted); }
.status-help b { color: var(--ink-2); font-weight: 600; }
.status-seg > * { gap: 4px; }
.status-seg .ic { width: 13px; height: 13px; }
.wait-list { list-style: none; margin: 0; padding: 0; border: 1px dashed var(--line); border-radius: 10px; counter-reset: wait; }
.wait-list li.wait {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 10px 8px 12px; border-bottom: 1px dashed var(--line-2); counter-increment: wait;
}
.wait-list li.wait:last-child { border-bottom: 0; }
.wait-list li.wait::before { content: counter(wait) "."; width: 18px; font-weight: 700; color: var(--warn); font-variant-numeric: tabular-nums; }
.att-head h3 .ic { width: 16px; height: 16px; color: var(--warn); }

/* açılır menü */
.pop-menu {
  position: fixed; z-index: 300; min-width: 230px; max-width: 330px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; animation: rise .12s ease-out;
}
.pop-title {
  padding: 6px 10px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--line-2);
  font-size: .74rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pop-item {
  display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 8px 10px;
  border: 0; border-radius: 8px; background: transparent; color: var(--ink);
  font: inherit; font-size: .9rem; text-align: left; cursor: pointer;
}
.pop-item:hover, .pop-item:focus-visible { background: var(--primary-soft); outline: none; }
.pop-item:disabled { opacity: .5; cursor: default; background: transparent; }
.pop-item .ic { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }
.pop-item > span { display: flex; flex-direction: column; min-width: 0; }
.pop-item strong { font-weight: 550; }
.pop-item small { color: var(--muted); }
.pop-divider { height: 1px; background: var(--line-2); margin: 4px 6px; }

/* çok seçenekli onay */
.choice-list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.choice-list .btn { justify-content: flex-start; height: auto; min-height: 40px; padding: 8px 14px; white-space: normal; text-align: left; }
.choice-list .btn.ghost { justify-content: center; }

/* WhatsApp */
.btn.wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.wa:hover { background: var(--wa-600); border-color: var(--wa-600); }
.btn.wa:disabled:hover { background: var(--wa); }
.icon-btn.wa-icon { color: var(--wa); }
.icon-btn.wa-icon:hover { background: var(--wa-soft); color: var(--wa-600); }
.alert.wa-alert { background: var(--wa-soft); color: #164d2c; border-color: #c2e5cf; align-items: center; }
.alert.wa-alert > .ic { color: var(--wa); margin-top: 0; }
.rem-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.rem-head .date-input { width: auto; height: 34px; }
.rem-head > .btn { margin-left: auto; }

/* rozet görünümlü düğme, istatistik vurguları */
.badge.as-btn { border: 0; font: inherit; font-size: .76rem; font-weight: 650; cursor: pointer; }
.badge.as-btn:hover { filter: brightness(.96); }
.badge .ic { width: 12px; height: 12px; }
.stat.accent { background: var(--ink); border-color: var(--ink); color: #fff; }
.stat.accent .label, .stat.accent .sub { color: #b9c2c0; }
.stat.accent .value { color: var(--brand); }
.stat.danger { background: var(--danger-soft); border-color: #efcac5; }
.stat.danger .label, .stat.danger .sub { color: #8a3a32; }
.stat .value.small-value { font-size: 1.15rem; line-height: 1.3; padding: 4px 0 3px; }

/* katlanır form bölümleri, KVKK onayları */
.form-section { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.form-section > summary {
  display: flex; align-items: center; gap: 8px; padding: 11px 14px; cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--ink-2); list-style: none;
}
.form-section > summary::-webkit-details-marker { display: none; }
.form-section > summary::after {
  content: ""; margin-left: auto; width: 8px; height: 8px; flex-shrink: 0;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s;
}
.form-section[open] > summary::after { transform: rotate(-135deg); }
.form-section > summary small { font-weight: 400; color: var(--muted); }
.form-section > summary .ic { width: 16px; height: 16px; color: var(--primary); }
.form-section[open] > summary { border-bottom: 1px solid var(--line-2); }
.form-section > .form-grid { padding: 14px; background: var(--surface); border-radius: 0 0 10px 10px; }
.consent-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
@media (max-width: 560px) { .consent-checks { grid-template-columns: 1fr; } }

/* ölçümler */
.measure-group { padding-top: 10px; }
.measure-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px 12px; }
.measure-grid .field > span { font-size: .8rem; }
.measure-grid .field.wide { grid-column: 1 / -1; }
.m-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.m-card {
  display: flex; flex-direction: column; gap: 2px; padding: 11px 13px; text-align: left;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); cursor: pointer;
}
.m-card:hover { border-color: var(--brand); }
.m-card.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); background: var(--primary-soft); }
.m-label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.m-value { font-family: var(--font-head); font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.m-value small { font-family: var(--font-body); font-size: .75rem; font-weight: 500; color: var(--muted); }
.m-change { font-size: .78rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.m-change.good { color: var(--ok); }
.m-change.bad { color: var(--danger); }
.chart-title { margin: 18px 0 6px; font-size: .88rem; color: var(--ink-2); }
.chart-wrap { position: relative; max-width: 760px; }
.line-chart { display: block; width: 100%; height: auto; overflow: visible; }
.line-chart .grid { stroke: var(--line-2); stroke-width: 1; }
.line-chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--font-body); }
.line-chart .line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.line-chart .dot { fill: #fff; stroke: var(--primary); stroke-width: 2.5; }
.line-chart .hit { fill: transparent; cursor: pointer; }
.chart-tip {
  position: absolute; transform: translate(-50%, calc(-100% - 12px)); pointer-events: none; z-index: 2;
  display: flex; flex-direction: column; align-items: center; padding: 5px 10px; border-radius: 8px;
  background: var(--ink); color: #fff; font-size: .8rem; white-space: nowrap; box-shadow: var(--shadow-lg);
}
.chart-tip span { color: #b9c2c0; font-size: .74rem; }
.meas-table { margin-top: 16px; }
.meas-table th.num { white-space: nowrap; vertical-align: bottom; }
.th-actions { display: flex; justify-content: flex-end; margin-top: 2px; }
.th-actions .icon-btn { width: 26px; height: 26px; }
.th-actions .icon-btn .ic { width: 14px; height: 14px; }
.m-notes { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); font-size: .86rem; display: flex; flex-direction: column; gap: 4px; }

/* muhasebe */
.page-tabs { margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.page-tabs .tab { text-decoration: none; }
.page-tabs .tab .ic { width: 16px; height: 16px; }
.kind-seg > label { position: relative; padding: 0; }
.kind-seg input { position: absolute; opacity: 0; pointer-events: none; }
.kind-seg span { display: inline-flex; align-items: center; height: 100%; padding: 0 16px; cursor: pointer; }
.kind-seg label:has(input:checked) { background: var(--primary-soft); color: var(--primary); font-weight: 650; }
.kind-seg label:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: -2px; }
.ledger-actions { display: flex; flex-direction: column; gap: 12px; padding: 14px 18px; margin-bottom: 16px; }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 99px; background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: .84rem; cursor: pointer;
}
.chip-btn:hover { border-color: var(--brand); background: var(--primary-soft); }
.chip-btn small { color: var(--muted); font-variant-numeric: tabular-nums; }
.trend tr.current td { background: var(--primary-soft); font-weight: 600; }
.trend .bar-col { width: 34%; min-width: 160px; }
.div-bar { position: relative; height: 14px; }
.div-bar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.div-bar i { position: absolute; top: 0; height: 100%; min-width: 1px; }
.div-bar i.pos { left: 50%; background: var(--primary); border-radius: 0 4px 4px 0; }
.div-bar i.neg { right: 50%; background: var(--danger); border-radius: 4px 0 0 4px; }
.export-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 12px; }
.export-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; color: var(--ink); transition: border-color .12s; }
.export-card:hover { border-color: var(--brand); text-decoration: none; }
.export-card > span:last-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.export-card small { color: var(--muted); font-size: .82rem; }
.export-ic { width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: #e5f3ea; color: #1d6b3d; flex-shrink: 0; }

/* işlem geçmişi */
.audit-filters { display: grid; grid-template-columns: 150px 150px 170px 170px minmax(180px, 1fr); gap: 10px 12px; align-items: end; padding: 12px 16px; }
@media (max-width: 960px) { .audit-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .audit-filters .grow { grid-column: 1 / -1; } }
.table.audit td { vertical-align: top; }
.table.audit tr.day-sep td {
  background: var(--surface-2); font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-2);
  padding: 6px 14px; border-bottom: 1px solid var(--line);
}
.list-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line-2); }

/* adaylar */
.st-select.lead-st.info { color: var(--info); }
.st-select.lead-st.warn { color: var(--warn); }
.st-select.lead-st.ms { color: var(--ms); }
.st-select.lead-st.ok { color: var(--ok); }
.st-select.lead-st.muted { color: var(--muted); }

/* üye kartı: bekleme listesi satırı */
.table tr.wait-row td { background: #fffaf0; }

/* ayarlar */
.settings-nav {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; gap: 4px;
  padding: 8px 0 10px; margin-bottom: 4px; background: var(--bg);
}
.settings-nav a {
  padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: .82rem; font-weight: 550;
}
.settings-nav a:hover { border-color: var(--brand); text-decoration: none; color: var(--ink); }
.page .section[id^="s-"] { scroll-margin-top: 64px; }
.holiday-form { border-bottom: 1px solid var(--line-2); }
.holiday-form .check { align-self: center; }
.wa-mode { max-width: 360px; margin-bottom: 10px; }
.wa-templates { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; margin-top: 14px; }
.wa-tpl { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.wa-tpl-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .9rem; }
.wa-tpl-head .btn { margin-left: auto; height: 26px; font-size: .78rem; }
.wa-tpl textarea {
  width: 100%; min-height: 76px; resize: vertical; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .88rem; line-height: 1.45; background: #fff;
}
.wa-tpl textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
#s-whatsapp .hint { display: block; line-height: 1.9; }
#s-whatsapp .hint code { cursor: help; white-space: nowrap; }
.result .skip-list li { align-items: center; }

/* yazdırma önizlemesi */
.print-preview { height: 72vh; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #e9ecec; }
.print-preview iframe { display: block; width: 100%; height: 100%; border: 0; }

/* fiyatlar: planlama, duyuru, eski fiyat */
.pos { color: var(--ok); }
.price-tools { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px 24px; align-items: start; border-top: 1px solid var(--line-2); }
.price-tools > .price-basis:only-child { grid-column: 1 / -1; max-width: 640px; }
@media (max-width: 900px) { .price-tools { grid-template-columns: 1fr; } }
.price-basis { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.price-basis .field { width: 100%; max-width: 380px; }
.planned h3 { margin-bottom: 8px; }
.planned-group { border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); padding: 10px 12px; }
.planned-group + .planned-group { margin-top: 8px; }
.planned-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.planned-head .btn { margin-left: auto; }
.planned-group ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.planned-group li { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-variant-numeric: tabular-nums; }
.planned-group li > span:first-child { flex: 1 1 auto; min-width: 0; }
.planned-group li .icon-btn { width: 26px; height: 26px; }
.price-history { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.price-history ul { list-style: none; margin: 0; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; display: flex; flex-direction: column; gap: 4px; }
.price-history li { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-variant-numeric: tabular-nums; }
.price-history li > span:first-child { min-width: 150px; }
.price-history li small { margin-left: auto; }
.plan-price { display: flex; flex-direction: column; gap: 14px; }
.plan-price-top { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px 16px; align-items: end; }
@media (max-width: 560px) { .plan-price-top { grid-template-columns: 1fr; } }
.pct-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pct-row .input.narrow { width: 90px; }
.pct-row select.input { width: auto; }
.plan-price .modal-foot { margin-top: 0; }
.change-list { list-style: none; margin: 0 0 12px; padding: 10px 14px; border-radius: 10px; background: var(--surface-2); display: flex; flex-direction: column; gap: 3px; font-variant-numeric: tabular-nums; }
.old-stats { margin: 0 0 14px; }
.hint.price-hint { color: var(--info); }

/* internet sürümü: şifre ekranı, şifre değiştirme, öğrenci verilerini silme */
.login-note { color: var(--side-ink); font-size: .9rem; text-align: center; margin: -14px 0 18px; max-width: 340px; line-height: 1.5; }
.user-chip { position: relative; }
.chip-pw {
  margin-left: auto; width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center;
  border: 1px solid #2c3131; border-radius: 8px; background: transparent; color: var(--side-muted); cursor: pointer;
}
.chip-pw:hover { color: #fff; border-color: var(--brand); }
.chip-pw .ic { width: 15px; height: 15px; }
.purge-box { margin-top: 22px; padding: 14px 16px; border: 1px solid #efcac5; border-radius: 10px; background: #fdf6f5; max-width: 760px; }
.purge-box h3 { display: flex; align-items: center; gap: 8px; color: var(--danger); margin-bottom: 8px; }
.purge-box h3 small { font-weight: 500; color: var(--muted); }
.purge-box h3 .ic { width: 17px; height: 17px; }
.purge-box p { margin-bottom: 6px; color: var(--ink-2); font-size: .9rem; }
.purge-box .btn { margin-top: 6px; }
.purge-confirm { margin-top: 12px; }
.purge-confirm input { text-align: center; font-weight: 700; letter-spacing: .2em; }

/* sabit program: her güne ayrı saat ve oda */
.day-slots { display: flex; flex-direction: column; gap: 8px; }
.day-slot {
  display: grid; grid-template-columns: 110px minmax(0, 1fr) minmax(0, 1fr); gap: 10px; align-items: end;
  padding: 8px 12px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2);
}
.day-slot > strong { align-self: center; padding-top: 16px; }
.day-slot .field > span { font-size: .76rem; }
@media (max-width: 560px) { .day-slot { grid-template-columns: 1fr 1fr; } .day-slot > strong { grid-column: 1 / -1; padding-top: 0; } }
