/* base */
:root {
    --logi-blue: #00b7ff;
    --lightgrey: #e9ecef;
    --dashboardgrey: #f3f2f7;
}

body, .table, .form-control, label,
.custom-select, tr:hover, .logi-menu .navigation li:not(.active) a, 
.nav-tabs .nav-link:not(.active) {
    color: #56535F;
}

.vertical-layout.vertical-menu-modern.menu-collapsed .logi-menu:not(.expanded) .navigation li.active a {
    color: #FFF;
}

.vertical-layout.vertical-menu-modern.menu-collapsed .main-menu:not(.expanded) .navigation li.active a {
    background-color: var(--primary);
}

[v-cloak] {
    display: none;
}

/* Desktop */
@media (min-width: 1000px) {
    .navbar-container {
        display: flex;
    }
}
/***/

/* Mobile */
@media (max-width: 1000px) {
    html body.navbar-sticky .app-content {
        padding-top: 11rem !important;
    }

    .navbar-container .nav {
        margin-bottom: 0.25rem;
    }

    .header-navbar .logi-header {
        justify-content: space-between;
    }
}
/***/

.text-logi {
    color: var(--logi-blue) !important;
}

.bg-logi {
    background-color: var(--logi-blue) !important;
}

.gap-2 {
    gap: 2rem !important;
}

.gap-1 {
    gap: 1rem !important;
}

.gap-50 {
    gap: 0.5rem !important;
}

.gap-25 {
    gap: 0.25rem !important;
}

.theme-primary {
    background-color: var(--primary) !important;
    color: #fff !important;
}

/* content */
#browser-warning {
    font-size: 110%;
}

#main-content, .vs__dropdown-menu {
    font-size: 12px;
    /* min-height: calc(100vh - 50px - 50px - 50px); */
}

#footer {
    bottom: 0;
    margin-bottom: 0px;
    width: 100%;
}

.dropdown-divider:first-child, .dropdown-divider:last-child {
    display: none;
}

#view-as-badge:hover {
    background-color: #ffe9a6;
    cursor: pointer;
}

#view-as {
    display: inline-block;
    width: 80%;
}

#view-as-button {
    display: inline-block;
    padding: 5px;
    border-radius: 5px;
}

#view-as-button:hover {
    background-color: darkgrey;
    cursor: pointer;
}

.badge-admin {
    background-color: #00d7f3;
    color: #343a40;
}

#content {
    overflow-x: auto;
}

.logisthai-form {
    width: 100%;
    max-width: 720px;
    margin: auto;
}

/* .image-form {
    margin: auto;
} */

.client-results {
    background-color: white;
    border: 1px solid black;
    position: absolute;
    /* top: 2.5em; */
    z-index: 50;
}

/* .image-form *, #import-list{
    font-size: 14px;
} */

/* .image-form label:not(.form-check-label){
    font-size: 12px;
} */

.form-group {
    margin-bottom: 0.5rem;
}

.group-border {
    border-radius: 5px;
    border: 1px solid darkgrey;
    padding-top: 5px;
    padding-bottom: 5px;
}

/* #import-images, #old-batches {
    border-top: 0 !important;
} */

#batch-row, #batch-label {
    margin-bottom: 0;
}

/* .image-form .text-muted {
    font-size: 14px;
}

.image-form input {
    font-size: 14px;
}

.image-form select {
    font-size: 14px;
} */

.image-form .form-group>div:not(:last-child) {
    padding-right: 0;
}

/* .form-check label {
    vertical-align: middle;
} */

.input-group {
    align-items: baseline;
}

/* .input-spinner {
    line-height: inherit;
} */

/* .logisthai-form .checkbox {
    font-weight: 400;
} */

/* .logisthai-form .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
} */

/* .logisthai-form .form-control:focus {
    z-index: 2;
} */

/* .logisthai-form input[type="email"] {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
} */

.logisthai-form input[type="password"] {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

#batch-id {
    padding: 0;
}

#master-buttons-div {
    /* padding-left: 15px; */
}

.gallery-header .custom-range::-moz-range-thumb,
.gallery-header .custom-range::-webkit-slider-thumb {
    background-color: var(--primary);
}

