body.admin-body,
body.admin-auth-body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: #202537;
  overflow-x: hidden;
  background: #eef1f7;
}

html {
  overflow-x: hidden;
}

.admin-layout,
.admin-shell,
.admin-main,
.admin-main-panel,
.admin-main-inner,
.admin-card,
.table-card,
.stat-card,
.mini-card,
.dashboard-grid,
.stats-grid,
.kpi-grid,
.table-tools,
.compact-row,
.admin-topbar,
.admin-header,
.admin-header-user,
.admin-mobile-topbar,
.admin-mobile-drawer,
.admin-auth-card {
  min-width: 0;
}

.muted,
td,
th,
label,
.compact-row,
.compact-metric span,
.admin-header-brand span,
.admin-header-user span,
.admin-mobile-brand strong,
.admin-mobile-drawer-brand span {
  overflow-wrap: anywhere;
}

body.admin-drawer-open {
  overflow: hidden;
}

.admin-mobile-overlay[hidden],
.admin-mobile-drawer[hidden],
.admin-mobile-quickmenu[hidden] {
  display: none !important;
}

.admin-mobile-shell {
  display: none;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}

.sidebar {
  background: #fff;
  color: #202537;
  padding: 18px 14px 24px;
  border-right: 1px solid rgba(32, 37, 55, 0.08);
  min-width: 0;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 10px 8px 18px;
  border-bottom: 1px solid rgba(32, 37, 55, 0.08);
}

.sidebar-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  padding: 2px;
  background: transparent;
}

.sidebar-group {
  margin-bottom: 18px;
}

.sidebar-group h4 {
  margin: 0 0 10px;
  padding-left: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e7484;
}

.sidebar nav {
  display: grid;
  gap: 8px;
}

.sidebar nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  color: #72798b;
}

.sidebar nav a span,
.admin-mobile-group nav a span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sidebar nav a.active,
.sidebar nav a:hover {
  background: #baf3fb;
  color: #2d4f7d;
}

.sidebar nav a i,
.admin-mobile-group nav a i {
  width: 16px;
  text-align: center;
}

.nav-badge {
  min-width: 26px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ff6576;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
}

.admin-main {
  padding: 24px;
  min-width: 0;
}

.admin-main-inner {
  width: min(100%, 1280px);
  min-width: 0;
  margin: 0 auto;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.admin-topbar > * {
  min-width: 0;
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.admin-topbar h1 {
  margin: 0;
  font-size: 1.8rem;
}

.admin-card,
.stat-card,
.table-card,
.auth-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 46px rgba(32, 37, 55, 0.08);
  max-width: 100%;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
  min-width: 0;
}

.stat-card {
  padding: 22px;
  color: #fff;
  background: linear-gradient(135deg, #4ecdc4, #22c1c3);
  position: relative;
  overflow: hidden;
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, #35a7ff, #2563eb);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, #ffb347, #ff7a18);
}

.stat-card:nth-child(4) {
  background: linear-gradient(135deg, #7f7fd5, #5f72ff);
}

.stat-card span {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 2rem;
}

.stat-card small {
  display: block;
  margin-top: 6px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.84);
}

.admin-card,
.table-card {
  padding: 24px;
}

.table-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  min-width: 0;
}

.table-tools h2 {
  margin: 0;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: 18px;
  min-width: 0;
}

.dashboard-grid > :first-child {
  grid-row: span 2;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
  min-width: 0;
}

.mini-card {
  padding: 18px 20px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(32, 37, 55, 0.08);
  min-width: 0;
}

.mini-card strong,
.mini-card span {
  display: block;
}

.mini-card strong {
  font-size: 1.4rem;
}

.mini-card span {
  margin-top: 6px;
  color: #6f7688;
}

.compact-list {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.compact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(32, 37, 55, 0.08);
}

.compact-row:last-child {
  border-bottom: 0;
}

.compact-metric {
  text-align: right;
}

.compact-metric strong,
.compact-metric span {
  display: block;
}

.compact-metric span {
  color: #6f7688;
  font-size: 0.82rem;
}

.table-wrap {
  overflow-x: auto;
  width: 100%;
  min-width: 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(32, 37, 55, 0.08);
  vertical-align: top;
}

th {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #667085;
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.pill.success {
  background: rgba(20, 164, 77, 0.12);
  color: #0f7a39;
}

.pill.warning {
  background: rgba(255, 176, 32, 0.12);
  color: #a56a00;
}

.pill.info {
  background: rgba(102, 126, 234, 0.12);
  color: #425ad6;
}

.pill.danger {
  background: rgba(240, 68, 56, 0.12);
  color: #b42318;
}

.admin-form {
  display: grid;
  gap: 18px;
}

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

.admin-form .field textarea {
  min-height: 150px;
}

.thumb-preview {
  width: 90px;
  height: 90px;
  border-radius: 16px;
  object-fit: contain;
  background: #eef1f7;
  padding: 6px;
}

.courier-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.courier-brand.is-compact {
  gap: 10px;
}

.courier-brand-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 0 0 auto;
}

.courier-brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(32, 37, 55, 0.08);
  background: #fff;
  box-shadow: 0 10px 18px rgba(31, 37, 55, 0.08);
}

.courier-brand.is-compact .courier-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.courier-brand-logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.courier-brand-logo.is-fallback {
  background: linear-gradient(135deg, rgba(82, 149, 255, 0.12), rgba(44, 196, 137, 0.16));
  color: #2f6fe4;
}

.courier-brand-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.courier-brand-copy strong,
.courier-brand-copy small {
  overflow-wrap: anywhere;
}

.courier-brand-copy strong {
  color: #202537;
}

.courier-brand-copy small {
  color: #6f7890;
}

.admin-courier-brand {
  align-items: flex-start;
}

.admin-courier-helper {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(32, 37, 55, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 255, 0.98));
}

.admin-courier-helper-head {
  display: grid;
  gap: 6px;
}

.admin-courier-helper-head strong {
  color: #202537;
}

.admin-courier-helper-head small {
  color: #6f7890;
}

.admin-courier-brand-preview {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px dashed rgba(82, 149, 255, 0.28);
  background: rgba(255, 255, 255, 0.86);
}

.admin-courier-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.admin-courier-brand-preset {
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(32, 37, 55, 0.08);
  background: #fff;
}

.proof-thumb {
  width: 72px;
  height: 72px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.actions form {
  margin: 0;
}

.status-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 200px;
}

.status-form select {
  width: 100%;
  min-width: 0;
}

.status-form .btn {
  width: auto;
  min-height: 46px;
  padding: 10px 16px;
}

.tabs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  min-width: 0;
}

.tab-chip {
  padding: 10px 16px;
  border-radius: 999px;
  background: #f5f7fb;
  color: #596273;
  font-weight: 600;
}

