/* Specialised page styles; shared foundations are in design-system.css. */
.operation-tools {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text);
  font-size: 14px;
}
.form-error {
  color: #f4aa96;
  white-space: pre-wrap;
}
.form-error:empty {
  display: none;
}
.record {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  overflow-wrap: anywhere;
}
.record p,
.record pre {
  flex-basis: 100%;
  white-space: pre-wrap;
  margin: 0;
}
.record pre {
  font: 12px/1.7 var(--font);
  color: var(--muted);
  max-width: 100%;
  overflow-wrap: anywhere;
}
.record-facts {
  display: grid;
  gap: 12px;
}
.record-facts > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.record-facts dd {
  margin: 0;
}
.status-label {
  margin: 5px 8px 5px 0;
}
.status-label[data-status="paid"],
.status-label[data-status="active"],
.status-label[data-status="completed"] {
  color: #b8dac5;
}
.status-label[data-status="suspended"],
.status-label[data-status="rejected"] {
  color: #f4aa96;
}
.empty-record,
.loading-state {
  padding: 32px 0;
  color: var(--muted);
}
.order-record:hover {
  background: var(--surface);
}
.order-record > div:last-child {
  display: grid;
  text-align: right;
}
.conversation-log {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
  max-height: 550px;
  overflow-y: auto;
  padding: 8px;
}
.message-bubble {
  align-self: flex-start;
  max-width: 85%;
  padding: 16px 20px;
  background: #17241e;
  border: 1px solid var(--line);
}
.message-bubble.mine {
  align-self: flex-end;
  background: #1a3028;
}
.message-bubble p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
}
.message-bubble small {
  color: var(--muted);
}
.unread {
  border-left: 3px solid var(--copper);
  padding-left: 14px;
}
.invite-link {
  width: 100%;
  min-height: 130px;
  margin-top: 20px;
}
.rating-stars {
  display: inline-block;
  position: relative;
  color: var(--copper);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
}
.rating-filled {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  color: var(--copper);
}
dialog {
  max-height: 90dvh;
  overflow: auto;
}
@media (max-width: 700px) {
  .record-facts > div {
    flex-wrap: wrap;
  }
  .conversation-log {
    max-height: 420px;
  }
  .message-bubble {
    max-width: 94%;
  }
  .record {
    gap: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.preserve-lines {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.page-pagination {
  justify-content: center;
  padding-bottom: 2rem;
}
.record pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
}
[data-record-search] {
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}
[data-record-search] input {
  min-width: 0;
  flex: 1;
}
[data-record-search] button {
  width: auto;
  min-width: 64px;
  padding-inline: 12px;
  white-space: nowrap;
}
.dish-form .ingredient-columns {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}
.ingredient-columns .allergen-field {
  min-width: 0;
}
.record {
  overflow-wrap: anywhere;
}
.allergen-field {
  border: 1px solid var(--line);
  padding: 16px;
  margin: 12px 0;
}
.allergen-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.allergen-field legend {
  font-size: 1rem;
  padding: 0 8px;
}