.check-label {
    vertical-align: middle;
}

#sidebar-close {
    position: absolute;
    /* top: 15px; */
    right: 0;
}

/* #sidebar-toggle {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
} */

.header-table {
    /* border-collapse: collapse; */
    display: inline-block;
}

.header-table td {
    /* margin: 0.25rem; */
    padding-right: 0.5em;
}

.header-values {
    font-size: 1.1rem;
}

/* .image-header {
    vertical-align: middle;
} */

.image .card-header .card-subtitle>span:not(:last-child){
    border-right: 2px solid darkgray;
}

.pages {
    /* height: calc(100vh - 150px); */
    /* overflow-y: auto; */
}

.file-header .btn-group button {
    line-height: normal;
}

.invoice-warning, .invoice-error {
    font-size: inherit;
}

.gallery-image {
    display: inline-block;
    /* background-color: lightgrey; */
    padding: 0.5em;
    margin: 0.5em;
}

.page-container {
    display: inline-block;
    padding: 0;
    margin: 0;
    border-radius: 0.25em;
    position: relative;
}

.page .close, .page-hide {
    right: 2em;
    float: none;
    vertical-align: top;
    display: inline-block;
    margin: 0.25rem;
    font-size: 120%;
    /* color: darkgray; */
}

.ui-sortable-placeholder {
    visibility: visible !important;
    background-color: aliceblue;
}

.settings-box {
    float: right;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-numbers {
    text-align: center;
}

.page-number, .page-number-total {
}

.mta {
    margin-top: auto;
}

.page-cut {
    display: inline-block;
    box-sizing: border-box;
    width: 2.5rem;
    height: 100%;
    padding: 1em;
}

.page-cut.cut, .modal-cut.cut {
    border-right: 3px black dotted;
}

.modal-cut.cut.cut-left {
    border-left: 0;
    border-right: 3px black dotted;
}

.logi-hidden img {
    opacity: 0.5;
}

.page-header, .page {
    /* padding: 1em; */
    box-sizing: content-box;
    display: list-item;
    list-style: none;
    float: left;
}

.page-buttons {
    margin: 5px;
}

.update_pages {
    margin: 5px;
}

.page-jb-button {
    margin: 5px;
}

.page-sh-button {
    margin: 5px;
}

.page-delete-button, .page-save-btn {
    margin: 5px;
}

.preview-container {
    display: inline-block;
    background-color: black;
    color: lightcyan;
    position: relative;
}

.page .preview-container {
    cursor: zoom-in;
    height: 100%;
}

img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    height: inherit;
}

.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.selected {
    border: solid var(--primary) 2px;
}

.selected-bg {
    background-color: #00b7ff;
}


.logisthai-pbar {
    margin: 5px;
}

.disable {
    pointer-events: none;
    opacity: 0.4;
}

.noDisplay {
    display: none !important;
}

#gallery-tabs {
    overflow-y: auto;
}

#gallery-tabs .nav-link {
    border-top: 0;
    border-radius: 0;
}

@keyframes warning-glow {
    from {
        background-color: unset
    }

    to {
        background-color: var(--warning);
    }
}

.warning-glow {
    animation: warning-glow 1s ease-in-out alternate infinite;
}

#invoice-order-container, .invoice-order-container {
    /* , .invoice-input-maxc { */
    width: max-content;
}

.v-select .dropdown-menu {
    display: block;
}

.v-select {
    display: grid;
}

#invoice-order-container label {
    font-size: inherit;
}

#invoice-order-container .btn-group{
    vertical-align: baseline;
}

.invoice-content {
    display: flex;
    overflow: auto;
    height: fit-content;
    border: solid 1px var(--dark);
    border-radius: 0.5em;
    background-color: var(--dark);
}

.invoice-content>div:not(:first-child) {
    margin-left: 1em;
}

/* .invoice-controls table td:first-child {
    width: 1px;
} */

#invoice-warning {
    width: max-content;
}

@keyframes warning-flash {
    from {
        background-color: unset
    }

    to {
        background-color: yellow;
    }
}

