form[name="admin_content"] {
  color: #868D96;
  label, legend {
    font-weight: 600;
    color: #212529;
    font-size: 16px;
  }

  .custom-control.custom-switch {
    padding-left: 0;
    padding-bottom: 24px;
    .custom-control-label {
      &:before {
        left: 0;
        top: calc(24px + 0.5rem);
      }
      &:after {
        left: calc(0px + 2px);
        top: calc(24px + 0.5rem + 2px);
      }
    }

    .custom-control-input:focus~.custom-control-label {
      &:before {
        box-shadow: -1px 0 0 1px #3444bf40;
        border-color: #d1d3e2;
      }
      &:after {
        box-shadow: 1px 0 0 1px #3444bf40;
      }
    }

    .custom-control-label[for="admin_content_publishable"] {
      content: '';
      font-size: 14px;
      line-height: 30px;
      text-align: center;
      &:before {
        content: "Brouillon";
        width: 80px;
        height: 30px;
        top: 0;
        left: 3rem;
        border-radius: 4px 0 0 4px;
        background-color: #fdbb41;
        color: $almostWhite;
        transition: background-color .15s ease-in-out;
        border: 1px solid #d1d3e2;
        border-right-width: 0;
      }
      &:after {
        content: "Publié";
        width: 60px;
        height: 30px;
        top: 0;
        left: calc(3rem + 80px);
        border-radius: 0 4px 4px 0;
        background-color: $almostWhite;
        color: #787895;
        border: 1px solid #d1d3e2;
        border-left-width: 0;
      }
    }

    .custom-control-input#admin_content_publishable {
      &:checked {
        &~.custom-control-label {
          &:before {
            background-color: $almostWhite;
            color: #787895;
          }
          &:after {
            background-color: #20AC2A;
            transform: none;
            color: #fff;
          }
        }
      }
    }
  }

  .form-right {
    background-color: #fff;
    height: fit-content;
    padding: 20px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    width: 19%;
    .custom-control.custom-switch {
      padding: 0;
    }
  }

}