:root {
  --bg: #FFFFFF;
  --surface: #F4F7FC;
  --ink: #0F1A33;
  --muted: #4F5B73;
  --line: #D3DBEA;
  --indigo: #012169;
  --band: #012169;
  --band-ink: #FFFFFF;
  --band-muted: #C9D3EA;
  --red: #C8102E;
  --red-ink: #FFFFFF;
  --gold: #A8842F;
  --ok: #1F6B45;
  --warn: #8A5A00;
  --field: #FFFFFF;
  --soft: #EDF1F9;
  --display: "Saira Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: var(--indigo);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
header {
  background: var(--band);
  color: var(--band-ink);
  border-bottom: 4px solid var(--red);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--band-ink);
  text-decoration: none;
}

.brand b {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
}

.brand span {
  font-size: 0.78rem;
  color: var(--band-muted);
}

nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

nav a {
  color: var(--band-ink);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

nav a.active {
  background: var(--red);
  color: #fff;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  border-radius: 4px;
  border: 2px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn:hover {
  text-decoration: none;
}

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

.btn-red:hover {
  filter: brightness(1.1);
}

.btn-line {
  border-color: currentColor;
  color: inherit;
  background: transparent;
}

.btn-line:hover {
  background: var(--surface);
}

.btn-ink {
  background: var(--indigo);
  color: var(--surface);
}

.btn-small {
  padding: 0.5rem 0.8rem;
  font-size: 0.88rem;
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
  background: var(--field);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(1, 33, 105, 0.1);
}

textarea {
  min-height: 6rem;
  resize: vertical;
}

.required {
  color: var(--red);
}

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  border-left: 4px solid;
}

.alert-success {
  background: #e8f5e9;
  border-color: var(--ok);
  color: #1f6b45;
}

.alert-error {
  background: #ffebee;
  border-color: var(--red);
  color: #c8102e;
}

.alert-warning {
  background: #fff3e0;
  border-color: var(--warn);
  color: #8a5a00;
}

.alert-info {
  background: var(--soft);
  border-color: var(--indigo);
  color: var(--indigo);
}

/* Tables */
.table-responsive {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
}

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

th {
  background: var(--surface);
  font-weight: 600;
  color: var(--muted);
  font-size: 0.85rem;
  border-bottom: 2px solid var(--ink);
}

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.card-header {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line);
}

/* Status badges */
.status {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 99px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid currentColor;
}

.status-received {
  color: var(--muted);
}

.status-review {
  color: var(--warn);
}

.status-approved {
  color: var(--ok);
}

.status-declined {
  color: var(--red);
}

/* Grid */
.grid {
  display: grid;
  gap: 1.25rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .header-content {
    flex-direction: column;
    gap: 1rem;
  }

  nav {
    justify-content: center;
  }
}

/* Footer */
footer {
  background: var(--band);
  color: var(--band-muted);
  border-top: 6px solid var(--red);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-section h4 {
  color: var(--band-ink);
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin: 0.25rem 0;
}

.footer-section a {
  color: var(--band-ink);
}

.footer-bottom {
  max-width: 1400px;
  margin: 2rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

/* Hero section */
.hero {
  background: var(--band);
  color: var(--band-ink);
  padding: 4.5rem 0;
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 0.5em;
}

.hero p.lede {
  color: var(--band-muted);
  font-size: 1.15rem;
  max-width: 36rem;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

/* Page header */
.page-header {
  background: var(--band);
  color: var(--band-ink);
  padding: 3rem 0 2.5rem;
  border-bottom: 6px solid var(--red);
  margin-bottom: 2rem;
}

.page-header h1 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--band-muted);
  max-width: 40rem;
  font-size: 1.08rem;
}
