@import url('https://cdn.quilljs.com/1.3.6/quill.snow.css');
/* ------------------------------------------------ */
/* Base */
/* ------------------------------------------------ */
html, body{
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;   /* 🔥 유지 */
    font-family: Segoe UI, Arial, sans-serif;
    background: #eef2f6;
}
html, body, .app-shell {
    height: 100%;
}
*{
    box-sizing: border-box;
}
a {
    color: inherit;
    text-decoration: none;
}
/* NAV */
.nav-menu{
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:10px 0;
    gap:8px;
}
.nav-menu a{
    position:relative;

    width:100%;
    height:44px;              /* 🔥 높이 고정 (핵심) */

    display:flex;
    align-items:center;
    justify-content:center;

    color:#cbd5f5;

    border-radius:8px;

    transition:background .15s ease, color .15s ease;
}
/* hover */
.nav-menu a:hover{
    background:rgba(255,255,255,0.08);
    color:#ffffff;
}
/* active */
.nav-menu a.active{
    background:rgba(59,130,246,0.18);
    color:#ffffff;
}
/* 파란 줄 */
.nav-menu a::before{
    content:"";
    position:absolute;

    left:0;
    top:8px;
    bottom:8px;

    width:3px;
    border-radius:2px;

    background:#3b82f6;

    opacity:0;
    transition:opacity .15s ease;
}
/* active일때만 표시 */
.nav-menu a.active::before{
    opacity:1;
}
/* 아이콘 */
.nav-menu svg{
    width:22px;
    height:22px;
    stroke:white;
    fill:none;
    stroke-width:2;
}
/* 공통 (기본은 왼쪽 정렬 = 펼쳐진 상태) */
.nav-menu a {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* 🔥 왼쪽 정렬 */
    gap: 12px;
    padding: 10px 16px;
}
/* 접힌 상태일 때만 가운데 정렬 */
.sidebar.collapsed .nav-menu a {
    justify-content: center; /* 🔥 가운데 */
    padding: 10px 0;
}
/* 아이콘 크기 고정 (정렬 안정화) */
.nav-menu .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-menu .icon svg {
    width: 18px;
    height: 18px;
}
.nav-menu .label {
    display: flex;
    align-items: center;
}
/* 접힌 상태에서 텍스트 숨김 */
.sidebar.collapsed .label {
    display: none;
}
.nav-menu a,
.nav-menu .nav-item {
    position:relative;

    width:100%;
    height:44px;

    display:flex;
    align-items:center;
    justify-content:flex-start;

    color:#cbd5f5;

    border-radius:8px;

    transition:background .15s ease, color .15s ease;

    gap:12px;
    padding:10px 16px;
}
/* 🔥 강제 override (이거 추가) */
.sidebar.collapsed .nav-menu a,
.sidebar.collapsed .nav-menu .nav-item {
    justify-content: center;
    padding: 10px 0;
}
.nav-menu a:hover,
.nav-menu .nav-item:hover {
    background:rgba(255,255,255,0.08);
    color:#ffffff;
}
.nav-menu .nav-item {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    height:44px;
    padding:10px 16px;
    cursor:pointer;
}
.sidebar.collapsed .nav-menu .nav-item {
    justify-content:center;
    padding:10px 0;
}
.nav-menu{
display:flex;
flex-direction:column;
align-items:center;
padding:10px 0;
gap:8px;
}
.nav-menu a:hover{
    background: rgba(255,255,255,0.16);
}
.nav-menu a.active{
    background: rgba(255,255,255,0.20);
}
.nav-menu a:hover .label{
    opacity: 1;
    transform: translateY(-10%) translateX(4px);
}
.nav-menu svg{
width:22px;
height:22px;
stroke:white;
fill:none;
stroke-width:2;
}
.nav-menu a.active{
background:rgba(255,255,255,0.2);
}
/* hover */
.nav-menu a:hover{
    background: rgba(255,255,255,0.06);
    color: #ffffff;
}
.nav-menu a:hover::before{
    opacity: 1;
}
/* active */
.nav-menu a.active{
    background: rgba(59,130,246,0.15);
    color: #ffffff;
}
.nav-menu a.active::before{
    opacity: 1;
}
/* ------------------------------------------------ */
/* App Layout */
/* ------------------------------------------------ */
.app-shell{
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
/* ------------------------------------------------ */
/* Sidebar */
/* ------------------------------------------------ */
.sidebar-top{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 72px;
    padding: 0;
}
.menu-btn{
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: white;
    font-size: 24px;
    cursor: pointer;
    border-radius: 10px;
}
.menu-btn:hover{
    background: rgba(255,255,255,0.12);
}
.logo{
    display:none;
}
.logout-btn {
    background: #ef4444;
    color: #fff;
}
.logout-btn:hover {
    background: #dc2626;
}


.icon{
    font-size: 24px;
    line-height: 1;
}
.icon svg {
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* 버튼 */
.icon-btn {
    border: none;
    background: #fff;
    border: 1px solid #e5e7eb;

    width: 28px;
    height: 28px;

    border-radius: 6px;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
}
.icon-btn:hover {
    background: #f3f4f6;
}
.icon-btn.delete:hover {
    color: #dc2626;
}


.label{
position:static;
opacity:1;
pointer-events:auto;
transform:none;
background:none;
box-shadow:none;
padding:0;
}
.sidebar.collapsed .label{
    display:none;
}
/* 텍스트 */
.label{
    margin-left:8px;
    font-size:13px;
    font-weight:600;
}


/* collapsed 상태 */
.sidebar.collapsed .label{
    display:none;
}
.sidebar.collapsed .label {
    display: none;
}


/* ------------------------------------------------ */
/* Card */
/* ------------------------------------------------ */
.opv-card{
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.opv-right .opv-card{
    padding:12px;
}


.section-title{
font-size:14px;
font-weight:600;
color:#475569;
}
.section-title.small{
    margin-bottom: 10px;
}


.empty-text{
    color: #6b7280;
    font-size: 14px;
}
/* ------------------------------------------------ */
/* Projects Panel */
/* ------------------------------------------------ */
.projects-card{
    display:flex;      /* 혹시 없으면 추가 */
    flex-direction:column;
    flex:1;
    min-height:0;
    overflow:auto;
}
.project-row{
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid transparent;
    margin-bottom: 6px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.project-row:hover{
    background: #f8fbff;
}
.project-row.selected{
    background: #e8f1ff;
    border-color: #bfd5ff;
}
.project-icon svg{
    width:18px;
    height:18px;
    stroke:#334155;
    stroke-width:1.6;
    fill:none;
}
/* ------------------------------------------------ */
/* Header */
/* ------------------------------------------------ */
.header-card{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.header-left{
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.header-user{
    font-weight: 700;
    color: #111827;
}
.header-right{
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 260px;
}


.progress-fill{
    height:100%;
    background:#2563EB;
    border-radius:10px;
}
/* ------------------------------------------------ */
/* Create Project */
/* ------------------------------------------------ */
.create-card{
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.create-row{
    display: grid;
    grid-template-columns: minmax(0,1fr) 140px 140px 140px;
    gap: 10px;
}
.create-input,
.create-date{
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    background: #fff;
}
.create-btn{
    height: 44px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
}
.create-btn:hover{
    background: #1d4ed8;
}
/* ------------------------------------------------ */
/* Next Stage */
/* ------------------------------------------------ */
.next-card{
    display: flex;
    align-items: center;
}
.next-stage-row{
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 16px;
}
.next-stage-arrow{
    font-size: 18px;
    color: #0f172a;
}
.next-stage-title{
    font-weight: 800;
    color: #334155;
}
.next-stage-value{
    font-weight: 800;
    color: #0f172a;
}
/* ------------------------------------------------ */
/* Stages */
/* ------------------------------------------------ */
.stages-card{
    display:flex;
    flex-direction:column;
    flex:1;  
    min-height:0;
    overflow: visible;
}
.stage-table tbody tr:last-child td{
    border-bottom:none;
}
.status-message{
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}
.stage-table{
    width:100%;
    border-collapse:collapse;
}
.stage-table th{
    text-align:left;
    font-size:13px;
    color:#64748B;
    padding:10px;
    border-bottom:1px solid #E5E7EB;
}
.stage-table td{
    padding:10px;
    border-bottom:1px solid #F1F5F9;
}
.stage-row:hover{
    background: #f8fafc;
}
.stage-row.selected:hover {
    background: #dbeafe;
}
.stage-row.selected {
    background: #e0ecff;   /* 더 진하게 */
}
.stage-row.selected td:first-child {
    position: relative;
    padding-left: 12px;
}
.stage-row.selected td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 4px;
    border-radius: 2px;
    background: #2563eb;
}
.stage-row.selected td {
    font-weight: 600;
}

.subject-cell{
    font-weight: 800;
}
.delay-cell{
    font-weight: 800;
    color: #2563eb;
}
/* ------------------------------------------------ */
/* Team Chips */
/* ------------------------------------------------ */
.team-chip{
    font-weight: 700;
    font-size: 12px;
}
.team-chip.sales { color: #ef4444; }
.team-chip.design { color: #3b82f6; }
.team-chip.se { color: #16a34a; }
.team-chip.sw { color: #0ea5e9; }
.team-chip.tf { color: #111827; }
.team-chip.master { color: #111827; }
.team-chip.pur { color: #9333ea; }
.team-chip.qc { color: #ef4444; }
/* ------------------------------------------------ */
/* Status Badge + Popup */
/* ------------------------------------------------ */
.status-cell{
    position: relative;
}
/* =========================
   🔥 BADGE 통합 (단일 정의)
   ========================= */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 6px 14px;
    min-width: 80px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 700;

    border: 1px solid transparent;

    transition: all 0.15s ease;
}
/* 🔵 WORKING */
.badge.working {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}
.badge.working::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2563eb;
}
/* 🟢 CLOSED */
.badge.closed {
    background: #ecfdf5;
    color: #16a34a;
    border-color: #bbf7d0;
    opacity: 0.85;
}
.badge.closed::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
}
/* ⚪ NEW 상태 */
.badge.new {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}
.badge.new::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
}
/* 📌 PINNED */
.badge.pinned{
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid #7dd3fc;

    font-size: 11px;
    font-weight: 700;

    padding: 2px 6px;
    border-radius: 6px;

    margin-right: 6px;
}
/* 🔴 NEW 라벨 (작은거) */
.badge-new {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 6px;

    transition: opacity 0.3s ease;
}
.badge-new.hide {
    opacity: 0;
}
.badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.badge::before {
    width: 8px;
    height: 8px;
}
.selected{
    background: #e6f0ff;
    transition: background 0.15s ease;
}

/* =========================
   🔥 STATUS POPUP (badge 스타일 통일)
========================= */
.status-popup {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;

    min-width: 150px;
    padding: 6px;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;

    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
    z-index: 5000;

    animation: statusPop 0.12s ease;
}

/* =========================
   🔥 ITEM (badge 느낌)
========================= */
.status-popup-item {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    gap: 8px;

    width: 100%;
    padding: 8px 12px;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    border: 1px solid transparent;

    cursor: pointer !important;
    transition: all 0.15s ease;
}

/* hover */
.status-popup-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}

/* =========================
   🔥 DOT (badge 동일)
========================= */
.status-popup-item::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.status-popup-item:active {
    transform: scale(0.96);
}
/* =========================
   🔥 상태별 (badge 100% 동일)
========================= */

/* 🟦 WORKING */
.status-popup-item.working {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}
.status-popup-item.working::before {
    background: #2563eb;
}

/* 🟩 CLOSED */
.status-popup-item.closed {
    background: #ecfdf5;
    color: #16a34a;
    border-color: #bbf7d0;
    opacity: 0.85;
}
.status-popup-item.closed::before {
    background: #16a34a;
}

/* ⚪ NEW */
.status-popup-item.new {
    background: #f3f4f6;
    color: #374151;
    border-color: #e5e7eb;
}
.status-popup-item.new::before {
    background: #9ca3af;
}

/* =========================
   🔥 애니메이션
========================= */
@keyframes statusPop {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ------------------------------------------------ */
/* Comments */
/* ------------------------------------------------ */
.comments-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.comment-tabs{
    display: flex;
    gap: 8px;
}
.comment-input-title{
    font-weight: 800;
    color: #334155;
}
.comment-input{
    width: 100%;
    min-height: 110px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
}
/* ------------------------------------------------ */
/* BTN*/
/* ------------------------------------------------ */
.pdf-btn{
    height: 40px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    background: #f8fafc;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}
.tab-btn{
    height: 38px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
}
.tab-btn.active{
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}
/* 생성중 버튼 흐림 효과 */
.create-btn:disabled{
    opacity: 0.55;
    cursor: not-allowed;
    filter: grayscale(40%);
    transform: none;
}


.comments-body,
.target-box{
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}


.target-list{
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}
/* ------------------------------------------------ */
/* Responsive */
/* ------------------------------------------------ */
@media (max-width: 1600px){
    .create-row {
        grid-template-columns: minmax(0,1fr) 140px 140px 140px;
    }
}
@media (max-width: 1400px){
    .create-row {
        grid-template-columns: minmax(0,1fr) 120px 120px 120px;
    }
}
@media (max-width: 1600px){
    :root{
        --opv-left-width: 220px;
        --opv-right-width: 360px;
    }
}
@media (max-width: 1400px){
    :root{
        --opv-left-width: 200px;
        --opv-right-width: 320px;
    }
}


.create-status{
    margin-top:10px;
    padding:8px 12px;
    background:#eef6ff;
    border:1px solid #c9e0ff;
    border-radius:6px;
    font-size:13px;
    color:#2c5aa0;
}


.next-task{
    font-size:18px;
    font-weight:600;
    color:#2563EB;
}


/* 완료 */
.closed-stage .subject-cell
{
    text-decoration: line-through;
    opacity:0.6;
}


.comments-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:10px;
    margin-bottom:12px;
}

.feed-card.mine{
    background:#f8fbff;
    border-color:#93c5fd;
}
.feed-card.mine::before{
    background:#16a34a;
}
/* 🔥 핵심: 텍스트 대비 올리기 */
.feed-card.mine .feed-text{
    color:#0f172a;       /* 거의 블랙 */
    font-weight:600;     /* 살짝 강조 */
}

.feed-card.mine .feed-author{
    color:#1e3a8a;       /* 진한 파랑 */
    font-weight:800;
}
.feed-card.mine .feed-date{
    color:#334155;       /* 회색 → 진하게 */
}


.feed-stage{
    display:inline-flex;
    align-items:center;

    flex:none;
    width:auto;

    font-size:12px;
    font-weight:700;

    background:#eef2ff;
    color:#3730a3;

    padding:2px 6px;
    border-radius:6px;

    margin-bottom:2px;

    white-space:nowrap;
}
.feed-meta,
.feed-icon,
.feed-text{
    min-width:0;    /* 🔥 핵심 */
}
.feed-meta{
    display:flex;
    align-items:center;
    gap:6px;

    font-size:13px;
    font-weight:500;
    color:#6b7280;

    margin-bottom:8px;
}
.feed-file{
    font-size:15px;
    display:flex;
    align-items:center;
    gap:6px;
    font-weight:600;
    color:#111827;
    margin-bottom:4px;
}


.write-target{
    font-size:13px;
    font-weight:800;
    color:#2563eb;
    margin-bottom:10px;
}

.target-title{
    font-size:18px;
    font-weight:700;
    color:#111827;
    margin-bottom:8px;
    letter-spacing:0.3px;
}


.selected-file-name{
    margin:8px 0;
    font-size:13px;
    color:#475569;
}

.file-actions{
    margin-top:8px;
    display:flex;
    gap:10px;
    align-items:center;
}


.file-link{
    color:#2563eb;
    font-weight:700;
}


.file-delete-btn{
    height:30px;
    padding:0 10px;
    border:1px solid #e5e7eb;
    border-radius:8px;
    background:#fff;
    cursor:pointer;
}


.proj-indicator{
    margin-left:6px;
    font-size:12px;
}

.proj-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:18px;
    height:18px;
    margin-left:6px;
    padding:0 6px;
    border-radius:999px;
    background:#ef4444;
    color:#fff;
    font-size:11px;
    font-weight:800;
}
.proj-badge.file{
    background:#2563eb;
}


.stage-title-wrap{
    display: flex;
    align-items: center;
    gap: 8px;
}


.stage-badges{
    display: flex;
    gap: 6px;
    margin-left:8px;
}
.stage-badges svg{
    width:14px;
    height:14px;
    stroke:#6b7280;
    stroke-width:1.8;
    fill:none;
}


.comment-card{
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}
.comment-card.mine{
    background: #e8f2ff;
}
.comment-card.other{
    background: #f3f3f3;
}
.comment-author{
    font-weight: 600;
}
.comment-time{
    font-size: 12px;
    color: #888;
}


.file-row{
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
}
.file-icon{
    font-size: 18px;
}


.write-box{
    position:sticky;
    bottom:0;
    background:white;
    border-top:1px solid #eee;
}


.bottom-tabs{
    display:flex;
    gap:6px;
    margin-bottom:8px;
}


.feed-card:hover{
    transform:translateY(-3px);
    box-shadow:
        0 4px 10px rgba(0,0,0,0.08),
        0 12px 28px rgba(0,0,0,0.10);
}
.feed-card:hover .feed-actions{
    opacity:1;
}

.feed-card:hover .edited-mark {
    opacity: 1;
}
.feed-card.active-stage{
    border-left:4px solid #2563eb;
}
.reply-item:hover .feed-action-btn,
.feed-card:hover .feed-action-btn {   /* 🔥 이거 추가 */
    opacity: 1;
    pointer-events: auto;
}


.quick-comment-panel{
    position:fixed;
    right:30px;
    bottom:90px;
    width:360px;
    z-index:9999;
    background:white;
    border-radius:10px;
    box-shadow:0 10px 30px rgba(0,0,0,0.2);
    padding:15px;
}


.quick-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.close-btn{
    background:none;
    border:none;
    font-size:18px;
}

/* PROJECT ICON */

.project-icon{
    width:28px;
    height:28px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:16px;
}

/* PROJECT INFO */

.project-info{
    flex:1;
    display:flex;
    flex-direction:column;
}

.project-name{
    font-size:14px;
    font-weight:600;

    white-space:normal;   /* 🔥 변경 */
    word-break:break-word;
}

.project-meta{
    font-size:12px;
    color:#64748B;
}

/* PROJECT RIGHT ICONS */

.project-icons{
    display:flex;
    align-items:center;
    gap:6px;
}

/* SVG ICON */

.proj-icon{
    display:inline-flex;
    align-items:center;
}

.proj-icon svg{
    width:14px;
    height:14px;
    stroke:#475569;
    stroke-width:1.6;
    fill:none;
}

.proj-icon svg:hover{
    stroke:#111827;
}

.quick-close-btn:hover{
    background:#F1F5F9;
}

.quick-comment-btn{
    position:fixed;
    right:24px;
    bottom:24px;

    width:52px;
    height:52px;

    border-radius:50%;
    border:none;

    background:#2563EB;
    color:white;

    font-size:20px;
    cursor:pointer;

    box-shadow:0 8px 20px rgba(0,0,0,0.15);
}

.quick-comment-btn:hover{
    background:#1D4ED8;
}

.header-project-box{
    font-size:16px;
    font-weight:600;
    padding:6px 12px;
    border-radius:8px;
    background:#F1F5F9;
}

.closed-stage{
    text-decoration:line-through;
    color:#94A3B8;
}

.delay-blue{
    color:#2563eb;
    font-weight:700;
}

.delay-gray{
    color:#6b7280;
    font-weight:600;
}

.user-menu{
    position:relative;
    cursor:pointer;
    font-weight:600;
}

.user-dropdown button{
    width:100%;
    border:0;
    padding:10px;
    background:white;
    text-align:left;
}

.user-dropdown button:hover{
    background:#f2f5ff;
}
.modal-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.modal-close{
position:absolute;
right:16px;
top:16px;
}

.modal-close:hover{
    color:#000;
}

.btn-primary{
    background:#4f6df5;
    border:0;
    color:white;
    padding:8px 14px;
    border-radius:6px;
    font-weight:600;
}

.btn-primary:hover{
    background:#3953c8;
}

.header-user{
    position:relative;
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:700;
    cursor:pointer;
}

.user-dropdown{
    position:absolute;
    top:38px;
    left:0;
    right:auto;

    min-width:170px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:10px;
    box-shadow:0 10px 24px rgba(15,23,42,0.14);
    padding:6px;
    z-index:300;
}

.user-dropdown-btn{
    width:100%;
    border:0;
    background:transparent;
    text-align:left;
    padding:10px 12px;
    border-radius:8px;
    font-size:14px;
    font-weight:600;
    color:#1f2937;
    cursor:pointer;
}

.user-dropdown-btn:hover{
    background:#f3f4f6;
}

.quick-panel-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.quick-close-btn{
    border:0;
    background:none;
    font-size:18px;
    cursor:pointer;
}

.target-toggle-btn{
    background:#f1f5f9;
    border:none;
    border-radius:8px;
    padding:6px 10px;
    font-size:15px;
    cursor:pointer;
}

.target-toggle-btn:hover{
    background:#e2e8f0;
}

.comment-submit-btn{
background:#2563eb;
color:white;
border:none;
padding:10px 16px;
border-radius:8px;
font-weight:600;
transition:all .15s;
}

.comment-submit-btn:hover{
background:#1d4ed8;
}

.file-select-btn{
    background:#4f6df5;
    color:white;
    padding:8px 14px;
    border-radius:6px;
    cursor:pointer;
    display:inline-block;
}


.mini-btn:hover{
background:#e3e7ef;
}

.mini-btn.upload{
background:#e9f5ee;
color:#0f7a35;
}

.target-modal-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.35);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:2000;
}

.target-modal-header{
display:flex;
align-items:center;
justify-content:center;
position:relative;
padding:18px 20px;
border-bottom:1px solid #e5e7eb;

background:#f8fafc;
}

/* 그룹 */

.target-group{
background:#f8fafc;
border-radius:8px;
padding:8px 12px;
margin-bottom:6px;
border:1px solid #e5e7eb;
transition:all .15s;
}

.target-group:hover{
background:#eef2ff;
border-color:#6366f1;
}


/* 그룹 타이틀 */

.target-group summary{
display:flex;
align-items:center;

gap:10px;

font-weight:600;

font-size:14px;

cursor:pointer;
}

/* 사용자 리스트 */

.target-users{
margin-top:6px;

padding-left:26px;

display:flex;
flex-direction:column;

gap:4px;
}

/* 사용자 */

.target-user{
display:flex;
align-items:center;
gap:8px;

padding:4px 6px;
border-radius:6px;

font-size:13px;
color:#374151;

cursor:pointer;
transition:background .12s;
}

.target-user:hover{
background:#f1f5f9;
}

.target-user input,
.target-group input{
transform:scale(.85);
cursor:pointer;
}

.target-group summary:hover{
background:#f1f5f9;
border-radius:6px;
}

.modal-actions{
    padding:10px 16px;
    border-top:1px solid #e5e7eb;
    display:flex;
    justify-content:flex-end;
}

.modal-actions .comment-submit-btn{
    padding:8px 16px;
    font-size:14px;
}

.leader-star{
    color:#f59e0b;
    font-size:13px;
}

.target-modal{
width:540px;
height:640px;
display:flex;
flex-direction:column;

background:#ffffff;
border-radius:16px;
box-shadow:0 20px 60px rgba(0,0,0,0.25);
overflow:hidden;
}

.target-user input{
    transform:scale(0.9);
}

.target-groups{
flex:1;
overflow-y:auto;
padding:6px 4px;
}

.leader-select-wrap{
    display:flex;
    align-items:center;
    gap:10px;
}

.leader-btn:hover{
    background:#f59e0b;
}

.clear-btn:hover{
    background:#dc2626;
}

.target-search{
display:flex;
justify-content:center;
margin-bottom:12px;
}

.target-search-input{
width:50%;
min-width:260px;
max-width:380px;

padding:10px 14px;

border-radius:8px;
border:1px solid #d1d5db;

font-size:14px;
}

.target-search-input:focus{
outline:none;
border-color:#2563eb;
}

.target-actions button{
padding:8px 14px;
font-size:13px;
border-radius:8px;
font-weight:600;
}

.target-actions button:hover{
transform:translateY(-1px);
box-shadow:0 4px 10px rgba(0,0,0,0.12);
}


.opv-page{
    width:100%;
    max-width:1200px;
    margin:0;
    margin-left: 40px; 

    display:flex;
    flex-direction:column;

    gap:20px;
}
.opv-page-wrap{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:24px;
    background:#eef2f6;
}

.opv-form-card{
    width:100%;
    max-width:480px;
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:16px;
    padding:24px;
    box-shadow:0 10px 30px rgba(15,23,42,0.08);
}

.opv-form-card.wide{
    max-width:620px;
}

.opv-form-title{
    font-size:24px;
    font-weight:800;
    color:#111827;
    margin-bottom:8px;
}

.opv-form-desc{
    font-size:14px;
    color:#6b7280;
    margin-bottom:18px;
}

.opv-form-row{
    display:flex;
    flex-direction:column;
    gap:8px;
    margin-bottom:14px;
}

.opv-form-row label{
    font-size:14px;
    font-weight:700;
    color:#374151;
}

.opv-form-row input,
.opv-form-row select{
    height:44px;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:0 12px;
    font-size:14px;
    background:#fff;
}

.opv-form-actions{
    margin-top:10px;
    display:flex;
    justify-content:flex-end;
}

.primary-btn:hover{
    background:#1d4ed8;
}

.primary-btn:disabled{
    opacity:.65;
    cursor:not-allowed;
}

.opv-form-message{
    margin-bottom:14px;
    padding:12px 14px;
    border-radius:10px;
    font-size:14px;
    font-weight:700;
}

.opv-form-message.ok{
    background:#ecfdf5;
    border:1px solid #a7f3d0;
    color:#047857;
}

.opv-form-message.error{
    background:#fef2f2;
    border:1px solid #fecaca;
    color:#b91c1c;
}

.secondary-btn{
margin-top:10px;
background:none;
border:none;
color:#6B7280;
font-size:14px;
cursor:pointer;
}

@keyframes shakeFeed{
    0% { transform:translateX(0); }
    25% { transform:translateX(-3px); }
    50% { transform:translateX(3px); }
    75% { transform:translateX(-3px); }
    100% { transform:translateX(0); }
}


.mini-badge{
font-size:13px;
color:#444;
background:#f2f2f2;
border-radius:4px;
padding:2px 5px;
cursor:pointer;
transition:all .15s;
}

.mini-badge:hover{
background:#e6e6e6;
}

.mini-badge.comment{
color:#444;
}

.mini-badge.private{
color:#555;
}

.mini-badge.file{
color:#444;
}

.mini-badge.unread{
background:#000;
color:#fff;
font-size:10px;
padding:2px 4px;
}

.feed-icon{
    display:flex;
    align-items:center;
    gap:6px;
}

.feed-icon svg{
    width:14px;
    height:14px;
    stroke:#9CA3AF;
    fill:none;
    stroke-width:1.8;
}

.feed-icon.private svg{
    stroke:#EF4444;
}

/* private comment targets */

.target-wrap{
    display:flex;
    align-items:center;
    gap:6px;

    flex-wrap:wrap;   /* 🔥 변경 */
    min-width:0;
}

.target-chip{
    background:#eef2ff;
    color:#3730a3;

    padding:3px 8px;
    border-radius:6px;

    font-size:12px;
    font-weight:600;
}

.author-name{
font-weight:600;
margin-right:6px;
}
.target-more{
background:#eef2ff;
color:#4f46e5;
font-size:12px;
padding:3px 8px;
border-radius:6px;
font-weight:600;
white-space:nowrap;
}
.stage-subject{
    display: inline-block;
    max-width: 100%;
    font-size: 12px;
    font-weight: 800;
    white-space: normal;
    line-height: 1.2;
}
.stage-table td:nth-child(4),
.stage-table td:nth-child(5),
.stage-table td:nth-child(6){
    font-size: 12px;
}


.file-clip svg{
width:16px;
height:16px;
stroke:#9CA3AF;
fill:none;
stroke-width:2;
}

.target-actions{
display:flex;
justify-content:center;
gap:10px;
margin-bottom:14px;
}


.all-btn{
background:#2563eb;
color:white;
border:none;
padding:7px 14px;
border-radius:8px;
font-size:13px;
font-weight:600;
}

.leader-btn{
background:#fbbf24;
border:none;
color:#111;
}

.select-all-btn{
background:#2563eb;
border:none;
color:white;
}

.clear-btn{
background:#ef4444;
border:none;
color:white;
}


.target-actions button:hover{
opacity:0.9;
}

/* =========================
   ADMIN USERS
========================= */

.admin-page-wrap{
    padding:20px;
}

.admin-form-card{
    background:#fff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:20px;
    box-shadow:0 4px 20px rgba(0,0,0,0.04);
}

.opv-form-title{
    font-size:22px;
    font-weight:700;
    margin-bottom:6px;
}

.opv-form-desc{
    color:#6b7280;
    margin-bottom:16px;
}

.opv-form-message{
    padding:10px 12px;
    border-radius:10px;
    margin-bottom:14px;
    font-size:14px;
}

.opv-form-message.ok{
    background:#ecfdf5;
    color:#065f46;
    border:1px solid #a7f3d0;
}

.opv-form-message.error{
    background:#fef2f2;
    color:#991b1b;
    border:1px solid #fecaca;
}

.admin-block{
    margin-top:24px;
}

.admin-block-title{
    font-size:18px;
    font-weight:700;
    margin-bottom:12px;
}

.admin-create-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
}

.admin-create-grid.user-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.admin-field{
    display:flex;
    flex-direction:column;
    gap:6px;
}

.admin-field label{
    font-size:13px;
    color:#6b7280;
    font-weight:600;
}

.admin-field input,
.admin-field select{
    height:40px;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:0 12px;
    font-size:14px;
    background:#fff;
}

.btn-field{
    justify-content:flex-end;
}

.primary-btn{
    height:40px;
    border:none;
    background:#2563eb;
    color:white;
    border-radius:10px;
    padding:0 16px;
    font-weight:600;
    cursor:pointer;
}

.secondary-btn{
    height:40px;
    border:1px solid #d1d5db;
    background:#fff;
    color:#111827;
    border-radius:10px;
    padding:0 16px;
    font-weight:600;
    cursor:pointer;
}

.mini-btn{
    height:34px;
    border:1px solid #d1d5db;
    background:#fff;
    color:#111827;
    border-radius:8px;
    padding:0 10px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
}

.mini-btn.danger{
    border-color:#fecaca;
    color:#b91c1c;
    background:#fff5f5;
}

.mini-save-btn{
    height:34px;
    border:none;
    background:#111827;
    color:white;
    border-radius:8px;
    padding:0 10px;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
}

.admin-create-flags{
    display:flex;
    gap:18px;
    margin-top:12px;
    flex-wrap:wrap;
}

.admin-create-flags label{
    display:flex;
    align-items:center;
    gap:6px;
    font-size:14px;
}

.admin-table-wrap{
    overflow:auto;
    border:1px solid #e5e7eb;
    border-radius:12px;
}

.admin-table{
    width:100%;
    border-collapse:collapse;
    min-width:1200px;
    background:#fff;
}

.admin-table th{
    background:#f8fafc;
    text-align:left;
    font-size:13px;
    color:#6b7280;
    padding:12px;
    border-bottom:1px solid #e5e7eb;
    white-space:nowrap;
}

.admin-table td{
    padding:10px 12px;
    border-bottom:1px solid #f1f5f9;
    vertical-align:middle;
}

.admin-table input[type="text"],
.admin-table input:not([type]),
.admin-table select{
    width:100%;
    height:36px;
    border:1px solid #d1d5db;
    border-radius:8px;
    padding:0 10px;
    font-size:13px;
    background:#fff;
}

.nav-divider{
margin:14px 0;
height:1px;
background:rgba(255,255,255,0.2);
}

.nav-admin-title{
    font-size:11px;
    font-weight:600;
    color:#9ca3af;
    margin-bottom:6px;
    padding-left:10px;
}

@media (max-width:900px){
    body{
        display:flex;
        justify-content:center;
        align-items:center;
        background:#111;
        color:white;
        font-size:18px;
    }

    body *{
        display:none !important;
    }

    body::before{
        content:"이 시스템은 PC에서만 사용 가능합니다.";
        display:block;
    }
}

/* =========================
   ADMIN LAYOUT
========================= */

.admin-shell{
    display:flex;
    height:100vh;
}

.admin-sidebar{
    position:relative;
    z-index:10;
    width: 240px;
    flex-shrink: 0;
}

.admin-logo{
    font-size:20px;
    font-weight:bold;
    margin-bottom:30px;
}

.admin-menu .menu-item{
    display:block;           /* 🔥 추가 */
    padding:10px;
    margin-bottom:8px;
    border-radius:6px;
    cursor:pointer;
}

.admin-menu .menu-item:hover{
    background:#1f2937;
}

.admin-menu a.active{
    background:#374151;
}

.admin-content{
    flex:1;
    padding:20px;
    min-width: 0;
    height: 100vh;
    overflow: auto;
}

.menu-divider{
    height: 1px;
    background: #2d3748;
    margin: 10px 0;
}

/* 로그 색상 */
.log-fail{
    background: #ffe5e5;
    color: #d60000;
    font-weight: 600;
}

.log-ok{
    background: #e7f9ed;
    color: #0a7a2f;
}

.log-warn{
    background: #fff6d6;
    color: #9a6b00;
}

.feed-card{
    display:flex;
    gap:2px;
    align-items:flex-start;
    padding:10px;
    background:#ffffff;
    border:1px solid #e5e7eb;
    border-radius:14px;
    padding:16px;
    margin-bottom:12px;

    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 8px 20px rgba(0,0,0,0.06);

    transition:all .18s ease;

    overflow:hidden;

    position:relative;   /* 🔥 이거만 추가 */
}

.feed-card::before{
    content:"";
    position:absolute;   /* 🔥 추가 */
    left:8px;            /* 🔥 추가 */
    top:12px;            /* 🔥 추가 */

    width:8px;
    height:8px;
    border-radius:50%;
    background:#2563eb;

    pointer-events: none; 
}

.feed-card::after{
    content:"";
    position:absolute;
    left:11px;
    top:20px;
    bottom:10px;   /* 🔥 -12 → 10 */
    width:2px;
    background:#e5e7eb;
}


.feed-card.private::before{
    background:#ef4444;
}

.feed-content{
    display:flex;
    flex-direction:column;
    gap:4px;

    flex:1;
    min-width:0;
}

.feed-header{
    display:flex;
    gap:8px;
    align-items:center;
}

.feed-author{
    font-weight:700;
    color:#111827;
}

.feed-date{
    color:#94a3b8;
    font-size:12px;
    margin-left:auto;
}

.feed-text{
    font-size:13px;     /* 👈 여기만 변경 */
    line-height:1.45;   /* 👈 같이 줄이면 더 좋음 */
    color:#0f172a;

    white-space:pre-wrap;
    word-break:break-word;
}

.feed-actions{
    opacity:0;
    margin-left:auto;
    transition:opacity .15s;
}


.sidebar{
    width:150px;
    min-width:150px;
    flex-shrink:0;
    background:#1e293b;
    color:white;
    display:flex;
    flex-direction:column;
    transition: width .18s ease;
}

.sidebar.collapsed{
    width:60px;
    min-width:60px;
}

.settings-wrap{
    max-width: 680px;
    margin: 40px auto;
}

.settings-card{
    background:#ffffff;
    border-radius:16px;
    padding:28px;
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    border:1px solid #e5e7eb;
}
.settings-section{
    margin-bottom:28px;
}

.settings-title{
    font-size:18px;
    font-weight:800;
    margin-bottom:14px;
    color:#111827;
}

.settings-divider{
    height:1px;
    background:#e5e7eb;
    margin:20px 0;
}

.settings-input{
    height:44px;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:0 12px;
    font-size:14px;
}

.settings-input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 2px rgba(37,99,235,0.1);
}

.btn-main{
    height:44px;
    padding:0 18px;
    border:none;
    border-radius:10px;
    font-weight:700;
    background:#2563eb;
    color:white;
    cursor:pointer;
}

.btn-main:hover{
    background:#1d4ed8;
}

.btn-sub{
    height:44px;
    padding:0 14px;
    border:1px solid #d1d5db;
    border-radius:10px;
    background:#f8fafc;
    font-weight:600;
    cursor:pointer;
}

.status-box{
    padding:12px;
    border-radius:10px;
    font-size:14px;
    font-weight:700;
}

.status-error{
    background:#fef2f2;
    color:#b91c1c;
    border:1px solid #fecaca;
}

.status-ok{
    background:#ecfdf5;
    color:#047857;
    border:1px solid #a7f3d0;
}

.settings-check-row{
    display:flex;
    gap:16px;
    flex-wrap:wrap;
    margin-top:10px;
}

.settings-check-row label{
    display:flex;
    align-items:center;
    gap:6px;
    font-weight:600;
}

.settings-textarea{
    width:100%;
    min-height:120px;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:12px;
    font-size:14px;
}

/* =========================
   SETTINGS IMPROVE ONLY
========================= */

/* 버튼 정렬 */
.settings-actions{
    display:flex;
    gap:10px;
    margin-top:12px;
}

/* 상태 메시지 */
.settings-help{
    margin-top:10px;
    font-size:13px;
    font-weight:600;
    color:#475569;
}

/* 체크박스 상단 */
.settings-inline-label{
    display:flex;
    align-items:center;
    gap:8px;
    font-weight:700;
    margin-bottom:6px;
}

/* textarea 포커스 */
.settings-textarea:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 2px rgba(37,99,235,0.1);
}

/* =========================
   SETTINGS FINAL FIX
========================= */

/* 비밀번호 3칸 자연스럽게 */
.settings-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
}

.settings-grid input:nth-child(3){
    grid-column:1 / span 2;   /* 🔥 이게 핵심 */
}

/* 버튼 라인 정리 */
.settings-actions{
    display:flex;
    gap:10px;
    margin-top:14px;
}

/* 메시지 */
.settings-help{
    margin-top:10px;
    font-size:13px;
    font-weight:600;
    color:#475569;
}

/* 섹션 타이틀 더 또렷하게 */
.settings-title{
    font-size:20px;
    font-weight:800;
}

.input-row {
    position: relative;
    margin-bottom: 12px;
}

/* hover */
.eye-btn:hover {
    background: #e0e7ff;
}

.eye-btn:hover .eye-icon {
    stroke: #2563eb;
}

.password-section {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;   /* 🔥 중앙 정렬 핵심 */
}

.input-row input {
    width: 100%;
    height: 46px;
    padding: 10px 45px 10px 12px;
    border-radius: 8px;
    border: 1px solid #dcdcdc;
}

.eye-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    border: none;
    background: #f1f5f9;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}

.eye-icon {
    width: 18px;
    height: 18px;
    stroke: #475569;
    stroke-width: 2;
    fill: none;
}

.admin-content .opv-page-wrap{
    align-items: flex-start !important;
    justify-content: flex-start !important;
}


.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    cursor: pointer;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
}

.unread-comment-badge {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.unread-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.unread-popup {
    width: 680px;
    max-width: calc(100vw - 40px);
    max-height: 80vh;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
    overflow: hidden;
}

.unread-popup-header {
    height: 56px;
    padding: 0 18px;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.unread-popup-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2a44;
}

.unread-popup-close {
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #60708f;
}

.unread-popup-body {
    padding: 14px;
    overflow-y: auto;
    max-height: calc(80vh - 56px);
}

.unread-empty {
    padding: 30px 10px;
    text-align: center;
    color: #7b88a1;
}

.unread-item {
    border: 1px solid #e7ebf3;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.15s;
}

.unread-item:hover {
    background: #f8fbff;
    border-color: #cdd8ea;
}

.unread-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.unread-type {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.unread-type.public {
    background: #e8f1ff;
    color: #2563eb;
}

.unread-type.private {
    background: #fdecec;
    color: #dc2626;
}

.unread-time {
    font-size: 12px;
    color: #7a869d;
}

.unread-stage {
    font-size: 15px;
    font-weight: 700;
    color: #22314d;
    margin-bottom: 4px;
}

.unread-project,
.unread-author {
    font-size: 12px;
    color: #71809b;
    margin-bottom: 3px;
}

.unread-content {
    margin-top: 8px;
    font-size: 13px;
    color: #334155;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 🔥 읽힘 애니메이션 */
.feed-read {
    animation: readFade 0.6s ease;
}

@keyframes readFade {
    0%   { background-color: #fff3cd; } /* 연한 노랑 */
    100% { background-color: transparent; }
}

/* 🔥 클릭 이동 강조 */
.feed-highlight {
    animation: highlightFlash 1.2s ease;
        animation: flash 1.2s ease;
    border-left:4px solid #3b82f6;   /* 🔥 노란 강조 */
}

@keyframes highlightFlash {
    0%   { background-color: #d1ecf1; } /* 연한 파랑 */
    100% { background-color: transparent; }
}

.read-check {
    color: #28a745;
    margin-left: 6px;
    font-size: 12px;
}

.feed-targets {
    margin-top: 4px;
    margin-bottom: 6px;
    font-size: 12px;
    color: #8b5cf6;
    font-weight: 600;
}

.unread-targets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0;
    align-items: center;
}

.unread-targets .arrow {
    font-size: 12px;
    color: #6B7280;
}

/* 팝업 전용 (기존 target-chip override) */
.unread-targets .target-chip {
    background: #eef2ff;
    color: #3730a3;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 600;
}

.password-actions {
    display: flex;
    justify-content: center;   /* 🔥 가운데 */
    gap: 10px;
    margin-top: 16px;
}

.password-actions .btn-main {
    width: 100%;   /* 🔥 입력창과 동일하게 맞춤 */
}

.input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-input {
    flex: 1;
}

.settings-section {
    display: flex;
    flex-direction: column;
}

.opv-form-actions {
    display: flex;
    flex-direction: column;   /* 🔥 세로로 쌓기 */
    align-items: center;      /* 가운데 정렬 */
    gap: 10px;
    margin-top: 20px;
}

.opv-form-actions .primary-btn {
    width: 100%;
    max-width: 240px;
}

.opv-form-actions .secondary-btn {
    width: 100%;
    max-width: 240px;
}

.secondary-btn {
    background: #f3f4f6;
    border: 1px solid #ddd;
}


.food-panel {
    padding: 20px;
    height: 100%;
    overflow: auto;
    background: #f8fafc;
}

.food-header {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.food-list {
    list-style: none;
    padding: 0;
}

.food-list li {
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 8px;
    border: 1px solid #e5e7eb;
    transition: 0.2s;
}

.food-list li:hover {
    background: #f3f4f6;
}

.loading {
    color: #6b7280;
}

.empty {
    color: #ef4444;
}


:root {
    --opv-left-width: 240px;
    --opv-right-width: 420px;
    --opv-resizer-width: 8px;
}

.opv-dashboard {
    display: grid;
    grid-template-columns:
        var(--opv-left-width)
        var(--opv-resizer-width)
        minmax(0,1fr)
        var(--opv-resizer-width)
        var(--opv-right-width);
    height: 100%;
    min-height: 0;
}

.opv-left,
.opv-center,
.opv-right{
    min-width: 0;
    min-height: 0;
    height: 100%;
}


/* ❌ 나머지는 스크롤 막기 */
.opv-right{
    overflow: visible;
}

.table-wrap{
    flex: 1;
    min-height: 0;
    overflow: auto;
}

/* 리사이저 */
.opv-resizer{
    width: 8px;
    cursor: col-resize;
    background: rgba(0,0,0,0.08);
}
.opv-resizer:hover{
    background: rgba(0,0,0,0.25);
}

.unread-comment-btn {
    height: 38px;
    padding: 0 14px;
    border: 1px solid #d8deea;
    background: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #23314f;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.unread-comment-btn:hover {
    background: #eef3ff;
    border-color: #b8c6ea;
    box-shadow: 0 2px 8px rgba(35, 49, 79, 0.08);
}

#activity-feed{
    flex: 1;
    min-height: 0;
    height:0; 
    overflow-y: auto;
    overflow-x: hidden;
}

.opv-resizer.dragging::before{
    background: #2563eb;
}

.opv-right{
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.comments-card{
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height:100%; 
    overflow: visible;
}

.comments-card > * {
    min-height: 0;
}

/* ===== 삭제가능 ===== */

.opv-dashboard{
    height:100%;
    min-height:0;
}

.opv-center{
    display:flex;
    flex-direction:column;
    height:100%;
    min-height:0;
    overflow: visible;
}

.opv-right{
    display:flex;
    flex-direction:column;
    min-height:0;
}

.comments-feed{
    flex:1;
    overflow-y:auto;
    min-height:0;
    position:relative; /* 유지 가능 */
}

.main-content{
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: auto;   /* 🔥 hidden → auto */

    padding: 32px 40px;   /* 🔥 핵심 */
    display: block;
}

.opv-dashboard {
    height: 100%;
    min-height: 0;
}
.opv-dashboard > * {
    min-height: 0;
}
.page-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
}


.dashboard-root {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: visible;
}

.dashboard-root .opv-dashboard {
    flex: 1;
    min-height: 0;
}

#normalContent{
    display:flex;
    flex-direction:column;
    height:100%;
    min-height:0;
}

.feed-actions{
    position: absolute;
    top: 6px;
    right: 8px;
}

.edit-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edit-textarea {
    width: 100%;
    min-height: 60px;
    padding: 6px;
}

.edit-actions {
    display: flex;
    gap: 6px;
}

.feed-card {
    position: relative;
}

.feed-action-btn {
    position: absolute;
    top: 6px;
    right: 8px;

    background: transparent;
    border: none;

    color: #9ca3af;
    cursor: pointer;

    padding: 4px;
    border-radius: 6px;

    transition: all 0.15s ease;
    opacity: 0;
}

.feed-action-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.edited-mark {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    color: #9ca3af;
}

.edited-mark {
    opacity: 0;
    transition: opacity 0.2s;
}


.feed-action-btn,
.feed-action-btn:focus,
.feed-action-btn:active,
.feed-action-btn:hover {
    outline: none;
    box-shadow: none;
    border: none;
}

.feed-action-btn svg {
    outline: none;
}

.projects-card .project-title {
    font-size: 13px;
    font-weight: 600;
}
.projects-card .project-meta {
    font-size: 12px;
    color: #888;
}

.projects-card .project-item {
    padding: 8px 10px;   /* 기존 16px 이런거면 절반으로 */
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
}

.project-header {
    position: relative;
}

.header-right {
    position: relative;
    z-index: 9999;
}

.unread-comment-btn {
    position: relative;
    z-index: 10;
}

.progress-bar {
    display: none;
}

.progress-text {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;

    background: #e8f1ff;
    padding: 4px 10px;
    border-radius: 999px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;

    flex: 1;          /* 🔥 핵심: 끝까지 먹기 */
    min-width: 0;
}
.header-project-box {
    display: flex;
    align-items: center;
    gap: 10px;

    flex: 1;
    min-width: 0;
}
.progress-text {
    margin-left: auto;     /* 🔥 오른쪽 끝으로 밀기 */

    font-size: 13px;
    font-weight: 700;

    color: #2563eb;
    background: #e8f1ff;

    padding: 4px 10px;
    border-radius: 999px;
}
.header-right {
    flex-shrink: 0;   /* 🔥 절대 줄어들지 않음 */
    display: flex;
    gap: 8px;
}

.project-header {
    display: flex;
    align-items: center;
}

.progress-text {
    margin-left: auto;   /* 🔥 핵심 */
}

.header-card {
    display: flex;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.header-project-box {
    display: flex;        /* 🔥 column → row 변경 */
    align-items: center;
    gap: 10px;

    flex: 1;
    min-width: 0;
}

/* 프로젝트명 */
.project-title {
    flex: 1;              /* 🔥 밀어내기 핵심 */
    min-width: 0;

    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 진행률 */
.progress-text {
    flex-shrink: 0;

    font-size: 12px;
    font-weight: 700;
    color: #2563eb;

    background: #e8f1ff;
    padding: 2px 8px;
    border-radius: 999px;
}

/* 버튼 */
.header-project-box button {
    flex-shrink: 0;
}

.kpi-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
}

.kpi-card {
    background:#f4f6fb;
    padding:16px;
    border-radius:12px;
}

.kpi-title {
    font-size:13px;
    color:#666;
}

.kpi-value {
    font-size:22px;
    font-weight:bold;
}

.green { background:#e8f8ee; }
.orange { background:#fff4e5; }
.red { background:#ffeaea; }

.card {
    margin-top:20px;
    background:#fff;
    padding:16px;
    border-radius:12px;
}

.card-title {
    font-weight:bold;
    margin-bottom:10px;
}

.risk-item {
    padding:8px 0;
    border-bottom:1px solid #eee;
}

.team-row {
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:6px;
}

.team-bar-wrap {
    flex:1;
    background:#eee;
    height:8px;
    border-radius:4px;
}

.team-bar {
    height:8px;
    background:#4a90e2;
    border-radius:4px;
}

.admin-dashboard-page {
    padding: 8px 4px 24px;
}

.admin-dashboard-subtitle {
    color: #6b7280;
    margin: -2px 0 18px;
    font-size: 14px;
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 14px;
}

.admin-kpi-grid.secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-kpi-card {
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 16px;
    padding: 18px 18px 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.admin-kpi-card.clickable {
    cursor: pointer;
}

.admin-kpi-card.clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.admin-kpi-card.active {
    border-color: #7aa2ff;
    box-shadow: 0 0 0 3px rgba(122, 162, 255, 0.15);
}

.admin-kpi-card.success {
    background: #eef8f2;
}

.admin-kpi-card.warning {
    background: #fff6e8;
}

.admin-kpi-card.danger {
    background: #fdeeee;
}

.admin-kpi-card.mini {
    min-height: 96px;
}

.admin-kpi-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
}

.admin-kpi-value {
    font-size: 34px;
    line-height: 1;
    font-weight: 800;
    color: #0f172a;
}

.admin-kpi-value.small {
    font-size: 24px;
}

.admin-kpi-desc {
    margin-top: 10px;
    font-size: 12px;
    color: #8a94a6;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.admin-panel {
    background: #ffffff;
    border: 1px solid #e6ebf2;
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.admin-panel.full-width {
    width: 100%;
}

.admin-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-bottom: 14px;
}

.admin-panel-title {
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.admin-panel-subtitle {
    font-size: 12px;
    color: #8a94a6;
}

.empty-state {
    padding: 30px 10px;
    color: #8a94a6;
    text-align: center;
    border: 1px dashed #d7deea;
    border-radius: 14px;
    background: #fafcff;
}

.risk-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 12px;
    border: 1px solid #edf1f7;
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

.risk-row:hover {
    background: #f8fbff;
    border-color: #d5e4ff;
    transform: translateY(-1px);
}

.risk-main {
    min-width: 0;
}

.risk-name {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    word-break: break-word;
}

.risk-meta {
    font-size: 13px;
    color: #6b7280;
}

.risk-side {
    min-width: 110px;
    text-align: right;
    font-size: 13px;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-chip.success {
    background: #e8f7ee;
    color: #15803d;
}

.status-chip.warning {
    background: #fff4df;
    color: #b45309;
}

.status-chip.danger {
    background: #fde8e8;
    color: #b91c1c;
}

.team-load-row {
    margin-bottom: 16px;
}

.team-load-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.team-name {
    font-weight: 700;
    color: #0f172a;
}

.team-count {
    font-size: 13px;
    color: #64748b;
}

.team-load-bar-wrap {
    width: 100%;
    height: 10px;
    background: #eef2f7;
    border-radius: 999px;
    overflow: hidden;
}

.team-load-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #5b8cff, #7aa2ff);
}

.project-detail-box {
    display: grid;
    gap: 10px;
}

.detail-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #edf1f7;
}

.admin-dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-dashboard-table th {
    text-align: left;
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
    padding: 12px 10px;
    border-bottom: 1px solid #e8edf5;
    background: #fafcff;
}

.admin-dashboard-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #eef2f7;
    font-size: 14px;
    color: #0f172a;
    vertical-align: middle;
}

.admin-dashboard-table.compact td,
.admin-dashboard-table.compact th {
    padding: 10px 8px;
    font-size: 13px;
}

.clickable-row {
    cursor: pointer;
    transition: background .15s ease;
}

.clickable-row:hover {
    background: #f8fbff;
}

.clickable-row.selected {
    background: #eef5ff;
}

@media (max-width: 1200px) {
    .admin-kpi-grid,
    .admin-kpi-grid.secondary,
    .admin-dashboard-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .admin-kpi-grid,
    .admin-kpi-grid.secondary,
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
    }

    .risk-row {
        flex-direction: column;
    }

    .risk-side {
        text-align: left;
        min-width: 0;
    }

    .detail-line {
        flex-direction: column;
    }
}

/* 🔥 위험 강조 */
.risk-row.delay {
    background: #ffe5e5;
    border-left: 5px solid #ff4d4f;
}

.risk-row.risk {
    background: #fff7e6;
    border-left: 5px solid #faad14;
}

.risk-row.normal {
    background: #f6ffed;
    border-left: 5px solid #52c41a;
}

/* KPI 강조 */
.admin-kpi-card.danger {
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    color: white;
}

.admin-kpi-card.warning {
    background: linear-gradient(135deg, #faad14, #ffd666);
}

.admin-kpi-card.success {
    background: linear-gradient(135deg, #52c41a, #95de64);
}

.delay-wbs-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.delay-project {
    font-weight: 700;
    font-size: 13px;
}

.delay-subject {
    font-size: 13px;
    color: #555;
}

.delay-user {
    font-size: 12px;
    color: #888;
}

.delay-days {
    font-weight: 700;
    color: #d32f2f;
}

/* 상태 popup 잘림 방지 */
.stage-table{
    table-layout: auto !important;
}

.stage-table td{
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: normal !important;
}

.status-cell{
    position: relative;
    overflow: visible !important;
}

.reply-list {
    margin-left: 28px;
    padding-left: 12px;
    border-left: 2px solid #e2e6ef;
    margin-top: 8px;
    padding-top: 6px;
}

.reply-item {
    position: relative;
    margin-top: 8px;
}

.reply-item::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 12px;
    width: 10px;
    height: 2px;
    background: #e2e6ef;
}

.reply-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.reply-content {
    background: #f8fafc;
    padding: 8px 10px;
    border-radius: 6px;
}

.feed-card {
    position: relative;
}

.reply-btn {
    position: relative;
    z-index: 20;
}

.feed-action-btn {
    z-index: 999;
}

.feed-card::before,
.feed-card::after {
    pointer-events: none;
}

.inline-reply-box{
    margin-top:10px;
    padding:10px;
    background:#f8fafc;
    border-radius:10px;
    border:1px solid #e2e8f0;
    animation: replyFadeSlide .22s ease;
    transform-origin: top;
}

@keyframes replyFadeSlide{
    from{
        opacity:0;
        transform:translateY(-6px) scaleY(.96);
    }
    to{
        opacity:1;
        transform:translateY(0) scaleY(1);
    }
}

.reply-list{
    margin-left:14px;
    border-left:2px solid #e5e7eb;
    padding-left:10px;
}

.inline-reply-box{
    position:relative;
    margin-left:14px;
}

/* 🔥 부모와 연결되는 점 */
.inline-reply-box::before{
    content:"";
    position:absolute;
    left:-10px;
    top:12px;

    width:6px;
    height:6px;
    border-radius:50%;
    background:#2563eb;
}

.reply-item{
    transition:all 0.15s ease;
}

.reply-item:hover{
    background:#f1f5f9;
    border-radius:8px;
}

.inline-reply-input:focus{
    outline:none;
    border-color:#2563eb;
    box-shadow:0 0 0 2px rgba(37,99,235,0.15);
}

.reply-btn{
    border: none;
    background: transparent;
    color: #4f6ef7;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
}

.reply-btn:hover{
    background: #eef2ff;
}

.inline-reply-box{
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #e1e6f0;
    border-radius: 10px;
    background: #fafbff;
}

.inline-reply-input{
    width: 100%;
    min-height: 60px;
    border: 1px solid #d8deea;
    border-radius: 8px;
    padding: 8px;
    font-size: 13px;

    line-height: 1.5;   /* 🔥 이거 추가 */

    resize: vertical;
    box-sizing: border-box;
    display: block;
}

.inline-reply-actions{
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
}

.btn-primary{
    background: #4f6ef7;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
}

.btn-light{
    background: #f1f3f7;
    border: none;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
}

.feed-action-btn.delete {
    right: 36px;   /* ← 이거 추가 */
}

.feed-action-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.feed-card.reply {
    margin-left: 24px;
    border-left: 2px solid #e5e7eb;
    padding-left: 10px;
}

.bar-wrap {
    display: flex;
    height: 28px;
    border-radius: 8px;
    overflow: hidden;
    background: #eee;
}

.bar-active {
    background: #4caf50;
    color: white;
    text-align: center;
    line-height: 28px;
    font-size: 12px;
}

.bar-inactive {
    background: #f44336;
    color: white;
    text-align: center;
    line-height: 28px;
    font-size: 12px;
}

.bar-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
}

.bar-mini {
    height: 10px;
    background: #2196f3;
    border-radius: 4px;
}

.bar-mini.danger {
    background: #f44336;
}

/* 전체 */
.reply-item {
    margin-left: 18px;
    margin-top: 10px;
    position: relative;
    z-index: 0; 
}

/* 헤더 */
.reply-header {
    display: flex;
    align-items: center;
    gap: 6px;

    position: relative;
    z-index: 30;   /* 🔥 핵심 */
}

/* 화살표 */
.reply-arrow {
    color: #9ca3af;
    font-size: 12px;
}

/* 작성자 */
.reply-author {
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
}

/* 내 댓글 */
.reply-author.me {
    color: #10b981;
}

.reply-item {
    position: relative;
    z-index: 0;
}

.reply-header {
    padding-right: 60px;
}

.reply-bubble {
    margin-top: 6px;
    padding: 10px 60px 10px 12px;  /* 🔥 오른쪽 공간 확보 */

    background: #f1f5f9;
    border-radius: 10px;

    font-size: 13px;
    line-height: 1.5;
    color: #1f2937;
}

.feed-action-btn {
    position: absolute;
    top: 14px;
    right: 8px;
    z-index: 999;
}

/* 기본 숨김 */
.feed-action-btn {
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease;
}



/* 공통 버튼 */
.feed-action-btn {
    position: absolute;
    top: 2px;
    right: 8px;

    font-size: 11px;
    font-weight: 600;

    padding: 2px 6px;

    border-radius: 6px;
    border: 1px solid #e5e7eb;

    background: #fff;
    color: #374151;

    cursor: pointer;
}

/* 수정 버튼 */
.edit-btn {
    right: 8px;
}

/* 삭제 버튼 */
.feed-action-btn.delete {
    right: 46px;

    border-color: #fecaca;
    color: #dc2626;
}

.feed-action-btn.delete:hover {
    background: #fee2e2;
}

.feed-card .feed-action-btn {
    top: 14px;
}

.reply-item .feed-action-btn {
    top: 10px;
}

.mention {
    color: #2563eb;
    font-weight: 700;
}

.mention.me {
    background: #2563eb;
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
}

.inline-reply-box {
    position: relative;
}

.mention-item {
    padding: 8px 12px;
    font-size: 13px;
    cursor: pointer;
}

.mention-item:hover {
    background: #eff6ff;
    color: #2563eb;
}

.inline-reply-input {
    width: 100%;
    min-height: 70px;

    padding: 10px 12px;

    font-size: 14px;
    line-height: 1.5;   /* 🔥 핵심 */

    border-radius: 10px;
    border: 1px solid #dbe2ea;

    resize: vertical;

    box-sizing: border-box;

    /* 🔥 이거 중요 */
    display: block;
}

.mention {
    margin-right: 4px;
}

.reply-input-wrap{
    position: relative;
}

/* 🔥 멘션 박스 */
.mention-box{
    position: absolute;
    bottom: 44px;
    left: 0;

    width: 220px;
    max-height: 180px;
    overflow-y: auto;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    padding: 6px;

    z-index: 50;
}

/* 🔥 아이템 */
.mention-item{
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;

    transition: all 0.15s ease;
}

/* hover */
.mention-item:hover{
    background: #f3f6fb;
}

/* 선택된 (키보드 이동) */
.mention-item.active{
    background: #e6f0ff;
    color: #2563eb;
    font-weight: 600;
}

.mention-item::before{
    content: "@";
    color: #2563eb;
    font-weight: 800;
}

.mention-box::-webkit-scrollbar{
    width: 6px;
}

.mention-box::-webkit-scrollbar-thumb{
    background: #cbd5e1;
    border-radius: 999px;
}

.mention {
    color: #2563eb;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
    padding: 2px 6px;
    border-radius: 6px;
}

.mention.me {
    background: #2563eb;
    color: #fff;
}

.mention:hover {
    background: rgba(37, 99, 235, 0.2);
    cursor: pointer;
}


.feed-action-btn{
    z-index:1;
}

.home-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap:16px;
}

.home-card{
    background:#fff;
    border-radius:12px;
    padding:16px;
    box-shadow:0 2px 8px rgba(0,0,0,0.05);
}

.unread-item,
.recent-item,
.work-item{
    padding:10px 0;
    border-bottom:1px solid #eee;
    cursor:pointer;
}

.unread-item:hover{
    background:#f9fafb;
}

.title{
    font-size:13px;
    font-weight:600;
    color:#2563eb;
}

.content{
    font-size:13px;
    color:#444;
}

.empty{
    color:#999;
    font-size:13px;
}

.work-item{
    display:flex;
    gap:8px;
    align-items:center;
}

.work-item .type{
    font-size:11px;
    background:#eef2ff;
    padding:2px 6px;
    border-radius:6px;
}

.work-item .delay{
    color:#ef4444;
    font-weight:600;
}

.home-dashboard{
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 16px;
    padding: 16px;
}

.home-main{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.home-side{
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kpi-row{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.kpi-card{
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    cursor: pointer;
}

.kpi-title{
    font-size: 13px;
    color: #6b7280;
}

.kpi-value{
    font-size: 22px;
    font-weight: 700;
}

.card{
    background: #fff;
    padding: 16px;
    border-radius: 12px;
}

.list-item{
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.title{
    font-weight: 600;
}

.desc{
    font-size: 13px;
    color: #666;
}

.work-item{
    display: flex;
    gap: 6px;
    padding: 8px 0;
    cursor: pointer;
}

.type{
    font-size: 11px;
    background: #eef2ff;
    padding: 2px 6px;
    border-radius: 6px;
}

.delay{
    color: red;
    font-weight: 600;
}


.home-layout{
    display: grid;
    grid-template-columns: 240px 1fr 300px;
    gap: 16px;
}

/* 카드 */
.card{
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
    margin-bottom: 16px;
}

/* 프로필 */
.profile-card .name{
    font-size: 18px;
    font-weight: bold;
}

.profile-card .team{
    font-size: 13px;
    color: #666;
}

/* 제목 */
.title{
    font-weight: 700;
    margin-bottom: 10px;
}

/* 작업 */
.work-item{
    display: flex;
    gap: 8px;
    padding: 6px 0;
    border-bottom: 1px solid #f1f1f1;
}
/* 댓글 */
.comment-item{
    padding: 6px 0;
    border-bottom: 1px solid #f1f1f1;
}

.empty{
    color: #999;
    font-size: 13px;
}
.fx-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 16px;
    width: 240px;

    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* 제목 */
.fx-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1f2937;
}

/* 리스트 */
.fx-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 한 줄 */
.fx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 8px 10px;
    border-radius: 8px;

    background: #f9fafb;
}

/* 통화 코드 */
.fx-code {
    font-weight: 600;
    color: #374151;
}

/* 값 */
.fx-value {
    font-weight: 700;
    color: #111827;
}

.fx-value.up {
    color: #dc2626;
    font-weight: 700;
}

.fx-value.down {
    color: #2563eb;
    font-weight: 700;
}

.fx-percent {
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.7;
}

.notice-item {
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
}

.notice-item:hover {
    background: #f3f6fb;
}

.notice-item.unread {
    font-weight: 600;
}

.notice-item .badge {
    margin-left: 6px;
    font-size: 10px;
    color: white;
    background: #ef4444;
    padding: 2px 5px;
    border-radius: 4px;
}


/* 배지 */
.badge {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 6px;
    margin-right: 6px;
}
.badge.new {
    background: #fee2e2;
    color: #b91c1c;
}

/* 🔥 환율 카드 */
.fx-card {
    border-radius: 16px;
    padding: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
}

.fx-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

/* 헤더 */
.fx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.fx-title {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.fx-sub {
    font-size: 12px;
    color: #9ca3af;
}

/* 리스트 */
.fx-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 행 */
.fx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 14px;
    border-radius: 12px;

    background: #f3f4f6;

    transition: all 0.15s ease;
}

/* hover */
.fx-row:hover {
    background: #e9eef5;
    transform: scale(1.01);
}

/* 왼쪽 */
.fx-code {
    font-weight: 600;
    font-size: 14px;
    color: #374151;
}

/* 오른쪽 값 */
.fx-right {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    letter-spacing: 0.3px;
}

/* 헤더 */
.fx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.fx-time {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}

/* 버튼 */
.fx-refresh {
    border: none;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    font-size: 13px;

    transition: all 0.15s ease;
}

.fx-refresh:hover {
    background: #e5e7eb;
    transform: rotate(20deg);
}

/* 행 */
.fx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 12px 14px;
    border-radius: 12px;

    background: #f3f4f6;
    transition: all 0.15s ease;
}

.fx-row:hover {
    background: #e9eef5;
    transform: scale(1.015);
}

/* 왼쪽 */
.fx-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fx-flag {
    font-size: 16px;
}

.fx-code {
    font-weight: 600;
    font-size: 14px;
}

/* 값 */
.fx-right {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.fx-refresh{
    cursor: pointer;
}

.fx-refresh:disabled{
    opacity: 0.6;
    cursor: default;
}

.notice-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-item {
    display: flex;
    gap: 12px;

    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #fff;
    cursor: pointer;

    transition: all 0.15s ease;
}

.notice-item:hover {
    background: #f8fafc;
}

.notice-left {
    width: 24px;
}

.pin {
    font-size: 16px;
}

.notice-main .title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.notice-main .meta {
    font-size: 12px;
    color: #9ca3af;
}

.loading {
    padding: 20px;
}

.empty {
    padding: 20px;
    color: #9ca3af;
}

.notice-title {
    display: flex;
    align-items: center;
    gap: 10px;

    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}

.notice-icon {
    width: 20px;
    height: 20px;
    stroke: #2563eb;
    stroke-width: 2;
    fill: none;
}

.notice-sub {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 4px;
}

/* 리스트 */
.notice-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notice-item {
    display: flex;
    gap: 12px;

    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;

    background: #fff;
    cursor: pointer;

    transition: all 0.15s ease;
}

.notice-item:hover {
    background: #f8fafc;
}

/* 고정 강조 */
.notice-item.pinned {
    border-left: 4px solid #2563eb;
    background: #f8fbff;
}

.notice-left {
    width: 50px;
}

.pin {
    font-size: 11px;
    font-weight: 600;
    color: #2563eb;
}

.notice-main .title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.notice-main .meta {
    font-size: 12px;
    color: #9ca3af;
}

.loading, .empty {
    padding: 20px;
}

.notice-header .title {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.notice-header .desc {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 4px;
}

/* 리스트 */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 카드 */
.notice-card {
    padding: 14px;
    border-radius: 10px;
    border: 1px solid #f1f5f9;
    background: #fff;

    cursor: pointer;
    transition: all 0.15s ease;
}

.notice-card:hover {
    background: #f8fafc;
}

/* 상단 */
.notice-card-top {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 6px;
}


.date {
    color: #9ca3af;
}

/* 제목 */
.notice-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* 작성자 */
.notice-meta {
    font-size: 12px;
    color: #9ca3af;
}

/* empty */
.empty {
    padding: 20px;
    color: #9ca3af;
}

.card-header {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.notice-row:hover{
    background:#f8fafc;
    transform: translateX(2px);
}

.notice-row.unread {
    font-weight: 600;
}

.notice-title {
    font-size: 13px;
}

.more {
    font-size: 12px;
    color: #2563eb;
    cursor: pointer;
}

.home-header {
    padding: 16px 20px 0 20px;
}

.home-title {
    font-size: 22px;
    font-weight: 700;
}

.home-sub {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 2px;
}

.home-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 300px;
    gap: 20px;
    padding: 20px;
}

.card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);

    min-height: 120px;   /* 🔥 핵심 */
}

.notice-row:last-child {
    border-bottom: none;
}

.notice-title {
    font-size: 13px;
    line-height: 1.4;
}

.home-center .card {
    min-height: 220px;
}

.home-right .card {
    min-height: 140px;
}

.fx-card {
    border-radius: 18px;
}

.fx-row {
    padding: 10px 0;
    font-weight: 500;
}

/* 전체 배경 */
body {
    background: #f6f8fb;
}

/* 헤더 */
.home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
}

.home-title {
    font-size: 22px;
    font-weight: 700;
}

.home-sub {
    font-size: 13px;
    color: #9ca3af;
}

.header-btn {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
}

.header-btn:hover {
    background: #1d4ed8;
}

/* 레이아웃 */
.home-layout {
    display: grid;
    grid-template-columns: 240px minmax(0,1fr) 300px;
    gap: 20px;
    padding: 20px;
}

/* 카드 */
.card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);

    min-height: 140px;

    transition: all 0.2s ease;
}

/* hover 효과 */
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* 카드 헤더 */
.card-header {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
}

.notice-row:last-child {
    border-bottom: none;
}

.notice-row:hover {
    color: #2563eb;
}

.notice-row.unread {
    font-weight: 600;
}

.notice-title {
    font-size: 13px;
}

/* 댓글 */
.comment-item {
    padding: 10px 0;
    border-bottom: 1px solid #f1f1f1;
}

.comment-item:last-child {
    border-bottom: none;
}

/* 환율 */
.fx-card {
    border-radius: 18px;
}

.fx-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.fx-refresh {
    border: none;
    background: #eef2ff;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
}

.fx-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

/* 공통 */
.empty {
    color: #9ca3af;
    font-size: 13px;
}

.more {
    font-size: 12px;
    color: #2563eb;
    cursor: pointer;
}

.summary-item.delay::before,
.summary-item.working::before,
.summary-item.comment::before {
    display: block;
    font-size: 12px;
    margin-bottom: 6px;
    opacity: 0.6;
}

.summary-item.delay::before {
    content: "●";
    color: #ef4444;
}

.summary-item.working::before {
    content: "●";
    color: #2563eb;
}

.summary-item.comment::before {
    content: "●";
    color: #10b981;
}

.profile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.today-box {
    font-size: 14px;
    font-weight: 600;
    background: #eef2ff;
    padding: 6px 10px;
    border-radius: 8px;
}

/* 기존 미니 캘린더 유지 */
.mini-calendar {
    margin-top: 12px;
    padding: 10px;
    background: #f9fafb;
    height: 240px;
    border-radius: 12px;
}

.cal-header {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 6px;
}

.cal-cell {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-cell.today {
    background: #eaf2ff;
    border-radius: 8px;
}

.cal-cell.today .cal-day {
    color: #2563eb;
    font-weight: 600;
}

.cal-cell {
    text-align: center;
    font-size: 11px;
    padding: 6px 0;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}

.cal-cell:hover {
    background: #f3f6fb;
    border-radius: 6px;
}

.cal-day {
    line-height: 1;
}

.dot-wrap {
    height: 8px;
    margin-top: 4px;
}


/* 메모 모달 */
.memo-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.memo-modal {
    width: 360px;
    background: #fff;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.memo-modal-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
}

.memo-textarea {
    width: 100%;
    min-height: 120px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px;
    resize: vertical;
    font-size: 13px;
    box-sizing: border-box;
}

.memo-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.memo-cancel-btn,
.memo-save-btn {
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    cursor: pointer;
}

.memo-cancel-btn {
    background: #f3f4f6;
}

.memo-save-btn {
    background: #2563eb;
    color: #fff;
}
.cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    margin-bottom: 6px;
}
.cal-nav {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #6b7280;
}
.cal-nav:hover {
    color: #111827;
}
.cal-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
    text-align: center;
}
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);

    /* 🔥 핵심 */
    grid-template-rows: repeat(6, 28px); 
}
.cal-cell.empty {
    pointer-events: none;
}
.cal-cell.sat .cal-day {
    color: #2563eb;
}
.cal-cell.sun .cal-day {
    color: #dc2626;
}
.cal-cell.start {
    outline: 1px solid #16a34a;
    border-radius: 8px;
}

.cal-cell.end {
    outline: 1px solid #dc2626;
    border-radius: 8px;
}

.cal-cell.both {
    outline: 1px solid #7c3aed;
    border-radius: 8px;
}

.cal-day {
    position: relative;
    z-index: 2;
}


.memo-tooltip{
    position: absolute;
    bottom: 120%;
    z-index: 200;

    background: #fff;
    color: #111827;

    font-size: 13px;
    padding: 10px 12px;

    border-radius: 10px;
    border: 1px solid #e5e7eb;

    min-width: 140px;
    max-width: 220px;

    line-height: 1.4;
    white-space: normal;
    word-break: break-word;

    box-shadow: 0 10px 25px rgba(0,0,0,0.12);

    opacity: 0;
    transform: translateY(6px);
    animation: tooltipFade 0.15s ease forwards;
}
/* 🔥 기본 (중앙) */
.memo-tooltip.center{
    left: 50%;
    transform: translateX(-50%) translateY(6px);
}
/* 🔥 왼쪽 붙이기 */
.memo-tooltip.left{
    right: 0;
}
/* 🔥 오른쪽 붙이기 */
.memo-tooltip.right{
    left: 0;
}
/* 🔥 화살표 (테두리) */
.memo-tooltip::before{
    content: "";
    position: absolute;
    top: 100%;

    border-width: 7px;
    border-style: solid;
    border-color: #e5e7eb transparent transparent transparent;
}
/* 🔥 화살표 (안쪽) */
.memo-tooltip::after{
    content: "";
    position: absolute;
    top: 100%;

    border-width: 6px;
    border-style: solid;
    border-color: #ffffff transparent transparent transparent;
}
/* 🔥 중앙 화살표 */
.memo-tooltip.center::before,
.memo-tooltip.center::after{
    left: 50%;
    transform: translateX(-50%);
}
/* 🔥 왼쪽 정렬 화살표 */
.memo-tooltip.left::before,
.memo-tooltip.left::after{
    right: 14px;
}
/* 🔥 오른쪽 정렬 화살표 */
.memo-tooltip.right::before,
.memo-tooltip.right::after{
    left: 14px;
}
/* 🔥 애니메이션 */
@keyframes tooltipFade{
    to{
        opacity: 1;
        transform: translateY(0);
    }
}
/* 기존 dot 유지 */
.memo-dot.delay { background: #dc2626; }
.memo-dot.event { background: #16a34a; }
.memo-dot{
    position: absolute;
    top: 2px;              /* 🔥 너무 위로 붙지 않게 살짝 내려줌 */
    left: 50%;

    transform: translateX(-50%);  /* 🔥 가운데 정렬만 */

    width: 6px;
    height: 6px;

    background: #111827;
    border-radius: 50%;
}
.cal-cell:hover .memo-dot{
    transform: translateX(-50%) scale(1.2);
}

@keyframes workingPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}


.type {
    flex-shrink: 0;
    min-width: 52px;
    color: #2563eb;
    font-weight: 700;
    font-size: 12px;
}


.work-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
}
.work-row:last-child {
    border-bottom: none;
}
.work-row:hover {
    background: #f8fbff;
}
.work-main {
    min-width: 0;
}
.work-project {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 2px;
}
.work-subject {
    font-size: 14px;
    color: #0f172a;
    font-weight: 700;
    word-break: break-word;
}

.stage-jump-highlight {
    /* ❌ outline 제거 */
    /* outline: 2px solid #3b82f6; */
    /* outline-offset: -2px; */

    /* ✅ 은은한 내부 강조 */
    box-shadow: inset 0 0 0 1px rgba(59,130,246,0.25);

    /* ✅ 부드러운 효과 */
    animation: stageFlashSoft 0.6s ease;
}

@keyframes stageFlashSoft {
    0%   { box-shadow: inset 0 0 0 2px rgba(96,165,250,0.35); }
    50%  { box-shadow: inset 0 0 0 2px rgba(37,99,235,0.35); }
    100% { box-shadow: inset 0 0 0 1px rgba(59,130,246,0.25); }
}

.project-update-item {
    padding: 10px 0;
    border-bottom: 1px solid #eef1f6;
}

.project-update-item:last-child {
    border-bottom: none;
}

.project-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
}

