/* Grid View */
.grid-view {
  position: relative;
}
.grid-view .table {
  background: #ffffff;
  border: 0 none;
  color: var(--ppp-dark-grey);
  margin: 0 0 0.5rem;
  vertical-align: middle;
}

.grid-view .table thead {
  background: var(--ppp-dark-grey);;
  border: 0 none;
  color: #ffffff;
  vertical-align: middle;
}
.grid-view .table thead tr {
  background: var(--ppp-dark-grey);
  border: 0 none;
  color: #ffffff;
  vertical-align: middle;
}
.grid-view .table thead tr th,
.grid-view .table thead tr td {
  background: var(--ppp-dark-grey);;
  border: 0 none;
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 300;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid-view .table thead tr th,
  .grid-view .table thead tr td {
    font-size: 1.6rem;
  }
}
@media (max-width: 767px) {
  .grid-view .table thead tr th,
  .grid-view .table thead tr td {
    font-size: 1.6rem;
  }
}
.grid-view .table thead tr.filters td {
  padding-top: 0;
}
.grid-view .table thead tr.filters input {
  border-width: 0.1rem;
  font-size: 1.5rem;
  height: auto;
  padding: 0.5rem 1rem;
}
.grid-view .table thead a {
  color: #ffffff;
  text-decoration: none;
}
.grid-view .table tbody {
  background: #ffffff;
  border: 0 none;
  vertical-align: middle;
}
.grid-view .table tbody tr {
  background: #ffffff;
  border: 0 none;
  vertical-align: middle;
}
.grid-view .table tbody tr.row-link {
  cursor: pointer;
}
.grid-view .table tbody tr td {
  background: transparent !important;
  border: 0 none;
  vertical-align: middle;
}
.grid-view .table tbody tr td.truncate {
  max-width: 15rem !important;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.grid-view .table tbody tr td span.disabled {
  cursor: not-allowed;
}
.grid-view .table tbody tr td.actions {
  padding-right: 2rem;
  text-align: right;
}
.grid-view .table tbody tr td.actions a + a {
  margin-left: 1rem;
}
.grid-view .table tbody tr td.actions a .glyphicon {
  font-size: 2rem;
  vertical-align: middle;
}
.grid-view .table tbody tr td a.edit-button {
  background: #ed1c24;
  -webkit-border-radius: 0.4rem;
  -moz-border-radius: 0.4rem;
  border-radius: 0.4rem;
  color: #ffffff;
  display: inline-block;
  height: 2.2rem;
  margin-left: 1rem;
  padding: 0.5rem;
  position: relative;
  top: 0.5rem;
  width: 2.2rem;
}
.grid-view .table tbody tr td a.edit-button:hover {
  background: #003858;
}
.grid-view .table tbody tr td a.edit-button .glyphicon {
  margin: 0;
  top: -0.5rem;
}

.grid-view .table tbody tr td a[data-toggle="collapse"]:hover {
  color: #ed1c24;
}
.grid-view .table.table-with-collapse.properties-table th:nth-child(2),
.grid-view .table.table-with-collapse.unapproved-sponsor-plans-table th:nth-child(2),
.grid-view .table.table-with-collapse.properties-table td:nth-child(2),
.grid-view .table.table-with-collapse.unapproved-sponsor-plans-table td:nth-child(2) {
  text-align: center;
  padding: 0.4rem;
}
.grid-view .table.table-with-collapse.properties-table th:nth-child(2) .caret,
.grid-view .table.table-with-collapse.unapproved-sponsor-plans-table th:nth-child(2) .caret,
.grid-view .table.table-with-collapse.properties-table td:nth-child(2) .caret,
.grid-view .table.table-with-collapse.unapproved-sponsor-plans-table td:nth-child(2) .caret {
  border-top: 0.6rem dashed;
  border-right: 0.6rem solid transparent;
  border-left: 0.6rem solid transparent;
}
.grid-view .table.table-with-collapse.properties-table td .buttons-list button,
.grid-view .table.table-with-collapse.unapproved-sponsor-plans-table td .buttons-list button {
  margin-bottom: 1rem;
}
.grid-view .table.table-with-collapse tr.with-checkbox-column th:first-child,
.grid-view .table.table-with-collapse tr.with-checkbox-column td:first-child {
  width: 3rem;
  text-align: center;
}
.grid-view .table.table-with-collapse tr th.caret-header,
.grid-view .table.table-with-collapse tr td.caret-header {
  width: 4rem;
  text-align: center;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  padding-left: 10px;
  padding-right: 0px;
}

.grid-view .table.table-with-collapse tr td[data-header-class='caret-header'] {
  padding-left: 0px;
  padding-right: 0px;
}

.grid-view .table.collapse-on-mobile tr th.caret-header,
.grid-view .table.collapse-on-mobile tr td[data-header-class='caret-header'] {
    display: none;
}

.grid-view .table.table-with-collapse tr th.caret-header .caret,
.grid-view .table.table-with-collapse tr td.caret-header .caret {
  vertical-align: middle;
  border-top: 0.6rem dashed;
  border-right: 0.6rem solid transparent;
  border-left: 0.6rem solid transparent;
  padding-left: 0px;
  padding-right: 0px;
}
.grid-view .table.table-with-collapse tr th.unregistered,
.grid-view .table.table-with-collapse tr td.unregistered {
  color: lightgray;
}
@media (max-width: 767px) {
  .grid-view .table.table-with-collapse thead tr:not(.with-order-column):not(.with-checkbox-column):not(.show-two-columns) th:nth-child(n + 3) {
    display: none;
  }
  .grid-view .table.table-with-collapse thead tr.with-order-column th:nth-child(n + 4),
  .grid-view .table.table-with-collapse thead tr.with-order-column th:nth-child(2) {
    display: none;
  }
  .grid-view .table.table-with-collapse thead tr.with-checkbox-column th:nth-child(n + 4),
  .grid-view .table.table-with-collapse thead tr.with-checkbox-column th:nth-child(1) {
    display: none;
  }
  
  .grid-view .table.table-with-collapse thead tr.show-two-columns th:nth-child(n + 4) {
    display: none;
  }
  
    .grid-view .table.collapse-on-mobile tr th.caret-header,
    .grid-view .table.collapse-on-mobile tr td[data-header-class='caret-header'] {
        display: table-cell;
    }
}
@media (max-width: 767px) {
  .grid-view .table.table-with-collapse tbody tr:not(.collapse) td:not(.keep):not(.details):not(.with-checkbox-column):not(.dataTables_empty) {
    display: none;
  }
  .grid-view .table.table-with-collapse tbody tr:not(.collapse) td:not(.details):nth-child(2),
  .grid-view .table.table-with-collapse tbody tr:not(.collapse) td:not(.details):nth-child(3) {
    text-decoration: underline;
  }
  .grid-view .table.table-with-collapse tbody tr:not(.collapse) td.with-checkbox-column:not(.details) th:nth-child(n + 4),
  .grid-view .table.table-with-collapse tbody tr:not(.collapse) td.with-checkbox-column:not(.details) th:nth-child(1) {
    display: none;
  }
}

.grid-view .table.table-with-collapse tbody tr:not(.parent-row) td {
    padding: 0;
}

.grid-view .table.table-with-collapse tbody tr div[aria-expanded] {
  border-top: none;
}

@media (max-width: 767px) {
  .grid-view .table.table-with-collapse tbody tr td.hide-on-mobile div[aria-expanded] {
    display: none;
  }
}
.grid-view .table.table-with-collapse tbody tr td div[aria-expanded].row {
  display: flex;
  margin: 0;
  justify-content: space-between;
  padding-left: 6rem;
  padding-right: 6rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded].row:before,
.grid-view .table.table-with-collapse tbody td div[aria-expanded].row:after {
  position: absolute;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded].row > div:first-child {
  margin-bottom: 1rem;
}
@media (max-width: 767px) {
  .grid-view .table.table-with-collapse tbody td div[aria-expanded].row {
    flex-direction: column;
  }
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded].row > div {
  display: flex;
}
@media (max-width: 767px) {
  .grid-view .table.table-with-collapse tbody td div[aria-expanded].row > div {
    flex-wrap: wrap;
  }
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded].row ul li {
  margin: 0;
  display: flex;
  min-width: 10rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded].row ul li > div:nth-child(2) {
  margin-left: 1rem;
  flex-grow: 1;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded].row ul li + li {
  margin-top: 1rem;
}
@media (max-width: 479px) {
  .grid-view .table.table-with-collapse tbody td div[aria-expanded].row ul li {
    flex-direction: column;
  }
  .grid-view .table.table-with-collapse tbody td div[aria-expanded].row ul li div:nth-child(2) {
    margin-left: 0;
  }
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul {
  margin: 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.properties-description div:first-of-type {
  min-width: 14rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.documents-description div:first-of-type {
  min-width: 10rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.people-description div:first-of-type {
  min-width: 14rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.board-description div:first-of-type {
  min-width: 10rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.listing-description div:first-of-type {
  min-width: 9rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.global-documents-description div:first-of-type {
  min-width: 11rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.hoa-documents-description div:first-of-type {
  min-width: 11rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.active-order div:first-of-type {
  min-width: 11rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.order-documents-description div:first-of-type {
  min-width: 11rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.sponsor-plans-description li > div:first-of-type {
  min-width: 12rem;
  max-width: 12rem;
  white-space: normal;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.sponsor-plans-description .gridview-plan-name {
  display: flex;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.sponsor-plans-description .gridview-plan-name .gridview-plan-prices {
  display: flex;
  flex-direction: column;
  margin-left: 0.5rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.sponsor-plans-description .client-admin,
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul.sponsor-plans-description .renewed-plan {
  margin-bottom: 0.5rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li > div:first-of-type {
  font-weight: bold;
  white-space: nowrap;
  min-width: 8rem;
}

.grid-view .table.table-with-collapse.table_voters tbody td div[aria-expanded] ul li > div:first-of-type {
    min-width: 13rem;
}

.grid-view .table.table-with-collapse#list_table tbody td div[aria-expanded] ul li > div:first-of-type {
    min-width: 12rem;
}

.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li .message-body h1,
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li .message-body h2,
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li .message-body h3,
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li .message-body h4,
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li .message-body h5 {
  color: black;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li .message-body blockquote {
  padding: 0.5rem;
  margin: 0 0 1rem;
  font-size: 1.6rem;
  border-left: 0.3rem solid #eeeeee;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li .message-body blockquote div.reply-to-body-wrapper {
  padding-top: 2rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li .message-body blockquote div.reply-to-body-wrapper div.reply-to-body {
  font-weight: normal;
  font-size: 1.6rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li .message-body img {
  max-width: 100%;
  height: auto;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li .message-body li {
  display: list-item;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li .message-body ul {
  margin: 1rem 0;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li .btn {
  margin-bottom: 0.5rem;
}
.grid-view .table.table-with-collapse tbody td div[aria-expanded] ul li.actions-buttons {
  margin-top: 0.8rem;
}
.grid-view .table.table-with-collapse tbody .even {
  background-color: #ffffff;
}
.grid-view .table.table-with-collapse tbody .even td {
  background-color: #ffffff;
}
.grid-view .table.table-with-collapse tbody .odd,
.grid-view .table.table-with-collapse tbody .odd {
  background-color: var(--ppp-light-grey);
}
.grid-view .table.table-with-collapse tbody .odd td,
.grid-view .table.table-with-collapse tbody .odd td {
  background: transparent;
}
.grid-view .table.table-with-collapse tbody  td.visibility-hidden,
.grid-view .table.table-with-collapse tbody  td.visibility-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: visible;
  display: table-cell;
}
@media (max-width: 767px) {
  .grid-view .table.table-with-collapse tbody .odd td.visibility-hidden,
  .grid-view .table.table-with-collapse tbody .odd td.visibility-hidden {
    display: none;
  }
}
@media (max-width: 767px) {
  .grid-view .table.table-with-collapse tbody .odd,
  .grid-view .table.table-with-collapse tbody .odd {
    background: #ffffff;
  }
}
.grid-view .table.table-with-collapse tbody tr form.temporary-form {
  margin-right: 5rem;
  width: auto;
}
.grid-view .table.table-with-collapse tbody tr form.temporary-form img {
  max-width: 12rem;
}
.grid-view .table.table-with-collapse tbody tr ul li.actions-buttons .btn {
  margin-bottom: 0.5rem;
}
.grid-view .table.table-with-collapse tbody tr ul.list-unstyled {
  padding-right: 1rem;
}
.grid-view .table.table-with-collapse tbody tr ul.buttons-list a,
.grid-view .table.table-with-collapse tbody tr ul.buttons-list button {
  white-space: nowrap;
}
@media (max-width: 767px) {
  .grid-view .table.table-with-collapse tbody tr ul.buttons-list {
    margin-bottom: 1rem !important;
  }
}
.grid-view .table.table-with-collapse tbody tr ul ul.website-list.two-columns {
  columns: 2;
}
.grid-view .table.table-with-collapse tbody a[data-toggle="collapse"] {
  display: block;
  padding: 0.4em 0.6em;
  outline: none;
  font-weight: bold;
  text-decoration: none;
  text-align: left;
}

.grid-view .table.table-with-collapse tbody a[data-toggle="collapse"] i {
    border-color: #ed1c24; 
}

.grid-view .table.table-with-collapse tbody a[data-toggle="collapse"]:hover {
  text-decoration: none;
}
.grid-view .table.table-with-collapse tbody a[data-toggle="collapse"].open i.arrow {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  margin-left: 3px;
  margin-bottom: 4px;
}
.grid-view .table.sortable-table .sortable-row .sort-column-no {
  width: 5rem;
  cursor: move;
}
.grid-view .table.sortable-table .sortable-row .sort-column-no.visibility-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: visible;
  display: table-cell;
}
@media (max-width: 767px) {
  .grid-view .table.sortable-table .sortable-row .sort-column-no.visibility-hidden {
    display: none;
  }
}
.grid-view .summary {
  float: right;
  font-size: 1.4rem;
  font-style: italic;
  padding: 1rem 1rem 0 0;
  text-align: right;
}
@media (max-width: 1023px) {
  .grid-view {
    overflow-x: auto;
    overflow-y: hidden;
  }
}
@media (max-width: 1023px) {
  body.modal-open .grid-view {
    overflow-x: hidden;
  }
}


/*
  Overrwrite DataTables stylings
*/
.grid-view .dataTable .caret-header .DataTables_sort_wrapper{
    padding-right: 0;
}

.grid-view .dataTable .caret-header .DataTables_sort_wrapper span {
    display: none;
}

.grid-view .dataTable .drag-and-drop .DataTables_sort_wrapper{
    padding-right: 0;
}

.grid-view .dataTable .drag-and-drop .DataTables_sort_wrapper span {
    display: none;
}

.grid-view .table.dataTable .odd td.sorting_1, 
.grid-view .table.dataTable .odd td.sorting_2, 
.grid-view .table.dataTable .odd td.sorting_3 {
    background-color: inherit;
}


.grid-view .dataTable .table.table-with-collapse tbody tr:nth-child(2n+1) {
  background-color: #ffffff;
}
.grid-view .dataTable .table.table-with-collapse tbody tr:nth-child(2n+1) td {
  background-color: #ffffff;
}
.grid-view .dataTable .table.table-with-collapse tbody tr:nth-child(4n+1),
.grid-view .dataTable .table.table-with-collapse tbody tr:nth-child(4n+2) {
  background-color: #e9e8e8;
}
.grid-view .dataTable .table.table-with-collapse tbody tr:nth-child(4n+1) td,
.grid-view .dataTable .table.table-with-collapse tbody tr:nth-child(4n+2) td {
  background: transparent;
}

body .dataTables_length{
    max-width: 30rem;
    position: relative;
    top: 0.7rem;
}
body .dataTables_length select {
    display: inline;
    width: auto;
}

body .dataTables_filter {
    min-width: 30rem;
    display: none;
}

html body .dataTables_filter input {
    display: inline !important;
    width: auto;
    max-width:20rem;
}

html body .dataTables_filter .table-search {
    margin-bottom: 0;
}

html body .dataTables_filter .table-search input {
    margin-bottom: 0;
    max-width:25rem;
    padding-right: 3.5rem !important;
}

html body .dataTables_filter .table-search:after {
    background-image: url(../../img/magnifier.svg);
    content: "";
    width: 2rem;
    height: 2rem;
    background-size: auto;
    display: inline-block;
    right: 1.5rem;
    position: absolute;
    top: 2.1rem;
}

html body .dataTables_wrapper .ui-toolbar {
    padding: 1rem 0;
}

html body table.dataTable, 
html body .ui-toolbar {
    border: none;
}

.grid-view .table#certified-mail-addresses input {
    font-size: 11px;
}

.grid-view .table#recipients-addresses input {
    font-size: 12px;
}

.drag_icon {
    width: 1.8rem;
    height: 1.8rem;
    min-width: 1.8rem;
    min-height: 1.8rem;
}

html body table .checkbox-wrapper {
    display: flex;
    align-items: center;
}