/*
 * notifyjs
 */
 .notifyjs-corner {
    z-index: 9999999 !important;
}

/*
 * swal
 */

.swal2-confirm {
    background-color: #4548ff !important;
}

/*
 * mapas
 */
.mapDivStyle {
    position: absolute;
    overflow: hidden;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* 
 * forms 
 */
.form-control {
    height: calc(1.5em + 0.75rem + 2px);
}

.abbr-checkbox {
    margin-left: 4px;
    margin-right: 8px;
}

/* 
 * tablas
 */
.table {
    width: 100% !important;
}

.fecha_vencida {
    background-color: #fffd90;
}

#loading_overlay {
    background-color: #FFFFFF;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0px;
    left: 0px;
    z-index: 1000;
}

#loadersmall {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: auto;
    margin-right: auto;
    z-index: 1;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
    background-color: #000;
    border-radius: 100%;
    width: 100px;
    height: 100px;
    margin-left: -58px;
    margin-top: -58px;
    padding: 16px;
}

.modal_background {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgb(0, 0, 0);
    /* Fallback color */
    background-color: rgba(0, 0, 0, 0.3);
    /* Black w/ opacity */
}

.mini_loader,
.mini_loader:before,
.mini_loader:after {
    background: #ffffff;
    -webkit-animation: load1 1s infinite ease-in-out;
    animation: load1 1s infinite ease-in-out;
    width: 1em;
    height: 4em;
}

.mini_loader {
    color: #ffffff;
    text-indent: -9999em;
    position: absolute;
    left: 50%;
    top: 50%;
    font-size: 11px;
    -webkit-transform: translateZ(0);
    -ms-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-animation-delay: -0.16s;
    animation-delay: -0.16s;
}

.mini_loader:before,
.mini_loader:after {
    position: absolute;
    top: 0;
    content: '';
}

.mini_loader:before {
    left: -1.5em;
    -webkit-animation-delay: -0.32s;
    animation-delay: -0.32s;
}

.mini_loader:after {
    left: 1.5em;
}

@-webkit-keyframes load1 {

    0%,
    80%,
    100% {
        box-shadow: 0 0;
        height: 4em;
    }

    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}

@keyframes load1 {

    0%,
    80%,
    100% {
        box-shadow: 0 0;
        height: 4em;
    }

    40% {
        box-shadow: 0 -2em;
        height: 5em;
    }
}

@-webkit-keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.restore-password-loader {
    margin: auto;
    width: 100px;
    height: 100px;
    background-image: url(../img/ellipse.png);
    background-size: 100px;
    animation: rotate 2s linear infinite;
}

.incorrect-password::marker {
    color: red;
}

.correct-password::marker {
    color: #2AA100;
}

.header-brand-img {
    padding: 10px;
}

.desktop-login-container {
    width: 65.5%;
}

.desktop-login-form {
    width: 40%
}

