/**
 * JCT 플랫폼 공통 스타일
 * - 초기 로딩 인디케이터, 페이드인, 로딩 중 스크롤 방지
 * - 모바일에서 상단 헤더가 오버레이/드로어에 가리지 않도록 z-index 보장
 * - 폼 필드 표준: form-input, form-select (디자인 가이드 3.1)
 * - 모달 본인확인 비밀번호: .jct-modal-pw-* (플랫폼 규정 3절, common.js init/reset)
 * - 테이블 가로 스크롤: 모바일에서 min-w 테이블 스크롤바 스타일
 * - Mac/Windows 렌더링 통일: appearance, box-sizing, leading, font-smoothing
 */

/* 웹 폰트: Pretendard (font-display: swap으로 렌더링 지연 방지) */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');

/* 1. 박스 모델 통일: 레이아웃 계산 오류 방지 */
*, *::before, *::after {
    box-sizing: border-box;
}

/* 2. 폰트 렌더링 통일: 맥/윈도우 글자 두께 차이 최소화 */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-family: 'Pretendard', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
}

/* 2.1 모바일 뷰포트: 푸터가 화면에 보이도록 실제 표시 영역 높이 사용 (iOS Safari 등에서 100vh가 주소창 포함해 커지는 문제 보정) */
body.h-screen {
    height: 100vh;
    height: 100dvh;
    min-height: 100dvh;
}

/* ===== Mac/Windows 크로스 플랫폼 렌더링 통일 ===== */
/* 3. Appearance 초기화: OS 기본 스타일 제거 (file, hidden, checkbox, radio, range 제외) */
button,
input:not([type="file"]):not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    line-height: 1.5;
}

/* 테이블 overflow 컨테이너: 모바일 가로 스크롤 시 얇은 스크롤바 (클래스 custom-x-scroll 추가 시 적용) */
.custom-x-scroll::-webkit-scrollbar { height: 6px; }
.custom-x-scroll::-webkit-scrollbar-track { background: transparent; }
.custom-x-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.custom-x-scroll::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* 폼 필드 표준: text input/select 높이 2.75rem 고정 (폼필드 기준)
   - 저해상도/윈도우 모니터에서 구분이 잘 되도록 border·배경 강화
   - 윈도우에서 높이가 줄어드는 문제: box-sizing, min-height, line-height로 고정
   - .jct-field, .jct-select: 디자인 가이드 15절 통합 표준 별칭 (동일 규격) */
.form-input,
.form-select,
.jct-field,
.jct-select {
    display: block;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 2.75rem;
    min-height: 2.75rem;
    padding: 0 1rem;
    line-height: 1.5;
    border-radius: 0.5rem;
    border: 1px solid #94a3b8;
    background: #f8fafc;
    color: #0f172a;
    font-size: 0.875rem;
    transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}
.form-input::placeholder,
.jct-field::placeholder { color: #94a3b8; }
textarea.form-input,
textarea.jct-field { min-height: 4rem; padding-top: 0.75rem; padding-bottom: 0.75rem; resize: vertical; }
.form-input:focus,
.form-select:focus,
.jct-field:focus,
.jct-select:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.375rem;
    letter-spacing: 0.025em;
}
.form-input:disabled,
.form-select:disabled,
.jct-field:disabled,
.jct-select:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    border-color: #94a3b8;
}

