/* ALIF Hallein – Yönetim konsolu */
@font-face { font-family: 'Open Sans'; font-weight: 300; font-display: swap; src: url(../fonts/opensans-300.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 400; font-display: swap; src: url(../fonts/opensans-400.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 600; font-display: swap; src: url(../fonts/opensans-600.woff2) format('woff2'); }
@font-face { font-family: 'Open Sans'; font-weight: 700; font-display: swap; src: url(../fonts/opensans-700.woff2) format('woff2'); }

:root {
  --green: #009972; --green-700: #007d5d; --green-800: #00654b; --green-900: #0a3b2e; --green-950: #072a21;
  --green-75: #bfe6d9; --green-50: #e6f5ef; --green-25: #f3faf7;
  --lila: #5c2684; --orange: #f59d15; --tuerkis: #00adba; --blau: #01438f; --rot: #c51a1b;
  --ink: #111312; --ink-2: #353a38; --muted: #646c68; --line: #e1e6e4; --line-2: #cdd5d1; --bg: #f3f5f4; --card: #fff;
  --radius: 6px; --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 4px 16px -6px rgba(0, 0, 0, .08);
  --org: var(--green);
  --sans: 'Open Sans', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 14.5px/1.5 var(--sans); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--green-700); }
svg { display: block; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 1.55rem; font-weight: 600; }
h2 { font-size: 1.15rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
.ic { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); }
.small { font-size: .86em; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--green-700); }
.neg { color: var(--rot); }
.nowrap { white-space: nowrap; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 1px; }

