#background {
    width: 100%;
    height: 100%;
    opacity: .3;
    position: fixed;
    z-index: -1;
}

.m5-btn_container {
    width: 3rem;
}

#app-body {
    margin-bottom: 100px;
    max-width: none;
}

.accordion-item.card.active .accordion-header {
    border-bottom: 1px solid grey;
}

.card {
    background-color: white;
}

.m5-column {
    display: flex;
    flex-direction: column;
}

.m5_error,
.error {
    color: #e6231e;
    font-size: 10pt;
}

.m5_error {
    display: none;
}

.m5-table {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-size: 10pt;
}

.m5-header {
    font-weight: bold !important;
    color: #454546;
}

.m5-sub-header {
    font-weight: 500;
    color: #454546;
}

.m5-table .m5-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: scroll;
    overflow-x: hidden;
    box-sizing: content-box;
    flex: 1;
    max-height: 50vh;
    min-height: 50vh;
    padding: 2px;
}

.info-card .m5-body {
    max-height: 60vh;
    overflow-y: scroll;
    overflow-x: hidden;
}

.m5-table .m5-body::-webkit-scrollbar,
.m5-win-scroll::-webkit-scrollbar,
.m5-chat::-webkit-scrollbar {
    width: .3em;
}

.m5-table .m5-body::-webkit-scrollbar-track,
.m5-win-scroll::-webkit-scrollbar-track,
.m5-chat::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgb(207, 255, 206);
}

.m5-table .m5-body::-webkit-scrollbar-thumb,
.m5-win-scroll::-webkit-scrollbar-thumb,
.m5-chat::-webkit-scrollbar-thumb {
    background-color: #e5daff;
    border-radius: 5px;
    outline: 1px solid slategrey;
}

.m5-tabel .paginate {
    flex: 1;
}

.m5-table .m5-row:not(.info-card .m5-row) {
    align-items: stretch;
    display: flex;
    flex-direction: row;
    margin: 0 5px 0 5px;
    align-items: center;
    border-radius: 5px;
}

.m5-table .m5-row:hover:not(.info-card .m5-row:hover, .m5-header:hover) {
    background-color: #f0eefc;
    cursor: pointer;
}

.m5-table .m5-cell {
    padding: 10px;
    overflow: hidden;
    white-space: nowrap;
    text-wrap: wrap;
}

.m5-flex-1 {
    flex: 1;
}

.m5-flex-2 {
    flex: 2;
}

.m5-flex-3 {
    flex: 3;
}

.m5-flex-4 {
    flex: 4;
}

.m5-flex-5 {
    flex: 5;
}

.m5-flex-6 {
    flex: 6;
}

.m5-row {
    display: flex;
    flex-direction: row;
    align-items: end;
    flex-wrap: wrap;
}

.m5-edited {
    background-color: rgb(179 255 177);
}

.m5-dialoge {
    position: fixed;
    left: 18rem;
    right: 0;
    top: 0;
    bottom: 0;
    width: calc(100% - 18rem);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1500;
    cursor: auto;
}

.m5-dialoge-overlay {
    background-color: rgb(0 158 255 / 13%);
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
}

#m5_loading {
    z-index: 2000;
}

.m5-dialoge .m5-win {
    background-color: white;
    border-radius: 5px;
    padding: 25px;
    display: flex;
    z-index: 10;
    flex-direction: column;
    align-items: stretch;
    box-shadow: inset 0 0 5px 5px #d4ccff7a;
}

.m5-win-scroll {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: scroll;
    box-sizing: content-box;
    flex: 1;
    max-height: 50vh;
    min-height: 50vh;
    padding: 20px;
}

.m5-w-sm {
    width: 35%;
}

.m5-w-xsm {
    width: 30%;
}

.m5-w-md {
    width: 60%;
}

.m5-w-xmd {
    width: 70%;
}

.m5-w-lg {
    width: 85%;
}

.m5-w-xlg {
    width: 95%;
}

.m5-paginate {
    align-self: center;
    padding: 5px;
    cursor: pointer;
}

@media (max-width: 1200px) {
    .m5-w-sm {
        width: 35%;
    }

    .m5-w-xsm {
        width: 45%;
    }

    .m5-w-md {
        width: 60%;
    }

    .m5-w-xmd {
        width: 70%;
    }

    .m5-w-lg {
        width: 85%;
    }

    .m5-w-xlg {
        width: 95%;
    }

    .m5-dialoge {
        left: 0;
        width: 100%;
    }

    #m5_loading {
        left: 0;
    }
}

