.aj-justificante {
  max-width: 720px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  font-family: "Segoe UI", Tahoma, sans-serif;
}

.aj-justificante h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.8rem;
  color: #1a1a1a;
}

.aj-notice {
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  font-weight: 600;
}

.aj-notice-success {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.3);
}

.aj-notice-error {
  background: rgba(220, 53, 69, 0.1);
  color: #842029;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.aj-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.aj-fieldset {
  border: 1px solid #dde0e5;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  background: #f9fafb;
}

.aj-fieldset legend {
  padding: 0 0.5rem;
  font-weight: 600;
  color: #1f2933;
}

.aj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.aj-grid-files {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.aj-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.aj-field span {
  font-weight: 600;
  color: #273240;
}

.aj-field input,
.aj-field select,
.aj-field textarea {
  border: 1px solid #cbd2d9;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.aj-field input:focus,
.aj-field select:focus,
.aj-field textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
  outline: none;
}

.aj-field textarea {
  resize: vertical;
  min-height: 120px;
}

.aj-field-dates {
  margin-bottom: 1rem;
}

.aj-date-rows {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.aj-date-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.aj-date-row input[type="date"] {
  flex: 1;
}

.aj-remove-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: none;
  background: #ef4444;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.aj-remove-date:hover {
  background: #dc2626;
}

.aj-field-dates .aj-date-row:first-child .aj-remove-date {
  visibility: hidden;
}

.aj-add-date {
  margin-top: 0.75rem;
  width: fit-content;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px dashed #2563eb;
  background: transparent;
  color: #2563eb;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.aj-add-date:hover {
  background: rgba(37, 99, 235, 0.08);
}

.aj-actions {
  display: flex;
  justify-content: center;
}

.aj-submit {
  padding: 0.85rem 2.5rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aj-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
}

.aj-submit:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .aj-justificante {
    margin: 1.5rem 1rem;
    padding: 1.5rem;
  }

  .aj-date-row {
    flex-direction: column;
    align-items: stretch;
  }

  .aj-field-dates .aj-date-row:first-child .aj-remove-date {
    visibility: hidden;
  }

  .aj-remove-date {
    width: 100%;
  }
}
