/* Messages (old memo UI) — moved from style20200508.css MESSEGES block */

#memonavileft>div {
  display: block;
  color: #007ace;
  font-size: var(--rd-fontsize-4);
  letter-spacing: 0;
  line-height: 19px;
  margin: 10px;
  width: calc(100% - 20px);
  padding: 5px;
  box-sizing: border-box;
  margin: 5px;
}

#memonavileft>div:before {
  content: "";
  display: inline-block;
}

#outboxtable td {
  color: #637381;
  font-size: var(--rd-fontsize-4);
  letter-spacing: 0;
  line-height: 19px;
}

#outboxtable td:last-child {
  padding-right: 10px;
}

#outboxtable input {
  margin: 0;
}

#outboxtable tbody {
  height: 70%;
  overflow-y: auto;
  background-color: var(--rd-font-light);
}

#boxfoot {
  border: var(--rd-borderwidth-border-default) solid #aaa;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  height: 35px;
  background-color: rgba(143, 157, 174, 0.05);
  color: #637381;
}

#memoaction {
  width: 100%;
  display: block;
  background-color: var(--rd-font-light);
  border: var(--rd-borderwidth-border-default) solid var(--cl-light-grey);
  border-radius: var(--rd-borderradius-border-md);
  display: grid;
  grid-template-areas: "NAV TOP" "NAV CONT" "NAV BUTTON";
  grid-template-columns: calc(6 * 100% / 24) calc(18 * 100% / 24);
}

#tablebuttontop {
  grid-area: TOP;
  padding: 10px;
}

#memonavileft {
  grid-area: NAV;
  position: relative;
  padding-right: 10px;
}

#memonavileft:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--rd-spacing-x-sm);
  background-size: 100%;
  background-image: url(../img/shadow.png);
  opacity: 0.4;
}

#outboxtable {
  grid-area: CONT;
}

.memopaginator {
  grid-area: BUTTON;
  padding: 10px;
}

#boxdescr {
  display: inline-block;
  margin: 0;
  color: #637381;
  font-size: var(--rd-fontsize-5);
  font-weight: var(--rd-fontweights-open-sans-1);
  letter-spacing: 0;
  line-height: 24px;
}

@media (max-width: 700px) {
#memoaction {
    grid-template-areas: "NAV" "TOP" "CONT" "BUTTON";
    grid-template-columns: 100%;
  }
#memonavileft>div {
    display: inline-block;
    padding: 5px;
  }
#memonavileft:after {
    display: none;
  }
#memonavileft>div {
    width: auto;
  }
}

.sendby {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.sendby:hover {
  overflow: unset;
  position: absolute;
  width: 100%;
  white-space: unset;
  background-color: var(--rd-font-light);
  z-index: 1;
  border: var(--rd-borderwidth-border-default) solid var(--cl-pale-grey);
  font-size: var(--rd-fontsize-3) !important;
  border-radius: var(--rd-borderradius-border-md);
  margin-top: 5px;
  box-shadow: 0.05rem 0.15rem 0.17rem rgba(0, 0, 0, 0.14);
  padding: var(--rd-spacing-big);
}

.sendby:hover:before {
  content: "";
  position: absolute;
  display: inline-block;
  width: 15px;
  height: 15px;
  border-left: var(--rd-borderwidth-border-default) solid var(--cl-pale-grey);
  border-bottom: var(--rd-borderwidth-border-default) solid var(--cl-pale-grey);
  background-color: var(--rd-font-light);
  left: -9px;
  top: 10px;
  transform: rotate(45deg);
}

.senddate {
  white-space: nowrap;
}

#outboxtable tr td:nth-child(2) {
  width: 40%;
}

.undoBtn {
  display: none;
}

#memonavileft>div:before {
  content: "";
  display: inline-block;
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: 50%;
  display: inline-block;
  height: 20px;
  width: 20px;
  vertical-align: middle;
  margin-right: 10px;
  filter: grayscale(1);
}

.naviInbox:before {
  background-image: url("/src/img/svg/af/in-box-green.svg");
}

