/* Customized CSS for YCH *? */

/* Homepage Topbar */
/* language sing left */
.topnav-left {
    float: left;
}

.topnav-right {
    float: right;
}

.item-centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Footer(main) Logo Styling */
.footer-logo {
  max-width: 80px; /* Adjust this size as necessary */
  height: auto;
  display: block;
  margin: 0 auto; /* Center alignment for small screens */
}

/* Responsive Design for Small Screens */
@media (max-width: 576px) {
  .footer-logo {
    max-width: 80px; /* Ensure logo size remains consistent */
  }

  .text-center.text-lg-start {
    text-align: center !important; /* Center align for small screens */
  }
}
/* End Footer(main) Logo Styling */

/* input box height */
/* move a box front */
.to-front {
    z-index: -1;
    position: relative;
}

/* radion input box (small) */
.h-2rem {
    height: 2rem;
}


/* a: link */
a:hover {
    color: lightgreen;
}

.tooltip-hover {
    cursor: pointer;  /* 커서를 손가락 모양으로 변경 */
}

/* Homepage Logo */
.navbar-home-logo{
    width:100%;
    min-width:1.5rem;   /* 7.5rem */
    max-width:1.5rem;
}

/* Text Justify */
.justify {
    text-align: justify!important;
}

/* Margin Left/Right */
.ml-1 {
    margin-left: 1rem;
}

.ml-2 {
    margin-left: 2rem;
}

.ml-3 {
    margin-left: 3rem;
}

.mr-1 {
    margin-right: 1rem;
}

.mr-2 {
    margin-right: 2rem;
}

.mr-3 {
    margin-right: 3rem;
}

/* portrait size */
/* Ensure all director portraits display at a consistent size */
.director-card .director-portrait {
  width: 100%;           /* fill card width */
  aspect-ratio: 4 / 5;   /* consistent portrait ratio */
  object-fit: cover;     /* crop to fill while keeping the ratio */
  display: block;
}

/* Hall of Fame portraits: fixed portrait ratio with minimal crop */
.hof-img {
  width: 100%;           /* fill card width */
  aspect-ratio: 4 / 5;   /* consistent portrait ratio across cards */
  height: auto;          /* let aspect-ratio control height */
  object-fit: cover;     /* cover area with minimal, centered crop */
  display: block;        /* remove inline gap */
}

/* ========================= */
/* Clan images (grid + detail)
   Goal: visually consistent sizes regardless of source image orientation
*/

/* Grid thumbnail on clans list */
.clan-thumb {
  width: 100%;           /* fill the card width */
  aspect-ratio: 4 / 3;   /* consistent thumbnail ratio */
  object-fit: cover;     /* crop to fill while keeping content centered */
  display: block;
  /* Add a subtle frame so light/sky images don't blend into the page */
  border: 1px solid #d1d5db; /* light gray frame (approx. Tailwind gray-300) */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.02); /* hairline reinforcement on HiDPI */
  background-color: #fff; /* in case of transparent edges */
}

/* Detail page main images */
.clan-detail-img {
  width: 100%;           /* responsive width */
  max-width: 700px;      /* keep from becoming too wide on large screens */
  aspect-ratio: 4 / 3;   /* consistent presentation */
  object-fit: cover;     /* handle vertical images gracefully */
  display: block;
  margin-left: auto;     /* center the image */
  margin-right: auto;
  /* Optional: match list thumbnails with a subtle frame */
  border: 1px solid #e5e7eb; /* slightly lighter gray than thumbnails */
  background-color: #fff;
}

/* Optional: small caption tweak for consistency */
.clan-img-caption {
  text-align: center;
  margin-top: 0.5rem;
}

/* === End portrait and picture related css === */


/* Colors Borders */
.bd-color-001 {
    border-color: #E3E3E3;
}

/* jb button size */
.jb-btn {
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    margin: 4px 2px;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-block;
}


/* Colors General & Clans */
.ych {
    color: #7A004B;
    border: none;
}

.yc {
    color: #D59633;
}

.dongju {
    color: #5F9E72;
    border: none;
}

.pando {
    color: #836B61;
    border: none;
}

.daeje {
    color: #5683A7;
    border: none;
}

.sudan-section_title {
    color: #00450E;
}

.color-yellow-light {
    color: #FFFF80;
}

