/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  margin: 2rem auto;
  max-width: 40rem;
  padding: 0 1rem;
}

nav {
  align-items: center;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-width: 24rem;
}

form.button_to {
  display: inline;
  margin: 0;
  max-width: none;
}

input, button {
  font: inherit;
  padding: 0.4rem 0.6rem;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th, td {
  border-bottom: 1px solid #ddd;
  padding: 0.4rem 0.6rem;
  text-align: left;
}

.flash {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
}

.flash.alert {
  background: #fde8e8;
}

.flash.notice {
  background: #e7f6e7;
}
