/* General */

:root {
    --primary-text-color: #495057;
    --background-color: #F7F9FC;
    --input-background: #F4F7FA;
}

html, body {
    font-size: 14px;
    font-family: 'Poppins', sans-serif !important;
    color: var(--primary-text-color) !important;
}

body {
    opacity: 1 !important;
    overflow-y: auto;
    background-color: var(--background-color);
    height: 100%;
}

/* Ocultar flechas de input number */
/* 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;
}

.wrapper {
    align-items: stretch;
    display: flex;
    width: 100%;
}

.main {
    background-color: var(--background-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
    transition: margin-left .35s ease-in-out, 
                left .35s ease-in-out, 
                margin-right .35s ease-in-out, 
                right .35s ease-in-out;
    width: 100%;
}

.content {
    direction: ltr;
    flex: 1;
    padding: 1.5rem;
}

.container-documentos {
    padding: 1.5rem;
}

@media(max-width: 980px){
    
    .main {
        overflow-y: hidden;
    }

    .content {
        max-width: 100vw;
        width: 100vw;
    }

}

@media(max-width: 768px){

    .container-documentos {
        padding: 1.5rem 0;
    }

}

.disabled {
    background-color: #dce1e6;
    border-color: #bfc4c9;
}

.enlace {
    text-decoration: none;
    color: var(--primary-text-color);
}

.boton-general {
    user-select: none;
    text-decoration: none;
    color: var(--primary-text-color);
    border: 1px solid #dee2e6;
}

.boton-general:hover {
    color: var(--primary-text-color);
    background-color: #e9ecef;
    border-color: #dee2e6;;
}

.boton-general a {
    user-select: none;
    text-decoration: none;
    color: var(--primary-text-color);
}

.card {
    background-clip: border-box;
    box-shadow: 0 0 0.875rem rgba(41, 48, 66, 0.05);
    border: 0 solid transparent;
    margin-bottom: 24px;
}

.card-header {
    background-color: #fff;
    border-bottom: 0 solid transparent;
    margin-bottom: 0;
    padding: 1rem 1.25rem;
}

.top-card {
    border-radius: .25rem;
    color: white;
}

.form-control {
    background-color: var(--input-background);
    border: 0px solid #fff;
}

.form-control:active {
    background-color: var(--input-background);
}

.form-control:focus {
    background-color: var(--input-background);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 0 4px rgba(176, 196, 235, 0.6);
}

.table {
    font-size: inherit;
}

.table thead>tr th, .table tbody>tr th, .table tbody>tr td {
    color: var(--primary-text-color);
}

.table-striped thead>tr th, .table-striped tbody>tr th, .table-striped tbody>tr td {
    color: var(--primary-text-color);
}

.table>:not(:last-child)>:last-child>* {
    border-bottom-color: inherit;
}

.table-striped {
    --bs-table-striped-bg: var(--background-color);
}

.table-filter {
    padding-right: .5rem;
    color: var(--primary-text-color);
    text-decoration: none;
}

.table-options {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.table-options-link {
    text-decoration: none;
    margin: 0;
    color: inherit;
}

.table-options-link:hover {
    text-decoration: none;
    color: inherit;
}

.table-options-icon {
    margin-left: .75rem;
    margin-right: .75rem;
    cursor: pointer;
    opacity: 1;
    transition: opacity .35s ease-in-out;
}

.table-options-icon:hover {
    opacity: .5;
}

.columna-tabla {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    white-space: nowrap;
}

.tabla-celdas td {
    white-space: nowrap;
}

.borderless {
    border: 0;
}

.input-group-text {
    color: var(--primary-text-color);
    background-color: var(--input-background);
    border: 0px solid transparent;
}

/* Badge Carrito */

.badge-carrito {
    vertical-align: middle;
    background-color: var(--primary-text-color) !important;
}

/* Sidebar */

.sidebar {
    background: #293042;
    direction: ltr;
    margin-left: 0;
    max-height: 100vh;
    max-width: 260px;
    min-width: 260px;
    user-select: none;
    transition: margin-left .35s ease-in-out,
                left .35s ease-in-out,
                margin-right .35s ease-in-out,
                right .35s ease-in-out;
}

.sidebar-wrapper {
    position: fixed;
    background: #293042;
    height: 100vh;
    width: 260px;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar-inner-wrapper {
    position: relative;
    top: 0;
    bottom: 0;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
}

.sidebar-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    margin: 1rem 0 0;
    padding: .75rem 0;
    height: 150px;
}

.sidebar-header-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    height: 100%;
    padding: 0 2rem;
}

.sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: .75rem 2.5rem;
    max-height: 100%;
    max-width: 100%;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: .75rem 0;
}

.sidebar-menu-header {
    color: #ced4da;
    font-size: .85rem;
    padding: 1.5rem 0rem .50rem;
    text-decoration: none;
    text-transform: uppercase;
}

.sidebar-menu-header:hover {
    color: #ced4da;
}

.sidebar-link {
    align-items: center;
    color: #ced4da;
    cursor: pointer;
    display: flex;
    margin: .50rem 0;
    padding: 0;
    padding-left: 0.75rem;
    text-decoration: none;
}

.sidebar-link i {
    margin-right: 8px;
}

