/* Native V2 Overview. Layout follows the width of the area (the shell sidebar takes space): two columns under the first chart when it is >= 600 px wide. */
.ov { position: absolute; inset: 0; background: #f1f1f1; font-size: 14px; color: var(--ink); overflow: hidden; }
.ov.off { visibility: hidden; pointer-events: none; }
.ov .ct-loading { padding: 24px; color: var(--muted); text-align: center; }
.ov-scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; padding: 16px 24px 32px; }
.ov-wrap { max-width: 1200px; margin: 0 auto; display: grid; gap: 16px; }
.ov[data-layout="narrow"] .ov-scroll { padding: 12px 12px 24px; }

.ov-card { position: relative; background: #fff; border-radius: 16px; padding: 16px; min-width: 0; }
.ov-first { min-height: 40vh; }
.ov-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.ov[data-layout="narrow"] .ov-grid { grid-template-columns: minmax(0, 1fr); }
.ov-second { min-height: 37vh; }
.ov-stats { min-height: 37vh; max-height: 37vh; overflow: auto; display: grid; align-content: start; gap: 0; }
.ov[data-layout="narrow"] .ov-stats { max-height: none; }

/* charts */
.ov-ctools { position: absolute; top: 8px; right: 12px; z-index: 3; }
.ov[dir="rtl"] .ov-ctools { right: auto; left: 12px; }
.ov-plot { position: relative; min-width: 0; padding-top: 22px; }
.ov-svg { display: block; width: 100%; height: auto; overflow: visible; }
.ov-svg .ov-hit { cursor: crosshair; }
.ov-tip { position: absolute; z-index: 4; pointer-events: none; display: none; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); padding: 6px 10px; font-size: 12px; white-space: nowrap; }
.ov-tip.on { display: block; }
.ov-tip b:first-child { display: block; margin-bottom: 4px; }
.ov-tiprow { display: flex; align-items: center; gap: 6px; line-height: 1.6; }
.ov-tiprow i, .ov-leg i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
.ov-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 4px; }
.ov-leg { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: inherit; font-size: 12px; color: #373d3f; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.ov-leg:hover { background: #f5f5f5; }
.ov-leg.off { opacity: .45; text-decoration: line-through; }
.ov-menu { top: 40px; right: 12px; left: auto; }
.ov[dir="rtl"] .ov-menu { right: auto; left: 12px; }
.ov-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* totals */
.ov-stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; font-size: 13px; }
.ov-statlabel { display: inline-flex; align-items: center; gap: 16px; min-width: 0; }
.ov-statlabel span { overflow: hidden; text-overflow: ellipsis; }
.ov-sicon { flex: none; color: #222; }
.ov-statval { font-weight: 400; }
.ov-statwrap hr { border: 0; border-top: 1px solid #e0e0e0; margin: 0; }

/* loading */
.ov-skel { display: grid; gap: 12px; }
.ov-skel i { display: block; border-radius: 6px; background: linear-gradient(90deg, #ececec 25%, #f6f6f6 50%, #ececec 75%); background-size: 200% 100%; animation: ov-wave 1.4s linear infinite; }
@keyframes ov-wave { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ov-skel i { animation: none; } }