.color-red-light {
    color: #EB4034;
}

/* Neon Red (Red: #FF0000) / (Orange Red: #FF4433) */
.color-red {
    color: #FF3131;
}

/* Dark Red (Maroon: #800000) */
.color-brick {
    color: #8B0000;
}

.color-brown {
    color: #A04000;  /* brown */
}

.color-blue {
    color: #00008B;  /* Current: DarkBlue; Previous: #0275d8 */
}

.color-royal-blue {
    color: #4169E1;  /* Current: DarkBlue; Previous: #0275d8 */
}

.color-blue-boot {
    color: #0d6efd;
 }

.color-green {
    color: #008000;
}

.color-green-boot {
    color: #198754;
}

/* Colors Jokbo Background */
.bg-ych {
    background-color: #7A004B;
}

.bg-myfamily {
    background-color: #7A004B;
}

.bg-deceased {
    background-color: #666666;
}

.deceased {
    color: #666666;
}

/* Orchid (Purple: #800080)*/
.bg-in-laws {
    background-color: #8E44AD;   /* #57206B, #DA70D6 */
}

/* Pink Orange */
.in-laws {
   color: #8E44AD;
}

/* Pink Orange */
.bg-distaff {
    background-color: #6B4320;   /* #F89880 */
}

.distaff {
    color: #6B4320;
}

/* Jungle Green */
.bg-stories {
    background-color: #117A65;   /* #216B20 2AAABA */
}

.stories {
    color: #117A65;
}

/* Persimmon */
.bg-pictures {
    background-color: #EC5800;   /* #6B202F */
}

.pictures {
    color: #EC5800;
}

/* Sea Green */
.bg-cousin {
    background-color: #2E8B57;   /* #6B202F */
}

.cousin {
    color: #2E8B57;
}

.bg-relatives {
    background-color: #CD7F32;   /* #169C93 */
}

/* Bronze */
.relatives {
    color: #CD7F32;
}

/* Teal */
.bg-search {
    background-color: #008080;   /* #20466B */
}

.search {
    color: #008080;
}

/* Iris */
.bg-statistics {
    background-color: #5D3FD3;   /* #20666B */
}

.statistics {
    color: #5D3FD3;
}

.bg-neon-orange {
    color: #FF5F1F
}

/* membership */
.member-r {
    color: #7A004B;
}

.member-y {
    color: #5BA3CD;
}

.member-l {
    color: #DE6D84;
}

/* sudan admin colors (수단 관리자 컬러) */
/* 메뉴-수단 현황 및 내역 $green */

/* 양천허씨 Green*/
.sudan-a-member-h {
    color: #008000;
}

/* 양천허씨 배우자 Crimson */
.sudan-a-member-s {
    color: #DC143C;
}

/* 배우자 자녀(타성씨) 가족 Olive Green */
.sudan-a-member-sf {
    color: #808000;
}

.sudan-a-sudan-condition {
    color: #198754;
}

/* 메뉴-수단금 현황 및 내역 Cinnamon */
.sudan-a-reconcile-condition {
    color: #D27D2D;
}

/* 양천허씨 Green*/
.bg-sudan-a-member-h {
    background-color: #008000;
}

/* 양천허씨 배우자 Crimson */
.bg-sudan-a-member-s {
    background-color: #DC143C;
}

/* 배우자 자녀(타성씨) 가족 Olive Green */
.bg-sudan-a-member-sf {
    background-color: #808000;
}

/* 가족사진(family-picture) Bronze */
.bg-sudan-a-picture {
    background-color: #CD7F32;
}

/* 나의 이야기(my story) Pistachio */
.bg-sudan-a-mystory {
    background-color: #93C572;
}

/* Reconcile 수단금 대사 Cinnamon */
.bg-sudan-a-reconcile {
    background-color: #D27D2D;
}

/* 상세보기 $green */
.bg-sudan-a-detail {
    background-color: #198754;
}

/* 접수 Coral Pink */
.bg-sudan-p1 {
    background-color: #F88379;
}

/* 완납(입금) Cornflower Blue */
.bg-sudan-p2 {
    background-color: #6495ED;
}

/* 검토중 Amber */
.bg-sudan-p3 {
    background-color: #FFBF00;
}

/* 추가자료 Orchid */
.bg-sudan-p4 {
    background-color: #DA70D6;
}

