.hide {
    display: none;
}

.m-nav>.m-nav__item>.m-nav__link.m-nav__link--icon .m-nav__link-icon {
    width: auto;
    text-align: center;
}

/**
 * DATATABLE
 * 
 */

.m-datatable>.m-datatable__table>.m-datatable__head .m-datatable__row>.m-datatable__cell--sort:hover>span,
.m-datatable>.m-datatable__table>.m-datatable__head .m-datatable__row>.m-datatable__cell--sort:focus>span,
.m-datatable>.m-datatable__table>.m-datatable__foot .m-datatable__row>.m-datatable__cell--sort:hover>span,
.m-datatable>.m-datatable__table>.m-datatable__foot .m-datatable__row>.m-datatable__cell--sort:focus>span {
    color: #4d44bd;
}

.btn-toolbar>* {
    margin: 0 5px;
    width: auto;
}

.m-datatable__tools .m--align-right>.nav.nav-pills.m-nav-pills--align-right,
.m-datatable__tools .m--align-right>.m-form__control {
    float: right;
    margin-bottom: 0;
}

#m_datatable_group_action_form {
    padding: 15px;
    background: #f4f5f8;
}

#m_datatable_group_action_form .bootstrap-select {
    width: 220px;
}

#m_datatable_group_action_form .m-form__group--inline>.m-form__control {
    width: auto;
}

#m_datatable_group_action_form #m_datatable_selected_number {
    margin-left: 15px;
}

.m-datatable.m-datatable--default.m-datatable--subtable>.m-datatable__table>.m-datatable__body .m-datatable__row-subtable>.m-datatable__subtable .m-datatable__table {
    min-height: 0 !important;
}

/***** INVOICE *****/

.m-invoice-2 {
    background: #FFF;
}

