/* ===== ESDM BRANDING OVERRIDES ===== */

/* =======================================================
   CUSTOM PROPERTIES
   =======================================================
   --esdm-zoom: scale factor for responsive UI elements (default: 1)
   */
:root {
    --esdm-zoom: 1;
}

/* =======================================================
   SELF-HOSTED ICON FONT
   =======================================================
   The RD Web Client may sit on an isolated/corporate network that
   cannot reach fonts.gstatic.com, so the ONE Material Symbols glyph
   we use (the header chevron 'density_small', injected by index.html)
   is self-hosted here as a subsetted woff2 (~5 KB) instead of being
   pulled from Google Fonts. This removes the external <link> from
   index.html. */
@font-face{
    font-family:'Material Symbols Outlined';
    font-style:normal;
    font-weight:400;
    font-display:block;
    src:url("../static/media/fonts/material-symbols-density-small.woff2") format('woff2');
}
.material-symbols-outlined{
    font-family:'Material Symbols Outlined';
    font-weight:normal;
    font-style:normal;
    line-height:1;
    letter-spacing:normal;
    text-transform:none;
    display:inline-block;
    white-space:nowrap;
    word-wrap:normal;
    direction:ltr;
    font-feature-settings:'liga';
    -webkit-font-feature-settings:'liga';
    -webkit-font-smoothing:antialiased;
}

/* =======================================================
   TOP NAVIGATION
   =======================================================
   PERSISTENT CHROME (both modes): the IDOX logo + brand text stay on
   the stock look too - only the text COLOUR reverts (blue -> black). */
.navbar-extras-container::before{
    content:"";
    display:block;
    width:42px;
    height:42px;
    margin-right:4px;
    background:url("/RDWeb/webclient/static/media/idox-removebg.png") center center no-repeat;
    background-size:cover;
    border-radius:2px;
    flex-shrink:0;
}

.navbar-session-container{
    display:flex;
    align-items:center;
    position:relative;
}

/* UNPREFIXED: the words themselves exist in BOTH modes. Colour is
   mode-specific and lives in the two rules below. */
.navbar-session-container::before{
    content:"IDOX ESDM Remote Desktop";
    position:absolute;
    left:2px;
    top:50%;
    transform:translateY(-50%);
    font-size:14px;
    font-weight:600;
    white-space:nowrap;
    pointer-events:none;
    background:none !important;
    border:none !important;
    box-shadow:none !important;
    animation:none !important;
}
/* branding on: Fluent blue */
:where(html:not(.esdm-stock)) .navbar-session-container::before{
    color:#0078d4 !important;
}
/* stock look: default black text */
:where(html.esdm-stock) .navbar-session-container::before{
    color:#000000 !important;
}

/* SESSION OPEN -> DROP THE BRAND WORDS.
   When a Remote Desktop session is running the in-browser view injects
   .session-tab elements INTO this same container (chunk 7.cadd6637) and
   the absolutely-positioned words end up behind the tabs / RDP viewport,
   clipping into the deployments. Hide them the instant a session tab
   exists; the words return as soon as the session view is closed. */
.navbar-session-container:has(.session-tab)::before{
    display:none !important;
}

:where(html:not(.esdm-stock)) /* =======================================================
   MAIN GLASS PANEL
   ======================================================= */

.tenants-container{
    position:relative;

    background:linear-gradient(
        135deg,
        rgba(255,255,255,.68),
        rgba(255,255,255,.55)
    ) !important;

    backdrop-filter:blur(14px);
    -webkit-backdrop-filter:blur(14px);

    border-radius:14px !important;

    border:1px solid rgba(255,255,255,.35) !important;

    box-shadow:
        0 8px 24px rgba(0,0,0,.18),
        0 2px 8px rgba(0,0,0,.12),
        inset 0 1px 0 rgba(255,255,255,.45);

    max-width:1450px;

    margin:20px auto !important;

    padding:6px 16px 16px 16px !important;

    transition:none !important;
}

:where(html:not(.esdm-stock)) /* =======================================================
   REMOVE DEFAULT CONTAINER STYLING
   ======================================================= */

.tenant-header-container,
:where(html:not(.esdm-stock)) .ms-List.tenant-resources{
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
}

:where(html:not(.esdm-stock)) /* =======================================================
   TENANT HEADER (HBSMR DEMO)
   ======================================================= */