.tab-chip.active {
  background: #0f7ea6;
  color: #fff;
}

.btn-outline {
  background: #fff;
  color: #202537;
  border: 1px solid rgba(32, 37, 55, 0.12);
}

.btn-danger {
  color: #fff;
  background: linear-gradient(109deg, #f5515f, #c31432);
}

.auth-wrap {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 20px;
  padding: 32px 24px;
  background: #ecf0f1;
}

.auth-card {
  width: min(400px, 100%);
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 5px #bdc3c7;
}

.auth-logo {
  width: min(180px, 42vw);
  text-align: center;
}

.auth-logo img {
  width: 100%;
  max-height: 124px;
  object-fit: contain;
}

.auth-head {
  padding: 16px;
  text-align: center;
  background: #04c0c7;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
}

.auth-body {
  padding: 26px 30px 30px;
  background: #fff;
}

.auth-meta {
  margin-bottom: 16px;
  text-align: center;
  color: #667085;
}

.auth-body .btn {
  box-shadow: none;
}

@media (max-width: 960px) {
  .admin-mobile-shell {
    display: block;
    position: sticky;
    top: 0;
    z-index: 40;
    padding: calc(10px + env(safe-area-inset-top)) 12px 8px;
    background: rgba(238, 241, 247, 0.94);
    backdrop-filter: blur(12px);
  }

  .admin-mobile-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 28px rgba(32, 37, 55, 0.08);
  }

  .admin-mobile-toggle,
  .admin-mobile-action,
  .admin-mobile-close {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: #f5f7fb;
    color: #364152;
  }

  .admin-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    justify-content: flex-start;
    overflow: hidden;
  }

  .admin-mobile-brand img {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: transparent;
    padding: 0;
    object-fit: contain;
  }

  .admin-mobile-brand strong {
    font-size: 0.82rem;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-mobile-action {
    justify-self: end;
  }

  .admin-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(18, 23, 38, 0.38);
  }

  .admin-mobile-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 50;
    width: min(88vw, 340px);
    max-width: calc(100vw - 24px);
    padding: calc(18px + env(safe-area-inset-top)) 16px calc(26px + env(safe-area-inset-bottom));
    overflow-y: auto;
    background: #fff;
    box-shadow: 18px 0 40px rgba(18, 23, 38, 0.18);
    border-radius: 0 26px 26px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(calc(-100% - 28px));
    transition: transform 0.25s ease, opacity 0.2s ease, visibility 0.2s ease;
    will-change: transform;
  }

  .admin-mobile-drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
  }

  .admin-mobile-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
  }

  .admin-mobile-drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .admin-mobile-drawer-brand img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    box-shadow: 0 10px 24px rgba(32, 37, 55, 0.08);
  }

  .admin-mobile-drawer-brand strong,
  .admin-mobile-drawer-brand span {
    display: block;
  }

  .admin-mobile-drawer-brand strong {
    font-size: 0.96rem;
  }

  .admin-mobile-drawer-brand span {
    color: #667085;
    font-size: 0.78rem;
  }

  .admin-mobile-group {
    margin-bottom: 18px;
  }

  .admin-mobile-group h4 {
    margin: 0 0 10px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a8297;
  }

  .admin-mobile-group nav {
    display: grid;
    gap: 8px;
  }

  .admin-mobile-group nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #42506a;
    background: #f7f9fc;
  }

  .admin-mobile-group nav a span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .admin-mobile-group nav a.active {
    color: #2d4f7d;
    background: #baf3fb;
  }

  .admin-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .sidebar {
    display: none;
  }

  .admin-main {
    padding: 14px 12px 28px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 18px;
  }

  .admin-topbar h1 {
    font-size: 1.55rem;
  }

  .admin-card,
  .table-card,
  .stat-card,
  .auth-card,
  .mini-card {
    border-radius: 20px;
  }

  .stats-grid,
  .admin-grid,
  .kpi-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-grid > :first-child {
    grid-row: auto;
  }

  .admin-card,
  .table-card {
    padding: 18px 16px;
  }

  .table-tools {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .table-tools h2 {
    font-size: 1.05rem;
  }

  .stat-card strong {
    font-size: 1.6rem;
  }

  .table-wrap {
    overflow: visible;
  }

  .table-wrap table {
    min-width: 0;
  }

  .table-wrap thead {
    display: none;
  }

  .table-wrap tbody {
    display: grid;
    gap: 12px;
  }

  .table-wrap tr {
    display: grid;
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(32, 37, 55, 0.08);
    border-radius: 18px;
    background: #f8faff;
  }

  .table-wrap td {
    display: grid;
    grid-template-columns: minmax(0, 104px) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 0;
    border: 0;
    overflow-wrap: anywhere;
  }

  .table-wrap td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a8297;
  }

  .table-wrap td[colspan],
  .table-wrap .table-empty-row td,
  .table-wrap td[data-cell="actions"] {
    grid-template-columns: 1fr;
  }

  .table-wrap td[data-cell="actions"] > * {
    width: 100%;
  }

  .table-wrap td[colspan]::before,
  .table-wrap .table-empty-row td::before {
    content: none;
  }

  .table-wrap .table-empty-row {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .table-wrap td[data-cell="actions"] .actions,
  .table-wrap td[data-cell="actions"] .actions form,
  .table-wrap td[data-cell="actions"] .actions .btn,
  .table-wrap td[data-cell="actions"] .actions select,
  .table-wrap td[data-cell="actions"] .actions a {
    width: 100%;
  }

  .actions .btn,
  .actions form,
  .admin-topbar .btn {
    width: 100%;
  }

  .actions {
    flex-direction: column;
  }

  .actions > * {
    flex: 1 1 100%;
  }

  .table-wrap .actions {
    min-width: 0;
  }

  .table-wrap .status-form {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .table-wrap .status-form .btn {
    width: 100%;
  }

  .tabs-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .tabs-row::-webkit-scrollbar {
    display: none;
  }

  .tab-chip {
    white-space: nowrap;
  }

  .compact-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .compact-metric {
    text-align: left;
  }
}

/* Admin refresh closer to the target shell structure. */
body.admin-body,
body.admin-auth-body {
  background:
    radial-gradient(circle at top left, rgba(0, 84, 122, 0.08), transparent 28%),
    linear-gradient(180deg, #f4f6fb 0%, #edf1f7 100%);
  color: #202537;
}

.text-primary {
  color: #00547a;
}

.text-warning {
  color: #ef9d20;
}

.text-success {
  color: #2ca77a;
}

.text-info {
  color: #2d8ecf;
}

.text-danger {
  color: #ea5d69;
}

.admin-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  grid-template-rows: 88px minmax(0, 1fr);
  grid-template-areas:
    "sidebar header"
    "sidebar main";
}

.admin-header,
.admin-sidebar,
.admin-main-panel,
.admin-auth-card {
  min-width: 0;
}

.admin-header {
  grid-area: header;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px 18px;
}

.admin-header-brand,
.admin-header-actions,
.admin-header-user,
.admin-mobile-brand,
.admin-mobile-drawer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.admin-header-brand strong,
.admin-header-brand span,
.admin-header-user strong,
.admin-header-user span,
.admin-mobile-brand strong,
.admin-mobile-drawer-brand strong,
.admin-mobile-drawer-brand span {
  display: block;
}

.admin-header-brand span,
.admin-header-user span,
.admin-mobile-drawer-brand span {
  font-size: 0.84rem;
  color: #7a8297;
}

.admin-logo-link,
.admin-mobile-brand {
  color: inherit;
}

.admin-logo-link img,
.admin-mobile-brand img,
.admin-mobile-drawer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
}

