html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    margin-bottom: 60px;
    background-color: #f3f4f6;
}

/* OJO */
.modal-backdrop {
    /*display: none;*/
}

/*.mi-modal-backdrop.show {
    opacity: .5;
}

.mi-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100vw;
    height: 100vh;
    background-color: #000;
}*/

/*------------------------------------------------*/
/* para copesma */
/*------------------------------------------------*/
@media (max-width: 1800px) {
    .container {
        max-width: 1290px;
    }

    .modal-header{
        padding: 1rem 0rem 1rem 0rem;
    }
    .modal-body {
        padding: 0px 10px 0px 10px;
    }

    .modal-footer {
        padding: .25rem;
    }

    .form-floating > label {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        padding: .51rem 0.25rem
    }

    .form-floating > .form-control:focus, .form-floating > .form-control:not(:placeholder-shown) {
        padding: 15px 5px 0px 10px;
    }

    .form-floating > .form-control, .form-floating > .form-select {
        /*height: calc(2.5rem + 8px);*/
        height: 40px;
        line-height: 1.0;
    }

    .form-floating {
        margin-bottom: 10px;
    }

    .form-floating-pedido {
        margin-bottom: 0px !important;
    }

    /*    .row > * {
        padding-right: calc(var(--bs-gutter-x) * .2);
        padding-left: calc(var(--bs-gutter-x) * .0);
    }*/
    #divTransporteRadios {
        min-height: 58px;
    }

    #divConDetallesPedido {
        height: 615px;
    }

    #divConDetallesPedidoCompra {
        height: 602px;
    }

    .tipotransporte {
        width: 165px;
    }

    .fechaspedido {
        width: 185px;
    }

    #divPedidoOrdenFrigorifico {
        height: 320px;
    }

    #divPedidoOrdenTransporte {
        height: 280px;
    }

    #divPedidoProductos {
        /*height: 392px;*/
        height: 360px;
    }

    #divPedidoAlbaranes {
        height: 164px;
    }

    #divPedidoCompraProductos {
        /*height: 450px;*/
        height: 365px
    }

    #Comentarioot{
        height: 80px;
    }

    .inputObservacionesOF{
        height: 50px!important;
    }

    #Comentarioalbaran {
        height: 80px!important;
    }
}
/* ------------------------------------------------ */

@media (min-width: 1900px) {
    .container {
        max-width: 1800px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: .75rem;
    }

    .form-floating > label {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        padding: 1rem 0.75rem;
    }

    .form-floating > .form-control:focus, .form-floating > .form-control:not(:placeholder-shown) {
        padding-top: 1.625rem;
        padding-bottom: 0.625rem;
    }

    .form-floating > .form-control, .form-floating > .form-select {
        height: calc(3.5rem + 2px);
        /*height: 60px;*/
        line-height: 1.25;
    }

    .form-floating {
        margin-bottom: 10px;
    }

    /*    .row > * {
        padding-right: calc(var(--bs-gutter-x) * .5);
        padding-left: calc(var(--bs-gutter-x) * .5);
    }*/

    #divTransporteRadios {
        min-height: 10px;
    }

    #divConDetallesPedido, #divConDetallesPedidoCompra {
        /*height: 845px;*/
        /*height: 750px;*/
        height: 830px;
    }

    #divPedidoOrdenFrigorifico {
        height: 480px;
    }

    #divPedidoOrdenTransporte {
        /*height: 331px;*/
        height: 400px;
    }

    #divPedidoProductos {
        /*height: 476px;*/
        height: 550px;
    }

    #divPedidoAlbaranes {
        height: 220px;
    }

    #divPedidoCompraProductos {
        height: 550px;
    }

    #Comentarioot {
        height: 125px;
    }

    .inputObservacionesOF {
        height: 70px!important;
    }
}

#Comentarioalbaran {
    height: 126px;
}

.inputOrdenes {
    height: 60px !important;
}


.rowpedido > * {
    padding-right: 10px;
    padding-left: 5px;
}

.modal-xxl {
    max-width: 98% !important;
    /* width: 77%;*/
}

/*@media (min-width: 800px) {
    .modal-xxl {
        min-width: 90%;
    }
}

@media (min-width: 1400px) {
    .modal-xxl{
        min-width: 1300px;
    }
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 95%;*/ /* aumento el ancho disponible en la ventana*/
/*}
}*/


.texto-rojo {
    color: red !important;
}

.texto-verde {
    color: green !important;
}

.mayusculas {
    text-transform: uppercase !important;
}

