@import 'node_modules/govuk_frontend_toolkit/stylesheets/_typography';
@import 'node_modules/govuk_frontend_toolkit/stylesheets/_colours.scss';

.complex-panel {
  $padding: 5px;
  margin: 13px 0px;

  border: 1px solid $border-colour;

  .complex-panel-title {
    background-color: $panel-colour;
    padding: $padding;
    border-bottom: 1px solid $border-colour;
    font-weight: bold;
    display: block;
    color: $text-colour;
    padding-bottom: 2px;

    @include bold-19;
  }

  .complex-panel-table {
    table-layout: fixed;

    &>tbody>tr>th {
      vertical-align: top;
      color: #2E2C70;
    }

    &>tbody>tr:last-child {
      &>th {
        border-bottom: none;
      }
    }
    th {
      padding-left: $padding;
      font-weight: bold;
      border-bottom: none;
    }
    th:first-child {
      width: 30%;
    }
    th:last-child {
      width: 5%;
    }
    td {
      padding-left: $padding;
      padding-top: 5px;
      padding-bottom: 5px;
      border-bottom: none;
    }
  }
  .new-table-row{
    border-top: 1px solid $border-colour;
  }
  .complex-panel-simple-field {
    th {
      padding-left: $padding;
      padding-top: 0px;
      padding-bottom: 0px;
      width: 295px;
    }
  }
  .complex-panel-nested-field {
    th {
      padding-left: 33px;
      padding-top: 0px;
      padding-bottom: 0px;
      width: 200px;
    }
  }
  .complex-panel-compound-field {
    td {
      padding: $padding;
      border-bottom: none;
    }
  }
  .accordion-icon {
    margin-right: 5px;
    float: right;
    padding: 2px;
    cursor: pointer;
    color: #2E2C70;
  }
}
.sort-widget {
  cursor: pointer;
  text-decoration: none;
  color: $black;
}

.accordion-wrapper {
  margin-top: 10px;
  margin-bottom: 10px;

  .heading-medium {
    margin: 0px;
  }
  .accordion-heading{
    border-top: 1px solid #bfc1c3;
    padding-top: 20px;
    padding-bottom: 10px;
    height: 20px;
    cursor: pointer;
  }
  .accordion-body {
    margin-top: 20px;
    margin-right: 20px;
  }
  .last-accordion {
    border-bottom: 1px solid #bfc1c3;
    padding-bottom: 30px;
  }
  .accordion-panel-table {
    th {
      width: 30%;
      border-bottom: 1px solid #E1E4E7;
      color: #000;
    }
    td {
      border-bottom: 1px solid #E1E4E7;
      word-break: break-word;
    }
    tr:last-child>th {
      border-bottom: none;
    }
    tr:last-child>td {
      border-bottom: none;
    }
  }
}



