/*
 * Admin Account Stylesheet
 *
 * Styles specific to the account namespace admin pages.
 * Uses the orange/coral design system from Figma.
 */

/* Layer order for the whole app. `admin` sits above Tailwind's base (so it
 * survives Preflight's border/margin reset) and below its utilities (so a
 * `text-*` or `w-*` class on the element still wins). Unlayered rules in this
 * file beat every utility — keep those for structure, never for colour.
 */
@layer theme, base, components, admin, utilities;

/* The `primary` utilities used to be hand-written here, unlayered, so they
   outranked every Tailwind utility in both interfaces. They are generated from
   the --color-primary ramp now; see application.css. */

/* ============================================
   Dashboard Layout Structure
   ============================================ */

.account-layout {
  background-color: var(--color-neutral-bg);
  color: var(--color-ink-darkest);
  font-family: var(--font-sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.admin-dashboard-wrapper {
  margin-left: 16rem;
  margin-top: 4rem;
  min-height: calc(100vh - 4rem);
  transition: margin-left 0.3s ease-in-out;
}

.account-layout .admin-sidebar {
  top: 0;
}

.admin-main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
  line-height: 1.6;
}

.admin-main-content--wide {
  max-width: 1512px;
  margin: 0 auto;
  padding: 2.5rem 3rem;
  width: 100%;
}

@media (min-width: 1280px) {
  .admin-main-content--wide {
    padding: 2.5rem 5rem;
  }
}

/* Text colour inside the admin comes from the ink token and cascades down;
   any `text-*` utility on a descendant wins, so semantic colour (red errors,
   green success, muted meta) survives. The link reset lives in the `admin`
   layer declared at the top of this file: layered rules lose to Tailwind's
   `@layer utilities`, so an explicit `text-*` on a link still wins, while a
   bare <a> stops falling back to the browser blue. */
.admin-main-content,
.admin-main-content--wide {
  color: var(--color-ink-darkest);
}

@layer admin {
  .admin-main-content a,
  .admin-main-content--wide a {
    color: inherit;
  }
}

.account-layout h1,
.account-layout h2,
.account-layout h3,
.account-layout h4,
.account-layout h5,
.account-layout h6 {
  color: var(--color-ink-darkest);
  font-weight: 600;
  line-height: 1.2;
}

/* ============================================
   Navbar (Top Navigation)
   ============================================ */

.admin-navbar {
  position: fixed;
  top: 0;
  left: 16rem;
  right: 0;
  height: 4rem;
  background-color: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--color-gray-200);
  z-index: 30;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  transition: left 0.3s ease-in-out;
}

.admin-navbar-container {
  max-width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* Left Section */
.admin-navbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mobile brand (hidden on desktop) */
.admin-navbar-brand-mobile {
  display: none;
  align-items: center;
  text-decoration: none;
}

.admin-navbar-logo-icon {
  width: 1.5rem;
  height: 1.625rem;
  flex-shrink: 0;
}

/* Right Section */
.admin-navbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* User menu trigger */
.admin-navbar-user {
  position: relative;
}

.admin-navbar-user-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.5rem;
  background: none;
  border: 1px solid transparent;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  color: var(--color-ink-dark);
}

.admin-navbar-user-button:hover {
  background-color: var(--color-gray-50);
  border-color: var(--color-gray-200);
}

.admin-navbar-user-button:focus-visible {
  outline: 2px solid var(--color-orange-800);
  outline-offset: 2px;
}

.admin-navbar-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  background-color: var(--color-orange-800);
  color: white;
  font-size: 0.6875rem;
  font-weight: 600;
  flex-shrink: 0;
  line-height: 1;
}

.admin-navbar-avatar-img {
  object-fit: cover;
  background-color: transparent;
}

.admin-navbar-user-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-ink-darkest);
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-navbar-chevron {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--color-ink-lighter);
  flex-shrink: 0;
}

/* Dropdown */
.admin-navbar-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.375rem);
  min-width: 14rem;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-200);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.1), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  border-radius: 0.75rem;
  overflow: hidden;
  z-index: 50;
  padding: 0.25rem 0;
}

.admin-navbar-dropdown.hidden {
  display: none;
}

