.chat-container{
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.10);
    overflow:auto;
    max-height: calc(100vh - 274px);
    padding:56px 80px 0 80px;
    scrollbar-color: #fff rgba(255, 255, 255, 0.0);
    display: flex;
    flex-direction: column-reverse;
}
.chat-container.it-chat-container{
    max-height: calc(100vh - 374px);
}
.it-chat-container{
    border-radius: 16px 16px 0px 0px;
}
.it-chat-status-container{
    border-radius:  0px 0px 16px 16px;
    background: rgba(255, 255, 255, 0.10);
    min-height: 16px;
}
#chatList{
    overflow-y: auto;
    scrollbar-color: #fff rgba(255, 255, 255, 0.0);
    max-height: calc(100vh - 260px);
    padding-bottom:50px;

    mask-image: linear-gradient(
        to bottom,
        black 0%,
        black calc(100% - 117px),
        transparent 100%
    );

    /* Für Safari / iOS */
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 0%,
        black calc(100% - 117px),
        transparent 100%
    );
}

.chat-container::-webkit-scrollbar-thumb{
    background-color: #fff;
}
.chat-container::-webkit-scrollbar-thumb:hover{
    background-color: #fff;
}
.chat-container::-webkit-scrollbar-button {
    display: none!important;
}

.chat-message{
    color:#fff;
    margin-bottom:50px;
}
.chat-message.highlight .chat-message-content{
    outline: 3px solid #62A880;
}
.chat-message-content{
    border-radius: 10px;
    background: #336A6C;
    color: #FFF;
    padding: 35px 25px 35px 50px;
    transition: all .3s ease-in-out;
}
.chat-message-edit{
    border-radius: 10px 10px 0 0;
    background: #336A6C;
    display: flex;
    flex-direction: row;
    padding:10px 15px 6px 15px;
    gap: 15px;
    opacity:0;
    transition: all .3s ease-in-out;
}
.chat-message:hover .chat-message-content{
    border-radius:10px 0px 10px 10px;
}
.chat-message:hover .chat-message-edit{
        opacity:1;
}
.chat-message.new-message .chat-message-content{
    outline: 3px solid #F9BD98;
}
.input-group .chat-input-wrapper{
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    line-height: 0;
}
.chat-textarea:focus-visible{
    outline:none;
    box-shadow:none;
}
.chat-textarea.dragover {
    border-color: #4a90e2;
    background: #f0f8ff;
}

#file-preview{
    padding: 0px 20px 20px;
}
#file-preview .file-info {
    font-size: 0.9rem;
} 

#file-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 5px;
    line-height: normal;
}
#file-preview-container .icon-holder{
    width: 50px;
    height: 50px;
}
#file-preview-container .icon-holder img{
    width: 35px;
}

#file-btn:before{
    content: url(../../../../../assets/img/pc-peach-small-icon.svg) !important;
    display: inline-block;
    margin-right: 10px;
    width: 30px;
    height: 23px;
}
#file-select-intranet:before{
    content: url(../../../../../assets/img/intranet-peach-small-icon.svg) !important;
    display: inline-block;
    margin-right: 10px;
    width:30px;
    height: 26px;
}

.file-preview-item {
    background: #eff0f0;
    border-radius: 10px;
    padding: 10px 30px 10px 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
        position: relative;
}

.file-preview-item .remove-file {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    padding: 10px;
    position:absolute; 
    top:0;
    right:0;
}
.file-preview-item  .file-name{
    font-size: 17px;
    font-weight: 700;
}
.file-preview-item .remove-file:before{
    content: url(../../../../../assets/img/remove-peach-icon.svg) !important;
    width: 13px;
    height: 13px;
    display: block;
    margin-top: -2px;
}

.new-mark{
    display:flex;
    justify-content: end;
    color:#F9BD98;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    align-items: center;
    margin-right: 20px;
}
.new-mark:before{
    flex: 1;
    content: "";
    background-color: #F9BD98;
    height: 1px;
    margin-right: 20px;
    margin-left: 20px;
}

.chat-message-author{
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 33px; /* 150% */
    margin-right: 20px;
}
.chat-message-time{
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 25px;
}
.chat-message-edited{
    font-size: 16px;
    font-weight: 300;
    margin-top: 8px;
    color: #fff;
}

.chat-user-image{
    margin: 0px 0 0px 0px;
    display: block;
    float: left;
    position:relative
}
.chat-message .chat-user-image{
    margin-left:-35px!important;
}
.chat-user-image img{
    margin-right:12px!important;
}

.chat-meta{
    font-size: 18px;
    font-style: normal;
    font-weight: 300;
    line-height: 25px;
}
.chat-image{
    margin-bottom:15px;
}
.chat-image img{
    border-radius: 5px;
    max-width: 570px;
    width: 100%;
    height: auto;
    margin-top: 15px;
    display: block;
    margin-bottom:15px;
}
.chat-attachment,
.chat-file{
    width: fit-content;
    border-radius: 10px;
    background-color:#fff;
    padding:15px 30px 15px 15px;
    color:#252D2D;
    font-size:20px;
    font-weight:700;
    display:flex;
}
.chat-attachment .icon-holder,
.chat-file .icon-holder{
    margin-right:15px;
    display:flex;
    align-items:center;
}
.chat-attachment-info,
.chat-file-info{
    font-size:17px;
    font-weight:300;
    margin-top:4px;
}

