.allArea .topBar .btnGotoFleetTrips.btn-primary {
    display: block;
}
.allArea .topBar .btnGotoFleetTrips.btn-secondary {
    display: none;
}

.allArea > main {
    overflow-x: hidden;
    overflow-y: auto;
}
    .allArea > main .mainArea {
        flex: 1;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: start;
        align-items: center;
    }

    .btnAddNew {
        position: fixed;
        bottom: var(--Spacing-32);
        right: 12px;
        z-index: 1;
    }

.mainContainer .trips {
    flex: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
}
    .mainContainer .trips .searchFor {
        width: 100%;
        display: none;
        justify-content: start;
        margin-bottom: var(--Margin-lg);
    }
    .mainContainer .trips .noTrip, .mainContainer .trips .noSearchResult {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        direction: rtl;
        margin-top: 24px;
        gap: var(--Gap-sm);
        color: var(--Colors-Neutrals-600);
    }
.mainContainer .trips .filterAndSearch {
    display: none;
    flex-direction: row;
    width: 100%;
    justify-content: end;
    align-items: center;
    gap: var(--Gap-sm);
    flex-wrap: wrap;
    margin: 0px 0px var(--Gap-xl) 0px;
}
    .mainContainer .trips .filterAndSearch .searchVehicle {
        flex: 1;
        min-height: 40px;
        min-width: 230px;
    }
    .mainContainer .trips .filterAndSearch .selector {
        position: relative;
        min-width: 0;
        flex: 0 0 auto;
        display: flex;
        justify-content: end;
        align-items: center;
        gap: var(--Gap-xs);
        height: 40px;
        color: var(--Colors-Primary-500);
        border: 1px solid var(--Borders-Subtle);
        border-radius: var(--Radius-custom);
        padding: 0px var(--Padding-sm) 0px var(--Padding-md);
        cursor: pointer;
    }
    .mainContainer .trips .filterAndSearch .selector:hover {
        background: var(--Background-Soft);
    }
        .mainContainer .trips .filterAndSearch .selector .data {
            color: var(--Text-Body-Secondary);
            direction: rtl;
        }
        .mainContainer .trips .filterAndSearch .selector svg {
            stroke: var(--Icons-Interactive);
        }

        .selector ul {
            display: none;
            position: absolute;
            top:44px;
            right: 0px;
            width: 240px !important;
            padding: var(--Padding-lg) var(--Padding-md);
            border-radius: var(--Radius-custom);
            border: 1px solid var(--Borders-Regular);
            background: var(--Control-Input-Background-Default);
            text-align: right;
            z-index: 5;
        }
        .selector svg {
            width: 24px;
            height: 24px;
        }

    .tglSwtGridList {
        display: none;
    }

    .mainContainer .trips .list {
        zzzzflex: 1 1 0;
        zzzzoverflow-y: auto;
        display: none;
        justify-content: center;
        align-items: start;
        flex-wrap: wrap;
        gap: var(--Gap-lg);
        width: 100%;
        padding: 0px var(--Padding-sm) 0px var(--Padding-sm);
    }

    .mainContainer .trips .list.showList {
        flex-direction: column;
        justify-content: start;
        align-items: center;
        flex-wrap: unset;
    }

.overlay {
    display: none;
    position: fixed;
    inset: 0px;
    background: rgba(0,0,0,0.4);
    z-index: 3;
    pointer-events: none;
}

.trip {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: start;
    width: 100%;
    max-width: 588px;
    border-radius: var(--Radius-md);
    background: var(--Trip-Cards-Default-Container);
    border: 1px solid var(--Trip-Cards-Default-Border);

    soverflow: hidden;
    max-height: 120px;
    transition: max-height 0.4s ease-in;
}
.trip.showAsList {
    overflow: unset;
    max-width: 588px !important;
    height: 120px;
}