.admin-navbar-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 400;
  color: var(--color-ink-dark);
  background: none;
  border: none;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.12s ease-in-out;
  cursor: pointer;
}

.admin-navbar-dropdown-item:hover {
  background-color: var(--color-gray-50);
}

.admin-navbar-dropdown-item-danger {
  color: #dc2626;
}

.admin-navbar-dropdown-item-danger:hover {
  background-color: #fef2f2;
}

.admin-navbar-dropdown-item-current {
  font-weight: 500;
  cursor: default;
}

.admin-navbar-dropdown-current-tag {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--color-orange-800);
}

.admin-navbar-dropdown-role-tag {
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--color-ink-lighter);
}

.admin-navbar-dropdown-item-action {
  width: 100%;
}

.admin-navbar-dropdown-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--color-ink-lighter);
}

.admin-navbar-dropdown-divider {
  height: 1px;
  background-color: var(--color-gray-200);
  margin: 0.25rem 0;
}

.admin-navbar-dropdown-label {
  padding: 0.5rem 0.875rem 0.25rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-neutral-500);
}

/* System-admin status: a small brand shield on the avatar instead of a loud
   standalone pill. The white ring lifts it off any avatar. */
.admin-navbar-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.admin-navbar-avatar-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0.9375rem;
  height: 0.9375rem;
  border-radius: 9999px;
  background-color: var(--color-orange-800);
  color: #fff;
  box-shadow: 0 0 0 1.5px var(--color-white);
}

.admin-navbar-avatar-badge svg {
  width: 0.625rem;
  height: 0.625rem;
}

/* Identity header at the top of the user menu: avatar, name, email, role. */
.admin-navbar-dropdown-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 0.875rem;
}

.admin-navbar-dropdown-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  object-fit: cover;
  flex-shrink: 0;
}

.admin-navbar-dropdown-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-navbar-dropdown-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-ink-darkest);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-navbar-dropdown-email {
  font-size: 0.75rem;
  color: var(--color-ink-lighter);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-navbar-dropdown-role {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.1875rem;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--color-ink-lighter);
}

.admin-navbar-dropdown-role svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* Elevated privilege reads in the brand colour, quietly. */
.admin-navbar-dropdown-role.is-system {
  color: var(--color-orange-950);
  font-weight: 600;
}

/* ============================================
   Sidebar Navigation (Dark Theme)
   ============================================ */

.admin-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 16rem;
  /* Design-system gradient: an ink base with a warm ember foot and a soft
     brand glow at the top, behind the logo. The whole panel holds still; only
     the nav between the brand and the footer scrolls. */
  background-color: var(--color-ink-darkest);
  background-image:
    radial-gradient(115% 55% at 50% -8%, rgba(229, 90, 55, 0.16), transparent 62%),
    linear-gradient(176deg, var(--color-ink-darkest) 0%, #17110e 45%, #2a1712 100%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-sidebar-nav::-webkit-scrollbar {
  width: 6px;
}

.admin-sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.admin-sidebar-nav::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.admin-sidebar-nav::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.admin-sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 0;
}

/* Sidebar Brand */
.admin-sidebar-brand {
  padding: 1.125rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.admin-sidebar-brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease-in-out;
}

.admin-sidebar-brand-link:hover {
  opacity: 0.85;
}

.admin-sidebar-brand-logo {
  height: 1.625rem;
  color: #ffffff;
}

.admin-sidebar-brand-logo svg {
  height: 100%;
  width: auto;
}

/* Navigation */
.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  padding: 1rem 0.75rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Sidebar Sections */
.admin-sidebar-section {
  margin-top: 1.5rem;
}

.admin-sidebar-section:first-child {
  margin-top: 0;
}

.admin-sidebar-section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.62);
  padding: 0 0.75rem 0.5rem;
  margin-bottom: 0.125rem;
}

.admin-sidebar-section-label-sandbox {
  color: #f59e0b;
}

/* Divider that sets the Painel apart from the categorized sections below. */
.admin-sidebar-divider {
  height: 1px;
  margin: 0.5rem 0.75rem;
  background-color: rgba(255, 255, 255, 0.08);
}

