/*=============================
  3.9  tab CSS start
===============================*/
.ride-tab {
     width: 100%;
     margin: 15px auto 0;
     padding-bottom: 5px;
     padding-inline: 20px;
     display: flex;
     flex-wrap: nowrap;
     gap: 10px;
     border-radius: 6px;
     overflow: auto;
     li {
          background-color: rgba(var(--box-bg), 1);
          border-radius: 10px;
          .selact-ride-box {
               height: 100%;
               width: 100%;

               .icon {
                    --Iconsax-Color: rgba(var(--content-color), 1);
                    --Iconsax-Size: 14px;
                    float: left;
               }
               .vehicle-img {
                    width: 100%;
                    height: 42px;
                    margin-block: 10px;
               }
               .vehicle-name {
                    font-size: 13px;
                    font-weight: 400;
                    color: rgba(var(--title-color), 1);
               }

               .user-icon {
                    filter: invert(0.5);
               }

               .timing-list {
                    margin-top: 5px;
                    padding-inline-start: 15px;
                    .timing-points {
                         margin-bottom: 3px;
                         text-align: left;
                         display: list-item;
                         list-style-type: disc;
                         font-size: 12px;
                         color: rgba(var(--content-color), 1);
                         white-space: nowrap;
                         margin-left: 15px;
                         [dir="rtl"] & {
                              text-align: right;
                              margin-left: unset;
                              margin-right: 15px;
                         }

                         &:last-child {
                              margin-bottom: 0;
                         }
                    }
               }
          }

          .btn-check {
               &:checked {
                    ~ .selact-ride-box {
                         color: rgba(var(--theme-color), 1);
                         background-color: rgba(var(--theme-color), 0.1);
                         border: 1px solid rgba(var(--theme-color), 1);
                         .vehicle-name {
                              color: rgba(var(--theme-color), 1) !important;
                         }
                         .icon {
                              --Iconsax-Color: rgba(var(--theme-color), 1);
                         }
                    }
               }
          }
     }

     .nav-item {
          width: 100%;
          border-radius: 10px;
          background-color: rgba(var(--white), 1);

          .nav-link {
               position: relative;
               width: 100%;
               padding: 12px;
               font-weight: 500;
               font-size: 14px;
               font-size: 16px;
               color: rgba(var(--content-color), 1);
               cursor: pointer;

               &.active {
                    background-color: rgba(var(--white), 1);
                    color: rgba(var(--content-color), 1);
                    border: 1px solid rgba(var(--title-color), 1);
                    &:hover {
                         color: rgba(var(--content-color), 1);
                    }
               }
               &:hover {
                    color: rgba(var(--content-color), 1);
               }
               .icon {
                    --Iconsax-Color: rgba(var(--content-color), 1);
                    --Iconsax-Size: 20px;
                    float: left;
               }
               .vehicle-img {
                    width: 100%;
                    height: 42px;
                    margin-block: 10px;
               }
               .vehicle-name {
                    font-size: 13px;
                    font-weight: 400;
                    color: rgba(var(--title-color), 1);
               }

               .user-icon {
                    width: 14px;
                    filter: invert(0.5);
               }
               .timing-list {
                    margin-top: 5px;
                    padding-inline-start: 15px;
                    .timing-points {
                         margin-bottom: 3px;
                         text-align: left;
                         display: list-item;
                         list-style-type: disc;
                         font-size: 12px;
                         color: rgba(var(--content-color), 1);
                         white-space: nowrap;
                         [dir="rtl"] & {
                              text-align: right;
                         }
                         &:last-child {
                              margin-bottom: 0;
                         }
                    }
               }
          }
     }
     &.outstation-ride-tab {
          padding: 0 0 15px 0;
          border-bottom: 1px dashed rgba(var(--line-color), 1);
          .nav-item {
               .nav-link {
                    &.active {
                         color: rgba(var(--theme-color), 1);
                         background-color: rgba(var(--theme-color), 0.1);
                         border: 1px solid rgba(var(--theme-color), 1);
                    }
               }
          }
     }
}

.my-ride-tab {
     width: 100%;
     padding-inline: 20px;
     margin: 30px auto 0;
     display: flex;
     gap: 20px;
     flex-wrap: nowrap;
     overflow: auto;
     border-radius: 6px;
     border: none;
     @media (max-width: 600px) {
          gap: calc(10px + (20 - 10) * ((100vw - 320px) / (600 - 320)));
     }
     .nav-item {
          border-radius: 10px;
          background-color: rgba(var(--white), 1);
          border: 1px solid rgba(var(--line-color), 1);
          box-shadow: 0px 4px 12px 0px rgba(var(--title-color), 0.04);

          .nav-link {
               width: 100%;
               padding: 12px;
               font-weight: 500;
               line-height: 1;
               font-size: 14px;
               white-space: nowrap;
               color: rgba(var(--content-color), 1);

               &.active {
                    background-color: rgba(var(--theme-color), 1);
                    color: rgba(255, 255, 255, 1);
                    transition: all 0.5s ease-in-out;
                    &:hover {
                         color: rgba(255, 255, 255, 1);
                    }

                    &::after {
                         content: none;
                    }
               }
               &:hover {
                    color: rgba(var(--content-color), 1);
               }
          }
     }
}
