@import url('https://fonts.googleapis.com/css2?family=Gowun+Dodum&display=swap');

.summary-reports-page {
    font-family: 'Gowun Dodum', sans-serif;
    font-size: 0.94rem;
}

/* ── Pager ── */
.pager {
    display: flex;
    justify-content: center;
}

.pager-inner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pager-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    color: #555;
    background: transparent;
    border: 1px solid #d5d0cc;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.pager-arrow:hover {
    background: #eae5e1;
    color: #222;
    border-color: #c0bab5;
}

.pager-arrow.is-disabled {
    color: #c5c0bc;
    border-color: #e8e4e0;
    pointer-events: none;
}

.pager-nums {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0 4px;
}

.pager-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #6b6560;
    text-decoration: none;
    border-radius: 5px;
    transition: color 0.15s, background 0.15s;
}

.pager-num:hover {
    color: #333;
    background: #f0ebe7;
}

.pager-num.is-active {
    font-weight: 700;
    color: #fff;
    background: #706b69;
}

.pager-num.is-active:hover {
    background: #5e5957;
}

.pager-ellipsis {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    color: #a09891;
    letter-spacing: 0.08em;
    margin: 0 1px;
    user-select: none;
}

.pager-num-last {
    color: #5a7a96;
    font-weight: 600;
}

.pager-num-last:hover {
    color: #3e6480;
    background: #e6eef5;
}

.report-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.report-card-item {
    border: 1px solid #e2e8ef;
    border-radius: 14px;
    background: #4c5a64;
    padding: 14px;
    display: grid;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.report-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.report-type-badge {
    display: inline-block;
    border-radius: 999px;
    font-size: 0.74rem;
    line-height: 1;
    padding: 0.33rem 0.58rem;
    font-weight: 700;
}

.report-type-badge.is-research {
    background: #f0f4ff;
    color: #2b5fba;
    border: 1px solid #d7e4ff;
}

.report-type-badge.is-review {
    background: #eff9f1;
    color: #2d7e43;
    border: 1px solid #d2efda;
}

.report-type-badge.is-unknown {
    background: #f2f4f6;
    color: #646d78;
    border: 1px solid #dfe5ea;
}

.report-date-line {
    font-size: 0.74rem;
    color: #dfe6eb;
}

.report-card-title {
    margin: 0;
    font-weight: 700;
    line-height: 1.45;
    color: #fff;
    min-height: 2.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.report-card-corner-icon {
    position: absolute;
    right: 8px;
    bottom: 8px;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    pointer-events: none;
    font-variation-settings: 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.btn-summary-report-action {
    border-radius: 10px;
    background-color: #f6dc8d;
    color: #000;
    border: 1px solid #dcc57e;
    padding: 0.34rem 0.75rem;
}

.btn-summary-report-action:hover {
    background-color: #ebd07f;
    color: #000;
}

.btn-report-action {
    border-radius: 10px;
    background-color: #859a85;
    color: #fff;
    border: 1px solid #7a8d7a;
    padding: 0.34rem 0.75rem;
}

.btn-report-action:hover {
    background-color: #718771;
    color: #fff;
}

.report-action-icon {
    font-size: 1rem;
    line-height: 1;
    vertical-align: text-bottom;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.btn-report-action.is-disabled,
.btn-report-action:disabled,
.btn-summary-report-action.is-disabled,
.btn-summary-report-action:disabled {
    background-color: #c2c8c2;
    border-color: #b4bbb4;
    color: #f4f6f4;
    cursor: not-allowed;
    pointer-events: none;
}

.inline-report-viewer {
    border: 1px solid #dfe5ea;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

.inline-report-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid #e9eef3;
    background: #fbfcfe;
}

.inline-report-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.inline-report-type {
    font-size: 0.74rem;
    color: #516173;
    border: 1px solid #dce4ec;
    background: #f8fafd;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
}

.inline-report-title {
    font-weight: 700;
    color: #2f3a44;
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 620px;
}

.inline-report-frame-wrap {
    background: #fff;
}

#summaryReportFrame {
    border: 0;
    width: 100%;
    height: 180px;
    display: block;
    overflow: hidden;
}

@media (max-width: 768px) {
    .report-card-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .report-card-item {
        border-radius: 12px;
        padding: 12px;
    }

    .inline-report-toolbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .inline-report-title {
        white-space: normal;
        max-width: 100%;
    }

    #summaryReportFrame {
        height: 180px;
    }
}
