/* Jolfa minimal empty-state layer.
   Loaded last so legacy gradient/card treatments cannot reappear. */
body.uupm-web3 .empty-state,
body.panel-nail-context .empty-state,
body.uupm-web3 .account-shared-empty {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 18px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--text) !important;
  text-align: center !important;
}

body.uupm-web3 .empty-state.compact-empty,
body.panel-nail-context .empty-state.compact-empty,
body.uupm-web3 .account-shared-empty {
  min-height: 0 !important;
  padding: 14px 10px !important;
}

body.uupm-web3 .empty-state > i,
body.panel-nail-context .empty-state > i,
body.uupm-web3 .account-shared-empty > i {
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--empty-tone, var(--primary)) !important;
  font-size: 1.55rem !important;
  line-height: 1 !important;
}

body.uupm-web3 .empty-state > strong,
body.uupm-web3 .empty-state > h2,
body.panel-nail-context .empty-state > strong,
body.panel-nail-context .empty-state > h2,
body.uupm-web3 .account-shared-empty > strong,
body.uupm-web3 .account-shared-empty > h2 {
  margin: 0 !important;
  color: var(--text) !important;
  font-size: .82rem !important;
  font-weight: 900 !important;
  line-height: 1.75 !important;
}

body.uupm-web3 .empty-state > p,
body.uupm-web3 .empty-state > small,
body.panel-nail-context .empty-state > p,
body.panel-nail-context .empty-state > small,
body.uupm-web3 .account-shared-empty > p,
body.uupm-web3 .account-shared-empty > small {
  margin: 0 !important;
  color: var(--muted) !important;
  font-size: .72rem !important;
  line-height: 1.7 !important;
}

/* Remove legacy decorative surfaces from storefront empty collections too. */
body.uupm-web3 .hero-shop-peek > .empty-state:only-child,
body.uupm-web3 .landing-products-section .cards-row > .empty-state:only-child,
body.uupm-web3 .payment-mobile-card-table tbody td[colspan] .empty-state {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 20px 12px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}

/* Dashboard: never force the chart and recent-orders block to equal heights. */
body.admin-dashboard-page .dashboard-layout--admin-overview > .dashboard-primary,
body.admin-dashboard-page .dashboard-layout--admin-overview > .dashboard-aside {
  grid-template-rows: none !important;
  grid-auto-rows: max-content !important;
  align-content: start !important;
  align-items: start !important;
}

body.admin-dashboard-page .dashboard-layout--admin-overview .dashboard-card,
body.admin-dashboard-page .admin-dashboard-recent,
body.admin-dashboard-page .admin-work-report-card {
  height: auto !important;
  min-height: 0 !important;
  align-self: start !important;
}

body.admin-dashboard-page .admin-dashboard-recent .table-wrap,
body.admin-dashboard-page .admin-work-report-card .table-wrap {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
}

body.admin-dashboard-page .admin-dashboard-recent .panel-table tbody:has(.empty-state),
body.admin-dashboard-page .admin-work-report-card .admin-work-table tbody:has(.empty-state) {
  display: block !important;
  width: 100% !important;
  padding: 8px 12px 12px !important;
}

body.admin-dashboard-page .admin-dashboard-recent .panel-table tbody > tr:has(td[colspan] .empty-state),
body.admin-dashboard-page .admin-work-report-card .admin-work-table tbody > tr:has(td[colspan] .empty-state) {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.admin-dashboard-page .admin-dashboard-recent .panel-table tbody > tr:has(td[colspan] .empty-state) > td,
body.admin-dashboard-page .admin-work-report-card .admin-work-table tbody > tr:has(td[colspan] .empty-state) > td {
  display: block !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.admin-dashboard-page .admin-dashboard-recent .empty-state,
body.admin-dashboard-page .admin-work-report-card .empty-state {
  min-height: 0 !important;
  padding: 22px 12px !important;
}

@media (max-width: 760px) {
  body.uupm-web3 .empty-state,
  body.panel-nail-context .empty-state,
  body.uupm-web3 .account-shared-empty,
  body.uupm-web3 .hero-shop-peek > .empty-state:only-child,
  body.uupm-web3 .landing-products-section .cards-row > .empty-state:only-child {
    min-height: 0 !important;
    padding: 15px 10px !important;
    gap: 7px !important;
  }

  body.uupm-web3 .empty-state > i,
  body.panel-nail-context .empty-state > i,
  body.uupm-web3 .account-shared-empty > i {
    font-size: 1.35rem !important;
  }
}
