/* InfoSaver styles - modern & responsive */

/* ---------- Base Layout ---------- */
.iis-form, .iis-search { 
  max-width: 980px; 
  margin: 20px auto; 
  padding: 16px; 
  background: #fff; 
  border-radius: 16px; 
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.iis-form h2, .iis-form h3 { 
  margin: 0 0 10px; 
}

.form-header { 
  border-bottom: 1px solid #eee; 
  margin-bottom: 12px; 
  padding-bottom: 8px; 
}

.form-notice { 
  color: #444; 
}

/* ---------- Grid & Responsive ---------- */
.form-row { 
  display: grid; 
  grid-template-columns: 1fr 1fr; 
  gap: 12px; 
}
@media (max-width: 768px) { 
  .form-row { grid-template-columns: 1fr; } 
}

.form-group { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

/* ---------- Inputs & Controls ---------- */
.form-group input, 
.form-group select, 
.form-group textarea, 
.iis-input,
.infosaver-admin-form input[type="text"],
.infosaver-admin-form input[type="date"],
.infosaver-admin-form input[type="number"],
.infosaver-admin-form textarea,
.infosaver-admin-form select { 
  border: 1px solid #dfe3e7; 
  border-radius: 12px; 
  padding: 14px 14px;   /* balanced spacing */
  min-height: 50px;     /* bigger clickable area */
  font-size: 16px;      /* larger text */
  line-height: 1.6;     /* prevents clipped letters */
  width: 100%;
  box-sizing: border-box;
}

/* ---------- Buttons ---------- */
.iis-btn { 
  background: #111827; 
  color: #fff; 
  border: none; 
  padding: 12px 18px; 
  border-radius: 12px; 
  cursor: pointer; 
  transition: opacity 0.2s ease;
}
.iis-btn:hover { opacity: 0.9; }
.iis-btn:focus { 
  outline: 2px solid #2563eb; 
  outline-offset: 2px; 
}

/* ---------- Messages & Badges ---------- */
.iis-message { 
  margin-top: 12px; 
  font-weight: 600; 
}

.iis-badge { 
  font-size: 12px; 
  color: #666; 
}

/* ---------- File Upload (Dropzone) ---------- */
.iis-drop { 
  border: 2px dashed #cbd5e1; 
  padding: 20px; 
  border-radius: 14px; 
  text-align: center; 
  cursor: pointer; 
}
.iis-drop.dragover { background: #f8fafc; }

.iis-previews { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 10px; 
  margin-top: 10px; 
}
.iis-previews .thumb { 
  border: 1px solid #eee; 
  border-radius: 10px; 
  padding: 6px; 
}

/* ---------- Status Labels ---------- */
.status-deuda-pendiente, 
.status-deuda-cancelada, 
.status-plan-pago, 
.status-default { 
  padding: 2px 8px; 
  border-radius: 999px; 
  font-size: 12px; 
  display: inline-block;
}
.status-deuda-pendiente { background: #fee2e2; color: #991b1b; }
.status-deuda-cancelada { background: #dcfce7; color: #065f46; }
.status-plan-pago       { background: #e0e7ff; color: #3730a3; }
.status-default         { background: #e5e7eb; color: #374151; }

/* ---------- Modal ---------- */
.iis-modal-backdrop { 
  display: none; 
  position: fixed; 
  inset: 0; 
  background: rgba(0,0,0,.4); 
  z-index: 9998; 
}

.iis-modal { 
  display: none; 
  position: fixed; 
  inset: 0; 
  z-index: 9999; 
  align-items: center; 
  justify-content: center; 
}

.iis-card { 
  background: #fff; 
  border-radius: 16px; 
  box-shadow: 0 10px 30px rgba(0,0,0,.15); 
  width: min(900px, 94%); 
  max-height: 82vh; 
  overflow: auto; 
  padding: 18px; 
  position: relative; 
}
.iis-close { 
  position: absolute; 
  right: 14px; 
  top: 10px; 
  font-size: 24px; 
  cursor: pointer; 
}

/* ---------- Honeypot ---------- */
.iis-honeypot { 
  position: absolute; 
  left: -9999px; 
  width: 1px; 
  height: 1px; 
  overflow: hidden; 
}

/* ---------- Tables ---------- */
.iis-table { 
  width: 100%; 
  border-collapse: collapse; 
  background: #fff; 
}
.iis-table th, 
.iis-table td { 
  padding: 10px; 
  border-bottom: 1px solid #eee; 
  text-align: left; 
}
.iis-table thead th {
  position: sticky;
  top: 0;
  background: #f9fafb;
  z-index: 2; /* ensures header stays above content */
}

/* ---------- File List ---------- */
.infosaver-file-list { 
  list-style: disc; 
  padding-left: 24px; 
}
