/* ------------------------- */
/* COMMON */
/* ------------------------- */
.chat{
  width: 100%;
  height: 100%;
  transition: 5s ease-in-out;
  position: relative;
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.chat-out{
  opacity: 0;
  transition: opacity 0.1s ease-in-out;
  height: 0px !important;
  overflow: hidden;
}
.chat-in{
  opacity: 1;
  height: 100% !important;
  transition: opacity 1s ease-in-out;
  overflow: scroll !important;
}

/* ------------------------- */
/* CHAT CONTENT */
/* ------------------------- */
.chat-message{
  width: 100%;
  max-width: 800px;
  padding: 0 15px 20px 15px;
  min-height: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: auto;
  position: relative;
  height: 100%;
  /* overflow: hidden; */
}

.chat-message-paciente{
  background: #FAFAFF;
  border-radius: 28px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  padding: 10px 15px;
  margin-top: 30px;
  position: absolute;
  z-index: 2;
  box-shadow: rgba(0, 0, 0, 0.1) -4px 9px 25px -6px;
  border: 1px solid #EDEDF3;

  .chat-message-paciente-image{
    img{
      width: 40px;
      height: 40px;
      border-radius: 100%;
    }
    .no-portrait, img {
      cursor: pointer;
    }
  }
  .chat-message-paciente-info{
    display: flex;
    flex-wrap: wrap;
    margin-left: 10px;

    .chat-message-paciente-info-name{
      width: 100%; 
      font-size: 0.9em;
      font-weight: 500;
    }
    .chat-message-paciente-info-atendimento{
      width: 100%;
      max-width: 80%;
      overflow: hidden;
      font-size: 0.8em;
      font-weight: 400;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 1;
      position: relative;
      max-height: 28px;
      transition: max-height 0.7s ease-in-out;
      color: #78808D;
    }

    .chat-message-paciente-info-atendimento-full-text {
      display: block;
      -webkit-box-orient: unset;
      -webkit-line-clamp: unset;
      text-overflow: unset;
      white-space: normal;
      max-height: 500px !important;
      max-width: 100% !important;
    }

    .chat-message-paciente-info-atendimento-ver{
      color: #0D53A5;
      cursor: pointer;
      font-size: 0.75em;
      display: flex;
      align-items: center;

      p{
        padding: 0px;
        margin: 0;
      }
    }
  }
  .chat-message-paciente-button-disabled{
    opacity: 0.6 !important;

    button {
      cursor: not-allowed;
    }
  }
  .chat-message-paciente-button{
    display: flex;
    justify-content: end;
    opacity: 1;
    user-select: none;
    
    button{
      background-color: white;
      color: rgb(24, 74, 182);
      border: 1px solid rgba(0, 0, 0, 0.092);
      border-radius: 18px;
      font-size: 0.85em;
      font-weight: bold;
      padding: 6px 11.5px;
      display: flex;
      align-items: center;
      justify-content: center;
      p{
        margin: 0;
        margin-right: 3px;
      }
    }
  }
}

.chat-message-paciente-button-rotate {
  transition: transform 0.3s ease-in-out;
  transform: rotate(180deg);
}

.chat-message-paciente-button-rotate-remove {
  transition: transform 0.3s ease-in-out;
  transform: rotate(0deg);
}

.chat-message-decoration{
  width: 100%;
  z-index: 1;
  height: 100%;
  overflow: scroll;

  .chat-message-decoration-content{
    margin-top: 115px;
    margin-bottom: 60px;
    padding-bottom: 80px;
  }
  .chat-message-decoration-text-1{
    display: flex;
    justify-content: center;
    p{
      width: 200px;
      text-align: center;
      padding: 0;
      margin: 0;
      font-size: 0.85em;
      color: #424A57;
    }
  }
  .chat-message-decoration-suggestion{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
    .chat-message-decoration-suggestion-item{
      width: 98%;
      display: flex;
      align-items: center;
      padding: 12px 10px;
      background-color: #FFFFFFB2;
      border-radius: 8px;
      margin-top: 8px;
      cursor: pointer;
      position: relative;
      overflow: hidden;

      .chat-message-decoration-suggestion-item-logo{
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 10px;
        background-color: #FFFFFF;
        border-radius: 100%;
        width: 30px;
        height: 30px;
        img{
          width: 11px;
        }
      }
      p{
        padding: 0;
        margin: 0 10px;
        font-size: 0.8em;
      }
      .chat-message-decoration-suggestion-item-disabled{
        background-color: rgba(0, 0, 0, 0.217);
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        cursor: not-allowed;
      }
      .chat-message-decoration-suggestion-item-beta{
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgba(226, 49, 49, 0.639);
        color: white;
        position: absolute;
        width: 120px;
        height: 20px;
        top: 8px;
        right: -35px;
        transform: rotate(30deg);
        font-size: 1.2em;
        font-family: "Oswald", serif;
        font-optical-sizing: auto;
        font-style: normal;
        box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
      }
    }
  }
}

.chat-message-field{
  width: 100%;
  background: white;
  border-radius: 8px;
  padding: 10px 0px;
  margin-bottom: 20px;
  
  position: absolute;
  bottom: 0;
  z-index: 2;
  /* max-width: 800px; */

  .chat-message-field-content{
    width: 100%;
    display: flex;
    justify-self: center;
    justify-content: space-around;
    align-items: end;
    position: relative;
    padding: 0 10px;
    
    .chat-message-field-content-icon-filter{
      position: relative;
      width: 35px;
      height: 35px;
      margin-bottom: 0px;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 100%;
      cursor: pointer;

      i{
        margin: 0;
      }
      
      .chat-message-field-content-icon-filter-count{
        display: flex;
        align-items: center;
        justify-content: center;
        background-color: rgb(255, 58, 58);
        color: white;
        border-radius: 100%;
        width: 15px;
        height: 15px;
        font-size: 0.65em;
        font-weight: bold;
        position: absolute;
        top: -2px;
        left: 50%;
        border: 2px solid white;
        padding: 8px;
      }
    }

    .chat-message-field-content-input{
      display: flex;
      align-items: center;
      width: 83%;
      max-height: 100px;
      border: 1px solid rgba(0, 0, 0, 0.156);
      border-radius: 18px;
      position: relative;
      overflow: hidden;
      font-size: 0.75em;
      margin: 0 10px;

      textarea{
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        border-radius: 8px;
        border: none;
        height: 35px;
        max-height: 100px;
        min-height: 35px;
        resize: none;
      }
    }

    i{
      color: rgb(24, 74, 182);
      font-size: 1em;
    }
    .chat-message-field-content-icon-container{
      width: 35px;
      height: 35px;
      margin-bottom: 0px;
      display: flex;
      justify-content: center;
      align-items: center;
      border-radius: 100%;

      i{
        margin: 0;
        cursor: pointer;
        width: 100%;
        height: 100%;
        border-radius: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      #stop-audio{
        font-size: 1.4em;
      }
    }
    .chat-message-field-content-icon-container-active{
      background-color: #184ea6;

      i{
        color: white;
      }
    }

    .chat-message-field-floating-button{
      position: absolute;
      right: 0;
      top: -80px;
      border-radius: 100%;
      padding: 3px;
      background: linear-gradient(-45deg, #82aaff, #ffffff, #4e85dc, #ffffff);
      background-size: 400% 400%;
      animation: gradientButton 7s ease infinite;
      cursor: pointer;
      user-select: none;
      -webkit-user-select: none; 
      -moz-user-select: none;
      -ms-user-select: none;

      i{
        width: 50px;
        height: 50px;
        background-color: white;
        border-radius: 100%;
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 1.4em;
        margin: 0;
        color: #184ea6;
      }
      img{
        width: 50px;
        -webkit-user-drag: none;
        user-drag: none;
        padding: 10px;
        background: white;
        border-radius: 100%;
      }
    }

    .chat-message-field-content-alert-out {
      opacity: 0 !important;
    }
    .chat-message-field-content-alert {
      position: absolute;
      background: rgba(13, 83, 165, 0.38);
      border-radius: 16px;
      box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
      backdrop-filter: blur(7.6px);
      -webkit-backdrop-filter: blur(7.6px);

      top: -70px;
      display: flex;
      align-content: center;
      padding: 10px 20px;
      color: white;
      font-weight: bold;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.472);
      font-size: 0.8em;
      user-select: none;
      opacity: 1;
      transition: 0.5s ease-in-out;
      pointer-events: none;
      /* p{
        margin: 0 !important;
      } */
    }
  }

}
@keyframes gradientButton {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}

/* ------------------------- */
/* CONVERSA */
/* ------------------------- */
.chat-message-content{
  height: 100%;
  padding: 150px 0 200px 0;
  width: 100%;
  display: flexbox;
  overflow: scroll;

  .fa-copy, .fa-star{
    cursor: pointer;
  }

  .pergunta{
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    background-color: #0D53A5;
    color: white;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 0.9em;
    max-width: 55%;
    justify-self: self-end;
    margin-left: auto;
    font-weight: 350;
    white-space-collapse:preserve;
    height: 60px;
    min-height: fit-content;

    p{
      margin: 0;
      padding: 0;
    }
    .pergunta-divider{
      border-top: 1px solid rgba(208, 208, 208, 0.464);
      display: block;
      width: 100%;
      margin-top: 10px;
    }
    .pergunta-buttons{
      display: flex;

      i{
        height: 25px; 
        width: 25px;
        /* background-color: red; */
        display: flex;
        align-items: end;
        justify-content: center;
      }
      .fa-star {
        margin-left: 10px;
      }
    }

  }

  .chat-message-content-resposta{
    background-color: #FFFFFFB2;
    max-width: 65%;
    border-radius: 10px;
    padding: 10px 25px 10px 15px;
    margin: 12px 0;

    .chat-message-content-resposta-decoration{
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: rgb(24, 74, 182);
      min-height: 22px;

      img{
        width: 12px;
      }
      .loader{
        margin: 0;
        width: 12px;
        border: 3px solid rgb(24, 74, 182);
      }
      i{
        width: 22px;
        height: 22px;
        padding: 4.5px;
        cursor: pointer;
      }
      .chat-message-content-resposta-decoration-audio-active{
        background-color: #2154a5bf;
        color: white;
        border-radius: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.8em;
        padding-top: 5px;
      }
    }
    .chat-message-content-resposta-actions{
      margin-top: 8px;
      padding: 8px 0 0 15px;
      position: relative;
      i {
        cursor: pointer;
      }
    }
    .chat-message-content-resposta-filtro{
      position: relative;
      margin-top: 8px;
      padding: 8px 0 0px 2px;
      font-size: 0.9em;
      color: rgb(87, 87, 87);
      p{
        margin: 0;
      }
      i{
        transition: 0.15s ease-in-out;
      }
      .chat-message-content-resposta-filtro-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        height: 27px;
      }
      .chat-message-content-resposta-filtro-detail{
        font-size: 0.85em;
        overflow: hidden;
        max-height: 500px;
        transition: 0.15s ease-in-out;
      }
      .chat-message-content-resposta-filtro-icon{
        transform: rotate(-90deg);
      }
    }
    .chat-message-content-resposta-recursos{
      position: relative;
      margin-top: 8px;
      padding: 8px 0 0px 2px;
      font-size: 0.9em;
      color: rgb(87, 87, 87);
      p{
        margin: 0;
      }
      i{
        transition: 0.15s ease-in-out;
      }
      .chat-message-content-resposta-recursos-header{
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        height: 27px;
      }
      .chat-message-content-resposta-recursos-detail{
        font-size: 0.85em;
        overflow: hidden;
        max-height: 500px;
        transition: 0.15s ease-in-out;
      }
      .chat-message-content-resposta-recursos-icon{
        transform: rotate(-90deg);
      }
    }
    .chat-message-content-resposta-inactive{
      max-height: 0 !important;
    }
    .chat-message-content-resposta-divider{
      position: absolute;
      width: 100%;
      height: 1px;
      background-color: #a1a1a14d;
      top: 0;
      left: 0;
    }
    .resposta{
      margin: 5px 0 0 0;
      font-size: 0.9em;
      justify-self: self-start;
      font-weight: 350;
    }

    .chat-message-content-resposta-documentos{
      position: relative;
      margin-top: 8px;
      padding-top: 8px;
      cursor: pointer;
      .chat-message-content-resposta-documentos-content{
        display: flex;
        border: 1px solid #D5E0EE;
        width: fit-content;
        font-size: 0.9em;
        border-radius: 6px;
        background-color: #FFFFFFB2;
        overflow: hidden;
        min-height: 35px;

        .chat-message-content-resposta-documentos-content-icon{
          background-color: #D5E0EE;
          color: #2153a5;
          display: flex;
          align-items: center;
          justify-items: center;
          
          i{
            padding: 0 10px;
            transform: rotate(-45deg);
          }
        }
        p{
          padding: 0 10px;
          margin: 0;
          align-self: center;
        }
      }
    }

    .chat-message-content-resposta-suggestion{
      position: relative;
      padding-top: 8px;
      margin-top: 8px;
      .chat-message-content-resposta-suggestion-content{
        cursor: pointer;
        display: flex;
        align-content: center;
        border: 1px solid rgb(194, 194, 194);
        width: fit-content;
        font-size: 0.9em;
        border-radius: 4px;
        padding: 8px 15px;
        color: #FFFFFF;
        background-color: #0D53A5;
        border-radius: 100px;
        font-weight: 400;

        p{
          margin: 0;
        }
        i{
          margin-left: 7px;
          padding-top: 4px;
          font-size: 0.9em;
        }
      }
    }
  }
}