.minusculas {
    text-transform: lowercase !important;
}

.navbar {
    /*background-color: #1f2937 !important;*/
    background-color: #312b60 !important;
    color: #a0c5e8 !important;
}

    .navbar a {
        color: #ffffff !important;
        border-radius: 6px;
        margin-right: 30px;
    }

        .navbar a:hover {
            background-color: #374151;
            color: #fff;
        }

.navbar-brand {
    margin-right: 40px;
}

.contenedorDeDataTable {
    background-color: white;
    border-radius: 10px;
    padding: 30px 25px 30px 25px;
}

    .contenedorDeDataTable i {
        font-size: 1.5rem;
        /*color: #312d5e;*/
        color: #1764d1;
    }

.cabecera {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 15px;
}

.tituloCabecera {
    /*background-color: yellow;*/
}

.botonesCabecera {
    /*background-color: fuchsia;*/
    /*padding-top: 0.755em;*/
}

/* labels */
.form-label {
    font-weight: 800;
    opacity: 0.5 !important;
    /*color: dimgrey;*/
    color: black;    
}

/* modales */
.modal-header span {
    /*    font-size: 2em;
    top: -8px;
    right: 10px;
    position: absolute;
    color: grey;*/
}

#footerEdicionPedido {
    margin-top: 30px !important;
    text-align: right;
    position: absolute;
    bottom: 10px;
    right: -3px;
}

/* Etiquestas en los listados */
.divCeldaTipoEtiqueta {
    display: inline-grid;
}

.spanEtiquetasEnDatatables {
    color: whitesmoke;
    width: 125px;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.7rem;
    min-height: 20px;
    padding-top: 1px;
    margin-top: 2px;
}

.etiquetaEsCliente, .etiquetaEsPerfilGerente {
    background-color: #259e65;
}

.etiquetaEsFrigorifico, .etiquetaEsPerfilComercial, .estadoPedidoPendienteComercial {
    background-color: #717dc2;
}

.etiquetaEsTransportista, .etiquetaEsPerfilLogistica, .estadoPedidoPendienteLogistica, .estadoPedidoCompraPendiente {
    background-color: #a94442;
}

.etiquetaEsOtroTipo, .etiquetaEsPerfilAdministracion, .estadoPedidoPendienteAdministracion, .estadoPedioCompraPendiente {
    /*background-color: violet;*/
    background-color: darkorange;
}

.etiquetaEsOtroTipo, .etiquetaEsPerfilGestion {
    background-color: darkgray;
}

.etiquetaEsProveedor {
    background-color: darkorange;
}

.estadoPedidoTramitado {
    background-color: steelblue;
}

.estadoPedidoFinalizado, .estadoPedidoCompraFinalizado {
    background-color: darkgreen;
}


/* personalización de links */
@media (min-width: 100px) {
    a {
        text-decoration: none;
        color: #717dc2;
    }
}



/* datatables */
/********************/
/*
    .dataTables_wrapper .dataTables_info {
    clear: both;
    float: left;
    padding-top: 0.755em;
}
    */

.dataTables_wrapper .dataTables_length {
    /*left: 50%;*/
    /*transform: translate(-50%, 0%);*/
    /*padding-top: 0.4em;*/
}
/*.tablaDatos_container_top {
    text-align: center;
        border:dashed;
}*/

.dataTables_length {
    float: left;
    /*background-color: yellow;*/
    padding-top: 00px;
    margin-top: -5px;
}

.dataTables_filter {
    float: right;
    /*background-color: brown;*/
    padding-top: 0px;
}

.dataTables_info {
    text-align: center !important;
    clear: none !important;
    float: none !important;
    padding-top: 0px !important;
}

div.dt-buttons {
    float: none;
    margin-bottom: 20px;
}

.dataTables_length, .dataTables_filter, .dataTables_info {
    font-size: 0.85rem;
}


.dataTable th {
    font-size: 13px;
}

.dataTable td {
    font-size: 13px;
    /*padding: .235rem !important;*/
    padding: 3px 15px 3px 5px !important;
}

.dataTable_btns_cell {
    text-align: center;
}

.dataTable-btn {
    width: 25px;
    height: 25px;
    font-size: 15px;
    padding: 0px;
    margin: 0px;
}


/*
.dataTables_wrapper .dataTables_paginate {
    float: right;
    text-align: right;
    padding-top: 0.25em;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 0em;
        margin: 5px;
    }

@media screen and (max-width: 767px) {
    .dataTables_wrapper .dataTables_paginate {
        padding-top: 50px !important;
    }
}*/




