.modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modalContent {
    margin-top: 50px;
    background-color: var(--body-bg);
    padding: 20px;
    border: 1px solid var(--border);
    width: 80%;
    max-width: 90vw;
    border-radius: 5px;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.modalHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modalTitle {
    font-size: 1.2em;
    font-weight: 700;
}

.closeModal {
    font-size: 1.5em;
    scale: 1.2;
    cursor: pointer;
}

.modalBody {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modalBodyContent {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    scrollbar-width: thin; /* Scrollbar width (auto, thin, none) */
    scrollbar-color: var(--scrollbar-1) var(--scrollbar-2); /* Scrollbar and background color */

}
.modalBodyContent::-webkit-scrollbar {
    width: 8px; /* Scrollbar width */
    height: 8px; /* Horizontal scrollbar height (if applicable) */
}

.modalBodyContent::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-1); /* Scrollbar color */
    border-radius: 4px; /* Rounded corners */
}

.modalBodyContent::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollbar-1); /* Color on hover */
}

.modalBodyContent::-webkit-scrollbar-track {
    background-color: var(--scrollbar-1); /* Scrollbar track background */
    border-radius: 4px; /* Rounded corners */
}


.modalFooter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-shrink: 0;
}

.modalButton {
    padding: 10px 20px;
    border: 1px solid var(--border);
    cursor: pointer;
    border-radius: 10px;
    background-color: var(--body-bg);
    text-align: center;
    white-space: nowrap;
    min-width: 100px;
}
.modalButton:hover {
    color: var(--text);
    background-color: var(--hover);
}

.modal .headerGrid {
    width: 100% !important;
}

.modal .grid{
    width: 100% !important;
}

.modalNoticeContainer {
    position: fixed;
    top: 0;
    z-index: 10000;
    width: 100%;
    height: 100dvh;
    background-color: var(--body-bg);
    opacity: 0.9;
}

.modalNotice {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    background-color: var(--body-bg);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--border);
}

.modalNoticeHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--body-bg);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.modalNoticeTitle {
    font-size: 1.2em;
}

.modalNoticeClose {
    scale: 1.5;
    cursor: pointer;
}

.modalNoticeMessage {
    width: calc(100% - 20px);
    text-align: center;
    padding: 10px;
}

.modalNoticeFooter {
    display: flex;
    justify-content: space-around;
    padding: 10px;
    background-color: var(--body-bg);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.modalNoticeButton {
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: var(--body-bg);
}
.btn-cancel {
    background-color: var(--body-bg);
    color: #D00000;
    border: 1px solid #D00000;
}

.btn-cancel:hover {
    background-color: #FFE5E5;
    box-shadow: 0 4px 8px rgba(208, 0, 0, 0.15);
    color: #D00000;
}
.btn-save {
    background-color: var(--body-bg);
    color: #38b000;
    border: 1px solid #38b000;
}
.btn-save:hover {
    background-color: #eaffe5;
    box-shadow: 0 4px 8px rgba(94, 208, 0, 0.15);
    color: #38b000;
}