.project-time {
    margin-top: 3px;
    font-size: 12px;
    color: #94a3b8;
}


.summary-item.clickable {
    cursor: pointer;
    transition: all 0.15s ease;
}
.summary-item.clickable:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}


.notice-create-btn {
    margin-left: auto;
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d8deea;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
}
.notice-create-btn:hover {
    background: #f3f6fb;
}
.notice-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.notice-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
}


.input {
    height: 40px;
    padding: 0 10px;
    border: 1px solid #d8deea;
    border-radius: 6px;
}

.textarea {
    height: 160px;
    padding: 10px;
    border: 1px solid #d8deea;
    border-radius: 6px;
}

.target-box {
    display: flex;
    gap: 16px;
}

.actions {
    display: flex;
    gap: 10px;
}

.btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d8deea;
    background: #fff;
    cursor: pointer;
}

.btn.cancel {
    background: #f3f6fb;
}

.notice-detail-page {
    padding: 20px;
}

.notice-detail-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    max-width: 800px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
}

.notice-detail-header {
    margin-bottom: 16px;
}

.notice-detail-header .title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.notice-detail-header .meta {
    font-size: 13px;
    color: #6b7280;
}

.notice-detail-header .dot {
    margin: 0 6px;
}

.notice-detail-content {
    line-height: 1.6;
    font-size: 14px;
    color: #111827;
    margin-bottom: 20px;
}