.trip.opened {
    max-height: 600px;
    border: 1px solid var(--Trip-Cards-Opened-Border);
}
    .trip header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        height: 40px;
        min-height: 40px;
        background: var(--Trip-Cards-Default-Header);
        border-bottom: 1px solid var(--Trip-Cards-Default-Border);
        border-radius: var(--Radius-md) var(--Radius-md) 0px 0px;
        color: var(--Text-Heading-Secondary);
        zzzzzzzzzpadding-right: var(--Padding-md);
        cursor: pointer;
    }
    .trip header.opened  {
        background: var(--Trip-Cards-Opened-Header);
    }
        .trip header .selector svg {
            transition: transform 0.2s ease-in;
        }
        .trip header .selector {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 40px;
            height: 100%;
            stroke: var(--Icons-Interactive-Alt);
            cursor: pointer;
        }
        .trip header .dots {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 40px;
            height: 100%;
            border-right: 1px solid var(--Trip-Cards-Default-Border);;
            stroke: var(--Icons-Interactive-Alt);
            cursor: pointer;
        }
        .trip header svg {
            width: 24px;
            height: 24px;
        }

            .trip header .dots ul {
                display: none;
                position: absolute;
                top: 3px;
                left: 40px;
                max-width: 240px;
                padding: var(--Padding-lg) var(--Padding-md);
                text-align: right;

                border-radius: var(--Radius-custom);
                border: 1px solid var(--Borders-Regular);
                background: var(--bottom-sheets-modals-background);
               
                z-index: 5;
            }
            .trip header .dots ul svg {
                width: 24px;
                height: 24px;
                stroke: var(--Icons-Interactive-Alt);
            }
            .trip header .dots ul li.delete {
                color: var(--Text-Semantic-Error);
            }
            .trip header .dots ul li.delete svg {
                stroke: var(--Icons-Error);
            }

        .trip header .status {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 40px;
        }
            .trip header .title {
                zdisplay: flex;
                align-items: center;
                zheight: 40px;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
                margin-left: auto;
                direction: rtl;
            }
            .trip header.opened .selector svg {
                transform: rotate(180deg);
            }

    .trip main {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: var(--Padding-md);
        gap: var(--Gap-xs);
        background: var(--Trip-Cards-Default-Container);
        border-radius: var(--Radius-md);
    }

    .trip main .summary {
        gap: var(--Gap-xs);
        color: var(--Text-Body-Secondary);
        padding-bottom: var(--Padding-xs);
    }
        .trip main .summary .nickname {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 24px;
            padding: 0px var(--Padding-xs);
            border-radius: var(--Radius-sm);
            background: var(--Background-Surface);
        }

        .trip main .summary .fromTo {
            position: relative;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
        }
            .trip main .summary .fromTo .arrow {
                position: absolute;
                left: 50%;
                transform: translateX(-50%);
                display: flex;
                justify-content: center;
                align-items: center;
                width: 24px;
                height: 24px;
                background: var(--Background-Soft);
                z-index: 2;
            }
                .trip main .summary .fromTo .arrow svg {
                    width: 24px;
                    height: 24px;
                    stroke: var(--Icons-Accent-Light);
                }
                .trip main .summary .fromTo .dash {
                    position: absolute;
                    width: 100%;
                }

                .trip main .summary .fromTo .left, .trip main .summary .fromTo .right {
                    overflow: hidden;
                    text-overflow: ellipsis;
                    flex-shrink: 0;
                    width: calc( 50% - 16px );
                    z-index: 1;
                    white-space: nowrap;
                    direction: rtl !important;
                }
                .trip main .summary .fromTo .left {
                    text-align: left;
                }

                .trip main .summary .fromTo .destination, .trip main .summary .fromTo .origin {
                    min-height: 24px;
                    padding: 0px var(--Padding-xs);
                    border-radius: var(--Radius-sm);
                    background: var(--Background-Surface);
                }
                .trip main .summary .fromTo .destination {
                    justify-content: end;
                }
                .trip main .summary .fromTo .dash {
                    flex: 1;
                    height: 1px;
                    border: 1px dashed var(--Divider-Muted);
                    display: flex;
                    justify-content: center;
                    align-items: center;
                }
            .trip main .loading {
                display: none;
            }
            .trip main .fullData {
                width:100%;
                display: none;
                margin-top: var(--Margin-md);
            }
            .trip main .fullData .actionsTitle {
                margin-bottom: var(--Margin-sm);
            }
            .trip main .fullData .actions {
                width:100%;
                display: flex;
                overflow: auto;
                flex-direction: row-reverse;
                justify-content:  end;
                padding: var(--Padding-md) 0px;
                gap: var(--Gap-xs);
                background: var(--Background-Surface);
            }
            .trip main .fullData .actions .action {
                align-items: center;
                width: 72px;
                height: 96px;
                cursor: pointer;
            }
            .trip main .fullData .actions .action * {
                pointer-events: none;
            }
            .trip main .fullData .actions .action .iconBox {
                justify-content: center;
                align-items: center;
                width: 48px;
                height: 48px;
                background-color: var(--Background-Soft);
                border-radius: var(--Radius-custom);
            }
            .trip main .fullData .actions .action:hover .iconBox {
                background: var(--Background-Brand-Mid);
            }
            .trip main .fullData .actions .action .iconBox svg {
                stroke: var(--Icons-Interactive-Alt);
            }
            .trip main .fullData .actions .action .iconBox.done {
                background-color: var(--Background-Success);
            }
            .trip main .fullData .actions .action .iconBox.done svg {
                stroke: var(--Icons-Interactive);
            }
            .trip main .fullData .actions .action .title {
                overflow:hidden;
                width: 72px;
                height: 44px;
                text-align: center;
                direction: rtl;
            }
            .trip main .fullData .tripStatus {
                width: 100%;
                min-height: 32px;
            }
            .trip main .fullData .tripStatus .statusText {
                color: var(--Text-Body-Secondary);
            }
            .trip main .fullData .tripStatus .statusText > div {
                text-align: right;
            }
            .trip main .fullData .tripStatus .statusText svg {
                width: 24px;
                height: 24px;
            }
            .trip main .fullData > .buttons {
                position: relative;
                width: 100%;
                gap: var(--Gap-md);
                justify-content: center;
            }
            .trip main .fullData > .buttons svg {
                stroke: var(--Buttons-Secondary-Label-Active);
            }

            .trip main .fullData > .buttons .selector {
                position: relative;
            }
            .trip main .fullData > .buttons .selector ul {
                top:unset;
                bottom: 36px;
                right: 0px;
            }

            .trip main .fullData > .buttons .selector ul svg {
                stroke: var(--Icons-Interactive-Alt);
            }
            .trip main .fullData > .buttons .selector ul li.delete {
                color: var(--Text-Semantic-Error);
            }
            .trip main .fullData > .buttons .selector ul li.delete svg {
                stroke: var(--Icons-Error);
            }

            .trip main .fullData .info {
                gap: var(--Gap-xs);
                border: 1px solid var(--Borders-Muted);
                border-radius: var(--Radius-sm);
                background: var(--Background-Surface);
            }
            .trip main .fullData .info.warning {
                border: 1px solid var(--Borders-Alert);
                background: var(--Background-Warning-Alt);
            }
            .trip main .fullData .info .message {
                display: flex;
                align-items: center;
                gap: var(--Gap-xs);
                width: 100%;
                direction: rtl;
            }
            .trip main .fullData .info .message svg {
                width: 24px;
                height: 24px;
            }
            .trip main .fullData .info .lastPositionDateShamsi {
                height: 18px;
                color: var(--Text-Body-Tertiary);
            }
            .trip main .fullData .info .startDateShamsi {
                height: 18px;
                color: var(--Text-Body-Tertiary);
            }
            .trip main .fullData .info .message svg {
                stroke: var(--Icons-Decorative);
            }
