/* Admin shell: sticky form chrome, scroll the body only */
.admin-shell {
  height: 100vh;
  overflow: hidden;
}

.admin-shell .rz-body {
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.admin-body-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1rem 1.25rem;
}

.admin-sticky-page {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-sticky-bar {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0 0.85rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--rz-base-300, rgba(0, 0, 0, 0.08));
  background: var(--rz-base-background-color, #fff);
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-sticky-title {
  min-width: 0;
}

.admin-sticky-title .rz-text-h4,
.admin-sticky-title h1,
.admin-sticky-title h2 {
  margin: 0;
}

.admin-sticky-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.admin-sticky-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem 0 2rem;
}

.admin-list-page {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.post-featured-preview {
  max-width: 16rem;
}

.post-featured-preview img {
  display: block;
  width: 100%;
  max-height: 10rem;
  object-fit: cover;
  border-radius: 0.35rem;
  border: 1px solid var(--rz-base-300, rgba(0, 0, 0, 0.1));
}

/* Keep the top bar compact (match original thin header). */
.admin-shell .admin-header.rz-header,
.admin-shell .rz-header.admin-header {
  height: auto;
  min-height: 0;
  padding: 0;
}

.admin-header-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.5rem;
  padding: 0.2rem 1rem 0.2rem 0.5rem;
}

.admin-header-title {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-header-theme {
  flex-shrink: 0;
  margin-inline-end: 0.25rem;
}

.admin-sidebar .admin-sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  /* Sidebar chrome text — follow panel-menu colors so light/dark stay readable */
  color: var(--rz-panel-menu-item-color, var(--rz-text-color, #212121));
}

.admin-sidebar-top {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  border-bottom: 1px solid var(--rz-base-300, rgba(0, 0, 0, 0.12));
}

.admin-sidebar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.15rem 0.15rem 0.25rem;
  font-size: 0.9rem;
  color: inherit;
}

.admin-sidebar-user i {
  flex-shrink: 0;
  opacity: 0.85;
}

.admin-sidebar-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
  color: inherit;
}

.admin-sidebar-nav {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.admin-sidebar-footer {
  flex-shrink: 0;
  padding: 0.65rem 0.75rem 0.85rem;
  border-top: 1px solid var(--rz-base-300, rgba(0, 0, 0, 0.12));
  text-align: center;
}

.admin-powered-by {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: inherit;
  opacity: 0.85;
  text-decoration: none;
}

.admin-powered-by:hover {
  opacity: 1;
  color: var(--rz-primary, #3d6df2);
  text-decoration: underline;
}

.dashboard-stat-card {
  text-align: center;
}

.dashboard-stat-card .rz-text-subtitle2,
.dashboard-stat-card .rz-text-h3 {
  text-align: center;
  width: 100%;
}

.dashboard-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.dashboard-tier-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}

.dashboard-tier-label i {
  flex-shrink: 0;
  width: 1rem;
  text-align: center;
  opacity: 0.9;
}

.dashboard-tier-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-tier-count {
  flex-shrink: 0;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
