/* ¸ð´ø ½ºÅ¸ÀÏ Ä¿½ºÅÍ¸¶ÀÌÂ¡ */
.swal2-popup.custom-popup {
  border-radius: 20px;
  background: #ffffffee; /* »ìÂ¦ Åõ¸í Èò»ö */
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  padding: 2rem 2rem 3rem;
}

.swal2-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem !important;
  text-align: left;
  opacity: 0;
}

.swal2-close {
  top: 15px !important;
  right: 20px !important;
  color: #fff;
  transition: all 0.2s ease;
}
.swal2-close:hover {
  color: #111;
  transform: rotate(90deg);
}

/* iframe ¾ÈÂÊÀÌ Àß¸®°Å³ª ³ÑÄ¡Áö ¾Ê°Ô */
.swal2-html-container {
  padding: 0 !important;
}
.swal2-html-container iframe {
  border-radius: 10px;
  width: 100%;
  height: 450px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

:root {
  --max: 1200px;
  --gap: 22px;

  /* °øÅë ÅäÅ«(¶óÀÌÆ®/´ÙÅ©¿¡¼­ override) */
  --label-w: 110px; /* ¶óº§ Ä®·³ ³Êºñ */
  --sep: 12px; /* ¶óº§-°ª °£°Ý */
  --radius: 14px;
  --line: #e5e7eb; /* Å×µÎ¸® */
  --divider: #d1d5db; /* ¶óº§|°ª ¼¼·Î¼± */
  --badge-line: #cbd5e1;
}

/* ===== Å×¸¶: ¶óÀÌÆ® / ´ÙÅ© ===== */
.theme-light {
  --bg: #f8fafc; /* ¹àÀº ¹è°æ */
  --panel: #ffffff; /* ÆÐ³Î ¹è°æ */
  --text: #0f172a; /* º»¹® */
  --muted: #64748b; /* º¸Á¶ */
}
.theme-dark {
  --bg: #0f172a;
  --panel: #0b1220;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --line: #334155;
  --divider: #475569;
  --badge-line: #64748b;
}

/* ===== ·¹ÀÌ¾Æ¿ô ===== */
.plant-footer {
  background: var(--bg);
  color: var(--text);
  font-family: "³ª´®°íµñ", NanumGothic, "µ¸¿ò", Dotum, Verdana, Tahoma,
    AppleGothic, sans-serif;
}
.pf__container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 16px 8px;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 900px) {
  .pf__container {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pf__col {
  background: var(--panel);
  /* border:1px solid var(--line); */
  border-bottom: 0; /* ¿äÃ»: ÇÏ´Ü º¸´õ Á¦°Å */
  border-radius: var(--radius);
  padding: 18px 18px 14px;
}

.pf__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.pf__dept {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

/* ¼ºÇü/¶óÀÌ´× ¹Ú½º (¸ð³ëÅæ) */
.sub-plant {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.sub-plant__title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  padding-left: 10px;
  position: relative;
}
.sub-plant__title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 3px;
  background: var(--divider);
  border-radius: 2px;
}

/* ===== ¶óº§ | °ª ===== */
.kv {
  position: relative;
  margin: 0;
}
.kv__row {
  display: grid;
  grid-template-columns: var(--label-w) 1fr;
  gap: 0;
  padding: 8px 0;
}
.kv dt {
  position: relative;
  padding-right: var(--sep);
  color: var(--muted);
  font-weight: 700;
}
.kv dd {
  margin: 0;
  padding-left: var(--sep);
}
.kv a {
  color: inherit;
  text-decoration: none;
}
.kv a:hover {
  text-decoration: underline;
}

/* È­¼º: Çàº° ¼¼·Î¼±(²÷±è) */
.pf__col:first-child .kv dt::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0.25em;
  bottom: 0.25em;
  width: 1px;
  background: var(--divider);
}

/* ¹®¸·: ±×·ì ÀüÃ¼ ¼¼·Î¼±(°üÅë) */
.pf__col--munmak .kv::before {
  content: "";
  position: absolute;
  left: var(--label-w);
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--divider);
}
.pf__col--munmak .kv dt::after {
  content: none;
} /* Áßº¹ ¹æÁö */

/* ¸ñ·Ï/¹èÁö(¸ð³ëÅæ ¾Æ¿ô¶óÀÎ) */
.addr {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #0b1220;
  background: #eef2ff;
  margin-right: 8px;
}
.note {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
}

/* ===== ÇªÅÍ ÇÏ´Ü ¹Ù + Family Site ===== */
.pf__meta {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px 16px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.pf__meta-left small {
  color: var(--muted);
}

.family-site {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
}
.family-site label {
  font-size: 14px;
  color: var(--muted);
}
.family-site select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 14px;
}
.family-site button {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.family-site button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ¾ÆÁÖ Á¼Àº È­¸é¿¡¼­ ¶óº§ Æø Á¶Á¤ */
@media (max-width: 420px) {
  .plant-footer {
    --label-w: 96px;
  }
  .family-site label {
    display: none;
  } /* ¸ð¹ÙÀÏ¿¡¼± ¶óº§ ¼û°Üµµ ¹«¹æ */
}

/* È­¸é ¼û±è(½ºÅ©¸°¸®´õ¿ë) */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ÄÁÅ×ÀÌ³Ê */
.family-site {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff; /* ÇÊ¿ä½Ã Åõ¸í/ÇªÅÍ»öÀ¸·Î º¯°æ */
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 10px;
  max-width: 100%;
}

/* ¼¿·ºÆ® ±âº» ½ºÅ¸ÀÏ */
#familySite {
  min-width: 220px;
  max-width: 100%;
  padding: 9px 36px 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* Ä¿½ºÅÒ È­»ìÇ¥ */
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px),
    calc(100% - 14px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
#familySite:focus {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.25);
}

/* ´ÙÅ©ÅæÀÌ ÇÊ¿äÇÏ¸é ºÎ¸ð¿¡ .theme-dark Ãß°¡ÇÏ°í ¾Æ·¡ »ç¿ë */
.theme-dark .family-site {
  background: #0b1220;
  border-color: #334155;
}
.theme-dark #familySite {
  background: #0b1220;
  color: #e5e7eb;
  border-color: #334155;
  background-image: linear-gradient(45deg, transparent 50%, #94a3b8 50%),
    linear-gradient(135deg, #94a3b8 50%, transparent 50%);
}

@media (max-width: 480px) {
  #familySite {
    min-width: 180px;
  }
}
