/* ============================================================================
   App-authored responsive layer (loaded LAST so it wins over the Cuba theme).
   Every rule lives inside a max-width media query, so desktop rendering is
   untouched. Scope: layout chrome + form/dashboard screens. The SmartGrid /
   BlazorDatasheet spreadsheet screens are intentionally left desktop-oriented
   (horizontal scroll) for a later phase.
   ============================================================================ */

/* ---- Tablet / phone: off-canvas sidebar drawer ------------------------------
   Pairs with wwwroot/js/mobile-nav.js which toggles #pageWrapper.spq-nav-open. */
@media (max-width: 991.98px) {

    /* The primary sidebar slides off-screen and floats above content as a drawer. */
    #pageWrapper .sidebar-wrapper {
        position: fixed !important;
        top: 0;
        left: 0;
        bottom: 0;
        width: 260px !important;
        max-width: 82vw;
        transform: translateX(-100%);
        transition: transform .25s ease;
        z-index: 1045;
        overflow-y: auto;
    }

    #pageWrapper.spq-nav-open .sidebar-wrapper {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0, 0, 0, .35);
    }

    /* Content spans the full width; the drawer overlays it instead of pushing it. */
    #pageWrapper .page-body-wrapper .page-body {
        margin-left: 0 !important;
    }

    /* Dim overlay behind the open drawer. */
    .spq-nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .45);
        opacity: 0;
        visibility: hidden;
        transition: opacity .25s ease;
        z-index: 1044;
    }

    .spq-nav-backdrop.show {
        opacity: 1;
        visibility: visible;
    }

    /* Make sure the header toggle is visible and tappable on mobile. */
    .toggle-sidebar {
        display: inline-flex !important;
        align-items: center;
        cursor: pointer;
        padding: 6px;
    }
}