.message-pill{
    border: 2px solid #fff !important;
    margin: 10px 0px 0 -10px;
    background-color: #F9BD98 !important;
    border-radius: 16px;
    position: absolute;
    top: -16px;
    right: -7px;
    min-width: 27px;
    height: 27px;
    color: #fff;
    line-height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 4px 0 4px;
    font-size: 18px;
}

.chat-date{
    font-size:18px;
    font-style: normal;
    font-weight: 300;
}
.unread .chat-date{
    color: #F9BD98;
    font-weight: 700;
}

#chatCategoryFilter.show{
    display: flex;
    flex-wrap: wrap;
    width: 250px;
    padding:20px 10px;
}
#chatCategoryFilter li a{
    border-radius:25px;
    border:1px solid #447A7C;
    padding:7px 18px;
    font-size:18px;
}
#chatCategoryFilter li a:active,
#chatCategoryFilter li a.active{
    background-color: #447A7C;
    color: #fff;
}

.chat-preview-container .message-pill,
.itchat-preview-container .message-pill,
.messenger-preview-container .message-pill{
    border: 0px solid #fff !important;
    width: fit-content;
    min-width: 27px;
    height: 27px;
    font-size: 16px;
    line-height: 22px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    top: 0px;
    right: 0;
    left: 0;
}

.messenger-preview-container,
.chat-preview-container,
.itchat-preview-container{
    border-radius: 10px;
    padding:22px;
    cursor:pointer;
    transition: all .3s ease-in-out;
    font-size:22px;
    display:flex;
}
.messenger-preview-container .col:first-child,
.chat-preview-container .col:first-child,
.itchat-preview-container .col:first-child{
    max-width:60px;
}
.messenger-preview-container.active,
.messenger-preview-container:hover,
.chat-preview-container.active,
.chat-preview-container:hover,
.itchat-preview-container.active,
.itchat-preview-container:hover{
    background-color:#447A7C;
}

.chat-search-input{
    font-weight: 300;
    color: #447A7C;
}
.chat-date-holder{
    white-space: nowrap;
}
.chat-date-marker{
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    line-height: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}
.chat-date-marker:before{
    content: "";
    display: block;
    width: calc(50% - 0px);
    height: 1px;
    background-color: #fff;
    margin-right: 10px;
}
.chat-date-marker:after{
    content: "";
    display: block;
    width: calc(50% - 0px);
    height: 1px;
    background-color: #fff;
    margin-left: 10px;
}

.chat-preview-content{
    line-height:33px;
    padding-right:30px;
}

.dashboard-chat-title{
    font-size: 33px!important;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    margin-bottom: 20px;
    color: #447A7C;
}

.messenger-flag{
    position: fixed;
    top: 50%;
    right: 15px;
    width: 57px;
    height: 57px;
    border-radius: 50%;
    background-color: #62A880;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: background-color .3s ease-in-out;
    border:0px;
}
.messenger-flag:hover{
    background-color: #336A6C;
}
.messenger-flag:before{
    content: url("../img/messenger-icon.svg");
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 24px;
    color: #fff;
    height: 24px;
    width: 29px;
}
.messenger-flag span{
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #F9BD98;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;
}


.emoji-picker {
  background: #fff;
  border: 0px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  padding: 10px;
  width: 280px;
  z-index: 10000;
}

.emoji-search {
  width: 100%;
  padding: 6px 15px;
  margin-bottom: 6px;
  border-radius: 30px;
  border: 0px solid #EFF0F0;
}

.emoji-tabs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
}

.emoji-tab {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
  opacity: 0.6;
}

.emoji-tab.active {
  opacity: 1;
  transform: scale(1.2);
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 200px;
  overflow-y: scroll;
  overflow-x: clip;
  margin: -10px;
  padding: 10px 0 10px 10px;
}

.emoji-item {
  cursor: pointer;
  text-align: center;
  font-size: 20px;
  transition: transform 0.1s;
}

.emoji-item:hover {
  transform: scale(1.3);
}

.offcanvas-header {
    box-shadow: unset!important;
    padding: 86px 54px 23px 54px!important;
}

.offcanvas .btn-close{
    width: 41px;
    height: 41px;
    top: 30px;
    right: 30px;
}
.offcanvas .message-pill{
    border: 0px !important;
    font-size: 12px;
    min-width: 21px;
    height: 21px;
}

