﻿@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   כפתורי פעולה אלגנטיים — תזכורות (ערוך/מחק) וכל דבר דומה
   ============================================================ */
.reminder-action-btn {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: #cbd5e1;
  padding: 6px 12px;
  border-radius: 999px;            /* pill shape */
  font-family: 'Heebo', sans-serif;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-inline-end: 4px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  line-height: 1;
  user-select: none;
}
.reminder-action-btn .rab-icon {
  font-size: 13px;
  line-height: 1;
  filter: saturate(0.9);
  transition: filter 0.18s;
}
.reminder-action-btn .rab-text {
  font-size: 12px;
  letter-spacing: 0.2px;
}
.reminder-action-btn:hover {
  background: rgba(124, 167, 255, 0.10);
  border-color: rgba(124, 167, 255, 0.55);
  color: #7ca7ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(124, 167, 255, 0.12);
}
.reminder-action-btn:hover .rab-icon { filter: saturate(1.2) brightness(1.1); }
.reminder-action-btn:active { transform: translateY(0); box-shadow: none; }

.reminder-action-btn.rab-danger:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.55);
  color: #f87171;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.12);
}

/* ============================================================
   Date/Time inputs — סטייל מודרני ואלגנטי ב-dark theme
   עם אייקוני SVG מותאמים — לוח שנה ושעון ברורים על רקע כחלחל.
   ============================================================ */
input[type="time"],
input[type="date"],
input[type="datetime-local"] {
  color-scheme: dark;
  color: #e2e8f0;
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  min-height: 36px;
}

/* בסיס משותף לכל ה-picker indicators */
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  /* מחביא את האייקון המקורי ושם SVG מותאם במקום */
  color: transparent;
  background-color: rgba(124, 167, 255, 0.18);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 16px 16px;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  width: 24px;
  height: 24px;
  opacity: 1;
  margin-inline-start: 6px;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  filter: none;
}

/* אייקון לוח שנה ברור (SVG מותאם) */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
}

/* אייקון שעון אנלוגי ברור */
input[type="time"]::-webkit-calendar-picker-indicator {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><polyline points='12 6 12 12 16 14'/></svg>");
}

input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(124, 167, 255, 0.85);
  transform: scale(1.08);
}

:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a2235;
  --bg-card-hover: #1f2a40;
  --bg-input: #0d1525;
  --border: #2a3550;
  --border-light: #374363;
  --text-primary: #e8ecf4;
  --text-secondary: #8b95a8;
  --text-muted: #5a6478;
  --accent: #3b82f6;
  --accent-light: #60a5fa;
  --accent-dark: #1d4ed8;
  --success: #10b981;
  --success-bg: rgba(16,185,129,0.12);
  --warning: #f59e0b;
  --warning-bg: rgba(245,158,11,0.12);
  --danger: #ef4444;
  --danger-bg: rgba(239,68,68,0.12);
  --info: #06b6d4;
  --info-bg: rgba(6,182,212,0.12);
  --purple: #8b5cf6;
  --purple-bg: rgba(139,92,246,0.12);
  --gradient-blue: linear-gradient(135deg, #3b82f6, #1d4ed8);
  --gradient-green: linear-gradient(135deg, #10b981, #059669);
  --gradient-red: linear-gradient(135deg, #ef4444, #dc2626);
  --gradient-purple: linear-gradient(135deg, #8b5cf6, #7c3aed);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);
}

* { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Heebo', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.header {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  border-bottom: 1px solid var(--border);
  /* 2026-05-13 — vertical padding reduced 20→14px to compensate for the
     enlarged logoHOME3 frame (80→92px). Net header height stays the same;
     the logo just fills more of the visible band, tightening the gap to
     the line below. Horizontal padding unchanged. */
  padding: 14px 40px;
  /* Three-column layout: brand on the start side, building name dead-center,
     info on the end side. Each side column is 1fr so they balance and the
     middle column auto-sizes around the pill button. */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}
.header-title { justify-self: start; }
.header-center { justify-self: center; }
.header-info { justify-self: end; }

.header-title {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 2026-05-13 — selector broadened from `.header-title .logo` to `.header .logo`
   so the VB logo keeps its sizing+shadow after the swap into .header-info.
   Size matched to .header .header-home-frame (92px) so both logos look
   identical in proportion. */
.header .logo {
  width: 92px; height: 92px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}

.header-title h1 {
  font-size: 22px; font-weight: 700; color: var(--text-primary);
}

.header-title .subtitle {
  /* 2026-05-13 — bumped from 13px to 15px per user request. */
  font-size: 15px; color: var(--text-secondary); font-weight: 400;
}

/* Reports landing list — cards for each available report (and "coming soon"). */
.report-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 18px; margin-bottom: 8px;
  transition: all 0.18s ease;
}
.report-card-available { cursor: pointer; }
.report-card-available:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124,167,255,0.12);
}
.report-card-disabled { opacity: 0.55; cursor: not-allowed; }
.report-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.report-card-text { flex: 1; min-width: 0; }
.report-card-title {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  display: flex; align-items: center; gap: 8px;
}
.report-card-subtitle {
  font-size: 12px; color: var(--text-muted); margin-top: 3px; line-height: 1.5;
}
.report-card-arrow {
  font-size: 22px; color: var(--text-muted); flex-shrink: 0;
  transition: color 0.18s;
}
.report-card-available:hover .report-card-arrow { color: var(--accent); }
.report-soon-badge {
  font-size: 10px; color: var(--text-muted); font-weight: 500;
  background: var(--bg-input); border: 1px solid var(--border);
  padding: 2px 8px; border-radius: 12px;
}

/* Date input + calendar picker combo. The text input shows DD/MM/YYYY for
   Israeli readability, the button opens the browser's native date picker. */
.date-with-picker {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  gap: 0;
}
.date-with-picker input[type="text"] {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-inline-end: none;
  color: var(--text-primary);
  padding: 8px 10px;
  border-radius: 8px 0 0 8px;
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  width: 130px;
  direction: ltr;
  text-align: left;
  outline: none;
}
.date-with-picker input[type="text"]:focus {
  border-color: var(--accent);
}
.date-picker-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0 10px;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  font-family: 'Heebo', sans-serif;
  transition: all 0.15s;
}
.date-picker-btn:hover {
  background: var(--bg-card-hover);
  color: var(--accent-light);
  border-color: var(--accent);
}
.date-picker-btn:focus {
  outline: none;
  border-color: var(--accent);
}
/* The hidden <input type="date"> backing the picker — we anchor it to the
   button so the native picker overlay positions correctly. Invisible until
   showPicker() is called. */