/* shell */
.a-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.a-side { background: var(--green-950); color: #cfe3db; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }
.a-brand { display: flex; align-items: center; gap: .6rem; padding: 1.1rem 1.1rem .9rem; color: #fff; text-decoration: none; }
.a-brand .em { height: 30px; width: auto; color: #fff; }
.a-brand .wm { height: 16px; width: auto; color: #fff; }
.a-brand small { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-top: .15rem; }
.org-switch { margin: 0 .8rem .6rem; position: relative; }
.org-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--radius); background: rgba(255, 255, 255, .07); color: #fff; border: 1px solid rgba(255, 255, 255, .1); }
.org-switch summary::-webkit-details-marker { display: none; }
.org-switch summary .em { height: 26px; width: auto; color: var(--org-c, #fff); }
.org-switch summary b { display: block; font-size: .88rem; }
.org-switch summary small { display: block; font-size: .72rem; opacity: .7; }
.org-switch summary .ic { margin-left: auto; opacity: .6; }
.org-switch .menu { position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); padding: .3rem; z-index: 30; }
.org-switch .menu a { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem; border-radius: 4px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.org-switch .menu a:hover, .org-switch .menu a[aria-current] { background: var(--green-50); }
.org-switch .menu .em { height: 22px; width: 26px; color: var(--c); }
.a-nav { padding: .2rem .6rem 1rem; flex: 1; }
.a-nav .grp { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: #7fa596; padding: 1rem .6rem .35rem; font-weight: 700; }
.a-nav a { display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: 5px; color: #d9ebe4; text-decoration: none; font-weight: 600; font-size: .9rem; }
.a-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.a-nav a[aria-current] { background: var(--green); color: #fff; }
.a-nav a .count { margin-left: auto; background: var(--orange); color: #111; font-size: .7rem; font-weight: 700; padding: .05rem .45rem; border-radius: 10px; }
.a-nav a[aria-current] .count { background: #fff; color: var(--green-800); }
.a-side-foot { padding: .8rem 1rem 1rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; }
.a-side-foot a { color: #cfe3db; text-decoration: none; display: flex; align-items: center; gap: .5rem; padding: .3rem 0; }
.a-side-foot a:hover { color: #fff; }

.a-main { min-width: 0; display: flex; flex-direction: column; }
.a-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.8rem; background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.a-top .org-bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--org); }
.a-top h1 { margin: 0; font-size: 1.2rem; }
.a-top .crumb { font-size: .78rem; color: var(--muted); }
.a-top .actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.a-content { padding: 1.5rem 1.8rem 3rem; }
.menu-toggle { display: none; }
@media (max-width: 980px) {
  .a-shell { grid-template-columns: 1fr; }
  .a-side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 50; transform: translateX(-100%); transition: transform .2s; }
  .a-side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .4); }
  .menu-toggle { display: inline-flex; }
  .a-top { padding: .7rem 1rem; }
  .a-content { padding: 1rem 1rem 3rem; }
}

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .5rem .85rem; min-height: 36px; border-radius: 5px; border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); font: 600 .86rem/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-danger { color: var(--rot); border-color: #f0c4c4; }
.btn-danger:hover { background: var(--rot); color: #fff; border-color: var(--rot); }
.btn-sm { min-height: 30px; padding: .3rem .6rem; font-size: .8rem; }
.btn-xs { min-height: 24px; padding: .15rem .45rem; font-size: .74rem; }
.btn-link { border: 0; background: none; padding: 0; min-height: 0; color: var(--green-700); font-weight: 600; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* cards & layout */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .card-head { padding: 1rem 1.2rem 0; }
.grid { display: grid; gap: 1rem; }
.grid > .card + .card { margin-top: 0; }
@media (min-width: 760px) { .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-side { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
@media (min-width: 1200px) { .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi { position: relative; overflow: hidden; }
.kpi small { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.kpi strong { display: block; font-size: 1.7rem; font-weight: 300; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: .82rem; color: var(--muted); }
.kpi .ic-bg { position: absolute; right: 1rem; top: 1rem; color: var(--green-75); width: 34px; height: 34px; }
.kpi.alert strong { color: var(--rot); }
.kpi a.stretch::after { content: ""; position: absolute; inset: 0; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }

/* tables */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th, .tbl td { padding: .55rem .7rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: #fafbfa; font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
.tbl th a { color: inherit; text-decoration: none; }
.tbl tbody tr:hover { background: var(--green-25); }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl tfoot td { font-weight: 700; background: #fafbfa; }
.tbl .row-link { color: var(--ink); text-decoration: none; font-weight: 600; }
.tbl .row-link:hover { color: var(--green-700); text-decoration: underline; }
.tbl tr.dim td { color: var(--muted); }
.tbl .check { width: 32px; }
.tbl input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--green); }

/* badges / pills */
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .5rem; border-radius: 20px; font-size: .74rem; font-weight: 700; background: #eef1f0; color: var(--ink-2); white-space: nowrap; }
.pill.green { background: var(--green-50); color: var(--green-800); }
.pill.red { background: #fde8e8; color: #9b1415; }
.pill.orange { background: #fff1d9; color: #8a5300; }
.pill.blue { background: #e4ecf7; color: var(--blau); }
.pill.lila { background: #efe6f5; color: var(--lila); }
.pill.gray { background: #eef1f0; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--green)); flex: none; }
.org-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.org-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }

/* forms */
.form { display: grid; gap: .9rem; }
.row { display: grid; gap: .9rem; }
@media (min-width: 700px) { .row.c2 { grid-template-columns: 1fr 1fr; } .row.c3 { grid-template-columns: 1fr 1fr 1fr; } .row.c4 { grid-template-columns: repeat(4, 1fr); } }
.f label, .f .lbl { display: block; font-weight: 600; font-size: .82rem; margin-bottom: .25rem; color: var(--ink-2); }
.f input:not([type=checkbox]):not([type=radio]), .f select, .f textarea, .inp { width: 100%; font: inherit; padding: .5rem .65rem; min-height: 38px; border: 1px solid var(--line-2); border-radius: 5px; background: #fff; color: var(--ink); }
.f textarea { min-height: 90px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 153, 114, .15); }
.f .help { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.f.err input, .f.err select, .f.err textarea { border-color: var(--rot); }
.f .e { color: var(--rot); font-size: .8rem; font-weight: 600; margin-top: .2rem; }
.chk { display: flex; gap: .5rem; align-items: center; font-size: .9rem; cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--green); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-bottom: 1rem; }
.filters .f { min-width: 140px; }
.filters .f.grow { flex: 1; min-width: 200px; }
.inline-form { display: inline; }
fieldset.box { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem 1rem; margin: 0; }
fieldset.box legend { font-weight: 700; font-size: .82rem; padding: 0 .3rem; }

/* alerts */
.flash { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; font-weight: 600; display: flex; gap: .6rem; align-items: flex-start; }
.flash.ok { background: var(--green-50); color: var(--green-900); border: 1px solid var(--green-75); }
.flash.err { background: #fdecec; color: #7b1011; border: 1px solid #f3c1c1; }
.flash.warn { background: #fff5e3; color: #6d4300; border: 1px solid #f5d9a8; }
.flash.info { background: #eef3fa; color: #183b66; border: 1px solid #cddcef; }

/* tabs */
.tabs { display: flex; gap: .2rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tabs a { padding: .6rem .9rem; font-weight: 600; font-size: .88rem; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); border-color: var(--org); }
.tabs a .pill { font-size: .68rem; }

/* dues matrix (Aidat) */
.matrix { border-collapse: separate; border-spacing: 3px; font-size: .82rem; }
.matrix th { font-size: .68rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding: .2rem; text-align: center; position: sticky; top: 0; background: #fff; }
.matrix th.name, .matrix td.name { text-align: left; min-width: 210px; padding-right: .6rem; }
.matrix td.name a { color: var(--ink); text-decoration: none; font-weight: 600; }
.matrix td.name small { color: var(--muted); display: block; font-size: .72rem; }
.matrix td.cell { width: 42px; height: 34px; text-align: center; border-radius: 4px; background: #f1f3f2; color: #aeb5b2; font-weight: 700; font-size: .72rem; cursor: default; position: relative; }
.matrix td.cell.paid { background: var(--green); color: #fff; }
.matrix td.cell.future { background: var(--green-50); color: var(--green-800); }
.matrix td.cell.partial { background: #ffe9bf; color: #7a4a00; }
.matrix td.cell.open { background: #fde0e0; color: var(--rot); }
.matrix td.cell.waived { background: repeating-linear-gradient(45deg, #eef1f0, #eef1f0 4px, #fff 4px, #fff 8px); color: var(--muted); }
.matrix td.cell.none { background: transparent; border: 1px dashed #e3e7e5; }
.matrix td.sum { padding-left: .6rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.help-panel { border-left: 4px solid var(--green); margin-bottom: 1rem; }
.help-panel ul { margin: 0; padding-left: 1.2rem; font-size: .92rem; line-height: 1.55; }
.help-panel li + li { margin-top: .35rem; }
.gs-open .gs-kbd { font-size: .7rem; color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 0 .3rem; }
.gs { position: fixed; inset: 0; z-index: 100; background: rgba(10, 20, 16, .45); display: flex; align-items: flex-start; justify-content: center; padding: 8vh 1rem; }
.gs[hidden] { display: none; }
.gs-box { width: 100%; max-width: 640px; background: #fff; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); overflow: hidden; }
.gs-box input { width: 100%; font: inherit; font-size: 1.05rem; padding: .9rem 1rem; border: 0; border-bottom: 1px solid var(--line); outline: none; }
.gs-list { max-height: 60vh; overflow-y: auto; }
.gs-grp { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: .6rem 1rem .2rem; }
.gs-list a { display: flex; justify-content: space-between; gap: .8rem; padding: .5rem 1rem; text-decoration: none; color: var(--ink); }
.gs-list a small { display: block; color: var(--muted); font-size: .78rem; }
.gs-list a.sel, .gs-list a:hover { background: var(--green-50); }
.gs-empty { padding: 1rem; color: var(--muted); font-size: .9rem; }
.chart { display: block; width: 100%; height: 150px; }
.legend { display: flex; flex-wrap: wrap; gap: .9rem; font-size: .8rem; color: var(--muted); align-items: center; }
.legend span { display: inline-flex; align-items: center; gap: .35rem; }
.legend i { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }

/* bank inbox */
.tx { display: grid; grid-template-columns: 96px minmax(0, 1fr) 130px; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); align-items: start; }
.tx:last-child { border-bottom: 0; }
.tx .amt { font-size: 1.1rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.tx .party { font-weight: 700; }
.tx .ref { color: var(--muted); font-size: .85rem; word-break: break-word; }
.tx .sug { margin-top: .6rem; padding: .6rem .8rem; background: var(--green-25); border: 1px solid var(--green-75); border-radius: 6px; font-size: .85rem; }
.tx .sug.none { background: #fafbfa; border-color: var(--line); }
.tx .assign { margin-top: .7rem; display: grid; gap: .5rem; }
.split-row { display: grid; grid-template-columns: 100px minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, 1.3fr) minmax(0, 1fr) 32px; gap: .4rem; align-items: center; }
.split-row .inp { min-height: 34px; padding: .35rem .5rem; font-size: .85rem; }
@media (max-width: 900px) { .tx { grid-template-columns: 1fr; } .tx .amt { text-align: left; } .split-row { grid-template-columns: 1fr 1fr; } }

/* member profile */
.profile-head { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--green-50); color: var(--green-800); display: grid; place-items: center; font-weight: 700; font-size: 1.1rem; flex: none; }
.dl { display: grid; grid-template-columns: 140px 1fr; gap: .45rem 1rem; margin: 0; font-size: .9rem; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 .9rem 1.2rem; font-size: .86rem; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: .45rem; width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--line-2)); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 1rem; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .when { color: var(--muted); font-size: .76rem; }

/* calendar (admin) */
.acal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-left: 1px solid var(--line); border-top: 1px solid var(--line); background: #fff; }
.acal .dow { padding: .4rem .5rem; font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafbfa; }
.acal .day { min-height: 110px; padding: .35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .2rem; }
.acal .day.out { background: #fbfcfb; }
.acal .day .n { font-size: .78rem; font-weight: 700; color: var(--muted); display: flex; justify-content: space-between; }
.acal .day .n a { color: var(--muted); text-decoration: none; opacity: 0; }
.acal .day:hover .n a { opacity: 1; }
.acal .day.today .n span { color: #fff; background: var(--green); border-radius: 10px; padding: 0 .4rem; }
.acal .ce { display: block; font-size: .74rem; line-height: 1.25; padding: .2rem .35rem; border-radius: 3px; text-decoration: none; color: var(--ink); background: color-mix(in srgb, var(--c) 13%, #fff); border-left: 3px solid var(--c); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.acal .ce.x { text-decoration: line-through; opacity: .55; }
.acal .ce.int { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--c) 10%, #fff), color-mix(in srgb, var(--c) 10%, #fff) 5px, #fff 5px, #fff 10px); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--green-950); position: relative; overflow: hidden; }
.login .orn { position: absolute; inset: 0; color: #fff; opacity: .05; }
.login .box { position: relative; width: min(100%, 400px); background: #fff; border-radius: 10px; padding: 2rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.login .lockup { font-size: 14px; margin-bottom: 1.5rem; }

/* lockup (shared with site) */
.lockup { display: inline-flex; align-items: center; gap: .7em; color: var(--ink); line-height: 1; }
.lockup-text { display: flex; flex-direction: column; align-items: flex-end; gap: .12em; font-size: .78em; text-transform: uppercase; white-space: nowrap; }
.lockup-text .b { font-weight: 700; } .lockup-text .l { font-weight: 300; }
.lockup-rule { width: 1px; align-self: stretch; background: currentColor; opacity: .8; }
.lockup-emblem { height: 2.3em; width: auto; color: var(--green); }
.lockup-word { height: 1.55em; width: auto; }
.orn-fill { display: block; width: 100%; height: 100%; background: currentColor; -webkit-mask: url(../img/ornament-cc.svg) center / cover no-repeat; mask: url(../img/ornament-cc.svg) center / cover no-repeat; }

/* misc */
.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); }
.bar-chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; align-items: end; height: 170px; padding-top: 10px; }
.bar-chart .b { display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; height: 100%; position: relative; }
.bar-chart .b span { display: block; border-radius: 3px 3px 0 0; min-height: 1px; }
.bar-chart .b .in { background: var(--green); }
.bar-chart .b .out { background: #e9a3a3; }
.bar-chart .lbl { font-size: .68rem; color: var(--muted); text-align: center; margin-top: .3rem; }
.progress { height: 7px; background: #e9eeec; border-radius: 6px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); }
.progress.warn span { background: var(--orange); }
.progress.bad span { background: var(--rot); }
.code { font-family: ui-monospace, Menlo, monospace; font-size: .86em; background: #f1f4f3; padding: .1rem .35rem; border-radius: 3px; }
.stack > * + * { margin-top: 1rem; }
.pager { display: flex; gap: .5rem; justify-content: space-between; align-items: center; padding: .8rem 1.2rem; font-size: .85rem; color: var(--muted); }
.sticky-actions { position: sticky; bottom: 0; background: rgba(255, 255, 255, .95); border-top: 1px solid var(--line); padding: .8rem 1.2rem; display: flex; gap: .5rem; justify-content: flex-end; margin: 1rem -1.3rem -1.2rem; border-radius: 0 0 8px 8px; }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: .55rem 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.list-plain li:last-child { border-bottom: 0; }
details.more summary { cursor: pointer; font-weight: 600; color: var(--green-700); }
.qr-box { width: 180px; height: 180px; }
.qr-box svg { width: 100%; height: 100%; }

@media print {
  .a-side, .a-top .actions, .no-print, .menu-toggle { display: none !important; }
  .a-shell { display: block; }
  .a-content { padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; }
  body { background: #fff; font-size: 11px; }
  .a-top { position: static; border: 0; padding: 0 0 1rem; }
}
.btn.menu-toggle { display: none; }
@media (max-width: 980px) { .btn.menu-toggle { display: inline-flex; } }
.grid.g4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* Lokal: Stundensätze */
details.rate-row { border-top: 1px solid var(--line); }
details.rate-row summary { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; cursor: pointer; list-style: none; font-weight: 600; }
details.rate-row summary::-webkit-details-marker { display: none; }
details.rate-row[open] summary { color: var(--green); }
details.rate-row ul { margin: 0 0 .6rem; }

/* Offizielles Logo ALIF HALLEIN */
.site-logo { display: block; height: 20px; width: auto; max-width: 100%; }
.login .site-logo { margin: 0 auto 1.5rem; }

/* ------------------------------------------------ Termin-Formular (evw) – große, gut tippbare Felder */
.evw { max-width: 980px; }
.evw input:not([type=checkbox]):not([type=radio]), .evw select, .evw textarea { min-height: 48px; font-size: 16px; width: 100%; }
.evw textarea { min-height: 88px; }
.evw .btn { min-height: 44px; }
.evw-sec { padding: 1.2rem 0 1.4rem; border-bottom: 1px solid var(--line); }
.evw-sec:last-of-type { border-bottom: 0; }
.evw-sec h2 { display: flex; align-items: center; gap: .6rem; font-size: 1.2rem; margin: 0 0 1rem; }
.evw-sec h2 > span { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--green-700, #007d5d); color: #fff; font-size: .95rem; }
.evw-sec h2 small, .evq-l small { font-weight: 400; color: var(--muted); font-size: .85em; }
.evq { margin-bottom: 1.1rem; }
.evq-l { font-weight: 600; margin-bottom: .45rem; }
.evq .e, .evw .e { color: #b42318; font-size: .9rem; margin-top: .35rem; font-weight: 600; }
.opt-tiles { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt-tiles label { position: relative; display: inline-flex; }
.opt-tiles input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-tiles span { display: inline-flex; align-items: center; min-height: 48px; padding: .55rem 1rem; border: 1.5px solid var(--line-2, #cfd6d3); border-radius: 10px; background: #fff; cursor: pointer; font-size: 1rem; line-height: 1.25; }
.opt-tiles input:checked + span { border-color: var(--green-700, #007d5d); background: #e6f5ef; color: #00654b; font-weight: 600; box-shadow: inset 0 0 0 1px var(--green-700, #007d5d); }
.opt-tiles input:focus-visible + span { outline: 3px solid #1d5fd1; outline-offset: 2px; }
.opt-tiles.chips span { border-radius: 999px; min-height: 44px; }
.opt-tiles.chips input:checked + span::before { content: "✓ "; margin-right: .25rem; }
.dur-btns { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .5rem; }
.evw-more { margin: -.2rem 0 1rem; }
.evw-more summary { cursor: pointer; color: #00654b; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.evw-img { display: flex; align-items: center; gap: 1rem; margin-top: .5rem; }
.evw-img img { max-height: 90px; border-radius: 6px; }
.evw-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding-top: 1.2rem; }
.evw-pos { flex: 1 1 auto; font-size: .9rem; color: var(--muted); }
.evw-warn { margin: .4rem 0; padding-left: 1.1rem; }
.evw-force { margin-top: 1rem; font-weight: 600; color: #b42318; }
.evw-actions { max-width: 980px; }
.evw .chk { display: flex; align-items: center; gap: .6rem; min-height: 44px; }
.evw .chk input { width: 22px; height: 22px; }
@media (max-width: 719.98px) {
  .evw.is-stepped .evw-sec:not(.cur) { display: none; }
  .evw.is-stepped .evw-sec { border-bottom: 0; }
  .evw-bar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); margin: 0 -1rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); z-index: 5; }
  .evw-pos { flex-basis: 100%; order: -1; }
  .evw .row.c2 { grid-template-columns: 1fr; }
}

[hidden] { display: none !important; }

/* ---------------------------------------------------------------- Afiş stüdyosu */
.pst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.pst-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.pst-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,.08); }
.pst-card img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: #eef1f0; display: block; }
.pst-meta { display: grid; gap: .25rem; padding: .7rem .8rem .8rem; }
.pst-meta b { font-size: .92rem; line-height: 1.25; }
.pst-new { align-items: center; justify-content: center; text-align: center; gap: .5rem; padding: 1.5rem; min-height: 320px; border-style: dashed; color: var(--green-800); }
.pst-new svg { width: 40px; height: 40px; }
.pst-ed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 460px); gap: 1.2rem; align-items: start; }
.pst-side { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.pst-prev-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.pst-prev-head button { border: 0; background: none; padding: .35rem .6rem; border-radius: 8px; font: inherit; font-size: .85rem; cursor: pointer; color: var(--muted); }
.pst-prev-head button.on { background: var(--green-50); color: var(--green-800); font-weight: 700; }
.pst-frame { background: repeating-conic-gradient(#f3f4f4 0 25%, #fff 0 50%) 0 0 / 18px 18px; border-radius: 10px; padding: 8px; display: flex; justify-content: center; transition: opacity .2s; }
.pst-frame.loading { opacity: .6; }
.pst-scale { position: relative; overflow: hidden; box-shadow: 0 8px 26px rgba(0,0,0,.18); border-radius: 3px; }
.pst-scale iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #fff; }
.pst-actions { display: grid; gap: .6rem; }
.pst-actions .btn { justify-content: flex-start; }
.pst-tpls { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; }
.pst-tpl { display: flex; gap: .55rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .75rem; cursor: pointer; }
.pst-tpl:has(input:checked) { border-color: var(--green-600, #0b8a66); background: var(--green-50); }
.pst-tpl span { display: grid; gap: .2rem; }
.pst-tpl small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
/* Şablon kompakt: Beschreibung nur beim gewählten Muster */
.pst-tpls { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .45rem; }
.pst-tpl { padding: .5rem .65rem; align-items: center; }
.pst-tpl small { display: none; }
.pst-tpl:has(input:checked) { grid-column: 1 / -1; align-items: flex-start; }
.pst-tpl:has(input:checked) small { display: block; }
.pst-fmts { display: flex; flex-wrap: wrap; gap: .8rem 1.6rem; margin: .9rem 0 .3rem; }
.pst-fmts > div { display: grid; gap: .4rem; }
.pst-fmts .opt-tiles span { min-height: 40px; padding: .4rem .85rem; font-size: .95rem; }
.pst-sub { display: grid; gap: .55rem; border-top: 1px solid var(--line); padding-top: .9rem; margin-top: .9rem; }
.pst-sub > b { margin-bottom: .1rem; }
.pst-sub .opt-tiles span { min-height: 42px; padding: .45rem .9rem; font-size: .95rem; }
.pst-cal-sub { display: grid; gap: .4rem; }
.pst-more { margin-top: .9rem; }
.pst-more summary { cursor: pointer; color: var(--muted); }
.pst-gen { display: grid; gap: .5rem; margin-top: .8rem; }
@media (max-width: 960px) { .pst-ed { grid-template-columns: 1fr; } .pst-side { position: static; order: -1; } }
.a-side > :first-child { margin-top: 16px; }
.pst-gen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .9rem; }
.pst-gen-card { margin: 0; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.pst-gen-card.on { border-color: var(--green-600, #0b8a66); box-shadow: 0 0 0 3px var(--green-50); }
.pst-gen-frame { position: relative; overflow: hidden; background: #eef1f0; }
.pst-gen-frame iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; pointer-events: none; }
.pst-gen-card figcaption { display: grid; gap: .3rem; padding: .6rem .7rem .7rem; }
.pst-gen-card figcaption .btn { justify-self: start; }
.mail-sheet { max-width: 680px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px 20px 16px; font: 14px/1.6 Helvetica, Arial, sans-serif; color: #16201c; overflow-x: auto; }
.mail-sheet p { margin: 0 0 12px; }
.mail-sheet .mp-subj { font-weight: 700; font-size: 15px; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.mail-sheet .mp-foot { margin-top: 20px; padding-top: 10px; border-top: 1px solid #e6ebe8; font-size: 11px; line-height: 1.5; color: #8a938f; }

/* ---------- Sade menü: „Diğer modüller“ (rol bazlı odak) */
.a-nav .nav-more { margin-top: .8rem; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: .4rem; }
.a-nav .nav-more > summary { list-style: none; display: flex; align-items: center; gap: .65rem; padding: .5rem .6rem; border-radius: 5px; color: #9fc2b5; font-weight: 600; font-size: .85rem; cursor: pointer; }
.a-nav .nav-more > summary::-webkit-details-marker { display: none; }
.a-nav .nav-more > summary:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.a-nav .nav-more > summary svg:last-child { margin-left: auto; transition: transform .15s; }
.a-nav .nav-more[open] > summary svg:last-child { transform: rotate(180deg); }
.a-nav .grp-sub { padding-top: .6rem; font-size: .62rem; opacity: .8; }

/* ---------- Sunum modu (nur lokal demo) */
.demo-bar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; gap: .4rem 1rem; align-items: center; justify-content: space-between; padding: .35rem 1rem; background: #fff4d6; color: #5a4300; border-bottom: 1px solid #ecd58c; font-size: .8rem; }
.demo-bar nav { display: flex; flex-wrap: wrap; gap: .25rem; }
.demo-bar a { color: #5a4300; text-decoration: none; padding: .15rem .55rem; border-radius: 999px; border: 1px solid transparent; font-weight: 600; }
.demo-bar a:hover { border-color: #d9bd62; }
.demo-bar a[aria-current] { background: #5a4300; color: #fff4d6; }
.demo-bar ~ .a-shell .a-side { top: 0; }
.demo-login { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px dashed #d9bd62; display: grid; gap: .4rem; }
.demo-roles { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .3rem; }
.demo-roles .btn { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; text-align: left; white-space: normal; height: auto; padding: .55rem .7rem; }
.demo-roles small { font-weight: 400; opacity: .75; font-size: .75rem; }
@media (max-width: 420px) { .demo-roles { grid-template-columns: 1fr; } }

/* ---------- Özet: Bugün yapılacaklar + KPI */
.grid.kpis { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.card.todo { margin-bottom: 1rem; border-top: 3px solid var(--org); }
.card.todo h2 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .75rem .2rem .75rem .7rem; border-top: 1px solid var(--line, #e6ece9); border-left: 3px solid transparent; }
.todo-list li:first-child { border-top: 0; }
.todo-list li.todo-urgent { border-left-color: var(--orange, #f2a516); }
.todo-list li > div { display: flex; flex-direction: column; gap: .1rem; }
.todo-list li .ic { color: var(--org); }
.todo-done { display: flex; gap: .5rem; align-items: center; margin: .2rem 0 0; color: var(--green-800, #0a6b51); font-weight: 600; }
.card.onboard { margin-bottom: 1rem; }
.card.onboard > summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (max-width: 560px) { .todo-list li { grid-template-columns: auto minmax(0, 1fr); } .todo-list li .btn { grid-column: 2; justify-self: start; } }

/* ---------- Mobil: Grid-Kinder dürfen schrumpfen (lange Tabellen/Texte sprengten die Breite) */
:where(.grid) { grid-template-columns: minmax(0, 1fr); }
.grid > *, .stack > * { min-width: 0; }
.dl dd .pill { white-space: normal; }
form.card .tbl-wrap, .f .tbl-wrap { max-width: 100%; }
.card { min-width: 0; }
.tbl td.small:first-child { min-width: 10rem; }
.card > table.tbl, .card > form > table.tbl { display: block; overflow-x: auto; }
.dl dd { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .grid.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .grid.kpis .kpi strong { font-size: 1.35rem; }
  .demo-bar { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; }
  .demo-bar > span { display: none; }
  .demo-bar::before { content: 'SUNUM'; font-weight: 800; }
}
.form > *, .f, .row > * { min-width: 0; }
@media (min-width: 760px) { .g-users { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; } }

/* Takvim auf dem Telefon: Raster mit Farbpunkten, darunter lesbare Monatsliste */
.acal-list { display: none; }
@media (max-width: 700px) {
  .acal .day { min-height: 58px; padding: .25rem; }
  .acal .day .n a { display: none; }
  .acal .ce { font-size: 0; height: 6px; padding: 0; border-left: 0; background: var(--c); border-radius: 3px; }
  .acal .ce.int { background: var(--c); opacity: .55; }
  .acal-list { display: block; margin-top: 1rem; }
  .acal-list h3 { margin: 0 0 .5rem; }
  .acal-li { display: flex; gap: .8rem; align-items: center; padding: .65rem .8rem; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 8px; margin-bottom: .5rem; text-decoration: none; color: var(--ink); min-height: 48px; }
  .acal-li .d { display: flex; flex-direction: column; align-items: center; font-size: .7rem; color: var(--muted); text-transform: uppercase; min-width: 2.2rem; }
  .acal-li .d b { font-size: 1.15rem; color: var(--ink); }
  .acal-li small { display: block; color: var(--muted); }
  .acal-li.x b { text-decoration: line-through; }
}

/* Telefon: Titel volle Breite, Aktionen als eine Zeile darunter (statt 3-zeiligem Knopfstapel neben dem Titel);
   Kopf scrollt mit, damit Listen den Bildschirm bekommen */
@media (max-width: 600px) {
  .a-top { flex-wrap: wrap; gap: .6rem; position: relative; }
  .a-top > div:first-child { flex: 1 1 190px; min-width: 0; }
  .a-top .gs-kbd { display: none; }
  .a-top h1 { font-size: 1.15rem; overflow-wrap: anywhere; }
  .a-top .actions { flex: 0 1 auto; justify-content: flex-start; }
  .a-top .actions .btn { min-height: 40px; }
}
/* Kullanıcı yetkileri: menü maddesi × Yok/Görür/Düzenler */
.perm-tbl td:not(:first-child), .perm-tbl th:not(:first-child) { text-align: center; width: 5.5rem; }
.perm-tbl input { width: 18px; height: 18px; accent-color: var(--green); }
.perm-tbl .perm-grp td { background: var(--green-50); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--green-800); text-align: left; }
