html,
body {
  background: var(--surface-page);
}

.pos-topbar {
  display: none;
}

@media (min-width: 1024px) {
  .pos-topbar {
    position: sticky;
    top: 0;
    z-index: 35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin: -0.1rem -0.1rem var(--space-3);
    border: 1px solid rgb(255 255 255 / 0.8);
    border-radius: var(--radius-xl);
    background: rgb(255 255 255 / 0.86);
    padding: 0.55rem 0.75rem;
    box-shadow: var(--shadow-xs);
    backdrop-filter: blur(14px);
  }
}

.pos-topbar-title {
  min-width: 0;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 950;
}

.pos-topbar-meta {
  color: var(--text-muted);
  font-size: var(--font-size-meta);
  font-weight: 850;
}

.pos-topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-2);
}

.pos-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--surface-card);
  padding: 0.38rem 0.62rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.pos-sync-pill::before {
  content: "";
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 999px;
  background: var(--status-warning);
}

.pos-sync-pill.is-healthy::before {
  background: var(--status-success);
}

.pos-sync-pill.is-error::before {
  background: var(--status-danger);
}

.app-sidebar {
  background:
    linear-gradient(180deg, #111827, #0b1220 58%, #111827) !important;
  border-right-color: rgb(255 255 255 / 0.08) !important;
}

.app-sidebar .sidebar-title {
  color: rgb(148 163 184 / 0.72) !important;
}

.app-sidebar .side-link {
  border: 1px solid transparent !important;
  color: rgb(226 232 240 / 0.72) !important;
}

.app-sidebar .side-link:hover {
  border-color: rgb(255 255 255 / 0.08) !important;
  background: rgb(255 255 255 / 0.07) !important;
  color: white !important;
}

.app-sidebar .sidebar-link.active,
.app-sidebar .side-active {
  background: linear-gradient(135deg, #2563eb, #0891b2) !important;
  box-shadow: 0 12px 30px rgb(37 99 235 / 0.28) !important;
}

.mobile-menu-panel {
  background: var(--surface-page) !important;
}

.mobile-menu-group {
  border-color: var(--border-subtle) !important;
  border-radius: var(--radius-xl) !important;
}

.mobile-drawer-link.active,
.mobile-bottom-nav a.active {
  background: var(--accent-primary) !important;
}

.mobile-bottom-nav {
  border-radius: var(--radius-xl) !important;
}

.app-main {
  background: var(--surface-page);
}

@media (max-width: 1023px) {
  .app-main.has-sidebar,
  main.app-main.has-sidebar {
    padding-bottom: 5.75rem !important;
  }
}
