/* FoodServe Admin document and typography foundations.

   Keep this file limited to document-wide defaults and unclassed HTML elements.
   Reusable UI patterns belong in components.css, shell geometry belongs in
   layout.css, and one-purpose helpers belong in utilities.css. */

/* Establish the default Admin type, canvas and text colour once. Components inherit
   these values unless they have a meaningful semantic reason to override them. */
html,
body {
    font: var(--fw-normal) var(--fs-base)/1.45 var(--ff-body);
    background: var(--fs-color-canvas);
    color: var(--fs-color-text);
    overscroll-behavior-y: contain;
}

body {
    /* The application shell manages internal layout and scrolling from this height. */
    margin: 0;
    height: 100vh;
}

/* The .fs-h* aliases let non-heading elements opt into the same type hierarchy
   without duplicating font sizes and weights. */
h1,
.fs-h1 {
    margin: .25rem 0 .5rem;
    font: var(--fw-bold) var(--fs-h1)/1.2 var(--ff-brand);
}

h2,
.fs-h2 {
    margin: .4rem 0 .6rem;
    font: var(--fw-bold) var(--fs-h2)/1.25 var(--ff-brand);
}

h3,
.fs-h3 {
    margin: .5rem 0 .6rem;
    font: var(--fw-bold) var(--fs-h3)/1.3 var(--ff-brand);
}

h4,
h5,
h6,
.font-bold,
.pro-sidebar-logo > h5 {
    font-family: var(--ff-brand);
    font-weight: var(--fw-bold);
}

p {
    margin: .2rem 0 .9rem;
    font: var(--fw-normal) var(--fs-base)/1.45 var(--ff-body);
}

a {
    text-decoration: none;
}

/* FoodServe displays its own connection/error experience. Suppress the framework
   overlays so they cannot cover the Admin UI during reconnect state changes. */
.blazor-error-ui,
#components-reconnect-modal,
.components-reconnect-modal,
#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
