/* ------------------------------
 *  Ajax-section
 *  ------------------------------*/ 

.error-box{
	display: flex; 
	justify-content: flex-start;
	align-items: center;
	color: white;
	font-size: 1rem;
	border: 1px solid brown;
	background-color: lightcoral;
	border-radius: 5px;
	padding: 10px;
	padding-left: 20px;
	padding-top: 20px; 
	max-height: min-content; 
}


mg-ajax-section .error-text{
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 1.1rem;
	color: indianred;
	font-weight: 500;
}

mg-ajax-section .error-text i{
	font-size: 2rem;
	margin-right: 5px;
}

mg-ajax-section .loading-box {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
}


/* ------------------------------
 *  magic forms
 *  ------------------------------*/

mg-form[editable="false"] .btn-container {
    display: none;
}

mg-form .file-field-btn .text {
    display: none;
}

mg-form .file-field-container {
    position:relative;
}

mg-form .file-field-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.1rem;
    width: 50px;
    height: 50px;
    position : absolute;
    bottom: 5px;
    right:20px;
    font-weight: bolder;
}

mg-form[editable="true"] .btn-container {
    display: inline-block;
}
mg-input,
mg-select,
mg-textarea,
mg-multiselect,
mg-editor,
mg-select-auto
{
    position: relative;
}


mg-input-content,
mg-input span {
/*  color: #777;*/
    font-size: small;
    /* color: #694f20; */
}

.items-selected-box {
    /*
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--main-color);
    -webkit-box-shadow: 0px 6px 8px -2px rgba(0,0,0,0.15);
    -moz-box-shadow: 0px 6px 8px -2px rgba(0,0,0,0.15);
    box-shadow: 0px 6px 8px -2px rgba(0,0,0,0.15);
    */
    margin-top: 10px;
    margin-bottom: 30px;
}

.items-selected-box mg-input span{
    color: #000;
    font-weight: 600;
    background: #fff;
/*  padding: 5px 10px;*/
    border-radius: 5px;
/*  background: #f0f0f0;*/
}

mg-multiselect .ma-btns-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: stretch;
    max-width: 100%;
    transition : color 200ms linear, border-color 200ms linear;
}

mg-multiselect .mg-option-btn {
    display: flex;
    padding: 5px 10px;
    justify-content: flex-start;
    align-items: center;
    border: 1px solid var(--border-color);
    margin: 0.2rem;
    border-radius: 5px;
}

mg-multiselect .mg-option-btn.selected i,
mg-multiselect .mg-option-btn.selected {
    color: var(--success);
}

mg-multiselect .mg-input-content {
    opacity:0;
    width: 100%;
    transition: opacity 200ms linear;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

mg-multiselect .mg-option-btn:hover {
    cursor: pointer;
    background-color: #fafafa;
}

mg-multiselect .mg-option-btn i {
    margin-right: 1rem;
    color: var(--border-color);
}

mg-multiselect .mg-selected-badge:before {
    font-family: "font awesome 5 free";
    content : "\f00a";
    font-size: .6rem;
    font-weight: 900;
    margin-right: 10px;
    color: var(--main-color);
    background-color: white;
}

mg-multiselect .mg-selected-badge {
    width: 100%;
    color: var(--sidebar-text-color);
    padding: 10px;
    margin-right: 0.5rem;
    border-radius: 6px;
}

mg-input span.mg-date-content {
    margin-right: 1em;
}

mg-input span.mg-time-content {
    font-size: 0.9rem;
    font-weight: lighter;
}

.categories-panel {
    display: flex;
}
mg-select-auto{
	display: flex;
	justify-conent: flex-start;
	align-items: center;
}

mg-select-auto .autocomplete{
	width: 100%;
	display: block;
	position:relative;

}

mg-select-auto .autocomplete input[type="text"]{
	display: block;
	width: 100%;
}


mg-select-auto .autocomplete .chev-down{
	position: absolute;
	top: 10px;
	left: 94%;
	font-size: 1rem;

}

/*the container must be positioned relative:*/
.autocomplete {
  position: relative;
  display: inline-block;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #d4d4d4;
  border-bottom: none;
  border-top: none;
  z-index: 99;
  /*position the autocomplete items to be the same width as the container:*/
  top: 90%;
  left: 2%;
  right: 2%;
  max-height: 400px;
  overflow-y: auto;
  
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  background-color: #fff; 
  border-bottom: 1px solid #d4d4d4; 
}

/*when hovering an item:*/
.autocomplete-items div:hover {
  background-color: #e9e9e9; 
}

/*when navigating through the items using the arrow keys:*/
.autocomplete-active {
  background-color: var(--primary) !important; 
  color: #ffffff; 
}

/* ------------------------------
 *  RESPONSIVE
 *  ------------------------------*/ 


@media only screen and (max-width: 1024px)
{
  
    mg-input span,  mg-select span {
        font-size: small!important;
    }
}


template {
    display: none;
}