.date-picker-hidden {
  position: absolute;
  inset-inline-end: 0;
  top: 100%;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Checkboxes inside the report builder — labels with clear hit area. */
.report-section-cb, .report-output-radio {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-primary); cursor: pointer;
  padding: 6px 8px; border-radius: 6px;
  transition: background 0.12s;
}
.report-section-cb:hover, .report-output-radio:hover { background: rgba(124,167,255,0.05); }

/* Period report preset buttons — small chips under the date pickers. */
.report-preset-btn {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 5px 12px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 11px;
  font-family: 'Heebo', sans-serif;
  transition: all 0.15s;
}
.report-preset-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
  background: rgba(124,167,255,0.08);
}
.report-preset-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Clickable rows in the period report — hint that they open a drill-down. */
.rpt-clickable-row { cursor: pointer; transition: background 0.15s; }
.rpt-clickable-row:hover { background: rgba(124,167,255,0.06); }
.rpt-link { border-bottom: 1px dashed var(--accent-light); padding-bottom: 1px; }
.rpt-clickable-row:hover .rpt-link { color: var(--accent-light); }
/* Clickable apartment numbers inside the report — open the apt drilldown. */
.rpt-apt-link {
  cursor: pointer;
  color: var(--accent-light);
  border-bottom: 1px dashed var(--accent-light);
  padding-bottom: 1px;
  transition: color 0.15s;
}
.rpt-apt-link:hover { color: var(--accent); }
@media print {
  .rpt-apt-link { color: #000 !important; border-bottom: none !important; cursor: default !important; }
}

/* Print-only styles — used when the user clicks "Print". Hides everything
   except the report content, gives a clean white background for print. */
@media print {
  body * { visibility: hidden; }
  #reportContent, #reportContent * { visibility: visible; }
  #reportContent { position: absolute; inset: 0; padding: 20px; background: #fff !important; color: #000 !important; }
  #reportContent .rpt-section { background: #fff !important; border: 1px solid #ccc !important; color: #000 !important; }
  #reportContent .rpt-amount-pos { color: #047857 !important; }
  #reportContent .rpt-amount-neg { color: #b91c1c !important; }
  #reportContent table { color: #000 !important; }
  #reportContent th, #reportContent td { border-color: #ccc !important; }
  /* Annual report print area — populated only during export, lives at body root */
  #annualReportPrintArea, #annualReportPrintArea * { visibility: visible; }
  #annualReportPrintArea {
    display: block !important; position: absolute; inset: 0;
    padding: 24px; background: #fff !important; color: #000 !important;
    font-family: 'Heebo', Arial, sans-serif;
  }
  @page { margin: 15mm; }
}

/* "Pending credit reconciliation" tag — appears next to apt status when the
   apartment has an unconfirmed credit charge. Orange/yellow to signal "action
   needed but recoverable", separate from the red "didn't pay" state. */
