@import "../../../assets/scss/variables";
/*-----General-----*/

.quick-access {
  .my-day {
    background-color: #E3AC16;

    height: 44px;
  }

  overflow-y: scroll;
  overflow-x: hidden;
  white-space: nowrap;
  //display: flex;
  //flex-direction: column;
  //justify-content: space-between;
  .quick-note {
      display: flex;
      flex-grow: 1;
      height: calc(100% - 610px);
      flex-direction: column;
      min-height: 110px;
      justify-content: flex-start;


    .note-area {
      padding-top: 1rem;
      height: 50%;
      max-height: 260px;
    }

    textarea {
      overflow-y: auto;

      &::-webkit-scrollbar {
        width: 5px;
        height: 50% !important;
        transform: scaleY(0.5) !important;
      }

      /* Track */
      &::-webkit-scrollbar-track {
        background: #e9f0f9;
        border-radius: 10px;
      }

      /* Handle */
      &::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 10px;
        //background-color: transparent;
        //border-top: 150px solid #1A73E8 /*or any height and color you want*/;
      }

      /* Handle on hover */
      &::-webkit-scrollbar-thumb:hover {
        background: transparent;
      }

      border-radius: 4px;
      padding: 10px;
      border: 1px dashed $alternate-text-color;
      background-color: $bg-form;
      width: 100%;
      resize: none;
      height: 100%;
      color: $text-color;
      outline: none;

      &:focus-visible {
        border: 1px dashed $secondary-color;
        background-color: white;
      }

      &:hover {
        border: 1px dashed $secondary-color;
        background-color: white;
      }


    }
  }

  &::-webkit-scrollbar {
    width: 5px;
    height: 50% !important;
    transform: scaleY(0.5) !important;
  }

  &::-webkit-scrollbar {
    display: none;
  }

  /* Track */
  &::-webkit-scrollbar-track {
    background: #e9f0f9;
    border-radius: 10px;
    margin-top: 70px;
    margin-bottom: 20px;
  }

  /* Handle */
  &::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;

  }

  /* Handle on hover */
  &::-webkit-scrollbar-thumb:hover {
    background: transparent;
  }

  & > div {
    overflow: hidden;
  }

  /*-----Quick access header-----*/


  .quick-access-header,
  .personal-file-header {
    padding-left: 0rem;
    padding-bottom: 2rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid #ccc;
    display: flex;
    align-items: flex-end;
    gap: 1rem;

    & h3,
    & p {
      margin-bottom: 0rem;
      font-size: 1.5rem;
      font-weight: bold;
      color: #040059;
    }

    .quick-access-app-sum,
    .personal-file-sum {
      margin-bottom: -2px;
    }
  }

  /*-----Quick access blocks-----*/

  .qa-block-list,
  .pf-block-list {
    display: flex;
    flex-direction: column;
    gap: 0rem;

    .qa-block-container,
    .pf-block-container {

      position: relative;
      height: 55px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 0px;
      padding-left: 36px;

      .normal {
        padding-right: 25px;
      }

      &::after {
        content: " ";
        position: absolute;
        bottom: -2px;
        left: 1.3rem;
        right: 1.3rem;
        border-bottom: 1px dashed #ccc;
      }

      .garbage-bin,
      .drag {
        display: none;
      }

      .qa-block-left,
      .pf-block-left {

        .qa-role,
        .pf-tag {
          font-size: 1.4rem;
          font-weight: 500;
          letter-spacing: 0.24px;
          color: #040059;

          line-height: 1.2;
        }

        .qa-role {
          font-weight: 900;
          font-size: 1rem;
          margin-bottom: 0.2rem;
        }

        .qa-title,
        .pf-content {
          font-size: 1.4rem;
          font-weight: normal;
          letter-spacing: 0px;
          color: #040059;
          text-transform: capitalize;
          line-height: 1.2;
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
        }
      }

      &:hover {
        //padding: 0rem;
        background-color: #177BFF11;

        .normal {
          //background-color: #177BFF11;
          //margin-left: 0rem;
          //padding: 1rem 1.29rem 1rem 1.29rem;

          //align-items: center;
          //justify-content: center;
          //cursor: pointer;
          //border-bottom: none;

          .qa-block-left,
          .pf-block-left {
            //display: flex;
            //align-items: center;
            //gap: 1.33rem;

            .garbage-bin {
              display: block;
              position: absolute;
              right: 12px;
              top: 50%;
              transform: translateY(-50%);
            }
          }

          .drag {
            display: block;
          }
        }
      }
    }


    .pf-block-container {
      padding: 1rem 1.33rem 1rem 4rem;
      margin-top: -9px;

      &::after {
        content: " ";
        position: absolute;
        bottom: 2px;
        left: 1.3rem;
        right: 1.3rem;
        border-bottom: 1px dashed #ccc;
        margin-bottom: 2px;
      }

      &:hover {
        .pf-tag {
          margin-left: 0.1rem;
        }
      }

      .pf-tag {
        text-transform: capitalize !important;
        font-size: 1.4rem !important;
        margin-right: 0.9rem;
      }
    }

    .qa-block-link {
      position: relative;

    }


    .qa-block-container:has(.to-be-deleted) {
      padding: 0rem !important;


      &:hover {
        padding: 0rem;
      }

      &::after {
        display: none;
      }
    }

    /*-----Empty blocks-----*/

    .add-block {
      background-color: #F3F8FC;
      border: 1px dashed #ccc;
      border-radius: 0.5rem;
      text-align: center;
      margin: 9.31px 13px;
      transition: 0.5s;

      & img {
        padding: 0.9rem 0rem;
      }

      &:hover {
        background-color: #fff;
        cursor: pointer;
      }

      &:first-child {
        margin-top: 1rem;
      }
    }
  }


  /*-----Delete block styles-----*/

  .to-be-deleted {
    width: 100%;
    margin-left: 0rem;
    padding: 1rem 1.33rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1a73e8;
    cursor: pointer;
    border-bottom: none;
    z-index: 9999999999;

    .qa-block-left-deleted {
      display: flex;
      align-items: center;
      gap: 1.33rem;

      .delete-msg {
        font-size: 1.4rem;
        letter-spacing: 0.28px;
        color: #fff;
      }
    }

    .qa-block-right-deleted {
      min-width: 11rem;
      align-items: center;
      justify-content: space-between;

      button {
        font-size: 1.2rem;
        font-weight: 700;
        letter-spacing: 0.24px;
        padding: 0.7rem 1.5rem;
        border: none;
        border-radius: 5px;
        background-color: #fff;
        color: #040059;
        cursor: pointer;
        box-shadow: 0px 3px 6px #00000029;
        transition: 0.3s;

        &:hover {
          color: #1a73e8;
        }
      }
    }
  }

  &:hover {
    &::-webkit-scrollbar {
      display: block;
    }
  }

}

