/* Shared SSR management dialogs and notifications */
.bmf-post-modal {
    box-sizing:border-box;
    width:min(840px, calc(100vw - 36px));
    max-width:840px;
    max-height:min(90dvh, 940px);
    margin:auto;
    padding:0;
    border:1px solid #eadce4;
    border-radius:20px;
    background:#fff;
    color:#46333f;
    box-shadow:0 28px 80px rgba(48,29,40,.22);
    overflow:auto;
}
.bmf-post-modal::backdrop { background:rgba(30,19,26,.46); backdrop-filter:blur(3px); }
.bmf-post-modal__header {
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:24px;
    padding:22px 26px;
    border-bottom:1px solid #eee3e9;
    position:sticky;top:0;z-index:2;
    background:#fff;
}
.bmf-post-modal__header h2{margin:0;color:#372730;font-size:23px;line-height:1.2;}
.bmf-post-modal__header p{margin:7px 0 0;color:#735968;font-size:13px;}
.bmf-post-modal__body{padding:24px 26px 28px;}
.bmf-post-modal__body .bmf-management-form{margin:0;}
.bmf-post-modal__close{
    appearance:none;display:grid;place-items:center;
    flex:0 0 36px;width:36px;height:36px;border-radius:10px;
    border:1px solid #ebdfe5;background:#fff;color:#795b6b;cursor:pointer;
}
.bmf-post-modal__close:hover{background:#fff4f8;color:#a34772;}
.bmf-modal-secondary{border:1px solid #e9dce3;border-radius:10px;padding:10px 18px;background:#fff;color:#624d59;cursor:pointer;font-size:14px;}
.bmf-management-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:0 0 20px;}
.bmf-management-toolbar h2{margin:0;font-size:21px;color:#35242f;}
.bmf-management-grid{min-width:0;width:100%;}
.bmf-management-grid .bmf-data-table-host {min-width:0;}
.bmf-row-action{font-size:13px;color:#aa4c76 !important;text-decoration:none;font-weight:700;}
.bmf-row-action:hover{text-decoration:underline;}
.bmf-management-grid .bmf-table-status{display:inline-flex;padding:4px 10px;border-radius:50px;font-size:12px;font-weight:700;white-space:nowrap;}
.bmf-management-grid .bmf-table-status--active{background:#edf9f2;color:#276348;}
.bmf-management-grid .bmf-table-status--inactive{background:#fbf0f5;color:#7d5366;}
.bmf-management-grid > .bmf-data-table-host {margin-top:0;}
.bmf-toast-stack{position:fixed;right:20px;bottom:20px;z-index:99999;display:flex;flex-direction:column;gap:10px;max-width:min(420px,calc(100vw - 32px));pointer-events:none;}
.bmf-global-toast{display:flex;align-items:flex-start;gap:12px;box-sizing:border-box;width:100%;padding:15px 16px;background:#fff;border:1px solid #e5d9e1;border-left:4px solid #b8587d;border-radius:12px;box-shadow:0 14px 34px rgba(51,33,43,.15);color:#4a3440;font-size:14px;line-height:1.45;pointer-events:auto;}
.bmf-global-toast--error{border-left-color:#bf4a52;}
.bmf-global-toast__text{flex:1;min-width:0;overflow-wrap:anywhere;}
.bmf-global-toast__close{padding:0;border:none;background:transparent;color:#987589;cursor:pointer;font-size:20px;line-height:1;}
@media(max-width:720px){.bmf-post-modal__header{padding:18px}.bmf-post-modal__body{padding:18px}.bmf-toast-stack{right:16px;bottom:16px;}}

/* Icon action for booking details in management grids. */
.bmf-grid-icon-action {
    display:inline-flex;
    width:34px;height:34px;
    align-items:center;justify-content:center;
    vertical-align:middle;
    border:1px solid currentColor;
    border-radius:9px;
    color:#ae517d;
    background:transparent;
    text-decoration:none;
    margin-right:7px;
}
.bmf-grid-icon-action:hover,.bmf-grid-icon-action:focus-visible {
    background:rgba(184,88,125,.11);
    color:#b8587d;
    text-decoration:none;
}
.bmf-grid-icon-action:focus-visible {outline:2px solid currentColor;outline-offset:2px;}
.bmf-grid-icon-action svg {display:block;flex:none;}

/* A saving modal is temporarily non-dismissible; the global loading layer handles interaction lock. */
.bmf-post-modal[data-bmf-busy="true"] .bmf-post-modal__close,
.bmf-post-modal[data-bmf-busy="true"] [data-bmf-modal-close] { opacity:.45; pointer-events:none; }
