/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ CKEDITOR ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

/**
 * When creating table's in CKEditor, they are wrapped in figure attributes with class "table".
 * This causes them to be always full width, so we unset width here.
 */
figure.ck-widget.table {
    width: unset !important;
}
.ck.ck-icon {
    --ck-icon-size: 15px;
}
.ck-editor__editable[role="textbox"] {
    min-height: 200px;
}
svg.ck.ck-icon.ck-icon_inherit-color,
svg.ck.ck-icon.ck-icon_inherit-color * {
    color: #000;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unique modal on the Staging Over Time Db Description ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
.staging-over-time-timeline-modal .themed {
    text-align: center;
    vertical-align: middle;
    font-size: 1rem;
    height: 100%;
    display: block;
    position: relative;
    padding-right: 1em;
    overflow: auto;
    clip-path: polygon(0% 0%, 0% 0%, 85% 0%, 100% 50%, 100% 50%, 85% 100%, 100% 100%, 0% 100%);
    border-bottom: 1px solid #fff;
}
.staging-over-time-timeline-modal .uniHeight {
    height: 50px;
    vertical-align: middle;
}
.staging-over-time-timeline-modal .modal-dialog.modal-lg.modal-dialog-centered {
    width: 100%;
    max-width: 99%;
}
.staging-over-time-timeline-modal .modal-dialog {
    margin-top: 20px;
}
.staging-over-time-timeline-modal th,
.staging-over-time-timeline-modal td {
    border: none;
}
.staging-over-time-timeline-modal thead th {
    background-color: #f5f5f5 !important;
    color: #222 !important;
}
.staging-over-time-timeline-modal tbody tr:hover {
    background-color: transparent !important;
}
.staging-over-time-timeline-modal td {
    padding: 0 !important;
    height: 1px;
}
@supports (-moz-appearance: none) {
    .staging-over-time-timeline-modal td {
        height: 100%;
    }
}
.staging-over-time-timeline-modal col.border-start {
    border-left: 3px dashed #ddd !important;
}
.staging-over-time-timeline-modal col.border-end {
    border-right: 4px solid #fff !important;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wayf page ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */
#idp-warning-notice {
    max-width: 800px;
    border: 2px solid #ccc;
    background: #fff;
    font-size: 14px;
    margin: 2em auto;
}
#idp-warning-notice .idp-warning-title {
    color: #212121;
    margin: 10px !important;
    font-size: 16px !important;
}
#idp-warning-notice .idp-warning-body {
    padding: 0 10px 0 30px !important;
    margin: 10px 0 !important;
}
#idp-warning-notice .idp-warning-body ul {
    padding: 0 10px 0 30px !important;
    margin: 10px 0 !important;
}
/* Login/register button styles */
main button.btn-auth {
    font-weight: bold;
    display: block;
    min-height: 44px; /* ID.me requires minimum 44px */
    width: min(max(220px, 22em), 100%); /* ID.me requires minimum 220px. 22em will avoid line breaks when possible without overflow */
    margin-right: auto;
    align-content: center;
    padding: .5em 2em .5em 2em;
    background-image: none;
}

main button.btn-login-gov {
    color: white;
    background-color: #112e51;
    border-color: #112e51;
}
main button.btn-login-gov:not(.btn-link):hover, main button.btn-login-gov:not(.btn-link):focus {
    color: white;
    background-color: #0c213a;
    border-color: #0c213a;
}

main button.btn-id-me {
    color: white;
    background-color: #08833d;
    border: 1px solid #08833d;
}
main button.btn-id-me:not(.btn-link):hover, main button.btn-id-me:not(.btn-link):focus { 
    color: white;
    background-color: #06602d; 
    border-color: #06602d;
}

main button.btn-nih-network {
    color: white;
    background-color: #007bbd;
    border: none;
}
main button.btn-nih-network:not(.btn-link):hover, main button.btn-nih-network:not(.btn-link):focus {
    color: white;
    background-color: #004971;
    border-color: white;
}


/* ~~~~~~~~~~~~~~~~~~~~~~~~~Some styling overrides for issues with Workflow Actions~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

.workflow-buttons > button {
    margin-bottom: 0px;
}
.request-workflow label {
    display: inline-block;
}

.request-header > .request-info {
    border-bottom: 0px;
}
.request-header > .request-workflow {
    border-left: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
}

/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ */

#id_vcdas_data_accessor label {
    padding-bottom: 0px;
    font-weight: normal;
}

.review-tab-toggle {
    cursor: pointer;
}

.btn.btn-link.no-padding {
    padding: 0px;
}