.warning-flash {
    animation: warning-flash 0.5s ease-in-out;
}

#invoice-spinner {
    font-size: 180%;
}

#invoice-gallery, #invoices-vue {
    display: flex;
}

#invoices-vue {
    width: 100%;
    flex-wrap: wrap;
    align-items: flex-start;
}

.invoice-header{
    display: inline-block;
}

/* .invoice-header::after {
    width: 100%;
    content: '';
} */

.invoice-header-h {
    margin: 0;
    min-width: 8rem;
}

.invoice {
    display: inline-block;
    background-color: var(--light);
    border-radius: 5px;
    text-align: left;
    /* margin: auto; */
}

.invoice-val  {
    min-width: 100px;
}

.invoice-val input.invalid, .image-form .invalid,
.v-select.invalid>.vs__dropdown-toggle, select.invalid, input.invalid {
    padding: 1px;
    border: 2px solid !important;
    border-color: var(--red) !important;
    border-radius: 2px;
}
.invalid.invalid-warning, 
.v-select.invalid.invalid-warning>.vs__dropdown-toggle {
    border-color: var(--warning) !important;
}

.image-form .invalid {
    padding: inherit;
}

.invoice-edit {
    display: flex;
}

#invoice-gallery .invoice-edit div,
#invoice-gallery .invoice-copy,
#invoice-gallery .invoice-new {
    background-color: var(--primary);
    border-radius: 0.25em;
    cursor: pointer;
    border: 0 !important;
    padding: 0.25em;
    text-align: center;
    color: white;
    flex-grow: 1;
    max-width: 6em;
    display: inline-block;
}

#invoice-gallery .invoice-edit > div,
#invoice-gallery .invoice-copy,
#invoice-gallery .invoice-new {
    margin-left: auto;
}

#invoice-gallery .invoice-edit .cancel {
    margin-left: 0.25em;
}

.invoice-controls table td>input {
    padding: 1px;
    border: 0;
    /* background: none; */
    background-color: white;
    padding: 0 5px 0 5px;
    width: auto;
    max-width: 30em;
}

.invoice-controls .vs--single {
    background-color: white;
}

.vs__clear svg {
    vertical-align: initial;
}

.invoice-controls table input:focus {
    outline: none;
}

.invoice-copy {
    max-width: max-content;
}

.invoice-controls table:first-child .invoice-prev,
.invoice-controls table:last-child .invoice-next {
    display: none;
}

.invoice-controls input, .invoice-controls select {
    font-size: unset;
}

.invoice-data-gallery td {
    /* max-width: 30em; */
    min-width: 4rem;
}

.invoice-data-gallery .invoice-table tr td:first-child{
    width: 1px; /* 0 works in FF, not in Chrome */
    max-width: none;
    padding-right: 1em;
}

.invoice-current select.form-control {
    padding-left: 0;
}

.invoice-data-gallery .invoice-table tr th:first-child{
    white-space: nowrap;
}

.wrapfix {
    max-width: none !important;
    text-overflow: unset !important;
    overflow: unset !important;
    white-space: unset !important;
}

.invoice-add-btn {
    text-align: right;
}

.td-min {
    width: 0;
    white-space: nowrap;
}

.invoice-next, .invoice-prev {
    cursor: pointer;
}

.invoice-preview img {
    cursor: zoom-in;
}

.invoice-preview-open {
    display: inline-block;
    margin-top: 0.5em;
}

.invoice-preview-open i {
    font-size: 150%;
    vertical-align: top;
}

.invoice-pages img {
    max-width: 100px;
    max-height: 100px;
    cursor: pointer;
}

.invoice-pages img:last-child {
    margin-right: 0 !important;
}

.invoice-preview {
    /* text-align: center; */
    width: max-content;
    margin: 0 auto;
    position: relative;
}

/* #invoice-current, .invoice-current{
    text-align: center;
} */

/* .invoice-controls table input {
    width: inherit;
} */

.invoice-controls td{
    border: 1px solid lightgrey;
    padding: 0.25em;
}

.invoice-controls th{
    padding: 0.25em;
    border-top: 0;
}

