body.admin-body,
html:has(body.admin-body) {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--theme-surface);
}

@media (max-width: 640px) {
  body.admin-body .history-orders-head,
  body.admin-body .history-orders-row {
    display: grid !important;
    grid-template-columns: 52px 88px minmax(96px, 1fr) 58px !important;
    grid-template-areas:
      "id type client product"
      "price price date date" !important;
    gap: 8px 10px !important;
    align-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-body .history-orders-head {
    display: none !important;
  }

  body.admin-body .history-orders-row {
    padding: 16px 12px 18px !important;
    border-bottom: 1px solid var(--theme-border) !important;
    background: #fff !important;
  }

  body.admin-body .history-orders-row > div {
    display: block !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #160c20 !important;
    font-size: 13px !important;
    line-height: 1.18 !important;
  }

  body.admin-body .history-orders-row > div::before {
    content: none !important;
  }

  body.admin-body .history-orders-row > [data-mobile-label="#Pedido"] {
    grid-area: id !important;
    align-self: start !important;
    font-size: 15px !important;
  }

  body.admin-body .history-orders-row > [data-mobile-label="Tipo de Entrega"] {
    grid-area: type !important;
    align-self: start !important;
  }

  body.admin-body .history-orders-row > [data-mobile-label="Cliente"] {
    grid-area: client !important;
    align-self: start !important;
    text-align: left !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-body .history-orders-row > [data-mobile-label="Producto"] {
    grid-area: product !important;
    justify-self: center !important;
    align-self: center !important;
  }

  body.admin-body .history-orders-row > [data-mobile-label="Precio"] {
    grid-area: price !important;
    align-self: end !important;
    text-align: left !important;
  }

  body.admin-body .history-orders-row > [data-mobile-label="Precio"] strong,
  body.admin-body .history-orders-row .history-money {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #160c20 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }

  body.admin-body .history-orders-row > [data-mobile-label="Fecha"],
  body.admin-body .history-orders-row .history-date-cell {
    grid-area: date !important;
    justify-self: end !important;
    align-self: end !important;
    max-width: 100% !important;
    color: #160c20 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-align: right !important;
    white-space: nowrap !important;
  }

  body.admin-body .history-product-thumbs {
    justify-content: center !important;
  }
}

@media (max-width: 380px) {
  body.admin-body .history-orders-head,
  body.admin-body .history-orders-row {
    grid-template-columns: 44px 72px minmax(78px, 1fr) 46px !important;
    gap: 7px !important;
  }

  body.admin-body .history-orders-row > div {
    font-size: 11px !important;
  }

  body.admin-body .history-orders-row > [data-mobile-label="Precio"] strong,
  body.admin-body .history-orders-row .history-money {
    font-size: 16px !important;
  }

  body.admin-body .history-orders-row > [data-mobile-label="Fecha"],
  body.admin-body .history-orders-row .history-date-cell {
    font-size: 11px !important;
  }
}

/* Admin mobile rescue: fit lists inside every phone width */
@media (max-width: 760px) {
  html:has(body.admin-body),
  body.admin-body,
  .admin-body .admin-layout,
  .admin-body .admin-main {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .admin-body,
  .admin-body * {
    letter-spacing: 0 !important;
  }

  .admin-body {
    font-size: 9.5px !important;
  }

  .admin-body input,
  .admin-body select,
  .admin-body textarea,
  .admin-body button,
  .admin-body .button {
    font-size: 9.5px !important;
  }

  .admin-body .admin-main {
    padding: 10px 5px 24px !important;
  }

  .admin-body .admin-top,
  .admin-body .orders-header {
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  .admin-body .admin-top h1,
  .admin-body .orders-header h1 {
    font-size: 18px !important;
    line-height: 1.05 !important;
  }

  .admin-body .admin-top p,
  .admin-body .orders-header p,
  .admin-body .settings-help,
  .admin-body .form-helper {
    font-size: 9px !important;
    line-height: 1.3 !important;
  }

  .admin-body .admin-panel,
  .admin-body .stock-table-panel,
  .admin-body .history-orders-board,
  .admin-body .client-ledger-card,
  .admin-body .delivery-board,
  .admin-body .production-card,
  .admin-body .promotions-list-panel,
  .admin-body .hero-banner-list-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
  }

  .admin-body .admin-panel > .section-head,
  .admin-body .admin-panel > .section-head.compact,
  .admin-body .stock-table-panel > .section-head,
  .admin-body .promotions-list-panel > .section-head,
  .admin-body .history-orders-headline,
  .admin-body .client-ledger-title {
    min-width: 0 !important;
    width: 100% !important;
    padding: 9px 10px !important;
  }

  .admin-body .admin-panel h2,
  .admin-body .admin-panel h3,
  .admin-body .history-orders-headline h2,
  .admin-body .client-ledger-title h2,
  .admin-body .stock-table-panel h2,
  .admin-body .promotions-list-panel h2 {
    font-size: 14px !important;
    line-height: 1.05 !important;
  }
}

.admin-body .admin-layout,
.admin-body.admin-sidebar-collapsed .admin-layout,
.admin-body .admin-layout.admin-sidebar-collapsed {
  display: block !important;
  grid-template-columns: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 100dvh !important;
  overflow-x: hidden !important;
  background: var(--theme-surface) !important;
}

.admin-body .admin-navbar {
  position: sticky !important;
  top: 0 !important;
  z-index: 1100 !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 86px !important;
  height: auto !important;
  padding: 12px clamp(14px, 3vw, 34px) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--theme-border) !important;
  border-radius: 0 !important;
  background: var(--brand-primary) !important;
  box-shadow: 0 10px 26px rgba(23, 16, 31, .08) !important;
  overflow: visible !important;
  transform: none !important;
}

.admin-body .admin-navbar-head {
  display: grid !important;
  place-items: center !important;
  width: auto !important;
  min-width: 118px !important;
  max-width: 150px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.admin-body .admin-navbar .brand,
.admin-body.admin-sidebar-collapsed .admin-navbar .brand {
  display: grid !important;
  place-items: center !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.admin-body .admin-navbar .brand-logo,
.admin-body.admin-sidebar-collapsed .admin-navbar .brand-logo {
  display: block !important;
  width: 128px !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 46px !important;
  object-fit: contain !important;
}

.admin-body .admin-navbar .admin-nav,
.admin-body.admin-sidebar-collapsed .admin-navbar .admin-nav {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  padding: 0 0 2px !important;
  margin: 0 !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
  scrollbar-width: thin;
}

.admin-body .admin-navbar .admin-nav > a,
.admin-body .admin-navbar .admin-nav-group > summary,
.admin-body .admin-navbar .admin-nav-submenu a,
.admin-body.admin-sidebar-collapsed .admin-navbar .admin-nav > a,
.admin-body.admin-sidebar-collapsed .admin-navbar .admin-nav-group > summary,
.admin-body.admin-sidebar-collapsed .admin-navbar .admin-nav-submenu a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  min-height: 38px !important;
  padding: 9px 13px !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, .38) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .12) !important;
  color: #fff !important;
  font-family: Poppins, sans-serif !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  text-indent: 0 !important;
  box-shadow: none !important;
}

.admin-body .admin-navbar .admin-nav > a.active,
.admin-body .admin-navbar .admin-nav > a:hover,
.admin-body .admin-navbar .admin-nav-group.active > summary,
.admin-body .admin-navbar .admin-nav-group[open] > summary,
.admin-body .admin-navbar .admin-nav-group:hover > summary {
  border-color: #fff !important;
  background: #fff !important;
  color: var(--theme-primary-text) !important;
}

.admin-body .admin-navbar .admin-nav-icon,
.admin-body.admin-sidebar-collapsed .admin-navbar .admin-nav-icon {
  display: inline-grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  color: currentColor !important;
}

.admin-body .admin-navbar .admin-nav-icon svg {
  display: block !important;
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8 !important;
}

.admin-body .admin-navbar .admin-nav-text,
.admin-body .admin-navbar .admin-nav-group > summary b,
.admin-body.admin-sidebar-collapsed .admin-navbar .admin-nav-text,
.admin-body.admin-sidebar-collapsed .admin-navbar .admin-nav-group > summary b {
  display: inline !important;
  color: inherit !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

.admin-body .admin-navbar .admin-nav-group {
  position: relative !important;
  display: inline-flex !important;
  width: auto !important;
  min-width: max-content !important;
}

.admin-body .admin-navbar .admin-nav-group > summary {
  list-style: none !important;
  cursor: pointer !important;
}

.admin-body .admin-navbar .admin-nav-group > summary::-webkit-details-marker {
  display: none !important;
}

.admin-body .admin-navbar .admin-nav-group:not([open]) .admin-nav-submenu {
  display: none !important;
}

.admin-body .admin-navbar .admin-nav-submenu,
.admin-body .admin-navbar .admin-nav-group[open] .admin-nav-submenu {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 0 !important;
  z-index: 1200 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  width: max-content !important;
  min-width: 210px !important;
  max-width: min(280px, calc(100vw - 24px)) !important;
  padding: 10px !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 34px rgba(23, 16, 31, .16) !important;
}

.admin-body .admin-navbar .admin-nav-submenu a {
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  border-color: var(--theme-border) !important;
  background: var(--theme-surface) !important;
  color: #2b2640 !important;
}

.admin-body .admin-navbar .admin-nav-submenu a.active,
.admin-body .admin-navbar .admin-nav-submenu a:hover {
  background: var(--brand-primary) !important;
  color: var(--theme-on-primary) !important;
}

.admin-body .admin-main,
.admin-body.admin-sidebar-collapsed .admin-main {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: clamp(18px, 3vw, 34px) clamp(12px, 3vw, 42px) 42px !important;
  overflow-x: hidden !important;
  background: var(--theme-surface) !important;
}

@media (max-width: 760px) {
  .admin-body .admin-navbar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    min-height: 96px !important;
    padding: 10px 8px !important;
  }

  .admin-body .admin-navbar-head {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .admin-body .admin-navbar .brand-logo {
    width: 112px !important;
    max-height: 38px !important;
  }

  .admin-body .admin-navbar .admin-nav > a,
  .admin-body .admin-navbar .admin-nav-group > summary,
  .admin-body .admin-navbar .admin-nav-submenu a {
    min-height: 36px !important;
    padding: 8px 11px !important;
    font-size: 11px !important;
  }

  .admin-body .admin-navbar .admin-nav-submenu,
  .admin-body .admin-navbar .admin-nav-group[open] .admin-nav-submenu {
    position: fixed !important;
    top: 92px !important;
    left: 8px !important;
    right: 8px !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .admin-body .admin-main,
  .admin-body.admin-sidebar-collapsed .admin-main {
    padding: 16px 8px 30px !important;
  }
}

/* Admin create/list workspace */
@media (min-width: 761px) {
  .admin-body .admin-top .admin-filter-button,
  .admin-body .admin-top .button.secondary {
    display: none !important;
  }

  .admin-body .product-admin-grid,
  .admin-body .district-admin-grid,
  .admin-body .tiktok-admin-grid,
  .admin-body .settings-admin-grid,
  .admin-body .promotions-admin-grid,
  .admin-body .hero-banner-admin-grid,
  .admin-body .celebration-admin-grid {
    display: grid !important;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) !important;
    gap: 22px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .admin-body .product-admin-grid > .admin-panel,
  .admin-body .district-admin-grid > .admin-panel,
  .admin-body .tiktok-admin-grid > .admin-panel,
  .admin-body .settings-admin-grid > .admin-panel,
  .admin-body .promotions-admin-grid > .admin-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .admin-body .product-admin-grid > form.product-form,
  .admin-body .district-admin-grid > form.product-form,
  .admin-body .tiktok-admin-grid > form.product-form,
  .admin-body .settings-admin-grid > form.product-form,
  .admin-body .promotions-admin-grid > form.product-form,
  .admin-body .admin-form-modal {
    position: sticky !important;
    top: 108px !important;
    display: block !important;
    width: 100% !important;
    max-width: 360px !important;
    min-width: 0 !important;
    height: auto !important;
    max-height: calc(100dvh - 130px) !important;
    padding: 0 !important;
    overflow: visible !important;
    z-index: 1 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-body .admin-form-modal .admin-form-backdrop,
  .admin-body .admin-form-modal .admin-modal-close,
  .admin-body .admin-form-modal .admin-modal-form > header {
    display: none !important;
  }

  .admin-body .admin-form-modal .admin-modal-form,
  .admin-body .product-admin-grid > form.product-form,
  .admin-body .district-admin-grid > form.product-form,
  .admin-body .tiktok-admin-grid > form.product-form,
  .admin-body .settings-admin-grid > form.product-form,
  .admin-body .promotions-admin-grid > form.product-form {
    position: relative !important;
    display: grid !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 360px !important;
    max-height: calc(100dvh - 130px) !important;
    padding: 22px !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 12px !important;
    background: #fff !important;
    box-shadow: 0 18px 38px rgba(23, 16, 31, .08) !important;
    overflow-y: auto !important;
  }

  .admin-body .admin-form-modal .admin-modal-form > label,
  .admin-body .admin-form-modal .admin-modal-form > .admin-form-row,
  .admin-body .admin-form-modal .admin-modal-form > .product-media-manager,
  .admin-body .admin-form-modal .admin-modal-form > .button {
    margin-inline: 0 !important;
  }

  .admin-body .admin-form-modal .admin-modal-form > .button {
    width: 100% !important;
    margin: 8px 0 0 !important;
  }

  .admin-body .admin-panel:not(.product-form),
  .admin-body .hero-banner-list-panel,
  .admin-body .district-list-panel,
  .admin-body .tiktok-list-panel,
  .admin-body .stock-table-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    border-radius: 12px !important;
    background: #fff !important;
  }
}

@media (max-width: 760px) {
  .admin-body .admin-top .button.secondary,
  .admin-body .admin-top .admin-filter-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: start !important;
    gap: 8px !important;
    width: auto !important;
    min-height: 42px !important;
    padding: 10px 16px !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #17101f !important;
    box-shadow: 0 12px 26px rgba(23, 16, 31, .12) !important;
  }

  .admin-body .admin-top .button.secondary::after,
  .admin-body .admin-top .admin-filter-button b {
    content: "+" !important;
    display: inline-grid !important;
    place-items: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: var(--brand-primary) !important;
    color: var(--theme-on-primary) !important;
    font-weight: 900 !important;
  }

  .admin-body .product-admin-grid,
  .admin-body .district-admin-grid,
  .admin-body .tiktok-admin-grid,
  .admin-body .settings-admin-grid,
  .admin-body .promotions-admin-grid,
  .admin-body .hero-banner-admin-grid,
  .admin-body .celebration-admin-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-body .product-admin-grid > form.product-form,
  .admin-body .district-admin-grid > form.product-form,
  .admin-body .tiktok-admin-grid > form.product-form,
  .admin-body .settings-admin-grid > form.product-form,
  .admin-body .promotions-admin-grid > form.product-form {
    display: none !important;
  }

  .admin-body .admin-panel:not(.product-form),
  .admin-body .client-ledger-card,
  .admin-body .history-orders-board,
  .admin-body .production-card,
  .admin-body .stock-summary-card {
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  .admin-body .district-table,
  .admin-body .hero-banner-list,
  .admin-body .celebration-admin-list,
  .admin-body .tiktok-admin-list,
  .admin-body .client-ledger-table,
  .admin-body .history-orders-table {
    display: grid !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 0 12px !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .admin-body .district-table-head {
    display: none !important;
  }

  .admin-body .district-table-row,
  .admin-body .hero-banner-row,
  .admin-body .celebration-admin-row,
  .admin-body .tiktok-admin-card,
  .admin-body .client-ledger-row,
  .admin-body .history-orders-row,
  .admin-body .production-order-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 12px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-body .district-table-row:last-child,
  .admin-body .hero-banner-row:last-child,
  .admin-body .celebration-admin-row:last-child,
  .admin-body .tiktok-admin-card:last-child,
  .admin-body .client-ledger-row:last-child,
  .admin-body .history-orders-row:last-child,
  .admin-body .production-order-row:last-child {
    border-bottom: 0 !important;
  }

  .admin-body .district-table-row > div,
  .admin-body .hero-banner-row > div,
  .admin-body .celebration-admin-row > div,
  .admin-body .tiktok-admin-info,
  .admin-body .client-ledger-row > div,
  .admin-body .history-orders-row > div {
    display: grid !important;
    grid-template-columns: 92px minmax(0, 1fr) !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 6px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .admin-body .district-table-row > div::before,
  .admin-body .client-ledger-row > div::before,
  .admin-body .history-orders-row > div::before {
    content: attr(data-mobile-label) !important;
    color: var(--theme-muted) !important;
    font-family: Poppins, sans-serif !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
  }

  .admin-body .hero-banner-row > img,
  .admin-body .celebration-admin-thumb,
  .admin-body .tiktok-admin-video {
    width: 76px !important;
    max-width: 76px !important;
    min-width: 76px !important;
    height: 76px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  .admin-body .hero-banner-row > img {
    object-fit: cover !important;
  }

  .admin-body .tiktok-admin-video iframe,
  .admin-body .tiktok-admin-video blockquote {
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    height: 76px !important;
    min-height: 76px !important;
  }

  .admin-body .district-actions,
  .admin-body .table-actions {
    display: flex !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    width: 100% !important;
  }
}

.admin-body .admin-navbar .admin-nav-submenu,
.admin-body .admin-navbar .admin-nav-group[open] .admin-nav-submenu,
.admin-body.admin-sidebar-collapsed .admin-navbar .admin-nav-submenu,
.admin-body.admin-sidebar-collapsed .admin-navbar .admin-nav-group[open] .admin-nav-submenu {
  position: fixed !important;
  top: var(--admin-dropdown-top, 86px) !important;
  left: var(--admin-dropdown-left, 12px) !important;
  right: auto !important;
  z-index: 3000 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  width: max-content !important;
  min-width: 210px !important;
  max-width: min(280px, calc(100vw - 16px)) !important;
  padding: 10px !important;
  border: 1px solid var(--theme-border) !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 34px rgba(23, 16, 31, .18) !important;
}

.admin-body .admin-navbar .admin-nav-group:not([open]) .admin-nav-submenu,
.admin-body.admin-sidebar-collapsed .admin-navbar .admin-nav-group:not([open]) .admin-nav-submenu {
  display: none !important;
}

@media (max-width: 760px) {
  .admin-body .admin-navbar .admin-nav-submenu,
  .admin-body .admin-navbar .admin-nav-group[open] .admin-nav-submenu {
    top: var(--admin-dropdown-top, 92px) !important;
    left: var(--admin-dropdown-left, 8px) !important;
    right: auto !important;
    width: max-content !important;
    min-width: 210px !important;
    max-width: calc(100vw - 16px) !important;
  }
}

/* Admin mobile records as plain lists */
@media (max-width: 760px) {
  .admin-body .client-ledger-list,
  .admin-body .history-orders-board,
  .admin-body .stock-table-panel,
  .admin-body .district-list-panel,
  .admin-body .hero-banner-list-panel,
  .admin-body .tiktok-list-panel,
  .admin-body .admin-panel:not(.product-form) {
    border-radius: 0 !important;
    border-inline: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .admin-body .client-ledger-card {
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .admin-body .client-ledger-title,
  .admin-body .history-orders-headline,
  .admin-body .section-head.compact {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    background: #fff !important;
  }

  .admin-body .client-ledger-title h2,
  .admin-body .history-orders-headline h2,
  .admin-body .section-head.compact h2 {
    margin: 0 !important;
    font-family: Poppins, sans-serif !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    color: #17101f !important;
    text-transform: uppercase !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body .client-ledger-title p {
    display: grid !important;
    grid-column: 1 / -1 !important;
    gap: 3px !important;
    margin: 0 !important;
    color: var(--theme-muted) !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .admin-body .client-ledger-title > strong,
  .admin-body .history-orders-headline > strong,
  .admin-body .section-head.compact > span {
    justify-self: end !important;
    padding: 5px 9px !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 999px !important;
    background: var(--theme-surface) !important;
    color: var(--theme-primary-text) !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    white-space: nowrap !important;
  }

  .admin-body .client-ledger-table,
  .admin-body .history-orders-table,
  .admin-body .stock-table-panel table,
  .admin-body .district-table,
  .admin-body .hero-banner-list,
  .admin-body .celebration-admin-list,
  .admin-body .tiktok-admin-list {
    display: grid !important;
    gap: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .admin-body .client-ledger-row,
  .admin-body .history-orders-row,
  .admin-body .admin-panel tbody tr,
  .admin-body .district-table-row,
  .admin-body .hero-banner-row,
  .admin-body .celebration-admin-row,
  .admin-body .tiktok-admin-card,
  .admin-body .production-order-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .admin-body .client-ledger-row > div,
  .admin-body .history-orders-row > div,
  .admin-body .admin-panel tbody td,
  .admin-body .district-table-row > div,
  .admin-body .hero-banner-row > div,
  .admin-body .celebration-admin-row > div,
  .admin-body .tiktok-admin-info {
    display: grid !important;
    grid-template-columns: 96px minmax(0, 1fr) !important;
    align-items: start !important;
    gap: 10px !important;
    padding: 5px 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .admin-body .client-ledger-row > div::before,
  .admin-body .history-orders-row > div::before,
  .admin-body .admin-panel tbody td::before,
  .admin-body .district-table-row > div::before {
    color: var(--theme-muted) !important;
    font-family: Poppins, sans-serif !important;
    font-size: 9.5px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
  }

  .admin-body .client-ledger-row [data-mobile-label="Productos"],
  .admin-body .history-orders-row [data-mobile-label="Producto"] {
    align-items: center !important;
  }

  .admin-body .client-ledger-row [data-mobile-label="Precio"] strong,
  .admin-body .history-orders-row [data-mobile-label="Precio"] strong,
  .admin-body .admin-panel tbody td b,
  .admin-body .admin-panel tbody td strong {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .admin-body .client-ledger-detail {
    width: 100% !important;
    min-height: 36px !important;
    border-radius: 999px !important;
  }

  .admin-body .client-product-thumb {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
  }
}

/* Admin mobile: real table/list layout, no stacked cards */
@media (max-width: 760px) {
  .admin-body {
    font-size: 12px !important;
  }

  .admin-body .admin-main {
    padding-inline: 8px !important;
  }

  .admin-body .admin-top h1,
  .admin-body .orders-header h1 {
    font-size: 24px !important;
    line-height: 1.08 !important;
  }

  .admin-body .admin-top p,
  .admin-body .orders-header p,
  .admin-body .admin-panel p,
  .admin-body .settings-help {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .admin-body .orders-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 4px !important;
    border-radius: 10px !important;
  }

  .admin-body .orders-tabs a {
    min-height: 36px !important;
    padding: 8px 6px !important;
    border-radius: 8px !important;
    font-size: 10.5px !important;
    text-align: center !important;
    white-space: normal !important;
  }

  .admin-body .date-switcher,
  .admin-body .orders-tools,
  .admin-body .orders-filter {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 3px !important;
  }

  .admin-body .date-switcher > *,
  .admin-body .orders-tools > *,
  .admin-body .orders-filter > * {
    flex: 0 0 auto !important;
    min-height: 36px !important;
    font-size: 10.5px !important;
  }

  .admin-body .history-orders-board,
  .admin-body .client-ledger-card,
  .admin-body .stock-table-panel,
  .admin-body .admin-panel:not(.product-form),
  .admin-body .production-card {
    border: 1px solid var(--theme-border) !important;
    border-radius: 10px !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .admin-body .history-orders-headline,
  .admin-body .client-ledger-title,
  .admin-body .section-head.compact {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-width: 720px !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid var(--theme-border) !important;
  }

  .admin-body .history-orders-headline h2,
  .admin-body .client-ledger-title h2,
  .admin-body .section-head.compact h2 {
    font-family: Cinzel, Georgia, serif !important;
    font-size: 20px !important;
    line-height: 1.1 !important;
    text-transform: uppercase !important;
  }

  .admin-body .history-orders-head,
  .admin-body .history-orders-row {
    display: grid !important;
    grid-template-columns: 90px 145px 135px minmax(240px, 1fr) 110px 180px !important;
    gap: 12px !important;
    align-items: center !important;
    min-width: 900px !important;
    padding: 12px 14px !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .admin-body .history-orders-head {
    border-bottom: 1px solid var(--theme-border) !important;
    background: var(--theme-surface) !important;
    color: var(--theme-muted) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  .admin-body .history-orders-row {
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    font-size: 12px !important;
  }

  .admin-body .history-orders-row > div,
  .admin-body .client-ledger-row > div,
  .admin-body .delivery-board-row > div,
  .admin-body .production-order-row > * {
    display: block !important;
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  .admin-body .history-orders-row > div::before,
  .admin-body .client-ledger-row > div::before,
  .admin-body .delivery-board-row > div::before,
  .admin-body .production-order-row > *::before {
    content: none !important;
  }

  .admin-body .client-ledger-title {
    min-width: 860px !important;
    align-items: flex-end !important;
  }

  .admin-body .client-ledger-title p {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    grid-column: auto !important;
    font-size: 11px !important;
  }

  .admin-body .client-ledger-head,
  .admin-body .client-ledger-row {
    display: grid !important;
    grid-template-columns: 70px 165px 135px minmax(190px, 1fr) 105px 135px !important;
    gap: 12px !important;
    align-items: center !important;
    min-width: 860px !important;
    padding: 12px 14px !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .admin-body .client-ledger-head {
    border-bottom: 1px solid var(--theme-border) !important;
    background: var(--theme-surface) !important;
    color: var(--theme-muted) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  .admin-body .client-ledger-row {
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    font-size: 12px !important;
  }

  .admin-body .client-ledger-table,
  .admin-body .history-orders-table {
    display: block !important;
    width: max-content !important;
    min-width: 100% !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .admin-body .client-product-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    overflow: visible !important;
  }

  .admin-body .client-product-thumb,
  .admin-body .client-product-thumb img {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    flex-basis: 38px !important;
  }

  .admin-body .admin-panel table {
    display: table !important;
    width: max-content !important;
    min-width: 780px !important;
    border-collapse: collapse !important;
  }

  .admin-body .admin-panel thead {
    display: table-header-group !important;
  }

  .admin-body .admin-panel tbody {
    display: table-row-group !important;
  }

  .admin-body .admin-panel tr {
    display: table-row !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .admin-body .admin-panel th,
  .admin-body .admin-panel td {
    display: table-cell !important;
    width: auto !important;
    padding: 10px 12px !important;
    border-bottom: 1px solid var(--theme-border) !important;
    font-size: 11.5px !important;
    vertical-align: middle !important;
  }

  .admin-body .admin-panel td::before {
    content: none !important;
  }

  .admin-body .stock-inline-form {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: max-content !important;
  }

  .admin-body .stock-inline-form input {
    width: 62px !important;
    height: 34px !important;
    font-size: 11px !important;
  }

  .admin-body .stock-inline-form button {
    width: auto !important;
    height: 34px !important;
    padding: 0 12px !important;
    font-size: 10.5px !important;
  }

  .admin-body .district-table,
  .admin-body .hero-banner-list,
  .admin-body .celebration-admin-list,
  .admin-body .tiktok-admin-list {
    display: grid !important;
    gap: 0 !important;
    width: max-content !important;
    min-width: 780px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .admin-body .district-table-head {
    display: grid !important;
    grid-template-columns: 180px 150px 110px 105px 120px !important;
    gap: 12px !important;
    padding: 11px 14px !important;
    border-bottom: 1px solid var(--theme-border) !important;
    background: var(--theme-surface) !important;
    color: var(--theme-muted) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  .admin-body .district-table-row,
  .admin-body .hero-banner-row,
  .admin-body .celebration-admin-row,
  .admin-body .tiktok-admin-card {
    display: grid !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 780px !important;
    padding: 11px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .admin-body .district-table-row {
    grid-template-columns: 180px 150px 110px 105px 120px !important;
  }

  .admin-body .hero-banner-row {
    grid-template-columns: 150px minmax(260px, 1fr) 95px 130px !important;
  }

  .admin-body .celebration-admin-row {
    grid-template-columns: 58px minmax(260px, 1fr) 95px 130px !important;
  }

  .admin-body .tiktok-admin-card {
    grid-template-columns: 96px minmax(320px, 1fr) !important;
  }

  .admin-body .district-table-row > div,
  .admin-body .hero-banner-row > div,
  .admin-body .celebration-admin-row > div,
  .admin-body .tiktok-admin-info {
    display: block !important;
    padding: 0 !important;
  }

  .admin-body .district-table-row > div::before,
  .admin-body .hero-banner-row > div::before,
  .admin-body .celebration-admin-row > div::before {
    content: none !important;
  }

  .admin-body .hero-banner-row > img,
  .admin-body .celebration-admin-thumb,
  .admin-body .tiktok-admin-video {
    width: 70px !important;
    height: 52px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    border-radius: 8px !important;
  }

  .admin-body .tiktok-admin-video iframe,
  .admin-body .tiktok-admin-video blockquote {
    width: 70px !important;
    min-width: 70px !important;
    max-width: 70px !important;
    height: 52px !important;
    min-height: 52px !important;
  }

  .admin-body .district-actions,
  .admin-body .table-actions {
    justify-content: flex-start !important;
  }

  .admin-body .action-icon {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }
}

/* Admin mobile final pass: keep every registry as a compact list, never stacked cards */
@media (max-width: 760px) {
  .admin-body,
  .admin-body input,
  .admin-body select,
  .admin-body textarea,
  .admin-body button {
    font-size: 11.5px !important;
  }

  .admin-body strong,
  .admin-body b {
    font-size: inherit !important;
  }

  .admin-body .admin-panel,
  .admin-body .promotions-list-panel,
  .admin-body .stock-table-panel,
  .admin-body .client-ledger-card,
  .admin-body .history-orders-board,
  .admin-body .delivery-board,
  .admin-body .production-card {
    max-width: 100% !important;
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .admin-body .admin-panel > .section-head,
  .admin-body .admin-panel > .section-head.compact,
  .admin-body .stock-table-panel > .section-head,
  .admin-body .promotions-list-panel > .section-head,
  .admin-body .promotions-list-panel > .section-head.compact {
    min-width: 760px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }

  .admin-body .admin-panel h2,
  .admin-body .admin-panel h3,
  .admin-body .stock-table-panel h2,
  .admin-body .promotions-list-panel h2 {
    font-size: 17px !important;
    line-height: 1.1 !important;
  }

  .admin-body .table-actions,
  .admin-body .district-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 6px !important;
    white-space: nowrap !important;
  }

  .admin-body .marquee-admin-list,
  .admin-body .google-review-admin-list,
  .admin-body .payment-method-list,
  .admin-body .category-tree-preview {
    display: grid !important;
    gap: 0 !important;
    width: max-content !important;
    min-width: 760px !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .admin-body .marquee-admin-row,
  .admin-body .google-review-admin-row,
  .admin-body .payment-method-row,
  .admin-body .category-tree-preview article {
    display: grid !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 760px !important;
    padding: 10px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .admin-body .marquee-admin-row {
    grid-template-columns: 44px minmax(240px, 1fr) 90px 128px !important;
  }

  .admin-body .google-review-admin-row {
    grid-template-columns: 42px minmax(410px, 1fr) 90px 128px !important;
  }

  .admin-body .payment-method-row {
    grid-template-columns: 58px minmax(330px, 1fr) 90px 128px !important;
  }

  .admin-body .category-tree-preview article {
    grid-template-columns: minmax(280px, 1fr) 120px 128px !important;
  }

  .admin-body .marquee-admin-row > *,
  .admin-body .google-review-admin-row > *,
  .admin-body .payment-method-row > *,
  .admin-body .category-tree-preview article > * {
    grid-column: auto !important;
    min-width: 0 !important;
  }

  .admin-body .google-review-admin-row p,
  .admin-body .payment-method-row p {
    margin: 3px 0 0 !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }

  .admin-body .google-review-admin-avatar,
  .admin-body .payment-method-row img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
  }

  .admin-body .delivery-board-head,
  .admin-body .delivery-board-row {
    display: grid !important;
    grid-template-columns: 90px 135px 110px 160px 140px minmax(240px, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    min-width: 920px !important;
    padding: 11px 14px !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .admin-body .delivery-board-head {
    border-bottom: 1px solid var(--theme-border) !important;
    background: var(--theme-surface) !important;
    color: var(--theme-muted) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  .admin-body .delivery-board-row {
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    font-size: 11.5px !important;
  }

  .admin-body .production-group {
    min-width: 940px !important;
  }

  .admin-body .production-order-row {
    display: grid !important;
    grid-template-columns: 92px 150px minmax(220px, 1fr) minmax(260px, 1.2fr) 140px !important;
    gap: 12px !important;
    align-items: center !important;
    min-width: 940px !important;
    padding: 11px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .admin-body .production-card-message,
  .admin-body .production-card-message.empty {
    min-height: 58px !important;
    padding: 9px 10px !important;
    font-size: 10.5px !important;
  }

  .admin-body .production-order-meta,
  .admin-body .production-send-form {
    display: grid !important;
    justify-items: start !important;
    gap: 5px !important;
  }
}

/* Admin mobile rescue v2: final override that fits lists into the phone */
@media (max-width: 760px) {
  html:has(body.admin-body),
  body.admin-body,
  .admin-body .admin-layout,
  .admin-body .admin-main {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .admin-body,
  .admin-body * {
    letter-spacing: 0 !important;
  }

  .admin-body,
  .admin-body input,
  .admin-body select,
  .admin-body textarea,
  .admin-body button,
  .admin-body .button {
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  .admin-body .admin-main {
    padding: 10px 5px 24px !important;
  }

  .admin-body .admin-top h1,
  .admin-body .orders-header h1 {
    font-size: 18px !important;
    line-height: 1.05 !important;
  }

  .admin-body .admin-panel,
  .admin-body .stock-table-panel,
  .admin-body .history-orders-board,
  .admin-body .client-ledger-card,
  .admin-body .delivery-board,
  .admin-body .production-card,
  .admin-body .promotions-list-panel,
  .admin-body .hero-banner-list-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    border-radius: 8px !important;
  }

  .admin-body .admin-panel > .section-head,
  .admin-body .admin-panel > .section-head.compact,
  .admin-body .stock-table-panel > .section-head,
  .admin-body .promotions-list-panel > .section-head,
  .admin-body .history-orders-headline,
  .admin-body .client-ledger-title {
    min-width: 0 !important;
    width: 100% !important;
    padding: 8px 9px !important;
  }

  .admin-body .admin-panel h2,
  .admin-body .admin-panel h3,
  .admin-body .history-orders-headline h2,
  .admin-body .client-ledger-title h2,
  .admin-body .stock-table-panel h2,
  .admin-body .promotions-list-panel h2 {
    font-size: 13px !important;
    line-height: 1.05 !important;
  }

  .admin-body .history-orders-table,
  .admin-body .client-ledger-table,
  .admin-body .district-table,
  .admin-body .hero-banner-list,
  .admin-body .marquee-admin-list,
  .admin-body .celebration-admin-list,
  .admin-body .google-review-admin-list,
  .admin-body .payment-method-list,
  .admin-body .category-tree-preview,
  .admin-body .tiktok-admin-list {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 0 !important;
    overflow: hidden !important;
  }

  .admin-body .history-orders-head,
  .admin-body .history-orders-row {
    display: grid !important;
    grid-template-columns: 34px 54px 58px minmax(0, 1fr) 54px 64px !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 7px !important;
  }

  .admin-body .client-ledger-head,
  .admin-body .client-ledger-row {
    display: grid !important;
    grid-template-columns: 30px 70px 52px minmax(0, 1fr) 50px 64px !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 7px !important;
  }

  .admin-body .delivery-board-head,
  .admin-body .delivery-board-row {
    display: grid !important;
    grid-template-columns: 38px 58px 54px 72px 68px minmax(0, 1fr) !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 7px !important;
  }

  .admin-body .production-group,
  .admin-body .production-order-row {
    width: 100% !important;
    min-width: 0 !important;
  }

  .admin-body .production-order-row {
    display: grid !important;
    grid-template-columns: 40px 64px minmax(0, 1fr) minmax(70px, .8fr) 54px !important;
    gap: 5px !important;
    padding: 8px 7px !important;
  }

  .admin-body .district-table-head,
  .admin-body .district-table-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 54px 54px 45px 58px !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 8px 7px !important;
  }

  .admin-body .hero-banner-row,
  .admin-body .celebration-admin-row,
  .admin-body .marquee-admin-row,
  .admin-body .google-review-admin-row,
  .admin-body .payment-method-row,
  .admin-body .category-tree-preview article,
  .admin-body .tiktok-admin-card {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    gap: 6px !important;
    padding: 8px 7px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .admin-body .hero-banner-row {
    grid-template-columns: 54px minmax(0, 1fr) 48px 70px !important;
  }

  .admin-body .celebration-admin-row,
  .admin-body .marquee-admin-row {
    grid-template-columns: 30px minmax(0, 1fr) 48px 70px !important;
  }

  .admin-body .google-review-admin-row {
    grid-template-columns: 30px minmax(0, 1fr) 48px 70px !important;
  }

  .admin-body .payment-method-row {
    grid-template-columns: 34px minmax(0, 1fr) 48px 70px !important;
  }

  .admin-body .category-tree-preview article {
    grid-template-columns: minmax(0, 1fr) 64px 70px !important;
  }

  .admin-body .tiktok-admin-card {
    grid-template-columns: 54px minmax(0, 1fr) !important;
  }

  .admin-body .admin-panel table,
  .admin-body .stock-table-panel table,
  .admin-body .promotions-table {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
  }

  .admin-body .admin-panel thead,
  .admin-body .admin-panel tbody,
  .admin-body .admin-panel tr {
    width: 100% !important;
  }

  .admin-body .admin-panel th,
  .admin-body .admin-panel td {
    padding: 7px 4px !important;
    font-size: 8.2px !important;
    line-height: 1.15 !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .admin-body .history-orders-row > div,
  .admin-body .client-ledger-row > div,
  .admin-body .delivery-board-row > div,
  .admin-body .production-order-row > *,
  .admin-body .district-table-row > div,
  .admin-body .hero-banner-row > div,
  .admin-body .celebration-admin-row > div,
  .admin-body .marquee-admin-row > *,
  .admin-body .google-review-admin-row > *,
  .admin-body .payment-method-row > *,
  .admin-body .category-tree-preview article > *,
  .admin-body .tiktok-admin-info {
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .admin-body .history-orders-row > div::before,
  .admin-body .client-ledger-row > div::before,
  .admin-body .delivery-board-row > div::before,
  .admin-body .district-table-row > div::before,
  .admin-body .hero-banner-row > div::before,
  .admin-body .celebration-admin-row > div::before {
    content: none !important;
  }

  .admin-body .client-product-thumb,
  .admin-body .client-product-thumb img,
  .admin-body .production-thumb,
  .admin-body .production-thumb img,
  .admin-body .hero-banner-row > img,
  .admin-body .celebration-admin-thumb,
  .admin-body .celebration-admin-thumb img,
  .admin-body .google-review-admin-avatar,
  .admin-body .payment-method-row img,
  .admin-body .tiktok-admin-video {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    border-radius: 6px !important;
  }

  .admin-body .tiktok-admin-video iframe,
  .admin-body .tiktok-admin-video blockquote {
    width: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
  }

  .admin-body .action-icon {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
  }

  .admin-body .table-actions,
  .admin-body .district-actions {
    gap: 3px !important;
    justify-content: flex-start !important;
  }

  .admin-body .status,
  .admin-body .district-status,
  .admin-body .route-status {
    max-width: 100% !important;
    padding: 4px 6px !important;
    font-size: 8px !important;
    white-space: nowrap !important;
  }

  .admin-body .stock-inline-form {
    display: grid !important;
    grid-template-columns: 34px minmax(36px, 1fr) !important;
    gap: 4px !important;
    width: 100% !important;
  }

  .admin-body .stock-inline-form input,
  .admin-body .stock-inline-form button {
    width: 100% !important;
    height: 26px !important;
    min-height: 26px !important;
    padding: 4px !important;
    font-size: 8px !important;
  }
}

/* Admin mobile rescue v3: compact readable list data, no fake labels */
@media (max-width: 760px) {
  .admin-body,
  .admin-body input,
  .admin-body select,
  .admin-body textarea,
  .admin-body button,
  .admin-body .button {
    font-size: 8.4px !important;
    line-height: 1.18 !important;
  }

  .admin-body .admin-main {
    padding-inline: 4px !important;
  }

  .admin-body .admin-panel table,
  .admin-body .stock-table-panel table,
  .admin-body .promotions-table,
  .admin-body .category-admin-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }

  .admin-body .admin-panel thead,
  .admin-body .stock-table-panel thead,
  .admin-body .promotions-table thead,
  .admin-body .category-admin-table thead {
    display: table-header-group !important;
  }

  .admin-body .admin-panel tbody,
  .admin-body .stock-table-panel tbody,
  .admin-body .promotions-table tbody,
  .admin-body .category-admin-table tbody {
    display: table-row-group !important;
  }

  .admin-body .admin-panel tr,
  .admin-body .stock-table-panel tr,
  .admin-body .promotions-table tr,
  .admin-body .category-admin-table tr {
    display: table-row !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .admin-body .admin-panel th,
  .admin-body .admin-panel td,
  .admin-body .stock-table-panel th,
  .admin-body .stock-table-panel td,
  .admin-body .promotions-table th,
  .admin-body .promotions-table td,
  .admin-body .category-admin-table th,
  .admin-body .category-admin-table td {
    display: table-cell !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    padding: 6px 3px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    background: transparent !important;
    color: #201326 !important;
    font-size: 7.4px !important;
    line-height: 1.14 !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .admin-body .admin-panel th,
  .admin-body .stock-table-panel th,
  .admin-body .promotions-table th,
  .admin-body .category-admin-table th {
    color: var(--theme-muted) !important;
    font-size: 6.8px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  .admin-body table td::before,
  .admin-body table th::before,
  .admin-body .admin-panel td::before,
  .admin-body .admin-panel tbody td::before,
  .admin-body .stock-table-panel td::before,
  .admin-body .promotions-table td::before,
  .admin-body .category-admin-table td::before {
    content: none !important;
    display: none !important;
  }

  .admin-body .history-orders-head,
  .admin-body .history-orders-row {
    grid-template-columns: 28px 40px 48px minmax(70px, 1fr) 48px 70px !important;
    gap: 3px !important;
    padding: 7px 5px !important;
  }

  .admin-body .client-ledger-head,
  .admin-body .client-ledger-row {
    grid-template-columns: 26px 52px 42px minmax(58px, 1fr) 48px 62px !important;
    gap: 3px !important;
    padding: 7px 5px !important;
  }

  .admin-body .delivery-board-head,
  .admin-body .delivery-board-row {
    grid-template-columns: 32px 48px 46px 58px 62px minmax(58px, 1fr) !important;
    gap: 3px !important;
    padding: 7px 5px !important;
  }

  .admin-body .production-order-row {
    grid-template-columns: 32px 50px minmax(64px, 1fr) minmax(68px, 1fr) 48px !important;
    gap: 3px !important;
    padding: 7px 5px !important;
  }

  .admin-body .district-table-head,
  .admin-body .district-table-row {
    grid-template-columns: minmax(62px, 1fr) 44px 42px 42px 78px !important;
    gap: 3px !important;
    padding: 7px 5px !important;
  }

  .admin-body .hero-banner-row {
    grid-template-columns: 42px minmax(80px, 1fr) 42px 82px !important;
  }

  .admin-body .celebration-admin-row,
  .admin-body .marquee-admin-row,
  .admin-body .google-review-admin-row,
  .admin-body .payment-method-row {
    grid-template-columns: 28px minmax(82px, 1fr) 42px 82px !important;
  }

  .admin-body .tiktok-admin-card {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  .admin-body .tiktok-admin-info {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 3px 6px !important;
  }

  .admin-body .tiktok-admin-info .table-actions {
    grid-row: 1 / span 4 !important;
    grid-column: 2 !important;
  }

  .admin-body .category-tree-preview article {
    grid-template-columns: 76px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .admin-body .category-tree-preview article > strong {
    font-size: 8.2px !important;
    white-space: normal !important;
  }

  .admin-body .category-tree-preview article > div {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px !important;
    justify-content: flex-start !important;
  }

  .admin-body .category-tree-preview span,
  .admin-body .category-tree-preview small {
    max-width: 76px !important;
    padding: 4px 6px !important;
    font-size: 7.4px !important;
    line-height: 1.05 !important;
    white-space: normal !important;
  }

  .admin-body .history-orders-row > div,
  .admin-body .client-ledger-row > div,
  .admin-body .delivery-board-row > div,
  .admin-body .production-order-row > *,
  .admin-body .district-table-row > div,
  .admin-body .hero-banner-row > div,
  .admin-body .celebration-admin-row > div,
  .admin-body .marquee-admin-row > *,
  .admin-body .google-review-admin-row > *,
  .admin-body .payment-method-row > *,
  .admin-body .tiktok-admin-info > * {
    font-size: 8px !important;
    line-height: 1.16 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  .admin-body .history-orders-row [data-mobile-label="Precio"] strong,
  .admin-body .client-ledger-row [data-mobile-label="Precio"] strong,
  .admin-body .production-order-id strong,
  .admin-body .stock-inline-form input {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  .admin-body .client-product-thumbs,
  .admin-body .production-order-products {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
  }

  .admin-body .client-product-thumb,
  .admin-body .client-product-thumb img,
  .admin-body .production-thumb,
  .admin-body .production-thumb img,
  .admin-body .thumb,
  .admin-body .promo-row-main .thumb.wide,
  .admin-body .category-row-main img,
  .admin-body .category-row-main span,
  .admin-body .hero-banner-row > img,
  .admin-body .celebration-admin-thumb,
  .admin-body .celebration-admin-thumb img,
  .admin-body .google-review-admin-avatar,
  .admin-body .payment-method-row img,
  .admin-body .tiktok-admin-video {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    max-width: 24px !important;
    border-radius: 5px !important;
  }

  .admin-body .action-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
  }

  .admin-body .table-actions,
  .admin-body .district-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    overflow: visible !important;
  }

  .admin-body .status,
  .admin-body .district-status,
  .admin-body .stock-badge,
  .admin-body .route-status {
    display: inline-flex !important;
    max-width: 100% !important;
    padding: 3px 4px !important;
    font-size: 7px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .admin-body .stock-inline-form {
    grid-template-columns: 26px minmax(30px, 1fr) !important;
  }

  .admin-body .stock-inline-form input,
  .admin-body .stock-inline-form button {
    height: 22px !important;
    min-height: 22px !important;
    padding: 2px !important;
    font-size: 7px !important;
  }

  .admin-body .promo-row-main,
  .admin-body .category-row-main {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    min-width: 0 !important;
  }

  .admin-body .promo-row-main strong,
  .admin-body .category-row-main strong {
    font-size: 7.5px !important;
    line-height: 1.1 !important;
  }

  .admin-body .promo-row-main small,
  .admin-body .promo-row-main em,
  .admin-body .google-review-admin-row small,
  .admin-body .google-review-admin-row p,
  .admin-body .payment-method-row p,
  .admin-body .hero-banner-row small,
  .admin-body .hero-banner-row span {
    font-size: 7px !important;
    line-height: 1.15 !important;
  }
}

/* Admin mobile rescue v4: strongest table reset */
@media (max-width: 760px) {
  body.admin-body main .admin-panel table,
  body.admin-body main .stock-table-panel table,
  body.admin-body main table.promotions-table,
  body.admin-body main table.category-admin-table {
    display: table !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    table-layout: fixed !important;
  }

  body.admin-body main .admin-panel table thead,
  body.admin-body main .stock-table-panel table thead,
  body.admin-body main table.promotions-table thead,
  body.admin-body main table.category-admin-table thead {
    display: table-header-group !important;
  }

  body.admin-body main .admin-panel table tbody,
  body.admin-body main .stock-table-panel table tbody,
  body.admin-body main table.promotions-table tbody,
  body.admin-body main table.category-admin-table tbody {
    display: table-row-group !important;
  }

  body.admin-body main .admin-panel table tr,
  body.admin-body main .stock-table-panel table tr,
  body.admin-body main table.promotions-table tr,
  body.admin-body main table.category-admin-table tr {
    display: table-row !important;
  }

  body.admin-body main .admin-panel table th,
  body.admin-body main .admin-panel table td,
  body.admin-body main .stock-table-panel table th,
  body.admin-body main .stock-table-panel table td,
  body.admin-body main table.promotions-table th,
  body.admin-body main table.promotions-table td,
  body.admin-body main table.category-admin-table th,
  body.admin-body main table.category-admin-table td,
  body.admin-body main .admin-panel table td[data-label] {
    display: table-cell !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    padding: 5px 3px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    background: transparent !important;
    font-size: 7px !important;
    line-height: 1.12 !important;
    vertical-align: middle !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.admin-body main .admin-panel table th,
  body.admin-body main .stock-table-panel table th,
  body.admin-body main table.promotions-table th,
  body.admin-body main table.category-admin-table th {
    color: var(--theme-muted) !important;
    font-size: 6.4px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
  }

  body.admin-body main table td::before,
  body.admin-body main table td[data-label]::before,
  body.admin-body main .admin-panel table td::before,
  body.admin-body main .admin-panel table td[data-label]::before {
    content: none !important;
    display: none !important;
  }

  body.admin-body main .admin-panel table td:first-child,
  body.admin-body main .stock-table-panel table td:first-child,
  body.admin-body main table.promotions-table td:first-child,
  body.admin-body main table.category-admin-table td:first-child {
    font-weight: 800 !important;
  }

  body.admin-body main .admin-panel table .thumb,
  body.admin-body main .admin-panel table img.thumb,
  body.admin-body main table .promo-row-main .thumb.wide {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    max-width: 20px !important;
    margin-right: 2px !important;
    vertical-align: middle !important;
  }

  body.admin-body main .admin-panel table .table-actions {
    display: flex !important;
    width: 100% !important;
    gap: 2px !important;
    justify-content: flex-start !important;
  }

  body.admin-body main .admin-panel table .action-icon {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
  }

  body.admin-body main .admin-panel table .status,
  body.admin-body main .admin-panel table .stock-badge {
    padding: 3px 4px !important;
    font-size: 6.4px !important;
  }
}

/* Admin mobile rescue v5: normalize non-table list text */
@media (max-width: 760px) {
  body.admin-body main .history-orders-head,
  body.admin-body main .history-orders-row,
  body.admin-body main .client-ledger-head,
  body.admin-body main .client-ledger-row,
  body.admin-body main .delivery-board-head,
  body.admin-body main .delivery-board-row,
  body.admin-body main .production-order-row,
  body.admin-body main .district-table-head,
  body.admin-body main .district-table-row,
  body.admin-body main .hero-banner-row,
  body.admin-body main .celebration-admin-row,
  body.admin-body main .marquee-admin-row,
  body.admin-body main .google-review-admin-row,
  body.admin-body main .payment-method-row,
  body.admin-body main .category-tree-preview article,
  body.admin-body main .tiktok-admin-card {
    font-size: 7.6px !important;
    line-height: 1.15 !important;
  }

  body.admin-body main .history-orders-head *,
  body.admin-body main .history-orders-row *,
  body.admin-body main .client-ledger-head *,
  body.admin-body main .client-ledger-row *,
  body.admin-body main .delivery-board-head *,
  body.admin-body main .delivery-board-row *,
  body.admin-body main .production-order-row *,
  body.admin-body main .district-table-head *,
  body.admin-body main .district-table-row *,
  body.admin-body main .hero-banner-row *,
  body.admin-body main .celebration-admin-row *,
  body.admin-body main .marquee-admin-row *,
  body.admin-body main .google-review-admin-row *,
  body.admin-body main .payment-method-row *,
  body.admin-body main .category-tree-preview article *,
  body.admin-body main .tiktok-admin-card * {
    max-width: 100% !important;
    font-size: inherit !important;
    line-height: inherit !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-body main .district-table-row b,
  body.admin-body main .history-orders-row strong,
  body.admin-body main .client-ledger-row strong,
  body.admin-body main .delivery-board-row strong,
  body.admin-body main .production-order-row strong,
  body.admin-body main .google-review-admin-row strong,
  body.admin-body main .payment-method-row strong,
  body.admin-body main .marquee-admin-row strong,
  body.admin-body main .hero-banner-row strong {
    font-size: 7.8px !important;
  }

  body.admin-body main .district-actions,
  body.admin-body main .table-actions {
    min-width: 0 !important;
    overflow: visible !important;
  }
}

/* Admin refinement: lighter typography and product thumbnails in order history */
body.admin-body,
body.admin-body * {
  font-weight: 400 !important;
}

body.admin-body h1,
body.admin-body h2,
body.admin-body h3,
body.admin-body strong,
body.admin-body b,
body.admin-body th,
body.admin-body .button,
body.admin-body .status,
body.admin-body .district-status,
body.admin-body .route-status {
  font-weight: 500 !important;
}

.history-product-thumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.history-product-thumb {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  background: var(--theme-surface);
}

.history-product-thumb img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.history-product-thumb i {
  color: var(--theme-primary-text);
  font-size: 10px;
  font-style: normal;
}

.history-product-thumb b {
  position: absolute;
  right: -5px;
  bottom: -5px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: var(--theme-on-primary);
  font-size: 9px;
  line-height: 1;
}

.history-money {
  display: inline-block;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.1;
  white-space: nowrap;
}

.production-products-summary {
  display: none;
  position: relative;
  place-items: center;
  width: 34px;
  height: 34px;
  min-width: 34px;
  border: 1px solid var(--theme-border);
  border-radius: 999px;
  background: var(--theme-surface);
  color: var(--theme-primary-text);
  cursor: pointer;
}

.production-products-summary span {
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.production-products-summary b {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  background: var(--brand-primary);
  color: var(--theme-on-primary);
  font-size: 8px;
  line-height: 1;
}

.product-detail-list {
  display: grid;
  gap: 10px;
  padding: 0 18px 18px;
}

.product-detail-list article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  background: #fff;
}

.product-detail-list article > div {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--theme-surface);
}

.product-detail-list img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-list article > div span {
  color: var(--theme-primary-text);
  font-size: 12px;
}

.product-detail-list section {
  min-width: 0;
}

.product-detail-list strong,
.product-detail-list small,
.product-detail-list p {
  display: block;
}

.product-detail-list strong {
  color: #17061f;
  font-size: 13px;
  line-height: 1.2;
}

.product-detail-list small {
  margin-top: 3px;
  color: var(--theme-muted);
  font-size: 11px;
  line-height: 1.2;
}

.product-detail-list p {
  margin: 5px 0 0;
  color: var(--theme-muted);
  font-size: 11px;
  line-height: 1.35;
}

.product-detail-modal.show-list .product-detail-modal-body {
  display: none;
}

@media (max-width: 760px) {
  body.admin-body h1,
  body.admin-body h2,
  body.admin-body h3,
  body.admin-body strong,
  body.admin-body b,
  body.admin-body th,
  body.admin-body .button,
  body.admin-body .status,
  body.admin-body .district-status,
  body.admin-body .route-status {
    font-weight: 500 !important;
  }

  body.admin-body main .history-orders-head,
  body.admin-body main .history-orders-row {
    grid-template-columns: 30px 46px 50px minmax(54px, 1fr) 42px 66px !important;
    align-items: center !important;
  }

  body.admin-body main .history-orders-row [data-mobile-label="Producto"] {
    min-width: 0 !important;
  }

  body.admin-body main .history-product-thumbs {
    gap: 3px !important;
    flex-wrap: wrap !important;
  }

  body.admin-body main .history-product-thumb {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 5px !important;
  }

  body.admin-body main .history-product-thumb b {
    right: -3px !important;
    bottom: -3px !important;
    width: 11px !important;
    height: 11px !important;
    font-size: 6.5px !important;
  }

  body.admin-body main .history-money,
  body.admin-body main .history-orders-row [data-mobile-label="Precio"] strong {
    font-size: 8px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  body.admin-body main .production-item-chip {
    width: 26px !important;
    height: 30px !important;
    min-width: 26px !important;
    padding: 0 !important;
    border-radius: 7px !important;
  }

  body.admin-body main .production-thumb,
  body.admin-body main .production-thumb img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    border-radius: 6px !important;
  }

  body.admin-body main .production-thumb-qty {
    right: -3px !important;
    bottom: -3px !important;
    width: 11px !important;
    height: 11px !important;
    font-size: 6px !important;
  }

  body.admin-body main .delivery-board-head,
  body.admin-body main .delivery-board-row {
    grid-template-columns: 36px 54px 52px 66px 58px minmax(72px, 1fr) !important;
    align-items: center !important;
  }

  body.admin-body main .delivery-board-group {
    width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-body main .delivery-board-group summary {
    padding: 7px 8px !important;
    font-size: 9px !important;
  }

  body.admin-body main .phone-order-button {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 5px 4px !important;
    font-size: 7px !important;
    white-space: normal !important;
  }
}

/* Admin mobile icon-only commands */
@media (max-width: 760px) {
  body.admin-body .admin-top > .button,
  body.admin-body .orders-header > .button,
  body.admin-body .orders-actions .button,
  body.admin-body .admin-filters .button,
  body.admin-body .date-pills form button {
    display: inline-grid !important;
    place-items: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 38px !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    border-radius: 999px !important;
  }

  body.admin-body .admin-top > .button::before,
  body.admin-body .orders-header > .button::before,
  body.admin-body .orders-actions .button::before,
  body.admin-body .admin-filters .button::before,
  body.admin-body .date-pills form button::before {
    display: block !important;
    color: currentColor !important;
    font-size: 17px !important;
    line-height: 1 !important;
  }

  body.admin-body .admin-top > .button.secondary::before,
  body.admin-body .orders-actions [data-open-manual-order]::before {
    content: "+" !important;
  }

  body.admin-body .orders-header > .button::before {
    content: "↻" !important;
  }

  body.admin-body .admin-filters .button::before {
    content: "⌕" !important;
  }

  body.admin-body .date-pills form button::before {
    content: "◷" !important;
  }

  body.admin-body .orders-actions [data-select-print-cards]::before {
    content: "☑" !important;
  }

  body.admin-body .orders-actions [data-print-cards]::before {
    content: "⎙" !important;
  }

  body.admin-body .production-send-form button {
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
    padding: 0 !important;
    border-radius: 999px !important;
  }

  body.admin-body .production-send-form button b {
    display: none !important;
  }
}

/* Admin mobile table polish: centered controls, thinner rows and compact dashboard */
@media (max-width: 760px) {
  body.admin-body,
  body.admin-body * {
    font-weight: 400 !important;
  }

  body.admin-body h1,
  body.admin-body h2,
  body.admin-body h3,
  body.admin-body strong,
  body.admin-body b,
  body.admin-body th,
  body.admin-body .button,
  body.admin-body .orders-tabs a,
  body.admin-body .status,
  body.admin-body .district-status,
  body.admin-body .route-status {
    font-weight: 500 !important;
  }

  body.admin-body .orders-header {
    align-items: center !important;
    gap: 8px !important;
  }

  body.admin-body .orders-header .button,
  body.admin-body .orders-actions .button,
  body.admin-body .admin-filters .button,
  body.admin-body .date-pills form button,
  body.admin-body .production-send-form button,
  body.admin-body .action-icon,
  body.admin-body .table-actions button,
  body.admin-body .district-actions button {
    display: inline-grid !important;
    place-items: center !important;
    text-align: center !important;
  }

  body.admin-body .orders-tabs {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    padding: 4px !important;
    border-radius: 10px !important;
  }

  body.admin-body .orders-tabs a {
    min-height: 38px !important;
    padding: 0 5px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 8px !important;
    font-size: 11px !important;
    line-height: 1.05 !important;
    text-align: center !important;
    white-space: normal !important;
  }

  body.admin-body .orders-toolbar {
    gap: 9px !important;
    margin: 12px 0 !important;
  }

  body.admin-body .date-pills {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
    overflow: visible !important;
  }

  body.admin-body .date-pills > a {
    min-height: 34px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    text-align: center !important;
  }

  body.admin-body .date-pills form {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 42px !important;
    gap: 0 !important;
    width: 100% !important;
  }

  body.admin-body .date-pills input[type="date"] {
    min-width: 0 !important;
    height: 38px !important;
    padding: 0 11px !important;
    border-radius: 999px 0 0 999px !important;
    font-size: 10px !important;
  }

  body.admin-body .date-pills form button {
    width: 42px !important;
    min-width: 42px !important;
    height: 38px !important;
    border-radius: 0 999px 999px 0 !important;
  }

  body.admin-body .orders-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) repeat(3, 42px) !important;
    gap: 8px !important;
    align-items: center !important;
    overflow: visible !important;
  }

  body.admin-body .orders-actions > span {
    min-width: 0 !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
  }

  body.admin-body .orders-actions .button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
  }

  body.admin-body .admin-filters.orders-search {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
  }

  body.admin-body .admin-filters.orders-search input,
  body.admin-body .admin-filters.orders-search select {
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    padding: 0 14px !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 9px !important;
    background: #fff !important;
    font-size: 10.5px !important;
    line-height: 1.1 !important;
  }

  body.admin-body .admin-filters.orders-search .button {
    width: 52px !important;
    min-width: 52px !important;
    height: 48px !important;
    border-radius: 999px !important;
  }

  body.admin-body .production-card,
  body.admin-body .delivery-board,
  body.admin-body .history-orders-board {
    border-radius: 9px !important;
    overflow: hidden !important;
    background: #fff !important;
  }

  body.admin-body .production-group,
  body.admin-body .delivery-board-group {
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.admin-body .production-group summary,
  body.admin-body .delivery-board-group summary {
    position: static !important;
    min-width: 0 !important;
    min-height: 34px !important;
    padding: 7px 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    background: var(--theme-surface) !important;
    border-radius: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  body.admin-body .production-group summary em,
  body.admin-body .delivery-board-group summary em {
    color: var(--theme-muted) !important;
    font-style: normal !important;
    font-size: 11px !important;
  }

  body.admin-body .production-order-row {
    display: grid !important;
    grid-template-columns: 34px 54px minmax(58px, 1fr) minmax(58px, 1fr) 34px !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 7px 5px !important;
    align-items: center !important;
    border: 0 !important;
    border-bottom: 1px solid var(--theme-tint) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.admin-body .production-order-row > * {
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0 !important;
  }

  body.admin-body .production-order-id {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #19061f !important;
    text-align: center !important;
  }

  body.admin-body .production-order-id strong {
    display: block !important;
    font-size: 10px !important;
    line-height: 1 !important;
  }

  body.admin-body .production-order-id span {
    display: block !important;
    margin-top: 2px !important;
    font-size: 7px !important;
    line-height: 1 !important;
    color: var(--theme-primary-text) !important;
  }

  body.admin-body .production-order-client strong,
  body.admin-body .production-order-client span,
  body.admin-body .production-card-message strong,
  body.admin-body .production-card-message p,
  body.admin-body .production-order-meta small {
    display: block !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    overflow-wrap: normal !important;
  }

  body.admin-body .production-order-client strong,
  body.admin-body .production-order-client span {
    font-size: 8px !important;
    line-height: 1.05 !important;
  }

  body.admin-body .production-order-products {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 3px !important;
    width: 100% !important;
    overflow: hidden !important;
    padding: 0 !important;
  }

  body.admin-body .production-order-products .production-item-chip {
    display: none !important;
  }

  body.admin-body .production-products-summary {
    display: grid !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    margin: 0 auto !important;
    padding: 0 !important;
  }

  body.admin-body .production-products-summary span {
    font-size: 14px !important;
    transform: translateY(-.5px);
  }

  body.admin-body .production-products-summary b {
    right: -3px !important;
    bottom: -3px !important;
    width: 12px !important;
    height: 12px !important;
    font-size: 6.5px !important;
  }

  body.admin-body .production-item-chip {
    flex: 0 0 24px !important;
    width: 24px !important;
    height: 26px !important;
    min-width: 24px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    border-radius: 6px !important;
  }

  body.admin-body .production-thumb,
  body.admin-body .production-thumb img {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 5px !important;
  }

  body.admin-body .production-card-message,
  body.admin-body .production-card-message.empty {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 999px !important;
    background: var(--theme-surface) !important;
    color: var(--theme-primary-text) !important;
    text-align: center !important;
    font-size: 0 !important;
  }

  body.admin-body .production-card-message::before,
  body.admin-body .production-card-message.empty::before {
    content: "✉" !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    font-size: 14px !important;
    line-height: 1 !important;
  }

  body.admin-body .production-card-message strong,
  body.admin-body .production-card-message p {
    display: none !important;
  }

  body.admin-body .production-order-meta {
    display: grid !important;
    justify-items: center !important;
    gap: 3px !important;
  }

  body.admin-body .production-order-meta .route-status {
    max-width: 30px !important;
    width: 30px !important;
    height: 22px !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: grid !important;
    place-items: center !important;
    font-size: 0 !important;
  }

  body.admin-body .production-order-meta .route-status i {
    margin: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
  }

  body.admin-body .production-order-meta small {
    max-width: 32px !important;
    font-size: 6.5px !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  body.admin-body .production-send-form button {
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
  }

  body.admin-body .delivery-board-head,
  body.admin-body .delivery-board-row {
    display: grid !important;
    grid-template-columns: 34px 48px 46px 56px 58px minmax(78px, 1fr) !important;
    gap: 4px !important;
    min-width: 0 !important;
    width: 100% !important;
    align-items: center !important;
    padding: 7px 5px !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.admin-body .delivery-board-head {
    background: var(--theme-surface) !important;
    border-bottom: 1px solid var(--theme-border) !important;
    color: var(--theme-muted) !important;
    font-size: 7px !important;
    line-height: 1.05 !important;
    text-transform: uppercase !important;
  }

  body.admin-body .delivery-board-row {
    border: 0 !important;
    border-bottom: 1px solid var(--theme-tint) !important;
    font-size: 7.4px !important;
    line-height: 1.05 !important;
  }

  body.admin-body .delivery-board-row > [data-mobile-label] {
    display: block !important;
    min-width: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-body .delivery-board-row > [data-mobile-label]::before {
    content: none !important;
    display: none !important;
  }

  body.admin-body .delivery-board-row .order-number strong {
    display: block !important;
    font-size: 8px !important;
    line-height: 1 !important;
  }

  body.admin-body .delivery-board-row .order-number small {
    display: block !important;
    font-size: 6.5px !important;
    line-height: 1 !important;
  }

  body.admin-body .shipping-pill,
  body.admin-body .route-status,
  body.admin-body .phone-order-button {
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 3px 4px !important;
    font-size: 7px !important;
    line-height: 1 !important;
    white-space: normal !important;
    text-align: center !important;
  }

  body.admin-body .phone-order-button::before {
    margin-right: 2px !important;
    font-size: 7px !important;
  }

  body.admin-body .history-orders-table {
    width: 100% !important;
    overflow: hidden !important;
  }

  body.admin-body .history-orders-head,
  body.admin-body .history-orders-row {
    display: grid !important;
    grid-template-columns: 36px 48px 64px minmax(72px, 1fr) 42px 70px !important;
    gap: 3px !important;
    min-width: 0 !important;
    width: 100% !important;
    align-items: center !important;
    padding: 7px 5px !important;
  }

  body.admin-body .history-orders-head {
    font-size: 6.8px !important;
    line-height: 1.05 !important;
  }

  body.admin-body .history-orders-row {
    font-size: 7.4px !important;
    line-height: 1.05 !important;
    min-height: 56px !important;
  }

  body.admin-body .history-orders-row > div {
    padding: 0 !important;
    display: block !important;
    min-width: 0 !important;
    border: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body.admin-body .history-orders-row > div::before {
    content: none !important;
    display: none !important;
  }

  body.admin-body .history-product-thumbs {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 2px !important;
    overflow: hidden !important;
  }

  body.admin-body .history-product-thumb {
    width: 21px !important;
    height: 21px !important;
    min-width: 21px !important;
  }

  body.admin-body .history-money,
  body.admin-body .history-orders-row [data-mobile-label="Precio"] strong {
    font-size: 7.2px !important;
    line-height: 1 !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  body.admin-body .metric-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 12px 0 16px !important;
  }

  body.admin-body .metric-grid article {
    min-height: 72px !important;
    padding: 12px !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }

  body.admin-body .metric-grid article::after {
    width: 54px !important;
    height: 54px !important;
    right: -16px !important;
    top: -16px !important;
  }

  body.admin-body .metric-grid span {
    font-size: 8px !important;
    line-height: 1 !important;
  }

  body.admin-body .metric-grid strong {
    margin-top: 8px !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  body.admin-body .admin-feature-stack {
    gap: 12px !important;
  }

  body.admin-body .admin-feature,
  body.admin-body .admin-feature.reverse {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 10px !important;
  }

  body.admin-body .admin-feature h2 {
    font-size: 18px !important;
    line-height: 1.05 !important;
  }

  body.admin-body .admin-feature p {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  body.admin-body .admin-feature .button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    display: inline-grid !important;
    place-items: center !important;
    font-size: 0 !important;
  }

  body.admin-body .admin-feature .button::before {
    content: ">" !important;
    font-size: 16px !important;
    line-height: 1 !important;
  }

  body.admin-body .admin-top > .button.primary::before {
    content: "+" !important;
  }

  body.admin-body .admin-top > .button.ghost::before {
    content: "%" !important;
  }

  body.admin-body .feature-preview {
    padding: 12px !important;
    border-radius: 10px !important;
    min-height: 0 !important;
  }

  body.admin-body .feature-preview a,
  body.admin-body .feature-preview div {
    min-height: 0 !important;
    padding: 9px !important;
    border-radius: 8px !important;
  }

  body.admin-body .orders-header .button,
  body.admin-body .orders-actions .button,
  body.admin-body .admin-filters .button,
  body.admin-body .date-pills form button,
  body.admin-body .admin-feature .button {
    position: relative !important;
    display: grid !important;
    place-items: center !important;
    text-align: center !important;
    overflow: hidden !important;
  }

  body.admin-body .orders-header .button::before,
  body.admin-body .orders-actions .button::before,
  body.admin-body .admin-filters .button::before,
  body.admin-body .date-pills form button::before,
  body.admin-body .admin-feature .button::before,
  body.admin-body .admin-top > .button::before {
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    line-height: 1 !important;
    text-align: center !important;
  }

  body.admin-body .product-detail-modal {
    padding: 10px !important;
  }

  body.admin-body .product-detail-modal-card {
    width: min(100%, 420px) !important;
    max-height: calc(100dvh - 20px) !important;
    overflow: auto !important;
    border-radius: 12px !important;
  }

  body.admin-body .product-detail-modal-card header {
    padding: 12px !important;
  }

  body.admin-body .product-detail-modal-card h2 {
    font-size: 18px !important;
    line-height: 1.1 !important;
  }

  body.admin-body .product-detail-list {
    gap: 8px !important;
    padding: 0 12px 12px !important;
  }

  body.admin-body .product-detail-list article {
    grid-template-columns: 48px minmax(0, 1fr) !important;
    gap: 9px !important;
    padding: 8px !important;
    border-radius: 9px !important;
  }

  body.admin-body .product-detail-list article > div {
    width: 48px !important;
    height: 48px !important;
    border-radius: 8px !important;
  }

  body.admin-body .product-detail-list strong {
    font-size: 11px !important;
    line-height: 1.15 !important;
  }

  body.admin-body .product-detail-list small,
  body.admin-body .product-detail-list p {
    font-size: 9px !important;
    line-height: 1.25 !important;
  }
}

@media (max-width: 380px) {
  body.admin-body .delivery-board-head,
  body.admin-body .delivery-board-row {
    grid-template-columns: 30px 41px 39px 48px 50px minmax(58px, 1fr) !important;
    gap: 3px !important;
    padding: 6px 4px !important;
    font-size: 6.6px !important;
  }

  body.admin-body .history-orders-head,
  body.admin-body .history-orders-row {
    grid-template-columns: 32px 42px 52px minmax(58px, 1fr) 36px 55px !important;
    gap: 3px !important;
    padding: 6px 4px !important;
    font-size: 6.6px !important;
  }

  body.admin-body .production-order-row {
    grid-template-columns: 30px 44px minmax(48px, 1fr) minmax(48px, 1fr) 30px !important;
    gap: 3px !important;
    padding: 6px 4px !important;
  }

  body.admin-body .orders-tabs a {
    min-height: 34px !important;
    font-size: 9.5px !important;
  }

  body.admin-body .orders-actions {
    grid-template-columns: minmax(0, 1fr) repeat(3, 38px) !important;
    gap: 6px !important;
  }

  body.admin-body .orders-actions .button,
  body.admin-body .orders-header .button {
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
  }
}

/* Admin mobile order rows final alignment: keep actions visible and use full row width */
@media (max-width: 760px) {
  body.admin-body .production-order-row {
    grid-template-columns: 36px minmax(78px, 1.1fr) 38px 38px 44px !important;
    gap: 5px !important;
    align-items: center !important;
    min-height: 56px !important;
  }

  body.admin-body .production-order-client {
    min-width: 0 !important;
    text-align: left !important;
  }

  body.admin-body .production-order-client strong,
  body.admin-body .production-order-client span {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  body.admin-body .production-order-products,
  body.admin-body .production-card-message,
  body.admin-body .production-order-meta {
    justify-self: center !important;
    align-self: center !important;
  }

  body.admin-body .production-products-summary,
  body.admin-body .production-card-message,
  body.admin-body .production-send-form button {
    width: 34px !important;
    min-width: 34px !important;
    max-width: 34px !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    margin: 0 !important;
    display: grid !important;
    place-items: center !important;
    overflow: visible !important;
  }

  body.admin-body .production-send-form {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-body .production-send-form button {
    position: relative !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 999px !important;
    background: var(--theme-surface) !important;
    color: var(--theme-primary-text) !important;
    font-size: 0 !important;
    line-height: 0 !important;
  }

  body.admin-body .production-send-form button span {
    display: none !important;
  }

  body.admin-body .production-send-form button::before {
    content: "➜" !important;
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    color: currentColor !important;
    font-size: 15px !important;
    line-height: 1 !important;
    transform: none !important;
  }

  body.admin-body .production-order-meta .route-status,
  body.admin-body .production-order-meta small {
    display: none !important;
  }

  body.admin-body .delivery-board-head,
  body.admin-body .delivery-board-row {
    grid-template-columns: 38px 50px 52px 66px 76px minmax(96px, 1fr) !important;
    gap: 5px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-body .delivery-board-row > [data-mobile-label="Direccion"] {
    text-align: right !important;
    justify-self: stretch !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    line-height: 1.12 !important;
  }

  body.admin-body .delivery-board-row > [data-mobile-label="Cliente"],
  body.admin-body .delivery-board-row > [data-mobile-label="Telefono"] {
    text-align: center !important;
  }

  body.admin-body .phone-order-button {
    margin-inline: auto !important;
  }

  body.admin-body .history-orders-head,
  body.admin-body .history-orders-row {
    grid-template-columns: 36px 54px 64px minmax(76px, 1fr) 46px 72px !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  body.admin-body .history-orders-row > div {
    align-self: center !important;
  }

  body.admin-body .history-orders-row > [data-mobile-label="Producto"] {
    justify-self: center !important;
  }

  body.admin-body .history-orders-row > [data-mobile-label="Precio"],
  body.admin-body .history-orders-row > [data-mobile-label="Fecha"] {
    text-align: right !important;
  }

  body.admin-body .history-product-thumbs {
    justify-content: center !important;
  }
}

@media (max-width: 380px) {
  body.admin-body .production-order-row {
    grid-template-columns: 32px minmax(64px, 1fr) 34px 34px 38px !important;
    gap: 4px !important;
  }

  body.admin-body .production-products-summary,
  body.admin-body .production-card-message,
  body.admin-body .production-send-form button {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
  }

  body.admin-body .delivery-board-head,
  body.admin-body .delivery-board-row {
    grid-template-columns: 32px 42px 42px 52px 62px minmax(72px, 1fr) !important;
  }

  body.admin-body .history-orders-head,
  body.admin-body .history-orders-row {
    grid-template-columns: 32px 44px 52px minmax(58px, 1fr) 38px 58px !important;
  }
}
