/* MOSCAP Core asset — FluentSnippets "PDF EXPORT MODAL (CSS)" (122-pdf-export-modal-css.php, run_at=wp_head)
   снипетээс 2026-11-22-нд нүүлгэсэн; includes/assets.php ачаална. Энэ толгойноос
   бусад код өөрчлөгдөөгүй.
*/

/* =============================================
   MOSCAP — Shared PDF export column-picker modal
   (.mape-modal*)

   2026-08-29: found via the Phase 2 cross-page usage audit — this
   modal's styling only ever lived inside artists-list's own "page-
   specific" CSS snippet, but the modal itself is used on BOTH
   /artists-list/ and /works-catalogue/ (each page builds its own copy
   of the .mape-modal markup for its own PDF export flow). Same root
   cause as the .moscap-artist-btn regression: every @type:css snippet
   loads site-wide regardless of which page "owns" the file, so moving
   it into just one page's block silently broke the other page's modal.
   Restoring it here as an actual shared snippet.
============================================= */
.mape-modal {
    position: fixed; inset: 0; z-index: 99999;
    display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box;
}
.mape-modal__overlay { position: absolute; inset: 0; background: rgba(6,16,30,0.75); }
.mape-modal__box {
    position: relative; background: var(--madm-surface, #fff); border-radius: 12px; width: 100%; max-width: 480px;
    max-height: 80vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.mape-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--madm-border-light, #f3f4f6);
    position: sticky; top: 0; background: var(--madm-surface, #fff); z-index: 1;
}
.mape-modal__header h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--madm-text, #111827); }
.mape-modal__close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--madm-text-faint, #9ca3af); }
.mape-modal__body { padding: 18px 20px; }
.mape-modal__footer { padding: 14px 20px; border-top: 1px solid var(--madm-border-light, #f3f4f6); text-align: right; }
.mape-columns-list {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
}
.mape-col-check {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; color: var(--madm-text-secondary, #374151); cursor: pointer;
}
.mape-mini-btn {
    background: var(--madm-surface, #fff); color: #006EB4; border: 1.5px solid var(--madm-border-strong, #c8dff2); border-radius: 6px;
    padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.mape-mini-btn:hover { background: var(--madm-hover-bg, #eff6ff); }
.mape-export-btn {
    background: #006EB4; color: #fff; border: none; border-radius: 6px;
    padding: 9px 20px; font-size: 13px; font-weight: 700; cursor: pointer;
}
.mape-export-btn:hover { background: #005a94; }
@media (max-width: 480px) {
    .mape-columns-list { grid-template-columns: 1fr; }
}
