html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

/* Gyro wordmark in the XAF navigation bar.
   Two files instead of one because the wordmark is flat ink, not gradient: the
   off-white version disappears on a light bar and the dark one on a Night bar.
   The PNGs are the kit's official 1600px exports — the wordmark SVGs embed the
   full font as base64 and weigh ~1MB each. */
.header-logo {
    flex-shrink: 0;
    background-image: url('../brand/gyro-logo-on-light.png');
    background-position: left center;
    background-repeat: no-repeat;
    background-size: contain;
    width: 190px;
    height: 52px;
}

/* themeDetector.js REMOVES the attribute in light mode (it never writes
   "light"), so the base rule above is what serves light. The theme's own
   class is listed as a safety net: if the detector ever fails to run, the
   class is still the truth about which theme is painted. */
html[data-rame-theme="dark"] .header-logo,
.rame-dark .header-logo,
.dxbl-theme-fluent-mode-dark .header-logo {
    background-image: url('../brand/gyro-logo-on-dark.png');
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

/* ============================================
   DevExpress Popup Z-Index Override
   Ensure DxFilterBuilder dropdowns appear above custom modals
   ============================================ */
.dxbl-dropdown-dialog,
.dxbl-popup,
.dxbl-modal,
.dxbs-popup,
.dxbs-dropdown,
.dxbl-listbox-popup,
.dxbl-treeview-popup {
    z-index: 10000 !important;
}

/* ============================================
   DevExpress Scheduler Appointment Text Override
   Month view: the theme caps the subject at ~2 lines and fixes
   the appointment height, clipping long event names. Let the
   subject wrap and the appointment grow so full text is visible.
   ============================================ */
.dxbl-sc-month .dxbl-sc-apt {
    height: auto !important;
}

.dxbl-sc-month .dxbl-sc-apt .dxbl-apt-content {
    height: auto;
}

.dxbl-sc-month .dxbl-sc-apt-subject {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    overflow: visible;
    max-height: none;
}
