.main-container {
    background-color: #F8FAFD;
    min-height: 100vh;
    height: 100%;
}

/* ── 프로젝트 생성 standalone 상단 바 ────────────────── */

.create-standalone-footer {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    margin: 0 0 12px;
    padding: 0 0 12px;
    background: #F8FAFD;
    border-bottom: 1px solid #e9ecef;
}

.create-standalone-steps {
    display: flex;
    align-items: center;
    gap: 6px;
}

.create-standalone-steps .wizard-step-sep {
    color: #9ca3af;
    font-size: 0.75rem;
}

.create-standalone-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.create-page-layout {
    width: min(100%, 1280px);
    min-width: 0;
    margin: 0 auto;
}

.create-page-layout #project-form-container {
    width: 100%;
    margin: 0;
}

body.app-embedded-page .app-content > .create-page-scroll {
    padding-top: 0 !important;
}

body.app-embedded-page .create-page-layout .project-form-shell {
    margin-top: 0;
}

@media (max-width: 768px) {
    .create-standalone-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .create-standalone-steps {
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .create-standalone-actions {
        justify-content: flex-end;
    }
}

#project-list-container, #project-form-container {
    padding: 50px;
    min-width: 900px;
}

.project-form {
    padding: 50px;
    border-collapse: collapse;
    background-color: #FFFFFF;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.project-table-header, .project-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

/* th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
} */

.button {
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    color: white;
    cursor: pointer;
}
.edit-button {
    background-color: #333;
}
.delete-button {
    background-color: #666;
}
.yes {
    color: green;
}
.no {
    color: red;
}

.project-list-table tbody tr:hover .project-open-cell {
    text-decoration: underline;
    cursor: pointer;
}

.project-list-table tbody tr:hover {
    cursor: pointer;
}


.patent-detail {
    padding: 20px;
}

.patent-detail h1 {
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}

.patent-detail h2 {
    /* em은 부모 요소의 font-size를 기준으로 하는 상대적인 크기 단위입니다.
       1em은 부모의 font-size와 동일하며, 1.2em은 부모 크기의 1.2배입니다. */
    /* font-size: 1.2em; */
    margin-top: 40px;
}

.patent-detail dl {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 10px;
    margin: 20px 0;
}

.patent-detail dt {
    font-weight: bold;
    color: #333;
    padding: 8px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.patent-detail dd {
    margin: 0;
    padding: 8px;
    border-bottom: 1px solid #eee;
}

.patent-detail dd[repeat] {
    display: inline-block;
    margin-right: 10px;
    background: #f0f0f0;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 특허 상세 정보에서 국가 코드, 국가 이름, 공개 번호를 제외한 모든 span 요소를 숨김 처리 */
.patent-detail dl span:not(.country-code)
:not(.country-name)
:not(.publication-number) {
    display: none;
}

.patent-detail meta {
    display: none;
}

.patent-detail dt + dd {
    display: block;
}


.patent-detail .claims-content .claim-item {
    margin-bottom: 1rem;
    display: flex;
    gap: 0.5rem;
}

.patent-detail .claims-content ol.claims > li,
.patent-detail .claims-content ul.claims > li {
    list-style: none;
}

.patent-detail .claims-content .claim-item[paragraph_index]::before {
    content: attr(paragraph_index) ". ";
    font-weight: 600;
    margin-right: 0.35rem;
    flex: 0 0 auto;
}

.patent-detail .claims-content .claim-dependent {
    margin-left: 2rem;
    position: relative;
}

/* .patent-detail .claims-content .claim-item .claim-number {
    flex-shrink: 0;
    min-width: 2rem;
}

.patent-detail .claims-content .claim-item .claim-content {
    flex: 1;
} */

/* 선택사항: 종속항 시각적 표시 */
.patent-detail .claims-content .claim-item.claim-dependent::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.5em;
    width: 0.5rem;
    height: 1px;
    background-color: #ccc;
}

.patent-detail .claims-content .claim-item.claim-dependent[paragraph_index]::before {
    content: attr(paragraph_index) ". ";
    position: static;
    width: auto;
    height: auto;
    background: transparent;
}

/* Description 부분 스타일 */
.patent-detail .description-content div {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.patent-detail .para-num {
    color: #666;
    margin-bottom: 5px;
}

.patent-detail .description-text {
    padding-left: 20px;
}

/* 키워드 관리 UI 개선 스타일 - 검색 결과 표시 스타일 제거됨 */

.keyword-container {
    max-height: 400px;
    overflow-y: auto;
}

.keyword-container::-webkit-scrollbar {
    width: 6px;
}

.keyword-container::-webkit-scrollbar-thumb {
    background-color: #dee2e6;
    border-radius: 3px;
}

.keyword-container::-webkit-scrollbar-thumb:hover {
    background-color: #adb5bd;
}

/* 버튼 그룹 간격 조정 */
.btn-group .btn {
    margin-right: 2px;
}

.btn-group .btn:last-child {
    margin-right: 0;
}

/* 키워드 행 호버 효과 */
.keyword-container .d-flex.align-items-center.justify-content-between:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

/* 검색 입력 필드 스타일링 */
.input-group-sm .form-control {
    font-size: 0.85rem;
}

/* 정렬 선택 박스 스타일링 */
.form-select-sm {
    min-width: 100px;
}

/* 색상 그리드 개선 */
.color-grid {
    max-width: 300px;
}

.color-cell {
    position: relative;
    transition: all 0.2s ease;
}

.color-cell:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.color-cell.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    font-weight: bold;
}

/* ── 대시보드 홈 섹션 간격 ────────────────────────────── */

/* app-shell.css의 .app-dashboard-home에 flex 레이아웃 추가 */
.app-dashboard-home {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* ── 즐겨찾기 섹션 ───────────────────────────────────── */

/* 즐겨찾기 3열 그리드 */
.project-dashboard-fav-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width: 900px) {
    .project-dashboard-fav-grid {
        grid-template-columns: 1fr;
    }
}

/* 섹션 헤딩 행: 레이블 + 건수 + 더보기 한 줄 왼쪽 정렬 */
.project-dashboard-heading-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}

.project-dashboard-section-heading {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

/* 메뉴바 모든 아이콘 버튼 테두리/배경 제거 */
.app-project-menubar .app-project-menu-icon-tab {
    border: none;
    background: transparent;
}

.app-project-menubar .app-project-menu-icon-tab:hover,
.app-project-menubar .app-project-menu-icon-tab[aria-expanded="true"] {
    background: rgba(0, 0, 0, 0.06);
    box-shadow: none;
}

/* 진행중 섹션 (전체 너비, 3단 그리드) */
.project-dashboard-active-wrap { }

/* 완료된 섹션 (전체 너비) */
.project-dashboard-completed-wrap { }

/* 더보기 버튼 (헤딩 행 인라인) */
.project-dashboard-more-btn {
    font-size: 0.8rem;
    color: #6c757d;
    padding: 0 2px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-dashboard-more-btn:hover {
    color: var(--bs-primary, #0d6efd);
}

/* 완료된 항목: 연하게 */
.project-dashboard-item-completed {
    opacity: 0.65;
}

.project-dashboard-item-completed:hover {
    opacity: 1;
}

/* 건수 배지 */
.fs-badge {
    font-size: 0.75rem;
}

/* ── 목록 뷰 헤더 ────────────────────────────────────── */

.project-list-back-btn {
    color: #6c757d;
    padding: 0 0.4rem 0 0;
    font-size: 1rem;
    line-height: 1;
}

.project-list-back-btn:hover {
    color: #212529;
}

.project-list-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212529;
}

/* ── 프로젝트 행 ─────────────────────────────────────── */

.project-list-main-col {
    min-width: 260px;
}

.project-list-date-col {
    width: 90px;
    white-space: nowrap;
}

.project-list-open-col {
    width: 64px;
}

.project-list-title-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.project-list-title-text {
    font-weight: 500;
    font-size: 0.92rem;
    word-break: break-word;
}

.project-list-date-cell {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
}

.project-list-open-btn {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
}

/* 완료된 탭 행: 연하게 */
.project-list-row-completed {
    opacity: 0.65;
}

.project-list-row-completed:hover {
    opacity: 1;
}

/* ── 배지 공통 ───────────────────────────────────────── */

.project-badge {
    display: inline-flex;
    align-items: center;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

/* 상태 배지 — 진행중 그룹 (파랑 계열) */
.project-badge-active {
    background-color: #dbeafe;
    color: #1d4ed8;
}

/* 상태 배지 — 완료 그룹 (초록 계열) */
.project-badge-completed {
    background-color: #dcfce7;
    color: #166534;
}

/* ── 키워드 하이라이트 기본 스타일 - 기존 텍스트 스타일 유지 */
mark.keyword-highlight {
    border-radius: 2px;
    padding: 0; /* 패딩 제거로 원본 레이아웃 유지 */
    margin: 0; /* 마진도 제거 */
    border: none; /* 테두리 제거 */
    color: inherit; /* 기존 텍스트 색상 유지 */
    font-weight: inherit; /* 기존 폰트 굵기 유지 */
    font-style: inherit; /* 기존 폰트 스타일 유지 */
    text-decoration: inherit; /* 기존 텍스트 장식 유지 */
    letter-spacing: inherit; /* 기존 글자 자간 유지 */
    font-size: inherit; /* 기존 폰트 크기 유지 */
    line-height: inherit; /* 기존 줄 높이 유지 */
    display: inline; /* 인라인 유지로 레이아웃 변경 방지 */
}
