/**************** FORM CARD ****************/

.form-card {
  background: rgba(230, 224, 210, 0.55);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 10px;

  padding: 20px;
  margin-bottom: 20px;

  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}


/**************** TABELLE ENTSCHÄRFEN ****************/

.form-card .tborder {
  border: none;
  box-shadow: none;
  background: transparent;
}

.form-card .thead {
  background: transparent;
  border: none;

  font-family: 'Playfair Display';
  font-size: 20px;
  color: #3a3f42;

  padding: 10px 0 15px 0;
}

.form-card .trow1,
.form-card .trow2 {
  background: transparent;
  border: none;
  padding: 8px 10px;
}


/**************** LABEL SPALTE ****************/

.form-card td.trow2:first-child {
  width: 130px !important;
  vertical-align: top;
  font-weight: 500;
  color: #3a3f42;
  font-size: 13px;
}


/**************** INPUTS ****************/

.form-card input.textbox,
.form-card textarea,
.form-card select {
  width: 100%;
  max-width: 100%;

  background: #e9e3d8;
  border: 1px solid #cfc6b8;
  border-radius: 8px;

  padding: 8px 10px;
  box-sizing: border-box;

  font-family: 'Inter';
  font-size: 13px;
}

.form-card textarea {
  min-height: 220px;
  resize: vertical;
}


/**************** EDITOR LAYOUT (FIXED) ****************/

/* Nur die Zelle mit dem Editor wird Grid */
/**************** EDITOR LAYOUT (FIXED) ****************/

/* Nur die Zelle mit dem Editor wird Grid */
.form-card td.trow2:has(#message) {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* Smilies links */
.smilie-box {
  grid-column: 1;
}

#smilieinsert {
  margin-bottom: 10px;
}

/* Editor rechts */
.form-card td.trow2:has(#message) > #smilieinsert,
.form-card td.trow2:has(#message) > div:has(#clickable_smilies) {
  flex: 0 0 170px;
}
.form-card td.trow2:has(#message) textarea {
  flex: 1;
  width: 100%;
}

/**************** EDITOR BUTTONS ****************/

.form-card .editor_control_bar {
  background: transparent;
  border: none;
  margin-bottom: 5px;
}


/**************** SMILIES ****************/

#clickable_smilies img {
  transition: 0.15s ease;
}

#clickable_smilies img:hover {
  transform: scale(1.1);
}


/**************** ATTACHMENTS ****************/

.form-attachments {
  margin-top: 15px;
}

#attachments_container,
.attachbox {
  background: #e9e3d8;
  border: 1px dashed #cfc6b8;
  border-radius: 8px;

  padding: 20px;
}


/**************** BUTTONS ****************/

.form-actions {
  margin-top: 20px;

  display: flex;
  justify-content: center;
  gap: 10px;
}

.form-actions .button {
  background: #e9e3d8;
  border: 1px solid #cfc6b8;
  border-radius: 8px;

  padding: 6px 14px;
  font-size: 12px;
  color: #3a3f42;

  transition: 0.2s ease;
}

.form-actions .button:hover {
  background: #dcd5c8;
}


/**************** CHECKBOX VALIDATION ****************/

.checkbox-validation-row td {
  padding: 6px 8px;
}

.checkbox-validation-row .trow2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.checkbox-validation-row label {
  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 4px 6px;

  border-radius: 6px;
  background: rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);

  font-size: 11px;
}

.checkbox-validation-row .trow1 {
  width: auto !important;
}