* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --bg-color: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-color: #1e293b;
    --text-secondary: #64748b;
    --hover-bg: #f1f5f9;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-color);
}

/* 건물 검색 섹션 */
.building-search-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.building-search-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.building-search-wrapper {
    position: relative;
    max-width: 700px;
}

.building-autocomplete-container {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.building-autocomplete-container input {
    flex: 1;
    min-width: 300px;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s;
}

#building-search-btn {
    padding: 14px 28px;
    white-space: nowrap;
}

.building-autocomplete-container input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    background: white;
}

/* 건물 검색 컨테이너 (버튼 방식) */
.building-search-container {
    display: flex;
    gap: 12px;
    max-width: 700px;
}

.building-search-container input {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s;
}

.building-search-container input:focus {
    outline: none;
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
    background: white;
}

.building-search-container button {
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.autocomplete-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.autocomplete-item {
    padding: 14px 18px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: #f8f9ff;
}

.autocomplete-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.autocomplete-building-name {
    font-weight: 600;
    font-size: 15px;
    color: #2d3748;
}

.autocomplete-property-type {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.property-type-apt {
    background: #e0f2fe;
    color: #0369a1;
}

.property-type-villa {
    background: #fef3c7;
    color: #a16207;
}

.property-type-officetel {
    background: #e9d5ff;
    color: #7e22ce;
}

.property-type-dagagu {
    background: #dcfce7;
    color: #15803d;
}

.autocomplete-address {
    font-size: 13px;
    color: #64748b;
}

.autocomplete-no-results {
    padding: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.autocomplete-loading {
    padding: 20px;
    text-align: center;
    color: #667eea;
    font-size: 14px;
}

.search-hint {
    display: block;
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.filter-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filter-section h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--text-color);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item.full-width {
    grid-column: 1 / -1;
}

.filter-item label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-color);
}

.filter-item input[type="text"],
.filter-item input[type="number"],
.filter-item select {
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
    background: var(--card-bg);
}

.filter-item input[type="text"]:focus,
.filter-item input[type="number"]:focus,
.filter-item select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-item input:disabled,
.filter-item select:disabled {
    background-color: var(--hover-bg);
    cursor: not-allowed;
    opacity: 0.6;
}

.filter-item small {
    margin-top: 4px;
    font-size: 12px;
    color: var(--text-secondary);
}

.checkbox-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

/* 체크박스 그리드 스타일 */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--bg-color);
}

.checkbox-grid .checkbox-label {
    font-size: 13px;
    margin: 0;
    padding: 4px 0;
}

.checkbox-grid .placeholder-text {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 20px;
}

/* 시군구별 그룹 스타일 */
.sigungu-group {
    grid-column: 1 / -1;
    margin: 16px 0 8px 0;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.sigungu-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.sigungu-controls {
    display: flex;
    gap: 8px;
}

.control-btn {
    padding: 2px 8px;
    font-size: 11px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
}

.control-btn:hover {
    opacity: 0.8;
}

.control-btn.secondary {
    background: var(--secondary-color);
}

/* 읍면동 체크박스는 checkbox-grid 안에서 컨텐츠로 배치 */
#umd-checkboxes.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 8px;
}

#umd-checkboxes .umd-checkboxes {
    display: contents;
}

#umd-checkboxes .checkbox-label {
    font-size: 13px;
    padding: 6px 8px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

#umd-checkboxes .checkbox-label:hover {
    background-color: var(--hover-bg);
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #475569;
    transform: translateY(-1px);
}

.result-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.result-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.result-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 16px;
    background: var(--hover-bg);
    border-radius: 20px;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message {
    padding: 16px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--danger-color);
}

.table-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 600px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    table-layout: fixed;
    min-width: 1550px;
}

