/* Demirkapı Apartmanı – arayüz */
:root {
  --iron: #1d2730;
  --iron-2: #2b3843;
  --brass: #b98a35;
  --brass-soft: #f3e7cf;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --line: #e2ddd2;
  --text: #1f2328;
  --muted: #6b6f74;
  --ok: #2f7d4f;
  --ok-bg: #e5f2ea;
  --warn: #b5541c;
  --warn-bg: #fbeadf;
  --info: #2e5f8a;
  --info-bg: #e6eef6;
  --err: #a8322d;
  --err-bg: #f8e3e1;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(29, 39, 48, .06), 0 4px 14px rgba(29, 39, 48, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --side-w: 252px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); }
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.55rem; line-height: 1.25; margin: 0 0 .4rem; letter-spacing: -.01em; }
h2 { font-size: 1.12rem; margin: 0 0 .75rem; }
p { margin: 0 0 .8rem; }
img { max-width: 100%; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 20px; padding-bottom: 40px; min-height: 70vh; }
.guest .main { padding-top: 8vh; }
.foot { color: var(--muted); font-size: .8rem; padding-bottom: 28px; text-align: center; }

/* Uygulama iskeleti: solda menü, sağda içerik */
.ic { flex: none; display: block; }
.shell { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side-w); background: var(--iron); color: #cfd6dc; display: flex; flex-direction: column; z-index: 20; }
.side-head { padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 10px; background: rgba(212,161,74,.12); border: 1px solid rgba(212,161,74,.35); display: grid; place-items: center; color: #d4a14a; flex: none; }
.brand-mark svg { width: 24px; height: 24px; }
.brand-mark.lg { width: 56px; height: 56px; border-radius: 14px; }
.brand-mark.lg svg { width: 34px; height: 34px; }
.brand-text { display: grid; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: .95rem; font-weight: 700; line-height: 1.25; }
.topbar-r { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.brand-text small { font-size: .72rem; color: #8f9aa4; letter-spacing: .4px; margin-top: 2px; }
.sidenav { flex: 1; overflow-y: auto; padding: 14px 12px; display: grid; align-content: start; gap: 16px; }
.navgroup { display: grid; gap: 2px; }
.navlabel { font-size: .68rem; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #6f7b86; padding: 0 12px 6px; }
.sidenav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 8px; color: #b9c2ca; font-size: .93rem; font-weight: 500; }
.sidenav a:hover { background: rgba(255,255,255,.05); color: #fff; text-decoration: none; }
.sidenav a.on { background: rgba(212,161,74,.14); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 #d4a14a; }
.sidenav a.on .ic { color: #d4a14a; }
.side-foot { border-top: 1px solid rgba(255,255,255,.07); padding: 14px 16px 18px; display: grid; gap: 10px; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #d4a14a; color: var(--iron); font-weight: 700; display: grid; place-items: center; font-size: .9rem; flex: none; }
.who-text { display: grid; line-height: 1.25; min-width: 0; }
.who-text strong { color: #fff; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who-text small { color: #8f9aa4; font-size: .76rem; }
.who-actions { display: flex; gap: 14px; font-size: .84rem; }
.who-actions a, .who-actions .linkbtn { color: #b9c2ca; display: inline-flex; align-items: center; gap: 6px; }
.who-actions a:hover, .who-actions .linkbtn:hover { color: #fff; text-decoration: none; }
.who-actions form { margin: 0; }
.iconbtn { background: none; border: 0; color: #b9c2ca; padding: 6px; border-radius: 8px; cursor: pointer; }
.iconbtn:hover { color: #fff; background: rgba(255,255,255,.07); }
.m-only { display: none; }
.content { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 32px; background: rgba(245,243,238,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-l { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); font-weight: 500; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47,125,79,.15); }
.content .main { width: 100%; max-width: 1180px; padding: 28px 32px 40px; margin: 0; flex: 1; }
.content .foot { padding: 0 32px 24px; text-align: left; max-width: 1180px; width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .88rem; }
.btn-lg { min-height: 48px; font-size: 1rem; }

/* Giriş ve misafir sayfaları */
.guest-main { min-height: 100vh; display: grid; align-content: center; padding: 32px 16px; }
.guest-main > .card.narrow { width: 100%; }
.narrow-flash { max-width: 560px; margin: 0 auto 14px; width: 100%; }
.login-split { width: 100%; max-width: 940px; margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: 0 2px 4px rgba(29,39,48,.05), 0 24px 60px rgba(29,39,48,.12); border: 1px solid var(--line); }
.login-brand { background: var(--iron); color: #cfd6dc; padding: 44px 40px; display: flex; flex-direction: column; gap: 32px; position: relative; overflow: hidden; }
.login-brand::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(212,161,74,.06); }
.login-brand h1 { color: #fff; font-size: 1.6rem; margin: 18px 0 4px; }
.login-brand-top p { margin: 0; color: #d4a14a; font-size: .82rem; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; }
.login-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; position: relative; z-index: 1; }
.login-feats li { display: flex; gap: 14px; align-items: flex-start; font-size: .9rem; line-height: 1.45; }
.login-feats li .ic { color: #d4a14a; margin-top: 2px; }
.login-feats strong { display: block; color: #fff; font-weight: 600; }
.login-legal { margin: auto 0 0; font-size: .78rem; color: #6f7b86; }
.login-form { padding: 48px 44px; display: flex; flex-direction: column; justify-content: center; }
.login-form h2 { font-size: 1.45rem; margin: 0 0 4px; }
.login-form > .muted { margin-bottom: 24px; }
.login-help { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; font-size: .84rem; color: var(--muted); }

/* Kartlar, bloklar */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.card.note { background: var(--brass-soft); border-color: #e6d3ad; box-shadow: none; }
.block { margin: 26px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small, small { font-size: .85rem; }
.lead { margin-top: -4px; }
.pre { white-space: pre-wrap; word-wrap: break-word; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--muted); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.page-head h1 { margin: 0; }
.row-between { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.back { display: inline-block; margin-bottom: 10px; font-size: .92rem; }
.gate-head { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.gate-head h1 { margin: 0; }
.gate-head p { margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2.top { align-items: start; }
.grid2 > .card { margin-bottom: 0; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.btn:hover { text-decoration: none; border-color: #c9c2b3; }
.btn-primary { background: var(--iron); border-color: var(--iron); color: #fff; }
.btn-primary:hover { background: var(--iron-2); border-color: var(--iron-2); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--info); cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
.danger { color: var(--err) !important; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; margin: -4px 0 8px; }

/* Formlar */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 5px; font-weight: 600; font-size: .92rem; }
.form label small { font-weight: 400; color: var(--muted); }
input, select, textarea { font: inherit; font-size: 16px; width: 100%; padding: 10px 12px; border: 1px solid #cfc8b9; border-radius: 9px; background: #fff; color: var(--text); }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass); }
input[type=checkbox], input[type=radio] { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 12px; }
legend { font-weight: 650; padding: 0 6px; font-size: .92rem; }
.form .check, .check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.seg { display: flex; gap: 8px; flex-wrap: wrap; }
.seg legend { width: 100%; }
.seg label { display: block; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 8px 16px; border: 1px solid #cfc8b9; border-radius: 99px; cursor: pointer; font-weight: 500; }
.seg input:checked + span { background: var(--iron); border-color: var(--iron); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--brass); }

/* Bildirimler */
.flash { border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; border: 1px solid transparent; }
.flash ul { margin: 6px 0 0; padding-left: 18px; }
.flash-ok { background: var(--ok-bg); color: #1d5434; border-color: #c4e2cf; }
.flash-err { background: var(--err-bg); color: #7d221e; border-color: #efc7c3; }
.flash-info { background: var(--info-bg); color: #24496b; border-color: #c9d9e9; }
.flash.big { font-size: 1.05rem; }
.flash .mono { font-size: 1.3rem; }

/* İstatistik kartları */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--text); box-shadow: var(--shadow); border-left: 5px solid var(--iron-2); }
a.stat:hover { text-decoration: none; border-color: #cbc4b5; border-left-color: var(--brass); }
.stat-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat-num { font-size: 2rem; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.stat-num.small-num { font-size: 1.45rem; }
.stat-sub { font-size: .85rem; color: var(--muted); }
.stat-warn { border-left-color: var(--warn); }
.stat-warn .stat-num { color: var(--warn); }
.stat-ok { border-left-color: var(--ok); }
.stat-ok .stat-num { color: var(--ok); }

/* Talep listesi */
.rlist { display: grid; gap: 8px; }
.ritem { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 16px; color: var(--text); border-left: 4px solid transparent; }
.ritem:hover { text-decoration: none; border-color: #cbc4b5; }
.ritem.pr-acil { border-left-color: var(--err); }
.ritem-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .85rem; }
.ritem-id { color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.ritem-when { margin-left: auto; color: var(--muted); }
.ritem-title { font-weight: 650; margin: 4px 0 2px; font-size: 1.02rem; }
.ritem-meta { color: var(--muted); font-size: .86rem; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 650; background: #ece8df; color: #4a4d52; white-space: nowrap; }
.st-acik { background: #fdeccd; color: #7a4d06; }
.st-inceleniyor { background: var(--info-bg); color: #24496b; }
.st-islemde { background: #e0e4fb; color: #343f8a; }
.st-beklemede { background: #efe6f7; color: #5b3a78; }
.st-tamamlandi { background: var(--ok-bg); color: #1d5434; }
.st-iptal { background: #ececec; color: #5a5a5a; }
.pri-acil { background: var(--err); color: #fff; }
.pri-dusuk { background: #ececec; color: #5a5a5a; }
.pri-normal { background: #ece8df; color: #4a4d52; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.tabs a { padding: 8px 14px; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-weight: 600; }
.tabs a.on { color: var(--text); border-bottom-color: var(--brass); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input[type=search] { flex: 1 1 220px; width: auto; }
.filters select { width: auto; flex: 0 1 180px; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 16px; }

/* Talep detay */
.req-head h1 { margin: 8px 0 12px; }
.req-badges { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
dl.meta { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 16px; font-size: .9rem; }
dl.meta dt { color: var(--muted); font-size: .78rem; }
dl.meta dd { margin: 0; font-weight: 600; }
.desc { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 9px; border: 1px solid var(--line); display: block; }

.stepper { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); padding: 0; margin: 4px 0 18px; counter-reset: s; }
.stepper li { position: relative; text-align: center; font-size: .82rem; color: var(--muted); }
.stepper li::before { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper .dot { position: relative; z-index: 1; display: block; width: 21px; height: 21px; margin: 0 auto 6px; border-radius: 50%; background: #fff; border: 3px solid var(--line); }
.stepper li.done { color: var(--text); }
.stepper li.done .dot { background: var(--ok); border-color: var(--ok); }
.stepper li.done::before, .stepper li.now::before { background: var(--ok); }
.stepper li.now { color: var(--text); font-weight: 700; }
.stepper li.now .dot { border-color: var(--brass); background: var(--brass-soft); box-shadow: 0 0 0 4px rgba(185, 138, 53, .18); }
.stepper em { font-style: normal; font-weight: 500; color: #5b3a78; }

.timeline { list-style: none; padding: 0 0 0 18px; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 14px; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 3px solid var(--iron-2); }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.tl-note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 6px; }
.admin-box { border-color: #e6d3ad; border-top: 4px solid var(--brass); }
.danger-zone { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); text-align: right; }

/* Tablolar */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl thead th { background: #faf8f4; font-size: .8rem; color: var(--muted); font-weight: 650; white-space: nowrap; }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr[onclick] { cursor: pointer; }
.tbl tbody tr[onclick]:hover { background: #faf8f4; }
.tbl tr.inactive { opacity: .55; }
.tbl form { margin: 0; }
.debt { color: var(--warn); font-weight: 650; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 650; background: #ececec; color: #555; white-space: nowrap; }
.pill-odendi { background: var(--ok-bg); color: #1d5434; }
.pill-kismi { background: #fdeccd; color: #7a4d06; }
.pill-odenmedi { background: var(--warn-bg); color: #8a3a10; }
.pill-gelecek { background: #ececec; color: #666; }

/* Aidat tablosu */
.yearnav { display: flex; align-items: center; gap: 8px; }
.yearnav strong { font-size: 1.15rem; min-width: 48px; text-align: center; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .85rem; color: var(--muted); margin-bottom: 4px; }
.legend i { display: inline-block; width: 13px; height: 13px; border-radius: 3px; vertical-align: -2px; margin-right: 5px; border: 1px solid rgba(0,0,0,.08); }
.tbl.grid th, .tbl.grid td { padding: 0; text-align: center; border: 1px solid var(--line); }
.tbl.grid thead th { padding: 8px 4px; }
.tbl.grid th.sticky { position: sticky; left: 0; background: #faf8f4; z-index: 1; text-align: left; padding: 6px 10px; min-width: 64px; white-space: nowrap; }
.tbl.grid th.sticky .nm { display: block; font-weight: 400; font-size: .72rem; color: var(--muted); max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.tbl.grid td.num { padding: 6px 10px; }
.cell a { display: block; min-width: 38px; height: 36px; line-height: 36px; color: inherit; font-weight: 700; }
.cell a:hover { text-decoration: none; outline: 2px solid var(--brass); outline-offset: -2px; }
.c-odendi { background: #d7ecdf; color: #1d5434; }
.c-kismi { background: #fbe3b4; color: #7a4d06; }
.c-odenmedi { background: #f6d2c0; color: #8a3a10; }
.c-gelecek { background: #f3f1ec; }
.c-tanimsiz { background: repeating-linear-gradient(45deg, #fafafa, #fafafa 4px, #efefef 4px, #efefef 8px); }
.tbl.grid tfoot td.tot { font-size: .75rem; color: var(--muted); padding: 6px 2px; }

/* Şifre fişleri */
.slips { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 16px 0; }
.slip { border: 1.5px dashed #b9b2a3; border-radius: 10px; padding: 12px 14px; break-inside: avoid; page-break-inside: avoid; }
.slip-name { font-size: .75rem; color: var(--muted); }
.slip-flat { font-size: 1.25rem; font-weight: 750; margin-bottom: 6px; }
.slip-row { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; padding: 2px 0; }
.slip-row strong { font-size: .95rem; }

/* .grid2.top üst menü (.top) stilini almasın */
.grid2.top { background: none; color: inherit; position: static; z-index: auto; }

/* Kasa ve ödemeler */
.pay-box { background: #fbf8f1; }
.pay-box .seg span { background: #fff; }
.pay-box .seg input:checked + span { background: var(--iron); }
.pay-fields { display: grid; gap: 12px; }
.pay-fields[hidden] { display: none; }
.pay-fields p { margin: 0; }
.tl-pay { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--warn-bg); border: 1px solid #f0cdb7; color: #6e2f0c; border-radius: 10px; padding: 8px 12px; margin-top: 6px; font-size: .92rem; }
.tl-pay form { margin: 0; }
.tbl td.in { color: var(--ok); }
.tbl td.out { color: var(--warn); }
.tbl .nowrap { white-space: nowrap; }
.small-tabs { border-bottom: 0; margin: 0; }
.small-tabs a { padding: 4px 10px; font-size: .88rem; }
.pill-muaf { background: #e6eef6; color: #24496b; }
.mb { margin-bottom: 18px; }
.top-gap { margin-top: 26px; }
.top-gap-s { margin-top: 12px; }

/* Projeler */
.plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.pcard { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--text); box-shadow: var(--shadow); }
.pcard:hover { text-decoration: none; border-color: #cbc4b5; }
.pcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 1.05rem; }
.pcard-nums { display: grid; gap: 2px; font-size: .88rem; color: var(--muted); }
.pcard-nums b { color: var(--text); }
.bar { height: 8px; border-radius: 99px; background: #ece8df; overflow: hidden; margin-top: 4px; }
.bar span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.pill-acik { background: var(--ok-bg); color: #1d5434; }
.pill-kapali { background: #ececec; color: #555; }
.pill-p-odendi { background: var(--ok-bg); color: #1d5434; }
.pill-p-kismi { background: #fdeccd; color: #7a4d06; }
.pill-p-odenmedi { background: var(--warn-bg); color: #8a3a10; }
.pill-p-muaf { background: #ececec; color: #666; }
.share-in { width: 120px; text-align: right; padding: 6px 8px; font-variant-numeric: tabular-nums; }
.share-in.custom { border-color: var(--brass); background: var(--brass-soft); }
.tbl tr.prow-odenmedi td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
.tbl tr.prow-kismi td:first-child { box-shadow: inset 3px 0 0 #e0a43a; }
.tbl tr.prow-odendi td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.proj-own { margin: 0; }
.proj-own dl.meta { margin: 10px 0 6px; }
h1 .pill { vertical-align: middle; font-size: .8rem; }
.c-muaf { background: #e6eef6; color: #24496b; }

@media (max-width: 960px) {
  .side { position: sticky; top: 0; inset: auto; width: auto; }
  .side-head { padding: 10px 14px 8px; border-bottom: 0; }
  .brand-mark { width: 34px; height: 34px; border-radius: 9px; }
  .brand-mark svg { width: 20px; height: 20px; }
  .m-only { display: flex; }
  .m-actions { gap: 2px; align-items: center; }
  .m-actions form { margin: 0; }
  .sidenav { display: flex; overflow-x: auto; padding: 0 10px 8px; gap: 4px; scrollbar-width: none; }
  .sidenav::-webkit-scrollbar { display: none; }
  .navgroup { display: contents; }
  .navlabel { display: none; }
  .sidenav a { flex: none; white-space: nowrap; padding: 8px 12px; gap: 8px; font-size: .9rem; }
  .sidenav a .ic { width: 18px; height: 18px; }
  .sidenav a.on { box-shadow: inset 0 -3px 0 #d4a14a; border-radius: 8px 8px 0 0; }
  .side-foot { display: none; }
  .content { margin-left: 0; min-height: 0; }
  .topbar { display: none; }
  .content .main { padding: 18px 16px 32px; }
  .content .foot { padding: 0 16px 24px; text-align: center; }
  .login-split { grid-template-columns: 1fr; border-radius: 14px; }
  .login-brand { padding: 26px 24px; gap: 0; }
  .login-brand h1 { font-size: 1.3rem; margin-top: 12px; }
  .login-feats, .login-legal { display: none; }
  .login-form { padding: 26px 24px 30px; }
}

@media (max-width: 720px) {
  h1 { font-size: 1.3rem; }
  .grid2 { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .stat-num { font-size: 1.7rem; }
  .page-head .btn-primary { flex: 1 1 100%; }
  .yearnav { flex-wrap: wrap; width: 100%; }
  .yearnav .btn-primary { flex: 1 1 100%; }
  .filters select, .filters .btn { flex: 1 1 auto; }
}

@media print {
  .side, .topbar, .foot, .no-print, .flash { display: none !important; }
  .content { margin-left: 0 !important; }
  body { background: #fff; }
  .card { border: 0; box-shadow: none; padding: 0; }
  .slips { grid-template-columns: repeat(3, 1fr); }
}