﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital@0;1&display=swap');

/* REVIEWED */

/* NAV MENU */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
}

.mg-actions-title-container {
    display: flex;
    align-items: center;
    margin-top: 10px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.action-category {
    font-size: 1rem;
    color: #999999;
    font-weight: bold;
    margin: 0px 0px 0px 9px;
}

i.action-category-icon {
    color: white;
    color: #999999;
}

li.mg-action-link-container {
    display: flex;
    align-items: center;
    margin-block: 5px;
}

a.mg-action-link {
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    margin-left: 8px;
    text-transform: uppercase;
}

    a.mg-action-link:hover {
        color: #fcb92a;
        text-decoration: none;
    }

.circle-icon-small {
    height: 18px;
    width: 18px;
}

/* INPUT */

.mg-input {
    border-radius: 7px !important;
    padding-left: 1.2em;
    padding-bottom: 0px;
    padding-top: 15px;
    font-size: 0.7rem;
}

    .mg-input:focus {
        border: 1px solid #ced4da;
        box-shadow: 0 0 0 #ced4da;
    }

.mg-input-label {
    position: absolute;
    overflow-x: hidden;
    padding-left: 1.23em;
    padding-top: 1.4px;
    font-weight: bold;
    font-size: 0.7rem;
    white-space: nowrap;
    text-overflow: ellipsis;
    z-index: 1;
}

.input-on-black {
    border-color: #444444 !important;
}

    .input-on-black:focus {
        border-color: rgb(51, 51, 51) !important;
        box-shadow: 0 0 5px rgb(51, 51, 51) !Important;
    }

div.mg-checkbox-container {
    display: flex;
    align-items: center;
}

.circle-icon {
    height: 33px;
    width: 33px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 5px;
}

/* BUTTONS */

.mg-button {
    text-transform: uppercase;
    transition: all 0.3s ease 0s;
    border-radius: 7px;
    border: 1px solid #aa343b;
    background-color: #aa343b;
    color: white;
    font-weight: bold;
    font-size: 0.75rem;
    padding-inline: 15px;
    width: 100%;
    min-height: 34px;
}

    .mg-button:hover {
        color: white;
        background-color: #742429;
        border-color: #742429;
    }

    .mg-button:disabled {
        background-color: #e6c2c5;
        border-color: #e6c2c5;
        cursor: default;
    }

    .mg-button.mg-button-dark {
        background-color: #333333;
        border-color: #333333;
    }

        .mg-button.mg-button-dark:hover {
            background-color: black;
            border-color: black;
        }

        .mg-button.mg-button-dark:disabled {
            background-color: #999999;
            border-color: #999999;
        }

.mg-button-success {
    text-transform: uppercase;
    transition: all 0.3s ease 0s;
    border-radius: 8px;
    border: 1px solid #5cb85c;
    color: white;
    font-weight: bold;
    font-size: 0.8rem;
    padding-inline: 16px;
    width: 100%;
    min-height: 39px;
    background-color: #5cb85c;
}

    .mg-button-success:disabled {
        background-color: #7dc77d;
        border-color: #7dc77d;
        color: white;
        cursor: default;
    }

    .mg-button-success:not([disabled]):hover {
        background-color: #3e7d3e;
        border-color: #3e7d3e;
        color: white;
    }

/* navigation buttons */
.round-bottom-button {
    border-radius: 50%;
    position: fixed;
    right: 10px;
    width: 60px;
    height: 60px;
}

    .round-bottom-button:last-of-type {
        bottom: 10px;
    }

    .round-bottom-button:nth-last-of-type(2) {
        bottom: 80px;
    }

    .round-bottom-button:nth-last-of-type(3) {
        bottom: 150px;
    }

.mg-table-outline-button {
    background-color: transparent;
    color: #aa343b;
    border: 1px solid #aa343b;
    border-radius: 5px;
    min-width: 25px;
    height: 25px;
    padding-top: 0.25rem;
    text-align: center;
}

.mg-table-outline-button-dark {
    color: black;
    border: 1px solid #333333;
    text-decoration: none;
}

.mg-table-outline-button-red {
    color: #c63c44 !important;
    border: 1px solid #c63c44;
    text-decoration: none;
}

.mg-table-outline-button-blue {
    color: #5BC0DE !important;
    border: 1px solid #5BC0DE;
    text-decoration: none;
}

.mg-table-outline-button-green {
    color: lawngreen !important;
    border: 1px solid lawngreen;
    text-decoration: none;
}

.mg-table-outline-button-yellow {
    color: #ffc300 !important;
    border: 1px solid #ffc300;
    text-decoration: none;
}

.mg-table-outline-button:disabled {
    opacity: 0.4 !important;
    cursor: default;
}

.mg-table-outline-button-success {
    color: #7dc77d;
    border: 1px solid #7dc77d;
    text-decoration: none;
}

.mg-table-outline-button:not([disabled]):hover {
    background-color: #aa343b;
    color: white;
    border: 1px solid #aa343b;
}

.mg-table-outline-button-dark:not([disabled]):hover {
    background-color: #333333;
    color: white;
    border: 1px solid #333333;
    text-decoration: none;
}

.mg-table-outline-button-red:not([disabled]):hover {
    background-color: #c63c44;
    color: white !important;
    border: 1px solid #c63c44;
    text-decoration: none;
}

.mg-table-outline-button-blue:not([disabled]):hover {
    background-color: #5BC0DE;
    color: white !important;
    border: 1px solid #5BC0DE;
    text-decoration: none;
}

.mg-table-outline-button-green:not([disabled]):hover {
    background-color: lawngreen;
    color: white !important;
    border: 1px solid lawngreen;
    text-decoration: none;
}

.mg-table-outline-button-yellow:not([disabled]):hover {
    background-color: #ffc300;
    color: white !important;
    border: 1px solid #ffc300;
    text-decoration: none;
}

.mg-table-outline-button-success:not([disabled]):hover {
    background-color: #7dc77d;
    color: white;
    border: 1px solid #7dc77d;
    text-decoration: none;
}

.btn-group .mg-table-outline-button:first-of-type {
    border-end-end-radius: 0;
    border-start-end-radius: 0;
}

.btn-group .mg-table-outline-button:last-of-type {
    border-start-start-radius: 0;
    border-end-start-radius: 0;
    border-left: none;
}

.btn-group .mg-table-outline-button:only-child {
    border-radius: 6px;
    border-left: 1px solid #aa343b;
}

.btn-group .mg-table-outline-button-dark:only-child {
    border-radius: 6px;
    border-left: 1px solid #333333;
}

.btn-group .mg-table-outline-button-red:only-child {
    border-radius: 6px;
    border-left: 1px solid #c63c44;
}

.btn-group .mg-table-outline-button-blue:only-child {
    border-radius: 6px;
    border-left: 1px solid #5BC0DE;
}

.btn-group .mg-table-outline-button-green:only-child {
    border-radius: 6px;
    border-left: 1px solid lawngreen;
}

.btn-group .mg-table-outline-button-yellow:only-child {
    border-radius: 6px;
    border-left: 1px solid #ffc300;
}

.btn-group .mg-table-outline-button-success:only-child {
    border-radius: 6px;
    border-left: 1px solid #7dc77d;
}

@media (max-width: 768px) {
    .round-bottom-button {
        border-radius: 50%;
        position: fixed;
        right: 10px;
        width: 50px;
        height: 50px;
    }

        .round-bottom-button:last-of-type {
            bottom: 20px;
        }

        .round-bottom-button:nth-last-of-type(2) {
            bottom: 90px;
        }

        .round-bottom-button:nth-last-of-type(3) {
            bottom: 160px;
        }
}

/* addres-mg-button fix */
a.mg-button {
    padding-top: 8px;
}

    a.mg-button:hover {
        text-decoration: none;
    }

/* CARD & TEXT */

.invalid-feedback {
    font-size: 0.75rem;
    margin-top: 1px;
    padding-left: 8px;
    color: red;
}

.mg-card {
    border-radius: 8px;
    border: 2px solid #dddddd;
    background-color: #f6f6f6;
    padding: 8px;
}

.mg-card.no-padding {
    padding: 0;
}

.mg-card-dark {
    border-color: #b9b8b8;
    background-color: #b9b8b8;
}

div.mg-page-title, div.mg-page-subtitle {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
    margin-top: 3px;
}

    div.mg-page-title p {
        font-weight: bold;
        font-size: 1.2rem;
        text-transform: uppercase;
        margin-bottom: 0;
        color: #333333;
        letter-spacing: 1px;
    }

    div.mg-page-subtitle p {
        font-weight: bold;
        font-size: .9rem;
        text-transform: uppercase;
        margin-bottom: 0;
        color: rgb(100, 100, 100);
        letter-spacing: 1px;
    }

    div.mg-page-title .mg-page-title-hr.right {
        background: linear-gradient(to right, #333333, transparent);
        height: 2px;
        min-width: 70px;
        opacity: 1;
        display: none;
    }

    div.mg-page-title .mg-page-title-hr.left {
        background: linear-gradient(to left, #333333, transparent);
        height: 2px;
        min-width: 70px;
        opacity: 1;
        display: none;
    }

.mg-card-title {
    margin: 0;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.mg-card-icontitle-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mg-card-collapse-link-container {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-inline: 10px;
    padding-block: 1px;
    gap: 10px;
    cursor: pointer;
    background-color: #eaeaea;
    border-radius: 10px;
}

.mg-card-collapse-link-container.guide {
    background-color: #fcbabe;
}

.mg-card-collapse-link-container input {
    max-width: 300px;
    margin-left: auto;
    border: 1px solid #ced4da;
    font-size: .9rem;
    padding: 4px;
    border-radius: 6px;
}

.mg-card-collapse-link-container input:focus {
    border: 1px solid #ced4da !important;
}

.mg-collapse-link {
    text-transform: uppercase;
    font-weight:bold;
    font-size: .9rem;
    white-space: nowrap;
    color: #333333;
    letter-spacing: 1px;
}

.mg-collapse-hr {
    width: 100%;
    margin-block: 10px;
    opacity: .2;
    border: 1px solid #333333;
}

.mg-collapse-link:hover {
    color: black;
    text-decoration: none;
}

hr.mg-hr {
    margin-block: 4px;
}

p.mg-wallet-text {
    font-size: 0.8rem;
    margin: 0;
}

small.progress-bar-value {
    font-size: 0.7rem;
    padding-top: 2px;
    opacity: 0.8;
}

/* MODAL */

.modal-content {
    border-radius: 8px;
}

.mg-modal-header {
    padding-block: 5px;
    padding-inline: 12px;
    border-bottom: 0;
}

p.mg-modal-title {
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.mg-modal-footer {
    display: flex;
    gap: 12px;
    padding: 12px;
}

/* UNREVIEWED */
.main-content-opacity {
    opacity: 0.2;
}

/* NAVBAR */

.navbar {
    background-color: #333333;
}

.nav-action {
    margin-bottom: 0;
    font-size: 0.75rem;
    margin-top: 3px;
}

.bordered-nav-action {
    border-left: 1px solid grey;
    border-right: 1px solid grey;
}

.nav-icon {
    border-radius: 50%;
    border: 2px solid white;
    padding: 9px;
}

.nav-icon-big {
    border-radius: 50%;
    border: 2px solid white;
    padding: 12px;
    font-size: 15px;
}

.nav-icon-parameter {
    border-radius: 50%;
    border: 2px solid #aa343b;
    padding: 9px;
}

.nav-icon-power-off {
    background-color: #aa343b;
    border-radius: 50%;
    border: 2px solid #aa343b;
    padding: 8px;
    color: white;
}

/* SUB NAVBAR */

.nav-collapse {
    background-color: #f2f2f2;
    position: absolute;
    z-index: 1;
}

.nav-collapse-dark {
    background-color: #444444;
}

/* ICONS */

.android-icon {
    background-image: url(/assets/img/android-logo.png);
    background-position: center;
    background-size: contain;
}

.ios-icon {
    background-image: url(/assets/img/ios-logo.png);
    background-position: center;
    background-size: contain;
}

.gas-icon {
    background-image: url(/assets/img/blue-fire.svg);
    background-position: center;
    background-size: contain;
}

.light-icon {
    background-image: url(/assets/img/electric-bolt.svg);
    background-position: center;
    background-size: contain;
}

.gas-light-icon {
    background-image: url(/assets/img/blue-fire-electric-bolt.svg);
    background-position: center;
    background-size: contain;
}

/* GUIDE */

.id3-icon {
    content: url(/assets/img/i-image.png);
    border-radius: 50%;
    max-height: 18px;
    background-color: white;
}

.mg-guide-card{
    background-color: #e6c2c5;
    padding: 1px 10px 1px 10px;
    border-radius: 10px;
}

.mg-guide-card-header{
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.mg-guide-card-content {
    margin-block: 4px;
    padding: 6px;
    background-color: #ffe4e6;
    border-radius: 10px;
    display: flex;
    gap: 5px;
    flex-direction: column;
    font-size: .8rem;
}

.mg-guide-card-content ul li {
    list-style-type: disc;
    margin-left: 15px;
}

.mg-guide-card-content p {
    margin-bottom: 0px;
}

/* WELCOME */

.welcome-div {
    margin-top: 17vh;
    height: 480px;
    /*background-image: url(/assets/img/main-page-logo.png);*/
    background-position: center;
    background-repeat: no-repeat;
}

.welcome-div-enercom {
    position: relative;
    margin-top: 17vh;
    height: 480px;
    background-position: center;
    background-repeat: no-repeat;
}

.welcome-div-enercom::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url(/assets/img/enercom-monogramma-rgb.png);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 40%;
    opacity: 0.5; /* Adjust the opacity value as needed */
    z-index: 0;
}

.welcome-div-enercom > * {
    position: relative;
    z-index: 1;
}


.welcome-text {
    font-size: 90px;
}

@media (max-width: 600px) {
    .welcome-text {
        font-size: 50px;
    }
}

/* CARDS */

.mg-nav {
    display: flex;
    list-style: none;
    gap: 8px;
    border-bottom: 1px solid #d0d0d0;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.mg-nav-link {
    background-color: #f2f2f2 !important;
    border: 1px solid #d0d0d0 !important;
    color: black;
    border-top-right-radius: 7px !important;
    border-top-left-radius: 7px !important;
    font-size: .7rem;
    padding-block: 4px;
    height: 100%;
    border-bottom: none !important;
    min-width: 150px;
}

    .mg-nav-link.active {
        color: white !important;
        background-color: #aa343b !important;
        border-color: #d0d0d0 !important;
        opacity: 1 !important;
    }

    .mg-nav-link:hover {
        color: white !important;
        background-color: #aa343b !important;
        border-color: #aa343b !important;
    }

    .mg-nav-link.backwardable {
        color: black !important;
        background-color: transparent !important;
        border-color: #d0d0d0 !important;
    }

        .mg-nav-link.backwardable:hover {
            color: white !important;
            background-color: #aa343b !important;
            border-color: #aa343b !important;
        }

    .mg-nav-link.forwardable {
        color: black !important;
        background-color: transparent !important;
        border-color: #d0d0d0 !important;
    }

        .mg-nav-link.forwardable:hover {
            color: white !important;
            background-color: #aa343b !important;
            border-color: #aa343b !important;
        }

    .mg-nav-link.passed {
        color: black !important;
        background-color: #d8d8d8 !important;
        border-color: #d0d0d0 !important;
    }

        .mg-nav-link.passed:hover {
            color: black !important;
            background-color: #d8d8d8 !important;
            border-color: #d8d8d8 !important;
        }

        .mg-nav-link.passed:disabled {
            color: black !important;
            background-color: #d8d8d8 !important;
            border-color: #d8d8d8 !important;
        }

.chart-div {
    height: 500px;
}

/* INPUT */

.ellipsis {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.mg-input-container {
    position: relative;
    width: 100% !important;
}

.select2.select2-container.select2-container--default {
    width: 100% !important;
}

#actions-collapse, #level-select-collapse { /* hotfix for z-indexes */
    z-index: 2;
}

#drpSalesGroupsHierarchyLabel { /* hotfix for z-indexes */
    z-index: 3;
}

.mg-input-label-select2 {
    position: absolute;
    width: inherit;
    z-index: 1;
    position: absolute;
    overflow-x: hidden;
    padding-left: 1.23em;
    padding-top: 2px;
    font-weight: bold;
    font-size: 0.8rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.select2-selection {
    border-radius: 10px !important;
    /*height: 55px;*/
    padding-left: 22px;
    /*padding-bottom: 0px;*/
    padding-top: 24px;
}

    .select2-selection:focus {
        border-color: #e2061333;
        -webkit-box-shadow: 0 0 0 #e2061333;
        box-shadow: 0 0 0 #e2061333;
    }

.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f9f9f9 !important;
    border-color: #dee1e5 !important;
}

.select2-container--default.select2-container--disabled {
    background-color: #f9f9f9 !important;
    border-color: #dee1e5 !important;
}

.select2-container--disabled .selection .select2-selection .select2-selection__rendered {
    opacity: .7;
}

.select2-container {
    max-width: 100% !important;
}

@media only screen and (max-width: 768px) {
    .mg-input-label {
        padding-left: 12px;
    }

    .mg-input {
        padding-left: 11.5px;
    }
}

.mg-input-file {
    border-radius: 0px !important;
    height: 55px;
    padding-left: 25px;
    padding-bottom: 0px;
    padding-top: 24px;
}

    .mg-input-file:focus {
        border-color: #e2061333;
        -webkit-box-shadow: 0 0 5px #e2061333;
        box-shadow: 0 0 5px #e2061333;
    }

.mg-input-file-label {
    position: absolute;
    padding-left: 26px;
    padding-top: 3px;
    z-index: 10;
    font-weight: bold;
}

.form-control:disabled, .form-select:disabled, .form-control[readonly] {
    background-color: #f0f0f0;
    opacity: 1;
}

/* CHECKBOX */
.mg-checkbox {
    border-color: black;
    background-color: transparent;
    border-width: 1px;
    border-radius: 0;
    width: 15px;
    height: 15px;
}

    .mg-checkbox:checked {
        border-color: black;
        background-color: transparent;
        border-width: 2px;
    }

.mg-checkbox-light {
    border-color: white;
}

    .mg-checkbox-light:checked {
        border-color: white;
    }


.checkbox-adjust {
    margin-top: 15px;
    margin-right: 10px;
}

.form-check-input[type=checkbox] {
    border-radius: .15em;
}

.form-check-input.mg-checkbox:checked[type=checkbox] {
    background-image: url("../../assets/img/flag-icon-dark.png");
}

.form-check-input.mg-checkbox.mg-checkbox-light:checked[type=checkbox] {
    background-image: url("../../assets/img/flag-icon-white.png");
}

.form-check-input[type=radio] {
    border-radius: .15em;
}

.form-check-input.mg-checkbox:checked[type=radio] {
    border-radius: .15em !important;
    background-image: url("../../assets/img/flag-icon-dark.png");
}

.form-check-input:disabled {
    opacity: .6;
}

/* BUTTONS */
.mg-button div {
    display: block;
}

.mg-button-success:active {
    outline: none;
    box-shadow: none !important;
}

.mg-button-label {
    min-height: 50px;
    border-radius: 10px;
    color: white;
    border-color: rgb(51, 51, 51);
    background-color: rgb(51, 51, 51);
    padding-top: 12px;
}

    .mg-button-label:hover {
        color: white;
    }

.mg-button-label {
    min-height: 50px;
    border-radius: 10px;
    color: white;
    border-color: #333;
    background-color: #333;
    padding-top: 12px;
}

    .mg-button-label:hover {
        color: white;
    }

/* FILE BUTTONS */
.mg-button-file, .mg-button-file-download, .mg-button-file-success, .mg-button-file-download-success {
    text-transform: uppercase;
    transition: all 0.3s ease 0s;
    border-radius: 8px;
    border: 1px solid #aa343b;
    background-color: #aa343b;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    padding-left: 0.78em;
    width: 100%;
    min-height: 39px;
    color: white;
    padding-top: 8px;
    width: 39px;
    cursor: pointer;
}

.mg-button-file-success, .mg-button-file-download-success {
    background-color: #5cb85c;
    border-color: #5cb85c;
}

.mg-button-file:active {
    outline: none;
    box-shadow: none !important;
}

.mg-button-file-dark {
    background-color: rgb(51, 51, 51) !important;
    border-color: rgb(51, 51, 51) !important;
    color: white;
}

    .mg-button-file-dark:hover {
        color: white;
    }

.mg-button-file-label {
    text-transform: uppercase;
    transition: all 0.3s ease 0s;
    border-radius: 8px;
    border: 1px solid rgb(55,55,55);
    background-color: rgb(55,55,55);
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    padding-left: 0.78em;
    width: 100%;
    min-height: 39px;
    color: white;
    padding-top: 8px;
    width: 39px;
}

    .mg-button-file-label:hover {
        color: white;
        cursor: pointer;
        background-color: black;
        border-color: black;
    }

/* FINE FILE BUTTONS */

/* FILE DOWNLOADS */

.mg-button-download:not([disabled]) {
    border-radius: 50% !important;
    letter-spacing: 1px;
    background-color: #aa343b;
    border-color: #aa343b;
    color: white;
}

.mg-button-download:disabled {
    border-radius: 50% !important;
    letter-spacing: 1px;
    background-color: #aa343b;
    border-color: #aa343b;
    color: white;
}

.mg-button-download-success {
    border-radius: 50% !important;
    letter-spacing: 1px;
    background-color: #5cb85c;
    border-color: #5cb85c;
    color: white;
}

/* FINE FILE DOWNLOADS */

.ra-button-round {
    border-radius: 50%;
    background-color: gray;
    border-color: gray;
}

/* TEXT */

.orange-text {
    color: #aa343b;
}

/* LINKS */

.light-link {
    text-decoration: none;
    color: white;
    font-size: 18px;
}

    .light-link:hover {
        text-decoration: none;
        color: #ffb700;
    }

/* LISTS */
ul {
    padding-left: 0;
}

li {
    list-style-type: none;
}

    li.showDisc {
        list-style-type: disc;
    }

/* LINKS */

.link-button-adjust {
    padding-top: 12px;
    padding-bottom: 0;
}

    .link-button-adjust:hover {
        text-decoration: none;
    }

/* COMBO TREE FIX */

.comboTreeArrowBtn {
    display: none;
}

/* SCROLL BAR */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #e5e5e5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: #aa343b;
    border-radius: 5px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #aa343b;
    }

/* TABLES */

/*.root-tr {
    border-top: 4px solid #333333;
}*/

table.dataTable.no-footer {
    border-bottom: 0;
}

table thead {
    background-color: #333333;
    color: white;
    white-space: nowrap;
}

table tbody {
    background-color: white;
}

    table thead th, table tbody td {
        border-bottom: 1px solid #ced4da;
    }

    table tbody tr td {
        padding-block: 3px !important;
        vertical-align: middle;
        text-transform: uppercase;
        font-size: 0.8rem;
        white-space: nowrap;
    }

table thead th {
    font-size: 0.8rem;
    padding-left: 11px !important;
}

    table thead th:first-of-type {
        border-top-left-radius: 8px;
    }

    table thead th:last-of-type {
        border-top-right-radius: 8px;
    }

table tbody tr td:first-of-type {
    border-left: 1px solid #ced4da;
}

table tbody tr td:last-of-type {
    border-right: 1px solid #ced4da;
}

table.dataTable thead .sorting {
    background-position: right;
    background-size: contain !important;
    background-repeat: no-repeat;
    background-image: none !important;
}

table.dataTable thead .sorting_asc {
    background-size: contain !important;
    background-image: url(../../assets/img/sort_asc.png) !important;
    background-size: contain;
}

table.dataTable thead .sorting_desc {
    background-size: contain !important;
    background-image: url(../../assets/img/sort_desc.png) !important;
    background-size: contain;
}

.mud-table {
    border-radius: 8px !important;
}

.mud-toolbar {
    border: 1px solid #ced4da;
    border-radius: 0 0 7px 7px;
    max-height: 2.2rem;
}

button.mud-icon-button {
    padding: 4px;
}
button.mud-icon-button:hover {
    background-color: #f6f6f6;
    padding: 4px;
}

.mud-elevation-1 { /* fix unwanted box shadow */
    box-shadow: none !important;
}

.mud-table-head .mud-table-cell {
    color: white !important;
    padding: 0px 4px 0px 14px !important;
}

.mud-table-head .mud-table-cell span, .mud-table-head .mud-table-cell {
    font-size: .8rem;
}

.mud-table-cell.allow-new-line {
    white-space: normal;
}

.mud-table-cell.no-uppercase {
    text-transform: none;
}

.mud-table-head .mud-table-cell :hover {
    color: white !important;
}

.mud-table-head .mud-table-row:nth-of-type(2n) th {
    background-color: white !important;
    border-radius: 0 !important;
    padding-inline: 0 !important;
    padding-block: 2px !important;
}

td.mud-table-cell {
    cursor: default;
    font-size: .8rem;
    padding: 3px 20px 3px 14px !important;
}

td.mud-table-cell.align-right {
    text-align: right
}

.mud-typography.mud-typography-body1 {
    font-size: .8rem !important;
    font-family: 'Montserrat', sans-serif !important;
    color: #999999
}

/* selected row */
table.dataTable tbody tr.selected-row {
    background-color: #f9d2d4;
}

    table.dataTable tbody tr.selected-row td {
        border-block: 1px solid #aa343b !important;
    }

        table.dataTable tbody tr.selected-row td:first-of-type {
            border-left: 1px solid #aa343b !important;
        }

        table.dataTable tbody tr.selected-row td:last-of-type {
            border-right: 1px solid #aa343b !important;
        }

.selected {
    background-color: #aa343b !important;
}

    .selected > td {
        color: white !important;
    }

        .selected > td .mud-input {
            color: white !important;
        }

table.dataTable td.dataTables_empty {
    padding-block: 20px !important;
}

table.dataTable.display tbody tr.child {
    background: white;
    color: red;
}

div.mud-card-content table thead > *:not(:first-child):hover {
    background-color: #f2f2f2 !important;
}

/*table tbody tr:last-of-type td {
    border-bottom: 10px solid #333;
}
table tbody tr:last-of-type td:first-of-type {
    border-bottom-left-radius: 10px;
}
table tbody tr:last-of-type td:last-of-type {
    border-bottom-right-radius: 10px;
}*/
/* DATATABLE BUTTONS */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    font-size: 0.8rem !important;
}

    .dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button:hover {
        color: black !important;
        border: 1px solid #f5bcc0;
        background-color: #f5bcc0;
        background: #f5bcc0;
        border-radius: 8px;
    }

        .dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
            color: white !important;
            border: 1px solid #aa343b;
            background-color: #aa343b;
            background: #aa343b;
            border-radius: 8px;
        }

/* PROGRESS BAR */

.progress-bar.green {
    background-color: lawngreen !important;
}

.progress-bar.yellow {
    background-color: yellow !important;
}

.progress-bar.orange {
    background-color: orange !important;
}

.progress-bar.red {
    background-color: red !important;
}

.colorRed {
    color: #c63c44 !important;
}

.colorBlue {
    color: #5BC0DE !important;
}

.colorYellow {
    color: yellow !important;
}

.colorOrange {
    color: orange !important;
}

.colorGreen {
    color: lawngreen !important;
}

.colorWarning {
    color: #FFCC00 !important;
}

.colorSuccess {
    /*color: #5cb85c !important;*/
    color: #7dc77d !important;
}

/* COMBO TREE FIX */

.comboTreeDropDownContainer li span.comboTreeItemTitle.comboTreeItemHover {
    background-color: #aa343b;
    color: white;
    border-radius: 2px;
}

/* LINKS */

a {
    font-weight: bold;
    color: black;
    text-decoration: none;
}

    a:hover {
        color: #aa343b;
        text-decoration: underline;
    }

.tableLink {
    text-decoration: underline !important;
}

.colorRed .tableLink {
    color: #aa343b;
}

/* LOADING OVERLAY*/

.loadingoverlay {
    justify-content: center !important;
}

.loadingoverlay_text {
    font-size: 40px !important;
    margin-top: 20px;
}

.hidden {
    display: none;
}

input:not(.no-uppercase) {
    text-transform: uppercase;
}

input::placeholder {
    text-transform: none;
}

.info-border {
    border: solid 3px #5BC0DE;
}

.icon-button {
    position: relative;
}

.icon-button-badge-up {
    background-color: black;
    font-size: 12px;
    color: white;
    text-align: center;
    width: 30px;
    height: 20px;
    border-radius: 8px;
    position: absolute;
    top: -8px;
    right: -8px;
}

.icon-button-badge-down {
    background-color: black;
    font-size: 12px;
    color: white;
    text-align: center;
    width: 27px;
    height: 20px;
    border-radius: 8px;
    position: absolute;
    bottom: -8px;
    right: -8px;
}

.disabled {
    opacity: 0.6 !important;
    cursor: default !important;
}

/* WHITE BACKGROUND WHEN NAV MENU IS CLICKED */

#nav-block-background {
    background-color: white;
    opacity: 0.5;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
}

