/* ============================================================
   YÖNETİVİA YÖNETİM PANELİ — tasarım sistemi
   Eski değişken adları (--cream, --peach, --tan, --brown) JS içindeki satır içi
   stillerde de kullanıldığı için korunuyor; değerleri yeni nötr paletle eşlendi.
   ============================================================ */
:root {
  /* Marka */
  --brand: #E9724C;            /* uygulamanın turuncusu — vurgu, ikon */
  --primary: #C9542B;          /* buton zemini (beyaz yazıyla okunur kontrast) */
  --primary-hover: #B4481F;
  --primary-soft: #FDF1EC;
  --primary-ring: rgba(233, 114, 76, .22);

  /* Nötrler */
  --bg: #F7F6F4;               /* uygulama zemini */
  --surface: #FFFFFF;
  --subtle: #F3F1EE;           /* tablo başlığı, hover */
  --ink: #1C1917;
  --text: #3F3A35;
  --muted: #6F6862;
  --faint: #A39C95;
  --line: #EAE6E1;
  --line-strong: #DAD4CD;

  /* Eski adlar → yeni değerler */
  --cream: #F7F6F4;
  --peach: #FDF1EC;
  --tan: #DAD4CD;
  --brown: #B4481F;
  --white: #FFFFFF;

  /* Durum renkleri */
  --green: #1F7A4D;
  --green-bg: #E8F5EE;
  --red: #B42318;
  --red-bg: #FDECEA;
  --amber: #A15C07;
  --amber-bg: #FEF4E2;
  --blue: #1F5FA8;
  --blue-bg: #EAF2FB;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-xs: 0 1px 2px rgba(28, 25, 23, .05);
  --shadow-sm: 0 1px 3px rgba(28, 25, 23, .06), 0 1px 2px rgba(28, 25, 23, .04);
  --shadow-md: 0 8px 24px -6px rgba(28, 25, 23, .12);
  --shadow-lg: 0 24px 60px -12px rgba(28, 25, 23, .28);
  --sidebar-w: 256px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14.5px; line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
svg.ic { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.3px; margin-bottom: 28px; }
.brand .home, .side-brand .home { width: 32px; height: 32px; border-radius: 9px; object-fit: contain; display: block; }

/* ---------- Yükleniyor ---------- */
.loading { min-height: 100vh; display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   GİRİŞ / KAYIT / KURULUM — iki sütunlu ekran
   ============================================================ */
.auth-side { display: none; }
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; background: var(--bg);
}
.login-card {
  width: 100%; max-width: 420px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.login-card h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 26px; line-height: 1.55; }

@media (min-width: 1000px) {
  body:has(.login-screen:not(.hidden)) .auth-side {
    display: flex; flex-direction: column; justify-content: space-between;
    position: fixed; inset: 0 auto 0 0; width: 44%;
    padding: 40px 56px; color: #fff; overflow: hidden;
    background:
      radial-gradient(700px 420px at 110% -10%, rgba(233,114,76,.45), transparent 60%),
      radial-gradient(500px 360px at -20% 110%, rgba(253,208,94,.18), transparent 60%),
      #1C1917;
  }
  .login-screen { margin-left: 44%; background: var(--surface); }
  .login-screen .login-card { border: 0; box-shadow: none; padding: 8px 0; }
  .login-screen .brand { display: none; }
}
.auth-side-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; }
.auth-side-brand img { width: 34px; height: 34px; border-radius: 9px; }
.auth-side-body { max-width: 440px; }
.auth-side-body h2 { font-size: 34px; line-height: 1.15; letter-spacing: -.03em; font-weight: 800; margin-bottom: 26px; }
.auth-side-body ul { list-style: none; display: grid; gap: 14px; margin-bottom: 40px; }
.auth-side-body li { display: flex; gap: 12px; align-items: center; font-size: 15.5px; color: rgba(255,255,255,.82); }
.auth-side-body li svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(233,114,76,.25); color: #FFB08F; stroke-width: 2.6; }
.auth-side-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 18px 20px; backdrop-filter: blur(6px); max-width: 360px; }
.asc-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: rgba(255,255,255,.75); }
.asc-row b { font-size: 26px; color: #fff; letter-spacing: -.02em; }
.asc-row.muted-row { font-size: 12.5px; color: rgba(255,255,255,.55); margin-top: 10px; }
.asc-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); margin-top: 10px; overflow: hidden; }
.asc-bar i { display: block; width: 92%; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #E9724C, #FDD05E); }
.auth-side-foot { font-size: 12.5px; color: rgba(255,255,255,.45); }

/* Giriş tipi sekmeleri */
.login-tabs { display: flex; gap: 4px; margin-bottom: 26px; background: var(--subtle); padding: 4px; border-radius: 11px; }
.login-tab {
  flex: 1; border: none; padding: 9px 10px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; background: transparent; color: var(--muted); transition: background .15s, color .15s, box-shadow .15s;
}
.login-tab:hover { color: var(--ink); }
.login-tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* Form alanları */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; color: var(--text); }
.input-row { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 13px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink);
  outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #C9C1B8; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--primary-ring); }
