/* Otium app: Portfolio: Today's buys, the portfolio card, highest and lowest gain, and Cash (the pot bar, splits, interest since 3.5.0). Load order: see index.html. */
/* Today card on Portfolio (since 2.148.0): Contender #1 and how many whole shares your cash buys */
.today { margin-top: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; max-width: 560px; }
.today .lbl { font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.today .tk { font-size: 30px; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.today .nm { font-size: 12px; color: var(--text-2); margin-bottom: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today .blocks { display: flex; gap: 4px; margin: 8px 0 6px; }
.today .blk { flex: 1; height: 24px; border-radius: 5px; border: 1px dashed color-mix(in srgb, var(--ref) 60%, transparent); position: relative; overflow: hidden; min-width: 0; }
.today .blk.wide { flex: 4; }
.today .blk span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; white-space: nowrap; color: var(--text); }
.today .blk .fill { position: absolute; inset: 0 auto 0 0; }
.today .blk.full { background: var(--buy); border: 1px solid var(--buy); } .today .blk.full span { color: #fff; }
.today .blk.pend { border: 2px dotted var(--buy); background: transparent; } .today .blk.pend span { color: var(--buy); }
.today .chip.ok { color: var(--buy); border-color: color-mix(in srgb, var(--buy) 50%, transparent); }
.today .live { margin-top: 8px; font-size: 12px; padding: 6px 8px; border-radius: 6px; background: var(--accent-bg); color: var(--text-2); }
.livep { font-size: 12px; font-weight: 600; color: var(--series); border: 1px solid var(--series); border-radius: 4px; padding: 0 4px; margin-left: 6px; white-space: nowrap; vertical-align: 2px; font-variant-numeric: tabular-nums; }   /* the live time: a small box in the icons' colour (3.4.15) */
.today .blk.left .fill { background: color-mix(in srgb, var(--buy) 22%, transparent); }
.today .blk.save .fill { background: color-mix(in srgb, var(--wait) 35%, transparent); }
.today .row2 { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.today .chips { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px; }
.today .chip { font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); font-weight: 400; }
.today .chip.best { color: var(--best); border-color: color-mix(in srgb, var(--best) 50%, transparent); }
.today .chip.pos { color: var(--good); border-color: color-mix(in srgb, var(--good) 50%, transparent); }
.today .chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.today .chip.neg { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.today .note { font-size: 12px; color: var(--text-2); margin-top: 6px; }
.today { --buy: #0ca30c; --wait: #d03b3b; } .today .tk.buy { color: var(--buy); } .today .tk.wait { color: var(--wait); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .today { --buy: #3cc43c; --wait: #ff5a4f; } }
:root[data-theme="dark"] .today { --buy: #3cc43c; --wait: #ff5a4f; }
.today .tkisin { margin: -6px 0 8px; }
#todayTitle + .today { margin-top: 0; }       /* under its "Today's winner" title (since 2.165.0) */
.potbar { display: flex; height: 8px; background: var(--grid); gap: 2px; border-radius: 4px; overflow: hidden; margin: 8px 0 4px; }
.potbar i { display: block; height: 100%; } .potbar .c-core { background: var(--best); } .potbar .c-sat { background: var(--good); }
.splitrow td { background: var(--accent-bg); }
.splitbox { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.splitbox input[type=number] { width: 90px; } .splitbox input[type=range] { width: 180px; }
.todays { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 0; }
.todays .today { margin-top: 0; max-width: none; min-width: 0; }   /* minmax(0, …) and min-width: 0 (3.8.0): a long fund name no longer widens the cards past the screen */
.today .lbl { display: flex; justify-content: space-between; gap: 8px; }
@media (max-width: 720px) { .todays { grid-template-columns: minmax(0, 1fr); } }
.pone { cursor: default; margin-bottom: 12px; } .pone .top { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.pone .t { margin-bottom: 6px; } .pone .ttl { font-weight: 600; margin-bottom: 2px; }
.pone .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border); }
@media (max-width: 640px) { .pone .cols { grid-template-columns: 1fr; } }
#portCards { display: block; }
.hl { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 12px; }
.hl h3 { font-size: 14px; margin: 0 0 6px; }
@media (max-width: 640px) { .hl th, .hl td { padding: 8px 5px; font-size: 13px; } .hl .small { font-size: 11px; } }
/* interest on cash (since 3.5.0) */
.intbox { margin: 4px 0 16px; }
.intbox p { margin: 6px 0 0; }
.intbox .tiles { max-width: 420px; }
.intbox .strong { color: var(--text); }
.daysrow .small > b { display: inline-block; margin: 4px 2px 6px; }
.daysrow .tablewrap { max-height: 320px; overflow: auto; }
