[data-dashboard-section] .dashboard-section__hidden,
[data-dashboard-panel-root] .dashboard-section__hidden {
  display: none !important;
}

body.dashboard-modal-open {
  overflow: hidden;
}

[data-dashboard-section] .dashboard-section__layout {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  [data-dashboard-section] .dashboard-section__layout {
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }
}

[data-dashboard-section] .dashboard-section__mobile-bar {
  margin-bottom: 1rem;
}

@media (min-width: 1024px) {
  [data-dashboard-section] .dashboard-section__mobile-bar {
    display: none;
  }
}

[data-dashboard-section] .dashboard-sidebar {
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-stroke-1, #e5e5e5) 100%, transparent);
  background: var(--color-background-1, #fff);
  padding: 1.25rem;
}

.dark [data-dashboard-section] .dashboard-sidebar {
  border-color: var(--color-stroke-7, #333);
  background: var(--color-background-6, #111);
}

@media (max-width: 1023px) {
  [data-dashboard-section] .dashboard-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 120;
    width: min(320px, 88vw);
    transform: translateX(-110%);
    transition: transform 0.25s ease;
    overflow-y: auto;
  }

  [data-dashboard-section] .dashboard-sidebar.dashboard-sidebar--open {
    transform: translateX(0);
  }
}

[data-dashboard-section] .dashboard-sidebar__close {
  display: block;
  margin-left: auto;
  margin-bottom: 0.75rem;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (min-width: 1024px) {
  [data-dashboard-section] .dashboard-sidebar__close {
    display: none;
  }
}

[data-dashboard-section] .dashboard-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

[data-dashboard-section] .dashboard-profile__avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--color-stroke-1, #e5e5e5) 100%, transparent);
  background: color-mix(in srgb, var(--color-background-2, #f5f5f5) 100%, transparent);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 600;
  cursor: pointer;
}

[data-dashboard-section] .dashboard-profile__avatar--image {
  color: transparent;
}

[data-dashboard-section] .dashboard-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

[data-dashboard-section] .dashboard-nav__link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  text-decoration: none;
  color: inherit;
}

[data-dashboard-section] .dashboard-nav__link--active,
[data-dashboard-section] .dashboard-nav__link:hover {
  background: color-mix(in srgb, var(--color-background-2, #f5f5f5) 100%, transparent);
}

[data-dashboard-section] .dashboard-panel,
[data-dashboard-panel-root] .dashboard-panel {
  border-radius: 1rem;
  border: 1px solid color-mix(in srgb, var(--color-stroke-1, #e5e5e5) 100%, transparent);
  background: var(--color-background-1, #fff);
  padding: 1.5rem;
}

.dark [data-dashboard-section] .dashboard-panel,
.dark [data-dashboard-panel-root] .dashboard-panel {
  border-color: var(--color-stroke-7, #333);
  background: var(--color-background-6, #111);
}

[data-dashboard-section] .dashboard-panel__header,
[data-dashboard-panel-root] .dashboard-panel__header {
  margin-bottom: 1.25rem;
}

[data-dashboard-section] .dashboard-panel__title,
[data-dashboard-panel-root] .dashboard-panel__title {
  margin: 0 0 0.35rem;
}

[data-dashboard-section] .dashboard-panel__desc,
[data-dashboard-panel-root] .dashboard-panel__desc {
  margin: 0;
  opacity: 0.75;
}

[data-dashboard-section] .dashboard-panel__table-wrap,
[data-dashboard-panel-root] .dashboard-panel__table-wrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}

[data-dashboard-section] .dashboard-table,
[data-dashboard-panel-root] .dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

[data-dashboard-section] .dashboard-table th,
[data-dashboard-section] .dashboard-table td,
[data-dashboard-panel-root] .dashboard-table th,
[data-dashboard-panel-root] .dashboard-table td {
  padding: 0.85rem;
  border-bottom: 1px solid color-mix(in srgb, var(--color-stroke-1, #e5e5e5) 60%, transparent);
  text-align: left;
  vertical-align: top;
}

@media (max-width: 1023px) {
  [data-dashboard-section] .dashboard-panel__table-wrap,
  [data-dashboard-panel-root] .dashboard-panel__table-wrap {
    display: none;
  }
}

@media (min-width: 1024px) {
  [data-dashboard-section] .dashboard-panel__cards,
  [data-dashboard-panel-root] .dashboard-panel__cards {
    display: none !important;
  }
}

[data-dashboard-section] .dashboard-panel__cards,
[data-dashboard-panel-root] .dashboard-panel__cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

[data-dashboard-section] .dashboard-list-card,
[data-dashboard-panel-root] .dashboard-list-card {
  border: 1px solid color-mix(in srgb, var(--color-stroke-1, #e5e5e5) 100%, transparent);
  border-radius: 0.75rem;
  padding: 1rem;
}

[data-dashboard-section] .dashboard-list-card__header,
[data-dashboard-panel-root] .dashboard-list-card__header {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

[data-dashboard-section] .dashboard-list-card__meta,
[data-dashboard-panel-root] .dashboard-list-card__meta {
  font-size: 0.8125rem;
  opacity: 0.7;
}

[data-dashboard-section] .dashboard-panel__pagination,
[data-dashboard-panel-root] .dashboard-panel__pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

[data-dashboard-section] .dashboard-status,
[data-dashboard-panel-root] .dashboard-status {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

[data-dashboard-section] .dashboard-status--success,
[data-dashboard-panel-root] .dashboard-status--success {
  background: #d4edda;
  color: #155724;
}

[data-dashboard-section] .dashboard-status--warning,
[data-dashboard-panel-root] .dashboard-status--warning {
  background: #fff3cd;
  color: #856404;
}

[data-dashboard-section] .dashboard-status--danger,
[data-dashboard-panel-root] .dashboard-status--danger {
  background: #f8d7da;
  color: #721c24;
}

[data-dashboard-section] .dashboard-status--info,
[data-dashboard-panel-root] .dashboard-status--info {
  background: #d1ecf1;
  color: #0c5460;
}

[data-dashboard-section] .dashboard-address-list,
[data-dashboard-panel-root] .dashboard-address-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

[data-dashboard-section] .dashboard-address-card,
[data-dashboard-panel-root] .dashboard-address-card {
  position: relative;
  border: 1px solid color-mix(in srgb, var(--color-stroke-1, #e5e5e5) 100%, transparent);
  border-radius: 0.75rem;
  padding: 1rem;
}

[data-dashboard-section] .dashboard-address-card--default,
[data-dashboard-panel-root] .dashboard-address-card--default {
  border-color: color-mix(in srgb, var(--color-secondary, #1a1a1a) 35%, transparent);
}

[data-dashboard-section] .dashboard-address-card__badge,
[data-dashboard-panel-root] .dashboard-address-card__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
}

[data-dashboard-section] .dashboard-address-card__actions,
[data-dashboard-panel-root] .dashboard-address-card__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

[data-dashboard-section] .dashboard-form,
[data-dashboard-panel-root] .dashboard-form,
[data-dashboard-section] .dashboard-form-grid,
[data-dashboard-panel-root] .dashboard-form-grid {
  display: grid;
  gap: 0.85rem;
}

[data-dashboard-section] .dashboard-form-grid label,
[data-dashboard-panel-root] .dashboard-form-grid label {
  display: grid;
  gap: 0.35rem;
}

[data-dashboard-section] .dashboard-alert,
[data-dashboard-panel-root] .dashboard-alert {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  margin: 0.75rem 0;
}

[data-dashboard-section] .dashboard-alert--error,
[data-dashboard-panel-root] .dashboard-alert--error {
  background: #f8d7da;
  color: #721c24;
}

[data-dashboard-section] .dashboard-alert--success,
[data-dashboard-panel-root] .dashboard-alert--success {
  background: #d4edda;
  color: #155724;
}

[data-dashboard-section] .dashboard-modal,
[data-dashboard-panel-root] .dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

[data-dashboard-section] .dashboard-modal__backdrop,
[data-dashboard-panel-root] .dashboard-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

[data-dashboard-section] .dashboard-modal__dialog,
[data-dashboard-panel-root] .dashboard-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: min(90vh, 800px);
  overflow: auto;
  border-radius: 1rem;
  background: var(--color-background-1, #fff);
  padding: 1.25rem;
}

[data-dashboard-section] .dashboard-modal__dialog--lg,
[data-dashboard-panel-root] .dashboard-modal__dialog--lg {
  width: min(760px, 100%);
}

[data-dashboard-section] .dashboard-modal__header,
[data-dashboard-panel-root] .dashboard-modal__header,
[data-dashboard-section] .dashboard-modal__footer,
[data-dashboard-panel-root] .dashboard-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

[data-dashboard-section] .dashboard-modal__close,
[data-dashboard-panel-root] .dashboard-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  cursor: pointer;
}

[data-dashboard-section] .dashboard-detail-row,
[data-dashboard-panel-root] .dashboard-detail-row {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--color-stroke-1, #e5e5e5) 50%, transparent);
}

[data-dashboard-section] .dashboard-detail-label,
[data-dashboard-panel-root] .dashboard-detail-label {
  width: 140px;
  font-weight: 600;
  flex-shrink: 0;
}

[data-dashboard-section] .dashboard-profile-form__avatar-row,
[data-dashboard-panel-root] .dashboard-profile-form__avatar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

[data-dashboard-section] .dashboard-profile-form__preview,
[data-dashboard-panel-root] .dashboard-profile-form__preview {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--color-background-2, #f5f5f5) 100%, transparent);
  background-size: cover;
  background-position: center;
  font-weight: 600;
}

[data-dashboard-section] .dashboard-profile-form__avatar-actions,
[data-dashboard-panel-root] .dashboard-profile-form__avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
