/* מעקב שוק הון - אפליקציית הטלפון.
   אותה שפה עיצובית כמו האתר במחשב (שחור עמוק/שנהב עם זהב, כותרות סריף),
   מותאמת לאגודל: כרטיסים במקום טבלאות רחבות, סרגל לשוניות בתחתית. */

:root {
  --bg: #07080a;
  --surface: #14161b;
  --surface-2: #1c1f26;
  --border: #2a2d36;
  --border-accent: rgba(212, 175, 108, 0.35);
  --text: #efe9dc;
  --text-dim: #8e8a7c;
  --accent: #d4af6c;
  --accent-2: #f2d59a;
  --accent-3: #a97e34;
  --accent-text: #100d05;
  --accent-fill: rgba(212, 175, 108, 0.14);
  --accent-gradient: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 48%, var(--accent-3) 100%);
  --green: #63b085;
  --red: #c96b61;
  --green-fill: rgba(99, 176, 133, 0.16);
  --red-fill: rgba(201, 107, 97, 0.16);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --radius: 14px;
  --font-serif: Cambria, Georgia, "Times New Roman", serif;
  --font-sans: -apple-system, "Segoe UI", "Heebo", Arial, sans-serif;
  --tabbar-h: 62px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f4ef; --surface: #ffffff; --surface-2: #f1eee7; --border: #e6e2d8;
    --border-accent: rgba(150, 105, 15, 0.3); --text: #201d17; --text-dim: #7a7366;
    --accent: #96690f; --accent-2: #c2953f; --accent-3: #6e4a08; --accent-text: #fdfaf2;
    --accent-fill: rgba(150, 105, 15, 0.09); --green: #3f7a53; --red: #9c3f36;
    --green-fill: rgba(63, 122, 83, 0.11); --red-fill: rgba(156, 63, 54, 0.11);
    --shadow: 0 8px 26px rgba(80, 68, 40, 0.1); color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #f1eee7; --border: #e6e2d8;
  --border-accent: rgba(150, 105, 15, 0.3); --text: #201d17; --text-dim: #7a7366;
  --accent: #96690f; --accent-2: #c2953f; --accent-3: #6e4a08; --accent-text: #fdfaf2;
  --accent-fill: rgba(150, 105, 15, 0.09); --green: #3f7a53; --red: #9c3f36;
  --green-fill: rgba(63, 122, 83, 0.11); --red-fill: rgba(156, 63, 54, 0.11);
  --shadow: 0 8px 26px rgba(80, 68, 40, 0.1); color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
  overscroll-behavior-y: none;
}
button { font-family: inherit; color: inherit; }
a { color: var(--accent); }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.up { color: var(--green); }
.down { color: var(--red); }
.dim { color: var(--text-dim); }
.serif { font-family: var(--font-serif); }

/* ---------- מסך נעילה ---------- */
.lock {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 24px calc(32px + var(--safe-bottom));
  background: radial-gradient(ellipse 120% 60% at 50% 0%, var(--accent-fill), transparent 70%), var(--bg);
}
.lock-brand {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-align: center;
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.lock-sub { text-align: center; color: var(--text-dim); margin: 8px 0 34px; font-size: 0.92rem; }
.lock-card {
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow: var(--shadow), inset 0 3px 0 var(--accent);
}
.lock-card label { display: block; font-size: 0.8rem; color: var(--text-dim); margin-bottom: 8px; }
.lock-card input[type="password"] {
  width: 100%;
  font-size: 1.05rem;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  outline: none;
}
.lock-card input[type="password"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-fill); }
.lock-remember { display: flex; align-items: center; gap: 9px; margin: 14px 0 18px; font-size: 0.88rem; }
.lock-remember input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn-primary {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  background: var(--accent-gradient);
  color: var(--accent-text);
}
.btn-primary:disabled { opacity: 0.6; }
.lock-error { color: var(--red); font-size: 0.86rem; margin-top: 12px; min-height: 1.2em; text-align: center; }
.lock-note { color: var(--text-dim); font-size: 0.75rem; text-align: center; margin-top: 22px; line-height: 1.6; }

