@import 'scss/styles.scss';

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-thumb {
  border: 4px solid $bw-9 !important;
  border-radius: 1px;
}

::-webkit-scrollbar-track {
  width: 4px;
  background-color: $white-2;
}

.truck-column {
  text-align: left;
  width: 86px;
}

.driver-column {
  width: 150px;
  text-align: left;
}

.location-column {
  width: 166px;
  text-align: left;
}

.speed-column {
  width: 62px;
  text-align: left;
}

.ignition-column {
  width: 48px;
  text-align: left;
}

.status-column {
  width: 110px;
  text-align: left;
}

.progress-column {
  width: 200px;
  text-align: left;
}

.progress-margin {
  margin-left: -10px;
}

.destination-column {
  width: 166px;
  text-align: left;
}

.icon-column {
  flex: 0;
  text-align: right;
  svg-icon {
    width: 20px;
    height: 20px;
  }
}

.table-container {
  width: max-content;
  background-color: $white-2;
  overflow: hidden;

  .search-input-header {
    width: calc(100% - 6px) !important;
    color: $ta-light-grey-2 !important;

    margin-top: 6px;
    margin-bottom: 4px;
    border-radius: 2px;
    transition: transform 0.3s;

    .input-form-holder {
      width: 100%;
      padding-right: 4px;
      .input-custom-group {
        .input-control {
          height: 26px !important;
          background-color: $ta-black !important;
          color: $white;
        }
        .input-clear {
          top: 2px !important;
        }
      }
    }
  }
}

.table-header {
  padding: 6px;
  border-bottom: 1px solid $white-5;
  background-color: $white-2;

  .header-column {
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: $bw5;
  }
}

.tl-list-container {
  max-height: 520px;
  overflow-y: scroll;

  .tl-list-item {
    padding: 0px 4px 2px 6px;
    background-color: $white-2;
    cursor: pointer;

    &:hover {
      background-color: $grey-12;
    }

    .tl-list-truck-info {
      width: 86px;

      .tl-list-truck-icon {
        margin-right: 4px;
        svg {
          overflow: visible;
          position: relative;
          top: -2px;
        }
      }

      .tl-list-truck-number {
        font-size: 11px;
        font-weight: 700;
        text-align: left;

        &.tl-list-no-truck {
          color: $bw5;
          font-weight: 300;
          text-decoration: line-through;
        }
      }

      &.inactive {
        opacity: 0.5;
      }
    }

    .tl-list-driver-info {
      .tl-list-driver-name {
        font-size: 11px;
        text-align: left;
        color: $ta-black-2;
      }

      .tl-list-status {
        font-weight: 700;
        text-transform: uppercase;
      }

      &.inactive {
        opacity: 0.5;
      }
    }

    .tl-list-actions {
      width: 18px;
      height: 18px;
    }

    .closed-eye-icon {
      display: block;
    }

    .open-eye-icon {
      display: none;
    }

    &:hover {
      .closed-eye-icon {
        display: none;
      }
      .open-eye-icon {
        display: block;
      }
    }
  }
}
