/*
 * Application UI styles. Bootstrap 5.3 is vendored in bootstrap.min.css and
 * linked ahead of this file, so anything here overrides it.
 *
 * The print stylesheets live in stylesheets/pdf/ and are deliberately NOT part
 * of this bundle — they are inlined into the PDF layout by wicked_pdf.
 */

.template-card {
  transition: box-shadow 0.15s ease-in-out;
}

.template-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.form-section {
  margin-bottom: 1.5rem;
}

.form-section > .card-header {
  font-weight: 600;
}

.required-marker {
  color: var(--bs-danger);
}

/* Repeating rows ---------------------------------------------------------- */
.row-set > .nested-row {
  border-top: 1px solid var(--bs-border-color);
  padding-top: 0.75rem;
  margin-top: 0.75rem;
}

.row-set > .nested-row:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}

.nested-row-index {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--bs-secondary-color);
}

/* Keeps the field label/value rhythm tight on the long template forms. */
.form-label {
  margin-bottom: 0.2rem;
  font-size: 0.875rem;
  font-weight: 500;
}
