/*
================================================
FDA Datadashboard - FSMA TPP and VQIP CSS
================================================
*/

/*------------------------------------------------------------------------------------------------ */
/* Caveats and Introduction Section on TPP Dashboard Page
-------------------------------------------------------------------------------------------------- */

.caveats {
    margin-top: -.5em;
    margin-bottom: 2em;
}

figure {
    margin: 5px auto 1.5em;
    width: 72%;
    position: relative;
    text-align: center;
}
.laaf figure {
    margin: 5px auto;
}

@media (max-width: 62em) {
  figure {
      width: 95%;
  }
}
@media (max-width: 48em) {
  figure {
      width: 100%;
  }
}
figure img {
    max-width: 640px;
    width: 100%;
    height: auto;
}

/*------------------------------------------------------------------------------------------------ */
/* Caveats and Introduction Section on VQIP Dashboard Page
-------------------------------------------------------------------------------------------------- */

figure.vqip {
    margin:0;
    width: 100%;
}

@media (max-width: 62em) {
  figure.vqip {
      width: 100%;
  }
}
@media (max-width: 48em) {
  figure.vqip {
      width: 100%;
  }
}

figure.vqip img {
	max-width: 80px;
	min-width: 50px;
    width: 100%;
    height: auto;
    display: inline-block;
    float: right;
    margin-bottom: 1.5em;
    margin-top: 1.125em;
    margin-right: .5em;
}

/*------------------------------------------------------------------------------------------------ */
/* Begin Filter Bar and Selection Tool Bar for TPP and VQIP
-------------------------------------------------------------------------------------------------- */

#filterbar {
	display: table-cell;
	height: auto;
    background-color: #fff;
	z-index: 5;
	position: relative;
	float: left;
	width: 100%;
	max-width: 1440px;
}
/* filterbar for VQIP Dashboard */
#filterbar.vqip {
	margin: .65em 0 .25em;
}

#filterbar #filter_containerfd {
	display: block;
}

#filterbar #filter_containerfd .filter_panel {
    display: inline-block;
    /*margin: 1em auto 2em;
    width: 100%;*/
}    
#filter_title {
    display: inline-block;
    width: 5em;
    vertical-align:top;
}	
#filter_title h3 {
    margin: 0.75em 0 0 0; 
    color: #333;
}	
#filterbar .filter_panel {
	display: flex;
	flex-direction: row;
	align-content: center;
	flex-wrap: wrap;
	padding: 0;
	cursor: pointer;
}

#filterbar .filter_panel .filterobject {
    margin: .5em;
    float: left;
    height: 35px;
    width: 12%;
    min-width: 130px;
    max-width: 130px;
    background-color: #fff;    
}

#filterbar .filter_panel .filterobject:nth-child(2) {
	min-width: 133px;
	max-width: 133px; 
}



@media (min-width: 47em) {
	#filterbar .filter_panel .filterobject:first-child {
	    margin-left: 0;
	}
}

#SelectionsPanel{
    margin-bottom: 20px;
}

.btn.cancel {
	border-radius: 0;
	font-size: 10px;
	padding: 2px 4px;
	min-height: 39px;
	background-color: #333;
	border-left: 1px solid #ccc;
	color: #fff;			
}
.btn.cancel:hover {
	background-color: #545352;
	color: #fff;	
}
.btn.cancel img {
	display: block;
	margin: 0 auto;
}

/*------------------------------------------------------------------------------------------------ */
/* Mashups Section for TPP and VQIP
-------------------------------------------------------------------------------------------------- */
#mashup_container {
    margin-top: 2em;
}

/* filterbar for VQIP Dashboard */
#mashup_container.vqip {
    margin-top: 5px;
}

div.qvobject, div.qvplaceholder {
	padding: 20px 10px 5px 10px;
	height: 350px;
}
.datatable-container {
	margin-bottom: 2em;
	clear: both;
}
.datatable-container h4 {
	margin: 0.25em 0;
}
.datatable-container .table-content {
	padding-top: 1em;
}
.datatable-container div {
	padding: 0;
}
span.icon-download::before {
	font-family: "FontAwesome";
	content: "\f019";
	display: inline-block;
	padding-right: 10px;
	vertical-align: middle;
	font-size: 1em;
}
.datatable-container .record-count  {
	/*height: 2em;*/
	margin: 0.5em 0;
	font-size: 0.9em;
}
.datatable-container p {
	font-size: 1em;
}
.datatable-container .datatable-links {
	margin-top: 0;
	text-align: right;
}

@media (max-width: 991px) {
	.datatable-container .datatable-links {
		margin-top: 0.4em;
		text-align: left;
	}
}
@media (max-width: 768px) {
	.datatable-container .datatable-links .btn {
		margin-top: 0.75em;
	}
}

/** Qlik elements in Data table section**/
.datatable-container .qv-st {
	 border: 1px #ccc solid;
 }
/*.datatable-container #QVTppAbDetails.dash-qv-detail-object {
    height: 276px;
}*/
.datatable-container .dash-qv-detail-object {
	clear: both;
	height: 412px;	
}
.datatable-container .qv-object-header {
	display: none; 
}
.datatable-container .record-count * {
	font-size: 1em;
	font-family: 'Muli SemiBold', Helvetica, Arial, sans-serif !important;
	text-align:left !important;
	padding-left: 0px;
	height: 20px; /* Added to make the Record count show */
    overflow-y: hidden;
}

.btn-default {
	color: #337ab7;
	border-color: #337ab7;	
}

/*------------------------------------------------------------------------------------------------ 	*/
/*  Qlik Selection Pane Element	for TPP and VQIP													*/
/*------------------------------------------------------------------------------------------------- */


/* .qv-panel-current-selections {
	background-color: #333; 
    min-height: 39px;
    min-width: 150px;
    width: 100%;
    float: left;
}

.qv-panel-current-selections .qv-selections-pager {
	height: 39px;
}
 */
 .qv-panel-current-selections .qv-selections-pager {
	height: 39px;
	background-color: #333;
}

/* hide smart search icon and selections tool button on the selection Tool Bar (black bar) ***/
#qv-current-selections #CurrentSelections .buttons-end.borderbox {
	display: none;
}

/* hide step back, step backward, and clear all buttons on the selection Tool Bar (black bar)
#qv-current-selections #CurrentSelections .buttons.borderbox {
	display: none;
} */

/*** Display selections bar icon buttons to be visible with black background override ***/
#qv-current-selections #CurrentSelections .buttons.borderbox button {
    color: #efefef !important;
}
#qv-current-selections #CurrentSelections .buttons.borderbox button.disabled {
    color: #ababab !important;
}

/**** Hide selections bar icons on smaller devices ***/
@media (max-width: 767px) {

    #qv-current-selections #CurrentSelections .buttons.borderbox  {
        display:none; 
    }
}

/*** Vertical Position of Clear All button ***/
#SelectionsPanel .input-group-btn { vertical-align: top; }
#globalSearchToggleButton { display:none; } /*** This search does not seem to work so hiding it ***/

/**** Hide selections bar icons on smaller devices 
@media (max-width: 767px) {

    #qv-current-selections #CurrentSelections .buttons.borderbox  {
        display:none; 
    }
}***/

/* Override for displaying filters properly in mobile */
.qv-collapsed-listbox {
    position: relative;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    height: 34px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-direction: normal;
    -moz-box-direction: normal;
    -webkit-box-orient: vertical;
    -moz-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    border-radius: 3px;
    cursor: default;
}