.thieffry-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
  overflow: auto;
}

.thieffry-form-header {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.thieffry-form-header>div {
  padding: 0.5em;
}

.thieffry-form-title {
  font-weight: bold;
  flex: 1;
}

.thieffry-form-footer {
  background-color: ghostwhite;
  border-radius: 0 0 0.5em 0.5em;
  border-top: 1px solid black;
  display: flex;
  flex-direction: row;
}

.thieffry-form-actions {
  display: flex;
}

.thieffry-form-header .thieffry-form-actions {
  gap: 0.5em;
  justify-content: flex-end;
}

.thieffry-form-footer .thieffry-form-actions {
  justify-content: space-evenly;
}

.thieffry-form-footer * {
  text-align: center;
  font-weight: bold;
  color: #4a90e2;
}

.thieffry-form-footer *:hover {
  cursor: pointer;
}

.thieffry-form-body {
  flex: 1;
  padding: 0.5em;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.thieffry-form-group {
  flex: 1 1 calc(100% - 2em);
  background-color: #f5f5f5;
  box-shadow: 0 2px 0.1em rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
  padding: 0.5em;
  border-radius: 0.5em;
  border: 1px solid #ccc;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
  cursor: pointer;
}

.thieffry-form-group label {
  font-size: 1em;
  font-weight: bold;
}

.thieffry-form-field {
  display: flex;
  flex-direction: column;
  background-color: white;
  padding: 0.2em;
  cursor: pointer;
}

.thieffry-form-field.box {
  box-sizing: border-box;
  border-radius: 0.5em;
  border: 1px solid #ccc;
  gap: 0.5em;
}

.thieffry-form-field label {
  font-size: 50%;
  font-weight: bold;
}

.thieffry-form-field-actions {
  cursor: pointer;
}

.thieffry-form-field * {
  border: none;
  outline: none;
}

.thieffry-form-field-trailer {
  flex-grow: 1;
}

.thieffry-form-body.notrailer .thieffry-form-field-trailer {
  flex-grow: unset;
}

.thieffry-form input,
.thieffry-form button {
  margin-top: 0.1em;
  margin-bottom: 0.1em;
}

.thieffry-form button,
.thieffry-form input[type="submit"] {
  background-color: #4a90e2;
  color: white;
  border: none;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-bottom: 0px;
}

.thieffry-form button:hover {
  background-color: #357ac9;
}

.thieffry-form input[type="submit"] {
  cursor: pointer;
}

.thieffry-input-file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.thieffry-input-file-name {
  font-style: italic;
  color: #555;
  flex: 1;
}

.thieffry-form-error {
  background-color: lightpink;
  text-align: center;
  width: 100%;
}