.tenant-header,
:where(html:not(.esdm-stock)) .tenant-header:hover,
:where(html:not(.esdm-stock)) .tenant-header:focus,
:where(html:not(.esdm-stock)) .tenant-header:active{
    background:linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.62)) !important;
    backdrop-filter:blur(16px) saturate(1.5) !important;
    -webkit-backdrop-filter:blur(16px) saturate(1.5) !important;
    color:#000000 !important;

    border:1px solid rgba(255,255,255,.5) !important;

    border-radius:10px !important;

    box-shadow:
        0 8px 24px rgba(0,0,0,.15) !important;

    min-height:calc(54px * var(--esdm-zoom,1));

    margin-bottom:calc(8px * var(--esdm-zoom,1)) !important;

    box-sizing:border-box !important;

    transform:none !important;
    translate:none !important;

    transition:none !important;

    animation:none !important;
}

:where(html:not(.esdm-stock)) /* Kill any Microsoft hover animation */

.tenant-header *,
:where(html:not(.esdm-stock)) .tenant-header:hover *,
:where(html:not(.esdm-stock)) .tenant-header:focus *,
:where(html:not(.esdm-stock)) .tenant-header:active *{
    transform:none !important;
    transition:none !important;
    animation:none !important;
}

:where(html:not(.esdm-stock)) /* The title container gets no box of its own - no background, border,
   shadow or animation - so the header bar stays clean. (The h2 itself
   renders as plain white text via the theme-4 rules.) */
.tenant-header .title-container{
    background:none !important;
    border:none !important;
    box-shadow:none !important;
    animation:none !important;
}

:where(html:not(.esdm-stock)) /* =======================================================
   VIEW BUTTONS
   ======================================================= */

