/*Responsive Tables from https://adrianroselli.com/2017/11/a-responsive-accessible-table.html*/

.responsive-main {
  display: block;
  box-sizing: border-box;
  width: auto;

}

.responsive-table {
  margin: 1em 0;
  border-collapse: collapse;
  /* width: 100%;
     */
}

.responsive-table caption {
  text-align: left;
  font-style: italic;
  padding: 0.25em 0.5em 0.5em 0.5em;
}

.responsive-table th,
.responsive-table td {
  padding: 0.25em 0.5em 0.25em 1em;
  vertical-align: text-top;
  text-align: left;
  /*text-indent: -0.5em;
    */
}

.responsive-table th {
  vertical-align: bottom;
  /*background-color: #000000;
    */
  color: #ffffff;
  font-weight: bold;
}

.responsive-table td::before {
  display: none;
}

.responsive-table tr:nth-child(even) {
  /*background-color: rgba(255, 255, 255, 0.25);
    */
}

.responsive-table tr:nth-child(odd) {
  /*background-color: rgba(255, 255, 255, 0.5);
    */
}

.responsive-table td:nth-of-type(2) {
  /*font-style: italic;
    */
}

.responsive-table th:nth-of-type(3),
.responsive-table td:nth-of-type(3) {
  /*text-align: right;
    */
}

.responsive-div {
  overflow: auto;
}

/*@media screen and (max-width: 37em), print and (max-width: 5in) {
    */
@media screen and (max-width: 800px) {

  .responsive-table table,
  .responsive-table tr,
  .responsive-table td {
    display: block;
  }

  .responsive-table tr {
    padding: 0.7em 2vw;
  }

  .responsive-table tr:first-of-type {
    /*display: none;
            */
  }

  .responsive-table th {
    display: none;
  }

  .responsive-table td::before {
    display: inline;
    font-weight: bold;
  }

  .responsive-table td {
    /*display: grid;
            */
    grid-template-columns: 6em auto;
    grid-gap: 1em 0.5em;
  }

  .responsive-table caption {
    font-style: normal;
    background-color: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: bold;
  }

  .responsive-table td:nth-of-type(3) {
    text-align: left;
  }

  .responsive-table td:nth-of-type(4),
  .responsive-table td:nth-of-type(5) {
    /*text-align: right;
            */
    /*width: 12em;
            */
  }

  .responsive-table td:nth-of-type(4)::before,
  .responsive-table td:nth-of-type(5)::before {
    text-align: left;
  }

  .responsive-table td:nth-of-type(2)::before {
    font-style: normal;
  }
}

@media print {
  body {
    font-size: 6pt;
    /*color: #000;
            */
    /*background-color: #fff;
            */
    /*background-image: none;
            */
  }

  body,
  .responsive-main {
    margin: 0;
    padding: 0;
    /*background-color: #fff;
            */
    border: none;
  }

  .responsive-table {
    page-break-inside: avoid;
  }

  .responsive-div {
    overflow: visible;
  }

  .responsive-table th {
    color: #000;
    /*background-color: #fff;
            */
    border-bottom: 1pt solid #000;
  }

  .responsive-table tr {
    border-top: 1pt solid #000;
  }
}

@media print and (max-width: 5in) {
  .responsive-table caption {
    /*color: #000;
            */
    background-color: #fff;
    border-bottom: 1pt solid #000;
  }

  .responsive-table table {
    page-break-inside: auto;
  }

  .responsive-table tr {
    page-break-inside: avoid;
  }
}

#responsive-table,
#responsive-table1,
#responsive-table2,
#responsive-table3,
#responsive-table4 {
  margin: 1em 0;
  border-collapse: collapse;
  /* width: 100%;
         */
}

#responsive-table caption,
#responsive-table1 caption,
#responsive-table2 caption,
#responsive-table3 caption,
#responsive-table4 caption {
  text-align: left;
  font-style: italic;
  padding: 0.25em 0.5em 0.5em 0.5em;
}

#responsive-table th,
#responsive-table td,
#responsive-table1 th,
#responsive-table1 td,
#responsive-table2 th,
#responsive-table2 td,
#responsive-table3 th,
#responsive-table3 td,
#responsive-table4 th,
#responsive-table4 td {
  padding: 0.25em 0.5em 0.25em 1em;
  /*vertical-align: text-top;
         */
  text-align: left;
  /*text-indent: -0.5em;
         */
}

#responsive-table th,
#responsive-table1 th,
#responsive-table2 th,
#responsive-table3 th,
#responsive-table4 th {
  vertical-align: bottom;
  background-color: #000000;
  color: #ffffff;
  font-weight: bold;
}

#responsive-table td::before,
#responsive-table1 td::before,
#responsive-table2 td::before,
#responsive-table3 td::before,
#responsive-table4 td::before {
  display: none;
}

