/* =========================================================
   pages/temp-passwords.css
   ---------------------------------------------------------
   Temporary password/admin password utility styles.
   ========================================================= */

/* =========================================================
 19)  TEMP PASSWORDS
   --------------------------------------------------------- */

.nn-temp-passwords {
  display: grid;
  gap: 16px;
}

.nn-temp-passwords__filters {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.nn-temp-passwords__filters label {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.nn-temp-passwords__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nn-temp-passwords__tableWrap {
  overflow-x: auto;
}

.nn-temp-table {
  width: 100%;
  border-collapse: collapse;
}

.nn-temp-table th,
.nn-temp-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.nn-temp-table th {
  color: var(--muted);
  font-weight: 700;
}

.nn-temp-password-value {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 8px;
  background: #f3f4f7;
  font-size: 0.95rem;
}

.nn-temp-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.nn-temp-status.is-active {
  background: #ecfdf3;
  color: #027a48;
}

.nn-temp-status.is-inactive {
  background: #f2f4f7;
  color: #667085;
}

.nn-temp-row-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

@media print {
  .site-header,
  .site-footer,
  .nn-temp-passwords__controls .btn,
  .nn-temp-row-actions {
    display: none !important;
  }

  .nn-temp-passwords .card {
    box-shadow: none !important;
    border: 0 !important;
    padding: 0 !important;
  }

  .nn-temp-passwords {
    gap: 8px;
  }

  .nn-temp-password-value {
    background: transparent;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .nn-temp-passwords__filters,
  .nn-temp-passwords__actions,
  .nn-temp-row-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nn-temp-passwords__actions .btn,
  .nn-temp-row-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

