/* ── 공지사항 목록 ── */
.notice-board {
    margin-top: 0.5rem;
}

.notice-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.85rem;
}

.notice-toolbar-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notice-scope-filter {
    appearance: none;
    min-width: 5.5rem;
    padding: 0.45rem 1.75rem 0.45rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%238a7568' d='M1 1l4 4 4-4'/%3E%3C/svg%3E") no-repeat right 0.65rem center;
    color: var(--text);
    font-size: 0.88rem;
    cursor: pointer;
}

.notice-scope-filter:focus {
    outline: none;
    border-color: var(--accent);
}

.notice-search {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.notice-search-input {
    width: 11rem;
    padding: 0.45rem 0.65rem;
    border: none;
    background: transparent;
    font-size: 0.88rem;
    color: var(--text);
}

.notice-search-input::placeholder {
    color: #c4b0a6;
}

.notice-search-input:focus {
    outline: none;
}

.notice-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.notice-table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--border);
}

.notice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    table-layout: fixed;
}

.notice-table th,
.notice-table td {
    padding: 0.8rem 0.65rem;
    border-bottom: 1px solid rgba(240, 208, 217, 0.65);
    vertical-align: middle;
    text-align: center;
}

.notice-table th {
    background: var(--bg-soft);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 0.88rem;
}

.notice-table .col-num {
    width: 9%;
}

.notice-table .col-scope {
    width: 12%;
}

.notice-table .col-title {
    width: auto;
}

.notice-table .col-date {
    width: 14%;
}

.notice-table .col-views {
    width: 10%;
}

.notice-table td.col-title,
.notice-table .notice-row-title {
    text-align: left;
}

.notice-row {
    cursor: pointer;
    transition: background 0.15s;
}

.notice-row:hover td {
    background: rgba(255, 243, 238, 0.55);
}

.notice-row-num {
    text-align: center;
}

.notice-pin-badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border: 1px solid rgba(232, 83, 79, 0.45);
    border-radius: 6px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}

.notice-row-title {
    font-weight: 400;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-row-title-inner {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
}

.notice-row-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-new-badge {
    display: inline-block;
    flex-shrink: 0;
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.02em;
}

.notice-lock {
    flex-shrink: 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.notice-badge {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
}

.notice-badge--public {
    background: #eefaf0;
    color: #2e6b3a;
}

.notice-badge--circle {
    background: #ffe8ea;
    color: #e8534f;
}

.notice-badge--visitor {
    background: #f3e8ff;
    color: #7b1fa2;
}

.notice-badge--both {
    background: #fff8e8;
    color: #8a6520;
}

.notice-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 2.5rem 0.5rem;
}

@media (max-width: 768px) {
    .notice-toolbar {
        justify-content: stretch;
    }

    .notice-toolbar-inner {
        width: 100%;
    }

    .notice-search {
        flex: 1;
    }

    .notice-search-input {
        width: 100%;
        min-width: 0;
    }

    .notice-table .col-scope,
    .notice-table .col-views {
        display: none;
    }

    .notice-table .col-num {
        width: 14%;
    }

    .notice-table .col-date {
        width: 22%;
    }
}
