/* ===============================
   FORM SYSTEM
================================ */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
  
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 4px; /* extra spacing below label */
}

form input,
form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: #f1f3f6;
  font-size: 14px;
   margin-bottom: 4px; /* extra spacing below label */
}

form textarea {
  min-height: 90px;
  resize: vertical;
}

form input:focus,
form textarea:focus {
  outline: none;
  background: #ffffff;
  box-shadow: 0 0 0 2px rgba(79,110,247,0.25);
}

/* ===============================
   MODALS
================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-card {
  width: 520px;
  height: 480px;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  overflow: hidden;
}

.modal-card iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ===============================
   FEEDBACK
================================ */
.banner.success {
  margin-top: 16px;
  background: #e6f4ea;
  color: #276749;
  padding: 10px;
  border-radius: 8px;
}


/* ===============================
   UNIVERSAL ERP SELECT STYLING
================================ */

select {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius);
  border: none;
  background: #f1f3f6;  /* soft neutral background */
  font-size: 14px;
  color: var(--text-primary);
  appearance: none; /* remove default arrow */
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  position: relative;
   margin-bottom: 4px; /* extra spacing below label */
}

/* Focus state */
select:focus {
  outline: 2px solid rgba(79,110,247,0.3);
  background: #ffffff;
}

/* Disabled state */
select:disabled {
  background: #e5e7eb;
  color: #9ca3af;
  cursor: not-allowed;
}

/* Add universal arrow using pseudo-element on parent if needed */
.select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.select-wrapper::after {
  content: "▾";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--text-secondary);
  font-size: 12px;
}
