@import 'modules/app/viewports';

.app-cmf-uwork {
  // @include viewport-laptop {
  //     max-width: 650px;
  //     width: 100%;
  // }

  @include viewport-mobile {
    width: 100%;
  }

  cursor: pointer;

  position: relative;

  width: 650px;
  margin-bottom: 10px;

  background: var(--app-bg-color-l1);
  border: solid 1px var(--border-primary-color);
  border-radius: 10px;

  .app-cmf-uwork-inner {
    // border-bottom: solid 1px var(--border-primary-color);
    overflow: hidden;

    &.transparency {
      opacity: 0.7;
    }
  }

  /* transition: all 0.2s; */

  .notify-wrapper-label {
    display: flex;
    flex-direction: row;
    align-items: center;

    width: 94%;
    margin-bottom: 0;
    padding-right: 5px;
    padding-bottom: 0;
  }

  .notify-name {
    overflow: hidden;

    padding-right: 5px;

    font-size: 12px;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .card-obj-name {
    display: flex;
    align-items: center;

    padding-top: 5px;
    padding-bottom: 3px;

    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-222);

    .name {
      font-size: 17px;
      white-space: pre-line;
    }
  }

  .notification-icon {
    position: relative;
    top: 1px;

    width: 16px;
    height: 16px;
    margin-right: 8px;

    font-family: 'Material Icons Outlined';

    /* margin-right: 15px; */
    font-size: 16px;
  }

  .notify-label {
    margin-top: 5px;
    font-size: 14px;
    font-weight: 500;
    color: #2b2b2b;
  }

  .wrapper-done-button-and-change {
    display: flex;
    align-items: baseline;
    margin-left: auto;

    .button-and-change {
      display: flex;
      flex-direction: column;
      place-content: space-around space-between;
      align-items: flex-end;

      .done-button-wrap {
        display: flex;
        align-items: center;
      }
    }
  }

  .uwork-alarm-button {
    display: block;

    width: 26px;
    height: 26px;

    opacity: 1;
    background-color: var(--border-primary-color);
    border-radius: 50%;

    &:hover {
      opacity: 0.7;
    }
  }

  .uwork-done-button {
    display: flex;
    flex-direction: row;
    place-content: flex-start center;
    align-items: center;

    min-width: 50px;
    max-width: 50px;
    height: 22px;

    font-size: 10px;

    /* background: var(--color-gray-fff);
        border: 1px solid #afafaf; */
    color: var(--color-gray-444);

    opacity: 1;
    border-radius: 15px;
  }

  .task-icon {
    margin-right: 5px;
  }

  .deal-icon {
    margin-right: 10px;
  }

  .close-icon {
    position: absolute;
    top: 7px;
    right: 8px;
    display: none;
  }

  .row {
    display: flex;
    align-items: center;
    margin-bottom: 10px;

    &.card-footer {
      justify-content: space-between;
    }

    span:first-child {
      margin-right: 5px;
    }

    .total {
      font-size: 16px;
      color: green;
    }

    &.text-container {
      margin-left: 38px;
      font-size: 16px;
      color: #2b2b2b;
    }
  }

  .alarm-icon {
    margin-left: auto;
  }

  .uwork-header {
    overflow: hidden;
    display: flex;
    align-items: center;
    color: #2b2b2b;

    /* margin-bottom: 10px;
        margin-top: 8px; */
    .avatar,
    .details {
      float: left;
    }

    .avatar {
      height: 32px;
      margin-right: 15px;

      line-height: 32px;
      color: #333;
      text-align: center;

      mat-icon {
        font-size: 32px;
      }
    }

    .details {
      position: relative;
      font-size: 12px;
    }

    .details .uwork-from {
      color: #2b2b2b;

      .mat-icon {
        position: relative;
        top: 4px;
        font-size: 18px;
      }
    }

    .details .uwork-to {
      font-size: 12px;

      /* color:#707070; */
    }
  }

  .uwork-date,
  .uwork-options {
    color: #2b2b2b;

    /* position: absolute; */
  }

  .uwork-date {
    display: inline;
    font-size: 12px;
    vertical-align: top;
  }

  .uwork-options {
    top: 10px;
    right: 0;
  }

  .uwork-body {
    // color: #9C9FA2;
    display: flex;
    flex-direction: column;
    font-size: 12px;

    .uwork-b {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
    }

    em {
      padding-right: 5px;
      font-weight: bold;
      font-style: normal;
    }

    .uwork-content {
      display: flex;
      flex-direction: row;
      color: #2b2b2b;

      // font-size: 14px;
    }

    .text {
      font-size: 12px;
      color: rgb(34 34 34);
    }
  }
}

// .app-cmf-uwork:hover .app-cmf-uwork-inner {

/* background: linear-gradient(#F0F4F8, #fff); */
// }
.app-cmf-uwork.selected .uwork-alarm-shift-choices {
  display: inline-flex;

  /* width: 30px;
    transition: 1s all; */
}

.fs-16 {
  font-size: 16px;
}

.total {
  color: #179117;
}

.app-cmf-uwork.selected .alert-circle-icon {
  opacity: 1;
}

.app-cmf-uwork.selected .alarm-icon {
  visibility: visible;
}

.app-cmf-uwork:hover .alarm-icon {
  visibility: visible;
}

// .app-cmf-uwork:hover .uwork-alarm-shift-choices {

/* visibility: visible; */

/* display: block;
    transition-delay: 1s; */
// }

