/* CPGCBL EMD R11.5.1 — static industrial imagery and clearer plant artwork.
 * Only loaded by index.html (main workspace). Native /work-form is untouched.
 * The original user's Matarbari photos and existing theme shade gradients remain.
 * No JS, network requests, D1, R2 or image-data replacement.
 */

/* Theme-specific photograph correction. The previous R11.5 assets already contain
   their own soft fade; a second opaque gradient was obscuring the plant. */
body.r107-ui[data-theme="light"] #content .r114-dashboard{--r1151-shade:#ffffff}
body.r107-ui[data-theme="hybrid"] #content .r114-dashboard{--r1151-shade:#ffffff}
body.r107-ui[data-theme="dark"] #content .r114-dashboard{--r1151-shade:#031a2c}
body.r107-ui[data-theme="slate"] #content .r114-dashboard{--r1151-shade:#102e3b}

/* Daily Work hero: plant stays still; crop emphasizes chimney and roof.
   Photo and shade are separate layers so text remains highly legible. */
body.r107-ui #content .r114-dashboard .r114-hero::before{
  background-image:var(--dw-hero-image)!important;
  background-repeat:no-repeat!important;
  background-size:auto 155%!important;
  background-position:right 43%!important;
  filter:contrast(1.21) saturate(1.16) brightness(1.06)!important;
  opacity:1!important;
  animation:none!important;
  transform:none!important;
}
body.r107-ui[data-theme="dark"] #content .r114-dashboard .r114-hero::before,
body.r107-ui[data-theme="slate"] #content .r114-dashboard .r114-hero::before{
  filter:contrast(1.18) saturate(1.22) brightness(1.33)!important;
}
body.r107-ui #content .r114-dashboard .r114-hero::after{
  content:""!important;
  position:absolute!important;
  inset:0!important;
  height:auto!important;
  width:auto!important;
  z-index:-1!important;
  pointer-events:none!important;
  opacity:1!important;
  background:linear-gradient(90deg,
    var(--r1151-shade,var(--dw-card)) 0%,
    var(--r1151-shade,var(--dw-card)) 21%,
    color-mix(in srgb,var(--r1151-shade,var(--dw-card)) 92%,transparent) 35%,
    color-mix(in srgb,var(--r1151-shade,var(--dw-card)) 51%,transparent) 53%,
    color-mix(in srgb,var(--r1151-shade,var(--dw-card)) 13%,transparent) 73%,
    transparent 88%)!important;
  animation:none!important;
  transform:none!important;
}
/* Calm separation line without hiding the plant. */
body.r107-ui #content .r114-dashboard .r114-hero{
  background:var(--r1151-shade,var(--dw-card))!important;
  box-shadow:inset 0 -2px 0 color-mix(in srgb,var(--dw-accent) 33%,transparent),var(--dw-shadow)!important;
}

/* Other main-workspace page heroes (Assets, Greasing, Spares, etc):
   retain the original soft shade while allowing more of the right-hand photo. */