.login-input-email {
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.login-input-password {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.login-submit {
    margin-top: 6rem;
}

.forgot-password-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.forgot-password-return {
    width: 45%
}

.login-form-footer {
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    color: #191919;
}

@media screen and (max-width: 767px) {
    .desktop-login-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .desktop-carousel {
        display: none;
    }

    .desktop-login-container {
        width: 100%;
    }

    .desktop-login-form {
        width: 80%;
    }

    .login-input-email {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .login-input-password {
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }

    .login-submit {
        margin-top: 3rem;
    }

    .forgot-password-container {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        height: 100%;
    }

    .forgot-password-return {
        width: 100%;
    }
}

@media screen and (max-width: 378px) {
    .login-form-footer {
        font-size: 0.7rem;
        font-family: 'Inter', sans-serif;
        color: #191919;
    }
}


/* DataTables */

div.dataTables_wrapper div.dataTables_processing {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

div.dataTables_wrapper div.dataTables_processing span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 20px;
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
    background-color: rgba(236, 240, 241, 0.7);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.swal2-container {
    z-index: 999999999;
}

.tdtags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0;
    align-items: center;
}

.tdtags .tag {
    flex-shrink: 0;
    font-size: 0.65rem;
}

/* Bitacoras */

.timeline {
    list-style-type: none;
    padding-left: 20px;
    max-height: 300px;
    overflow: scroll;
}

.timeline p {
    margin: 0 0 10px 0;
    display: inline-block;
    vertical-align: top;
}

.timeline .date {
    float: right;
    font-size: 0.75rem;
    color: #6b6f80;
    background-color: #f0f0f2;
    border-radius: 3px;
    padding: 0 0.5rem;
    line-height: 2em;
    cursor: help;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: space-between;
}

.timeline-item-description {
    flex: 1;
    margin-right: 10px;
}

.timeline-content {
    display: flex;
    justify-content: space-between;
    align-items: start;
    width: 100%;
}

.timeline-item .collapse {
    width: 100%;
}

.timeline-item {
    position: relative;
    margin: 0;
    padding-bottom: 1em;
    padding-left: 30px;
}

.timeline-itemfirst-child:before {
    content: '';
    position: absolute;
    bottom: 0px;
    top: 0px;
    left: 5px;
    width: 2px;
}

.timeline-item:first-child:after {
    content: '';
    display: none;
    position: absolute;
    left: 0;
    top: 4px;
    height: 12px;
    width: 12px;
}

.timeline-item:first-child {
    margin-top: -15px;
}

.timeline-item:before {
    content: '';
    background-color: #6b6f80;
    position: absolute;
    bottom: 0px;
    top: 0px;
    left: 5px;
    width: 2px;
}

.timeline-item:after {
    content: '';
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' viewBox='0 0 32 32' focusable='false'%3E%3Ccircle stroke='none' fill='%23000000' cx='16' cy='16' r='10'%3E%3C/circle%3E%3C/svg%3E");
    position: absolute;
    left: 0;
    top: 4px;
    height: 12px;
    width: 12px;
}

.timeline-details {
    padding-left: 20px;
    border-left: 1px solid #e0e0e0;
    color: #6b6f80;
    font-size: 12px;
}

.ppp_class {
    min-width: 95px;
}

/* Tabla Pedidos */

.badge-estado-interno {
    cursor: pointer;
}

.badge-estado-envio {
    cursor: default;
}

.table-borderbottom>tbody>tr>td,
.table-borderbottom>tbody>tr>th,
.table-borderbottom>tfoot>tr>td,
.table-borderbottom>tfoot>tr>th,
.table-borderbottom>thead>tr>td,
.table-borderbottom>thead>tr>th {
    border-top: none;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #eeeeee;
}

#TablaPedidos_wrapper .dataTables_scrollBody {
    overflow-x: auto !important;
    overflow-y: hidden !important;
}

#TablaPedidosHeader th, .amplifica-datatable thead th {
    padding: 10px 3px;
    font-size: 0.81rem;
    font-weight: bold!important;
    color: gray;
    text-wrap: nowrap;
}

#TablaPedidos td, .amplifica-datatable tbody td {
    padding: 3px;
    vertical-align: middle;
    font-size: 0.81rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
    /* Ajusta esto según tus necesidades */
}

#TablaPedidos .badge, .amplifica-datatable .badge {
    cursor: default;
    font-size: 0.7rem;
}

#TablaPedidos .badge i, .amplifica-datatable .badge i {
    width: 15px;
}

#TablaPedidos .acciones, .amplifica-datatable .acciones {
    text-align: right;
}

#TablaPedidos .dataTables_empty, .amplifica-datatable .dataTables_empty {
    height: 500px;
}

#TablaPedidos, #reception-orders-table, #despachos-table {
    min-height: 500px;
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dataTables_wrapper .dataTables_processing {
    z-index: 10;
}

.select2-container--open {
    z-index: 9999;
}

.tablapedidos-truncate {
    max-width: 110px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orders-quick-dashboard {
    position: relative;
}

.orders-quick-dashboard .scroll {
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    background-color: #121755;
    color: white;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    box-shadow: 0 0.76rem 1.52rem rgba(18, 38, 63, 0.03);
    border-radius: 0.3rem;
    margin-bottom: 1rem;
}

.orders-quick-dashboard .nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #e0e0e0!important;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    font-size: 24px;
    color: #333;
    display: none; 
    z-index: 100;
    width: 50px;
    height: 100%;
    outline: none;
}

