/* The Magnificent Clearfix: Updated to prevent margin-collapsing on child elements.
j.mp/bestclearfix */
.clearfix:before, .clearfix:after { content: "\0020"; display: block; height: 0; visibility: hidden; }
.clearfix:after { clear: both; }
/* Fix clearfix: blueprintcss.lighthouseapp.com/projects/15318/tickets/5-extra-margin-padding-bottom-of-page */
.clearfix { zoom: 1; }

/* Survey */
#survey .fluid-small{
	font-size: 10px;
}

div#main #survey div.section-separator div.question-body {
	border: 0px solid black !important;
	border-style: hidden !important;
}

#survey .question {
	clear: both;
}

#survey .question.hidden-field .admin-prompt {
	color: #A64C4C;
	font-size: 11px;
	float: right;
}
#survey .question.hidden-field input {
	width:90%!important;
	padding:5px;
	background-color:#F7F5F5;
	border: 1px dashed #A49A9A;
}

#survey span.sumtotal{
	display: none;
}

#survey-form {
	zoom: 1 !important;
	*height: 0.01% !important;
}

#survey .js-progress-bar {
	text-align: right;
}

#survey .survey-header h1.survey-title ul li,
#survey .survey-description ul li,
#survey .surveyheader .extraDescription ul li {
	list-style: disc;
}

#survey .survey-header h1.survey-title ol li,
#survey .survey-description ol li,
#survey .surveyheader .extraDescription ol li {
	list-style: decimal;
}

#survey div.header-progress-container {
	position: relative;
}

div.survey-progress-outer {
    display: block;
	position: absolute;
	top: 0;
	right: 0;
    width: 150px;	
    height: 15px !important;
	font-size: 75%;
	margin-top: 6px;
	margin-right: 15px;
	overflow: hidden;
}

div.survey-progress-inner {
	position: absolute;
    display: block;
    height: 19px;
    width: 0;
	top: 0px;
}

#survey div.question {
	overflow-y:hidden;
}

#survey div.question fieldset {
	border: 0;
	padding: 0;
	margin:0;
	width:100%;
	background:transparent;
}
#survey div.question legend.question-header {
	width:99%;
	display:block;
	border:0;
	margin:0;
	*margin:0.5em -0.5em 0 -0.5em;
	padding:0;
	background:transparent;
	white-space:normal;
}
#survey div.question legend.question-header span.question-title {
	display:block;
	width:99%;
	font-weight:bold;
	margin:0.8em 0;
}

#survey div.question-body, div.surveyheader {
	clear: both;
}

#survey #survey-progress-number-display{
	position: relative;
	top: -2px;
}

#survey div.button-fix {
  direction: rtl;
  float:left;
}
#survey div.button-fix input {
  direction: ltr;
  float: none;
}
#survey table.grouped-table {
	border-collapse:collapse;
}
#survey table.grouped-table th.matrix-label-header {
	/*width:400px;*/
	padding-bottom:1em;
	text-align: left;
}

#survey .signupmsg{
	width: 100%;
	text-align: center;	
}

#survey .signupmsg img{
	margin-top: 5px;
}

#survey .drill-down-selector {
	width:200px !important;
	margin-right:10px;
}

#survey div.branching-info {
	background-color: #F9F9F6;
	padding: 3px 5px 5px;
}

#survey div.branching-info-js span{
	padding: 3px 5px 5px;
}
#survey div.branching-info-js ul li {
	list-style-type:none;
}
#survey div.branching-info-js a{
	padding: 5px;
}

#survey div.branching-info-js a img{
	border:none;
	position: relative;
	top: 3px;
}

#survey div.branching-info-js a.open{
	padding: 5px;
	-moz-border-radius-topright: 3px;
	-moz-border-radius-topleft: 3px;
	-webkit-border-radius-topright: 3px;
	-webkit-border-radius-topleft: 3px;
	margin: 0 0 -1px;
}

ul li input[type="text"].other {
	margin-left: 5px;
}

/******** Horizontally Aligned Questions ********/
#survey ul.horizontal li,
#survey li.variable ul.horizontal li {
	padding-right: 10px;
	display: inline-block;
	/*Fix for ie */
	zoom: 1;
	*display: inline !important;
}

/******** Star Rating Questions ********/
#survey div.star-container span.star-rating-control {
	vertical-align:middle;
	display: inline-block;
	/*Fix for ie */
	zoom: 1;
	*display: inline !important;
}

#survey ul.horizontal li label,
#survey li.variable ul.horizontal li label {
	display: inline;
	margin: inherit;
}
/******** Dynamic Grid style **********/

