/* Vitati360 interactive demo — styles for what the demo adds on top of the
   captured app pages: locks, the demo bar, panels and toasts. Prefixed vd-
   so nothing collides with the app's own classes. */

.vd-lock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2em;
  padding: 1px 6px;
  border-radius: 4px;
  color: #b88a3e;
  background: rgba(255, 183, 77, 0.1);
  cursor: pointer;
  vertical-align: middle;
}
/* A whole section's content, locked: same footprint, centred lock. */
.vd-locked-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  min-height: inherit;
  border: 1px dashed rgba(255, 183, 77, 0.28);
  border-radius: 8px;
  color: #b88a3e;
  font: 500 12px/1.4 Inter, system-ui, sans-serif;
  background: rgba(255, 183, 77, 0.04);
  cursor: pointer;
}
.vd-locked-block:hover {
  background: rgba(255, 183, 77, 0.1);
  color: #ffb74d;
}
.vd-locked-block .vd-lock {
  background: none;
}

/* Locks take the place of numbers, which the app right-aligns. */
td:has(> .vd-lock),
[role='gridcell']:has(> .vd-lock) {
  text-align: right;
}
.vd-lock:hover {
  background: rgba(255, 183, 77, 0.22);
  color: #ffb74d;
}

body {
  padding-bottom: 52px !important;
}
.vd-bar {
  position: fixed;
  z-index: 2147483000;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 18px;
  font: 500 12.5px/1.4 Inter, system-ui, sans-serif;
  color: #e9ebf0;
  background: rgba(16, 18, 24, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.vd-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffb74d;
}
.vd-sep,
.vd-muted {
  color: #9aa0ad;
}
.vd-chips {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.vd-chip {
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #c9cdd6;
  text-decoration: none;
}
.vd-chip:hover,
.vd-chip.vd-on {
  border-color: #ffb74d;
  color: #fff;
}

.vd-overlay {
  position: fixed;
  z-index: 2147483600;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(5, 6, 9, 0.62);
}
.vd-overlay[hidden] {
  display: none;
}
.vd-panel {
  position: relative;
  width: min(460px, 100%);
  padding: 26px 26px 22px;
  border-radius: 10px;
  font: 400 14px/1.6 Inter, system-ui, sans-serif;
  color: #e9ebf0;
  background: #171a21;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
}
.vd-panel h2 {
  margin: 6px 0 8px;
  font: 600 20px/1.3 'Source Serif 4', Georgia, serif;
  color: #fff;
}
.vd-kicker {
  margin: 0;
  font: 500 10.5px/1 'IBM Plex Mono', ui-monospace, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb74d;
}
.vd-body {
  margin: 0 0 18px;
  color: #b8bdc8;
}
.vd-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  color: #9aa0ad;
  font-size: 22px;
  cursor: pointer;
}
.vd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vd-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #e9ebf0;
  font: 600 13px/1.2 Inter, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.vd-primary {
  border-color: #5b9cff;
  background: #5b9cff;
  color: #0b1020;
}
.vd-ghost {
  border-color: transparent;
  color: #9aa0ad;
}
.vd-small {
  padding: 5px 11px;
  font-size: 12px;
}

.vd-toast {
  position: fixed;
  z-index: 2147483500;
  left: 50%;
  bottom: 64px;
  transform: translate(-50%, 12px);
  padding: 9px 14px;
  border-radius: 7px;
  font: 500 13px/1.4 Inter, system-ui, sans-serif;
  color: #fff;
  background: #2a2f3a;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}
.vd-toast.vd-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .vd-muted,
  .vd-sep {
    display: none;
  }
  .vd-chips {
    margin-left: 0;
    order: 3;
    width: 100%;
    overflow-x: auto;
  }
}

/* SimpleBar (the app's sidebar scroller) anchors its layers with
   [data-simplebar] { position: relative }. Captures strip data-* attributes,
   so the anchor is restored on the element that holds the scroller. */
:has(> .simplebar-wrapper) {
  position: relative;
}

/* A saved formula popup, placed by the runtime next to its figure. */
.vd-popover {
  position: absolute;
  z-index: 2147483100;
  max-width: min(520px, calc(100vw - 16px));
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}
