/* GLOBAL */

/* VARIABLES */
:root {
    --main: #2b2e34;
    --light-background: #e5e5e5;

    --entity_def_c: #232423;
    --entity_def_sc: #363D36;
    --orders_c: #4d96ff;
    --orders_sc: #61A3FF;
    --my_products_c: #ffd93d;
    --my_products_sc: #FFE88A;
    --customers_c: #03c9a9;
    --customers_sc: #41D2BA;
    --articles_c: #4f1076;
    --articles_sc: #6E3E8C;
    --budgets_c: #FFC21C;
    --budgets_sc: #FFE88A;

}
/* end - VARIABLES */

/* TEXTS */
img.logo.login-logo {
    max-width: 450px;
    width: 100%;
}
h2 { font-size: 15pt!important; }
h3 { font-size: 14pt!important; }

.btn {
    text-transform: unset!important;
    font-size: 14px!important;
    height: 35px;
}

#filter_datatable {
    background: #4fa2fb;
    padding: 7px 60px;
}
@media (min-width: 991px) {
    #filter_datatable { margin-top: 20px; }
}

.input-group .input-icon.input-group-text {
    background: #FFF;
}

.input-group.l-icon .input-icon.input-group-text {
    border-right: unset;
    border-radius: .25rem 0 0 .25rem;
}
.input-group.l-icon input.form-control {
    border-left: unset;
    border-radius: 0 .25rem .25rem 0;
}
.input-group.r-icon .input-icon.input-group-text {
    border-left: unset;
    border-radius: 0 .25rem .25rem 0;
}
.input-group.r-icon .form-control {
    border-right: unset;
    border-radius: .25rem 0 0 .25rem;
}

a.underline, button.underline {
    color: #000;
    text-decoration: none;
    position: relative;
}
button.underline {
    background: transparent;
    border: none;
}
a.underline:hover, button.underline:hover {
    color: #000;
}
a.underline:after, button.underline:after {
    background: none repeat scroll 0 0 #000;
    bottom: 0;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}
a.underline:hover:after, button.underline:hover:after {
    width: 100%;
    left: 0;
}

span.error {
    color: #dc3545;
    font-size: 12px;
}
/* end - TEXTS */

/*  STICKY FOOTER */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}
main {
    flex: 1;
}
/* end - STICKY FOOTER */

main.auth {
    background: var(--main);
}
main {
    background: #e5e5e5;
}

.margin-container {
    max-width: 1000px;
    margin: 50px auto;
}

.card { border-radius: 15px!important; }
.card.form-card .card-header {
    background: var(--main);
    color: #FFF;
    font-weight: bold;
    text-align: center;
    padding: 15px 0;
    font-size: 20px;
}

.search-bar-from {
    margin: 0 20px;
    height: 100%;
    width: 100%;
    max-width: 500px;
}
.search-bar-from button {
    background: #FFF;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    border-left: 1px solid #000;
    border-right: none;
    border-radius: 5px;
    padding: 1px 15px;
}
.search-bar-from input {
    /*padding: 18px 0;*/
    padding: 18px 12px!important;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    border-right: 1px solid #000;
    border-left: none;
    width: 100%;
}
@media ( max-width: 991px ) {
    .search-bar-from {
        margin: 0;
        width: auto;
    }
}

.breadcrumb-item+.breadcrumb-item:before {
    content: '>'!important;
}

/*select#language-select option[value="es"] { background-image:url("../img/flags/es.png") }*/
/*select#language-select option[value="en"] { background-image:url("../img/flags/gb.png") }*/

@media (min-width: 768px) {
    .language-select-container {
        display: flex;
        align-items: center;
    }
    .language-select-container label {
        min-width: 164px;
        padding-right: 10px;
    }
    .language-select-container select { min-width: 250px; }
}

/* end - GLOBAL */

/* LOGIN */
.card.login-card {
    background: var(--light-background);
    border: none;
}
.card.login-card > div > .card-header {
    background: transparent;
    border: none;
}

@media (min-width: 992px) {
    .card.login-card .auth-form-container > div:first-child {
        padding-right: 50px;
    }
    .card.login-card .auth-form-container > div:last-child {
        padding-left: 50px;
    }
}

/*.auth-form button.btn {
    padding: 15px 0;
}*/
.auth-form button.btn {
    padding: 0
}

footer.login {
    background: var(--main);
    color: #FFF;
    text-align: center;
    padding: 40px 0;
}
/* end - LOGIN */

/* HEADER */

.main-header {
    background: #6b6c70;

    width: 100%;
    color: #000;
    position: fixed;
    z-index: 1040;
}

