/* 통합정보: 거버넌스 notice-header와 동일 톤의 심플 헤더 */
.pc-integrated-info .notice-header {
    border: 1px solid #3e3f61;
    border-radius: 14px;
    background: linear-gradient(to right, rgba(139, 92, 246, 0.14), rgba(139, 92, 246, 0.03));
    padding: 1.1rem 1.4rem 0.95rem;
    border-bottom: 1px solid #8b5cf6;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
}

.pc-integrated-info .notice-title::before {
    content: none;
    margin: 0;
}

.pc-integrated-info .notice-title {
    text-shadow: 0 0 16px rgba(139, 92, 246, 0.55);
}

.pc-integrated-info .notice-title-text {
    background: linear-gradient(90deg, #f8f9ff 0%, #cfb3ff 45%, #9bd5ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 14px rgba(155, 213, 255, 0.25);
}

.pc-integrated-info .notice-description {
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 400;
    margin-left: 0;
    padding-top: 0.15rem;
    flex: 1 1 auto;
    min-width: 12rem;
}

.integrated-info-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem 0;
}

.integrated-info-status-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.integrated-info-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.55);
    color: #cbd5e1;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.integrated-info-status-chip:hover,
.integrated-info-status-chip.active {
    border-color: rgba(125, 211, 252, 0.55);
    background: rgba(14, 165, 233, 0.16);
    color: #f8fafc;
}

.integrated-info-summary {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem 0.6rem;
    color: #94a3b8;
    font-size: 0.8rem;
    white-space: nowrap;
}

.pc-integrated-info .integrated-matrix-outer,
.pc-integrated-info .integrated-drep-pagination,
.pc-integrated-info .integrated-matrix-footnote {
    margin-left: 1rem;
    margin-right: 1rem;
}

.pc-integrated-info .integrated-matrix-footnote {
    margin-bottom: 1rem;
}

.integrated-matrix-outer {
    max-width: 100%;
    margin: 0.75rem auto 0;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.5);
    overflow: auto;
    max-height: min(78vh, 900px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.integrated-matrix {
    border-collapse: separate;
    border-spacing: 0;
    min-width: max(100%, 640px);
    font-size: 0.82rem;
}

.integrated-matrix thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #1e293b;
    border-bottom: 1px solid rgba(139, 92, 246, 0.35);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0.35rem 0.25rem;
    /* bottom 정렬이면 제목 줄 수에 따라 타입 뱃지가 위로 안 붙고 떠 보임 → 상단 정렬로 통일 */
    vertical-align: top;
    text-align: center;
    font-weight: 600;
    color: #e2e8f0;
}

.integrated-matrix thead th.integrated-matrix-corner {
    left: 0;
    z-index: 4;
    min-width: 170px;
    width: 170px;
    max-width: 170px;
    text-align: left;
    padding: 0.5rem 0.65rem;
    /* 제안 열보다 낮은 코너 블록을 행 높이 안에서 세로 중앙 */
    vertical-align: middle;
    background: linear-gradient(135deg, #1e293b 0%, #172033 100%);
    border-right: 1px solid rgba(139, 92, 246, 0.4);
}

.integrated-matrix thead th.integrated-matrix-vote-summary-head {
    left: 170px;
    z-index: 4;
    min-width: 116px;
    width: 116px;
    max-width: 116px;
    padding: 0.5rem 0.55rem;
    vertical-align: middle;
    background: linear-gradient(135deg, #1e293b 0%, #182234 100%);
    border-right: 1px solid rgba(139, 92, 246, 0.32);
}

.integrated-matrix-vote-summary-head span {
    display: block;
    color: #cbd5e1;
    font-size: 0.72rem;
    line-height: 1.25;
}

.integrated-matrix-vote-summary-head span:first-child {
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 800;
}

.integrated-matrix-corner-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    min-height: 3rem;
}

.integrated-matrix-corner-label {
    font-weight: 700;
    font-size: 0.88rem;
    color: #e2e8f0;
}

.integrated-matrix-corner-sub {
    font-weight: 400;
    font-size: 0.72rem;
    color: #94a3b8;
    line-height: 1.35;
}

/* 제안 열: 상단 타입(한 줄)·종료, 하단 제목(세로) — 가로 폭 넉넉히 */
.integrated-matrix-prop-col {
    position: sticky;
    min-width: 92px;
    max-width: 120px;
    width: 100px;
    vertical-align: top;
    padding: 0.35rem 0.35rem 2.95rem;
    box-sizing: border-box;
}

.integrated-matrix-prop-meta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.25rem;
    margin: 0 0 0.35rem;
    width: 100%;
    flex-shrink: 0;
}