body.r107-ui #content :is(.r5-hero,.r4-hero,.daily-hero)::after{
  width:55%!important;
  background-image:linear-gradient(90deg,
     var(--r113-surface) 0%,
     color-mix(in srgb,var(--r113-surface) 72%,transparent) 14%,
     transparent 43%),var(--r113-plant)!important;
  background-size:100% 100%,auto 148%!important;
  background-position:left center,right 44%!important;
  background-repeat:no-repeat!important;
  mask-image:linear-gradient(90deg,transparent 0%,#000 15%)!important;
  opacity:1!important;
  filter:contrast(1.13) saturate(1.12)!important;
  animation:none!important;
  transform:none!important;
}
/* Reports header: avoid applying a second heavy white/navy wash. */
body.r107-ui #content .r115-hero::before{
  background:var(--r113-plant) right 46% / auto 172% no-repeat!important;
  opacity:1!important;
  filter:contrast(1.15) saturate(1.16)!important;
  animation:none!important;
  transform:none!important;
}
body.r107-ui[data-theme="dark"] #content .r115-hero::before,
body.r107-ui[data-theme="slate"] #content .r115-hero::before{
  filter:contrast(1.13) saturate(1.21) brightness(1.29)!important;
}
body.r107-ui #content .r115-hero::after{
  background:linear-gradient(90deg,
    var(--panel) 0%,
    var(--panel) 21%,
    color-mix(in srgb,var(--panel) 90%,transparent) 35%,
    color-mix(in srgb,var(--panel) 49%,transparent) 54%,
    color-mix(in srgb,var(--panel) 10%,transparent) 72%,
    transparent 88%)!important;
  opacity:1!important;
  animation:none!important;
  transform:none!important;
}
/* Sidebar's supplied plant photo must remain visible, without removing its fade. */
body.r107-ui .side-foot::before{
  background-size:100% 100%,auto 146%!important;
  background-position:center,right 46%!important;
  background-repeat:no-repeat!important;
  opacity:.98!important;
  filter:contrast(1.13) saturate(1.1)!important;
  animation:none!important;
  transform:none!important;
}

/* Static-only illustration policy for the main website. Do not disable loaders,
   chart redraw, modal transitions or accessibility focus animations. */
body.r107-ui #content .r713-engine,
body.r107-ui #content .r713-pulse,
body.r107-ui #content .r713-spark,
body.r107-ui #content .r710-hero-bearing svg,
body.r107-ui #content .r712-electric-svg .r712-rotor,
body.r107-ui #content .r712-electric-svg .r712-current,
body.r107-ui #content .r712-grease-hero-art .r712-gear,
body.r107-ui #content .r712-grease-hero-art .r712-timeline,
body.r107-ui #content .r712-grease-hero-art .r712-drop,
body.r107-ui #content .r713-hero-art::after,
body.r107-ui #content .r4-orbit,
body.r107-ui #content .r4-orbit::before,
body.r107-ui #content .r4-orbit::after,
body.r107-ui #content .r7102-hero-svg .r7102-balls,
body.r107-ui #content .r7102-bearing-hero-art .r7102-balls,
html[data-emd-page="dashboard"] body.r107-ui #content .emd-work-art .emd-dw-rotor,
html[data-emd-page="dashboard"] body.r107-ui #content .emd-work-art .emd-dw-current{
  animation:none!important;
  transition:none!important;
}
body.r107-ui #content .r713-engine,
body.r107-ui #content .r710-hero-bearing svg,
body.r107-ui #content .r712-electric-svg .r712-rotor,
body.r107-ui #content .r712-grease-hero-art .r712-gear,
body.r107-ui #content .r4-orbit,
body.r107-ui #content .r7102-hero-svg .r7102-balls,
html[data-emd-page="dashboard"] body.r107-ui #content .emd-work-art .emd-dw-rotor{
  transform:none!important;
}
/* Bearing catalog photography is technical reference material, not a turntable. */
body.r107-ui #content .r79-catalog-grid .r7102-catalog-turntable img{
  animation:none!important;
  transform:none!important;
  will-change:auto!important;
}
/* Mobile: don't allow the right-side photograph to obscure headings. */
@media(max-width:720px){
  body.r107-ui #content .r114-dashboard .r114-hero::before{
    background-size:auto 135%!important;
    background-position:right 45%!important;
  }
  body.r107-ui #content .r114-dashboard .r114-hero::after{
    background:linear-gradient(90deg,
      var(--r1151-shade,var(--dw-card)) 0%,
      color-mix(in srgb,var(--r1151-shade,var(--dw-card)) 95%,transparent) 36%,
      color-mix(in srgb,var(--r1151-shade,var(--dw-card)) 58%,transparent) 70%,
      transparent 100%)!important;
  }
  body.r107-ui #content :is(.r5-hero,.r4-hero,.daily-hero)::after{width:46%!important}
}