/*.tooltipTemaError {
    border-radius: 5px;
    border: 2px solid #000;
    background: #4c4c4c;
    color: #fff;
}*/
/*.tooltipster-content{
    background-color:red;
    border-radius:5px;
    color:white;*/
/*border-color:black;*/
/*border-width:20px;*/
/*}*/



/*.has-error {*/
.input-validation-error {
    border-color: #a94442;
    background-color: rgba(169,68,66,0.3) !important;
}

.text-danger {
    font-size: 0.8rem;
    font-weight: 700;
}



/* menu */
.navbar .dropdown:hover .dropdown-menu {
    display: block;
}

.navbar .dropdown-menu {
    background-color: #1f2937;
}




/* campos de select2. Para que los adecue a form-floating de bootstrap */
/*.select2-container--default .select2-selection--single {
    height: 58px;
    border: 1px solid #ced4da;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #444;
        padding-top: 1.3rem;
        padding-left: 0.7rem;
    }


.select2-dropdown {
    z-index: 5000;
}

.select2-search__field {
    z-index: 5000;
}*/


/*datepicker*/
/*.datepicker {
    z-index: 9999999999 !important;*/ /* has to be larger than 1050 */
/*}*/
a:hover {
    cursor: pointer;
}

.chosen-container-single .chosen-drop {
    z-index: 8000;
}




/*#partialModalPedidos .form-floating {
    margin-top: 0px;*/
/*margin-top:10px;*/
/*margin-bottom: 0px;
}*/

.input-group {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    margin-left: 10px;
    margin-bottom: 10px;
}

    .input-group,
    .input-group input,
    .input-group select,
    .input-group textarea,
    .input-group #divTransporteRadios {
        /*background-color: ivory;*/
    }

#divTipoContacto {
    position: relative;
    text-align: right;
    /* right: 20px; */
    top: -70px;
}

@media (max-width: 1400px) {
    #divTipoContacto {
        top: -60px;
    }
}


.spanEtiquetasCabeceraContactos {
    color: whitesmoke;
    width: 175px;
    text-align: center;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    min-height: 41px;
    padding: 2px 30px 5px 30px;
    /*    margin-top: -74px;
    margin-left: 462px;
    display: block;
    position: absolute;*/
}

#divEstadoPedido {
    /* width: 100%; */
    position: absolute;
    right: 35px;
    text-align: center;
    font-family: fantasy;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 4px;
}

    #divEstadoPedido i {
        font-size: 1.1rem !important;
        margin-right: 6px;
        position: absolute;
        left: -20px;
        top: 8px;    
    }

#formPedido .chosen-container, #formPedidoCompra .chosen-container {
    margin-top: 27px;
    margin-left: 10px;
    width: 95% !important;
}

#ClienteContacto-error, #ProveedorContacto-error #TransportistaContacto-error, #Incoterm-error {
    top: 6px;
    position: relative;
    margin-left: 0px;
}

#divDatosPedido {
    /*display: contents;*/
    margin-left: 10px;
}

/*
    .divDatosPedido .input-group label,
    .divDatosPedido label {*/
/*font-size: 1rem;*/ /*0.85rem;*/
/*margin-top: 5px !important;
        margin-bottom: 5px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        padding-top: 5px !important;
        padding-bottom: 5px !important;
    }

    .divDatosPedido .input-group input,
    .divDatosPedido .input-group textarea {*/
/*font-size: 0.85rem;*/
/* margin-left: 5px !important; */
/* margin-right: 5px !important; */
/* margin-top: 15px !important; */
/*margin-bottom: 5px !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
        padding-top: 20px !important;
        padding-bottom: 5px !important;
    }

    .divDatosPedido input[type="radio"] {
        margin-left: 14px;
    }

    .divDatosPedido .form-floating {
        margin-top: 0px !important;
        margin-bottom: 0px !important;
    }*/

/*        #divDatosPedido .form-floating > .form-control {
            height: 40px;
            line-height: 1.25;
        }*/

/*        #divDatosPedido .form-floating > .form-select {
            height: 60px;
            line-height: 1.25;
        }*/

.cabeceraIntpuGroup {
    /*font-size: 1.2rem;*/
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 0px !important;
}
/*#divDatosPedido input[type="radio"] {
            height: 25px;
        }*/
.selectEnFormFloating {
    opacity: 1 !important;
    font-size: 0rem;
    height: 58px !important;
    /*margin-top: -10px;*/
    /*width: 48%;*/
}