.admin-header-actions {
  justify-content: flex-end;
}

.admin-header-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 26px rgba(32, 37, 55, 0.08);
  color: #202537;
}

.admin-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #00547a, #2d8ecf);
}

.admin-header-user {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 26px rgba(32, 37, 55, 0.08);
}

.admin-sidebar {
  grid-area: sidebar;
  padding: 18px 14px 28px;
  background: #fff;
  border-right: 1px solid rgba(32, 37, 55, 0.08);
  overflow-y: auto;
}

.admin-sidebar-group {
  margin-bottom: 18px;
}

.admin-sidebar-group h4,
.admin-mobile-group h4 {
  margin: 0 0 10px;
  padding-left: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e7484;
}

.admin-sidebar nav,
.admin-mobile-group nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar nav a,
.admin-mobile-group nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  color: #72798b;
}

.admin-sidebar nav a.active,
.admin-sidebar nav a:hover,
.admin-mobile-group nav a.active,
.admin-mobile-group nav a:hover {
  background: #e8f4fa;
  color: #1f3759;
}

.admin-main-panel {
  grid-area: main;
  padding: 0 28px 28px;
}

.admin-main-inner {
  width: min(100%, 1320px);
  margin: 0 auto;
}

.admin-dashboard-topbar {
  margin-bottom: 20px;
}

.admin-mobile-summary-card {
  display: none;
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin-bottom: 18px;
}

.admin-chart-card {
  grid-row: span 2;
}

.admin-card-head {
  margin-bottom: 16px;
}

.admin-card-head h2 {
  margin: 0;
  font-size: 1.08rem;
}

.admin-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #7a8297;
  font-size: 0.86rem;
  font-weight: 500;
}

.admin-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

.legend-dot.is-sales {
  background: #69d768;
}

.legend-dot.is-orders {
  background: #3f7cf5;
}

.admin-chart-frame {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.admin-chart-yaxis {
  display: grid;
  align-content: stretch;
  gap: 0;
  padding: 12px 0 22px;
  color: #8c94a9;
  font-size: 0.74rem;
}

.admin-chart-yaxis span {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.admin-chart-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.chart-grid-line {
  stroke: rgba(134, 145, 166, 0.28);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}

.chart-grid-line-vertical {
  stroke: rgba(134, 145, 166, 0.22);
}

.chart-line {
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chart-line-sales {
  stroke: #69d768;
}

.chart-line-orders {
  stroke: #3f7cf5;
}

.chart-point {
  stroke: #fff;
  stroke-width: 2;
}

.chart-point-sales {
  fill: #69d768;
}

.chart-point-orders {
  fill: #3f7cf5;
}

.chart-x-label {
  fill: #8c94a9;
  font-size: 12px;
  text-anchor: middle;
}

.admin-ranking-card {
  min-width: 0;
}

.admin-empty-state {
  padding: 34px 18px;
  text-align: center;
  color: #8a92a8;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-metric-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(32, 37, 55, 0.08);
}

.admin-metric-card span,
.admin-metric-card strong,
.admin-metric-card small {
  display: block;
}

.admin-metric-card span {
  color: #7a8297;
  font-size: 0.84rem;
}

.admin-metric-card strong {
  margin-top: 8px;
  font-size: 1.55rem;
}

.admin-metric-card small {
  margin-top: 6px;
  color: #8a92a8;
}

.admin-dashboard-bottom {
  margin-top: 4px;
}

.admin-mobile-shell {
  display: none;
}

.admin-mobile-topbar {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}

.admin-mobile-toggle,
.admin-mobile-action,
.admin-mobile-close {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #525a6d;
  box-shadow: none;
}

.admin-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 37, 0.42);
  z-index: 69;
}

.admin-mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(308px, 76vw);
  max-width: calc(100vw - 54px);
  padding: 18px 14px 28px;
  background: #fff;
  z-index: 70;
  overflow-y: auto;
  box-shadow: 18px 0 40px rgba(15, 23, 37, 0.14);
  border-right: 1px solid rgba(32, 37, 55, 0.06);
}

.admin-mobile-drawer-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.admin-mobile-brand {
  justify-content: center;
}

.admin-mobile-brand img {
  width: 46px;
  height: 16px;
  border-radius: 0;
  background: transparent;
}

.admin-mobile-drawer-brand div {
  display: none;
}

.admin-mobile-drawer-brand img {
  width: 44px;
  height: 18px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.admin-mobile-quickmenu {
  position: fixed;
  top: calc(56px + env(safe-area-inset-top));
  right: 14px;
  z-index: 71;
  display: grid;
  min-width: 168px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 37, 0.18);
}

.admin-mobile-quickmenu a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: #4f596e;
}

.admin-mobile-quickmenu a:hover {
  background: #f4f8fc;
}

.admin-mobile-group {
  margin-bottom: 18px;
}

.admin-mobile-group h4 {
  margin: 0 0 10px;
  padding-left: 0;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6e7484;
}

.admin-mobile-group nav {
  gap: 4px;
}

.admin-mobile-group nav a {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  background: transparent;
  color: #7a8090;
  font-weight: 500;
}

.admin-mobile-group nav a.active,
.admin-mobile-group nav a:hover {
  background: #baf3fb;
  color: #2d4f7d;
}

.admin-mobile-group nav a i {
  width: 18px;
}

.admin-auth-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}

.admin-auth-logo {
  margin-bottom: 22px;
}

.admin-auth-logo img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
}

.admin-auth-card {
  width: min(420px, 100%);
  overflow: hidden;
}

