/*
 * MEA Financial - MeaUtils Common Design Components in CSS, JS and HTML
 *   -- Intented to be used in a StyleBundle("~/bundle/css"), so that image paths are correct
 */
a, 
a:hover, 
a:focus {
  outline: none;
  text-decoration: none;
}
.mea-hidden {
  display: none;
}
.mea-readonly {
  background-color: #EAEAEA;
  background-image: none;
}
.mea-btn {
  outline: none;
  text-align: center;
  border: 1px solid #999;
  border-radius: 4px;
  background-image: none;
}
.mea-dd {
  outline: none;
}
.mea-dd-auto {
  outline: none;
}
.mea-dd-auto option {
  border-top: 0;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}
.mea-dd-auto-dsc {
  font-size: x-small;
  color: darkblue;
}
.mea-dd-auto .selectize-input {
  overflow: initial;
  clip: rect(auto,auto,auto,auto);
}
.form-control.selectize-control {
  height: 34px;
}
.selectize-dropdown,
.selectize-dropdown.form-control {
  z-index: 19999;
}
/*#region Spinner*/
/* From http://cssload.net/en/spinners -floatingCirclesG- */
.mea-spinner-container {
    display: table;
    height: 99%;
    width: 99%;
}
.mea-spinner-centered {
    display: table-cell;
    vertical-align: middle;
}
.mea-spinner {
    margin-left: auto;
    margin-right: auto;
}
.mea-spinner > div:first-child {
  position:relative;
	width:77px;
	height:77px;
	margin:auto;
	transform:scale(0.6);
		-o-transform:scale(0.6);
		-ms-transform:scale(0.6);
		-webkit-transform:scale(0.6);
		-moz-transform:scale(0.6);
}
.mea-spinner > div:first-child div {
	position:absolute;
	background-color:rgb(255,255,255);
	height:14px;
	width:14px;
	border-radius:6px;
		-o-border-radius:7px;
		-ms-border-radius:7px;
		-webkit-border-radius:7px;
		-moz-border-radius:7px;
	animation-name:mea_spinnerFade;
		-o-animation-name:mea_spinnerFade;
		-ms-animation-name:mea_spinnerFade;
		-webkit-animation-name:mea_spinnerFade;
		-moz-animation-name:mea_spinnerFade;
	animation-duration:1.2s;
		-o-animation-duration:1.2s;
		-ms-animation-duration:1.2s;
		-webkit-animation-duration:1.2s;
		-moz-animation-duration:1.2s;
	animation-iteration-count:infinite;
		-o-animation-iteration-count:infinite;
		-ms-animation-iteration-count:infinite;
		-webkit-animation-iteration-count:infinite;
		-moz-animation-iteration-count:infinite;
	animation-direction:normal;
		-o-animation-direction:normal;
		-ms-animation-direction:normal;
		-webkit-animation-direction:normal;
		-moz-animation-direction:normal;
}
.mea-spinner > div:first-child div:nth-child(1) {
	left:0;
	top:31px;
	animation-delay:0.45s;
		-o-animation-delay:0.45s;
		-ms-animation-delay:0.45s;
		-webkit-animation-delay:0.45s;
		-moz-animation-delay:0.45s;
}
.mea-spinner > div:first-child div:nth-child(2) {
	left:9px;
	top:9px;
	animation-delay:0.6s;
		-o-animation-delay:0.6s;
		-ms-animation-delay:0.6s;
		-webkit-animation-delay:0.6s;
		-moz-animation-delay:0.6s;
}
.mea-spinner > div:first-child div:nth-child(3) {
	left:31px;
	top:0;
	animation-delay:0.75s;
		-o-animation-delay:0.75s;
		-ms-animation-delay:0.75s;
		-webkit-animation-delay:0.75s;
		-moz-animation-delay:0.75s;
}
.mea-spinner > div:first-child div:nth-child(4) {
	right:9px;
	top:9px;
	animation-delay:0.9s;
		-o-animation-delay:0.9s;
		-ms-animation-delay:0.9s;
		-webkit-animation-delay:0.9s;
		-moz-animation-delay:0.9s;
}
.mea-spinner > div:first-child div:nth-child(5) {
	right:0;
	top:31px;
	animation-delay:1.05s;
		-o-animation-delay:1.05s;
		-ms-animation-delay:1.05s;
		-webkit-animation-delay:1.05s;
		-moz-animation-delay:1.05s;
}
.mea-spinner > div:first-child div:nth-child(6) {
	right:9px;
	bottom:9px;
	animation-delay:1.2s;
		-o-animation-delay:1.2s;
		-ms-animation-delay:1.2s;
		-webkit-animation-delay:1.2s;
		-moz-animation-delay:1.2s;
}
.mea-spinner > div:first-child div:nth-child(7) {
	left:31px;
	bottom:0;
	animation-delay:1.35s;
		-o-animation-delay:1.35s;
		-ms-animation-delay:1.35s;
		-webkit-animation-delay:1.35s;
		-moz-animation-delay:1.35s;
}
.mea-spinner > div:first-child div:nth-child(8) {
	left:9px;
	bottom:9px;
	animation-delay:1.5s;
		-o-animation-delay:1.5s;
		-ms-animation-delay:1.5s;
		-webkit-animation-delay:1.5s;
		-moz-animation-delay:1.5s;
}
.mea-spinner > div:last-child {
  /* Verbiage */
  text-align: center;
  font-style: italic;
  font-size: small;
}
@keyframes mea_spinnerFade {
	0%{ background-color:rgb(100,250,153); }
	100%{ background-color:rgb(255,255,255); }
}
@-o-keyframes mea_spinnerFade {
	0%{ background-color:rgb(100,250,153); }
	100%{ background-color:rgb(255,255,255); }
}
@-ms-keyframes mea_spinnerFade {
	0%{ background-color:rgb(100,250,153); }
	100%{ background-color:rgb(255,255,255); }
}
@-webkit-keyframes mea_spinnerFade {
	0%{ background-color:rgb(100,250,153); }
	100%{ background-color:rgb(255,255,255); }
}
@-moz-keyframes mea_spinnerFade {
	0%{ background-color:rgb(100,250,153); }
	100%{ background-color:rgb(255,255,255); }
}
/*#endregion Spinner*/

