.menu-button {
  position: absolute;
  left: max(20px, calc((100% - 1120px) / 2));
  top: 50%;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  display: grid;
  align-content: center;
  gap: 4px;
  transform: translateY(-50%);
  cursor: pointer;
}

.menu-button span {
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: #fff;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(22, 25, 23, .46);
}

.menu-overlay[hidden] {
  display: none;
}

body.menu-open {
  overflow: hidden;
}

body.request-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.side-menu {
  width: min(310px, 86vw);
  height: 100%;
  padding: 20px;
  background: #fff;
  box-shadow: 18px 0 45px rgba(0, 0, 0, .14);
  animation: menu-in .18s ease-out;
}

.side-menu > header {
  min-height: 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.side-menu > header b {
  font-size: 16px;
}

.side-menu > header button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #eef0ef;
  font-size: 21px;
  cursor: pointer;
}

.side-menu nav {
  padding-top: 13px;
  display: grid;
  gap: 5px;
}

.side-menu nav button {
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.side-menu nav button:hover,
.side-menu nav button.active {
  background: #eef1ef;
}

.side-menu nav button > i {
  width: 20px;
  color: var(--green);
  text-align: center;
  font-size: 16px;
}

.clients-page {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 90px;
}

.clients-head {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.clients-head h1 {
  margin-bottom: 6px;
}

.clients-head p {
  margin: 0;
  color: var(--muted);
}

.clients-search {
  height: 48px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.clients-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.clients-search > .search-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.clients-search > .search-icon::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 1px;
  width: 8px;
  height: 8px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.clients-search > .search-icon::after {
  content: '';
  position: absolute;
  left: 10px;
  top: 10px;
  width: 5px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.clients-search small {
  padding: 2px 7px;
  border-radius: 5px;
  background: #eef0ef;
  color: var(--muted);
  font-size: 9px;
}

.clients-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.client-row {
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.client-row b,
.client-row span {
  display: block;
}

.client-row b {
  margin-bottom: 5px;
  font-size: 13px;
}

.client-row span {
  color: var(--muted);
  font-size: 10px;
}

.clients-pagination {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 110px 1fr 110px;
  align-items: center;
  gap: 10px;
}

.clients-pagination button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.clients-pagination button:disabled {
  opacity: .38;
  cursor: not-allowed;
}

.clients-pagination > span {
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.clients-pagination > span b {
  color: var(--ink);
}

.client-request-button {
  width: 100%;
  margin-top: 14px;
}

.request-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
  padding: 18px;
  background: rgba(22, 25, 23, .52);
  display: grid;
  place-items: center;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.request-modal {
  width: min(440px, 100%);
  max-height: calc(100dvh - 36px);
  padding: 22px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .18);
  overflow-y: auto;
}

.request-modal > header {
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.request-modal h2 {
  margin: 0 0 4px;
  font-size: 19px;
}

.request-modal header p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.request-modal .modal-close {
  width: 33px;
  height: 33px;
  border: 0;
  border-radius: 50%;
  background: #eef0ef;
  font-size: 20px;
  cursor: pointer;
}

.request-form {
  display: grid;
  gap: 12px;
}

.request-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.request-form input {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfa;
  outline: 0;
}

.request-form input:focus {
  border-color: #89948d;
}

.request-form .primary {
  width: 100%;
  margin-top: 3px;
}

@keyframes menu-in {
  from { transform: translateX(-25px); opacity: 0; }
}

@media (max-width: 700px) {
  .menu-button {
    left: 9px;
    width: 36px;
    height: 36px;
  }

  .clients-page {
    width: calc(100% - 18px);
    padding: 20px 0 80px;
  }

  .clients-head h1 {
    font-size: 24px;
  }

  .clients-search input,
  .request-form input {
    font-size: 16px;
  }

  .clients-list {
    grid-template-columns: 1fr;
  }

  .client-row {
    min-height: 68px;
    padding: 12px;
  }

  .clients-pagination {
    grid-template-columns: 92px 1fr 92px;
    gap: 6px;
  }

  .clients-pagination button {
    min-height: 38px;
    padding: 0 8px;
    font-size: 10px;
  }

  .clients-pagination > span {
    font-size: 9px;
  }

  .request-overlay {
    place-items: start center;
    padding: max(10px, env(safe-area-inset-top)) 9px 9px;
  }

  .request-modal {
    max-height: calc(100dvh - 18px);
    padding: 18px;
    border-radius: 14px;
  }
}
