html.scv-element-fullscreen-open,
html.scv-element-fullscreen-open body,
body.scv-element-fullscreen-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.scv-element-fullscreen {
  position: relative;
}

.scv-element-fullscreen.has-scv-fullscreen-overlay > h1:first-of-type,
.scv-element-fullscreen.has-scv-fullscreen-overlay > h2:first-of-type,
.scv-element-fullscreen.has-scv-fullscreen-overlay > h3:first-of-type,
.scv-element-fullscreen.has-scv-fullscreen-overlay > h4:first-of-type {
  padding-inline-end: 48px;
}

.scv-element-fullscreen__toggle {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 7px;
  border: 1px solid rgba(23, 71, 96, .24);
  border-radius: 50%;
  background: #fff;
  color: #174760;
  cursor: pointer;
  line-height: 1;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.scv-element-fullscreen__toggle:hover,
.scv-element-fullscreen__toggle:focus-visible {
  border-color: rgba(23, 71, 96, .48);
  background: #edf4f7;
  outline: none;
}

.scv-element-fullscreen__toggle:active {
  transform: scale(.96);
}

.scv-element-fullscreen__toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scv-element-fullscreen__toggle--inline {
  flex: 0 0 auto;
  margin-inline-start: auto;
}

.scv-element-fullscreen__toggle--overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 30;
  box-shadow: 0 2px 8px rgba(15, 42, 56, .12);
}

.scv-element-fullscreen[data-scv-fullscreen-button-position="left"] > .scv-element-fullscreen__toggle--overlay {
  right: auto;
  left: 8px;
}

.scv-element-fullscreen.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 110100 !important;
  box-sizing: border-box !important;
  width: 100vw !important;
  width: 100dvw !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 0 !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 12px !important;
  border-radius: 0 !important;
  background: #fff !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  box-shadow: none !important;
}

.scv-element-fullscreen.is-fullscreen > .scv-element-fullscreen__toggle--overlay {
  position: fixed;
  top: 10px;
  right: 12px;
  z-index: 110130;
}

.scv-element-fullscreen.is-fullscreen[data-scv-fullscreen-button-position="left"] > .scv-element-fullscreen__toggle--overlay {
  right: auto;
  left: 12px;
}

.scv-element-fullscreen.is-fullscreen .scv-divcrud-list-table-wrap,
.scv-element-fullscreen.is-fullscreen .scv-validity-matrix__viewport,
.scv-element-fullscreen.is-fullscreen .scv-access-log-viewer__content,
.scv-element-fullscreen.is-fullscreen .scv-topic-forum__body {
  max-height: none !important;
}

@media (max-width: 640px) {
  .scv-element-fullscreen.is-fullscreen {
    padding: 8px !important;
  }

  .scv-element-fullscreen__toggle {
    width: 32px;
    min-width: 32px;
    height: 32px;
  }
}

.scv-element-fullscreen[data-scv-fullscreen-button-position="left"] .scv-element-fullscreen__toggle--inline {
  margin-inline-start: 0;
  margin-inline-end: auto;
  order: -1000;
}

[data-scv-fullscreen-toolbar] > .scv-element-fullscreen__toggle--inline {
  margin-inline-start: 0;
}

[data-scv-fullscreen-toolbar] {
  flex-wrap: nowrap;
}
