.dashboard-body {
  background:
    radial-gradient(circle at top left, rgba(0, 151, 185, 0.06), transparent 28%),
    linear-gradient(180deg, #f4f8fb 0%, #eef4f8 100%);
}

.dashboard-layout {
  min-height: 100vh;
  display: flex;
}

.dashboard-sidebar {
  width: 280px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  border-right: 1px solid #dbe6ee;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  z-index: 1040;
}

.dashboard-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #17212b;
}

.dashboard-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0097b9, #39b5cf);
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 14px 30px rgba(0, 151, 185, 0.22);
}

.dashboard-brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.dashboard-brand small {
  display: block;
  color: #71808f;
  font-size: 0.78rem;
}

.sidebar-close-btn,
.burger-btn {
  width: 42px;
  height: 42px;
  border: 1px solid #dbe6ee;
  border-radius: 14px;
  background: #fff;
  color: #17212b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-store-box {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f7fcfe 0%, #eef8fb 100%);
  border: 1px solid rgba(0, 151, 185, 0.14);
}

.dashboard-store-label {
  font-size: 0.84rem;
  color: #70808f;
  margin-bottom: 6px;
}

.dashboard-store-name {
  font-size: 1rem;
  font-weight: 800;
  color: #17212b;
  line-height: 1.4;
}

.dashboard-nav {
  display: grid;
  gap: 8px;
}

.dashboard-nav-link {
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #23313d;
  font-weight: 600;
  text-decoration: none;
  transition: 0.18s ease;
}

.dashboard-nav-link:hover {
  background: #f2f7fa;
  color: #17212b;
}

.dashboard-nav-link.active {
  background: rgba(0, 151, 185, 0.10);
  color: #007e9b;
}

.dashboard-sidebar-footer {
  margin-top: 20px;
}

.dashboard-main {
  flex: 1;
  padding: 20px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-topbar-label {
  color: #71808f;
  font-size: 0.84rem;
  margin-bottom: 2px;
}

.dashboard-page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #17212b;
}

.dashboard-user-chip {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe6ee;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5f7181;
  font-weight: 600;
}

.dashboard-hero-strip {
  margin-bottom: 18px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(0, 151, 185, 0.14);
  background:
    radial-gradient(circle at top right, rgba(0, 151, 185, 0.14), transparent 30%),
    linear-gradient(180deg, #fbfeff 0%, #f3fbfd 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 151, 185, 0.10);
  color: #007e9b;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.dashboard-hero-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #17212b;
}

.dashboard-hero-text {
  margin: 8px 0 0;
  color: #70808f;
  line-height: 1.6;
  max-width: 720px;
}

.dashboard-hero-icon {
  width: 82px;
  height: 82px;
  border-radius: 24px;
  background: rgba(0, 151, 185, 0.10);
  color: #0097b9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex: 0 0 auto;
}

.dashboard-section-block {
  margin-top: 24px;
}

.section-title-row {
  margin-left: 10px;
  margin-bottom: 14px;
}

.section-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.section-subtitle {
  margin: 4px 0 0;
  font-size: 0.92rem;
  color: #64748b;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.stats-grid-orders {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stats-grid-sales {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid-performance {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-card {
  background: #fff;
  border: 1px solid #dbe6ee;
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 10px 26px rgba(19, 32, 45, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.stats-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(19, 32, 45, 0.08);
  border-color: rgba(0, 151, 185, 0.20);
}

.stats-card-highlight {
  background: linear-gradient(180deg, #ffffff 0%, #f3fbfd 100%);
  border-color: rgba(0, 151, 185, 0.20);
}

.stats-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(0, 151, 185, 0.10);
  color: #0097b9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-bottom: 14px;
}

.stats-card-label {
  color: #70808f;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.stats-card-value {
  font-size: 1.45rem;
  font-weight: 800;
  color: #17212b;
  line-height: 1.2;
}

.summary-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.summary-card {
  background: #fff;
  border: 1px solid #dbe6ee;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 26px rgba(19, 32, 45, 0.05);
}

.summary-card h3 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  font-weight: 800;
  color: #17212b;
}

.summary-list {
  display: grid;
  gap: 12px;
}

.summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #edf3f7;
}

.summary-item:last-child {
  border-bottom: 0;
}

.summary-item span {
  color: #70808f;
}

.summary-item strong {
  color: #17212b;
  font-weight: 800;
  text-align: right;
}

.summary-item-total strong {
  color: #007e9b;
}

.summary-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  word-break: break-all;
}

.dashboard-orders-panel {
  background:
    radial-gradient(circle at top right, rgba(0, 151, 185, 0.08), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #f8fcfe 100%);
  border: 1px solid #dbe6ee;
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 14px 32px rgba(19, 32, 45, 0.06);
}

.dashboard-orders-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.dashboard-orders-count {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(0, 151, 185, 0.10);
  color: #007e9b;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
}

.dashboard-order-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}

.dashboard-order-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-order-row:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 151, 185, 0.22);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.09);
}

.dashboard-order-media {
  width: 78px;
  height: 78px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f8fb;
  border: 1px solid #e5eef4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.dashboard-order-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-order-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8ca0af;
  font-size: 1.25rem;
}

.dashboard-order-main {
  min-width: 0;
}

.dashboard-order-badge-line {
  margin-bottom: 8px;
}

.dashboard-order-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #17212b;
  line-height: 1.42;
}

.dashboard-order-badge {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef7fb;
  color: #007e9b;
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 800;
}

.dashboard-order-meta-group {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.dashboard-order-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dashboard-order-meta-item {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 12px;
  background: #f5f9fc;
  border: 1px solid #e7eff5;
  color: #5e7181;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
}

.dashboard-order-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.dashboard-order-price {
  font-size: 1.02rem;
  font-weight: 800;
  color: #17212b;
}

.dashboard-order-status {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 151, 185, 0.10);
  color: #007e9b;
  display: inline-flex;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.dashboard-order-date {
  color: #70808f;
  font-size: 0.82rem;
  text-align: right;
}

.dashboard-empty-state {
  min-height: 180px;
  border: 1px dashed #dbe6ee;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #7b8c99;
  background: #fbfdfe;
}

.dashboard-empty-state i {
  font-size: 1.5rem;
}

.dashboard-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: 0.18s ease;
  z-index: 1035;
}

.dashboard-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 1399.98px) {
  .stats-grid-orders {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats-grid-sales {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 280px;
    max-width: 86vw;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.16);
  }

  .dashboard-sidebar.is-open {
    transform: translateX(0);
  }

  .dashboard-main {
    width: 100%;
    padding: 16px;
  }

  .stats-grid,
  .summary-grid,
  .stats-grid-orders,
  .stats-grid-sales {
    grid-template-columns: 1fr;
  }

  .dashboard-orders-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-order-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .dashboard-order-side {
    grid-column: 1 / -1;
    align-items: flex-start;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }

  .dashboard-order-date {
    text-align: left;
  }
}

@media (max-width: 767.98px) {
  .dashboard-topbar {
    align-items: flex-start;
  }

  .dashboard-page-title {
    font-size: 18px;
  }

  .dashboard-hero-strip {
    padding: 18px;
  }

  .dashboard-hero-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    font-size: 1.5rem;
  }

  .dashboard-order-row {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 14px;
  }

  .dashboard-order-media {
    width: 62px;
    height: 62px;
    border-radius: 16px;
  }

  .dashboard-order-meta-row {
    flex-direction: column;
    gap: 8px;
  }

  .dashboard-order-meta-item {
    width: 100%;
    justify-content: flex-start;
  }

  .summary-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-item strong {
    text-align: left;
  }
}