/* =============================================================
   THEME 4 - LIGHT MODE (html.esdm-theme-4 body:not(.dark))
   -------------------------------------------------------------
   LIGHT-mode colours ONLY. The two-tone STRUCTURE/GEOMETRY (square
   tile, footer-bar pinning, label typography, list split, panel &
   header radius/blur) lives in ../../shared.css, which index.html
   loads statically for every mode; this file just re-skins that
   structure with the light palette.

   STATIC-LOAD MODEL: this file is linked UNCONDITIONALLY and scoped
   to body:not(.dark), so it and theme-4/dark/theme.css can both be
   present at once and simply react to the app's own body.dark class.
   There is no loader, no mode switching and no ordering/race hazard:
   the app already owns the one signal (body.dark) that picks a mode.
   ============================================================= */

/* ---- TILE ----
   Solid white top holding the icon + a solid brand-blue footer bar
   with plain white label text (square fill / bar pinning are in
   shared.css). */
html.esdm-theme-4 body:not(.dark) .tenant-resources .tile-view .tenant-resources-btn{
    background:#ffffff !important;
    border:1px solid rgba(0,0,0,.10) !important;
    box-shadow:
        0 1px 1px rgba(0,0,0,.06),
        0 6px 16px rgba(0,0,0,.10) !important;
}
html.esdm-theme-4 body:not(.dark) .tenant-resources .tile-view:hover .tenant-resources-btn{
    border-color:#0078d4 !important;
    box-shadow:
        0 2px 4px rgba(0,0,0,.08),
        0 8px 20px rgba(0,80,150,.18) !important;
}
/* footer bar: solid brand blue */
html.esdm-theme-4 body:not(.dark) .tenant-resources .tile-view .tile-view-label-container{
    background:#0078d4 !important;
}
/* label: plain white text on the blue bar */
html.esdm-theme-4 body:not(.dark) .tenant-resources .tile-view .tile-view-label{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
}

/* ---- PANEL ----
   Solid flat light surface (#f3f2f1 - the same tone as the top title
   bar; pure #ffffff reads too bright against it). The glass blur is
   killed in shared.css. */
html.esdm-theme-4 body:not(.dark) .tenants-container{
    background:#f3f2f1 !important;
    border:1px solid rgba(0,0,0,.08) !important;
    box-shadow:0 8px 24px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.08) !important;
}

/* ---- HEADER BAR ----
   Solid brand blue (#0078d4 - matches the tile bars and the IDOX ESDM
   text colour); the title is plain white. Radius/blur live in shared. */
html.esdm-theme-4 body:not(.dark) .tenant-header,
html.esdm-theme-4 body:not(.dark) .tenant-header:hover,
html.esdm-theme-4 body:not(.dark) .tenant-header:focus,
html.esdm-theme-4 body:not(.dark) .tenant-header:focus-within,
html.esdm-theme-4 body:not(.dark) .tenant-header:focus-visible,
html.esdm-theme-4 body:not(.dark) .tenant-header:active,
html.esdm-theme-4 body:not(.dark) .tenant-header-container .tenant-header{
    background:#0078d4 !important;
    color:#ffffff !important;
    border:1px solid rgba(255,255,255,.25) !important;
    box-shadow:0 6px 16px rgba(0,40,90,.28) !important;
}
html.esdm-theme-4 body:not(.dark) .tenant-header .tenant-display-name,
html.esdm-theme-4 body:not(.dark) .tenant-header .title-container .tenant-display-name{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
}
/* chevron: white on blue (base layer's hover rule tints it brand blue,
   invisible on this header) */
html.esdm-theme-4 body:not(.dark) .tenant-header-expand-button,
html.esdm-theme-4 body:not(.dark) .tenant-header-expand-button .custom-chevron,
html.esdm-theme-4 body:not(.dark) .tenant-header-expand-button:hover,
html.esdm-theme-4 body:not(.dark) .tenant-header-expand-button:hover .custom-chevron{
    color:#ffffff !important;
}

/* ---- LIST VIEW ----
   white icon cradle + blue bar covering the text area (reasonable length).
   Geometry is in shared.css. */
/* The row is a HARD two-tone split: white icon cradle, solid brand blue
   out to 75%, white tail. On hover the blue EXTENDS to the full width
   of the row.

   WHY NOT A RAMP HERE (dark mode uses one, deliberately)
   A ramp is only needed when the two tones are too close for the eye
   to see a seam. Dark mode is that case - its row and panel are ~10
   RGB units apart, so a hard split reads as one flat bar and the
   boundary is invisible. Light mode is the opposite: white against
   brand blue is maximum contrast, so the seam is unmistakable and a
   smooth transition just blurs it. Verified on screen: the ramped
   version bleeds the blue into the white tail in soft horizontal
   bands, which looks like a rendering fault rather than a highlight.
   Hard edges are the correct treatment for this palette.

     cradle : 0..56px solid white - the icon needs a stable backdrop.
     bar    : 56px..75% solid brand blue. The resource name is measured
              at 20-25% of the row, so 75% clears it with a wide
              margin and the label sits wholly on solid blue.
     tail   : 75%..100% white at rest.

   HOW THE HOVER EXTENSION WORKS
   The gradient itself is "white to 56px, then blue to the end" with no
   tail in it, and the visible length is driven by background-size:
   75% at rest, 100% on hover. background-size is animatable, so the
   bar grows to the row's end over .18s instead of snapping - the row
   visually fills in as you point at it, which reads as deliberate
   rather than as a glitch.

   background-image is NOT animatable, so this is done by resizing the
   image rather than by swapping in a second gradient: two separate
   gradients would hard-cut, and one longer gradient with a
   repositioned seam would move the icon cradle with it.

   shared.css sets a transition that omits background-size, so it is
   restated here (this file loads after shared.css) or the growth would
   be instant. */
html.esdm-theme-4 body:not(.dark) .tenant-resources .list-view{
    background:linear-gradient(90deg,
        #ffffff 0,
        #ffffff calc(56px * var(--esdm-zoom,1)),
        #0078d4 calc(56px * var(--esdm-zoom,1))) no-repeat !important;
    background-size:75% 100% !important;
    transition:background-size .18s ease,border-color .15s ease,box-shadow .15s ease !important;
    border:1px solid #0078d4 !important;
    box-shadow:
        0 1px 1px rgba(0,0,0,.06),
        0 3px 10px rgba(0,0,0,.07) !important;
}
html.esdm-theme-4 body:not(.dark) .tenant-resources .list-view:hover{
    border-color:#0078d4 !important;
    background-size:100% 100% !important;
    box-shadow:
        0 2px 4px rgba(0,0,0,.08),
        0 8px 20px rgba(0,80,150,.18) !important;
}
html.esdm-theme-4 body:not(.dark) .tenant-resources .list-view .list-view-label{
    color:#ffffff !important;
    -webkit-text-fill-color:#ffffff !important;
    font-weight:600 !important;
    box-sizing:border-box !important;
    padding-left:8px !important;
}