/* 테이블 컬럼 너비 설정 - 동·호명 추가 후 재조정 */
table th:nth-child(1), table td:nth-child(1) { width: 70px; min-width: 70px; }  /* 구분 */
table th:nth-child(2), table td:nth-child(2) { width: 50px; min-width: 50px; }  /* 시도 */
table th:nth-child(3), table td:nth-child(3) { width: 70px; min-width: 70px; }  /* 시군구 */
table th:nth-child(4), table td:nth-child(4) { width: 85px; min-width: 85px; } /* 읍면동리 */
table th:nth-child(5), table td:nth-child(5) { width: 75px; min-width: 75px; }  /* 지번 */
table th:nth-child(6), table td:nth-child(6) { width: 90px; min-width: 90px; } /* 동·호명 */
table th:nth-child(7), table td:nth-child(7) { width: 120px; min-width: 120px; }  /* 건물명 */
table th:nth-child(8), table td:nth-child(8) { width: 40px; min-width: 40px; }  /* 층 */
table th:nth-child(9), table td:nth-child(9) { width: 70px; min-width: 70px; }  /* 면적 */
table th:nth-child(10), table td:nth-child(10) { width: 60px; min-width: 60px; }  /* 전월세구분 */
table th:nth-child(11), table td:nth-child(11) { width: 100px; min-width: 100px; } /* 보증금 */
table th:nth-child(12), table td:nth-child(12) { width: 70px; min-width: 70px; } /* 월세 */
table th:nth-child(13), table td:nth-child(13) { width: 80px; min-width: 80px; } /* 계약년월 */
table th:nth-child(14), table td:nth-child(14) { width: 50px; min-width: 50px; } /* 계약일 */
table th:nth-child(15), table td:nth-child(15) { width: 70px; min-width: 70px; } /* 건축년도 */
table th:nth-child(16), table td:nth-child(16) { width: 60px; min-width: 60px; } /* 계약구분 */
table th:nth-child(17), table td:nth-child(17) { width: 120px; min-width: 120px; } /* 계약기간 */
table th:nth-child(18), table td:nth-child(18) { width: 90px; min-width: 90px; } /* 종전계약보증금 */
table th:nth-child(19), table td:nth-child(19) { width: 70px; min-width: 70px; } /* 종전계약월세 */
table th:nth-child(20), table td:nth-child(20) { width: 90px; min-width: 90px; } /* 갱신요구권사용 */

/* 건물명 컬럼의 텍스트 처리 */
table th:nth-child(7), table td:nth-child(7) {
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
}

thead {
    background: var(--hover-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

thead th {
    padding: 8px 4px;
    text-align: left;
    font-weight: 600;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

tbody td {
    padding: 8px 4px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 건물명 컬럼만 줄바꿈 허용 */
tbody td:nth-child(6) {
    white-space: normal;
    word-wrap: break-word;
}

tbody tr:hover {
    background: var(--hover-bg);
}

tbody tr:last-child td {
    border-bottom: none;
}

.no-data {
    text-align: center;
    padding: 40px !important;
    color: var(--text-secondary);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-apt {
    background: #fef3c7;
    color: #92400e;
}

.badge-villa {
    background: #dbeafe;
    color: #1e40af;
}

.badge-dagagu {
    background: #d1fae5;
    color: #065f46;
}

.badge-officetel {
    background: #f3e8ff;
    color: #7c3aed;
}

.badge-lh {
    background: #dcfce7;
    color: #166534;
    font-weight: 600;
    margin-right: 4px;
    cursor: help;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
}

.badge-lh:hover {
    background: #bbf7d0;
    text-decoration-style: solid;
}

.lh-help-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    background: #16a34a;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    cursor: help;
    vertical-align: middle;
}

.lh-help-icon:hover {
    background: #15803d;
}

.badge-jeonse {
    background: #dbeafe;
    color: #1e40af;
}

.badge-wolse {
    background: #fee2e2;
    color: #991b1b;
}

.badge-period {
    background: #f0fdf4;
    color: #166534;
    font-size: 11px;
    padding: 3px 8px;
    margin-right: 6px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    header {
        padding: 20px;
    }

    header h1 {
        font-size: 22px;
    }

    .filter-section {
        padding: 20px;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    table {
        font-size: 11px;
    }

    thead th,
    tbody td {
        padding: 8px 4px;
    }
}

/* 테이블 스크롤 힌트 */
.table-container::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--hover-bg);
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* 오피스텔 기준시가 툴팁 */
.deposit-with-standard-price {
    cursor: pointer;
}

/* 아파트/연립다세대 공동주택가격 툴팁 */
.deposit-with-apartment-price {
    cursor: pointer;
}

/* 호실 확인 버튼 스타일 */
.unit-info-btn {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.unit-info-btn:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unit-info-btn:active:not(:disabled) {
    transform: translateY(0);
}

.unit-info-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.unit-info-cell {
    text-align: center;
    font-size: 12px;
}

.unit-info-success {
    color: #059669;
    font-weight: 600;
}

/* 호실 툴팁 스타일 */
.unit-with-tooltip {
    cursor: help;
    border-bottom: 1px dotted #059669;
    position: relative;
}

.unit-with-tooltip:hover::after {
    content: attr(title);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    background: #1e293b;
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 14px;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 600px;
    min-width: 250px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    line-height: 1.8;
    pointer-events: none;
}

/* 동호명 컬럼 물음표 아이콘 */
.unit-info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    border-radius: 50%;
    background: #94a3b8;
    color: white;
    font-size: 11px;
    font-weight: bold;
    margin-left: 4px;
    cursor: help;
    position: relative;
    vertical-align: middle;
}

.unit-info-icon:hover {
    background: #64748b;
}

.unit-info-icon:hover::after {
    content: '건축물대장을 통해 추정한 호실명입니다.';
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 99999;
    background: #1e293b;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    white-space: nowrap;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    font-weight: normal;
    pointer-events: none;
}

/* 건물명 클릭 가능 스타일 */
.building-name-clickable {
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.2s;
}

.building-name-clickable:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: var(--card-bg);
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-close {
    color: var(--text-secondary);
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-color);
}

.gwanpe-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
    margin-right: 12px;
}

.gwanpe-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.gwanpe-btn:active {
    transform: translateY(0);
}

/* 탭 네비게이션 */
.modal-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    background-color: #f8fafc;
    padding: 0 20px;
    flex-shrink: 0;
}

.tab-btn {
    padding: 14px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* 탭 콘텐츠 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 소유자 정보 스타일 */
#owner-info-content {
    padding: 20px 0;
}

.owner-unit-group {
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    background: white;
}

.owner-unit-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 20px;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.owner-unit-title {
    font-size: 16px;
}

.owner-count {
    font-size: 14px;
    opacity: 0.9;
}

/* 테이블 스타일 */
.owner-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.owner-info-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    table-layout: fixed;
}

