:root {
  --ink: #172b2a;
  --muted: #778381;
  --line: #e4ebe8;
  --canvas: #f5f8f6;
  --surface: #ffffff;
  --sidebar: #102a28;
  --teal: #1e8178;
  --teal-dark: #17665f;
  --coral: #ef806b;
  --yellow: #efbd4b;
  --blue: #6f9dde;
  --shadow: 0 10px 30px rgba(28, 62, 58, .055);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
}

body.dark-mode {
  --canvas: #122321;
  --surface: #1b302e;
  --ink: #eff7f3;
  --muted: #a7b9b4;
  --line: #304845;
  --shadow: none;
}

body.dark-mode .table {
  --bs-table-color: var(--ink);
  --bs-table-border-color: var(--line);
}

body.dark-mode .btn-light {
  color: var(--ink);
  background: #273e3b;
  border-color: var(--line) !important;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 252px;
  flex: 0 0 252px;
  background: var(--sidebar);
  color: #d9e8e4;
  padding: 26px 16px 18px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px 30px;
  font: 700 25px 'Space Grotesk', sans-serif;
  letter-spacing: -1px;
  color: #f5fffb;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--coral);
  color: white;
  font-size: 17px;
}

.brand-dot {
  color: var(--coral);
}

.workspace-switcher {
  border: 1px solid rgba(217, 232, 228, .15);
  background: rgba(255, 255, 255, .06);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 28px;
}

.workspace-avatar,
.user-avatar {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #f3bd58;
  color: #573b15;
  font-weight: 700;
  width: 30px;
  height: 30px;
}

.workspace-switcher small,
.workspace-switcher strong {
  display: block;
  line-height: 1.3;
}

.workspace-switcher small {
  color: #8ca8a1;
  font-size: 10px;
}

.workspace-switcher strong {
  font-size: 12px;
  color: #f0faf6;
}

.workspace-switcher>i {
  color: #8ca8a1;
  font-size: 11px;
}

.nav-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #77948e;
  font-size: 10px;
  font-weight: 700;
  padding: 0 13px;
  margin: 0 0 8px;
}

.sidebar-nav {
  flex: 1;
}

.tree-menu,
.tree-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tree-item {
  position: relative;
}

.sidebar .nav-link {
  color: #a8c0ba;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  text-align: left;
  text-decoration: none;
  border-radius: 8px;
  margin-bottom: 3px;
  font: 500 14px 'DM Sans', sans-serif;
  transition: .2s ease;
}

.sidebar .nav-link:hover {
  color: white;
  background: rgba(255, 255, 255, .08);
}

.sidebar .nav-link.active {
  color: white;
  background: var(--teal);
  box-shadow: 0 5px 14px rgba(30, 129, 120, .28);
}

.sidebar .nav-link i {
  font-size: 17px;
  width: 18px;
}

.tree-toggle {
  cursor: pointer;
}

.tree-chevron {
  font-size: 10px !important;
  width: auto !important;
  margin-left: auto;
  transition: transform .2s ease;
}

.tree-item:not(.open) .tree-chevron {
  transform: rotate(-90deg);
}

.tree-submenu {
  display: none;
  padding: 2px 0 5px 24px;
}

.tree-item.open>.tree-submenu {
  display: block;
}

.tree-submenu .nav-link {
  font-size: 12px;
  padding: 8px 13px;
  margin-bottom: 1px;
}

.tree-submenu .nav-link::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #66827b;
  margin-right: 2px;
}

.nav-count {
  background: var(--coral);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: auto;
}

.help-box {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 19px 12px 17px;
}

.help-box i {
  color: #f3bd58;
  font-size: 20px;
  display: block;
  margin-bottom: 9px;
}

.help-box strong,
.help-box span,
.help-box a {
  display: block;
}

.help-box strong {
  color: white;
  font-size: 12px;
}

.help-box span {
  color: #8ba49e;
  font-size: 11px;
  margin: 4px 0 12px;
}

.help-box a {
  color: #f3bd58;
  font-size: 11px;
  text-decoration: none;
  font-weight: 700;
}

