/* V4.8 Operations overview. Scoped to the main dashboard. */
body.jfr-smart-dashboard {
  background: radial-gradient(ellipse at 74% -12%, #e2eaff 0, transparent 58%), #f3f5fb !important;
}
[data-jfr-theme="dark"] body.jfr-smart-dashboard {
  background: radial-gradient(ellipse at 75% -12%, #1a2a4d 0, transparent 60%), #101827 !important;
}
#page-dashboard .v48-dashboard {--stage-text:#17284d;--stage-muted:#526782;display:grid;gap:15px;overflow:visible;}
[data-jfr-theme="dark"] #page-dashboard .v48-dashboard {--stage-text:#edf4ff;--stage-muted:#b2c4e2;}
#page-dashboard .v48-dashboard .v255-dashboard-head {margin:0;gap:12px;}
#page-dashboard .v48-dashboard .v255-welcome h1 {color:var(--stage-text);font-size:clamp(21px,2.4vw,31px);margin:0 0 4px;}
#page-dashboard .v48-dashboard .v255-welcome h1 span {display:none;}
#page-dashboard .v48-dashboard .v255-welcome p {color:var(--stage-muted);}

#page-dashboard .v48-dashboard .v255-hero-banner {
  min-height:clamp(148px,15vw,216px);
  padding:clamp(17px,2.2vw,31px);
  margin:0;
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:center;
  justify-content:space-between;
  border:1px solid #587fe1 !important;
  border-radius:26px !important;
  background:radial-gradient(ellipse at 76% 24%,#3a57af77,transparent 52%),linear-gradient(113deg,#101b39 0%,#182c61 54%,#13516b 100%) !important;
  box-shadow:0 18px 37px #1d337b37 !important;
}
#page-dashboard .v48-dashboard .v255-hero-banner::before {
  content:"";
  position:absolute;
  inset:0;
  width:auto;
  height:auto;
  filter:none;
  opacity:1;
  pointer-events:none;
  z-index:-1;
  background-image:linear-gradient(#94b1f112 1px,transparent 1px),linear-gradient(90deg,#94b1f112 1px,transparent 1px);
  background-size:31px 31px;
  mask-image:linear-gradient(90deg,transparent 29%,#000);
}
#page-dashboard .v48-dashboard .v255-hero-banner::after {
  content:"";
  inset:0;
  width:auto;
  height:auto;
  filter:none;
  z-index:2;
  border:0;
  border-radius:0;
  box-shadow:none;
  pointer-events:none;
  background:linear-gradient(111deg,transparent 43%,#c3eaff1c 50%,transparent 57%);
  transform:translateX(-112%);
}
#page-dashboard .v48-entrance .v255-hero-banner::after {animation:v48-sweep 1.9s .25s ease-out 1 both;}
#page-dashboard .v48-dashboard .v48-gateway-art {
  position:absolute;
  right:0;
  bottom:-26%;
  width:clamp(270px,39%,495px);
  height:auto;
  pointer-events:none;
  opacity:.98;
  animation:v48-hover 8s ease-in-out infinite;
}
#page-dashboard .v48-dashboard .v255-hero-brand {position:relative;z-index:1;min-width:0;max-width:63%;animation:none;}
#page-dashboard .v48-dashboard .v255-hero-brand > div {min-width:0;}
#page-dashboard .v48-dashboard .v255-hero-brand .orb {
  display:none;
  background:linear-gradient(150deg,#fff,#dceaff);
  box-shadow:0 7px 0 #8da7d948,0 13px 26px #080f2a6e;
}
#page-dashboard .v48-dashboard .v255-hero-brand h2 {
  margin:0;
  color:#fff;
  font-size:clamp(25px,3vw,44px);
  letter-spacing:-.058em;
  line-height:1.03;
  text-wrap:balance;
}
#page-dashboard .v48-dashboard .v255-hero-brand p {color:#d0e4ff !important;margin:7px 0 0;font-size:clamp(12px,1.2vw,14px);line-height:1.5;max-width:390px;}
.v48-edition {display:inline-flex;align-items:center;gap:8px;margin-bottom:8px;color:#d2edff;font-size:10px;font-weight:850;letter-spacing:.17em;}
.v48-edition i {width:5px;height:5px;border-radius:50%;background:#7ff5dd;box-shadow:0 0 11px #7ff5dd;}
#page-dashboard .v48-dashboard .v255-hero-right {position:absolute;right:16px;top:16px;z-index:1;margin:0;}
#page-dashboard .v48-dashboard .v255-date-card {padding:7px 10px;border:1px solid #d8e4ff42;background:#102644a6;border-radius:11px;}
#page-dashboard .v48-dashboard .v255-date-card small {color:#c9e4ff !important;}
#page-dashboard .v48-dashboard .v32-sync {margin:0;}

.v48-group {min-width:0;}
.v48-group > header {display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:0 0 11px;}
.v48-group > header h3 {margin:0;color:var(--stage-text);font-size:clamp(19px,2.1vw,27px);letter-spacing:-.036em;}
.v48-group > header p {margin:0;color:var(--stage-muted);font-size:12px;}
#page-dashboard .v48-dashboard :is(.v255-big-grid,.v255-mini-grid,.v255-mid-grid) {display:grid;gap:12px;margin:0;grid-template-columns:repeat(4,minmax(0,1fr)) !important;}
#page-dashboard .v48-dashboard .v255-mid-grid {grid-template-columns:repeat(5,minmax(0,1fr)) !important;}
#page-dashboard .v48-dashboard .v255-mini-grid {grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
#page-dashboard .v48-dashboard [data-kpi]:nth-child(n) {
  --tile:#e9f0ff;
  --tile-edge:#a0b8f5;
  display:block;
  position:relative;
  isolation:isolate;
  min-width:0;
  min-height:104px;
  padding:12px;
  border-radius:18px !important;
  background:linear-gradient(148deg,var(--tile),var(--v47-paper) 83%) !important;
  border:1px solid var(--v47-line) !important;
  box-shadow:0 8px 19px #1a33660d !important;
  transition:box-shadow .24s ease,transform .24s ease;
}
#page-dashboard .v48-entrance [data-kpi]:nth-child(n) {animation:v48-enter .46s var(--v48-delay,0ms) ease-out both;}
#page-dashboard .v48-dashboard [data-kpi]:nth-child(3n+2) {--tile:#e1f6f5;--tile-edge:#81cfc7;}
#page-dashboard .v48-dashboard [data-kpi]:nth-child(3n) {--tile:#f0eaff;--tile-edge:#c5a7ee;}
#page-dashboard .v48-dashboard :is([data-kpi="paymentPending"],[data-kpi="expenses"],[data-kpi="offers"]) {--tile:#fff1d8 !important;--tile-edge:#e7b65d;}
#page-dashboard .v48-dashboard :is([data-kpi="cancelled"],[data-kpi="visa30"],[data-kpi="visaWatch"]) {--tile:#ffedf4 !important;--tile-edge:#e6a3b8;}
#page-dashboard .v48-dashboard [data-kpi]::before {content:"";position:absolute;inset:0 22px auto;height:1px;background:linear-gradient(90deg,transparent,var(--tile-edge),transparent);}
#page-dashboard .v48-dashboard [data-kpi]::after {
  inset:0;
  width:auto;
  height:auto;
  border-radius:inherit;
  background:linear-gradient(113deg,transparent 36%,#fff8 50%,transparent 64%);
  transform:translateX(-112%);
  pointer-events:none;
}
#page-dashboard .v48-dashboard [data-kpi]:is(:hover,:focus-visible)::after {animation:v48-sweep .8s ease-out 1 both;}
#page-dashboard .v48-dashboard [data-kpi]:is(:hover,:focus-visible) {transform:translateY(-3px) !important;box-shadow:0 16px 30px #25457924 !important;}
#page-dashboard .v48-dashboard [data-kpi] .ico {
  position:relative;
  inset:auto;
  display:grid;
  place-items:center;
  width:57px;
  height:57px;
  margin:0;
  border:0;
  background:transparent;
  box-shadow:none;
  flex:none;
}
#page-dashboard .v48-dashboard [data-kpi] .ico img {display:block;width:100%;height:100%;object-fit:contain;transition:transform .25s cubic-bezier(.2,.75,.25,1);}
#page-dashboard .v48-dashboard [data-kpi]:is(:hover,:focus-visible) .ico img {transform:translateY(-4px) rotate(-5deg) scale(1.07);}
#page-dashboard .v48-dashboard .v255-big-card .ico {width:clamp(52px,5vw,72px);height:clamp(52px,5vw,72px);}
#page-dashboard .v48-dashboard .v255-big-top {display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:center;}
#page-dashboard .v48-dashboard [data-kpi] :is(h3,b,small,strong,p) {overflow-wrap:anywhere;}
#page-dashboard .v48-dashboard .v255-big-card h3 {font-size:13px;color:var(--stage-text);line-height:1.25;margin:0 0 4px;}
#page-dashboard .v48-dashboard .v255-big-card strong {display:block;color:var(--stage-text);font-size:clamp(24px,3vw,37px);line-height:1.1;font-variant-numeric:tabular-nums;}
#page-dashboard .v48-dashboard [data-kpi] :is(p,small) {color:var(--stage-muted);line-height:1.35;}
#page-dashboard .v48-dashboard .v255-big-foot {margin-top:7px;}
#page-dashboard .v48-dashboard :is(.v255-foot-note,.v255-spark,.spark,.v255-bars,.v255-ring) {display:none;}
#page-dashboard .v48-dashboard .v255-mid-card {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:5px;padding:12px;}
#page-dashboard .v48-dashboard .v255-mid-card .ico {width:44px;height:44px;}
#page-dashboard .v48-dashboard .v255-mini-card {display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:9px;align-content:center;}
#page-dashboard .v48-dashboard .v255-mini-card .ico {grid-row:1/4;align-self:center;}
#page-dashboard .v48-dashboard .v255-mini-card :is(b,small,p) {margin:0;}
#page-dashboard .v48-dashboard .v255-right-rail {display:grid;grid-template-columns:1fr 1fr;gap:12px;}

[data-jfr-theme="dark"] #page-dashboard .v48-dashboard [data-kpi]:nth-child(n) {background:linear-gradient(145deg,#223459,#17243b 84%) !important;}
[data-jfr-theme="dark"] #page-dashboard .v48-dashboard [data-kpi]::after {background:linear-gradient(113deg,transparent 36%,#9cc6ff30 50%,transparent 64%);}
@keyframes v48-sweep {from {transform:translateX(-112%);} to {transform:translateX(112%);}}
@keyframes v48-hover {50% {transform:translateY(-7px);}}
@keyframes v48-enter {from {opacity:0;translate:0 8px;} to {opacity:1;translate:0 0;}}

@media(max-width:1150px) {
  #page-dashboard .v48-dashboard .v255-big-grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  #page-dashboard .v48-dashboard .v255-mid-grid {grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
}
@media(max-width:800px) {
  #page-dashboard .v48-dashboard {gap:16px;}
  #page-dashboard .v48-dashboard .v255-hero-banner {min-height:146px;padding:16px;}
  #page-dashboard .v48-dashboard .v255-hero-brand {max-width:71%;}
  #page-dashboard .v48-dashboard .v48-gateway-art {right:-19%;bottom:-35%;opacity:.57;}
  #page-dashboard .v48-dashboard .v255-mid-grid,#page-dashboard .v48-dashboard .v255-mini-grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  #page-dashboard .v48-dashboard [data-kpi]:nth-child(n) {padding:10px;min-height:104px;}
  #page-dashboard .v48-dashboard .v255-big-card .ico {width:47px;height:47px;}
  #page-dashboard .v48-dashboard .v255-right-rail {grid-template-columns:1fr;}
}
@media(max-width:450px) {
  #page-dashboard .v48-dashboard .v255-hero-banner {min-height:129px;}
  #page-dashboard .v48-dashboard .v255-hero-brand {max-width:82%;}
  #page-dashboard .v48-dashboard .v48-gateway-art {right:-26%;width:265px;opacity:.43;}
  #page-dashboard .v48-dashboard .v255-big-grid {gap:8px;}
  #page-dashboard .v48-dashboard .v255-big-top {grid-template-columns:minmax(0,1fr);gap:2px;}
  #page-dashboard .v48-dashboard .v255-big-card .ico {width:51px;height:51px;}
  #page-dashboard .v48-dashboard :is(.v255-mid-card,.v255-mini-card) .ico {width:36px;height:36px;}
}
@media(prefers-reduced-motion:reduce) {
  #page-dashboard .v48-dashboard *,#page-dashboard .v48-dashboard *::before,#page-dashboard .v48-dashboard *::after {animation:none !important;transition:none !important;}
  #page-dashboard .v48-dashboard [data-kpi]:is(:hover,:focus-visible),
  #page-dashboard .v48-dashboard [data-kpi]:is(:hover,:focus-visible) .ico img {transform:none !important;}
}

/* Keep the live schedule near the metrics without widening the small-screen layout. */
#page-dashboard .v48-dashboard .v50-schedule {margin:0;border:1px solid var(--v47-line);border-radius:18px;}
#page-dashboard .v48-dashboard .v50-schedule .list-rows {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;}
#page-dashboard .v48-dashboard .v50-schedule .list-row {min-width:0;overflow-wrap:anywhere;}
#page-dashboard .v48-dashboard .v255-lower-grid:has(> .panel:only-child) {grid-template-columns:minmax(0,1fr) !important;}
@media(max-width:640px) {
  #page-dashboard .v48-dashboard .v50-schedule .list-rows {grid-template-columns:minmax(0,1fr);}
}
