/* 알림 메뉴 컨테이너 */
.notification-menu {
    position: relative;
}

/* 알림 배지 */
.notification-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #f44336;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* 드롭다운 */
.notification-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 320px;
    background: #fff;
    border: 1px solid #E5E5EC;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
}

.notification-dropdown.active {
    display: block;
}

/* 드롭다운 헤더 */
.notification-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #E5E5EC;
    font-weight: 600;
}

.notification-dropdown-header a {
    font-size: 12px;
    color: #1976d2;
    font-weight: normal;
}

/* 드롭다운 바디 */
.notification-dropdown-body {
    max-height: 300px;
    overflow-y: auto;
}

/* 알림 항목 */
.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: #f9f9f9;
}

.notification-item.unread {
    background: #fff8e1;
}

.notification-item.unread:hover {
    background: #fff3cd;
}

.notification-item-message {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-item-time {
    font-size: 11px;
    color: #999;
}

/* 드롭다운 푸터 */
.notification-dropdown-footer {
    padding: 12px 16px;
    text-align: center;
    border-top: 1px solid #E5E5EC;
}

.notification-dropdown-footer a {
    font-size: 13px;
    color: #1976d2;
}

/* 빈 상태 */
.notification-empty {
    padding: 32px 16px;
    text-align: center;
    color: #999;
    font-size: 13px;
}

/* ==========================================
   승인 워크플로우 알림 스타일
   ========================================== */

/* 승인 요청 알림 항목 - 주황색 좌측 보더 */
.notification-item--approval_request {
    border-left: 3px solid #ff9800;
}

.notification-item--approval_request.unread {
    background: #fff3e0;
}

.notification-item--approval_request.unread:hover {
    background: #ffe0b2;
}

/* 승인 결과 알림 항목 */
.notification-item--approval_result {
    border-left: 3px solid #4caf50;
}

/* 승인 상세 팝업 */
#approval-notification-popup .pop__con {
    padding: 20px;
}

.anp-info {
    margin-bottom: 20px;
}

.anp-info-row {
    display: flex;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.anp-label {
    flex: 0 0 80px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.anp-value {
    flex: 1;
    font-size: 13px;
    color: #333;
    word-break: break-word;
}

.anp-status-approved {
    color: #4caf50;
    font-weight: 600;
}

.anp-status-rejected {
    color: #f44336;
    font-weight: 600;
}

/* 승인/반려 버튼 영역 */
.anp-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 16px 0;
    border-top: 1px solid #E5E5EC;
}

.anp-actions .btn__style {
    min-width: 100px;
}

/* 반려 사유 입력 폼 */
.anp-reject-form {
    padding: 16px 0;
    border-top: 1px solid #E5E5EC;
}

.anp-reject-form label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.anp-reject-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    resize: vertical;
    box-sizing: border-box;
}

.anp-reject-form textarea:focus {
    outline: none;
    border-color: #1976d2;
}

.anp-reject-form-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 12px;
}

.anp-reject-form-actions .btn__style {
    min-width: 100px;
}
