/*
[POSH 투자정보 재무정보 전용 스타일 전체 파일 구조]
public/investor/finance/investor_finance.css  - 재무정보 전용 스타일
page/site/investor/investor_finance_view.php  - 재무정보 화면에서 사용
app/services/PoshDartRepository.php           - 감사보고서 목록 조회
worker/opendart_sync_reports.php              - OpenDART 감사보고서 목록 동기화

20260402 T1745
- 2단계 public 파일 선생성 작업입니다.
- 아직 상세 디자인 확정 전이므로 파일명과 경로만 먼저 고정했습니다.

2026-04-29 T2258
- T2251의 site-shell 분리형 구조와 임의 카드/점선 박스가 실제 공개 페이지 가이드와 맞지 않아 정리했습니다.
- company_greeting.css의 shell·crumbs·intro 기준을 투자정보 페이지에 맞게 치환했습니다.

2026-04-29 T2317
- DART 공시자료 기준, 최근 감사보고서를 34px 대제목에서 하위 탭 메뉴로 조정했습니다.
- 탭 글자는 메뉴얼 53)의 business_tab 역할값인 15px/800을 적용했습니다.
- 탭 아래 안내문과 빈 상태 안내는 section_body/project_group_title 계열 안에서만 사용하도록 낮췄습니다.

2026-04-30 T1028
- DART 공시자료 기준/최근 감사보고서가 탭처럼 보이지 않도록 일반 안내 제목과 목록 제목 스타일을 추가했습니다.
- 최근 동기화 시각은 공개 화면에서 노출되지 않도록 보조 숨김 규칙을 추가했습니다.
- 기존 탭 CSS는 복구 가능성을 위해 삭제하지 않고 미사용 상태로 유지합니다.

2026-04-30 T1044
- 재무정보 페이지 안에서 DART 공시자료 기준/최근 감사보고서가 과도한 제목처럼 보이지 않도록 글자 위계를 낮췄습니다.
- DART 공시자료 기준은 안내 소제목, 최근 감사보고서는 표 영역 제목, 안내문은 일반 본문 굵기로 정리했습니다.
*/

.investor-finance-page {
    background: transparent;
    color: #1e1e1e;
}

.investor-finance-page__hero {
    padding: 0 0 72px;
}

.investor-finance-page__shell {
    width: min(calc(100% - 80px), 1140px);
    margin: 0 auto;
    background: #ffffff;
    padding: 14px 20px 72px;
}

.investor-finance-page__crumbs {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 14px;
    line-height: 1.5;
    color: #5f5f5f;
}

.investor-finance-page__crumbs em {
    margin: 0 10px;
    color: #9aa0a6;
    font-style: normal;
}

.investor-finance-page__crumbs span {
    color: #202020;
    font-weight: 800;
}

.investor-finance-page__intro {
    max-width: 780px;
    margin-top: 52px;
}

