table.af-field-include th,
.af-field-include-child-profile-section-body table.af-field-include tr {
  page-break-inside: avoid;
}

table.af-field-include {
  font-family: 'Rubik', Helvetica,Arial,Lucida,sans-serif !important;
}


table.af-field-include th {
  background-color: #6184A3;
  /*background-color: #3A5064 !important;*/
  color: white !important;
  padding: 1rem 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04rem;
  border-radius: 0.425rem;
}

table.af-field-include table.af-field-include th:nth-child(1) {
  /*width: 52%;*/
  /*width: 60%;*/
  /*width: 36rem;*/
  width: auto;
}

table.af-field-include table.af-field-include th:nth-child(2) {
  width: 10%;
  width: 6.375rem;
}

table.af-field-include table.af-field-include th:nth-child(3) {
  width: 12.5%;
  width: 11rem;
}

table.af-field-include table.af-field-include th:nth-child(4) {
  width: 20%;
  width: 8rem;
}

table#resultByAreasOfDevelopment th {
  background-color: hsl(208 26% 25% / 1);
  padding: 0.5rem 0.75rem;
  border-radius: 0rem;
  font-weight: 600;
}
table#resultByAreasOfDevelopment td {
  text-align: right;
  font-weight: 600;
}

table#resultByAreasOfDevelopment td:first-of-type {
  text-align: left;
}

table#resultByAreasOfDevelopment tr:nth-child(2) td {
  text-align: center;
  font-weight: 600;
}

table#resultByAreasOfDevelopment tr:nth-child(2) td:first-of-type {
  background: repeating-linear-gradient(  45deg,  rgba(0, 0, 0, 0),  rgba(0, 0, 0, 0.1) 0px,  rgba(0, 0, 0, 0.05) 2px,  rgba(0, 0, 0, 0.05) 12px);
}

table#resultByAreasOfDevelopment tr:last-child td {
  font-weight: 600;
}

table#resultByAreasOfDevelopment tr.resultByAreasOfDevelopment_aod-breakdown-row,
table#resultByAreasOfDevelopment tr.resultByAreasOfDevelopment_aod-breakdown-row-child {
  background: var(--athensgrayLighter);
}

table#resultByAreasOfDevelopment tr.resultByAreasOfDevelopment_aod-breakdown-row-child td {
  font-weight: normal;
}

table#resultByAreasOfDevelopment tr.resultByAreasOfDevelopment_aod-breakdown-row-child td:first-of-type {
  text-indent: 2rem;
  text-align: left;
}

table#resultByAreasOfDevelopment tr.resultByAreasOfDevelopment_aod-breakdown-row-child td:not(:first-of-type) {
  text-align: right;
}


@media not print {

  @media (width < 960px) {

    body:not(.print-this) table.af-field-include table.af-field-include th:nth-child(3),
    body:not(.print-this) table.af-field-include table.af-field-include th:nth-child(4) {
      display: none;
    }

    body:not(.print-this) table.af-field-include table.af-field-include tbody tr:not(:first-child) td:nth-child(3),
    body:not(.print-this) table.af-field-include table.af-field-include tbody tr:not(:first-child) td:nth-child(4) {
      display: none;
    }

    body:not(.print-this) table.af-field-include tr.scales-results-table-row-developmenthistory-head th:nth-child(3),
    body:not(.print-this) table.af-field-include tr.scales-results-table-row-developmenthistory-head th:nth-child(4) {
      display: none;
    }

    body:not(.print-this) table.af-field-include tbody tr:not(:first-child) td:nth-child(3),
    body:not(.print-this) table.af-field-include tbody tr:not(:first-child) td:nth-child(4) {
      display: none;
    }

    /* Adjust width of TH */
    body:not(.print-this) table.af-field-include tr.scales-results-table-row-developmenthistory-head th:nth-child(1) {
      width: 33.33% !important;
    }

    body:not(.print-this) table.af-field-include tr.scales-results-table-row-assessor-information-subheading,
    body:not(.print-this) table.af-field-include tr.scales-results-table-row-assessor-information {

    }


    body:not(.print-this) ul.scales-results-aod-recommendations-list {
      padding-left: 0rem;
      padding-right: 0rem;
    }

    body:not(.print-this) table.af-field-include td {
      padding: .75rem !important;
    }

    /* Fixed busting of long AOD terms like "Sensorial recognition/Perception/Discrimination" */
    body:not(.print-this) .scales-results-aod-recommendations ul li:not(.scales-results-aod-recommendations-fromchdp) ul > li {
      line-break: anywhere;
    }

  }

}