#survey table.grouped-table th.dynamic-row-header{
	text-align: left;
}

.dynamic-grid-question {
	border: 1px solid #888;
}

.dynamic-grid-question th {
	border: 1px solid #888;
}

.dynamic-grid-question td {
	border-left: 1px solid #888;
	border-right: 1px solid #888;
	border-bottom: 1px solid #ccc;
}

.dynamic-grid-question tr td:nth-child(even),
.dynamic-grid-question thead th:nth-child(even) {
	background-color: #ededed;
}

#survey .dynamic-grid-question td,
#survey .dynamic-grid-question th,
#survey .grouped-table td,
#survey .grouped-table th  {
	padding:6px;	
}

/*************************************/

/******* Static Column style ********/

#survey div.group-table-container{
	overflow-x:auto;
	padding-bottom:4px;
}

#survey th.static-col{
	padding:6px;
	position:absolute;
	text-align:left !important; 
	float:left;
	background-color: #F9F9F6;
}

#survey th.dynamic-static-col{	
	margin-left:-1px;
	border-top:none;
	border-bottom:1px solid #CCCCCC;
}


#survey th.dynamic-static-col-top {	
	margin-left:-1px;
	border-bottom:1px solid #CCCCCC;
}

#survey th.dynamic-static-col-spacer{	
	margin-right:-1px;
	padding:6px;
}

#survey th.static-col-3d{	
	margin-left:-1px;
}

#survey th.static-col-spacer-3d{	
	margin-right:-1px;
}

th.static-col-spacer{
	display:block;
	float:left;
}

/*************************************/

html body #survey #survey-form .question-inline {
	width: 45%;
	float: left !important;
	clear: none !important;
	margin-right: 10px !important;
}


#survey ul.matrix li label, #survey ul.matrix li .fake-label {
  	display: table-cell;
}
#survey ul.matrix li label,
#survey ul.matrix li input,
#survey ul.matrix li textarea,
#survey ul.matrix li select,
#survey ul.matrix li .fake-label {
	vertical-align: middle;
    margin: 6px;
	*display: inline-block;
    *width: 20%;
}

#survey ul.errorlist, #survey ul.matrix ul.errorlist li {
	background-color: #eb7064;
	padding: 2px;
	color: white;
	font-weight: bold;	
    	font-size: 10px;
	zoom:1!important;
}

/* Make IE align all the labels properly */
* html #survey ul.matrix li label {
    display: inline-block;
    width: 20%;
}

#survey ul {
    margin: 1.5px 0;
    padding: 0;
}

#survey .question-body li {
    margin: 0;
    padding: 0;
    list-style-type: none;
    line-height: 1.9em;
}

#survey ul.matrix {
   	display: table;
}

#survey ul.matrix li {
    display: table-row;
}

#survey td {
	padding: 6px;
}

#survey .buttons {
	overflow-x: visible;
}

#survey table.grouped-table td {
	text-align: center;
}

#survey table tbody th{
	text-align:left;	
}

#survey div.question-body table {
	text-align:left;
}

#survey ul {
    margin: 1.5px 0;
    padding: 0;
}

/* --------------3d Matrix Dropdown Display Options (Scroll down for radio display)------------------------ */

/*Colours for the odd columns*/
#survey .threedcolodd{	
	/*background-color: #d5e6f7;*/
}
/*Colours for the odd columns*/
#survey .threedTopLeft,
#survey .threedcoleven{	
	/*background-color: #EDEDED;*/
}
/*Colours for the odd rows*/
#survey .threedrowodd{
	/*set row colours here*/
}
/*Colours for the even rows*/
#survey .threedroweven{
	/*set row colours here*/
}
/*Border to use for the three d dropdown display table*/
#survey .threedBorder{	
/* 	border: 1px solid #888; */
	border: black solid thin;
}

/*Disable borders on certain sides*/
#survey .threedCellStart{
	border-right: none;
	border-top: none;
	border-bottom: none;
}

#survey .threedCellEnd{	
	border-left: none;
	border-top: none;
	border-bottom: none;
}

#survey .threedCellStartEnd{	
	border-top: none;
	border-bottom: none;
}

#survey .threedCellBottom{	
	border-top: none;
}
#survey .threedCellTop{	
	border-bottom: none;
}

/*Row of choice labels*/
#survey td.threedColHeader{
	text-align: center;
	/*background-color: #FFFFFF;*/
}

/*The main cells with the radio buttons in them*/
#survey td.threedCell{
	text-align: center !important;
	padding: 6px;
}

