/* Global styles for the TOG application */


:root .lpx-theme-dark {
    /*--lpx-logo: url('/images/logo/Logo.png');
    --lpx-logo-icon: url('/images/logo/Logo-Icon.png');*/
    --treeview-item-stroke: white;
    --tog-primary-color: #36b3ac;
    --svg-fill: white;
    --disabled-form-control: #121212;
    --designer-background-blend-mode: multiply;
    --designer-control-border-color: white;
    --lpx-brand: #36b3ac;
    --select-background-color: var(--bs-body-bg);
    --dialogheader-backround-color: darkslategray;
    --suggestion-item-color: white;
}

:root .lpx-theme-dim, :root .lpx-theme-light {
    /*--lpx-logo: url('/images/logo/Logo.png');
    --lpx-logo-icon: url('/images/logo/Logo-Icon.png');*/
    --treeview-item-stroke: black;
    --tog-primary-color: #36b3ac;
    --svg-fill: black;
    --disabled-form-control: #e9ecef;
    --designer-background-blend-mode: normal;
    --designer-control-border-color: #000;
    --lpx-brand: #36b3ac;
    --disabled-form-control: #e9ecef;
    --select-background-color: #f5f5f7;
    --dialogheader-backround-color: lightgoldenrodyellow;
    --suggestion-item-color: black;
}

.select-background {
    background-color: var(--select-background-color);
}

.flatpickr-calendar.static {
    top: initial !important;
}

.table-fixed-header > .table > thead:not(.table-thead-theme) > tr > th {
    background: none !important;
}

.excubo-blazor-treeview-item svg path {
    stroke: var(--treeview-item-stroke) !important;
}

.lpx-logo-container {
    padding: 15px !important;
}

#loading-container {
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    position: absolute;
    background-image: url(images/bg-image.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#loading-container-overlay {
    height: 100%;
    width: 100%;
    opacity: .5;
    background-color: steelblue;
    display: grid;
    place-items: center;
}

#loading-container-logo {
    opacity: 1;
}

.logo {
    width: 300px;
    height: 100px;
    position: fixed;
    display: block;
    top: calc(50% - (100px / 2));
    right: calc(50% - (250px / 2));
    opacity: 1;
}


.double-bounce1, .double-bounce2 {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: lightblue;
    opacity: 0.6;
    position: absolute;
    top: 0;
    left: 0;
    -webkit-animation: sk-bounce 2.0s infinite ease-in-out;
    animation: sk-bounce 2.0s infinite ease-in-out;
}

.double-bounce2 {
    -webkit-animation-delay: -1.0s;
    animation-delay: -1.0s;
}

@-webkit-keyframes sk-bounce {
    0%, 100% {
        -webkit-transform: scale(0.0)
    }

    50% {
        -webkit-transform: scale(0.75)
    }
}

@keyframes sk-bounce {
    0%, 100% {
        transform: scale(0.0);
        -webkit-transform: scale(0.0);
    }

    50% {
        transform: scale(.75);
        -webkit-transform: scale(.75);
    }
}

.rz-chip {
    background-color: var(--lpx-primary) !important;
    color: white !important;
    border-radius: 5px !important;
}

button.rz-button.rz-button-sm.rz-button-icon-only.rz-light {
    background-color: var(--lpx-primary) !important;
    color: white !important;
}

.rz-multiselect-panel {
    background-color: var(--select-background-color) !important;
}

.font-italic {
    font-style: italic !important;
}

.suggestion-item {
    border-radius: var(--bs-border-radius-lg) !important;
    padding: 0.375rem;
    margin-top: 0.375rem;
    margin-bottom: 0.375rem;
    border: 1px solid #dee2e6 !important;
}

.suggestion-item:hover {
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
    color: var(--suggestion-item-color) !important;
}

.suggestion-item:focus {
    background-color: rgba(var(--bs-primary-rgb), var(--bs-bg-opacity)) !important;
    color: var(--suggestion-item-color) !important;
}

.btn-view {
    border-radius: 5px !important;
    border: none !important;
    padding: 5px !important;
    font-weight: 500 !important;
    background: #e6ebef !important;
}

