@media print {
  .col-md {
    -ms-flex-preferred-size: 0;
    flex-basis: 0;
    -ms-flex-positive: 1;
    flex-grow: 1;
    max-width: 100%;
  }
  .row-cols-md-1 > * {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .row-cols-md-2 > * {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
  .row-cols-md-3 > * {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .row-cols-md-4 > * {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
  }
  .row-cols-md-5 > * {
    -ms-flex: 0 0 20%;
    flex: 0 0 20%;
    max-width: 20%;
  }
  .row-cols-md-6 > * {
    -ms-flex: 0 0 16.666667%;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  .col-md-auto {
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
  }
  .col-md-1 {
    -ms-flex: 0 0 8.333333%;
    flex: 0 0 8.333333%;
    max-width: 8.333333%;
  }
  .col-md-2 {
    -ms-flex: 0 0 16.666667%;
    flex: 0 0 16.666667%;
    max-width: 16.666667%;
  }
  .col-md-3 {
    -ms-flex: 0 0 25%;
    flex: 0 0 25%;
    max-width: 25%;
  }
  .col-md-4 {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
  }
  .col-md-5 {
    -ms-flex: 0 0 41.666667%;
    flex: 0 0 41.666667%;
    max-width: 41.666667%;
  }
  .col-md-6 {
    -ms-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
  .col-md-7 {
    -ms-flex: 0 0 58.333333%;
    flex: 0 0 58.333333%;
    max-width: 58.333333%;
  }
  .col-md-8 {
    -ms-flex: 0 0 66.666667%;
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
  }
  .col-md-9 {
    -ms-flex: 0 0 75%;
    flex: 0 0 75%;
    max-width: 75%;
  }
  .col-md-10 {
    -ms-flex: 0 0 83.333333%;
    flex: 0 0 83.333333%;
    max-width: 83.333333%;
  }
  .col-md-11 {
    -ms-flex: 0 0 91.666667%;
    flex: 0 0 91.666667%;
    max-width: 91.666667%;
  }
  .col-md-12 {
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }
  .order-md-first {
    -ms-flex-order: -1;
    order: -1;
  }
  .order-md-last {
    -ms-flex-order: 13;
    order: 13;
  }
  .order-md-0 {
    -ms-flex-order: 0;
    order: 0;
  }
  .order-md-1 {
    -ms-flex-order: 1;
    order: 1;
  }
  .order-md-2 {
    -ms-flex-order: 2;
    order: 2;
  }
  .order-md-3 {
    -ms-flex-order: 3;
    order: 3;
  }
  .order-md-4 {
    -ms-flex-order: 4;
    order: 4;
  }
  .order-md-5 {
    -ms-flex-order: 5;
    order: 5;
  }
  .order-md-6 {
    -ms-flex-order: 6;
    order: 6;
  }
  .order-md-7 {
    -ms-flex-order: 7;
    order: 7;
  }
  .order-md-8 {
    -ms-flex-order: 8;
    order: 8;
  }
  .order-md-9 {
    -ms-flex-order: 9;
    order: 9;
  }
  .order-md-10 {
    -ms-flex-order: 10;
    order: 10;
  }
  .order-md-11 {
    -ms-flex-order: 11;
    order: 11;
  }
  .order-md-12 {
    -ms-flex-order: 12;
    order: 12;
  }
  .offset-md-0 {
    margin-left: 0;
  }
  .offset-md-1 {
    margin-left: 8.333333%;
  }
  .offset-md-2 {
    margin-left: 16.666667%;
  }
  .offset-md-3 {
    margin-left: 25%;
  }
  .offset-md-4 {
    margin-left: 33.333333%;
  }
  .offset-md-5 {
    margin-left: 41.666667%;
  }
  .offset-md-6 {
    margin-left: 50%;
  }
  .offset-md-7 {
    margin-left: 58.333333%;
  }
  .offset-md-8 {
    margin-left: 66.666667%;
  }
  .offset-md-9 {
    margin-left: 75%;
  }
  .offset-md-10 {
    margin-left: 83.333333%;
  }
  .offset-md-11 {
    margin-left: 91.666667%;
  }
}

#portia-printing-div {
  display: none;
  position: absolute;
  top: 0;
  left: -100%;
  background: white;
  overflow: visible;
}

#portia-printing-div_modal
  .formio-component-editgrid.removeListGroup
  > ul
  > li.list-group-item.list-group-header {
  display: none;
}

#portia-printing-div_modal input[type="checkbox"],
#portia-printing-div_modal input[type="radio"] {
  appearance: auto !important;
  background: none !important;
  position: relative;
}

#portia-printing-div_modal input[type="checkbox"]:before,
#portia-printing-div_modal input[type="radio"]:before {
  background: white;
  content: "";
  border: 1px solid black;
  display: flex;
  align-items: center;
  width: calc(100% + 2px);
  height: calc(100% + 4px);
  justify-content: center;
  margin-top: -4px;
  position: absolute;
  top: 1px;
}

#portia-printing-div_modal input[type="checkbox"]:checked:before,
#portia-printing-div_modal input[type="radio"]:checked:before {
  content: "x" !important;
}

#portia-printing-div_modal table td div > img {
  height: 95vh;
  width: auto;
  max-height: 95vh;
  max-width: 95vh;
}

