/* ---------- Settings ---------- */
.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}
.budget-table th,
.budget-table td {
  text-align: right;
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.budget-table th:first-child,
.budget-table td:first-child {
  text-align: left;
}
.budget-table caption {
  text-align: left;
  font-weight: 600;
  margin-bottom: 4px;
}

.budget-data-sources { margin-top: 12px; }
.budget-data-sources__title { font-size: 13px; margin: 0 0 6px; font-weight: 600; }
.budget-data-sources__table td:nth-child(2) { text-align: left; }
.budget-data-sources__table td:nth-child(3) { text-align: left; max-width: 280px; }
.budget-acct {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 7px;
  margin: 0 4px 4px 0;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--rule);
  cursor: default;
}
.budget-collector-warn { color: var(--warn); }

.settings { display: grid; gap: 18px; max-width: 820px; }
.panel { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.panel h2 { font-size: 15px; margin: 0 0 4px; }
.panel > p { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.panel .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.toggle-row:last-child { border-bottom: 0; }
.toggle-row b { display: block; font-size: 13.5px; }
.toggle-row span { color: var(--muted); font-size: 12.5px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--rule-strong); transition: background .15s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: var(--shadow); }
.switch input:checked + i { background: var(--accent); }
.switch input:checked + i::after { transform: translateX(18px); }
.meterline { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.meterline .meter { grid-column: 1 / -1; width: 100%; height: 8px; }

/* ---------- Operator scan ---------- */
.opscan-money {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: var(--bad);
  background: var(--bad-soft);
  vertical-align: middle;
}
.opscan-alert {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--bad);
  background: var(--bad-soft);
}
.opscan-alert p { margin: 4px 0 0; color: inherit; }
.opscan-warn { color: var(--warn); }