/* ---- Phone: header chrome --------------------------------------------------- */
@media (max-width: 767.98px) {

    /* Reclaim horizontal space: tighten the page gutters. */
    .container-fluid.root-container,
    .page-body .container-fluid {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    /* De-clutter the header: drop the breadcrumb row but keep the page title. */
    .header-wrapper .left-header nav[aria-label="breadcrumb"] {
        display: none !important;
    }
    .header-wrapper .left-header .breadcrumb {
        display: none !important;
    }
    /* Let the title column shrink so the right-side actions stay on screen. */
    .header-wrapper .left-header {
        flex: 1 1 auto;
        min-width: 0;
    }

    /* Header right-side actions wrap instead of overflowing off-screen. */
    .header-wrapper .nav-right ul.nav-menus {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    /* Page title row: allow the header to grow taller rather than clip. */
    .page-header .header-wrapper {
        row-gap: 6px;
    }
}

/* ---- Phone: forms, cards, dashboards ---------------------------------------- */
@media (max-width: 767.98px) {

    /* Cards: less inner padding, full-width stacking. */
    .card > .card-body {
        padding: 14px;
    }

    /* Any horizontally-laid form row collapses to a single column. */
    .row.g-3 > [class*="col-"],
    .form-row > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    /* Button groups / toolbars wrap instead of forcing horizontal scroll. */
    .d-flex.justify-content-between,
    .card-header.d-flex {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Inputs stay comfortably tappable (avoids iOS zoom-on-focus < 16px). */
    .form-control,
    .form-select {
        font-size: 16px;
    }

    /* Bootstrap modals / Fluent dialogs: use the full width on phones. */
    .modal-dialog {
        margin: 8px;
        max-width: calc(100vw - 16px);
    }

    /* Plain data tables get a horizontal-scroll container so they never
       blow out the page width. (SmartGrid spreadsheets are excluded — they
       manage their own scrolling.) */
    .table-responsive-auto {
        overflow-x: auto;
    }
    table.table:not(.sheet):not(.datasheet) {
        min-width: 480px;
    }
}

/* ---- Phone: GSTR-1 (and any spq-toolbar) action buttons ≥44px -------------- */
@media (max-width: 767.98px) {

    /* spq-toolbar is the action strip above SmartGrid grids (Gstr1TopBar etc.).
       CustomUI.css sets padding:6px 12px (~30px tall) — override to meet the
       44px minimum so every button is safely tappable on a phone. */
    .spq-toolbar .btn {
        min-height: 44px;
    }

    /* The spq-toolbar can accumulate many buttons on narrow screens; let them
       wrap naturally rather than overflow off the right edge. */
    .spq-toolbar.d-flex {
        flex-wrap: wrap !important;
    }
}

/* ---- Phone: GSTR-1 Yearly Sales Summary drill-down popup as a bottom sheet -- */
@media (max-width: 767.98px) {
    .modal.gstr1-drill-modal .modal-dialog {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        max-width: 100vw;
        width: 100vw;
    }

    .modal.gstr1-drill-modal .modal-content {
        border-radius: 16px 16px 0 0;
        border-bottom: 0;
        max-height: calc(100dvh - 24px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .modal.gstr1-drill-modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform .25s ease-out;
    }

    .modal.gstr1-drill-modal.show .modal-dialog {
        transform: none;
    }

    .modal.gstr1-drill-modal .btn-close {
        min-width: 44px;
        min-height: 44px;
    }
}

/* ---- Phone: SmartGrid "Export Current Screen to PDF" button ≥44px (Ramesh) ---- */
@media (max-width: 767.98px) {
    .sg-pdf-btn {
        min-width: 44px;
        min-height: 44px;
        justify-content: center;
    }
}

/* ---- Phone: My Notes editor as a bottom sheet (16-Oct-2026) ---------------- */
@media (max-width: 767.98px) {
    .modal .modal-dialog.wne-dialog {
        margin: 0;
        max-width: 100vw;
        min-height: 100%;
        display: flex;
        align-items: flex-end;
    }
    .modal .modal-dialog.wne-dialog .modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
        padding-bottom: env(safe-area-inset-bottom);
    }
    .modal .modal-dialog.wne-dialog .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .modal.fade .modal-dialog.wne-dialog {
        transform: translateY(100%);
        transition: transform 0.25s ease-out;
    }
    .modal.show .modal-dialog.wne-dialog {
        transform: none;
    }
}

/* ---- Phone: My Calendar sheets as bottom sheets (16-Oct-2026) -------------- */
@media (max-width: 767.98px) {
    .modal .modal-dialog.cal-sheet { margin: 0; max-width: 100vw; min-height: 100%; display: flex; align-items: flex-end; }
    .modal .modal-dialog.cal-sheet .modal-content { border-radius: 16px 16px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
    .modal .modal-dialog.cal-sheet .modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .modal .modal-dialog.cal-sheet .modal-footer { position: sticky; bottom: 0; background: inherit; flex-wrap: wrap; }
    .modal.fade .modal-dialog.cal-sheet { transform: translateY(100%); transition: transform 0.25s ease-out; }
    .modal.show .modal-dialog.cal-sheet { transform: none; }
}

/* ---- Phone: SmartGrid row edit form as a bottom sheet (Arun, 07-Nov-2026) ---- */
@media (max-width: 767.98px) {
    .modal .modal-dialog.sg-sheet { margin: 0; max-width: 100vw; min-height: 100%; display: flex; align-items: flex-end; }
    .modal .modal-dialog.sg-sheet .modal-content { border-radius: 20px 20px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
    .modal .modal-dialog.sg-sheet .modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .modal .modal-dialog.sg-sheet .modal-footer { position: sticky; bottom: 0; background: inherit; flex-wrap: nowrap; }
    .modal .modal-dialog.sg-sheet .modal-footer .btn { flex: 1 1 0; min-height: 48px; }
    .modal .modal-dialog.sg-sheet .sg-field { margin-bottom: 14px; }
    .modal .modal-dialog.sg-sheet .sg-field .form-control,
    .modal .modal-dialog.sg-sheet .sg-field .form-select { min-height: 48px; font-size: 16px; }
    .modal .modal-dialog.sg-sheet .sg-view { margin: 0; }
    .modal .modal-dialog.sg-sheet .sg-view-item { padding: 10px 0; border-bottom: 1px solid var(--bd, #e7e9f0); }
    .modal .modal-dialog.sg-sheet .sg-view-item:last-child { border-bottom: 0; }
    .modal .modal-dialog.sg-sheet .sg-view-item dt { color: var(--tc-faint, #98a2b3); font-size: 12px; font-weight: clamp(1, calc(500 + var(--spq-fw-delta, 0)), 1000); }
    .modal .modal-dialog.sg-sheet .sg-view-item dd { margin: 2px 0 0; color: var(--tc-strong, #1f2733); font-size: 15px; overflow-wrap: anywhere; }
    .modal .modal-dialog.sg-sheet .sg-view-group { padding: 10px 0; border-bottom: 1px dashed var(--bd, #e7e9f0); }
    .modal .modal-dialog.sg-sheet .sg-view-group:last-child { border-bottom: 0; }
    .modal .modal-dialog.sg-sheet .sg-view-group-title { margin: 0 0 4px; color: var(--theme-text); font-size: 12px; font-weight: clamp(1, calc(700 + var(--spq-fw-delta, 0)), 1000); letter-spacing: 0.04em; text-transform: uppercase; }
    .modal .modal-dialog.sg-sheet .sg-view-line { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; }
    .modal .modal-dialog.sg-sheet .sg-view-line dt { color: var(--tc-muted, #667085); font-size: 13px; font-weight: clamp(1, calc(400 + var(--spq-fw-delta, 0)), 1000); }
    .modal .modal-dialog.sg-sheet .sg-view-line dd { margin: 0; color: var(--tc-strong, #1f2733); font-size: 14px; font-variant-numeric: tabular-nums; }
    .modal .modal-dialog.sg-sheet .sg-view-line.is-strong { margin-top: 2px; border-top: 1px solid var(--bd, #e7e9f0); }
    .modal .modal-dialog.sg-sheet .sg-view-line.is-strong dt,
    .modal .modal-dialog.sg-sheet .sg-view-line.is-strong dd { color: var(--tc-strong, #1f2733); font-weight: clamp(1, calc(700 + var(--spq-fw-delta, 0)), 1000); }
    .modal.fade .modal-dialog.sg-sheet { transform: translateY(100%); transition: transform 0.25s ease-out; }
    .modal.show .modal-dialog.sg-sheet { transform: none; }
}

/* ---- Phone: SmartGrid card view runs to the bottom of the screen (Arun, 07-Nov-2026) ----
   The bottom tab bar pads every page by 64px, which left an empty band under the cards with the
   floating buttons sitting on it. On a card screen the list scrolls under the bar and the buttons
   instead, and carries its own bottom space (SgCardsView.razor.css). */
@media (max-width: 767.98px) {
    body:has(.sg-cards.is-fill) #pageWrapper .page-body { padding-bottom: 0 !important; }

    /* Some screens give their grid a phone min-width (GSTR-1 / 1A / 6 summaries: 480px) so the
       sheet scrolls sideways. Cards must shrink to the screen, so lift any min-width above them. */
    #pageWrapper *:has(.sg-cards) { min-width: 0 !important; }
}

/* ---- Phone: Tally Connect (TallyConnectorNEW) as a bottom sheet (Arun, 28-Oct-2026) ---- */
@media (max-width: 767.98px) {
    .modal .modal-dialog.tnc-sheet { margin: 0; max-width: 100vw; min-height: 100%; display: flex; align-items: flex-end; }
    .modal .modal-dialog.tnc-sheet .modal-content { border-radius: 16px 16px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom); }
    .modal .modal-dialog.tnc-sheet .modal-body { overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .modal .modal-dialog.tnc-sheet .modal-footer { position: sticky; bottom: 0; background: inherit; flex-wrap: nowrap; }
    .modal.fade .modal-dialog.tnc-sheet { transform: translateY(100%); transition: transform 0.25s ease-out; }
    .modal.show .modal-dialog.tnc-sheet { transform: none; }
}

/* ---- Phone: GSTR-1 "Add New" dialogs as bottom sheets (Arun, 20-Oct-2026) ----------
   Opt-in: put DialogCssClass="spq-add-dialog" (or Class="spq-add-dialog") on the <Modal> of every
   *AddModal. Desktop is untouched. Sticky footer, 44px buttons, single-column body. */
@media (max-width: 767.98px) {
    :is(.modal .modal-dialog.spq-add-dialog, .modal.spq-add-dialog .modal-dialog) {
        margin: 0;
        max-width: 100vw;
        width: 100vw;
        min-height: 100%;
        display: flex;
        align-items: flex-end;
    }
    :is(.modal .modal-dialog.spq-add-dialog, .modal.spq-add-dialog .modal-dialog) .modal-content {
        border-radius: 16px 16px 0 0;
        max-height: 94vh;
        display: flex;
        flex-direction: column;
        padding-bottom: env(safe-area-inset-bottom);
    }
    :is(.modal .modal-dialog.spq-add-dialog, .modal.spq-add-dialog .modal-dialog) .modal-header {
        position: sticky;
        top: 0;
        z-index: 2;
    }
    :is(.modal .modal-dialog.spq-add-dialog, .modal.spq-add-dialog .modal-dialog) .modal-header .btn-close {
        width: 44px;
        height: 44px;
        padding: 0;
    }
    :is(.modal .modal-dialog.spq-add-dialog, .modal.spq-add-dialog .modal-dialog) .modal-body {
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }
    :is(.modal .modal-dialog.spq-add-dialog, .modal.spq-add-dialog .modal-dialog) .modal-body .row > [class*="col-"] {
        flex: 0 0 100%;
        max-width: 100%;
    }
    :is(.modal .modal-dialog.spq-add-dialog, .modal.spq-add-dialog .modal-dialog) .modal-footer {
        position: sticky;
        bottom: 0;
        z-index: 2;
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        background: var(--sf-card, #fff);
        border-top: 1px solid var(--bd, #dee2e6);
    }
    :is(.modal .modal-dialog.spq-add-dialog, .modal.spq-add-dialog .modal-dialog) .modal-footer > * {
        flex: 1 1 calc(50% - .5rem);
        margin: 0;
    }
    :is(.modal .modal-dialog.spq-add-dialog, .modal.spq-add-dialog .modal-dialog) .modal-footer .btn {
        min-height: 44px;
        width: 100%;
    }
    :is(.modal .modal-dialog.spq-add-dialog, .modal.spq-add-dialog .modal-dialog) .form-control,
    :is(.modal .modal-dialog.spq-add-dialog, .modal.spq-add-dialog .modal-dialog) .form-select {
        min-height: 44px;
        font-size: 1rem;
    }
    .modal.fade.spq-add-dialog .modal-dialog, .modal.fade .modal-dialog.spq-add-dialog {
        transform: translateY(100%);
        transition: transform 0.25s ease-out;
    }
    .modal.show.spq-add-dialog .modal-dialog, .modal.show .modal-dialog.spq-add-dialog {
        transform: none;
    }
}
/* ===========================================================================================
   GSTR-1 / GSTR-1A mobile (20-Oct-2026, Himanshu)
   Native-app layer for the GSTR-1 and GSTR-1A Summary pages (.gstr1-summary-page) and the
   Gstr1TopBar strip on the section pages (.gstr1-topbar). Phones/tablets only — every rule is
   inside a mobile media query and scoped under a GSTR-1 class, so desktop and other screens are
   untouched. The action bar itself (GstActionBar) already switches to its own phone strip +
   "More" bottom sheet; nothing here restyles .spq-abar internals.
   =========================================================================================== */
@media (max-width: 991.98px) {
    .gstr1-summary-page {
        overflow-x: clip;                     /* never a horizontal page scroll */
        padding-left: max(.5rem, env(safe-area-inset-left));
        padding-right: max(.5rem, env(safe-area-inset-right));
    }

    /* Wide summary / comparative grids scroll inside their own card, not the page. */
    .gstr1-summary-page .gstr1-summary-grid-card {
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    /* Section pages: the top-bar track becomes a swipeable chip row. */
    .gstr1-topbar .slbs__track {
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .gstr1-topbar .slbs__track::-webkit-scrollbar { display: none; }
    .gstr1-topbar .slbs__track > * { scroll-snap-align: start; }
}

@media (max-width: 767.98px) {
    /* Edge-to-edge filing panel on a card surface (dark-mode aware). */
    .gstr1-summary-page .gstr1-filing-panel {
        background: var(--sf-card, var(--bs-body-bg, #fff));
        border-color: var(--bd, var(--bs-border-color, #e4e7ec));
        border-radius: 12px;
        border-left: 1px solid var(--bd, var(--bs-border-color, #e4e7ec));
        border-right: 1px solid var(--bd, var(--bs-border-color, #e4e7ec));
    }

    /* Original / Amendment → full-width segmented control; "Hide nil values" on its own line. */
    .gstr1-summary-page .gstr1-radio-row,
    .gstr1-summary-page .gstr1-radio-row > .d-flex {
        display: flex;
        flex-wrap: wrap !important;
        gap: .5rem !important;
        width: 100%;
    }
    .gstr1-summary-page .gstr1-radio-sep { display: none; }

    .gstr1-summary-page .gstr1-radio-row .form-check:not(.form-switch) {
        flex: 1 1 0;
        min-width: 0;
        position: relative;
        min-height: 44px;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--bd, var(--bs-border-color, #d0d5dd));
        border-radius: 10px;
        background: var(--sf-subtle, var(--bs-tertiary-bg, #f8fafc));
        transition: background-color .15s ease, border-color .15s ease, transform .08s ease;
    }
    /* The real radio stays in the DOM (keyboard + screen reader); the whole pill is its label. */
    .gstr1-summary-page .gstr1-radio-row .form-check:not(.form-switch) .form-check-input {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        opacity: 0;
        cursor: pointer;
        z-index: 1;
    }
    .gstr1-summary-page .gstr1-radio-row .form-check:not(.form-switch) .gstr1-radio-lbl {
        font-size: .82rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0 .5rem;
        color: var(--tc-text, #344054);
    }
    .gstr1-summary-page .gstr1-radio-row .form-check:not(.form-switch):has(.form-check-input:checked) {
        background: var(--theme-default);
        border-color: var(--theme-default);
    }
    .gstr1-summary-page .gstr1-radio-row .form-check:not(.form-switch):has(.form-check-input:checked) .gstr1-radio-lbl {
        color: #fff;
        font-weight: clamp(1, calc(600 + var(--spq-fw-delta, 0)), 1000);
    }
    .gstr1-summary-page .gstr1-radio-row .form-check:not(.form-switch):has(.form-check-input:focus-visible) {
        outline: 2px solid var(--theme-default);
        outline-offset: 2px;
    }
    .gstr1-summary-page .gstr1-radio-row .form-check:not(.form-switch):active {
        transform: scale(.98);
    }

    .gstr1-summary-page .gstr1-radio-row .form-switch {
        flex: 1 1 100%;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-direction: row-reverse;
        padding-left: 0;
        margin: 0;
    }
    .gstr1-summary-page .gstr1-radio-row .form-switch .form-check-input {
        width: 2.6em;
        height: 1.4em;
        margin: 0;
        float: none;
    }
    .gstr1-summary-page .gstr1-radio-row .form-switch .gstr1-nil-lbl {
        font-size: .85rem;
        flex: 1;
    }

    /* Grid link labels (section names / amounts): pressed state only. No min-height / inline-flex:
       a 36px button is taller than a SmartGrid row, so it overflowed the cell and pushed the text
       off-centre (removed 09-Nov-2026). */
    .gstr1-summary-page .grid-link,
    .gstr1-summary-page .grid-amt-link {
        -webkit-tap-highlight-color: transparent;
    }
    .gstr1-summary-page .grid-link:active,
    .gstr1-summary-page .grid-amt-link:active {
        opacity: .6;
    }

    /* Leave room for the GstActionBar's fixed phone strip and the home indicator. */
    .gstr1-summary-page {
        padding-bottom: calc(.5rem + env(safe-area-inset-bottom, 0px));
    }

    /* Section-page top bar: 44px chips with tactile press feedback. */
    .gstr1-topbar .btn,
    .gstr1-topbar .gstr1-tap {
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }
    .gstr1-topbar .btn:active { transform: scale(.97); }
}
/* ========================= end GSTR-1 / GSTR-1A mobile ========================= */

/* #region Himanshu (23-Oct-2026) - no "spring" when a scroll reaches an edge.
   1. Touch devices rubber-band (iOS) or glow / pull-to-refresh (Android) when the page is pushed
      past its top or bottom - the page springs back. `none` on the document and the app's page
      scroller (.page-body / .root-container) stops that. Layout is untouched: this only changes
      what happens AT the edge, not how anything scrolls or sizes, on desktop or phone.
   2. Scroll chaining: when a grid or dialog scroller hits its end, the browser hands the rest of
      the wheel / swipe to the page, which then jumps. `contain` keeps the gesture inside the
      grid. (Side effect, intended: Android Chrome's pull-to-refresh gesture is off - the app has
      its own refresh buttons.) */
html, body { overscroll-behavior: none; }
.page-body, .root-container { overscroll-behavior-y: none; }
/* 23-Oct-2026 rev 2: grid scrollers are NOT contained any more - a grid sized to its rows (GSTR-9) has nothing
   to scroll itself, so `contain` swallowed the touchpad / wheel and the page would not move under the
   pointer. Only open dialogs keep their scroll to themselves. */
.modal-body, .modal-dialog-scrollable .modal-content { overscroll-behavior: contain; }
/* #endregion */

/* ---- Phone: IMS Outward Large Data Download as a bottom sheet (Himanshu, 15-Nov-2026) ---- */
@media (max-width: 767.98px) {
    .modal.imsout-offline-modal .modal-dialog {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        width: 100vw;
        max-width: 100vw;
        min-height: 0;
        align-items: flex-end;
    }

    .modal.imsout-offline-modal .modal-content {
        border-radius: 16px 16px 0 0;
        border-bottom: 0;
        max-height: calc(100dvh - 24px);
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }

    .modal.imsout-offline-modal .modal-body {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal.imsout-offline-modal.fade .modal-dialog {
        transform: translateY(100%);
        transition: transform .25s ease-out;
    }

    .modal.imsout-offline-modal.show .modal-dialog {
        transform: none;
    }

    .modal.imsout-offline-modal .btn-close,
    .modal.imsout-offline-modal .modal-footer .btn {
        min-width: 44px;
        min-height: 44px;
    }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    .modal.imsout-offline-modal.fade .modal-dialog { transition: none; }
}