.integrated-matrix thead .integrated-matrix-prop-meta .status-badge {
    width: 100%;
    height: auto;
    min-height: 26px;
    font-size: 0.58rem;
    padding: 0.2rem 0.15rem;
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.15;
}

/* 제안타입 뱃지: 한 줄, 열마다 동일 높이로 상단 라인 맞춤 */
.integrated-matrix thead .integrated-matrix-prop-meta .status-badge.type {
    white-space: nowrap;
    max-height: none;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    min-height: 32px;
    height: 32px;
    flex: 0 0 auto;
    font-size: 0.68rem;
    padding: 0 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 진행/종료 뱃지도 고정 높이로 타입 아래 간격 일정 */
.integrated-matrix thead .integrated-matrix-prop-meta .status-badge:not(.type) {
    box-sizing: border-box;
    min-height: 28px;
    height: 28px;
    flex: 0 0 auto;
}

.integrated-matrix-prop-title {
    display: block;
    -webkit-box-orient: vertical;
    /* 제목이 잘리지 않도록 표시 줄 수·최소 높이 확대 */
    -webkit-line-clamp: unset;
    min-height: 0;
    max-height: none;
    text-align: center;
    writing-mode: horizontal-tb;
    transform: none;
    max-width: 100%;
    margin: 0.3rem auto 0;
    padding: 0.35rem 0.25rem 0.45rem;
    overflow: visible;
    color: #c4b5fd;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.74rem;
    line-height: 1.4;
    letter-spacing: 0;
    word-break: keep-all;
    overflow-wrap: anywhere;
}

.integrated-matrix-prop-title:hover {
    color: #f5f3ff;
    text-decoration: underline;
}

.integrated-prop-vote-filter {
    position: absolute;
    left: 0.35rem;
    right: 0.35rem;
    bottom: 0.45rem;
    margin-top: 0;
    padding-top: 0.35rem;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.integrated-prop-vote-filter.active {
    border-top-color: rgba(125, 211, 252, 0.28);
}

.integrated-prop-vote-select {
    width: 100%;
    min-height: 28px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 7px;
    background: #111827;
    color: #f8fafc;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0;
    padding: 0 0.35rem;
    outline: none;
}

.integrated-prop-vote-select option {
    background: #111827;
    color: #f8fafc;
    font-weight: 700;
}

.integrated-prop-vote-filter.active .integrated-prop-vote-select,
.integrated-prop-vote-select:focus {
    border-color: rgba(125, 211, 252, 0.48);
    background: #0f2740;
    color: #f8fafc;
}

.integrated-matrix tbody th,
.integrated-matrix tbody td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.45rem 0.5rem;
    vertical-align: middle;
}

.integrated-matrix tbody th.integrated-matrix-drep-th {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #1e293b;
    text-align: left;
    font-weight: normal;
    border-right: 1px solid rgba(139, 92, 246, 0.25);
    vertical-align: middle;
    min-width: 170px;
    width: 170px;
    max-width: 170px;
}

.integrated-matrix-vote-summary-cell {
    position: sticky;
    left: 170px;
    z-index: 3;
    min-width: 116px;
    width: 116px;
    max-width: 116px;
    background: #1b2638;
    border-right: 1px solid rgba(139, 92, 246, 0.18);
    text-align: center;
}

.integrated-vote-summary-counts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.16rem;
    white-space: nowrap;
}