.badge-pending-credit {
  display: inline-block;
  background: rgba(245,158,11,0.12);
  color: var(--warning);
  border: 1px solid rgba(245,158,11,0.45);
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  margin-inline-start: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.badge-pending-credit:hover {
  background: rgba(245,158,11,0.20);
  border-color: var(--warning);
}

/* Annual Report card on the dashboard — clickable, leads to full drilldown.
   Layout: icon | title+subtitle | big-net-stat | arrow */
.annual-report-card {
  display: none; /* shown via JS once data exists */
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
  padding: 16px 22px;
  background: linear-gradient(90deg, rgba(124,167,255,0.10), rgba(34,197,94,0.06));
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-wrap: wrap;
}
.annual-report-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(124,167,255,0.12);
}
.annual-report-card .arc-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,167,255,0.20), rgba(124,167,255,0.08));
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}
.annual-report-card .arc-text { flex: 1; min-width: 200px; }
.annual-report-card .arc-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.2px;
}
.annual-report-card .arc-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}
.annual-report-card .arc-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: end;
  flex-shrink: 0;
}
.annual-report-card .arc-stats .arc-net-actual {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.5px;
}
.annual-report-card .arc-stats .arc-net-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.annual-report-card .arc-stats .arc-forecast-line {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
.annual-report-card .arc-arrow {
  font-size: 22px;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.annual-report-card:hover .arc-arrow { transform: translateX(-3px); }
@media (max-width: 768px) {
  .annual-report-card { padding: 14px; gap: 12px; }
  .annual-report-card .arc-icon { width: 40px; height: 40px; font-size: 22px; }
  .annual-report-card .arc-title { font-size: 15px; }
  .annual-report-card .arc-stats { width: 100%; align-items: flex-start; text-align: start; }
  .annual-report-card .arc-stats .arc-net-actual { font-size: 22px; }
  .annual-report-card .arc-arrow { display: none; }
}

/* Annual report export toolbar — sits at the top of the annual drilldown body.
   Checkbox + 4 action buttons in a single row. Wraps on narrow screens. */
.annual-export-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
}
.annual-export-toolbar .aet-checkbox {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-primary); cursor: pointer;
  user-select: none;
}
.annual-export-toolbar .aet-checkbox input { cursor: pointer; width: 16px; height: 16px; }
.annual-export-toolbar .aet-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.annual-export-toolbar .aet-btn {
  background: var(--bg-card); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 7px;
  padding: 7px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.annual-export-toolbar .aet-btn:hover {
  border-color: var(--accent); background: var(--panel);
  transform: translateY(-1px);
}

/* Annual Pulse Widget — slim dashboard glance.
   Three paired columns: income (% above amount), expenses (% above amount),
   net (amount only). Each column is its own framed card. The full report lives
   in 📊 דוחות → דוח שנתי. Goal: clearly NOT the report itself. */
.annual-pulse-widget {
  display: none; /* shown via JS once data exists */
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.annual-pulse-widget:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(124,167,255,0.10);
}
/* Mini header — deliberately UNDERSTATED so it doesn't look like a report title.
   Phrased "data sourced from..." to make the relationship clear. */
.annual-pulse-widget .apw-header {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 2px;
}
.annual-pulse-widget .apw-mini-title {
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  letter-spacing: 0.02em;
}
.annual-pulse-widget .apw-link {
  font-size: 12px; color: var(--accent); font-weight: 600;
  transition: transform 0.2s;
}
.annual-pulse-widget:hover .apw-link { transform: translateX(-3px); }
/* 3-column paired grid */
.annual-pulse-widget .apw-row-paired {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px;
}
/* Each "paired cell" stacks: percentage (top) → divider → amount (bottom).
   Each column gets its own framed card so the user reads it as a single
   metric with two related views (rate + scale). */
.annual-pulse-widget .apw-cell-paired {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
  text-align: center;
  transition: all 0.15s;
  gap: 2px;
}
.annual-pulse-widget .apw-cell-paired:hover {
  border-color: var(--accent);
  background: var(--panel);
  transform: translateY(-1px);
}
.annual-pulse-widget .apw-value {
  font-size: 26px; font-weight: 800; line-height: 1.05; letter-spacing: 0.3px;
}
.annual-pulse-widget .apw-amount {
  font-size: 17px; font-weight: 700; line-height: 1.15;
  color: var(--text-primary);
}
.annual-pulse-widget .apw-amount-large {
  font-size: 24px; font-weight: 800; line-height: 1.05;
}
.annual-pulse-widget .apw-label {
  font-size: 11px; font-weight: 600; color: var(--text-primary);
  margin-top: 4px; line-height: 1.3;
}
.annual-pulse-widget .apw-sublabel {
  font-size: 10px; color: var(--text-muted); margin-top: 2px; margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.annual-pulse-widget .apw-divider-line {
  width: 60%; height: 1px; background: var(--border); margin: 6px 0;
}
/* Net cell variant — no % at top; replace with small label so vertical rhythm
   matches the other two columns. */
.annual-pulse-widget .apw-cell-net { justify-content: center; }
.annual-pulse-widget .apw-net-label-top {
  font-size: 10px; color: var(--text-muted); margin-bottom: 6px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.annual-pulse-widget .apw-success { color: var(--success); }
.annual-pulse-widget .apw-danger { color: var(--danger); }
@media (max-width: 600px) {
  .annual-pulse-widget { padding: 10px; }
  .annual-pulse-widget .apw-value { font-size: 20px; }
  .annual-pulse-widget .apw-amount { font-size: 14px; }
  .annual-pulse-widget .apw-amount-large { font-size: 18px; }
  .annual-pulse-widget .apw-label { font-size: 10px; }
  .annual-pulse-widget .apw-sublabel { font-size: 9px; }
  .annual-pulse-widget .apw-cell-paired { padding: 10px 6px; }
}

/* Clickable building-name pill — lives in the centered header column.
   Replaces the previous tiny grey subtitle strip that used to sit below the header. */
.building-name-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  /* Glassy capsule — always lit, with a soft blue tint on a dark gradient base. */
  background:
    linear-gradient(135deg, rgba(96,165,250,0.18) 0%, rgba(59,130,246,0.08) 50%, rgba(96,165,250,0.18) 100%),
    rgba(15,23,42,0.55);
  border: 1px solid rgba(96,165,250,0.55);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: 'Heebo', sans-serif;
  color: var(--text-primary);
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 6px 22px rgba(96,165,250,0.20);
}
.building-name-pill::before {
  /* Decorative dot accents flanking the pill — always visible. */
  content: '';
  position: absolute;
  inset-inline-end: -4px;
  top: 50%;
  width: 6px; height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  transform: translate(0, -50%) scale(1);
  box-shadow: 0 0 8px rgba(96,165,250,0.6);
}
.building-name-pill::after {
  content: '';
  position: absolute;
  inset-inline-start: -4px;
  top: 50%;
  width: 6px; height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  transform: translate(0, -50%) scale(1);
  box-shadow: 0 0 8px rgba(96,165,250,0.6);
}
.building-name-pill:hover {
  /* Subtle lift + brighter glow as click feedback (the lit state is default) */
  transform: translateY(-1px);
  border-color: rgba(96,165,250,0.75);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.12),
    0 8px 28px rgba(96,165,250,0.30);
}
.building-name-pill .bn-icon {
  font-size: 17px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.4));
}
.building-name-pill #buildingSubtitle {
  font-size: 18px;
  font-weight: 700;
  /* Gradient text — soft blue tint that lifts off dark backgrounds. */
  background: linear-gradient(135deg, #ffffff 0%, #c7d8ff 60%, #93b6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.building-name-pill .bn-edit-hint {
  font-size: 13px;
  color: var(--accent-light);
  opacity: 1;
  transition: all 0.25s;
  margin-right: 1px;
}
@media (max-width: 768px) {
  /* Header collapses to single column on mobile: brand + hamburger first,
     building-name pill below them on its own row spanning full width. */
  .header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'brand info'
      'center center';
    padding: 14px 18px;
    gap: 14px;
  }
  .header-title { grid-area: brand; justify-self: start; }
  .header-info  { grid-area: info;  justify-self: end; }
  .header-center { grid-area: center; justify-self: stretch; }
  .building-name-pill {
    width: 100%;
    justify-content: center;
    padding: 7px 14px;
    gap: 8px;
  }
  .building-name-pill #buildingSubtitle { font-size: 16px; }
  .building-name-pill .bn-icon { font-size: 15px; }
  .header .logo { width: 64px; height: 64px; }
  .header-title h1 { font-size: 18px; }
  .header-title .subtitle { font-size: 13px; }
}

.header-info {
  display: flex; gap: 24px; align-items: center; font-size: 13px; color: var(--text-secondary);
}

/* Brand stack on the visual-left side: logoHOME1 image to the LEFT, date to
   the RIGHT of it. 2026-05-13 — added per user request, then re-arranged from
   vertical (img-on-top/date-below) to horizontal (img-left/date-right). Uses
   row-reverse because in RTL "row" starts from the visual right — we want the
   first child (img) to land on the visual left, so we reverse. */
.header-brand-stack {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 10px;
  line-height: 1.2;
}
/* Fixed-size frame matching the VB logo (80×80) — the box itself is locked
   to this size so the surrounding header layout doesn't move. The inner <img>
   is then scaled UP via transform so the house+VERIFIED glyph fills more of
   the visible square. overflow:hidden crops the scaled image's edges so the
   image background never bleeds past the frame. 2026-05-13. */
/* 2026-05-13 — selectors broadened from `.header-brand-stack ...` to
   `.header ...` so the frame keeps its size after being moved into
   .header-title (in the static HTML swap). Without this, the image
   defaulted to its natural 315×315 size and blew up the whole header. */
.header .header-home-frame {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
  display: block;
  flex-shrink: 0;
}
.header .header-home-frame .header-home-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* scale 1.35 enlarges the house+VERIFIED inside the fixed frame without
     touching the frame's outer dimensions. Increase to 1.5 if it should be
     even bigger; decrease to 1.2 if too zoomed. */
  transform: scale(1.35);
  transform-origin: center;
}
@media (max-width: 768px) {
  .header .header-home-frame { width: 64px; height: 64px; }
  .header-brand-stack { gap: 8px; }
}

.container { max-width: 1600px; margin: 0 auto; padding: 24px 32px; }

