/* Painel administrativo - complementos do design system */
.chart-box { position: relative; height: 280px; }
.chart-box.tall { height: 360px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar .input, .toolbar .select { width: auto; min-width: 160px; min-height: 40px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font-weight: 700; font-size: 13px; }
.tabs a.is-on { background: var(--accent); color: #000; border-color: var(--accent); }
.tabs a .count { margin-left: 6px; opacity: 0.8; }

/* switch on/off dos mercados */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.15); border: 1px solid var(--line); transition: background 0.15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.15s; }
.switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.switch input:checked + i::after { transform: translateX(20px); background: #000; }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--accent-dim); }

.market-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.market-row:last-child { border-bottom: 0; }
.market-row strong { display: block; }
.market-row.is-off strong { color: var(--muted); }
.group-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); }
.group-head h3 { font-size: 18px; }

.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form .input { min-height: 34px; width: 160px; }
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager a { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 700; font-size: 13px; }
.pager a.is-on { background: var(--accent); color: #000; border-color: var(--accent); }
.kpi.warn strong { color: var(--warn); }
.secret { font: 700 20px var(--font-display); letter-spacing: 0.12em; word-break: break-all; padding: 12px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--accent-dim); }

[hidden] { display: none !important; }