.integrated-vote-summary-counts span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

.integrated-vote-summary-counts .summary-yes {
    color: #bbf7d0;
}

.integrated-vote-summary-counts .summary-no {
    color: #fecaca;
}

.integrated-vote-summary-counts .summary-abstain {
    color: #e2e8f0;
}

.integrated-vote-summary-counts .summary-none {
    color: #94a3b8;
}

.integrated-vote-summary-counts .summary-sep {
    color: #64748b;
    font-weight: 600;
}

.integrated-vote-summary-rate {
    margin-top: 0.28rem;
    color: #bae6fd;
    font-size: 0.78rem;
    font-weight: 900;
}

.integrated-matrix-drep-block {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-height: 2.75rem;
}

.integrated-matrix-drep-name {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.35rem;
    font-weight: 600;
    color: #f8fafc;
    word-break: break-word;
}

.integrated-matrix-drep-rank {
    flex-shrink: 0;
    font-weight: 700;
    font-size: 0.8rem;
    color: #a78bfa;
    min-width: 1.6em;
}

.integrated-matrix-drep-name-text {
    font-weight: 600;
    color: #f8fafc;
    line-height: 1.35;
}

.integrated-matrix-drep-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.2rem 0.35rem;
    color: #94a3b8;
    font-size: 0.78rem;
    line-height: 1.35;
    word-break: break-word;
}

.integrated-matrix-drep-sep {
    color: #64748b;
}

.integrated-drep-active-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 0 0.4rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

.integrated-drep-active-dot.active {
    background: rgba(34, 197, 94, 0.12);
    color: #86efac;
}

.integrated-drep-active-dot.inactive {
    background: rgba(100, 116, 139, 0.16);
    color: #94a3b8;
}

.integrated-matrix-vote-cell {
    text-align: center;
    min-width: 58px;
    color: #cbd5e1;
    background: rgba(15, 23, 42, 0.35);
}

.integrated-matrix-vote-cell.vote-yes {
    background: rgba(22, 101, 52, 0.15);
}

.integrated-matrix-vote-cell.vote-no {
    background: rgba(127, 29, 29, 0.14);
}

.integrated-matrix-vote-cell.vote-abstain {
    background: rgba(120, 113, 108, 0.14);
}

.integrated-vote-pill,
.integrated-vote-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    min-height: 26px;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
}

.integrated-vote-pill i {
    font-size: 0.86rem;
    line-height: 1;
}

.integrated-vote-pill.vote-yes {
    border: 1px solid rgba(74, 222, 128, 0.45);
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
}

.integrated-vote-pill.vote-no {
    border: 1px solid rgba(248, 113, 113, 0.45);
    background: rgba(239, 68, 68, 0.17);
    color: #fecaca;
}

.integrated-vote-pill.vote-abstain,
.integrated-vote-pill.vote-other {
    border: 1px solid rgba(203, 213, 225, 0.28);
    background: rgba(100, 116, 139, 0.16);
    color: #e2e8f0;
}

.integrated-vote-empty {
    color: #475569;
}

.integrated-drep-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    max-width: 1100px;
    margin: 0.75rem auto 0;
    padding: 0.5rem 0.75rem;
}

.integrated-drep-pagination-top {
    margin-top: 0.55rem;
    margin-bottom: -0.25rem;
}

.integrated-drep-range {
    font-size: 0.85rem;
    color: #cbd5e1;
}

.integrated-drep-page-num {
    font-size: 0.86rem;
    color: #f8fafc;
    font-weight: 800;
    padding: 0 0.25rem;
}

.integrated-drep-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 8px;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.35);
    color: #e9d5ff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
}

.integrated-drep-page-btn:hover {
    background: rgba(139, 92, 246, 0.35);
    color: #fff;
}

