﻿[hidden] {
  display: none !important;
}

body.admin-login-mode .app-wrapper {
  display: none !important;
}

body.admin-ready-mode .admin-login-screen {
  display: none !important;
}

.admin-login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background: #f8fbff;
}

.admin-login-logo {
  display: flex;
  justify-content: center;
  padding: clamp(24px, 5vw, 44px) 18px 0;
}

.admin-login-logo img {
  display: block;
  width: min(230px, 70vw);
  height: auto;
  object-fit: contain;
}

.admin-login-center {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 18px;
}

.google-login-button {
  min-width: min(360px, calc(100vw - 48px));
  min-height: 54px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  color: #111827;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  font-weight: 800;
  cursor: pointer;
}

.google-login-button:hover {
  border-color: #9fc7ef;
  box-shadow: 0 20px 46px rgba(15, 23, 42, 0.16);
}

.google-login-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.sidebar-menu .nav-link {
  width: 100%;
  border: 0;
  text-align: left;
  background: transparent;
}

.sidebar-menu .nav-link p {
  margin: 0;
}

.sidebar-menu .nav-link.active {
  color: #ffffff;
  background: rgba(13, 110, 253, 0.85);
}

.app-sidebar .brand-image {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

#rail-user {
  max-width: 260px;
  color: var(--bs-secondary-color);
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.admin-table-button {
  border: 0;
  background: transparent;
  color: var(--bs-primary);
  font-weight: 700;
  padding: 0;
  text-align: left;
}

.admin-table-button:hover {
  color: var(--bs-primary-text-emphasis);
  text-decoration: underline;
}

.status-badge {
  text-transform: capitalize;
}

.feature-check {
  color: var(--bs-success);
  font-size: 1.1rem;
}

.feature-cross {
  color: var(--bs-secondary-color);
  font-size: 1.1rem;
}

.truncate-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-lite {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1080;
  max-width: min(440px, calc(100vw - 32px));
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 13px 15px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.24);
}

.device-fingerprint {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
}

.metric-card .info-box-number {
  font-size: 1.6rem;
}

.plan-feature-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-feature-list li {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
}

.plan-feature-editor {
  max-height: 320px;
  overflow: auto;
}

.form-help {
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}

@media (max-width: 767.98px) {
  #rail-user {
    max-width: 150px;
  }

  .truncate-cell {
    max-width: 180px;
  }
}