.naviOutbox:before {
  background-image: url("/src/img/svg/af/out-box-green.svg");
  background-size: 90% !important;
}

.naviTrash:before {
  background-image: url("/src/img/svg/af/trash-box-green.svg");
  background-size: 75% !important;
}

.naviTamplate:before {
  background-image: url("/src/img/svg/af/tamplate-green.svg");
  background-size: 95% !important;
}

#newMemo {

  display: inline-block;
  cursor: pointer;
  border: var(--rd-borderwidth-border-default) solid var(--cl-deep-green);
  border-radius: var(--rd-borderradius-border-md);
  background: linear-gradient(180deg, #89cc20 0%, var(--cl-deep-green) 100%);
  margin-bottom: 10px;
  color: var(--rd-font-light);
  font-size: var(--rd-fontsize-4);
  font-weight: var(--rd-fontweights-open-sans-1);
  letter-spacing: 0;
  line-height: 19px;
  padding: var(--rd-spacing-x-sm) 10px;
  margin-left: 24px;
}

#newMemo:before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 17px;
  margin-right: 5px;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 100%;
  filter: grayscale(1) brightness(100);
  background-image: url("/src/img/svg/af/umschalg-green.svg");
  vertical-align: middle;
}

#newMemo:hover {
  background: linear-gradient(180deg, var(--cl-deep-green) 0%, #89cc20 100%);
}

#memosuche {
  border: var(--rd-borderwidth-border-default) solid var(--cl-light-grey);
  border-radius: var(--rd-borderradius-border-md);
  padding: var(--rd-spacing-x-sm);
  color: var(--cl-blue-grey);
  font-size: var(--rd-fontsize-4);
  letter-spacing: 0;
  line-height: 19px;
  min-width: 50%;
  position: relative;
  background-image: url("/src/img/svg/af/search-gray.svg");
  background-repeat: no-repeat;
  background-size: 15px;
  background-position: top 10px left 10px;
  padding-left: 30px;
}

#naviInbox,
#naviTrash,
#naviOutbox,
#naviTamplate {
  border-radius: var(--rd-borderradius-border-md);
  background-color: rgba(122, 181, 29, 0.2);
}

#naviInbox:before,
#naviTrash:before,
#naviOutbox:before,
#naviTamplate:before {
  filter: none !important;
}

.unreadactive,
.unreadinactive {
  display: inline-block;
  text-align: center;
  height: 16px;
  width: 24px;
  border-radius: var(--rd-borderradius-border-md);
  background-color: var(--rd-primary-active);
  color: var(--rd-font-light);
  font-size: var(--rd-fontsize-3);
  font-weight: var(--rd-fontweights-open-sans-0);
  letter-spacing: 0;
  line-height: 14px;
  text-align: center;
  vertical-align: middle;
  float: right;
  margin-right: 5px;
  margin-top: 2px;
}

#memo {
  width: 100%;
  display: block;
  background-color: var(--rd-font-light);
  border: var(--rd-borderwidth-border-default) solid var(--cl-light-grey);
  border-radius: var(--rd-borderradius-border-md);
}

#memobuttontop,
.msg_header,
.msg_body {
  border-bottom: var(--rd-borderwidth-border-default) solid var(--cl-light-grey);
}

.msg_footer {
  text-align: right;
  box-sizing: border-box;
  position: relative;
  padding: 10px;
}

#memobuttontop {
  padding: 10px;
}

#closeMemo {
  display: inline-block;
  border: var(--rd-borderwidth-border-default) solid var(--cl-light-grey);
  border-radius: var(--rd-borderradius-border-md);
  padding: 5px 10px;
  color: #212b36;
  font-size: var(--rd-fontsize-4);
  letter-spacing: 0;
  line-height: 19px;
  background: linear-gradient(180deg, var(--rd-font-light) 0%, #f9fafb 100%);
  cursor: pointer;
}

#closeMemo:hover {
  background: linear-gradient(180deg, #f9fafb 0%, var(--rd-font-light) 100%);
}