@media (min-device-width: 800px) and (max-device-width: 1024px) {

  /* Adjust width of TH */
  table.af-field-include tr.scales-results-table-row-developmenthistory-head th:nth-child(1) {
    width: 50% !important;
  }
}

td.af-field-include-child-profile-section {
  padding: 0rem;
}

table.af-field-include td {
  position: relative;
  border: 1px solid #ddd;
  padding: .75rem;
  line-height: 1.5;
  letter-spacing: .025rem;
}

table.af-field-include td.bg-yes {
  background-color: hsl(120deg 73% 90%);
}

table.af-field-include td.bg-no {
  background-color: hsl(350deg 100% 96%);
}

table.af-field-include td.bg-sometimes {
  background-color: hsl(60deg 80% 94%);
}

table.af-field-include  textarea {
  resize: vertical;
  min-height: 2rem;
  width: 100%;
}

table.af-field-include td ol {
  /*list-style-type: decimal;
  list-style: decimal-leading-zero;*/
  list-style: disc;
}

table.af-field-include td ol p {
  display: block !important;
}

@media (width < 768px) {
  table.af-field-include td ol {
    padding-left: 1rem;
  }
}






table.af-field-include tr.af-field-include-child-profile table {
  border: none;
  border-spacing: 0px;
}

table.af-field-include td.af-field-include-child-profile-section {
  border: none;
  padding: 0 !important;
}

table.af-field-include table.af-field-include tr > td.af-field-include-child-profile-section {
  padding: 0 !important;
}

table.af-field-include tr.af-field-include-child-profile .af-field-include-child-profile-heading {
  margin: .5rem 1rem 0rem;
}

table.af-field-include .af-field-include-child-profile-section-mastsubheading {
  color: #fff !important;
  background-color: hsl(209 27% 16% / 1);
  width: 100%;
  margin: 1rem 0 -0.25rem !important;
  padding: 0.5rem 0.625rem !important;
  border-radius: 0.25rem;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: .04rem;
}

table.af-field-include tr.af-field-include-child-profile .af-field-include-child-profile-heading {
  margin: .5rem .5rem 0rem;
}
table.af-field-include tr.af-field-include-child-profile .af-field-include-child-profile-subheading {
  margin: 0rem .5rem;
}

table.af-field-include tr.af-field-include-child-profile .af-field-include-child-profile-section-subheading,
table.af-field-include .aod-section-subheading {
  color: #fff !important;
  background-color: #3A5064;
  width: 100%;
  display: inline-block;
  margin: 0.5rem 0 !important;
  padding: 0.5rem 0.625rem !important;
  border-radius: 0.25rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .04rem;
}

table.af-field-include .aod-section-subheading {
  margin: 0 !important;
}

table.af-field-include .scales-results-aod-recommendations .aod-section-subheading {

}

th.af-field-include-child-profile-section-subheading {
  margin: 0 !important;
  background-color: #3A5064 !important;
  display: revert;
  width: 100%;
  padding: 0.5rem 0.625rem !important;
  border-radius: 0.25rem !important;
  font-size: 1rem;
  font-weight: 500 !important;
  letter-spacing: .04rem;
}

table.af-field-include tr.af-field-include-child-profile .af-field-include-child-profile-section-body {
  line-height: 1rem;
  padding: 0rem .5rem 1rem !important;
}

/* Life History */
table.af-field-include .af-field-include-child-profile-life-history-section-body {
  line-height: 1.5;
  padding: 0.5rem 0.5rem 0rem !important;
  /*display: grid;
  grid-template-columns: repeat(3, 30.33%);
  column-gap: 0.25rem;
  row-gap: 0.25rem;*/
}