/* 등재완료 Bootstrap Success */
.bg-sudan-p5 {
    background-color: #14A44D;
}

/* jokbo main page (my family line table head 고정) */
.my-line-scroll-box {
  height: 750px !important;
  max-height: 750px !important;
  overflow: auto !important;
  position: relative;
}

.my-line-scroll-body {
  min-width: max-content;
  padding: 0;
}

.my-line-sticky-table {
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.my-line-sticky-table thead th {
  position: sticky;
  top: 0;
  z-index: 20;
  background-color: #f8fafd;
  box-shadow: 0 1px 0 #dee2e6;
}

.my-line-sticky-table thead {
  position: relative;
  z-index: 20;
}
/* End jokbo main page (my family line table head 고정) */

/* Font Weight, Size */
.pdf-font-title {
    font-family: KoPubWorldDotum_Pro, Arial, Helvetica, sans-serif;
}

.pdf-bold {
    font-weight: bold;
}

.jb-font-size-0875 {
    font-size: 0.875em;
}

.jb-font-size-0775 {
    font-size: 0.775em;
}

.jb-font-size-0675 {
    font-size: 0.675em;
}

#button{
    display:block;
    margin:20px auto;
    padding:10px 30px;
    background-color:#eee;
    border:solid #ccc 1px;
    cursor: pointer;
}

#overlay{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2000; /* Raise(from 100 to 2000) above most UI to ensure visibility over content/navbars */
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.cv-spinner {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px #ddd solid;
    border-top: 4px #2e93e6 solid;
    border-radius: 50%;
    animation: sp-anime 0.8s infinite linear;
}

@keyframes sp-anime {
    100% {
      transform: rotate(360deg);
    }
}

.is-hide{
    display:none;
}


/* Global full-screen submit/navigation overlay (shared across admin pages) */
#hcgp-submit-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  z-index: 3000;
  display: none;
}

/* Avoid page scroll while overlay visible */
body[aria-busy="true"] {
  overflow: hidden;
}


/* input box heights */
/* 토의 내용과 같은 긴 문서를 input 하는 큰 박스 */
.custom-content-height {
    height: auto;
    min-height: 350px; /* 입력 필드의 최소 높이 */
    max-height: none; /* 필요에 따라 콘텐츠가 제한 없이 높이를 확장할 수 있도록 설정 */
}

/* memo 내용과 같은 작은 문서를 input 하는 작은 박스 */
.custom-memo-height {
    height: auto;
    min-height: 100px; /* or whatever is needed */
    max-height: none; /* 필요에 따라 콘텐츠가 제한 없이 높이를 확장할 수 있도록 설정 */
}

/* admin_clan/admin_clan_minute_create.html 에서 버튼 display 사용 */
#confirm-next-action {
    margin-top: 1rem; /* 버튼과 메시지 간의 공간 추가 */
    display: flex; /* Flexbox 사용 */
    justify-content: center; /* 중앙 정렬 */
    align-items: center; /* 세로 정렬 */
    gap: 1rem; /* 버튼 사이의 간격 추가 */
}

#confirm-next-action {
    display: none;
    z-index: 1055; /* Bootstrap modal과 동일 수준으로 맞춤 */
    position: relative; /* 부모 모달 내에서 위치 지정 */
}

/* 반응형 스타일 (큰 화면에서는 왼쪽 맞춤, 작은 화면에서는 중앙 정렬) */
/* admin_hcgp, admin_clan 관리자 홈페이지 현황판 설명에서 사용 */
/* 공통 스타일: Small devices by default */
.responsive-text-admin {
  display: block;
  text-align: center; /* 기본값: 가운데 정렬 */
  margin-left: 0; /* 들여쓰기를 없앰 */
}

/* Large screens (example: desktops) */
@media (min-width: 768px) {
  .responsive-text-admin {
    text-align: left; /* 큰 화면에서는 왼쪽 정렬 */
    margin-left: 20px; /* 들여쓰기 설정 */
  }
}
/* End 반응형 스타일 (큰 화면에서는 왼쪽 맞춤, 작은 화면에서는 중앙 정렬) */


