@import 'scss/font-family.scss';
@import 'theme/variables.scss';

.note-container {
  display: block;

  .note-header {
    line-height: 18px;
    height: 26px;
    font-family: $font-family;

    &.pointer {
      cursor: pointer;
    }

    .note-label {
      font-weight: 800;
      font-size: 14px;
      flex: 1;

      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }

    .note_upper_hold {
      width: 18px;

      .note_tools_container {
        margin-right: 7px;
      }
    }

    .note-arrow {
      transition: all 0.3s ease-in-out;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
      position: relative;

      svg-icon {
        svg {
          display: flex;
        }
      }
    }
    .rotate {
      transform: rotate(180deg);
      transition: all 0.3s ease-in-out;
    }
  }

  @keyframes growDown {
    0% {
      max-height: 0px;
      overflow: hidden;
    }
    100% {
      max-height: 600px;
      overflow: auto;
    }
  }

  .note-body {
    position: relative;
    overflow: hidden;
    padding-right: 6px;
    cursor: text;
    max-width: 607px;

    &.innactive {
      height: 0px !important;
      overflow: hidden !important;
      opacity: 0 !important;
      margin-top: 0px !important;
      margin-bottom: 0px !important;
    }

    &.active {
      overflow: visible !important;
      opacity: 1 !important;
    }

    .note-textarea {
      overflow: auto;
      line-height: 18px;
      min-height: 15px;
      padding-bottom: 12px;
      padding-top: 5px;
      max-height: 75px;
      font-size: 14px;

      width: 100%;
      resize: none;
      color: $ta-black;
      border: none;
      box-shadow: none;
      outline: none;

      scrollbar-width: none !important; /* Firefox */

      &.details_textarea {
        padding-bottom: 7px;
        padding-right: 20px;
      }

      &::-webkit-scrollbar {
        width: 3px;
      }
      &::-webkit-scrollbar-thumb {
        background-color: transparent;
        border: 6px solid $ta-light-grey;
        border-radius: 1px;
      }
      &::-webkit-scrollbar-track {
        padding: 0;
        position: relative;
        right: 0;
        top: 0;
        background: transparent;
      }

      &::-webkit-input-placeholder {
        color: $bw-9 !important;
      }

      &::-moz-placeholder {
        color: $bw-9 !important;
      }

      &:-ms-input-placeholder {
        color: $bw-9 !important;
      }

      &::-ms-input-placeholder {
        color: $bw-9 !important;
      }

      &::placeholder {
        color: $bw-9 !important;
      }

      &:empty:before {
        content: attr(placeholder);
        color: $grey-3;
      }
    }

    [contentEditable='true']:empty:not(:focus):before {
      content: attr(data-text);
    }

    .spinner {
      position: absolute;
      bottom: 1px;
      right: 0;
    }
  }

  // Custom class
  &.note-small {
    .note-header {
      padding: 0px;
    }
    .note-body {
      padding: 0px;
    }
  }
}
