#dash-sidebar {
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 15rem;
    /*background-color: #8470b1;*/
    background-color: var(--bs-primary);
    z-index: 1010;
    transition: 0.25s width ease-in-out;
}
#dash-sidebar.minimized {
    width: 0;
}
#dash-sidebar #sidebar-content {
    overflow-x: hidden;
}

#dash-header {
    background-color: white;
    position: sticky;
    top: 0;
    height: 4.5rem;
    z-index: 998;
    padding-left: 2rem;
    padding-right: 2rem;
}

#dash-content {
    padding-left: 15rem;
    flex: 1 0 0;
    width: 100vw;
    min-height: 100vh;
    background-color: #f0f2fc;
    transition: 0.25s padding-left ease-in-out;
}
#dash-sidebar.minimized + #dash-content {
    padding-left: 0;
}

#dash-sidebar .nav-link {
    color: white;
    background-color: var(--bs-primary);
    margin: 0 0.5rem 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: flex;
    align-items: center;
    font-family: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;
    font-size: 1rem;
}
#dash-sidebar .nav-item.active .nav-link i {
    /*color: var(--bs-secondary);*/
}
#dash-sidebar .nav-link img {
    height: 1.1rem;
}
#dash-sidebar .nav-link i {
    margin-right: 0.5rem;
}
#dash-sidebar .nav-item .nav-link:hover, #dash-sidebar .nav-item.active .nav-link {
    background-color: #224776;
    color: white;
    mix-blend-mode: multiply;
}
#dash-sidebar .nav-item .nav-link:hover img, #dash-sidebar .nav-item.active .nav-link img {
    filter: brightness(0) invert(1);
}
#dash-sidebar > div {
    position: sticky;
    top: 0;
}

.search-container {
    position: relative;
}

.search-container:before {
    content: "\f002";
    font-family: "Font Awesome 5 Pro";
    font-weight: bold;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #8998AA;
    display: block;
    font-size: 16px;;
}

main {
    position: relative;
    padding: 1.5rem 2rem;
}

h1 {
    font-weight: bold;
}

a {
    text-decoration: none;
}
.trumbowyg a {
    text-decoration: underline;
}
section .table-responsive {
    border-radius: 5px;
}

.section {
    background: white;
    box-shadow: 0 .5rem 1rem #00000026;
    padding: 1rem;
}

.login-container {
    padding-left: 0 !important;
    background-image: url('/img/hero-bg.jpg');
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-container::before {
    background-color: var(--bs-primary);
    opacity: 0.85;
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.dropdown .dropdown-item:hover {
    background-color: var(--bs-primary);
    color: white;
}

table.table thead th {
    text-transform: uppercase;
}
table.table thead th > * {
    opacity: 0.5;
}
/*table.table th:first-child, .table td:first-child, table.table .checkbox-cell + td, table.table .checkbox-cell + th {*/
/*    text-align: left;*/
/*}*/
table.table .checkbox-cell {
    text-align: center;
    position: relative;
    background-clip: padding-box;
}
table.table .checkbox-cell input[type="checkbox"]:checked ~ label:before {
    position: absolute;
    content: '';
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background-color: var(--bs-secondary);
}
table.table th, table.table td {
    /*text-align: center;*/
    vertical-align: middle;
}
table.table .form-check {
    padding-left: 0;
}

table.table a {
    font-weight: bold;
}

.nav-tabs {
    border-bottom: 0 !important;
}
.nav-tabs .nav-link {
    border-width: 0;
    border-bottom: 2px solid transparent;
    color: var(--bs-dark);
}
.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    background-color: unset;
    border-bottom-color: var(--bs-primary);
    font-weight: bold;
}

.alert {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1020;
}

.btn-secondary {
    color: white;
}

.comma-separated > *:not(:last-child):after {
    content: ',';
}

#tokenform iframe {
    height: 10.5rem;
}
#tokenform.token-form-ach iframe {
    height: 4rem;
}

#tokenform {
    position: relative;
}

#tokenform.border-success:before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bs-success);
    opacity: 0.2;
}

.template {
    display: none;
}

.event-clickable {
    cursor: pointer;
}

.text-customer-type-1 {
    color: var(--bs-primary) !important;
}
.text-customer-type-2 {
    color: var(--bs-secondary) !important;
}

#filter-modal .choices__list--multiple .choices__item {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.signature-canvas {
    width: 100%;
    height: 150px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 2px;
    background-color: rgba(0,0,0,0.05);
}
.signature-image {
    max-width: 100%;
    max-height: 150px;
    background-color: rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.15);
}

.info-columns h2, .info-columns h3, label {
    font-size: 0.9rem;
    font-weight: bold;
}
.choices {
    margin-bottom: 0;
}
.choices-select ~ .choices__list--multiple .choices__item {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}
.choices__list--dropdown {
    z-index: 2 !important;
}