@media (max-width: 800px) {
    .m5-w-sm {
        width: 95%;
    }

    .m5-w-xsm {
        width: 95%;
    }

    .m5-w-md {
        width: 95%;
    }

    .m5-w-xmd {
        width: 95%;
    }
}

@media (max-width: 800px) {
    .row {
        flex-direction: column;
    }

    .col,
    .m5-row>div {
        margin-bottom: 10px !important;
    }

    .m5-row:not(.m5-dialoge-header, .m5-row-mobile) {
        flex-direction: column;
        align-items: stretch !important;
    }

    #layout-navbar {
        height: fit-content;
        padding: 10px;
    }

    #navbar-collapse {
        flex-wrap: wrap;
    }

    .m5-dialoge .m5-win {
        max-height: calc(100% - 60px);
        overflow-y: scroll;
    }

    .m5-dialoge .m5-win .m5-table {
        overflow-x: scroll;
    }

    .m5-dialoge .m5-win .m5-table .m5-row {
        flex-wrap: nowrap;
        overflow-x: visible;
    }

    .m5-dialoge .m5-win .m5-table .m5-cell {
        min-width: 100px;
    }
}

.nav_item {
    color: black;
    font-weight: 500;
}


.tags-input-container {
    border: 2px solid #000;
    padding: .5em;
    border-radius: 3px;
    width: min(80vw, 600px);
    margin-top: 1em;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5em;
}

.tag-item {
    background-color: rgb(218, 216, 216);
    display: inline-block;
    padding: .5em .75em;
    border-radius: 20px;
}

.tag-item .close {
    height: 20px;
    width: 20px;
    background-color: rgb(48, 48, 48);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin-left: .5em;
    font-size: 18px;
    cursor: pointer;
}

.tags-input {
    flex-grow: 1;
    padding: .5em 0;
    border: none;
    outline: none;
}

#m5_loader_frame {
    padding: 30px 60px 30px 60px;
    background-color: white;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0px 0px 5px 0px rgb(95 159 255 / 44%);
}

.m5-tabs {
    display: flex;
    flex-direction: row;
    justify-content: stretch;
    overflow: hidden;
    border-top-right-radius: 30px;
    border-top-left-radius: 30px;
    box-shadow: 0 2px 6px 0 rgb(67 89 113 / 12%);
    flex-wrap: wrap;
}

.m5-btn_col {
    width: 30px;
}

.m5-tab {
    padding: 10px 20px 10px 20px;
    flex: 1;
    color: #474747;
    text-align: center;
    text-wrap: nowrap;
    background-color: rgba(255, 255, 255, 0.5);
}

.m5-tab:hover {
    cursor: pointer;
    background-color: rgba(250, 250, 250, 0.85);
}

.m5-tab.m5-selected {
    background-color: rgb(255, 255, 255);
    font-weight: bold;
    box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
}

.m5-tabed_content {
    padding: 10px;
    display: none;
}

