/***************** General *****************/
:root {
    --darkblue: #2c3e50;
    --orange: #ec902f;
    --darkgreen: #5A8A13;
    --darkred: #dc3545;
    --darkorange : #c79e17;
    --lightgray: #ced4da;
}

body {
    font-family: 'Montserrat', sans-serif;
    padding-top: 90px;
    padding-bottom: 10px;
    text-wrap: balance;
}

p, td, textarea, input[type="text"] {
    font-family: 'Lato', sans-serif;
}

/***************** Navbar *****************/
.navbar {
    background-color: var(--darkblue);
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler {
    border-color: #fff !important;
}

.navbar-brand .logo {
    max-width: 90px;
}

.navbar-collapse {
    flex-grow: unset;
}

.container-fluid {
    pointer-events: none;
}

.container-fluid > * {
    pointer-events: initial;
}

.container-fluid h1 {
    font-size: 4vw;
    text-wrap: nowrap;
    letter-spacing: 0.05em;
}

.container-fluid h1 span{
    font-weight: 700;
}

a.navbar-brand, a.navbar-brand:hover, ul.nav.navbar-nav.navbar-right>li>a, a.logoName {
    color: white;
    text-decoration: none;
}

.nav-item a {
    padding: 10px 15px;
    border-bottom: 1px solid var(--darkblue);
    text-decoration: none;
}

.custom-dropdown {
    display: block;
}

.custom-dropdown a {
    display: block;
    padding: 10px 15px;
    border-bottom: 1px solid var(--darkblue);
    transition: 0.3s all ease;
}

.custom-dropdown a:hover, .custom-dropdown a:active, .nav-item a:hover, .nav-item a:active {
    border-bottom: 1px solid #fff;
}

.custom-dropdown .dropdown-menu {
    box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.2);
    opacity: 0;
    border-radius: 0;
    background: #fff;
    transition: 0.3s margin-top ease, 0.3s opacity ease, 0.3s visibility ease;
    visibility: hidden;
}

.custom-dropdown .dropdown-menu.active {
    opacity: 1;
    visibility: visible;
}

.custom-dropdown .dropdown-menu a {
    font-size: 14px;
    padding: 15px 15px;
    color: var(--darkblue);
}

.custom-dropdown .dropdown-menu a:last-child {
    border-bottom: none;
}

.custom-dropdown .dropdown-menu a .icon {
    margin-right: 15px;
    display: inline-block;
}

.custom-dropdown .dropdown-menu a:hover,
.custom-dropdown .dropdown-menu a:active,
.custom-dropdown .dropdown-menu a:focus {
    background: #fff;
    color: var(--orange);
}

/*************** Container *****************/
.container {
    max-width: 1200px;
    margin: 1.25em auto !important;
    padding: 0 1em;
}

.form-container {
    margin: 1.25em auto;
    max-width: 600px;
    padding: 0 1em;
}

.product-container {
    max-width: 800px;
    margin: 1.25em auto;
    padding: 0 1em;
}

.footer {
    height: 30px;
    background-color: var(--orange) !important;
}

.footer p {
    margin-top: 5px;
    color: #fff;
}

/***************** Index *******************/
.card {
    background-color: #e3e3e3;
    transition: .25s ease-in-out;
    overflow: hidden;
}

.card a {
    text-decoration: none;
}

.card .row {
    overflow: hidden;
}

.card img {
    color: var(--darkblue);
    object-fit: cover;
    height: 260px;
    opacity: 0.9;
    transform: scale(1);
    transition: .25s ease-in-out;
}

.card-body .card-title, .card-body .card-text {
    height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--darkblue);
}

.card-footer .precio {
    height: 55px;
}

