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


 */

.nested-record {
  border: 1px solid var(--bd);
  border-radius: 8px;
  margin: .75rem 0;
  padding: .75rem 1rem;
}

.nested-record legend {
  color: var(--mut);
  font-size: .8rem;
  padding: 0 .25rem;
}

.inline-check {
  align-items: center;
  display: inline-flex;
  gap: .35rem;
}

:root {
  --bd: #e2e2e2;
  --mut: #666;
  --accent: #2b5797;
}

* {
  box-sizing: border-box;
}

body {
  color: #1a1a1a;
  font: 14px/1.5 -apple-system, system-ui, sans-serif;
  margin: 0;
}

header {
  background: #1f2d3d;
  color: #fff;
  padding: .7rem 1.25rem;
}

header a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

main {
  margin: 1.5rem auto;
  max-width: 1100px;
  padding: 0 1.25rem;
}

h1 {
  font-size: 1.4rem;
  margin: .2rem 0 1rem;
}

h2 {
  color: var(--accent);
  font-size: 1.05rem;
  margin: 1.5rem 0 .5rem;
}

a {
  color: var(--accent);
}

table {
  border-collapse: collapse;
  margin: .5rem 0;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--bd);
  padding: .45rem .6rem;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--mut);
  font-size: .8rem;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.muted {
  color: var(--mut);
}

.pill {
  background: #eef;
  border-radius: 1rem;
  display: inline-block;
  font-size: .8rem;
  padding: .1rem .5rem;
}

.grid {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.card {
  border: 1px solid var(--bd);
  border-radius: 8px;
  padding: .75rem 1rem;
}

.btn {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  padding: .35rem .7rem;
}

.btn.secondary {
  background: #fff;
  color: var(--accent);
}

input[type=text],
input[type=number],
input[type=date],
select,
textarea {
  border: 1px solid var(--bd);
  border-radius: 6px;
  font: inherit;
  padding: .4rem;
  width: 100%;
}

.field {
  margin: .6rem 0;
}

.field label {
  color: var(--mut);
  display: block;
  font-size: .8rem;
  margin-bottom: .15rem;
}

.flash {
  background: #e7f6e7;
  border: 1px solid #b6e0b6;
  border-radius: 6px;
  margin-bottom: 1rem;
  padding: .6rem 1rem;
}

.errors {
  background: #fde8e8;
  border: 1px solid #f5b5b5;
  border-radius: 6px;
  padding: .6rem 1rem;
}

.actions {
  align-items: center;
  display: flex;
  gap: .5rem;
  margin: 1rem 0;
}

.site-nav {
  float: right;
}

.site-nav-separator {
  margin: 0 .4rem;
}

.site-user {
  color: #aebcd0;
  margin: 0 .6rem;
}

.inline-form {
  display: inline;
}

.auth-card {
  max-width: 380px;
}

.filter-field {
  margin: 0;
  min-width: 150px;
}

.filter-field-wide {
  min-width: 240px;
}

.filter-form {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.search-field {
  width: 280px;
}

.json-payload {
  overflow: auto;
  white-space: pre-wrap;
}

.record-label-column {
  width: 240px;
}

.json-value {
  margin: 0;
}

.ui-bundle-missing {
  font: 14px system-ui;
  padding: 24px;
}