.m5-tabed_content.m5-selected {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

div {
    animation: div_Anime 300ms;
}

@keyframes div_Anime {
    from {
        opacity: 0;
    }
}

.m5-switch {
    padding: 7px 20px 7px 20px;
    background-color: rgb(255, 255, 255);
    border-radius: 7px;
    font-weight: 500;
    font-size: 10pt;
    cursor: pointer;
    vertical-align: bottom;
    display: inline-block;
    border: rgb(190, 190, 190) solid 1px;
    width: max-content;
    margin: 5px;
}

.m5-switch:hover {
    background-color: rgb(229 242 255);
}

.m5-switch.checked {
    background-color: rgb(126 255 239);
}

.info-card div {
    font-weight: normal;
    font-size: 12pt;
}

.m5-file {
    padding: 5px 20px 5px 20px;
    border-radius: 5px;
    border: 1px solid #80808078;
    background-color: #e7f9ff;
    align-items: center;
}

.m5-selected_item {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid rgb(223 223 220);
    background-color: #dbf3ff;
}

.m5-time_stamp {
    font-size: 8pt !important;
    color: rgb(106 106 185);
    font-weight: 600;
    text-align: end;
    margin-bottom: -10px;
}

@font-face {
    font-family: Elmessiri;
    src: url(el_messiri.ttf);
}

@font-face {
    font-family: Sansa;
    src: url(Salsa-Regular.ttf);
}

@font-face {
    font-family: Hacen;
    src: url(Hacen-Maghreb.ttf);
}

/* Hacen-Maghreb.ttf */

*[title] {
    position: relative;
    display: inline-block;
}

*[title]:hover::after {
    content: attr(title);
    position: absolute;
    background-color: white;
    padding: 5px 20px;
    margin-top: -50%;
    width: max-content;
    left: 0;
    border-radius: 5px;
    box-shadow: 0px 0px 5px 1px rgb(50 0 193 / 45%);
    animation: div_Anime 300ms;
}

.m5-progress {
    background-color: #bdb6ff;
}


.progress {
    height: 20px;
    font-size: 10pt;
    font-weight: 500 !important;
}

.m5-selected_option {
    background-color: #b7e7ff;
}


.notification.projects-assign {
    background-color: #5155ff;
    color: white;
}

.notification.projects-review {
    background-color: #8c8dc9;
    color: white;
}

.notification.projects-assign {
    background-color: #7174ff;
    color: white;
}

.notification.projects-draft {
    background-color: #a7a8ff;
    color: white;
}

.notification.projects-publish {
    background-color: #7678ff;
    color: white;
}

.notification.projects-wasted {
    background-color: #6566aa;
    color: white;
}

.notification.projects-kpi {
    background-color: #494a79;
    color: white;
}

.notification.message {
    background-color: #d3ffe9;
    color: rgb(22, 36, 117);
}
.notification.message h5 {
    color: rgb(22, 36, 117);
}
.notification svg{
    mix-blend-mode: difference;
}

.notification h5 {
    color: white;
}

.notification.leads-new {
    background-color: #269b22;
    color: white !important;
}

.notification.leads-upload {
    background-color: #4ea84b;
    color: white !important;
}

.notification.leads-update {
    background-color: #1e771b;
    color: white !important;
}

.notification-leads h5 {
    color: white;
}

.notification.broadcast{
    background-color: #b3f8c7;
    color: rgb(22, 36, 117);
}

.notification.broadcast h5 {
    color: rgb(22, 36, 117);
}

.notification.event{
    background-color: #ffffd0;
    color: rgb(22, 36, 117);
}

.notification.event h5 {
    color: rgb(22, 36, 117);
}

.notes {
    font-size: 10pt !important;
    white-space: pre-wrap;
}

.m5-chat {
    display: flex;
    flex-direction: column-reverse;
    overflow-y: scroll;
    overflow-x: hidden;
    box-sizing: content-box;
    flex: 1;
    max-height: 100%;
    min-height: 50vh;
    padding: 10px;
    background-color: #f1fdff;
    border-radius: 5px;
    box-shadow: 0px 0px 5px 0px rgb(102 114 255 / 42%);
    max-height: 70vh;
}

.m5-win .m5-chat {
    max-height: 50vh;
}

.m5-message {
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    margin-bottom: 5px;
    padding: 5px 15px;
    border: 1px solid rgb(205 205 205 / 59%);
    background-color: white;
}

.m5-message .m5-sender {
    font-weight: 500;
    font-size: 10pt;
    margin-bottom: 5px;
    text-decoration: underline;
}

.m5-message .m5-content {
    font-weight: 400;
    font-size: 10pt;
    white-space: pre-wrap;
}

.m5-message.m5-mine {
    align-self: end;
    margin-left: 20px;
}

.m5-message.m5-others {
    align-self: start;
    margin-right: 20px;
}

.m5-message .m5-time {
    font-size: 7pt;
    text-align: right;
    font-weight: 500;
    color: #6969e5;
    border-top: 1px solid #d3e8ff;
    margin-top: 5px;
}

.m5-chat-footer textarea {
    min-width: auto;
}

.m5-message.m5-new {
    animation: new_message 1s;
}

@keyframes new_message {
    from {
        background-color: #bdbeff;
    }
}

.m5-chat-targets .m5-item:hover,
.m5-chat-targets .m5-item.m5-selected {
    background-color: #b3f5dd;
    border-radius: 5px;
}


.m5-chat-container {
    max-height: 50vh;
}
.m5-side-tab{
    padding: 5px 20px;
    border-radius: 10px;
    cursor: pointer;
}
.m5-side-tab.selected,.m5-side-tab:hover{
    background-color: #daf7fd;
}