#ajax-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity 0.15s ease;
}
#ajax-loader.active {
    opacity: 1;
    pointer-events: auto;
}
.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #ccc;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
#progress-wrapper {
    margin-top: 15px;
    text-align: center;
    width: 150px;
}
#progress-wrapper .progress {
    position: relative;
    height: 20px;
}
#progress-wrapper .progress-text {
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    text-align: center;
    font-size:1.2em;
    transform: translateY(-50%);
}
#progress-wrapper .progress-details {
    margin-top: 15px;
}
#progress-wrapper .progress-details p {
    font-size: 85%;
    margin-bottom: 0;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.gap-1 {gap: 0.25rem}
.gap-2 {gap: 0.5rem}
.gap-3 {gap: 1rem}
.gap-4 {gap: 1.5rem}
.gap-5 {gap: 3rem}

.btn > .fas + span,
.btn > .far + span {
    margin-left: 5px;
}
.invalid-feedback { font-size: 90%!important}
.badge.badge-xl {font-size: 80%!important}
.badge.badge-xxl {font-size: 85%!important}
.badge.badge-xxxl {font-size: 90%!important}
.card-header.d-flex::after {
    content: unset;
}
/*table.dataTable tbody td.select-checkbox::before,*/
/*table.dataTable tbody th.select-checkbox::before{*/
/*    top: 50%;*/
/*    margin-top: -7px !important;*/
/*}*/
/*table.dataTable tbody td.select-checkbox::after,*/
/*table.dataTable tbody th.select-checkbox::after {*/
/*    top: 50%;*/
/*    margin-top: -22px !important;*/
/*}*/
/*.dataTables_wrapper .dataTables_length label {margin-bottom:0!important;}*/
.row.row-striped:nth-child(even) {
    background-color: rgba(242, 242, 247, 1) !important;
}

/*
    Web Attributes
 */
.web-attributes-container {
    display: grid;
    grid-template-columns: 1fr 120px 1fr; /* left, control, right */
    gap: 20px;
    align-items: stretch;
}

.web-attributes-container .list-container {
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px;
    background-color: #fafafa;
    display: flex;
    flex-direction: column;
    height: 350px;
}

.web-attributes-container .list-header {
    flex: 0 0 auto;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    background-color: #f8f9fa;
    padding: 10px;
}

.web-attributes-container .list-scroll {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 10px;
}

.web-attributes-container .list-item {
    cursor: pointer;
    border-bottom: 1px solid #ddd;
    padding: 6px 0;
}

.web-attributes-container .list-item:last-child {
    border-bottom: none;
}

.web-attributes-container .list-item.selected {
    background-color: #bee3f8!important;
}

.web-attributes-container .controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}


.dt-container #autoRefreshContainer {
    position: relative;
    top: 1px;
}
.dt-container #autoRefreshContainer label {
    font-weight: normal;
}
.dt-container #autoRefreshContainer .progress-bar {
    position: absolute;
    bottom: 5px;
    left: 0;
    height: 2px;
    background-color: #007bff;
    width: 0;
    transition: width linear;
}

.dropzone {
    border: 0!important;
    outline: 2px dashed #0087F7;
    outline-offset: -10px;
    background-color: rgba(33, 150, 243, 0.03)!important;
    -webkit-transition: outline-offset .15s ease-in-out, background-color .15s linear;
    transition: outline-offset .15s ease-in-out, background-color .15s linear;
}
.dropzone.dz-drag-hover {
    background-color: rgba(33, 150, 243, 0.09)!important;;
    outline-offset: -20px;
}
.dropzone .dz-message
{
    margin: 3em 0!important;
    font-size: 18px;
    letter-spacing: 1px;
    color: #222222;
}

.dropzone .dz-preview.dz-image-preview {background-color: transparent!important;}
.dropzone .dz-preview .dz-error-message {top:150px!important;}
.dropzone .dz-preview.dz-complete .dz-progress
{
    display: none!important;
}
.dropzone.dz-started-workaround .dz-message {
    display: none;
}
.basicLightbox {z-index: 10000!important;}
.basicLightbox .preview-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.basicLightbox .preview-image-wrapper img {
    max-width: 95vw;
    max-height: 95vh;
}
.basicLightbox .preview-image-wrapper a.btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    transition: background 0.2s ease;
    opacity: 0.5;
}
.basicLightbox .preview-image-wrapper:hover a.btn {
    opacity: 1;
}
