/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@14.2.35_@babel+core@7.29.7_@opentelemetry+api@1.9.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!../../node_modules/.pnpm/next@14.2.35_@babel+core@7.29.7_@opentelemetry+api@1.9.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./src/app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root {
  --font-body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', Consolas, monospace;
  --font-display: 'Fraunces', Georgia, serif;

  --color-background: #f4f6f9;
  --color-surface: #ffffff;
  --color-surface-hover: #eef1f6;
  --color-surface-active: #e4e9f1;
  --color-border: #d5dce6;
  --color-border-strong: #b5c0cf;
  --color-text-primary: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;
  --color-accent: #1d4ed8;
  --color-accent-contrast: #f8fafc;
  --color-danger: #c2410c;
  --color-warning: #b45309;
  --color-success: #15803d;
  --color-focus: #1d4ed8;
  --color-overlay: rgba(15, 23, 42, 0.48);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, 0.16);

  /* legacy aliases used by packages/ui and existing admin screens */
  --bg: var(--color-background);
  --bg-elevated: var(--color-surface);
  --line: var(--color-border);
  --text: var(--color-text-primary);
  --muted: var(--color-text-muted);
  --accent: var(--color-accent);
  --danger: var(--color-danger);
  --ok: var(--color-success);

  --sidebar-width: 248px;
  --sidebar-collapsed: 64px;
  --topbar-height: 48px;
  --motion-fast: 120ms;
  --motion-normal: 180ms;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme='dark'] {
  --color-background: #0b1220;
  --color-surface: #111827;
  --color-surface-hover: #1a2436;
  --color-surface-active: #243247;
  --color-border: #243044;
  --color-border-strong: #334155;
  --color-text-primary: #e2e8f0;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-accent: #60a5fa;
  --color-accent-contrast: #0b1220;
  --color-danger: #fb7185;
  --color-warning: #fbbf24;
  --color-success: #4ade80;
  --color-focus: #60a5fa;
  --color-overlay: rgba(0, 0, 0, 0.62);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 22px 50px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--color-background);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

@keyframes ui-skeleton-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.admin-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 8px 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: var(--color-text-primary);
  font-weight: 600;
}

.admin-skip-link:focus {
  left: 8px;
}

.admin-scroll {
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}

.admin-app {
  min-height: 100vh;
  background: var(--color-background);
  color: var(--color-text-primary);
}

.admin-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.admin-shell.is-collapsed {
  grid-template-columns: var(--sidebar-collapsed) 1fr;
}

.admin-sidebar {
  border-right: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.admin-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.admin-topbar {
  height: var(--topbar-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-content {
  padding: 16px 20px 28px;
  flex: 1 1;
  min-width: 0;
}

.admin-nav-group {
  margin: 14px 10px 6px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  font-weight: 600;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: background var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease);
}

.admin-nav-link:hover {
  background: var(--color-surface-hover);
  color: var(--color-text-primary);
}

.admin-nav-link.is-active {
  background: var(--color-surface-active);
  color: var(--color-text-primary);
}

.admin-kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1px 5px;
  color: var(--color-text-muted);
  background: var(--color-background);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  font-size: 13px;
}

.admin-table th {
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: var(--color-surface);
  z-index: 1;
}

.admin-table tr:hover td {
  background: var(--color-surface-hover);
}

@media (min-width: 961px) {
  .admin-mobile-menu {
    display: none !important;
  }
}

@media (max-width: 960px) {
  .admin-shell,
  .admin-shell.is-collapsed {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(280px, 86vw);
    z-index: 55;
    transform: translateX(-105%);
    transition: transform var(--motion-normal) var(--ease);
  }

  .admin-sidebar.is-open {
    transform: translateX(0);
  }

  .admin-mobile-backdrop {
    position: fixed;
    inset: 0;
    background: var(--color-overlay);
    z-index: 54;
  }
}

@media (max-width: 640px) {
  .admin-content {
    padding: 12px;
  }
}

/* Tenant switcher */
.admin-tenant-switcher {
  position: relative;
  min-width: 0;
}

.admin-tenant-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 260px;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-text-primary);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease);
}

.admin-tenant-trigger:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-strong);
}

.admin-tenant-trigger[aria-disabled='true'] {
  cursor: default;
  opacity: 0.92;
}

.admin-tenant-trigger-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1 1;
}

.admin-tenant-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tenant-meta {
  font-size: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-tenant-compact-id {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}

.admin-tenant-switcher.is-compact .admin-tenant-trigger {
  max-width: none;
  justify-content: center;
  padding: 8px 6px;
}

.admin-tenant-spin {
  animation: admin-tenant-spin 0.8s linear infinite;
}

@keyframes admin-tenant-spin {
  to {
    transform: rotate(360deg);
  }
}

.admin-tenant-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 80;
  width: min(320px, 86vw);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  padding: 10px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.admin-tenant-switcher-topbar .admin-tenant-panel {
  left: auto;
  right: 0;
}

.admin-tenant-panel-title {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.admin-tenant-panel-hint {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.admin-tenant-search {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--color-background);
}

.admin-tenant-search input {
  border: 0;
  outline: none;
  background: transparent;
  width: 100%;
  color: var(--color-text-primary);
  font-size: 12px;
}

.admin-tenant-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.admin-tenant-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 7px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.admin-tenant-option.is-active,
.admin-tenant-option:hover {
  background: var(--color-surface-hover);
}

.admin-tenant-option.is-selected {
  background: var(--color-surface-active);
}

.admin-tenant-option-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.admin-tenant-option-name {
  font-size: 12px;
  font-weight: 600;
}

.admin-tenant-option-meta {
  font-size: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.admin-tenant-state {
  margin: 0;
  padding: 8px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.admin-tenant-retry {
  margin-top: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-accent);
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}

@media (min-width: 961px) {
  .admin-tenant-switcher-topbar {
    display: none;
  }
}

