/* 
    Created on : May 13, 2016, 3:27:40 PM
    Author     : juandiego@comtor.net
*/

.report-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-left-color: #09f;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


#top{
    min-height:60px;
    height: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#user-menu{
    position: static;
    width: 300px;

}
#user-menu > li > ul{
    width: 250px;

}

td ul li:nth-child(even) {
    color: #1057A4;
}

.popup {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.quantity_span {
    float: right;
}

.highlight {
    background-color: yellow;
}

/* The actual popup (appears on top) */
.popup .popuptext {
    visibility: hidden;
    width: 160px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 0;
    position: absolute;
    z-index: 1;
    top: 125%;
    left: 50%;
    margin-left: -80px !important;
}

/* Popup arrow */
.popup .popuptext::before {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #555 transparent;
}

/* Toggle this class when clicking on the popup container (hide and show the popup) */
.popup .show {
    visibility: visible;
    -webkit-animation: fadeIn 1s;
    animation: fadeIn 1s
}

/* Add animation (fade in the popup) */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity:1 ;
    }
}


.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span{
    text-indent: 0;
    width: auto;
    margin-left: -17px;
    cursor: pointer;
}

#sellers_summary_form table tr:last-child {
    font-weight: bolder;
    background-color: var(--table-header) !important;
    color: white;
}

#product_delete_list_container,
.details_table_container {
    max-height: 500px;
    overflow: auto;
    border: 1px solid lightgray;
}

#products_details_table th:last-child,
#customers_details_table th:last-child,
#purchase_orders_details_table_container table th:last-child {
    width: 1%;
    text-align: center;
}

#purchase_order_results div:first-child{
    font-weight:600;
}

#product_delete_list_container table th:first-child {
    width: 1%;
    text-align: center;
}

.map {
    height: 100vh;
    width: calc(100% - 550px);
    transition: margin-left .5s;
    float: left;
    display: inline-block;
}
.customer-map {
    height: 100vh;
    width: 100%;
}
#nav_menu_container {
    display: inline-block;
    position: absolute;
    float: right;
    right: 0;
    height: 100%;
}

#nav_menu {
    height: 100%;
    width: 500px;
    z-index: 1;
    top: 0;
    right: 0;
    background-color: white;
    overflow-x: hidden;
    transition: 0.5s;
    display: inline-block;
    float: left;
}

#nav_menu_tab {
    width: 50px;
    margin: 0 !important;
    display: inline-block;
    background: var(--main-color);
    float: left;
    height: 100%;
    cursor: pointer;
    font-size: 20pt;
    color: white;
}

#nav_menu_tab a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: #818181;
    display: block;
    transition: 0.3s;
    font-weight: bolder;
}

#nav_menu_tab a:hover {
    color: #f1f1f1;
}

#nav_menu .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

#nav_menu .summary_table {
    width: 100%;
}

#update_status {
    display: block;
    text-align: left;
    padding: 10px 20px;
    border: 2px solid white;
}

.cardImgDiv i {
    font-size: 4rem;
    padding: 0.4rem;
}
.cardTitleSpan{
    height: 1rem;
}

.cardTitleDiv span {
    margin: auto 0 auto 0;
    font-size: 10pt;
    text-overflow: ellipsis;
}
.conventions {
    width: 100%;
    margin-top: 0 !important;
}

.conventions tr td:first-child {
    margin: 0 !important;
    padding: 0 !important;
    width: 1%;
}

.conventions tr td:first-child img {
    margin: 0;
    padding: 0;
    width: 30px;
}

.gps_marker_info_window {
    margin: 20px 0 10px;
}

.gps_marker_info_window h3 {
    margin: 0;
    padding: 5px 0;
    display: block;
}

.gps_marker_info_window span {
    font-size: 10pt;
    margin: 0;
    padding: 5px;
    display: block;
}

.comtor-row-input-error {
    color: var(--danger-color);
    font-weight: bolder;
    padding: 0.2rem;
    display: block;
    width: 100%;

}

#purchase_orders_problemsEx {
    color: red;
    display:block;
    text-align: start;
    margin-left: 1%
}

#purchase_orders_summary_frame {
    width: 100%;
    height: 500px;
    display:block;
    margin: 20px auto;
    border: 0;
}

#checker {
    visibility:hidden;
}