/* 기본 Toast 스타일 (공통 속성) */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    text-align: center;
    border-radius: 5px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
    color: white; /* 기본 글자 색상 */
    opacity: 0; /* 처음에는 보이지 않음 */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

 /* Toast가 보이는 상태 */
    #toast.show {
        visibility: visible;
        -webkit-animation-name: fadein, fadeout;
        -webkit-animation-duration: 0.5s, 0.5s;
        -webkit-animation-delay: 0s, 2.5s;
        animation-name: fadein, fadeout;
        animation-duration: 0.5s, 0.5s;
        animation-delay: 0s, 2.5s;
    }

    /* Fade-in 애니메이션 */
    @-webkit-keyframes fadein {
        from {bottom: 0; opacity: 0;}
        to {bottom: 30px; opacity: 1;}
    }

/* Toast가 보이는 상태
#toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}*/

/* Fade-in 애니메이션 */
@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

/* Fade-out 애니메이션 */
@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

/* 성공 테마 */
.toast-success {
    background-color: #4CAF50;
}

/* 에러 테마 */
.toast-error {
    background-color: #F44336;
}

/* 경고 테마 */
.toast-warning {
    background-color: #FFC107;
}

/* 정보(일반적인 메시지) 테마 */
.toast-info {
    background-color: #2196F3;
}
/* End Toast container 스타일 */


/* ================================== */
/* 화면(display/screen)과 관련된 UI(CSS) */
/* ================================== */

/* 홈페이지 메인 화면 (common/main.html) */
    .main-board-wrap {
      height: 100%;
    }

    .main-board-header {
      min-height: 56px;
      margin-bottom: 0.35rem;
    }

    .main-board-title {
      margin-bottom: 0;
      line-height: 1.2;
      white-space: nowrap;
    }

    .main-board-title-group {
      display: flex;
      align-items: baseline;
      gap: 0.5rem;
      min-width: 0;
      flex-wrap: nowrap;
      white-space: nowrap;
      flex: 1 1 auto;
    }

    .main-board-period {
      color: #6c757d;
      font-size: 0.82rem;
      line-height: 1;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .main-board-action {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      white-space: nowrap;
      flex-shrink: 0;
      margin-left: 0.75rem;
    }

    .main-board-action .btn {
      white-space: nowrap;
    }

    .main-board-table {
      margin-top: 0;
    }

    .main-board-table thead th {
      vertical-align: middle;
    }

    @media (max-width: 991px) {
      .main-board-header {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.5rem;
      }

      .main-board-title-group {
        flex-wrap: wrap;
        white-space: normal;
      }

      .main-board-title {
        white-space: normal;
      }

      .main-board-period {
        white-space: normal;
      }

      .main-board-action {
        justify-content: flex-start;
        margin-left: 0;
      }
    }
/* End 홈페이지 메인 화면 (common/main.html) */


/* jbuser 아이디와 비밀번호 생성 시, 비밀번호 강도 및 체크리스트 */
#strength-bar {
  width: 100%;
  height: 10px;
  background-color: #e0e0e0; /* Default background for bar container */
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 1rem;
}

#bar {
  height: 100%;
  width: 0; /* Initially empty */
  background-color: red; /* Default color for weak password */
  transition: width 0.3s ease, background-color 0.3s ease; /* Smooth transition */
}


/*
  #strength-bar {
      width: 100%;
      height: 6px;
      background-color: #ddd;
      margin-top: 10px;
      position: relative;
      display: none; /* 기본적으로 숨김 */
/*  }

  #strength-bar span {
      display: block;
      height: 6px;
      background-color: red;
      width: 0%;
      transition: width 0.5s, background-color 0.5s;
  }

*/

#password-checklist {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}
#password-checklist li {
    margin-bottom: 5px;
}

/* 체크 표시를 녹색으로 설정 */
.check-success {
  color: green; /* 녹색 */
  font-size: 0.8em;
  font-weight: 400;
}

/* 실패 표시를 빨간색으로 설정 */
.check-error {
  color: red; /* 빨간색 */
  font-size: 0.8em;  /* 글자 크기를 80%로 줄임 */
  font-weight: 400; /* 굵기를 가볍게 설정 (가늘게) 300:Thin, 400:Regular 700:Bold */
}
/* End 비밀번호 강도 및 체크리스트 */


