:root {
    --primary-color: #ac1a2f;
    --white: #ffffff;
    --light-gray: #f4f4f4;
}

.page-header {
    background-color: var(--light-gray);
    padding: 30px 0;
}

.page-header h1,
.page-header .h1 {
    color: var(--primary-color);
    line-height: 1;
    font-size: 2.5rem;
}

/* directory - start */
.contact-table {
    padding: 40px;
}

.disclaimer {
    font-size: 16px;
    border-top: 5px solid var(--primary-color);
    margin: 20px auto 50px;
    padding: 10px 0;
}

.dataTables_length {
    text-align: left;
}

.directory thead {
    background: var(--primary-color);
    color: var(--white);
}

.directory {
    background-color: var(--white);
    text-align: left;
    padding-top: 16px;
}

.directory thead tr td,
.directory thead th {
    border: none;
}

#directory-list_wrapper .dataTables_filter input,
#frequent-contacts_wrapper .dataTables_filter input,
[id^="frequent-contacts-"][id$="_wrapper"] .dataTables_filter input {
    width: 70% !important;
}

table.dataTable thead>tr>th.sorting:after,
table.dataTable thead>tr>th.sorting_asc:after,
table.dataTable thead>tr>th.sorting:before,
table.dataTable thead>tr>th.sorting_asc:before {
    font-size: 30px;
    padding-bottom: 4px;
}

.dataTables_length,
.directory-list_filter {
    padding-bottom: 16px;
}

div#directory-list_wrapper div.dataTables_paginate ul.pagination,
div#frequent-contacts_wrapper div.dataTables_paginate ul.pagination,
div[id^="frequent-contacts-"][id$="_wrapper"] div.dataTables_paginate ul.pagination {
    margin-top: 10px !important;
    justify-content: center;
    padding-left: 0;
}

.directory a,
.disclaimer a {
    color: var(--primary-color);
}

.directory a:hover,
.disclaimer a:hover {
    color: black;
}

#directory-list_paginate .active>.page-link,
#frequent-contacts_paginate .active>.page-link,
[id^="frequent-contacts-"][id$="_paginate"] .active>.page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

#directory-list_wrapper .page-item:not(.disabled) .page-link,
#frequent-contacts_wrapper .page-item:not(.disabled) .page-link,
[id^="frequent-contacts-"][id$="_wrapper"] .page-item:not(.disabled) .page-link {
    color: var(--primary-color);
}

#directory-list_wrapper .page-item.active .page-link,
#frequent-contacts_wrapper .page-item.active .page-link,
[id^="frequent-contacts-"][id$="_wrapper"] .page-item.active .page-link {
    color: white;
}

/* mirror bootstrap styling */
.table-responsive table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

tbody,
td,
tfoot,
th,
thead,
tr {
    border-color: inherit;
    border-style: solid;
    border-width: 0;
}

.table>tbody {
    vertical-align: inherit;
}

.table-striped>tbody>tr:nth-of-type(2n+1)>* {
    background-color: #F2F2F2;
}

.table-responsive table th,
.table-responsive table td {
    padding: 0.5rem;
    border-bottom-width: 1px;
    border-bottom-color: rgb(222, 226, 230);
}

.faculty-directory {
    margin: 50px 0;
}

#directory-list_wrapper .row,
#frequent-contacts_wrapper .row,
[id^="frequent-contacts-"][id$="_wrapper"] .row {
    display: flex;
}

#directory-list_wrapper .col-md-6,
#frequent-contacts_wrapper .col-md-6,
[id^="frequent-contacts-"][id$="_wrapper"] .col-md-6 {
    flex: 0 0 auto;
    width: 50%;
}

#directory-list_wrapper .row .col-sm-12:not(.col-md-6):not(.col-md-5),
#frequent-contacts_wrapper .row .col-sm-12:not(.col-md-6):not(.col-md-5),
[id^="frequent-contacts-"][id$="_wrapper"] .row .col-sm-12:not(.col-md-6):not(.col-md-5) {
    width: 100%;
}

.dataTables_paginate ul {
    list-style: none;
    display: flex;
}

div:has(> .dataTables_paginate) {
    width: 100%;
    padding: 0.375rem 0;
}

.paginate_button a {
    padding: 0.375rem 0.75rem;
    border: 1px solid #dee2e6;
    text-decoration: none;
}

.paginate_button.disabled a {
    background-color: #E9ECEF;
    color: #54575B;
}

.paginate_button.previous a {
    border-radius: 10px 0 0 10px;
}

.paginate_button.next a {
    border-radius: 0 10px 10px 0;
}

#directory-list_length select,
#frequent-contacts_length select,
[id^="frequent-contacts-"][id$="_length"] select {
    padding: .25rem 1.75rem .25rem .5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpolyline points='1,1 6,6 11,1' fill='none' stroke='currentColor' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.6rem;
}