.actions {
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.back-btn {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #d8deea;
    background: #fff;
    cursor: pointer;
}

.back-btn:hover {
    background: #f3f6fb;
}

.btn {
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d8deea;
    cursor: pointer;
}

.btn.edit {
    background: #eef2ff;
    color: #3730a3;
}

.btn.delete {
    background: #fef2f2;
    color: #b91c1c;
}

.notice-detail-header .meta {
    font-size: 13px;
    color: #6b7280;
    display: flex;
    gap: 6px;
    align-items: center;
}

.notice-detail-header .dot {
    color: #d1d5db;
}

.notice-detail-header .author {
    font-weight: 500;
}

.notice-detail-header .company {
    background: #eef2ff;
    color: #3730a3;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
}

.notice-detail-header .title {
    font-size: 22px;
    font-weight: 700;
}

.notice-detail-content {
    margin-top: 16px;
    line-height: 1.6;
}

.notice-badge {
    margin-left: 6px;

    background: #ef4444;
    color: #fff;

    font-size: 11px;
    font-weight: 600;

    padding: 2px 6px;
    border-radius: 999px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 18px;
    height: 18px;
}

.editor-toolbar {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.editor-toolbar button {
    border: 1px solid #ddd;
    background: #fff;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}

.editor-toolbar button:hover {
    background: #f3f6fb;
}

.editor {
    min-height: 200px;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px;
    background: #fff;
    font-size: 14px;
    line-height: 1.6;
}

.notice-page{
    width:100%;
    padding:0;
}

.notice-container {
    max-width: 900px;
    margin: 0 auto;
}

.notice-card {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 18px 18px 18px 48px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.15s ease;
}

.notice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.notice-no {
    position: absolute;
    left: 16px;
    top: 18px;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 600;
}

.notice-title {
    font-size: 15px;
    font-weight: 600;
    margin: 6px 0;
    color: #111827;
}

.notice-meta {
    font-size: 12px;
    color: #6b7280;
}

.notice-header {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
}

.notice-create-btn {
    align-self: flex-start;   /* 🔥 왼쪽 정렬 */
}

.notice-card.pinned{
    border-left: 4px solid #2563eb;
    background: #f8fbff;
}

.notice-card.unread {
    border: 1px solid #2563eb;
    background: #f8fbff;
}

.notice-container {
    max-width: 1100px;   /* 기존보다 넓게 */
    margin: 0 auto;
    padding: 20px 24px;
}

.notice-card {
    display: flex;
    gap: 16px;

    padding: 18px 20px;
    border-radius: 14px;

    background: #fff;
    border: 1px solid #e5e7eb;

    transition: all 0.15s ease;
}

.notice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.notice-no {
    font-size: 13px;
    color: #94a3b8;
    width: 30px;
    flex-shrink: 0;
}

.notice-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px;
}

/* 카드 */
.notice-card {
    display: flex;
    gap: 16px;

    padding: 16px 18px;
    border-radius: 12px;

    background: #fff;
    border: 1px solid #e5e7eb;

    transition: all 0.15s ease;
}

.notice-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* 번호 */
.notice-no {
    width: 28px;
    font-size: 12px;
    color: #9ca3af;
}

/* 본문 */
.notice-body {
    flex: 1;
}

/* 제목 */
.notice-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* 메타 */
.notice-meta {
    font-size: 12px;
    color: #6b7280;
}

/* unread */
.notice-card.unread {
    border-left: 3px solid #2563eb;
    background: #f8fbff;
}

/* 🔥 공지 작성 전체 */
.notice-create-page {
    width: calc(100% - 80px);
    max-width: none;      /* 🔥 제한 제거 */
    margin-left: 40px;
    margin-top: 20px;
}

.notice-title-input {
    width: 100%;
    height: 48px;         /* 🔥 높이 증가 */
    font-size: 16px;
    padding: 0 14px;
}
.notice-form {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.notice-quill-editor {
    min-height: 220px;   /* 🔥 기존보다 크게 */
}


.notice-form {
    max-width: 1000px;   /* 🔥 기존보다 훨씬 크게 */
    margin: 0 auto;

    padding: 24px;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    background: #fff;
}

.notice-quill-editor {
    min-height: 320px;   /* 🔥 지금보다 크게 */
}

.notice-container {
    margin-left: 40px;
    margin-top: 20px;
    width: calc(100% - 80px); /* 🔥 핵심 */
}

.notice-table {

    max-width: none; /* 🔥 제한 제거 */
}



.notice-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notice-no {
    font-size: 12px;
    color: #9ca3af;
    width: 24px;
    margin-top: 4px;
}

.notice-list {
    max-width: 1000px;   /* 🔥 카드도 같이 커짐 */
}

/* 전체 */
.notice-container {
    margin-left: 40px;
    margin-top: 20px;
}

/* 헤더 */
.notice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 0;
}

.notice-header .title {
    font-size: 22px;
    font-weight: 700;
}

.notice-header .desc {
    font-size: 13px;
    color: #6b7280;
}

/* 헤더 */
.notice-row.header {
    font-weight: 600;
    background: #f9fafb;
    cursor: default;
}

/* hover */
.notice-row:not(.header):hover {
    background: #f3f4f6;
}

/* unread */
.notice-row.unread .col-title {
    font-weight: 700;
}

/* 컬럼 */
.col-no {
    text-align: center;
    color: #6b7280;
    font-size: 13px;
}

.col-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.col-author {
    font-size: 13px;
    color: #374151;
}

.col-date {
    font-size: 13px;
    color: #6b7280;
}

/* 🔥 페이지 정렬 */
.notice-detail-page {
    margin-left: 40px;
    margin-top: 20px;
}

/* 🔥 전체 프레임 */
.notice-detail-wrap {
    max-width: 1100px;
}

/* 🔥 제목 */
.notice-detail-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* 🔥 메타 */
.notice-detail-meta {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* 🔥 본문 */
.notice-detail-content {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;

    padding: 24px 8px;
    line-height: 1.7;
    font-size: 14px;
}

/* 🔥 하단 */
.notice-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 16px;
}

/* 🔥 버튼 */
.back-btn {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
}

.btn.edit {
    margin-right: 8px;
}

.btn.delete {
    color: #dc2626;
}

/* =========================
   NOTICE DETAIL
========================= */

.notice-detail-page {
    margin-left: 40px;
    margin-top: 20px;
}

.notice-detail-wrap {
    max-width: 1100px;
}

.notice-detail-header {
    margin-bottom: 18px;
}

.notice-detail-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.notice-detail-meta {
    font-size: 13px;
    color: #6b7280;
}

.notice-detail-content {
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    padding: 24px 8px;
    line-height: 1.75;
    font-size: 14px;
    color: #111827;
}

.notice-detail-content img {
    max-width: 100%;
    height: auto;
}

.notice-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.back-btn {
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: #fff;
    cursor: pointer;
}

.btn.edit {
    margin-right: 8px;
}

.btn.delete {
    color: #dc2626;
}



.dot {
    display: inline-block;

    width: 4px;
    height: 4px;

    background: #9ca3af;
    border-radius: 50%;

    margin: 0 6px;
    position: relative;
    top: -1px;
}

/* =========================
   NOTICE COMMENTS
========================= */

.notice-comments-wrap {
    margin-top: 32px;
}

.notice-comments-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: #111827;
}

.notice-comment-write {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    padding: 14px;
    margin-bottom: 18px;
}

.notice-comment-textarea {
    width: 100%;
    min-height: 90px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
}

.notice-comment-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
}