.admin-auth-head {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background: linear-gradient(135deg, #00547a, #2d8ecf);
}

.admin-auth-body {
  padding: 26px 24px 24px;
}

.admin-auth-meta {
  margin-bottom: 18px;
  text-align: center;
  color: #7a8297;
}

.admin-login-form {
  display: grid;
  gap: 14px;
}

.admin-login-form .field input {
  min-height: 52px;
  border-radius: 16px;
}

.admin-login-submit {
  width: 100%;
  min-height: 52px;
}

.admin-auth-footer {
  margin-top: 18px;
  text-align: center;
  color: #7a8297;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .admin-mobile-shell {
    display: block;
    position: sticky;
    top: 0;
    z-index: 68;
    padding-top: env(safe-area-inset-top);
    background: #fff;
  }

  .admin-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas: "main";
  }

  .admin-header,
  .admin-sidebar {
    display: none;
  }

  .admin-main-panel {
    padding: 10px 10px 24px;
  }

  .admin-overview-grid,
  .admin-metric-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .admin-dashboard-topbar,
  .admin-metric-grid {
    display: none;
  }

  .admin-chart-card {
    grid-row: auto;
  }

  .admin-mobile-topbar {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    border-bottom: 1px solid rgba(32, 37, 55, 0.08);
  }

  .admin-mobile-toggle,
  .admin-mobile-action,
  .admin-mobile-close {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: transparent;
    color: #4f5769;
  }

  .admin-mobile-brand {
    justify-content: center;
  }

  .admin-mobile-brand img {
    width: 48px;
    height: 16px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .admin-mobile-drawer {
    top: calc(56px + env(safe-area-inset-top));
    bottom: 0;
    left: 0;
    inset-inline: auto auto;
    width: min(82vw, 304px);
    max-width: calc(100vw - 40px);
    padding: 14px 12px 24px;
    border-radius: 0 18px 18px 0;
    box-shadow: 12px 0 30px rgba(15, 23, 37, 0.14);
    border-right: 1px solid rgba(32, 37, 55, 0.06);
  }

  .admin-mobile-drawer-head {
    display: none;
  }

  .admin-mobile-group {
    margin-bottom: 16px;
  }

  .admin-mobile-group h4 {
    margin: 0 0 8px;
    padding-left: 4px;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    color: #6e7484;
  }

  .admin-mobile-group nav {
    gap: 4px;
  }

  .admin-mobile-group nav a {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: transparent;
    color: #7a8090;
    font-weight: 500;
  }

  .admin-mobile-group nav a.active,
  .admin-mobile-group nav a:hover {
    background: #baf3fb;
    color: #2d4f7d;
  }

  .admin-mobile-group nav a i {
    width: 18px;
  }

  .admin-topbar-actions {
    width: 100%;
    justify-content: flex-start;
    gap: 8px;
  }

  .admin-topbar .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    white-space: nowrap;
  }

  .table-card,
  .admin-chart-card,
  .admin-ranking-card {
    padding: 16px 14px;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid rgba(32, 37, 55, 0.06);
  }

  .admin-card-head {
    margin-bottom: 12px;
  }

  .admin-card-head h2 {
    font-size: 1.02rem;
  }

  .admin-empty-state {
    padding: 24px 14px;
  }

  .admin-chart-frame {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 8px;
  }

  .admin-chart-yaxis {
    font-size: 0.68rem;
  }

  .admin-card-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .admin-card-head h2 {
    font-size: 0.98rem;
  }

  .admin-chart-legend {
    gap: 10px;
    font-size: 0.75rem;
  }

  .admin-metric-card {
    padding: 16px;
    border-radius: 18px;
  }

  .admin-metric-card strong {
    font-size: 1.28rem;
  }
}

/* Final mobile admin overrides so the drawer/topbar stay compact and consistent. */
@media (max-width: 960px) {
  .admin-mobile-shell {
    display: block;
    position: sticky;
    top: 0;
    z-index: 80;
    padding: env(safe-area-inset-top) 0 0;
    background: #fff;
  }

  .admin-mobile-topbar {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-radius: 0;
    border-bottom: 1px solid rgba(32, 37, 55, 0.08);
    box-shadow: none;
  }

  .admin-mobile-toggle,
  .admin-mobile-action,
  .admin-mobile-close {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: transparent;
    color: #50586a;
    box-shadow: none;
  }

  .admin-mobile-brand {
    justify-content: center;
  }

  .admin-mobile-brand img {
    width: 48px;
    height: 16px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }

  .admin-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 78;
    background: rgba(18, 23, 38, 0.2);
  }

  .admin-mobile-drawer {
    position: fixed;
    top: calc(56px + env(safe-area-inset-top));
    left: 0;
    bottom: auto !important;
    width: min(82vw, 304px);
    max-width: calc(100vw - 38px);
    height: calc(100dvh - 56px - env(safe-area-inset-top)) !important;
    padding: 14px 12px 24px;
    background: #fff;
    border-right: 1px solid rgba(32, 37, 55, 0.06);
    border-radius: 0 18px 18px 0;
    box-shadow: 12px 0 30px rgba(15, 23, 37, 0.14);
    overflow-y: auto;
  }

  .admin-mobile-drawer-head {
    display: none;
  }

  .admin-mobile-quickmenu {
    top: calc(50px + env(safe-area-inset-top));
    right: 8px;
  }

  .admin-mobile-group {
    margin-bottom: 16px;
  }

  .admin-mobile-group h4 {
    margin: 0 0 8px;
    padding-left: 4px;
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    color: #6f7688;
  }

  .admin-mobile-group nav {
    display: grid;
    gap: 4px;
  }

  .admin-mobile-group nav a {
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: transparent;
    color: #778095;
    font-weight: 500;
  }

  .admin-mobile-group nav a.active,
  .admin-mobile-group nav a:hover {
    background: #baf3fb;
    color: #2d4f7d;
  }

  .admin-mobile-group nav a i {
    width: 18px;
  }

  .admin-main-panel {
    padding: 10px 10px 24px;
  }

  .admin-dashboard-topbar,
  .admin-metric-grid {
    display: none;
  }
}

