:root {
  --cream: #FFF6E9;
  --peach: #FFE4C4;
  --tan: #D9B382;
  --brown: #8A6B45;
  --ink: #2B2620;
  --muted: #6E6357;
  --white: #FFFFFF;
  --line: #EFE2CF;
  --radius: 20px;
  --green: #2F855A;
  --green-bg: #E4F3EA;
  --red: #B23A2E;
  --red-bg: #FCE8E4;
  --amber: #B7791F;
  --amber-bg: #FBF0D9;
  --blue: #2C6E9B;
  --blue-bg: #E4EFF6;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; cursor: pointer; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; }
.brand .home, .side-brand .home { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--peach); font-size: 16px; }

/* ---------- Giriş ---------- */
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--peach) 100%); }
.login-card { width: 100%; max-width: 400px; background: var(--white); border-radius: var(--radius); padding: 32px; box-shadow: 0 20px 50px rgba(43,38,32,.12); }
.login-card h1 { font-size: 22px; margin-bottom: 6px; }
.login-card .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.input-row { position: relative; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 2px solid var(--line); border-radius: 13px; background: #FFFDF9; color: var(--ink); outline: none; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--tan); }
.field textarea { resize: vertical; min-height: 80px; }
.eye { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 700; }
.error { color: var(--red); background: var(--red-bg); border: 1px solid #F3C9C1; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 16px; }
.foot { text-align: center; color: var(--muted); font-size: 12px; margin-top: 20px; line-height: 1.6; }

/* ---- Kayıt / kurulum akışı ---- */
.alt-action { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 18px; }
.linklike {
  background: none; border: none; padding: 0; font: inherit; font-weight: 700;
  color: var(--brown); cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.linklike:hover { color: var(--ink); }
.check-row {
  display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 18px;
  font-size: 12.5px; color: var(--muted); line-height: 1.55; cursor: pointer;
}
.check-row input { width: 17px; height: 17px; margin-top: 1px; flex-shrink: 0; accent-color: var(--ink); cursor: pointer; }
.check-row a { color: var(--brown); font-weight: 600; }

.setup-card { max-width: 560px; max-height: 92vh; overflow-y: auto; }
.type-seg-row { display: flex; gap: 10px; }
.type-seg {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 8px; border: 2px solid var(--line); border-radius: 12px;
  background: #FFFDF9; cursor: pointer; font-family: inherit; color: var(--muted);
  transition: border-color .15s, background .15s, color .15s;
}
.type-seg b { font-size: 14.5px; color: var(--ink); }
.type-seg span { font-size: 11.5px; }
.type-seg.active { border-color: var(--ink); background: var(--peach); color: var(--ink); }
.type-seg.active b { color: var(--ink); }

.blocks-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.blocks-hint { font-size: 12.5px; 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: 2px solid var(--line); border-radius: 11px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; background: #FFFDF9; outline: none; min-width: 0;
}
.block-row input:focus { border-color: var(--tan); }
.block-row .b-name { flex: 2; }
.block-row .b-num { flex: 1; }
.block-row .b-del {
  width: 34px; height: 34px; flex-shrink: 0; border: none; border-radius: 10px;
  background: var(--red-bg); color: var(--red); font-size: 15px; font-weight: 700;
  cursor: pointer; font-family: inherit;
}
.block-row .b-del:disabled { background: #EEE7DB; color: #BBB; cursor: default; }
.add-block {
  width: 100%; padding: 11px; margin-bottom: 18px; border: 2px dashed var(--tan);
  border-radius: 12px; background: transparent; color: var(--brown);
  font-weight: 700; font-size: 14px; font-family: inherit; cursor: pointer;
}
.add-block:hover { background: var(--cream); }
@media (max-width: 480px) {
  .block-row { flex-wrap: wrap; }
  .block-row .b-name { flex: 1 1 100%; }
}

/* ---------- Butonlar ---------- */
.btn { padding: 11px 18px; border: none; border-radius: 12px; cursor: pointer; background: var(--ink); color: var(--cream); font-size: 14px; font-weight: 700; font-family: inherit; transition: opacity .15s, transform .05s; }
.btn:hover { opacity: .9; } .btn:active { transform: translateY(1px); } .btn:disabled { opacity: .55; cursor: default; }
.btn-block { width: 100%; padding: 14px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--cream); opacity: 1; }
.btn-red { background: var(--red); } .btn-green { background: var(--green); }
.btn-outline-red { background: transparent; border: 2px solid var(--red); color: var(--red); }
.btn-outline-red:hover { background: var(--red); color: #fff; opacity: 1; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 240px; background: var(--white); border-right: 1px solid var(--line); padding: 22px 14px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; padding: 0 8px 18px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
.side-nav a { display: flex; align-items: center; gap: 11px; padding: 11px 12px; border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--muted); text-decoration: none; }
.side-nav a i { font-style: normal; width: 20px; text-align: center; font-size: 15px; }
.side-nav a:hover { background: var(--cream); color: var(--ink); }
.side-nav a.active { background: var(--peach); color: var(--ink); font-weight: 700; }
.side-logout { margin-top: 12px; padding: 11px; border-radius: 12px; border: 2px solid var(--line); background: transparent; color: var(--red); font-weight: 700; cursor: pointer; font-family: inherit; font-size: 14px; }
.side-logout:hover { background: var(--red-bg); border-color: #F3C9C1; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 16px 28px; border-bottom: 1px solid var(--line); background: var(--white); position: sticky; top: 0; z-index: 20; }
.hamburger { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); }
.top-building { flex: 1; min-width: 0; }
.top-name { display: block; font-weight: 800; font-size: 16px; }
.top-addr { display: block; font-size: 12.5px; color: var(--muted); }
.top-user { font-size: 13px; color: var(--muted); font-weight: 600; }
.content { padding: 28px; max-width: 1100px; width: 100%; }

/* ---------- Ortak bileşenler ---------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font-size: 24px; }
.page-head .tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.card { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: 0 8px 24px rgba(43,38,32,.05); margin-bottom: 20px; }
.card h3 { font-size: 16px; margin-bottom: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { background: var(--white); border-radius: 16px; padding: 20px; box-shadow: 0 8px 24px rgba(43,38,32,.05); }
.stat .val { font-size: 25px; font-weight: 800; }
.stat .lbl { font-size: 13px; color: var(--muted); margin-top: 4px; }
.stat.accent-bank { background: linear-gradient(160deg, #FFFDF9, var(--blue-bg)); }
.stat.accent-cash { background: linear-gradient(160deg, #FFFDF9, var(--green-bg)); }
.stat.accent-fund { background: linear-gradient(160deg, #FFFDF9, var(--amber-bg)); }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; padding: 11px 12px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); font-weight: 700; border-bottom: 2px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
.t-empty { text-align: center; color: var(--muted); padding: 30px; }
.t-right { text-align: right; }

.badge { display: inline-block; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.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: #EEE7DB; color: var(--muted); }

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

.search { padding: 9px 13px; border: 2px solid var(--line); border-radius: 11px; font-size: 14px; font-family: inherit; background: #FFFDF9; outline: none; min-width: 200px; }
.search:focus { border-color: var(--tan); }
select.mini { padding: 8px 11px; border: 2px solid var(--line); border-radius: 10px; font-family: inherit; font-size: 14px; background: #FFFDF9; cursor: pointer; }

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

.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: 700; }
.list-row .lr-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.list-row .lr-text { font-size: 14px; color: var(--ink); margin-top: 6px; white-space: pre-wrap; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(43,38,32,.45); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 100; }
.modal { background: var(--white); border-radius: var(--radius); width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 70px rgba(43,38,32,.3); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--white); }
.modal-head h3 { font-size: 18px; }
.modal-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--muted); }
.modal-body { padding: 22px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--cream); padding: 13px 22px; border-radius: 13px; font-weight: 600; font-size: 14px; z-index: 200; box-shadow: 0 12px 30px rgba(43,38,32,.3); }
.toast.err { background: var(--red); }

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

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; transform: translateX(-100%); transition: transform .22s; box-shadow: 6px 0 30px rgba(43,38,32,.15); }
  .sidebar.open { transform: translateX(0); }
  .hamburger { display: block; }
  .content { padding: 18px; }
  .grid-2 { grid-template-columns: 1fr; }
  .backdrop { position: fixed; inset: 0; background: rgba(43,38,32,.4); z-index: 55; }
}

/* ---------- 3D Site Maketi ve Çoklu Bina CSS ---------- */
/* Üst yatay bilgi şeridi */
.overview-details-strip {
  margin: 16px 0;
}

.canvas-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(43,38,32,0.06);
  overflow: hidden;
  height: 500px;
}

/* Tam genişlik, yüksek sahne */
.canvas-card-wide {
  width: 100%;
  height: 640px;
  background: linear-gradient(180deg, #dfeaf2 0%, #eef4ee 100%);
}

@media (max-width: 768px) {
  .canvas-card-wide { height: 460px; }
}

/* Alt köşe lejantı */
.canvas-legend {
  position: absolute;
  bottom: 14px;
  left: 18px;
  z-index: 5;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  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: 18px;
  left: 18px;
  pointer-events: none;
  z-index: 5;
}

.canvas-overlay-ui * {
  pointer-events: auto;
}

/* Yatay bilgi kartı: kimlik | istatistikler | aksiyon */
.detail-card {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 22px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(43,38,32,.04);
}

.detail-card.active-building {
  border: 2px solid var(--tan);
  background: linear-gradient(120deg, var(--white) 0%, var(--cream) 100%);
}

.detail-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 220px;
  flex: 1 1 240px;
}

.detail-identity-text h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.detail-addr {
  font-size: 12.5px;
  display: block;
  margin-top: 2px;
}

.detail-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.detail-tag {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--brown);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px 9px;
}

.building-icon-3d {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--peach);
  display: grid;
  place-items: center;
  font-size: 24px;
  flex-shrink: 0;
}

