@import "~cosmoUiVariables";

.container {
    padding: 10px 40px 10px 40px;
    background-color: $white;
    height: 400px;
    min-height: max-content;
    margin-bottom: $margin-300;
}

%jobRow {
    flex-wrap: wrap;
    width: 100%;
    border-bottom: $card_inner_border;
    overflow: hidden;
    padding: 4px 0;
}

.jobsHeader {
    @extend %jobRow;
    min-height: max-content;
}

.jobItem {
    @extend %jobRow;
    height: 25px;
}

.titleRow {
    padding-top: 5px;
    color: $brand-primary;
}

.jobNumber {
    overflow: hidden;
    flex-basis: 15%;
    padding-right: $padding-200;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
}

.jobNumberText {
    font-size: $font-size-md;
    font-weight: bold;
    cursor: pointer;
}

.customerName {
    overflow: hidden;
    flex-basis: 20%;
    padding-right: $padding-200;
}

.time {
    font-weight:bold;
}

.collectFrom {
    flex-basis: 27%;
    display: flex;
    flex-wrap: wrap;

    > div {
        > div:nth-of-type(1){
            flex-basis: 5%;
        }

        > div:nth-of-type(2){
            flex-basis: 95%;
            padding-left: 3px;
        }

        > div:nth-of-type(3){
            flex-basis: 100%;
            padding-left:15px;
        }
    }
}

.nextStop {
    flex-basis: 23%;
    display: flex;
    flex-wrap: wrap;

    div:nth-of-type(1){
    flex-basis: 5%;
    }

    div:nth-of-type(2){
        flex-basis: 94%;
        padding-left: 3px;
    }

    div:nth-of-type(3){
    flex-basis: 100%;
    padding-left:15px;
    }
}

.truncated {
    text-overflow: ellipsis;
    overflow: hidden;
    height: 15px;
    display: block;
}

.dbt {
    flex-basis: 10%;
}

.status {
    flex-basis: 10%;
}

.unallocate {
    flex-basis: 5%;

    .action {
        width: 16px;
        height: 16px;
        background-color: white;
        cursor: pointer;
    }
    .action:hover {
        background-color: $card_background_hover;
    }

    .icon {
        use: { fill: $brand-primary; }
        margin-top: 5px;
        margin-left: 8px;
    }
    .iconRed {
        use { fill: $error; }
    }
}

.scrollList {
    min-width: 100%;
    max-height: 100%;
    box-sizing: border-box;
}