/*#divDatosPedidoOtrosDatos .form-floating > .form-control {
    height: 50px !important;
}*/

.labelClientePedido {
    z-index: 7000;
    /*    margin-top: -13px;
    font-size: 90%;*/
}

#divTransporteRadios {
    padding-top: 32px;
}

.labelTransporte {
    top: -8px !important;
    font-size: 90% !important;
}

.divTransporte {
    padding-top: 0px;
    padding-right: 5px;
    /*width: 350px;*/
}

    .divTransporte .chosen-container {
        /*position: relative;*/
        top: 0px;
        /*    right: -335px;
    max-width: 50%;*/
    }



#anhadirProductoaPedido {
    /*width: 120px;*/
    float: right;
    margin-right: 12px;
    width: 150px;
}

.divPedidoProducto, .divPedidoOT, .divPedidoOF, .divPedidoAlbaran, .divPedidoCompraProducto {
    display: inline-flex;
}



#divPedidoProductos, #divPedidoCompraProductos {
    width: 99%;
    overflow-y: auto;
    padding-left: 4px;
}

    #divPedidoProductos label, #divPedidoOrdenTransporte label, #divPedidoOrdenFrigorifico label, #divPedidoAlbaranes label, #divPedidoCompraProductos label {
        z-index: 1;
        margin-top: -9px !important;
        font-size: 75% !important;
        /* margin-left: -1px !important;*/
    }

    #divPedidoProductos .chosen-container, #divPedidoCompraProductos .chosen-container {
        margin-top: 25px;
        width: 95% !important;
        margin-left: 10px;
    }

.selectPedidoProducto, .selectPedidoProveedor, .selectPedidoFrigorifico, .selectPedidoCompraProducto {
    opacity: 1 !important;
    font-size: 0rem;
    min-height: 60px;
}

.alineacionDerecha {
    text-align: right;
}

.alineacionCentro {
    text-align: center;
}

/*.switchery {
    width: 50px;
    height: 24px;
}

    .switchery > small {
        top: 0px;
        width: 24px;
        height: 24px;
    }*/


/*---------------------------------*/
.circuloDifuminado {
    border-radius: 30%;
    display: inline-block;
    position: relative;
}

    /*    .circuloDifuminado img {
        border-radius: 30%;
        display: block;
        border: 1px solid rgba(255,255,255,0);
    }*/

    .circuloDifuminado:after {
        content: "";
        display: block;
        width: 100%;
        height: 100%;
        background: radial-gradient(ellipse at center, rgba(255,255,255,0) 0%,rgba(255,255,255,1) 69%,rgba(255,255,255,1) 100%);
        border-radius: 30%;
        position: absolute;
        top: 0;
        left: 0;
    }



.fa, .fa-solid, .fa-regular {
    margin-right: 5px;
}





/***************/
.wrapper_select {
    display: inline-flex;
    /*background: #fff;*/
    /*height: 65px;*/
    width: 100%;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 5px;
    /*padding: 20px 15px;*/
    /*box-shadow: 5px 5px 30px rgba(0,0,0,0.2);*/
}

    .wrapper_select .option {
        background: #fff;
        height: 22px;
        width: 200px;
        display: flex;
        align-items: center;
        justify-content: space-evenly;
        /*margin: 0 10px;*/
        border-radius: 5px;
        cursor: pointer;
        /*        padding: 0 10px;
        border: 2px solid lightgrey;*/
        transition: all 0.3s ease;
    }

        .wrapper_select .option .dot {
            height: 18px;
            width: 18px;
            background: #d9d9d9;
            border-radius: 50%;
            position: relative;
            margin-left: 5px;
            margin-right: 8px;
        }

            .wrapper_select .option .dot::before {
                position: absolute;
                content: "";
                top: 4px;
                left: 4px;
                width: 10px;
                height: 10px;
                background: #0069d9;
                border-radius: 50%;
                opacity: 0;
                transform: scale(1.5);
                transition: all 0.3s ease;
            }

#TransporteRadioButton_S:checked:checked ~ .TransporteRadioButton_S,
#TransporteRadioButton_N:checked:checked ~ .TransporteRadioButton_N {
    border-color: #0069d9;
    background: #0069d9;
}

    #TransporteRadioButton_S:checked:checked ~ .TransporteRadioButton_S .dot,
    #TransporteRadioButton_N:checked:checked ~ .TransporteRadioButton_N .dot {
        background: #fff;
    }

        #TransporteRadioButton_S:checked:checked ~ .TransporteRadioButton_S .dot::before,
        #TransporteRadioButton_N:checked:checked ~ .TransporteRadioButton_N .dot::before {
            opacity: 1;
            transform: scale(1);
        }

