:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #20372e;
  background: #f7f8f5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
.site-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 92px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #246444;
  font-size: 25px;
  font-weight: 720;
  letter-spacing: -1px;
  text-decoration: none;
}
.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -1px;
  line-height: 1.2;
}
p {
  color: #66736b;
  font-size: 15px;
  line-height: 1.6;
}
.login-page {
  width: min(100% - 40px, 420px);
  margin: clamp(32px, 10vh, 110px) auto 48px;
}
.login-card,
.account-card {
  background: #fff;
  border: 1px solid #e2e7df;
  border-radius: 18px;
  padding: 36px;
  box-shadow: 0 8px 32px #18372c05;
}
.login-heading {
  margin-bottom: 30px;
}
.login-heading p {
  margin: 10px 0 0;
}
.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-size: 14px;
  font-weight: 550;
  margin-bottom: 9px;
}
.field input {
  display: block;
  width: 100%;
  min-height: 48px;
  border: 1px solid #cfd8d0;
  border-radius: 8px;
  background: #fff;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: #20372e;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field input::placeholder {
  color: #9aa59d;
}
.field input:focus {
  outline: none;
  border-color: #32714e;
  box-shadow: 0 0 0 3px #32714e16;
}
button {
  border: 0;
  border-radius: 8px;
  padding: 13px 22px;
  background: #246444;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: 46px;
  transition: background 0.15s;
}
button:hover {
  background: #1b5035;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #7dad85;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.login-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 28px;
}
.login-submit span {
  font-size: 21px;
  font-weight: 400;
}
.button-quiet {
  background: transparent;
  color: #617166;
  font-size: 14px;
  font-weight: 500;
}
.button-quiet:hover {
  background: #eaf0e8;
}
.login-footer {
  margin: 26px 0;
  text-align: center;
  color: #929c94;
  font-size: 12px;
}
.form-error {
  padding: 12px;
  background: #fcf0ee;
  color: #974333;
  border-radius: 8px;
  font-size: 14px;
}
.workspace {
  max-width: 740px;
  margin: 54px auto;
  padding: 0 24px;
}
.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 1.8px;
  color: #7a8b7c;
  margin-bottom: 12px;
}
.workspace-wide {
  max-width: 1120px;
}
.caption {
  margin: 12px 0 0;
  font-size: 13px;
}
.intro {
  margin: 14px 0 28px;
  max-width: 510px;
}
.workspace section {
  border: 1px solid #e2e7df;
  padding: 28px;
  background: white;
  border-radius: 14px;
}
.account-card {
  width: min(100% - 40px, 480px);
  margin: 70px auto;
}
progress {
  width: 100%;
  height: 10px;
  accent-color: #246444;
}
small,
summary {
  color: #77867b;
  font-size: 13px;
}
details {
  margin-top: 22px;
}
summary {
  cursor: pointer;
}
pre {
  white-space: pre-wrap;
  font-size: 12px;
  max-height: 180px;
  overflow: auto;
}
.status {
  min-height: 48px;
}
.loading,
.notice {
  text-align: center;
  margin: 48px 24px;
}
@media (max-width: 520px) {
  .site-header {
    padding: 22px 24px;
  }
  .login-card {
    padding: 28px 24px;
  }
  .login-page {
    margin-top: 32px;
  }
  h1 {
    font-size: 27px;
  }
  .workspace {
    margin-top: 30px;
  }
}

.staff-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
}
.staff-nav a {
  text-decoration: none;
  padding: 8px 0;
}
.staff-nav a[aria-current="page"] {
  color: #246444;
  border-bottom: 2px solid;
}
.search-toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.search-toolbar .field {
  flex: 1;
  min-width: 220px;
  margin: 0;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.detail-grid dt {
  font-size: 12px;
  color: #77867b;
  margin-bottom: 7px;
}
.detail-grid dd {
  margin: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .site-header {
    flex-wrap: wrap;
    gap: 16px;
  }
  .staff-nav {
    order: 3;
    width: 100%;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .device-health summary {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .health-sensor {
    text-align: left;
  }
}

.health-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}
.device-health {
  background: white;
  border: 1px solid #e2e7df;
  border-radius: 12px;
  margin: 0;
}
.device-health summary {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr;
  gap: 20px;
  padding: 22px;
  align-items: center;
  color: #20372e;
  position: relative;
  padding-right: 46px;
}
.device-health summary::after {
  content: "+";
  position: absolute;
  right: 22px;
  color: #77867b;
  font-size: 20px;
}
.device-health[open] summary::after {
  content: "−";
}
.device-health summary:hover {
  background: #f7faf6;
  border-radius: 12px;
}
.health-identity,
.health-contact {
  display: grid;
  gap: 6px;
}
.health-identity strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}
.health-identity > span,
.health-contact small {
  color: #77867b;
  font-size: 12px;
}
.health-sensor {
  text-align: right;
}
.health-sensor small {
  display: block;
  margin-top: 6px;
  font-size: 12px;
}
.health-body {
  border-top: 1px solid #e2e7df;
  padding: 0 22px 22px;
}
.health-update {
  border-top: 1px solid #e2e7df;
  margin-top: 24px;
  padding-top: 8px;
}
.health-update h3 {
  font-size: 14px;
  font-weight: 600;
}
.panic-message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.state-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.state-filter a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #e2e7df;
  border-radius: 999px;
  background: white;
  font-size: 14px;
  text-decoration: none;
}
.state-filter a span {
  color: #77867b;
  font-variant-numeric: tabular-nums;
}
.state-filter a:hover {
  background: #f7faf6;
}
.state-filter a[aria-current="true"] {
  border-color: #246444;
  background: #eaf0e8;
  color: #246444;
  font-weight: 600;
}
.state-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eef1ec;
  color: #617166;
  font-size: 13px;
  font-weight: 550;
}
.state-badge[data-state="conectados"] {
  background: #e3f1e6;
  color: #246444;
}
.state-badge[data-state="desconectados"] {
  background: #fbefd9;
  color: #85520f;
}
.table-scroll {
  overflow-x: auto;
  margin-top: 16px;
  background: white;
  border: 1px solid #e2e7df;
  border-radius: 12px;
}
.customer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.customer-table th,
.customer-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid #eef1ec;
  white-space: nowrap;
}
.customer-table th {
  color: #77867b;
  font-size: 12px;
  font-weight: 550;
}
.customer-table tbody tr:last-child td {
  border-bottom: 0;
}
.customer-table td:first-child {
  white-space: normal;
  overflow-wrap: anywhere;
}