#responsive-table tr:nth-child(even),
#responsive-table1 tr:nth-child(even),
#responsive-table2 tr:nth-child(even),
#responsive-table3 tr:nth-child(even),
#responsive-table4 tr:nth-child(even) {
  /*background-color: rgba(255, 255, 255, 0.25);
         */
}

#responsive-table tr:nth-child(odd),
#responsive-table1 tr:nth-child(odd),
#responsive-table2 tr:nth-child(odd),
#responsive-table3 tr:nth-child(odd),
#responsive-table4 tr:nth-child(odd) {
  /*background-color: rgba(255, 255, 255, 0.5);
         */
}

#responsive-table td:nth-of-type(2),
#responsive-table1 td:nth-of-type(2),
#responsive-table2 td:nth-of-type(2),
#responsive-table3 td:nth-of-type(2),
#responsive-table4 td:nth-of-type(2) {
  /*font-style: italic;
         */
}

#responsive-table th:nth-of-type(3),
#responsive-table td:nth-of-type(3),
#responsive-table1 th:nth-of-type(3),
#responsive-table1 td:nth-of-type(3),
#responsive-table2 th:nth-of-type(3),
#responsive-table2 td:nth-of-type(3),
#responsive-table3 th:nth-of-type(3),
#responsive-table3 td:nth-of-type(3),
#responsive-table4 th:nth-of-type(3),
#responsive-table4 td:nth-of-type(3) {
  /*text-align: right;
         */
}

.responsive-div {
  overflow: auto;
}

@media screen and (max-width: 50em) {

  /*@media screen and (max-width: 37em), print and (max-width: 5in) {
             */
  #responsive-table table,
  #responsive-table tr,
  #responsive-table td,
  #responsive-table1 table,
  #responsive-table1 tr,
  #responsive-table1 td,
  #responsive-table2 table,
  #responsive-table2 tr,
  #responsive-table2 td,
  #responsive-table3 table,
  #responsive-table3 tr,
  #responsive-table3 td,
  #responsive-table4 table,
  #responsive-table4 tr,
  #responsive-table4 td {
    display: block;
  }

  #responsive-table tr,
  #responsive-table1 tr,
  #responsive-table2 tr,
  #responsive-table3 tr,
  #responsive-table4 tr {
    /*padding: 0.7em 2vw;
                 */
  }

  /* Hide only column headers, not row headers - IMPROVED FOR ACCESSIBILITY */
  #responsive-table thead th,
  #responsive-table1 thead th,
  #responsive-table2 thead th,
  #responsive-table3 thead th,
  #responsive-table4 thead th {
    display: none;
  }

  /* Keep row headers visible and styled prominently */
  #responsive-table th[scope="row"],
  #responsive-table1 th[scope="row"],
  #responsive-table2 th[scope="row"],
  #responsive-table3 th[scope="row"],
  #responsive-table4 th[scope="row"] {
    display: block !important;
    background-color: #0066cc;
    color: white;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    padding: 0.75rem;
    border-radius: 3px;
    margin-bottom: 0.5rem;
    border: none;
    width: 100%;
    box-sizing: border-box;
  }

  #responsive-table tr:first-of-type,
  #responsive-table1 tr:first-of-type,
  #responsive-table2 tr:first-of-type,
  #responsive-table3 tr:first-of-type,
  #responsive-table4 tr:first-of-type {
    /*display: none;*/
  }


  #responsive-table td::before,
  #responsive-table1 td::before,
  #responsive-table2 td::before,
  #responsive-table3 td::before,
  #responsive-table4 td::before {
    display: inline;
    font-weight: bold;
  }

  #responsive-table td,
  #responsive-table1 td,
  #responsive-table2 td,
  #responsive-table3 td,
  #responsive-table4 td {
    display: grid;
    /*grid-template-columns: 6em auto;*/
    grid-template-columns: 11em auto;
    grid-gap: 1em 0.5em;
  }

  #responsive-table caption,
  #responsive-table1 caption,
  #responsive-table2 caption,
  #responsive-table3 caption,
  #responsive-table4 caption {
    font-style: normal;
    background-color: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: bold;
  }

  #responsive-table td:nth-of-type(3),
  #responsive-table1 td:nth-of-type(3),
  #responsive-table2 td:nth-of-type(3),
  #responsive-table3 td:nth-of-type(3),
  #responsive-table4 td:nth-of-type(3) {
    text-align: left;
  }

  #responsive-table td:nth-of-type(4),
  #responsive-table td:nth-of-type(5),
  #responsive-table1 td:nth-of-type(4),
  #responsive-table1 td:nth-of-type(5),
  #responsive-table2 td:nth-of-type(4),
  #responsive-table2 td:nth-of-type(5),
  #responsive-table3 td:nth-of-type(4),
  #responsive-table3 td:nth-of-type(5),
  #responsive-table4 td:nth-of-type(4),
  #responsive-table4 td:nth-of-type(5) {
    /*text-align: right;
                 */
    /*width: 12em;
                 */
  }

  #responsive-table td:nth-of-type(4)::before,
  #responsive-table td:nth-of-type(5)::before,
  #responsive-table1 td:nth-of-type(4)::before,
  #responsive-table1 td:nth-of-type(5)::before,
  #responsive-table2 td:nth-of-type(4)::before,
  #responsive-table2 td:nth-of-type(5)::before,
  #responsive-table3 td:nth-of-type(4)::before,
  #responsive-table3 td:nth-of-type(5)::before,
  #responsive-table4 td:nth-of-type(4)::before,
  #responsive-table4 td:nth-of-type(5)::before {
    text-align: left;
  }

  #responsive-table td:nth-of-type(2)::before,
  #responsive-table1 td:nth-of-type(2)::before,
  #responsive-table2 td:nth-of-type(2)::before,
  #responsive-table3 td:nth-of-type(2)::before,
  #responsive-table4 td:nth-of-type(2)::before {
    font-style: normal;
  }
}