.app-cmf-uwork.selected .app-cmf-uwork-inner,
.app-cmf-uwork.selected .app-cmf-uwork-inner:hover {
  background: #f0f4f8;
}

.uwork-toolbar {
  position: absolute;
  right: 4px;
  bottom: 6px;
  display: none;
}

.app-cmf-uwork:hover .uwork-toolbar {
  display: block;
}

.uwork-alarm-shift {
  position: absolute;
  right: 11px;
  bottom: 44px;
}

.uwork-open-in-new {
  position: absolute;
  right: 11px;
  bottom: 44px;
  display: none;
}

.app-cmf-uwork:hover .uwork-open-in-new {
  display: block;
}

.uwork-alarm-shift button {
  display: none;
}

.icon-done-alarm {
  position: relative;
  top: 5px;
  right: -5px;
}

.uwork-alarm {
  width: 20px;
  height: 20px;
  margin-left: auto;

  line-height: 20px;
  color: black;
}

.uwork-done {
  color: black;
}

.uwork-progress {
  position: absolute;
  z-index: 5;
  top: -4px;
  right: 10px;

  color: #2b6ed9;
}

// .uwork-alarm-shift-choices {
// }

// .uwork-alarm-shift:hover .uwork-alarm-shift-choices {
// .uwork-alarm-shift-choices {

/* display: block; */
// }

.uwork-alarm-shift-choices ul {
  /* position: absolute;
    width: 99px;
    background: #f6f9fe;
    z-index: 100;
    box-shadow: 0 1px 2px #777;
    border-radius: 2px; */
  color: #a0a0a0;
}

.uwork-alarm-shift-choices ul,
.uwork-alarm-shift-choices ul li {
  display: inline;
  margin: 0 0 0 4px;
  padding: 0;
  list-style: none;
}

// .uwork-alarm-shift-choices ul li {

/* display: inline-block;
    margin-right: 1px; */
// }

.uwork-alarm-shift-choices ul li a {
  /* width: 32px;
    height: 32px;
    line-height: 32px;
    font-size: 11px;
    text-align: center; */
  cursor: pointer;
  display: inline;
}

/*
.uwork-alarm-shift-choices ul li a:hover {
    background: #578be1;
    color: #fff;
    text-decoration: underline;
}
*/
.app-cmf-unread_cnt {
  position: absolute;
  top: 15px;
  right: 25px;

  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-grow: 0;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;

  width: 16px;
  min-width: 16px;
  height: 16px;
  margin-left: 4px;
  padding-right: 4px;
  padding-left: 4px;

  color: white;

  background-color: rgb(0 120 212);
  border-radius: 8px;

  .app-cmf-unread_cnt-text {
    cursor: inherit;

    position: relative;

    overflow: hidden;
    display: inline;
    flex-grow: 0;
    flex-shrink: 0;

    font-size: 10px;
    font-weight: 400;
    line-height: 10px;
    color: rgb(255 255 255);
    text-align: center;
    text-overflow: ellipsis;
    white-space: pre;

    background-color: rgb(0 0 0 / 0%);
  }
}

.app-cmf-change {
  font-size: 24px;
  line-height: 14px;
  color: #3e80d7;
}

.jc-sb {
  justify-content: space-between;
}

.cmf-avatar {
  width: 32px;
  height: 32px;

  font-size: 32px;
  line-height: 32px;
  color: #fff;
  text-align: center;

  background: #777;
  border-radius: 50%;

  mat-icon {
    display: inline-block;

    width: 24px;
    height: 24px;

    font-size: 24px !important;

    background-repeat: no-repeat;

    fill: currentcolor;
  }
}

.is-penalty:not(.is-closed) .uwork-content,
.is-penalty:not(.is-closed) .uwork-body {
  color: #d63031 !important;
}

.is-closed .uwork-content,
.is-closed .uwork-body {
  .notify-name,
  .name,
  .text-container:not(.jc-sb),
  .text-container .left {
    font-weight: 400;
    color: rgb(0 0 0 / 50%);
    text-decoration: line-through;
  }

  .uwork-done-button {
    color: rgb(0 0 0 / 50%);
  }
}

.is-closed .deal-status {
  opacity: 0.6;
}

.app-link-container {
  text-decoration: none;
}

.avatars {
  display: flex;
  justify-content: flex-end;

  .avatar {
    margin-right: 5px;
  }
}

.app-wrapper-content-icons {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;

  .alert-circle-icon {
    position: absolute;
    right: 10px;
    opacity: 0;
  }
}

.deal-status {
  margin-bottom: 10px;
  padding: 2px 20px;

  font-size: 12px;
  color: #fff;

  border-radius: 5px;
}

.uwork-content-wrapper {
  display: flex;
  align-items: center;
  height: 100%;
}

.cmf-comments-preview {
  background-color: var(--app-bg-color-l3);
  border-radius: 5px;
}

::ng-deep .cmf-deal-card {
  .uwork-body .text b {
    font-weight: 400;

    /* color: #a0a0a0; */
  }

  .deal-icon .mat-icon {
    width: 26px;
    height: 26px;
    font-size: 26px;
    color: var(--color-gray-222);
  }

  .uwork-body .text br + br {
    content: ' ';
    display: block;
    margin-bottom: 5px;
  }

  .text img {
    max-width: 500px;
    max-height: 300px;
  }
}

.uwork-body-wrap {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  margin-right: -16px;
}

.flex {
  display: flex;
}
