@include export-module('cc-delivery-planning-overview-tile-line-layout') {
  .co-delivery-planning-overview-tile-line {
    display: flex;
    border-radius: 3px;
    position: relative;
    gap: 0;
    .planning-line-wrapper {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
      left: 0;
      width: 100%;
      top: 0;
      background: #F5F5FC;
      padding: 0;

      .planning-line-content {
        padding: 3px 7px;
        line-height: 12px;
        .planning-time {
          font-size: 11px;
          text-decoration: underline;
          display: flex;
          gap: 5px;
          color: #1A73E8;
          .co-icon {
            height: 12px;
            width: 12px;
            svg {
              fill: #1A73E8;
            }
            svg [fill] {
              fill: #1A73E8;
            }
          }
        }
        .planning-order {
          a {
            text-decoration: none;
            color: #000;
          }
        }
      }
      .order-line-list-wrapper {
        padding: 0 0 10px 0;
        .order-lines {
          flex-direction: column;
          .lines-content {
            position: relative;
            padding: 10px 30px 10px 10px;
            background: #FFF;
            border-color: #ccc;
            border-style: solid;
            border-radius: 5px;
            border-width: 1px 1px 0 1px;
            &:last-child {
              border-width: 1px 1px 1px 1px;
            }
          }
        }
        .top-order-lines {
          display: flex;
          gap: 15px;
          padding: 5px 0 5px 10px;
          width: 100%;
          border-top: 1px solid #DCE4EA;
          background: #FFF;
          font-size: 12px;
          .co-icon {
            width: 16px;
            height: 16px;
          }
          span {
            cursor: pointer;
            &.active {
              color: #1A73E8;
            }
          }
        }
        .lines-header, .lines-content {
          display: flex;
          justify-content: space-between;
          width: 100%;
          span {
            flex: 1;
            justify-content: center;
            display: flex;
            &.desc {
              flex: 3;
              justify-content: flex-start;
              text-overflow: ellipsis;
              white-space: normal;
              overflow: hidden;
              -webkit-hyphens: auto;
              hyphens: auto;
              display: -webkit-box;
              -webkit-line-clamp: 1;
              -webkit-box-orient: vertical;
            }
          }
        }
        .order-lines-wrapper {
          display: flex;
          flex-direction: column;
          width: 100%;
          background: #FFF;
        }
        .lines-header {
          padding: 10px 30px 3px 10px;
          span {
            font-size: 10px;
          }
        }
        .remove-line {
          position: absolute;
          right: 10px;
          bottom: 10px;
        }
      }
      &.color-V {
        &:before {
          background: #569eee;
        }

      }
      &.color-I {
        &:before {
          background: #45b8bf;
        }
      }
      &.color-S {
        &:before {
          background: #d0a46b;
        }
      }
      &.color-O {
        &:before {
          background: #8083a3;
        }
      }
      &.color-K {
        &:before {
          background: #0b378c;
        }
      }
      &:before {
        content: "";
        width: 4px;
        height: 100%;
        position: absolute;
        left: 0;
        top: 0;
        background: #1a73e8;
        z-index: 99;
        border-radius: 5px 0 0 5px;
      }
      &.active-lines {
        box-shadow: -1px 2px 3px 0px rgba(0, 0, 0, 0.2);
      }
    }
    .reorder-buttons {
      background: #F5F5FC;
      box-shadow: -1px 2px 3px 0px rgba(0, 0, 0, 0.2);
      .co-icon {
        padding: 3px;
      }
    }
    &.normal-mode {
      .planning-line-wrapper {
        box-shadow: -1px 2px 3px 0px rgba(0, 0, 0, 0.2);
        border-radius: 0;
        &.active-lines {
          position: relative;

          .order-line-list-wrapper {
            &:before {
              left: 0;
              top: 0;
            }
          }
        }
        .planning-line-content {
          cursor: pointer;
          padding: 10px;
          line-height: normal;
          .planning-time {
            font-size: 11px;
          }
          .planning-line-left {
            .co-icon {
              width: 14px;
              height: 14px;
            }
          }
        }
      }
    }
    .planning-line-content {
      display: flex;
      justify-content: space-between;
      width: 100%;
      .planning-line-left {
        display: flex;
        gap: 10px;
        align-items: center;
        .planning-address {
          font-size: 12px;
          font-weight: 500;
        }
        .planning-relation {
          font-size: 10px;
        }
        .co-icon {
          width: 12px;
          height: 12px;
        }
        .line-content-left {
          display: flex;
          gap: 8px;
          align-items: center;
          .line-content-link {
            .co-icon {
              svg {
                fill: #1A73E8;
              }
              svg [fill] {
                fill: #1A73E8;
              }
            }
          }
        }
      }
      .planning-line-right {
        display: flex;
        gap: 10px;
        align-items: center;
        min-width: 120px;
        justify-content: space-between;
      }
      .planning-line-actions {
        display: flex;
        co-icon {
          width: 14px;
          height: 14px;
          cursor: pointer;
        }
      }
      .planning-line-extend {
        height: 100%;
        display: flex;
        align-items: center;
        cursor: pointer;
        co-icon {
          width: 12px;
          height: 12px;
        }
      }
      .planning-order {
        display: flex;
        align-items: center;
        gap: 5px;
        .co-icon {
          width: 12px;
          height: 12px;
        }
      }
    }
    .order-line-list-wrapper {
      animation: activeIn 0.5s forwards;
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 3px;
      padding: 20px 20px;
      position: relative;
      z-index: 9;
      .order-lines {
        display: flex;
        justify-content: space-between;
        width: 100%;
        .co-icon {
          width: 15px;
          height: 15px;
          padding: 2px;
          cursor: pointer;
        }
      }
    }

    .main {
      color: $color-action-accent;
    }
    .dialog-header-wrapper {
      padding: 2em 0 4em 2em;
    }
    .footer-header-title {
      font-weight: bold;
      font-size: 20px;
    }
    co-icon {
      width: 20px;
      height: 20px;
    }
    @keyframes activeIn {
      from {
        max-height: 0;
      }
      to {
        max-height: 300px; /* Change this to the desired height */
      }
    }
  }
}