#portia-printing-div_modal .ibk-tui-print {
  border-bottom: 1px solid black;
  font-size: 10px;
  width: 100%;
}

#portia-printing-div_modal .ibk-tui-print-entry.odd {
  background-color: #f4f4f4;
}

#portia-printing-div_modal .ibk-tui-print-heading {
  font-weight: bold;
  background-color: #eee;
  color: #222;
  border-top: 1px solid black;
  border-bottom: 0;
  align-items: center;
  text-align: center;
}

#portia-printing-div_modal .ibk-tui-print-summary {
  font-weight: bold;
  background-color: white;
  color: #222;
  border-top: 1px dashed black;
  border-bottom: 0;
  align-items: center;
  text-align: right;
}

#portia-printing-div_modal .ibk-tui-print-heading span {
  width: 100%;
  text-align: center;
}

#portia-printing-div_modal .ibk-tui-print-entry {
  color: #333;
}

#portia-printing-div_modal .ibk-tui-print-entry,
.ibk-tui-print-heading {
  border: 1px solid black;
  border-bottom: 0;
  border-left: 0;
  border-right: 1px solid lightgrey;
  border-left: 1px solid lightgrey;
  padding: 2px 2px;
}

#portia-printing-div_modal [class*="level-"] {
  border: 0 !important;
  border-left: 1px solid lightgrey !important;
  border-right: 1px solid lightgrey !important;
  border-top: 1px outset #eee !important;
  background-color: white !important;
}

#portia-printing-div_modal [class*="level-"] > div.first:before {
  content: "\21B3";
  font-size: 10px;
  font-weight: bold;
}

#portia-printing-div_modal [class*="level-"] > div.first {
  display: flex;
  justify-content: space-between;
}

#portia-printing-div_modal tbody * {
  page-break-inside: auto;
}

#portia-printing-div_modal tbody .formio-component-select,
#portia-printing-div_modal tbody .formio-component-textfield,
#portia-printing-div_modal tbody .formio-component-textarea,
#portia-printing-div_modal tbody .formio-component-number,
#portia-printing-div_modal tbody .formio-component-digitandunit,
#portia-printing-div_modal tbody .formio-component-date,
#portia-printing-div_modal tbody .formio-component-datetime,
#portia-printing-div_modal tbody .formio-component-time,
#portia-printing-div_modal tbody .formio-component-password,
#portia-printing-div_modal tbody .formio-component-checkbox,
#portia-printing-div_modal tbody .formio-component-selectboxes,
.formio-component-radio {
  page-break-inside: avoid !important;
}

#portia-printing-div_modal .ibk-print-header {
  display: grid;
  grid-template-columns: 200px 1fr 200px;
  height: 80px;
  align-items: center;
  width: 100vw;
}

#portia-printing-div_modal .formio-target {
  width: 100vw;
}

#portia-printing-div_modal .ibk-print-header-timestamp {
  text-align: right;
}

#portia-printing-div_modal > table {
  width: 100%;
}

#portia-printing-div_modal .ibk-print-header img {
  height: 50px;
}

#portia-printing-div_modal .ibk-print-header h3 {
  text-align: center;
  font-weight: bold;
  margin: 0;
  padding: 0;
  color: black;
}

#portia-printing-div_modal .ibk-print-footer {
  display: grid;
  grid-template-columns: 1fr;
  text-align: center;
}
