div#main
{
	/* overridden in split.css where the top panel needs to be flush */
	margin: 8px;
}

div#header, div#footer
{
	background-color: black;
	color: white;
}

div#header
{
	height: 72px;
	line-height: 72px;
}

div#header img, div#footer img
{
	vertical-align: middle;
	margin: 0 23px;
}

div#footer
{
	text-align: right;
}

html { height: 100% }

body
{
	margin: 0;
	min-height: 100%;
	position: relative;
	font-family: Helvetica, Arial, sans-serif;
	background-color: #efefef;
}

div#layer_dim
{
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: black;
	z-index: 4;
	visibility: hidden;
	opacity: 0.7;
	filter: alpha(opacity=70);
}

/*
 * The footer eats up 60px of the bottom of body, so footer_buffer stops
 * content hiding behind the footer.
 */
div#footer, div#footer_buffer
{
	height: 65px;
	line-height: 65px;
}

div#footer
{
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
}

div#top_panel, div#short_top_panel
{
	background-color: #1f57aa;
	color: white;
	padding: 1px 40px 40px 40px;
	position: relative;
}

div#short_top_panel
{
	padding: 10px 50px 5px 40px;
	min-height: 27px;
}

div.gradient
{
	position: absolute;
	height: 15px;
	left: 0;
	bottom: -15px;
	width: 100%;
	background: url("../../grad.png") repeat-x;
}

div#content
{
	padding: 8px 40px;
}

div.from, div.to
{
	float: right;
	border-top: 5px solid white;
	margin: 0 0 0 10px;
}

div.from h3, div.to h3
{
	margin-top: 10px;
	font-size: 1.3em;
}

div#controls_go
{
	float: right;
	clear: right;
}

div.field_wrapper
{
	margin-top: 10px;
}

div.field_wrapper label, div.field_wrapper select, div#login_box label
{
	font-size: 1.2em;
	line-height: 1.6em;
}

select.sidebar_menu, div.field_wrapper select
{
	font-size: 1em;
	width: 260px;
}

div#counters { margin-top: 1.1em }

.ui_button, span.ui_button, .sidebar_popup_link, div#login_box button
{
	min-width: 5em;
	padding: 0.5em;
	font: inherit;
	font-weight: bold;

	border: 2px solid #1f0000;
	background-color: #1f0000;
	color: #edebea;
	margin: 1em 5px 0 0;
}

.ui_button:hover
{
	background-color: #edebea;
	color: #1f0000;
}

.ui_button:hover, button:hover
{
	cursor: pointer;
}

div#controls_go .help_button { margin-top: 8px }

div#top_panel .ui_button.ready
{
	color: #43fdbe;
	border: 2px solid #43fdbe;

	box-shadow: none;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
}

div#top_panel .ui_button,
div#top_panel .sidebar_popup_link,
div#login_box button
{
	border: none;
	background-color: #1f0000;
	color: #edebea;
	margin-left: 8px 0 0 10px;
}

div#top_panel .ui_button:hover,
div#top_panel .sidebar_popup_link:hover,
div#login_box button:hover
{
	cursor: pointer;
	background-color: #edebea;
	color: #1f57aa;
}

.sidebar_popup_link
{
	font-size: 0.75em;
	line-height: 1em;
}

#convertor
{
	/* To make room for the tick and cross buttons */
	padding-bottom: 50px;
}

.sidebar_popup
{
	display: none;
	position: absolute;
	left: 0;
	top: 0;
	z-index: 5;
	padding: 8px;
	white-space: nowrap;
	background-color: #1f57aa;
	color: white;
}

div#convertor.sidebar_popup
{
	left: auto;
	right: 0;
}

.sidebar_popup label
{
	display: inline-block;
	min-width: 7em;
}

div#convertor label { min-width: 10em }
div#convertor select { width: auto }

.sidebar_popup div.contents
{
	display: inline-block;
}

.sidebar_popup div.controls
{
	position: absolute;
	right: 8px;
	bottom: 8px;
}

span.dismiss_sidebar_popup
{
	display: inline-block;
	width: 32px;
	height: 32px;
	background: url('../../theme/graphic/blackwhite_ringed_cross.png');
}

span.dismiss_sidebar_popup:hover
{
	cursor: pointer;
	background-position: 32px top;
}

span.save_sidebar_popup
{
	display: inline-block;
	width: 32px;
	height: 32px;
	background: url('../../theme/graphic/blackwhite_ringed_tick.png');
}

span.save_sidebar_popup:hover
{
	cursor: pointer;
	background-position: 32px top;
}

span.remove_row
{
	display: inline-block;
	vertical-align: middle;
	width: 16px;
	height: 16px;
	background: url('../../theme/graphic/small_blackwhite_cross.png');
}

span.remove_row:hover
{
	cursor: pointer;
	background-position: 16px top;
}

table#dependents
{
	width: 260px;
	font-size: 0.8em;
	border-collapse: collapse;
	border-style: solid;
	border-color: white;
}

table#dependents td, table#dependents th
{
	text-align: center;
	border-style: solid;
	vertical-align: middle;
	border-color: white;
}

