/* mct-modal.css - de-ACT ModalPopupExtender replacement.
   Positioning only: the dim/overlay look comes from the page's existing
   BackgroundCssClass (e.g. .modalBackground), which mct-modal.js adds to the
   backdrop element alongside .mct-modal-backdrop. */

.mct-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
}

/* Fallback dim if a modal had no BackgroundCssClass (most specify one). */
.mct-modal-backdrop:not([class*="odal"]) {
    background: rgba(0, 0, 0, 0.5);
}

.mct-modal-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1050;
    max-height: 92vh;
    overflow: auto;
    /* Card styling: the legacy per-page popup classes (e.g. .ReportmodalPopup)
       lost their CSS in the de-ACT migration, so the panel rendered transparent
       with no border. Provide a sensible default card here so every de-ACT modal
       looks correct; a page that defines its own popup-class background still
       wins by equal-specificity source order. */
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    min-width: 320px;
    max-width: 90vw;
}