.btn.comment-submit {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.btn.comment-submit:hover {
    background: #1d4ed8;
}

.notice-comment-list {
    border-top: 1px solid #e5e7eb;
}

.notice-comment-empty {
    padding: 18px 0;
    color: #6b7280;
    font-size: 14px;
}

.notice-comment-item {
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.notice-comment-meta {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 6px;
}

.notice-comment-meta .author{
    font-weight: 600;
    color: #374151;
}

.notice-comment-content{
    font-size: 14px;
    color: #111827;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.notice-row{
    display: grid;
    grid-template-columns:
        70px        /* 번호 */
        3fr         /* 제목 (더 크게) */
        120px       /* 회사 */
        120px       /* 작성자 */
        140px;      /* 날짜 */

    align-items: center;
    padding: 16px 14px;
    border-bottom: 1px solid #e5e7eb;
}

.col-company{
    font-size: 13px;
    color: #374151;
    text-align: center;
}

.col-title{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

/* 에디터 전체 */
.ql-container {
    min-height: 400px;   /* 🔥 기존 200 → 400 */
}

/* 입력 영역 */
.ql-editor {
    min-height: 400px;
    font-size: 14px;
    line-height: 1.6;
}

.notice-create-card {
    padding: 24px 28px;   /* 🔥 여백 확대 */
    border-radius: 14px;
}
.notice-create-card {
    background: #fff;
    border: 1px solid #e5e7eb;
}

.notice-card,
.notice-row {
    cursor: pointer;   /* 🔥 십자 → 손가락 */
}

.notice-row:hover {
    background: #f5f8ff;
    transform: translateX(4px);
    transition: all 0.15s ease;
}

.notice-row:active {
    transform: scale(0.98);
    background: #e8f0ff;
}

.notice-row.selected {
    background: #e0ebff;
    border-left: 4px solid #2563eb;
}

.notice-row.selected {
    background: #e0ebff;
    border-left: 4px solid #2563eb;
}

.notice-row {
    display: grid;
    grid-template-columns: 80px 1fr 120px 140px 160px;
    padding: 12px 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    align-items: center;
}

.notice-row:hover {
    background: #f5f8ff;
}

/* 헤더 */
.notice-row.header {
    font-weight: 600;
    background: #f9fafb;
}



/* 회사 태그 */
.tag {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 999px;
}

.tag.all {
    background: #e5e7eb;
}

.tag.unic {
    background: #dbeafe;
    color: #1d4ed8;
}

.tag.ksmec {
    background: #dcfce7;
    color: #166534;
}

.notice-detail-meta,
.notice-comment-meta {
    display: flex;
    gap: 10px;
    align-items: center;
}

.name {
    font-weight: 600;
    color: #111827;
}

.time {
    font-size: 12px;
    color: #9ca3af;
}

.company {
    font-size: 12px;
    color: #6b7280;
}

/* 댓글 item */
.notice-comment-item {
    position: relative;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
}

/* hover 배경 */
.notice-comment-item:hover {
    background: #f9fafb;
    border-radius: 6px;
}

/* 🔥 액션 버튼 영역 */
.comment-actions {
    position: absolute;
    top: 6px;
    right: 8px;

    display: flex;
    gap: 6px;

    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.15s ease;
}

/* hover 시 보이기 */
.notice-comment-item:hover .comment-actions {
    opacity: 1;
    transform: translateY(0);
}





.notice-body {
    flex: 1;
    overflow: auto;
}



.notice-body {
    padding: 16px 0;  /* 좌우 제거 (중앙 정렬 유지) */
}

.notice-shell{
    width:100%;
}

.notice-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.notice-header-left {
    min-width: 0;
}

.notice-header .title {
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}

.notice-header .desc {
    margin-top: 6px;
    font-size: 13px;
    color: #6b7280;
}

.notice-header-right {
    flex-shrink: 0;
}

.notice-create-btn {
    height: 40px;
    padding: 0 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    cursor: pointer;
    white-space: nowrap;
}

.notice-create-btn:hover{
    background: #f8fafc;
}

.notice-body{
    width: 100%;
}

.notice-table{
    width: 100%;
    background: transparent;
    verflow: hidden;
}

.notice-row{
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 120px 140px 180px;
    align-items: center;
    column-gap: 16px;
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
}

.notice-row.header{
    background: #f8fafc;
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid #e5e7eb;
    font-weight: 700;
    color: #374151;
    cursor: default;
}

.notice-row:not(.header){
    cursor: pointer;
    transition: background 0.15s ease;
}

.notice-row:not(.header):hover{
    background: #f8fbff;
}

.col-no{
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.col-title{
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.notice-title-text{
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}
.notice-row:hover .notice-title-text{
    color:#2563eb;
}
.notice-row.read .notice-title-text{
    color:#6b7280;
    font-weight:500;
}

.col-company{
    display: flex;
    justify-content: center;
}

.col-author,
.col-date {
    font-size: 13px;
    color: #4b5563;
}

.tag{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.tag.all{
    background: #eef2f7;
    color: #4b5563;
}

.tag.unic{
    background: #dbeafe;
    color: #2563eb;
}

.tag.ksmec{
    background: #dcfce7;
    color: #15803d;
}

.notice-body .empty{
    padding: 32px 0;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 1100px){
    .notice-row {
        grid-template-columns: 70px minmax(0, 1fr) 100px 120px 150px;
        column-gap: 12px;
    }
}

.pagination{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
}

.page-btn{
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s ease;
}

.page-btn:hover:not(:disabled){
    background: #f3f4f6;
}

.page-btn.active{
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.page-btn:disabled{
    opacity: 0.45;
    cursor: not-allowed;
}

.page-btn.active{
    transform: scale(1.05);
}

.notice-table {
    table-layout: fixed;
    width: 100%;
}

.notice-table th:nth-child(2),
.notice-table td:nth-child(2) {
    width: 45%;
}

.notice-table td:nth-child(2) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.weather-list{
    display:flex;
    justify-content:space-between;
    gap:6px;
}

.weather-item{
    text-align:center;
    font-size:12px;
    flex:1;
}

.weather-date{
    font-size:11px;
    color:#6b7280;
}

.weather-temp{
    font-weight:700;
}

/* 🔥 오늘 카드 */
.weather-item.today{
    background: #eef4ff;
    border-radius: 10px;
    padding: 6px 0;

    box-shadow: 
        0 4px 12px rgba(37, 99, 235, 0.12),
        0 0 0 1px #3b82f6 inset;

    transform: translateY(-2px);
    transition: all 0.25s ease;

    animation: todayFadeIn 0.4s ease;
}

/* 🔥 hover */
.weather-item.today:hover{
    transform: translateY(-4px);
    box-shadow: 
        0 8px 20px rgba(37, 99, 235, 0.18),
        0 0 0 1px #3b82f6 inset;
}

.weather-item.today .weather-date{
    color: #2563eb;
    font-weight: 700;
}

.weather-item.today .weather-temp{
    color: #111827;
    font-weight: 800;
}

/* 🔥 아이콘 */
.weather-icon{
    margin: 4px 0;
}

.weather-icon svg{
    width:20px;
    height:20px;
    stroke:#9ca3af;
}

/* 🔥 오늘 색 강조 */
.weather-item.today svg{
    stroke:#2563eb;
}
/* 🔥 등장 */
.weather-item.today{
    animation: todayFadeIn 0.4s ease;
}

@keyframes todayFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(-2px);
    }
}

/* =========================
   ☀️ 맑음
========================= */
.weather-item.today.sun .weather-icon svg{
    display:inline-block;
    animation: sunGlow 2s infinite ease-in-out;
}

@keyframes sunGlow{
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 200, 0, 0));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 6px rgba(255, 200, 0, 0.6));
    }
    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 200, 0, 0));
    }
}