.admin-sidebar-divider:last-child {
  display: none;
}

.admin-sidebar-divider + .admin-sidebar-section {
  margin-top: 0;
}

/* Sidebar Links */
.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  border-radius: 0.5rem;
  transition: all 0.15s ease-in-out;
  text-decoration: none;
  position: relative;
}

.admin-sidebar-link:hover {
  background-color: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
}

.admin-sidebar-link-active {
  background-color: rgba(229, 90, 55, 0.15);
  color: #ffffff;
  font-weight: 500;
}

.admin-sidebar-link-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.25rem;
  background-color: var(--color-orange-800);
  border-radius: 0 2px 2px 0;
}

.admin-sidebar-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s ease-in-out;
}

.admin-sidebar-link:hover .admin-sidebar-icon {
  color: var(--color-orange-700);
}

.admin-sidebar-link-active .admin-sidebar-icon {
  color: var(--color-orange-800);
}

/* Sidebar Badge */
.admin-sidebar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  color: white;
  background-color: var(--color-orange-800);
  border-radius: 9999px;
  margin-left: auto;
}

/* Workspace chip pinned to the foot of the sidebar: the company (and store)
   you're acting in, sitting on the gradient's warm ember. */
.admin-sidebar-workspace {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar-workspace-logo {
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  flex-shrink: 0;
  object-fit: cover;
  background-color: rgba(255, 255, 255, 0.08);
}

.admin-sidebar-workspace-info {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-sidebar-workspace-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-workspace-meta {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-sidebar-workspace-sandbox {
  flex-shrink: 0;
  padding: 0.125rem 0.375rem;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fbbf24;
  background-color: rgba(245, 158, 11, 0.15);
  border-radius: 0.25rem;
}

/* Sidebar Toggle Button (Mobile) */
.admin-sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: none;
  border: 1px solid var(--color-gray-200);
  border-radius: 0.5rem;
  color: var(--color-ink-dark);
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.admin-sidebar-toggle:hover {
  background-color: var(--color-orange-50);
  color: var(--color-orange-800);
  border-color: var(--color-orange-200);
}

.admin-sidebar-toggle:focus-visible {
  outline: 2px solid var(--color-orange-800);
  outline-offset: 2px;
}

/* Sidebar Overlay (Mobile) */
.admin-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 35;
}

/* ============================================
   Impersonation Banner Offset
   The banner is sticky (in flow, h-10 = 2.5rem — see
   Components::Base::ImpersonationBanner), so normal-flow content is pushed
   down automatically. The viewport-fixed chrome is not: navbar and sidebar
   anchor to top: 0 and must shift down by the banner height while
   impersonating, or the banner covers them.
   ============================================ */
.account-layout.has-impersonation-banner {
  --impersonation-banner-height: 2.5rem;
}

.account-layout.has-impersonation-banner .admin-navbar {
  top: var(--impersonation-banner-height);
}

.account-layout.has-impersonation-banner .admin-sidebar {
  top: var(--impersonation-banner-height);
}

/* Focus states for accessibility */
.admin-sidebar-link:focus {
  outline: 2px solid var(--color-orange-800);
  outline-offset: 2px;
  border-radius: 0.5rem;
}

.admin-sidebar-link:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================
   Content Area
   ============================================ */

.admin-main-content {
  background-color: transparent;
}

.admin-main-content > *:first-child {
  margin-top: 0;
}

/* ============================================
   Index Filters

   One shape for every index page: a card above the table, a responsive grid of
   labelled controls, then Filtrar / Limpar. Layered, so a view can still widen
   a field or change its span with a utility.
   ============================================ */

@layer admin {
  .admin-filter-bar {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 0.5rem;
    box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    padding: 1rem;
  }

  .admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
  }

  @media (min-width: 768px) {
    .admin-filter-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }

  @media (min-width: 1024px) {
    .admin-filter-grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }

  /* The free-text search reads first and gets the room a name needs. */
  .admin-filter-search {
    grid-column: span 1;
  }

  @media (min-width: 1024px) {
    .admin-filter-search {
      grid-column: span 2;
    }
  }

  .admin-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  /* ---- Searchable filter dropdown (Components::Base::SearchSelect) ----
     Placement only: the trigger itself is a Field, declared in the component. */
  .nw-search-select {
    position: relative;
  }

  .nw-search-select-panel {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.25rem);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    overflow: hidden;
  }

  .nw-search-select-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-gray-200);
  }

  .nw-search-select-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--color-ink-darkest);
    background: transparent;
  }

  .nw-search-select-input::-webkit-search-cancel-button {
    appearance: none;
  }

  .nw-search-select-list {
    max-height: 15rem;
    overflow-y: auto;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
  }

  .nw-search-select-option {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    padding: 0.5rem 0.625rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    line-height: 1.25rem;
    color: var(--color-ink-darkest);
  }

  .nw-search-select-option:hover,
  .nw-search-select-option.is-active {
    background-color: var(--color-gray-50);
  }

  .nw-search-select-option.is-selected .nw-search-select-option-label {
    color: var(--color-orange-800);
    font-weight: 600;
  }

  .nw-search-select-option-hint {
    font-size: 0.75rem;
    line-height: 1rem;
    color: var(--color-gray-900);
  }

  /* The count line: what fraction of the haystack you are looking at. */
  .nw-search-select-footer {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid var(--color-gray-200);
    font-size: 0.6875rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--color-gray-900);
    margin: 0;
  }

  /* Form controls are not here. Labels, fields, hints, errors and buttons are
     declared once in Components::Base and reached through the component or its
     .classes escape hatch — see docs/solutions/. This file keeps layout. */
}

