@import '../../../style/index';

.vtx-road-rule-wrap {
  --bg-color: rgba(236, 240, 245, 0.52);
  --time-color: #5e6169;
  --blue-bg-color: rgba(22, 119, 255, 0.15);
  --green-bg-color: rgba(15, 185, 100, 0.15);
  &.vtx-road-rule-wrap-dark {
    --bg-color: rgba(11, 88, 142, 0.3);
    --time-color: #6ba6de;
    --blue-bg-color: rgba(0, 183, 255, 0.1);
    --green-bg-color: rgba(28, 239, 134, 0.15);
  }

  display: flex;
  flex-direction: column;
  gap: 16px;

  &-item-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 24px;
    border-radius: 4px;
    background: var(--bg-color);
    padding-right: 12px;
  }
  &-time {
    color: var(--time-color);
    font-size: 12px;
  }
  &-number,
  &-unit {
    font-size: 20px;
    font-weight: bold;
    &.blue {
      color: var(--blue-color);
      &.dark {
        .white_blue();
      }
    }
    &.green {
      color: var(--green-color);
      &.dark {
        .white_green();
      }
    }
    &.purple {
      color: #b894f9;
      &.dark {
        .white_purple();
      }
    }
    &.orange {
      color: #ff8746;
      &.dark {
        .white_green();
      }
    }
    &.yellow {
      color: #ffaa00;
      &.dark {
        .white_yellow();
      }
    }
  }
  &-unit {
    margin-left: 4px;
    font-size: 14px !important;
  }
  &-work {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px 4px 4px 4px;
    padding: 0 8px;
    height: 24px;
    border: 1px solid;
    &.blue {
      color: var(--blue-color);
      border-color: var(--blue-color);
      background: var(--blue-bg-color);
    }
    &.green {
      color: var(--green-color);
      border-color: var(--green-color);
      background: var(--green-bg-color);
    }
    &.purple {
      color: #b894f9;
      border-color: #b894f9;
      background: rgba(184, 148, 249, 0.15);
    }
    &.orange {
      background: rgba(255, 135, 70, 0.1);
      border-color: #ff8746;
      color: #ff8746;
    }
    &.yellow {
      background: rgba(255, 170, 0, 0.1);
      border-color: #ffaa00;
      color: #ffaa00;
    }
  }
}

.vtx-road-work-wrap {
  display: flex;
  align-items: center;
  padding: 24px 28px 24px 45px;
  justify-content: space-between;
  .left-info {
    display: flex;
    gap: 8px;
    color: var(--vm-calendar-cell-font-color);
    margin-bottom: 10px;
    align-items: center;
    font-size: 14px;
    .left-info-dot {
      width: 6px;
      height: 6px;
      background: #b9c4d4;
      border-radius: 50%;
    }
    .left-info-label {
      color: var(--vm-calendar-cell-font-color);
    }
    .left-info-value,
    .left-info-unit {
      font-weight: bold;
      color: var(--vm-calendar-cell-font-color);
      font-size: 18px !important;
      &.dark {
        .white_blue();
      }
    }
    .left-info-unit {
      font-size: 14px !important;
      margin-left: 4px;
    }
    &:last-child {
      margin-bottom: 0;
      .left-info-value,
      .left-info-unit {
        &.dark {
          .white_cyan();
        }
      }
    }
  }
  .road-work-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    .all-rate-wrap {
      margin-bottom: 20px;
    }
  }
  .road-work-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
    .road-work-right-item {
      display: flex;
      align-items: center;
      gap: 10px;
      color: var(--vm-calendar-cell-font-color);
      font-size: 12px;
      .road-work-right-item-left {
        width: 220px;
        .road-work-right-item-left-info {
          display: flex;
          align-items: center;
          justify-content: space-between;
        }
        .work-type {
          font-size: 14px;
        }
        .work-rate {
          color: var(--vm-calendar-cell-font-color);
          font-size: 14px;
          font-weight: 600;
          .work-rate-value,
          .work-rate-unit {
            &.blue {
              &.dark {
                .white_blue();
              }
            }
            &.green {
              &.dark {
                .white_green();
              }
            }
            &.purple {
              &.dark {
                .white_purple();
              }
            }
            &.orange {
              &.dark {
                .white_green();
              }
            }
            &.yellow {
              &.dark {
                .white_yellow();
              }
            }
          }
          .work-rate-value {
            font-size: 20px;
          }
          .work-rate-unit {
            margin-left: 4px;
          }
        }
      }
    }
  }
}