/* ------------------------- */
/* FILTER */
/* ------------------------- */
.chat-message-content-filter{
  width: 100%;
  user-select: none;
  padding-bottom: 40px;
  
  .chat-message-content-filter-header{
    background: #FAFAFF;
    padding: 10px 25px 10px 15px;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;

    .chat-message-content-filter-header-decoration{
      width: 100%;
      img{
        width: 12px;
      }
    }
    p{
      margin: 5px 0 0 0;
      font-size: 0.85em;
    }
  }

  .chat-message-content-filter-invalid{
    border: 1px solid rgba(207, 38, 38, 0.35) !important;
  }

  .chat-message-content-filter-periodo-options-data:hover, .chat-message-content-filter-documento-options-data:hover{
    background-color: rgba(24, 74, 182, 0.077);
  }
  .chat-message-content-filter-periodo-options-data-selected:hover{
    background-color: transparent !important;
  }

  .chat-message-content-filter-atendimento{
    background: #f8f8fc;
    padding: 10px 10px 13px 15px;
    margin-top: 10px;
    border-radius: 5px;
    /* box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; */

    .chat-message-content-filter-atendimento-title{
      margin: 5px 0;
      font-size: 0.9em;
    }
    .chat-message-content-filter-atendimento-options{
      background-color: #c9c9c94d;
      border-radius: 4px;
      display: flex;
      align-content: center;
      padding: 5px;
      position: relative;
      cursor: pointer;

      p {
        margin: 0 5px;
        padding: 2px 0;
        width: 50%;
        text-align: center;
        font-size: 0.9em;
        z-index: 3;
      }
      .chat-message-content-filter-atendimento-options-selected{
        background-color: white;
        width: 48%;
        height: 70%;
        position: absolute;
        align-self: center;
        z-index: 2;
        border-radius: 4px;
        left: 0;
        right: auto;
        transition: 0.1s ease-in-out;
        /* box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; */
      }
      .chat-message-content-filter-atendimento-options-selected-first{
        left: 8px;
      }
      .chat-message-content-filter-atendimento-options-selected-second{
        left: 50%;
      }
    }
  }

  .chat-message-content-filter-periodo{
    background: #f8f8fc;
    padding: 10px 10px 13px 15px;
    margin-top: 10px;
    border-radius: 5px;
    /* box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; */

    .chat-message-content-filter-periodo-title{
      margin: 5px 0;
      font-size: 0.9em;
    }
    .chat-message-content-filter-periodo-options{
      background-color: white;
      border: 1px solid rgba(255, 255, 255, 0);
      border-radius: 4px;
      box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;

      .chat-message-content-filter-periodo-options-data{
        padding: 8px 10px;
        display: flex;
        align-items: center;
        position: relative;
        flex-wrap: wrap;
        border-radius: 12px;
        cursor: pointer;

        .chat-message-content-filter-periodo-options-data-radio{
          background-color: #c9c9c94d;
          color: #e9e9e94d;
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 100%;
          width: 20px;
          height: 20px;
        }
        .chat-message-content-filter-periodo-options-data-radio-active{
          background-color: #2153a5;
          color: white;
        }

        .chat-message-content-filter-periodo-options-data-divider{
          position: absolute;
          width: 95%;
          height: 1px;
          background-color: #c9c9c94d;
          top: 0;
        }

        .chat-message-content-filter-periodo-options-data-periodo{
          display: flex;
          justify-content: center;
          height: 0px;
          max-height: 0px;
          width: 100%;
          overflow: hidden;
          transition: 0.4s ease-in-out;
          cursor: default;

          .chat-message-content-filter-periodo-options-data-periodo-input{
            margin: 20px 10px 0 10px;
            td.active{
              border-radius: 0;
            }

            #calendarioField {
              background-color: transparent
            }

            .form-control {
              border: none;
              background-color: #EDEDF3;
            }
          }
        }
        .chat-message-content-filter-periodo-options-data-periodo-active{
          height: 100%;
          max-height: 500px;
        }

        p {
          margin: 0 10px;
          font-size: 0.9em;
        }
      }
    }
  }
  .chat-message-content-filter-documento{
    background: #f8f8fc;
    padding: 10px 15px 13px 15px;
    margin-top: 10px;
    border-radius: 5px;
    /* box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .chat-message-content-filter-documento-title{
      margin: 5px 0;
      font-size: 0.9em;
    }
    .chat-message-content-filter-documento-button{
      margin: 5px 0;
      font-size: 0.85em;
      color: #2153a5;
      cursor: pointer;
    }

    .chat-message-content-filter-documento-options{
      background-color: white;
      border: 1px solid rgba(255, 255, 255, 0);
      border-radius: 4px;
      box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
      width: 100%;

      .chat-message-content-filter-documento-options-data{
        padding: 8px 10px;
        display: flex;
        align-items: center;
        position: relative;
        border-radius: 12px;
        cursor: pointer;

        .chat-message-content-filter-documento-options-data-check{
          background-color: #c9c9c94d;
          color: #e9e9e94d;
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 6px;
          width: 20px;
          height: 20px;
        }
        .chat-message-content-filter-documento-options-data-check-active{
          background-color: #2153a5;
          color: white;
        }

        .chat-message-content-filter-documento-options-data-divider{
          position: absolute;
          width: 95%;
          height: 1px;
          background-color: #c9c9c94d;
          top: 0;
        }

        p {
          margin: 0 10px;
          font-size: 0.9em;
        }
      }
    }
  }

  .chat-message-content-filter-button{
    background: #f8f8fc;
    padding: 10px 15px 13px 15px;
    margin-top: 10px;
    border-radius: 5px;
    /* box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px; */
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    button{
      background-color: #0D53A5;
      color: white;
      font-weight: 550;
      width: 100%;
      height: 50px;
      border: none;
      border-radius: 8px;
      font-size: 14px;
    }
  }
}
.chat-message-content-filter-hidden {
  display: none;
}



