/* *******
  This is global CSS file and used in multiple pages
******* */

/* #preloader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255,.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
} */

.text-transparent{
    color: transparent !important;
}
.text-danger-light{
    color: #ef9494 !important;
}
.card-payment-visa{
    background: linear-gradient(to bottom right, #eae8fd , #fff 30%, #eceafa 50%);
}
.card-payment-master{
    background: linear-gradient(to bottom right, #fdf2e8 , #fff 30%, #fdf2e8 50%);
}
.card-payment-amex{
    background: linear-gradient(to bottom right, #e8f0fd , #fff 30%, #e8f0fd 50%);
}
.overflow-ellipsis{
    display: block;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

img, svg{
    max-width: 100%;
}
.drag-drop {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: .375rem;
    padding: 1rem 0.5rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-direction: column;
}
.drag-drop > input[type="file"] {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
}


/* -------Upload file-------- */
.uploadArea,.upload-area {
    border: 2px dashed #ccc;
    padding: 1rem;
    width: 100%;
    height: auto;
    text-align: center;
    /* line-height: 160px; */
    border-radius: 0.375rem;
    /* margin-bottom: 20px; */
    outline: none;
    position: relative;
    cursor: pointer;
}
.btn-browse{
    position: relative;
}
.btn-browse .fileInput{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 0;
}
.uploadArea.dragover, .upload-area.dragover {
    border-color: #7367f0;
    color: #7367f0;
}
.uploadArea:focus,
.upload-area:focus {
    border-color: #7367f0;
}
.previewContainer {
    margin: 2px 0;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.file-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5px;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    padding: 5px;
    width: 100px;
}
.file-item img,
.file-item iframe {
    max-width: 100px;
    max-height: 100px;
}
.file-item .file-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.file-item .file-icon img {
    max-width: 100px;
    max-height: 100px;
}
.file-item .file-name {
    margin-top: 5px;
    text-align: center;
}
.remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: rgba(250, 57, 57, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.remove-btn i {
    font-size: 14px;
}
.file-name {
    word-wrap: break-word;
    max-width: 100px;
    white-space: pre-wrap;
}

/* Custom tooltip to copy */
.text-copy {
    cursor: pointer;
    position: relative;
}
.text-copy:active {
    background-color: #fff;
}
.text-copy::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 100%;
    transform: translateX(-50%);
    background-color: #444;
    color: #fff;
    padding: 5px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.text-copy:hover::after {
    opacity: 1;
}

.timeline .timeline-item{
    padding-left: 1.2rem !important;
}

.table-search-container .dataTables_length,
.table-search-container .dataTables_paginate,
.table-search-container .dataTables_info,
.table-search-container thead {
    display: none;
}


/* Fleet nav */
@media screen and (min-width:992px) {
    .border-end.lg{
        border-right: none !important;
    }
    .fleet-nav {
        align-items: stretch;
    }
    .fleet-nav {
        display: flex;
    }
    html:not([dir=rtl]) .fleet-nav .nav-tabs {
        border: 0;
        /* border-right: var(--bs-border-width) solid #dbdade; */
        border-bottom-left-radius: 0.375rem;
    }
    .fleet-nav > .nav, .fleet-nav > div > .nav {
        flex-grow: 0;
        flex-direction: column;
    }
    .fleet-nav > .nav,
    .fleet-nav > div > .nav {
        z-index: 1;
        position: relative;
    }
    .fleet-nav>.nav-tabs .nav-link{
        border-radius: 0 !important;
        justify-content: start !important;
    }
    .fleet-nav .nav-tabs .nav-link.active,
    .fleet-nav .nav-tabs .nav-link.active:hover,
    .fleet-nav .nav-tabs .nav-link.active:focus,
    .fleet-nav .nav-tabs .nav-link.active,
    .fleet-nav .nav-tabs .nav-link.active:hover,
    .fleet-nav .nav-tabs .nav-link.active:focus {
        box-shadow: -2px 0px 0 #7367f0 inset;
    }
    .fleet-nav>.tab-content {
        flex-grow: 1;
    }
}
.card .fleet-nav .nav.nav-tabs {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Map vertical scroll section */
.app-logistics-fleet-wrapper .logistics-fleet-sidebar-body {
    height: calc(100vh - 20.5rem);
    overflow-y: auto;
}

.iconwidth img{
    width: 16px;
}

/* varification code field  */
.card .auth-input-wrapper.d-flex{
    display:flex !important;
}

/* hiding number arrow */
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

/* @media screen and (max-width:400px) {
    .time-filter{
        flex-direction: column;
    }
} */


/* landing page */
#multiStepsValidation{
    position: relative;
    z-index: 5;
}
.opacity-0 {
    opacity: 0;
}