/* =========================
   ☁️ 구름
========================= */
.weather-item.today.cloud .weather-icon svg{
    display:inline-block;
    animation: cloudFloat 3s infinite ease-in-out;
}

@keyframes cloudFloat{
    0%   { transform: translateX(0); }
    50%  { transform: translateX(3px); }
    100% { transform: translateX(0); }
}

/* =========================
   🌧 비
========================= */
.weather-item.today.rain .weather-icon svg{
    display:inline-block;
    animation: rainDrop 1.2s infinite ease-in-out;
}

@keyframes rainDrop{
    0%   { transform: translateY(0); opacity: 1; }
    50%  { transform: translateY(3px); opacity: 0.7; }
    100% { transform: translateY(0); opacity: 1; }
}

/* =========================
   ⛈ 번개
========================= */
.weather-item.today.storm .weather-icon svg{
    display:inline-block;
    animation: stormFlash 1.5s infinite;
}

@keyframes stormFlash{
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* =========================
   ❄️ 눈
========================= */
.weather-item.today.snow .weather-icon svg{
    display:inline-block;
    animation: snowFloat 2.5s infinite ease-in-out;
}

@keyframes snowFloat{
    0%   { transform: translateY(0); }
    50%  { transform: translateY(2px); }
    100% { transform: translateY(0); }
}

.mywork-card{
    padding-bottom: 14px;
}

.mywork-grid{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:8px;
}

.mywork-item{
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 10px;
    border-radius:12px;
    background:#f8fafc;
    border:1px solid #e5e7eb;
    cursor:pointer;
    transition:all .18s ease;
}

.mywork-item:hover{
    transform:translateY(-1px);
    box-shadow:0 6px 14px rgba(15,23,42,0.08);
}

.mywork-dot{
    width:8px;
    height:8px;
    border-radius:999px;
    flex:0 0 8px;
}

.mywork-body{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-width:0;
}

.mywork-label{
    font-size:14px;
    font-weight:700;
    color:#111827;
}

.mywork-value{
    font-size:26px;
    line-height:1;
    font-weight:800;
    color:#111827;
}

.mywork-item.delay .mywork-dot{
    background:#ef4444;
}

.mywork-item.delay .mywork-label{
    color:#dc2626;
}

.mywork-item.working .mywork-dot{
    background:#3b82f6;
}

.mywork-item.comment .mywork-dot{
    background:#10b981;
}

/* =========================
   🔥 HEADER 전체
========================= */
/* =========================
   🔥 HEADER 전체 (기존 유지 + 정리)
========================= */
.home-header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:16px 20px;
    margin-bottom:14px;

    background:#ffffff;
    border-radius:14px;

    box-shadow:0 4px 20px rgba(0,0,0,0.04);
    border:1px solid #eef2f7;
}