/* ---------- מעטפת ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
}
.topbar-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; flex: 1; min-width: 0; }
.topbar-title small { display: block; font-family: var(--font-sans); font-size: 0.72rem; font-weight: 500; color: var(--text-dim); margin-top: 1px; }
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  flex-shrink: 0;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.spin svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.health-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-dim); flex-shrink: 0; }
.health-dot.ok { background: var(--green); box-shadow: 0 0 0 3px var(--green-fill); }
.health-dot.warning { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-fill); }
.health-dot.error { background: var(--red); box-shadow: 0 0 0 3px var(--red-fill); }
.health-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 38px; border: none; background: none; }

main {
  padding: 14px 14px calc(var(--tabbar-h) + var(--safe-bottom) + 24px);
  max-width: 720px;
  margin: 0 auto;
}
.stale-banner {
  background: var(--accent-fill);
  border: 1px solid var(--border-accent);
  color: var(--text);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30;
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
}
.tabbar button {
  border: none;
  background: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 1px;
  line-height: 1.1;
  text-align: center;
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--text-dim);
  position: relative;
}
.tabbar svg { width: 22px; height: 22px; }
.tabbar button.active { color: var(--accent); }
.tabbar button.active::before {
  content: "";
  position: absolute;
  top: 0; left: 26%; right: 26%;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--accent-gradient);
}

/* ---------- רכיבים ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: inset 0 2px 0 var(--accent-fill);
}
.card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-dim);
  margin: 0 0 12px;
  flex-wrap: wrap;
  white-space: nowrap;
}
.section-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: var(--text-dim);
  margin: 22px 4px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pill {
  display: inline-block;
  min-width: 58px;
  text-align: center;
  padding: 3px 8px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
  background: var(--surface-2);
}
.pill.up { background: var(--green-fill); }
.pill.down { background: var(--red-fill); }
.chip {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: var(--accent-fill);
  color: var(--accent);
  direction: ltr;
  unicode-bidi: isolate;
}
.seg {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.seg button {
  border: none;
  background: none;
  padding: 6px 11px;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}
.seg button.active { background: var(--accent-gradient); color: var(--accent-text); }
.empty { color: var(--text-dim); text-align: center; padding: 26px 10px; font-size: 0.9rem; }
.note { font-size: 0.76rem; color: var(--text-dim); background: var(--accent-fill); border-inline-start: 2px solid var(--accent); border-radius: 4px; padding: 6px 9px; margin: 0 0 10px; line-height: 1.5; }
.loading { display: flex; justify-content: center; padding: 50px 0; }
.loading::after {
  content: ""; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}

/* ---------- תיק: כרטיס סיכום ---------- */
.hero { border-color: var(--border-accent); box-shadow: var(--shadow), inset 0 3px 0 var(--accent); padding: 18px 16px 14px; }
.hero-eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.3px; color: var(--text-dim); }
.hero-value {
  font-family: var(--font-serif);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.1;
  margin: 6px 0 6px;
  font-variant-numeric: tabular-nums;
  background: var(--accent-gradient);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--accent);
}
.hero-value .cur { font-family: var(--font-sans); font-size: 0.9rem; font-weight: 600; margin-inline-start: 8px; color: var(--text-dim); -webkit-text-fill-color: var(--text-dim); unicode-bidi: isolate; }
.hero-day { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.95rem; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.kpi { padding: 0 8px; border-inline-end: 1px solid var(--border); }
.kpi:first-child { padding-inline-start: 0; }
.kpi:last-child { border-inline-end: none; padding-inline-end: 0; }
.kpi-label { font-size: 0.7rem; color: var(--text-dim); }
.kpi-value { font-family: var(--font-serif); font-size: 1.08rem; font-weight: 700; margin: 3px 0 2px; font-variant-numeric: tabular-nums; }
.kpi-sub { font-size: 0.68rem; color: var(--text-dim); }
.split { margin-top: 12px; }
.split-bar { height: 6px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--text-dim) 30%, transparent); }
.split-bar i { display: block; height: 100%; background: var(--accent-gradient); }
.split-legend { display: flex; gap: 16px; margin-top: 7px; font-size: 0.72rem; color: var(--text-dim); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; }

