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

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

/*
 * Backend Page Columns (ColPos)
 */

/* hide column `999` which are mask repeater fields (due to mask bug) */
.t3-page-column.t3-page-column-999 {
  display: none!important;
}

/*
 * Backend Page Tree
 */

#typo3-pagetree-tree.svg-tree-wrapper .node-selected {
  fill: rgba(38, 38, 38, 0.3) !important;
}
#typo3-pagetree-tree.svg-tree-wrapper .node-over:not(.node-selected) {
  fill: rgba(38, 38, 38, 0.1) !important;
}

/*
 * CHANGE DEFAULT BACKEND TEMPLATE
 */

.t3-page-ce .exampleContent > strong:first-child {
  background-color: #EC6907;
  color: #000;
  text-align: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: bold;
}

.t3-page-ce .exampleContent > strong:first-child > a {
  color: #FFFFFF !important;
}

/*
 * 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-row {
  display: flex;
  align-items: center;
}
.BN-be-label {
  display: inline-block;
  border: 1px solid;
  padding: 2px 5px;
  margin-right: 5px;
}

/* 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;
  background-color: #D7D7D7;
}
.BN-be__files__item img {
  width: 100%;
  max-width: 250px !important;
}

/* Background */
.BN-be__background__data {
  padding: 5px 10px;
  border-radius: 4px;
}
