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

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

/*
 * Backend Preview of Vista Element
 */

.bn-vista-title {
  background-color: #DDDDDD;
  color: #000000;
  font-weight: bold;
  padding: 5px;
  text-align: center;
}
.bn-vista-subtitle {
  color: #C5C6C6;
  font-weight: bold;
  margin-top: 5px;
}
.bn-vista-image {
  background-color: #DDDDDD;
  display: inline-block;
  padding: 2px;
  margin: 2px 2px 0 0;
}

/*
 * Backend Preview of Mask Element
 */

/* General */
.BN-be {
  color: #000;
  font-size: 10px;
}
.BN-be > * {
  margin-bottom: 7px;
}
.BN-be > *:last-child {
  margin-bottom: 0;
}
.BN-be-prefix {
  display: inline-block;
  border: 1px solid;
  padding: 2px 5px;
}

.BN-be-row {
  display: flex;
  align-items: center;
}
.BN-be-label {
  display: inline-block;
  border: 1px solid;
  padding: 2px 5px;
  margin-right: 5px;
}

/* ElementName */
.BN-be__name {
  background-color: #DDDDDD;
  color: #000;
  text-transform: uppercase;
  text-align: center;
  padding: 3px;
  font-size: 12px;
  font-weight: bold;
}
.BN-be__name--red {
  background-color: #ff0000;
  color: #fff;
}
/* Categories - Seasons */
.BN-be__categories {
  font-size: 13px;
  float: right;
}

.BN-be__categories__item {
  color: white;
  padding: 0.3em 0.5em;
}

.BN-be__categories--summer {
  background-color: #7F2629;
}
.BN-be__categories--winter {
  background-color: #76cdcd;
}
.BN-be__categories--year {
  background-color: #B1B1B1;
}
.BN-be__categories--none {
  background-color: #DA9859;
}

/* Title */
.BN-be__title {
  font-weight: bold;
}
.BN-be__title[data-layout="1"] {
  font-size: 12px;
}
.BN-be__title[data-layout="2"] {
  font-size: 11px;
  opacity: 0.7;
}
.BN-be__title[data-layout="3"] {
  font-size: 10px;
  opacity: 0.5;
}

/* error */
.BN-be__error__data {
  font-size: 12px;
  color: red;
  font-style: italic;
}

/* Rte */
.BN-be__rte {
  display: flex;
}
.BN-be__rte__data {
  border: 1px dashed;
  padding: 0 5px;
}
.BN-be__rte__data > * {
  margin-top: 5px;
  margin-bottom: 5px;
}

/* Link */
.BN-be__link__data {
  text-decoration: underline;
}

/* SpaceAfter */
.BN-be__spaceafter {
  display: flex;
  justify-content: flex-end;
}
.BN-be__spaceafter__data {
  border: 1px solid;
  text-align: center;
  padding: 2px 5px;
  color: #b5b5b5;
}

/* Spacer */
.BN-be__spacer {
  border-bottom: 4px solid #d8d8d8;
}
.BN-be__spacer[data-layout="small"] {
  width: 75%;
}

/* CheckBox */
.BN-be__checkbox__check {
  width: 30px;
  height: 16px;
  border-radius: 25px;
  background-color: green;
  position: relative;
  border: 1px solid #bbb;
}
.BN-be__checkbox__check:after {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #fff;
  position: absolute;
  top: 50%;
  right: 2px;
  transform: translateY(-50%);
}
.BN-be__checkbox__check--yes {
  background-color: #79a548;
}
.BN-be__checkbox__check--no {
  background-color: transparent;
}
.BN-be__checkbox__check--no:after {
  right: auto;
  left: 2px;
  background-color: #bbb;
}

/* Files */
.BN-be__files__data {
  display: flex;
  align-items: center;
}
.BN-be__files__item {
  margin-right: 5px;
}

/*
 * REMOVE DEFAULT BACKEND TEMPLATE
 */

.BN-be-parent > *:not(div){
  display: none;
}

/*
 Remove default title
 */
span.exampleContent strong,
span.exampleContent br {
  display: none;
}

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