@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700,400italic");

div.flash.alert {
	color: #000000;
	background-color: #FFF4F1;
}

.table {
	background-color: #E7E7E7;
	border: 2px solid black;
}
form .span5 {
	vertical-align: middle;
}
#image_overlay {
	cursor: pointer;
	text-align: center;
}
.cat_img_preview {
	border-radius: 5px;
	width:130px;
	height:130px;
}
.cat_img_container {
	border-radius: 5px;
	box-shadow: 1px 1px 4px 1px;
	box-sizing: border-box;
	width:130px;
	height:130px;
	margin: auto;
}
.attr-title {
	font-weight: bold;
    font-size: 15px;
    line-height: 30px;
    height: 30px;
    padding-left: 5px;
    padding-right: 5px;
    margin-left: 2px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-x: hidden;
}
.attr-value {
	margin-top: 4px;
}
.attr-value input{
	width: 98%;
}
.attr-value select{
	width: 99%;
}

#item_form .span8{
	border-left: 2px solid black;
	margin-left: 0px;
	padding-left: 2.564102564102564%;
}
#category_form .span4{
	border-right: 2px solid black;
}
@media (max-width: 768px){
	#item_form .span8{
		border-left: none;
		margin-left: inherit;
		padding-left: 0px;
	}
	#category_form .span4{
		border-right: none;
	}
}
.buttons {
	
}

form input, form select {
	width: 150px;
}

.ui-dialog-titlebar.ui-widget-header {
	border: none;
	background-image: none;
}

.featuredProducts {
	width: 100%;
	height: auto;
	padding-bottom: 20px;
	display: flex;
	flex-direction: row;
	justify-content: stretch;
	/*min-height: 800px;*/
}

.sideCategoriesMenu {
	width: 150px;
	/*height: 100%;*/
}

.categoryList img, .categoryChildList img {
	height: 52px; 
	width: 52px;
}

.categoryList ul, .categoryChildList ul {
	list-style: none;
    padding: 6px 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: stretch;
    overflow-x: auto;
    background-color: #5F7998;
}

.categoryList ul li, .categoryChildList ul li {
	text-align: center;
	width: 112px;
	margin: 0 3px;
	background-color: #ffffff;
	-webkit-box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.46); 
	box-shadow: 0px 1px 5px 0px rgba(0,0,0,0.46);
	font-weight: 700;
	color: #222;
	transition: all 0.1s ease-out;
	display: flex;
	align-items: center;
	flex-direction: column;
}

.categoryList ul li:first-child {
  margin-right: 50px;
}

.categoryList ul li.hoverStyles,
.categoryList ul li.clickStyles, .categoryChildList ul li.hoverStyles,
.categoryChildList ul li.clickStyles {
	cursor: pointer;
	background-color: rgba(38, 155, 96, 0.9);
}

.categoryList ul li.hoverStyles p,
.categoryList ul li.clickStyles p, .categoryChildList ul li.hoverStyles p,
.categoryChildList ul li.clickStyles p {	
	background-color: #FFFFFF;
	color: #1D1D35;
}


.categoryList ul li img, .categoryChildList ul li img {
	border-bottom: 2px solid rgba(231,235,238,0.7);
}

.categoryList ul li p, .categoryChildList ul li p {
	text-align: center;
	margin: 0;
	background-color: #2E3131;
	color: #FFFFFF;
	color: rgba(255,255,255,1);
	overflow-wrap: anywhere;
	width: 100%;
	height: calc(100% - 52px);
}

.categoryList ul li p span, 
.categoryChildList ul li p span {
	padding: 1px;
}


.itemsDisplay {
	background-color: #2E3131;
	padding: 0 12px;
	width: 100%;
	height: 100%;
}

#featured_products_grid {
	padding: 12px 4px;
}

div.ui-dialog,
div.ui-dialog {
	overflow: visible;
	/*max-height: 500px;*/
	max-width: 500px;
}

div.ui-dialog-content,
div.ui-dialog-content {
	overflow: visible;
	max-height: 450px;
	max-width: 500px;
}

div.ui-dialog-content img,
div.ui-dialog-content img {
	max-height: 400px;
	max-width: 450px;
}

#featured_products_ergo,
#product-list {
	padding-bottom: 2px;
}

#ergotable_featured_products_ergo,
#ergotable_product-list {
	min-height: 800px;
}


.toggleGridView {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: flex-end;
	padding-bottom: 2px;
	padding-top: 2px;
	position: relative;
}

.toggleGridView button {
	border: none;
	background: transparent;
	margin-right: 2px;
	padding: 2px;
	background-color: #f5deb3;
}

button.modeSelected {
	background-color: #ffffff;
}

.gridView {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	text-align: center;
	justify-content: center;
}

.gridItem {
	width: 200px;
	padding: 10px;
}

.gridView .gridItem img {
	height: 40px;
	max-width: 120px;
	padding-top: 4px;
	padding-bottom: 2px;
}

.gridView .gridItem img:hover {
	cursor: pointer;
}

.gridCard {
	width: 100%;
	height: 100%;
	background-color: #FFFFFF;
}

.gridCard .code {
	font-weight: 700;
	background-color: #EDFBFF;
}

.imagePopup img {
	/*max-width: 52px;*/
	max-height: /*52px*/70px;
	padding: 1px;
}

.imagePopup img:hover {
	cursor: pointer;
}

