#waves-hours-approval-table.disabled {
    pointer-events: none !important;
    opacity: 0.5 !important;
    filter: grayscale(80%) !important;
}

/* Modal backdrop */
#customModal.modal {
    display: none !important;  /* force hide */
    position: fixed !important;
    z-index: 9999 !important;
    inset: 0 !important;
    width: auto !important;
    height: auto !important;
    min-width: 100% !important;
    min-height: 100dvh !important;
    box-sizing: border-box !important;
    padding: 24px !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
}
#customModal.modal.show {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Modal content box */
#customModal .modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    width: min(80vw, 720px);
    max-width: calc(100vw - 48px);
    max-height: 85dvh;
    overflow-y: auto;
    box-sizing: border-box;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    position: relative;
    z-index: 10000;
}

/* Modal message styling */
#customModal pre#modalMessage {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Hide buttons by default */
#customModal button {
    display: none;
    padding: 8px 16px;
    margin: 0 5px;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s;
}

/* Show buttons only when modal is visible */
#customModal.show button {
    display: inline-block;
}

#customModal button:hover {
    background-color: #0073aa;
    color: white;
}