.detail-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(88px, 1fr));
  gap: 10px;
  flex: 2 1 380px;
}

.detail-stat-box {
  background: var(--cream);
  padding: 12px 10px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--line);
}

.detail-stat-balance {
  background: var(--green-bg);
  border-color: transparent;
}

.detail-stat-box .val {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
}

.detail-stat-box .lbl {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.detail-action {
  flex: 0 0 auto;
}

.detail-managed-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-bg);
  border-radius: 12px;
  padding: 10px 18px;
  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 {
  padding: 8px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  background: #FFFDF9;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}

.building-dropdown:focus {
  border-color: var(--tan);
}

.top-building-info {
  display: flex;
  flex-direction: column;
}

/* ---------- Demirbaşlar, Kararlar ve Güvenlik Modu CSS ---------- */
.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.asset-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 20px;
  box-shadow: 0 4px 15px rgba(43,38,32,0.03);
  position: relative;
}

.asset-badge {
  position: absolute;
  top: 16px;
  right: 16px;
}

.decision-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.decision-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 22px;
  box-shadow: 0 4px 15px rgba(43,38,32,0.03);
  border-left: 5px solid var(--tan);
}

.decision-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

/* Güvenlik Modu (Guard Panel) */
.security-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--ink);
  color: var(--white);
  border-radius: 16px;
  margin-bottom: 24px;
}

