/* Dialect UI Overrides */

.dialect,
.dialect-wrapper,
[data-dialect],
[data-theme="dark"] {
  --dt-bg-primary: #1b1b1c !important;
  --dt-bg-secondary: #232324 !important;
  --dt-bg-tertiary: #2a2a2b !important;
  --dt-text-primary: #ffffff !important;
  --dt-text-secondary: #c4c6c8 !important;
  --dt-accent-brand: #00d4aa !important;
  --dt-accent-success: #00d4aa !important;
  --dt-input-checked: #00d4aa !important;
  --dt-text-accent: #00d4aa !important;
  --dt-stroke-primary: #323335 !important;
  --dt-button-primary: #00d4aa !important;
  --dt-button-secondary: #2a2a2b !important;
}

/* Hide tabs */
.dialect [role="tablist"],
.dialect button[role="tab"] {
  display: none !important;
}

/* Hide footer/version */
.dialect .dt-text-caption {
  display: none !important;
}

/* AGGRESSIVE: Hide ALL standalone checkbox labels (ledger toggle) */
.dialect label:has(> input[type="checkbox"]):has(> span) {
  display: none !important;
}

/* Hide the rounded container that wraps ledger toggle */
.dialect .dt-rounded-\[--dt-border-radius-m\]:has(label):has(input[type="checkbox"]):not(:has(button)) {
  display: none !important;
}

/* Style headers green */
.dialect .dt-text-h2,
.dialect h2 {
  color: #00d4aa !important;
}

/* Green buttons */
.dialect button {
  background-color: #00d4aa !important;
  color: #0a0a0f !important;
}

.dialect button:hover {
  opacity: 0.9;
}

/* Green links */
.dialect a {
  color: #00d4aa !important;
}

/* Hide powered by */
.dialect [class*="powered" i],
.dialect footer {
  display: none !important;
}

/* Green checkboxes */
.dialect input[type="checkbox"]:checked {
  accent-color: #00d4aa !important;
}