.invoice-controls tr:first-child td {
    border-top: 0;
}

.invoice-controls tr:last-child td {
    border-bottom: 0;
}

.invoice-controls td:first-child {
    border-left: 0;
}

.invoice-controls td:last-child {
    border-right: 0;
}

#invoice-nav, .invoice-nav-cl {
    display: flex;
    overflow-y: auto;
}

.invoice-nav-thumb, #invoice-total, .invoice-total {
    /* width: 100px; */
    white-space: nowrap;
    background-color: var(--light);
    border-radius: 5px;
    cursor: pointer;
}

#invoice-total, .invoice-total {
    cursor: unset;
}

#invoice-total .alert, .invoice-total .alert {
    text-align: right;
    /* font-size: 120%; */
}

.invoice-nav-thumb img {
    min-width: 100px;
    width: 100%;
    height: 95px;
    object-fit: cover;
    object-position: top;
}

.thumb-header {
    border-bottom: 1px solid var(--primary);
}

.thumb-header .badge {
    font-size: unset;
    font-weight: unset;
}

/*
 * Navbar
 */

/*
.navbar {
    background: url(/static/img/header_bg.png);
    background-repeat: no-repeat;
    background-size: auto;
}
*/

/* .navbar { */
#navigation-bar {
    background-color: #343a40;
    position: sticky;
    top: 0;
    z-index: 90;
}

/* .navbar-brand {
    padding-top: .75rem;
    padding-bottom: .75rem;
    font-size: 1rem;
} */

.navbar-brand img {
    width: 35px;
}

.expanded .navbar-brand img {
    width: 135px;
}

.main-menu .navbar-header {
    height: auto; /* required to fit square logos */
}

#user-lang-select, .dropdown-sm {
    font-size: small;
    height: auto;
    /* width: auto; 
    border: 0; */
}

#profile-dropdown {
    width: auto;
}

/*
 *
 */

.bd-example-modal-lg .modal-dialog {
    display: table;
    position: relative;
    margin: 0 auto;
    top: calc(50% - 24px);
}

.bd-example-modal-lg .modal-dialog .modal-content {
    background-color: transparent;
    border: none;
}

.preview-modal {
    text-align: center;
    max-height: 96vh;
    white-space: nowrap;
}

.modal-size {
    /* height: 85vh; */
    min-height: 50vh;
    max-height: 90vh;
}

.modal-width {
    max-width: 90vw;
    width: auto;
    min-width: 40vw;
    margin: 0 auto;
}

.modal-cut {
    display: inline-block;
    cursor: pointer;
    height: 100vh;
}

.modal-arrows {
    background-color: lightgrey;
}

.modal-arrows i, .page-hide {
    font-size: 150%;
    padding: 0.25rem;
    /* color: darkgrey; */
    cursor: pointer;
}

.table th {
    word-wrap: break-word;
}

/*
 * Results and Queue Table
 */

#batch-results, #queue-results {
    width: 100%;
}

@media (max-width: 1200px) {
    #batch-results, #queue-results {
        max-width: 100%;
        width: 100%;
        padding: 0;
        overflow-x: auto;
    }

    #main-content {
        font-size: 12px;
        min-height: calc(100vh - 50px - 50px - 50px);
        padding: 0;
    }
}

 .table {
    margin: auto;
 }

 .table td, .table th{
    vertical-align: middle;
}

 .inline-settings {
    display: inline-block;
    background-color: lightblue;
    border-radius: 5px;
 }

 #fromDaysInput {
    width: 3rem;
 }

 .jobWaiting  .queue-btn, .result-btn, .invoice-add-btn, .invoice-del-btn {
    display: inline-block;
    cursor: pointer;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
    margin-left: 0.2rem;
    color: darkgrey;
}

.queue-btn:hover, .result-btn:hover, .modal-arrows i:hover,
.page-hide:hover, .reload-btn:hover, .invoice-add-btn:hover,
.invoice-del-btn:hover {
    /* background-color: darkgrey; */
    color: black;
}

.queue-status {
    border-radius: 3px;
    padding: 0.1rem;
    font-weight: bold;
    color: white;
    text-align: center;
}

