/* Investment platform shared styles (modules/20-gim-core): timelines, lists, trees, state labels and 360 pages. */
.gim-state { font-weight: 700; }
.gim-state:before { display: none; }
.gim-state i { font-size: 11px; }
.gim-tl .sub { color: var(--muted); font-size: 11.5px; }
.gim-note { margin-top: 4px; padding: 7px 10px; background: var(--panel-soft, #f5f8fb); border-radius: 8px; white-space: normal; overflow-wrap: anywhere; font-size: 12.5px; }
.gim-file { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; padding: 4px 0; font-size: 12.5px; overflow-wrap: anywhere; }
.gim-upload { margin-top: 10px; }
.gim-actions form { margin: 0; }
.gim-actions .ct-btn { width: 100%; justify-content: center; }
.gim-saved { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gim-list { margin: 0; padding-left: 18px; line-height: 1.7; font-size: 12.5px; }
.gim-tabs { margin-bottom: 0; }
.ct-tbl td.pos, .num.pos, .pos { color: #08875a; }
.ct-tbl td.neg, .num.neg, .neg { color: #c0283e; }
.ct-tbl td.nowrap, .nowrap { white-space: nowrap; }
.ct-tbl tr.gim-lvl0 td { background: #f2f7fc; font-weight: 600; }
.ct-tbl tr.gim-lvl1 td { background: #fafcfe; }
.gim-tree td i.bi { color: #5a7fa6; margin-right: 3px; }
.gim-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.gim-day { border: 1px solid #d6e2ee; border-radius: 6px; padding: 8px 6px; text-align: center; background: #f4fbf7; min-width: 0; }
.gim-day b { display: block; font-size: 12px; color: #1f4b77; }
.gim-day span { display: block; font-size: 13px; font-weight: 700; color: var(--text); }
.gim-day small { display: block; font-size: 11px; color: #08875a; }
.gim-day.off { background: #f6f7f9; }
.gim-day.off small { color: #8a96a3; }
.gim-kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.gim-bar { height: 8px; border-radius: 6px; background: #e6edf4; overflow: hidden; position: relative; min-width: 60px; }
.gim-bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2083ee, #0962d3); }
.gim-bar.warn i { background: linear-gradient(90deg, #f5a524, #e08a00); }
.gim-bar.bad i { background: linear-gradient(90deg, #ef5927, #d23a10); }
.gim-bar.ok i { background: linear-gradient(90deg, #13b985, #04955d); }
.gim-bar .tick { position: absolute; top: -2px; bottom: -2px; width: 2px; background: #1d2b3a; }
.gim-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.gim-chip { display: inline-flex; gap: 6px; align-items: center; padding: 3px 9px; border-radius: 12px; background: #eef4fa; color: #23476b; font-size: 12px; font-weight: 600; }
.gim-help { color: var(--muted); font-size: 12.5px; margin: 0 0 8px; line-height: 1.5; }
.gim-big { font-size: 22px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.gim-sep td { border-top: 2px solid #c8d4df; }
.gim-heat td.h { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) {
    .gim-days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .gim-kv { grid-template-columns: minmax(0, 1fr); }
}
/* KPI cards: a sparkline along the bottom and the change against the last period. */
.ct-kpi .kpi-spark { position: absolute; left: 14px; right: 68px; bottom: 8px; height: 20px; color: rgba(255, 255, 255, .75); pointer-events: none; }
.ct-kpi .kpi-spark svg { width: 100%; height: 100%; display: block; }
.ct-kpi .kpi-delta { display: inline-block; padding: 0 5px; border-radius: 3px; background: rgba(255, 255, 255, .2); font-weight: 700; margin-right: 3px; }
.ct-kpi:has(.kpi-spark) em { margin-bottom: 14px; }
.db-desk { display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px var(--fb); color: #1f4b77; background: #eaf2fb; border: 1px solid #cfe0f1; border-radius: 4px; padding: 5px 10px; white-space: nowrap; }
@media (max-width: 760px) { .db-desk { white-space: normal; } }

.gim-acts{display:flex;flex-direction:column;gap:4px;align-items:stretch}
.gim-acts .ct-btn{justify-content:center}