/* =========================
   🔥 LEFT 영역 → 가로 정렬로 변경
========================= */
.home-header-left{
    display:flex;
    align-items:center;
    gap:8px; /* 🔥 핵심 */
}

/* =========================
   🔥 회사명
========================= */
.home-company{
    font-size:16px;
    font-weight:700;
    color:#2563eb;
    letter-spacing:0.3px;
}

/* =========================
   🔥 구분점
========================= */
.divider{
    color:#cbd5e1;
    font-size:14px;
}

/* =========================
   🔥 이름
========================= */
.user-name{
    font-size:14px;
    font-weight:500;
    color:#334155;
}

/* =========================
   🔥 버튼 영역
========================= */
.home-actions{
    display:flex;
    align-items:center;
}

/* =========================
   🔥 로그아웃 버튼 (가독성 개선)
========================= */
.header-btn,
.logout-btn{
    height:32px;
    padding:0 12px;

    border-radius:8px;
    border:1px solid #e2e8f0;

    background:#f8fafc;   /* 🔥 흰색 제거 */
    color:#334155;

    font-size:13px;
    font-weight:500;

    cursor:pointer;
    transition:all 0.15s ease;
}

.header-btn:hover,
.logout-btn:hover{
    background:#e2e8f0;
    border-color:#cbd5f5;
}