/* Custom select 스타일 정의 (유물과 유적에 사용) */
.custom-select {
  min-width: 200px; /* 한글 텍스트를 충분히 보기 위한 최소 폭 */
  max-width: 100%;  /* 작은 화면에서도 폭이 자동으로 줄어듬 */
  white-space: nowrap; /* 텍스트 줄바꿈 방지 */
}

.custom-select option {
  white-space: normal; /* 옵션 내부 텍스트에서 줄바꿈 허용 (멀티라인) */
}
/* End Custom select 스타일 정의 (유물과 유적에 사용) */


/* sudan spouse origin add */
/* Scoped styles only for the specific section */
#specific-container-sudan-spouse .row.mb-3 > .col-sm-2,
#specific-container-sudan-spouse .row.mb-3 > .col-sm-3 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* End sudan spouse origin add */


/* admin_hcgp  */

/* executive list (관리자 페이지/임원 리스트) */
table.table.table-sm td, table.table.table-sm th { padding-top: .35rem; padding-bottom: .35rem; }
.avatar-xs { width: 36px; height: 36px; object-fit: cover; border-radius: 50%; }
.name-cell { line-height: 1.1; }
.text-compact { line-height: 1.1; }
/* End executive list (관리자 페이지/임원 리스트) */

/* PDF Upload (관리자 페이지 PDF 업로드 화면에서 체크 박스 스위치 모양 고정) */
.homepage-pdf-switch {
          display: flex;
          align-items: center;
          gap: 0.5rem;
          padding-left: 0;
          margin-left: 0.25rem;
      }

  .homepage-pdf-switch .form-check-input {
      width: 2.75rem;
      height: 1.4rem;
      margin-left: 0;
      margin-top: 0;
      cursor: pointer;
      border-radius: 2rem;
  }

  .homepage-pdf-switch .form-check-label {
      margin-bottom: 0;
      cursor: pointer;
  }
/* End PDF Upload (관리자 페이지 PDF 업로드 화면에서 체크 박스 스위치 모양 고정) */


/* End admin_hcgp */


/* admin_clan executive list (임원 리스트) */
    .executive-action-wrap {
      display: flex;
      justify-content: flex-end;
    }

    .executive-action-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(88px, 1fr));
      gap: 0.5rem;
      width: 100%;
      max-width: 360px;
    }

    .executive-action-grid form,
    .executive-action-grid a {
      margin: 0;
    }

    .executive-action-btn {
      width: 100%;
      min-height: 38px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 0.65rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
      transition: all 0.2s ease-in-out;
      white-space: nowrap;
    }

    .executive-action-btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    }

    .btn-executive-toggle {
      color: #8a6d1d;
      border-color: #f3d27a;
      background-color: #fffaf0;
    }

    .btn-executive-toggle:hover {
      color: #6f5611;
      border-color: #e8c35b;
      background-color: #fff3d6;
    }

    .btn-executive-update {
      color: #0f4c81;
      border-color: #9dc4eb;
      background-color: #f4f9ff;
    }

    .btn-executive-update:hover {
      color: #0a3a63;
      border-color: #7fb0e2;
      background-color: #e8f3ff;
    }

    .btn-executive-delete {
      color: #a63d40;
      border-color: #efb1b4;
      background-color: #fff5f5;
    }

    .btn-executive-delete:hover {
      color: #842d30;
      border-color: #e58d92;
      background-color: #ffe9ea;
    }

    @media (max-width: 767px) {
      .executive-action-wrap {
        justify-content: stretch;
      }

      .executive-action-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
      }
    }

    @media (max-width: 575px) {
      .executive-action-grid {
        grid-template-columns: 1fr;
      }
    }
/* End admin_clan executive list (임원 리스트) */

/* Admin page title icon (increase size)  */
.admin-page-title-icon-large i {
    font-size: 2.0rem !important;
    line-height: 36px !important; /* Match default span height to center vertically */
    display: inline-block;
    vertical-align: middle;
}