/* Final mobile admin shell override to beat earlier duplicated rules. */
@media (max-width: 960px) {
  body.admin-drawer-open {
    overflow: hidden;
  }

  .admin-main-inner > .alert {
    margin-bottom: 12px !important;
    border-radius: 22px !important;
    padding: 16px 20px !important;
    font-size: 0.95rem !important;
  }

  .admin-mobile-shell {
    display: block !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 82 !important;
    padding: env(safe-area-inset-top) 0 0 !important;
    background: #f3f5f9 !important;
  }

  .admin-mobile-topbar {
    display: grid !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 56px !important;
    padding: 8px 12px !important;
    background: #fff !important;
    border-radius: 0 !important;
    border-bottom: 1px solid rgba(32, 37, 55, 0.08) !important;
    box-shadow: none !important;
  }

  .admin-mobile-toggle,
  .admin-mobile-action,
  .admin-mobile-close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #50586a !important;
    box-shadow: none !important;
    font-size: 1.08rem !important;
    line-height: 1 !important;
  }

  .admin-mobile-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
  }

  .admin-mobile-brand img {
    display: block !important;
    width: auto !important;
    max-width: 56px !important;
    height: 16px !important;
    object-fit: contain !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
  }

  .admin-mobile-overlay {
    z-index: 78 !important;
    background: rgba(18, 23, 38, 0.24) !important;
  }

  .admin-mobile-drawer {
    position: fixed !important;
    top: calc(56px + env(safe-area-inset-top)) !important;
    left: 0 !important;
    bottom: auto !important;
    width: min(80vw, 304px) !important;
    max-width: calc(100vw - 34px) !important;
    height: calc(100dvh - 56px - env(safe-area-inset-top)) !important;
    padding: 14px 12px 24px !important;
    background: #fff !important;
    border-right: 1px solid rgba(32, 37, 55, 0.06) !important;
    border-radius: 0 18px 18px 0 !important;
    box-shadow: 12px 0 30px rgba(15, 23, 37, 0.14) !important;
    overflow-y: auto !important;
  }

  .admin-mobile-drawer-head {
    display: none !important;
  }

  .admin-mobile-group {
    margin-bottom: 16px !important;
  }

  .admin-mobile-group h4 {
    margin: 0 0 8px !important;
    padding-left: 4px !important;
    font-size: 0.74rem !important;
    letter-spacing: 0.03em !important;
    color: #6f7688 !important;
  }

  .admin-mobile-group nav {
    display: grid !important;
    gap: 4px !important;
  }

  .admin-mobile-group nav a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: #778095 !important;
    font-weight: 500 !important;
  }

  .admin-mobile-group nav a span {
    gap: 12px !important;
  }

  .admin-mobile-group nav a.active,
  .admin-mobile-group nav a:hover {
    background: #baf3fb !important;
    color: #2d4f7d !important;
  }

  .admin-mobile-group nav a i {
    width: 18px !important;
  }

  .admin-mobile-quickmenu {
    top: calc(50px + env(safe-area-inset-top)) !important;
    right: 8px !important;
  }

  .admin-main-panel {
    padding: 12px 10px 24px !important;
  }

  .admin-mobile-summary-card {
    display: block !important;
    margin-bottom: 12px;
    padding: 16px 20px 0;
    border-radius: 0 0 34px 34px;
    box-shadow: 0 18px 36px rgba(32, 37, 55, 0.08);
    overflow: hidden;
  }

  .admin-mobile-summary-card h3 {
    margin: 0 0 10px;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6e7484;
  }

  .admin-mobile-summary-links {
    display: grid;
    margin: 0 -20px;
  }

  .admin-mobile-summary-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    padding: 0 22px;
    color: #6f7890;
    font-weight: 600;
    border-top: 1px solid rgba(32, 37, 55, 0.06);
  }

  .admin-mobile-summary-link span {
    display: inline-flex;
    align-items: center;
    gap: 12px;
  }

  .admin-mobile-summary-link i {
    width: 20px;
    text-align: center;
    color: #2cc489;
  }

  .admin-mobile-summary-link + .admin-mobile-summary-link i {
    color: #41a7f4;
  }

  .admin-topbar-actions {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 8px !important;
  }

  .admin-topbar .btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-height: 38px !important;
    padding: 0 12px !important;
    border-radius: 10px !important;
    font-size: 0.86rem !important;
    white-space: nowrap !important;
  }

  .admin-dashboard-topbar,
  .admin-metric-grid {
    display: none !important;
  }
}

.admin-order-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.admin-stat-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(32, 37, 55, 0.08);
  box-shadow: 0 12px 28px rgba(32, 37, 55, 0.06);
}

.admin-stat-card span {
  color: #6f7890;
  font-size: 0.85rem;
}

.admin-stat-card strong {
  color: #202537;
  font-size: 1.15rem;
}

.admin-order-toolbar-card {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-order-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}

.admin-order-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.admin-order-tabs::-webkit-scrollbar {
  display: none;
}

.admin-order-tab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(244, 247, 251, 0.9);
  border: 1px solid rgba(32, 37, 55, 0.08);
  color: #6f7890;
  white-space: nowrap;
}

.admin-order-tab strong {
  color: #202537;
}

.admin-order-tab.is-active {
  background: linear-gradient(135deg, rgba(44, 196, 137, 0.12), rgba(255, 255, 255, 0.98));
  border-color: rgba(44, 196, 137, 0.22);
  color: #1f3a2f;
}

.admin-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.92fr);
  gap: 18px;
}

.admin-order-list-card,
.admin-order-detail-card {
  min-width: 0;
}

.admin-order-list-head {
  margin-bottom: 18px;
}

.admin-order-list-head h2,
.admin-order-products-head h3,
.admin-order-detail-head h2 {
  margin: 0 0 6px;
}

.admin-order-list-head p,
.admin-order-detail-head p {
  margin: 0;
  color: #6f7890;
}

.admin-order-list {
  display: grid;
  gap: 14px;
}

.admin-order-item {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(32, 37, 55, 0.08);
  background: rgba(250, 252, 255, 0.86);
}

.admin-order-item.is-active {
  border-color: rgba(65, 167, 244, 0.22);
  box-shadow: 0 16px 28px rgba(65, 167, 244, 0.08);
}

.admin-order-item-top,
.admin-order-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-order-item-top strong,
.admin-order-item-grid strong,
.admin-order-detail-grid strong,
.admin-order-product-item strong {
  color: #202537;
}

.admin-order-item-top span,
.admin-order-item-grid span,
.admin-order-item-grid small,
.admin-order-detail-grid span,
.admin-order-detail-grid small {
  color: #6f7890;
}

.admin-order-item-grid,
.admin-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-order-item-grid > div,
.admin-order-detail-grid article {
  display: grid;
  gap: 4px;
}

.admin-order-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-order-item-actions {
  display: flex;
  justify-content: flex-start;
}

.admin-order-summary {
  margin-top: 18px;
}

.admin-order-products {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 37, 55, 0.08);
}

.admin-order-product-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(32, 37, 55, 0.08);
}

.admin-order-product-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.admin-order-product-item span {
  color: #6f7890;
}

.admin-order-update-form {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(32, 37, 55, 0.08);
}