.m-invoice__subtitle {
    display: block;
    padding-bottom: 0.5rem;
    font-weight: 500 !important;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__head .m-invoice__container.m-invoice__container--centered {
    display: table;
    width: 100%;
    padding: 0;
}

.m-invoice__agency,
.m-invoice__desc {
    display: table-cell;
    vertical-align: top;
}

.m-invoice__agency {
    width: 40%;
    padding-right: 12%;
    text-align: center;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__head .m-invoice__container .m-invoice__desc {
    padding: 0;
    text-align: left;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__head .m-invoice__container .m-invoice__logo {
    padding: 0;
}

.m-invoice__logo img {
    max-height: 50px;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__head .m-invoice__container .m-invoice__logo>a:last-child {
    display: inline-block;
}

.m-invoice__contact {
    padding: 35px 0 20px;
    font-size: 1.1em;
}

.m-invoice__contact span {
    display: block;
}

.m-invoice__contact-name {
    font-size: 1.1em;
}

.m-invoice__title {
    position: relative;
    z-index: 2;
    padding: 5px 10px;
    text-align: center;
    color: #FFF;
}

.m-invoice__title>* {
    margin: 0;
    font-size: 1em;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__head .m-invoice__container .m-invoice__items {
    border: solid 2px #f4f5f8;
    border-top: none;
    padding: 0;
    font-size: .9em;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__head .m-invoice__container .m-invoice__items .m-invoice__item {
    border-right: solid 2px #f4f5f8;
    width: 30%;
    padding: 2px 15px;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__head .m-invoice__container .m-invoice__items.invoice-items .m-invoice__item {
    width: 50%;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__head .m-invoice__container .m-invoice__items .m-invoice__item:last-child {
    border-right: none;
    width: 40%;
}

.m-invoice__recipient {
    display: table;
    border: solid 2px #f4f5f8;
    border-top: none;
    width: 100%;
    padding: 15px 0 35px;
    font-size: .9em;
}

.m-invoice__recipient-contact,
.m-invoice__recipient-delivery {
    display: table-cell;
    padding: 0 15px;
}

.m-invoice__recipient-delivery {
    width: 40%;
}

.invoice-recipient .m-invoice__recipient-contact {
    width: 100%;
}

.m-invoice__comment {
    display: block;
    max-width: 350px;
    font-size: 0.85em;
    font-weight: 300;
    font-style: italic;
}

thead {
    display: table-header-group
}

tfoot {
    display: table-row-group
}

tr {
    page-break-inside: avoid
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body.m-invoice__body--centered {
    width: 100%;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body .promotion-col {
    display: none;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table thead tr th {
    border-top: none;
    font-weight: 300;
    color: #BF8A00;
    border-color: #A7A6A8;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table thead tr th:first-child {
    padding-left: 15px;
}

.m-invoice__number-col {
    width: 90px;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr {
    background: #F5F5F6;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr td:not(:first-child),
.m-invoice-2 .m-invoice__wrapper .m-invoice__body table thead tr th:not(:first-child) {
    text-align: center;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr td {
    border-bottom: solid 3px #FFF;
    font-size: .9em;
    font-weight: 300;
    color: #000;
    vertical-align: top;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr.m-invoice__supplier-name td {
    border-top: solid 2px #A7A6A8;
    border-bottom: none;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr.m-invoice__supplier-name td>* {
    margin: 0;
    font-size: 14px;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr.m-invoice__supplier-name td:first-child {
    padding: 10px 15px 0;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr td.m-invoice__total-col {
    font-weight: 500;
    color: #000;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr.m-invoice__origin {
    background: #EEEDED;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr.m-invoice__origin td {
    border: none;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr.m-invoice__terms_of_payment,
.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr.m-invoice__origin_warehouse_info,
.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr.m-invoice__subtotal {
    background: #FFF;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr.m-invoice__terms_of_payment td,
.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr.m-invoice__origin_warehouse_info td {
    border: none;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr td:first-child {
    padding: 10px 25px;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr#order_fees td,
.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr.m-invoice__subtotal td {
    vertical-align: middle;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr#order_total td,
.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr#order_total_with_vat td {
    border-top: solid 2px #A7A6A8;
    background: #FFF;
    vertical-align: middle;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr#order_total_with_vat td {
    font-weight: 600;
}

.m-invoice-2 .m-invoice__wrapper .m-invoice__body table tbody tr.invoice-row td {
    vertical-align: middle;
}

.m-invoice-2 .m-section {
    break-inside: avoid-column;
    page-break-inside: avoid;
    -webkit-column-break-inside: avoid;
}

.m-invoice-2 .m-section .m-section__heading {
    margin-bottom: 12px;
}

.m-invoice__footer {
    page-break-inside: avoid;
    page-break-after: auto;
    page-break-before: auto;
}

/***** SALE DOC ITEMS TABLE *****/

.sale-doc--items-table tr th {
    background: #f4f3f8;
    font-size: 1rem;
    font-weight: 600;
    color: #575962;
    vertical-align: middle;
}

.sale-doc--items-table tr td {
    font-size: 1rem;
    color: #575962;
    vertical-align: middle;
}

.sale-doc--items-table tr td.icon-column {
    width: 33px;
    padding: 0;
}

.sale-doc--items-table .row-details {
    display: none;
}

.sale-doc--items-table .row-promotion {
    display: none;
}

.sale-doc--items-table .temp-row-details td {
    border-top: 0;
}

.sale-doc--items-table td .input-group-addon {
    display: none;
}

.data-repeater-item.show-details .data-repeater--details-trigger i {
    transform: rotate(90deg);
}

.sale-doc-item--name,
.sale-doc-item--metas {
    display: block;
}

.sale-doc-item--metas {
    color: #7b7e8a;
}

.sale-doc--items {
    width: 100%;
}

.sale-doc--items>table {
    margin-bottom: 0;
}

.s-order--supplier-name {
    display: block;
    margin: 1.8em 0 1em 0;
}

/***** Sale doc address *****/

.sale-doc--use-client-address>* {
    display: inline-block;
    width: auto;
    vertical-align: middle;
}

.sale-doc--use-client-address .m-switch {
    margin-right: 15px;
}

/***** order product minimum *****/

#order_product_alert {
    display: none;
}

/***** Product form *****/

.product--volume-container .input-group-addon {
    margin: 0;
    border: none;
    padding: 0;
    min-width: 8rem;
}

.product--volume-container .input-group-addon>.form-control {
    border-left: none;
    border-radius: 0 .4rem .4rem 0;
}

.orders > div > div > div[class="table-responsive"] {
    overflow-x: unset!important;
}

/**** HACK CODEAM :  Modal XL FROM Bootstrap 5.1 ****/
@media (min-width: 992px) {
    .modal-lg, .modal-xl {
        max-width: 800px
    }
}

@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px
    }
}
/**** END HACK CODEAM ****/