.jobRunning {
    background-color: lightblue;
}

.jobRunning .queue-status{
    background-color: var(--primary);
}

.jobWaiting .queue-status {
    background-color: #222;
}

.delete:hover {
    color: red;
}

.save:hover {
    color: blue;
}

.nowrap {
    white-space: nowrap;
}

#edit-header {
    margin-left: 0 !important;
}

/* Whitelist */

.whitelist-container {
    margin: auto;
}
/*
.whitelist-container .card-body {
    text-align: center;
}

/*
#account-list-table {
    min-width: 13em;
    width: 100%;
    table-layout: fixed;
}
 */

.wl-client-id {
    width: 15%;
}

/* .wl-client-name {
    width: 16%;
} */

.wl-list-btn {
    width: 3%;
}

.wl-input {
    width: 20%;
}

#new-client-id {
    vertical-align: middle;
}

#add-new-account-list {
    font-size: inherit;
    line-height: 1em;
}

.article-content-col {
    overflow-y: auto;
}

.article-form {
    width: 100%;
    max-width: 750px;
    /* padding: 15px;
    margin: auto; */
}

.article-form .checkbox {
    font-weight: 400;
}

.article-form .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    padding: 10px;
    font-size: 16px;
}

.article-form .form-control:focus {
    z-index: 2;
}

.article-form input[type="text"] {
    margin-bottom: 10px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.article-form, div[data-field-id="id_content"] {
    overflow-y: auto;
}

.news-badge {
    font-size: 15px;
}

.ocr-overlay {
    position: absolute;
    background-color: rgba(255, 255, 0, 0.5);
    cursor: initial;
    mix-blend-mode: multiply;
}

.hidden .ocr-overlay, .hide-ocr .ocr-overlay {
    display: none;
}

.lockscreen {
    z-index: 99;
    width: 100%;
    height: 100%;
    position: absolute;
    background-color: rgba(171, 169, 169, 0.68);
}

.checkbox-inline {
    display: inline-block;
    width: auto;
    vertical-align: top;
}

.test-class {
    background-color: magenta;
}

.batch-list-div {
    height: 75%;
    overflow-x: auto;
}

#batch-list>div {
    padding: 0.25em;
    margin-bottom: 0.25em;
    background-color: lightblue;
}

#batch-list td {
    font-size: 13px;
    border-top: 0;
}

#cancel-reload {
    cursor: pointer;
}

.reload-btn {
    cursor: pointer;
    font-size: larger;
    color: lightgrey;
}

.reload-btn i {
    color: inherit;
}

.reload-status {
    padding: 0.25em;
}

#reload-warning span{
    vertical-align: middle;
    font-size: 120%;
}

#reload-warning .btn {
    font-size: 100%;
}

.status-failed {
    background-color: red;
}

.btn-circle {
    width: 30px;
    height: 30px;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.428571429;
    border-radius: 15px;
}

.btn-circle.btn-lg {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 18px;
    line-height: 1.33;
    border-radius: 20px;
    opacity: 0.5;
}

.btn-circle.btn-lg:hover {
    opacity: 1;
}

.btn-circle.btn-xl {
    width: 70px;
    height: 70px;
    padding: 10px 16px;
    font-size: 24px;
    line-height: 1.33;
    border-radius: 35px;
}

.red {
    color: red;
}

/* Bug */

.bug-modal {
    min-width: 80%;
    border-radius: 0;
    background: transparent;
}

.bug-modal .modal-content {
    min-height: 80vh;
    background: transparent;
}

.bug-screenshot-open .fas, #qr-code-toggle .fas {
    color:darkgrey;
    font-size: 20px;
    vertical-align: bottom;
    cursor: pointer;
}

.bug-screenshot {
    max-height: 500px;
}

/* User Create */

/* .template-btn {

} */

/* User Edit */

.btn-small {
    font-size: 90%;
}

#group-reset, #license-rest {
    display: block;
    margin-left: auto;
}

#id_groups, .logi-gray-checkbox-area {
    background-color: #DDD;
    border-radius: 0.5em;
    padding: 0;
    list-style-type: none;
    width: 100%;
}

