body {
    font-family: 'Nunito', sans-serif;
}

main {
    width: 100%;
    max-height: 100vh;
    overflow-y: scroll;
    padding: 30px 0;
}

#app {
    display: flex;
}

.mm-sidenav {
    display: inline-block;
}
.mm-sidenav.mm-collapse .mm-collapse-btn i {
    rotate: 180deg;
}
.mm-sidenav.mm-collapse button {
    display: none;
}
.mm-sidenav.mm-collapse #automation-container {
    padding: 0 !important;
    background-color: transparent !important;
}
.mm-sidenav.mm-collapse .mm-menu-label {
    display: none !important;
}
.mm-menu-label {
    margin-left: 6px;
}
.mm-sidenav.mm-collapse {
    width: 100px!important;
}
.mm-collapse-btn {
    position: absolute;
    right: -16px;
    display: block;
    background-color: #f8f9fa;
    font-size: 16px;
    line-height: 16px;
    padding: 12px;
    border-radius: 100%;
    cursor: pointer;
}
.mm-menu-icon {
    display: inline-block;
    width: 19px;
    text-align: center;
}
.mm-make-fullscreen {
    bottom: 16px;
    right: 16px;
    z-index: 10;
}
main.mm-fullscreen {
    position: absolute;
    z-index: 1;
    background: #fff;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    min-height: 100vh;
}
#automation-collapse {
    color: #fff;
}
#automation-collapse.mm-collapsed {
    rotate: 180deg;
    transition: all ease .3s;
}
::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

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

::-webkit-scrollbar-thumb {
    border-radius: 6px;
    background-color: #5b9bfb;
}
.mm-sidenav .nav-pills {
    padding-right: 18px;
    display: block;
    width: 100%;
    max-height: 65vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 14px;
}
.mm-sidenav.mm-collapsed .nav-pills {
    max-height: 60vh;
}
.mm-robot-active {
    background-color: #51a351 !important;
    color: #fff !important;
}
.mm-dropdown-bottom {
    position: absolute;
    bottom: 20px;
    left: 16px;
    right: 16px;
}

.as-messages {
    height: 300px;
    overflow-y: scroll;
    border: 1px solid #eee;
    border-radius: 5px;
    padding-top: 20px;
    padding-bottom: 20px;
    background: #eee;
}

.as-message {
    border-radius: 5px;
    width: 70%;
    margin-top: 5px;
    margin-bottom: 5px;
    padding: 10px;
}

.in {
    background: #e3e3e3;
    margin-left: 10px;
    float: left;
    color: #000;
}

.out {
    background: #fff;
    margin-right: 10px;
    float: right;
    border: 1px solid #000;
}

.unreplied {
    background: #25d366;
    margin-left: 10px;
    float: left;
    color: #000;
}

.as-msg-info {
    font-size: small;
    padding: 5px;
}

.out .as-msg-info {
    font-weight: 500;
}

.as-msg-value {
    font-size: medium;
    padding: 5px;
    margin-bottom: 0px;
    width: 100%;
    word-wrap: break-word;
}

.in .as-msg-value {
    font-weight: 500;
}

.as-selected-photo {
    box-shadow: 0 0 5px red;
    opacity: .8;
}

.as-new-selected-photo {
    box-shadow: 0 0 5px green;
    opacity: .8;
}

.as-select-photo {
    cursor: pointer;
}

.as-select-photo:hover {
    box-shadow: 0 0 5px green;
    opacity: .8;
}

.as-link-photo:hover {
    box-shadow: 0 0 5px darkgreen;
    opacity: .8;
}

.as-linked-photo {
    box-shadow: 0 0 5px green;
    opacity: .8;
}

.as-selected {
    box-shadow: 0 0 5px green;
    opacity: .8;
}

.nav-link button.btn-sm {
    padding: 5px 6px;
    font-size: 11px;
    line-height: 11px;
}

.as-greyscale {
    filter: grayscale(1);
    border-width: 3px;
}

.btn-auto-refresh {
    position: fixed;
    right: 40px;
    bottom: 40px;
    background-color: #d3252e;
    box-shadow: 0 0 6px rgb(85, 84, 84);
    color: #e3e3e3;
    font-size: 28px;
    line-height: 28px;
    padding: 20px;
    border-radius: 100%;
    cursor: pointer;
}

.btn-auto-refresh.active {
    background-color: #25d366;
}

.bg-pink-200 {
    color: #000;
    background-color: #efadce;
}

.bg-pink-500 {
    color: #fff;
    background-color: #d63384;
}

.table-clickable-rows {
    cursor: pointer;
}

.item-selected {
    border: 3px solid cornflowerblue;
}

.action-row {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    background: #ffffff99;
}

/* Style for the pop-over filter */
.popover-filter {
    position: absolute;
    top: 100%; /* Position just below the heading */
    left: 0;
    z-index: 1000;
    width: 250px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
}

.popover-filter::before {
    content: '';
    position: absolute;
    top: -10px; /* Arrow positioned above the pop-over */
    left: 10px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent #ddd transparent;
}

td a {
    word-break: break-all;
}

.select2-container {
    z-index: 10030;
}