.update-flow-card{
    display:flex;
    align-items:center;
    gap:16px;

    padding:14px;
    border-bottom:1px solid #eef1f6;

    cursor:pointer;
    transition:all 0.15s ease;
}

.update-flow-card:hover{
    background:#f7f9fc;
}

.flow-left, .flow-right{
    flex:1;
}

.project{
    font-size:12px;
    color:#6b7280;
}

.current, .next{
    font-weight:600;
}

.arrow{
    font-size:20px;
    color:#cbd5e1;
}

.meta{
    font-size:12px;
    color:#9ca3af;
}

.badge{
    font-size:11px;
    padding:2px 6px;
    border-radius:6px;
}

.badge.done{
    background:#e6f7ee;
    color:#16a34a;
}

.badge.next{
    background:#eef2ff;
    color:#4f46e5;
}
.update-card{
    padding:16px 18px;
    border-bottom:1px solid #eef1f6;
    transition:all 0.2s ease;
    cursor:pointer;
}

.update-card:hover{
    background:#f8fafc;
}

/* 상단 프로젝트 */
.update-header{
    font-size:13px;
    color:#6b7280;
    margin-bottom:8px;
}

/* 본문 흐름 */
.update-body{
    display:flex;
    align-items:center;
    gap:20px;
}
/* =========================
   FLOW (좌/우 블럭)
   ========================= */