span#add_dependent, span#convert_currency
{
	padding: 0.1em;
	font-weight: bold;
	right: 26px;
}

span#add_dependent:after
{
	content: " +";
}

div.handle_container { overflow: hidden }

span.handle, .extra
{
	background-color: black;
	border: 1px solid black;
	color: white;
	float: left;
	font-weight: bold;
	height: 32px;
	margin: 0.5em 1em 0 0.5em;
	padding-left: 0.5em;
}

.extra
{
	line-height: 32px;
	text-decoration: none;
	vertical-align: middle;
	padding-right: 0.5em;
}

#recent_news { color: #f6fd43 }
#recent_news:hover { color: #1f57aa; background-color: white }

span.handle:hover, .extra:hover
{
	background-color: white;
	color: #1f57aa;
	border-color: #1f57aa;
}

span.handle a
{
	display: inline-block;
	width: 32px;
	height: 32px;
	vertical-align: middle;
	background-color: white;
	border-left: 1px solid black;
}

a.new_win
{
	display: inline-block;
	width: 32px;
	height: 32px;
	background: url('../../theme/graphic/blackwhite_new_window.png');
	vertical-align: bottom;
}

a.new_win:hover
{
	cursor: pointer;
	background-position: 32px top;
}

ul.process_list li
{
	line-height: 2em;
	font-weight: bold;
}

ul.process_list li.selected
{
	color: #1f57aa;
	font-size: 1.5em;
}

ul.process_list span:hover
{
	cursor: pointer;
	background-color: white;
}

div#top_panel a
{
	color: white;
}

div#tools_container
{
	line-height: normal;
	float: right;
	margin-right: 40px;
}

.tool
{
    float: right;
    width: 64px;
	padding-top: 10px;
    height: 64px;
    position: relative;
	text-align: center;
	font-weight: bold;
	font-size: 12px;
	text-decoration: none;
	color: white;
}

.tool .tool_icon
{
	display: inline-block;
    width: 32px;
    height: 32px;
	outline: none;
}

.tool.active .tool_icon { background-position: 64px }
.tool:hover .tool_icon { background-position: 32px }

.tool.active { color: #43fdbe }
.tool:hover
{
	background-color: white;
	color: #1f57aa;
    cursor: pointer;
}

.help_button
{
	width: 26px;
	height: 26px;
	background: url('../../whitegreen_help_small.png');
	position: relative;
	display: inline-block;
	visibility: hidden;
    margin-left: 2px;
}

div#top_panel .help_button { float: right }

.help_button:hover
{
	cursor: pointer;
	background-position: 52px;
}

.help_button .help_box
{
	position: absolute;
	width: 20em;
	display: none;
	left: 26px;
	padding: 10px;
	font-weight: normal;
	white-space: normal;
	z-index: 5;
	text-align: left;

	border: 2px solid #43fdbe;
}

.help_button:hover .help_box
{
	display: block;
	font-size: 14px;

	background-color: black;
	color: #43fdbe;
}

.help_box:hover
{
	cursor: default;
}

div.to .help_button .help_box,
div#controls_go .help_button .help_box
{
	left: auto;
	right: 26px;
}

div.change_password td { height: 2.5em }
div.change_password label { font-size: 1.2em }

span#roll_up_button,
span#roll_down_button
{
    width: 32px;
    height: 32px;
    position: absolute;
    bottom: 5px;
    right: 5px;
}

span#roll_up_button
{
    background: url("../../theme/graphic/blackwhite_roll_up.png");
}

span#roll_down_button
{
    background: url("../../theme/graphic/blackwhite_roll_down.png");
}

span#roll_up_button:hover,
span#roll_down_button:hover
{
    cursor: pointer;
    background-position: 32px;
}

select.error, input.error
{
	border: 2px solid #fe0000;
}

div.error
{
	color: #fe0000;
	font-size: 1.2em;
}

div.info_message
{
	font-size: 26px;
	margin: 1em 0;
	color: #777;
	text-align: center;
}

div#custom_logo
{
	display: inline-block;
	margin-top: 3em;
}

div#custom_logo img
{
	vertical-align: middle;
	margin-right: 2em;
}

#logout span.tool_icon
{
	background-image: url('../../theme/graphic/blackwhite_ringed_cross.png');
}

#toggle_help span.tool_icon
{
	background-image: url('../../theme/graphic/blackwhite_help.png');
}

#password span.tool_icon
{
	background-image: url('../../theme/graphic/blackwhite_padlock.png');
}

#settings span.tool_icon
{
	background-image: url('../../theme/graphic/blackwhite_spanner.png');
}

#reports span.tool_icon
{
	background-image: url('../../theme/graphic/blackwhite_report.png');
}

#home span.tool_icon
{
	background-image: url('../../theme/graphic/blackwhite_home.png');
}

#glossary span.tool_icon
{
	background-image: url('../../theme/graphic/blackwhite_mortar.png');
}

span.required
{
	font-size: 1.5em;
	line-height: 1;
	color: pink;
}