.field textarea { resize: vertical; min-height: 84px; }
.input-row input { padding-right: 70px; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; padding: 6px 8px; border-radius: 6px; }
.eye:hover { background: var(--subtle); color: var(--ink); }
.error { color: var(--red); background: var(--red-bg); border: 1px solid #F6CFCA; border-radius: var(--radius-sm); padding: 10px 13px; font-size: 13.5px; margin-bottom: 16px; }
.notice { background: var(--green-bg); border: 1px solid #C8E6D5; color: var(--green); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13.5px; line-height: 1.55; margin-bottom: 16px; }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 20px; line-height: 1.6; }

.alt-action { text-align: center; font-size: 14px; color: var(--muted); margin-top: 22px; }
.linklike {
  background: none; border: none; padding: 0; font: inherit; font-weight: 600;
  color: var(--primary); cursor: pointer; text-decoration: none;
}
.linklike:hover { text-decoration: underline; text-underline-offset: 3px; }
.check-row {
  display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 20px;
  font-size: 13px; color: var(--muted); line-height: 1.55; cursor: pointer;
}
.check-row input { width: 17px; height: 17px; margin-top: 2px; flex-shrink: 0; accent-color: var(--primary); cursor: pointer; }
.check-row a { color: var(--text); font-weight: 600; }

.code-input { text-align: center; font-size: 24px !important; letter-spacing: 10px; font-weight: 800; }

/* Kurulum sihirbazı */
.setup-card { max-width: 560px; }
.setup-steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.setup-steps span { font-size: 12.5px; font-weight: 600; color: var(--faint); background: var(--subtle); border-radius: 999px; padding: 4px 11px; }
.setup-steps span.done { color: var(--green); background: var(--green-bg); }
.setup-steps span.on { color: var(--primary); background: var(--primary-soft); }
.type-seg-row { display: flex; gap: 10px; }
.type-seg {
  flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); cursor: pointer; font-family: inherit; color: var(--muted); text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.type-seg svg { color: var(--faint); margin-bottom: 6px; width: 20px; height: 20px; }
.type-seg b { font-size: 15px; color: var(--ink); }
.type-seg span { font-size: 12.5px; }
.type-seg:hover { border-color: #C9C1B8; }
.type-seg.active { border-color: var(--brand); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-ring); }
.type-seg.active svg { color: var(--brand); }

.blocks-label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.blocks-hint { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 14px; }
.block-row { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.block-row input {
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 42px;
  font-size: 14px; font-family: inherit; background: var(--surface); outline: none; min-width: 0;
}
.block-row input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--primary-ring); }
.block-row .b-name { flex: 2; }
.block-row .b-num { flex: 1; }
.block-row .b-del {
  width: 36px; height: 36px; flex-shrink: 0; border: none; border-radius: 9px;
  background: var(--red-bg); color: var(--red); font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.block-row .b-del:disabled { background: var(--subtle); color: var(--faint); cursor: default; }
.add-block {
  width: 100%; padding: 11px; margin-bottom: 18px; border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
  font-weight: 600; font-size: 14px; font-family: inherit; cursor: pointer;
}
.add-block:hover { background: var(--subtle); border-color: #C9C1B8; }
@media (max-width: 480px) {
  .block-row { flex-wrap: wrap; }
  .block-row .b-name { flex: 1 1 100%; }
}

/* ============================================================
   BUTONLAR
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 8px 16px; border: 1px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--primary); color: #fff; font-size: 14px; font-weight: 600; font-family: inherit; line-height: 1.2;
  box-shadow: var(--shadow-xs), inset 0 1px 0 rgba(255,255,255,.12);
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn .ic { width: 16px; height: 16px; }
.btn-block { width: 100%; min-height: 46px; font-size: 15px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-radius: 9px; }
.btn-xs { min-height: 0; padding: 3px 8px; font-size: 12px; border-radius: 7px; border-width: 1px; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--subtle); color: var(--ink); border-color: #C9C1B8; }
.btn-red { background: var(--red); } .btn-red:hover { background: #912018; }
.btn-green { background: var(--green); } .btn-green:hover { background: #17613D; }
.btn-outline-red { background: var(--surface); border-color: #F0C3BD; color: var(--red); box-shadow: var(--shadow-xs); }
.btn-outline-red:hover { background: var(--red-bg); color: var(--red); }

/* 0023 — bir daireye iki sakin: daire satırında üye listesi */
.uye-satir { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.9; }
.uye-satir + .uye-satir { margin-top: 4px; padding-top: 4px; border-top: 1px dashed var(--line); }
.t-muted { color: var(--muted); }

/* ============================================================
   UYGULAMA İSKELETİ
   ============================================================ */
.app { display: flex; min-height: 100vh; }

/* Kenar menü */
.sidebar {
  width: var(--sidebar-w); flex-shrink: 0; background: var(--surface); border-right: 1px solid var(--line);
  padding: 18px 12px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.side-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -.3px; padding: 2px 10px 18px; }
.side-brand .home { width: 30px; height: 30px; }
.side-nav { display: flex; flex-direction: column; gap: 1px; flex: 1; overflow-y: auto; margin: 0 -4px; padding: 0 4px; scrollbar-width: thin; }
.side-nav a {
  display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; position: relative;
  transition: background .12s, color .12s;
}
.side-nav a svg { color: var(--faint); transition: color .12s; }
.side-nav a:hover { background: var(--subtle); color: var(--ink); }
.side-nav a:hover svg { color: var(--muted); }
.side-nav a.active { background: var(--primary-soft); color: var(--ink); font-weight: 600; }
.side-nav a.active svg { color: var(--brand); }
.side-nav a.active::before { content: ""; position: absolute; left: -4px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.side-nav .side-group {
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  color: var(--faint); padding: 18px 10px 6px;
}
.side-sep { height: 1px; background: var(--line); margin: 14px 6px 10px; }
.side-logout {
  display: flex; align-items: center; gap: 11px; margin-top: 10px; padding: 9px 10px; border-radius: 9px;
  border: none; background: transparent; color: var(--muted); font-weight: 500; cursor: pointer; font-family: inherit; font-size: 14px; text-align: left;
}
.side-logout:hover { background: var(--red-bg); color: var(--red); }

/* Üst çubuk */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 10px; height: 64px; padding: 0 28px;
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.hamburger { order: 0; display: none; background: none; border: none; cursor: pointer; color: var(--ink); padding: 6px; border-radius: 8px; }
.hamburger:hover { background: var(--subtle); }
.hamburger svg { width: 22px; height: 22px; }
.top-building, .topbar-selector { order: 1; flex: 1; min-width: 0; }
.top-name { display: block; font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-addr { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick { order: 2; position: relative; }
.help-mascot { order: 3; }
.top-user { order: 4; display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text); font-weight: 600; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line); }
.top-user:empty { display: none; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; flex-shrink: 0; }
.top-user-name { max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Hızlı işlem menüsü */
.quick-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 300px; z-index: 40;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: var(--shadow-lg);
}
.quick-menu button {
  width: 100%; display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 10px; border: none; background: none; border-radius: 10px; cursor: pointer; font-family: inherit; color: var(--ink);
}
.quick-menu button:hover { background: var(--subtle); }
.quick-menu button svg { width: 34px; height: 34px; padding: 8px; border-radius: 9px; background: var(--primary-soft); color: var(--brand); }
.quick-menu b { display: block; font-size: 14px; font-weight: 600; }
.quick-menu small { display: block; font-size: 12.5px; color: var(--muted); }

/* Yardım düğmesi (eski "maskot" id'si korunuyor) */
.help-mascot {
  display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 12px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; color: var(--text); box-shadow: var(--shadow-xs);
  transition: background .15s, border-color .15s;
}
.help-mascot:hover { background: var(--subtle); border-color: #C9C1B8; }
.help-mascot svg { color: var(--muted); }
.help-mascot.pulse { animation: help-btn-pulse 1.6s ease-out 3; }
@keyframes help-btn-pulse { 0% { box-shadow: 0 0 0 0 rgba(233,114,76,.5); } 100% { box-shadow: 0 0 0 12px rgba(233,114,76,0); } }

.content { padding: 32px; max-width: 1240px; width: 100%; margin: 0 auto; }

/* ============================================================
   ORTAK BİLEŞENLER
   ============================================================ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.page-sub { color: var(--muted); font-size: 14px; margin-top: 3px; }
.page-head .tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-xs); margin-bottom: 20px;
}
.card h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 14px; letter-spacing: -.01em; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-xs); }
.stat .val { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat.accent-bank { border-top: 3px solid var(--blue); }
.stat.accent-cash { border-top: 3px solid var(--green); }
.stat.accent-fund { border-top: 3px solid var(--amber); }

/* Tablolar */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th {
  text-align: left; padding: 10px 14px; font-size: 12px; font-weight: 600; color: var(--muted);
  background: var(--subtle); border-bottom: 1px solid var(--line); white-space: nowrap;
}
th:first-child { border-top-left-radius: 9px; } th:last-child { border-top-right-radius: 9px; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
tbody tr { transition: background .1s; }
tbody tr:hover td { background: #FBFAF8; }
tr:last-child td { border-bottom: none; }
.t-empty { text-align: center; color: var(--muted); padding: 36px; }
.t-right { text-align: right; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; }

/* Blok rozeti: çok bloklu sitede satırın hangi binaya ait olduğunu söyler.
   Tek bloklu sitede hiç basılmaz (blokRozeti boş string döner). */
.blok-rozet {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  border-radius: 6px; background: var(--subtle); color: var(--text); border: 1px solid var(--line);
  font-size: 11.5px; font-weight: 600; vertical-align: middle; white-space: nowrap;
}
.blok-rozet-site { background: var(--blue-bg); color: var(--blue); border-color: #D3E3F5; }

.b-green { background: var(--green-bg); color: var(--green); }
.b-red { background: var(--red-bg); color: var(--red); }
.b-amber { background: var(--amber-bg); color: var(--amber); }
.b-blue { background: var(--blue-bg); color: var(--blue); }
.b-gray { background: var(--subtle); color: var(--muted); }

.chip-toggle { border: none; cursor: pointer; font-family: inherit; }
.income { color: var(--green); font-weight: 600; }
.expense { color: var(--red); font-weight: 600; }

.search, select.mini {
  min-height: 38px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit; background: var(--surface); color: var(--ink); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search { min-width: 220px; }
select.mini { cursor: pointer; }
.search:focus, select.mini:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--primary-ring); }

.info-banner { background: var(--blue-bg); border: 1px solid #D3E3F5; border-radius: 12px; padding: 12px 15px; font-size: 13.5px; color: var(--ink); margin-bottom: 18px; line-height: 1.55; }

.list-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: none; }
.list-row .lr-body { flex: 1; min-width: 0; }
.list-row .lr-title { font-weight: 600; }
.list-row .lr-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.list-row .lr-text { font-size: 14px; color: var(--text); margin-top: 6px; white-space: pre-wrap; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(28,25,23,.42); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; animation: fade .15s ease; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .18s ease; }
.modal.genis { max-width: 780px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-head h3 { font-size: 17px; font-weight: 600; }
.modal-close { width: 32px; height: 32px; display: grid; place-items: center; background: none; border: none; border-radius: 8px; font-size: 15px; cursor: pointer; color: var(--muted); }
.modal-close:hover { background: var(--subtle); color: var(--ink); }
.modal-body { padding: 22px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 18px 12px 14px; border-radius: 12px; font-weight: 500; font-size: 14px; z-index: 200; box-shadow: var(--shadow-lg); max-width: calc(100vw - 32px); animation: toast-in .2s ease; }
.toast svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: #2F9E6A; color: #fff; stroke-width: 3; }
.toast.err { background: #2A1714; }
.toast.err svg { background: var(--red); stroke-width: 2.4; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- Boş durum ---------- */
.empty { text-align: center; padding: 44px 24px; }
.empty-ico { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; background: var(--subtle); color: var(--muted); display: grid; place-items: center; }
.empty-ico svg { width: 24px; height: 24px; }
.empty h4 { font-size: 15.5px; font-weight: 600; margin-bottom: 4px; }
.empty p { color: var(--muted); font-size: 14px; max-width: 420px; margin: 0 auto; line-height: 1.55; }
.empty-act { margin-top: 18px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.card > .empty { padding: 28px 12px; }

/* ---------- Ortak küçük parçalar ---------- */
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); margin: 26px 0 10px; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 8px; cursor: pointer; color: var(--muted); transition: all .12s; }
.icon-btn:hover { background: var(--subtle); color: var(--ink); }
.icon-btn.danger:hover { background: var(--red-bg); color: var(--red); border-color: #F0C3BD; }
.icon-btn svg { width: 16px; height: 16px; }
.hint { font-size: 13px; color: var(--muted); line-height: 1.55; }
.inline-ico { display: inline-flex; align-items: center; gap: 6px; }
.inline-ico svg { width: 16px; height: 16px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h3 { margin: 0; }
.ico-tile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: var(--subtle); color: var(--muted); }
.ico-tile svg { width: 20px; height: 20px; }
.ico-tile.brand { background: var(--primary-soft); color: var(--brand); }
.ico-tile.green { background: var(--green-bg); color: var(--green); }
.ico-tile.red { background: var(--red-bg); color: var(--red); }
.ico-tile.amber { background: var(--amber-bg); color: var(--amber); }
.ico-tile.blue { background: var(--blue-bg); color: var(--blue); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- Mobil iskelet ---------- */
@media (max-width: 900px) {
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: block; }
  .topbar { padding: 0 14px; gap: 8px; }
  .content { padding: 20px 16px; }
  .grid-2 { grid-template-columns: 1fr; }
  .backdrop { position: fixed; inset: 0; background: rgba(28,25,23,.4); z-index: 55; }
  .top-user-name, .help-label, .quick-btn span { display: none; }
  .top-user { padding-left: 8px; }
  .quick-menu { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
}

/* ============================================================
   GENEL BAKIŞ
   ============================================================ */
.dash-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.dash-skeleton { grid-column: 1/-1; height: 104px; border-radius: var(--radius);
  background: linear-gradient(90deg, #EFECE8 25%, #F6F4F1 50%, #EFECE8 75%);
  background-size: 200% 100%; animation: dash-shimmer 1.2s infinite; }
@keyframes dash-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.kpi { display: flex; flex-direction: column; gap: 4px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  font-family: inherit; box-shadow: var(--shadow-xs); position: relative;
  transition: border-color .15s, box-shadow .15s; }
.kpi::after { content: "→"; position: absolute; right: 18px; top: 16px; color: var(--faint); font-size: 15px; transition: transform .15s, color .15s; }
.kpi:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.kpi:hover::after { transform: translateX(3px); color: var(--brand); }
.kpi-lbl { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-val { font-size: 26px; font-weight: 700; color: var(--ink); line-height: 1.2; letter-spacing: -.025em; margin-top: 4px; }
.kpi-sub { font-size: 12.5px; color: var(--muted); }
.kpi-val.k-green { color: var(--green); }
.kpi-val.k-amber { color: var(--amber); }
.kpi-val.k-red   { color: var(--red); }

.dash-todo { margin-bottom: 20px; }
.dash-todo-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-todo-head h3 { margin: 0; }

/* Her satır bir işi ve o işi yapacağın ekrana giden butonu taşır. */
.todo-row { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; transition: border-color .15s, background .15s; }
.todo-row:hover { border-color: var(--line-strong); background: #FCFBFA; }
.todo-row:last-child { margin-bottom: 0; }
.todo-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: var(--subtle); color: var(--muted); font-size: 17px; line-height: 1; }
.todo-row.t-kirmizi .todo-ico { background: var(--red-bg); color: var(--red); }
.todo-row.t-sari .todo-ico { background: var(--amber-bg); color: var(--amber); }
.todo-row.t-bilgi .todo-ico { background: var(--blue-bg); color: var(--blue); }
.todo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.todo-text strong { font-size: 14px; font-weight: 600; }
.todo-text .muted { font-size: 13px; line-height: 1.45; }
.todo-row .btn { flex-shrink: 0; white-space: nowrap; }

.dash-clear { display: flex; align-items: center; gap: 15px; }
.clear-ico { width: 40px; height: 40px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; flex-shrink: 0; }
.clear-ico svg { stroke-width: 2.6; }

/* 3D site görünümü açma kartı */
.site-3d-toggle { width: 100%; display: flex; align-items: center; gap: 16px; text-align: left; cursor: pointer; font-family: inherit; color: var(--ink); }
.site-3d-toggle:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.s3-ico { width: 42px; height: 42px; border-radius: 11px; background: var(--subtle); color: var(--muted); display: grid; place-items: center; flex-shrink: 0; }
.s3-ico svg { width: 22px; height: 22px; }
.s3-text { flex: 1; min-width: 0; }
.s3-text b { display: block; font-size: 14.5px; font-weight: 600; }
.s3-text small { display: block; font-size: 13px; color: var(--muted); }

@media (max-width: 1100px) { .dash-kpi { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .dash-kpi { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; }
  .kpi::after { display: none; }
  .kpi-val { font-size: 20px; }
  .todo-row { flex-wrap: wrap; }
  .todo-row .btn { width: 100%; }
  .site-3d-toggle .btn { display: none; }
}

/* ---------- Bina detay kartı ---------- */
.overview-details-strip { margin: 0 0 20px; }
.detail-card {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  background: var(--surface); border-radius: var(--radius); padding: 20px 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow-xs);
}
.detail-card.active-building { border-color: var(--line); }
.detail-identity { display: flex; align-items: center; gap: 14px; min-width: 220px; flex: 1 1 240px; }
.detail-identity-text h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.detail-addr { font-size: 13px; display: block; margin-top: 2px; }
.detail-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.detail-tag { font-size: 12px; font-weight: 500; color: var(--text); background: var(--subtle); border: 1px solid var(--line); border-radius: 7px; padding: 2px 9px; }
.building-icon-3d { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft); color: var(--brand); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.building-icon-3d svg { width: 22px; height: 22px; }
.detail-stats-row { display: grid; grid-template-columns: repeat(4, minmax(88px, 1fr)); gap: 10px; flex: 2 1 380px; }
.detail-stat-box { background: var(--subtle); padding: 12px; border-radius: 11px; text-align: left; border: 1px solid transparent; }
.detail-stat-balance { background: var(--green-bg); }
.detail-stat-box .val { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.detail-stat-box .lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }
.detail-action { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.detail-managed-badge { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--green); background: var(--green-bg); border-radius: 9px; padding: 7px 12px; white-space: nowrap; }
@media (max-width: 768px) { .detail-stats-row { grid-template-columns: repeat(2, 1fr); } }

.topbar-selector { display: flex; align-items: center; gap: 10px; }
.building-dropdown {
  min-height: 36px; padding: 6px 12px; border: 1px solid var(--line-strong); border-radius: 9px;
  font-size: 14px; font-weight: 600; background: var(--surface); color: var(--ink);
  cursor: pointer; outline: none; font-family: inherit;
}
.building-dropdown:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--primary-ring); }
.top-building-info { display: flex; flex-direction: column; min-width: 0; }

/* ---------- 3D site maketi ---------- */
.canvas-card { position: relative; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-xs); overflow: hidden; height: 500px; margin-bottom: 20px; }
.canvas-card-wide { width: 100%; height: 600px; background: linear-gradient(180deg, #E6EDF2 0%, #EEF2EC 100%); }
@media (max-width: 768px) { .canvas-card-wide { height: 440px; } }
.canvas-legend { position: absolute; bottom: 14px; left: 18px; z-index: 5; display: flex; gap: 12px; flex-wrap: wrap; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 9px; padding: 6px 12px; font-size: 12px; font-weight: 500; color: var(--ink); pointer-events: none; }
#canvas-container { width: 100%; height: 100%; outline: none; cursor: grab; }
#canvas-container:active { cursor: grabbing; }
.canvas-overlay-ui { position: absolute; top: 16px; left: 16px; right: 16px; pointer-events: none; z-index: 5; }
.canvas-overlay-ui * { pointer-events: auto; }
.site-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.site-edit-tools { display: flex; gap: 6px; flex-wrap: wrap; background: rgba(255,255,255,.94); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--shadow-sm); }
.site-hint { font-size: 12.5px; background: rgba(255,255,255,.9); padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line); display: inline-block; }

/* ============================================================
   DEMİRBAŞ, KARAR, GÜVENLİK
   ============================================================ */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 16px; }
.asset-card { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; box-shadow: var(--shadow-xs); position: relative; }
/* Garanti rozeti akışta: başlığın üstünde kendi satırında durur. */
.asset-badge { display: inline-block; margin-bottom: 10px; }

.security-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 22px; background: var(--ink); color: #fff; border-radius: var(--radius); margin-bottom: 24px; }
.security-back-btn { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); padding: 8px 14px; color: #fff; font-weight: 600; font-family: inherit; border-radius: 9px; cursor: pointer; transition: background .15s; }
.security-back-btn:hover { background: rgba(255,255,255,.22); }
.security-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; }
@media (max-width: 992px) { .security-grid { grid-template-columns: 1fr; } }
.security-box { background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); padding: 24px; box-shadow: var(--shadow-xs); }
.quick-action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
.action-card { background: var(--surface); border: 1px solid var(--line-strong); padding: 18px 16px; border-radius: 12px; text-align: center; cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.action-card:hover { border-color: var(--brand); background: var(--primary-soft); box-shadow: var(--shadow-sm); }
.active-visitor-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.active-visitor-row:last-child { border-bottom: none; }
.visitor-info-left { display: flex; flex-direction: column; }
.visitor-badge { background: var(--subtle); color: var(--text); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; display: inline-block; margin-right: 6px; }

/* ===== Kurallar, arızalar, kasa, duyurular ===== */
.cat-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; font-family: inherit; color: var(--text); cursor: pointer; transition: all .12s; }
.cat-chip:hover { border-color: #C9C1B8; }
.cat-chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.prio-row { display: flex; gap: 10px; }
.prio-chip { flex: 1; border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; padding: 11px; font-size: 14px; font-weight: 600; font-family: inherit; color: var(--muted); cursor: pointer; }
.prio-chip.active { border-color: var(--brand); color: var(--ink); background: var(--primary-soft); box-shadow: 0 0 0 3px var(--primary-ring); }

.rule-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rule-card:last-child { border-bottom: none; }
.rule-icon { width: 42px; height: 42px; border-radius: 11px; background: var(--subtle); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.tpl-group { margin-top: 16px; }
.tpl-group-title { font-weight: 600; font-size: 13px; margin-bottom: 8px; color: var(--muted); }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-chip { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 6px 13px; font-size: 13px; font-weight: 500; font-family: inherit; color: var(--ink); cursor: pointer; }
.tpl-chip:hover { background: var(--subtle); border-color: #C9C1B8; }
.tpl-crit { color: var(--red); font-weight: 800; margin-left: 2px; }

.fault-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; box-shadow: var(--shadow-xs); }
.fault-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fault-actions { display: flex; gap: 8px; margin-top: 14px; justify-content: flex-end; flex-wrap: wrap; }

.wallet-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: center; margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.wallet-card.neg { border-color: #F0C3BD; background: var(--red-bg); }
.wallet-head { display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.wallet-amount { font-size: 34px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.wallet-card.neg .wallet-amount { color: var(--red); }
.wallet-warn { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--red); }

.pending-alert-card { background: var(--amber-bg); border: 1px solid #F1D9A8; border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.pending-alert-head { font-weight: 700; color: var(--amber); margin-bottom: 10px; }
.pending-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid rgba(161,92,7,.18); }

.month-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.month-nav-inner { display: flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 3px; box-shadow: var(--shadow-xs); }
.month-btn { border: none; background: transparent; font-size: 17px; font-weight: 600; color: var(--muted); cursor: pointer; padding: 3px 11px; border-radius: 7px; font-family: inherit; }
.month-btn:hover { background: var(--subtle); color: var(--ink); }
.month-label { font-weight: 600; font-size: 14px; min-width: 120px; text-align: center; }

.seg-tabs { display: flex; background: var(--subtle); border-radius: 11px; padding: 4px; margin-bottom: 16px; gap: 4px; }
.seg { flex: 1; border: none; background: transparent; padding: 8px; border-radius: 8px; font-size: 13.5px; font-weight: 600; font-family: inherit; color: var(--muted); cursor: pointer; transition: all .12s; }
.seg:hover { color: var(--ink); }
.seg.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

.tx-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; margin-bottom: 8px; box-shadow: var(--shadow-xs); }
.tx-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 700; flex-shrink: 0; }
.tx-icon.income { background: var(--green-bg); color: var(--green); }
.tx-icon.expense { background: var(--red-bg); color: var(--red); }
.tx-info { flex: 1; min-width: 0; }
.tx-desc { font-weight: 600; font-size: 14.5px; }
.tx-cat { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tx-date { font-size: 12px; color: var(--faint); margin-top: 2px; }
.tx-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tx-amount { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.tx-amount.income { color: var(--green); }
.tx-amount.expense { color: var(--red); }

.ann-card { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; box-shadow: var(--shadow-xs); }
.ann-card[draggable="true"] { cursor: grab; }
.ann-card.dragging { opacity: .45; border: 1px dashed var(--brand); }
.drag-handle { font-size: 18px; color: var(--faint); cursor: grab; padding: 4px 2px 0 0; user-select: none; }
.ann-icon { width: 40px; height: 40px; border-radius: 11px; background: var(--subtle); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.board-badge { font-size: 11.5px; font-weight: 600; color: var(--blue); background: var(--blue-bg); border-radius: 6px; padding: 2px 8px; }
.board-badge.off { color: var(--muted); background: var(--subtle); }

/* Aidat ödeme onay kutusu: kutu boşken ödenmemiş olduğu tek bakışta anlaşılır. */
.pay-check {
  display: inline-flex; align-items: center; gap: 9px; min-height: 34px;
  padding: 6px 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--muted);
  transition: background .15s, border-color .15s, color .15s; white-space: nowrap;
}
.pay-check:hover { border-color: var(--green); color: var(--green); }
.pay-check input { width: 17px; height: 17px; accent-color: var(--green); cursor: pointer; margin: 0; }
.pay-check.is-paid { background: var(--green-bg); border-color: #B7DEC8; color: var(--green); }
.pay-check input:disabled { cursor: default; }

/* Abonelik */
.sub-breakdown { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.sub-line { display: flex; justify-content: space-between; gap: 16px; padding: 11px 15px; font-size: 14px; border-bottom: 1px solid var(--line); }
.sub-line:last-child { border-bottom: none; }
.sub-line-total { background: var(--subtle); font-weight: 700; }
.sub-total-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 4px 0 14px; padding: 16px 18px; border-radius: 12px; background: var(--primary-soft); border: 1px solid #F8D9CC; }
.sub-total-row span { font-weight: 600; font-size: 14px; }
.sub-total-row strong { font-size: 26px; letter-spacing: -.03em; }

/* Güvenlik raporu */
.sec-report-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.sec-report-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sec-report-tools input[type="date"] { min-height: 36px; padding: 6px 11px; border: 1px solid var(--line-strong); border-radius: 9px; font-family: inherit; font-size: 13.5px; background: var(--surface); color: var(--ink); outline: none; }
.sec-report-tools input[type="date"]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--primary-ring); }
.sec-report-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 16px; }
.sec-report-summary > div { background: var(--subtle); border-radius: 11px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.sec-report-summary strong { font-size: 22px; letter-spacing: -.02em; }
.sec-report-summary span { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ---------- Zengin metin editörü (karar defteri) ---------- */
.rich-editor { border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--surface); }
.rich-editor:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--primary-ring); }
.rich-toolbar { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; padding: 6px 8px; background: var(--subtle); border-bottom: 1px solid var(--line); }
.rich-btn { min-width: 30px; height: 30px; padding: 0 9px; border: none; border-radius: 7px; background: transparent; color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .12s; }
.rich-btn:hover { background: var(--surface); }
.rich-btn:active { background: var(--line); }
.rich-sep { width: 1px; height: 20px; background: var(--line-strong); margin: 0 4px; }
.rich-area { min-height: 190px; max-height: 46vh; overflow-y: auto; padding: 14px 16px; font-size: 14.5px; line-height: 1.65; outline: none; }
.rich-area:empty::before { content: attr(data-placeholder); color: var(--faint); }
.rich-area h3, .rich-content h3 { font-size: 16.5px; font-weight: 700; margin: 14px 0 6px; }
.rich-area h3:first-child, .rich-content h3:first-child { margin-top: 0; }
.rich-area ul, .rich-area ol, .rich-content ul, .rich-content ol { margin: 8px 0 8px 22px; }
.rich-area li, .rich-content li { margin-bottom: 4px; }
.rich-area p, .rich-content p { margin-bottom: 8px; }
.rich-content { font-size: 14.5px; line-height: 1.65; }

/* ---------- Karar defteri ---------- */
.decision-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.decision-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-xs); }
.decision-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.decision-top { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.decision-date { flex-shrink: 0; width: 60px; text-align: center; padding: 8px 0; background: var(--subtle); border-radius: 11px; line-height: 1.15; }
.decision-date .dd-day { display: block; font-size: 21px; font-weight: 700; }
.decision-date .dd-mon { display: block; font-size: 12px; font-weight: 600; color: var(--brand); }
.decision-date .dd-year { display: block; font-size: 11px; color: var(--muted); }
.decision-head { flex: 1; min-width: 180px; }
.decision-head h3 { font-size: 16.5px; font-weight: 700; margin: 2px 0 4px; }
.decision-doc { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; }
.decision-doc:hover { text-decoration: underline; }
.decision-actions { display: flex; gap: 8px; flex-shrink: 0; }
.decision-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.decision-empty { text-align: center; padding: 46px 24px; }
@media (max-width: 600px) {
  .decision-actions { width: 100%; }
  .decision-actions .btn { flex: 1; }
}

/* ---------- Abonelik uyarı şeridi ---------- */
.access-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 20px; border-radius: var(--radius); border: 1px solid #F0C3BD; background: var(--red-bg); color: var(--ink); }
.access-banner.warning { background: var(--amber-bg); border-color: #F1D9A8; }
.access-banner.locked { background: #FBE1DD; border-color: #EBA89F; }
.access-banner .ab-icon { font-size: 20px; line-height: 1; flex-shrink: 0; }
.access-banner .ab-text { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 3px; }
.access-banner .ab-text strong { font-size: 14.5px; font-weight: 700; }
.access-banner .ab-text span { font-size: 13px; color: var(--text); line-height: 1.5; }
.access-banner .ab-cta { flex-shrink: 0; min-height: 36px; padding: 8px 16px; border: none; border-radius: 9px; background: var(--red); color: #fff; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: opacity .15s; }
.access-banner.warning .ab-cta { background: var(--ink); }
.access-banner .ab-cta:hover { opacity: .88; }
@media (max-width: 620px) { .access-banner .ab-cta { width: 100%; } }

/* Daireler tablosunda arsa payı girişi */
.share-input { width: 84px; min-height: 32px; padding: 5px 9px; font-family: inherit; font-size: 13px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); outline: none; transition: border-color .15s, background .3s; }
.share-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--primary-ring); }
.share-input.saved { background: var(--green-bg); border-color: var(--green); }

/* Kasa mutabakatsızlık uyarısı */
.drift-card { background: var(--amber-bg); border: 1px solid #F1D9A8; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 20px; }
.drift-head { font-size: 15px; font-weight: 700; }
.drift-rows { display: flex; flex-direction: column; gap: 6px; }
.drift-rows > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; padding: 7px 12px; background: rgba(255,255,255,.65); border-radius: 8px; }

/* ============================================================
   BELGE MERKEZİ
   ============================================================ */
.rep-group { font-size: 12.5px; letter-spacing: .02em; color: var(--muted); margin: 26px 0 12px; font-weight: 600; }
.rep-group:first-of-type { margin-top: 4px; }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rep-card { display: flex; flex-direction: column; margin-bottom: 0; }
.rep-card h3 { font-size: 15.5px; margin: 0 0 6px; }
.rep-card > .muted { font-size: 13px; line-height: 1.5; margin-bottom: 14px; flex: 1; }
.rep-card .grid-2 { margin-bottom: 14px; }
.rep-card .btn-block { margin-top: auto; }
.rep-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--subtle); display: grid; place-items: center; font-size: 19px; line-height: 1; margin-bottom: 12px; }
.rep-card-wide { grid-column: 1 / -1; }

/* ============================================================
   YARDIM PANELİ (sağdan kayan) + KURULUM REHBERİ
   z-index 90: modal'ın (100) altında, sidebar'ın (60) üstünde.
   ============================================================ */
.help-drawer { position: fixed; top: 0; right: 0; height: 100vh; width: 400px; max-width: 100vw; background: var(--surface);
  z-index: 90; transform: translateX(100%); transition: transform .22s; box-shadow: var(--shadow-lg); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; }
.help-drawer.open { transform: translateX(0); }
.help-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.help-drawer-head h3 { margin: 0; font-size: 16px; font-weight: 600; }
.help-drawer-body { flex: 1; overflow-y: auto; padding: 18px 20px; }
.help-ozet { font-size: 14px; color: var(--text); line-height: 1.6; margin-bottom: 16px; }
.help-grup { font-size: 12px; color: var(--muted); font-weight: 600; margin: 16px 0 8px; }
.help-adim { display: flex; gap: 11px; align-items: flex-start; padding: 11px 12px; border-radius: 11px; border: 1px solid var(--line);
  margin-bottom: 8px; background: var(--surface); transition: border-color .12s, background .12s; }
.help-adim.tikla { cursor: pointer; }
.help-adim.tikla:hover { border-color: var(--brand); background: var(--primary-soft); }
.help-adim-no { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px; }
.help-adim-text { font-size: 13.5px; line-height: 1.5; }
.help-adim-git { display: block; font-size: 12.5px; color: var(--primary); font-weight: 600; margin-top: 3px; }
.help-backdrop { position: fixed; inset: 0; background: rgba(28,25,23,.25); z-index: 85; }
.help-foot { padding: 12px 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
@media (max-width: 560px) { .help-drawer { width: 100vw; } }

/* Rehberde bir adıma tıklayınca sayfadaki ilgili alan birkaç kez parlar. */
.help-pulse { animation: help-pulse 1.1s ease-out 3; }
@keyframes help-pulse { 0% { box-shadow: 0 0 0 0 rgba(233,114,76,.7); } 100% { box-shadow: 0 0 0 12px rgba(233,114,76,0); } }

/* Kurulum kartı: Genel Bakış'ta, uyarıların yerinde. */
.kurulum-card { margin-bottom: 20px; border-color: #F3D2C4; background: linear-gradient(180deg, #FFFBF9, var(--surface) 120px); }
.kurulum-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kurulum-head h3 { margin: 0; }
.kurulum-sub { font-size: 13.5px; color: var(--muted); margin: 4px 0 14px; line-height: 1.55; }
.kurulum-bar { height: 8px; border-radius: 999px; background: var(--subtle); overflow: hidden; margin-bottom: 6px; }
.kurulum-bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #F29B6E); transition: width .3s; }
.kurulum-grup { font-size: 12px; color: var(--muted); font-weight: 600; margin: 16px 0 8px; }
.todo-row.t-tamam { background: var(--surface); }
.todo-row.t-tamam .todo-ico { background: var(--green-bg); color: var(--green); }
.todo-row.t-tamam .todo-text strong { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.todo-row.t-bekle .todo-ico { background: var(--primary-soft); color: var(--brand); }
.kurulum-kod { font-weight: 700; letter-spacing: 1px; font-size: 14px; }
.kurulum-foot { display: flex; justify-content: flex-end; margin-top: 10px; }
.kurulum-mini { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kurulum-mini .kurulum-bar { flex: 1; min-width: 120px; margin: 0; }
.kurulum-bar.dolu > div { background: linear-gradient(90deg, var(--green), #3FA374); }
.kurulum-elle { font-size: 12px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.kurulum-elle a { color: var(--blue); font-weight: 600; text-decoration: none; }
.kurulum-elle a:hover { text-decoration: underline; }
@media (max-width: 560px) { .kurulum-elle { white-space: normal; } }

/* ---------- Yönetim takvimi: görev sayfası ---------- */
.geri-link { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-decoration: none; margin-bottom: 6px; }
.geri-link:hover { color: var(--ink); }
.seri-satir { cursor: pointer; }
.seri-satir:hover td { background: var(--subtle); }
.plan-ust { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.yil-secici { display: inline-flex; align-items: center; gap: 6px; }
.yil-secici strong { font-size: 17px; min-width: 60px; text-align: center; }
.yil-secici .btn { padding: 4px 10px; min-height: 32px; }
.plan-legend { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.plan-legend span { display: inline-flex; align-items: center; gap: 5px; }
.plan-legend i { font-style: normal; }
.ay-nokta { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; font-weight: 700; line-height: 1; }
.ay-nokta.ay-yapildi { background: var(--green); color: #fff; }
.ay-nokta.ay-planli { background: var(--amber-bg); color: var(--amber); border: 2px solid var(--amber); }
.ay-nokta.ay-gecikti { background: var(--red); color: #fff; }
.ay-izgara { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ay-kutu { border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; min-height: 96px; text-align: center; background: var(--surface); }
.ay-kutu .ay-ad { font-size: 12px; font-weight: 600; color: var(--muted); }
.ay-kutu .ay-isaret { width: 30px; height: 30px; border-radius: 50%; margin: 8px auto 6px; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; }
.ay-kutu.ay-bos .ay-isaret { width: 8px; height: 8px; background: var(--line); margin: 19px auto 17px; }
.ay-kutu.ay-yapildi { border-color: #B7DEC8; background: var(--green-bg); }
.ay-kutu.ay-yapildi .ay-isaret { background: var(--green); color: #fff; }
.ay-kutu.ay-planli { border-color: #F1D9A8; background: var(--amber-bg); }
.ay-kutu.ay-planli .ay-isaret { background: var(--surface); color: var(--amber); border: 2px solid var(--amber); }
.ay-kutu.ay-gecikti { border-color: #F0C3BD; background: var(--red-bg); }
.ay-kutu.ay-gecikti .ay-isaret { background: var(--red); color: #fff; }
.ay-kutu.ay-simdi { box-shadow: 0 0 0 3px var(--primary-ring); }
.ay-kutu .ay-alt { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
@media (max-width: 900px) { .ay-izgara { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .ay-izgara { grid-template-columns: repeat(3, 1fr); } }
.zaman { list-style: none; margin: 8px 0 0 8px; padding: 0; border-left: 2px solid var(--line); }
.zaman li { position: relative; padding: 4px 0 14px 18px; font-size: 13.5px; }
.zaman li::before { content: ''; position: absolute; left: -8px; top: 9px; width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); border: 2px solid var(--surface); }
.zaman li.z-yapildi::before { background: var(--green); }
.zaman li.z-planli::before  { background: var(--amber); }
.zaman li.z-gecikti::before { background: var(--red); }
.sablon-satir { display: grid; grid-template-columns: 24px 1fr 160px; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.sablon-satir:last-child { border-bottom: none; }
.sablon-satir.pasif { opacity: .55; }
.sablon-satir input[type=date] { padding: 7px 10px; border: 1px solid var(--line-strong); border-radius: 9px; font-family: inherit; font-size: 13px; }
.sablon-satir input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary); }
@media (max-width: 640px) {
  .sablon-satir { grid-template-columns: 24px 1fr; }
  .sablon-satir input[type=date] { grid-column: 2; }
}

/* Tablolar dar ekranda yatay kaydırılsın */
.card:has(> table) { overflow-x: auto; }

/* ============================================================
   EKRAN BİLEŞENLERİ (daireler, aidat, kasa…)
   ============================================================ */
.table-card { padding: 0; overflow: hidden; }
.table-card table { border-radius: 0; }
.table-card th:first-child, .table-card td:first-child { padding-left: 22px; }
.table-card th:last-child, .table-card td:last-child { padding-right: 22px; }
.table-card th { border-radius: 0 !important; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-toolbar .seg-tabs { margin: 0; }
.t-num { text-align: right; font-variant-numeric: tabular-nums; }
.apt-no { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 28px; padding: 0 8px; border-radius: 8px; background: var(--subtle); border: 1px solid var(--line); font-weight: 700; font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; background: var(--subtle); color: var(--text); border: 1px solid var(--line); }
.uye-satir { gap: 10px; }
.uye-ad { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; flex: 1; }
.uye-ad b { font-weight: 600; font-size: 14px; color: var(--ink); }
.uye-ad a, .uye-ad span { font-size: 12.5px; text-decoration: none; }

.search-wrap { position: relative; display: flex; align-items: center; }
.search-wrap svg { position: absolute; left: 11px; color: var(--faint); width: 16px; height: 16px; pointer-events: none; }
.search-wrap .search { padding-left: 34px; min-width: 260px; }
@media (max-width: 600px) { .search-wrap, .search-wrap .search { width: 100%; min-width: 0; } .page-head .tools { width: 100%; } }

.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.mini-stats > div { padding: 14px 20px; border-left: 1px solid var(--line); }
.mini-stats > div:first-child { border-left: 0; }
.mini-stats b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.mini-stats span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 600px) { .mini-stats { grid-template-columns: 1fr 1fr; } .mini-stats > div:nth-child(3) { border-left: 0; } .mini-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.invite-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 16px; box-shadow: var(--shadow-xs); }
.invite-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.invite-text b { font-size: 14.5px; font-weight: 600; }
.invite-text > span { font-size: 13px; color: var(--muted); line-height: 1.5; }
.invite-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; background: var(--primary-soft); color: var(--primary); padding: 1px 8px; border-radius: 6px; }
@media (max-width: 600px) { .invite-card { flex-wrap: wrap; } .invite-card .btn { width: 100%; } }

.collect-card { padding: 22px 24px; }
.collect-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 14px; }
.collect-val { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.collect-val small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.collect-pct { font-size: 28px; font-weight: 700; letter-spacing: -.03em; }
.collect-pct.k-green { color: var(--green); } .collect-pct.k-amber { color: var(--amber); } .collect-pct.k-red { color: var(--red); }
.progress { height: 10px; border-radius: 999px; background: var(--subtle); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2F9E6A, #45B37F); transition: width .4s; }
.collect-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--muted); align-items: center; }
.collect-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.g { background: var(--green); } .dot.a { background: #E0A43A; } .dot.n { background: var(--line-strong); } .dot.r { background: var(--red); }
.collect-debt { margin-left: auto; }
.collect-debt.red b { color: var(--red); }
@media (max-width: 700px) { .collect-debt { margin-left: 0; } }

.bulk-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bulk-text { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 2px; }
.bulk-text b { font-size: 14.5px; font-weight: 600; }
.bulk-form { display: flex; gap: 8px; }
.input-affix { position: relative; }
.input-affix input { width: 140px; min-height: 38px; padding: 8px 30px 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font: inherit; font-size: 14.5px; outline: none; background: var(--surface); }
.input-affix input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--primary-ring); }
.input-affix span { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }
@media (max-width: 600px) { .bulk-form { width: 100%; } .input-affix { flex: 1; } .input-affix input { width: 100%; } }

.seg-tabs.compact { display: inline-flex; flex: none; }
.seg-tabs.compact .seg { flex: none; padding: 6px 12px; }
.seg em { font-style: normal; font-size: 12px; color: var(--faint); margin-left: 4px; font-weight: 600; }
.seg.active em { color: var(--muted); }
select.mini.bare { border: 0; box-shadow: none; min-height: 30px; padding: 4px 6px; font-weight: 600; background: transparent; }
select.mini.bare:focus { box-shadow: none; }
.page-head .month-nav-inner { box-shadow: var(--shadow-xs); }
.kpi.static { cursor: default; }
.kpi.static::after { display: none; }
.kpi.static:hover { box-shadow: var(--shadow-xs); border-color: var(--line); }
.kpi.neg { background: var(--red-bg); border-color: #F0C3BD; }
.kpi-lbl.inline-ico svg { width: 15px; height: 15px; color: var(--faint); }
.tx-list { padding: 6px 12px; }
.tx-list .tx-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; margin: 0; padding: 13px 8px; }
.tx-list .tx-card:last-child { border-bottom: 0; }
.tx-icon svg { width: 18px; height: 18px; stroke-width: 2.2; }
.report-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.report-text { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 2px; }
.report-text b { font-size: 14.5px; font-weight: 600; }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pending-row { flex-wrap: wrap; }
.receipt-view { text-align: center; max-height: 70vh; overflow: auto; }
.receipt-view img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.t-num.income, .t-num.expense { font-weight: 600; }
.ann-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ann-meta .inline-ico svg { width: 14px; height: 14px; color: var(--faint); }
.ann-card { align-items: flex-start; }
.ann-card .lr-text { color: var(--text); }
.ann-card.on-board { border-left: 3px solid var(--brand); }
.info-banner.inline-ico { display: flex; align-items: flex-start; gap: 10px; }
.info-banner.inline-ico svg { color: var(--blue); margin-top: 1px; }
.fault-head { align-items: flex-start; gap: 14px; }
.fault-card.prio-high { border-left: 3px solid var(--red); }
.fault-card.prio-medium { border-left: 3px solid #E0A43A; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 420px; }
.modal-summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--subtle); border-radius: 12px; margin-bottom: 18px; }
.modal-summary > div { display: flex; flex-direction: column; }
.modal-summary b { font-weight: 600; }
.spinner.sm { width: 14px; height: 14px; border-width: 2px; display: inline-block; }
.btn .spinner.sm { border-color: rgba(255,255,255,.4); border-top-color: #fff; }
.tpl-chip { display: inline-flex; align-items: center; gap: 5px; }
.tpl-chip svg { width: 13px; height: 13px; color: var(--faint); }
.tpl-group-title.inline-ico svg { width: 15px; height: 15px; }
.rule-card .row-actions { flex-shrink: 0; }

/* Ayarlar: solda açıklama, sağda form (Stripe tarzı) */
.settings-sec { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 24px 0; border-top: 1px solid var(--line); }
.settings-sec:first-of-type, .invite-card + .settings-sec { border-top: 0; padding-top: 4px; }
.settings-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.settings-info p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.settings-sec .card { margin-bottom: 0; }
.card-foot { display: flex; justify-content: flex-end; gap: 8px; margin: 6px -24px -22px; padding: 14px 24px; border-top: 1px solid var(--line); background: #FCFBFA; border-radius: 0 0 var(--radius) var(--radius); }
.input-affix.wide input { width: 100%; }
.invite-card .building-dropdown { min-width: 180px; }
@media (max-width: 900px) { .settings-sec { grid-template-columns: 1fr; gap: 12px; } }
.rep-ico { color: var(--brand); background: var(--primary-soft); }
.rep-ico svg { width: 20px; height: 20px; }
.plan-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 20px; box-shadow: var(--shadow-xs); }
.plan-hero.bad { background: var(--red-bg); border-color: #F0C3BD; }
.plan-hero .ico-tile { width: 48px; height: 48px; }
.plan-hero-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 2px; }
.plan-hero-text b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.plan-hero-price { text-align: right; }
.plan-hero-price b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.sub-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.sub-grid .card { margin-bottom: 20px; }
@media (max-width: 900px) { .sub-grid { grid-template-columns: 1fr; } .plan-hero-price { text-align: left; } }
.asset-card { display: flex; flex-direction: column; gap: 14px; }
.asset-top { display: flex; align-items: flex-start; gap: 12px; }
.asset-top h3 { font-size: 15.5px; font-weight: 600; margin: 0 0 2px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; color: var(--ink); font-weight: 500; }
.btn-block-sm { width: 100%; margin-top: auto; }
/* Güvenlik modu */
.security-header { gap: 18px; padding: 18px 22px; background: radial-gradient(500px 200px at 0% 0%, rgba(233,114,76,.35), transparent 60%), var(--ink); }
.sec-brand { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 220px; }
.sec-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.1); display: grid; place-items: center; color: #FFB08F; }
.sec-ico svg { width: 22px; height: 22px; }
.sec-brand h2 { font-size: 18px; font-weight: 700; margin: 0; }
.sec-brand span { font-size: 13px; color: rgba(255,255,255,.65); }
.sec-count { text-align: center; padding: 0 18px; border-left: 1px solid rgba(255,255,255,.14); border-right: 1px solid rgba(255,255,255,.14); }
.sec-count b { display: block; font-size: 26px; font-weight: 700; line-height: 1.1; }
.sec-count span { font-size: 12px; color: rgba(255,255,255,.65); }
.security-back-btn { display: inline-flex; align-items: center; gap: 7px; }
.sec-title { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.sec-title svg { color: var(--muted); }
.action-card { display: flex; flex-direction: column; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); }
.action-card svg { width: 24px; height: 24px; color: var(--brand); }
.visitor-scroll { max-height: 520px; overflow-y: auto; margin: 0 -8px; padding: 0 8px; }
.active-visitor-row { gap: 12px; }
.v-name { font-weight: 600; font-size: 14.5px; }
.v-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 3px; }
.v-time { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.v-time svg { width: 14px; height: 14px; }
.plate { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 700; letter-spacing: .04em; border: 1.5px solid var(--ink); border-left: 6px solid #2F5BD3; border-radius: 4px; padding: 0 6px; color: var(--ink); background: #fff; }
@media (max-width: 700px) { .sec-count { border: 0; padding: 0; } .security-header { flex-wrap: wrap; } }
.access-banner .ab-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.7); color: var(--red); }
.access-banner.warning .ab-icon { color: var(--amber); }
.loading.inline { min-height: 40vh; }
.page-head > div:first-child { flex: 1 1 360px; min-width: 0; }
.page-sub { max-width: 620px; }
.page-head .tools { flex-shrink: 0; }
.table-card { overflow-x: auto; }
.table-card table { min-width: 640px; }
td .row-actions { flex-wrap: nowrap; }
td:last-child { white-space: nowrap; }