#closeMemo:before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: 50%;
  margin-right: 5px;
  background-image: url("/src/img/svg/af/chevron-left-gray.svg");
  vertical-align: top;
  margin-top: var(--rd-spacing-xx-sm);
}

.msg_header {
  width: 100%;
  position: relative;
  padding: 5px 10px;
  box-sizing: border-box;
}

.msg_header>div {
  display: inline-block;
}

.msg_subject {
  color: #637381;
  font-size: var(--rd-fontsize-5);
  font-weight: var(--rd-fontweights-open-sans-1);
  letter-spacing: 0;
  line-height: 24px;
  padding: 5px 10px 0 10px;
}

.msg_header {
  color: var(--cl-blue-grey);
  font-size: var(--rd-fontsize-3);
  letter-spacing: 0;
  line-height: 17px;
}

.msg_from {
  margin-right: 10px;
  padding-right: 10px;
  border-right: var(--rd-borderwidth-border-default) solid var(--cl-blue-grey);
}

.msg_body {
  padding: 10px;
  color: #212b36;
  font-size: var(--rd-fontsize-4);
  letter-spacing: 0;
  line-height: 21px;
  width: 100%;
  box-sizing: border-box;
}

#addResponseBt {
  border: var(--rd-borderwidth-border-default) solid var(--cl-deep-green);
  border-radius: var(--rd-borderradius-border-md);
  background: linear-gradient(180deg, #89cc20 0%, var(--cl-deep-green) 100%);
  color: var(--rd-font-light);
  font-size: var(--rd-fontsize-4);
  font-weight: var(--rd-fontweights-open-sans-1);
  letter-spacing: 0;
  line-height: 19px;
  cursor: pointer;
  display: inline-block;
  padding: var(--rd-spacing-x-sm) 10px;
}

#addResponseBt:before {
  content: "";
  background-image: url("/src/img/svg/af/share-solid.svg");
  background-repeat: no-repeat;
  background-size: 100%;
  background-position: 50%;
  display: inline-block;
  width: 18px;
  height: 15px;
  vertical-align: top;
  margin-right: 5px;
  margin-top: 2px;
}

#addResponseBt:hover {
  background: linear-gradient(180deg, var(--cl-deep-green) 0%, #89cc20 100%);
}

.hidebox {
  display: none;
}

#memobox {
  width: 100%;
  display: block;
  background-color: var(--rd-font-light);
  border: var(--rd-borderwidth-border-default) solid var(--cl-light-grey);
  border-radius: var(--rd-borderradius-border-md);
}

#memobox #memo {
  background-color: unset;
  border: unset;
}

#memoheadbox {
  margin-bottom: 20px;
  border-bottom: var(--rd-borderwidth-border-default) solid var(--cl-light-grey);
}

#memoheadbox>span {
  color: var(--cl-blue-grey);
  font-size: var(--rd-fontsize-3);
  font-weight: var(--rd-fontweights-open-sans-0);
  letter-spacing: 0;
  line-height: 17px;
  display: inline-block;
  width: 100px;
  padding: 10px;
  box-sizing: border-box;
}

#memoheadbox>span+input {
  border: var(--rd-borderwidth-border-default) solid var(--cl-light-grey);
  border-radius: var(--rd-borderradius-border-md);
  background-color: var(--rd-font-light);
  padding: 5px;
  width: calc(100% - 120px);
  box-sizing: border-box;
  box-sizing: border-box;
}

#memobox h3 {
  color: #637381;
  font-size: var(--rd-fontsize-5);
  font-weight: var(--rd-fontweights-open-sans-1);
  letter-spacing: 0;
  line-height: 24px;
  padding: 0 0 0 10px;
}

#memobox .tox-tinymce {
  margin: var(--rd-spacing-big);
}

#memobox .ti_input {
  margin: 10px 20px 10px 0;
  color: #637381;
  font-size: var(--rd-fontsize-4);
  letter-spacing: 0;
  line-height: 19px;
}

