
table tr {
    vertical-align: top;
}

th.num {
    text-align: right;
}

td.num {
    text-align: right;
}


form > :first-child {
    margin-top: 0;
}

form > :last-child {
    margin-bottom: 0;
}

/* ncbi-popup */

.ncbi-popup-body > :first-child {
    margin-top: 0;
}

.ncbi-popup-body > :last-child {
    margin-bottom: 0;
}

.ncbi-doc-context {
    font-family: "Source Sans Pro", "Helvetica Neue", "Helvetica", "Roboto", "Arial", sans-serif;
    font-size: 1.3rem;
    font-weight: normal;
    margin: 1.5rem 0;
}


.ncbi-docsum {
    margin: 1.5rem 0;
}

.ncbi-docsum ul {
    margin-bottom: 0;
}

.ncbi-docsum > :first-child {
    margin-top: 0;
}

.ncbi-docsum > :last-child {
    margin-bottom: 0;
}

.ncbi-docsum .ncbi-doc-title {
    font-size: 1.8rem;
    margin: 0 0 0.4rem 0;
}

.ncbi-docsum .ncbi-doc-authors {
    font-size: 1.4rem;
    margin: 0.4rem 0 0.8rem;
}

.ncbi-docsum .ncbi-doc-authors a {
    color: #2e8540;
}

.ncbi-docsum .ncbi-doc-authors a:hover {
    color: #0071bc;
}

.ncbi-docsum .ncbi-doc-excerpt {
    font-size: 1.6rem;
    margin: 0.4rem 0;
}

.ncbi-docsum .ncbi-doc-description {
    font-size: 1.7rem;
    margin: 0.4rem 0;
}

.ncbi-docsum .ncbi-doc-source {
    margin: 0.4rem 0;
}

.ncbi-docsum .ncbi-doc-id {
    margin: 0.4rem 0;
}

.ncbi-docsum .ncbi-doc-links {
    font-size: 1.4rem;
    line-height: 1.7rem;
    margin: 1.5rem 0 0.8rem 0;
}


.ncbi-docsum > :first-child {
    margin-top: 0;
}

.ncbi-docsum > :last-child {
    margin-bottom: 0;
}




/* definition list */

@media screen and (min-width: 600px) {
    dl.knowpanel {
        /*max-width: 75%;*/
    }
    dl.knowpanel dt {
        width: 50%;
        max-width: 32rem;
    }
    dl.knowpanel dd {
        width: 50%;
        min-width: calc(100% - 32rem)
    }
}

@media screen and (min-width: 600px) {
    dl dd.num {
        text-align: right;
    }
}

/* bug in NWDS that should be fixed */
@media screen and (min-width: 600px) {
    dl dt {
        padding: 0.5em 1em 0.5em 0;
    }
}


/* this should be added to NWDS */

.ncbi-thumbnail {
    float: left;
    position: relative;
    top: 0.6rem;
    width: 128px;
    margin-right: 2rem;
    border: 1px solid #aeb0b5;
}


.ncbi-beside-thumbnail {
    overflow:hidden;
}

.ncbi-beside-thumbnail > :first-child {
    margin-top: 0;
}

.ncbi-docsum .ncbi-thumb-left {
    float: left;
}

.ncbi-docsum .ncbi-thumb {
    float: left;
    /* margin: 0 17px 10px 0; */
    margin-right: 17px;
    max-width: 100px;
    max-height: 100px;
    border: 1px solid #aaa;
}

.ncbi-docsum .ncbi-doc-id {
    font-size: 1.3rem;
}

.ncbi-docsum .ncbi-doc-id a {
    color: #5b616b;
}

.ncbi-docsum .ncbi-doc-id a:hover {
    color: #5b616b;
}

/* labels */

.ncbi-color-green {
    color: #2e8540;
}

.ncbi-label {
    color: white;
    background-color: #5b616b;
    padding: 1px 8px;
    border-radius: 2px;
    border: 1px solid transparent;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0.5rem;
}

.ncbi-label.ncbi-bg-green {
    background-color: #2e8540;
}

.ncbi-label-outline {
    color: #5b616b;
    background-color: white;
    border: 1px solid #5b616b;
}

.ncbi-label-outline.ncbi-color-green {
    color: #2e8540;
    border: 1px solid #2e8540;
}

.ncbi-label-outline.ncbi-color-red {
    color: #981b1e;
    border: 1px solid #981b1e;
}

.ncbi-label .ncbi-tooltip {
    padding: 4px 16px 8px;
}

.ncbi-label .ncbi-tooltip-text {
    text-transform: none;
    font-size: 1.3rem;
    letter-spacing: normal;
    /* padding: 4px 16px 8px; */
}



/* Feedback button */

.ncbi-feedback-button {
    background-color: #2E8540;
}

.ncbi-feedback-button:visited {
    background-color: #2E8540;
}

.ncbi-feedback-button:hover {
  background-color: #277236;
}



/* ncbi-vote-helpful  :: move to standards*/

.ncbi-vote-helpful {
    color: #5b616b;
    font-size: 1.3rem;
}

.ncbi-vote-helpful.thank-you {
    padding: 1rem 0;
}

.ncbi-vote-helpful button {
    display: inline-block;
    width: auto;
    padding: 0.8rem;
    color: #5b616b !important;
    font-weight: normal;
    font-size: 1.3rem;
    background-color: #ffffff;
    box-shadow: inset 0 0 0 1px #d6d7d9 !important;
}

.ncbi-vote-helpful button:hover {
    color: #0071bc !important;
    box-shadow: inset 0 0 0 2px #0071bc !important;
}

.ncbi-vote-helpful button:active, .ncbi-vote-helpful button:focus {
    box-shadow: inset 0 0 0 2px #0071bc, 0 0 3px #3e94cf, 0 0 7px #3e94cf !important;
}

