/*
 * 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.
 */

:root {
  --text: #1a1a1a;
  --muted: #5f6368;
  --line: #d9d9d9;
  --problem: #b3261e;
  --notice: #1b6e3c;
}

body {
  color: var(--text);
  font-family: Helvetica, Arial, sans-serif;
  line-height: 1.5;
  margin: 0;
}

main {
  margin: 0 auto;
  max-width: 44rem;
  padding: 1rem;
}

nav {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

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

  th, td {
    border-bottom: 1px solid var(--line);
    padding: 0.25rem 0.5rem 0.25rem 0;
    text-align: left;
  }
}

label {
  display: block;
  font-weight: bold;
}

.errors, .problem {
  color: var(--problem);
}

.notice {
  color: var(--notice);
}

.inline {
  display: inline;

  label& {
    display: inline;
  }
}

.rule-group {
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.rule-form {
  margin: 0.5rem 0;
}