table.af-field-include .af-field-include-child-profile-life-history-section-body-gender,
table.af-field-include .af-field-include-child-profile-life-history-section-body-date-of-birth,
table.af-field-include .af-field-include-child-profile-life-history-section-body-age,
table.af-field-include .af-field-include-child-profile-life-history-section-body-ethnic-group,
table.af-field-include .af-field-include-child-profile-life-history-section-body-nationality {
  padding: 0.25rem;
}

table.af-field-include tr.af-field-include-child-profile .af-field-include-child-profile-section-body:has(table.af-field-include) {
  padding: 0 !important;
}

table.af-field-include tr.af-field-include-child-profile .af-field-include-child-profile-section-body-followup {
  display:block;
  padding: .5rem 0rem 0rem .5rem !important;
}

table.af-field-include tr.af-field-include-child-profile > table td:first-child {
  border: none;
  padding: 0rem .5rem 0rem 0rem !important;
}
table.af-field-include tr.af-field-include-child-profile > table td:last-child {
  border: none;
  padding: 0rem 0rem 0rem .5rem !important;
  line-height: normal;
}





body:not(.wp-admin) [data-name*='aoc_'][data-type='textarea'] {
  display: none;
  visibility: hidden;
}


/*body:not(.wp-admin) [data-name='scale_category'][data-type='taxonomy'],*/
.scales-results-overview,
table.af-field-include tr.scales-results-table-row-totals,
table.af-field-include tr.scales-results-table-row-summary,
table.af-field-include tr.scales-results-table-row-recommendation,
.af-calculated-content .scales-results-print,
.af-calculated-content .scales-results-print-helpful,
.af-calculated-content .scales-results-print-disclaimer,
body.print-this .scales-results-print,
body.print-this table.af-field-include tr.scales-results-table-row-totals,
body:not(.wp-admin) [data-name="save_scale_for_later"],
#useThisScaleModal [data-name="scale_results_totals"],
#form-use_this_scale [data-name*='aoc_'][data-type='textarea'],
body.wp-admin #chdp_scales_categorydiv {
  display: none !important;
  visibility: hidden;
}

table.af-field-include tr.scales-results-table-row-recommendation .microcopy > ul {
  list-style-type: none;
}

table.af-field-include tr.scales-results-table-row-developmenthistory-head {

}

table.af-field-include tr.scales-results-table-row-developmenthistory-head th {

}
table.af-field-include tr.scales-results-table-row-developmenthistory-head th:nth-child(1) {
  /*width: 75%;*/
  /*width: 65%;*/
  width: auto;
}
table.af-field-include tr.scales-results-table-row-developmenthistory-head th:nth-child(2) {
  width: 10%;
  width: 15rem;
}
table.af-field-include tr.scales-results-table-row-developmenthistory-head th:nth-child(3) {
  width: 5%;
  width: 10rem;
}
table.af-field-include tr.scales-results-table-row-developmenthistory-head th:nth-child(4) {
  width: 20%;
  width: 30rem;
}



body.wp-admin .acf-fields {

}

body.wp-admin .acf-fields [data-name='scale_category'][data-type='taxonomy'],
body.wp-admin .acf-fields [data-name='assign_a_child_profile'][data-type='post_object'] {

}


[data-key=form_632f80b6ea675] .acf-fields [data-name*=aoc_] .acf-label label {
display: none;
}

[data-key=form_632f80b6ea675] .acf-fields [data-name*=aoc_] .acf-label:before {
position: relative;
content: 'Area of Concern (optional)';
display: block;
opacity: .8;
font-size: .75rem;
}


body.wp-admin .acf-fields [data-key*='field_'][data-type="radio"],
[data-key=form_632f80b6ea675] .acf-fields [data-key*='field_'][data-type="radio"] {
  grid-column-start: 1;
  grid-column-end: 2;
  /* margin-top: -8.75rem;  Shift up to fill gap from the AoC textarae which has been moved to the right column below */
}

body.wp-admin .acf-fields [data-name*='aoc_'][data-type='textarea'],
[data-key=form_632f80b6ea675] .acf-fields [data-name*='aoc_'][data-type='textarea'] {
  grid-column-start: 2;
  grid-column-end: 3;
  display: inline-grid;
  visibility: visible;
}

