﻿
.mud-dialog-content {
    min-height: 0;
    overflow-y: scroll;
}

div {
    min-height: 0;
}

.mud-dialog-fullscreen .outline-none > .mud-focus-trap-child-container {
    height: 100%;
    display: flex;
    flex-flow: column;
}


.mud-dialog-fullscreen .outline-none {
    height: 100%;
}

/* Quill formula tooltip - prevent clipping by editor container */
.ql-container {
    overflow: visible !important;
}
.ql-editor {
    overflow-y: auto;
}
.ql-tooltip {
    z-index: 1000;
    left: 0 !important;
}
/* Bidi isolation: keep KaTeX formulas LTR inside RTL text */
.ql-formula, .katex-display, .katex {
    direction: ltr;
    unicode-bidi: isolate;
}

/* ---------------------------------------------------------------------------
   سلسول brand faces.

   MudBlazor defaults to Roboto, which has no Arabic coverage, so admin screens
   were falling back to whatever the OS provided. Overriding at the root lets
   every MudBlazor component inherit without a custom MudTheme — the workbench
   gets a proper brand pass in M2; this is the minimum that stops it rendering
   in a different product's typography.
   --------------------------------------------------------------------------- */
html, body,
.mud-typography,
.mud-input, .mud-input-label,
button, input, select, textarea {
    font-family: "IBM Plex Sans Arabic", system-ui, sans-serif;
}

h1, h2, h3, .mud-typography-h1, .mud-typography-h2, .mud-typography-h3 {
    font-family: "Marhey", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