/* 정렬 폼필드: 숫자 입력 시 화살표(스피너) 삭제 - 저해상도에서 일관된 디자인 */
.form-input[inputmode="numeric"]::-webkit-outer-spin-button,
.form-input[inputmode="numeric"]::-webkit-inner-spin-button,
.jct-field[inputmode="numeric"]::-webkit-outer-spin-button,
.jct-field[inputmode="numeric"]::-webkit-inner-spin-button,
.code-sort-input::-webkit-outer-spin-button,
.code-sort-input::-webkit-inner-spin-button,
.sort-input::-webkit-outer-spin-button,
.sort-input::-webkit-inner-spin-button,
.specialty-sort-input::-webkit-outer-spin-button,
.specialty-sort-input::-webkit-inner-spin-button,
.brand-sort-input::-webkit-outer-spin-button,
.brand-sort-input::-webkit-inner-spin-button,
.sort-order-input::-webkit-outer-spin-button,
.sort-order-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.form-input[inputmode="numeric"],
.jct-field[inputmode="numeric"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.code-sort-input,
.sort-input,
.specialty-sort-input,
.brand-sort-input,
.sort-order-input,
.partner-fee-number-input {
    -moz-appearance: textfield;
    appearance: textfield;
}
.code-sort-input,
.sort-input,
.specialty-sort-input,
.brand-sort-input,
.sort-order-input {
    text-align: center;
}
.partner-fee-number-input::-webkit-outer-spin-button,
.partner-fee-number-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* 윈도우 저해상도: 폼 섹션 내 input 높이·테두리 강제 (디자인 가이드 3.6)
   - Tailwind 등과 충돌 시 !important로 우선 적용 */
.form-section-windows .form-input,
.form-section-windows input[type="text"].form-input,
.form-section-windows .jct-field,
.form-section-windows input[type="text"].jct-field {
    min-height: 2.75rem !important;
    height: 2.75rem !important;
    border: 1px solid #94a3b8 !important;
    background: #f8fafc !important;
    box-sizing: border-box !important;
}

/* 설명문(보조 문구): 폰트 크기·색상 규격 - 저해상도에서도 가독성 확보 */
.form-hint {
    font-size: 0.6875rem;
    line-height: 1.4;
    color: #475569;
    margin-top: 0.25rem;
}
.form-hint-warning {
    color: #b45309;
}

/* 리스트/테이블 빈 상태: 검색·필터 결과 없음 시 최소 5행 분량 여백 유지 (규정 6.6) */
.list-empty-state {
    min-height: 12.5rem;
    vertical-align: top;
}

/* partner/apply: 필수 입력 검증 실패 시 해당 섹션 강조 */
.partner-section-error {
    border-color: #dc2626 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
}

/* 개발자모드 DB 힌트: 운영 UI 방해 최소화 */
.dev-db-hint {
    font-size: 10px;
    line-height: 1.35;
    color: #94a3b8;
}
.dev-db-card {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 6px 8px;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
}
.dev-db-table-row td {
    border-top: 1px dashed #cbd5e1;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 10px;
    line-height: 1.35;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* 출력물에는 개발자모드 정보를 제외 */
@media print {
    .dev-db-hint,
    .dev-db-card,
    .dev-db-table-row {
        display: none !important;
    }
}

.form-select,
.jct-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.25rem;
}

/* 버튼 표준 (setting/product_categories 기준, 디자인 가이드 §5)
   - Mac/Windows 폰트 렌더링 차이: min-height + py 조합으로 클리핑 방지
   - whitespace-nowrap: 텍스트 줄바꿈으로 레이아웃 밀림 방지 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
    line-height: 1.5;
}
.btn-md { min-height: 2.75rem; padding: 0.5rem 1rem; font-size: 0.875rem; }
.btn-sm { min-height: 2rem; padding: 0.375rem 0.75rem; font-size: 0.75rem; font-weight: 700; }
.btn-xs { min-height: 1.75rem; padding: 0.25rem 0.5rem; font-size: 10px; font-weight: 700; }
.btn-icon { min-height: 2rem; min-width: 2rem; height: 2rem; width: 2rem; padding: 0; }
.btn-flex-1 { flex: 1; }

.btn-primary { background: #4f46e5; color: #fff; }
.btn-primary:hover { background: #4338ca; }
.btn-secondary { background: #f1f5f9; color: #475569; border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #e2e8f0; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-toolbar { background: #fff; color: #334155; border: 1px solid #e2e8f0; }
.btn-toolbar:hover { background: #f8fafc; }
.btn-toolbar-primary { background: #4f46e5; color: #fff; border: 1px solid #818cf8; }
.btn-toolbar-primary:hover { background: #4338ca; }
.btn-row-edit { background: transparent; color: #94a3b8; }
.btn-row-edit:hover { color: #3b82f6; background: #eff6ff; }
.btn-row-delete { background: transparent; color: #94a3b8; }
.btn-row-delete:hover { color: #ef4444; background: #fef2f2; }
.btn-row-edit, .btn-row-delete { border: 1px solid transparent; }
.btn-row-edit:hover, .btn-row-delete:hover { border-color: currentColor; }

body:has(#jct-initial-loader) {
    overflow: hidden;
}
#layout-header {
    position: relative;
    z-index: 110;
    flex-shrink: 0;
    min-height: 3.5rem;
}
#jct-initial-loader {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    z-index: 9999;
    transition: opacity 0.2s ease;
}
#jct-initial-loader .bar {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 2px;
    animation: jct-loader-pulse 1s ease-in-out infinite;
}
.jct-initial-loader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}
.jct-initial-loader-subtext {
    margin: 0;
    max-width: 22rem;
    padding: 0 1rem;
    font-size: 10px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.04em;
    text-align: center;
    line-height: 1.45;
}
.jct-initial-loader-subtext:empty {
    display: none;
}
@keyframes jct-loader-pulse {
    0%, 100% { opacity: 0.6; transform: scaleX(0.9); }
    50% { opacity: 1; transform: scaleX(1); }
}
.fade-in { animation: jct-fade-in 0.3s ease-out; }
@keyframes jct-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== JCT 컴팩트 입력폼 규정 (sku_product_group 기준, 최소 영역 사용) =====
 * 사용: 폼 컨테이너에 .jct-form-compact 추가 시 입력 필드·섹션·플로팅 라벨이 통일된 컴팩트 스타일 적용
 * - 입력 높이 2.25rem, 폰트 12px, 플로팅 라벨 적극 사용
 * - 섹션 패딩·여백 축소로 화면 공간 최소화
 */
.jct-form-compact .form-input-base {
    width: 100%;
    padding: 0 0.75rem;
    background-color: #f8fafc;
    border: 1px solid #94a3b8;
    border-radius: 0.375rem;
    font-size: 12px;
    transition: all 0.2s;
    display: block;
    color: #1e293b;
    box-sizing: border-box;
}
.jct-form-compact .form-input-base:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.jct-form-compact .h-md,
.jct-form-compact .form-input-base.h-md {
    height: 2.25rem;
    min-height: 2.25rem;
    font-size: 12px;
}
.jct-form-compact .floating-group {
    position: relative;
    width: 100%;
}
.jct-form-compact .floating-label {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    font-weight: 400;
    color: #64748b;
    pointer-events: none;
    transition: all 0.2s;
    z-index: 1;
    padding: 0 4px;
    background-color: transparent;
}
.jct-form-compact .form-input-base:focus + .floating-label,
.jct-form-compact .form-input-base:not(:placeholder-shown) + .floating-label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    background-color: #fff;
    color: #2563eb;
    font-weight: 600;
    left: 0.5rem;
    margin-left: -4px;
}
.jct-form-compact textarea.form-input-base + .floating-label { top: 1rem; transform: none; }
.jct-form-compact textarea.form-input-base:focus + .floating-label,
.jct-form-compact textarea.form-input-base:not(:placeholder-shown) + .floating-label {
    top: 0; transform: translateY(-50%) scale(0.85); background-color: #fff; color: #2563eb; left: 0.5rem;
}
.jct-form-compact .form-select {
    width: 100%;
    height: 2.25rem;
    min-height: 2.25rem;
    padding: 0 0.75rem;
    padding-right: 2rem;
    background-color: #f8fafc;
    border: 1px solid #94a3b8;
    border-radius: 0.375rem;
    font-size: 12px;
    box-sizing: border-box;
}
.jct-form-compact .form-select:focus {
    outline: none;
    border-color: #2563eb;
}
.jct-form-compact .form-label-ext {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}
/* 폼·섹션 안내문: set_code/sku_product_group 등과 동일 타이포 (text-[10px] text-slate-500) */
.jct-form-hint-text {
    font-size: 10px;
    line-height: 1.45;
    color: #64748b;
}
p.jct-form-hint-text {
    margin: 0;
}