[data-state=health-history] [data-key=form_632f80b6ea675] .acf-fields [data-name*='aoc_'][data-type='textarea'] {

}

body.wp-admin .acf-fields [data-name*='aoc_'][data-type='textarea'] textarea,
[data-key=form_632f80b6ea675] .acf-fields [data-name*='aoc_'][data-type='textarea'] textarea {
  resize: none;
  height: 4rem;
}

[data-name*='aoc_'][data-type='textarea'] {
  background-color: #f7f7f7;
}



/* Results Success */
.af-success,
.modal-body,
.entry-content {
  position: relative;
}

.modal-body.af-success {
  overflow-x: auto;
  max-width: 100%;
}

.af-success > table.af-field-include,
.modal-body > table.af-field-include,
.entry-content > table.af-field-include {
  position: relative;
}

#scalesResultsModal .af-success > table.af-field-include {

}


.af-success table.af-field-include tr.scales-results-table-row-summary,
.modal-body table.af-field-include tr.scales-results-table-row-summary,
.entry-content table.af-field-include tr.scales-results-table-row-summary,
.af-success table.af-field-include tr.scales-results-table-row-recommendation,
.modal-body table.af-field-include tr.scales-results-table-row-recommendation,
.entry-content table.af-field-include tr.scales-results-table-row-recommendation {
  display: table-row !important;
  visibility: visible !important;
  width: calc(100%);
  background-color: var(--white);
}

.scales-results-aod-recommendations {

}

.scales-results-table-row-recommendation-answered-no-or-sometimes {
  padding: .25rem;
  background: var(--white);
  margin: 1rem auto 0rem;
  margin: 0rem auto;
  border: 3px solid #ddd;
  border-radius: 0.425rem;
}

.scales-results-table-row-recommendation-answered-no-or-sometimes > ul {
  padding: 0rem 1rem;
  margin-bottom: 0rem;
  list-style-position: outside !important;
}


.scales-results-table-row-recommendation-answered-no-or-sometimes > div:last-child > hr {
  display: none;
}

.scales-results-table-row-recommendation-answered-no-or-sometimes > div > hr  {
  opacity: 1;
  border-top: 5px double;
  margin: 1.5rem 1rem 0.5rem !important;
}


.scales-results-aod-recommendations ul:first-of-type > li:last-child {
  padding-bottom: 0.5rem;
}

li.scales-results-aod-recommendations-qandas {
  list-style-type: none;
  padding-bottom: 0 !important;
}

.scales-results-aod-recommendations ul li:not(.scales-results-aod-recommendations-fromchdp) ul {
  padding:1rem;
  border:1px solid #ddd;
  margin: 0;
  list-style-position:inside;
  margin-top:.5rem;
}

.scales-results-aod-recommendations ul li:not(.scales-results-aod-recommendations-fromchdp) ul > li {
  list-style-type: none;
}

ul.scales-results-aod-recommendations-list {
  padding-left: 1rem;
  padding-right: 1rem;
}

li.scales-results-aod-recommendations-fromchdp {
  list-style-type: none;
}

.scales-results-aod-recommendations-fromchdp-content {
  padding: 1rem;
  /*border: 1px solid #ddd;*/
  margin: 0;
  list-style-position: inside;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.scales-results-aod-recommendations-fromchdp-content-concern {
border-left: 16px solid var(--bg-no);
}

.scales-results-aod-recommendations-fromchdp-content-strength {
border-left: 16px solid var(--bg-yes);
}

.scales-results-aod-recommendations-fromchdp-content > p {
  margin-bottom: 0;
}
.scales-results-aod-recommendations-fromchdp-content > ul,
.scales-results-aod-recommendations-fromchdp-content > ol {

}

.scales-results-aod-recommendations-fromchdp-content > ul > li,
.scales-results-aod-recommendations-fromchdp-content > ol > li {

}

ol.questions-list {
  list-style: outside;
  margin-top: 0.5rem;
  line-height: 1.75;
}

ol.questions-list li {
  padding-left: 1rem;
}

ol.questions-list li::marker {
  font-weight: 600;
  font-size: 1.5rem;
}

ol.questions-list li.answered-no::marker {
  content: "𐄂";
  color: indianred;
  font-size: 1.5rem;
}

 ol.questions-list li.answered-yes::marker  {
  content: "✓";
  color: mediumseagreen;
 }

 ol.questions-list li.answered-sometimes::marker  {
  content: "✓";
  color: darkgoldenrod;
 }




li.scales-results-aod-recommendations-fromchdp > ul {

}

li.scales-results-aod-recommendations-fromchdp ul > li {
  list-style-type: disc !important;
}

#scalesResultsModal table.af-field-include tr.scales-results-table-row-summary {

}