.integrated-drep-page-btn.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.integrated-matrix-footnote {
    max-width: 1100px;
    margin: 0.65rem auto 0;
    font-size: 0.78rem;
    color: #64748b;
}

.integrated-matrix-empty {
    padding: 2rem 1rem;
    text-align: center;
    color: #94a3b8;
}

@media (max-width: 767px) {
    .pc-integrated-info .notice-header {
        padding: 0.9rem 1rem 0.8rem;
        border-radius: 10px;
    }

    .pc-integrated-info .notice-description {
        font-size: 0.78rem;
    }

    .integrated-info-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.65rem 0.75rem 0;
    }

    .integrated-info-status-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.1rem;
        scrollbar-width: thin;
    }

    .integrated-info-status-chip {
        min-height: 30px;
        padding: 0.3rem 0.55rem;
        font-size: 0.74rem;
    }

    .integrated-info-summary {
        justify-content: flex-start;
        font-size: 0.74rem;
    }

    .pc-integrated-info .integrated-matrix-outer,
    .pc-integrated-info .integrated-drep-pagination,
    .pc-integrated-info .integrated-matrix-footnote {
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }

    .integrated-matrix-outer {
        max-height: 72vh;
        border-radius: 10px;
    }

    .integrated-matrix thead th.integrated-matrix-corner {
        min-width: 140px;
        width: 140px;
        max-width: 140px;
        padding: 0.45rem 0.5rem;
    }

    .integrated-matrix thead th.integrated-matrix-vote-summary-head {
        left: 140px;
        min-width: 92px;
        width: 92px;
        max-width: 92px;
        padding: 0.4rem 0.35rem;
    }

    .integrated-matrix-vote-summary-head span {
        font-size: 0.64rem;
    }

    .integrated-matrix-vote-summary-head span:first-child {
        font-size: 0.68rem;
    }

    .integrated-matrix-prop-col {
        min-width: 76px;
        width: 82px;
        padding: 0.3rem 0.25rem 2.55rem;
    }

    .integrated-matrix thead .integrated-matrix-prop-meta .status-badge.type {
        height: 26px;
        min-height: 26px;
        font-size: 0.6rem;
    }

    .integrated-matrix thead .integrated-matrix-prop-meta .status-badge:not(.type) {
        height: 24px;
        min-height: 24px;
        font-size: 0.58rem;
    }

    .integrated-matrix-prop-title {
        -webkit-line-clamp: unset;
        min-height: 0;
        font-size: 0.66rem;
        line-height: 1.3;
    }

    .integrated-prop-vote-filter {
        left: 0.25rem;
        right: 0.25rem;
        bottom: 0.35rem;
        margin-top: 0;
        padding-top: 0.3rem;
    }

    .integrated-prop-vote-select {
        min-height: 25px;
        border-radius: 6px;
        font-size: 0.62rem;
        padding: 0 0.25rem;
    }

    .integrated-matrix-drep-name-text {
        max-width: 90px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .integrated-matrix tbody th.integrated-matrix-drep-th {
        min-width: 140px;
        width: 140px;
        max-width: 140px;
    }

    .integrated-matrix-vote-summary-cell {
        left: 140px;
        min-width: 92px;
        width: 92px;
        max-width: 92px;
        padding: 0.35rem 0.3rem;
    }

    .integrated-vote-summary-counts {
        gap: 0.1rem;
    }

    .integrated-vote-summary-counts span {
        min-height: 16px;
        font-size: 0.62rem;
    }

    .integrated-vote-summary-rate {
        font-size: 0.7rem;
    }

    .integrated-matrix-drep-inline {
        font-size: 0.68rem;
    }

    .integrated-matrix-vote-cell {
        min-width: 48px;
        padding: 0.35rem 0.3rem;
    }

    .integrated-vote-pill,
    .integrated-vote-empty {
        width: 36px;
        min-height: 24px;
        font-size: 0.66rem;
    }
}
