body.EXTERNAL {
    background-color: #248;
}

body.INTERNAL {
    background-color: #e44026;
}

body.INTERNAL.CURATE {
    background-color: #481948;
}

/* AAF login is only for external gateway users */
#aaf_login_div {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
}
body.EXTERNAL #aaf_login_div {
    display: flex;
}
#aaf_login_div a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 34px;
    text-decoration: none;
    box-sizing: border-box;
}
#aaf_login_div a img {
    max-height: 100%;
    max-width: 100%;
    display: block;
}

.register_btn{
    display: inline-block;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    background-color: #ffffff;
    color: black;
    border-radius: 4px;
}


.INTERNAL .site_label::after { content: "Internal "; }
.INTERNAL.CURATE h1::after { content: " (Curator Access)"; }
.EXTERNAL .site_label::after { content: "External "; }

html, body {
    margin: 0;
    padding: 0;
    font: 100%/1.45em "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
    height: 100%;
}

td,th {
    font: 80%/1.45em "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
}

#main {
    margin: 15px;
}

#body_content {
    min-height: 100%;
    margin: 0 auto;
}

.hidden {
    display: none;
}

div.loading_indicator {
    display: inline-block;
    width: 32px;
    height: 32px;
    vertical-align: middle;
}

/*.INTERNAL !#inbound,.INTERNAL !#outbound,.INTERNAL !#activity div.loading_indicator {*/
/*    background-image: url(../images/internal-loading-indicator.gif);*/
/*    background-repeat: no-repeat;*/
/*}*/

.INTERNAL #inbound,.INTERNAL #outbound,.INTERNAL #activity div.loading_indicator {
   background-image: url(../images/internal-loading-indicator.gif);
    background-repeat: no-repeat;
}
.INTERNAL #inbound,.INTERNAL #outbound,.INTERNAL #activity div.loading_indicator {
    background-image: url(../images/internal-loading-indicator-inverted.gif);
    background-repeat: no-repeat;
}

/*.EXTERNAL !#inbound,.EXTERNAL !#outbound,.EXTERNAL !#activity div.loading_indicator {*/
/*    background-image: url(../images/external-loading-indicator.gif);*/
/*    background-repeat: no-repeat;*/
/*}*/

.EXTERNAL #inbound,.EXTERNAL #outbound,.EXTERNAL #activity div.loading_indicator {
    background-image: url(../images/external-loading-indicator.gif);
    background-repeat: no-repeat;
}

.EXTERNAL #inbound,.EXTERNAL #outbound,.EXTERNAL #activity div.loading_indicator {
    background-image: url(../images/external-loading-indicator-inverted.gif);
    background-repeat: no-repeat;
}

/*.INTERNAL.CURATE !#inbound,.INTERNAL.CURATE !#outbound,.INTERNAL.CURATE !#activity div.loading_indicator {*/
/*    background-image: url(../images/curator-loading-indicator.gif);*/
/*    background-repeat: no-repeat;*/
/*}*/

.INTERNAL.CURATE #inbound,.INTERNAL.CURATE #outbound,.INTERNAL.CURATE #activity div.loading_indicator {
    background-image: url(../images/curator-loading-indicator.gif);
    background-repeat: no-repeat;
}

.INTERNAL.CURATE #inbound,.INTERNAL.CURATE #outbound,.INTERNAL.CURATE #activity div.loading_indicator {
    background-image: url(../images/curator-loading-indicator-inverted.gif);
    background-repeat: no-repeat;
}


#splash {
    margin: 0 auto;
    vertical-align: middle;
}

#splash_floater {
    float:left; height: 40%; margin-bottom: -120px;
}
#splash_content {
    clear:both; height: 120px; position: relative;
    text-align: center;
}

#login_form_floater {
    float: left; height: 270px; width: 10px; margin-bottom: -120px;
}
#login_form_wrapper {
    text-align: center;
    padding: 0% 10% 0% 10%;
}
#login_form {
    clear:both; height:120px; position: relative;
    margin: 0 auto;
    text-align: center;
    /* font-family: Tahoma,Arial,sans-serif; */
    font-weight: normal;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 6px #336;
    color: white;
    text-decoration: none;
}

#login_feedback {
    font-weight: normal;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 6px #336;
    color: white;
    text-decoration: none;
}