.trip:last-child {
    margin-bottom: 70px;
 }           

 .bottomSheet .setting svg {
    stroke: var(--Icons-Interactive-Alt);
 }
 .bottomSheet .setting li.delete {
    color: var(--Text-Semantic-Error);
 }
 .bottomSheet .setting li.delete svg {
    stroke: var(--Icons-Error);
 }

.tripDetailsBS {
    overflow: auto;
    width: 100%;
    align-items: center;
    gap: var(--Gap-lg);
}

.tripDetails {
    width: 100%;
    align-items: center;
    gap: var(--Gap-lg);
}
.tripDetails .loading {
    display: none;
}
.tripDetails header {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: var(--Gap-sm);
    white-space: nowrap;
    overflow: hidden;
}
.tripDetails header .title {
    color: var(--Text-Heading-Primary);
    gap: var(--Gap-xs);
    white-space: nowrap;
    flex-shrink: 0;    
}
.tripDetails header .title svg {
    width: 24px;
    height: 24px;
    stroke: var(--Icons-Heading);
}
.tripDetails header .data {
    color: var(--Text-Body-Secondary);
    overflow: hidden;
    text-overflow: ellipsis;
}
.tripDetails main {
    justify-content: center;
    gap: var(--Gap-md);
    width: 100%;
    min-height: 366px;
}
.tripDetails main .row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--Gap-md);
    width: 100%;
    height: 30px;
    padding: 0px var(--Padding-xs, 4px);
}
.tripDetails main .row .title {
    white-space: nowrap;
}

