/* Panel: własne reguły (reszta to statyczny Bootstrap 3.4.1 + Font Awesome 4.7
   w vendor/assets). Odpowiednik dawnego application.css.scss. */

/* Rails owija błędne pola w <div class="field_with_errors"> -- odpowiednik
   Bootstrapowego .has-error (dawniej @extend .has-error). */
.field_with_errors .control-label,
.field_with_errors .radio,
.field_with_errors .checkbox {
  color: #a94442;
}
.field_with_errors .form-control {
  border-color: #a94442;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}
.field_with_errors .form-control:focus {
  border-color: #843534;
  -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 6px #ce8483;
}

.modal .modal-body {
  max-height: 420px;
  overflow-y: auto;
}

/* button_to (usuwanie) renderuje <form> -- ma wyglądać jak dawny link-przycisk */
form.button_to {
  display: inline-block;
  margin: 0;
}
.btn-toolbar form.button_to {
  margin-left: 5px;
}