/* ==================== SIDEBAR LAYOUT ==================== */
/* RTL Hebrew sidebar — fixed on the right (which is "start" in RTL).
   On mobile (≤768px) it collapses into a drawer triggered by the ☰ button. */
.app-shell {
  display: grid;
  /* Sidebar first (240px), main content second (1fr).
     In RTL the columns flip so sidebar appears on the right — the natural
     "start" side for Hebrew. */
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 100px);
  max-width: 1600px;
  margin: 0 auto;
  /* Visual breathing room between sidebar and main content. */
  gap: 28px;
}
.app-main {
  min-width: 0; /* Prevents grid blowout when child tables are wide */
  /* Slight inline padding so cards don't kiss the viewport edge on the
     opposite side either. */
  padding-inline-end: 8px;
}
.sidebar {
  background: var(--bg-secondary);
  border-inline-start: 1px solid var(--border);
  padding: 18px 0;
  position: sticky;
  top: 100px;
  height: calc(100vh - 100px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-group-label {
  padding: 14px 22px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px;
  color: var(--text-secondary);
  cursor: pointer;
  border-inline-end: 3px solid transparent;
  transition: all 0.15s;
  user-select: none;
  font-size: 14px;
  font-weight: 500;
}
.sidebar-item:hover {
  background: rgba(124,167,255,0.06);
  color: var(--text-primary);
}
.sidebar-item.active {
  background: rgba(124,167,255,0.10);
  color: var(--accent-light);
  border-inline-end-color: var(--accent);
  font-weight: 700;
}
.sidebar-item .sb-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.app-page {
  display: none;
  padding: 24px 28px;
  overflow-x: hidden;
}
.app-page.active {
  display: block;
}

/* Sections tagged with data-app-page show only when their page is active.
   Default: hidden. We then unhide the matching sections per active page. */
[data-app-page] { display: none; }
body[data-active-page="dashboard"]   [data-app-page~="dashboard"]   { display: block; }
body[data-active-page="collection"]  [data-app-page~="collection"]  { display: block; }
body[data-active-page="properties"]  [data-app-page~="properties"]  { display: block; }
body[data-active-page="electricity"] [data-app-page~="electricity"] { display: block; }
/* 2026-05-17: 'expenses' page removed (merged into 'transactions'). */
body[data-active-page="suppliers"]   [data-app-page~="suppliers"]   { display: block; }
body[data-active-page="reconciliation"] [data-app-page~="reconciliation"] { display: block; }
body[data-active-page="reports"]     [data-app-page~="reports"]     { display: block; }
body[data-active-page="transactions"] [data-app-page~="transactions"] { display: block; }
body[data-active-page="documents"]   [data-app-page~="documents"]   { display: block; }
body[data-active-page="settings"]    [data-app-page~="settings"]    { display: block; }
body[data-active-page="admin"]       [data-app-page~="admin"]       { display: block; }
/* Sections that should appear on multiple pages can list them space-separated:
     <div data-app-page="dashboard collection"> ... </div>
   The ~= matcher above handles the multi-page case. */
.sidebar-toggle {
  display: none; /* shown only on mobile */
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  margin-inline-start: 12px;
}
.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 90;
  backdrop-filter: blur(2px);
}
body.sidebar-open .sidebar-backdrop {
  display: block;
}

/* Mobile breakpoint — sidebar becomes a drawer */
@media (max-width: 768px) {
  .app-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .app-main { padding-inline-end: 0; }
  .sidebar-toggle { display: inline-flex; }
  .sidebar {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    height: 100vh;
    width: 260px;
    z-index: 95;
    transform: translateX(-100%); /* RTL: slides off to the start side (right) which translates to negative X */
    transition: transform 0.22s ease-out;
    box-shadow: -4px 0 20px rgba(0,0,0,0.4);
    padding-top: 80px;
  }
  body.sidebar-open .sidebar {
    transform: translateX(0);
  }
  .app-page { padding: 16px 14px; }
}

.section { margin-bottom: 28px; }

.section-title {
  font-size: 19px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
  letter-spacing: 0.2px;
}

.section-title .icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* Upload Area */
.upload-area {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px;
}

.upload-box {
  background: var(--bg-card);
  border: 2px dashed var(--border);
  border-radius: 14px;
  padding: 0;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.upload-click-zone {
  display: block;
  padding: 14px 16px 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.upload-click-zone:hover { background: var(--bg-card-hover); }
.upload-box:hover { border-color: var(--accent); }
.upload-box .upload-status { margin: 0 16px 6px; font-size: 11px; padding: 4px 10px; }
.upload-box.loaded { border-color: var(--success); border-style: solid; }
.upload-box .upload-icon { font-size: 22px; margin-bottom: 4px; }
.upload-box h3 { font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.upload-box p { font-size: 11px; color: var(--text-secondary); }

.upload-status {
  margin-top: 10px; font-size: 12px; padding: 6px 14px;
  border-radius: 20px; display: inline-block;
}

.upload-status.success { background: var(--success-bg); color: var(--success); }
.upload-status.pending { background: var(--warning-bg); color: var(--warning); }

.btn-clear-tenants {
  margin-top: 8px; font-size: 11px; color: var(--danger);
  background: transparent; border: 1px solid var(--danger);
  padding: 4px 12px; border-radius: 6px; cursor: pointer;
}
.btn-clear-tenants:hover { background: var(--danger-bg); }

.drive-link-area {
  padding: 8px 14px 10px;
  border-top: 1px solid var(--border);
}
.drive-link-area .drive-label {
  font-size: 11px; color: var(--text-muted); margin-bottom: 6px;
}
.drive-link-row {
  display: flex; gap: 6px; align-items: center;
}
.drive-link-row input {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-primary); padding: 6px 10px; border-radius: 6px;
  font-family: 'Heebo', sans-serif; font-size: 11px; direction: ltr; text-align: left;
}
.drive-link-row input:focus { outline: none; border-color: var(--accent); }
.drive-link-row input::placeholder { color: var(--text-muted); direction: rtl; text-align: right; }
.btn-drive {
  background: linear-gradient(135deg, #4285f4, #1a73e8); color: #fff;
  border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer;
  font-family: 'Heebo', sans-serif; font-size: 11px; font-weight: 600;
  white-space: nowrap; transition: opacity 0.2s;
}
.btn-drive:hover { opacity: 0.85; }
.btn-drive:disabled { opacity: 0.4; cursor: not-allowed; }

/* Compact import launcher button (lives on dashboard, replaces always-visible
   3-panel upload grid). Opens the import modal that holds the actual boxes. */
.import-launcher {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: right;
  font-family: 'Heebo', sans-serif;
}
.import-launcher:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.import-launcher-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--purple-bg);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.import-launcher-text { flex: 1; min-width: 0; }
.import-launcher-title {
  font-size: 15px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 3px;
}
.import-launcher-status {
  font-size: 12px; color: var(--text-muted);
}
.import-launcher-arrow {
  font-size: 22px; color: var(--text-muted);
  flex-shrink: 0;
  transition: color 0.18s;
}
.import-launcher:hover .import-launcher-arrow { color: var(--accent); }

/* Latest-transaction info embedded INSIDE the import launcher button.
   Lives between the title block and the arrow, separated by a thin vertical
   line so the date reads as a continuation of the same button — not a
   separate widget. */
.import-launcher-divider {
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 0 4px;
  flex-shrink: 0;
}
.import-launcher-date {
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.import-launcher-date .ltx-icon {
  font-size: 18px;
  line-height: 1;
}
.import-launcher-date .ltx-line {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
}
.import-launcher-date .ltx-label {
  color: var(--text-muted);
  font-weight: 500;
}
.import-launcher-date .ltx-line strong {
  color: var(--text-primary);
  font-weight: 700;
}
.import-launcher-date .ltx-detail {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 12px;
}
.import-launcher-date .ltx-sep {
  color: var(--text-muted);
  font-weight: 400;
  margin: 0 2px;
}
.import-launcher-date .amt-pos { color: var(--success); }
.import-launcher-date .amt-neg { color: var(--danger); }
@media (max-width: 768px) {
  .import-launcher-divider { display: none !important; }
  .import-launcher-date { width: 100%; padding-top: 8px; border-top: 1px solid var(--border); }
}

/* Import modal — full-screen overlay holding the 3 upload boxes */
.import-modal-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 600; backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
  padding: 20px;
}
.import-modal-overlay.active { display: flex; }
.import-modal-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  width: 100%; max-width: 1100px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  animation: drilldownIn 0.25s ease-out;
}
.import-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.import-modal-header h2 {
  font-size: 18px; font-weight: 700; margin: 0;
  display: flex; align-items: center; gap: 10px;
}
.import-modal-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 20px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.import-modal-close:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-bg);
}
@media (max-width: 768px) {
  .import-modal-panel { padding: 16px; }
}