.scales-results-table-row-recommendation .scales-results-table-row-recommendation-donation {
  border-top: 1px solid #eee;
  padding-top: 1rem;
  margin-top: 1.5rem;
  width: 100%;
  font-size: .875rem;
}

body.print-this table.af-field-include textarea,
.af-success table.af-field-include textarea,
#scalesResultsModal table.af-field-include textarea,
.entry-content table.af-field-include textarea {
  pointer-events: none;
  border: none;
  padding: 0;
  line-height: normal;
  resize: none;
}

/* Results Overview */

.scales-results-overview {
  display: table-row !important;
  visibility: visible !important;
}

.scales-results-overview-image {
  width: auto;
  height: 6.25rem !important;
  float: left;
  margin-right: 1rem;
}

.scales-results-overview-heading {
  padding: 0rem !important;
  margin: 0rem !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
}

.scales-results-overview-body {
  font-size: 1rem;
  margin-top: 0rem;
  display: unset !important;
}

/* Results Row */

.scales-results-print {
  display: flex;
  visibility: visible;
  justify-content: right;
  padding: 0.75rem 0;
}

.scales-results-print-helpful {
  display: block;
  visibility: visible;
  overflow: hidden;
}

.scales-results-print-helpful li > div {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scales-results-print-disclaimer {
  display: block;
  visibility: visible;
  overflow: hidden;
}

.scales-results-print-disclaimer li > div {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scales-results-print-button {
  padding: 0.25rem 0.5rem;
  text-decoration: none;
  border: 1px solid #2271b1;
  border-radius: 2px;
  text-shadow: none;
  font-weight: 600;
  font-size: 13px;
  line-height: normal;
  color: #2271b1;
  background: #f6f7f7;
  cursor: pointer;
}

.scales-results-print-button:hover {
  background: #f0f0f1;
  border-color: #0a4b78;
  color: #0a4b78;
}

table.af-field-include tr.scales-results-table-row-summary th {
  color: #eee;
  font-weight: normal;
  background-color: #333;
  background-color: hsla(11, 100%, 67%, 1);
  text-align: center;
  max-width: 7rem;
  font-size: 1.275rem;
  line-height: 1;
}

/*******************************************
  Print Window Styling
********************************************/

@media print {

}

body.print-this {
  font-family: 'Helvetica', sans-serif;
  line-height: 1.75 !important;
}

body.print-this tr.scales-results-overview {

}

/*body.print-this table.af-field-include tr.scales-results-table-row-totals,*/
body.print-this table.af-field-include tr.scales-results-table-row-summary,
body.print-this table.af-field-include tr.scales-results-table-row-recommendation {
  /*width: calc(99.96%);*/
  display: table-row !important;
  visibility: visible !important;
}

body.print-this table.af-field-include .af-field-include-child-profile-section-body {
  /*page-break-inside:avoid;
  page-break-after:auto;*/
}

body.print-this table.af-field-include {
  page-break-inside:auto;
}
body.print-this table.af-field-include tr {
  /*page-break-inside:avoid;
  page-break-after:auto;*/
}
body.print-this table.af-field-include thead {
  display:table-header-group;
}
body.print-this table.af-field-include tfoot {
  display:table-footer-group;
}

body.print-this table.af-field-include tr.af-field-include-child-profile .af-field-include-child-profile-section-subheading {
  width: 100%;
}

body.print-this table#resultByAreasOfDevelopment,
body.print-this tr.scales-results-table-row-recommendation {
  page-break-inside: avoid;
}

/*#scalesResultsModal .scales-results-table-row-recommendation-donation,*/
body.print-this .scales-results-table-row-recommendation-donation {
  display: none;
}
