:root {
  --bg: #d3dae4; --card: #f4f6f9; --ink: #14233d; --muted: #66758b; --line: #dde3ec;
  --brand: #b3121b; --accent: #e2b04a; --pos: #17704e; --neg: #b3261e; --warn: #93650c;
  --chip: #e4e9f1; --input: #fbfcfd;
  /* koyu lacivert çerçeve (üst bar + sol menü) — iki temada da sabit */
  --top-h: 74px; --nav: #0e1b33; --nav-2: #0a1426; --nav-ink: #c7d2e6; --nav-muted: #7c8bab; --nav-line: #22304a; --nav-hover: #182746;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12151c; --card: #1c212b; --ink: #e7ecf5; --muted: #9aa7bd; --line: #2b3241;
    --brand: #d0323b; --accent: #e2b04a; --pos: #34d399; --neg: #f87171; --warn: #f2b155;
    --chip: #232a36; --input: #20262f; --in-bg: rgba(46,157,91,.16);
  }
}
:root[data-theme="dark"] {
  --bg: #12151c; --card: #1c212b; --ink: #e7ecf5; --muted: #9aa7bd; --line: #2b3241;
  --brand: #d0323b; --accent: #e2b04a; --pos: #34d399; --neg: #f87171; --warn: #f2b155;
  --chip: #232a36; --input: #20262f; --in-bg: rgba(46,157,91,.16);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15.5px/1.45 Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

h2 { font-size: 19px; margin: 4px 0 12px; }
h3 { font-size: 16px; margin: 18px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(16,35,65,.05); }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.kpi .l { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .4px; }
.kpi .v { font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.pos { color: var(--pos); } .neg { color: var(--neg); } .warn { color: var(--warn); }
label { display: block; font-size: 14px; color: var(--muted); margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--input); color: var(--ink); font: inherit; }
input.money { text-align: right; font-variant-numeric: tabular-nums; }
.row2 { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.btn { display: inline-block; border: 0; border-radius: 8px; padding: 11px 16px; font: inherit; font-weight: 600;
  background: var(--brand); color: #fff; cursor: pointer; }
.btn.sec { background: var(--chip); color: var(--ink); }
.btn.sm { padding: 6px 10px; font-size: 14px; }
.btn.danger { background: var(--neg); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.block { width: 100%; margin-top: 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 18px;
  padding: 7px 12px; font: inherit; cursor: pointer; }
.seg button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.void td { text-decoration: line-through; color: var(--muted); }
.tag { display: inline-block; font-size: 12px; padding: 1px 7px; border-radius: 10px; background: var(--chip); color: var(--muted); }
.tag.pend { background: #fde8c8; color: #8a5300; }
.tag.ok { background: #d9efe1; color: #1d6a3d; }
.total-line { display: flex; justify-content: space-between; font-weight: 700; padding-top: 10px; border-top: 2px solid var(--line); margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 10px; max-width: 90vw; z-index: 50; }
.toast.err { background: var(--neg); color: #fff; }
.thumb { max-width: 120px; max-height: 120px; border-radius: 6px; display: block; margin-top: 6px; }
.filebox { border: 1px dashed var(--line); border-radius: 8px; padding: 10px; }
.flex { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.small { font-size: 13px; }
@media (max-width: 520px) { .row2 { grid-template-columns: 1fr; } .kpi .v { font-size: 20px; } }
.flex > select, .flex > input:not([type=checkbox]) { width: auto; flex: 1 1 180px; }
.linkbtn { background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 6px; padding: 3px 8px; font: inherit; font-size: 13px; cursor: pointer; }
.card.auth { max-width: 420px; margin: 24px auto; }
.tag + .tag, td > .tag { margin-left: 4px; }
.demo-bar { background: var(--accent); color: #2a1f1a; text-align: center; font-size: 14px; font-weight: 600; padding: 6px 12px; }
.ybar { height: 7px; border-radius: 4px; margin: 2px 0; min-width: 1px; }
.ybar.cur, .ykey.cur { background: var(--brand); }
.ybar.prev, .ykey.prev { background: #c9b8a6; }
.ykey { display: inline-block; width: 10px; height: 10px; border-radius: 2px; vertical-align: middle; }

/* ---------- çerçeve: üst menü + sağ menü ---------- */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; height: var(--top-h);
  padding: 0 20px; background: var(--nav-2); color: #fff; border-bottom: 1px solid var(--nav-line); box-shadow: 0 2px 12px rgba(5,10,25,.35); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand .logo { height: 54px; width: auto; display: block; background: #fff; border-radius: 10px; padding: 3px; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.brand b { display: block; font-size: 19px; font-weight: 800; letter-spacing: .3px; line-height: 1.1; }
.brand small { display: block; font-size: 12px; opacity: .8; letter-spacing: 1.2px; text-transform: uppercase; }
.topnav { display: flex; gap: 2px; overflow-x: auto; flex: 1; scrollbar-width: none; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { color: rgba(255,255,255,.82); text-decoration: none; padding: 11px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.topnav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.topnav a.on { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 -2px 0 var(--brand); border-radius: 8px 8px 0 0; }
.top-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: 14px; }
.top-actions .me { text-align: right; line-height: 1.2; }
.top-actions .me small { display: block; opacity: .75; font-size: 12px; }
.qbtn { background: var(--brand); color: #fff; border: 0; border-radius: 8px; padding: 7px 11px; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.menu-btn { display: none; background: transparent; border: 1px solid rgba(255,255,255,.4); color: #fff; border-radius: 8px; font-size: 19px; padding: 4px 10px; cursor: pointer; }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - var(--top-h)); }
main#view { padding: 18px clamp(12px, 2vw, 26px); min-width: 0; }
.sidebar { order: -1; background: var(--nav); color: var(--nav-ink); border-right: 1px solid var(--nav-line); padding: 16px 12px; position: sticky; top: var(--top-h);
  height: calc(100vh - var(--top-h)); overflow-y: auto; }
.side-group { margin-bottom: 14px; }
.side-group h4 { margin: 0 8px 6px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--nav-muted); }
.side-link { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--nav-ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.side-link:hover { background: var(--nav-hover); color: #fff; }
.side-link.on { background: var(--brand); color: #fff; }
.side-link .ic { width: 20px; text-align: center; }
.side-link .badge { margin-left: auto; background: var(--neg); color: #fff; border-radius: 10px; padding: 0 7px; font-size: 12px; }
.side-period { background: var(--nav-hover); border: 1px solid var(--nav-line); border-radius: 10px; padding: 10px; margin-bottom: 14px; }
.side-period label { margin: 0 0 4px; color: var(--nav-muted); }
.side-period select { background: var(--nav-2); color: #fff; border-color: var(--nav-line); }
.side-period .row2 { grid-template-columns: 1fr 1fr; gap: 6px; }
.side-period select { padding: 7px 8px; }
.scrim { display: none; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { font-size: 23px; margin: 0; font-weight: 800; }
.page-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.note { background: var(--chip); border-left: 3px solid var(--accent); padding: 10px 12px; border-radius: 6px; font-size: 14px; margin: 10px 0; }
.note.warn { border-left-color: var(--neg); }
table.matrix th, table.matrix td { padding: 6px 7px; font-size: 14px; }
table.matrix td.lbl { white-space: nowrap; }
table.matrix tr.grp th { background: var(--chip); color: var(--ink); text-transform: none; font-size: 14px; }
table.matrix tr.sum th, table.matrix tr.sum td { font-weight: 800; border-top: 2px solid var(--line); }
table.matrix tr.big th, table.matrix tr.big td { font-size: 15px; }
td.click { cursor: pointer; }
td.click:hover { background: var(--chip); }
.tag.src { background: transparent; border: 1px solid var(--line); }
.pcards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 14px; }
.pcard h3 { margin: 0 0 6px; color: var(--ink); text-transform: none; font-size: 17px; letter-spacing: 0; }
.pcard .line { display: flex; justify-content: space-between; padding: 3px 0; font-size: 14.5px; }
.pcard .line b { font-variant-numeric: tabular-nums; }
@media (max-width: 1000px) {
  .topnav { display: none; }
  .menu-btn { display: block; }
  .top-actions .me, .top-actions .linkbtn { display: none; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: var(--top-h); width: 280px; z-index: 30; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .sidebar { transform: none; box-shadow: 6px 0 20px rgba(0,0,0,.3); }
  body.nav-open .scrim { display: block; position: fixed; inset: var(--top-h) 0 0 0; background: rgba(0,0,0,.35); z-index: 25; }
}
.b { font-weight: 700; }
tr.muted td { color: var(--muted); }
body.no-side .layout { grid-template-columns: 1fr; }
body.no-side .sidebar, body.no-side .menu-btn { display: none; }

/* kullanıcı menüsü */
.um { position: relative; }
.um-btn { display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--nav-line); color: #fff; border-radius: 10px; padding: 5px 10px 5px 5px; font: inherit; font-weight: 700; cursor: pointer; }
.um-btn:hover { background: var(--nav-hover); }
.um-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; font-weight: 800; }
.um-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 14px 40px rgba(10,20,40,.25); padding: 6px; z-index: 50; }
.um.open .um-menu { display: block; }
.um-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.um-head b { display: block; } .um-head small { display: block; color: var(--muted); margin-bottom: 6px; }
.um-item { display: block; width: 100%; text-align: left; background: transparent; border: 0; padding: 9px 10px; border-radius: 8px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }
.um-item:hover { background: var(--chip); }
.um-sep { height: 1px; background: var(--line); margin: 4px 0; }
@media (max-width: 1000px) { .um-name { display: none; } }
@media (max-width: 640px) { .qbtn { display: none; } .brand small { display: none; } .topbar { gap: 10px; } }
@media (max-width: 640px) { :root { --top-h: 64px; } .brand .logo { height: 46px; } }

/* personel */
.people { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; background: var(--chip); border: 1px solid var(--line);
  border-radius: 14px; padding: 16px 10px 12px; cursor: pointer; font: inherit; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.person:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,35,65,.12); border-color: var(--brand); }
.person b { font-size: 15px; line-height: 1.25; } .person small { color: var(--muted); font-size: 13px; }
.person-sum { font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.head { display: inline-block; border-radius: 50%; flex-shrink: 0; } .head svg { display: block; }
.emp-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.months { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.mcell { background: var(--chip); border: 2px solid transparent; border-radius: 10px; padding: 8px 10px; text-align: left; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .12s, transform .12s; }
.mcell:hover { border-color: var(--line); transform: translateY(-1px); } .mcell.on { border-color: var(--brand); background: var(--card); }
.mdetail:not(:empty) { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; background: var(--chip); }
.mdetail td.lbl { font-weight: 600; } .mdetail tr.sum th, .mdetail tr.sum td { border-top: 2px solid var(--line); } .mcell small { display: block; color: var(--muted); font-size: 13px; } .mcell b { font-variant-numeric: tabular-nums; }

.mchips { display: flex; flex-wrap: wrap; gap: 4px 6px; } .mchips span { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.mdetail td.lbl { white-space: nowrap; }
@media (max-width: 700px) { .mdetail td:empty { display: none; } .mdetail tr { display: grid; grid-template-columns: 1fr auto; } .mdetail td.small { grid-column: 1 / -1; order: 3; padding-top: 0; } .mdetail td.lbl { white-space: normal; } }

/* dükkân paneli + puantaj */
.people.mini { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.people.mini .person { padding: 10px 6px 8px; gap: 4px; position: relative; }
.people.mini .person b { font-size: 14px; }
.person.in { border: 2px solid #2e9d5b; background: var(--in-bg, #e3f4ea); }
.person .tick { position: absolute; top: 6px; right: 8px; color: #2e9d5b; font-weight: 800; }
.person.big { padding: 18px 10px 14px; }
.person.big b { font-size: 17px; }
.today-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip-head { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); border-radius: 20px; padding: 2px 10px 2px 2px; font-weight: 600; font-size: 14px; }
table.puantaj { border-collapse: separate; border-spacing: 2px; font-size: 13px; }
table.puantaj th, table.puantaj td { border: 0; padding: 0; text-align: center; }
table.puantaj th.pc { color: var(--muted); font-weight: 600; min-width: 26px; padding-bottom: 4px; }
table.puantaj th.pc small { display: block; font-size: 11px; font-weight: 500; }
table.puantaj th.sun { color: var(--brand); }
table.puantaj .pname { text-align: left; white-space: nowrap; padding-right: 10px; font-weight: 600; position: sticky; left: 0; background: var(--card); }
.pc { width: 26px; height: 26px; border-radius: 6px; background: var(--chip); font-weight: 800; font-size: 12px; cursor: pointer; font-style: normal; display: inline-block; line-height: 26px; }
td.pc { display: table-cell; }
.pc.w { background: #2e9d5b; color: #fff; }
.pc.r { background: #e0a23a; color: #fff; }
.pc.i { background: #f3d3d6; color: #9b1c25; }
.pc.out { background: repeating-linear-gradient(45deg, transparent 0 4px, var(--line) 4px 6px); cursor: default; }
td.pc.wk, th.pc.wk { border-left: 2px solid #9aa7bd !important; }
.pc.today { outline: 2px solid var(--brand); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend .pc { width: 20px; height: 20px; line-height: 20px; cursor: default; }
table.puantaj th.pc { display: table-cell; width: 26px; height: auto; background: none; cursor: default; line-height: 1.2; }

.kiosk-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.kclock { font-size: 40px; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; line-height: 1; }
.shop-state { font-size: 19px; padding: 10px 16px; border-radius: 12px; background: var(--chip); }
.shop-state.open { background: #d9efe1; color: #1d6a3d; }
.shop-state.closed { background: #e3e7ef; color: var(--ink); }
.people.kiosk { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.people.kiosk .person { cursor: default; }
.people.kiosk .person:hover { transform: none; }
.kbtns { display: flex; flex-direction: column; gap: 6px; width: 100%; margin-top: 6px; }
.kbtns .btn { width: 100%; padding: 12px; font-size: 16px; }
.btn.dark { background: var(--nav); color: #fff; }
.undo { margin-top: 4px; text-decoration: underline; }
.warnbox { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-left: 4px solid var(--brand); }
table.puantaj tr.times td.pt { font-size: 9.5px; line-height: 1.05; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; padding-top: 3px; }
table.puantaj tr.times td.pname { font-weight: 500; }
body.dukkan .brand small { letter-spacing: .5px; }

/* Personel ikonu (sabit) */
.head svg { display: block; border-radius: 50%; box-shadow: 0 3px 10px rgba(16,35,65,.14); }
.av-btn { position: relative; border: 0; background: none; padding: 0; cursor: pointer; }
.av-edit { position: absolute; right: 2px; bottom: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 14px; }
.av-picker { margin: -6px 0 14px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.av-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.av-opt { width: 64px; height: 64px; border-radius: 50%; border: 2px solid transparent; background: var(--chip); cursor: pointer; padding: 4px; }
.av-opt span, .av-opt svg { display: block; width: 100%; height: 100%; }
.av-opt.on { border-color: var(--brand); }
.rehire { margin-top: 10px; padding: 12px; border-radius: 10px; background: #fff5dc; border: 1px solid #f1d58f; }

/* Mağaza ekranı: kişi sayısına göre eşit kartlar, pastel düğmeler */
.people.kiosk { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); }
@media (max-width: 900px) { .people.kiosk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kb { width: 100%; border: 0; border-radius: 10px; padding: 13px 8px; font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; color: #fff;
  transition: filter .12s, transform .08s; box-shadow: 0 2px 6px rgba(10,20,40,.18); }
.kb:hover { filter: brightness(1.08); } .kb:active { transform: scale(.98); }
/* sabah → öğlen → gece */
.kb.acilis  { background: linear-gradient(180deg, #d99a2b, #c4821a); }
.kb.geldim  { background: linear-gradient(180deg, #3b74c9, #2c5fb0); }
.kb.kapanis { background: linear-gradient(180deg, #1f2c55, #141d3b); }
.kb.done { box-shadow: inset 0 0 0 2px rgba(255,255,255,.55), 0 2px 6px rgba(10,20,40,.18); }
.kb.geldim.done { cursor: default; filter: saturate(.85); }
.shop-states { display: flex; gap: 10px; flex-wrap: wrap; }
.shop-state { display: flex; flex-direction: column; gap: 2px; }
.shop-state small { font-size: 14px; opacity: .85; }

/* Kayan bilgi bandı */
.ticker { overflow: hidden; border-radius: 12px; margin-bottom: 14px; background: linear-gradient(90deg, #ffe8a3, #ffd77a); color: #4a3200;
  border: 1px solid #f0c24f; box-shadow: 0 2px 8px rgba(160,110,0,.15); }
.ticker-track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker-track span { white-space: pre; padding: 12px 0; font-size: 20px; font-weight: 800; letter-spacing: .2px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* Gün sonu formu — tek ekrana sığacak kadar sıkı */
.gs { padding: 12px 14px; }
.gs-title { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.gs-title h2 { margin: 0; }
.gs-title .cal-picked { margin: 0; color: var(--muted); font-weight: 600; }
.gs-top { display: grid; grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 12px; }
@media (max-width: 1100px) { .gs-top { grid-template-columns: 250px minmax(0, 1fr); } .gs-side { grid-column: 1 / -1; } }
@media (max-width: 700px) { .gs-top { grid-template-columns: 1fr; } }
.cal { border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--input); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.cal-nav { border: 0; background: var(--chip); width: 26px; height: 26px; border-radius: 7px; font-size: 17px; cursor: pointer; color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-grid small { color: var(--muted); font-size: 11px; }
.cd { border: 0; background: transparent; border-radius: 7px; height: 26px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink); padding: 0; }
.cd:hover:not(:disabled) { background: var(--chip); }
.cd:disabled { color: var(--line); cursor: default; font-weight: 400; }
.cd.today { box-shadow: inset 0 0 0 1.5px var(--muted); }
.cd.on { background: var(--brand); color: #fff; }
.gs-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gs-kpi { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--input); }
.gs-kpi label { margin: 0 0 2px; }
.gs-kpi input { font-size: 19px; font-weight: 800; padding: 6px 8px; }
.gs-kpi .v { font-size: 21px; font-weight: 800; margin: 2px 0 0; font-variant-numeric: tabular-nums; }
.gs-kpi small { font-size: 12px; }
.gs-kpi.total { background: var(--nav); color: #fff; border-color: var(--nav); }
.gs-kpi.total label, .gs-kpi.total small { color: #b8c3d6; }
.gs-kpi.total .v { font-size: 25px; }
.gs-side { display: flex; flex-direction: column; gap: 8px; }
.gs-side textarea { flex: 1; min-height: 44px; resize: none; }
.gs .filebox { padding: 6px; } .gs .filebox input { padding: 4px; } .gs .fileField label, .gs-side > div > label { margin-top: 0; }
.gs-row { display: flex; gap: 12px; margin-top: 10px; }
@media (max-width: 900px) { .gs-row { flex-direction: column; } }
.ch-group { min-width: 0; }
.ch-group h3 { margin: 0 0 4px; font-size: 13px; }
.ch-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: 8px; }
@media (max-width: 900px) { .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ch { border: 1px solid var(--line); border-top: 3px solid var(--c); border-radius: 10px; padding: 6px 8px 8px; background: var(--input); }
.ch label { display: flex; align-items: center; gap: 6px; color: var(--c); font-weight: 700; margin: 0 0 3px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch label i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }
.ch input { border-color: transparent; background: var(--card); font-size: 17px; font-weight: 700; padding: 6px 8px; }
.ch input:focus { border-color: var(--c); }
.gs .btn.block { padding: 12px; }

/* Bilgi çipleri (ör. Gelir-Gider altındaki açıklama) */
.hint-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hint-chip { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 20px; background: var(--nav); color: #fff; font-weight: 700; font-size: 15px; }
.hint-chip.y { background: var(--brand); }
.hint-chip.link { background: var(--chip); color: var(--ink); text-decoration: none; }
.hint-chip.link:hover { background: var(--nav); color: #fff; }
/* Kullanım kılavuzu */
.kl { scroll-margin-top: calc(var(--top-h) + 12px); }
.kl h2 { margin-top: 0; }
.kl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.kl-item { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: 12px 14px; background: var(--input); }
.kl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kl-head b { font-size: 17px; }
.kl-where { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; background: var(--chip); color: var(--muted); }
.kl-go { margin-left: auto; font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; }
.kl-item p { margin: 6px 0 0; line-height: 1.5; }

/* Açık / koyu tema düğmesi */
.theme-btn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--nav-line); background: transparent; color: #fff; font-size: 19px; cursor: pointer; }
.theme-btn:hover { background: var(--nav-hover); }
/* koyu temada kanal etiketleri ve takvim okunur kalsın */
:root[data-theme="dark"] .ch label { color: color-mix(in srgb, var(--c), #fff 45%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ch label { color: color-mix(in srgb, var(--c), #fff 45%); } }
.cd:disabled { color: var(--muted); opacity: .35; }
.topnav a .badge { margin-left: 6px; background: var(--brand); color: #fff; border-radius: 10px; padding: 0 6px; font-size: 12px; }
.anchor { scroll-margin-top: calc(var(--top-h) + 12px); }
.topnav a { padding-left: 16px; padding-right: 16px; }
.side-sections { display: none; }
@media (max-width: 1000px) {
  .side-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 12px; }
  .side-sections a { text-align: center; padding: 9px 4px; border-radius: 8px; background: var(--nav-hover); color: var(--nav-ink); text-decoration: none; font-weight: 700; font-size: 14px; }
  .side-sections a.on { background: var(--brand); color: #fff; }
}

/* Sol menüde açılır gruplar */
.side-link.grp { cursor: pointer; }
.side-link.grp .caret { margin-left: auto; opacity: .7; }
.side-link.grp.act { color: #fff; }
.side-kids { margin: 2px 0 6px 18px; border-left: 1px solid var(--nav-line); padding-left: 6px; }
.side-kids .side-link { padding-top: 7px; padding-bottom: 7px; font-size: 14px; }
.kpi .v.warnv { color: var(--warn); }
select.yr { width: auto; }

/* Pencere */
.modal-wrap { position: fixed; inset: 0; background: rgba(5,10,25,.55); z-index: 100; display: grid; place-items: start center; padding: 70px 16px 16px; overflow-y: auto; }
.modal { width: min(640px, 100%); margin: 0; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.collect-info { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--chip); display: grid; gap: 4px; }
.collect-info:empty { display: none; }
