/* =====================================================================
 * Odoo ERP hero: one record, every app (template-parts/stages/odoo.php)
 *
 * An isometric floor. .ox-world is turned rotateX(58deg) rotateZ(-38deg)
 * and everything on it (plate, tiles, rail) shares those axes. Billboards
 * (.ox-bb: cards, chips, hover notes; and the packet) turn back with
 * rotateZ(38deg) rotateX(-58deg), so their text stands upright and sharp.
 * Nothing that holds 3D children fades as a whole (opacity flattens 3D),
 * so the entrance fades only the faces.
 * ===================================================================== */
.stage-odoo .stage-3d{height:600px;--sc:#5AA0FF;--sc2:rgba(90,160,255,.42);--sc3:rgba(90,160,255,.18)}
.stage-odoo .stage-3d[data-on="po"]{--sc:#C29BFF;--sc2:rgba(194,155,255,.42);--sc3:rgba(194,155,255,.18)}
.stage-odoo .stage-3d[data-on="pos"]{--sc:#3ED598;--sc2:rgba(62,213,152,.4);--sc3:rgba(62,213,152,.16)}
.ox-world i,.ox-world span{font-style:normal}
.ox-world .mk{display:none}

/* ---------- Floor ---------- */
.ox-world{position:absolute;left:122px;top:206px;width:400px;height:400px;transform-style:preserve-3d;transform:rotateX(58deg) rotateZ(-38deg)}
.ox-pool{position:absolute;left:-120px;top:-120px;width:640px;height:640px;transform:translateZ(-46px);background:radial-gradient(closest-side,rgba(47,125,246,.36),rgba(47,125,246,.1) 55%,transparent)}
.ox-plate{position:absolute;inset:0;transform-style:preserve-3d}
.ox-pt{position:absolute;inset:0;border-radius:8px;
  background:linear-gradient(rgba(140,180,255,.07) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(90deg,rgba(140,180,255,.07) 1px,transparent 1px) 0 0/22px 22px,linear-gradient(135deg,#17254A,#0B1326 55%,#0E1A33);
  box-shadow:inset 0 0 0 1px rgba(120,170,255,.32),inset 0 0 70px rgba(47,125,246,.2)}
.ox-pf{position:absolute}
.ox-pfy{left:0;bottom:0;width:100%;height:18px;transform-origin:50% 100%;transform:translateZ(-18px) rotateX(-90deg);background:linear-gradient(180deg,#15233F,#050911);box-shadow:inset 0 1px 0 rgba(140,190,255,.55)}
.ox-pfx{left:0;top:0;width:18px;height:100%;transform-origin:0 50%;transform:translateZ(-18px) rotateY(-90deg);background:linear-gradient(90deg,#03060D,#0E1830);box-shadow:inset -1px 0 0 rgba(140,190,255,.4)}

/* ---------- Tiles: a box of three faces, rising on a marker ---------- */
.ox-t{position:absolute;left:calc(24px + var(--c) * 128px);top:calc(24px + var(--r) * 128px);width:96px;height:96px;transform-style:preserve-3d;
  animation:ox-drop 1s cubic-bezier(.2,.8,.25,1) both;animation-delay:calc(var(--k) * 90ms + 200ms)}
.ox-t .ox-f{position:absolute}
.ox-t .ox-f,.ox-t .ox-sh{animation:ox-fade .55s ease-out both;animation-delay:calc(var(--k) * 90ms + 200ms)}
@keyframes ox-drop{from{transform:translateZ(180px)}}
@keyframes ox-fade{from{opacity:0}}
.ox-sh{position:absolute;inset:-14px;border-radius:26px;transform:translateZ(.5px);background:radial-gradient(closest-side,rgba(0,0,0,.62),rgba(0,0,0,.22) 62%,transparent)}
.ox-glow{position:absolute;inset:-36px;border-radius:44px;transform:translateZ(1px);background:radial-gradient(closest-side,var(--sc2),transparent);opacity:0;transition:opacity .5s}
.ox-box{position:absolute;inset:0;transform-style:preserve-3d;transition:translate .6s cubic-bezier(.3,1.4,.5,1)}
.ox-top{position:absolute;inset:0;display:grid;place-items:center;border-radius:7px;transform:translateZ(26px);color:#8FB8F5;
  background:linear-gradient(140deg,#26375E,#141E37 72%);box-shadow:inset 0 0 0 1px rgba(150,190,255,.26),inset 0 1px 0 rgba(255,255,255,.1);
  transition:background .45s,box-shadow .45s,color .45s}
.ox-top svg{width:36px;height:36px}
.ox-sy{left:0;bottom:0;width:100%;height:26px;display:flex;align-items:center;justify-content:center;transform-origin:50% 100%;transform:rotateX(-90deg);
  background:linear-gradient(180deg,#1C2A4A,#0D1528);box-shadow:inset 0 1px 0 rgba(150,190,255,.32);
  font:600 12.5px/1 var(--f-disp);letter-spacing:.005em;color:rgba(226,236,255,.92);white-space:nowrap;transition:background .45s,color .45s}
.ox-sx{left:0;top:0;width:26px;height:100%;transform-origin:0 50%;transform:rotateY(-90deg);background:linear-gradient(90deg,#060B16,#101A30);box-shadow:inset -1px 0 0 rgba(150,190,255,.22);transition:background .45s}
.ox-ring{position:absolute;inset:12px;border-radius:16px;border:2px solid #fff;opacity:0}
.ox-ok{position:absolute;right:8px;top:8px;width:18px;height:18px;border-radius:50%;opacity:0;transition:opacity .35s;
  background:#1F9D63 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") no-repeat center/11px}
/* A light column from the tile up to its card. */
.ox-stem{position:absolute;left:40px;top:-2px;width:16px;height:50px;transform-origin:50% 100%;transform:translateZ(26px) rotateX(-90deg);opacity:0;transition:opacity .35s;
  background:linear-gradient(90deg,transparent,var(--sc2) 40%,#fff 50%,var(--sc2) 60%,transparent);
  -webkit-mask-image:linear-gradient(0deg,#000 40%,transparent);mask-image:linear-gradient(0deg,#000 40%,transparent)}
.ox-hit{position:absolute;inset:0;border-radius:7px;transform:translateZ(26px);pointer-events:auto}

/* Visited: lit edge and a tick. Current: raised, filled with the flow's colour. */
.ox-t:has(>.lit.on) .ox-top,html:not(.js) .ox-t:has(>.lit[data-in="so"]) .ox-top{color:#fff;background:linear-gradient(140deg,var(--sc3),#141E37 78%),#1A2645;box-shadow:inset 0 0 0 1.5px var(--sc),inset 0 1px 0 rgba(255,255,255,.14)}
.ox-t:has(>.lit.on) .ox-sy,html:not(.js) .ox-t:has(>.lit[data-in="so"]) .ox-sy{color:#fff;background:linear-gradient(180deg,#24365E,#0F182E)}
.ox-t:has(>.lit.on) .ox-ok,html:not(.js) .ox-t:has(>.lit[data-in="so"]) .ox-ok{opacity:1}
.ox-t:has(>.cur.on) .ox-box{translate:0 0 14px}
.ox-t:has(>.cur.on) .ox-top{background:linear-gradient(140deg,var(--sc),rgba(24,36,64,.96) 88%);box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.8),0 0 44px var(--sc2)}
.ox-t:has(>.cur.on) .ox-glow,.ox-t:has(>.cur.on) .ox-stem{opacity:1}
.ox-t:has(>.cur.on) .ox-ok{opacity:0}
.ox-t:has(>.cur.on) .ox-ring{animation:ox-ring 1.6s ease-out infinite}
@keyframes ox-ring{0%{opacity:.85;transform:scale(.7)}100%{opacity:0;transform:scale(1.25)}}
/* Hover: the tile lifts and says what the app does. */
.ox-t.hot .ox-box{translate:0 0 20px}
.ox-t.hot .ox-top{box-shadow:inset 0 0 0 1.5px #fff,0 0 36px rgba(255,255,255,.28)}
.ox-t.hot .ox-stem{opacity:1}

/* ---------- The rail and the packet ---------- */
.ox-rail{position:absolute;left:24px;top:24px;width:352px;height:352px;transform:translateZ(50px);transform-style:preserve-3d}
.ox-rail svg{position:absolute;left:0;top:0;width:352px;height:352px;overflow:visible}
.ox-route{opacity:0;transition:opacity .4s}
.stage-3d[data-on="so"] .ox-route.f-so,.stage-3d[data-on="po"] .ox-route.f-po,.stage-3d[data-on="pos"] .ox-route.f-pos,html:not(.js) .ox-route.f-so{opacity:1}
.ox-ghost{fill:none;stroke:rgba(214,228,255,.34);stroke-width:2;stroke-dasharray:2 7;stroke-linecap:round;stroke-linejoin:round}
.ox-seg{fill:none;stroke:var(--sc);stroke-width:3.5;stroke-linecap:round;stroke-dasharray:1;stroke-dashoffset:1}
.ox-seg.on,html:not(.js) .ox-seg[data-in="so"]{stroke-dashoffset:0}
.ox-seg.on{transition:stroke-dashoffset .7s cubic-bezier(.6,0,.3,1)}
.ox-pk{position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;offset-anchor:50% 50%;offset-rotate:0deg;offset-distance:0%;transform:rotateZ(38deg) rotateX(-58deg);
  background:radial-gradient(circle,#fff 0 17%,var(--sc) 34%,var(--sc2) 52%,transparent 70%);opacity:0}
.ox-pk.s0{opacity:1;transition:offset-distance .7s cubic-bezier(.6,0,.3,1),opacity .3s}
.ox-pk.s1{offset-distance:var(--d1)}
.ox-pk.s2{offset-distance:var(--d2)}
.ox-pk.s3{offset-distance:var(--d3)}
.ox-pk.s4{offset-distance:var(--d4)}

/* ---------- Upright cards, chips and hover notes ---------- */
.ox-bb{position:absolute;left:calc(72px + var(--c) * 128px);top:calc(72px + var(--r) * 128px);width:0;height:0;transform:translateZ(var(--lz,90px)) rotateZ(38deg) rotateX(-58deg)}
.ox-cd{position:absolute;left:0;bottom:0;width:max-content;min-width:196px;transform:translateX(calc(-50% + var(--ax,0px)));padding:10px 14px 11px;border-radius:12px;color:#EAF1FF;white-space:nowrap;
  background:linear-gradient(180deg,rgba(25,36,62,.97),rgba(11,16,30,.97));border:1px solid rgba(150,190,255,.28);
  box-shadow:0 22px 40px -18px rgba(0,0,0,.95),0 0 34px -12px var(--sc2),inset 0 1px 0 rgba(255,255,255,.08);
  opacity:0;translate:0 10px;transition:opacity .35s,translate .5s cubic-bezier(.2,.7,.2,1)}
.ox-bb.on .ox-cd,.ox-hc.hot .ox-cd{opacity:1;translate:0 0}
.ox-ap{display:flex;align-items:center;gap:6px;margin-bottom:6px;font:500 9.5px/1 var(--f-mono);letter-spacing:.1em;text-transform:uppercase;color:var(--sc)}
.ox-ap::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--sc);box-shadow:0 0 8px var(--sc)}
.ox-cd b{display:block;font:600 13.5px/1.25 var(--f-disp);letter-spacing:-.005em;color:#fff}
.ox-cd small{display:block;margin-top:4px;font:500 11.5px/1.35 var(--f-body);color:rgba(234,241,255,.74);font-variant-numeric:tabular-nums}
.ox-chip{--lz:54px}
.ox-chip .ox-cd{min-width:0;display:flex;align-items:center;gap:6px;padding:5px 10px 5px 5px;border-radius:99px;white-space:nowrap;
  font:600 11px/1 var(--f-body);color:#E6FFF3;background:rgba(9,15,28,.95);border-color:rgba(62,213,152,.42);box-shadow:0 12px 22px -12px rgba(0,0,0,.95)}
.ox-chip .ox-cd::before{content:"";flex:none;width:15px;height:15px;border-radius:50%;
  background:#1F9D63 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") no-repeat center/9px}
.ox-hc .ox-cd{width:236px;white-space:normal;border-color:rgba(255,255,255,.34)}
.ox-hc .ox-ap{color:#fff}
.ox-hc .ox-ap::before{background:#fff;box-shadow:0 0 8px #fff}
.ox-hc small{margin-top:0;font-size:12px;color:rgba(234,241,255,.86)}
.stage-3d.hovering .ox-bb.on .ox-cd{opacity:.1}
html:not(.js) .ox-chip[data-in="so"] .ox-cd,html:not(.js) .ox-card[data-in="so"]:not([data-until]) .ox-cd{opacity:1;translate:0 0}

/* ---------- The panel: pick a flow ---------- */
.stage-odoo .ox-sp>div{animation:none}
.ox-ctl{width:240px;padding:11px 11px 10px;pointer-events:auto}
.ox-ch{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:1px 2px 7px;font:500 9.5px/1 var(--f-mono);letter-spacing:.09em;text-transform:uppercase;color:rgba(234,241,255,.62)}
.ox-ctl button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:5px;padding:8px 10px 8px 11px;border-radius:10px;
  border:1px solid rgba(255,255,255,.1);background:rgba(255,255,255,.035);color:rgba(234,241,255,.84);font:600 12.5px/1.1 var(--f-body);text-align:left;cursor:pointer;
  transition:border-color .3s,background .3s,color .3s}
.ox-ctl button:hover{color:#fff;border-color:rgba(255,255,255,.26)}
.ox-ctl button.cur,html:not(.js) .ox-ctl button[data-pick="so"]{color:#fff;border-color:var(--sc);background:var(--sc3)}
.ox-ctl button:focus-visible{outline:2px solid var(--sc);outline-offset:2px}
.ox-dots{display:flex;gap:4px;font-style:normal}
.ox-dots i{width:7px;height:7px;border-radius:50%;background:rgba(255,255,255,.15);transition:background .3s,box-shadow .3s}
.ox-dots i.on,html:not(.js) .ox-dots i[data-in="so"]{background:var(--sc);box-shadow:0 0 7px var(--sc)}
.ox-st{display:grid;margin:9px 2px 0;font-size:11.5px;line-height:1.3;color:rgba(234,241,255,.68);white-space:nowrap}
.ox-st>span{grid-area:1/1;display:flex;align-items:center;gap:6px;opacity:0;transition:opacity .35s}
.ox-st>span::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--sc);box-shadow:0 0 8px var(--sc);animation:blink 1.2s infinite}
.ox-st>span.on,html:not(.js) .ox-st>.dn.f-so{opacity:1}
.ox-st>.dn{color:#7EE8B5}
.ox-st>.dn::before{width:14px;height:14px;box-shadow:none;animation:none;
  background:#1F9D63 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") no-repeat center/9px}

/* ---------- Narrower desktops: the stage box grows to the right, so lean back left ---------- */
@media (min-width:900px) and (max-width:1280px){.stage-odoo .stage-3d{translate:-24px 0}}
@media (min-width:900px) and (max-width:1120px){.stage-odoo .stage-3d{translate:-36px 0}}
@media (min-width:900px) and (max-width:980px){.stage-odoo .stage-3d{translate:-44px 0}}

/* ---------- Phones: the stage is scaled to about half, so the words grow to match ---------- */
@media (max-width:899px){
  .stage-odoo .ox-sp{left:50%;top:0;translate:-50% 0}
  .ox-ctl{width:max-content;display:flex;gap:10px;padding:10px}
  .ox-ch,.ox-st,.ox-dots{display:none}
  .ox-ctl button{width:auto;margin:0;padding:13px 18px;font-size:20px}
  .ox-cd{min-width:0;padding:14px 18px 15px;transform:translateX(calc(-50% + var(--ax,0px) * 2.5))}
  .ox-ap{margin-bottom:8px;font-size:13px}
  .ox-ap::before{width:9px;height:9px}
  .ox-cd b{font-size:20px}
  .ox-cd small{margin-top:6px;font-size:17px}
  .ox-chip .ox-cd{padding:7px 14px 7px 7px;gap:8px;font-size:16px}
  .ox-chip .ox-cd::before{width:21px;height:21px;background-size:13px}
}

@media (prefers-reduced-motion:reduce){
  .ox-t,.ox-t .ox-f,.ox-t .ox-sh{animation:none}
  .ox-t:has(>.cur.on) .ox-ring{animation:none}
}
