/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~GENERAL~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
strong {
    font-weight: bold;
}
.w-unset {
    width: unset !important;
}

/* ~~~~~ COLORS ~~~~~ */
.bg-lightgray {
    background-color: #f2f2f2;
}
.checkmark {
    color: green;
}
.bluetext {
    color: #253d78;
}

/* ~~~~~ IMAGES ~~~~~ */
.sm-image {
    max-width: 100px;
}

/* ~~~~~ SRP MODAL OVERRIDES ~~~~~ */
.modal-header * {
    padding-top: 7px;
}

/* ~~~~~ BUTTONS THAT LOOK LIKE LINKS ~~~~~ */
.btn-link-only {
    -webkit-appearance: none !important;
    border: none;
    background: none;
    padding: 0;
    margin: 0;
    color: #0071ea;
}
.btn-link-only:hover {
    color: #004c9e;
    text-decoration: underline;
}
.btn-link-only:focus {
    outline-style: dotted;
    outline-width: thin;
}

/* ~~~~~ BUTTONS (DISABLED AND OUTLINED) ~~~~~ */
.btn-primary.disabled,
.btn-primary:disabled {
    color: #fff;
    background-color: #146758;
    border-color: transparent;
}
.btn-outline-primary {
    color: #146758;
    background-color: transparent;
    background-image: none;
    border-color: #146758;
}
.btn-outline-primary:hover {
    color: #fff;
    background-color: #146758;
    border-color: #146758;
}

/* ~~~~~ TOOLTIPS ~~~~~ */
.ui-tooltip {
    /* background comes transparent, on mobile this is a problem */
    background-color: white;
}

/* ~~~~~ DATEPICKER ~~~~~ */
#ui-datepicker-div {
    background: white;
    box-shadow: 0 0 20px #d6d6d6;
}

/* ~~~~~ LOADING ICON ~~~~~ */
.spinning-icon {
    padding: 10px 0px 5px;
    padding-top: 15px;
    margin-top: 15px;
    height: 12px;
    width: 12px;
}

/* ~~~~~ LOADING ICON ~~~~~ */
table[data-column-count="1"] thead th {
    width: calc(100% / 2);
}
table[data-column-count="12"] thead th {
    width: calc(100% / 3);
}
table[data-column-count="123"] thead th {
    width: calc(100% / 4);
}
table[data-column-count="1234"] thead th {
    width: calc(100% / 5);
}
table[data-column-count="12345"] thead th {
    width: calc(100% / 6);
}
table[data-column-count="123456"] thead th {
    width: calc(100% / 7);
}

