﻿
td#sectionsTree {
    width: 470px;
}
td#sectionInfo {
    white-space: pre-wrap;
}

td#questionTabCell {
    min-width: 150px;
    width: 200px;
    max-width: 250px;
}
td#questionFieldCell {
}

.legacy::before {
    content: "(Decommissioned field) ";
    color: red;
    font-style: italic;
}

#sectionInfo > div {
    display: block;
    max-height: 19em;
    overflow: auto;
    padding: 5px 0 5px 5px;
}

table.layoutTable>tr>td>*:first-child,
table.layoutTable>tbody>tr>td>*:first-child,
#sectionInfo > div > :first-child {
    margin-top: 0;
}
#sectionInfo .inherited {
    color: gray;
}
#sectionInfo:hover .inherited,
#sectionInfo:focus .inherited {
    color: inherit;
}

.addLookupItem,
.removeLookupItem {
    padding: 0 5px;
    margin-left: 10px;
}
html[dir="rtl"] .addLookupItem,
html[dir="rtl"] .removeLookupItem {
    margin-left: 0px;
    margin-right: 10px;
}

.addLookupItem .label,
.removeLookupItem .label {
    padding-right: 5px;
    padding-left: 25px;
}
html[dir="rtl"] .addLookupItem .label,
html[dir="rtl"] .removeLookupItem .label {
    padding-right: 25px;
    padding-left: 5px;
}

.addLookupItem .ui-icon,
.removeLookupItem .ui-icon {
    margin-left: 5px;
}
html[dir="rtl"] .addLookupItem .ui-icon,
html[dir="rtl"] .removeLookupItem .ui-icon {
    margin-left: 0px;
    margin-right: 5px;
}
.addLookupItem.disabled {
    border-color: transparent;
}

.newsflash,
#JSRequired {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: medium;
    background: #bbccff;
    text-align: center;
}
.newsflash {
    text-align: inherit;
}
.newsflash .header {
}

.newsflash p,
#JSRequired p {
    margin: 0;
}

.newsflash p+p,
#JSRequired p+p {
    margin-top: 10px;
}
.newsflash .reports,
.newsflash .header {
    text-align: center;
}
.newsflash .header {
    font-size: 110%;
}

#JSRequired {
    margin: 20px 50px;
    width: auto;
    border: solid red 2px;
}

.scrollydiv {
    overflow-y: auto;
    max-height: 250px;
}

ul.scrollydiv {
    text-indent: 0!important; /* unsure if this is still needed */
}

#content ul.collapsible,
#content ul.collapsible ul {
    list-style-type: inherit;
    padding-left: 20px;
}

#content ul.collapsible li.branch>a,
#content .explanation a.collapsed,
#content .explanation a.expanded {
    padding-left: 19px;
    background: transparent url(/Content/images/icons/magnifier_zoom_out.png) no-repeat top left; 
    cursor: pointer;
}

#content ul.collapsible li.branch>a,
#content .explanation a.collapsed {
    background: transparent url(/Content/images/icons/magnifier_zoom_out.png) no-repeat top left;
}

#content ul.collapsible li.collapsed>a,
#content .explanation a.expanded {
    padding-left: 19px;
    background: transparent url(/Content/images/icons/magnifier_zoom_in.png) no-repeat top left;
    cursor: pointer;
}

#content ul.collapsible li.collapsed>ul {
    display: none;
}
#content ul.collapsible a,
#content .explanation a {
    color: inherit;
    text-decoration: none;
}
#content ul.collapsible a[href],
#content .explanation a[href] {
    color: blue;
    text-decoration: underline;
}

#content .explanation {
    float: right;
    border: 1px dashed gray;
    margin: 0 0 0px 10px;
    padding: 3px 5px;
}

#questionFieldCell table textarea {
    min-width: 250px;
    width: 100%;
}

#questionFieldCell table select {
    max-width: 175px;
}

#questionFieldCell table td {
    vertical-align: middle;
}
#questionFieldCell table .highlight th,
#questionFieldCell table .highlight td {
    border-bottom-color: #999;
}

#questionFieldCell table.gridField th,
#questionFieldCell table.gridField td {
    background-color: #fff;
}

#questionFieldCell .tableField td,
#questionFieldCell .tableField th,
#questionFieldCell .section th,
#questionFieldCell .section td {
    background-color: #ccc;
    border-color: #E8EEF4;
}

#questionFieldCell .tableField th {
    text-align: center;
    vertical-align: middle;
}

