src/components/NotesPanelHeader/NotesPanelHeader.scss
@import '../../constants/styles';

.comments-counter {
  height: 19px;
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 16px;

  @include mobile {
    margin-top: 16px;
  }

  span {
    font-weight: bold;
  }

  h2 {
    font-weight: normal;
    font-size: 16px;
  }
}

[data-element='notesPanelHeader'] {
  padding-inline-end: 18px;

  .buttons-container {
    display: flex;
    column-gap: 8px;
    justify-content: space-between;

    .Button {
      height: 28px;
      width: 28px;
      cursor: pointer;

      &:hover:enabled {
        background: var(--view-header-button-hover);
      }

      &.active {
        background: var(--view-header-button-active);

        .Icon {
          color: var(--view-header-icon-active-fill);
        }
      }

      &:disabled {
        cursor: default;
      }
    }
  }

  .sort-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;

    .sort-container {
      display: flex;
      flex-direction: row;
      align-items: center;
      justify-content: flex-end;
      align-self: flex-end;

      .label {
        margin-inline-end: 8px;
      }

      .picked-option {
        text-align: start;
      }
    }
  }

  .input-container {
    display: flex;
    position: relative;
    flex: 1;

    input {
      width: 100%;
      border: 1px solid var(--border);
      border-radius: 4px;
      color: var(--text-color);
      padding-top: 4px;
      padding-inline-end: 8px;
      padding-bottom: 6px;
      padding-inline-start: 8px;
    }

    &.modular-ui-input {
      box-sizing: border-box;
      border: 1px solid var(--border);
      border-radius: 4px;
      height: 28px;
      align-items: center;
      color: var(--text-color);
      padding: 6px 2px 6px 6px;

      &:focus-within {
        outline: none;
        border: 1px solid var(--focus-border);
      }

      input {
        padding-inline-start: 8px;
        padding-inline-end: 26px;
        height: 20px;
        border: none;
        background: transparent;
      }
    }
  }

  .input-button {
    cursor: pointer;
    background: var(--primary-button);
    border-radius: 4px;
    height: 100%;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset-block-end: 0px;
    inset-inline-end: 0px;

    .Icon {
      width: 20px;
      height: 20px;
    }

    svg {
      color: var(--primary-button-text);
    }

    &:hover {
      background: var(--primary-button-hover);
    }
  }

  .divider {
    height: 1px;
    width: 100%;
    background: var(--divider);
    margin: 16px 0px;
  }
}

.modular-ui-header {
  .input-container.modular-ui-input .Icon {
    width: 16px;
    height: 16px;
  }
}