img.external {
    vertical-align: baseline;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HOMEPAGE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

/* card icons on the Homepage */
.card-add:before {
    background-image: url("../img/icon-plus-circle.svg");
    background-size: contain;
}
.card-modify:before {
    background-image: url("../img/icon-pencil-square.svg");
}
.card-certified:before {
    background-image: url("../img/icon-award.svg");
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HIDE SIDABR ON DESKTOP ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
body.page-class-browse-search .subNav-wrap,
body.page-class-compare-attr .subNav-wrap,
body.page-class-workflow-new .subNav-wrap,
body.page-class-workflow-edit .subNav-wrap {
    display: none;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BROWSE AND SEARCH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
div.dataTables_wrapper div.dataTables_filter {
    text-align: left;
    display: inline-block;
}
table.dataTable thead > tr > th.sorting:before,
table.dataTable thead > tr > th.sorting_asc:before,
table.dataTable thead > tr > th.sorting_desc:before,
table.dataTable thead > tr > th.sorting_asc_disabled:before,
table.dataTable thead > tr > th.sorting_desc_disabled:before,
table.dataTable thead > tr > td.sorting:before,
table.dataTable thead > tr > td.sorting_asc:before,
table.dataTable thead > tr > td.sorting_desc:before,
table.dataTable thead > tr > td.sorting_asc_disabled:before,
table.dataTable thead > tr > td.sorting_desc_disabled:before {
    bottom: 10%;
}
table.dataTable thead > tr > th.sorting:after,
table.dataTable thead > tr > th.sorting_asc:after,
table.dataTable thead > tr > th.sorting_desc:after,
table.dataTable thead > tr > th.sorting_asc_disabled:after,
table.dataTable thead > tr > th.sorting_desc_disabled:after,
table.dataTable thead > tr > td.sorting:after,
table.dataTable thead > tr > td.sorting_asc:after,
table.dataTable thead > tr > td.sorting_desc:after,
table.dataTable thead > tr > td.sorting_asc_disabled:after,
table.dataTable thead > tr > td.sorting_desc_disabled:after {
    top: 90%;
}
.dataTable thead th,
.dataTable thead td {
    padding-top: 1px;
    padding-bottom: 1px;
    line-height: 1.25em;
}
.col-lg-3 > h2 {
    padding-top: 0;
}
div.dataTables_wrapper div.dataTables_filter label {
    white-space: normal;
}

/* We use a custom search box & pagination, so we hide DataTables's default */
#gsr_list_filter {
    display: none;
}
#gsr_list_length {
    display: none;
}
.search-table input {
    width: calc(100% - 0.5rem);
    margin-left: 0;
    margin-bottom: 1em;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ COMPARE BY ATTRIBUTES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.gsr-form-inline {
    display: flex;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -ms-flex-align: center;
    align-items: center;
}
#matching_packages .matching-package.gsr-form-inline {
    align-items: center;
    padding: 0.25em;
    border: 1px solid transparent;
}
#matching_packages .matching-package.gsr-form-inline:hover {
    border: 1px solid #eee;
    background: #f7f7f7;
    border-radius: 5px;
    width: auto;
    vertical-align: middle;
}
#matching_packages .matching-sim-btn {
    flex: 1;
    padding-right: 0.5em;
    white-space: nowrap;
}
#matching_packages .matching-sim-btn button {
    display: block;
    width: 100%;
    text-align: left;
}
#matching_packages .slot-controls {
    flex: 2;
    display: flex;
}
#matching_packages .slot-controls .progress {
    flex: 3;
}
#matching_packages .slot-controls .progress-bar {
    transition: width 1s ease;
    -moz-transition: width 1s ease; /* FF 4 */
    -webkit-transition: width 1s ease; /* Safari & Chrome */
    -o-transition: width 1s ease; /* Opera */
    background-color: #253d78;
}
#attr-comparison-table .not-bindable {
    color: #155724;
    background-color: #d4edda;
}
span.dynatree-node {
    display: flex;
    padding-bottom: 0.5em;
}
.how-to-use-this-tool-btn {
    font-weight: 600;
    text-decoration: none;
    padding: 10px 15px;
    display: inline-block;
    margin-top: 0;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ADD NEW / EDIT PACKAGES ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.form-control.date {
    min-width: 125px;
    text-align: center;
    border-right: 1px solid #ccc;
    margin-right: 25px;
    padding: 0.5rem 0;
    text-transform: uppercase;
    line-height: 1.1;
}
@media (max-width: 576px) {
    .form-control.date {
        border: 1px solid #ced4da;
        margin: 0 25px 0 0;
        padding: 0.5rem 0;
        font-weight: normal;
    }
}
.citation-container {
    display: flex;
}
.rendered-citation .citation-item span {
    word-break: break-word;
}
.ui-icon-trash,
.ui-icon-refresh {
    min-width: 20px;
    height: 20px;
    padding: 0;
    margin-right: 10px;
    margin-top: 6px;
}
.commenter {
    background: #eeeeee;
    border-radius: 500px;
    border: 1px solid #e4e4e4;
    min-width: 60px;
    min-height: 60px;
    max-width: 60px;
    max-height: 60px;
    text-align: center;
    font-size: 2em;
    margin-right: 0.5em;
}