.isNewProduct {
    align-items: center;
    background: linear-gradient(45deg, rgba(0, 143, 255,0.5), rgba(255,255,255,0.25));
    box-shadow: 4px 0px 6px 0 rgb(0 0 0 / 25%), 2px -1px 12px 0 rgb(255 255 255 / 30%);
    border-radius: 6px;
    display: flex;
    justify-content: center;
    padding: 4px 2px 1px;
    font-weight: 800;
    color: rgb(0,0,0);
    max-width: 100px;
    margin-bottom: 2px;
}

.isOnOffer {
    align-items: center;
    background: linear-gradient(45deg, rgba(251, 54, 64,0.5), rgba(255,255,255,0.25));
    box-shadow: 0px 0px 4px 0 rgb(0 0 0 / 25%), 2px -1px 12px 0 rgb(255 255 255 / 30%);
    border-radius: 2px;
    display: flex;
    justify-content: center;
    font-weight: 700;
    color: rgb(0,0,0);
    max-width: 100px;
}

.isNew {
    align-items: center;
    background: linear-gradient(45deg, rgba(0, 0, 255,0.5), rgba(255,255,255,0.25));
    box-shadow: 0px 0px 4px 0 rgb(0 0 0 / 25%), 2px -1px 12px 0 rgb(255 255 255 / 30%);
    border-radius: 2px;
    display: flex;
    justify-content: center;
    font-weight: 700;
    color: rgb(0,0,0);
    max-width: 100px;
	min-width: 100px;
    float: left;
    margin-right: 3px;
}

.order_total {
    background: linear-gradient(45deg, rgba(124, 194, 255, 1), rgba(255,255,255,0.25));
		box-shadow: 0px 0px 4px 0 rgb(0 0 0 / 25%), 2px -1px 12px 0 rgb(255 255 255 / 30%);
		border-radius: 2px;
		/*padding: 4px 2px 1px;*/
		font-weight: 700;
		color: rgb(0,0,0);
		margin-bottom: 3px;
		width: 130px;
}


/*----- select filter -----*/

.categoryFilter {
	display: inline-flex;
	flex-direction: column;
}

.selectCategory {
	background-color: rgb(255,255,255);
	padding-left: 4px;
	border-radius: 2px;
}

ul.parentCategories {
	list-style: none;
    display: flex;
    flex-direction: column;
    width: auto;
    align-items: flex-start;
}

ul.parentCategories li {
	padding: 2px 4px;
    padding: 2px 4px;
    border-bottom: 1px ridge lightgray;
    cursor: pointer;
}

ul.parentCategories li.featuredCategories {
	font-weight: 700;
}

.wrapper {
		width: 100%;
		height: 100%;
}

.wrapper ul {
		list-style: none;
		margin-left: 0;
}

.wrapper ul.default_option li {
		padding: 4px 8px;
}

.select_wrap {
	font-family: "Source Sans Pro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  user-select: none;
  width: 150px;
  font-weight: 700;
  color: #4a4f4f;
  font-size: 1.2em;
  height: 100%;
}

.select_wrap ul {
	margin-bottom: 2px;
} 

.select_wrap .default_option {
    background: rgba(95, 121, 152, 0.8);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
    color: #fff;
}

.select_wrap .default_option li {
    padding: 4px 8px;
    line-height: 21px;
  	text-transform: capitalize;
}

.select_wrap .default_option:after {
    content: "";
    width: 4px;
    margin-right: 5px;
    height: 4px;
    border: 2px solid;
    border-color: transparent transparent #fff #fff;
    transform: rotate(-45deg);
}

.select_wrap .select_ul {
  position: relative;
  width: 100%;
  height: 100%;
  background: #F0F0F0;
  border-radius: 2px;
  z-index: 1;
}
.select_wrap .select_ul li[data-id="all"], .select_wrap .select_ul li[data-id="offers"], .select_wrap .select_ul li[data-id="myProducts"], .select_wrap .select_ul li[data-id="new"]{
	background: #D6D6D6;
}

.select_ul ul {
  overflow-y: auto;
}

.select_wrap li span {
  line-height: 21px;
  padding
}

.select_wrap .select_ul li {
  padding: 4px 8px;
  cursor: pointer;
  text-align: left;
  border-bottom: 1px ridge lightgrey;
}

.select_wrap .select_ul li:last-child {
  border-bottom: none;
}

.select_wrap .select_ul li:first-child:hover{
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.select_wrap .select_ul li:last-child:hover{
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.select_wrap .select_ul li:hover{
  background: #fff4dd;
}

.select_wrap ul.subCateg {
    background: aliceblue;
    position: absolute;
    top: 0;
    left: 150px;
    display: none;
}

.select_wrap .option {
  display: flex;
  align-items: center;
}

.select_wrap.active .select_ul {
  display: grid;
  grid-template-columns: 100% 100%;
}

.select_wrap ul.subCateg.active {
	display: block;
	padding: 0 10px;
	height: 100%;
	width: 260px;
}

.select_wrap.active .default_option:before{
  top: 25px;
  transform: rotate(-225deg);
}

.select_wrap .select_ul li.secondLevelCateg {
		border-bottom: none;
}

.select_wrap div.breakLine {
  border-bottom: solid 1px #000000;
}

.select_wrap .thirdLevelList {
	 margin-bottom: 10px;
	 color: slategray;
}

.sticky_ul{
	position: sticky;
    top: 0;
}

.isSelected {
		background-color: #fff4dd;
}

.ergotable .filter_clear, .ergotable .filter_icon{
	display:none;
}
.ergotable .filter_row th input{
	background-color: lightgoldenrodyellow !important;
	border-bottom: 1px solid lightgrey !important;
}
#categPath{
	font-weight: 800;
    padding-top: 11px;
    padding-left: 16px;
	color: lightslategray;
}