:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  color: #17211b;
  background: #f2f5f0;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 1120px;
  margin: auto;
  padding: 48px 24px 80px;
}
header,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.055em;
  margin: 0.15em 0 0.6em;
  line-height: 1;
}
h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
}
.eyebrow {
  color: #397b52;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}
.badge {
  background: #fff;
  border: 1px solid #d9e1d9;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.85rem;
}
.badge.ok {
  background: #dff5e5;
  color: #176232;
  border-color: #bee4c8;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.cards article,
.panel {
  background: #fff;
  border: 1px solid #dfe5de;
  border-radius: 18px;
  box-shadow: 0 8px 30px #2137280a;
}
.cards article {
  padding: 22px;
}
.cards span {
  display: block;
  color: #718076;
  font-size: 0.8rem;
  margin-bottom: 14px;
}
.cards strong {
  font-size: 1.7rem;
}
.panel {
  padding: 24px;
  margin-top: 16px;
}
.panel p {
  color: #718076;
  margin: 0;
  font-size: 0.9rem;
}
button {
  border: 0;
  border-radius: 10px;
  background: #1d6b3b;
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
  cursor: pointer;
}
.device {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 16px;
  border-top: 1px solid #edf0ec;
  padding: 16px 0;
  font-size: 0.9rem;
}
.device:first-child {
  margin-top: 18px;
}
.device small {
  display: block;
  color: #7b867f;
  margin-bottom: 3px;
}
.dot {
  width: 9px;
  height: 9px;
  background: #36a95c;
  border-radius: 50%;
  display: inline-block;
  margin-right: 7px;
}
.table-wrap {
  overflow: auto;
  margin-top: 18px;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
th {
  color: #718076;
  font-size: 0.76rem;
  font-weight: 600;
}
th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid #edf0ec;
}
.empty {
  color: #8a958e;
  padding: 28px 0;
  text-align: center;
}
.employee-form {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1.4fr auto;
  align-items: end;
  gap: 12px;
  margin-top: 22px;
}
.employee-form label {
  font-size: 0.76rem;
  color: #617066;
  font-weight: 700;
}
.employee-form input,
.employee-form select {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d9e1d9;
  border-radius: 10px;
  padding: 11px;
  background: #fff;
  color: #17211b;
}
.form-message {
  min-height: 20px !important;
  margin-top: 12px !important;
  color: #1d6b3b !important;
}
.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.actions button {
  font-size: 0.75rem;
  padding: 7px 10px;
}
.actions button.secondary {
  background: #edf5ef;
  color: #1d6b3b;
}
@media (max-width: 900px) {
  .employee-form {
    grid-template-columns: 1fr 1fr;
  }
  .employee-form button {
    width: max-content;
  }
}
@media (max-width: 720px) {
  main {
    padding: 28px 15px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .device {
    grid-template-columns: 1fr 1fr;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
  }
  .panel {
    padding: 18px;
  }
}
@media (max-width: 520px) {
  .employee-form {
    grid-template-columns: 1fr;
  }
}
