/* MOQing Bird — application stylesheet (served as a static file; CSP-safe:
   no inline styles or scripts are used anywhere in the templates). */

:root {
  --ink: #1c2333;
  --muted: #5b6478;
  --line: #e3e7ef;
  --paper: #ffffff;
  --brand: #0f6b4f;
  --brand-ink: #ffffff;
  --accent: #c8a24b;
  --danger: #b3372f;
  --ok: #2e7d32;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #f6f7fb;
  line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.9rem;
}

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

.nav form { margin: 0; display: inline; }

button.linklike {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand);
  font: inherit;
  cursor: pointer;
}
button.linklike:hover { text-decoration: underline; }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.messages { list-style: none; padding: 0; }
.message {
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 8px;
}

h1 { font-size: 1.6rem; margin: 0 0 8px; }
h2 { font-size: 1.15rem; margin: 32px 0 12px; }

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

.actions { margin: 20px 0; }

.btn {
  display: inline-block;
  background: var(--brand);
  color: var(--brand-ink);
  border: none;
  border-radius: var(--radius);
  padding: 10px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.btn:hover { filter: brightness(0.94); text-decoration: none; }
.btn--ghost {
  background: var(--paper);
  color: var(--brand);
  border: 1px solid var(--line);
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

/* Project list */
.project-list { list-style: none; padding: 0; }
.project-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.project-list li:hover { border-color: var(--brand); }

.project-meta { display: flex; gap: 12px; align-items: center; color: var(--muted); font-size: 0.9rem; }
.project-meta .dot { color: var(--line); }

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #eef1f6;
  color: #44506a;
}
.badge--details_complete { background: #e7f4ec; color: var(--ok); }
.badge--completed { background: #e7f4ec; color: var(--ok); }
.badge--cancelled { background: #fbeaea; color: var(--danger); }
.badge--intake { background: #fff4e0; color: #8a6d1f; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 0.9rem; }
.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field input[type="password"],
.field select {
  width: 100%;
  max-width: 480px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: var(--paper);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 107, 79, 0.15);
}
.field input[type="checkbox"] { width: auto; }

.help { color: var(--muted); font-size: 0.82rem; }
.errorlist { color: var(--danger); list-style: none; padding: 0; margin: 4px 0; font-size: 0.85rem; }

.formset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; background: #fbfcfe; }
.formset__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.formset__row:first-of-type { border-top: none; }

.locked-mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand);
  font-weight: 600;
}

/* Tables */
table.quotes { width: 100%; border-collapse: collapse; background: var(--paper); }
table.quotes th, table.quotes td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
table.quotes th { color: var(--muted); font-weight: 600; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.04em; }

.asset-list { list-style: none; padding: 0; }
.asset-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }

/* Milestone timeline (pure HTML/CSS, no JS) */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  counter-reset: none;
}
.timeline__step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 18px;
  position: relative;
  font-size: 0.82rem;
  color: var(--muted);
}
.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--paper);
  flex: 0 0 auto;
}
.timeline__step--done .timeline__dot {
  background: var(--brand);
  border-color: var(--brand);
}
.timeline__step--active .timeline__dot {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(200, 162, 75, 0.25);
}
.timeline__step--done { color: var(--brand); }
.timeline__step--active { color: var(--ink); font-weight: 700; }
.timeline__step::after {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 2px;
  background: var(--line);
}
.timeline__step:last-child::after { display: none; }
.timeline__step--done::after { background: var(--brand); }

/* Tag lists (materials / colors / hardware) */
.tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
}
.tag--alternative { border-style: dashed; }
.tag__role { color: var(--muted); font-size: 0.75rem; margin-left: 4px; }
.tag__pantone { font-weight: 600; margin-right: 6px; }

/* Notices */
.notice {
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  margin-bottom: 12px;
}
.notice--ok { border-color: var(--ok); background: #eaf4ec; color: var(--ok); }

.summary-timeframe { margin-top: 8px; }

/* Quotes table (scrolls horizontally on small screens) */
.table-scroll { overflow-x: auto; }
table.quotes td.commentary { min-width: 180px; max-width: 320px; white-space: normal; }
tr.row--selected { background: #f2f8f4; }
.alias { font-weight: 600; }
.badge--selected { background: #e7f4ec; color: var(--ok); margin-left: 6px; }
.btn--select { padding: 6px 14px; font-size: 0.85rem; }