/* ------------------------- */
/* EFEITO DIGITAÇÃO NA RESPOSTA */
/* ------------------------- */
.cursor {
  display: inline-block;
  width: 4px;
  height: 10px;
  background: #b1b0b0; /* Cor do cursor */
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ------------------------- */
/* TROCAR PACIENTE */
/* ------------------------- */
.chat-change{
  width: 550px;
  max-width: 90%;
  height: 900px;
  max-height: 90%;
  background: white;
  position: absolute;
  top: 100%;
  z-index: 101;
  border-radius: 10px;
  padding: 20px;
  transition: 0.6s ease-in-out;
  transform: translateY(0);

  .chat-change-content{
    height: 100%;
    max-width: 100%;
    position: relative;
    overflow: hidden;
  }
  .chat-change-paciente, .chat-change-atendimento, .chat-change-documentos{
    height: 100%;
    width: 100%;
    max-width: 100%;
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    background-color: white;
  }
}
.chat-change-active {
  top: 50%;
  transform: translateY(-55%);
}

/* ------------------------- */
/* CHANGE PACIENTE */
/* ------------------------- */
.chat-paciente-options{
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  z-index: 2;

  .chat-paciente-options-content{
    display: flex;
    flex-wrap: wrap;
    height: 100%;

    .chat-paciente-options-content-title{
      width: 100%;
      height: 30px;
      display: flex;
      align-items: center;
      justify-content: space-between;

      .chat-paciente-options-content-title-icon{
        padding: 0px 5px;
        margin-right: 10px;
        border-radius: 100%;
        cursor: pointer;
        height: 30px;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .chat-paciente-options-content-title-icon:active{
        background: rgb(234, 234, 234);
      }
    }
    .chat-paciente-options-content-search{
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      width: 100%;
      height: 30px;
      font-size: 0.85em;
      border-radius: 8px;
      position: relative;
      font-size: 0.9em;
      font-weight: 400;
      color: rgb(77, 77, 77);
      overflow-x: hidden;
      white-space: nowrap;

      input{
        width: 100%;
        height: 100%;
        background: rgb(234, 234, 234);
        border-radius: 8px;
        padding-left: 25px;
      }
      i{
        position: absolute;
        left: 10px;
      }

    }

    .chat-paciente-options-content-text-1{
      display: flex;
      align-items: center;
      width: 100%;
      height: 15px;
      margin-top: 8px;
      font-size: 0.8em;
      color: rgb(141, 141, 141);
    }

    .chat-paciente-options-content-options{
      width: 100%;
      height: 75%;
      overflow-y: scroll;

      .chat-paciente-options-content-options-data{
        display: flex;
        align-items: center;
        padding: 12px 8px;
        margin: 1px 5px 0 5px;
        position: relative;
        cursor: pointer;

        .chat-paciente-options-content-options-data-divider{
          position: absolute;
          top: 0;
          left: 2.5%;
          background: rgba(231, 231, 231, 0.742);
          width: 95%;
          height: 1px;
        }

        .chat-paciente-options-content-options-data-paciente{
          display: flex;
          flex-wrap: nowrap;
          align-content: start;
          font-size: 0.85em;
          width: 100%;

          .chat-paciente-options-content-options-data-paciente-image{
            margin-left: 8px;
            img{
              width: 40px;
              height: 40px;
              border-radius: 100%;
            }
          }

          .chat-paciente-options-content-options-data-paciente-info{
            width: 100%;
            margin-left: 10px;
            display: flex;
            flex-wrap: wrap;
            p{
              margin: 0;
              padding: 0;
            }
            .chat-paciente-options-content-options-data-paciente-info-text{
              width: 100%;
              height: 20px;
              margin-right: 10px;
              overflow-x: hidden;
              position: relative;

              .chat-paciente-options-content-options-data-paciente-info-text-name{
                bottom: 0;
                left: 0;
                width: 100%;
                font-weight: bold;
                white-space: nowrap;
                position: absolute;
              }
            }
            .chat-paciente-options-content-options-data-paciente-info-age{
              font-size: 1em;
              color: rgb(100, 100, 100);
              width: 100%;
            }
          }
          
        }
      }
      .chat-paciente-options-content-options-data:hover{
        background-color: rgba(24, 74, 182, 0.077) !important;
      }

      .chat-paciente-options-content-options-no-results{
        display: flex;
        justify-content: center;
        color: rgb(129, 129, 129);
      }
    }
  }
}

/* ------------------------- */
/* CHANGE ATENDIMENTO */
/* ------------------------- */
.chat-atendimento-options{
  height: 100%;
  z-index: 3;
  background: white;

  .chat-atendimento-options-content{
    display: flex;
    flex-wrap: wrap;
    height: 100%;

    .chat-atendimento-options-content-title{
      width: 100%;
      height: 30px;
      display: flex;
      align-items: center;

      .chat-atendimento-options-content-title-icon{
        padding: 0px 5px;
        margin-right: 10px;
        border-radius: 100%;
        cursor: pointer;
        height: 30px;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .chat-atendimento-options-content-title-icon:active, .chat-atendimento-options-content-title-icon-close:active{
        background: rgb(234, 234, 234);
      }

      .chat-atendimento-options-content-title-icon-close{
        padding: 0px 5px;
        border-radius: 100%;
        margin-left: auto;
        margin-right: 10px;
        cursor: pointer;
        height: 30px;
        width: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
      }


    }

    .chat-atendimento-options-content-paciente{
      border: 1px solid rgba(200, 200, 200, 0.504);
      display: flex;
      flex-wrap: nowrap;
      align-content: center;
      font-size: 0.85em;
      width: 100%;
      border-radius: 8px;
      padding: 2px 0;

      .chat-atendimento-options-content-paciente-image{
        display: flex;
        align-items: center;
        justify-items: center;
        margin: 1px 0 1px 8px;
        img{
          width: 40px;
          height: 40px;
          border-radius: 100%;
        }
      }

      .chat-atendimento-options-content-paciente-info{
        width: 100%;
        margin-left: 10px;
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        p{
          width: 100%;
          margin: 0;
          padding: 0;
        }
        .chat-atendimento-options-content-paciente-info-text{
          width: 100%;
          height: 20px;
          margin-right: 10px;
          overflow-x: hidden;
          position: relative;
          .chat-atendimento-options-content-paciente-info-text-name{
            bottom: 0;
            left: 0;
            width: 100%;
            font-weight: bold;
            white-space: nowrap;
            position: absolute;
          }
        }
        .chat-atendimento-options-content-paciente-info-age{
          font-size: 0.95em;
          color: rgb(100, 100, 100);
        }
      }
    }

    .chat-atendimento-options-content-search{
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      width: 100%;
      height: 30px;
      font-size: 0.85em;
      border-radius: 8px;
      position: relative;
      font-size: 0.9em;
      font-weight: 400;
      color: rgb(77, 77, 77);
      overflow-x: hidden;
      white-space: nowrap;
      margin-top: 10px;

      input{
        width: 100%;
        height: 100%;
        background: rgb(234, 234, 234);
        border-radius: 8px;
        padding-left: 25px;
      }
      i{
        position: absolute;
        left: 10px;
      }
    }

    .chat-atendimento-options-content-text-1{
      display: flex;
      align-items: center;
      width: 100%;
      height: 15px;
      margin-top: 8px;
      font-size: 0.8em;
      color: rgb(141, 141, 141);
    }

    .chat-atendimento-options-content-options{
      width: 100%;
      height: 60%;
      font-size: 0.9em;
      overflow-y: scroll;

      .chat-atendimento-options-content-options-data{
        display: flex;
        align-items: center;
        padding: 12px 8px;
        position: relative;
        margin: 1px 5px 0 5px;
        border-radius: 8px;
        cursor: pointer;

        .chat-atendimento-options-content-options-data-divider{
          position: absolute;
          top: 0;
          left: 2.5%;
          background: rgba(231, 231, 231, 0.742);
          width: 95%;
          height: 1px;
        }

        .chat-atendimento-options-content-options-data-atendimento{
          display: flex;
          flex-wrap: wrap;
          align-content: start;
          font-size: 0.85em;
          width: 100%;
          margin-left: 8px;

          p{
            margin: 0;
            padding: 0;
            color: rgb(129, 129, 129);
          }

          .chat-atendimento-options-content-options-data-atendimento-info{
            width: 50%;
            .chat-atendimento-options-content-options-data-atendimento-info-number{
              font-weight: bold;
              color: black;
            }
            
          }
          .chat-atendimento-options-content-options-data-atendimento-detail{
            width: 50%;
          }

        }
      }
      .chat-atendimento-options-content-options-data:hover{
        background-color: rgba(24, 74, 182, 0.077) !important;
      }

      .chat-atendimento-options-content-options-no-results{
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: rgb(129, 129, 129);
      }
    }

    .chat-atendimento-options-content-message{
      width: 100%;
      margin-top: 20px;
      opacity: 1;
      height: 30px;
      
      p{
        width: 100%;
        color: rgb(139, 139, 139);
        text-align: center;
        font-size: 0.8em;
        margin: 0;
      }
    }
    .chat-atendimento-options-content-message-hidden{
      opacity: 0;
    }
  }
}

/* ------------------------- */
/* DOCUMENTOS */
/* ------------------------- */
.chat-documentos{
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;

  .chat-documentos-wrapper{
    overflow: hidden;
  }

  .chat-documentos-header{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin: 0;

    .chat-documentos-header-info{
      width: 100%;
      background-color: rgba(24, 74, 182, 0.088);
      padding: 8px 15px;
      font-size: 0.9em;
      border-radius: 6px;
    }
  }

  .chat-documentos-content{
    overflow: scroll;
    height: 100%;
    background-color: white;
    padding: 10px 3px 180px 3px;
    border-top: 1px solid #a1a1a14d;
  }

  .chat-documentos-content-item{
    width: 99%;
    height: fit-content;
    padding: 10px;
    margin: auto;
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: rgba(9, 30, 66, 0.25) 0px 4px 8px -2px, rgba(9, 30, 66, 0.08) 0px 0px 0px 1px;


    .chat-documentos-content-item-header{
      display: flex;
      justify-content: space-between;
      align-items: center;
      cursor: pointer;

      .chat-documentos-content-item-header-decoration{
        display: flex;
        border: 1px solid #EDEDF3;
        width: fit-content;
        border-radius: 6px;
        max-width: 95%;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        margin-right: 10px;
        width: 100%;

        .chat-documentos-content-item-header-decoration-left {
          width: 15%;
          max-width: 40px;
          background-color: rgba(24, 74, 182, 0.217);
          border-right: 1px solid #EDEDF3;
          color: #2153a5;
          display: flex;
          align-items: center;
          justify-content: center;
          font-weight: bold;
          display: flex;
          align-items: center;
          font-size: 0.85em;
        }

        .chat-documentos-content-item-header-decoration-right {
          width: 100%;
          padding: 3px 5px;
          margin: 0;

          .chat-documentos-content-item-header-decoration-right-descricao {
            font-size: 0.85em;
          }
          .chat-documentos-content-item-header-decoration-right-detalhe {
            font-size: 0.7em;
          }
        }

        p{
          margin: 0;
        }
      }
      i{
        margin-right: 15px;
        color: rgb(127, 127, 127);
        transform: rotate(0deg);
        transition: 0.15s ease-in-out;
      }
      .chat-documentos-content-item-header-decoration-icon-open{
        transform: rotate(-180deg);
      }

    }

    .chat-documentos-content-item-loader {
      max-height: 5000px;
      overflow: hidden;
      transition: max-height 0.8s ease-in;

      .loader {
        margin: 15px auto;
        border: 4px solid rgb(24, 74, 182);
        width: 30px;
      }
    }
    .chat-documentos-content-item-loader-hidden {
      max-height: 0;
      transition: max-height 0.2s ease-out;
    }

    .chat-documentos-content-item-container {
      max-height: 5000px;
      overflow: hidden;
      transition: max-height 0.8s ease-in;
    }
    
    .chat-documentos-content-item-container-hidden {
      max-height: 0;
      transition: max-height 0.2s ease-out;
    }

    .chat-documentos-content-item-container-atendimento{
      .chat-documentos-content-item-container-atendimento-title{
        color: rgb(158, 158, 158);
        font-size: 0.8em;
        margin-bottom: 3px;
      }
      .chat-documentos-content-item-container-atendimento-descricao{
        font-size: 0.8em;
        font-weight: 500;
      }
      p{
        margin: 0;
      }
    }
    .chat-documentos-content-item-container-conteudo{
      margin-top: 10px;
      word-break: break-word;
      overflow-wrap: break-word;
      white-space: normal;

      .chat-documentos-content-item-container-conteudo-title{
        color: rgb(158, 158, 158);
        font-size: 0.8em;
        margin-bottom: 3px;
      }
      .chat-documentos-content-item-container-conteudo-descricao{
        font-size: 0.8em;
        font-weight: 500;
      }
      p{
        margin: 0;
      }
    }
    .chat-documentos-content-item-container-tipo{
      margin-top: 10px;
      .chat-documentos-content-item-container-tipo-title{
        color: rgb(158, 158, 158);
        font-size: 0.8em;
        margin-bottom: 3px;
      }
      .chat-documentos-content-item-container-tipo-descricao{
        font-size: 0.8em;
        font-weight: 500;
      }
      p{
        margin: 0;
      }
    }
    .chat-documentos-content-item-container-data{
      margin-top: 10px;
      .chat-documentos-content-item-container-data-title{
        color: rgb(158, 158, 158);
        font-size: 0.8em;
        margin-bottom: 3px;
      }
      .chat-documentos-content-item-container-data-descricao{
        font-size: 0.8em;
        font-weight: 500;
      }
      p{
        margin: 0;
      }
    }

    .chat-documentos-content-item-container-profissional{
      display: flex;

      .chat-documentos-content-item-container-profissional-foto{
        display: flex;
        align-items: center;
        img{
          width: 40px;
          height: 40px;
          border-radius: 100%;
        }
      }
      .chat-documentos-content-item-container-profissional-info{
        display: flex;
        flex-wrap: wrap;
        margin-left: 8px;
        align-content: center;

        .chat-documentos-content-item-container-profissional-info-descricao{
          color: rgb(158, 158, 158);
        }
        .chat-documentos-content-item-container-profissional-info-nome{
          font-weight: bold;
        }
        p{
          width: 100%;
          margin: 0;
          font-size: 0.8em;
        }
      }
    }
  }
  .chat-documentos-button{
    width: 100%;
    height: fit-content;
    min-height: fit-content;

    button{
      width: 100%;
      height: 50px;
      color: white;
      background-color: #0D53A5;
      border-radius: 8px;
      border: none;
      font-weight: 500;
      font-size: 14px;
    }
  }
  .chat-documentos-divider{
    width: 100%;
    height: 1px;
    background: rgb(234, 234, 234);
    display: block;
    margin: 13px 0 10px 0;
  }
}





/* ------------------------- */
/* MEDIA */
/* ------------------------- */
@media(max-width:852.98px) {

  .chat-message{
    padding: 0 1px 20px 1px;
  }
  
  .chat-message-paciente{
    margin: 15px 30px 0 30px;

    .chat-message-paciente-info{
      .chat-message-paciente-info-name{
        font-size: 0.7em;
      }
      .chat-message-paciente-info-atendimento {
        max-width: 75%;
        font-size: 0.7em;
      }
      .chat-message-paciente-info-atendimento-ver{
        font-size: 0.7em;
      }
    }
    .chat-message-paciente-button{
      width: 50%;
      button{
        p{
          display: none;
        }
        i{
          font-size: 1.2em;
          padding: 1px 5px;
        }
      }
    }
  }
  .chat-message-decoration{
    margin-left: 15px;
    margin-right: 15px;
    .chat-message-decoration-content{
      margin-top: 110px;
      margin-bottom: 110px;
    }
  }

  .chat-message-field{
    margin: 0;
    border-radius: 18px 18px 0 0;

    .chat-message-field-content{
      i{
        color: rgb(24, 74, 182);
        font-size: 1.2em;
        margin-bottom: 9px;
      }
      .chat-message-field-floating-button{
        right: 15px;
      }
    }
  }
  
  .chat-message-content{
    padding: 100px 0 100px 0;
    .pergunta{
      max-width: 75%;
      font-weight: 400;
    }
    .chat-message-content-resposta{
      max-width: 75%;
      .resposta{
        font-size: 0.9em;
        font-weight: 400;
      }
      .chat-message-content-resposta-documentos-content {
        font-size: 0.7em !important;
      }
    }
  }

  .chat-message-content-filter-periodo-options-data{
    #calendarioField {
      background-color: transparent !important;
      border: none !important;
      box-shadow: none !important;
    }
  }
}