/* App-wide rules for MudBlazor components. Scoped (.razor.css) styles cannot reach inside a
   MudBlazor component without ::deep and a wrapper, so the few rules every module needs live here. */

/* A multiline field wrapped in <div class="resizable-text"> can be dragged taller by hand.
   MudBlazor sets resize:none on every textarea, so this selector has to beat it. */
.resizable-text textarea.mud-input-root {
    resize: vertical;
    overflow-y: auto !important;
}

/* Inside a dialog the field stops growing before the dialog outgrows the window; after that
   the text scrolls inside the field, never the dialog. */
.mud-dialog .resizable-text textarea.mud-input-root {
    max-height: 45vh;
}