/* Column Mapping Dialog */
.mapping-overlay {
  display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6); z-index: 600; backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.mapping-overlay.active { display: flex; }
.mapping-panel {
  background: var(--bg-secondary); border: 1px solid var(--border-light);
  border-radius: 16px; width: 90%; max-width: 600px; padding: 28px;
  box-shadow: var(--shadow-lg); animation: drilldownIn 0.25s ease-out;
}
.mapping-panel h2 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.mapping-panel .map-sub { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.mapping-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
}
.mapping-row label {
  min-width: 120px; font-size: 13px; font-weight: 600; color: var(--text-primary); text-align: right;
}
.mapping-row select {
  flex: 1; background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-primary); padding: 8px 12px; border-radius: 8px;
  font-family: 'Heebo', sans-serif; font-size: 13px;
}
.mapping-row .map-preview {
  font-size: 11px; color: var(--text-muted); min-width: 120px; direction: ltr; text-align: left;
}
.mapping-btns { display: flex; gap: 12px; justify-content: center; margin-top: 20px; }
.mapping-btns button {
  padding: 10px 28px; border-radius: 8px; font-family: 'Heebo', sans-serif;
  font-size: 14px; font-weight: 600; cursor: pointer; border: none;
}
.btn-map-confirm { background: var(--accent); color: #fff; }
.btn-map-cancel { background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border) !important; }

/* Pricing Settings */
.pricing-section { margin-bottom: 28px; }
.pricing-header {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; padding: 18px 24px;
  background: linear-gradient(135deg, rgba(124,167,255,0.18), rgba(124,167,255,0.08));
  border: 1px solid rgba(124,167,255,0.35);
  border-radius: 16px; transition: all 0.25s;
  box-shadow: 0 4px 16px rgba(124,167,255,0.12);
  position: relative;
  overflow: hidden;
}
.pricing-header::before {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light, var(--accent)));
}
.pricing-header:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,167,255,0.25);
}
.pricing-header .pricing-title { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 800; letter-spacing: 0.2px; }
.pricing-header .pricing-icon-wrap {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent), #6b8fd8);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(124,167,255,0.4);
  color: #fff;
  flex-shrink: 0;
}
.pricing-header .pricing-icon-wrap svg { width: 26px; height: 26px; }
.pricing-header .pricing-subtitle {
  font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-top: 2px;
}
.pricing-header .pricing-arrow {
  transition: transform 0.3s; font-size: 18px; color: var(--accent);
  background: rgba(124,167,255,0.12); width: 32px; height: 32px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
}
.pricing-header.open .pricing-arrow { transform: rotate(180deg); }
.pricing-header.open { border-radius: 16px 16px 0 0; }
.pricing-body {
  display: none; background: var(--bg-card); border: 1px solid var(--border);
  border-top: none; border-radius: 0 0 14px 14px; padding: 20px;
}
.pricing-body.open { display: block; }
.pricing-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  /* Allow horizontal scrolling on narrow screens so the 7 tabs never get
     cropped; users can swipe through them. flex-wrap kept off so the joined
     pill-row visual stays intact on desktop. */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.pricing-tab {
  padding: 10px 24px; font-family: 'Heebo'; font-size: 13px; font-weight: 600;
  background: var(--bg-input); border: 1px solid var(--border);
  color: var(--text-secondary); cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pricing-tab:first-child { border-radius: 0 10px 10px 0; }
.pricing-tab:last-child { border-radius: 10px 0 0 10px; border-right: none; }
.pricing-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
@media (max-width: 768px) {
  /* On phones we let the tabs wrap to multiple rows instead of horizontal
     scroll — most users won't notice the swipe affordance. */
  .pricing-tabs { flex-wrap: wrap; gap: 6px; overflow-x: visible; }
  .pricing-tab { padding: 8px 14px; font-size: 12px; border-radius: 8px !important; border-right: 1px solid var(--border) !important; }
}
.pricing-panel { display: none; }
.pricing-panel.active { display: block; }

.types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}
.type-card {
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px;
  display: flex; flex-direction: column;
}
.type-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.type-card-header input {
  background: var(--bg-input); border: 1px solid var(--border); color: var(--text-primary);
  padding: 6px 12px; border-radius: 6px; font-family: 'Heebo'; font-size: 14px; font-weight: 600;
  flex: 1;
}
.type-card-header .btn-del-type {
  background: transparent; border: 1px solid var(--danger); color: var(--danger);
  padding: 4px 10px; border-radius: 6px; font-size: 11px; cursor: pointer; font-family: 'Heebo';
}
.type-card-header .btn-del-type:hover { background: var(--danger-bg); }
.period-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 6px;
}
.period-row input {
  background: var(--bg-input); border: 1px solid var(--border); color: var(--text-primary);
  padding: 5px 10px; border-radius: 6px; font-family: 'Heebo'; font-size: 13px;
}
.period-row input[type="month"] { width: 150px; direction: ltr; }
.period-row input[type="number"] { width: 100px; direction: ltr; text-align: left; }
.period-row .btn-del-period {
  background: transparent; border: none; color: var(--danger); cursor: pointer; font-size: 16px; padding: 2px 6px;
}
.btn-add {
  background: transparent; border: 1px dashed var(--border); color: var(--accent);
  padding: 8px 16px; border-radius: 8px; font-family: 'Heebo'; font-size: 12px;
  cursor: pointer; transition: all 0.2s; width: 100%;
}
.btn-add:hover { border-color: var(--accent); background: rgba(59,130,246,0.06); }
.btn-save-pricing {
  background: var(--accent); color: #fff; border: none; padding: 10px 32px;
  border-radius: 8px; font-family: 'Heebo'; font-size: 14px; font-weight: 600;
  cursor: pointer; margin-top: 16px;
}
.btn-save-pricing:hover { opacity: 0.85; }
.assign-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.assign-table th {
  background: #151d30; padding: 10px 14px; text-align: right; font-weight: 600;
  color: var(--text-secondary); font-size: 11px; border-bottom: 2px solid var(--border);
}
.assign-table td { padding: 8px 14px; border-bottom: 1px solid rgba(42,53,80,0.5); }
.assign-table select {
  background: var(--bg-input); border: 1px solid var(--border); color: var(--text-primary);
  padding: 5px 10px; border-radius: 6px; font-family: 'Heebo'; font-size: 13px; width: 100%;
}
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--accent-light); }
th.sortable::after { content: ' ⇅'; font-size: 10px; opacity: 0.4; }
th.sortable.sort-asc::after { content: ' ▲'; opacity: 0.8; }
th.sortable.sort-desc::after { content: ' ▼'; opacity: 0.8; }

