.admin-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}
.admin-form .field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.admin-form .field input,
.admin-form .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
}
.admin-form .field input:focus, .admin-form .field select:focus { outline: none; border-color: var(--primary); }
.field-btn { display: flex; gap: 8px; flex-wrap: wrap; }
.field-btn button {
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.field-btn button[type="submit"] { background: var(--primary); color: white; }
.field-btn button[type="submit"]:hover { background: var(--primary-dark); }
.field-btn button.secundario { background: #eee; color: var(--text); }

.form-msg { font-size: 13px; margin-top: 10px; min-height: 18px; font-weight: 600; }
.form-msg.ok { color: var(--success); }
.form-msg.error { color: var(--primary); }

.hint { font-size: 13px; color: var(--muted); margin: 0 0 14px; line-height: 1.5; }

.tabla-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.admin-tabla { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 480px; }
table.admin-tabla th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--muted); border-bottom: 1.5px solid var(--border); padding: 10px 8px; }
table.admin-tabla td { padding: 10px 8px; border-bottom: 1px solid #f1ede4; }
table.admin-tabla .link-btn { margin-right: 10px; }

.check-inline { display: block; font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 600; }

#btn-importar {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}
#btn-importar:hover { background: var(--primary-dark); }
#btn-importar:disabled { opacity: 0.5; cursor: not-allowed; }

@media (max-width: 720px) {
  .admin-form { grid-template-columns: 1fr; }
}