.main-header .user-nav .user-action,
.main-header .user-nav .user-action a {
    color: #b5b7b9;
    white-space: nowrap;
    transition: .2s;
}
.main-header .user-nav .user-action a:hover {
    color: #d9d9d9;
}

.main-header .navbar-toggler i {
    color: #FFF;
}

.main-header .header-title {
    color: #b5b7b9;
}

.main-header .header-title nav {
    margin: 3px 0 0 15px;
    white-space: nowrap;
}

.main-header .h1 {
    white-space: nowrap;
}

.main-header .header-title nav li.breadcrumb-item,
.main-header .navbar .breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: #b5b7b9;
}

.main-header .header-title nav li.breadcrumb-item a {
    color: #b5b7b9;
}
.main-header .header-title nav li.breadcrumb-item a:hover {
    color: #d9d9d9;
}

@media ( min-width: 992px ) {
    .main-header .navbar {
        height: 70px;
    }

    .main-header .navbar .product-dropdown-container {
        padding: 15px 0;
    }

    .main-header .navbar #productDropdown {
        color: #FFF;
        background: #000;
        border-radius: 5px;
        border: unset;
        padding: 8px 16px;
        height: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-transform: uppercase;
    }
    .main-header .navbar #productDropdown:after {
        margin-left: 40px;
    }

    .main-header .logo-mid {
        background: #2b2e34;

        width: 250px;
        float: left;
        overflow: hidden;
        height: 70px;

        padding: 0 20px;
        display: flex;
        align-content: center;
        justify-content: center;
    }

    .main-header #navbarHeader {
        width: 100%;

        /*background: red;*/
        /*padding: 14px 0;*/
    }

    .main-header #navbarHeader .cart-action a {
        background: #ffd93d;
        /*padding: 22px;*/
        padding: 26px 20px 27px 20px;

        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.logo-mid img {
    width: 100%;
    float: left;
}