.help-box a i {
  display: inline;
  font-size: 11px;
  color: inherit;
}

.user-card {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 17px 9px 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-card strong,
.user-card small {
  display: block;
}

.user-card strong {
  color: white;
  font-size: 12px;
}

.user-card small {
  color: #8ba49e;
  font-size: 10px;
  margin-top: 2px;
}

.user-card>i {
  color: #8ba49e;
}

.main-content {
  flex: 1;
  min-width: 0;
}

.topbar {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.breadcrumb-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .3px;
}

.breadcrumb-wrap strong {
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  color: var(--muted);
}

.icon-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-size: 18px;
  display: grid;
  place-items: center;
}

.icon-btn:hover {
  background: var(--canvas);
  color: var(--teal);
}

.notification-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  top: 7px;
  right: 7px;
  background: var(--coral);
  border: 1px solid var(--surface);
}

.topbar-divider {
  width: 1px;
  height: 25px;
  background: var(--line);
}

.date-label {
  font-size: 12px;
}

.date-label i {
  margin-right: 6px;
  color: var(--teal);
}

.content-container {
  max-width: 1450px;
  padding: 38px;
  margin: auto;
}

.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 28px;
}

.page-intro h1 {
  font: 600 28px 'Space Grotesk', sans-serif;
  letter-spacing: -.8px;
  margin: 0;
}

.wave {
  color: var(--coral);
  font-size: 22px;
}

.intro-copy {
  margin: 8px 0 0;
  color: var(--muted);
}

.btn {
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 14px;
}

.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
}

.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.action-btn i {
  margin-right: 7px;
}

.stat-card,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 19px;
  height: 100%;
}

.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 19px;
}

.stat-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  font-size: 17px;
}

.stat-icon.coral {
  color: #d6604d;
  background: #fff0ed;
}

.stat-icon.teal {
  color: var(--teal);
  background: #e4f4f0;
}

.stat-icon.yellow {
  color: #b88315;
  background: #fff5d9;
}

.stat-icon.blue {
  color: #527dc0;
  background: #eaf1fd;
}

.trend {
  font-size: 11px;
  font-weight: 700;
}

.trend.up {
  color: #2ca078;
}

.trend.down {
  color: #df6d60;
}

.stat-card p {
  color: var(--muted);
  margin: 0 0 6px;
  font-size: 12px;
}

.stat-card h2 {
  font: 600 22px 'Space Grotesk', sans-serif;
  margin: 0 0 7px;
  letter-spacing: -.5px;
}

.stat-card small {
  color: var(--muted);
  font-size: 10px;
}