/* Extra Small Screen Responsive Styles - 383px and below */
@media screen and (max-width: 383px) {
  
  /* Responsive table class styles for extra small screens */
  .responsive-table {
    font-size: 0.85rem;
    margin: 0.5em 0;
  }
  
  .responsive-table tr {
    padding: 0.5em 1vw;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
  }
  
  .responsive-table td {
    padding: 0.2em 0.3em;
    grid-template-columns: 8em auto;
    grid-gap: 0.5em 0.25em;
    font-size: 0.8rem;
  }
  
  .responsive-table td::before {
    font-size: 0.75rem;
    font-weight: bold;
    color: #666;
  }
  
  .responsive-table caption {
    padding: 0.2em 0.3em;
    font-size: 0.9rem;
  }
  
  /* ID-based table styles for extra small screens */
  #responsive-table,
  #responsive-table1,
  #responsive-table2,
  #responsive-table3,
  #responsive-table4 {
    font-size: 0.85rem;
    margin: 0.5em 0;
  }
  
  #responsive-table tr,
  #responsive-table1 tr,
  #responsive-table2 tr,
  #responsive-table3 tr,
  #responsive-table4 tr {
    padding: 0.5em 1vw;
    margin-bottom: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  #responsive-table td,
  #responsive-table1 td,
  #responsive-table2 td,
  #responsive-table3 td,
  #responsive-table4 td {
    padding: 0.2em 0.3em;
    grid-template-columns: 7.5em auto;
    grid-gap: 0.5em 0.25em;
    font-size: 0.8rem;
    line-height: 1.3;
  }
  
  #responsive-table td::before,
  #responsive-table1 td::before,
  #responsive-table2 td::before,
  #responsive-table3 td::before,
  #responsive-table4 td::before {
    font-size: 0.75rem;
    font-weight: bold;
    color: #666;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  #responsive-table caption,
  #responsive-table1 caption,
  #responsive-table2 caption,
  #responsive-table3 caption,
  #responsive-table4 caption {
    padding: 0.2em 0.3em;
    font-size: 0.9rem;
  }
  
  /* Row headers styling for extra small screens */
  #responsive-table th[scope="row"],
  #responsive-table1 th[scope="row"],
  #responsive-table2 th[scope="row"],
  #responsive-table3 th[scope="row"],
  #responsive-table4 th[scope="row"] {
    font-size: 0.95rem;
    padding: 0.5rem;
    margin-bottom: 0.3rem;
  }
  
  /* Responsive container adjustments */
  .responsive-main {
    padding: 0.25rem;
  }
  
  .responsive-div {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Text wrapping and overflow handling for very narrow screens */
  #responsive-table td,
  #responsive-table1 td,
  #responsive-table2 td,
  #responsive-table3 td,
  #responsive-table4 td {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
  }
}

/* Print Styles */
@media print {
  body {
    font-size: 6pt;
    /*color: #000;
                 */
    /*background-color: #fff;
                 */
    /*background-image: none;
                 */
  }

  body,
  .responsive-main {
    margin: 0;
    padding: 0;
    /*background-color: #fff;
                 */
    border: none;
  }

  #responsive-table,
  #responsive-table1,
  #responsive-table2,
  #responsive-table3,
  #responsive-table4 {
    page-break-inside: avoid;
  }

  .responsive-div {
    overflow: visible;
  }

  #responsive-table th,
  #responsive-table1 th,
  #responsive-table2 th,
  #responsive-table3 th,
  #responsive-table4 th {
    color: #000;
    /*background-color: #fff;
                 */
    border-bottom: 1pt solid #000;
  }

  #responsive-table tr,
  #responsive-table1 tr,
  #responsive-table2 tr,
  #responsive-table3 tr,
  #responsive-table4 tr {
    border-top: 1pt solid #000;
  }
}

