body[data-canvas-readonly="1"] #addWidgetBtn,
body[data-canvas-readonly="1"] #cvSaveBtn,
body[data-canvas-readonly="1"] .save-pill,
body[data-canvas-readonly="1"] .ebar-center .mode-switch,
body[data-canvas-readonly="1"] #cvThemeBtn,
body[data-canvas-readonly="1"] .cmd-btn,
body[data-canvas-readonly="1"] #cvAccessBtn,
body[data-canvas-readonly="1"] #cvPublicShareBtn,
body[data-canvas-readonly="1"] #cvDeleteBtn,
body[data-canvas-readonly="1"] .ebar-div,
body[data-canvas-readonly="1"] [data-action="delete-widget"],
body[data-canvas-readonly="1"] [data-action="duplicate-widget"],
body[data-canvas-readonly="1"] .cv-resizer,
body[data-canvas-readonly="1"] #cvBoard .w .w-handle {
  display: none !important;
}
body[data-canvas-readonly="1"] .dash-name-box {
  cursor: default !important;
  pointer-events: none;
}
body[data-canvas-readonly="1"] #cvBoard .w {
  cursor: default !important;
  pointer-events: auto;
}
body[data-canvas-readonly="1"] #cvBoard .w.dragging {
  transform: none !important;
  opacity: 1 !important;
}
body[data-canvas-readonly="1"] .einsp,
body[data-canvas-readonly="1"] .ebar-ctx .edit-only {
  display: none !important;
}
.screen[data-screen="editor"].active body[data-canvas-readonly="1"] #cvBoard,
body[data-canvas-readonly="1"] .screen[data-screen="editor"].active #cvBoard {
}
body[data-canvas-readonly="1"] .screen[data-screen="editor"].active::before {
  content: 'Skrivebeskyttet visning - du er ikke ejer af dette dashboard';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber, #f59e0b);
  color: #000;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  pointer-events: none;
}

body[data-canvas-locked="1"] #cfg-current-user,
body[data-canvas-locked="1"] label[for="cfg-current-user"],
body[data-canvas-locked="1"] #cfg-current-user + span,
body[data-canvas-locked="1"] .field:has(#cfg-current-user) {
  display: none !important;
}
body[data-canvas-locked="1"] .screen[data-screen="editor"].active::after {
  content: 'Personligt dashboard - viser kun dine egne tal';
  position: absolute;
  top: 6px;
  right: 16px;
  background: var(--accent-soft, rgba(59,158,255,.18));
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  border: 1px solid var(--accent);
  pointer-events: none;
}

body.canvas-tv-mode[data-canvas-readonly="1"] .screen[data-screen="editor"].active::before,
body.canvas-tv-mode[data-canvas-locked="1"] .screen[data-screen="editor"].active::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 768px) {
  body[data-canvas-readonly="1"] .screen[data-screen="editor"].active::before,
  body[data-canvas-locked="1"] .screen[data-screen="editor"].active::after {
    top: 58px;
    left: 12px;
    right: 12px;
    transform: none;
    padding: 6px 10px;
    text-align: center;
    font-size: .68rem;
    line-height: 1.25;
    white-space: normal;
  }
  body[data-canvas-readonly="1"] .screen[data-screen="editor"].active .ecanvas,
  body[data-canvas-locked="1"] .screen[data-screen="editor"].active .ecanvas {
    padding-top: 60px !important;
  }
  body[data-canvas-readonly="1"][data-canvas-locked="1"] .screen[data-screen="editor"].active::after {
    top: 92px;
  }
  body[data-canvas-readonly="1"][data-canvas-locked="1"] .screen[data-screen="editor"].active .ecanvas {
    padding-top: 94px !important;
  }
}

body.tv-low-power.tv-low-power *,
body.tv-low-power.tv-low-power *::before,
body.tv-low-power.tv-low-power *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  animation: none !important;
  transition: none !important;
  box-shadow: none !important;
}
body.canvas-fullscreen section.screen:not(.active) {
  visibility: hidden !important;
}

body.tv-low-power .cv-widget,
body.tv-low-power .w,
body.tv-low-power .cv-card,
body.tv-low-power [class*="glass"] {
  background-color: var(--card-solid, var(--card, #14141b)) !important;
}
