/* Foundation: palette, local typography, forms and shared components. */
@font-face {
  font-family: "DM Sans";
  src: url(../fonts/dm-sans.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url(../fonts/manrope.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #302c2a;
  --muted: #6b6860;
  --paper: #f8f5ed;
  --white: #fffefa;
  --accent: #3c513b;
  --deep: #2d3d2c;
  --plum: #482e3b;
  --gold: #d4ae54;
  --soft: #eaf0e4;
  --line: #e2dfd4;
  --danger: #a23b3b;
  --radius: 12px;
  --heading: Manrope, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    18px/1.6 "DM Sans",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
a,
button,
input,
textarea,
select,
summary {
  outline-offset: 4px;
}
:focus-visible {
  outline: 2px solid var(--accent);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
svg {
  display: block;
}
figure,
form {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--heading);
  line-height: 1.2;
  color: var(--ink);
}
h1 {
  font-size: clamp(32px, 3.2vw, 44px);
  letter-spacing: -0.045em;
  margin: 8px 0 28px;
}
h2 {
  font-size: 25px;
  letter-spacing: -0.035em;
  margin: 0 0 18px;
}
h3 {
  font-size: 20px;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
p {
  margin: 0 0 18px;
}
small {
  font-size: 15px;
  line-height: 1.5;
}
em {
  font-style: normal;
  color: var(--accent);
}
code {
  font-size: 0.9em;
  overflow-wrap: anywhere;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.icon {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.button:hover {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
  text-decoration: none;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
  border-color: #c9c8ba;
}
.button.secondary:hover {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--accent);
}
.button.small {
  padding: 8px 14px;
  min-height: 42px;
  font-size: 16px;
}
.button.full {
  width: 100%;
}
.text-button {
  background: transparent;
  border: 0;
  padding: 8px 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.text-button:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.danger,
.error-text {
  color: var(--danger) !important;
}
.button.danger {
  border-color: #d8b5ac;
}
.panel {
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel.narrow {
  max-width: 740px;
}
.empty {
  padding: 64px 24px;
  text-align: center;
}
.empty p {
  color: var(--muted);
}
.notice {
  padding: 16px 20px;
  margin: 0 0 24px;
  border: 1px solid #cbd9c6;
  border-left: 4px solid var(--accent);
  border-radius: 5px;
  color: #355335;
  background: #f0f5ec;
}
.notice.error {
  background: #fbefeb;
  color: #873535;
  border-color: #dfc1b8;
  border-left-color: var(--danger);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.stack > button {
  align-self: flex-start;
}
.stack .full {
  align-self: stretch;
}
.inline-form,
.row-actions {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
}
.row-actions {
  display: flex;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  font-size: 17px;
  font-weight: 600;
}
label .muted {
  font-weight: 400;
}
input,
textarea,
select {
  width: 100%;
  min-width: 0;
  border: 1px solid #c9ccbf;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 12px 14px;
  font-size: 17px;
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: #797b72;
  opacity: 1;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 2px solid #3c513b25;
}
textarea {
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.filter-bar > input,
.search-field {
  flex: 1;
  min-width: 100px;
}
.filter-bar select {
  min-width: 180px;
}
.filter-bar button {
  flex-shrink: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 14px 0 28px;
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
}
.section-heading p:not(.eyebrow) {
  margin: 12px 0 0;
}
.section-heading.compact {
  margin: 0 0 22px;
}
.section-heading.compact h2 {
  font-size: 23px;
}
.section-heading.compact a {
  font-size: 16px;
  white-space: nowrap;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 24px;
}
.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}
.two-column.balanced {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}
.spaced {
  margin-top: 28px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 17px;
}
.summary-line strong {
  flex-shrink: 0;
}
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
  font-size: 21px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.order-summary {
  border-top: 3px solid var(--accent);
}
.order-summary > p:last-child {
  font-size: 16px;
  margin: 16px 0 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 15px;
  font-weight: 600;
  background: #edebe5;
  color: #666157;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: currentColor;
  border-radius: 50%;
}
.badge.pending {
  background: #f8edce;
  color: #775710;
}
.badge.ready {
  background: #ebe8f0;
  color: #65506e;
}
.badge.completed,
.badge.active,
.badge.configured {
  background: #e7efdf;
  color: #37552f;
}
.badge.cancelled,
.badge.disabled {
  background: #f5e5de;
  color: #963b32;
}
.badge.owner,
.badge.employee {
  background: var(--soft);
  color: var(--accent);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .two-column,
  .two-column.balanced {
    gap: 20px;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .panel {
    padding: 24px;
  }
}
@media (max-width: 760px) {
  .two-column,
  .two-column.balanced,
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-heading {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 16px;
  }
  .section-heading.compact {
    flex-wrap: nowrap;
  }
  .filter-bar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .filter-bar > input,
  .search-field {
    flex-basis: 100%;
  }
  .filter-bar > select,
  .filter-bar label:not(.search-field) {
    flex: 1;
  }
  .filter-bar select {
    min-width: 130px;
  }
  .panel {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