.offcanvas.offcanvas-end{
    width: 618px !important;
}
.container-1830 .nav-pills{
    gap:10px;
}
.offcanvas .nav-pills{
    gap:20px;
}
.offcanvas.text-bg-dark {
    color: #fff !important;
    background: linear-gradient(338deg, #336A6C 58.26%, #498486 114.27%)!important;
    box-shadow: 0 3px 30px 0 rgba(134, 197, 199, 0.55)!important;
    border:0px!Important;
}
.container-1830 .nav-pills .nav-link,
.offcanvas .nav-pills .nav-link {
    border-radius: 25px!important;
    border:2px solid #fff!important;
    color: #fff !important;
    font-size:18px;
    padding:3px 18px!important;
    margin-bottom:10px;
    position: relative;
}
.container-1830 .nav-pills .nav-link{
    margin-bottom:5px;
}
.container-1830 .nav-pills .nav-link.disabled,
.offcanvas .nav-pills .nav-link:disabled {
   opacity:0.5;
}
.container-1830 .nav-pills .nav-link.active,
.offcanvas .nav-pills .nav-link.active {
    background: rgba(255, 255, 255, 0.15);
    border:2px solid rgba(255, 255, 255, 0)!important;
}

.offcanvas-body{
    padding: 0 54px!important;
    scrollbar-color: #fff rgba(255, 255, 255, 0.0);
}
.offcanvas-body::-webkit-scrollbar-thumb{
    background-color: #fff;
}
.offcanvas-body::-webkit-scrollbar-thumb:hover{
    background-color: #fff;
}
.offcanvas-body::-webkit-scrollbar-button {
    display: none!important;
}

.userList{
    gap:18px;
}
.selected-user {
  display: flex;
  align-items: center;
  padding: 6px;
  color: #447A7C;
  border-radius: 30px;
  background: #FFF;
  transition: background 0.3s;
}
.selected-user:hover {
  background: rgba(171, 171, 171, 0.20);
}

.selected-user img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin-right: 8px;
}

.selected-user span {
  font-size: 18px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.selected-user button {
  border: none;
  background: transparent;
  color: #888;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.selected-user button:before {
    content: url(../../../../../assets/img/remove-peach-icon.svg) !important;
    width: 10px;
    height: 10px;
    display: block;
    margin-top: -6px;
}

.selected-user button:hover {
  color: #d00;
}

.tox-tinymce{
    border:0px!important;
}
.tox-editor-header{
    box-shadow:none!important;
}
.tox .tox-edit-area{
    background-color: #EFF0F0!important;
    border-radius: 30px!important;
}
.tox .tox-edit-area__iframe {
    background-color: #EFF0F0!important;
    border-radius: 30px!important;
}

.w-100+.select2-container{
    width:100%!important;
}

.pin-img-top{
    border-radius:0 0 35px 35px;
}

.pin-img-holder {
  width: 100%;
  max-width: 1100px;      /* oder was du brauchst */
  aspect-ratio: 16 / 9;  /* bevorzugtes Querformat */
  overflow: hidden;
  position: relative;
}

.pin-img-holder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Wenn das Bild hochkant ist → quadratisch */
.pin-img-holder img.portrait {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.text-area-with-preview{
    border-radius: 30px;
    border: 0px;
    background-color: #eff0f0;
    font-size: 22px;
    padding: 12px 30px;
}
.text-area-with-preview textarea{
    border-radius: 0px;
    border: 0px;
    background-color: #eff0f0;
    padding: 0px;
    color: #4e4e4e;
    width:100%;
    resize:none;
}

#sharePreviewContainer .card-img-top{
    max-height:250px;
    object-fit: cover;
}

.select2-notice-data + .select2-container ul.select2-selection__rendered,
.select2-user-data + .select2-container ul.select2-selection__rendered{
    overflow: inherit;
    background-color: transparent !important;
    display:flex;
    flex-wrap: wrap;
    gap:10px;
    padding:0!important;
}
.select2-notice-data + .select2-container ul.select2-selection__rendered:after,
.select2-user-data + .select2-container ul.select2-selection__rendered:after{
    content: unset;
    flex: auto;
    
}
.select2-notice-data + .select2-container li.select2-search,
.select2-user-data + .select2-container li.select2-search{
    border-radius: 28px;
    background-color: #eff0f0;
    min-height: 57px;
    padding: 9px 36px 6px 25px !important;
    width: 100%;
}

.select2-notice-data + .select2-container li.select2-search:after ,
.select2-user-data + .select2-container li.select2-search:after {
    content:"";
    position: absolute;
    background-image: url(/assets/img/icons/search-grey-icon.svg);
    transform: rotate(0deg);
    background-repeat: no-repeat;
    background-size: 20px;
    top: 18px !important;
    right: 20px !important;
    width: 20px;
    height: 21px;
}
.select2-notice-data + .select2-container li.select2-selection__choice,
.select2-user-data + .select2-container li.select2-selection__choice{
    order:2;
    z-index: 1;
    background-color: transparent !important;
    border-radius: 0px !important;
    color:#447A7C !important;
    font-size:18px !important;
    font-weight:500 !important;
}
/* .select2-user-data + .select2-container li.select2-selection__choice .resultImg img{
    width:30px;
    height: 30px;
} */

.select2-notice-data + .select2-container--default .select2-selection--multiple .select2-selection__choice__remove,
.select2-user-data + .select2-container--default .select2-selection--multiple .select2-selection__choice__remove{
    color: #F9BD98 !important;
    font-size: 24px;
    margin-right: 5px;
}