footer {
  text-align: center;
}

body.has-report {
  background: #FFFFFF;
}

.report {
  margin-left: -30px;
  margin-right: -30px;

  > header {
    margin-top: 1%;
  }

  section {
    page-break-inside: avoid;
    margin-bottom: 1%;
    header {
      padding-top: 1%;
      margin-top: 0;
    }
  }
}

footer {
  text-align: center;
}

body.has-report {
  background: #FFFFFF;
}

.report {
  margin-left: -30px;
  margin-right: -30px;

  > header {
    margin-top: 1%;
  }

  section {
    margin-bottom: 1%;
    header {
      padding-top: 1%;
      margin-top: 0;
    }
  }

  .panel {
    page-break-inside: avoid;
  }
}

Allow breaks in pdf sections but not panels
Allow breaks in pdf sections but not panels
