.content header,
.result-list {
    margin-bottom: 0;
}
.listing td,
.listing th {
    vertical-align: top;
}
.listing thead th.sorted a {
    color: var(--theme-color-dark, #b4191f);
}
.listing tbody {
    overflow: auto;
}
.listing tbody tr:hover ul.actions {
    visibility: visible;
}
.listing tbody tr > td {
    background-color: inherit;
}
.listing tbody tr > td a.edit-obj {
    color: inherit;
    font-weight: 600;
}
.changelist-filter {
    padding: 0 15px;
}
.changelist-filter h2 {
    background-color: #fafafa;
    font-size: 13px;
    line-height: 31px;
    margin-top: 0;
    padding-left: 8px;
    border-bottom: 1px solid #e6e6e6;
}
.changelist-filter h3 {
    font-size: 12px;
    margin-bottom: 0;
}
.changelist-filter ul {
    padding-left: 0;
    margin-bottom: 25px;
}
.changelist-filter li {
    list-style-type: none;
    margin: 0 0 4px;
    padding-left: 0;
}
.changelist-filter a {
    font-family: Open Sans, Arial, sans-serif;
    border-radius: 3px;
    width: auto;
    line-height: 1.2em;
    padding: 8px 12px;
    font-size: 0.9em;
    font-weight: 400;
    vertical-align: middle;
    display: block;
    background-color: #fff;
    border: 1px solid var(--theme-color, #FF0000);
    color: var(--theme-color, #FF0000);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
    -webkit-font-smoothing: auto;
    -moz-appearance: none;
}
.changelist-filter a:hover {
    background-color: var(--theme-color-darker, #8f1c21);
    border-color: var(--theme-color-darker, #8f1c21);
    color: #fff;
}
.changelist-filter li.selected a {
    color: #fff !important;
    border-color: var(--theme-color, #FF0000) !important;
    background-color: var(--theme-color, #FF0000);
}
.no-search-results {
    margin-top: 30px;
}
.no-search-results h2 {
    padding-top: 0.3em;
    margin-bottom: 0.3em;
}
.no-search-results img {
    float: left;
    margin: 0 15px 15px 0;
    width: 50px;
}
.pagination {
    margin-top: 3em;
    border-top: 1px dashed #d9d9d9;
    padding: 2em 1em 0;
}
.pagination ul {
    margin-top: -1.25em;
}
p.no-results {
    margin: 30px 1em 0;
}


/* theme override for Wagtail admin header */
header,
header.w-header,
.w-header {
    background: var(--theme-color, #FF0000) !important;
  }

  .w-header .row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .icon-search::before{
    display: none;
  }

  .w-header .header-left {
    display: flex;
    align-items: center;
  }

  header h1,
  .w-header__title {
    font-size: 1.5rem !important;
    color: #fff !important;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .w-header__title .result-count {
    color: #fff;
  }

  header h1 a,
  header h1 a:hover,
  .w-header__title a,
  .w-header__title a:hover {
    color: #fff !important;
  }

  header .icon,
  .w-header .icon,
  .w-header__glyph {
    color: #fff !important;
  }
  
  header .button,
  .w-header .button {
    background-color: var(--theme-color-dark, #b4191f);
    border: 1px solid var(--theme-color-dark, #b4191f)
  }

  header .button:hover,
  .w-header .button:hover {
      background-color: var(--theme-color-darker, #8f1c21);
      border: 1px solid var(--theme-color-darker, #8f1c21)
  }
  
  .button {
    background-color: var(--theme-color, #FF0000);
  }


 .button:hover {
    border: 1px solid var(--theme-color-darker, #8f1c21);
    background-color: var(--theme-color-darker, #8f1c21);
  }


input[type=checkbox]:checked:before,input[type=radio]:checked:before{
    color: var(--theme-color-dark, #b4191f);
  }
  
@media screen and (min-width: 50em) {
    .changelist-filter {
        float: right;
        padding: 0 1.5%;
    }
    .result-list {
        padding: 0 1.5% 0 0;
    }
    .result-list.col12 {
        padding-right: 0;
    }
    .result-list.col12 tbody td:last-child {
        padding-right: 50px;
    }
    .pagination,
    .result-list tbody th:first-child {
        padding-left: 50px;
    }
    .pagination {
        padding-right: 50px;
    }
    .pagination.col9 {
        width: 73.5%;
    }
    p.no-results {
        margin: 30px 50px 0;
    }
}
@media screen and (min-width: 75em) {
    .result-list.col9 {
        width: 87%;
    }
    .changelist-filter {
        width: 13%;
    }
    .pagination.col9 {
        width: 100%;
    }
}


