/*
* Setting Scrollbar Defaults
******************************************************************************/
::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-thumb {
    height: .25rem;
    border: 6px solid rgba(0, 0, 0, 0);
    border-radius: 10rem;
    background-clip: padding-box;
    -webkit-border-radius: 7px;
    background-color: rgba(93, 89, 108, .2);
}

#pageBodyContent {
    position: absolute;
    top: 0px;
    bottom: 0px;
    right: 0px;
    left: 0px;
    overflow: scroll;
}

/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.light-style .menu .app-brand.demo {
    height: 80px;
    z-index: 3;
}

.app-brand-logo.demo {
  -ms-flex-align: center;
  align-items: center;
  -ms-flex-pack: center;
  justify-content: center;
  display: -ms-flexbox;
  display: flex;
  width: 34px;
  height: 24px;
}

.app-brand-logo.demo svg {
  width: 35px;
  height: 24px;
}

.app-brand-text.demo {
  font-size: 1.375rem;
}

/* ! For .layout-navbar-fixed added fix padding top tpo .layout-page */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 78px !important;
}
/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/*
* Input Container
******************************************************************************/

.element-container {
    position: relative;
}

.icon-container {
    position: absolute;
    right: 10px;
    top: calc(50% - 10px);
}

form .form-control[readonly],
form .form-select[readonly],
div:has(> .flatpickr-input[readonly]) > .input,
form .element-container [readonly] {
    pointer-events: none;
}

form .form-control[readonly],
form .form-select[readonly],
div:has(> .flatpickr-input[readonly]) > .input,
form .element-container [readonly]:not([type="checkbox"]) {
    background-color: #eee;
}

form .select2-hidden-accessible[readonly] + .select2-container--default .select2-selection--single {
    background-color: #eee;
    pointer-events: none;
}

.element-container .form-control.loadable:not(.loading) ~ .icon-container,
.element-container .form-select.loadable:not(.loading) ~ .icon-container,
.element-container .form-select.loading ~ .select2-container--default .select2-selection--single .select2-selection__arrow b,
form input[type="checkbox"].fv-plugins-icon-input + .fv-plugins-icon {
    display: none;
}

.element-container:has(input[type="checkbox"][readonly]) ~ .form-check-label {
    pointer-events: none;
}

/*
* flatpickr adjust Form Validation
******************************************************************************/

div:has(> .flatpickr-input.is-valid) > .input {
    border-color: rgb(var(--bs-success-rgb));
}

div:has(> .flatpickr-input.is-invalid) > .input {
    border-color: rgb(var(--bs-danger-rgb));
}

/*
* select2 adjust Form Validation
******************************************************************************/

form select.is-valid~.select2 .select2-selection, form select.selectpicker.is-valid~.btn {
    border-color: #28c76f !important;
}

/*
* Select2 adjust readonly
******************************************************************************/

select.select2-hidden-accessible[readonly]~.select2 .select2-selection, select.select2[readonly]~.select2 .select2-selection--single {
    background-color: #eee;
    pointer-events: none;
}

/*
* Menu link hovers
******************************************************************************/
.menu-link:hover {
    background-color: #f8f8f8;
}

.heading-1 {
    font-size: calc(2.75rem + 0.125vw);
}

.heading-2 {
    font-size: calc(2.625rem + 0.125vw);
}

.heading-3 {
    font-size: calc(2.5rem + 0.125vw);
}

.heading-4 {
    font-size: calc(2.375rem + 0.125vw);
}

.heading-5 {
    font-size: calc(2.25rem + 0.125vw);
}

.heading-6 {
    font-size: calc(2.125rem + 0.125vw);
}

.heading-7 {
    font-size: calc(2.0rem + 0.125vw);
}

.heading-8 {
    font-size: calc(1.875rem + 0.125vw);
}

.heading-9 {
    font-size: calc(1.75rem + 0.125vw);
}

.heading-10 {
    font-size: calc(1.625rem + 0.125vw);
}

.heading-11 {
    font-size: calc(1.5rem + 0.125vw);
}

.heading-12 {
    font-size: calc(1.375rem + 0.125vw);
}

.heading-13 {
    font-size: calc(1.25rem + 0.125vw);
}

.heading-14 {
    font-size: calc(1.125rem + 0.125vw);
}

.heading-15 {
    font-size: calc(1.0rem + 0.125vw);
}

.heading-16 {
    font-size: calc(0.875rem + 0.125vw);
}

.heading-17 {
    font-size: calc(0.75rem + 0.125vw);
}

.heading-18 {
    font-size: calc(0.625rem + 0.125vw);
}

.heading-19 {
    font-size: calc(0.5rem + 0.125vw);
}

.heading-20 {
    font-size: calc(0.375rem + 0.125vw);
}

.heading-21 {
    font-size: calc(0.25rem + 0.125vw);
}

.heading-22 {
    font-size: calc(0.125rem + 0.125vw);
}

.heading-23 {
    font-size: calc(0.0rem + 0.125vw);
}

/*
* Adjust Pickr
******************************************************************************/
.pickr .pcr-button {
    border: 1px solid var(--bs-light);
}

/*
* Adjust Sweetalert2 Scanner Modal
******************************************************************************/
.swal2-scanner-modal .swal2-html-container {
    overflow: hidden;
}
.swal2-without-overflow-modal .swal2-html-container {
    overflow: hidden;
}

/*
* Dropzone Previewable
******************************************************************************/
.dz-preview.dz-complete.dz-previewable .dz-details .dz-thumbnail {
    cursor: pointer;
    transition: all .2s ease-in-out;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fcfcfc;
    z-index: 1;
}

.dz-preview.dz-complete.dz-previewable .dz-details .dz-thumbnail:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(0, 0, 0, .2);
}

.dz-preview.dz-complete.dz-previewable .dz-details .dz-download-click {
    color: #a5a3ae;
    margin: 0 auto;
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%) scale(1);
    transform: translateY(-50%) scale(1);
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity .2s ease-in-out;
}

.dz-preview.dz-complete:not(.dz-previewable) .dz-details .dz-download-click {
    display: none;
}

.dz-preview.dz-complete.dz-previewable .dz-details .dz-thumbnail:has(img[src]) .dz-download-click {
    top: -40%;
}

.dz-preview.dz-complete.dz-previewable .dz-details .dz-thumbnail:hover .dz-download-click {
    visibility: visible;
    opacity: 1;
}
.dz-preview.dz-complete.dz-previewable .dz-details .dz-thumbnail .dz-nopreview,
.dz-preview.dz-complete.dz-previewable .dz-details .dz-thumbnail img[src] {
    margin-top: -0.6rem;
    transition: all .2s ease-in-out;
    visibility: visible;
    opacity: 1;
}

.dz-preview.dz-complete.dz-previewable .dz-details .dz-thumbnail:hover .dz-nopreview,
.dz-preview.dz-complete.dz-previewable .dz-details .dz-thumbnail:hover img[src] {
    visibility: hidden;
    opacity: 0;
}
