﻿/*:root {
    color-scheme: dark!important;
}
*/

:root,
:root.light {
}

    :root.dark {
        color-scheme: dark !important;
    }

@media (max-width: 767px) {
    .table-.dropdown-menu {
        position: static !important;
    }
}

@media (min-width: 768px) {
    .table-responsive {
        overflow: visible;
    }
}

.back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
}

.bg-auth .bg-overlay {
    opacity: .3 !important;
    background-color: #161819 !important;
}

#preloader[data-layout-mode=dark] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #121e2d !important;
    z-index: 9999
}

#preloader[data-layout-mode=light] {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #fff !important;
    z-index: 9999
}

.bg-auth {
    position: relative;
    /*background-image: url(../images/cmssplash.png)!important;*/
    background-image: url(../crm/img/login-splash_bm.png) !important;
    background-position: center;
    background-size: cover;
}

.hidden {
    display: none !important;
}



.select2-container.select2-small .select2-selection--single {
    height: 30px;
    font-size: 12px;
    padding: 2px 6px;
    line-height: 1.5;
}

.select2-container.select2-small .select2-selection__rendered {
    line-height: 26px; /* slightly less than container height */
}

.select2-container.select2-small .select2-selection__arrow {
    height: 22px;
    margin-top: 0px;
    top: 0px;
    /*    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: 2px;
    position: absolute;
    top: 50%;
    width: 0;*/
}

/*.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: 2px;
    position: absolute;
    top: 50%;
    width: 0;
}
*/

/*.select2-container .custom-selection--single {
    height: 28px;
    font-size: 14px !important;
    padding-top: 0px;
    user-select: none;
    cursor: pointer;
}*/

/* Still need to target the internal arrow via default classes */
/*.select2-container--default .custom-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    margin-left: -4px;
    margin-top: 0px;
    position: absolute;
    top: 40%;
    width: 0;
    height: 0;
}*/








.select2-results {
    display: block;
    text-align: left !important;
    width: 100% !important;
}

.select2-container .select2-selection--single {
    box-sizing: border-box;
    cursor: pointer;
    display: block;
    height: 38px;
    user-select: none;
    -webkit-user-select: none;
    padding-top: 3px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: 2px;
    position: absolute;
    top: 50%;
    width: 0;
}

.toast-error {
    background-color: #bd362f !important;
}

.toast-info {
    background-color: #51a351 !important;
}

#toast-container > div {
    opacity: .9 !important;
}

.search-results-link {
    cursor: pointer;
}

.event-button {
    text-align: center !important;
}

.table-events {
    font-size: 12.5px !important;
}

    .table-events td {
        padding-top: 5px !important;
        padding-bottom: 2px !important;
    }

table.dataTable.table-events tbody th, table.dataTable.table-events tbody td {
    padding: 5px 10px 0px 10px !important;
}

.table-summary-commands {
    font-size: 13.0px !important;
}

table.dataTable.table-summary-commands tbody th, table.dataTable.table-events tbody td {
    padding: 5px 5px 0px 5px !important;
}

.dropdown-item-sm {
    display: block;
    width: 100%;
    padding: .15rem 1.25rem !important;
    clear: both;
    font-weight: 200;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    font-size: 12px !important;
}

.requiredinput:after {
    content: " *";
    font-weight: bold;
    color: #dc3b3b;
    padding-top: 5px;
}

.mail-list a.active {
    color: white !important;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
}

.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #adb5bd transparent !important;
    border-width: 0 4px 4px 4px !important;
}

.flatpickr-weekdays {
    background: #0576b9 !important;
    color: white !important;
}

span.flatpickr-weekday {
    color: inherit;
}

.date-button:hover {
    cursor: pointer;
}


.swal-wide {
    width: 700px !important;
}

.mainimport_container {
    height: 100vh; /* 100% viewport height */
    overflow: hidden; /* hide overflow to prevent scrolling */
}

.mainimport_scroll {
    height: calc(100% - 25px); /* subtract the 'Notes' label height */
    overflow-y: auto;
}

.audit-log-height {
    height: calc(70vh - 240px);
}


.mt-6 {
    margin-top: 5rem !important
}


.email-leftbar {
    width: 270px!important;
}

.email-rightbar {
    margin-left: 280px!important;
}

/*
.vertical-menu {
    width: 270px!important;
}
\
.page-content {
    padding: calc(60px + 20px) calc(20px / 2) 60px calc(80px / 2)!important;
}*/


@media (min-width: 768px) {
    .timeline:before {
        left: 0% !important;
    }
}

@media (min-width: 768px) {
    .timeline .timeline-block {
        width: 100% !important;
    }
}

@media (min-width: 768px) {
    .timeline-item::before {
        content: "";
        display: block;
        width: 0% !important;
    }
}

.timeline .timeline-item {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    width: 100% !important;
}