/* ==========================================================================
   "Did you get permission from the resident to allow entry?" before every YELLOW admit (client 2026-11-17).
   window.AdmitPermission (resources/views/scripts/partials/admit_permission_js.blade.php), loaded on every page.
   Everything is scoped to .swal2-popup.adm-perm-popup, so no other SweetAlert dialog changes.
   Same look as the approved Repeat & Admit popup (.pv-perm-popup in plate-scan-card.css, dashboard only — untouched).
   See documentation/plate-verification.md 4i.
   ========================================================================== */

.swal2-popup.adm-perm-popup { width: 540px; max-width: calc(100vw - 32px); padding: 30px 28px 26px; border-radius: 14px; }
.swal2-popup.adm-perm-popup .swal2-content { padding: 0; }

.swal2-popup.adm-perm-popup .pv-perm { text-align: center; font-family: 'Segoe UI', sans-serif; }
.swal2-popup.adm-perm-popup .pv-perm-ic {
  width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #FFF4E5; color: #B85C00; font-size: 32px; line-height: 1;
}
.swal2-popup.adm-perm-popup .pv-perm-ic i { font-size: 32px; line-height: 1; }
.swal2-popup.adm-perm-popup .pv-perm-title {
  font-size: 22px; font-weight: 700; line-height: 1.3; color: #0f172a; margin: 0 0 16px;
}
.swal2-popup.adm-perm-popup .pv-perm-who {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 16px; margin: 0 0 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc;
}
.swal2-popup.adm-perm-popup .pv-perm-name { font-size: 19px; font-weight: 700; color: #202B56; }
.swal2-popup.adm-perm-popup .pv-perm-phone {
  display: inline-flex; align-items: center; gap: 6px; font-size: 21px; font-weight: 700; color: #0090FF; text-decoration: none;
}
.swal2-popup.adm-perm-popup .pv-perm-phone i { font-size: 21px; }
.swal2-popup.adm-perm-popup .pv-perm-nophone { color: #64748b; }
.swal2-popup.adm-perm-popup .pv-perm-sub { font-size: 15px; line-height: 1.5; color: #475569; margin: 0 0 20px; }
.swal2-popup.adm-perm-popup .pv-perm-sub strong { white-space: nowrap; }

.swal2-popup.adm-perm-popup .swal2-actions { margin: 0; gap: 12px; flex-wrap: wrap; }
/* SweetAlert2 writes an inline display on its buttons — !important keeps the labels centred (this popup only). */
.swal2-popup.adm-perm-popup .swal2-actions .btn {
  display: inline-flex !important; align-items: center; justify-content: center; gap: 8px;
  height: 54px; min-width: 200px; padding: 0 22px; margin: 0; border-radius: 8px;
  font-family: 'Segoe UI', sans-serif; font-size: 18px; font-weight: 700; line-height: 1; text-align: center; vertical-align: middle;
}
/* The theme's global `.btn i { position: relative; top: 3px }` pushes the icon below the label. */
.swal2-popup.adm-perm-popup .swal2-actions .btn i { font-size: 20px; line-height: 1; top: 0; }
.swal2-popup.adm-perm-popup .pv-perm-yes { background: #16a34a; border: 1px solid #16a34a; color: #fff; }
.swal2-popup.adm-perm-popup .pv-perm-yes:hover,
.swal2-popup.adm-perm-popup .pv-perm-yes:focus { background: #15803d; border-color: #15803d; color: #fff; box-shadow: 0 0 0 3px rgba(22, 163, 74, .2); }
.swal2-popup.adm-perm-popup .pv-perm-not { background: #fff; border: 1px solid #cbd5e1; color: #0f172a; }
.swal2-popup.adm-perm-popup .pv-perm-not:hover,
.swal2-popup.adm-perm-popup .pv-perm-not:focus { background: #f1f5f9; color: #0f172a; box-shadow: none; }

@media (max-width: 520px) {
  .swal2-popup.adm-perm-popup .swal2-actions .btn { flex: 1 1 100%; min-width: 0; }
  .swal2-popup.adm-perm-popup .pv-perm-title { font-size: 20px; }
}
