.alert-flash {
  padding: 6px;
  margin-bottom: 6px;
}
.alert-flash .btn-close {
  padding: 10px;
}
li a[target="_blank"].no-icon::after {
  display: none;
}
.dropdown-toggle::after {
  float: right;
  margin-top: 10px;
}
button.btn-sm,
a.btn {
  border-style: solid;
  border-width: 2px;
}


.crudgrid div.input-group.input-group-sm.gridfilter {
  width: 200px;
}
.crudgrid table.gridtable th .badge {
  color: black;
}
.bs5 .crudgrid .panel-footer .btn {
  font-size: 0.7em;
  padding: 5px;
  height: 28px;
}
.bs5 .crudgrid .gridfilter .btn {
  font-size: 0.7em;
  padding: 5px;
  height: 28px;
  margin-right: -3px;
}
.bs5 .crudgrid .gridfilter .btn:last-child {
  margin-right: 0px;
}
.bs5 .crudgrid div.input-group.input-group-sm.gridfilter {
  width: 150px;
}
.bs5 .crudgrid .gridfilter select,
.bs5 .crudgrid .gridfilter input {
  padding: 2px;
}
.bs5 .crudgrid .gridfilter select {
  background-position: right 0.35rem center;
  padding-right: 25px;
}
.bs5 .crudgrid .gridfilter .input-group-btn {
  margin-left: 0px;
}
.bs5 .crudgrid .table td .btn-group.btn-group-sm .btn {
  padding: 0px 3px;
  font-size: 14px;
  line-height: 1.5;
  border-radius: 3px;
  height: 26px;
  border-radius: 5px;
  margin: 1px;
}
.bs5 .crudgrid .table td .btn-group.btn-group-sm .btn span.glyphicon {
  padding-left: 2px;
  padding-right: 3px;
}

.bs5 .form-group.has-error div.checkbox,
.bs5 div.radio.has-error div.options {
  border: 1px solid #dc3545;
  border-radius: 5px;
  padding-right: calc(1.5em + .75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) top .25rem;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
  padding-left: 10px;
}

.bs5 div.form-group.has-error textarea{
  border-color: #dc3545;
  padding-right: calc(1.5em + .75rem);
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) top 10px;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.bs5 div.form-group.has-error span.select2-selection{
  border: 1px solid #dc3545;
  padding-right: calc(1.5em + .75rem);
  background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) top 7px;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.bs5 div.form-group.has-error span.select2-selection textarea{
  background-image: none;
}

.bs5 .form-group div.checkbox label input,
.bs5 div.radio div.options label input {
  margin-right: 10px;
}

.bs5 label.control-label:empty,
.bs5 label.radio-label:empty {
  display: none;
}

.bs5 div.form-group:not(:first-child) {
  margin-top:  10px;
}

.form-control:read-only[type="file"] {
  background-color: initial;
}

.form-control:disabled[type="file"] {
  background-color: #e9ecef;
}

legend {
  font-size: 1em;
}

.btn.btn-sm.add_element_to_collection,
.btn.btn-sm.remove_element_to_collection {
  padding: 0px;
}

.nolink {
  cursor: initial !important;
}

div.is-invalid.multicheckbox-container {
  border: 1px solid #dc3545;
  border-radius: 5px;
  padding-right: calc(1.5em + .75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) top .25rem;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
  padding-left: 10px;
}

div.is-invalid.radio-container {
  border: 1px solid #dc3545;
  border-radius: 5px;
  padding-right: calc(1.5em + .75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) top .25rem;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
  padding-left: 10px;
}

div.form-element.is-invalid span.select2 span.select2-selection {
  border-color: #dc3545;
  padding-right: calc(1.5em + .75rem);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(1.175em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
