/* Eden West Chef Portal — minimal styles. Dark navy + amber accents to
   match the edenwestcatering.com brand. Mobile-first. */
:root {
  --bg: #0f1c2e;
  --surface: #1a2a45;
  --surface-2: #243553;
  --text: #f4e6c8;
  --muted: #b8a892;
  --accent: #d4a04a;
  --accent-2: #b6862f;
  --ok: #5fb37c;
  --warn: #e0a04a;
  --err: #e57a6a;
  --border: #3a4d6e;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
}
a { color: var(--accent); }

.top {
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top .brand { font-size: 20px; font-weight: bold; color: var(--accent); }
.top .meta { font-size: 13px; color: var(--muted); }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

.tabs {
  display: flex; gap: 4px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.tabs button {
  background: transparent; color: var(--muted);
  border: 0; padding: 10px 18px; cursor: pointer;
  font: inherit; font-size: 14px; border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: var(--accent); border-bottom-color: var(--accent);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px; margin-bottom: 16px;
}
.panel h2 { margin-top: 0; color: var(--accent); font-size: 18px; }
.panel h3 { color: var(--text); font-size: 15px; margin-bottom: 6px; }
.panel p, .panel li { color: var(--text); }

.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 180px; }

label { display: block; margin: 8px 0 4px; font-size: 13px; color: var(--muted); }
input, textarea, select {
  width: 100%; padding: 8px 10px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-radius: 4px;
  font: inherit; font-size: 14px;
}
textarea { min-height: 60px; resize: vertical; }

button.primary {
  background: var(--accent); color: var(--bg);
  border: 0; padding: 10px 18px; border-radius: 4px;
  font: inherit; font-weight: bold; cursor: pointer; font-size: 14px;
}
button.primary:disabled { opacity: 0.5; cursor: not-allowed; }
button.ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border); padding: 8px 14px; border-radius: 4px;
  font: inherit; cursor: pointer; font-size: 13px;
}
button.ghost:hover { border-color: var(--accent); color: var(--accent); }

.card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 14px; margin-bottom: 10px;
}
.card .head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.card .head .id { font-family: 'Courier New', monospace; color: var(--accent); font-size: 13px; }
.card .head .title { font-weight: bold; }
.card .meta { font-size: 13px; color: var(--muted); }
.card .body p { margin: 4px 0; font-size: 14px; }

.status {
  display: inline-block; padding: 2px 10px; border-radius: 12px;
  font-size: 12px; font-weight: bold; text-transform: uppercase;
}
.status.pending { background: var(--warn); color: var(--bg); }
.status.in_progress { background: var(--accent); color: var(--bg); }
.status.completed { background: var(--ok); color: var(--bg); }
.status.cancelled { background: var(--err); color: var(--bg); }
.status.DRAFT { background: var(--muted); color: var(--bg); }
.status.UNPAID { background: var(--warn); color: var(--bg); }
.status.PAID { background: var(--ok); color: var(--bg); }
.status.PARTIALLY_PAID { background: var(--accent); color: var(--bg); }
.status.VOIDED { background: var(--err); color: var(--bg); }

.muted { color: var(--muted); }
.tiny { font-size: 12px; }

.error { color: var(--err); font-size: 13px; margin: 4px 0; }
.ok { color: var(--ok); font-size: 13px; margin: 4px 0; }

ul.items { list-style: none; padding: 0; margin: 0; }
ul.items li {
  display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px;
  padding: 6px 0; border-bottom: 1px solid var(--border); align-items: center;
}
ul.items li:last-child { border-bottom: 0; }

.modal-bg {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none; align-items: center; justify-content: center; z-index: 50;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--accent);
  border-radius: 6px; padding: 24px; width: 100%; max-width: 640px; max-height: 90vh; overflow: auto;
}

.line-row {
  display: grid; grid-template-columns: 2fr 0.6fr 1fr auto; gap: 6px; margin-bottom: 4px;
}

@media (max-width: 720px) {
  .container { padding: 12px; }
  .top { padding: 10px 14px; }
  .row { flex-direction: column; gap: 4px; }
}