.btn-view:hover {
    background: lightgray !important;
    transition: all 0.3s ease-in-out !important;
}

.btn-view:focus {
    background: lightgray !important;
    transition: all 0.3s ease-in-out !important;
}

.btn-display-switch {
    border-radius: 5px !important;
    border: 2px solid transparent !important;
    padding: 5px !important;
    font-weight: 500 !important;
}

.btn-display-switch:hover {
    border: 2px solid lightgray !important;
}

.btn-display-switch:focus {
    border: 2px solid lightgray !important;
}

.btn-display-switch-active {
    border-radius: 5px !important;
    border: 2px solid lightgray !important;
    padding: 5px !important;
    font-weight: 500 !important;
}

.inline-date {
    cursor: pointer !important;
}

.inline-date:hover {
    background: #c0fffb !important;
    transition: all 0.3s ease-in-out !important;
}

.inline-date:focus {
    box-shadow: 0 0 0 0.25rem rgba(54, 179, 172, .5);
}

.inline-date-body:hover {
    color: var(--tog-primary-color) !important;
    transition: all 0.3s ease-in-out !important;
}

.inline-date-selected {
    background: #c0fffb !important;
}

.inline-date-body-selected {
    color: var(--tog-primary-color) !important;
}

.lpx-nav-menu .lpx-menu-item-link.selected .lpx-menu-item-icon, .lpx-nav-menu .lpx-menu-item-link.selected .dd-icon {
    color: var(--tog-primary-color) !important;
}

.lpx-nav-menu .lpx-menu-item-link:hover .lpx-menu-item-icon {
    color: var(--tog-primary-color) !important;
}

.lpx-breadcrumb-item:hover .lpx-breadcrumb-item-icon, .lpx-breadcrumb-item:hover .lpx-caret {
    color: var(--tog-primary-color) !important;
}

.rz-dropdown {
    height: auto !important;
}

li.rz-multiselect-item.rz-state-disabled {
    opacity: 1 !important;
}

li.rz-multiselect-item.rz-state-disabled:hover {
    background-color: initial !important;
    color: initial !important;
}

li.rz-multiselect-item.rz-state-disabled .rz-chkbox {
    display: none !important;
}

