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

@include export-module('co-batch-process-dialog-layout') {
  .co-batch-process-dialog {
    position: fixed;
    top: 55px;
    right: 3px;
    width: 320px;
    padding: 15px 20px;
    border: 2px solid #DCE4EA;
    border-radius: 8px;
    background-color: #FFFFFF;
    z-index: 31;

    header {
      display: flex;
      align-items: center;
      margin-bottom: 15px;

      co-icon {
        width: 20px;

        &.close-icon {
          cursor: pointer;
        }
      }

      h3 {
        margin: 0 auto 0 10px;
      }
    }

    .batch-items {
      max-height: 300px;
      overflow-y: auto;
    }

    .batch-item {
      margin-top: 10px;
      padding: 10px;
      border: 1px solid #DCE4EA;
      border-radius: 5px;

      h4 {
        margin-bottom: 4px;
      }
    }

    .total-number {
      display: flex;
      align-items: center;

      .batch-actions {
        display: flex;
        align-items: center;
        margin-left: auto;

        co-button {
          width: fit-content;
          padding: 5px 10px;
          height: 25px;
          cursor: pointer;
        }

        .delete-batch-icon {
          width: 15px;
          height: 15px;
          margin-left: 10px;
          cursor: pointer;
        }
      }
    }

    .progress-bar-container {
      width: 100%;
      height: 10px;
      margin: 8px 0 4px;
      background-color: #DCE4EA;
      border-radius: 4px;
      border: 1px solid #DCE4EA;
      overflow: hidden;
    }

    .progress-bar {
      height: 100%;
      background-color: rgb(95, 220, 179);
      transition: width 0.3s ease-in-out;
    }

    .errors {
      color: #fe4400;
    }
  }
}