/* ---------- רשימות (אחזקות, מעקב, חברות) ---------- */
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 12px; }
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: start;
  background: none;
  border-inline: none;
  border-top: none;
}
.row:last-child { border-bottom: none; }
button.row:active { background: var(--accent-fill); }
.row-main { min-width: 0; }
.row-ticker { font-weight: 800; letter-spacing: 0.5px; font-size: 0.98rem; direction: ltr; unicode-bidi: isolate; }
.row-name { font-size: 0.76rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: right; }
.row-side { text-align: end; }
.row-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.row-meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.74rem; color: var(--text-dim); margin-top: 4px; }
.row-meta b { font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.fav { color: var(--accent); margin-inline-start: 4px; }
.hold-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; padding: 9px 0 0; border-top: 1px dashed var(--border); }
.hold-stats div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hold-stats span { font-size: 0.68rem; color: var(--text-dim); }
.hold-stats b { font-size: 0.9rem; font-weight: 700; text-align: start; }
.hold-stats small { font-size: 0.72rem; font-weight: 700; text-align: start; }
.row-earn { grid-column: 1 / -1; margin-top: 7px; }
.earn-badge { display: inline-block; font-size: 0.72rem; font-weight: 600; padding: 3px 9px; border-radius: 20px; background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border); }
.earn-badge.soon { background: var(--accent-fill); color: var(--accent); border-color: var(--border-accent); }
.hold-sub { grid-column: 1 / -1; font-size: 0.72rem; color: var(--text-dim); margin-top: 6px; }
.hold-sub b { color: var(--text); font-weight: 600; }
.weight-bar { height: 3px; border-radius: 3px; background: var(--surface-2); margin-top: 6px; overflow: hidden; grid-column: 1 / -1; }
.weight-bar i { display: block; height: 100%; background: var(--accent-gradient); }

.toolbar { display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.search {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
}
.search:focus { border-color: var(--accent); }
.select {
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-family: inherit;
}
.toggle-fav { border: 1px solid var(--border); background: var(--surface); border-radius: 10px; padding: 9px 11px; font-size: 0.82rem; color: var(--text-dim); white-space: nowrap; }

/* שורת מיון: כפתורים בגלילה אופקית, לחיצה חוזרת הופכת כיוון */
.sortbar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 10px; margin: 0 -2px; }
.sortbar::-webkit-scrollbar { display: none; }
.sortbar button {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 0.8rem;
  font-weight: 600;
}
.sortbar button.active { background: var(--accent-gradient); color: var(--accent-text); border-color: transparent; }
.sortbar .arrow { margin-inline-start: 4px; font-weight: 800; }
.toggle-fav.active { color: var(--accent); border-color: var(--border-accent); background: var(--accent-fill); }