.multi-string-input {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.pill {
    background-color: var(--lpx-primary);
    color: #fff;
    padding: 5px 10px;
    border-radius: 20px;
    margin: 5px;
    display: flex;
    align-items: center;
}

.pill span {
    margin-left: 5px;
    cursor: pointer;
}

input {
    border: none;
    outline: none;
}

.fm-toolbar {
    padding: 5px;
    border: 1px solid;
    border-color: var(--lpx-border-color);
    background-color: var(--lpx-border-color);
}

.fm-body {
    border: solid 1px;
    border-color: var(--lpx-border-color);
    padding: 5px;
}

.directory-tree-column {
    border-right: solid 8px;
    border-color: var(--lpx-border-color);
}

.directory-contents {
}

.btn {
    --bs-btn-padding-y: .45rem !important;
}

.context-menu {
    z-index: 1000; /* Set a high z-index value to ensure it's above most other elements. */
    background-color: var(--bs-list-group-bg);
    border: 1px solid var(--bs-list-group-bg);
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    /* Additional styling here */
}

.context-menu-item {
    cursor: pointer;
}

.context-menu-item:hover {
    background-color: var(--lpx-brand);
    color: white;
}

.breadcrumb {
    cursor: pointer;
}

.b-tree-view-node-title {
    padding-bottom: 5px;
}

.fm-folder-color {
    color: #36b3ac;
}

.pagination .page-item.active .page-link {
    background-color: var(--tog-primary-color) !important;
}

.social-media-svg {
    fill: var(--svg-fill);
    width: 1.4rem;
}

.square-logo-md {
    height: 60px;
    object-fit: scale-down;
}

.square-logo-lg {
    height: 144px;
    object-fit: scale-down;
}

.lpx-brand-logo {
    background-size: auto 45px !important;
    height: 45px !important;
}

.socket {
    width: 200px;
    height: 200px;
    position: absolute;
    left: 50%;
    margin-left: -100px;
    top: 50%;
    margin-top: -100px;
}

.hex-brick {
    background: #ABF8FF;
    width: 30px;
    height: 17px;
    position: absolute;
    top: 5px;
    animation-name: fade;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
}

.hex-2 {
    transform: rotate(60deg);
    -webkit-transform: rotate(60deg);
}

.hex-3 {
    transform: rotate(-60deg);
    -webkit-transform: rotate(-60deg);
}

.gel {
    height: 30px;
    width: 30px;
    transition: all .3s;
    -webkit-transition: all .3s;
    position: absolute;
    top: 50%;
    left: 50%;
}

.center-gel {
    margin-left: -15px;
    margin-top: -15px;
    animation-name: pulse;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
}

.c1 {
    margin-left: -47px;
    margin-top: -15px;
}

.c2 {
    margin-left: -31px;
    margin-top: -43px;
}

.c3 {
    margin-left: 1px;
    margin-top: -43px;
}

.c4 {
    margin-left: 17px;
    margin-top: -15px;
}

.c5 {
    margin-left: -31px;
    margin-top: 13px;
}

.c6 {
    margin-left: 1px;
    margin-top: 13px;
}

.c7 {
    margin-left: -63px;
    margin-top: -43px;
}

.c8 {
    margin-left: 33px;
    margin-top: -43px;
}

.c9 {
    margin-left: -15px;
    margin-top: 41px;
}

.c10 {
    margin-left: -63px;
    margin-top: 13px;
}

.c11 {
    margin-left: 33px;
    margin-top: 13px;
}

.c12 {
    margin-left: -15px;
    margin-top: -71px;
}

.c13 {
    margin-left: -47px;
    margin-top: -71px;
}

.c14 {
    margin-left: 17px;
    margin-top: -71px;
}

.c15 {
    margin-left: -47px;
    margin-top: 41px;
}

.c16 {
    margin-left: 17px;
    margin-top: 41px;
}

.c17 {
    margin-left: -79px;
    margin-top: -15px;
}

.c18 {
    margin-left: 49px;
    margin-top: -15px;
}

.c19 {
    margin-left: -63px;
    margin-top: -99px;
}

.c20 {
    margin-left: 33px;
    margin-top: -99px;
}

.c21 {
    margin-left: 1px;
    margin-top: -99px;
}

.c22 {
    margin-left: -31px;
    margin-top: -99px;
}

.c23 {
    margin-left: -63px;
    margin-top: 69px;
}

.c24 {
    margin-left: 33px;
    margin-top: 69px;
}

.c25 {
    margin-left: 1px;
    margin-top: 69px;
}

.c26 {
    margin-left: -31px;
    margin-top: 69px;
}

.c27 {
    margin-left: -79px;
    margin-top: -15px;
}

.c28 {
    margin-left: -95px;
    margin-top: -43px;
}

.c29 {
    margin-left: -95px;
    margin-top: 13px;
}

.c30 {
    margin-left: 49px;
    margin-top: 41px;
}

.c31 {
    margin-left: -79px;
    margin-top: -71px;
}

.c32 {
    margin-left: -111px;
    margin-top: -15px;
}

.c33 {
    margin-left: 65px;
    margin-top: -43px;
}

.c34 {
    margin-left: 65px;
    margin-top: 13px;
}

.c35 {
    margin-left: -79px;
    margin-top: 41px;
}

.c36 {
    margin-left: 49px;
    margin-top: -71px;
}

.c37 {
    margin-left: 81px;
    margin-top: -15px;
}

.r1 {
    animation-name: pulse;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: .2s;
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .2s;
}

.r2 {
    animation-name: pulse;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: .4s;
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .4s;
}

.r3 {
    animation-name: pulse;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: .6s;
    -webkit-animation-name: pulse;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .6s;
}

.r1 > .hex-brick {
    animation-name: fade;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: .2s;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .2s;
}

.r2 > .hex-brick {
    animation-name: fade;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: .4s;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .4s;
}

.r3 > .hex-brick {
    animation-name: fade;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-delay: .6s;
    -webkit-animation-name: fade;
    -webkit-animation-duration: 2s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-delay: .6s;
}

@keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    50% {
        -webkit-transform: scale(0.01);
        transform: scale(0.01);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@keyframes fade {
    0% {
        background: #ABF8FF;
    }

    50% {
        background: #90BBBF;
    }

    100% {
        background: #ABF8FF;
    }
}

@-webkit-keyframes pulse {
    0% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }

    50% {
        -webkit-transform: scale(0.01);
        transform: scale(0.01);
    }

    100% {
        -webkit-transform: scale(1);
        transform: scale(1);
    }
}

@-webkit-keyframes fade {
    0% {
        background: #ABF8FF;
    }

    50% {
        background: #389CA6;
    }

    100% {
        background: #ABF8FF;
    }
}

.socket-text-container {
    display: flex;
    justify-content: center;
    margin-top: calc(100% + 2rem);
}

.socket-text-scanner span {
    color: transparent;
    font-size: 1.4rem;
    position: relative;
    overflow: hidden;
}

.socket-text-scanner span::before {
    content: "Loading";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    overflow: hidden;
    color: #ABF8FF;
    animation: load91371 3s linear infinite;
}

@keyframes load91371 {
    0%, 10%, 100% {
        width: 0;
    }

    10%, 20%, 30%, 40%, 50%, 60%, 70%, 80%, 90%, 100% {
        border-right-color: transparent;
    }

    60%, 80% {
        width: 100%;
    }
}

.form-control:disabled, .form-control[readonly] {
    background-color: var(--disabled-form-control) !important;
    opacity: 1;
}

.designer-background {
    background: rgba(0, 0, 0, 0.8) url('/images/grid_background.png') repeat;
    backdrop-filter: invert(0.30);
    background-blend-mode: var(--designer-background-blend-mode);
}

.table-responsive {
    min-height: initial !important;
    /*Works around a bug in bootstrap involving dropdowns in grids*/
    overflow: visible !important;
}

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

/***** Thumb Styles *****/
/***** Chrome, Safari, Opera, and Edge Chromium *****/
input[type="range"]::-webkit-slider-thumb {
    background-color: var(--tog-primary-color) !important;
}

/***** Firefox *****/
input[type="range"]::-moz-range-thumb {
    background-color: var(--tog-primary-color) !important;
}

.zxing-video-container > video {
    width: 100%;
}

.saaseforms-form-content {
    height: 100%;
    overflow-y: auto;
    overflow-x: clip;
}

.saaseforms-designer-drop-zone {
    border: 1px dashed var(--tog-primary-color);
    text-align: center;
    font-weight: bold;
    border-radius: 8px;
    margin-top: 2px;
    margin-bottom: 2px;
}

.saaseforms-designer-drop-border {
    border: 1px dashed var(--tog-primary-color);
    border-radius: 8px;
}

.drag-drop-inserting-line {
    border-top: 1px solid black;
    margin-top: 5px;
    margin-bottom: 5px;
}

.sticky-side-bar {
    position: -webkit-sticky !important;
    position: sticky !important;
    z-index: 1000;
    top: 40px;
}

.btn-group:not(.dropdown) {
    gap: 5px;
}

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

.btn-group:not(.dropdown) > .btn:not(:last-child):not(.dropdown-toggle), .btn-group:not(.dropdown) > .btn.dropdown-toggle-split:first-child, .btn-group > .btn-group:not(:last-child) > .btn {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

.btn-group > .btn:nth-child(n+3), .btn-group:not(.dropdown) > :not(.btn-check) + .btn, .btn-group > .btn-group:not(:first-child) > .btn {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

.dropdown-toggle:empty::after {
    margin-right: 0;
    float: right;
}


.b-file-picker > .input-group {
    flex-wrap: wrap !important;
}

.data-import-dragover {
    background: rgba(var(--bs-primary-rgb), 0.2);
}

.data-import-dragover-not-allowed {
    background: rgba(var(--bs-danger-rgb), 0.2);
}

.pointer-events-all {
    pointer-events: all;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}


.filter-group {
    position: relative;
    /* margin-left: 10px; */
    padding-left: 10px;
}

.filter-group:first-child {
    margin-left: 0px;
}

.filter-group-options {
    position: relative;
    background-color: #f9f9f9; /* Background color */
    border: 1px solid #ccc; /* Line color */
    padding: 5px;
    border-radius: 5px;
}

.filter-group-content {
    position: relative;
    margin-left: 20px; /* Indent for nested groups */
    width: 100%;
}

.expression-item-last,
.expression-item {
    position: relative;
    /* display: flex; */
    align-items: center;
}

.expression-item-last::before,
.expression-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #ccc; /* Line color */
}

/* Special case for the last child to remove the bottom part of the line */
.expression-item-last::before {
    /* Stop the line halfway */
    height: 20px;
}

.line {
    position: absolute;
    top: 20px;
    left: 0px;
    width: 30px;
    height: 1px;
    background-color: #ccc; /* Line color */
}

.expression-content {
    display: inline-block;
    padding-left: 10px;
    padding-top: 5px;
    margin-left: 10px; /* Slight space after the line */
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* Ensures it's above modal content */
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

.form-page-section {
    min-height: 75px;
}

.form-page-section.design-mode {
    border: 1px dashed var(--designer-control-border-color);
    border-radius: var(--bs-border-radius-xl);
    padding: 5px;
}

.saase-form-design-control {
    border: 1px solid transparent;
    border-radius: var(--bs-border-radius-xl) !important;
    padding: 5px;

    &:hover {
        border: 1px dashed var(--designer-control-border-color);
        border-radius: var(--bs-border-radius-xl) !important;
        padding: 5px;

        & > div > .saase-form-design-control-label > span > .saase-form-design-control-hidden-label {
            display: block;
        }
        
        & > .saase-form-design-control-label > span > .saase-form-design-control-hidden-label {
            display: block;
        }

        & > div > div > .saase-form-design-control-label > span > .saase-form-design-control-hidden-label {
            display: block;
        }

        & > div > span > span > .saase-form-design-control-hidden-label {
            display: block;
        }
    }

    &.droppable {
        border: 1px dashed var(--designer-control-border-color);
        border-radius: var(--bs-border-radius-xl) !important;
        padding: 5px;
    }

    &.selected {
        border: 1px dashed var(--designer-control-border-color);
        background-color: rgba(119, 198, 240, 0.2);
        padding: 5px;
    }
}

.saase-form-grid-error-expanded {
    border: 1px solid transparent;
    border-radius: var(--bs-border-radius-xl) !important;
    padding: 5px;
}

.saase-form-grid-error {
    border: 1px solid #c00d49;
    border-radius: var(--bs-border-radius-xl) !important;
    padding: 5px;
}

.saase-form-design-grid-expanded.selected {
    border: 1px solid var(--designer-control-border-color);
    background-color: rgba(119, 198, 240, 0.2);
    border-radius: var(--bs-border-radius-xl) !important;
    padding: 5px;
}

.saase-form-design-grid.selected {
    border: 1px dashed var(--designer-control-border-color);
    background-color: rgba(119, 198, 240, 0.2);
    border-radius: var(--bs-border-radius-xl) !important;
    padding: 5px;
}

.saase-form-grid-expanded {
    border: 1px solid black;
    border-radius: var(--bs-border-radius-xl) !important;
    padding: 5px;
}

.saase-form-grid {
    border: 1px solid transparent;
    border-radius: var(--bs-border-radius-xl) !important;
    padding: 5px;
}

.saase-form-design-control-hidden-label {
    display: none;
}

/*.saase-form-design-control:hover > .saase-form-design-control-hidden-label {*/
/*    display: block;*/
/*}*/

.saase-form-design-control-hidden-label.visible {
    display: block;
}

.saase-form-design-control-label {
    cursor: default;
}

.saase-form-design-control-label:hover {
    cursor: pointer;
}

.visible-on-hover {
    display: none;
}

.visible-on-hover:hover {
    display: block;
}

.cursor-pointer-on-hover {
    cursor: default;
}

.cursor-pointer-on-hover:hover {
    cursor: pointer;
}

.initial-background-color-on-hover:hover {
    background-color: initial !important;
}

.initial-background-color {
    background-color: initial !important;
}

.badge-close {
    margin-left: 2px;
}

.opacity-25 {
    opacity: 25%;
}

.dropdown-icon-left {
    margin-left: -1.25em;
    margin-right: .25em;
}