.admin-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 1180px) {
  .admin-order-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .admin-order-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .admin-order-stats {
    grid-template-columns: 1fr;
  }

  .admin-order-search,
  .admin-order-item-top,
  .admin-order-detail-head,
  .admin-order-product-item {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-order-item-grid,
  .admin-order-detail-grid {
    grid-template-columns: 1fr;
  }

  .admin-order-search {
    gap: 12px;
  }

  .admin-order-search .btn,
  .admin-order-actions .btn,
  .admin-order-item-actions .btn {
    width: 100%;
  }

  .courier-brand {
    align-items: flex-start;
  }

  .courier-brand-logo {
    width: 40px;
    height: 40px;
  }

  .courier-brand.is-compact .courier-brand-logo {
    width: 36px;
    height: 36px;
  }

  .admin-courier-preset-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile admin stabilization to override duplicated legacy rules. */
body.admin-body .admin-layout,
body.admin-body .admin-main-panel,
body.admin-body .admin-main-inner,
body.admin-body .table-card,
body.admin-body .admin-card {
  overflow-x: clip;
}

body.admin-body .admin-form > .actions,
body.admin-body .admin-topbar-actions,
body.admin-body .admin-order-actions,
body.admin-body .admin-order-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.admin-body .actions > *,
body.admin-body .admin-form > .actions > *,
body.admin-body .admin-topbar-actions > *,
body.admin-body .admin-order-actions > *,
body.admin-body .admin-order-item-actions > * {
  flex: 0 0 auto;
  min-width: 0;
}

body.admin-body .actions form,
body.admin-body .actions .btn,
body.admin-body .actions a,
body.admin-body .admin-form > .actions .btn,
body.admin-body .admin-topbar-actions .btn,
body.admin-body .admin-order-actions .btn,
body.admin-body .admin-order-item-actions .btn {
  width: auto;
  max-width: 100%;
}

body.admin-body .admin-form > .actions .btn,
body.admin-body .admin-topbar-actions .btn,
body.admin-body .admin-order-actions .btn,
body.admin-body .admin-order-item-actions .btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 14px;
  white-space: normal;
}

body.admin-body .admin-mobile-overlay {
  backdrop-filter: blur(1px);
}

body.admin-body .admin-mobile-drawer,
body.admin-body .admin-mobile-group,
body.admin-body .admin-mobile-group nav,
body.admin-body .admin-mobile-group nav a {
  max-width: 100%;
}

@media (max-width: 960px) {
  body.admin-body .admin-main-panel,
  body.admin-body .admin-main-inner {
    overflow-x: hidden !important;
  }

  body.admin-body .admin-order-tabs {
    flex-wrap: wrap !important;
    overflow: visible !important;
  }

  body.admin-body .admin-order-tab {
    flex: 1 1 calc(50% - 10px) !important;
    justify-content: center !important;
    min-width: 0 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  body.admin-body .actions {
    flex-direction: row !important;
    align-items: stretch !important;
  }

  body.admin-body .actions > * {
    flex: 0 0 auto !important;
  }

  body.admin-body .table-wrap td[data-cell="actions"] .actions,
  body.admin-body .table-wrap td[data-cell="actions"] .status-form,
  body.admin-body .table-wrap td[data-cell="actions"] .actions form {
    width: 100% !important;
  }

  body.admin-body .table-wrap td[data-cell="actions"] .actions {
    flex-direction: column !important;
  }

  body.admin-body .table-wrap td[data-cell="actions"] .actions > *,
  body.admin-body .table-wrap td[data-cell="actions"] .actions .btn,
  body.admin-body .table-wrap td[data-cell="actions"] .actions form,
  body.admin-body .table-wrap td[data-cell="actions"] .actions a,
  body.admin-body .table-wrap td[data-cell="actions"] .status-form .btn {
    width: 100% !important;
    flex: none !important;
  }

  body.admin-body .admin-form > .actions,
  body.admin-body .admin-order-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  body.admin-body .admin-form > .actions > *,
  body.admin-body .admin-order-actions > *,
  body.admin-body .admin-form > .actions .btn,
  body.admin-body .admin-order-actions .btn {
    width: 100% !important;
    flex: none !important;
  }

  body.admin-body .admin-form > .actions .btn,
  body.admin-body .admin-order-actions .btn {
    min-height: 48px !important;
    border-radius: 16px !important;
  }

  body.admin-body .admin-mobile-drawer {
    width: min(80vw, 296px) !important;
    max-width: calc(100vw - 28px) !important;
    border-radius: 0 16px 16px 0 !important;
  }
}

/* codex-mobile-admin-refresh:start */
.admin-topbar--settings {
  align-items: flex-end;
}

.settings-page-copy {
  max-width: 640px;
}

.settings-shell {
  padding: 0;
  overflow: hidden;
}

.settings-form {
  gap: 0;
}

.settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 24px 28px 0;
  border-bottom: 1px solid rgba(32, 37, 55, 0.08);
}

.settings-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #9aa1af;
  padding: 0 0 14px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
}

.settings-tab.active {
  color: #12698e;
  border-bottom-color: #12698e;
}

.settings-panes {
  min-width: 0;
}

.settings-pane {
  display: none;
  padding: 28px 28px 18px;
}

.settings-pane.active {
  display: block;
}

.settings-section {
  display: grid;
  gap: 18px;
}

.settings-section + .settings-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(32, 37, 55, 0.08);
}

.settings-section-head {
  display: grid;
  gap: 5px;
}

.settings-section-head strong {
  font-size: 1rem;
  color: #202537;
}

.settings-section-head span {
  color: #7a8191;
  font-size: 0.92rem;
  line-height: 1.55;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.settings-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.settings-field {
  display: grid;
  gap: 8px;
}

.settings-field--full {
  grid-column: 1 / -1;
}

.settings-field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4b5160;
}

.settings-field input,
.settings-field textarea,
.settings-field select {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
  border: 1px solid #dbe1ea;
  background: #fff;
  color: #202537;
  padding: 12px 14px;
  box-shadow: inset 0 1px 2px rgba(32, 37, 55, 0.02);
}

.settings-field textarea {
  min-height: 124px;
  resize: vertical;
}

.settings-field input[type="file"] {
  padding: 11px 12px;
  background: rgba(246, 249, 255, 0.9);
}

.settings-field-note {
  display: block;
  color: #44a9c1;
  font-size: 0.84rem;
  line-height: 1.55;
  font-style: italic;
}

.settings-upload-card {
  padding: 18px;
  border: 1px solid rgba(32, 37, 55, 0.08);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 249, 255, 0.98));
}

.settings-upload-card .thumb-preview {
  width: 92px;
  height: 92px;
  margin-top: 6px;
}

.settings-feature-block {
  display: grid;
  gap: 16px;
  padding-top: 10px;
}

.settings-feature-title {
  font-size: 0.96rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #3d4452;
  letter-spacing: 0.02em;
}

.settings-theme-mode {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(92px, 1fr));
  overflow: hidden;
  border: 1px solid #d9dde5;
  border-radius: 10px;
  width: min(210px, 100%);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(32, 37, 55, 0.05);
}

.settings-theme-mode-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  background: #fff;
  color: #4f596e;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.settings-theme-mode-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-theme-mode-option + .settings-theme-mode-option {
  border-left: 1px solid #dde2ea;
}

