/* Heading */
#eut-blog-title {
    background-color: #1e1e1e !important;
}

/* Breed filter */
select#breed-selector {
    border-color: rgb(166, 166, 166);
    font-size: 18px;
    color: rgba(0, 0, 0, 0.8);
    font-weight: bold;
}

/* Quick search filters */
#quick-search-filters {
    margin-bottom: 8px;
}

#selected-actions {
    float: right;
}

#selected-actions.disabled .epd-action {
    cursor: default;
    user-select: none;
    pointer-events: none;
    color: #888888;
    border-color: #d4d4d4;
}

#quick-search-filters span,
.epd-filters-search,
.epd-filters-reset,
.epd-action {
    display: inline-block;
    margin: 0 8px 12px 0;
    padding: 8px 16px;
    border: 2px solid #000;
    cursor: pointer;
    background-position: center;
    color: #000;
    font-size: 12px;
    text-transform: uppercase;
    transition: background 800ms, color 100ms;
}

#quick-search-filters span:hover,
.epd-filters-search:hover,
.epd-filters-reset:hover,
.epd-action:hover {
    background: rgba(0, 0, 0, 0.12) radial-gradient(circle, transparent 1%, rgba(0, 0, 0, 0.12) 1%) center/15000%;
    color: rgba(0, 0, 0, 1);
}

#quick-search-filters span.active:hover {
    background: #ee1c25 radial-gradient(circle, transparent 1%, #ee1c25 1%) center/15000%;
    color: #fff;
}

#quick-search-filters span.active {
    background-color: #ee1c25;
    border-color: #ee1c25;
    color: #fff;
}

#quick-search-filters span:active,
.epd-filters-search:active,
.epd-filters-reset:active,
.epd-action:active {
    background-color: #fff !important;
    background-size: 100% !important;
    transition: background 0s !important;
}

/* EPD Filters */
ul#epd-filters {
    list-style-type: none;
    margin-left: 0;
    display: none;
}

#sire-filters.expanded ul#epd-filters {
    display: block;
}

ul#epd-filters li {
    float: left;
    width: 100%;
    padding: 16px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.14);
    color: rgba(0, 0, 0, 0.8);
    line-height: 1em;
}

ul#epd-filters li#epd-filter-header {
    cursor: default !important;
    font-weight: bold;
    border-bottom: 0;
}

#epd-filters li:nth-child(even):not(#epd-filter-header) {
    background-color: rgba(0, 0, 0, 0.03);
}

ul#epd-filters li div.epd-filter-title {
    float: left;
    width: 200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    font-weight: bold;
}

ul#epd-filters li div.epd-filter-title i {
    display: none;
    color: rgba(0, 0, 0, 0.2);
    position: absolute;
    right: 2em;
}

ul#epd-filters li div.epd-filter-summary {
    cursor: pointer;
    padding-top: 6px;
    color: rgba(0, 0, 0, 0.4);
    font-size: 12px;
}

ul#epd-filters li div.epd-filter-trait-wrapper {
    float: left;
    width: calc(100% - 200px);
}

ul#epd-filters li div.epd-filter-trait-wrapper div.epd-filter-trait {
    width: 33%;
    float: left;
    padding: 0 1.5%;
}

.epd-filter-toggle,
.epd-filter-summary,
.epd-filter-trait-wrapper h6 {
    display: none;
}

.epd-filter-trait input {
    display: none;
}

.epd_filter_label {
    text-transform: none !important;
}

.epd_filter_label.from {
    float: left;
}

.epd_filter_label.to {
    float: right;
}

/* Sliders */
#sire-search .ui-slider {
    position: relative;
    text-align: left;
    margin-left: .5em;
    margin-right: .5em;
    height: .5em;
}

#sire-search .ui-slider .ui-slider-range,
#sire-search .ui-slider .ui-slider-handle {
    background-color: #ee1c25;
    color: #ffffff;
}

#sire-search .ui-slider .ui-slider-range {
    position: absolute;
    z-index: 1;
    font-size: .7em;
    display: block;
    border: 0;
    border-radius: 1em;
    background-color: #ee1c25;
    top: 0;
    height: 100%;
}

#sire-search .ui-slider .ui-slider-handle {
    position: absolute;
    z-index: 2;
    width: 1em;
    height: 1em;
    background-color: #ee1c25;
    border-radius: 1em;
    cursor: ew-resize;
    outline: 0;
    top: -.3em;
    margin-left: -.5em;
}

/* Results */
#sire-results-content {
    position: relative;
    min-height: 100px;
    width: 100%;
    overflow: scroll;
}

span#results-count {
    font-size: 18px;
}

table.results-table {
    background-color: #fff;
    border: 0;
    font-size: 12px;
}

table.results-table tr th,
table.results-table tr td {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    outline: none;
}

table.results-table thead tr th {
    padding: 8px;
    background-color: #4d4d4d;
    color: #fff;
    border: 0;
}

table.results-table thead tr th[data-sort] {
    cursor: pointer;
}

table.results-table tbody {
    border-bottom: 1px solid #e9e9e9;
}

table.results-table tbody tr {
    border: 0;
}

table.results-table tbody tr td {
    padding: 0;
    transition: background-color 200ms ease-in, color 200ms ease-in;
    border: 0;
    border-right: 1px solid #e9e9e9;
}

