* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f3f6fb;
  color: #172033;
}
.container {
  width: min(920px, 92%);
  margin: 28px auto;
}
.card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(20, 30, 60, 0.08);
  margin-bottom: 18px;
}
h1 {
  margin: 0 0 8px;
  font-size: 28px;
}
p {
  line-height: 1.45;
}
.nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0 20px;
}
a,
button {
  cursor: pointer;
}
.nav a,
.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 15px;
  background: #172033;
  color: white;
  text-decoration: none;
  font-weight: 700;
}
.btn.secondary {
  background: #e8edf7;
  color: #172033;
}
.btn.danger {
  background: #b42318;
}
.btn.success {
  background: #067647;
}
.btn.is-loading {
  cursor: wait;
  opacity: 0.9;
}
.btn.is-loading::after {
  content: "";
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-left: 8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ui-spin 0.7s linear infinite;
  vertical-align: -0.12em;
}
@keyframes ui-spin {
  to {
    transform: rotate(360deg);
  }
}
main[data-ui-loading="1"] {
  cursor: wait;
}
label {
  display: block;
  margin-top: 14px;
  font-weight: 700;
}
input,
select {
  width: 100%;
  padding: 13px;
  border: 1px solid #ccd5e1;
  border-radius: 12px;
  margin-top: 6px;
  font-size: 16px;
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-weight: 700;
}
.check input {
  width: 22px;
  height: 22px;
  margin: 0;
}
#formCampos {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.form-fechado {
  opacity: 0.72;
  pointer-events: none;
}
form[data-ui-loading="1"] fieldset,
form[data-ui-loading="1"] input:not([type="submit"]),
form[data-ui-loading="1"] select,
form[data-ui-loading="1"] textarea {
  pointer-events: none;
}
form[data-ui-loading="1"] {
  cursor: wait;
}
.alert {
  padding: 12px;
  border-radius: 12px;
  margin-top: 12px;
  background: #e8f7ee;
  color: #075e35;
  font-weight: 700;
}
.alert.error {
  background: #ffe8e6;
  color: #9b1c13;
}
.list-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eef2f6;
  padding: 12px 0;
}
.name {
  font-weight: 800;
}
.badges {
  text-align: right;
}
.badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f6;
  margin: 2px;
  font-size: 13px;
  font-weight: 700;
}
.summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.summary.summary-4 {
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  background: #f7f9fc;
  border-radius: 14px;
  padding: 14px;
}
.stat strong {
  display: block;
  font-size: 24px;
  margin-top: 6px;
}
@media (max-width: 700px) {
  .row,
  .summary,
  .summary.summary-4 {
    grid-template-columns: 1fr;
  }
  .list-item {
    display: block;
  }
  .badges {
    text-align: left;
    margin-top: 6px;
  }
}