#id_groups label, .logi-gray-checkbox-area label {
    margin: 0;
    padding: 5px;
    font-size: 14px;
    word-wrap: normal;
}

#id_groups .sublist li, .logi-gray-checkbox-area .sublist li {
    display: inline-block;
    width: 49%;
    vertical-align: top;
}

#id_groups .option-div, .logi-gray-checkbox-area .option-div {
    display: inline-block;
    max-width: 80%;
}

.list-label {
    text-decoration: underline;
}

/* #file-tree li, .filecolumn-cell {
    padding-bottom: 5px;
} */

/* #file-details tr>td:not(:first) { */
#file-details td{
    padding-right: 5px;
}

/* #file-pages { */
#file-preview-container, #document-viewer {
    background-color: darkgrey;
    /* padding: 5px; */
    position: sticky;
    min-height: 350px;
    width: 100%;
    height: 80vh;
}

#file-pages img {
    /* max-height: 500px;
    max-width: 500px; */
}

.pdf-icon {
    background: url(/static/img/PDF_24.png) magenta;
}

.navbar-nav li:hover > ul.dropdown-menu {
    display: block;
}
.dropdown-submenu {
    position:relative;
}
.dropdown-submenu>.dropdown-menu {
    top:0;
    left:100%;
    margin-top:-6px;
}

/* rotate caret on hover */
.dropdown-menu > li > a:hover:after {
    text-decoration: underline;
    transform: rotate(-90deg);
}

.dropdown-menu {
    margin-top: 0;
    width: auto;
}


.pickr-square {
    position: absolute;
    top: 0.5rem;
    right: 1.0rem;
}

.pickr-square .pickr .pcr-button {
    border: 1px solid black;
    border-radius: 3px;
}

.invalid-hex-color {
    border: 1px solid red;
}

.invalid-hex-color:focus {
    color: #495057;
    background-color: #fff;
    border-color: #ff0000;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(255, 0, 0, 0.25)
}

.valid-hex-color {
    /* Just placeholder */
}

.client-suggestion {
    border-bottom: 1px dot-dot-dash black;
    cursor: pointer;
}

.active-client-suggestion {
    background-color: var(--lightgrey);
}

#client-selection-div {
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.ip-notation {
    font-weight: bold;
    font-size: 20px;
}

.ip-input {
    text-align: center;
    border: 0;
    outline: 0 !important;
    -webkit-appearance:none;
    box-shadow: none !important;
    background: transparent;
    border-bottom: 1px solid black;
}

.fieldset.blind-post-border {
    border: 1px groove #ddd !important;
    padding: 0 1.4em 1.4em 1.4em !important;
    margin: 0 0 1.5em 0 !important;
    -webkit-box-shadow:  0 0 0 0 #000;
            box-shadow:  0 0 0 0 #000;
}

legend.blind-post-border {
    font-size: 1.2em !important;
    font-weight: bold !important;
    text-align: left !important;
    width:inherit; /* Or auto */
    padding:0 10px; /* To give a bit of padding on the left and right */
    border-bottom:none;
}


#preview-modal .modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 50vw !important;
    height: 100vh !important;
    overflow: hidden;
}

#preview-modal .modal-dialog {
    margin-top: 1rem;
    width: 60vw;
    height: 95vh;
    max-width: inherit;
}

#preview-modal .modal-content {
    height: 100%;
}

#preview-modal-iframe {
    height: 100%;
    width: 100%;
}

@media (max-width: 768px) {
    #preview-modal .modal-dialog {
        width: 95vw;
    }
}

/* theme changes */

.main-menu .navigation > li > a i {
    margin-right: 0.9rem !important;
}

.main-menu .navigation .menu-content > li > a i {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
}

/* bootstrap changes */
.b-toaster.b-toaster-top-center, .b-toaster.b-toaster-top-full, 
.b-toaster.b-toaster-top-left, .b-toaster.b-toaster-top-right {
    top: 5rem;
}

.modal-dialog {
    margin-top: 5rem;
}

/* "fix" bootstrap-extended stuff */

html .content { /* there was always a scrollbar visible, even when the content was small enough */
    min-height: calc(100% - 4.5rem);
}