#questionFieldCell .tableField .highlight td {
    background-color: #fff;
    border-color: #ccc;
}

ul.lookupInfo li {
    cursor: pointer;
}
ul.lookupInfo li:hover,
ul.lookupInfo li.selected {
    background-color: yellow;
}

.lookupInfo.CountriesRegionsSubregions .value,
.lookupInfo.AdditionalIndicators .value,
.lookupInfo.Organizations .value,
.answer.CountriesRegionsSubregions .value,
.answer.AdditionalIndicators .value,
.answer.Organizations .value {
    display: none;
}

#content ul.inline-menu {
    margin: 0;
    text-indent: 0;
}
#content ul.inline-menu li {
    display: inline;
}
#content ul.inline-menu li a {
    display: inline-block;
    background: lightgrey;
    color: black;
    border-radius: 3px;
    margin: 2px;
    color: inherit;
    text-decoration: none;
    padding: 2px 10px;
}
#content ul.inline-menu li a:hover {
    background: grey;
    color: white;
}

#content .dashboard tr.inactive th,
#content .dashboard tr.inactive td,
#content .dashboard .submitted,
#content td.disabled {
	background-color: #E8E8E8;
}
#content .dashboard .overdue {
	background-color: #FFCCCC;
}
#content .dashboard .locked {
	background-color: #CCCCFF;
}
#content .dashboard .ReportPercentBox {
    display: inline-block;
    /* This is for IE, who for some reason alligns baseline differently for this inline-box span
    than for the rest of the elements/text... */
    vertical-align: middle;
}
/* This must stay, for IE7. -_- */
#content .dashboard .progressBarContainer {
	float: none;
}


#content ul.inlineList,
#content ul.inlineList>li {
    display: inline;
    margin-left: inherit;
}
#content ul.inlineList>li::before {
    content: ", ";
}
#content ul.inlineList>li:first-child::before {
    content: normal;
}

#content ul.optionsMenu {
	margin: 0;
	text-indent: 0;
}
#content ul.optionsMenu li {
	display: inline-block;
	margin: 10px 0 10px 10px;
	padding-left: 10px;
	border-left: solid 1px black;
}
#content ul.optionsMenu li.selected {
    font-weight: bold;
}
#content ul.optionsMenu li:first-child,
#content ul.optionsMenu.mini li:first-child {
	border-left: 0px;
	margin-left: 0px;
}
#content ul.optionsMenu.mini li {
	margin-top: 2px;
	margin-bottom: 2px;
	margin-left: 2px;
	padding-right: 5px;
	padding-left: 5px;
}
#content ul.optionsMenu.actions {
	border: solid 1px black;
}

#content input.long {
    width: 250px;
}

/* http://www.jankoatwarpspeed.com/post/2008/05/22/CSS-Message-Boxes-for-different-message-types.aspx */
#content .topMessages {
    border: 2px solid #D3DBC5;
    background-color: #F0F0EE;
    white-space: pre;
}
#content .topMessages.Info {
    border-color: #D3DBC5;
    background-color: #F0F0EE;
}
#content .topMessages.Success {
    border-color: #4F8A10;
    background-color: #DFF2BF;
}
#content .topMessages.Warning {
    border-color: #9F6000;
    background-color: #FEEFB3;
}
#content .topMessages.System {
    border-color: #00529B;
    background-color: #BDE5F8;
}
#content .topMessages.Validation {
    border-color: #D63301;
    background-color: #FFCCBA;
}
#content .topMessages.Error {
    border-color: #D8000C;
    background-color: #FFCACA;
}
#content .topMessages.System>*::before {
    content: url(/Content/images/icons/information.png);
    margin-right: 5px;
}

#content .topMessages+.topMessages {
    margin-top: 10px;
}

#content .topMessages>p {
    margin: 1em;
}

.button {
    border-style: outset;
    color: inherit;
    text-decoration: none;
    display: inline-block;
}
a.button.disabled,
a.button:not([href]) {
    text-decoration: none;
    background-color: lightgray !important;
    color: gray;
}
.button:active {
    border-style: inset;
}
button,
.button,
input[type='submit'],
input[type='reset'] {
    padding: 2px;
    border-radius: 3px;
    border-color: gray;
    border-width: 2px;
    background-color: white;
    cursor: pointer;
}

table+button {
    display: inline-block;
    margin-top: 0.5em;
}

button[disabled] {
    background-color: lightgrey;
    cursor: auto;
}

:target {
    outline: 2px dashed #CCC;
}
