/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 */

body {
  font-family: 'SourceSansPro';
}

.answer_form_component.preview {
	background-image: url(/assets/preview-bba756e22010721eeb1c62f8e184c59eb6fc391e7d4cdac3eff4d6d4897316e9.svg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center center;
}

.card[data-status="saved"], .card[data-status="good"] {
	border-left: 5px solid rgba(var(--bs-success-rgb));
}

.card[data-status="pending"], .card[data-status="warn"], .card[data-status="medium"] {
	border-left: 5px solid rgba(var(--bs-warning-rgb));
}

.card[data-status="error"], .card[data-status="bad"] {
	border-left: 5px solid rgba(var(--bs-danger-rgb));
}

.trix-button--icon-quote, .trix-button--icon-code, .trix-button--icon-strike {
	display: none;
}

[data-status=pending] {
  border-left: 5px solid rgba(var(--bs-warning-rgb));
}

[data-status=error] {
  border-left: 5px solid rgba(var(--bs-danger-rgb));
}

[data-status=saved] {
  border-left: 5px solid rgba(var(--bs-success-rgb));
}

fieldset.stage_permissions_actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
}

fieldset.stage_permissions_actions legend {
  grid-column: 1 / -1; /* Makes the legend span both columns */
  margin-bottom: 0;    /* Optional: Let grid gap handle spacing, or set specific margin */
}

fieldset.stage_permissions_actions .form-check {
  margin-bottom: 0; /* Optional: Reset default margins if any, let grid gap handle spacing */
}

.indicator {
  background-color: white;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 0.5rem;
  position: absolute;
  top: 0.15rem;
  right: 0.15rem;
  z-index: 10;
  border: 1px solid white;
}

.indicator.bad {
  background-color: red;
}

.indicator.medium {
  background-color: orange;
}

.indicator.good {
  background-color: green;
}

.pagination {
  justify-content: center;
  flex-wrap: wrap;
  row-gap: 0.5em;
}

.flagged::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0.7rem;
  height: 0.7rem;
  background: red;
  clip-path: polygon(0 0, 100% 0, 0 100%);
  z-index: 10;
}