.msg_btn {
  cursor: pointer;
}

.down_textarea {
  text-align: right;
  padding: 0 20px 10px 0;
}

.down_textarea .msg_btn {
  display: inline-block;
  padding: var(--rd-spacing-x-sm) 10px;
  border: var(--rd-borderwidth-border-default) solid var(--cl-deep-green);
  border-radius: var(--rd-borderradius-border-md);
  background: linear-gradient(180deg, #89cc20 0%, var(--cl-deep-green) 100%);
  color: var(--rd-font-light);
  font-size: var(--rd-fontsize-4);
  font-weight: var(--rd-fontweights-open-sans-1);
  letter-spacing: 0;
  line-height: 19px;
}

.msg_btn {
  cursor: pointer;
}

.down_textarea .msg_btn:hover {
  background: linear-gradient(180deg, var(--cl-deep-green) 0%, #89cc20 100%);
}

.down_textarea .msg_btn:before {
  content: "";
  display: inline-block;
  width: 15px;
  height: 17px;
  margin-right: 5px;
  background-position: 50%;
  background-repeat: no-repeat;
  background-size: 100%;
  filter: grayscale(1) brightness(100);
  background-image: url("/src/img/svg/af/umschalg-green.svg");
  vertical-align: middle;
}

#contactbox.showbox {
  position: absolute;
  z-index: 10;
  background-color: var(--rd-font-light);
  width: 100%;
  border: var(--rd-borderwidth-border-default) solid var(--cl-light-grey);
  margin-top: -1px;
  border-radius: var(--rd-borderradius-border-md);
  right: 0;
  left: 0;
  bottom: 0;
  top: 120px;
}

#contacts {
  position: relative;
}

#contactbox h3 {
  margin: 0;
  color: #637381;
  font-size: var(--rd-fontsize-5);
  font-weight: var(--rd-fontweights-open-sans-1);
  letter-spacing: 0;
  line-height: 24px;
  padding: 10px;
}

.msg_zuweisung_list {
  display: grid;
  grid-template-areas: "LIST ARROW LIST2" "BUTTON BUTTON BUTTON";
  grid-template-columns: calc(50% - 20px) 40px calc(50% - 20px);
}

.msg_zuweisung_list .bottbutton {
  grid-area: BUTTON;
  width: 100%;
  text-align: right;
  padding: 10px;
  box-sizing: border-box;
}

.msg_zuweisung_list #liste>div>label,
.msg_zuweisung_list #liste2>div>label {
  display: block;
  background-color: var(--cl-pale-grey);
  margin: 5px 10px;
  padding: 5px;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s linear;
}

.msg_zuweisung_list #liste>div>label:hover,
.msg_zuweisung_list #liste2>div>label:hover {
  background-color: var(--cl-light-grey);
}

.msg_zuweisung_list .bottbutton .msg_btn {
  border: var(--rd-borderwidth-border-default) solid var(--cl-deep-green);
  border-radius: var(--rd-borderradius-border-md);
  background: linear-gradient(180deg, #89cc20 0%, var(--cl-deep-green) 100%);
  color: var(--rd-font-light);
  font-size: var(--rd-fontsize-4);
  font-weight: var(--rd-fontweights-open-sans-1);
  letter-spacing: 0;
  line-height: 19px;
  padding: 5px 15px;
  cursor: pointer;
}

.msg_zuweisung_list .bottbutton .msg_btn:hover {
  background: linear-gradient(180deg, var(--cl-deep-green) 0%, #89cc20 100%);
}

.msg_btn {
  display: inline-block;
  color: #212b36;
  font-size: var(--rd-fontsize-4);
  letter-spacing: 0;
  line-height: 19px;
}

.msg_top_navi {
  border: none !important;
  text-align: right;
}

.msg_date {
  float: right;
}

select[name="Limiter"] {
  color: #212b36;
  font-size: var(--rd-fontsize-4);
  letter-spacing: 0;
  line-height: 19px;
  border: var(--rd-borderwidth-border-default) solid var(--cl-light-grey);
  border-radius: var(--rd-borderradius-border-md);
  background: linear-gradient(180deg, var(--rd-font-light) 0%, #f9fafb 100%);
  width: auto;
  padding: 5px 10px;
}


#filterset {
  display: block;
  border-bottom: var(--rd-borderwidth-border-focus) solid #e9ecf0;
}

#filterset label {
  display: inline-block !important;
  text-decoration: none;
  color: #535353;
  padding: 10px;
  position: relative;
  font-weight: unset;
  margin: 0;
  cursor: pointer;
}

#filterset label:after {
  position: absolute;
  content: "";
  display: inline-block;
  height: 4px;
  background-color: var(--cl-deep-green);
  left: 0;
  bottom: -3px;
  right: 0;
  opacity: 0;
  transition: all 0.2s linear;
}

