/* ScadaBridge Central UI – global styles. Loaded from Host App.razor as
   `_content/ZB.MOM.WW.ScadaBridge.CentralUI/css/site.css`.
   The shared ZB.MOM.WW.Theme kit (linked via <ThemeHead/>) owns the tokens and
   the side-rail shell; this sheet carries only app-specific rules the kit does
   not provide. */

#reconnect-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background-color: rgba(0, 0, 0, 0.5);
}

#reconnect-modal .modal-content {
    max-width: 400px;
    padding: 2rem;
    text-align: center;
    background: var(--bs-white);
    border-radius: 0.5rem;
}

/* Script editor modal — the tabbed Trigger/Code/Parameters/Return content is
   substantial, so the dialog fills most of the viewport. Pairs with
   .modal-dialog-scrollable so the body scrolls within the fixed height. */
.modal-dialog.script-editor-modal {
    max-width: 96vw;
    width: 96vw;
    height: calc(100vh - 2rem);
}

.modal-dialog.script-editor-modal .modal-content {
    height: 100%;
}