.pricing-badge {
  display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 10px;
  font-weight: 600; background: rgba(59,130,246,0.12); color: var(--accent-light);
}

/* KPI Cards */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

.kpi-card .kpi-stripe {
  position: absolute; top: 0; right: 0; width: 4px; height: 100%;
  border-radius: 0 14px 14px 0;
}

.kpi-card .kpi-label {
  font-size: 12px; color: var(--text-secondary); font-weight: 500;
  margin-bottom: 8px;
}

.kpi-card .kpi-value {
  font-size: 26px; font-weight: 800; letter-spacing: -0.5px;
}

.kpi-card .kpi-sub {
  font-size: 11px; color: var(--text-muted); margin-top: 4px;
}

/* Filters */
.filters-bar {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 22px;
}

.filter-group { display: flex; flex-direction: column; gap: 4px; }
/* 2026-05-17 — per-page filter visibility. Dates are visible everywhere;
   the rest is page-scoped:
   • .filter-collection-only — apartment + payment-status (גביה only)
   • .filter-transactions-only — transaction-type + expense-category (תנועות only) */
body:not([data-active-page="collection"]) .filter-collection-only { display: none !important; }
body:not([data-active-page="transactions"]) .filter-transactions-only { display: none !important; }
.filter-group label { font-size: 11px; color: var(--text-secondary); font-weight: 500; }

.filter-group select, .filter-group input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 8px;
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  min-width: 160px;
}

.filter-group select:focus, .filter-group input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

/* Charts */
.charts-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}

.chart-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}

.chart-card h3 {
  font-size: 14px; font-weight: 600; margin-bottom: 16px;
  color: var(--text-primary);
}

.chart-card canvas { max-height: 300px; }

/* Tables */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.table-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
}

.table-header h3 { font-size: 14px; font-weight: 600; }

.table-header .record-count {
  font-size: 12px; color: var(--text-secondary);
  background: var(--bg-input); padding: 4px 12px; border-radius: 20px;
}

.table-scroll { overflow-x: auto; max-height: 500px; overflow-y: auto; }

table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}

thead { position: sticky; top: 0; z-index: 10; }

thead th {
  background: #151d30;
  padding: 12px 16px;
  text-align: right;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(42,53,80,0.5);
  color: var(--text-primary);
  white-space: nowrap;
}

tbody tr:hover { background: rgba(59,130,246,0.04); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}

.badge-success { background: var(--success-bg); color: var(--success); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }

.amount-positive { color: var(--success); font-weight: 600; }
.amount-negative { color: var(--danger); font-weight: 600; }

.confidence-high { color: var(--success); }
.confidence-medium { color: var(--warning); }
.confidence-low { color: var(--danger); }

/* Forecast */
.forecast-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}

.forecast-month-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
}

.forecast-month-card h4 {
  font-size: 14px; font-weight: 600; margin-bottom: 12px;
  color: var(--accent-light);
}

.forecast-input-group {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px;
}

.forecast-input-group label { font-size: 11px; color: var(--text-secondary); }

.forecast-input-group input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  width: 100%;
  text-align: left;
  direction: ltr;
}

.forecast-result {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}

.forecast-result .row {
  display: flex; justify-content: space-between; margin-bottom: 4px;
}

.forecast-result .row .label { color: var(--text-secondary); }

.no-data-msg {
  text-align: center; padding: 60px 20px;
  color: var(--text-muted); font-size: 15px;
}

.chart-full { grid-column: 1 / -1; }

.hidden { display: none !important; }

