	/* Tables */

.hastable table {
	background:#fff;
	width:100%;
	border:1px solid #dedede;
	border-bottom:none;
}

.hastable thead td, .hastable thead th {
	background-color:#e6e6e6;
}

.hastable tr td, .hastable thead th {
	border-left:1px solid #ccc;
	text-align:left;
	padding:8px;
	color:#616161;
}

.hastable tr td {
	vertical-align:middle;
}

.hastable thead td, .hastable thead th {
	font-weight:bold;
	padding:8px;
	text-align:center;
}

.hastable th, .hastable td {
	border-bottom:1px solid #dedede;
	font-size: 14px;
}
.hastable tbody th {
	padding:0 8px;
	text-align:left;
}

.hastable tbody tr.alt td, .hastable tbody tr.odd td {
	color:#464646;
	vertical-align:middle;
}

.hastable tbody tr.alt td, .hastable tbody tr.alt th, .hastable tbody tr.odd {
	background-color:#f5f5f5;
}
.hastable tbody tr:hover td, .hastable tbody tr:hover th {
	background-color:#FFFFCF;
}

.headerSortDown, .headerSortUp {
	background-repeat:no-repeat;
	background-color:#dcdcdc!important;
	color:#404040!important;
}

.header span {
	float:right;
	margin-top:-3px;
}

.hastable tr .center {
	width:5px;
}

.hastable table a.btn span.ui-icon {
	left:0.1em;
}

.hastable table a.btn {
	margin:0 5px;
}

.content-box table {
	margin:0;
}

	/* Tables Pagination */

#pager {
	padding:10px 0;
	bottom:0!important;
	top:auto!important;
}

.pager-form {
	position:relative;
}

.pager-form table {
	margin:0 0 70px 0;
}

.pager-form a.btn {
	margin-top:7px
}

#pager input, #pager .pagesize {
	color:#333;
	padding:4px;
	margin:5px;
	float: left;
	border-color:#7C7C7C #C3C3C3 #ddd;
	border-style:solid;
	border-width:1px;
}

.response-msg {
  margin-bottom: 1rem;
  padding: 0.5rem;
  font-size: 0.925rem;
}
.response-msg > span:first-child {
  font-weight: bold;
  font-size: 1rem;
  display: inline-block;
  padding-right: 0.25rem;
}
.response-msg.inf{
  border: 1px dashed rgba(12,78,255,0.825);
  background-color: rgba(12,78,255,0.125);
}
.response-msg.error{
  border: 1px dashed rgba(225,0,0,0.825);
  background-color: rgba(255,0,0,0.125);
}
.response-msg.notice{
  border: 1px dashed rgba(225,85,32,0.825);
  background-color: rgba(225,85,32,0.125);
}
.response-msg.success{
  border: 1px dashed rgba(32, 225, 48, 0.825);
  background-color: rgba(32,225,48,0.125);
}


div.facts-auto-complete-results ul {
  box-shadow: 0 0 0.125rem rgb(45,45,45,0.825);
  padding: 0;
  list-style: none;
  background: #fff;
  display: block;
	border-radius: 0.125rem;
	margin: 0;
}
div.facts-auto-complete-results ul > li {
  padding: 0.5rem;
  border-bottom: 1px solid #dbdbdb;
  cursor: pointer;
}
div.facts-auto-complete-results ul > li:hover {
  background-color: rgba(0,0,0,0.0625);
}
div.facts-auto-complete-results ul > li:last-child {
  border-bottom: 0;
}
div.facts-auto-complete-results ul > li span.type {
  display: block;
}

input.field[readonly] {
  background-color: #E9ECEF;
  outline: none;
}

a[data-disabled] {
	pointer-events: none;
	opacity: 0.35;
}