/**
 * Dev DB / 컬럼·vis_code 인라인 힌트 (Master + DEV_DB_COLUMN_INFO_VISIBLE)
 * — 플랫폼 규정 platform-rules.mdc §17.1. 신규 페이지는 수치·색 중복 정의 없이 본 클래스만 부여.
 */
.jct-dev-db-col-hint {
    font-size: calc(0.6875rem - 3px);
    font-weight: 500;
    color: #94a3b8;
}

/* ===== JCT 본문 타이포 공통 (8 roles, digital_reqs_clinic·entity_edit 파일럿 기준) =====
   1 jct-body-ro-label   읽기 전용 항목명(dt·인라인 라벨)
   2 jct-body-ro-value    읽기 전용 값(본문 데이터)
   3 jct-body-hint        안내문(본문) / jct-body-hint--sm 보조 한 단계 작게
   4 jct-body-section-title 카드 안 소제목(uppercase 11px, digital_reqs_clinic 섹션 h2와 동일)
   5 jct-body-emphasis    강조 한 줄(상태·요약)
   6 jct-body-empty       빈 값·플레이스홀더
   7 jct-body-meta        부가 메타(ID·코드 꼬리표)
   8 jct-body-link        문장 속 링크(플랫폼 규정 §16)
   보조: jct-body-card-heading(카드 상단 바 제목), jct-body-block-title(폼 블록 제목·대소문자 유지),
        jct-body-nav-anchor(인스턴스 빠른 이동 칩), jct-body-hint-panel(틴트 박스 본문) */