.sidebar-link:hover {
    color: #fff;
    transition: color .35s ease-in-out;
}

.sidebar-collapsed {
    /* This pushes the content to the left (hides it) */
    margin-left: -260px;
}

.show {
    margin-left: 0px !important;
}

@media(max-width: 980px){

    .sidebar {
        margin-left: -260px;
        z-index: 99999;
    }

}

/* Navbar */

.navbar-bg {
    background: #fff;
}

.navbar {
    border-bottom: 0;
    box-shadow: 0 0 2rem 0 rgba(41, 48, 66, .10);
}

.navbar {
    padding: .875rem 1.25rem;
    position: relative;
}

.nav-menu-item {
    text-decoration: none !important;
    color: var(--primary-text-color);
    user-select: none;
}

.dropdown {
    user-select: none;
    cursor: pointer;
}

.cropText {
    display: inline-block;
    vertical-align: middle;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media(max-width: 980px){

    .navbar {
        width: 100vw;
    }

}

@media(max-width: 768px){
    
    .navbar {
        height: 4rem;
    }

}

.sidebar-toggle {
    cursor: pointer;
    display: flex;
    text-decoration: none;
    color: var(--primary-text-color);
}

/* User data */

.user-profile {
    border-radius: 50% !important;
    width: 100%;
    max-width: 120px;
    height: auto;
    margin-bottom: .5rem !important;
}

/* Archivos correo */

.file-pill {
    font-size: .85rem;
    font-weight: 500;
    padding: .50rem;
    margin-right: 6px !important;
}

/* Quill editor */

.ql-toolbar {
    border: 1px solid var(--bs-gray-200) !important;
    border-radius: .25rem .25rem 0 0 !important;
    font-family: 'Poppins', sans-serif !important;
}

.ql-container {
    background-color: var(--input-background);
    border: 0 !important;
    border-radius: 0 0 .25rem .25rem !important;
    font-family: 'Poppins', sans-serif !important;
    font-size: 1rem !important;
    min-height: 80px;
}

/* Alertas */

.alerta {
    position: absolute;
    opacity: 1;
    top: 3.5rem;
    right: 0;
    z-index: 999;
    transition: opacity .3s ease-in-out;
}

#loading-overlay {
    display: none;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
}

/* Catalogo */

.filtros-catalogo {
    height: auto;
}

.filtros-mobile-container {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 9998;
}

.filtros-mobile {
    position: fixed;
    z-index: 9999;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    overflow-y: auto;
    background-color: #fff;
    padding: .75rem 1rem;
    border-top-left-radius: .25rem;
    border-top-right-radius: .25rem;
}

.image-container {
    align-items: center;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.articulo-card {
    padding: .75rem .50rem;
    border-top: 1px solid rgba(0,0,0,0.08);
    width: 100%;
    min-height: 10rem;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.articulo-card:last-of-type {
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.articulo-title {
    cursor: pointer;
    color: var(--primary-text-color);
    text-decoration: none;
    transition: opacity .3s ease-in-out;
}

.articulo-title:hover {
    color: var(--primary-text-color);
    text-decoration: none;
    opacity: .5;
}

.articulo-title.heading {
    font-size: 1.25rem;
}

.lista-categorias {
    list-style: none;
    padding: .5rem 0rem 0rem .5rem;
}

.lista-categorias li {

}

.nombre-categoria {
    color: var(--primary-text-color);
    text-decoration: none;
    padding: .25rem;
    cursor: pointer;
    transition: .3s background-color ease-in-out;
}

.nombre-categoria:hover {
    color: var(--primary-text-color);
    background-color: #d5d5d5;
}

.categoria-seleccionada-link {
    text-decoration: none;
}

.categoria-seleccionada-card {
    border-radius: .5rem;
    padding: .5rem .75rem;
    transition: .3s background-color ease-in-out
}

.colapsar-filtros {
    max-height: 100px;
}

/* Ordenes */

.orden-card {
    cursor: pointer;
    transition: .3s background-color ease-in-out;
}

.orden-card:hover {
    background-color: #ebebeb;
}

/* Facturacion */

.facturacion-nav {
    background-color: #293042;
    color: #fff;
}

.contenedor-facturacion {
    margin-top: 128px;
    height: 100%;
}

.contenedor-logos {
    min-height: 200px;
    border-radius: 0.25rem 0 0 0.25rem;
}

.contenedor-logos.oscuro {
    background-color: #293042;
}

.contenedor-logos.claro {
    background-color: #ffffff;
}

.contenedor-datos-cliente {
    padding: 2rem;
    border-radius: .25rem;
    background-color: var(--background-color);
    outline: 1px solid rgba(220, 226, 235, .7);
}

@media(max-width: 768px) {

    .contenedor-facturacion {
        margin-top: 12px;
    }

    .contenedor-logos {
        border-radius: 0.25rem 0.25rem 0 0;
    }
}

.fill-formulario {
    height: auto;
}

@media(max-width: 768px) {
    
    .fill-formulario {
        height: 100%;
    }

}

.sin-borde, .sin-borde > td {
    border: none !important;
}

/* Personalizar scrollbar */
::-webkit-scrollbar {
    width: .5em;
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: #565e75;
    border-radius: 5px;
}