table.dataTable thead>tr>th.sorting::before,
table.dataTable thead>tr>th.sorting::after,
table.dataTable thead>tr>th.sorting_asc::before,
table.dataTable thead>tr>th.sorting_asc::after,
table.dataTable thead>tr>th.sorting_desc::before,
table.dataTable thead>tr>th.sorting_desc::after,
table.dataTable thead>tr>th.sorting_asc_disabled::before,
table.dataTable thead>tr>th.sorting_asc_disabled::after,
table.dataTable thead>tr>th.sorting_desc_disabled::before,
table.dataTable thead>tr>th.sorting_desc_disabled::after,
table.dataTable thead>tr>td.sorting::before,
table.dataTable thead>tr>td.sorting::after,
table.dataTable thead>tr>td.sorting_asc::before,
table.dataTable thead>tr>td.sorting_asc::after,
table.dataTable thead>tr>td.sorting_desc::before,
table.dataTable thead>tr>td.sorting_desc::after,
table.dataTable thead>tr>td.sorting_asc_disabled::before,
table.dataTable thead>tr>td.sorting_asc_disabled::after,
table.dataTable thead>tr>td.sorting_desc_disabled::before,
table.dataTable thead>tr>td.sorting_desc_disabled::after {
    opacity: 0.325;
}

table.dataTable thead>tr>th.sorting_asc::before,
table.dataTable thead>tr>th.sorting_desc::after,
table.dataTable thead>tr>td.sorting_asc::before,
table.dataTable thead>tr>td.sorting_desc::after {
    opacity: 0.9;
}

#directory-list_filter input,
#frequent-contacts_filter input,
[id^="frequent-contacts-"][id$="_filter"] input {
    border: 2px solid #dee2e6;
    min-height: 30px;
}

/* directory - end */

/* profile - start */
.faculty-headshot {
    text-align: center;
    margin: auto;
    margin-right: 0;
}

.faculty-headshot img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
}

.faculty-box {
    margin-bottom: 30px;
}

.faculty-box-info {
    margin-bottom: 10px;
}

.faculty-box-info .faculty-box-title {
    font-weight: bold;
    font-size: 18px;
    margin-right: 6px;
}

.table-responsive.table-profile {
    overflow-x: auto;
}

.table-responsive.table-profile table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

/* mirror bootstrap styling */
.row-5050.faculty-profile {
    justify-content: space-between;
    margin-top: 50px;
}

.row-5050.faculty-profile .faculty-info {
    flex: 1 1 calc(60% - 10px);
    margin-right: 10px;
}

.row-5050.faculty-profile .faculty-headshot {
    flex: 1 1 calc(40% - 10px);
}

/* profile - end */

/* responsive - start */
@media only screen and (max-width: 767px) {

    .row-5050.faculty-profile,
    #directory-list_wrapper .row, 
    #frequent-contacts_wrapper .row,
    [id^="frequent-contacts-"][id$="_wrapper"] .row {
        flex-direction: column;
    }

    .row-5050.faculty-profile .faculty-headshot,
    .row-5050.faculty-profile .faculty-info {
        width: 100%;
        margin: 0;
    }

    .faculty-headshot img {
        max-height: 350px;
    }

    #directory-list_wrapper .col-md-6,
    #frequent-contacts_wrapper .col-md-6,
    [id^="frequent-contacts-"][id$="_wrapper"] .col-md-6 {
        width: 100%;
    }

    div.dataTables_wrapper div.dataTables_length,
    div.dataTables_wrapper div.dataTables_filter {
        text-align: left;
    }

}

/* undo row-5050 inherited style */
@media (max-width: 900px) {
    .row-5050 {
        flex-direction: row;
    }
}

@media only screen and (max-width: 992px) {

    /* Force table to not be like tables anymore */
    .directory table,
    .directory thead,
    .directory tbody,
    .directory th,
    .directory td,
    .directory tr {
        display: block;
    }

    /* Hide table headers (but not display: none;, for accessibility) */
    .directory thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .directory tr {
        border: 1px solid #ccc;
        padding: 10px;
    }

    .directory td {
        border: none;
        position: relative;
        white-space: normal;
        text-align: left;
        padding: 0;
    }

    .directory td:before {
        position: absolute;
        top: 6px;
        left: 6px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
    }

    .table.directory tfoot {
        display: none;
    }

    #directory-list_wrapper .dataTables_info,
    #frequent-contacts_wrapper .dataTables_info,
    [id^="frequent-contacts-"][id$="_wrapper"] .dataTables_info {
        white-space: normal !important;
    }

    #directory-list td:before,
    #frequent-contacts td:before,
    table[id^="frequent-contacts-"] td:before {
        content: attr(data-title);
    }
    
    .table-responsive table td {
        padding: 0;
    }
}

/* responsive - end */

.fw-bold {
	font-weight: 700;
}
