.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

a {
    text-decoration: none;
}

.opacity-50 {
    opacity: 0.5;
}

[role="button"] {
    cursor: pointer;
}

.loading {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.spinner-border-lg {
    width: 5rem;
    height: 5rem;
}

.centered-div {
    text-align: center;
}

select[multiple] {
    width: 100%;
}

@-webkit-keyframes spinner-border {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
@keyframes spinner-border {
    to {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}
.spinner-border {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    -webkit-animation: 0.75s linear infinite spinner-border;
    animation: 0.75s linear infinite spinner-border;
}
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}
@-webkit-keyframes spinner-grow {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    50% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}
@keyframes spinner-grow {
    0% {
        -webkit-transform: scale(0);
        transform: scale(0);
    }
    50% {
        opacity: 1;
        -webkit-transform: none;
        transform: none;
    }
}
.spinner-grow {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    vertical-align: -0.125em;
    background-color: currentColor;
    border-radius: 50%;
    opacity: 0;
    -webkit-animation: 0.75s linear infinite spinner-grow;
    animation: 0.75s linear infinite spinner-grow;
}
.spinner-grow-sm {
    width: 1rem;
    height: 1rem;
}
@media (prefers-reduced-motion: reduce) {
    .spinner-border,
    .spinner-grow {
        -webkit-animation-duration: 1.5s;
        animation-duration: 1.5s;
    }
}

#splash-screen {
    inset: 0;
    z-index: 2000;
    line-height: 1;
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    color: var(--sd-dark-500, #192334);
    background-color: var(--sd-white, #fff);
    opacity: 1;
    visibility: visible;
    transition: visibility 0s 500ms, opacity 500ms;
}
#splash-screen .spinner {
    display: none;
    font-size: 14px;
    text-align: center;
}
#splash-screen p {
    margin: 12px 0 0;
}
#splash-screen .logo {
    font-size: 16px;
    line-height: 24px;
    text-align: center;
    animation: splash-screen-pulse 3s infinite ease-in-out;
}

@media (max-width: 600px) {
    #splash-screen .spinner {
        display: block;
    }
    #splash-screen .logo {
        display: none;
    }
    .offcanvas {
        width: 100% !important;
    }
}

#splash-screen[aria-busy="false"] {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.float-right {
    float: right;
}

hr {
    opacity: 0.1;
}

.no-shadow {
    box-shadow: none !important;
}

.form-control[readonly] {
    background: #eee;
}

[type="file"] {
    font-size: 13px;
    padding: 0.375rem 0rem;
    padding-left: 0.5rem;
}
::file-selector-button {
    font-size: 0.9rem;
}

.table-no-items td {
    text-align: center;
}

h3 {
    font-size: 1.1rem;
}

span.badge {
    font-weight: 600;
}

tr.tr-default td {
    text-align: center;
}

td {
    vertical-align: middle !important;
}

.select2-selection__choice {
    background: var(--bs-primary) !important;
}
.select2-selection.select2-selection--single {
    padding-top: 0;
}

.sr-only {
    display: none;
}

.btn {
    white-space: nowrap;
}
.btn-icon {
    border: none !important;
    width: 38px;
    opacity: 0.7;
}
.btn-icon:hover,
.btn-icon:focus-visible {
    opacity: 1;
}

.btn-icon:disabled {
    opacity: 0.5;
}
@media (max-width: 600px) {
    .btn-icon {
        width: 2rem !important;
    }
}

td .btn-icon {
    padding: 0.3rem;
    width: 2rem !important;
    height: 2rem !important;
}

.page-size-container {
    width: 100%;
    align-items: center;
    display: flex;
    justify-content: end;
    margin-right: 1rem;
}
select.page-size {
    width: 100px;
}

.drop-container {
    padding-bottom: 10px;
}

.drop-container .drop-zone {
    border: 2px dashed #ccc;
    height: 70px;
    display: flex;
    justify-content: center;
}

.drop-container .file-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 5px;
}

.drop-container .file-item {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100px;
    text-align: center;
    font-family: Arial, sans-serif;
}

.drop-container .image-container {
    width: 70px;
    height: 70px;
    overflow: hidden;
    position: relative;
    border-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
}

.drop-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.drop-container .file-name {
    font-size: 10px;
    font-weight: bold;
    color: #333;
    margin-top: 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: clip;
    text-align: center;
    max-width: 100px;
}
.drop-container .btn.select-file {
    width: auto;
    margin: auto;
}

.uploaded-container {
    padding: 10px 0;
    margin: 10px 0;
}
.uploaded-container div {
    padding-left: 0 !important;
    gap: 5px;
}

.crop-wrapper div,
.drop-container div {
    padding-left: 0 !important;
}

.drop-container .file-list img {
    object-fit: cover;
    margin-right: 6px;
    cursor: pointer;
    border: 2px solid transparent;
}

.drop-container .file-list img.active {
    border-color: #007bff;
}

.drop-container .select-file,
.crop-container .btn {
    height: auto !important;
}

.crop-container {
    width: 100%;
    max-width: 500px;
    max-height: 500px;
    margin: 0 auto;
    margin-bottom: 5rem !important;
    padding: 1rem 0;
}

.crop-container .cropper-btns {
    text-align: center;
    padding: 0.5rem 0;
}

.thumb {
    margin-top: 0.7rem;
    align-items: center;
    display: flex;
    gap: 1rem;
}
.thumb img {
    max-width: 70px;
    max-height: 70px;
    border-radius: 7px;
}

.thumb .file-name {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.input-error {
    border: 1px solid red;
}