@media (min-width: 992px) {
    .user-nav.navbar-nav li {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
@media (max-width: 991px) {
    /*.main-header .navbar .container-fluid { justify-content: end; }*/
    .main-header .logo-mid {
        /*position: absolute;*/
        width: 100px;
        padding: 4px 10px;
    }
    .main-header .navbar .user-nav { justify-content: end; }
    .main-header #navbarHeader {
        margin-top: 20px;
    }
}
@media (max-width: 313px) {
    .main-header .logo-mid {
        width: 60px;
        padding: 0 4px;
    }
}

.products_mega_menu .product-menu-container {
    margin: 0 12px;
}

.products_mega_menu .product-menu-container .tabs-container {
    background: var(--main);
}
.products_mega_menu .product-menu-container .tabs-container > div,
.products_mega_menu .product-menu-container .menu-container > div,
.products_mega_menu .product-menu-container .img-container  > div {
    margin: 20px;
}
.products_mega_menu .product-menu-container .tabs-container button {
    color: #FFF;
    background: transparent;
    text-align: left;
    padding: 10px 20px;
    font-weight: bold;
    transition: .2s;
}
.products_mega_menu .product-menu-container .tabs-container button {
    border-bottom: 3px solid #464646;
    border-top: unset;
    border-right: unset;
    border-left: unset;
}
@media ( min-width: 992px ) {
    .products_mega_menu .product-menu-container .tabs-container button {
        border-left: 3px solid #464646;
        border-top: unset;
        border-right: unset;
        border-bottom: unset;
    }
}

.products_mega_menu .product-menu-container .tabs-container button.active,
.products_mega_menu .product-menu-container .tabs-container button.active:hover{
    border-color: #ffd93d;
}
.products_mega_menu .product-menu-container .tabs-container button:hover {
    border-color: rgba(255,217,61,.6);
}

.products_mega_menu .product-menu-container .menu-container ul {
    list-style: none;
    padding: 0;
}

.products_mega_menu .product-menu-container .menu-container ul li a {
    color: #000;
    display: inline-block;
    padding: 10px;
}

@media ( min-width: 992px ) and ( max-width: 1270px ) {
    header.main-header div.header-title {
        flex-flow: column;
        width: 100%;
    }

    header.main-header div.header-title span.h1 {
        margin: 0;
        width: 100%;
    }

    header.main-header div.header-title nav {
        height: auto;
        margin: 0;
        padding: 0;
        width: 100%;
    }
}

/* end - HEADER */

/* SIDENAV */

.sidenav {
    display: flex;
    flex-flow: column;

    background: #6b6c70;

    height: 100%;
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    padding-top: 22px;
    overflow: hidden;
    z-index: 1039;
}

.sidenav .copy {
    color: #FFF;
    margin-top: auto;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.sidenavList {
    margin-top: 48px;
    list-style: none;
    padding: 0;
}

.sidenavList li {
    /*width:250px;*/
    color:#fff;
    transition: .2s;
}

.sidenavList li.active {
    background: #4f5156;
}
.sidenavList li li.active {
    background: transparent!important;
}
.sidenavList li:hover {
    background: #5c5f64;
}
.sidenavList li li:hover {
    background: transparent!important;
}

@media (min-width: 992px) {
    .sidenavList li .toggle-submenu { display: none }
}
.sidenavList li .toggle-submenu {
    position: absolute;
    right: 0;
    margin-top: 20px;
}

.sidenavList li .toggle-submenu i {
    color: #FFF!important;
    padding: 4px 10px;
    transition: .2s;
}

.sidenavList li.active .toggle-submenu i {
    transform: rotate(180deg);
}

.sidenavList li a {
    display: inline-block;
    width: 100%;
    color: #FFF;
}

.sidenav .sidenavList > li { border-left: 7px solid #232423; }
.sidenav .sidenavList > li i { color: #232423; }
.sidenav .sidenavList > li.orders   { border-color: #4d96ff; }
.sidenav .sidenavList > li.orders i { color: #4d96ff; }
.sidenav .sidenavList > li.budgets   { border-color: #ffd93d; }
.sidenav .sidenavList > li.budgets i { color: #ffd93d; }
.sidenav .sidenavList > li.my_products   { border-color: #ffd93d; }
.sidenav .sidenavList > li.my_products i { color: #ffd93d; }
.sidenav .sidenavList > li.customers   { border-color: #03c9a9; }
.sidenav .sidenavList > li.customers i { color: #03c9a9; }
.sidenav .sidenavList > li.articles   { border-color: #4f1076; }
.sidenav .sidenavList > li.articles i { color: #4f1076; }

.sidenav .sidenavList > li > a {
    padding: 20px 30px;
    text-transform: uppercase;
    font-weight: bold;
}

.sidenav .sidenavList > li a i {
    padding-right: 10px;
}

.sidenavList li ul.dropdownList {
    list-style: none;
    padding: 0;
    position: relative;

    max-height: 0;
    transition: padding .6s, max-height .5s ease-out;
    overflow: hidden;
}
.sidenavList > li.active > ul.dropdownList {
    max-height: 500px;
    transition: max-height .9s, padding .1s ease-in;
    padding: 0 0 20px 0;
}
@media (min-width: 992px) {
    .sidenavList > li:hover > ul.dropdownList {
        max-height: 500px;
        transition: max-height .9s, padding .1s ease-in;
        padding: 0 0 20px 0;
    }
}

.sidenavList li ul.dropdownList li a {
    padding: 5px 0 5px 60px;
}

.sidenavList ul.dropdownList li > a span {
    position: relative;
    display: inline-block;
}
.sidenavList ul.dropdownList li > a span:after {
    background: none repeat scroll 0 0 #FFF;
    bottom: -5px;
    content: "";
    display: block;
    height: 2px;
    left: 50%;
    position: absolute;
    transition: width 0.3s ease 0s, left 0.3s ease 0s;
    width: 0;
}
.sidenavList ul.dropdownList li:hover > a span:after,
.sidenavList ul.dropdownList li.active > a span:after {
    width: 100%;
    left: 0;
}

@media (max-width: 991px) {
    /*.sidenav { display: none }*/
    .sidenav {
        left: -250px;
        transition: .5s;
    }
    .sidenav .sidenavList { margin-top: 40px; }
    .sidenav.active { left: 0 }
}

/* end - SIDENAV */

.wrapper-header {
    background: #cbcbcb;
}
.wrapper-header h1 {
    font-size: 25pt;
    margin-bottom: 0;
}
.wrapper-header .navbar { padding: 0; }

.wrapper-header .filter-form input {
    background: #FFF;
}

.content-wrapper {
    margin: 70px 0 0 250px;
}
@media (max-width: 991px) {
    .content-wrapper { margin: 46px 0 0 0; }
}

/* DATATABLES */

.dataTables_filter { display: none }

@media (max-width: 991px) {
    .content-wrapper { overflow-x: hidden; }
    .datatable-container .dataTables_wrapper .row:nth-child(2) > div { padding: 0!important; }
}

.datatable-container .dataTables_wrapper .row:nth-child(2) { overflow-x: auto; }

.datatable-container { overflow: scroll; }

.table.datatable {
    /*border-radius: 10px 10px 0 0;*/
    margin-bottom: 0!important;
    background: #FFF;
}
.dataTables_wrapper .row:last-child {
    background: #FFF;
    margin: -6px 0 0 0;
    padding: 40px 10px;
    /*border-radius: 0 0 10px 10px;*/
}
.dataTables_wrapper .row:first-child .dataTables_length { text-align: left; }
.dataTables_wrapper .row:last-child .dataTables_info { text-align: left; }
.dataTables_wrapper.dt-bootstrap5.no-footer { overflow: hidden; }

.table.datatable thead th {
    background: var(--main);
    color: #FFF;
}
.table.datatable thead th:first-child {
    /*border-radius: 10px 0 0 0;*/
}
.table.datatable thead th:last-child {
    /*border-radius: 0 10px 0 0;*/
}

.table.datatable tbody td {
    border: unset;
}

.table.datatable tbody a.delivery-notes-link       { color: #50b587; transition: .2s; }
.table.datatable tbody a.delivery-notes-link:hover { color: #205b40; }

.table.datatable tbody a.detail-link       { color: #47367a; transition: .2s; }
.table.datatable tbody a.detail-link:hover { color: #1f153d; }

.table.datatable .order-status {
    display: flex;
    align-items: center;
    justify-content: center;
}
.table.datatable .order-status div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 3px 20px;
    width: 150px;
    border-radius: 20px;
}
.table.datatable .order-status.send div    { background: #d4ffdf }
.table.datatable .order-status.process div { background: #d4deff }
.table.datatable .order-status.action div  { background: #ffefd4 }

.table.datatable .button-action {
    border: 0;
    color: #FFF;
    background: #919191;
    border-radius: 5px;
    padding: 5px 9px 3px 9px;

    transition: .2s;
}
.table.datatable .button-action:hover { background: #626262; }

.table.datatable .icon-action {
    border: 0;
    color: #919191;
    background: transparent;
    padding: 0;

    transition: .2s;
}
.table.datatable .icon-action:hover { color: #626262; }

table td {
    white-space: nowrap;
}

.article-small-img {
    background: #FFF;
    height: 100%;
}

.line-img, .article-small-img img {
    height: 100%;
    max-width: 60px;
    max-height: 60px;
    cursor: pointer;
    transition: .2s;
}
.line-img:hover, .article-small-img img:hover {
    opacity: .7;
}

.article-show-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.article-show-image img {
    width: 100%;
    max-width: 1000px;
    max-height: 1000px;
}

.table.datatable.show-detail tbody tr.detail {
    cursor: pointer;
}

.table.datatable.href-table tbody tr {
    transition: .2s;
    cursor: pointer;
}
.table.datatable.href-table tbody tr:hover { background: #f2f2f2; }

/* end - DATATABLES */

/* ENTITY FORM */

/*form.entity-form  {

}*/

.datatable-actions {
    /*display: flex;*/
    /*justify-content: end;*/
}

.datatable-actions .nav .nav-item {
    margin: 3px 2px;
}

.datatable-actions .nav .nav-item button {
    width: auto!important;
    min-width: 100px;
    max-width: 300px;
}

.datatable-actions .action,
.actions .action {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 5px 10px;
    border-radius: 5px;
    transition: .2s;
    border: unset;
}
.datatable-actions .action.action-gray {
    color: #000;
    background: #cbcbcb;
}
.actions .action.action-gray {
    color: #000;
    background: #e6e6e6;
}
.datatable-actions .action.action-gray:hover {
    background: #b0b0b0;
}
.actions .action.action-gray:hover {
    background: #dadada;
}
.datatable-actions .action.action-blue,
.actions .action.action-blue {
    color: #FFF;
    background: #567aed;
}
.datatable-actions .action.action-blue:hover,
.actions .action.action-blue:hover {
    background: #4763be;
}

.btn.view-invoice {
    background: #ff9c67;
    color: #FFF;
}
.btn.view-invoice:hover {
    background: #e18350;
}
/*@media ( max-width: 992px ) and ( min-width: 1200px ) {
    .actions .action { padding: 5px!important; }
}*/

/* end - ENTITY FORM */

/* ORDER FORM */

/*.order-form-container,
.actions-container.actions {
    display: inline-block;
}*/

@media (min-width: 1620px) {
    .wrapper-header.wrapper-order {
        display: flex;
        align-items: center;
    }
}

.actions-container.actions {
    width: fit-content;
    max-width: 507px;
    margin: 10px 0 10px auto;
}

.actions-order {
    display: flex;
    flex-wrap: wrap;
}

.actions-order .action {
    min-width: 125px;
}

/* edn - ORDER FORM */

/* TOASTS */

#toasts .toast-header {
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

#toasts .toast-header button {
    background: transparent;
    border: unset;
}

/* end - TOASTS */

/* STATUS CIRCLE */

.rounded-circle.status-circle {
    width: 20px;
    height: 20px;
    margin: auto;
}

/* end - STATUS CIRCLE */

/* SELECT2 */

span.select2.select2-container.select2-container--default { width: 100%!important; }
.select2-dropdown { z-index: 1055!important; }

.select2-selection.select2-selection--single {
    height: 35px!important;
}

.select2-selection__rendered {
    padding-top: 2px;
}

.select2-selection__arrow {
    margin-top: 3px;
}

.select2-dropdown.select2-dropdown--below {
    margin-top: -30px!important;
}

/* end - SELECT2 */

/* NAV PILS */

.wrapper-header .nav-tabs .nav-link.active,
.wrapper-body .nav-tabs .nav-link.active {
    color: #ffd93d;
    border-color: #ffd93d;
    background: var(--main);
}

/* end - NAV PILS */

/* ARTICLES */

/* article ref img */
.article-small-img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-small-img img {
    max-height: 264px;
    max-width: 100%;
    display: block;
}

/* end - ARTICLES */

/* INDIVIDUAL ELEMENTS */

/*button.btn.invalidUnits { background: #898989!important; }*/

.creadoPorCliente {
    justify-content: center;
}
.creadoPorCliente span {
    background: #55565a;
    color: #FFF;
    padding: 0 20px;
    border-radius: 5px;
}

/* end - INDIVIDUAL ELEMENTS */

/* DATEPICKER */

.datepicker.datepicker-dropdown.dropdown-menu:before,
.datepicker.datepicker-dropdown.dropdown-menu:after {
    display: none;
}
.datepicker.datepicker-dropdown.dropdown-menu span.year.active {
    background: var(--main);
    color: #ffd93d;
}

/* end - DATEPICKER */

#annual-statistics .card {
    max-width: 777px;
}

label.month-label, .total label {
    min-width: 82px;
}

.month input, .total input {
    text-align: right;
}

@media (min-width: 768px) {
    #annual-statistics div.card-body > div:nth-child(1) .month,
    #annual-statistics div.card-body > div:nth-child(2) .month,
    #annual-statistics div.card-body > div:nth-child(3) {
        display: flex;
        align-items: center;
    }
    #annual-statistics div.card-body > div:nth-child(1) .month { justify-content: end; }
    #annual-statistics div.card-body > div:nth-child(2) .month { justify-content: start; }
    #annual-statistics div.card-body > div:nth-child(3) { justify-content: center; }
}

@media (max-width: 767px) {
    #annual-statistics div.card-body > div .month {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

#annual-statistics div.card-body > div.total {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hover-underline-animation {

    /*position: relative;*/
    /*color: #0087ca;*/
}

/*.hover-underline-animation::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    width: 100%;*/
/*    transform: scaleX(0);*/
/*    height: 2px;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    background-color: #0087ca;*/
/*    transform-origin: bottom right;*/
/*    transition: transform 0.25s ease-out;*/
/*}*/

/*.hover-underline-animation:hover::after {*/
/*    transform: scaleX(1);*/
/*    transform-origin: bottom left;*/
/*}*/

/* DASHBOARD BOXES */
.dashboard-boxes .entity-card {
    background: var(--entity_def_c);
    color: #FFF;
    border-radius: 10px;

    transition: .2s;
}
.dashboard-boxes .entity-card:hover {
    opacity: .8;
}
.dashboard-boxes .entity-card div h2 {
    border-bottom: solid 2px var(--entity_def_sc);
}
.dashboard-boxes .entity-card div .count-num {
    min-height: 25px;
}

.dashboard-boxes .entity-card.orders        { background: var(--orders_c); }
.dashboard-boxes .entity-card.orders div h2 { border-color: var(--orders_sc); }

.dashboard-boxes .entity-card.budgets        { background: var(--budgets_c); }
.dashboard-boxes .entity-card.budgets div h2 { border-color: var(--budgets_sc); }

.dashboard-boxes .entity-card.customers        { background: var(--customers_c); }
.dashboard-boxes .entity-card.customers div h2 { border-color: var(--customers_sc); }

.dashboard-boxes .entity-card.articles        { background: var(--articles_c); }
.dashboard-boxes .entity-card.articles div h2 { border-color: var(--articles_sc); }

/* FORM STYLES */
#order-form.entity-form, #budget-form.entity-form {
    max-width: 823px;
}

.status-message {
    color: #dc3545;
    font-size: 12px;
}

.status-message.success {
    color: #28a745 !important;
}