/* Shared edge-case polish for theme variants
 * empty states · night mode · RTL
 */

/* Empty directory states stay readable on glass/ink shells */
body[class*="bos-"] .bos-dir-empty {
  text-align: center;
  padding: 28px 16px;
}

body[class*="bos-"] .bos-dir-empty-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 16px;
  background: var(--bos-dir-soft, #f6f7f9);
  color: var(--bos-dir-muted, #858b95);
}

body[class*="bos-"] .bos-dir-empty-ico .main-icon,
body[class*="bos-"] .bos-dir-empty-ico .main-icon *,
body[class*="bos-"] .bos-dir-empty-ico .bos-sb-ico,
body[class*="bos-"] .bos-dir-empty-ico .bos-sb-ico * {
  color: inherit !important;
  fill: none !important;
  stroke: currentColor !important;
}

body[class*="bos-"] .bos-dir-empty strong {
  display: block;
  margin: 0 0 4px;
  color: var(--bos-dir-ink, #191b20);
}

body[class*="bos-"] .bos-dir-empty p {
  margin: 0;
  color: var(--bos-dir-muted, #858b95);
  font-size: 13px;
}

/* Night fallbacks when a variant forgot dark styles */
body.night-mode [class*="bos-dir--"] .bos-dir-empty-ico,
html[data-bs-theme="dark"] [class*="bos-dir--"] .bos-dir-empty-ico {
  background: rgba(255, 255, 255, 0.06);
  color: #8b949e;
}

body.night-mode [class*="bos-dir--"] .bos-dir-empty strong,
html[data-bs-theme="dark"] [class*="bos-dir--"] .bos-dir-empty strong {
  color: #f0f3f6;
}

body.night-mode [class*="bos-dir--"] .bos-dir-empty p,
html[data-bs-theme="dark"] [class*="bos-dir--"] .bos-dir-empty p {
  color: #8b949e;
}

/* RTL: keep filter grids and action rows mirrored cleanly */
html[dir="RTL"] .bos-dir-hero-top,
html[dir="rtl"] .bos-dir-hero-top {
  flex-direction: row-reverse;
}

html[dir="RTL"] .bos-people-list .bos-user-actions,
html[dir="rtl"] .bos-people-list .bos-user-actions,
html[dir="RTL"] .bos-merits-score,
html[dir="rtl"] .bos-merits-score {
  margin-left: 0;
  margin-right: auto;
}

html[dir="RTL"] .bos-auth-stats-grid,
html[dir="rtl"] .bos-auth-stats-grid {
  direction: rtl;
}

/* Soft glass stack: avoid clipped sticky nav under full-bleed sticky bars */
.bos-admin-theme-nav {
  isolation: isolate;
}


/* Apps & account page variants — ink CTA icon inherit */
body[class*="bos-market-v-ink"] .mk-btn-accent .main-icon *,
body[class*="bos-games-v-ink"] .bos-dir-cta .main-icon *,
body[class*="bos-support-v-ink"] .bos-support-create .main-icon *,
body[class*="bos-packages-v-ink"] .bos-dir-cta .main-icon *,
body[class*="bos-notifications-v-ink"] .bos-dir-cta .main-icon * {
  fill: currentColor !important;
  color: inherit !important;
}