.no-border {
    border: 0 none !important;
}

.transparent {
    background-color: transparent !important;
}

.xs-small {
    font-size: 80% !important;
}

.btn {
    cursor: pointer !important;
}

input[type="text"] {
    cursor: text !important;
}

.select2-selection--single {
    border-radius: 8px !important;
    padding-left: 0.55em;
    padding-bottom: 0px;
    padding-top: 14px;
    min-height: 39px;
    font-size: 0.8rem;
    border: 1px solid #ced4da !important;
}

.select2-selection--multiple {
    border-radius: 8px !important;
    padding-left: 0.77em !important;
    padding-bottom: 0px !important;
    padding-top: 14px;
    min-height: 39px;
    font-size: 0.8rem;
    border: 1px solid #ced4da !important;
}

.select2-selection__arrow {
    display: none !important;
}

.hide_block {
    display: none !important;
}

.display_block {
    display: block !important;
}

.center-align {
    text-align: center !important;
}

.right-align {
    text-align: right !important;
}

.pull-right {
    display: flex;
    flex-flow: row wrap;
    justify-content: right !important;
    /*margin-right: 10px;*/
}

.pull-left {
    display: flex;
    flex-flow: row wrap;
    justify-content: left !important;
    /*margin-right: 10px;*/
}

.border-top {
    border-top: 1px solid;
}

