* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  color: #1a1a1a;
  background: #f9f9f7;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

h1 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}

h2 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 1rem;
  color: #1a1a1a;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  border: 0.5px solid #e0deda;
  margin-bottom: 2rem;
}

thead {
  background: #f5f4f1;
}

th {
  text-align: left;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  border-bottom: 0.5px solid #e0deda;
}

td {
  padding: 10px 14px;
  font-size: 14px;
  color: #1a1a1a;
  border-bottom: 0.5px solid #f0ede8;
}

tr:last-child td {
  border-bottom: none;
}

tr:hover td {
  background: #faf9f7;
}

form {
  background: #ffffff;
  border: 0.5px solid #e0deda;
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

input,
select {
  height: 36px;
  padding: 0 12px;
  border: 0.5px solid #d0ceca;
  border-radius: 6px;
  font-size: 14px;
  color: #1a1a1a;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

input:focus,
select:focus {
  border-color: #888;
}

input::placeholder {
  color: #aaa;
}

select {
  padding-right: 28px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

button {
  height: 36px;
  padding: 0 16px;
  border: 0.5px solid #d0ceca;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: #1a1a1a;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}

button:hover {
  background: #f5f4f1;
  border-color: #aaa;
}

button:active {
  transform: scale(0.98);
}

td button {
  height: 30px;
  padding: 0 12px;
  font-size: 13px;
  margin-right: 4px;
}

#crear {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

#crear:hover {
  background: #333;
  border-color: #333;
}

#editar {
  background: #1a1a1a;
  color: #fff;
  border-color: #1a1a1a;
}

#editar:hover {
  background: #333;
  border-color: #333;
}
