@import "../../../style/mixin";

@include export-module('co-transaction-line-activities-layout') {
  .co-transaction-line-activities {
    .service-overview-wrapper {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 100%;
    }
    .message-and-task-wrapper {
      display: flex;
      gap: 15px;
      width: 100%;
      align-items: flex-start;
      flex-wrap: wrap;
    }
    .timeline-and-message-wrapper {
      display: flex;
      flex-direction: column;
      gap: 30px;
      padding: 0 0 15px;
      margin-bottom: 15px;
      flex: 1;
      align-self: flex-start;
    }
    .activity-list-component-wrapper {
      padding: 0;
      margin: 0;
      display: flex;
      flex-direction: column;
      gap: 30px;
      flex: 1;
      align-self: flex-start;
      width: 100%;
      .activity-list-conv-wrapper {
        flex: 1;
        padding-left: 0;
        max-height: 300px;
        overflow: auto;
      }
      .co-task-creator {
        position: sticky;
        bottom: 0;
      }
    }
    .activity-task-creator-wrapper {
      display: flex;
      gap: 15px;
      flex-direction: column;
      width: 400px;
      max-width: 100%;
    }
    .activity-task-overview-wrapper {
      display: flex;
      flex-direction: column;
      gap: 10px;
      padding: 15px;
      border-radius: 5px;
      box-shadow: 0 2px 5px 1px #0000001a;
      background: #FFF;
      .activity-header {
        font-size: 14px;
        font-weight: 700;
        color: #171721;
        position: relative;
      }
      .activity-wrapper-inner {
        order: 2;
        display: flex;
        gap: 5px;
        margin-top: 0;
        flex-wrap: wrap;
        max-height: 300px;
        overflow: auto;
        &.bottom-task {
          .task-box {
            .co-button {
              border: 1px solid #1b2874;
              background: #1b28741a;
              color: #1b2874;
              justify-content: center;
              align-items: center;
              height: 32px;
              min-width: 150px;
              width: 100%;
              span {
                text-align: center;
                font-size: 11px;
              }
            }
          }
        }
      }
      .co-component-activity-overview {
        order: 1;
        width: 100%;
        &.bottom-task {
          order: 2;
          width: calc(50% - 3px);
        }
        .overview-main {
          max-width: 100%;
          .label-date-activity {
            display: flex;
            justify-content: space-between;
            align-items: center;
          }
          .activity-buttons {
            .co-button {
              width: 50%;
              border: 1px solid #1a73e8 !important;
              color: #1a73e8 !important;
              background: #fff !important;
              text-align: center;
              padding: 5px 10px;
              justify-content: center;
              height: 32px;
              max-width: calc(50% - 3px);
            }
          }
        }
        .overview-current {
          .activity-title {
            background: #d1e3fa;
            border: 1px solid #1a73e8;
            color: #1a73e8;
            padding: 7px 15px;
            text-transform: uppercase;
            height: 32px;
            justify-content: center;
            align-items: center;
            display: flex;
            font-size: 11px;
          }
        }
      }
    }
    .overview-task-wrapper {
      .task-box {
        display: flex;
        flex-direction: column;
        gap: 5px;
        position: relative;
        cursor: pointer;
        width: 100%;
      }
    }
    .message-and-task-wrapper {
      .co-component-activity-list {
        margin: 0;
        height: auto;
        padding: 0;
        .activity-wrapper {
          max-width: 100%;
          max-height: 100%;
          padding: 0;
        }
      }
      .activity-list-content {
        height: auto;
      }
    }
  }
}
