:root {
  font-family:
    system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: #17212b;
  background: #f1f5f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1060px;
  margin: auto;
  padding: 32px 20px;
}
.card,
dialog {
  background: white;
  border: 1px solid #dce4e8;
  border-radius: 14px;
  box-shadow: 0 8px 22px #1b36401a;
}
.login {
  max-width: 410px;
  margin: 12vh auto;
  padding: 32px;
}
h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}
h2 {
  margin-top: 0;
}
.eyebrow {
  color: #087c84;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.78rem;
}
form,
label {
  display: grid;
  gap: 7px;
}
form {
  gap: 17px;
  margin-top: 24px;
}
input,
textarea {
  font: inherit;
  padding: 11px;
  border: 1px solid #b8c7ce;
  border-radius: 8px;
}
textarea {
  min-height: 76px;
  resize: vertical;
}
button {
  border: 0;
  border-radius: 8px;
  padding: 11px 16px;
  background: #087c84;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.secondary {
  background: #e4edef;
  color: #16343a;
}
header,
.toolbar,
.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
header {
  margin-bottom: 26px;
}
.toolbar {
  justify-content: flex-start;
  margin: 20px 0;
}
.orders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.orders .card {
  padding: 18px;
}
.orders .card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.orders p {
  margin: 0.6rem 0 0;
  color: #50616c;
}
#notice {
  min-height: 24px;
  color: #087c84;
}
.error {
  color: #b42318;
}
dialog {
  padding: 28px;
  width: min(540px, calc(100% - 28px));
}
dialog::backdrop {
  background: #102d3c66;
}
@media (max-width: 560px) {
  main {
    padding: 20px 14px;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
  }
}
.orders .edit-order {
  margin-top: 14px;
  width: 100%;
}
.order-summary {
  margin: 0 0 8px;
  color: #50616c;
}
textarea[readonly] {
  background: #f4f7f8;
  color: #50616c;
}
.materials {
  border-top: 1px solid #dce4e8;
  margin-top: 22px;
  padding-top: 18px;
}
.materials h3 {
  margin: 0 0 8px;
}
.material-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid #edf1f3;
  padding: 9px 0;
}
.material-row p {
  margin: 2px 0;
  color: #50616c;
}
.material-row button {
  padding: 7px 10px;
  font-size: 0.85rem;
}
.lookup {
  display: flex;
  gap: 8px;
}
.lookup input {
  min-width: 0;
  flex: 1;
}
.lookup button {
  white-space: nowrap;
}
.finder-results {
  margin-top: 18px;
  max-height: 300px;
  overflow: auto;
}
.finder-result {
  display: block;
  width: 100%;
  margin: 0 0 7px;
  text-align: left;
  background: #e4edef;
  color: #16343a;
}
.finder-result small {
  display: block;
  margin-top: 2px;
  color: #50616c;
}
