body[data-hotwire-native] [data-controller~="bridge--button"] { display: none; }
body[data-hotwire-native] [data-controller~="bridge--form"] [type="submit"] { display: none; }
body[data-hotwire-native] [data-controller~="bridge--flash"] { display: none; }

/* Match native iOS navigation bar styling for web views */
body[data-hotwire-native] {
  /* Add padding at top to account for large title navigation bar */
  padding-top: 0;
  /* Match native app background color - adaptive for light/dark mode */
  background-color: var(--color-background, #ffffff);
  color: var(--color-text, #000000);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  body[data-hotwire-native] {
    background-color: #000000;
    color: #ffffff;
  }
}

/* Hide detail page titles since they're shown in navigation bar */
body[data-hotwire-native] .detail-title {
  display: none;
}


/* Ensure content has proper spacing from navigation */
body[data-hotwire-native] main,
body[data-hotwire-native] .container {
  padding-top: 0;
}

/* Match section header styling from native table views */
body[data-hotwire-native] h3 {
  font-size: 13px;
  font-weight: 400;
  line-height: 18px;
  letter-spacing: -0.08px;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 22px;
  margin-bottom: 8px;
}