.tripDetailsPopup .box {
    max-width: 480px !important;
}
.vehicleLocationBS {
    width: 100%;
    align-items: center;
}
.vehicleLocation {
    width: 100%;
    align-items: center;
}
.vehicleLocation .loading {
    display: none;
}
.vehicleLocation header {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: var(--Gap-md);
}
.vehicleLocation header .tripTitle {
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    color: var(--Text-Body-Secondary);
    white-space: nowrap;
    width: calc( 100% - 126px);
    direction: rtl;
    text-align: left;
}
.vehicleLocation header .bsTitle {
    color: var(--Text-Heading-Primary);
    white-space: nowrap;
    gap: var(--Gap-xs);
}
.vehicleLocation header .bsTitle svg {
    width: 24px;
    height: 24px;
    stroke: var(--Icons-Heading);
}
.vehicleLocation main {
    width: 100%;
    align-items: end;
}
.vehicleLocation main .details {
    align-items: start;
}
.vehicleLocation main > div {
    display: flex;
    justify-content: start;
    align-items: center;
    direction: rtl;
}
.vehicleLocation main .details > div {
    display: flex;
    justify-content: start;
    align-items: center;
    direction: rtl;
}
    .vehicleLocation main .details .btnCloseVehicleLocationBS {
        display: none;
    }
.vehicleLocation main .dateTime {
    min-height: 18px;
    margin-bottom: var(--Gap-xs);
    color: var(--Text-Body-Tertiary);
    direction: ltr;
    justify-content: end;
}
.vehicleLocation main .lastPositionText {
    margin-bottom: var(--Gap-md);
    color: var(--Text-Body-Primary);
}
.vehicleLocation main .nickname {
    margin-bottom: var(--Margin-md);
    color: var(--Text-Semantic-Info);
}
.vehicleLocation main .lastPositionMap {
    width: 100%;
    justify-content: center;
    margin-bottom: calc( var(--Margin-md) + var(--Margin-md) );
}
.vehicleLocation main .lastPositionMap .mapWrapper {
    width: 100%;
    background-color: lightgray ;
}
.vehicleLocationPopup .box {
    max-width: 640px !important;
}
.vehicleLocationPopup .vehicleLocation main .lastPositionMap .mapWrapper {
    width: 100%;
    max-height: 370px;
}
.vehicleLocation main .buttons {
    width: 100%;
    justify-content: center;
}
.mapTools {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    margin-right: 5px;
    cursor: pointer;
    background-color: white;
    border-radius: var(--Radius-xs);
}
.mapTools svg {
    width: 16px;
    height: 16px;
    stroke: #666666;
}
.mapTools svg:hover {
    stroke: #000000;
}

.editActionList {
    overflow: auto;
    width: 100%;
    justify-content: start !important;
    align-items: center;
    flex: 1;
}
.editActionList .loading {
    display: none;
}
.editActionList header {
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: var(--Gap-md);
    direction: ltr;
}
.editActionList header .tripTitle {
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    color: var(--Text-Body-Secondary);
    white-space: nowrap;
    width: calc( 100% - 134px - var(--Gap-sm) );
    direction: rtl;
    text-align: left;
}
.editActionList header .bsTitle {
    color: var(--Text-Heading-Primary);
    white-space: nowrap;
    gap: var(--Gap-xs);
}
.editActionList header .bsTitle svg {
    width: 24px;
    height: 24px;
    stroke: var(--Icons-Heading);
}
.editActionList main{
    width: 100%;
    justify-content: start;
    align-items: end;
}
.editActionList main > div {
    display: flex;
    justify-content: start;
    align-items: start;
    direction: rtl;
}
.editActionList main .topMessage {
    color: var(--Text-Body-Secondary);
    margin-bottom: var(--Margin-md);
}
.editActionList main .editArea {
    width: 100%;
    margin-bottom: var(--Margin-md);
    padding: var(--Padding-lg) 0px;
    gap: var(--Gap-lg);
    border-radius: var(--Radius-md);
    background: var(--Background-Accent-Low);
}
.editActionList main .editArea .actions {
    display: flex;
    flex-wrap: wrap;
    min-height: 32px;
}
.editActionList main .editArea .activeList {
    align-items: start !important;
    gap: var(--Gap-sm);
}
.editActionList main .editArea .inActiveList {
    align-items: start !important;
    gap: var(--Gap-sm);
}
.editActionList main .editArea .action {
    position: relative;
    width: 76px;
    min-height: 62px;
    cursor: pointer;
}

.editActionList main .editArea .action.active .iconBox {
    background-color: var(--Background-Accent-High);
}
.editActionList main .editArea .action.disabled .iconBox {
    border-radius: var(--Radius-custom);
    border: 1px solid var(--Borders-Strong);
    background-color: var(--Background-Surface);
}
.editActionList main .editArea .action.containInfo .iconBox {
    background-color: var(--Background-Accent-High);
}