/* 모바일(Top 메뉴가 접히는 lg 미만)에서 프로파일/장바구니/로그아웃 터치 간격 확보 */
@media (max-width: 991.98px) {
  .topbar-user-nav { margin-right: 0 !important; }
  /* 아이콘 링크: 터치 영역을 44px 이상으로 */
  .topbar-user-nav .topbar-touch-item { margin: .25rem 0; }
  .topbar-user-nav .topbar-touch-item a {
    display: inline-flex;
    align-items: center;
    min-width: 44px;
    min-height: 44px;
  }
  .topbar-user-nav .topbar-touch-item .d-inline-flex { align-items: center; }
  .topbar-user-nav .topbar-touch-item i { font-size: 1.5rem !important; }
  /* 로그아웃: 위 메뉴와 구분선 + 간격을 두고 오른쪽 정렬 */
  .topbar-user-nav .topbar-logout-item {
    align-self: stretch;
    text-align: right;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 0, 0, .1);
  }
  .topbar-user-nav .topbar-logout-item .btn { margin: 0; padding: .5rem 1rem; }
}

/* ========================================================
   Clan News & Bulletin Board Message Content (Rich Text / Quill)
   Ensure images never exceed the paragraph / container width
   ======================================================== */
.clan-news-content,
.bulletin-modal-body-content,
.bboard-content {
  word-break: break-word;
  overflow-wrap: break-word;
  overflow-x: hidden;
  max-width: 100%;
}

.clan-news-content img,
.bulletin-modal-body-content img,
.bboard-content img,
.clan-news-content p img,
.bulletin-modal-body-content p img,
.bboard-content p img,
.clan-news-content figure img,
.bulletin-modal-body-content figure img,
.bboard-content figure img,
.clan-news-content .ql-editor img,
.bulletin-modal-body-content .ql-editor img,
.bboard-content .ql-editor img,
.clan-news-content div img,
.clan-news-content span img,
.bulletin-modal-body-content div img,
.bulletin-modal-body-content span img,
.bboard-content div img,
.bboard-content span img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  object-fit: contain !important;
  border-radius: 0.375rem;
  box-sizing: border-box !important;
}

/* 첨부 이미지 박스 (Detail view 및 Modal) */
.clan-news-image-wrap,
.bboard-image-wrap {
  text-align: center;
  margin: 1.5rem 0;
  max-width: 100%;
  overflow-x: hidden;
}

.clan-news-image-wrap img,
.bboard-image-wrap img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: inline-block !important;
  object-fit: contain !important;
  border-radius: 0.375rem;
  box-sizing: border-box !important;
}

/* ========================================================
   HCGP Popups (Layer & Modal)
   ======================================================== */
.hcgp-popup-layer {
  position: fixed;
  max-width: 92vw;
  max-height: 85vh;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28), 0 0 1px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #ffffff;
  animation: hcgpPopupFadeIn 0.25s ease-out;
}

@keyframes hcgpPopupFadeIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hcgp-popup-header {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: grab;
  user-select: none;
}
.hcgp-popup-header:active {
  cursor: grabbing;
}
.hcgp-popup-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}
.hcgp-popup-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.35rem;
  line-height: 1;
  opacity: 0.85;
  cursor: pointer;
  padding: 0;
}
.hcgp-popup-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.hcgp-popup-body {
  padding: 18px;
  overflow-y: auto;
  flex: 1 1 auto;
  max-height: 55vh;
  line-height: 1.65;
  font-size: 0.93rem;
  word-break: break-word;
}
.hcgp-popup-body img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.hcgp-popup-link-area {
  padding: 0 18px 12px 18px;
  text-align: center;
}

.hcgp-popup-footer {
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #495057;
}

.hcgp-popup-options .hcgp-option-label {
  cursor: pointer;
  margin-bottom: 0;
  user-select: none;
  display: inline-flex;
  align-items: center;
}
.hcgp-popup-options .hcgp-option-label input {
  margin-right: 4px;
  cursor: pointer;
}

.btn-xs.hcgp-btn-close {
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.2rem;
}

/* Modal Popup Wrap */
.hcgp-popup-modal-wrap {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hcgp-modal-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
}
.hcgp-modal-box {
  position: relative;
  max-width: 92vw;
  max-height: 85vh;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #ffffff;
  animation: hcgpPopupFadeIn 0.25s ease-out;
}

@media (max-width: 576px) {
  .hcgp-popup-layer {
    left: 4vw !important;
    top: 70px !important;
    width: 92vw !important;
  }
}

/* ========================================================
   Common Utilities & Admin Layout Helpers
   ======================================================== */
.col-md-2dot4 {
  position: relative;
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}
@media (min-width: 768px) {
  .col-md-2dot4 {
    flex: 0 0 auto;
    width: 20%;
  }
}