.security-back-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  padding: 8px 16px;
  color: var(--white);
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.security-back-btn:hover {
  background: rgba(255,255,255,0.25);
}

.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(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.04);
}

.quick-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.action-card {
  background: var(--cream);
  border: 2px dashed var(--tan);
  padding: 16px;
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s;
}

.action-card:hover {
  transform: translateY(-2px);
  background: var(--peach);
}

.active-visitor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  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(--peach);
  color: var(--brown);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  margin-right: 6px;
}



/* ===== Mobil akış eşitliği: kurallar, arızalar, kasa, duyurular ===== */

/* Kategori / öncelik çipleri (kural + işlem modalları) */
.cat-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip {
  border: 2px solid var(--line); background: var(--white); border-radius: 12px;
  padding: 9px 14px; font-size: 13.5px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.cat-chip.active { background: #E9724C; border-color: #E9724C; color: #fff; }
.prio-row { display: flex; gap: 10px; }
.prio-chip {
  flex: 1; border: 2px solid var(--line); background: var(--white); border-radius: 12px;
  padding: 12px; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.prio-chip.active { border-color: #E9724C; color: var(--ink); }

/* Kural kartları + hızlı şablonlar */
.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: 44px; height: 44px; border-radius: 12px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; font-size: 22px; flex-shrink: 0;
}
.tpl-group { margin-top: 14px; }
.tpl-group-title { font-weight: 800; font-size: 13.5px; margin-bottom: 8px; color: var(--ink); }
.tpl-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-chip {
  border: 1.5px dashed var(--tan); background: var(--cream); border-radius: 20px;
  padding: 7px 13px; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.tpl-chip:hover { background: var(--peach); }
.tpl-crit { color: var(--red); font-weight: 900; margin-left: 2px; }

/* Arıza kartları */
.fault-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 12px;
}
.fault-head { display: flex; justify-content: space-between; align-items: flex-start; }
.fault-actions { display: flex; gap: 10px; margin-top: 14px; justify-content: flex-end; }

/* Kasa (mobil Kasa Yönetimi tasarımı) */
.wallet-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center; margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(43,38,32,0.05);
}
.wallet-card.neg { border-color: var(--red); background: var(--red-bg); }
.wallet-head {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 800; font-size: 15px; color: var(--muted); margin-bottom: 8px;
}
.wallet-amount { font-size: 34px; font-weight: 900; color: var(--ink); }
.wallet-card.neg .wallet-amount { color: var(--red); }
.wallet-warn { margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--red); }

.pending-alert-card {
  background: var(--amber-bg); border: 2px solid var(--amber); border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 16px;
}
.pending-alert-head { font-weight: 800; color: var(--amber); margin-bottom: 10px; }
.pending-row {
  display: flex; align-items: center; gap: 8px; padding: 10px 0;
  border-top: 1px solid rgba(183,121,31,0.25);
}

.month-nav { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.month-nav-inner {
  display: flex; align-items: center; gap: 4px; background: var(--white);
  border: 1px solid var(--line); border-radius: 12px; padding: 4px;
}
.month-btn {
  border: none; background: transparent; font-size: 18px; font-weight: 800;
  color: var(--muted); cursor: pointer; padding: 4px 12px; border-radius: 8px;
}
.month-btn:hover { background: var(--cream); }
.month-label { font-weight: 800; font-size: 14px; min-width: 120px; text-align: center; }

.seg-tabs {
  display: flex; background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; padding: 4px; margin-bottom: 14px; gap: 4px;
}
.seg {
  flex: 1; border: none; background: transparent; padding: 9px; border-radius: 9px;
  font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer;
}
.seg.active { background: #E9724C; color: #fff; }

.tx-card {
  display: flex; align-items: center; gap: 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px;
}
.tx-icon {
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; font-weight: 900; 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: 700; font-size: 14.5px; }
.tx-cat { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tx-date { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tx-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tx-amount { font-weight: 900; font-size: 15px; }
.tx-amount.income { color: var(--green); }
.tx-amount.expense { color: var(--red); }

/* Duyurular: pano + sürükle-bırak */
.ann-card {
  display: flex; align-items: flex-start; gap: 12px; background: var(--white);
  border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 10px;
}
.ann-card[draggable="true"] { cursor: grab; }
.ann-card.dragging { opacity: 0.45; border: 2px dashed #E9724C; }
.drag-handle {
  font-size: 18px; color: var(--muted); cursor: grab; padding: 4px 2px 0 0; user-select: none;
}
.ann-icon {
  width: 40px; height: 40px; border-radius: 12px; background: var(--cream);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.board-badge {
  font-size: 11px; font-weight: 800; color: #7C6FDE; background: #EEF2FF;
  border-radius: 8px; padding: 2px 8px;
}
.board-badge.off { color: var(--muted); background: var(--cream); }

/* ===== 3D Site Maketi araç çubuğu ===== */
.site-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.site-edit-tools {
  display: flex; gap: 6px; flex-wrap: wrap; background: rgba(255,255,255,0.92);
  border: 1px solid var(--line); border-radius: 12px; padding: 6px 8px;
}
.site-hint {
  font-size: 12.5px; background: rgba(255,255,255,0.85); padding: 6px 12px;
  border-radius: 8px; border: 1px solid var(--line); display: inline-block;
}