.toast-top-right-margin-top {
    position: fixed;
    right: 10px;
    top: 90px !important;
}

ul.breadcrumb {
    padding: 10px 16px;
    list-style: none;
    margin-bottom: 0px;
}

    ul.breadcrumb li {
        display: inline;
        font-size: 1rem;
    }

        ul.breadcrumb li + li:before {
            padding: 8px;
            color: black;
            content: ">\00a0";
        }

        ul.breadcrumb li a:hover {
            color: #01447e;
            text-decoration: underline;
        }

.select2-selection__clear {
    margin-right: 2em !important;
}

.was-validated .mg-input:invalid + .select2 .select2-selection {
    border-color: #DC3545 !important;
}

.is-invalid + .select2 .select2-selection {
    border-color: #DC3545 !important;
}

.select2-search__field {
    font-family: 'Montserrat', sans-serif !important;
}

.was-validated select.select2:invalid + .select2.select2-container.select2-container--default span.select2-selection, select.select2.is-invalid + .select2.select2-container.select2-container--default span.select2-selection {
    border-color: #0acf97;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='rgb(220, 53, 69)' d='M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z M7.002 11a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 4.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 4.995z'/%3e%3c/svg%3E");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .mg-input:valid + .select2 .select2-selection {
    border-color: #198754 !important;
}