.panel {
  padding: 22px;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.panel-heading h3 {
  font: 600 16px 'Space Grotesk', sans-serif;
  margin: 0 0 5px;
}

.panel-heading p {
  color: var(--muted);
  margin: 0;
  font-size: 11px;
}

.period-select {
  width: auto;
  min-width: 142px;
  border-color: var(--line);
  color: var(--muted);
  font-size: 11px;
  padding: 8px 30px 8px 10px;
}

.chart-legend {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 22px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  margin-right: 5px;
}

.legend-dot.current {
  background: var(--teal);
}

.legend-dot.previous {
  background: #c8d4d1;
}

.chart-wrap {
  height: 245px;
  margin-top: 8px;
}

.activity-panel {
  height: 100%;
}

.plain-btn {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 0;
}

.activity-list {
  margin-top: 19px;
}

.activity-item {
  display: flex;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.activity-item:last-child {
  border: 0;
}

.activity-avatar,
.customer-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  width: 30px;
  height: 30px;
}

.purple {
  color: #775eb8;
  background: #eee9ff;
}

.orange {
  color: #c47e26;
  background: #fff0d8;
}

.green {
  color: #268668;
  background: #ddf4ea;
}

.pink {
  color: #bb5b83;
  background: #fde7f0;
}

.activity-item strong {
  font-size: 12px;
}

.activity-item p {
  display: inline;
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 4px;
}

.activity-item b {
  color: var(--teal);
  font-weight: 600;
}

.activity-item time {
  display: block;
  color: #a0afac;
  font-size: 10px;
  margin-top: 3px;
}

.orders-panel {
  padding-bottom: 0;
  overflow: hidden;
}

.orders-heading {
  padding-bottom: 18px;
}

.heading-actions {
  display: flex;
  gap: 8px;
}

.heading-actions .btn-light {
  color: var(--muted);
}

.heading-actions i {
  margin-right: 5px;
}

.table {
  margin: 0;
  font-size: 12px;
}

.table> :not(caption)>*>* {
  padding: 14px 8px;
  border-bottom-color: var(--line);
}

.table th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.table td {
  color: var(--muted);
}

.table td:first-child,
.table th:first-child {
  padding-left: 0;
}

.table td:last-child,
.table th:last-child {
  /* padding-right: 0;
  text-align: right; */
}

.customer {
  display: flex;
  align-items: center;
  gap: 9px;
}

.customer-avatar {
  width: 29px;
  height: 29px;
}

.customer-avatar.sky {
  color: #397bb4;
  background: #e3f2ff;
}

.customer-avatar.rose {
  color: #b0526a;
  background: #fde7ed;
}

.customer-avatar.mint {
  color: #338b70;
  background: #e0f5eb;
}

.customer strong,
.customer small {
  display: block;
}

.customer strong {
  color: var(--ink);
  font-size: 12px;
}

.customer small {
  font-size: 10px;
  margin-top: 2px;
}

.status {
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.status.success {
  color: #21815f;
  background: #e2f5ed;
}

.status.warning {
  color: #ad7916;
  background: #fff3d4;
}

.status.info {
  color: #477ac0;
  background: #e5effc;
}

.table-menu {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.table-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0;
  color: var(--muted);
  font-size: 11px;
}

.page-footer {
  display: flex;
  justify-content: space-between;
  color: #9aa8a5;
  font-size: 10px;
  padding: 25px 0 10px;
}

.sidebar-overlay {
  display: none;
}

@media (max-width: 991.98px) {
  .sidebar {
    position: fixed;
    z-index: 1040;
    left: -252px;
    transition: left .25s ease;
  }

  .sidebar.open {
    left: 0;
  }

  .sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 1030;
    background: rgba(9, 29, 27, .45);
  }

  .sidebar-overlay.show {
    display: block;
  }

  .topbar {
    padding: 0 22px;
  }

  .content-container {
    padding: 28px 22px;
  }
}

@media (max-width: 575.98px) {
  .topbar {
    height: 64px;
  }

  .breadcrumb-wrap {
    display: none;
  }

  .topbar-actions {
    gap: 8px;
  }

  .date-label,
  .topbar-divider {
    display: none;
  }

  .content-container {
    padding: 24px 16px;
  }

  .page-intro {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .page-intro h1 {
    font-size: 24px;
  }

  .action-btn {
    width: 100%;
  }

  .panel {
    padding: 17px;
  }

  .period-select {
    min-width: 125px;
  }

  .chart-wrap {
    height: 210px;
  }

  .orders-heading {
    gap: 16px;
    flex-direction: column;
  }

  .heading-actions {
    width: 100%;
  }

  .heading-actions .btn {
    flex: 1;
  }

  .table-footer {
    align-items: start;
    gap: 12px;
    flex-direction: column;
  }

  .page-footer {
    padding-bottom: 5px;
  }
}

.status.danger {
  color: #c0544c;
  background: #fdeceb;
}

.page-intro h2 {
  font: 600 22px 'Space Grotesk', sans-serif;
  letter-spacing: -.5px;
  margin: 0;
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-sm {
  padding: 4px 9px;
  font-size: 11px;
}

.icon-action {
  border: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 11px;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
}

.icon-action.approve {
  color: #21815f;
  background: #e2f5ed;
}

.icon-action.reject {
  color: #c0544c;
  background: #fdeceb;
}

.icon-action:hover {
  filter: brightness(.92);
}