/* Otium app: The Overview: the tiles at the top (every line on one line, since 3.5.0), the price chart and the master view. Load order: see index.html. */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(var(--kmin, 150px), 100%), 1fr)); gap: 12px; margin-top: 20px; }   /* --kmin: fitKpis (since 3.5.3) */
.kpis[data-two] { grid-template-columns: repeat(2, var(--k2)); }   /* room for 3 but not 4: 2 a row, same width (fitKpis, since 3.5.5) */
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.kpi .l { font-size: 13px; color: var(--text-2); } .kpi .v { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chart { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.chart svg { display: block; }
.chart text { fill: var(--text-2); font-size: 11px; }
.tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 4px 8px; font-size: 12px; box-shadow: 0 2px 8px rgba(0,0,0,.12); white-space: nowrap; }
@media (max-width: 400px) { .kpi .v { font-size: 18px; } }
.kpi .v .small { font-weight: 400; margin-top: 2px; }
.kpi .v .sub { display: block; font-size: 12px; font-weight: 400; color: var(--text-2); margin-top: 2px; }
.kpi .v .sub b { color: var(--text); font-weight: 600; }
.mv { font-size: 18px; padding: 4px 10px; margin-left: 2px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; }   /* the size of the refresh button (since 3.5.8) */ .mv.on { background: var(--accent-bg); border-color: var(--series); }
#masterView .sc b { font-weight: 600; } #masterView td .sc > span { font-size: 12px; display: block; }
.mvrow { cursor: pointer; } .mvrow:hover td { background: var(--accent-bg); }
#masterView input[type=checkbox] { width: auto; }
.mvcards { display: none; }
@media (max-width: 640px) { .tablewrap.mvt { display: none; } .mvcards { display: grid; gap: 10px; } }
.mvcard { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; cursor: pointer; }
.mvcard.total { border-color: var(--series); cursor: default; }
.mvcard .h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; } .mvcard .h b { font-size: 15px; } .mvcard .h .check { margin: 0; }
.mvcard .g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 10px; margin-top: 8px; font-size: 13px; }
.mvcard .g > div > span:first-child { color: var(--text-2); font-size: 12px; display: block; }
/* every line of the tiles on one line: fitKpis (overview.js) shrinks them to fit */
.kpi { min-width: 0; }
.kpi .v .one, .kpi .v .sub { display: block; white-space: nowrap; overflow: hidden; }
.kpi .v .one .p { font-size: .7em; font-weight: 600; }