.flow{
    flex:1;
    min-width:0;
}

.flow .title{
    font-size:15px;
    font-weight:600;
}

.flow .meta{
    font-size:12px;
    color:#9ca3af;
    margin-top:3px;
}

/* 현재 강조 */
.flow.current .title{
    font-size:16px;
    font-weight:800;
    color:#111827;
}

/* 다음 */
.flow.next .title{
    font-size:15px;
    font-weight:700;
    color:#334155;
}


/* =========================
   화살표 (핵심)
   ========================= */

.flow-arrow{
    position: relative;
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #cbd5e1, #e2e8f0);
}

/* 🔥 삼각형 */
.flow-arrow::after{
    content: '';
    position: absolute;
    top: 50%;
    left: 0;

    transform: translateY(-50%);

    border-left: 8px solid #2563eb;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;

    animation: arrowMove 1.2s linear infinite;
    z-index: 5;
}

/* 🔥 애니메이션 */
@keyframes arrowMove{
    0%   { left: 0; opacity: 0.2; }
    50%  { opacity: 1; }
    85%  { left: 80%; opacity: 1; }
    100% { left: 80%; opacity: 0; }
}

/* hover 가속 */
.update-card:hover .flow-arrow::after{
    animation-duration: 0.6s;
}


/* =========================
   상태별 화살표
   ========================= */

/* 🔵 정상 */
.update-card.normal .flow-arrow::after{
    border-left-color: #2563eb;
}

/* 🔴 지연 */
.update-card.delay .flow-arrow::after{
    border-left-color: #ef4444;
}

/* 🟢 완료 */
.update-card.done .flow-arrow::after{
    animation: none;
    left: 80%;
    opacity: 1;
    border-left-color: #22c55e;
}


/* =========================
   라벨
   ========================= */

.label{
    display:inline-block;
    font-size:11px;
    padding:3px 8px;
    border-radius:999px;
    margin-bottom:4px;
}

.label.green{
    background:#e6f7ee;
    color:#16a34a;
}

.label.blue{
    background:#eef2ff;
    color:#4f46e5;
}


/* =========================
   카드
   ========================= */

.update-card{
    padding:16px 18px;
    margin-bottom:10px;
    border-radius:12px;
    background:#fff;
    position:relative;
    transition:all 0.2s ease;
}

/* 좌측 상태 라인 */
.update-card::before{
    content:'';
    position:absolute;
    left:0;
    top:0;
    bottom:0;
    width:4px;
    border-radius:12px 0 0 12px;
}
.update-card.normal{
    border:1px solid #dbeafe;
    background:#fff;
}
.update-card.normal::before{
    background:#3b82f6;
}
.update-card.delay{
    border:1px solid #fecaca;
    background:#fff7f7;
}
.update-card.delay::before{
    background:#ef4444;
}
.update-card.done{
    border:1px solid #bbf7d0;
    background:#f0fdf4;
}
.update-card.done::before{
    background:#22c55e;
}

/* hover */
.update-card:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 20px rgba(0,0,0,0.06);
}


/* =========================
   메타 정보 강조
   ========================= */

.meta .team{
    font-weight:700;
    color:#1e40af;
}

.meta .team.next{
    color:#4f46e5;
}

.meta .user{
    font-weight:600;
    color:#374151;
}

.meta .time{
    color:#9ca3af;
}


/* =========================
   완료 텍스트
   ========================= */

.done{
    font-weight:600;
    color:#16a34a;
}


/* =========================
   (혹시 SVG 남아있으면 대비)
   ========================= */

.flow-arrow svg{
    transition: all 0.2s ease;
}

.update-card:hover .flow-arrow svg{
    transform: translateX(4px);
}
.highlight-row{
    animation: highlightRowFade 1.5s ease;
}

@keyframes highlightRowFade{
    0%   { background-color: #fef3c7; }
    100% { background-color: transparent; }
}

.delay-red{
    color:#ef4444;
    font-weight:700;
}

.delay-today{
    color:#f59e0b;
    font-weight:600;
}

.delay-normal{
    color:#6b7280;
}
.delay-text.red{
    color:#ef4444;
    font-weight:700;
}
.delay-text.blue{
    color:#2563eb;
    font-weight:700;
}
.delay-text.gray{
    color:#6b7280;
    font-weight:600;
}
.delay-text.today{
    color:#f59e0b;
    font-weight:600;
}

.delay-text.normal{
    color:#64748b;
}
/* 오늘 */
.update-card.today{
    border:1px solid #e5e7eb;
    background:#fff;
}
.update-card.today::before{
    background:#f59e0b;
}