/* Formularis oficials (formularis.js): the fields of the official form with what Turonet proposes */
.form-fill-intro {
  font-size: 13.5px;
}
.form-fill-error {
  color: #9a4b0b;
}
html.dark .form-fill-error {
  color: #f0a35e;
}
.form-fill-summary {
  font-weight: 600;
}
.form-fill-figures {
  padding: 8px 11px;
  border-left: 3px solid #e2ad35;
  border-radius: 0 8px 8px 0;
  background: #fff8e3;
  font-size: 13px;
}
html.dark .form-fill-figures {
  background: #2f2a1a;
}
.form-fill-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.form-fill-row .form-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}
.form-fill-row small {
  font-weight: 400;
  color: var(--muted);
  white-space: nowrap;
}
.form-fill-row input:not([type="checkbox"]),
.form-fill-row select,
.form-fill-row textarea {
  margin-bottom: 0;
}
.form-fill-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 11rem);
  gap: 6px;
}
.form-fill-row.is-check label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.form-fill-row.is-check small {
  margin-left: auto;
}
.form-fill-source {
  font-size: 13px !important;
  color: var(--muted);
}
.form-fill-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-fill-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 10rem) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
}
.form-fill-copy-row b {
  font-weight: 600;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .form-fill-input {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-fill-copy-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .form-fill-copy-row span {
    grid-column: 1/-1;
    color: var(--muted);
    font-size: 12.5px;
  }
}
/* the «+ Nou» of a document of a call on the phone: its menu as wide as the card, under the button, wherever the button
   is (the official form's link goes before it: test_grant_documents) */
@media (max-width: 760px) {
  .grant-docs > .document-row {
    position: relative;
  }
  .grant-docs .grant-doc-menu {
    position: static;
  }
  .grant-docs .grant-doc-menu .new-doc-list {
    top: auto;
    left: 12px;
    right: 12px;
    width: auto;
    margin-top: 6px;
  }
}
/* a form of XFA, field by field (formularis.js: copyList) */
.form-fill-group {
  margin: 14px 0 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: none;
}
.form-fill-copy-row.is-empty b {
  font-weight: 400;
  color: var(--muted);
}
.form-fill-more {
  margin-top: 14px;
}
.form-fill-more > summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 8px;
}
/* Distribució → Qualificacions: «Omplir el formulari amb Turonet» */
.qualification-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0;
}
.qualification-form small {
  color: var(--muted);
  font-size: 12.5px;
}