/* Ensure dark-themed <option> elements are readable in native browser dropdowns */
select option { background: #111827; color: #e8ecf4; }

/* Month input (native calendar picker) */
.month-input-wrapper { position: relative; display: flex; align-items: center; }
.month-input-wrapper input[type="month"] {
  width: 100%;
  padding: 10px 34px 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  direction: ltr;
  text-align: right;
  cursor: pointer;
}
.month-input-wrapper input[type="month"]:focus {
  outline: none;
  border-color: var(--accent);
}
.month-input-wrapper input[type="month"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.month-input-wrapper input[type="month"]:hover::-webkit-calendar-picker-indicator { opacity: 1; }

/* Hebrew month picker (replacement for native <input type="month"> so month names show in Hebrew) */
.he-month-picker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2px 6px;
  width: 100%;
  min-width: 0;
  position: relative;
  box-sizing: border-box;
}
.he-month-picker:focus-within { border-color: var(--accent); }
.he-month-picker select {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  padding: 7px 4px;
  cursor: pointer;
  font-family: inherit;
  outline: none;
  min-width: 0;
}
.he-month-picker .hmp-month { flex: 1.4; }
.he-month-picker .hmp-year  { flex: 1; }
.he-month-picker .hmp-clear {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 12px;
  border-radius: 4px;
  margin-inline-start: 2px;
}
.he-month-picker .hmp-clear:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text);
}
/* When used inline inside type-card period rows, keep it compact */
.period-row .he-month-picker {
  width: auto;
  min-width: 165px;
}
.he-month-picker .hmp-cal {
  background: transparent;
  border: none;
  color: var(--accent-light);
  cursor: pointer;
  padding: 4px 6px;
  font-size: 14px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.he-month-picker .hmp-cal:hover {
  background: rgba(124,167,255,0.12);
  color: var(--accent);
}

/* Floating month-grid popup that opens from the calendar icon */
.hmp-popup {
  position: absolute;
  z-index: 9000;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.5);
  min-width: 240px;
  display: none;
}
.hmp-popup.open { display: block; }
.hmp-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  padding: 4px 6px;
}
.hmp-popup-header button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 10px;
  border-radius: 6px;
}
.hmp-popup-header button:hover {
  background: var(--panel);
  color: var(--text-primary);
}
.hmp-popup-header button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.hmp-yr-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
}
.hmp-popup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.hmp-popup-grid button {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px 6px;
  border-radius: 6px;
  font-size: 12px;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}
.hmp-popup-grid button:hover {
  background: rgba(124,167,255,0.12);
  border-color: var(--accent);
}
.hmp-popup-grid button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  font-weight: 700;
}
.month-input-clear {
  position: absolute;
  right: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1;
}
.month-input-clear:hover { background: rgba(239,68,68,0.15); color: var(--danger); }

/* Loading overlay */
.loading-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at center, #0f1a2e 0%, #080d19 100%);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.loading-overlay.active { display: flex; }
.loading-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}
.loading-logo-img {
  width: 180px; height: 180px;
  border-radius: 28px;
  object-fit: cover;
  animation: logoPulse 2.5s ease-in-out infinite;
  filter: drop-shadow(0 8px 32px rgba(59,130,246,0.4));
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 8px 32px rgba(59,130,246,0.4)); transform: scale(1); }
  50% { filter: drop-shadow(0 14px 48px rgba(99,102,241,0.6)); transform: scale(1.03); }
}
.loading-title {
  font-size: 32px; font-weight: 700; color: #e2e8f0;
  letter-spacing: 1px;
  text-shadow: 0 2px 12px rgba(59,130,246,0.3);
}
.loading-tagline {
  font-size: 14px; color: #64748b; font-weight: 400;
  margin-top: -10px;
  letter-spacing: 0.5px;
}
.loading-progress {
  width: 220px; height: 3px;
  background: rgba(42,53,80,0.6);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
}
.loading-progress-bar {
  height: 100%; width: 30%;
  background: linear-gradient(90deg, var(--accent), #6366f1, #818cf8);
  border-radius: 3px;
  animation: loadingSlide 1.4s ease-in-out infinite;
}
@keyframes loadingSlide {
  0% { transform: translateX(-100%); width: 30%; }
  50% { width: 60%; }
  100% { transform: translateX(700%); width: 30%; }
}
.loading-sub { font-size: 13px; color: #64748b; letter-spacing: 0.3px; }

/* Drill-down Panel */
.drilldown-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
  z-index: 500;
  backdrop-filter: blur(4px);
}

.drilldown-overlay.active { display: flex; align-items: center; justify-content: center; }

.drilldown-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 18px;
  width: 98%;
  max-width: none;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: drilldownIn 0.25s ease-out;
}