.hastable table.data-table.is-mobile {
}
.hastable table.data-table.is-mobile thead {
	display: none;
}
.hastable table.data-table.is-mobile tr {
	max-width: 100%;
	position: relative;
	display: block;
	background: transparent;
}
.hastable table.data-table.is-mobile tr:hover td {
	background: transparent;
}
.hastable table.data-table.is-mobile tbody,
.hastable table.data-table.is-mobile {
	border: 0;
	background: transparent;
	width: 100%;
}
.hastable table.data-table.is-mobile td {
	border: 0;
	display: flex;
	width: auto;
	justify-content: space-between;
	align-items: center;
	text-align: right;
}
.hastable table.data-table.is-mobile tfoot td {
	justify-content: center;
}
.hastable table.data-table.is-mobile td > * {
	flex: 1 1 auto;
}
.hastable table.data-table.is-mobile td.has-no-label {
	text-align: left;
}
.hastable table.data-table.is-mobile tbody td:not(.has-no-label):not(.action):not([colspan]):before {
	content: attr(data-label);
	text-align: left;
	flex: 0 1 auto;
	box-sizing: border-box;
	padding-right: 0.5em;
}
.hastable table.data-table tbody td:not(.has-no-label) > * {
	box-sizing: border-box;
	flex: 1 1 auto;
	margin: 0;
}
/*.hastable table.data-table.is-mobile tr > td:first-child {
	margin-top: 1em;
}*/

.hastable table.data-table.is-mobile td {
	box-sizing: border-box;
	flex-wrap: wrap;
	padding: 0;
	margin-top: 0.5em;
}
.hastable table.data-table.is-mobile td.is-control {
	display: none;
}
.hastable table.data-table.is-mobile td span[data-qty-desc]{
  flex: 1 0 100%;
	text-align: left;
	padding-left: 0.5em;
}
.hastable table.data-table td .ui-bar {
	display: flex;
	justify-content: space-between;
	align-items: center;
}
.hastable table.data-table td .ui-bar h3 {
	padding: 2px 0;
}
.hastable table.data-table td .ui-bar a {
	margin: 0;
	position: relative;
	left: 0.6em;
}


.dynamic-dialog {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	justify-content: center;
	align-items: flex-start;
	visibility: hidden;
	transition: visibility 300ms ease;
	padding-top: 42px;
	z-index: 99998;
}
.dynamic-dialog.is-open {
	visibility: visible;
}
.dynamic-dialog > .dialog-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.825);
	transition: opacity 300ms ease;
	opacity: 0;
}
.dynamic-dialog.is-open > .dialog-overlay { opacity: 1 }
.dynamic-dialog > .dialog-wrapper {
	z-index: 99999;
	position: relative;
	transform: scale(0.4);
	opacity: 0;
	transition: transform 300ms ease, opacity 300ms ease;
	margin: 0 auto;
	width: 92.5%;
	border-radius: 0.6em;
}
.dynamic-dialog.is-open > .dialog-wrapper {
	transform: scale(1);
	opacity: 1;
}
.dynamic-dialog > .dialog-wrapper > .ui-header {
	border-top-left-radius: inherit;
	border-top-right-radius: inherit;
}
.dynamic-dialog > .dialog-wrapper > .dialog-content {
	border-bottom-left-radius: inherit;
	border-bottom-right-radius: inherit;
	max-height: 75vh;
	overflow: scroll-y;
}


.content-box {
	box-shadow: 0 0 0.25em rgba(0,0,0,0.425);
	border: 1px solid black;
	background: #fff;
	padding: 1em 0.75em;
	margin: 1em 0;
	border-radius: 0.75em;
}
.content-box .content-box {
	padding: 0;
	margin: 0;
	border-bottom: 1px dashed rgba(0,0,0,0.25);
}
.content-box h3 {
	margin: 0 0 0.5em 0!important;
	padding-bottom: 0.5em;
	border-bottom: 1px dashed rgba(0,0,0,0.25);
}

nav.paginate {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
}
nav.paginate > button {
	flex: 0 1 auto;
}
nav.paginate > section {
	display: flex;
	flex: 0 1 auto;
	align-items: center;
	margin: 0 0.5em;
}
nav.paginate > section > span {
	flex: 0 0 auto;
	white-space: nowrap;
	padding: 0 0.25em;
}
nav.paginate > section > button {
	flex: 0 1 auto;
}
#mdsfDealersList > div:first-child {
	flex-direction: column;
}
nav.paginate input {
	min-width: 3em;
}

.control-group {
	display: flex;
}
.control-group > * {
	flex: 1 1 50%;
}
.control-group > *:first-child {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.control-group > *:last-child > *,
.control-group > *:last-child {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}
.ui-select select,
.ui-select .ui-btn>span:not(.ui-li-count) {
	white-space:normal !important
}

.ui-dialog .ui-btn {
	white-space: normal;
}

table caption {
	background: white;
	padding: 1em;
	border-radius: 0.5em;
	font-style: italic;
}