.badge i {
    height: unset;
    width: unset;
    font-size: unset;
    stroke-width: unset;
    vertical-align: unset;
}

.table thead th, .table tfoot th {
    text-transform: none;
}

table th.sorting {
    cursor: pointer;
}

.table th, .table td {
    padding: 0.72rem 1rem;
}

.dataTables_paginate>.pagination {
    justify-content: flex-end;
}

.table-responsive div.row {
    margin: 0;
}

.dt-bootstrap4>div.row>div[class^="col-"] {
    padding: 0;
}

h4 ~ .breadcrumb-wrapper>.breadcrumb {
    padding: 0.08rem 1rem;
}

.btn.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

select.form-control.form-control-sm,
select.form-control.custom-select-sm {
    background-position: calc(100% - 2px) 8px, calc(100% - 20px) 8px, 100% 0;
    padding-left: 0.188rem;
}

.list-group .list-group-item.active small {
    color: #000 !important;
}

.d-flex-noimp {
    display: flex;
}

.overflow-x-auto {
    overflow-x: auto !important;
}

.overflow-y-auto {
    overflow-y: auto !important;
}

.overflow-x-hidden {
    overflow-x: hidden !important;
}

.overflow-y-hidden {
    overflow-y: hidden !important;
}

.cursor-default {
    cursor: default !important;
}

.ellipsis {
    display: inline-block;
    text-overflow: ellipsis;
    overflow-x: hidden;
    vertical-align: bottom;
}

.ellipsis-showfull:hover {
    max-width: none !important;
    position: absolute;
    background-color: white;
    box-shadow: 0 0 5px gray;
    padding: 0.25rem;
    margin-top: -0.9rem;
    border-radius: 5px;
} 

.vertical-align {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#invoices .v-select {
    width: fit-content;
}

.vs__selected-options {
    flex-wrap: nowrap !important;
}

/* 
.v-select .dropdown-toggle {
    min-width: 232px;
    padding: .2rem 0;
}
 */

.vs__search::placeholder {
    color: #b9b9c3; /* color and font-size is copied from bootstrap */
    font-size: 0.857rem;
}

.vs--disabled .vs__clear,
.vs--disabled .vs__dropdown-toggle,
.vs--disabled .vs__open-indicator,
.vs--disabled .vs__search,
.vs--disabled .vs__selected {
    background-color: #efefef;
    /* selector and color copied from bootstrap */
}

:root {
    --vs-dropdown-option-padding: 3px 10px;
    --vs-dropdown-min-width: min-content;
    --vs-border-color: #d8d6de;
}

.no-border {
    border: 0 !important;
}

/* input[type=number] */
.appearance-text {
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: textfield;
}

.input-underline {
    border: 0;
    border-bottom: 1px solid var(--dark);
    border-radius: 0px;
}

li.vs__dropdown-option--highlight>* {
    color: white !important;
}

.doc-example .doc-example-content {
    padding: 0.875rem;
    background-color: #fff;
    border: 1px solid #d8d6de; /* from vue select */
    position: relative;
    border-radius: 0.357rem; /* from vue select */
}

.doc-example .doc-example-content::before {
    content: attr(data-label);
    display: block;
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    background-color: inherit;
    color: #6e6b7b;
    padding: 0 5px
}

.overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 100;
    backdrop-filter: blur(0px) brightness(95%);
    top: 0;
    left: 0;
    cursor: not-allowed;
}

/****/

/* flatpickr theme */

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.flatpickr-day.selected:hover {
    background: var(--primary);
    border-color: var(--primary);
}

/* datatables without bootstrap4 css */

div.dataTables_wrapper div.dataTables_filter {
    text-align: right;
}

div.dataTables_wrapper div.dataTables_filter input {
    margin-left: 0.5em;
    display: inline-block;
    width: auto;
}

.payment-message-preview {
    height: 70vh !important;
}

.font-monospace {
    font-feature-settings: 'tnum';
}

.logi-success {
    color: rgb(52, 170, 102);
}

.logi-danger {
    color: rgb(204, 0, 0);
}
