.page-new-design {

  .users-panel-header, .list-panel-header, .data-browser-header, .matching-list-header, .mail-browser-search {
    .list-search-control {
      position: relative;
      width: 420px;
      height: 35px;
      border: 1px solid var(--color-input-border);
      border-radius: 6px;
      background: var(--white);
      &:focus-within {
        border-color: var(--color-focus);
        outline: var(--input-focus-outline);
        outline-offset: 0;
      }
      > .search-input-wrap {
        position: relative;
        display: flex;
        width: 100%;
        height: 100%;
      }
      input[type="text"] {
        width: 100%;
        height: 100%;
        padding: .5rem 64px .5rem .75rem;
        border: 0;
        border-radius: 0;
        background: transparent;
        &:focus { padding-left: .75rem; outline: 0; background-image: none; }
      }
      .search-clear-button {
        position: absolute;
        top: 50%;
        right: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--slate-400);
        cursor: pointer;
        transform: translateY(-50%);
        &[hidden] { display: none; }
      }
      .search-control-button {
        position: absolute;
        top: 50%;
        right: 4px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
        transform: translateY(-50%);
        > img { width: 16px; height: 16px; }
      }
    }
  }

  .users-role-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    min-height: 26px;
    margin-top: 16px;
  }

  .users-role-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 26px;
    padding: 0 10px;
    border: 1px solid var(--slate-200);
    border-radius: 100px;
    background: var(--white);
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;

    &:first-child { width: 48px; }
    &:not(:first-child) { width: auto; white-space: nowrap; }
    &.is-active {
      border-color: var(--color-primary);
      background: var(--color-primary);
      color: var(--white);
    }
    &:not(.is-active) { font-weight: 700; }
  }

  .users-name-wrap,
  .users-permission-cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .45rem;
  }

  .users-table {
    tbody > tr > td:first-child { color: var(--slate-400); }
    tbody > tr > td:nth-child(2) { color: var(--slate-800); }
    tbody > tr > td:nth-child(3),
    tbody > tr > td:nth-child(4) { color: var(--slate-500); }
  }

  .users-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: var(--white);
    font-weight: 700;
  }

  .users-avatar-color-0 { background: #00D492; }
  .users-avatar-color-1 { background: #FF8904; }
  .users-avatar-color-2 { background: #FF637E; }
  .users-avatar-color-3 { background: #00BCFF; }
  .users-avatar-color-4 { background: #A687FF; }

  .users-role-chip {
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--slate-100);
    color: var(--slate-600);
    font-size: 12px;
    font-weight: 700;

    &.is-admin {
      background: var(--sky-100);
      color: #0069A8;
    }
  }

  .users-health-status {
    color: var(--slate-400);
    font-size: 12px;

    &::before {
      display: inline-block;
      width: 6px;
      height: 6px;
      margin-right: 6px;
      border-radius: 50%;
      background: #CBD5E1;
      content: "";
    }

    &.is-consented {
      color: var(--custom-green-600);

      &::before { background: #00D492; }
    }
    &.is-exempt { color: var(--slate-400); }
  }

  .checkbox-options {
    display: inline-block;
    width: calc(100% - 8.5rem);
    vertical-align: top;
  }

  .checkbox-option {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    width: auto;
    margin: 0 .75rem .5rem 0;
  }

  #user-modal-overlay, #news-modal-overlay {
    .checkbox-group {
      align-items: start;

      > .checkbox-options {
        display: flex;
        flex-wrap: wrap;
        align-content: flex-start;
        gap: 16px;
        width: 328px;
        min-height: 83px;
      }

      > .user-group-options {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 328px;
        height: 72px;
        padding: 6px 8px;
        border: 1px solid var(--color-input-border);
        border-radius: 6px;
        overflow-y: auto;
      }

      &:last-of-type {
        min-height: 21px;

        > .checkbox-options { min-height: 21px; }
      }
    }

    .checkbox-option {
      align-items: center;
      gap: 6px;
      margin: 0;
      color: var(--slate-500);
      font-size: 14px;
      line-height: 17px;
      white-space: nowrap;

      input {
        appearance: none;
        flex: 0 0 13px;
        width: 13px;
        height: 13px;
        min-width: 13px;
        min-height: 13px;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        border: 1px solid var(--color-input-border);
        border-radius: 4px;
        background: var(--white);

        &:checked {
          border-color: #0EA5E9;
          background: #0EA5E9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9' viewBox='0 0 9 9'%3E%3Cpath d='m1 4.5 2 2L8 1.5' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 9px 9px no-repeat;
        }
      }
    }

  }

  @media (max-width: 768px) {
    .users-panel-header, .list-panel-header, .data-browser-header, .matching-list-header, .mail-browser-search {
      .list-search-control { width: 100%; flex-basis: auto; }
    }

    .users-panel-header-row {
      align-items: stretch;
      flex-direction: column;
      height: auto;
    }

    .users-role-tabs { margin-top: 16px; }

    #user-modal-overlay .modal {
      .checkbox-group > .checkbox-options { width: 100%; }
    }
  }
}