/*-----Quick access bar visibility toggle-----*/

.closed {
  .quick-note,
  .my-day {
    display: none;
  }

  .personal-file,
  .pf-block-list,
  .qa-header,
  .qa-block-list {
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
  }
}

.my-day {
  margin-top: -38px;
  color: white;

  &--icon {
    margin: 0 20px;
  }
}

.open {

.qa{flex-grow: 1;}
  .personal-file {
    margin-top: 15px;
  }

  .myday,
  .personal-file,
  .pf-block-list,
  .qa-header,
  .qa-block-list {
    opacity: 1;
    transition: 0.4s;
    pointer-events: all;
  }
  .qa-block-list {
    opacity: 1;
    transition: 0.4s;
    /* overflow-y: scroll; */
    overflow-y: auto;
    height: 100%;
    pointer-events: all;

    &::-webkit-scrollbar {
      width: 5px;
      height: 50% !important;
      transform: scaleY(0.5) !important;
    }

    /* Track */
    &::-webkit-scrollbar-track {
      background: #e9f0f9;
      border-radius: 10px;
    }

    /* Handle */
    &::-webkit-scrollbar-thumb {
      background: #ccc;
      border-radius: 10px;
      //background-color: transparent;
      //border-top: 150px solid #1A73E8 /*or any height and color you want*/;
    }

    /* Handle on hover */
    &::-webkit-scrollbar-thumb:hover {
      background: transparent;
    }
  }
}


.drag-container {
  position: relative;

  .drag-handle {
    z-index: 9999999;
    position: absolute;
    height: 100%;
    width: 34px;
    display: flex !important;
    align-items: center;
    justify-content: center;

  }

}