.jct-body-ro-label {
    font-size: 0.75rem;
    line-height: 1.5;
    font-weight: 400;
    color: #64748b;
}
.jct-body-ro-value {
    font-size: 0.75rem;
    line-height: 1.5;
    color: #1e293b;
    min-width: 0;
    word-break: break-word;
}
.jct-body-hint {
    font-size: 0.6875rem;
    line-height: 1.5;
    color: #64748b;
    margin: 0;
}
.jct-body-hint--sm {
    font-size: 10px;
    line-height: 1.45;
    color: #64748b;
    margin: 0;
}
.jct-body-hint--warning {
    color: #92400e;
}
p.jct-body-hint,
p.jct-body-hint--sm {
    margin-top: 0;
}
.jct-body-hint-panel {
    font-size: 0.875rem;
    line-height: 1.625;
    color: #334155;
    margin: 0;
}
.jct-body-section-title {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    color: #1e293b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.jct-body-block-title {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    color: #1e293b;
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}
.jct-body-card-heading {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1e293b;
}
.jct-body-emphasis {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.375;
    color: #2563eb;
}
.jct-body-empty {
    font-size: 0.75rem;
    color: #94a3b8;
}
.jct-body-meta {
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.5;
    color: #64748b;
}
.jct-body-link {
    color: #2563eb;
    font-weight: 500;
    text-decoration: underline;
}
.jct-body-link:hover {
    text-decoration: none;
}
.jct-body-nav-anchor {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.jct-body-nav-anchor:hover {
    border-color: #60a5fa;
    background: #eff6ff;
    color: #1d4ed8;
}
.jct-readonly-kv-row {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    width: 100%;
}
@media (min-width: 640px) {
    .jct-readonly-kv-row {
        flex-direction: row;
        align-items: baseline;
        gap: 0.5rem;
    }
}

.jct-form-compact .section-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.5rem;
    position: relative;
    overflow: hidden;
}
.jct-form-compact .rule-title {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 0.35rem;
}
.jct-form-compact .form-input-base.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

/* ===== JCT 로딩 N안 (전환·풀스크린 대기, 플랫폼 규정 §3.4) ===== */
@keyframes jct-loading-n-spin {
    to { transform: rotate(360deg); }
}
@keyframes jct-loading-n-pop {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.06); opacity: 1; }
}
.jct-loading-n-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jct-loading-n-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 15px solid #e0e7ff;
    border-top-color: #2563eb;
    animation: jct-loading-n-spin 1s linear infinite;
}
.jct-loading-n-letters {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 1px;
    align-items: center;
    justify-content: center;
}
.jct-loading-n-letter {
    display: inline-block;
    font-weight: 900;
    font-size: 1.05rem;
    color: #1e3a8a;
    animation: jct-loading-n-pop 0.9s ease-in-out infinite;
}
.jct-loading-n-letter:nth-child(1) { animation-delay: 0s; }
.jct-loading-n-letter:nth-child(2) { animation-delay: 0.12s; }
.jct-loading-n-letter:nth-child(3) { animation-delay: 0.24s; }