@media print and (max-width: 8in) {
  #responsive-table table,
  #responsive-table tr,
  #responsive-table td,
  #responsive-table1 table,
  #responsive-table1 tr,
  #responsive-table1 td,
  #responsive-table2 table,
  #responsive-table2 tr,
  #responsive-table2 td,
  #responsive-table3 table,
  #responsive-table3 tr,
  #responsive-table3 td,
  #responsive-table4 table,
  #responsive-table4 tr,
  #responsive-table4 td {
    display: block;
  }

  #responsive-table tr,
  #responsive-table1 tr,
  #responsive-table2 tr,
  #responsive-table3 tr,
  #responsive-table4 tr {
    /*padding: 0.7em 2vw;
                 */
  }

  #responsive-table th,
  #responsive-table1 th,
  #responsive-table2 th,
  #responsive-table3 th,
  #responsive-table4 th {
    display: none;
  }

  #responsive-table tr:first-of-type,
  #responsive-table1 tr:first-of-type,
  #responsive-table2 tr:first-of-type,
  #responsive-table3 tr:first-of-type,
  #responsive-table4 tr:first-of-type {
    /*display: none;*/
  }

  #responsive-table td::before,
  #responsive-table1 td::before,
  #responsive-table2 td::before,
  #responsive-table3 td::before,
  #responsive-table4 td::before {
    display: inline;
    font-weight: bold;
  }

  #responsive-table td,
  #responsive-table1 td,
  #responsive-table2 td,
  #responsive-table3 td,
  #responsive-table4 td {
    display: grid;
    grid-template-columns: 6em auto;
    grid-gap: 1em 0.5em;
  }

  #responsive-table caption,
  #responsive-table1 caption,
  #responsive-table2 caption,
  #responsive-table3 caption,
  #responsive-table4 caption {
    font-style: normal;
    background-color: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-weight: bold;
  }

  #responsive-table td:nth-of-type(3),
  #responsive-table1 td:nth-of-type(3),
  #responsive-table2 td:nth-of-type(3),
  #responsive-table3 td:nth-of-type(3),
  #responsive-table4 td:nth-of-type(3) {
    text-align: left;
  }

  #responsive-table td:nth-of-type(4),
  #responsive-table td:nth-of-type(5),
  #responsive-table1 td:nth-of-type(4),
  #responsive-table1 td:nth-of-type(5),
  #responsive-table2 td:nth-of-type(4),
  #responsive-table2 td:nth-of-type(5),
  #responsive-table3 td:nth-of-type(4),
  #responsive-table3 td:nth-of-type(5),
  #responsive-table4 td:nth-of-type(4),
  #responsive-table4 td:nth-of-type(5) {
    /*text-align: right;
                 */
    /*width: 12em;
                 */
  }

  #responsive-table td:nth-of-type(4)::before,
  #responsive-table td:nth-of-type(5)::before,
  #responsive-table1 td:nth-of-type(4)::before,
  #responsive-table1 td:nth-of-type(5)::before,
  #responsive-table2 td:nth-of-type(4)::before,
  #responsive-table2 td:nth-of-type(5)::before,
  #responsive-table3 td:nth-of-type(4)::before,
  #responsive-table3 td:nth-of-type(5)::before,
  #responsive-table4 td:nth-of-type(4)::before,
  #responsive-table4 td:nth-of-type(5)::before {
    text-align: left;
  }

  #responsive-table td:nth-of-type(2)::before,
  #responsive-table1 td:nth-of-type(2)::before,
  #responsive-table2 td:nth-of-type(2)::before,
  #responsive-table3 td:nth-of-type(2)::before,
  #responsive-table4 td:nth-of-type(2)::before {
    font-style: normal;
  }
}

@media print and (max-width: 5in) {
  #responsive-table caption,
  #responsive-table1 caption,
  #responsive-table2 caption,
  #responsive-table3 caption,
  #responsive-table4 caption {
    /*color: #000;
                 */
    background-color: #fff;
    border-bottom: 1pt solid #000;
  }

  #responsive-table table,
  #responsive-table1 table,
  #responsive-table2 table,
  #responsive-table3 table,
  #responsive-table4 table {
    page-break-inside: auto;
  }

  #responsive-table tr,
  #responsive-table1 tr,
  #responsive-table2 tr,
  #responsive-table3 tr,
  #responsive-table4 tr {
    page-break-inside: avoid;
  }
}