.editActionList main .editArea .action.active svg {
    stroke: var(--Icons-Accent-Dark);
}
.editActionList main .editArea .action.disabled svg {
    stroke: var(--Icons-Disabled) !important;
}
.editActionList main .editArea .action.containInfo svg {
    stroke: var(--Icons-Accent-Dark);
}

.editActionList main .editArea .action .hasData {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 63px;
    height: 16px;
    color: var(--Text-Body-Primary);

    border-radius: var(--Radius-full);
    border: 1px solid var(--Borders-Warning);
    background: var(--Background-Warning);
}
.editActionList main .editArea .action.containInfo .hasData {
    display: flex;
}

.editActionList main .editArea .action .iconBox {
    width: 36px;
    height: 36px;
    background-color: var(--Background-Elevated);
    border-radius: var(--Radius-custom);
}
.editActionList main .editArea .action .iconBox svg {
    stroke: var(--Icons-Interactive);
}
.editActionList main .editArea .action .title {
    width: 72px;
    min-height: 22px;
    text-align: center;
    direction: rtl;
}
.editActionList main .editArea .dashedDivider {
    width: 100%;
    border-top: 2px dashed var(--Divider-High);
}
.editActionList .errorArea {
    height: 190px;
    gap: var(--Gap-lg);
}
.editActionList main .bottomMessage {
    color: var(--Text-Body-Secondary);
    margin-bottom: var(--Margin-lg);
}
.editActionList main .buttonArea {
    margin-top: var(--Margin-md);
    justify-content: end;
}

@media only screen and (max-width: 592px) {

    .searchBox {
        max-width: 100% !important;
    }
}

@media only screen and (max-width: 960px) {

    .trip {
        height: unset !important;
    }
}

@media only screen and (min-width: 961px) {
   
    .allArea .topBar .btnGotoFleetTrips.btn-primary {
        display: none
    }
    .allArea .topBar .btnGotoFleetTrips.btn-secondary {
        display: block !important;
    }
    
    .mainContainer {
        max-width: unset !important;
     }
     
    .vehicleLocationPopup.modal .box {
        height: 100%;
        max-height: 628px !important;
    }

    .vehicleLocation header {
        margin-bottom: var(--Gap-lg);        
    }

    .vehicleLocation main .lastPositionMap {
        margin-bottom: calc( var(--Margin-lg) + var(--Margin-md) );
    }

    .trip main .fullData  .buttons > * {
        flex: unset !important;
        max-width: 180px;
    }

    .editActionList main .bottomMessage {
        flex: 1;
    }

    .btnAddNew {
        position: absolute;
        bottom: unset;
        right: unset;
        top: var(--Padding-md);
        left: var(--Padding-md);
        z-index: 1;

        /* change to btn-medium */
        height: 40px !important;
        font-size: 14px !important;
        line-height: 22px !important;
        /* --- */
    }
    
    .mainContainer .trips .filterAndSearch .selector {
        flex: 0 0 auto;
    }
}

@media (min-width: 960px) {
    .mainContainer .trips .filterAndSearch .searchVehicle {
        max-width: 300px;
        min-width: 230px;
    }

    .mainContainer .trips .list .trip {
        height: 120px;
    }

    .mainContainer .trips .list .trip.opened {
        overflow: unset;
    }

    .mainContainer .trips .list .trip.showAsList.opened {
        overflow: unset;
        height: unset;
        max-height: unset;
    }

}
@media (min-width: 960px) and (max-width: 1023px) {
    .mainContainer .trips .list .trip {
        max-width: calc(50% - 8px );
    }
}
@media (min-width: 1024px) {
    .mainContainer .trips .list .trip {
        max-width: calc(33.3333% - 13px );
    }
}


@media (max-height: 500px) {
    .vehicleLocation main .lastPositionMap {
        margin-bottom: 0px;
    }
    .vehicleLocation main .buttons {
        display: none;
    }
    .vehicleLocationBS .bottomSheetMain {
        padding-bottom: var(--Padding-sm) !important;
    }

    .vehicleLocation main {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .vehicleLocation main {
        flex-direction: row;
        direction: rtl !important;
    }
    .lastPositionMap {
        height: 100%;
    }
    .vehicleLocation main .details {
        height: 100%;
        padding-left: var(--Padding-md);
    }
    .vehicleLocation main .details .btnCloseVehicleLocationBS {
        display: flex;
        margin-top: auto;
        margin-right: 30px;
    }
    .vehicleLocation main .buttons {
        width: unset;
        flex-basis: 100%; /* forces it to wrap */

    }
}