/*#region MeaModel */
/* Model Validation Helpers - jQuery.validate.unobtrusive */
.field-validation-error {
  color: #a94442;
  display: block; 
  width: auto;
  min-width: 300px;
  max-width: 600px;
}
.field-validation-valid {
  display: none;
}
.validation-summary-errors {
  font-weight: bold;
  color: #a94442;
  max-width: 700px;
}
.validation-summary-valid {
  display: none;
}
.validation-summary-errors {
  max-width: 700px;
}
.mea-mdl-cont .mea-mdl-lbl {
  text-align: left;
}
.mea-mdl-print {
  background: url('../images/mea.mdl.print.png') no-repeat center center;
  cursor: pointer;
  float: right;
  margin-top: -3px;
  margin-right: 15px;  
  height: 25px;
  width: 25px;
}
.mea-mdl-print:hover {
  background: url('../images/mea.mdl.print.hover.png') no-repeat center center;
}
.mea-mdl-cont-fluid .row {  
  margin-top: 5px;
}
/*#endregion*/
/*#region MeaDialog */
.modal {
  text-align: center;
}
.modal-backdrop ~ .modal-backdrop {
  display:none;
}
.modal.fade .modal-dialog {
  -webkit-transform: translate(0, 0);
  -moz-transform: translate(0, 0);
  -ms-transform: translate(0, 0); /* IE9 only */
  -o-transform: translate(0, 0);
     transform: translate(0, 0);
}
.fade {
  opacity: 0;
  -webkit-transition: opacity 1s linear;
  -moz-transition: opacity 1s linear;
  -o-transition: opacity 1s linear;
     transition: opacity 1s linear;
}
@media screen and (min-width: 768px) { 
  .modal:before {
    display: inline-block;
    vertical-align: middle;
    content: " ";
    height: 100%;
  }
  .modal-dialog {
    width: auto;
    margin: 30px auto;
  }
}
.modal-dialog {
  display: inline-block;
  vertical-align: middle;
  text-align: left;
  max-height: 90%;
  max-width: 90%;
}
.mea-dlg {  
  height: 100%;
  width: auto;
}
.mea-dlg .panel {
  margin-bottom: 0;
}
.mea-dlg .modal-header {
  padding: 10px 15px;
}
.mea-dlg .mea-mdl-head .close {
  margin-top: 0;
}
.mea-dlg .modal-content {
  border: 0;
}
.mea-dlg .modal-content .modal-body {
  overflow-y: auto;
  overflow-x: auto;
}
.mea-dlg .modal-body {
  padding: 0;
}
.mea-dlg .modal-body .mea-mdl-body {
  padding: 15px;
  height: 100%;
  width: 100%;
}
.mea-dlg .modal-footer {
  padding: 11px 15px;
}
.mea-dlg-mdl .modal-dialog {
  /* Sets the Starting Width of dialog to display the Model, The resizing takes over after the intial load. */
  min-width: 600px;
}
.mea-dlg-spinner .mea-mdl-cont {
  border: 0;
}
.mea-dlg-spinner .modal-body {
  height: 100px;
  width: 100%;
  min-width: 200px;
}
.mea-dlg-confirm {
  width: auto;
  min-width: 250px;
}
.mea-dlg-confirm .modal-body {
  background-color: white;
}
/*#endregion*/
/*#region MeaDataFilter*/
.mea-df-cont .query-builder .rule-container .rule-value-container {
  min-width: 200px;
  padding-left: 10px;
}
.mea-df-cont .query-builder .rule-container .rule-value-container .form-control.selectize-control {
  width: 100%;
}
.mea-df-cont .query-builder .rule-value-container input[type=text] {
  width: 100%;
  padding: 6px 12px;
}
.mea-df-foot input {
  margin-right: 5px;
}
/*#endregion*/
/*#region MeaDataTable */
.dataTables_wrapper {
  /* Padding Allows rounded corners around tables to not be clipped.  Parent div's can get in the way of the corners. */
  padding: 5px;
  overflow: visible;
}
.dataTables_wrapper table { 
  width: 100%;
}
.dataTables_wrapper.no-footer .dataTables_scrollBody {
  border-bottom: 0;
}
.dataTable.no-footer {
  /* border-bottom: 1px solid #111111; */
  border-bottom: 0;
}
/* Row Grouping */
/* Dropdown Display */
.caret.caret-up {
  border-bottom: 4px solid #fff;
  border-top-width: 0;  
}
/* Selectors */
.expanded-group {
	background: url("../images/mea.dt.minus.jpg") no-repeat scroll left center transparent;
	padding-left: 18px !important;
  cursor: pointer;
}
.collapsed-group {
	background: url("../images/mea.dt.plus.jpg") no-repeat scroll left center transparent;
	padding-left: 18px !important;
  cursor: pointer;
}
td.group {
  background-color: #D1CFD0;
  border-bottom: 1px solid #A19B9E;
  border-top: 1px solid #A19B9E;
}
tr.group,
tr.group:hover {
  background-color: #ddd;
}
.mea-dt-cont td.group {
    padding-left: 30px !important;
}
.mea-dt-cont div.dataTables_wrapper .dataTables_empty {
  color: red;
}
.mea-dt-cont td .btn,
.mea-dt-cont td .mea-btn {
    padding: 0px 8px;
}
.mea-dt-cont .mea-dt-cell-input {
    padding: 0;
}
.mea-dt-nest {
  border: 0;
}
.mea-dt-row-act {
  padding: 0;
}
td.mea-dt-row-expd {
  background: url('../images/mea.dt.open.png') no-repeat center center;
  cursor: pointer;
}
.shown td.mea-dt-row-expd  {
  background: url('../images/mea.dt.close.png') no-repeat center center;
}
@media only screen and (max-width: 535px) {
    td.mea-dt-row-expd {
        background-size: contain;
    }
    .shown td.mea-dt-row-expd {
        background-size: contain;
    }
}
/* Table Loading */
.mea-dt-loading {    
    width: 100%;
}
/* Cell Centering */
th.mea-dt-cell-center,
td.mea-dt-cell-center {
    vertical-align: middle;
    text-align: center;
}
td.mea-dt-cell-center {
  /* This is needed because the header has padding for sorting, so we add to match */
  padding-right: 30px !important;
}
.mea-dt-cell-tb {    
  padding: 0 0 0 8px;
  margin: 0;
  overflow: hidden;
  border: 1px solid #aaa;    
  color: #444;
  text-decoration: none;
  text-align:left;
  vertical-align: middle;
  width: 90%;
  border-radius: 4px;
  box-sizing: border-box;
  background-clip: padding-box;
  background-color: #fff;  
  background-image: -o-linear-gradient(top,  #eee 0%, #fff 100%); /* Opera 11.10+ */
  background-image: -webkit-linear-gradient(top,  #eee 0%, #fff 100%); /* Chrome10+,Safari5.1+ */
  background-image: -moz-linear-gradient(top,  #1e5799 0%, #7db9e8 100%); /* FF3.6+ */
  background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #eee), color-stop(0.5, #fff)); /* Chrome,Safari4+ */
}
/* Pager */
.mea-dt-pg {
  display: inline-block;
  width: 100%;
}
.mea-dt-pg .mea-dt-pg-acts {
  float: left;
}
.mea-dt-pg .mea-dt-pg-acts > ul {
  padding: 0;
  padding-right: 10px;
  display: inline-block;
  list-style-type: none;  
}
.mea-dt-pg .mea-dt-pg-acts > a {
  padding: 0;
  padding-right: 10px;
}
.mea-dt-pg .dataTables_paginate .paginate_button  {
  padding: 0;
  padding-left: 10px;
  padding-right: 10px;
}
.mea-dt-pg .dataTables_paginate .paginate_button:hover {
  background-image: linear-gradient(to bottom, #337ab7 0%, #265a88 100%);
  border-radius: 2px;
  border-color: #337ab7;  
}
.mea-dt-pg .dataTables_paginate {
  padding-top: 0;
  float: none;
  text-align: center;
}
.mea-dt-pg .dataTables_info {
  padding: 0;
  float: right;
}
.mea-dt-pg .dt-buttons {
  padding: 0;
  float: right;
  width: auto;
}
.mea-dt-pg .dropdown-menu {
  width: auto;
  min-width: 50px;
  position: absolute;
}
.mea-dt-pg-btn {
  border: 0;
  text-shadow: 0 0 0 #fff;
  background-image: none;
  color: #245580;
  margin-top: 5px;
  padding-left: 0;
  padding-right: 10px;
}
a.mea-dt-pg-btn:hover {
  background-color: inherit;
}
.mea-dt-pg-btn span {
  padding-left: 5px;
  font-weight: 500;
}
.mea-dt-ext-detail {
  padding-left: 30px;
}
/*#endregion*/
/*#region MarkitUp */
/* -------------------------------------------------------------------
// markItUp!
// By Jay Salvat - http://markitup.jaysalvat.com/
// ------------------------------------------------------------------*/
.markItUp .markItUpButton1 a {
    background-image: url('../images/markitup/bold.png');
}
.markItUp .markItUpButton2 a {
  background-image: url('../images/markitup/italic.png');
}
.markItUp .markItUpButton3 a {
  background-image: url('../images/markitup/stroke.png');
}
.markItUp .markItUpButton4 a {
  background-image: url('../images/markitup/list-bullet.png');
}
.markItUp .markItUpButton5 a {
  background-image: url('../images/markitup/list-numeric.png');
}
.markItUp .markItUpButton6 a {
  background-image: url('../images/markitup/picture.png');
}
.markItUp .markItUpButton7 a {
  background-image: url('../images/markitup/link.png');
}
.markItUp .markItUpButton8 a {
  background-image: url('../images/markitup/clean.png');
}
.markItUp .preview a {
  background-image: url('../images/markitup/preview.png');
}
.markItUp * {
	margin:0px; padding:0px;
	outline:none;
}
.markItUpPreviewFrame	{
	display: none;
}
/***************************************************************************************/
/* first row of buttons */
.markItUpHeader ul li	{
	list-style:none;
	float:left;
	position:relative;
}
.markItUpHeader ul li ul{
	display:none;
}
.markItUpHeader ul li:hover > ul{
	display:block;
}
.markItUpHeader ul .markItUpDropMenu {
  background: transparent url(../images/markitup/menu.png) no-repeat 115% 50%;
  margin-right: 5px;
}
.markItUpHeader ul .markItUpDropMenu li {
	margin-right:0px;
}
.markItUpHeader ul .markItUpSeparator {
	margin:0 10px;
	width:1px;
	height:16px;
	overflow:hidden;
	background-color:#CCC;
}
.markItUpHeader ul ul .markItUpSeparator {
	width:auto; height:1px;
	margin:0px;
}
/* next rows of buttons */
.markItUpHeader ul ul {
	display:none;
	position:absolute;
	top:18px; left:0px;	
	background:#F5F5F5;
	border:1px solid #3C769D;
	height:inherit;
}
.markItUpHeader ul ul li {
	float:none;
	border-bottom:1px solid #3C769D;
}
  .markItUpHeader ul ul .markItUpDropMenu {
    background: #F5F5F5 url(../images/markitup/submenu.png) no-repeat 100% 50%;
  }
/* next rows of buttons */
.markItUpHeader ul ul ul {
	position:absolute;
	top:-1px; left:150px;
}
.markItUpHeader ul ul ul li {
	float:none;
}
.markItUpHeader ul a {
	display:block;
	width:16px; height:16px;
	text-indent:-10000px;
	background-repeat:no-repeat;
	padding:3px;
	margin:0px;
}
.markItUpHeader ul ul a {
	display:block;
	padding-left:0px;
	text-indent:0;
	width:120px; 
	padding:5px 5px 5px 25px;
	background-position:2px 50%;
}
.markItUpHeader ul ul a:hover  {
	color:#FFF;
	background-color:#3C769D;
}
/*#endregion*/