/* ============================================
   Navigation
   ============================================ */

.admin-breadcrumb-link {
  color: var(--color-gray-950);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}

/* An ancestor crumb with no route of its own: reads as a trail step, not a link. */
.admin-breadcrumb-text {
  color: var(--color-gray-950);
  font-size: 1rem;
  font-weight: 500;
}

.admin-breadcrumb-link:hover {
  color: var(--color-orange-800);
}

.admin-breadcrumb-link:focus-visible {
  outline: 2px solid var(--color-orange-800);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

.admin-breadcrumb-current {
  color: var(--color-ink-darkest);
  font-size: 1rem;
  font-weight: 500;
}

.admin-breadcrumb-separator {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--color-gray-700);
}

/* ============================================
   KPI Cards
   ============================================ */

turbo-frame#dashboard_kpis {
  display: block;
}

@layer admin {
  .admin-kpi-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 0;
  }

  .admin-kpi-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-ink-lighter);
  }

  .admin-kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-ink-darkest);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
  }

  .admin-kpi-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--color-ink-lighter);
  }

  .admin-kpi-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    flex-shrink: 0;
  }
}

/* ============================================
   Responsive Adjustments
   ============================================ */

@media (max-width: 1024px) {
  .admin-dashboard-wrapper {
    margin-left: 0;
  }

  .admin-navbar {
    left: 0;
  }

  .admin-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 45;
  }

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

  .admin-sidebar-toggle {
    display: flex;
  }

  .admin-navbar-brand-mobile {
    display: flex;
  }

  .admin-sidebar-overlay.active {
    display: block;
  }

  .admin-navbar-container {
    padding: 0 0.75rem;
    gap: 0.75rem;
  }

  .admin-navbar-user-name {
    display: none;
  }

  .admin-navbar-chevron {
    display: none;
  }

  .admin-navbar-right {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .admin-dashboard-wrapper {
    margin-top: 4rem;
  }

  .admin-main-content {
    padding: 1rem;
  }

}

/* ============================================
   Campaign Modal (Goal Stores / Store Detail)
   ============================================ */

dialog.campaign-modal {
  max-width: 64rem;
  width: 95vw;
  max-height: 85vh;
  margin: auto;
  border: none;
  border-radius: 0.75rem;
  padding: 0;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

dialog.campaign-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

dialog.campaign-modal-sm {
  max-width: 28rem;
  width: 90vw;
  margin: auto;
  border: none;
  border-radius: 0.75rem;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

dialog.campaign-modal-sm::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
}

dialog.campaign-modal[open] {
  display: flex;
  flex-direction: column;
}

dialog.campaign-modal turbo-frame {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