.ui-widget {
    font-family: 'Figtree', sans-serif !important;
}

.ui-autocomplete {
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
}

.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active, a.ui-button:active, .ui-button:active, .ui-button.ui-state-active:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

#attachments img {
    height: 10rem;
    width: 100%;
    object-fit: cover;
}

#attachments [data-file-type] {
    position: relative;
}
#attachments [data-file-type]:after {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    content: attr(data-file-type);
    color: white;
    font-family: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;
    font-size: 1rem;
}

.top-info-text {
    font-weight: bold;
    color: var(--bs-primary);
    padding-top: 0.4rem;
}

#table-tabs .nav-link {
    position: relative;
}
.tab-count {
    font-size: 0.6rem;
    display: inline-block;
    position: absolute;
    color: white;
    top: 50%;
    right: 0;
    transform: translate(-100%, -50%);
}
.tab-count span {
    z-index: 2;
    position: relative;
}
.tab-count:before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background-color: var(--bs-primary);
    content: '';
    z-index: 1;
}

.activity-icon {
    width: 3rem;
    height: 3rem;
    position: relative;
    border-radius: 50%;
    border: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important;
}
.activity-icon > * {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.activity-icon > * > * {
    vertical-align: middle;
    color: var(--bs-primary);
}

#recent-activity {
    max-height: 100vh;
    overflow-y: auto;
}

.task-item {
    position: relative;
    padding-top: 0.5rem;
    padding-left: 3rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
    width: 100%;
}
.task-item.checked {
    text-decoration: line-through;
}

.task-item:before {
    position: absolute;
    content: "\f111";
    font-family: "Font Awesome 5 Pro";
    font-weight: 400;
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
}
.task-item::before:hover {
    background-color: var(--bs-dark);
}
.task-item.checked:before {
    content: "\f058";
    font-weight: 600;
    color: var(--bs-primary);
}

.collapse table td, .collapsing table td {
    font-size: 0.9rem;
}

[data-bs-toggle="collapse"][aria-expanded="true"] .fa-chevron-down {
    transform: scaleY(-100%);
}

.file-upload {
    position: relative;
    overflow: hidden;
}
.file-upload input {
    position: absolute;
    opacity: 0;
    right: 0;
    top: 0;
}

.image-upload-container {
    position: relative;
}
.image-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
}
.image-upload-container .image-upload-overlay {
    display: none;
}
.image-upload-container.active .image-upload-overlay {
    display: block;
}
.image-upload-overlay > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.beta-logo {
    position: relative;
}
.beta-logo:before {
    position: absolute;
    content: 'BETA';
    font-family: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;
    font-size: 90%;
    color: red;
    font-weight: bold;
    bottom: 0;
    right: 0;
    z-index: 1;
}

.star-rating {
    font-size: 1.25rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: start;
}

.star-rating:hover {
    flex-direction: row-reverse;
}

.star-rating:hover > i {
    color: #6c757d !important;
}

.star-rating > i:hover:before,
.star-rating > i:hover ~ i:before {
    cursor: pointer;
    color: #ffc107 !important;
}

.trumbowyg-editor-box {
    background: white;
}

.small-text {
    opacity: 0.5;
    font-size: 0.7rem;
    line-height: 1;
}

tr[data-url] > *:not(.checkbox-cell, .actions-cell) {
    cursor: pointer;
}
tr[data-url]:hover > * {
    border-bottom-color: var(--bs-primary);
}
tr[data-url] > [data-tab]:hover {
    background-color: #eee;
}

.fade-in-container > * {
    animation: element-fade-in 0.3s ease-in-out;
}

@keyframes element-fade-in {
    from { opacity: 0 }
    to { opacity: 1 }
}

/*@media screen and (max-device-width: 100em) {*/
/*    table, table select {*/
/*        font-size: 90% !important;*/
/*    }*/
/*    table td, table th {*/
/*        padding-left: 0.25rem !important;*/
/*        padding-right: 0.25rem !important;*/
/*    }*/
/*}*/

@media (max-width: 992px) {
    #dash-sidebar .nav-item .nav-link {
        font-size: 0.75rem;
    }
    table, table select {
        font-size: 90% !important;
    }
    #dash-sidebar .nav-link {
        color: white;
        background-color: var(--bs-primary);
        padding: 0.5rem;
    }
    #dash-content {
        padding-left: 0;
    }
    #dash-sidebar {
        min-height: initial;
    }
    /*#dash-sidebar span, #dash-header .dropdown span {*/
    /*    display: none;*/
    /*}*/
    /*#dash-sidebar .nav-link {*/
    /*    margin-right: 0;*/
    /*}*/
    #project-tabs .nav-link {
        font-size: 0.8rem;
    }
}
