/* Default-login hardening banner: sits above the app chrome on every page. */

.setup-warning-banner {
  /* The banner renders outside the login card, which is where login.css sets the
     typeface, so it has to name the stack itself or it falls back to the browser
     default serif. */
  font-family: var(--font-family-base, 'PT Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  background: #b91c1c;
  color: #ffffff;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  z-index: 2000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.setup-warning-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding: 0.7rem 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.setup-warning-banner-icon {
  color: #ffffff;
  font-size: 1rem;
  flex-shrink: 0;
}

.setup-warning-banner-text {
  margin: 0;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.setup-warning-banner-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.setup-warning-banner a,
.setup-warning-banner a:visited {
  color: #ffffff !important;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}

.setup-warning-banner a:hover,
.setup-warning-banner a:focus-visible {
  color: #fee2e2 !important;
  text-decoration: underline;
}

body.has-setup-warning-banner {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}

body.app-shell.has-setup-warning-banner .app-layout {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
}

body.has-setup-warning-banner .login-page {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  height: auto;
}

@media (max-width: 767.98px) {
  body.app-shell.has-setup-warning-banner {
    height: 100%;
    overflow: hidden;
  }

  body.app-shell.has-setup-warning-banner .app-layout {
    height: auto !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden;
  }
}