button.no-right-arrow {
    background-image: none;
    padding: 0.5em 1em;
}
div.form-actions button {
    background-color: #008000;
    border: none;
    border-bottom: 3px solid #004600;
    border-radius: 3px;
    color: #fff !important;
    padding: 0.5em 2em 0.5em 1em;
}
fieldset.form-check {
    border: 0px;
    margin-bottom: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
}
div.nav-search-bar.gradient {
    visibility: inherit;
}
.table-striped thead a:not(.btn) {
    color: white;
}
th.sort.asc,
th.sort.desc,
th.secthead {
    background-color: #555;
    background-repeat: no-repeat;
    background-position: left center;
}
.search-btn-group > div + div > button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: 1px solid #004600;
}
.search-btn-group > div:has(+ div) > button {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}
.tab-content {
    margin-top: 0em;
}
.btn.grayButton {
    color: #222 !important;
    border: 1px solid #c0c0c0;
    border-bottom: 3px solid #c0c0c0;
    box-shadow: inset 0 -1.2em 10px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: #ececec;
    padding: 0.5em 1em;
    border-radius: 3px;
}
.btn.grayButton:hover,
.btn.grayButton:focus {
    box-shadow: inset 0 -1.75em 17px rgba(0, 0, 0, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: #ececec;
}
.btn.btn-danger {
    background-image: none;
}
.btn.btn-primary {
    background-color: #008000;
    border: none;
    border-bottom: 3px solid #004600;
    border-radius: 3px;
    color: #fff !important;
    padding: 0.5em 2em 0.5em 1em;
    background-image: url("/i/caret-right-sm-f.png");
    background-repeat: no-repeat;
    background-position: center right 10px;
    background-size: 5px;
}
.btn.btn-link {
    background-color: inherit;
    color: inherit !important;
    margin-bottom: 0;
}
.btn.btn-xs,
.dropdown-toggle {
    background-image: none !important;
}
.btn.download-btn {
    margin: 0;
    color: #000 !important;
}
.saved-search-header::after {
    display: block;
    clear: both;
    content: "";
}
#paginatior select {
    padding: inherit;
    margin: inherit;
    width: inherit;
}
#paginatior label {
    display: inline;
}
[role="tablist"] a:not(.active) {
    background: #eee !important;
}
button.select2-selection__choice__remove {
    border-right: 0 !important;
    color: #333 !important;
    background-image: none;
}
div.pgsearch-display-tab > ul > li {
    margin-bottom: 0;
}
div.pgsearch-display-tab > ul > li > label {
    padding-bottom: 0;
}
em.highlighted {
    padding-bottom: 0 !important;
}
button.no-caret {
    background-image: none;
}
#id_saved_search_name {
    display: block;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
}
#request-tabs {
    padding-left: 0;
    margin-bottom: 0 !important;
    border-bottom: 5px solid #dce4ef;
}
#request-tabs li {
    display: inline-block;
    list-style: none;
    margin: 0;
}
#request-tabs a.nav-link,
#more-actions-dropdown {
    background: #eee;
    color: #222 !important;
    padding: 0.75em 1em;
    display: inline-block;
    margin-right: 0.15em;
    font-weight: bold;
    border: 0;
    border-radius: 0;
}
#request-tabs a.nav-link.active,
#more-actions-dropdown.show {
    background: #dce4ef;
    border-bottom: 0;
    position: relative;
}
#request-tabs a.dropdown-item {
    color: inherit !important;
}
#req-tabs-select {
    margin: 0;
}
#request-action {
    border: 5px solid #dce4ef;
    border-top: 0;
    margin: 0;
    padding: 1.5em;
}
.btn.login-dropdown,
.btn.login-dropdown:hover,
.btn.login-dropdown:focus {
    background: transparent;
    color: #0065a8 !important;
    border: 0;
    box-shadow: 0 0 0 0;
}
div.form-actions {
    display: flex;
    gap: 1em;
}
div.form-actions > button {
    margin: 0;
}
div.section {
    width: 100%;
}
.share a.external-link {
    display: none;
}
.social a.external-link {
    display: none;
}
.comment-affiliation {
    color: #6a6a6a;
    display: block;
    font-family: "Open Sans Condensed", "Arial Narrow", sans-serif;
    font-weight: normal !important;
}
.scroller-btn.scroller-gradient {
    padding: 0;
    background-size: contain;
    background-position: center;
}

/* CSS to fix form field help text rendering */
small.form-text {
    font-size: 0.875em;
}
.bioshare-form-group > .help-text {
    margin-top: -0.9em;
}
.bioshare-form-group > .controls .help-text:not(:has(#id_default-help)) {
    margin-top: -1.4em;
}

/* Temporary styling until restored in bioshare */
.request-info {
    margin: 0;
    border: 1px solid #dee2e6;
    background-color: #f4f4f4;
}
.request-info > div {
    padding-top: 5px;
    padding-bottom: 5px;
}
.request-info label {
    margin-bottom: 0px;
}

/* CSS overrides for SEER styling modals */
.modal-dialog .modal-header {
    background-color: inherit !important;
}
.modal-dialog .bootstrap-dialog-title {
    font-size: 16px !important;
    font-weight: bold;
    border: none;
    color: #000 !important;
}
.modal-dialog .modal-body {
    padding-bottom: 0;
}
.modal-dialog .modal-footer {
    border: none;
    padding-top: 0;
}
.modal-dialog .btn.btn-primary {
    border: none;
}
.modal-dialog .btn-close {
    color: #000 !important;
    opacity: 0.5 !important;
    font-size: inherit !important;
}

table#my-documents-table a,
div#request-action a.list-group-item:not(.active) {
    color: #0065a8;
}

ol ul ol ul li {
    list-style: url("/i/bullet.png");
}

/* Force Bioshare rules that Seer styles force to be different */
.grayButton {
    color: #646464 !important;
}
.grayButton:hover,
.grayButton:focus {
    background-color: #f5f5f5 !important;
}
.btn-check:focus + .btn-danger,
.btn-danger:focus,
.btn-danger:hover {
    background-color: #b42b39 !important;
}