.investor-finance-page__intro h1 {
    margin: 0;
    color: #111111;
    font-size: 40px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.investor-finance-page__intro p {
    margin: 18px 0 0;
    color: #1d1d1d;
    font-size: 18px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.investor-finance-page__tabs {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 48px;
    border-bottom: 1px solid #d9d9d9;
}

.investor-finance-page__tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 24px;
    border: 1px solid #d9d9d9;
    border-bottom: 0;
    background: #ffffff;
    color: #303030;
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.investor-finance-page__tab + .investor-finance-page__tab {
    margin-left: -1px;
}

.investor-finance-page__tab--active {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

/*
2026-04-30 T1028
- 실제 탭 전환 UI가 아니므로 안내 제목/목록 제목 구조를 사용합니다.
- 기존 탭 스타일은 복구 가능성을 위해 삭제하지 않고, 현재 마크업에서는 사용하지 않습니다.
*/
.investor-finance-page__standard {
    margin-top: 48px;
    padding-bottom: 18px;
    border-bottom: 1px solid #d9d9d9;
}

.investor-finance-page__standard h2 {
    margin: 0;
    color: #171717;
    font-size: 18px;
    line-height: 1.42;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.investor-finance-page__standard .investor-finance-page__lead {
    margin-top: 10px;
}

.investor-finance-page__section-title {
    margin: 0 0 8px;
    color: #171717;
    font-size: 17px;
    line-height: 1.42;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.investor-finance-page__panel {
    padding-top: 24px;
}

.investor-finance-page__lead,
.investor-finance-page__body-text {
    max-width: 930px;
    margin: 0;
    color: #222222;
    font-size: 15px;
    line-height: 1.72;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.investor-finance-page__sync-note {
    display: none;
    margin: 8px 0 0;
    color: #5b6b84;
    font-size: 13px;
    line-height: 1.6;
    font-weight: 700;
}

.investor-finance-page__table {
    margin-top: 20px;
    border-top: 2px solid #202020;
}

.investor-finance-page__table-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 140px 130px 150px;
    align-items: center;
    min-height: 58px;
    border-bottom: 1px solid #d9d9d9;
    color: #222222;
    font-size: 15px;
    line-height: 1.5;
}

.investor-finance-page__table-row > span,
.investor-finance-page__table-row > strong {
    min-width: 0;
    padding: 14px 14px;
}

.investor-finance-page__table-row > strong {
    font-weight: 800;
    color: #101010;
}

.investor-finance-page__table-head {
    min-height: 48px;
    background: #f6f7f9;
    font-size: 13px;
    font-weight: 800;
    color: #202020;
}

.investor-finance-page__table-year {
    font-weight: 800;
    color: #174d84;
}

.investor-finance-page__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border: 1px solid #d7e0ee;
    border-radius: 6px;
    background: #ffffff;
    color: #174d84;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none;
}

.investor-finance-page__link--disabled {
    color: #7b8492;
    font-style: normal;
}

.investor-finance-page__empty {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid #dfe6f0;
    background: #ffffff;
}

.investor-finance-page__empty strong {
    display: block;
    color: #202020;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 800;
}

.investor-finance-page__empty p {
    margin: 8px 0 0;
    color: #263241;
    font-size: 15px;
    line-height: 1.72;
    font-weight: 400;
}

.investor-finance-page__empty code {
    padding: 2px 5px;
    border-radius: 4px;
    background: #f1f4f8;
    color: #202020;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
}

.investor-finance-page__disclaimer {
    margin-top: 42px;
    padding-top: 16px;
    border-top: 1px solid #d9d9d9;
    color: #222222;
}

.investor-finance-page__disclaimer p {
    margin: 0;
    font-size: 15px;
    line-height: 1.72;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.investor-finance-page__disclaimer p + p {
    margin-top: 4px;
}

@media (max-width: 1100px) {
    .investor-finance-page__shell {
        width: min(calc(100% - 60px), 980px);
        padding: 14px 20px 64px;
    }

    .investor-finance-page__table-row {
        grid-template-columns: 100px minmax(0, 1fr) 126px 116px 142px;
    }
}

@media (max-width: 760px) {
    .investor-finance-page__shell {
        width: min(calc(100% - 32px), 100%);
        padding: 12px 16px 56px;
    }

    .investor-finance-page__crumbs {
        justify-content: flex-start;
    }

    .investor-finance-page__intro {
        margin-top: 38px;
    }

    .investor-finance-page__intro h1 {
        font-size: 34px;
    }

    .investor-finance-page__intro p {
        font-size: 16px;
    }

    .investor-finance-page__tabs {
        overflow-x: auto;
        margin-top: 36px;
    }

    .investor-finance-page__standard {
        margin-top: 36px;
    }

    .investor-finance-page__standard h2 {
        font-size: 17px;
    }

    .investor-finance-page__section-title {
        font-size: 16px;
    }

    .investor-finance-page__tab {
        flex: 0 0 auto;
    }

    .investor-finance-page__table {
        overflow-x: auto;
    }

    .investor-finance-page__table-row {
        min-width: 820px;
    }
}


/*
2026-05-14 T1600
- POSH 모바일 확정 기준(흰색 상단 헤더/단순 메뉴/본문 카드형)에 맞춰 투자정보 > 재무정보 페이지의 휴대폰 전용 화면만 보정합니다.
- 기존 데스크톱/태블릿 표 구조는 유지하고, 아래 max-width:640px 이하에서만 override합니다.
- 모바일에서는 현재 위치 표시를 숨기고, 감사보고서 표를 가로 스크롤이 아닌 카드형 목록처럼 읽히게 정리합니다.
*/
@media (max-width: 640px) {
    .investor-finance-page__hero {
        padding: 0 0 46px;
    }

    .investor-finance-page__shell {
        width: 100%;
        padding: 0 14px 46px;
        background: #ffffff;
    }

    .investor-finance-page__crumbs {
        display: none;
    }

    .investor-finance-page__intro {
        max-width: none;
        margin-top: 34px;
    }

    .investor-finance-page__intro h1 {
        font-size: 30px;
        line-height: 1.08;
        font-weight: 700;
        letter-spacing: -0.035em;
    }

    .investor-finance-page__intro p {
        margin-top: 12px;
        font-size: 14.5px;
        line-height: 1.62;
        font-weight: 500;
        letter-spacing: -0.02em;
        word-break: keep-all;
    }

    .investor-finance-page__standard {
        margin-top: 32px;
        padding-bottom: 14px;
        border-bottom: 1px solid #d9d9d9;
    }

    .investor-finance-page__standard h2 {
        font-size: 16px;
        line-height: 1.45;
        font-weight: 700;
        letter-spacing: -0.025em;
    }

    .investor-finance-page__lead,
    .investor-finance-page__body-text {
        max-width: none;
        font-size: 14px;
        line-height: 1.68;
        font-weight: 400;
        letter-spacing: -0.02em;
        word-break: keep-all;
    }

    .investor-finance-page__panel {
        padding-top: 22px;
    }

    .investor-finance-page__section-title {
        margin-bottom: 12px;
        font-size: 18px;
        line-height: 1.4;
        font-weight: 700;
        letter-spacing: -0.025em;
    }

    .investor-finance-page__table {
        display: grid;
        gap: 12px;
        margin-top: 14px;
        border-top: 0;
        overflow: visible;
    }

    .investor-finance-page__table-head {
        display: none;
    }

    .investor-finance-page__table-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        min-width: 0;
        min-height: 0;
        padding: 15px 14px;
        border: 1px solid #e5ebf2;
        border-radius: 12px;
        background: #ffffff;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
        font-size: 14px;
        line-height: 1.5;
    }

    .investor-finance-page__table-row > span,
    .investor-finance-page__table-row > strong {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
        align-items: start;
        min-width: 0;
        padding: 0;
        color: #1f2937;
        word-break: keep-all;
    }

    .investor-finance-page__table-row > span::before,
    .investor-finance-page__table-row > strong::before {
        color: #64748b;
        font-size: 12.5px;
        line-height: 1.45;
        font-weight: 600;
        letter-spacing: -0.02em;
        white-space: nowrap;
    }

    .investor-finance-page__table-row > :nth-child(1)::before {
        content: '사업연도';
    }

    .investor-finance-page__table-row > :nth-child(2)::before {
        content: '보고서명';
    }

    .investor-finance-page__table-row > :nth-child(3)::before {
        content: '접수일';
    }

    .investor-finance-page__table-row > :nth-child(4)::before {
        content: '구분';
    }

    .investor-finance-page__table-row > :nth-child(5)::before {
        content: '자료';
    }

    .investor-finance-page__table-row > strong {
        font-size: 14.5px;
        line-height: 1.5;
        font-weight: 700;
    }

    .investor-finance-page__table-year {
        color: #174d84;
        font-weight: 800;
    }

    .investor-finance-page__link {
        justify-self: start;
        min-height: 34px;
        padding: 0 13px;
        border-radius: 999px;
        font-size: 12.5px;
        font-weight: 800;
    }

    .investor-finance-page__empty {
        margin-top: 14px;
        padding: 16px 15px;
        border-radius: 12px;
        border: 1px solid #e5ebf2;
        box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    }

    .investor-finance-page__empty strong {
        font-size: 16px;
        line-height: 1.4;
    }

    .investor-finance-page__empty p {
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.68;
    }

    .investor-finance-page__disclaimer {
        margin-top: 32px;
        padding-top: 14px;
    }

    .investor-finance-page__disclaimer p {
        font-size: 13.5px;
        line-height: 1.66;
        word-break: keep-all;
    }
}

@media (max-width: 380px) {
    .investor-finance-page__shell {
        padding-left: 12px;
        padding-right: 12px;
    }

    .investor-finance-page__intro h1 {
        font-size: 28px;
    }

    .investor-finance-page__intro p {
        font-size: 13.5px;
    }

    .investor-finance-page__table-row {
        padding: 14px 12px;
    }

    .investor-finance-page__table-row > span,
    .investor-finance-page__table-row > strong {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 8px;
        font-size: 13.5px;
    }

    .investor-finance-page__table-row > span::before,
    .investor-finance-page__table-row > strong::before {
        font-size: 12px;
    }
}


/*
2026-05-14 T1604
- 모바일 감사보고서 목록에서 첫 번째 행은 실제 데이터가 아니라 데스크톱 표 머리글입니다.
- 직전 모바일 카드형 변환에서 머리글 행까지 카드처럼 보였으므로, 휴대폰 화면에서는 머리글 행을 숨깁니다.
- 데스크톱/태블릿 표 머리글은 기존 구조를 유지합니다.
*/
@media (max-width: 640px) {
    .investor-finance-page__table-row.investor-finance-page__table-head,
    .investor-finance-page__table-head {
        display: none;
    }
}