/*Labels for the rows*/
#survey table.threedMatrix td label{
	font-weight: normal;
}

/*Entire table*/
#survey .threedMatrix, #survey .grouped-table {
	border-collapse:collapse;
}

#survey table.threedMatrix thead th {
	
	text-align: center;
}
#survey table.threedMatrix th.spanExtraRow,
#survey table.threedMatrix th.extraRow{
	display:table-cell!important;
}
#survey table.threedMatrix th.threedRowLabel{
	padding: 6px;
	text-align:left	;
}

/*Top left box in the corner*/
#survey .threedTopLeft{
	/*background-color: #b0d8ff;*/
	text-align: center;
	padding: 6px;
}

/* --------------3d Matrix Radio Display Options------------------------ */

/*Colours for the odd columns*/
#survey .threedRadiocolodd{	
	background-color: #f9f9f9;
}
/*Colours for the odd columns*/
#survey .threedRadiocoleven{
	background-color: #ededed;
}
/*Colours for the odd rows*/
#survey .threedRadiorowodd{
	/*set row colours here*/
}
/*Colours for the even rows*/
#survey .threedRadioroweven{
	/*set row colours here*/
}
/*Border to use for the three d radio display table*/
#survey .threedRadioBorder{	
	border: 1px solid #888888;
}

#survey .threedRadioHeader{
	text-align: center;
}

/*Disable borders on certain sides*/
#survey .threedRadioCellStart{
	border-left: 1px solid #888888 !important;
}

#survey .threedRadioCellEnd{	
	border-right: 1px solid #888888 !important;
}

#survey .threedRadioCellBottom{	
	border-top: none;
}
#survey .threedRadioCellTop{	
	border-bottom: none;
}

/*Row of choice labels*/
#survey .threedRadioColHeader{
	text-align: center;
	background-color: #FFFFFF;
	padding: 6px;
}

/*The main cells with the radio buttons in them*/
#survey td.threedRadioCell{
	text-align: center !important;
	border-left: none;
	border-right: none;
}

/*Labels for the rows*/
#survey table td label{
	font-weight: normal;
}

/*Top left box in the corner*/
#survey .threedRadioTopLeft{
	background-color: #ededed;
	text-align: center;
	padding:1px 6px 1px 6px;
}

#survey .threedRadioCellStartEnd{	
	border-bottom: none;
}

tr.threedRadioRow th.static-col{
	padding: 6px;
}


#survey table.grouped-table td, #survey table.grouped-table th {
	text-align: center;
}

#survey table.grouped-table{
	width: 100%;
}

#survey table.grouped-table tbody tr:hover td,
#survey table.grouped-table tbody tr.hover td,
#survey table.grouped-table tbody tr:hover th,
#survey table.grouped-table tbody tr.hover th,
#survey ul.matrix li:hover,
#survey ul.matrix li.hover,
#survey table.threedMatrix tbody tr:hover th,
#survey table.threedMatrix tbody tr.hover th,
#survey table.threedMatrix tbody tr:hover td,
#survey table.threedMatrix tbody tr.hover td{
	background-color:#ececec;
}

/* Make bullets visible for extra description, (when the user is taking the survey)*/
#survey .survey-header ul, #survey .question-header ul  {
    list-style-type: disc;
	margin-left: 20px;
}
#survey .survey-header ul li, #survey .question-header ul li {
    list-style-type: disc;
	margin-left: 20px;
}

#survey .grouped-error-box {
	background-color: #FC9797;
}

#survey .grouped-table tr.grouped-error-box td {
	padding: 0;
	border: 0;
}

#survey .grouped-table tr.grouped-error-box td ul.errorlist {
	margin: 0;
}

#survey div .datetime a.date {
	vertical-align: middle;
	display: inline-block;
	width: 16px;
	height: 16px;
	text-indent: -9999px;
	background: url('/media/img/icons/fugue/icons/calendar.png') no-repeat 50% 50%;
	overflow: hidden;
	outline: 0;
	zoom: 1;
	*display: inline;
}

#survey .matrixBorder{
	border: 1px solid #888;
}

#survey .matrixRowOdd{
	background-color: #F9F9F9;
}

#survey .matrixRowEven{
	background-color: #EDEDED;
}

.word{
	background: url('/media/img/icons/fugue/icons/document-word.png') no-repeat 50% 50%;
}

.pdf{
	background: url('/media/img/icons/fugue/icons/document-pdf.png') no-repeat 50% 50%;
}

.icon {
	padding-left: 20px;
	background-position: 2px 50%;
	text-decoration: none;
	color: #284C71;
	font-size:0.95em;
}

