* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f4f6f3;
  color: #183630;
  font: 15px/1.55 Inter,-apple-system,BlinkMacSystemFont,"PingFang SC",sans-serif;
}

button,input,select,textarea {
  font: inherit;
}

button {
  border: 1px solid #d2ddd6;
  background: white;
  border-radius: 8px;
  color: #244039;
  padding: 8px 15px;
  cursor: pointer;
}

button:hover {
  background: #e5efe9;
}

button:disabled {
  opacity: .5;
  cursor: default;
}

button.primary {
  background: #155c4a;
  border-color: #155c4a;
  color: white;
}

button.danger {
  color: #a52e24;
  border-color: #e6c6c3;
}

button.danger:hover {
  background: #fdf0ef;
}

.header-meta {
  font-size: 13px;
  color: #cbe0d7;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

.filters label {
  margin: 0;
}

.avatar-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
}

.avatar-preview img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

h1,h2,p {
  margin: 0;
}

h1 {
  font-size: 30px;
}

h2 {
  font-size: 20px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(20px,5vw,80px);
  background: #173e35;
  color: white;
}

header strong {
  font-size: 18px;
}

header select {
  max-width: 50vw;
}

header div,nav,.heading,footer,.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

nav {
  border-bottom: 1px solid #d8dfd9;
  padding: 10px clamp(20px,5vw,80px);
  overflow: auto;
  background: #fff;
}

nav button {
  white-space: nowrap;
  background: none;
  color: #61736c;
  border: 0;
}

nav button[aria-current=page] {
  background: #def0e4;
  color: #12513e;
  font-weight: 600;
}

main {
  max-width: 1400px;
  margin: auto;
  padding: 40px clamp(18px,5vw,80px);
}

.heading {
  justify-content: space-between;
  margin-bottom: 24px;
}

.panel,dialog,.login {
  background: white;
  border: 1px solid #d5dfd7;
  border-radius: 16px;
  padding: 24px;
}

.panel {
  overflow: auto;
}

.login {
  width: min(400px,90vw);
  margin: 15vh auto;
  padding: 36px;
}

.login h1,
.login h2 {
  margin-bottom: 24px;
}

label {
  display: grid;
  gap: 5px;
  margin: 12px 0;
}

input,select,textarea {
  border: 1px solid #becfc5;
  border-radius: 7px;
  background: white;
  color: #183630;
  padding: 8px;
  max-width: 100%;
}

label.check {
  display: flex;
  align-items: center;
}

.actions,footer {
  justify-content: flex-end;
  margin-top: 18px;
}

.error {
  color: #a52e24;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #e6ece7;
}

th {
  color: #60746b;
  font-weight: 500;
}

td small {
  display: block;
  color: #61776d;
}

dialog {
  width: min(490px,92vw);
  max-height: 85vh;
  color: inherit;
}

dialog::backdrop {
  background: #19362d60;
}

#notice:not(:empty) {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #193d32;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
}

td img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  vertical-align: middle;
  margin-right: 8px;
}

.empty {
  padding: 32px;
  text-align: center;
  color: #6b7d74;
}

@media(max-width:650px) {
  header {
    flex-wrap: wrap;
  }

  main {
    padding-top: 24px;
  }

  .panel {
    padding: 10px;
  }

  th,td {
    white-space: nowrap;
  }

  .heading {
    align-items: start;
  }
}

dialog dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 15px;
}

dialog dt {
  color: #61736c;
}

dialog dd {
  margin: 0;
}

.description {
  white-space: pre-wrap;
  margin-top: 8px;
}

.order-content {
  display: block;
  max-width: clamp(10rem, 27vw, 32rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.order-voice {
  display: block;
  width: min(100%, 17rem);
  margin: .4rem 0;
}

.order-settings {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e6ece7;
  padding-top: 16px;
}

.order-settings label {
  grid-template-columns: 5em minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
}

.order-settings label span {
  color: #61736c;
}
