/* form table */
table.form {
    border: 1px solid #000;
    border-spacing: 0;
    border-collapse: separate;
    font-size: var(--mpl-font-size, 14px);
}

/* form header and footer */
table.form>thead,
table.form>tfoot {
    border: 0px;    
    background-color: #eee;
}
table.form>tbody {
    border: 0px;    
}

/* form header text */
table.form>thead tr {
    border: 0px;
}
table.form>thead th {
    border: 0px;
    font-size: 120%;
    text-align: left;
    padding: 0.5em 0.5em;
}

/* fields fields */
table.form>tbody tr {
    border: 0px;
}
table.form>tbody td {
    border: 0px;
    vertical-align: middle;
    padding: 0.2em 0.5em;
}

/* form footer */
table.form>tfoot tr {
    border: 0px;
}
table.form>tfoot td {
    border: 0px;
    padding: 0.5em 0.5em;
}

/* formfield */
input,
textarea {
    font-size: var(--mpl-font-size, 14px);
    padding: 5px 10px;
    border: 1px solid #b7b7b7;
    border-radius: 3px;
    color: #008ec6;
    background: #fcfcfc;
    box-shadow: 2px 2px 5px 0 rgba(0,0,0,0.2) inset;
}

table.form input:focus {
    border-color: #008ec6;
}

table.form label {
    margin-left: 1em;
}

table.form label:first-child {
    margin-left: 0;
}

input[type="button"],
input[type="image"],
input[type="submit"],
button,
select {
    padding: 5px 10px;
    border: 1px solid #b7b7b7;
    border-radius: 3px;
    color: #000;
    box-shadow: 2px 2px 5px 0 rgba(0,0,0,0.2);
}

input[type="button"],
input[type="submit"],
button,
select {
    transition-duration: 0.2s;
}

input[type=button]:hover,
input[type=submit]:hover,
button:hover,
select:hover {
  background-color: #b7b7b7;
  color: #fff;
}

/* formfield error */
table.form .field-err {
    border: 1px solid #f00;
    border-radius: 5px;
    padding: 2px;
    display: inline;
}

/* form field error hints */
table.form .field-err-hint {
    display: inline-block;
    float: left;
}

table.form .field-err-hint .field-err-hinttext {
    visibility: hidden;
    background-color: #ddd;
    color: #f00;
    border-radius: 5px;
    position: absolute;
    z-index: 1;
}

table.form .field-err-hinttext {
    margin-left: 5px;
    padding: 5px;
}

table.form .field-err-hint:hover .field-err-hinttext {
    /* show the hinttext when the mouse is over the hinttip container */
    visibility: visible;
}

/* Spcial fields */
.delete {
    background-image: url("../../../img/delete.svg");
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
    width: 24px;
    height: 24px;
}

.empty {
    width: 24px;
    height: 24px;
}
