/*  ==========================================================================
    Place here all css rules which should apply in the content backend preview

    For Example:
     - backend page tree
     - mask elements
    ========================================================================== */

/*
 * Login
 */
/* Invert SVG logo if dark mode is active */
@media (prefers-color-scheme: dark) {
  .typo3-login-logo img {
    filter: invert(100%);
  }
}

/*
 * Backend Page Tree
 */

#typo3-pagetree-tree.svg-tree-wrapper .node-selected {
  fill: #79C8B2!important;
}
#typo3-pagetree-tree.svg-tree-wrapper .node-over:not(.node-selected) {
  fill: #B2E3D6!important;
}

/*
 * Backend Preview of Vista Element
 */

.bn-vista-title {
  display: inline-block;
  font-weight: bold;
}
.bn-vista-subtitle {
  display: inline-block;
  color: #5a5a5a;
  padding-bottom: 5px;
}
.bn-vista-image {
  background-color: #DDDDDD;
  display: inline-block;
  padding: 2px;
  margin: 2px 2px 0 0;
}

/*
 * Backend Preview of Mask Element
 */

.mask-title {
  background-color: #299074;
  color: #ffffff;
  font-weight: bold;
  padding: 5px;
  text-align: center;
}
.mask-title.mask-title--error {
  background-color: #ae173b;
}
.mask-content {
  font-size: 8px;
}
.mask-content:after {
  clear: both;
  content: '';
  display: block;
}
.mask-content p {
  margin: 0;
}
.mask-subtitle {
  color: #299074;
  font-weight: bold;
  margin-top: 5px;
}
.mask-subtitle:first-child {
  margin-top: 0;
}
.mask-image {
  background-color: #DDDDDD;
  display: inline-block;
  padding: 2px;
  margin: 2px 2px 0 0;
}
.mask-item {
  border: 1px dashed #C5C6C6;
  margin-top: 5px;
  padding: 5px;
}
.mask-error {
  color: #ae173b;
  font-style: italic;
  text-align: center;
  margin-top: 5px;
}
.mask-code {
  background: #FAFAFA;
  color: #000000;
  display: block;
  font-family: monospace;
  padding: 5px;
}
.mask-correct {
  color: #299074;
  font-weight: bold;
}
