/* START - Full-screen loading overlay */
#loading-screen {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

#loading-text {
    color: #fff;
    font-size: 18px;
    margin-top: 10px;
    text-align: center;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.loading {
    overflow: hidden;
    pointer-events: none;
}

body.loading #loading-screen {
    display: flex;
}
/* END - Full-screen loading overlay */

.span-error {
    color: red;
    display: none;
    margin-top: -20px;
}

.span-error-display {
    color: red;
    margin-bottom: 10px;
}

.select2-container {
    padding-bottom: 20px;
}

.select2-results__options {
    max-height: 200px;
}

.disabled-button {
    background-color: grey !important;
    color: white;
    border: none;
    cursor: not-allowed;
}

.table-container {
    max-height: 400px;
    overflow-y: auto;
}

.table {
    width: 100%;
    table-layout: fixed;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border-radius: 10px;
    position: relative;
}

.icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.disabled-button {
    background-color: grey !important;
    color: white;
    border: none;
    cursor: not-allowed;
}

.accordion {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: small;
}

.accordion-item {
    border-bottom: 1px solid #ccc;
}

.accordion-header {
    background: #f4f4f4;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
}

.accordion-content {
    display: none;
    padding: 15px;
    background: #fff;
}

.active {
    display: block;
}