:root {
  --pr-navy: #29492f;
  --pr-blue: #3b6842;
  --pr-blue-dark: #29492f;
  --pr-sky: #f6f1df;
  --pr-ink: #243328;
  --pr-muted: #5b685c;
  --pr-line: #d7d4c6;
  --pr-focus: #e1be4b;
  --pr-header: #7fa57d;
  --pr-accent: #e1be4b;
  --pr-secondary: #efe6c7;
  --bs-primary: #365e3b;
  --bs-primary-rgb: 54, 94, 59;
  --bs-primary-bg-subtle: #efe6c7;
  --bs-primary-border-subtle: #d8c982;
  --bs-link-color: #365e3b;
  --bs-link-hover-color: #243f29;
  --bs-body-color: #243328;
  --bs-body-bg: #ffffff;
  --bs-body-font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-border-color: #d7d4c6;
}

body { line-height: 1.55; background: #fff; }
.container { --bs-gutter-x: 3rem; }
a { text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: .22rem solid var(--pr-focus) !important;
  outline-offset: .15rem;
  box-shadow: none !important;
}
.skip-link { z-index: 1100; }
.site-header { border-bottom: .35rem solid var(--pr-accent); background: var(--pr-header); }
.navbar-brand,
.site-header .nav-link { color: #17281b; }
.navbar-brand { color: #17281b; font-weight: 700; letter-spacing: -.015em; }
.navbar-brand:hover,
.navbar-brand:focus { color: #17281b; }
.site-header .nav-link { border-radius: .375rem; padding-inline: .7rem !important; }
.site-header .nav-link:hover,
.site-header .nav-link:focus { color: #17281b; background: rgba(239, 230, 199, .55); }
.site-header .btn-outline-light {
  --bs-btn-color: #17281b;
  --bs-btn-border-color: rgba(23, 40, 27, .55);
  --bs-btn-hover-color: #17281b;
  --bs-btn-hover-bg: var(--pr-secondary);
  --bs-btn-hover-border-color: #365e3b;
  --bs-btn-active-color: #17281b;
  --bs-btn-active-bg: var(--pr-secondary);
  --bs-btn-active-border-color: #365e3b;
}
.brand-logo { width: 4.5rem; height: 4.45rem; object-fit: contain; filter: drop-shadow(0 .2rem .35rem rgba(20, 52, 28, .18)); }
.brand-copy { display: flex; min-width: 0; flex-direction: column; }
.brand-organisation { max-width: 32rem; font-size: 1.05rem; line-height: 1.25; white-space: normal; }
.brand-service { margin-top: .2rem; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.site-footer { border-top: 1px solid #d8d0b5; color: #536455; background: var(--pr-secondary); }
.site-footer a { color: inherit; }
h1, h2, h3, legend { line-height: 1.2; text-wrap: balance; }
.page-title { max-width: 22ch; letter-spacing: -.025em; }
.eyebrow { color: #597a59; text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; font-weight: 800; }
.lead { color: var(--pr-muted); }
.content-measure { max-width: 48rem; }
.card {
  --bs-card-border-color: var(--pr-line);
  --bs-card-border-radius: .75rem;
  --bs-card-inner-border-radius: calc(.75rem - 1px);
}
.soft-shadow { box-shadow: 0 .35rem 1.25rem rgba(47, 67, 49, .08); }
.form-section { overflow: hidden; }
.form-section > legend {
  float: none;
  width: 100%;
  margin: 0;
  padding: 1.2rem 2rem;
  border-bottom: 1px solid var(--pr-line);
  background: var(--pr-secondary);
  color: var(--pr-navy);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.01em;
}
.form-section-body { padding: 2rem; }
.form-section .row { --bs-gutter-x: 2rem; --bs-gutter-y: 1.85rem; }
.form-section .form-label {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  color: var(--pr-ink);
  font-size: .94rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: .45rem;
}
.form-hint { color: var(--pr-muted); font-size: .84rem; line-height: 1.45; margin: -.1rem 0 .55rem; }
.form-label .required-chip,
.form-label .optional-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: .12rem .42rem;
  border-radius: 100rem;
  color: var(--pr-muted);
  background: var(--pr-secondary);
  font-size: .61rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: .075em;
  text-transform: uppercase;
  vertical-align: .1rem;
}
.form-label .required-chip { color: #83352f; background: #fae9e7; }
.form-control,
.form-select {
  min-height: 2.85rem;
  border-color: #718590;
  padding-block: .62rem;
  font-size: .95rem;
}
.form-control[aria-invalid="true"],
.form-select[aria-invalid="true"] { border-width: 2px; border-color: var(--bs-danger); }
textarea.form-control { resize: vertical; min-height: 7rem; }
.invalid-feedback { font-weight: 700; }
.form-sidebar { position: sticky; top: 2rem; }
.sidebar-list { padding-left: 1.2rem; }
.sidebar-list li + li { margin-top: .55rem; }
.btn { font-weight: 700; }
.btn-primary {
  --bs-btn-color: #243328;
  --bs-btn-bg: var(--pr-accent);
  --bs-btn-border-color: var(--pr-accent);
  --bs-btn-hover-color: #17281b;
  --bs-btn-hover-bg: #cfaa36;
  --bs-btn-hover-border-color: #cfaa36;
  --bs-btn-active-color: #17281b;
  --bs-btn-active-bg: #c39e2e;
  --bs-btn-active-border-color: #c39e2e;
}
.alert { border-width: 0 0 0 .3rem; }
.confirmation-icon {
  display: inline-grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  color: #fff;
  background: var(--pr-blue);
  font-size: 1.8rem;
  font-weight: 800;
}
.reference { font: 800 clamp(1.65rem, 5vw, 2.4rem)/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .035em; }
.stat-card { border: 0; border-left: .3rem solid var(--pr-accent); transition: transform .15s ease, box-shadow .15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1.4rem rgba(47, 67, 49, .13) !important; }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.filter-card { background: #fbfaf5; }
.table-responsive { border: 1px solid var(--pr-line); border-radius: .5rem; background: #fff; }
.table { min-width: 68rem; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .8rem .75rem; }
.table thead th { color: #314a35; background: var(--pr-secondary); white-space: nowrap; }
.table tbody tr:hover > * { background: #fbfaf5; }
.number { text-align: right; white-space: nowrap; }
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 1.75rem;
  border: 1px solid currentColor;
  border-radius: 100rem;
  padding: .22rem .7rem;
  font-size: .7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: nowrap;
}
.status-badge::before { content: ""; width: .42rem; height: .42rem; border-radius: 50%; background: currentColor; }
.status-pending { color: #725200; background: #fff7dd; }
.status-approved { color: #12613e; background: #e8f8ef; }
.status-rejected { color: #941f17; background: #fff0ef; }
.empty-state { border: 1px dashed #82939e; border-radius: .5rem; padding: 3rem 1.5rem; text-align: center; background: #fff; }
.cost-display { font-size: 2rem; font-weight: 800; line-height: 1.15; }
.cost-display small { display: block; color: var(--pr-muted); font-size: .8rem; font-weight: 500; }
.detail-list { display: grid; grid-template-columns: minmax(8rem, 11rem) 1fr; gap: .65rem 1rem; margin: 0; }
.detail-list dt { color: var(--pr-muted); font-weight: 650; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.preline { white-space: pre-line; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: .2rem solid var(--pr-line); }
.timeline li { position: relative; padding: 0 0 1.5rem .5rem; }
.timeline li::before { content: ""; position: absolute; top: .35rem; left: -1.98rem; width: .75rem; height: .75rem; border: .18rem solid #fff; border-radius: 50%; background: var(--pr-blue); box-shadow: 0 0 0 1px var(--pr-blue); }
.timeline li:last-child { padding-bottom: 0; }
.timeline time { display: block; color: var(--pr-muted); font-size: .88rem; }
.decision-area { background: var(--pr-sky); border-color: #d8c982; }
.decision-card { height: 100%; }
.form-check-input { border-color: #718590; }
code { overflow-wrap: anywhere; }

@media (max-width: 767.98px) {
  .container { --bs-gutter-x: 2rem; }
  .navbar > .container { align-items: flex-start; }
  .navbar-brand { width: 100%; }
  .brand-logo { width: 3.75rem; height: 3.7rem; }
  .brand-organisation { max-width: 23rem; font-size: .92rem; }
  .navbar-nav { width: 100%; }
  .site-header .nav-link { padding-left: 0 !important; padding-right: .8rem !important; }
  .detail-list { grid-template-columns: 1fr; gap: .1rem; }
  .detail-list dd { margin-bottom: .75rem; }
  .cost-display { text-align: left !important; }
  .form-section > legend { padding: 1rem 1.25rem; }
  .form-section-body { padding: 1.25rem; }
  .form-section .row { --bs-gutter-x: 1.5rem; --bs-gutter-y: 1.5rem; }
}

@media (max-width: 420px) {
  .brand-logo { width: 3.25rem; height: 3.2rem; }
  .brand-organisation { font-size: .8rem; }
  .brand-service { font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
