body.am-admin .nav,
body.am-admin .topbar,
body.am-admin footer.footer,
body.am-admin .livechat,
body.am-admin .deal-strip {
  display: none !important;
}

body.am-admin {
  background: #f3f1ee;
}

body.am-admin .admin-page:not(.admin-page--wide) {
  width: min(420px, calc(100% - 2rem));
  margin: 8vh auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #e4e0d9;
}

body.am-admin .auth-form input {
  width: 100%;
  min-height: 44px;
  margin-top: 0.35rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #e4e0d9;
  background: #fff;
}

body.am-admin .admin-page:not(.admin-page--wide) h1 {
  font-family: Sora, sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
}

body.am-admin .admin-page--wide {
  width: auto;
  max-width: none;
  margin: 0 0 0 240px;
  padding: 1.25rem 1.25rem 3rem;
}

body.am-admin .admin-head h1,
body.am-admin .admin-page--wide > .stats {
  display: none !important;
}

body.am-admin .admin-head {
  align-items: center;
  margin: 0 0 1rem;
}

body.am-admin .admin-head .muted {
  font-size: 0.82rem;
}

body.am-admin .admin-tabs {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.am-desk__side {
  position: fixed;
  z-index: 40;
  top: 0;
  bottom: 0;
  left: 0;
  width: 240px;
  display: flex;
  flex-direction: column;
  background: #141414;
  color: #fff;
}

.am-desk__brand {
  margin: 0;
  padding: 1.25rem 1.1rem 0.9rem;
  font-family: Sora, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.am-desk__brand em {
  font-style: normal;
  color: #c8c4be;
  font-size: 0.72rem;
}

.am-desk__brand strong {
  font-weight: 600;
}

.am-desk__nav {
  display: grid;
  padding: 0.6rem;
  overflow: auto;
}

.am-desk__nav button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.72rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f4f1ec;
  font: 500 0.92rem/1.2 Sora, sans-serif;
  text-align: left;
  cursor: pointer;
}

.am-desk__nav button.is-active,
.am-desk__nav button:hover {
  background: #b70f16;
}

.am-desk__bar,
.am-desk__backdrop,
.am-back {
  display: none;
}

.am-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.am-card,
.am-panel,
.am-users {
  background: #fff;
  border: 1px solid #e4e0d9;
}

.am-card {
  padding: 0.95rem 1rem;
}

.am-card strong {
  display: block;
  font-family: Sora, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.am-card span,
.am-users__head p,
.am-count,
.am-empty,
.am-table-wrap span {
  color: #6d675f;
  font-size: 0.8rem;
}

.am-panel,
.am-users {
  padding: 1rem;
}

.am-panel h2,
.am-users h2 {
  margin: 0 0 0.8rem;
  font-family: Sora, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-transform: none;
}

.am-users__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

.am-users__head h2 {
  margin-bottom: 0.25rem;
}

.am-users__head input {
  width: min(280px, 100%);
  min-height: 42px;
  padding: 0.45rem 0.75rem;
  border: 1px solid #e4e0d9;
  background: #fff;
}

.am-table-wrap {
  overflow: auto;
}

.am-table-wrap table {
  width: 100%;
  border-collapse: collapse;
}

.am-table-wrap th,
.am-table-wrap td {
  padding: 0.7rem 0.65rem;
  border-bottom: 1px solid #efece7;
  text-align: left;
  vertical-align: top;
  font-size: 0.88rem;
  white-space: nowrap;
}

.am-table-wrap th {
  color: #6d675f;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.am-pill {
  display: inline-flex;
  padding: 0.15rem 0.45rem;
  background: #eef6f1;
  color: #1f6b45;
  font-style: normal;
  font-size: 0.75rem;
}

.am-overview,
.am-users {
  display: none;
}

body.am-admin[data-desk="overzicht"] .admin-page--wide > :not(.am-overview):not(.am-desk__bar):not(.admin-head),
body.am-admin[data-desk="users"] .admin-page--wide > :not(.am-users):not(.am-desk__bar):not(.admin-head) {
  display: none !important;
}

body.am-admin[data-desk="overzicht"] .am-overview,
body.am-admin[data-desk="users"] .am-users {
  display: block;
}

@media (min-width: 900px) {
  .am-cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  body.am-admin .admin-page--wide {
    margin-left: 0;
    padding-top: 4.2rem;
  }

  .am-desk__bar {
    position: fixed;
    z-index: 35;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 56px;
    padding: 0 0.8rem;
    background: #fff;
    border-bottom: 1px solid #e4e0d9;
  }

  .am-desk__burger {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #e4e0d9;
    background: #fff;
    font-size: 1.3rem;
  }

  .am-desk__title {
    font-family: Sora, sans-serif;
    font-size: 1rem;
  }

  .am-desk__side {
    transform: translateX(-105%);
    transition: transform 0.18s ease;
  }

  body.am-desk-open .am-desk__side {
    transform: none;
  }

  .am-desk__backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    border: 0;
    background: rgba(18, 18, 18, 0.45);
  }

  body.am-desk-open .am-desk__backdrop {
    display: block;
  }

  .am-users__head {
    display: grid;
  }

  .admin-split:not(.am-show-detail) .admin-detail {
    display: none;
  }

  .admin-split.am-show-detail .admin-list {
    display: none;
  }

  .am-back {
    display: inline-flex;
    margin-bottom: 0.8rem;
    border: 0;
    background: transparent;
    color: #121212;
    font-weight: 600;
    cursor: pointer;
  }
}