.is-valid + .select2 .select2-selection {
    border-color: #198754 !important;
}

.was-validated select.select2:valid + .select2.select2-container.select2-container--default span.select2-selection, select.select2.is-valid + .select2.select2-container.select2-container--default span.select2-selection {
    border-color: #0acf97;
    padding-right: 2.25rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='rgb(25, 135, 84)' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.select2-results__option {
    font-size: 0.8rem;
    padding: 4px 4px 4px 6px !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    color: white;
    background-color: #aa343b !important;
}

.select2-selection__choice__display {
    font-size: 0.75rem;
}

/* Datatable + or - */

table.dataTable td.dt-control:before {
    color: black;
    font-weight: bold;
    font-size: 1.7rem;
    border: none;
    border-radius: 0;
    box-shadow: none;
    font-family: 'Montserrat', sans-serif;
    background-color: transparent;
    margin-top: 0;
    cursor: pointer;
}

table.dataTable tr.dt-hasChild td.dt-control:before {
    background-color: transparent;
}

/* HOTFIXES */

/* hotfix for label select2 */
.form-label.mg-input-label-select2.disabled {
    opacity: .25 !important;
}

    .form-label.mg-input-label-select2.disabled.colorRed {
        color: red;
    }

.invalid {
    border-color: red;
}

.validation-message {
    color: red;
    font-size: 0.7rem;
    font-family: 'Montserrat', sans-serif;
    cursor: default;
    padding-left: 8px;
}

.cursor-pointer {
    cursor: pointer !important;
}

/* MUD MANAGEMENT*/
.mud-input-control-input-container {
    border-radius: 7px !important;
}

.mg-mud-select .mud-disabled {
    background-color: #f0f0f0 !important;
    opacity: 1;
}

.mg-mud-select .mud-input-slot {
    padding-left: 1.2em !important;
    padding-bottom: 4px !important;
    padding-top: 17px !important;
    color: black !important;
    font-size: 0.7rem !important;
    /*height: fit-content;*/
}

    .mg-mud-select .mud-input-slot::placeholder {
        opacity: 0.7 !important;
    }

.mg-mud-select.mud-input-control {
    margin-top: 0px !important;
}

.mg-mud-select .mud-input-outlined-border {
    border-radius: 7px !important;
    border-color: #ced4da !important;
}

.mg-mud-select.mud-input-error {
    background-color: transparent;
}

.mg-mud-select .mud-input-control-input-container {
    background-color: #fff !important;
}

.mg-mud-select .mud-input-control-helper-container {
    margin-top: 0px;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.mg-mud-select .mud-input-error {
    font-size: .9rem;
    font-family: 'Montserrat', sans-serif;
    cursor: default;
}

.mg-mud-autocomplete .mud-disabled {
    background-color: #f0f0f0 !important;
    opacity: 1;
}

.mg-mud-autocomplete .mud-input-slot {
    padding-left: 1.2em !important;
    padding-bottom: 3px !important;
    padding-top: 17.5px !important;
    color: black !important;
    font-size: 0.7rem !important;
}

    .mg-mud-autocomplete .mud-input-slot::placeholder {
        opacity: 0.7 !important;
    }

.mg-mud-autocomplete.mud-input-control {
    margin-top: 0px !important;
}

.mg-mud-autocomplete .mud-input-outlined-border {
    border-radius: 7px !important;
    border-color: #ced4da !important;
}

.mg-mud-autocomplete.mud-input-error {
    background-color: transparent;
}

.mg-mud-autocomplete .mud-input-control-input-container {
    background-color: #fff !important;
}

.mg-mud-autocomplete .mud-input-control-helper-container {
    margin-top: 0px;
    padding-left: 0px !important;
    padding-right: 0px !important;
}

.mg-mud-autocomplete .mud-input-error {
    font-size: .9rem;
    font-family: 'Montserrat', sans-serif;
    cursor: default;
}

.complex-object-validator:has(> .validation-message) .mud-autocomplete .mg-mud-autocomplete .mud-input-outlined-border {
    border-color: red !important;
}

.complex-object-validator:has(> .validation-message) .mud-select .mg-mud-select .mud-input-outlined-border {
    border-color: red !important;
}

.mg-mud-button.mud-button {
    margin-top: 2px;
    background-color: #aa343b;
    color: white;
    text-transform: uppercase;
    border: 1px solid #aa343b;
    font-size: 0.8rem;
    min-height: 34px;
    width: 100%;
    border-radius: 7px;
    font-weight: bold;
    padding-inline: 16px;
}

    .mg-mud-button.mud-button:hover {
        background-color: #aa343b;
        border: 1px solid #aa343b;
        background-color: #742429;
    }

    .mg-mud-button.mud-button:disabled {
        color: white !important;
        opacity: 0.7;
    }

.complex-object-validator:has(> .validation-message) .mg-input {
    border-color: red !important;
}

.no-uppercase {
    text-transform: none;
}

table.mg-text-table tbody {
    background-color: transparent;
}

table.mg-text-table tbody tr td {
    padding: 4px 4px 4px 4px;
    border: none !important;
}

table.mg-text-table tbody tr td h6, table.mg-text-table tbody tr td h7 {
    margin: 0 !important;
    font-size: .8rem;
}

.mud-typography.mud-typography-body2 {
    font-size: .8rem;
}

.mud-list-item.mud-list-item-dense {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* MudTable progress bar */
.mud-progress-linear-bar {
    background-color: #aa343b !important;
}

.mud-progress-linear .mud-progress-linear-bars {
    background-color: #e6c2c5 !important;
}

.my-custom-scrollbar {
    position: relative;
    max-height: 200px;
    overflow: auto;
}

.table-wrapper-scroll-y {
    display: block;
}

div.sliderAnimated {
    display: none;
}

th .mud-icon-button.mud-button-root {
    color: #f6f6f6;
}

.mud-table-cell-checkbox .mud-button-root {
    padding: 0px!important;
}

.mud-dialog-title {
    padding: 10px 20px !important;
    margin-bottom: 10px !important;
}
.mud-dialog-title h3 {
    font-size: 1.3rem;
    margin-bottom: 0;
}

.mud-table-empty-row {
    border-inline: 1px solid #ced4da;
}

div.mg-table-max-height div.mud-table-container {
    max-height: 400px;
}

.breakable {
    white-space: normal !important;
    min-width: 440px !important;
}