table.results-table tbody tr:nth-child(3) td {
    vertical-align: top;
}

table.results-table tbody tr td img {
    max-width: 150px;
}

table.results-table tbody:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}

table.results-table tbody tr td:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

table.results-table tbody:hover,
table.results-table tbody tr td.sorting {
    background-color: rgba(238, 28, 37, 0.8) !important;
    color: #fff;
}

table.results-table tbody tr:first-child td {
    font-weight: bold;
    color: rgba(0, 0, 0, 0.8);
}

/* Code */
table.results-table tbody tr td:nth-child(2),
table.results-table tbody tr td:nth-child(3) {
    text-align: left;
    padding: 0 8px;
}

table.results-table tbody tr:first-child td:nth-child(2) {
    text-align: left;
    padding-top: 8px;
}

table.results-table tbody tr:last-child td:nth-child(2) {
    padding-bottom: 8px;
}

table.results-table tbody tr:first-child td:nth-child(3) a {
    color: #b8162a;
}

table.results-table tbody:hover tr:first-child td:nth-child(3) a,
table.results-table tbody:hover tr:first-child td,
table.results-table tbody:hover tr:first-child td a,
table.results-table tbody:hover tr:nth-child(2) td a {
    color: #fff;
}

table.results-table tbody tr:hover,
table.results-table tbody tr:hover a,
table.results-table tbody tr td.sorting a {
    color: #fff;
}

/* Fixed table width */
/*table.results-table {*/
/*    table-layout: fixed;*/
/*    margin-bottom: 0;*/
/*}*/

/*table.results-table tr th:first-child,*/
/*table.results-table tr td:first-child {*/
/*    width: 30px;*/
/*    padding: 0;*/
/*}*/

/*table.results-table tr th:nth-child(2),*/
/*table.results-table tr td:nth-child(2) {*/
/*    width: 180px;*/
/*}*/

/*table.results-table tr th:nth-child(3),*/
/*table.results-table tr td:nth-child(3) {*/
/*    width: 200px;*/
/*}*/

/* fixed table header */
.selectsi-data-table-wrapper {
    min-height: 250px;
    height: 750px;
    max-height: calc(100vh - 160px);
}

.selectsi-data-table-wrapper th {
    position: sticky;
    position: -webkit-sticky;
    top: 0;
}

/* Page Layout */
#sire-filters {
    position: relative;
    padding: 40px 80px;
    margin: 0 auto;
    width: 100%;
    max-width: 1600px;
}

#sire-filters #filter-actions-bottom {
    display: none;
}

#sire-filters.expanded #filter-actions-bottom {
    display: block;
}

#sire-results {
    display: none;
}

#sire-results.expanded {
    display: block;
}

/* Print Modal */
.sire-results-print-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.54);
    display: none;
}

.sire-results-modal {
    position: fixed;
    top: 200px;
    left: 25%;
    width: 50%;
    z-index: 10002;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
    text-align: center;
    overflow: hidden;
}

.sire-results-modal h5 {
    padding: 12px;
    margin: 0;
    background-color: #e2232c;
    color: #fff;
}

.sire-results-modal a {
    display: inline-block;
    margin: 32px 8px;
    padding: 8px 16px;
    border: 2px solid #000;
    cursor: pointer;
    background-color: #000;
    background-position: center;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    transition: background 800ms, color 100ms;
}

.sire-results-modal a:hover {
    background-color: #ee1c25;
    border-color: #ee1c25;
}

@media screen and (max-width: 1023px) {
    #sire-filters {
        padding: 40px;
    }

    #selected-actions {
        margin-top: 20px;
        float: none;
    }
}

@media screen and (max-width: 768px) {
    #sire-filters {
        padding: 20px;
    }

    .epd-filter-title {
        cursor: pointer;
    }

    ul#epd-filters li {
        padding-left: 0;
        padding-right: 0;
    }

    ul#epd-filters li#epd-filter-header {
        display: none;
    }

    #epd-filters li:nth-child(even):not(#epd-filter-header) {
        background-color: inherit;
    }

    ul#epd-filters li div.epd-filter-title,
    ul#epd-filters li div.epd-filter-trait-wrapper,
    ul#epd-filters li div.epd-filter-trait-wrapper div.epd-filter-trait {
        float: none;
        width: 100%;
    }

    ul#epd-filters li div.epd-filter-trait-wrapper div.epd-filter-trait {
        padding: 0;
        margin-bottom: 8px;
    }

    ul#epd-filters li div.epd-filter-title i,
    .epd-filter-toggle,
    .epd-filter-summary,
    .epd-filter-trait-wrapper h6 {
        display: block;
    }


    .epd-filter-trait-wrapper h6 {
        margin: 0;
        font-weight: normal;
    }

    .from, .to {
        display: none !important;
    }

    .epd-filter-trait-wrapper {
        transition: all 200ms;
        opacity: 0;
        height: 0;
        width: 0;
        overflow: hidden;
    }

    .epd-filter-trait-wrapper.expanded {
        display: block;
        padding: 12px;
        box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.24);
        height: auto;
        width: 100%;
        opacity: 1;
    }

    .sire-results-modal {
        left: 12.5%;
        width: 75%;
    }
}
