/*
 * Minimal FOUC styles loaded from _document before the JS bundle.
 * Full theme rules live in src/styles/themes.css.
 */
body {
  background-color: #fff;
  color: #000;
  font-family: system-ui, -apple-system, sans-serif;
}

body.theme-dark {
  background-color: #000;
  color: #fff;
}

body.theme-light {
  background-color: #fff;
  color: #000;
}

/* Nested light panels inside dark monitor (bed detail review views) */
.theme-light {
  color: rgba(0, 0, 0, 0.88);
}

/* Critical FOUC button chrome — ConfigProvider owns runtime Ant theme after hydrate.
 * Exclude text/link variants — Ant uses a 1px transparent border; setting border-color
 * alone paints an unwanted grey frame (e.g. home app launcher icons). */
html[data-theme="dark"] .ant-btn:not(.blue):not(.selected):not(.action-button):not(.ant-btn-primary):not(.ant-btn-text):not(.ant-btn-link):not(.ant-btn-variant-text):not(.ant-btn-variant-link),
.theme-dark .ant-btn:not(.blue):not(.selected):not(.action-button):not(.ant-btn-primary):not(.ant-btn-text):not(.ant-btn-link):not(.ant-btn-variant-text):not(.ant-btn-variant-link) {
  background-color: #181a1b;
  color: #fff;
  border-color: #444;
}

/* Exclude primary/danger — otherwise FOUC grey wins over Ant :where() tokens
 * (e.g. Command Center / Users "Sign in" buttons stay grey after hydrate). */
html[data-theme="light"] .ant-btn:not(.blue):not(.selected):not(.action-button):not(.ant-btn-primary):not(.ant-btn-dangerous):not(.ant-btn-text):not(.ant-btn-link):not(.ant-btn-variant-text):not(.ant-btn-variant-link),
.theme-light .ant-btn:not(.blue):not(.selected):not(.action-button):not(.ant-btn-primary):not(.ant-btn-dangerous):not(.ant-btn-text):not(.ant-btn-link):not(.ant-btn-variant-text):not(.ant-btn-variant-link) {
  background-color: #eee;
  color: #333;
  border-color: #ccc;
}

.med {
  --status-bar-color: #485c5b;
  --color-primary: #05b7cf;
  --color-success: #05cf71;
}
