﻿/* bootstrap overrides */
.modal-header.bg-primary {
    background-color: #336600;
    color: #FFF;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.modal-title {
    display: inline;
}

.btn {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.btn-primary {
    background-color: #336600;
    color: #FFF;
}

.btn-primary:hover {
    background-color: #339933;
    color: #333333;
}

.dropdown-item.active {
    background-color: #02c6f3;
}

.row-no-padding > div.col-sm-1,
.row-no-padding > div.col-sm-2,
.row-no-padding > div.col-sm-3,
.row-no-padding > div.col-sm-4,
.row-no-padding > div.col-sm-5,
.row-no-padding > div.col-sm-6,
.row-no-padding > div.col-sm-7,
.row-no-padding > div.col-sm-8,
.row-no-padding > div.col-sm-9,
.row-no-padding > div.col-sm-10,
.row-no-padding > div.col-sm-11,
.row-no-padding > div.col-sm-12 {
    padding-left: 0;
    padding-right: 0;
}

.form-select {
    display:inline;
    padding-right: 30px;
}

.card-header {
    padding-top: 0.8rem !important;
    padding-bottom: 0.2rem !important;
}

.card-body {
    padding-top: 0.2rem !important;
    padding-bottom: 0.8rem !important;
}

.badge {
    text-transform: unset;
}

ul.dropdown-menu > li > .btn {
    display: block;
    margin-bottom: 0;
}

.table-sm > :not(caption) > * > * {
    padding: 0.1rem 0.1rem;
}

/* Image buttons */
.imgbutton {
    cursor: pointer;
    margin-right: 10px;
}

.imgbutton:hover {
    opacity: 0.5;
}

.imgbutton-md {
    width: 20px;
}


/* Placeholder  text */
select.placeholder {
    font-style: italic;
    color: #808080;
}

    select.placeholder option:not(:first-child) {
        font-style: normal;
        color: #000;
    }

/* Title bar tool bars */
div.page-title-x div.btn-toolbar {
    margin-top: -6px;
}

/* Typeahead styling */
.vbt-autocomplete-list {
    position: absolute;
    z-index: 10;
    margin: 0;
}

/* Backport from bootstrap 5 */
.font-weight-bold {
    font-weight: bold;
}

#splash {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    height: calc(100% - 90px);
    width: calc(100% - 235px);
    position: absolute;
    z-index: 10000;
    left: 235px;
    opacity: .75;
    background: #273238;
}

.center {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* no small buttons in bootstrap 5 */
.btn-group-xs > .btn, .btn-xs {
    padding: 2px 6px;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 0.5rem;
    margin: 0 !important;
}

.btn-group-xs > .btn {
    border-radius: 0.2rem;
}

/* Soft UI has a massive margin after btn for some reason - fix */
.btn {
    margin-bottom: 0.25rem;
}

/* Soft UI messes up the progress bars - fix */
.progress-bar-striped {
    background-size: 1rem 1rem;
}

.progress-bar {
    margin-top: unset;
    margin-left: unset;
}

.progress {
    overflow: hidden
}
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Override the soft ui .btn-close, because it makes the close button white */
.btn-close {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;
    border: 0;
    border-radius: 0.25rem;
    opacity: 0.5;
}

/* Splash screen spinner */
.lds-ellipsis {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.lds-ellipsis div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.lds-ellipsis div:nth-child(1) {
    left: 8px;
    animation: lds-ellipsis1 0.6s infinite;
}

.lds-ellipsis div:nth-child(2) {
    left: 8px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(3) {
    left: 32px;
    animation: lds-ellipsis2 0.6s infinite;
}

.lds-ellipsis div:nth-child(4) {
    left: 56px;
    animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes lds-ellipsis3 {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

@keyframes lds-ellipsis2 {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(24px, 0);
    }
}

.processing {
    width: 12px;
    aspect-ratio: 1;
    --c: no-repeat linear-gradient(#000 0 0);
    background: var(--c) 0% 50%, var(--c) 50% 50%, var(--c) 100% 50%;
    background-size: 20% 100%;
    animation: processing 1s infinite linear;
}

@keyframes processing {
    0% {
        background-size: 20% 100%,20% 100%,20% 100%
    }

    33% {
        background-size: 20% 10%,20% 100%,20% 100%
    }

    50% {
        background-size: 20% 100%,20% 10%,20% 100%
    }

    66% {
        background-size: 20% 100%,20% 100%,20% 10%
    }

    100% {
        background-size: 20% 100%,20% 100%,20% 100%
    }
}

html,
body,
section.content,
.main-content {
    height: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
}

html, body, select, option {
    font-family: 'Open Sans', 'Gotham', 'Roboto', 'Tahoma', 'sans-serif' !important;
}

.table {
    font-size: 14px !important;
}

.ps__rail-x, .ps__rail-y {
    display: none !important
}

#navbarBlur {
    width: calc(100% - 80px);
}

.page-content-wrapper {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: var(--bs-gutter-x, .75rem);
    padding-left: var(--bs-gutter-x, .75rem);
    margin-right: auto;
    margin-left: auto;
}

.form-control, .form-select, .input-group > .form-control, .input-group-text {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.input-group button, .flatpickr-input {
    margin-top: 0;
    margin-bottom: 0;
    padding-left: 8px;
    padding-right: 8px;
}

.flatpickr-input.form-select.text-end {
    padding-right: 30px;
}

table .list-group {
    position: absolute;
    z-index: 99999;
}

.nav-tabs .nav-link.active, .nav-tabs .nav-item.show {
    border-color: #dee2e6;
    border-radius: 0.5rem;
}

.nav-link {
    color: black;
}

#feedback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10060; /* Make sure this is higher than other elements */
}

#feedback div.alert {
    z-index: 10061;
    position: absolute;
    top: 0;
    left: 10%;
    width: 80%;
    text-align: center;
}

#feedback div.alert-info, #feedback div.alert-success {
    opacity: 0.75;
    padding: 4px;
}

#feedback div.alert-danger {
    color: #ffffff;
}

#feedback div.progress-bar {
    height: 24px;
    top: -10px;
    position: relative;
    text-align: center;
 }