/* ===== Page Section Card — הפרדה ויזואלית ברורה בין סקציות באותו עמוד ===== */
.page-section-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  transition: box-shadow 0.2s;
}
.page-section-card:hover {
  box-shadow: 0 6px 22px rgba(0,0,0,0.22);
}
.page-section-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.page-section-card__icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 26px;
  flex-shrink: 0;
}
.page-section-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}
.page-section-card__subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}
.page-section-card__body {
  padding: 18px 22px;
}
/* גוונים ייחודיים לכל סקציה — header bar ימני (3px) */
.page-section-card--blue   { border-right: 3px solid var(--accent); }
.page-section-card--orange { border-right: 3px solid #f59e0b; }
.page-section-card--purple { border-right: 3px solid #a855f7; }
.page-section-card--green  { border-right: 3px solid var(--success); }
.page-section-card--blue   .page-section-card__icon { background: rgba(124,167,255,0.15); color: var(--accent); }
.page-section-card--orange .page-section-card__icon { background: rgba(245,158,11,0.15); color: #f59e0b; }
.page-section-card--purple .page-section-card__icon { background: rgba(168,85,247,0.15); color: #a855f7; }
.page-section-card--green  .page-section-card__icon { background: rgba(34,197,94,0.15); color: var(--success); }

/* ===== Date inputs — גלובלי: הסתרת הכפתור הצהוב הדפולטי + אייקון calendar מותאם ===== */
input[type="date"],
input[type="datetime-local"] {
  position: relative;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ca7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 18px 18px;
  padding-left: 34px !important;
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  background: transparent;
}
/* flatpickr — altInput שיורש .flatpickr-input — לוודא שהאייקון מוצג גם עליו */
input.flatpickr-alt-input,
input.flatpickr-input ~ input[type="text"] {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ca7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
  background-repeat: no-repeat;
  background-position: left 10px center;
  background-size: 18px 18px;
  padding-left: 34px;
}

/* ===== Report Date Pickers (דוח תקופתי) — מעוצב ויפה ===== */
.report-date-input {
  position: relative;
  width: 100%;
  padding: 12px 14px 12px 44px;  /* padding-left מקום לאייקון מותאם */
  background-color: rgba(15,23,42,0.6);
  background-image:
    linear-gradient(135deg, rgba(124,167,255,0.06), rgba(15,23,42,0.6)),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ca7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='18' rx='2' ry='2'/><line x1='16' y1='2' x2='16' y2='6'/><line x1='8' y1='2' x2='8' y2='6'/><line x1='3' y1='10' x2='21' y2='10'/></svg>");
  background-repeat: no-repeat, no-repeat;
  background-position: center, left 14px center;
  background-size: cover, 20px 20px;
  border: 2px solid rgba(124,167,255,0.25);
  border-radius: 10px;
  color: var(--text-primary, #e2e8f0);
  font-family: 'Heebo', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  direction: ltr;
  text-align: center;
}
.report-date-input:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(124,167,255,0.25);
}
.report-date-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124,167,255,0.20), 0 4px 14px rgba(124,167,255,0.25);
}
/* הסתרת הכפתור הדיפולטי הצהוב של הדפדפן + הפיכתו ל-clickable area */
.report-date-input::-webkit-calendar-picker-indicator {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  background: transparent;
}

/* ===== Report Export Toolbar (תואם לישן: index.html .annual-export-toolbar) ===== */
.annual-export-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: var(--panel-2); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 16px;
}
.annual-export-toolbar .aet-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.annual-export-toolbar .aet-btn {
  background: var(--bg-card, var(--panel)); color: var(--text-primary);
  border: 1px solid var(--border); border-radius: 7px;
  padding: 7px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s; white-space: nowrap;
  font-family: Heebo, sans-serif;
}
.annual-export-toolbar .aet-btn:hover {
  border-color: var(--accent); background: var(--panel);
  transform: translateY(-1px);
}

/* (הדפסה — מתבצעת בחלון חדש דרך window.open ב-js/report-export.js) */

@keyframes drilldownIn {
  from { opacity: 0; transform: scale(0.95) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.drilldown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
}

.drilldown-header h2 { font-size: 18px; font-weight: 700; }
.drilldown-header .drilldown-subtitle { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }

.drilldown-close {
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 18px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.drilldown-close:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }

.drilldown-summary {
  display: flex; gap: 16px; padding: 16px 28px; flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
}

.drilldown-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  min-width: 110px;
  flex: 1 1 auto;
}
.drilldown-stat .stat-label { font-size: 11px; color: var(--text-secondary); }
.drilldown-stat .stat-value { font-size: 20px; font-weight: 700; margin-top: 2px; }

/* 2026-05-13 — supplier drilldown actions menu (dropdown). One "פעולות" button
   reveals a vertical list of all supplier-related actions: manual payment,
   attach invoice, supplier card edit, open contract. Replaces the old stacked
   3-button layout. */
.sup-actions-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent); color: #fff;
  border: none; padding: 8px 14px; border-radius: 10px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: 'Heebo', sans-serif;
}
.sup-actions-btn:hover { filter: brightness(1.1); }
.sup-actions-menu {
  position: absolute;
  top: calc(100% + 6px);
  inset-inline-start: 0;
  z-index: 50;
  min-width: 200px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.sup-actions-item {
  display: block; width: 100%; text-align: start;
  background: transparent; color: var(--text-primary);
  border: none; padding: 8px 12px; border-radius: 6px;
  font-size: 13px; font-weight: 500; cursor: pointer;
  text-decoration: none;
  font-family: 'Heebo', sans-serif;
}
.sup-actions-item:hover { background: rgba(124,167,255,0.12); }
.sup-actions-item-disabled {
  color: var(--text-muted); cursor: not-allowed; font-size: 12px;
}
.sup-actions-item-disabled:hover { background: transparent; }

.drilldown-body {
  overflow-y: auto;
  padding: 0 18px;
  flex: 1;
}

.drilldown-body table { width: 100%; border-collapse: collapse; font-size: 13px; }
.drilldown-body thead th {
  background: #151d30; padding: 12px 16px; text-align: right;
  font-weight: 600; color: var(--text-secondary); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border); white-space: nowrap;
  position: sticky; top: 0; z-index: 10;
}
.drilldown-body tbody td {
  padding: 10px 16px; border-bottom: 1px solid rgba(42,53,80,0.5);
  color: var(--text-primary);
}
.drilldown-body tbody tr:hover { background: rgba(59,130,246,0.06); }

/* Clickable cells */
.clickable-apt, .clickable-cat {
  cursor: pointer;
  transition: all 0.15s;
  border-bottom: 1px dashed var(--accent);
  padding-bottom: 1px;
}
.clickable-apt:hover { color: var(--accent-light); }
.clickable-cat:hover { color: var(--purple); filter: brightness(1.3); }

@media (max-width: 1200px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .upload-area { grid-template-columns: 1fr !important; }
  .container { padding: 16px; }
  .header { padding: 16px 20px; flex-direction: column; gap: 12px; }
}

/* ===== Trial / Expired Banners (שלב 4) ===== */
.trial-warning-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(245,158,11,0.18), rgba(245,158,11,0.1));
  border-bottom: 1px solid rgba(245,158,11,0.4);
  color: #fef3c7;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 101;
}
.trial-warning-banner-icon { font-size: 18px; }
.trial-warning-banner button {
  background: #f59e0b;
  color: #1e1b0f;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  font-family: Heebo, sans-serif;
  margin-inline-start: 6px;
}
.expired-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(239,68,68,0.22), rgba(239,68,68,0.14));
  border-bottom: 1.5px solid rgba(239,68,68,0.5);
  color: #fecaca;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 102;
}
.expired-banner-icon { font-size: 20px; }
.expired-banner button {
  background: #ef4444;
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: Heebo, sans-serif;
  margin-inline-start: 8px;
  box-shadow: 0 2px 8px rgba(239,68,68,0.4);
}

/* Modal לפרטי תשלום */
.payment-modal-overlay {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.payment-modal {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid rgba(124,167,255,0.3);
  border-radius: 16px;
  padding: 32px;
  max-width: 560px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  color: #e2e8f0;
}
.payment-modal h2 {
  margin: 0 0 12px;
  font-size: 22px;
  text-align: center;
}
.payment-modal .pm-section {
  background: rgba(15,23,42,0.6);
  border: 1px solid rgba(124,167,255,0.2);
  border-radius: 10px;
  padding: 16px;
  margin: 14px 0;
}
.payment-modal .pm-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(124,167,255,0.15);
}
.payment-modal .pm-row:last-child { border-bottom: none; }
.payment-modal .pm-label { font-size: 13px; color: #94a3b8; }
.payment-modal .pm-value { font-size: 14px; font-weight: 700; color: #e2e8f0; direction: ltr; }

/* ===== Viewer Mode — באנר ומחיקת כפתורי עריכה לחברי ועד (שלב 3) ===== */
.viewer-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(251,191,36,0.15), rgba(251,191,36,0.08));
  border-bottom: 1px solid rgba(251,191,36,0.3);
  color: #fde68a;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.viewer-banner-icon { font-size: 18px; }
.viewer-banner-text { line-height: 1.4; }
/* כשגוף האפליקציה במצב צפייה — מסתיר את כל הכפתורים שמסומנים .edit-only */
body.viewer-mode .edit-only { display: none !important; }
/* הבאנר עצמו נשלט ב-JS (כדי להבדיל בין "אתה חבר ועד" לבין "trial פג") */