.card-footer .comprar a {
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-footer h5 {
    font-weight: bolder;
    color: var(--orange);
}

.card-footer a, .verTienda {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    background-color: var(--darkblue);
}

.buscarProducto {
    border: 1px solid var(--darkblue);
    border-radius: 0;
    background-color: var(--darkblue);
}

.buscarProducto:hover {
    border: 1px solid var(--orange);
    background-color: var(--orange);
    transition: .25s ease-in-out;
}

.card:hover {
    border: 1.5px solid var(--orange);
    transition: .25s ease-in-out;
}

.card:hover img {
    opacity: 1;
    transition: .25s ease-in-out;
}

.card:hover img:hover {
    transform: scale(1.1);
    transition: .25s ease-in-out;
}

.card:hover .card-title {
    font-weight: 500;
}

.card-footer:hover a, .verTienda:hover {
    background-color: var(--orange);
    transition: .25s ease-in-out;
}

.verTienda {
    width: unset;
    transform: scale(1.2);
    transition: .1s ease-in-out;
}

.verTienda:hover {
    transform: scale(1.5);
    transition: .1 ease-in-out;
}

.multiselect-native-select .multiselect {
    text-align: left !important;
}

form.searchBar input {
    border-radius: .35em 0 0 .35em;
}

form.searchBar .btn {
    border-radius: 0 .35em .35em 0;
}

/*************** Dashboard *****************/
.dashboard h2, .carrito h2 {
    margin-top: 2rem !important;
}

.dashboard thead, .dashboard tbody tr {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.dashboard tbody {
    display: block;
    overflow-y: auto;
}

.dashboard tbody::-webkit-scrollbar {
    display: none;
}

/*************** Navigation ****************/
.pagination .page-item:not(.active) .page-link {
    color: var(--darkblue);
}

.pagination .page-item.active .page-link {
    background-color: var(--darkblue);
    border-color: var(--darkblue);
}

.nav.nav-tabs, a.btn {
    z-index: 1;
}

/***************** Error *******************/
.errorRow {
    min-height: 75vh;
}

.errorRow img {
    max-width: 400px;
    max-height: 300px;
}

/***************** Tablas ******************/
table {
    max-height: 400px;
}

tr td {
    vertical-align: middle;
}

button.nav-link {
    color: var(--darkblue);
}

.dt-row div {
    padding-left: 0;
}

.dataTables_filter label {
    position: relative;
    z-index: 2;
}

.stock-excedido {
    color: var(--darkred);
}

.impago {
    color: var(--darkred);
    font-weight: bold;
}

.pago {
    color: var(--darkgreen);
    font-weight: bold;
}

table.alertasTable tr.compra {
    background-color: var(--darkgreen);
}

table.alertasTable tr.stock {
    background-color: var(--darkred);
}

table.alertasTable tr.perdida {
    background-color: var(--darkorange);
}

table.alertasTable td {
    color: #fff !important;
}

/************* Editar Producto ************/
.prodImg {
    max-height: 320px;
}

a.ver-producto i, a.crear-categoria i {
    color: #198754;
}

.checksCategorias {
    max-height: 211px;
    overflow-y: auto;
}

/************** Ver Producto **************/
.product-container h1 {
    font-weight: 600;
    font-size: 2em;
}

.product-image {
    /* background-color: var(--lightgray); */
    border-radius: 25px;
}

.product-image img {
    object-fit: contain;
    max-height: 350px;
}

.productPrice {
    font-size: 2.5em;
    font-weight: 900;
}

.secondPrice {
    color: #888;
    font-size: 2.25em;
    font-weight: 600;
    text-decoration: line-through;
}

p.notiStock {
    padding-left: 2em;
}

div.cantidad {
    height: 50px;
    border-radius: 20px;
    background-color: #e9ecef;
}

div.selectCantidad, p.selectCantidad {
    border-radius: 10px 10px 0 0;
    background-color: #e9ecef;
}

select.selectCantidad {
    padding-left: 1.5em;
    padding-right: 1.5em;
    border-radius: 0 0 10px 10px;
}

.form-select#cantidad {
    text-align: center;
    background-color: #e9ecef;
    border: 0;
    max-width: 80px;
}

/**************** Botones **************/
.goBack, .goBack:hover {
    color: #fff;
    font-weight: 600;
    height: 50px;
    background-color: var(--orange);
    max-width: 200px;
    border-radius: 0 0 15px 15px;
    opacity: 0.9;
    transition: all .25s ease;
}

.goBack:hover {
    opacity: 1 !important;
    transition: all .25s ease;
}

.editProduct {
    color: #fff;
    font-weight: 600;
    height: 40px;
    background-color: var(--darkblue);
    border: 1px solid var(--darkblue);
    border-radius: 15px;
    opacity: 0.9;
    transition: all .25s ease;
}

.editProduct:hover {
    color: #fff;
    background-color: var(--orange);
    border: 1px solid var(--orange);
    transition: all .25s ease;
}

.addToCart {
    border-radius: 15px;
}

.btn[type="submit"], .btn[type="button"] {
    float: right;
}

a.btn:hover {
    cursor: pointer;
}

.plusminus button {
    border: 1px solid var(--lightgray);
    max-width: 45px;
}

.plusminus input {
    max-width: 65px;
}

/**************** Carrito **************/
div.summary {
    justify-content: end;
}

div.summary table tr {
    padding-top: 1em;
    padding-bottom: 1em;
}

div.summary table tr td {
    padding-top: .75em;
    padding-bottom: .75em;
}

/*********** Finalizar compra **********/
div.summary table tfoot tr, div.summary table .line {
    border-top: 1px solid var(--lightgray);
}

/********** Resultado compra ***********/
.resultMp h2 {
    color: #fff;
}

.resultMp .approved {
    background-color: var(--darkgreen);
}

.resultMp .rejected {
    background-color: var(--darkred);
}

/*************** Contacto **************/
.contacto-form button[type="submit"] {
    border: 0;
    background-color: var(--darkblue);
}

/***************** Fixes ***************/
@media (min-width: 768px) {
    .nav-tabs {
        padding-right: 20%;
    }
    .lista-productos .tab-pane, .lista-usuarios .tab-pane, #comprasRealizadas_wrapper, #ventasRealizadas_wrapper, #ventasPendientes_wrapper {
        margin-top: -52px;
    }
}

@media (max-width: 1199px) {
    .navbar-nav {
        background-color: var(--darkblue);
        width: 100% !important;
    }
    .custom-dropdown {
        margin: 0 auto;
    }
    .custom-dropdown a.dropdown-toggle {
        text-align: center;
    }
    .dashboard h2 {
        margin-top: 2rem !important;
    }
    .dataTables_filter label {
        width: 100%;
        text-align: right !important;
    }
}

@media (min-width: 1200px) {
    .fixed-top {
        height: 75px;
    }
    .navbar-brand .logo {
        margin-top: 2em;
    }
    .container-fluid h1 {
        font-size: 2.5vw;
        flex: 3;
    }
    .container, .product-container, .form-container {
        margin-top: -1em !important;
    }
    .dashboard tbody {
        max-height: 330px;
    }
}

.ocultar, .modal-backdrop.fade.show {
    display: none;
} 

.input-group .form-control::-ms-reveal {
    display: none;
}

/* Sweet Alert */
.swal2-html-container {
    height: 100%;
}
.swal2-confirm.swal2-styled {
    background-color: #198754 !important;
}