/* The card face is a 78px ROUND button rather than the square tile. */
.tenant-resources .tile-view .tenant-resources-btn{
    overflow:visible !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    bottom:auto !important;
    width:78px !important;
    height:78px !important;
    margin:0 auto !important;
    background:linear-gradient(180deg,#ffffff 0%,#f8fafc 38%,#e8eef5 62%,#fdfdff 100%) !important;
    border:2px solid transparent !important;
    border-radius:50% !important;
    box-shadow:
        0 1px 1px rgba(0,0,0,.06),
        0 6px 16px rgba(0,0,0,.10),
        inset 0 1px 0 rgba(255,255,255,1),
        inset 0 -1px 0 rgba(255,255,255,.35) !important;
    box-sizing:border-box !important;
    transform:none !important;
    transition:border-color .3s ease !important;
}

:where(html:not(.esdm-stock)) .tenant-resources .tile-view:hover .tenant-resources-btn{
    border-color:rgba(0,0,0,.12) !important;
    transition:none !important;
}

:where(html:not(.esdm-stock)) /* Plain glass button for list rows; theme-4 restyles them below. */
.tenant-resources .list-view .tenant-resources-btn{
    background:rgba(255,255,255,.14) !important;
    border:1px solid rgba(255,255,255,.55) !important;
    border-radius:8px !important;
    box-sizing:border-box !important;
    transform:none !important;
    transition:
        background-color .15s ease,
        border-color .15s ease,
        box-shadow .15s ease !important;
}

:where(html:not(.esdm-stock)) /* =======================================================
   TILE VIEW
   ======================================================= */

/* The square tile is an invisible layout frame: no margin/width/height,
   because the app drives a 14.2857% float grid inline. The card face is
   drawn on the button inside it, so the tile itself stays transparent. */
.tenant-resources .tile-view{
    background:transparent !important;

    border:1px solid transparent !important;

    border-radius:10px !important;

    box-sizing:border-box !important;

    box-shadow:none !important;

    transform:none !important;

    transition:
        box-shadow .18s ease,
        border-color .18s ease !important;
}

:where(html:not(.esdm-stock)) /* Fill the button face so the icon + label centre inside it */
.tenant-resources .tile-view .tenant-resources-btn-container{
    position:absolute !important;
    top:0 !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    align-items:center !important;
}

:where(html:not(.esdm-stock)) /* Hover must not repaint the tile frame; keep it invisible. */
.tenant-resources .tile-view:hover{
    background:transparent !important;
    border-color:transparent !important;
    box-shadow:none !important;
    transform:none !important;
}
:where(html:not(.esdm-stock)) .tenant-resources .tile-view .tile-view-label{
    width:100% !important;
    text-align:center !important;
}
/* Icon keeps the app's own 32x32 sizing.
   Icon spin: must out-specify the Fluent UI "transform:none" pin on
   .tile-view * (2 classes + universal); this has 3 classes + element. */
.tenant-resources .tile-view:hover .tile-view-thumbnail img{
    filter:none !important;
    transform:rotateY(360deg) !important;
    transition:transform .5s ease !important;
}

:where(html:not(.esdm-stock)) /* =======================================================
   LIST ROW HOVER
   =======================================================
   The row keeps its face on hover: the app's own hover fill is re-pinned
   to the white gradient, the border stays solid, and no box-shadow is
   added. transform:none is pinned here too because Fluent's hover state
   can otherwise shift the row. (Rows carry no button element, so there is
   no inner face to restyle.) */
:where(html:not(.esdm-stock):not(.esdm-theme-4)) .tenant-resources .list-view:hover{
    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f8fafc 38%,
            #e8eef5 62%,
            #fdfdff 100%) !important;

    border-color:transparent !important;
    box-shadow:none !important;
    transform:none !important;
}
:where(html:not(.esdm-stock)) .tenant-resources .list-view:hover .list-view-label{
    -webkit-text-fill-color:currentcolor !important;
    text-shadow:none !important;
}
:where(html:not(.esdm-stock)) .tenant-resources .list-view:hover .list-view-thumbnail img{
    filter:none !important;
}

:where(html:not(.esdm-stock)) /* =======================================================
   LIST VIEW
   ======================================================= */

/* Opaque white gradient face + solid edge for the row.
   Scoped to NOT theme-4 so theme-4's two-tone split (white cradle + blue
   remainder) in light/theme.css and dark/theme.css is not overridden. */
:where(html:not(.esdm-stock):not(.esdm-theme-4)) .tenant-resources .list-view{
    background:
        linear-gradient(180deg,
            #ffffff 0%,
            #f8fafc 38%,
            #e8eef5 62%,
            #fdfdff 100%) !important;

    border:1px solid rgba(255,255,255,.80) !important;

    border-radius:10px !important;

    box-sizing:border-box !important;

    box-shadow:
        0 1px 1px rgba(0,0,0,.05),
        0 3px 10px rgba(0,0,0,.07),
        inset 0 1px 0 rgba(255,255,255,1) !important;

    transform:none !important;

    transition:
        box-shadow .18s ease,
        border-color .18s ease !important;
}

:where(html:not(.esdm-stock)) /* Padding keeps rows and tiles inside .ms-List's overflow:hidden clip
   region instead of sitting flush to its edges. NOTE: .ms-List and
   .tenant-resources are the SAME element, so the selector must be
   compound (.ms-List.tenant-resources), not descendant. */
.ms-List.tenant-resources{
    padding:16px !important;
}

:where(html:not(.esdm-stock)) /* =======================================================
   LABELS
   ======================================================= */

/* Tile labels are white and sit below the icon on the page background;
   they carry a shadow so they stay legible over it. List labels keep the
   dark Fluent colour because list rows have an opaque white face. */
.tenant-resources .tile-view .tile-view-label{
    font-weight:600 !important;
    color:#ffffff !important;
    text-shadow:0 1px 3px rgba(0,0,0,.65) !important;
}
:where(html:not(.esdm-stock)) .tenant-resources .list-view-label{
    font-weight:600 !important;
    color:#323130 !important;
}

:where(html:not(.esdm-stock)) /* =======================================================
   ICONS
   ======================================================= */

.tenant-resources .tile-view-thumbnail,
:where(html:not(.esdm-stock)) .tenant-resources .list-view-thumbnail{
    position:relative !important;
    z-index:2 !important;
}

:where(html:not(.esdm-stock)) /* TILE ICON TREATMENT: remap the grayscale range into [0.25..1.0] so the
   glyph reads near-white while internal detail survives, then trace its
   outline with 4 chained drop-shadows (they follow the full alpha shape,
   including any internal cutouts). contrast(0.6) brightness(1.25) solves
   f(x)=((x-.5)*.6+.5)*1.25 -> black=25% gray, white=100%.
   Selector is (0,4,1): it must outrank the hover rule
   ".tile-view:hover .tile-view-thumbnail img {filter:none!important}"
   (0,3,1) so the treatment survives the hover spin. */
.tenant-resources .tile-view .tile-view-thumbnail > img.ms-Image-image{
    filter:grayscale(1) contrast(0.6) brightness(1.25)
        drop-shadow(1px 0 0 rgba(8,8,16,.85))
        drop-shadow(-1px 0 0 rgba(8,8,16,.85))
        drop-shadow(0 1px 0 rgba(8,8,16,.85))
        drop-shadow(0 -1px 0 rgba(8,8,16,.85)) !important;
}

:where(html:not(.esdm-stock)) .tenant-resources .tile-view-label-container,
:where(html:not(.esdm-stock)) .tenant-resources .list-view-label-container{
    position:relative !important;
    z-index:2 !important;
}

:where(html:not(.esdm-stock)) /* =======================================================
   FLUENT UI ANIMATION OVERRIDES
   ======================================================= */

.tenant-resources .tile-view *,
:where(html:not(.esdm-stock)) .tenant-resources .list-view *{
    transform:none !important;
    animation:none !important;
}

:where(html:not(.esdm-stock)) /* =======================================================
   CLEANUP
   ======================================================= */

.tenant-header-container{
    background:transparent !important;
}

:where(html:not(.esdm-stock)) .ms-List.tenant-resources{
    background:transparent !important;
}

:where(html:not(.esdm-stock)) /* ===== KILL HEADER CHEVRON HOVER EFFECTS ===== */

.tenant-header-expand-button,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:hover,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:focus,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:active,
:where(html:not(.esdm-stock)) .tenant-header-expand-button i,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:hover i,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:focus i,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:active i{
    background:transparent !important;
    border:none !important;
    box-shadow:none !important;
    transform:none !important;
    transition:none !important;
    animation:none !important;
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
    will-change:auto !important;
}

:where(html:not(.esdm-stock)) /* Remove backdrop-filter on tiles/lists to stop compositing jumps */
.tenant-resources .tile-view,
:where(html:not(.esdm-stock)) .tenant-resources .list-view{
    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
}




:where(html:not(.esdm-stock)) /* The chevron is a Material Symbols glyph swapped in for the app's
   own icon by index.html; it is sized and centred here. */
.tenant-header-expand-button .custom-chevron{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:20px !important;
    height:20px !important;
    margin:0 !important;
    padding:0 !important;
    line-height:1 !important;
    transition:none !important;
    transform:none !important;
}
:where(html:not(.esdm-stock)) .tenant-header-expand-button:hover .custom-chevron,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:focus .custom-chevron,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:active .custom-chevron{
    transform:none !important;
    transition:none !important;
    /* the base header is white glass, so the chevron needs brand blue to
       stay visible; theme-4 turns it white on the blue header below */
    color:#0078d4 !important;
}
:where(html:not(.esdm-stock)) /* HARD STOP header container shift */
.tenant-header-container,
:where(html:not(.esdm-stock)) .tenant-header-container *{
    contain:layout paint style !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container{
    padding:0 !important;
    margin:0 !important;
    border:none !important;
    background:transparent !important;
}
:where(html:not(.esdm-stock)) .tenant-header{
    box-sizing:border-box !important;
    display:flex !important;
    align-items:center !important;
    justify-content:space-between !important;
    margin-bottom:12px !important;
}
:where(html:not(.esdm-stock)) .tenant-header .ms-Stack{
    align-items:center !important;
}

:where(html:not(.esdm-stock)) /* Stop HBSMR header micro-jump */
.tenant-header-container .tenant-header{
    margin-bottom:calc(12px * var(--esdm-zoom,1)) !important;
    min-height:calc(54px * var(--esdm-zoom,1)) !important;
    height:calc(54px * var(--esdm-zoom,1)) !important;
    padding:calc(0 8px * var(--esdm-zoom,1)) !important;
    border:1px solid rgba(0,0,0,.06) !important;
    box-shadow:0 2px 6px rgba(0,0,0,.08) !important;
    transform:none !important;
    transition:none !important;
    animation:none !important;
    backface-visibility:hidden !important;
    -webkit-backface-visibility:hidden !important;
    contain:layout paint !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header *,
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header *:hover,
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header *:focus,
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header *:active{
    transform:none !important;
    transition:none !important;
    animation:none !important;
    will-change:auto !important;
}
:where(html:not(.esdm-stock)) .tenant-header-expand-button,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:hover,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:focus,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:active{
    transform:none !important;
    transition:none !important;
    animation:none !important;
    box-shadow:none !important;
    border:none !important;
    background:transparent !important;
    padding:0 4px !important;
    margin:0 !important;
}

:where(html:not(.esdm-stock)) /* Hover must not resize the tile or row: width/height/margin stay with
   the app's inline 14.2857% float grid, and transform is pinned off. */
.tenant-resources .tile-view:hover,
:where(html:not(.esdm-stock)) .tenant-resources .list-view:hover{
    transform:none !important;
}
:where(html:not(.esdm-stock)) /* Lock the header height: every descendant of the header container is
   pinned to the same 54px box so no state change can grow it. */
.tenant-header-container,
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header,
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header > *,
:where(html:not(.esdm-stock)) .tenant-header-container .ms-Stack,
:where(html:not(.esdm-stock)) .tenant-header-container button{
    margin:0 !important;
    padding:0 !important;
    border-width:0 !important;
    box-sizing:border-box !important;
    line-height:1 !important;
    min-height:calc(54px * var(--esdm-zoom,1)) !important; height:calc(54px * var(--esdm-zoom,1)) !important; max-height:calc(54px * var(--esdm-zoom,1)) !important;
    transform:none !important;
    transition:none !important;
    animation:none !important;
    backface-visibility:hidden !important;
    -webkit-backface-visibility:hidden !important;
    will-change:auto !important;
    contain:layout paint style !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header{
    margin-bottom:12px !important;
    padding:0 8px !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header .ms-Button-flexContainer,
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header .ms-Button{
    min-height:40px !important;
    height:40px !important;
    max-height:40px !important;
    margin:0 !important;
    padding:0 4px !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header .ms-Button:hover,
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header .ms-Button:focus,
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header .ms-Button:active{
    background:transparent !important;
    border-color:transparent !important;
    box-shadow:none !important;
    transform:none !important;
    transition:none !important;
    animation:none !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header .tenant-header-expand-button{
    min-width:32px !important;
    max-width:32px !important;
    width:32px !important;
    margin-left:4px !important;
}
:where(html:not(.esdm-stock)) .tenant-header-expand-button .custom-chevron{
    width:18px !important;
    height:18px !important;
    font-size:18px !important;
}
:where(html:not(.esdm-stock)) .tenants-container{
    padding-bottom:8px !important;
}
:where(html:not(.esdm-stock)) /* Prevent any border/outline growth on focus/hover that causes reflow */
.tenant-header-container .tenant-header:focus,
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header:hover,
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header:focus-within{
    outline:none !important;
    border-width:0 !important;
    box-shadow:0 2px 6px rgba(0,0,0,.08) !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .ms-Button:focus,
:where(html:not(.esdm-stock)) .tenant-header-container .ms-Button:hover{
    outline:none !important;
    border-color:transparent !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header-expand-button:focus-visible{
    outline:none !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container{
    overflow:hidden !important;
}:where(html:not(.esdm-stock)) /* Prevent scrollbars/expansion from container on hover */
.tenant-header-container:focus-within,
:where(html:not(.esdm-stock)) .tenant-header-container:hover{
    overflow:visible !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container{
    overflow:visible !important;
}
:where(html:not(.esdm-stock)) /* Absolute hard lock on header height/growth */
.tenant-header-container{
    height:calc(54px * var(--esdm-zoom,1)) !important;
    min-height:calc(54px * var(--esdm-zoom,1)) !important;
    max-height:calc(54px * var(--esdm-zoom,1)) !important;
    line-height:1 !important;
    flex-shrink:0 !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header{
    height:calc(54px * var(--esdm-zoom,1)) !important;
    min-height:calc(54px * var(--esdm-zoom,1)) !important;
    max-height:calc(54px * var(--esdm-zoom,1)) !important;
    flex:0 0 calc(54px * var(--esdm-zoom,1)) !important;
    overflow:visible !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .ms-Stack{
    height:calc(54px * var(--esdm-zoom,1)) !important;
    align-items:center !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .ms-StackItem{
    align-items:center !important;
    display:flex !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header-expand-button,
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header-expand-button *{
    height:20px !important;
    min-height:20px !important;
    max-height:20px !important;
    width:20px !important;
    min-width:20px !important;
    max-width:20px !important;
}
:where(html:not(.esdm-stock)) /* Tighter header button/container to stop reflow */
.tenant-header-container .tenant-header{
    will-change:auto !important;
    transform:translateZ(0) !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header .ms-Button{
    padding:0 2px !important;
    margin:0 1px !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header .ms-Button-flexContainer{
    padding:0 !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header .ms-StackItem{
    margin-left:0 !important;
    margin-right:0 !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header-expand-button{
    padding:0 !important;
    margin:0 !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header > .ms-Stack{
    gap:0 !important;
}

/* =======================================================
   ESDM BRANDING TOGGLE - ALWAYS-VISIBLE SCAFFOLDING
   =======================================================
   Unlike theme colours, this control is PART of the ESDM add-on
   scaffolding (the same category as the IDOX logo and the brand
   words). It is injected by index.html into .resources-controls-
   container and must be present and usable in EVERY mode - theme-4,
   stock, dark, light - because it is the mechanism that lets the
   user switch themes. Its geometry (32px bare-dot button + divider)
   is therefore defined HERE in base.css (always loaded), just like
   the logo is. Only the DOT colour is theme-specific and lives in
   the per-theme files.
   UNPREFIXED on purpose: it must render in BOTH esdm-stock and
   esdm-theme-4 modes. */
#esdm-brand-toggle{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:32px !important;
    height:32px !important;
    margin:0 0 0 20px !important;
    padding:0 !important;
    border:none !important;
    border-radius:4px !important;
    background:transparent !important;
    cursor:pointer !important;
    box-sizing:border-box !important;
    flex-shrink:0 !important;
    transition:background-color .15s ease !important;
}
#esdm-brand-toggle:hover{
    /* Fluent icon-button hover wash (navbar/allresources hover var) */
    background:#edebe9 !important;
}
#esdm-brand-toggle:focus-visible{
    outline:2px solid #0078d4 !important;
    outline-offset:1px !important;
}
#esdm-brand-toggle .esdm-brand-dot{
    width:10px !important;
    height:10px !important;
    border-radius:50% !important;
    background:#8a8886 !important;
    flex-shrink:0 !important;
}
/* divider separating the theme dot from the Tile|List switch, so the
   three read as ONE cluster. CSS-ONLY (drawn on the toggle's ::before)
   so it needs no extra DOM and shows wherever this stylesheet loads.
   Matches the app's own Tile|List divider (#c8c6c4). */
#esdm-brand-toggle{
    position:relative !important;
}
#esdm-brand-toggle::before{
    content:"" !important;
    position:absolute !important;
    left:-10px !important;
    top:50% !important;
    transform:translateY(-50%) !important;
    width:1px !important;
    height:16px !important;
    border-radius:1px !important;
    background:#c8c6c4 !important;
    pointer-events:none !important;
}
/* the app's own Tile|List divider stays visible on the black dark surface */
#esdm-brand-toggle[data-theme="theme-4"] .esdm-brand-dot{
    background:#0078d4 !important;
}
/* dark-mode divider tone (theme-4) */
html.esdm-theme-4 body.dark #esdm-brand-toggle::before{
    background:rgba(255,255,255,.18) !important;
}
/* neumorphism divider tone */
html.esdm-neu body:not(.dark) #esdm-brand-toggle::before{
    background:#c8ccd4 !important;
}
html.esdm-theme-4 body.dark .resources-controls-container .resources-controls-divider{
    background:rgba(255,255,255,.18) !important;
}

/* =======================================================
   BACKGROUND-IMAGE TOGGLE  (#esdm-bg-toggle)
   =======================================================
   Second bare-icon button, injected by index.html as a SIBLING of the
   theme dot so the buttons read as one cluster. Same 32px geometry.
   UNPREFIXED (must render in every mode). The glyph is an inline <svg>
   painted with currentColor (Google Material toggle_on / toggle_off);
   only the COLOUR is mode-specific. */
#esdm-bg-toggle{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:32px !important;
    height:32px !important;
    margin:0 !important;
    padding:0 !important;
    border:none !important;
    border-radius:4px !important;
    background:transparent !important;
    cursor:pointer !important;
    box-sizing:border-box !important;
    flex-shrink:0 !important;
    color:#201f1e !important;
    transition:background-color .15s ease !important;
}
#esdm-bg-toggle svg{ display:block !important; fill:currentColor !important; }
#esdm-bg-toggle:hover{ background:#edebe9 !important; }
#esdm-bg-toggle:focus-visible{
    outline:2px solid #0078d4 !important;
    outline-offset:1px !important;
}

/* =======================================================
   BACKGROUND OFF  (html.esdm-bg-off)
   =======================================================
   Kills the ESDM photo backdrop (bg_esdm.jpg, painted by the stock
   body rule in main.c504c459.css) regardless of theme/mode. No theme
   sheet RE-ENABLES a body background image - the dark/stock/neu
   sheets only ever set it to none - so this single rule is enough to
   win: it is higher-specificity than the stock body rule and base.css
   is linked AFTER main.css. The toggle button flips this class and
   the head snippet restores it before first paint. */
html.esdm-bg-off body{
    background-image:none !important;
}

/* =======================================================
   PAGE ELEMENT RESIZE  (#esdm-size-dec / #esdm-size-inc)
   =======================================================
   Add (+) / Remove (-) bare-icon buttons appended after the background
   toggle. Same 32px geometry; they nudge --esdm-zoom (set pre-paint on
   <html> by index.html) through 8 discrete sizes (level 6 = 100%).
   UNPREFIXED - must render in every mode; only the COLOUR is
   mode-specific. */
#esdm-size-dec, #esdm-size-inc{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:32px !important;
    height:32px !important;
    margin:0 !important;
    padding:0 !important;
    border:none !important;
    border-radius:4px !important;
    background:transparent !important;
    cursor:pointer !important;
    box-sizing:border-box !important;
    flex-shrink:0 !important;
    color:#201f1e !important;
    transition:background-color .15s ease !important;
}
#esdm-size-dec{ margin-left:8px !important; }
#esdm-size-dec svg, #esdm-size-inc svg{ display:block !important; fill:currentColor !important; }
#esdm-size-dec, #esdm-size-inc{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:32px !important;
    height:32px !important;
    margin:0 !important;
    padding:0 !important;
    border:none !important;
    border-radius:4px !important;
    background:transparent !important;
    cursor:pointer !important;
    box-sizing:border-box !important;
    flex-shrink:0 !important;
    color:#201f1e !important;
    transition:color .15s ease,background-color .15s ease !important;
}
#esdm-size-dec{ margin-left:8px !important; }
#esdm-size-dec svg, #esdm-size-inc svg{ display:block !important; fill:currentColor !important; }
#esdm-size-dec:hover, #esdm-size-inc:hover{ color:#0078d4 !important; background:transparent !important; }
#esdm-size-dec:focus-visible, #esdm-size-inc:focus-visible{
    outline:2px solid #0078d4 !important;
    outline-offset:1px !important;
}
#esdm-size-dec:disabled, #esdm-size-inc:disabled{
    opacity:.35 !important;
    cursor:default !important;
    background:transparent !important;
}
/* background toggle: greyed out when the active theme has no photo backdrop
   (only Blue & white / theme-4 in LIGHT mode paints bg_esdm.jpg) */
#esdm-bg-toggle:disabled{
    opacity:.35 !important;
    cursor:default !important;
    background:transparent !important;
}
/* theme-4 LIGHT: resize + bg toggle icons are brand blue */
html.esdm-theme-4 body:not(.dark) #esdm-size-dec,
html.esdm-theme-4 body:not(.dark) #esdm-size-inc,
html.esdm-theme-4 body:not(.dark) #esdm-bg-toggle{ color:#0078d4 !important; }
html.esdm-theme-4 body:not(.dark) #esdm-size-dec:hover:not(:disabled),
html.esdm-theme-4 body:not(.dark) #esdm-size-inc:hover:not(:disabled),
html.esdm-theme-4 body:not(.dark) #esdm-bg-toggle:hover:not(:disabled){ color:#106ebe !important; background:transparent !important; }
/* theme-4 DARK: resize +/- icons are aurora glyphs.
   Same mask technique as the control icons in dark/theme.css: paint the
   svg with the aurora gradient and MASK it to the icon's own path shape
   (the add/remove glyphs the injected script drops in). Without the
   mask the aurora would fill the whole 18x18 box and the glyph would
   read as a solid square - the icon shape would be invisible. */
html.esdm-theme-4 body.dark #esdm-size-dec svg{
    background-image:linear-gradient(90deg,#00c2ff,#33ff8c,#ffc640,#e54cff,#00c2ff) !important;
    background-size:250% 100% !important;
    animation:esdm-aurora-text 6s linear infinite !important;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%23fff' d='M200-440v-80h560v80H200Z'/%3E%3C/svg%3E") center/contain no-repeat !important;
            mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%23fff' d='M200-440v-80h560v80H200Z'/%3E%3C/svg%3E") center/contain no-repeat !important;
}
html.esdm-theme-4 body.dark #esdm-size-inc svg{
    background-image:linear-gradient(90deg,#00c2ff,#33ff8c,#ffc640,#e54cff,#00c2ff) !important;
    background-size:250% 100% !important;
    animation:esdm-aurora-text 6s linear infinite !important;
    -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%23fff' d='M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z'/%3E%3C/svg%3E") center/contain no-repeat !important;
            mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960'%3E%3Cpath fill='%23fff' d='M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z'/%3E%3C/svg%3E") center/contain no-repeat !important;
}
html.esdm-theme-4 body.dark #esdm-size-dec svg path,
html.esdm-theme-4 body.dark #esdm-size-inc svg path{
    fill:transparent !important;
}
/* theme-4 DARK: background toggle icon = aurora glyph.
   The path d is set DYNAMICALLY by index.html (on/off shapes), so a
   static mask URL cannot match it. A swept gradient on an SVG path is
   not reliably paintable from CSS, so the glyph gets a solid aurora
   blue instead - same hue family as the swept gradient, always
   visible, works for whatever shape the JS drops in. */
html.esdm-theme-4 body.dark #esdm-bg-toggle svg path{
    fill:#00c2ff !important;
}
html.esdm-theme-4 body.dark #esdm-size-dec,
html.esdm-theme-4 body.dark #esdm-size-inc,
html.esdm-theme-4 body.dark #esdm-bg-toggle{ color:#ffffff !important; }
html.esdm-theme-4 body.dark #esdm-size-dec:hover:not(:disabled),
html.esdm-theme-4 body.dark #esdm-size-inc:hover:not(:disabled),
html.esdm-theme-4 body.dark #esdm-bg-toggle:hover:not(:disabled){ background:rgba(120,170,255,.10) !important; }

/* =======================================================
   ELEMENT SCALE  (--esdm-zoom)
   =======================================================
   ONE zoom on the resource grid scales tiles, labels and wrapping
   together WITHOUT touching the client's own Math.ceil(width/125)
   column maths: the client reads offsetWidth, and offsetWidth is
   already reported in the LOCAL (zoomed) coordinate space, so the
   column count stays correct at every level. The controls live inside
   this zoomed subtree, which keeps them in proportion as they grow.
   --esdm-zoom is written PRE-PAINT by index.html (level 6 -> 1); the
   :root fallback of 1 keeps the page correct if the script never runs.

   The zoom applies to the whole resource grid (tiles + list rows +
   header bars) so every element grows or shrinks together. */
:root{ --esdm-zoom:1; }
/* CSS zoom removed from .tenant-resources to prevent double-scaling.
   Tile button face scales explicitly via --esdm-zoom in shared.css. */
/* list view rows grow in height with the zoom so icons + text scale too */
html.esdm-theme-4 .tenant-resources .list-view{
    min-height:calc(45px * var(--esdm-zoom,1)) !important;
    padding:calc(10px * var(--esdm-zoom,1)) !important;
}
/* header bar grows in height with the zoom */
html.esdm-theme-4 .tenant-header-container,
html.esdm-theme-4 .tenant-header-container > div:first-child,
html.esdm-theme-4 .tenant-header-container .tenant-header,
html.esdm-theme-4 .tenant-header-container .title-container{
    height:calc(54px * var(--esdm-zoom,1)) !important;
    min-height:calc(54px * var(--esdm-zoom,1)) !important;
    max-height:calc(54px * var(--esdm-zoom,1)) !important;
}

:where(html:not(.esdm-stock)) /* Super hard lock - target the exact parent structure causing reflow */
.tenant-header-container,
:where(html:not(.esdm-stock)) .tenant-header-container > div:first-child,
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header,
:where(html:not(.esdm-stock)) .tenant-header-container .title-container{
    height:calc(54px * var(--esdm-zoom,1)) !important;
    min-height:calc(54px * var(--esdm-zoom,1)) !important;
    max-height:calc(54px * var(--esdm-zoom,1)) !important;
    box-sizing:border-box !important;
    margin:calc(0 0 12px * var(--esdm-zoom,1) 0) !important;
    padding:0 !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container .tenant-header{
    padding:0 8px !important;
    margin:calc(0 0 12px * var(--esdm-zoom,1) 0) !important;
    overflow:visible !important;
}
:where(html:not(.esdm-stock)) .tenant-header-container > div:first-child:has(> .tenant-header){
    height:calc(54px * var(--esdm-zoom,1)) !important;
    margin:calc(0 0 12px * var(--esdm-zoom,1) 0) !important;
}
:where(html:not(.esdm-stock)) /* Header base and hover states share identical pins (height, margin,
   border, shadow) so neither state can sit at a different size. */
.tenant-header,
:where(html:not(.esdm-stock)) .tenant-header:hover,
:where(html:not(.esdm-stock)) .tenant-header:focus,
:where(html:not(.esdm-stock)) .tenant-header:focus-within,
:where(html:not(.esdm-stock)) .tenant-header:focus-visible,
:where(html:not(.esdm-stock)) .tenant-header:active{
    min-height:calc(54px * var(--esdm-zoom,1)) !important;
    height:calc(54px * var(--esdm-zoom,1)) !important;
    max-height:calc(54px * var(--esdm-zoom,1)) !important;
    margin:calc(0 0 8px * var(--esdm-zoom,1)) !important;
    padding:calc(0 8px * var(--esdm-zoom,1)) !important;
    border:1px solid rgba(0,0,0,.06) !important;
    box-shadow:0 2px 6px rgba(0,0,0,.08) !important;
    /* header is white glass in the base layer */
    background:linear-gradient(135deg, rgba(255,255,255,.82), rgba(255,255,255,.62)) !important;
    color:#000000 !important;
    transform:none !important;
    transition:none !important;
    animation:none !important;
    outline:none !important;
    box-sizing:border-box !important;
}
:where(html:not(.esdm-stock)) .tenants-container{
    padding-top:6px !important;
    padding-bottom:8px !important;
}
:where(html:not(.esdm-stock)) /* Stop chevron icon sticking in highlighted/selected state after click */
.tenant-header-expand-button,
:where(html:not(.esdm-stock)) .tenant-header-expand-button *{
    user-select:none !important;
    -webkit-user-select:none !important;
    -webkit-touch-callout:none !important;
    background:transparent !important;
}
:where(html:not(.esdm-stock)) .tenant-header-expand-button:active,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:active *,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:hover,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:hover *,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:focus,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:focus *,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:focus-visible,
:where(html:not(.esdm-stock)) .tenant-header-expand-button:focus-visible *{
    background:transparent !important;
    color:#000 !important;
    box-shadow:none !important;
    outline:none !important;
    transform:none !important;
    transition:none !important;
}
:where(html:not(.esdm-stock)) ::selection{
    background:rgba(0,120,212,.35);
}