#mainContainer {
    background-color: white;
    border-radius: 10pt;
    padding: 10px 0;
}

#date_container #reload_button,
#boton_buscar {
    display: block;
    margin: 10px auto 0;
}

#configuration_form .comtorboxheader {
    margin: 0;
}

#orderDetailTable th,
#sellerDetailTable th {
    width: 10%;
    background-color: initial;
    color: black;
}

#aux_bar {
    border-radius: 10px;
    border: 1px solid lightgray;
    width: 97vw;
    height: 35px;
}

div#checkbox_container {
    margin-left: 0px;
    margin-right: 0px;
    width: fit-content;
}

div#aux_bar ul.aux_items {
    list-style: none;
    display: flex;
    justify-content: left;
    align-items: start;
    padding: 0%;
}

div#aux_bar ul.aux_items li.aux_item_list {
    margin-right: 20px;
    margin-left: 10px;
}

input#general_checkbox {
    zoom: 1.5;
    margin-top: 5.5px;
}

input#general_not_delivered_checkbox {
    zoom: 1.5;
    margin-top: 5.5px;
}

@media screen and (max-width: 1200px) and (min-width: 750px) {

    .col-md-3{
        max-width: 50%;
        flex-basis: 100%;
    }
    .col-12.col-sm-6.col-md-3.col-lg-12.col-xl-12 {
        max-width: 100%;
        flex-basis: 100%;
    }

}
@media screen and (min-width: 2014px) and (max-width: 2425px) {
    #sysMenu > li:last-child > ul ul  {

        left: -100%;
    }
}

@media screen and (max-width: 750px) {
    #cards .cardMainDiv {
        width: 150px;
    }
    canvas.ocelot-chart{
        width: 100vw !important;
        height: auto !important;
    }

    #top{
        display: block;
    }

}

@media print {
    /* Establecer márgenes */
    @page {
        margin: 0.2cm; /* Puedes ajustar el valor de acuerdo a tus necesidades */
    }

    /* Ajustar la escala */
    body {
        transform: scale(1); /* Puedes ajustar el valor de la escala según tus necesidades */
        zoom: 75%;
    }

    #top, #footer{
        display: none;
    }

    #purchase_orders_summary_frame{
        height: auto
    }

    #top, #footer{
        display: none;
    }

}

@media screen and (orientation: potrait){
    /*
        #top{
            flex-direction: column;
            justify-content: space-between;
        } */

    #top{
        display: block;
    }

    #sysMenu > li.sfHover > ul > li.sfHover > ul{
        display: contents;
    }
}

/* Código modificado por Jools */

.title_table, .title_table_alert {
    width: 100%;
    margin: 0px auto;
}
.title_table > tr:nth-child(2) > td > table, .title_table_alert > tr:nth-child(2) > td > table{
    width: 100%;
    margin: 0px;
}
.title_table > tr:nth-child(1) > th{
    background-color:#1057A4;
}
.title_table_alert > tr:nth-child(1) > th{
    background-color: #F04A0C;
}
.title_table td:last-child, .title_table_alert td:last-child {
    text-align: center;
}
.title_table > tr:nth-child(2) > td, .title_table_alert > tr:nth-child(2) > td{
    padding: 0;
}
.title_table > tr:nth-child(2) > td > table > tr:nth-child(1) > th, .title_table_alert > tr:nth-child(2) > td > table > tr:nth-child(1) > th {
    color: #1057A4;
    background-color:#E2E2E6;
}
.title_table tr.selected-row, .title_table_alert tr.selected-row {
    background-color: #0C417B;
    color: #ffffff;
}

.title_table button, .title_table_alert button{
    background-color: #F04A0C;
    border: none;
}
.title_table button:hover, .title_table_alert button:hover{
    background-color: #B43809;
}
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: "Ver información";
    position: absolute;
    background-color: #0069d9;
    color: white;
    padding: 5px;
    border-radius: 5px;
    bottom: 100%;
    left: 50%;

}

/* Verifying Payment*/
.container-payment-processing {
    display: flex;
    gap: 18px;
    flex-direction: column;
    height: 100vh;
    justify-content: center;
}
.title-payment-processing {
    background-color: #1057a4;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    width: 50%;
    color: #ffffff;

}
.title-payment-processing h1 {
    font-size: 25px;
}