/* ---------- ראשי ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; }
.tile-name { font-size: 0.78rem; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-price { font-family: var(--font-serif); font-size: 1.12rem; font-weight: 700; margin: 3px 0 4px; font-variant-numeric: tabular-nums; }
.bars .bar-row { display: grid; grid-template-columns: 92px 1fr 64px; align-items: center; gap: 8px; padding: 5px 0; font-size: 0.82rem; }
.bar-track { position: relative; height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.bar-track i { position: absolute; top: 0; bottom: 0; border-radius: 5px; }
.bar-track .zero { position: absolute; top: -2px; bottom: -2px; width: 1px; background: var(--border); left: 50%; }
.bar-row.bench { font-weight: 700; color: var(--accent); }
.news-item { display: block; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); text-decoration: none; }
.news-item:last-child { border-bottom: none; }
.news-head { font-size: 0.92rem; font-weight: 600; line-height: 1.45; }
.news-meta { display: flex; gap: 8px; align-items: center; font-size: 0.72rem; color: var(--text-dim); margin-top: 6px; }

/* ---------- חברה ---------- */
.co-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.co-ticker { font-family: var(--font-serif); font-size: 1.7rem; font-weight: 700; direction: ltr; unicode-bidi: isolate; }
.co-name { font-size: 0.82rem; color: var(--text-dim); direction: ltr; text-align: right; }
.co-price { text-align: end; }
.co-price .p { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.back-btn { border: none; background: none; color: var(--accent); font-weight: 600; font-size: 0.9rem; padding: 4px 0 12px; display: inline-flex; align-items: center; gap: 4px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.stat { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.stat span:first-child { color: var(--text-dim); }
.stat span:last-child { font-weight: 700; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.range { margin: 10px 0 2px; }
.range-track { position: relative; height: 6px; border-radius: 6px; background: var(--surface-2); }
.range-fill { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--accent-gradient); opacity: 0.35; left: 0; right: 0; }
.range-marker { position: absolute; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); transform: translateX(-50%); }
.range-labels { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--text-dim); margin-top: 6px; direction: ltr; }
.stats.one-col { grid-template-columns: 1fr; }
.fin-toggles { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 10px; }
.prepost { font-size: 0.8rem; margin-top: 10px; padding: 7px 10px; border-radius: 8px; border: 1px dashed var(--border); display: flex; gap: 8px; align-items: center; }
.stmt-wrap { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
.stmt-table { border-collapse: collapse; font-size: 0.76rem; min-width: 100%; }
.stmt-table th, .stmt-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; text-align: end; }
.stmt-table th { color: var(--text-dim); font-weight: 600; font-size: 0.7rem; }
.stmt-table td:first-child, .stmt-table th:first-child { text-align: start; position: sticky; right: 0; background: var(--surface); max-width: 150px; white-space: normal; z-index: 1; }
.stmt-table tr.total td { font-weight: 700; }
.debate-turn { padding: 10px 12px; border-radius: 10px; margin-bottom: 8px; background: var(--surface-2); }
.debate-turn.bull { border-inline-start: 3px solid var(--green); }
.debate-turn.bear { border-inline-start: 3px solid var(--red); }
.debate-turn.verdict { border-inline-start: 3px solid var(--accent); }
.debate-turn b { display: block; margin-bottom: 4px; font-size: 0.82rem; }
.chart-box { position: relative; height: 190px; }
.chart-box.tall { height: 230px; }
.prose { font-size: 0.88rem; line-height: 1.75; color: var(--text); white-space: pre-line; }
.prose.ltr { direction: ltr; text-align: left; }
details.more > summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 0.85rem; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
details.more[open] > summary { margin-bottom: 10px; }

/* ---------- דוחות ---------- */
.er-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--border); width: 100%; background: none; border-inline: none; border-top: none; text-align: start; }
.er-row:last-child { border-bottom: none; }
.er-date { text-align: center; border-radius: 9px; background: var(--surface-2); padding: 5px 0; }
.er-date b { display: block; font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.1; }
.er-date small { font-size: 0.66rem; color: var(--text-dim); }
.badge { display: inline-block; padding: 2px 7px; border-radius: 6px; font-size: 0.7rem; font-weight: 700; }
.badge.beat { background: var(--green-fill); color: var(--green); }
.badge.miss { background: var(--red-fill); color: var(--red); }
.badge.flat { background: var(--surface-2); color: var(--text-dim); }
.q-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.q-table th, .q-table td { padding: 8px 4px; border-bottom: 1px solid var(--border); text-align: end; font-variant-numeric: tabular-nums; }
.q-table th { color: var(--text-dim); font-weight: 600; font-size: 0.72rem; }
.q-table th:first-child, .q-table td:first-child { text-align: start; }

/* ---------- מאקרו ---------- */
.macro-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.macro-tile { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px 12px; text-align: start; width: 100%; }
.macro-tile.active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-fill); }
.macro-name { font-size: 0.76rem; color: var(--text-dim); line-height: 1.35; min-height: 2.1em; }
.macro-value { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.macro-date { font-size: 0.68rem; color: var(--text-dim); }

/* ---------- גיליון תחתון (בריאות) ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.45); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-height: 75vh; overflow-y: auto;
  background: var(--surface);
  border-radius: 18px 18px 0 0;
  border-top: 1px solid var(--border-accent);
  padding: 10px 18px calc(24px + var(--safe-bottom));
  box-shadow: var(--shadow);
}
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--border); margin: 0 auto 14px; }
.sheet h3 { font-family: var(--font-serif); margin: 0 0 12px; }
.issue { padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.86rem; }
.issue:last-child { border-bottom: none; }
.sheet-actions { display: flex; gap: 10px; margin-top: 18px; }
.btn-ghost { flex: 1; border: 1px solid var(--border); background: var(--surface-2); border-radius: 10px; padding: 11px; font-size: 0.88rem; font-weight: 600; }
