.cadastro-currais-page {
  min-height: 100vh;
  padding: 34px clamp(22px, 3vw, 54px) 42px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.64), rgba(232, 223, 209, 0.84)),
    var(--color-bg);
}

.currais-header,
.currais-workspace {
  max-width: var(--content-max);
  margin: 0 auto;
}

.currais-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.currais-header h1 {
  margin: 0;
  color: var(--sa-marrom-escuro);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1;
}

.currais-header p {
  max-width: 740px;
  margin: 10px 0 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}

.currais-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.currais-header-actions .secondary-action {
  min-height: 42px;
  white-space: nowrap;
}

.currais-header-actions [aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.66;
}

.currais-workspace {
  display: grid;
  gap: 18px;
}

.currais-panel {
  min-width: 0;
}

.currais-panel .records-header {
  align-items: center;
}

.currais-export-button {
  flex: 0 0 auto;
}

.currais-table {
  min-width: 1280px;
  border-collapse: separate;
  border-spacing: 0;
}

.currais-table th:nth-child(2),
.currais-table td:nth-child(2) {
  min-width: 160px;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.currais-table th,
.currais-table td {
  border-right: 1px solid rgba(62, 45, 31, 0.12);
  border-bottom: 1px solid rgba(62, 45, 31, 0.10);
}

.currais-table th:last-child,
.currais-table td:last-child {
  border-right: 0;
}



.curral-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.curral-switch {
  align-self: end;
  min-height: 42px;
}

@media (max-width: 1100px) {
  .currais-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .currais-header-actions {
    justify-content: flex-start;
  }

  .curral-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cadastro-currais-page {
    padding: 84px 16px 30px;
  }

  .currais-header-actions {
    width: 100%;
  }

  .currais-header-actions .primary-action,
  .currais-header-actions .secondary-action {
    flex: 1 1 100%;
    justify-content: center;
    text-align: center;
  }

  .curral-form-grid {
    grid-template-columns: 1fr;
  }

  .currais-panel .records-header {
    align-items: stretch;
    flex-direction: column;
  }

  .currais-export-button {
    width: 100%;
  }
}
