form
{
    position: relative;
    display: table;
    width: 100%;
}

.form-item-wrapper
{
    position: relative;
    display: table-row;
    width: 90%;
    text-align: left;
}

form label
{
    display: table-cell;
    padding-right: 20px;
    text-align: left;
}

form input, form textarea
{
	display: table-cell;
	border-radius: 2%;
	margin-bottom: 10px;
	border-style: inset;
  border-color: var(--logo-main-light);
	min-height: 30px;
	padding: 1% max(1%, 5px);
  width: 100%;
  vertical-align: middle;
}
form input:focus, form textarea:focus
{
    outline: none;
}
form .select2-container
{
    margin-bottom: 10px;
    padding: 1% max(1%, 5px);
    min-height: 30px;
    width: 100% !important;
}
form .select2-container  .select2-selection
{
    border-radius: 2%;
    height: fit-content;
}
form .select2-container .select2-selection > span
{
    padding: 1% max(1%, 5px);
    line-height: 20px !important;
    height: 100% !important;
    box-sizing: border-box;
}
form textarea
{
    min-height: 100px;
    vertical-align: top;
    resize: vertical;
}

form input[type=checkbox]
{
    width: 20px;
    margin: 0;
}

form input:focus, form textarea:focus, form .select2-container .select2-selection:focus
{
	border-color: var(--logo-main);
}

form select
{
	background-color: white;
  margin-bottom: 10px;
}

form input::placeholder
{
    text-align: left;
}

form input::-ms-input-placeholder   /*Microsoft Edge*/
{
    text-align: left;
}

.form-item-wrapper.error > label
{
    color: red;
}

.form-item[filter=number], .form-item[filter=decimal-number]
{
    text-align: right;
}

.form-item.prefix
{
    padding-left: 20px;
}

.form-item.suffix
{
    padding-right: 20px;
}

.form-item-wrapper > span.prefix, .form-item-wrapper > span.suffix
{
    position: absolute;
    top: calc(1% + 2px);
    color: var(--placeholder);
    padding: 5px;
}

.form-item-wrapper > span.suffix
{
    right: 0;
}

.form-button-wrapper
{
    height: 50px;
}

form button
{
    position: absolute;
    right: 0;
}
form button.busy::before
{
  background: url('../assets/loading.gif') no-repeat left center;
  background-position-x: 10%;
}

@media only screen and (max-width: 768px)
{
    form
    {
        width: 90%;
        margin: auto;
    }
}

@media only screen and (max-width: 480px)
{
   form label
   {
       display: block;
   }
}

/**************************************************Filters*************************************************/
form.filters
{
    display: block;
    width: 100%;
}

form.filters .form-item
{
    min-width: 100px;
}
