/*
 * 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 {
  --bg: #f3f4f6;
  --accent-bg: #e5ebf2;
  --text: #111827;
  --text-light: #4b5563;
  --border: #cbd5e1;
  --accent: #16324f;
  --accent-hover: #0f2236;
  --accent-text: #ffffff;
  --code: #e5ebf2;
  --preformatted: #111827;
  --marked: #e5ebf2;
  --disabled: #e5e7eb;
  --success: #2d5f47;
  --warning: #8b5e1a;
  --error: #8b2c2c;
}

body {
  max-width: 100%;
  grid-template-columns: 1fr min(1200px, 96%) 1fr;
}

header,
footer {
  max-width: 100%;
}

header {
  background: #10273d;
}

body > header {
  padding: 0 0.5rem 0.75rem 0.5rem;
}

.header-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  gap: 1rem;
}

.header-top h2 {
  justify-self: center;
  margin-bottom: 1.5rem;
  margin-top: 1.5rem;
}

.header-top-spacer {
  min-width: 1px;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-bar nav {
  display: flex;
  justify-content: center;
  flex: 0 1 auto;
}

.header-user-summary {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  min-width: 16rem;
  justify-self: end;
  text-align: right;
  font-size: 0.85rem;
  line-height: 1.2;
}

.header-user-summary strong {
  font-size: 0.95rem;
}

.header-user-summary span {
  color: var(--text-light);
}

.header-user-summary .header-user-actions a {
  color: inherit;
}

.header-bar form {
  display: flex;
  align-items: center;
  margin: 0;
  flex: 0 1 16rem;
  gap: 0.5rem;
}

body > main.page-content {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  box-sizing: border-box;
}

body > main.page-content > * {
  max-width: none;
}

table {
  width: 100%;
}