#header {
    width: 100%;
    height: 100px;
}
.EXTERNAL #header {
    background-image: url(../images/bg_header_cool.gif);
}
.INTERNAL #header {
    background-image: url(../images/bg_header_warm.gif);
}
.INTERNAL.CURATE #header {
    background-image: url(../images/bg_header_curator.png);
}

#header_image {
    padding: 15px 0 0 30px;
    display: inline-block;
    vertical-align: top;
    /* This is for IE :( */
    zoom: 1; *display: inline;
}

#header_text {
    padding: 15px 0 15px 30px;
    margin-top: 15px;
    /* font-family: Tahoma,Arial,sans-serif; */
    font-size: 22pt;
    font-weight: normal;
    /* letter-spacing: 0.1em; */
    text-shadow: 1px 1px 6px #336;
    color: white;
    text-decoration: none;
    display: inline-block;
    vertical-align: top;
    /* This is for IE :( */
    zoom: 1; *display: inline;
}

body:not(.UPLOAD):not(.TRANSFER_TO) #upload_tab {
    display: none;
}

body:not(.UPLOAD):not(.TRANSFER_TO) #upload_tab_tab {
    display: none;
}

.upload_label {
    text-align: right;
    vertical-align: top;
}

.EXTERNAL #privacy_disclaimer {
    display: none;
}

/**
.INTERNAL #unit_record_disclaimer {
    display: none;
}
*/

.disclaimer_text {
    font-weight: bold;
    color: red;
}

#upload_description textarea {
    width: 500px;
}

#logout_button {
    position: absolute;
    right: 15px;
    top: 90px;
}

#rejection_reason {
    width: 400px;
    height: 150px;
}

.login_table {
    margin-left: auto;
    margin-right: auto;
}

.user_name_label_cell,.password_label_cell,.token_label_cell,.login_button_cell {
    text-align: right;
}

img.note_icon {
    vertical-align: baseline;
}

img.contains_unit_records_icon {
    vertical-align: baseline;
    margin-left: auto;
    margin-right: auto;
    padding-left: 5px;
}

tr.contains_unit_records > td > span.file_name::after {
    content: url(../images/contains_unit_records.png);
    margin-left: 3px;
}

.upvotes {
    color: black;
}

.downvotes {
    color: black;
}

tr.contains_unit_records > td {
    color: #e00;
}

tr.high_entropy:not(.contains_unit_records) > td {
    color: #e90;
}

tr.high_entropy > td:first-child {
    border-left: 5px solid #e90;
}

tr.high_entropy > td {
    border-bottom: 1px solid #e90;
}

tr:not(.high_entropy) + tr.high_entropy > td {
    border-top: 1px solid #e90;
}

tbody > tr.high_entropy:first-child > td {
    border-top: 1px solid #e90;
}

tr:not(.high_entropy) > td:first-child {
    border-left: 5px solid transparent;
}

tr.high_entropy > td.final {
    border-right: 5px solid #e90;
}

#tooltip {
	position: absolute;
	z-index: 3000;
	border: 1px solid #111;
	background-color: #eee;
	padding: 5px;
	opacity: 0.95;
    font: 75%/1.45em "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

#tooltip h3, #tooltip div { margin: 0; }

#tooltip table{
    border: 1px solid black;
    border-collapse:collapse;
}

#tooltip ul {
    padding-left: 11px;
}

.alignCenter {
    text-align: center;
}

.alignRight {
    text-align: right;
}

.no-close .ui-dialog-titlebar-close { display: none; }

.fg-toolbar {
    padding-left: 3px;
    font-size: 80%;
}

#help {
    font: 75%/1.45em "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
    font-weight: normal;
    letter-spacing: 0.1em;
    text-shadow: 1px 1px 6px #336;
    color: white;
    text-decoration: none;
    text-align: right;
}

.login_button_cell #help {
    padding-right: 20px;
}

#help a {
    color: white;
}

.refresh_button {
    width: 20%;
    float: left;
    text-align: center;
}

.multiple_file_download_button {
    float: right;
    text-align: right;
}

.last_loaded_text {
    width: 100%;
    clear: both;
    text-align: center;
    font-weight: normal;
    color: grey;
    font-size: 75%;
}
