/* ============================================================
   AssetReady sidebar rearrange (2026-11-04)
   Byte-identical in all five apps, loaded after shell.css by _shell.html for
   users shell_ui.conf names. Every rule except @font-face and @keyframes sits
   under .acshell-fiori, the class shell-fiori.js puts on the sidebar and top bar.
   ============================================================ */

@font-face { font-family: 'SAP72'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fiori/fonts/72-Regular.woff2') format('woff2'); }
@font-face { font-family: 'SAP72'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fiori/fonts/72-Semibold.woff2') format('woff2'); }
@font-face { font-family: 'SAP72'; font-style: normal; font-weight: 700; font-display: swap; src: url('../fiori/fonts/72-Bold.woff2') format('woff2'); }

.acshell-sidebar.acshell-fiori,
.acshell-topbar.acshell-fiori {
  font-family: 'SAP72', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.acshell-topbar.acshell-fiori .acshell-breadcrumb .acshell-current { font-weight: 600; }

/* Corner glow: the sidebar's own navy with its own blue in two corners. */
.acshell-sidebar.acshell-fiori {
  --acshell-ease: cubic-bezier(.22, .8, .3, 1);
  background:
    radial-gradient(130% 46% at 0% 0%, rgba(0, 85, 183, .62), rgba(0, 85, 183, 0) 72%),
    radial-gradient(120% 34% at 100% 100%, rgba(0, 85, 183, .42), rgba(0, 85, 183, 0) 74%),
    var(--acshell-navy);
}

/* Fades at the menu's edges are a mask, so they work over the gradient. */
.acshell-sidebar.acshell-fiori .acshell-nav {
  position: relative;
  min-height: 0;
  padding: 2px 8px 8px;
  -webkit-mask-image: linear-gradient(transparent, #000 var(--acshell-mt, 0px), #000 calc(100% - var(--acshell-mb, 0px)), transparent);
          mask-image: linear-gradient(transparent, #000 var(--acshell-mt, 0px), #000 calc(100% - var(--acshell-mb, 0px)), transparent);
}
.acshell-sidebar.acshell-fiori .acshell-nav.acshell-more-up { --acshell-mt: 26px; }
.acshell-sidebar.acshell-fiori .acshell-nav.acshell-more-down { --acshell-mb: 26px; }

/* The separator: a line leaving the sidebar's edge, with a node where the
   feeder for the current page drops off it. */
.acshell-sidebar.acshell-fiori .acshell-sep { position: relative; height: 7px; margin: 8px -8px 0; }
.acshell-sidebar.acshell-fiori .acshell-grp:first-child .acshell-sep { margin-top: 4px; }
.acshell-sidebar.acshell-fiori .acshell-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  height: 1px;
  overflow: hidden;
  transform-origin: left;
  background: linear-gradient(90deg, #2A7BD8, var(--acshell-blue) 45%, rgba(0, 85, 183, 0));
}
.acshell-sidebar.acshell-fiori .acshell-line::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 72px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff, rgba(255, 255, 255, 0));
  transform: translateX(-80px);
}
.acshell-sidebar.acshell-fiori .acshell-node {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acshell-navy);
  border: 1.5px solid #2A7BD8;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.acshell-sidebar.acshell-fiori .acshell-lit .acshell-line {
  height: 1.5px;
  background: linear-gradient(90deg, #fff, #5B9BD5 34%, var(--acshell-blue) 68%, rgba(0, 85, 183, 0));
}
.acshell-sidebar.acshell-fiori .acshell-lit .acshell-node {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(91, 155, 213, .35);
}
.acshell-sidebar.acshell-fiori .acshell-lit .acshell-run .acshell-line::after { animation: acshellStreak .8s var(--acshell-ease) both; }

.acshell-sidebar.acshell-fiori .acshell-group-label {
  padding: 0 10px;
  margin: 3px 0 2px;
  color: rgba(255, 255, 255, .6);
  transition: color .3s;
}
.acshell-sidebar.acshell-fiori .acshell-lit .acshell-group-label { color: #fff; }

/* Rows: 31px (36 in the classic sidebar), so the 20 items fit a 1080p window. */
.acshell-sidebar.acshell-fiori .acshell-link { min-height: 31px; padding: 5px 10px; }
.acshell-sidebar.acshell-fiori .acshell-link svg { transition: transform .16s var(--acshell-ease); }
.acshell-sidebar.acshell-fiori .acshell-link:hover svg { transform: translateX(2px); }
.acshell-sidebar.acshell-fiori .acshell-link:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.acshell-sidebar.acshell-fiori .acshell-link-img { margin: -3px 0; }
.acshell-sidebar.acshell-fiori .acshell-link.acshell-active {
  background: linear-gradient(90deg, rgba(0, 85, 183, .85), rgba(0, 85, 183, .16));
  font-weight: 600;
}
.acshell-sidebar.acshell-fiori .acshell-link.acshell-active::before { content: none; }
.acshell-sidebar.acshell-fiori.acshell-narrow .acshell-link { padding-inline: 8px; gap: 6px; }
.acshell-sidebar.acshell-fiori.acshell-narrow .acshell-ai-badge { padding-inline: 5px; }

/* Marker and feeder share one easing so they travel as one piece. */
.acshell-sidebar.acshell-fiori .acshell-marker,
.acshell-sidebar.acshell-fiori .acshell-feeder {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  transition: top .3s var(--acshell-ease), height .3s var(--acshell-ease);
}
.acshell-sidebar.acshell-fiori .acshell-marker { left: 2px; width: 3px; height: 22px; background: #fff; border-radius: 2px; }
.acshell-sidebar.acshell-fiori .acshell-feeder { left: 2.75px; width: 1.5px; background: linear-gradient(#fff, #5B9BD5); }

/* Each page load: lines draw, rows slide in, then the feeder drops. */
.acshell-sidebar.acshell-fiori .acshell-cascade .acshell-line { animation: acshellDraw .34s var(--acshell-ease) both; animation-delay: calc(var(--acshell-i) * 17ms); }
.acshell-sidebar.acshell-fiori .acshell-cascade .acshell-node,
.acshell-sidebar.acshell-fiori .acshell-cascade .acshell-group-label { animation: acshellFade .24s ease both; animation-delay: calc(var(--acshell-i) * 17ms); }
.acshell-sidebar.acshell-fiori .acshell-cascade .acshell-link { animation: acshellSlide .26s var(--acshell-ease) both; animation-delay: calc(var(--acshell-i) * 17ms); }
.acshell-sidebar.acshell-fiori .acshell-cascade .acshell-feeder { animation: acshellDrop .26s var(--acshell-ease) both; animation-delay: .46s; transform-origin: top; }
.acshell-sidebar.acshell-fiori .acshell-cascade .acshell-marker { animation: acshellFade .16s ease both; animation-delay: .64s; }
/* While the page loads the marker only appears: SAP 72 arriving must not start a slide. */
.acshell-sidebar.acshell-fiori .acshell-cascade .acshell-marker,
.acshell-sidebar.acshell-fiori .acshell-cascade .acshell-feeder { transition: none; }

@keyframes acshellDraw { from { transform: scaleX(0); } }
@keyframes acshellFade { from { opacity: 0; } }
@keyframes acshellSlide { from { opacity: 0; transform: translateX(-8px); } }
@keyframes acshellDrop { from { transform: scaleY(0); } }
@keyframes acshellStreak { to { transform: translateX(340px); } }

@media (prefers-reduced-motion: reduce) {
  .acshell-sidebar.acshell-fiori *,
  .acshell-sidebar.acshell-fiori *::before,
  .acshell-sidebar.acshell-fiori *::after { animation: none !important; transition: none !important; }
}