.owner-info-table th,
.owner-info-table td {
    padding: 6px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-size: 11px;
}

.owner-info-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--text-color);
}

.owner-info-table td {
    color: var(--text-secondary);
}

.owner-info-table tr:last-child td {
    border-bottom: none;
}

.owner-info-table tbody tr:hover {
    background-color: var(--hover-bg);
}

.modal-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.modal-loading {
    text-align: center;
    padding: 40px;
}

.modal-error {
    padding: 16px;
    background: #fee2e2;
    color: #991b1b;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--danger-color);
}

.modal-table-container {
    overflow-x: auto;
    overflow-y: visible;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.modal-table-container table {
    font-size: 12px;
    table-layout: fixed;
}

/* 모달 테이블 컬럼 너비 고정 */
#modal-results-table th:nth-child(1), #modal-results-table td:nth-child(1) { width: 80px !important; min-width: 80px; max-width: 80px; }  /* 계약년월 */
#modal-results-table th:nth-child(2), #modal-results-table td:nth-child(2) { width: 50px !important; min-width: 50px; max-width: 50px; }  /* 계약일 */
#modal-results-table th:nth-child(3), #modal-results-table td:nth-child(3) {
    width: 90px !important;
    min-width: 90px;
    max-width: 90px;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}  /* 동·호명 */
#modal-results-table th:nth-child(4), #modal-results-table td:nth-child(4) { width: 50px !important; min-width: 50px; max-width: 50px; }  /* 층 */
#modal-results-table th:nth-child(5), #modal-results-table td:nth-child(5) { width: 70px !important; min-width: 70px; max-width: 70px; }  /* 면적 */
#modal-results-table th:nth-child(6), #modal-results-table td:nth-child(6) { width: 130px !important; min-width: 130px; max-width: 130px; white-space: nowrap; }  /* 구분 */
#modal-results-table th:nth-child(7), #modal-results-table td:nth-child(7) { width: 70px !important; min-width: 70px; max-width: 70px; }  /* 보증금 */
#modal-results-table th:nth-child(8), #modal-results-table td:nth-child(8) { width: 50px !important; min-width: 50px; max-width: 50px; }  /* 월세 */
#modal-results-table th:nth-child(9), #modal-results-table td:nth-child(9) { width: 60px !important; min-width: 60px; max-width: 60px; }  /* 건축년도 */
#modal-results-table th:nth-child(10), #modal-results-table td:nth-child(10) { width: 60px !important; min-width: 60px; max-width: 60px; }  /* 계약구분 */
#modal-results-table th:nth-child(11), #modal-results-table td:nth-child(11) { width: 120px !important; min-width: 120px; max-width: 120px; }  /* 계약기간 */
#modal-results-table th:nth-child(12), #modal-results-table td:nth-child(12) { width: 70px !important; min-width: 70px; max-width: 70px; }  /* 종전보증금 */
#modal-results-table th:nth-child(13), #modal-results-table td:nth-child(13) { width: 60px !important; min-width: 60px; max-width: 60px; }  /* 종전월세 */
#modal-results-table th:nth-child(14), #modal-results-table td:nth-child(14) { width: 70px !important; min-width: 70px; max-width: 70px; }  /* 갱신권사용 */
/* Updated 2025-11-07 18:52:19 - Owner table width fix */


/* 호실 확인 버튼 스타일 */
.unit-check-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.unit-check-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.unit-check-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.unit-check-btn:active:not(:disabled) {
    transform: translateY(0);
}

