/* "ההשקעה שלי" dialog (InvestDialog): hero panel colours, tabs, start-date row and the history timeline. The track list itself uses the planflow styles. */
.sheet.inv { background: var(--bg-app); }
/* the hero (and the picture fading into it) must be the same colour as the sheet, or the picture ends in a hard edge */
.sheet.inv .bh { background: var(--bg-app); }
.iv-ri { stroke: var(--aurora-4); } .iv-re { stroke: var(--accent-gold); }
.iv-pan .bh-rings circle { stroke-linecap: round; }
.iv-empty .bh-track { stroke: rgba(143, 163, 176, 0.28); }
/* hero panel (dark, like the budget summary card): small ring beside today's value, the live track pill with the monthly interest, then three columns */
.bh-panel.iv-pan { flex-direction: column; align-items: stretch; gap: 0; padding: 12px 14px; background: rgba(7, 17, 29, 0.84); border-color: rgba(56, 80, 97, 0.8); }
.iv-top { display: flex; align-items: center; gap: var(--space-12); }
.iv-ring { width: 64px; height: 64px; }
.iv-tot { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.iv-tl { font-size: 11px; color: var(--color-text-secondary); }
.iv-big { font-size: 30px; font-weight: 800; line-height: 1.15; direction: ltr; unicode-bidi: isolate; text-align: right; color: var(--accent-mint); }
.iv-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-8); margin-top: 8px; }
.iv-pill { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; background: color-mix(in srgb, var(--accent-mint-strong) 20%, transparent); color: var(--accent-mint); }
.iv-pill.e { background: transparent; border: 1px dashed rgba(143, 163, 176, 0.7); color: var(--color-text-secondary); font-weight: 400; }
.iv-cap { font-size: 11px; color: var(--color-text-secondary); white-space: nowrap; }
.iv-cap.on { font-size: 14px; font-weight: 800; color: var(--accent-gold); }
.iv-hl { height: 1px; margin: 10px 0; background: rgba(56, 80, 97, 0.8); }
.iv-cols { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.iv-col { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.iv-col + .iv-col { border-inline-start: 1px solid rgba(56, 80, 97, 0.8); }
.iv-cl { display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-size: 11px; color: var(--color-text-secondary); }
.iv-d { width: 7px; height: 7px; border-radius: 50%; }
.iv-d.i { background: var(--aurora-4); } .iv-d.e { background: var(--accent-gold); } .iv-d.m { background: var(--accent-mint-strong); }
.iv-c { font-size: 15px; font-weight: 800; direction: ltr; unicode-bidi: isolate; }
.iv-c.i { color: var(--aurora-4); } .iv-c.e { color: var(--accent-gold); } .iv-c.m { color: var(--accent-mint-strong); } .iv-c.none { color: var(--color-text-muted); }

.inv-seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin: var(--space-4) 0 var(--space-16); border-radius: 999px; background: rgba(10, 20, 31, 0.7); }
.inv-seg i { position: absolute; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--accent-gold); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent-gold) 28%, transparent); transition: transform .25s ease; }
/* the page is right-to-left: the second tab is to the left of the first */
.inv[data-tab="history"] .inv-seg i { transform: translateX(-100%); }
.inv-seg button { position: relative; z-index: 1; min-height: 40px; padding: 6px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--color-text-secondary); cursor: pointer; transition: color .2s; }
.inv-seg button[aria-selected="true"] { color: var(--bg-app); }
.inv-seg button:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; border-radius: 999px; }

/* both panes share one grid cell: the hidden one keeps its space, so the popup does not change size when switching tabs */
.inv-panes { display: grid; }
.inv-panes > .inv-pane { grid-area: 1 / 1; min-width: 0; }
.inv-pane.off { visibility: hidden; pointer-events: none; }
.inv-sl { margin: 0 0 var(--space-8); font-size: 13px; font-weight: 500; color: var(--color-text-secondary); }
.inv .pln-tracks { margin-bottom: var(--space-4); }
.iv-amt { color: var(--accent-gold); }
.inv-led { margin-top: var(--space-16); padding: 2px 16px; border-radius: 20px; background: rgba(10, 20, 31, 0.58); }
.inv-fl { display: flex; align-items: center; gap: 12px; min-height: 60px; cursor: pointer; }
.inv-ic { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 11px; color: var(--aurora-3); background: color-mix(in srgb, var(--aurora-3) 14%, transparent); }
.inv-ic svg { width: 18px; height: 18px; }
.inv-fl-t { flex: 1; min-width: 0; font-size: 13px; color: var(--color-text-secondary); }
.inv-date { width: 9.5em; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--text-primary); font: inherit; font-size: 18px; font-weight: 700; text-align: end; direction: ltr; color-scheme: dark; outline: none; }
.inv-fl + .inv-fl { border-top: 1px solid rgba(120, 150, 175, 0.16); }
.inv-fl:focus-within { box-shadow: 0 1px 0 0 var(--accent-gold); }
.inv-dep { cursor: default; }
.inv-dep:focus-within { box-shadow: none; }
.inv-ic.mn { color: var(--accent-mint-strong); background: color-mix(in srgb, var(--accent-mint-strong) 14%, transparent); }
.inv-fl-t small { display: block; font-size: 11px; color: var(--color-text-muted); line-height: 1.3; }
.inv-depval { font-size: 17px; font-weight: 700; color: var(--accent-mint-strong); direction: ltr; unicode-bidi: isolate; }
.inv-step { display: flex; gap: 6px; }
.inv-step button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--color-surface-2); border: 1px solid var(--color-border); color: var(--accent-gold); font: inherit; font-size: 17px; line-height: 1; cursor: pointer; }
.inv-step button:disabled { opacity: .35; cursor: default; }
.inv-step button:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.inv-actions { margin-top: var(--space-16); }

.inv-hist { position: relative; padding-inline-start: 22px; }
.inv-hist::before { content: ""; position: absolute; inset-inline-start: 6px; top: 12px; bottom: 12px; width: 2px; background: var(--color-border); }
.inv-hr { position: relative; padding: 6px 0 12px; }
.inv-hr::before { content: ""; position: absolute; inset-inline-start: -22px; top: 12px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-border); border: 2px solid var(--color-surface); box-sizing: content-box; margin-inline-start: 0; }
.inv-hr.cur::before { background: var(--accent-gold); }
.inv-hr-a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 15px; font-weight: 600; }
.inv-hr-a b { font-size: 15px; color: var(--aurora-3); direction: ltr; unicode-bidi: isolate; }
.inv-hr-b { font-size: 12px; color: var(--color-text-muted); }
.inv-empty { margin: var(--space-12) 0 0; font-size: 13px; color: var(--color-text-muted); line-height: 1.5; }