#filterset input {
  display: none;
}

#filterset input:checked+label:after,
#filterset label:hover:after {
  opacity: 1;
}

#addToTrash,
#delete,
#addToInbox {
  float: right;
  display: inline-block;
  border: var(--rd-borderwidth-border-default) solid var(--cl-light-grey);
  border-radius: var(--rd-borderradius-border-md);
  background: linear-gradient(180deg, var(--rd-font-light) 0%, #f9fafb 100%);
  padding: 5px 10px;
  font-size: var(--rd-fontsize-3);
  line-height: 12px;
  cursor: pointer;
}

#addToTrash:hover,
#delete:hover,
#addToInbox:hover {
  background: linear-gradient(180deg, #f9fafb 0%, var(--rd-font-light) 100%);
  opacity: 0.8;
}

#addToTrash:before,
#delete:before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 12px;
  background-image: url(/src/img/svg/af/trash-blue.svg);
  background-size: 100%;
  vertical-align: middle;
  margin-right: 5px;
  background-repeat: no-repeat;
  filter: grayscale(1);
  opacity: 0.8;
}

#addToInbox {
  margin-right: 10px;
}

#addToInbox:before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  background-image: url(/src/img/svg/af/reset-blue.svg);
  background-size: 100%;
  vertical-align: middle;
  margin-right: 5px;
  background-repeat: no-repeat;
  filter: grayscale(1);
  opacity: 0.8;
}

.sbtitle {
  color: #999999;
  font-size: var(--rd-fontsize-4);
  font-weight: var(--rd-fontweights-open-sans-1);
  letter-spacing: 0;
  line-height: 16px;
}

.sbtitle>span {
  font-weight: var(--rd-fontweights-open-sans-0);
  color: #535353;
}

#liste {
  grid-area: LIST;
  max-height: 420px;
  overflow-x: scroll;
}

#liste2 {
  grid-area: LIST2;
  max-height: 420px;
  overflow-x: scroll;
}

#arrows {
  grid-area: ARROW;
}

@media (max-width: 700px) {
#memo {
    margin-bottom: 40px;
  }
}

@media (max-width: 600px) {
.msg_header>div {
    display: block;
    float: unset;
    text-align: left;
    border: none;
    margin-bottom: 5px;
  }
}

@media (max-width: 520px) {
#outboxtable tr,
  #outboxtable td {
    display: block;
    width: 100% !important;
    box-sizing: border-box;
  }
#outboxtable thead {
    display: none;
  }
#outboxtable td {
    padding: 5px;
  }
}

@media (max-width: 430px) {
#boxdescr {
    display: block;
    margin-bottom: 10px;
  }
#memosuche {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
  }
.msg_zuweisung_list {
    grid-template-areas: "LIST" "ARROW" "LIST2" "BUTTON";
    grid-template-columns: 100%;
  }
}

@media (max-width: 290px) {
#memonavileft>div {
    width: 100%;
  }
}

.msg_all_ussers_btn {
  background-color: var(--rd-primary-active);
  border: var(--rd-borderwidth-border-default) solid var(--rd-primary-active);
  color: var(--rd-font-light);
  padding: 5px;
  margin-left: 10px;
}