.btn-xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.2rem;
}

.bg-soft-primary {
  background-color: rgba(13, 110, 253, 0.1);
}
.bg-success-soft {
  background-color: rgba(25, 135, 84, 0.15);
}
.bg-danger-soft {
  background-color: rgba(220, 53, 69, 0.15);
}

.cursor-pointer {
  cursor: pointer;
}

.custom-pills .nav-link {
  color: #555;
  border-radius: 0.4rem;
  padding: 0.5rem 1rem;
}
.custom-pills .nav-link.active {
  background-color: #7952b3;
  color: #fff;
}

table.table.table-sm.table-compact-sm td,
table.table.table-sm.table-compact-sm th,
table.table-compact td,
table.table-compact th {
  padding-top: .35rem;
  padding-bottom: .35rem;
}

.avatar-xs {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}
.name-cell {
  line-height: 1.1;
}
.text-compact {
  line-height: 1.1;
}

/* ========================================================
   Accounting Form Styles
   ======================================================== */
.accounting-form .form-label {
  font-weight: 600;
  font-size: 0.875rem;
}
.accounting-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.accounting-form select,
.accounting-form textarea {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* ========================================================
   Homepage User Signup Type Form
   ======================================================== */
.ych-signup-type-form input[type="text"]::placeholder,
.ych-signup-type-form input[type="email"]::placeholder {
  color: coral;
  opacity: 1;
  text-align: center;
}
.ych-signup-type-form input[type="text"]::-ms-input-placeholder,
.ych-signup-type-form input[type="email"]::-ms-input-placeholder {
  color: coral;
  text-align: center;
}
.ych-signup-type-form input[type="text"]:focus,
.ych-signup-type-form input[type="email"]:focus {
  border: 1px solid darkred;
}

/* ========================================================
   JB Signup Step Hidden
   ======================================================== */
#step-2, #step-3 {
  display: none;
}

/* ========================================================
   Family Tree (Pabo) Styles
   ======================================================== */
.family-tree-page {
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  border: solid 1px #000;
  height: 100vh;
  width: 100vw;
  padding: 10px;
  box-sizing: border-box;
  page-break-after: always;
  position: relative;
}

.family-tree-row {
  display: grid;
  grid-template-columns: 60px auto;
  border-bottom: 1px solid #ddd;
  align-items: center;
}

.family-tree-gen-order {
  writing-mode: vertical-rl;
  text-align: center;
  border-right: 1px solid #ddd;
  font-weight: bold;
}

.family-tree-members {
  display: flex;
  flex-direction: column;
  justify-content: start;
}

.family-tree-member {
  writing-mode: vertical-rl;
  text-align: center;
  margin: 0 10px;
}

/* ========================================================
   Sudan Invoice Styles
   ======================================================== */
.invoice-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.invoice-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #7A004B;
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 2px solid #7A004B;
}

.invoice-header {
  margin-bottom: 25px;
}

.invoice-header-item {
  margin-bottom: 8px;
}

.invoice-header-label {
  font-weight: 600;
  color: #333;
  min-width: 180px;
  display: inline-block;
}

.invoice-header-value {
  color: #000;
}

.invoice-num-large {
  font-size: 1.5em;
  font-weight: bold;
  color: #7A004B;
}

.invoice-due-large {
  font-size: 1.5em;
  font-weight: bold;
  color: #FF3131;
}

.invoice-container .table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.invoice-container .table td,
.invoice-container .table th {
  padding: 10px 12px;
  vertical-align: middle;
}

.item-detail {
  padding-left: 30px !important;
  color: #6c757d;
  font-size: 0.95em;
}

.total-row {
  font-weight: bold;
  font-size: 1.1em;
  background-color: #f8f9fa;
}

.notice-section {
  margin-top: 30px;
  padding: 15px;
  background-color: #fff9fc;
  border-left: 4px solid #7A004B;
}

.notice-title {
  color: #FF3131;
  font-weight: bold;
  margin-bottom: 10px;
}

.footer-copyright {
  margin-top: 30px;
  text-align: center;
  font-size: 0.85em;
  color: #6c757d;
}

/* ========================================================
   Admin Sudan Detail Styles
   ======================================================== */
.sudan-detail-page-content {
  min-height: calc(100vh - 200px);
  margin-bottom: 50px;
  flex: 1;
}



