p {
    margin: 0px !important;
    padding: 0px !important;
}

.textBoxR textarea {
    max-width: 18em !important;
}

.admin-interface .related-widget-wrapper {
    white-space: normal;
}

.admin-interface .aligned p.file-upload {
    display: contents !important;
}

form .aligned ul {
    margin-left: 0px !important;
    padding-left: 0px !important;
}

.textBoxR label {
    min-width: 18em !important;
    text-overflow: ellipsis;
    cursor: pointer;
    word-break: break-word;
    overflow: hidden;
    white-space: nowrap;
}

.textBoxR label:hover {
    overflow: visible;
    white-space: normal;
    height: auto;
}

.form-row label {
    float: initial;
}

form .aligned p.help, form .aligned div.help {
    margin-left: 0px;
    padding-left: 0px;
}


fieldset .textBoxR {
    min-width: 18em;
    max-width: 18em;
}

.form-row .space {
    min-width: 6em !important;
    max-width: 6em !important;
}

.form-row .textBoxSM {
    min-width: 8em !important;
    max-width: 8em !important;
}

.form-row .textBoxSM input {
    min-width: 8em !important;
    max-width: 8em !important;
}

.aligned .form-row input:not([type='checkbox']) {
    min-width: 18em;
    max-width: 18em;
}

.vTextField, .vUUIDField, .vIntegerField {
    min-width: 18em;
    max-width: 18em;
    min-height: 20px;
    margin-top: 4px !important;
}

.vDateField {
    min-width: 18em;
    max-width: 18em;
    min-height: 20px;
    margin-top: 4px !important;
}

.custom_input {
    min-width: 18em !important;
    max-width: 18em !important;
}

.custom_input + .select2-container--default {
    min-width: 18em !important;
    max-width: 18em !important;
    margin-top: 4px;
}

.form-row input[type='number'] {
    min-width: 18em;
    max-width: 18em;
    min-height: 20px;
    margin-top: 4px;
}
.form-row input[type='text'] {
    min-width: 18em;
    max-width: 18em;
    min-height: 20px;
    margin-top: 4px;
}

input[type='date'] {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px 6px;
    margin-top: 4px;
    color: var(--body-fg);
    background-color: var(--body-bg);
}


.has-hidden-field {
    display: none !important;
}

.textBoxR select {
    min-width: 18em;
    max-width: 18em;
    height: 100% !important;
    min-height: 32px;
    margin-top: 4px !important;
}

.textBoxR .select2-selection--single {
    height: 100% !important;
    min-height: 32px;
}

.textBoxR .select2-selection__rendered {
    word-wrap: break-word !important;
    text-overflow: inherit !important;
    white-space: normal !important;
}

.textBoxR .select2-container {
    min-width: 18em;
    max-width: 18em;
}

.textBoxR .select2-container--default {
    width: auto !important;
    min-width: 18em;
    max-width: 18em;
    margin-top: 4px;
}

.textBoxR .select2-container--default .select2-results__option {
    word-wrap: break-word !important;
    text-overflow: inherit !important;
    white-space: normal !important;
}

.select2-container--default .select2-selection__choice {
    float: none !important;
}

#changelist select {
    min-width: 15em !important;
    max-width: 15em !important;
    height: 100% !important;
    min-height: 32px;
}

#changelist .select2-container {
    min-width: 15em !important;
    max-width: 15em !important;
}

#changelist .select2-container--default {
    width: auto !important;
    min-width: 15em !important;
    max-width: 15em !important;
}

.loader {
    z-index: 999;
    position: fixed;
    width: 105%;
    height: 105%;
    text-align: center;
    text-wrap: wrap;
    color: blue;
    background-color: #b3b3b359;
}

.loader img {
    z-index: 999;
    position: fixed;
    width: 100px;
    height: 100px;
    top: 42%;
    left: 50%;
    padding: 20px;
    transform: translate(-50%, 0);
}

.loader-text {
    z-index: 999;
    position: fixed;
    width: 40%;
    height: 105%;
    text-align: center;
    text-wrap: wrap;
    top: 50%;
    left: 50%;
    padding: 20px;
    transform: translate(-50%, 0);
    color: #66b5e7;
    font-size: 20px;
}

fieldset .textBoxR {
    float: left;
    padding-bottom: 18px !important;
    margin-right: 20px;
    min-height: 60px;
    max-height: 60px;
}

fieldset .textBoxSM {
    float: left;
    padding-bottom: 12px !important;
    margin-right: 20px;
    min-height: 60px;
    max-height: 60px;
}

/* Custom styles for readonly fields */
input[readonly], textarea[readonly], select[readonly] {
    background-color: #e9ecef;
    color: #495057;
    opacity: 1; /* Ensures the text is visible */
    cursor: not-allowed; /* Changes cursor to indicate the field is not editable */
}


/* Reports Filter */

.button__report {
    padding: 7px 16px !important;
    margin-top: 20px;
}

.button__sm {
    padding: 3px 5px !important;
    font-size: 12px;
    display: inline-block; /* Ensure buttons are inline */
    margin: 4px; /* Add spacing between buttons */
    text-decoration: none;
    border-radius: 5px;
}

.admindatefilter .vDateField {
    max-width: 10em !important;
    min-width: 10em !important;
}


/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 60px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
}

/* Close Button */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}


/* Center the spinner inside the modal content */
#loading-spinner {
    display: none; /* Hide spinner by default */
    margin: 20px auto;
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3; /* Light grey background */
    border-top: 5px solid #3498db; /* Blue color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Keyframes for the spinning animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.admin-interface .related-widget-wrapper {
    display: flex !important;
    flex-wrap: wrap !important;
}

.admin-interface .related-widget-wrapper .related-widget-wrapper-link img{
    width: 14px !important;
    height: 14px !important;
}


#login-form input{
    width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
}