.settings-theme-mode-option.active {
  background: linear-gradient(180deg, #69e774 0%, #52d861 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.settings-palette-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 14px;
  padding: 6px 0 4px;
}

.settings-palette-swatch {
  position: relative;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--swatch-start, var(--swatch-color)) 0%, var(--swatch-end, var(--swatch-color)) 100%);
  box-shadow: 0 10px 20px rgba(32, 37, 55, 0.14);
  cursor: pointer;
}

.settings-palette-check {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.45rem;
  text-shadow: 0 1px 2px rgba(15, 23, 37, 0.18);
}

.settings-palette-swatch.active .settings-palette-check {
  display: inline-flex;
}

.settings-palette-swatch.active {
  transform: scale(1.04);
  box-shadow: 0 14px 24px rgba(32, 37, 55, 0.18);
}

.settings-grid--theme {
  padding-top: 4px;
}

.settings-theme-editor {
  --theme-primary-preview: #ff3d7f;
  --theme-secondary-preview: #ff7590;
  --theme-accent-preview: #ffd3e1;
  display: grid;
  gap: 16px;
}

.settings-theme-copy {
  display: grid;
  gap: 4px;
  max-width: 760px;
}

.settings-theme-copy strong {
  font-size: 0.98rem;
  font-weight: 700;
  color: #273043;
}

.settings-theme-copy span {
  color: #667085;
  line-height: 1.55;
}

.settings-theme-mode-option[data-theme-mode-option="gradient"].active {
  background: linear-gradient(135deg, var(--theme-primary-preview) 0%, var(--theme-secondary-preview) 100%);
  color: #fff;
}

.settings-theme-mode-option[data-theme-mode-option="flat"].active {
  background: var(--theme-primary-preview);
  color: #fff;
}

.settings-theme-editor.is-flat .settings-palette-swatch {
  background: var(--swatch-color);
  box-shadow:
    inset 0 0 0 4px #fff,
    0 10px 20px rgba(32, 37, 55, 0.12);
}

.settings-theme-editor.is-gradient .settings-palette-swatch {
  background: linear-gradient(135deg, var(--swatch-start, var(--swatch-color)) 0%, var(--swatch-end, var(--swatch-color)) 100%);
}

.settings-theme-editor.is-flat .settings-palette-swatch.active {
  box-shadow:
    inset 0 0 0 4px #fff,
    0 0 0 4px rgba(32, 37, 55, 0.06),
    0 14px 24px rgba(32, 37, 55, 0.16);
}

.settings-theme-preview {
  border: 1px solid #dde3ec;
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #fcfdff 0%, #f5f7fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.settings-theme-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.settings-theme-preview-head strong,
.settings-theme-preview-head span {
  display: block;
}

.settings-theme-preview-head strong {
  font-size: 0.96rem;
  color: #273043;
}

.settings-theme-preview-head span {
  margin-top: 4px;
  color: #667085;
  line-height: 1.5;
}

.settings-theme-preview-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-transform: uppercase;
}

.settings-theme-editor.is-gradient .settings-theme-preview-badge {
  background: linear-gradient(135deg, var(--theme-primary-preview) 0%, var(--theme-secondary-preview) 100%);
}

.settings-theme-editor.is-flat .settings-theme-preview-badge {
  background: var(--theme-primary-preview);
}

.settings-theme-preview-stage {
  display: grid;
  gap: 14px;
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(203, 212, 224, 0.9);
}

