/* Flowdesk additions on top of the Velzon template. Keep this file small. */

/* jQuery Validate + Select2 + Bootstrap 5 */
div.invalid-feedback.is-invalid {
    display: block;
}
.select2-container--bootstrap-5.is-invalid .select2-selection {
    border-color: var(--vz-danger, #f06548);
}
.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + 0.9rem + 2px);
}

/* DataTables inside cards */
table.dataTable {
    width: 100% !important;
}
.dataTables_wrapper .dataTables_processing {
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* Filter bar above a list */
.dt-filter-bar .form-label {
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

/* Money / quantity cells */
td.text-money,
th.text-money {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Offline banner (public/assets/js/app/modules/connectivity.js) */
.app-connection-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    padding: 0.5rem 1rem;
    text-align: center;
    font-weight: 500;
    color: #fff;
}

.app-connection-banner[hidden] {
    display: none;
}

.app-connection-banner.is-offline {
    background: #d63939;
}

.app-connection-banner.is-online {
    background: #0ab39c;
}

/* Dashboard */
.dash-list-row + .dash-list-row {
    border-top: 1px solid var(--vz-border-color);
}
.dash-cell {
    max-width: 11rem;
}
.dash-table > :not(caption) > * > :first-child {
    padding-left: 1rem;
}
.dash-table > :not(caption) > * > :last-child {
    padding-right: 1rem;
}

/* Page preloader: fade out instead of vanishing */
#preloader {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Sidebar: the colours of the template's "modern" theme (dark charcoal instead of indigo); the size is
   data-sidebar-size="sm-hover" on <html> (icons only, opens when the mouse is over it). The template's own dark mode keeps its colours. */
:root:not([data-layout-mode="dark"]) {
    --vz-vertical-menu-bg-dark: #2e3230;
    --vz-vertical-menu-item-color-dark: #a4b0bf;
    --vz-vertical-menu-sub-item-color-dark: #a4b0bf;
    --vz-vertical-menu-title-color-dark: #a4b0bf;
}