.wrapper_select .option span {
    /*font-size: 20px;*/
    color: #808080;
}

#TransporteRadioButton_S:checked:checked ~ .TransporteRadioButton_S span,
#TransporteRadioButton_N:checked:checked ~ .TransporteRadioButton_N span {
    color: #fff;
}

.tab_with_error {
    background-color: darkred;
}



.progress-bar {
    background-color: #312d5e;
}


/*cambia color de fondo de las filas hover de tablas*/
tr:hover {
    background-color: #e1daf7 !important;
}

    tr:hover td.sorting_1 {
        background-color: #e1daf7 !important;
    }





.form-control:disabled, .form-control[readonly] {
    background-color: #ebf2ee;
    opacity: 1;
}

.searchPanesDatatables {
    background-color: #ebedf2;
    border-radius: 5px;
}

/* oculto el botón de borrar filtros en searchpanes */
.dtsp-clearAll {
    display: none;
}

.dataTables_info {
    color: darkred !important;
    font-size: 0.7rem;
    margin-top: 25px;
}

#goToTopBtn {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 25%;
    background-color: #312d5e;
    color: #fff;
    font-size: 20px;
    text-align: center;
    /*line-height: 50px;*/
    cursor: pointer;
    z-index: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

    #goToTopBtn:hover {
        opacity: 1;
    }


/*spinner de wait*/
.loadingContainer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    z-index: 190000;
}

.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50001;
    background-color: rgba(243, 244, 246,.7);
    height: 70px;
    width: 150px;
    text-align: center;
    border-radius: 50%;
    padding-top: 15px;
}

    .loading span {
        font-size: .8rem;
        color: #312d5e;
        /*color: white;*/
        font-weight: 700;
    }

    .loading div {
        position: absolute;
        top: 33px;
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #312d5e;
        /*background: white;*/
        animation-timing-function: cubic-bezier(0, 1, 1, 0);
        margin-left: 45px;
        margin-top: 15px;
    }

        .loading div:nth-child(1) {
            left: 8px;
            animation: loading1 0.6s infinite;
        }

        .loading div:nth-child(2) {
            left: 8px;
            animation: loading2 0.6s infinite;
        }

        .loading div:nth-child(3) {
            left: 32px;
            animation: loading2 0.6s infinite;
        }

        .loading div:nth-child(4) {
            left: 56px;
            animation: loading3 0.6s infinite;
        }

@keyframes loading1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes loading3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes loading2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}


.chosen-container {
    width: 100% !important;
}

.chosen-disabled {
    opacity: .9 !important;
    cursor: default;
}

.iconoLineaProducto:hover {
    font-size: 1.5rem;
    transform: translate(-5px, 0px);
}

.divNombreFrigorificoOF {
    margin-bottom: 10px;
    margin-top: 20px;
    /*background-color:silver;*/
    background-color: #d3dad6;
    border-radius: 3px 4px;
}

#modalEnvioEmails {
    z-index: 5;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
}

#modalDescargaInformes {
    z-index: 5;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 375px;
}

#modalSeleccionaDireccionDescarga {
    z-index: 5;
    display: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
}

.modalesSelecciones .modal-dialog .modal-content {
    background: #fef7be;
    border-color: grey;
    border-width: 1.5px;
}

.labelInputAlbaranFrigoComentario {
    position: absolute;
}

#divConDetallesPedido, #divConDetallesPedidoCompra {
    display: block;
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 0px 10px 0px 20px;
    border: 1px;
    border-style: solid;
    background-color: #ebf2ee;
    /*height: 800px;*/
    /*height: 845px;*/
    z-index: 1;
}

#tituloPedidos {
    margin: -16px;
}

#divPedidoOrdenFrigorifico {
    width: 99%;
    overflow-y: auto;
}


#divPedidoOrdenTransporte {
    width: 99%;
    overflow-y: auto;
}

#divPedidoAlbaranes {
    width: 99%;    
    overflow-y: auto;
}

#divPedidoCompraProductos {
    width: 99%;
    overflow-y: auto;
}

#linkSeleccionasDireccionDescarga {
    color: blue;
}

#linkBorraDireccionDescarga {
    color: red;
}

.lineaProductoNoVisible {
    /*background-color: darkred!important;*/
    background-color: hsl(0, 40%, 80%) !important;
    /*color: grey!important;*/
}

.botonLinkDeshabilitado{
    opacity: .5;
}