.settings-theme-editor.is-gradient .settings-theme-preview-stage {
  background: linear-gradient(180deg, var(--theme-accent-preview) 0%, #ffffff 82%);
}

.settings-theme-editor.is-flat .settings-theme-preview-stage {
  background: linear-gradient(180deg, #ffffff 0%, var(--theme-accent-preview) 100%);
}

.settings-theme-preview-bar {
  width: 100%;
  height: 16px;
  border-radius: 999px;
}

.settings-theme-preview-hero {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  color: #1f2937;
}

.settings-theme-editor.is-gradient .settings-theme-preview-bar,
.settings-theme-editor.is-gradient .settings-theme-preview-hero,
.settings-theme-editor.is-gradient .settings-theme-preview-button--primary {
  background: linear-gradient(135deg, var(--theme-primary-preview) 0%, var(--theme-secondary-preview) 100%);
}

.settings-theme-editor.is-flat .settings-theme-preview-bar,
.settings-theme-editor.is-flat .settings-theme-preview-hero,
.settings-theme-editor.is-flat .settings-theme-preview-button--primary {
  background: var(--theme-primary-preview);
}

.settings-theme-preview-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.settings-theme-preview-hero strong {
  font-size: 1rem;
  color: #fff;
}

.settings-theme-preview-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-theme-preview-button {
  display: inline-flex;
  height: 34px;
  border-radius: 999px;
}

.settings-theme-preview-button--primary {
  width: 112px;
  box-shadow: 0 10px 18px rgba(32, 37, 55, 0.12);
}

.settings-theme-preview-button--ghost {
  width: 88px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 212, 224, 0.95);
}

.settings-theme-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.settings-theme-preview-card {
  min-height: 68px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(203, 212, 224, 0.88);
  box-shadow: 0 8px 16px rgba(32, 37, 55, 0.06);
}

.settings-actions {
  justify-content: flex-start;
  padding: 0 28px 28px;
  margin-top: 8px;
}

.settings-actions .btn {
  min-width: 220px;
  min-height: 50px;
  border-radius: 14px;
  box-shadow: none;
}

@media (max-width: 960px) {
  body.admin-body {
    background: linear-gradient(180deg, #ffffff 0 74px, #f3f4fb 74px 100%);
  }

  .admin-mobile-shell {
    display: block;
    position: sticky;
    top: 0;
    z-index: 40;
    padding: env(safe-area-inset-top) 0 0;
    background: #fff;
    backdrop-filter: none;
    box-shadow: 0 1px 0 rgba(32, 37, 55, 0.06);
  }

  .admin-mobile-topbar {
    padding: 12px 16px;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    gap: 18px;
  }

  .admin-mobile-toggle,
  .admin-mobile-action,
  .admin-mobile-close {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: transparent;
    color: #565d68;
    font-size: 1.02rem;
  }

  .admin-mobile-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 34px;
    justify-content: center;
  }

  .admin-mobile-brand img {
    width: min(156px, 58vw) !important;
    max-width: min(156px, 58vw) !important;
    height: auto !important;
    max-height: 34px !important;
    border-radius: 0;
    background: transparent;
    padding: 0;
    object-fit: contain;
  }

  body.admin-body .admin-mobile-topbar .admin-mobile-brand img {
    width: min(156px, 58vw) !important;
    max-width: min(156px, 58vw) !important;
    height: auto !important;
    max-height: 34px !important;
  }

  .admin-mobile-overlay {
    background: rgba(23, 28, 38, 0.38);
  }

  .admin-mobile-drawer {
    width: min(86vw, 340px);
    border-radius: 0 24px 24px 0;
    background: #fff;
    box-shadow: 0 26px 52px rgba(18, 25, 38, 0.2);
  }

  .admin-mobile-drawer-head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(32, 37, 55, 0.08);
  }

  .admin-mobile-drawer-brand img {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .admin-mobile-group {
    padding: 16px 18px 0;
  }

  .admin-mobile-group h4 {
    margin: 0 0 10px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #8b91a0;
  }

  .admin-mobile-group nav {
    display: grid;
    gap: 8px;
  }

  .admin-mobile-group nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: #707687;
  }

  .admin-mobile-group nav a.active {
    background: #edf9ff;
    color: #146d92;
  }

  .admin-mobile-quickmenu {
    top: calc(env(safe-area-inset-top) + 54px);
    right: 14px;
    border-radius: 16px;
    box-shadow: 0 20px 36px rgba(18, 25, 38, 0.16);
  }

  .admin-main-panel {
    padding: 26px 18px 92px;
  }

  .admin-main-inner {
    width: 100%;
  }

  .admin-topbar {
    margin-bottom: 18px;
    align-items: flex-start;
  }

  .admin-topbar h1 {
    font-size: 2.02rem;
    line-height: 1.08;
    letter-spacing: -0.05em;
    font-weight: 600;
  }

  .admin-page-copy,
  .admin-topbar .muted {
    color: #98a0ad;
    font-size: 0.9rem;
    max-width: 320px;
  }

  .admin-card,
  .table-card,
  .mini-card {
    border-radius: 20px;
    box-shadow: 0 14px 30px rgba(32, 37, 55, 0.08);
  }

  .admin-card,
  .table-card {
    padding: 20px;
  }

  .stats-grid,
  .kpi-grid,
  .dashboard-grid,
  .admin-grid,
  .settings-grid,
  .settings-upload-grid {
    grid-template-columns: 1fr;
  }

  .table-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .tabs-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 22px;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(32, 37, 55, 0.08);
    scrollbar-width: none;
  }

  .tabs-row::-webkit-scrollbar {
    display: none;
  }

  .tab-chip {
    padding: 0 0 10px;
    border-radius: 0;
    background: transparent;
    color: #9aa1af;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
  }

  .tab-chip.active {
    background: transparent;
    color: #146d92;
    border-bottom-color: #146d92;
  }

  .actions,
  .status-form {
    width: 100%;
  }

  .status-form {
    grid-template-columns: 1fr;
  }

  .settings-shell {
    padding: 0;
    border-radius: 18px;
  }

  .settings-tabs {
    gap: 14px 18px;
    padding: 18px 18px 0;
  }

  .settings-tab {
    padding-bottom: 10px;
    font-size: 0.96rem;
  }

  .settings-pane {
    padding: 20px 18px 16px;
  }

  .settings-page-copy,
  .settings-section-head span,
  .settings-section-head strong {
    display: none;
  }

  .settings-section + .settings-section {
    margin-top: 22px;
    padding-top: 22px;
  }

  .settings-field label {
    font-size: 0.94rem;
  }

  .settings-field input,
  .settings-field textarea,
  .settings-field select {
    min-height: 46px;
    border-radius: 10px;
    padding: 11px 13px;
    font-size: 0.96rem;
  }

  .settings-field textarea {
    min-height: 112px;
  }

  .settings-actions {
    padding: 0 18px 18px;
  }

  .settings-actions .btn {
    width: 100%;
    min-height: 48px;
  }

  .settings-feature-block {
    gap: 14px;
  }

  .settings-feature-title {
    font-size: 0.9rem;
  }

  .settings-theme-mode {
    width: min(210px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-theme-mode-option {
    min-height: 42px;
    font-size: 0.82rem;
  }

  .settings-palette-grid {
    gap: 14px 10px;
  }

  .settings-palette-swatch {
    width: 44px;
    height: 44px;
  }

  .settings-theme-copy {
    gap: 6px;
  }

  .settings-theme-preview {
    padding: 14px;
    border-radius: 18px;
  }

  .settings-theme-preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-theme-preview-badge {
    width: fit-content;
  }

  .settings-theme-preview-stage {
    padding: 14px;
    border-radius: 16px;
  }

  .settings-theme-preview-grid {
    grid-template-columns: 1fr;
  }

  .settings-theme-preview-card {
    min-height: 54px;
  }

  .settings-upload-card .thumb-preview {
    width: 78px;
    height: 78px;
    border-radius: 14px;
  }
}

@media (max-width: 960px) {
  body.admin-body .admin-mobile-overlay {
    position: fixed !important;
    inset: 0 !important;
    top: var(--admin-mobile-offset-top, 56px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 999 !important;
    background: rgba(255, 255, 255, 0.01) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  body.admin-body .admin-layout,
  body.admin-body .admin-main-panel,
  body.admin-body .admin-main-inner,
  body.admin-body .admin-card,
  body.admin-body .table-card {
    filter: none !important;
    opacity: 1 !important;
  }

  body.admin-body .admin-mobile-drawer {
    width: min(88vw, 338px) !important;
    max-width: calc(100vw - 18px) !important;
    position: fixed !important;
    top: var(--admin-mobile-offset-top, 56px) !important;
    right: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1000 !important;
    height: calc(100dvh - var(--admin-mobile-offset-top, 56px)) !important;
    min-height: calc(100dvh - var(--admin-mobile-offset-top, 56px)) !important;
    max-height: calc(100dvh - var(--admin-mobile-offset-top, 56px)) !important;
    padding-top: 10px !important;
    padding-right: 16px !important;
    padding-bottom: calc(24px + env(safe-area-inset-bottom)) !important;
    padding-left: 16px !important;
    border-radius: 0 20px 20px 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    scrollbar-gutter: auto !important;
    transition: none !important;
    transform: none !important;
    will-change: auto !important;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    box-shadow: 16px 0 32px rgba(15, 23, 37, 0.14) !important;
    pointer-events: auto !important;
  }

  body.admin-body .admin-mobile-drawer:not([hidden]) {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  body.admin-body .admin-mobile-group nav a,
  body.admin-body .admin-mobile-group h4 {
    opacity: 1 !important;
    filter: none !important;
  }

  body.admin-body .admin-mobile-drawer::-webkit-scrollbar {
    width: 6px;
  }

  body.admin-body .admin-mobile-drawer::-webkit-scrollbar-thumb {
    background: rgba(86, 98, 122, 0.28);
    border-radius: 999px;
  }
}
/* codex-mobile-admin-refresh:end */