/* Dev-only: stable element keys for i18n / Cursor (Instance DEV_PAGE_ELEMENT_LABELS_VISIBLE + master policy) */
body.jct-dev-page-el-labels-on [data-jct-dev-el] {
    position: relative;
}
body.jct-dev-page-el-labels-on [data-jct-dev-el]::after {
    content: attr(data-jct-dev-el);
    position: absolute;
    top: 0.125rem;
    right: 0.25rem;
    z-index: 2;
    max-width: min(100%, 14rem);
    padding: 0.1rem 0.3rem;
    border-radius: 0.25rem;
    border: 1px solid #cbd5e1;
    background: rgba(241, 245, 249, 0.96);
    color: #475569;
    font-size: 7px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    pointer-events: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
/* guide/pros 의뢰 단계 셀: 전체 키 배지는 레이아웃을 가리므로 비활성 — 짧은 키는 .gr-step-dev-el-line 행에만 표시 */
body.jct-dev-page-el-labels-on #reqs-form-main-card .gr-step-toolbar .gr-step-cell[data-jct-dev-el]::after,
body.jct-dev-page-el-labels-on #guide-reqs-main-card .gr-step-toolbar .gr-step-cell[data-jct-dev-el]::after {
    content: none;
}
#reqs-form-main-card .gr-step-toolbar .gr-step-dev-el-line,
#guide-reqs-main-card .gr-step-toolbar .gr-step-dev-el-line {
    display: none;
    margin-top: 0.25rem;
    padding-top: 0.125rem;
    border-top: 1px dashed #e2e8f0;
    font-weight: 600;
    font-size: 8px;
    line-height: 1.35;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    color: #64748b;
    white-space: normal;
    word-break: break-word;
    max-width: 100%;
}

/* Sidebar sits in a row below #layout-header; avoid duplicate top offset (was md:top-14) and fill row height */
@media (min-width: 768px) {
    #layout-sidebar {
        display: flex;
        flex-direction: column;
        min-height: 0;
    }
}

/* ===== 모달·본인확인용 비밀번호 입력 (안전 비밀번호 / 계정 비밀번호) =====
 * 마크업·JS: 플랫폼 규정 §3 — JCT_COMMON.initModalSensitivePasswordFields(root)
 * 우측: 클리어(X) → 눈 아이콘(표시/숨김). 입력과 겹치지 않도록 padding-right 확보.
 */
.jct-modal-pw-wrap {
    position: relative;
    width: 100%;
}
.jct-modal-pw-wrap .jct-modal-pw-input {
    width: 100%;
    min-height: 2.25rem;
    height: 2.25rem;
    padding: 0 0.75rem;
    padding-right: 4.75rem;
    box-sizing: border-box;
    border: 1px solid #475569;
    border-radius: 0.375rem;
    background: #f8fafc;
    font-size: 12px;
    color: #1e293b;
    line-height: 1.25;
    transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.jct-modal-pw-wrap .jct-modal-pw-input:focus {
    outline: none;
    border-color: #2563eb;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.jct-modal-pw-wrap .jct-modal-pw-clear {
    position: absolute;
    right: 2.35rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 0.25rem;
    cursor: pointer;
    z-index: 3;
}
.jct-modal-pw-wrap .jct-modal-pw-clear:hover {
    color: #0f172a;
    background: #e2e8f0;
}
.jct-modal-pw-wrap .jct-modal-pw-clear[hidden] {
    display: none !important;
}
.jct-modal-pw-wrap .jct-modal-pw-toggle {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    color: #64748b;
    border-radius: 0.25rem;
    cursor: pointer;
    z-index: 4;
}
.jct-modal-pw-wrap .jct-modal-pw-toggle:hover {
    color: #334155;
    background: #f1f5f9;
}
