/* =========================================================
   Shared export page styling
   ========================================================= */

.nn-export-page {
  display: grid;
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 0 40px;
}

.nn-export-page__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 0 2px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.nn-export-page__hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.75rem, 2vw, 2.1rem);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.nn-export-page__hero p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 0.96rem;
}

.nn-export-page__heroIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #64748b;
  font-size: 1.15rem;
}

.nn-export-panel {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.nn-export-panel__head h2 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
  font-weight: 750;
}

.nn-export-panel__head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 0.86rem;
}

.nn-export-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.nn-export-field__label {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
}

.nn-export-field select,
.nn-export-field input[type="date"] {
  width: 100%;
  min-width: 0;
  height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid #d8dee6;
  border-radius: 9px;
  background: #fff;
  color: #111827;
  font: inherit;
  font-size: 0.9rem;
}

.nn-export-field select:focus,
.nn-export-field input[type="date"]:focus {
  outline: none;
  border-color: #0f9fa8;
  box-shadow: 0 0 0 3px rgba(15,159,168,.1);
}

.nn-export-field small {
  min-height: 16px;
  color: #7c8798;
  font-size: 0.74rem;
  line-height: 1.3;
}

.nn-export-date {
  position: relative;
  display: block;
}

.nn-export-date::after {
  content: "\f133";
  position: absolute;
  top: 50%;
  right: 13px;
  transform: translateY(-50%);
  color: #64748b;
  font-family: "Font Awesome 6 Free";
  font-size: 0.88rem;
  font-weight: 400;
  pointer-events: none;
}

.nn-export-date input[type="date"] {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
}

.nn-export-date input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  width: 40px;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.nn-export-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.nn-export-panel__footer p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
}

.nn-export-panel__footer .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
}

@media (max-width: 767px) {
  .nn-export-page {
    gap: 18px;
    padding-top: 8px;
  }

  .nn-export-page__heroIcon {
    display: none;
  }

  .nn-export-panel {
    padding: 14px;
  }

  .nn-export-panel__footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nn-export-panel__footer .btn {
    width: 100%;
  }
}

.nn-export-students__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

@media (max-width: 767px) {
  .nn-export-students__grid {
    grid-template-columns: 1fr;
  }
}