.orders-quick-dashboard .left {
    left: 0;
    background: linear-gradient(to left, rgba(248, 248, 248, 0), #121755 70%);
    border-top-left-radius: 0.3rem;
    border-bottom-left-radius: 0.3rem;
}

.orders-quick-dashboard .right {
    right: 0;
    background: linear-gradient(to right, rgba(248, 248, 248, 0), #121755 70%);
    border-top-right-radius: 0.3rem;
    border-bottom-right-radius: 0.3rem;
}

.orders-quick-dashboard .scroll::-webkit-scrollbar {
    display: none;
}

.orders-quick-dashboard .data {
    flex: 1 0 auto;
    padding: 1.5rem;
    margin-right: 0 0.5rem;
}
.orders-quick-dashboard .data:first-child {
    margin-left: 0;
}
.orders-quick-dashboard .data:last-child {
    margin-right: 0;
}
.orders-quick-dashboard .dash-title {
    font-size: 1rem;
    text-wrap: nowrap;
    color: #E1E0E0;
}

.orders-quick-dashboard .dash-data {
    font-size: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0;
    text-wrap: nowrap;
}

.orders-quick-dashboard #last30DaysOrdersChart {
    width: 100px;
    padding-left: 10px;
}

.skeleton-card h2 {
    background-color: #ddd;
    height: 25px;
    width: 80%;
    margin: 4px 0;
    border-radius: 4px;
    animation: fadeLoading 1.5s infinite;
}

@keyframes fadeLoading {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 0.2;
    }
}

/* Alertas */
.alert-danger ul {
    list-style-type: disc !important;
    padding-left: 1em;
}

.datatable-header-multiselect-button {
    display: flex;
    align-items: left;
    justify-content: left;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    color: #384b6e;
    background-color: transparent;
    border: 0;
    text-align: left;
}

.datatable-pedidos-header-multiselect-button {
    display: flex;
    align-items: left;
    justify-content: left;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    font-size: 0.81rem;
    font-weight: bold;
    color: gray;
    background-color: transparent;
    border: 0;
    text-align: left;
}

.datatable-pedidos-header-multiselect-button:hover {
    background-color: #f0f0f2;
}

.datatable-header-multiselect-button {
    display: flex;
    align-items: left;
    justify-content: left;
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
    color: #384b6e;
    background-color: transparent;
    border: 0;
    text-align: left;
}

.multiselect-container .dropdown-menu {
    min-width: 250px;
}

/* Google Maps Component */

.pac-container {
    z-index: 99999999;
}

.address-validator-edit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Tarificador */

.custom-swal-container {
    font-size: 14px;
}

.custom-swal-content ul {
    margin-top: 10px;
    margin-bottom: 0;
}

.custom-swal-content ol {
    margin-top: 10px;
    margin-bottom: 0;
    max-height: 300px;
    overflow-y: auto;
}

.custom-swal-content li {
    margin-bottom: 5px;
}

.multiselect-selected-text {
    color: #728096;
    font-size: 15px;
}

.form-subheader {
    margin-bottom: 1rem;
    border-left: 3px solid #6c756e;
    color: #6c756e;
    padding-left: 8px;
}
.form-select {
    border-color: #ecebf1!important;
}
.amplifica-blue {
    color: #4548ff;
}
.amplifica-light-grey {
    color: #E1E0E0;
}
.amplifica-medium-grey {
    color: #b1b1b1;
}
.amplifica-grey {
    color: #6c756e;
}
.amplifica-yellow {
    color: #F7DC4B;
}
.field-title {
    color: #6c756e;
    margin-left: 5px;
    font-size: 12px;
}
.form-control-lg {
    border: 1px solid #121755;
}
.badge-status {
    display: inline-block;
    padding: 4px 8px 4px 8px;
    font-size: 0.75em;
    font-weight: 400;
    line-height: 1.4;
    font-size: 0.9em!important;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
    cursor: default;
}

.badge-status i {
    width: 20px;
}

.id-badge {
    white-space: nowrap;
    color: #191919;
}
.badge-menu {
    padding: 2px 4px;
    margin-right: 8px;
    font-size: 0.75em;
    font-size: 0.5em!important;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 4px;
    cursor: default;
    color: #fff;
    background-color: #b1b1b1;
}

/* Nav Tabs */
.amplifica-nav .nav-link {
    color: #6c756e!important;
    font-size: 0.9em!important;
    font-weight: 500!important;
    border: 0!important;
    border-radius: 0!important;
    padding: 0.5rem 1rem!important;
    margin-right: 0!important;
    background-color: #f7f7f7!important;
    border-bottom: 2px solid #f7f7f7!important;
    transition: all 0.3s!important;
}
.amplifica-nav .nav-link.active {
    color: #4548ff!important;
    border-bottom: 2px solid #4548ff!important;
    background-color: #f7f7f7!important;
}