.btn {
    text-transform: none !important;
}

.nav.nav-pills {
    background-color: inherit;
}

[v-cloak] {
    display: none;
}

.no-border-radius-right .form-control[role=searchbox] {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-top-left-radius: 0.5rem !important;
    border-bottom-left-radius: 0.5rem !important;
}

.no-border-radius-left .form-control[role=searchbox] {
    border-top-right-radius: 0.5rem !important;
    border-bottom-right-radius: 0.5rem !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Typeahead component styles */
.new-item {
    background-image: url('/Images/plus.svg');
    background-repeat: no-repeat;
    background-size: 24px;
    background-position-y: 50%;
    background-position-x: 99%;
}

div.input-group button.processing {
    width: 26.6px;
}

.not-ready {
    text-decoration: underline wavy red;
}

.mw-800 {
    max-width: 800px;
}

div.form-control {
    min-height: calc(1.4rem + 10px);
}

/* Glowing */
.glow-primary {
    -webkit-animation: glowing-primary 1500ms infinite;
    -moz-animation: glowing-primary 1500ms infinite;
    -o-animation: glowing-primary 1500ms infinite;
    animation: glowing-primary 1500ms infinite;
}

@-webkit-keyframes glowing-primary {
    0% {
        background-color: #336600;
        -webkit-box-shadow: 0 0 3px #336600;
    }

    50% {
        background-color: #65C701;
        -webkit-box-shadow: 0 0 40px #00AF5A;
    }

    100% {
        background-color: #336600;
        -webkit-box-shadow: 0 0 3px #336600;
    }
}

@-moz-keyframes glowing-primary {
    0% {
        background-color: #336600;
        -moz-box-shadow: 0 0 3px #336600;
    }

    50% {
        background-color: #65C701;
        -moz-box-shadow: 0 0 40px #00AF5A;
    }

    100% {
        background-color: #336600;
        -moz-box-shadow: 0 0 3px #336600;
    }
}

@-o-keyframes glowing-primary {
    0% {
        background-color: #336600;
        box-shadow: 0 0 3px #336600;
    }

    50% {
        background-color: #65C701;
        box-shadow: 0 0 40px #00AF5A;
    }

    100% {
        background-color: #336600;
        box-shadow: 0 0 3px #336600;
    }
}

@keyframes glowing-primary {
    0% {
        background-color: #336600;
        box-shadow: 0 0 3px #336600;
    }

    50% {
        background-color: #65C701;
        box-shadow: 0 0 40px #00AF5A;
    }

    100% {
        background-color: #336600;
        box-shadow: 0 0 3px #336600;
    }
}

.width-constrained {
    max-width: 800px;
}

/* Widgets */
.widget-body {
    max-height: 400px;
    overflow-y: auto;
}

/* Financial Tags */
.tag-outer {
    border-radius: 10px;
    font-size: 10px;
    height: 20px;
    padding: 2px;
    line-height: 1.6em;
}

.tag-inner {
    padding: 5px;
}

.tag-edit {
    height: 32.4px;
    display: inline-block;
}

.tag-edit > ul {
    overflow-x: auto;
    white-space: nowrap;
    height:100%;
    width:100%;
}

.tag-edit .dropdown {
    top:-100%;
}

.tag-edit .dropdown-menu::before {
    content:none;
}

.drag-over {
    background-color: #17c1e8;
    border: 2px dashed #ffffff;
}
